|
| 1 | +MANDATORY_INIT_MISSING = { |
| 2 | + 'message': "Missing public_key or private_key or url_endpoint during ImageKit initialization", |
| 3 | + help: "", |
| 4 | +} |
| 5 | +INVALID_TRANSFORMATION_POS = {'message': "Invalid transformationPosition parameter", |
| 6 | + help: "",} |
| 7 | +INVALID_URL_GENERATION_PARAM = {'message': "Invalid url parameter", help: ""} |
| 8 | +INVALID_TRANSFORMATION_OPTIONS = { |
| 9 | + 'message': "Invalid transformation parameter options", |
| 10 | + help: "", |
| 11 | +} |
| 12 | +CACHE_PURGE_URL_MISSING = {'message': "Missing URL parameter for this request", |
| 13 | + help: "",} |
| 14 | +CACHE_PURGE_STATUS_ID_MISSING = {'message': "Missing Request ID parameter for this request", |
| 15 | + help: "",} |
| 16 | +FILE_ID_MISSING = {'message': "Missing File ID parameter for this request", |
| 17 | + help: "",} |
| 18 | +UPDATE_DATA_MISSING = {'message': "Missing file update data for this request", |
| 19 | + help: "",} |
| 20 | + |
| 21 | +UPDATE_DATA_TAGS_INVALID = {'message': "Invalid tags parameter for this request", |
| 22 | + help: "tags should be passed as null or an array like ['tag1', 'tag2']",}.freeze |
| 23 | + |
| 24 | +UPDATE_DATA_COORDS_INVALID = |
| 25 | + {'message': "Invalid custom_coordinates parameter for this request", |
| 26 | + help: "custom_coordinates should be passed as null or a string like 'x,y,width,height'",} |
| 27 | + |
| 28 | +LIST_FILES_INPUT_MISSING = { |
| 29 | + 'message': "Missing options for list files", |
| 30 | + help: "If you do not want to pass any parameter for listing, pass an empty object", |
| 31 | +} |
| 32 | +MISSING_FILE_URL = {'message': "Missing file_url for purge_cache", help: ""} |
| 33 | +MISSING_UPLOAD_DATA = {'message': "Missing data for upload", help: ""} |
| 34 | +MISSING_UPLOAD_FILE_PARAMETER = { |
| 35 | + 'message': "Missing file parameter for upload", |
| 36 | + help: "", |
| 37 | +} |
| 38 | +MISSING_UPLOAD_FILENAME_PARAM = { |
| 39 | + 'message': "Missing fileName parameter for upload", |
| 40 | + help: "", |
| 41 | +} |
| 42 | + |
| 43 | +INVALID_PHASH_VALUE = |
| 44 | + { |
| 45 | + 'message': "Invalid pHash value", |
| 46 | + help: "Both pHash strings must be valid hexadecimal numbers", |
| 47 | + } |
| 48 | + |
| 49 | +MISSING_PHASH_VALUE = { |
| 50 | + 'message': "Missing pHash value", |
| 51 | + help: "Please pass two pHash values", |
| 52 | +} |
| 53 | +UNEQUAL_STRING_LENGTH = { |
| 54 | + '': "Unequal pHash string length", |
| 55 | + help: "For distance calculation, the two pHash strings must have equal length", |
| 56 | +} |
| 57 | + |
| 58 | +MISSING_UPLOAD_FILE_PARAMETER = {'message': "Missing file parameter for upload", |
| 59 | + 'help': "",} |
| 60 | +MISSING_UPLOAD_FILENAME_PARAM = { |
| 61 | + 'message': "Missing fileName parameter for upload", |
| 62 | + 'help': "", |
| 63 | +} |
| 64 | + |
| 65 | +INVALID_PHASH_VALUE = {'message': "Invalid pHash value", |
| 66 | + 'help': "Both pHash strings must be valid hexadecimal numbers",} |
| 67 | + |
| 68 | +MISSING_PHASH_VALUE = {'message': "Missing pHash value", |
| 69 | + 'help': "Please pass two pHash values",} |
| 70 | +UNEQUAL_STRING_LENGTH = {'message': "Unequal pHash string length", |
| 71 | + 'help': "For distance calculation, the two pHash strings must have equal length",} |
0 commit comments