Skip to content

Commit d0c605b

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
updated error message and type name
1 parent ee225e2 commit d0c605b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

libs/constants/errorMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
"VERIFY_WEBHOOK_EVENT_SIGNATURE_MISSING": { message: "Signature missing", help: "Please pass x-ik-signature header as utf8 string" },
4848
"VERIFY_WEBHOOK_EVENT_TIMESTAMP_MISSING": { message: "Timestamp missing", help: "Please pass x-ik-signature header as utf8 string" },
4949
"VERIFY_WEBHOOK_EVENT_TIMESTAMP_INVALID": { message: "Timestamp invalid", help: "Please pass x-ik-signature header as utf8 string" },
50-
"INVALID_TRANSFORMATION": { message: "Invalid transformation parameter.", help: ""},
50+
"INVALID_TRANSFORMATION": { message: "Invalid transformation parameter. Please include at least pre, post, or both.", help: ""},
5151
"INVALID_PRE_TRANSFORMATION": { message: "Invalid pre transformation parameter.", help: ""},
5252
"INVALID_POST_TRANSFORMATION": { message: "Invalid post transformation parameter.", help: ""},
5353
};

libs/interfaces/FileDetails.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface AITagItem {
1616
source: 'google-auto-tagging' | 'aws-auto-tagging'
1717
}
1818

19-
export interface CmValues {
19+
export interface CMValues {
2020
[key: string]: | string
2121
| number
2222
| boolean
@@ -71,7 +71,7 @@ export interface FileDetailsOptions {
7171
/*
7272
* A key-value data to be associated with the asset. To unset a key, send null value for that key. Before setting any custom metadata on an asset you have to create the field using custom metadata fields API.
7373
*/
74-
customMetadata?: CmValues;
74+
customMetadata?: CMValues;
7575
}
7676

7777
/**
@@ -138,7 +138,7 @@ export interface FileObject {
138138
/*
139139
* A key-value data associated with the asset. Before setting any custom metadata on an asset, you have to create the field using custom metadata fields API.
140140
*/
141-
customMetadata?: CmValues;
141+
customMetadata?: CMValues;
142142
/*
143143
* Size of the file in bytes
144144
*/

libs/interfaces/UploadResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AITagItem, CmValues, EmbeddedMetadataValues } from "./FileDetails";
1+
import { AITagItem, CMValues, EmbeddedMetadataValues } from "./FileDetails";
22
import { FileMetadataResponse } from "./FileMetadata";
33
import { FileType } from "./FileType";
44

@@ -75,5 +75,5 @@ export interface UploadResponse {
7575
/*
7676
* A key-value data associated with the asset. Before setting any custom metadata on an asset, you have to create the field using custom metadata fields API.
7777
*/
78-
customMetadata?: CmValues;
78+
customMetadata?: CMValues;
7979
}

tests/upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ describe("File upload", function () {
463463

464464
var errRes = {
465465
help: "",
466-
message: "Invalid transformation parameter.",
466+
message: "Invalid transformation parameter. Please include at least pre, post, or both.",
467467
};
468468
expect(callback.calledOnce).to.be.true;
469469
sinon.assert.calledWith(callback, errRes, null);

0 commit comments

Comments
 (0)