|
1 | 1 | export default { |
2 | | - MANDATORY_INITIALIZATION_MISSING: { message: "Missing urlEndpoint during SDK initialization", help: "" }, |
3 | | - INVALID_TRANSFORMATION_POSITION: { message: "Invalid transformationPosition parameter", help: "" }, |
4 | | - PRIVATE_KEY_CLIENT_SIDE: { message: "privateKey should not be passed on the client side", help: "" }, |
5 | | - MISSING_UPLOAD_DATA: { message: "Missing data for upload", help: "" }, |
6 | | - MISSING_UPLOAD_FILE_PARAMETER: { message: "Missing file parameter for upload", help: "" }, |
7 | | - MISSING_UPLOAD_FILENAME_PARAMETER: { message: "Missing fileName parameter for upload", help: "" }, |
8 | | - MISSING_AUTHENTICATION_ENDPOINT: { message: "Missing authentication endpoint for upload", help: "" }, |
9 | | - MISSING_PUBLIC_KEY: { message: "Missing public key for upload", help: "" }, |
10 | | - AUTH_ENDPOINT_TIMEOUT: { message: "The authenticationEndpoint you provided timed out in 60 seconds", help: "" }, |
11 | | - AUTH_ENDPOINT_NETWORK_ERROR: { message: "Request to authenticationEndpoint failed due to network error", help: "" }, |
12 | | - AUTH_INVALID_RESPONSE: { message: "Invalid response from authenticationEndpoint. The SDK expects a JSON response with three fields i.e. signature, token and expire.", help: "" }, |
| 2 | + MANDATORY_INITIALIZATION_MISSING: { message: "Missing urlEndpoint during SDK initialization" }, |
| 3 | + INVALID_TRANSFORMATION_POSITION: { message: "Invalid transformationPosition parameter" }, |
| 4 | + PRIVATE_KEY_CLIENT_SIDE: { message: "privateKey should not be passed on the client side" }, |
| 5 | + MISSING_UPLOAD_DATA: { message: "Missing data for upload" }, |
| 6 | + MISSING_UPLOAD_FILE_PARAMETER: { message: "Missing file parameter for upload" }, |
| 7 | + MISSING_UPLOAD_FILENAME_PARAMETER: { message: "Missing fileName parameter for upload" }, |
| 8 | + MISSING_AUTHENTICATION_ENDPOINT: { message: "Missing authentication endpoint for upload" }, |
| 9 | + MISSING_PUBLIC_KEY: { message: "Missing public key for upload" }, |
| 10 | + AUTH_ENDPOINT_TIMEOUT: { message: "The authenticationEndpoint you provided timed out in 60 seconds" }, |
| 11 | + AUTH_ENDPOINT_NETWORK_ERROR: { message: "Request to authenticationEndpoint failed due to network error" }, |
| 12 | + AUTH_INVALID_RESPONSE: { message: "Invalid response from authenticationEndpoint. The SDK expects a JSON response with three fields i.e. signature, token and expire." }, |
13 | 13 | UPLOAD_ENDPOINT_NETWORK_ERROR: { |
14 | | - message: "Request to ImageKit upload endpoint failed due to network error", |
15 | | - help: "", |
| 14 | + message: "Request to ImageKit upload endpoint failed due to network error" |
16 | 15 | }, |
17 | | - INVALID_UPLOAD_OPTIONS: { message: "Invalid uploadOptions parameter", help: "" }, |
18 | | - MISSING_SIGNATURE: { message: "Missing signature for upload. The SDK expects token, signature and expire for authentication.", help: "" }, |
19 | | - MISSING_TOKEN: { message: "Missing token for upload. The SDK expects token, signature and expire for authentication.", help: "" }, |
20 | | - MISSING_EXPIRE: { message: "Missing expire for upload. The SDK expects token, signature and expire for authentication.", help: "" }, |
21 | | - INVALID_TRANSFORMATION: { message: "Invalid transformation parameter. Please include at least pre, post, or both.", help: "" }, |
22 | | - INVALID_PRE_TRANSFORMATION: { message: "Invalid pre transformation parameter.", help: "" }, |
23 | | - INVALID_POST_TRANSFORMATION: { message: "Invalid post transformation parameter.", help: "" }, |
24 | | - UPLOAD_ABORTED: { message: "Request aborted by the user", help: "" }, |
| 16 | + INVALID_UPLOAD_OPTIONS: { message: "Invalid uploadOptions parameter" }, |
| 17 | + MISSING_SIGNATURE: { message: "Missing signature for upload. The SDK expects token, signature and expire for authentication." }, |
| 18 | + MISSING_TOKEN: { message: "Missing token for upload. The SDK expects token, signature and expire for authentication." }, |
| 19 | + MISSING_EXPIRE: { message: "Missing expire for upload. The SDK expects token, signature and expire for authentication." }, |
| 20 | + INVALID_TRANSFORMATION: { message: "Invalid transformation parameter. Please include at least pre, post, or both." }, |
| 21 | + INVALID_PRE_TRANSFORMATION: { message: "Invalid pre transformation parameter." }, |
| 22 | + INVALID_POST_TRANSFORMATION: { message: "Invalid post transformation parameter." }, |
| 23 | + UPLOAD_ABORTED: { message: "Request aborted by the user" }, |
25 | 24 | }; |
0 commit comments