@types/parse
Advanced tools
Comparing version 2.2.9 to 2.2.10
@@ -22,2 +22,60 @@ // Type definitions for parse 2.2.9 | ||
declare enum ErrorCode { | ||
OTHER_CAUSE = -1, | ||
INTERNAL_SERVER_ERROR = 1, | ||
CONNECTION_FAILED = 100, | ||
OBJECT_NOT_FOUND = 101, | ||
INVALID_QUERY = 102, | ||
INVALID_CLASS_NAME = 103, | ||
MISSING_OBJECT_ID = 104, | ||
INVALID_KEY_NAME = 105, | ||
INVALID_POINTER = 106, | ||
INVALID_JSON = 107, | ||
COMMAND_UNAVAILABLE = 108, | ||
NOT_INITIALIZED = 109, | ||
INCORRECT_TYPE = 111, | ||
INVALID_CHANNEL_NAME = 112, | ||
PUSH_MISCONFIGURED = 115, | ||
OBJECT_TOO_LARGE = 116, | ||
OPERATION_FORBIDDEN = 119, | ||
CACHE_MISS = 120, | ||
INVALID_NESTED_KEY = 121, | ||
INVALID_FILE_NAME = 122, | ||
INVALID_ACL = 123, | ||
TIMEOUT = 124, | ||
INVALID_EMAIL_ADDRESS = 125, | ||
MISSING_CONTENT_TYPE = 126, | ||
MISSING_CONTENT_LENGTH = 127, | ||
INVALID_CONTENT_LENGTH = 128, | ||
FILE_TOO_LARGE = 129, | ||
FILE_SAVE_ERROR = 130, | ||
DUPLICATE_VALUE = 137, | ||
INVALID_ROLE_NAME = 139, | ||
EXCEEDED_QUOTA = 140, | ||
SCRIPT_FAILED = 141, | ||
VALIDATION_ERROR = 142, | ||
INVALID_IMAGE_DATA = 150, | ||
UNSAVED_FILE_ERROR = 151, | ||
INVALID_PUSH_TIME_ERROR = 152, | ||
FILE_DELETE_ERROR = 153, | ||
REQUEST_LIMIT_EXCEEDED = 155, | ||
INVALID_EVENT_NAME = 160, | ||
USERNAME_MISSING = 200, | ||
PASSWORD_MISSING = 201, | ||
USERNAME_TAKEN = 202, | ||
EMAIL_TAKEN = 203, | ||
EMAIL_MISSING = 204, | ||
EMAIL_NOT_FOUND = 205, | ||
SESSION_MISSING = 206, | ||
MUST_CREATE_USER_THROUGH_SIGNUP = 207, | ||
ACCOUNT_ALREADY_LINKED = 208, | ||
INVALID_SESSION_TOKEN = 209, | ||
LINKED_ID_MISSING = 250, | ||
INVALID_LINKED_SESSION = 251, | ||
UNSUPPORTED_SERVICE = 252, | ||
AGGREGATE_ERROR = 600, | ||
FILE_READ_ERROR = 601, | ||
X_DOMAIN_REQUEST = 602 | ||
} | ||
declare namespace Parse { | ||
@@ -910,74 +968,65 @@ | ||
class Error { | ||
static OTHER_CAUSE: ErrorCode.OTHER_CAUSE; | ||
static INTERNAL_SERVER_ERROR: ErrorCode.INTERNAL_SERVER_ERROR; | ||
static CONNECTION_FAILED: ErrorCode.CONNECTION_FAILED; | ||
static OBJECT_NOT_FOUND: ErrorCode.OBJECT_NOT_FOUND; | ||
static INVALID_QUERY: ErrorCode.INVALID_QUERY; | ||
static INVALID_CLASS_NAME: ErrorCode.INVALID_CLASS_NAME; | ||
static MISSING_OBJECT_ID: ErrorCode.MISSING_OBJECT_ID; | ||
static INVALID_KEY_NAME: ErrorCode.INVALID_KEY_NAME; | ||
static INVALID_POINTER: ErrorCode.INVALID_POINTER; | ||
static INVALID_JSON: ErrorCode.INVALID_JSON; | ||
static COMMAND_UNAVAILABLE: ErrorCode.COMMAND_UNAVAILABLE; | ||
static NOT_INITIALIZED: ErrorCode.NOT_INITIALIZED; | ||
static INCORRECT_TYPE: ErrorCode.INCORRECT_TYPE; | ||
static INVALID_CHANNEL_NAME: ErrorCode.INVALID_CHANNEL_NAME; | ||
static PUSH_MISCONFIGURED: ErrorCode.PUSH_MISCONFIGURED; | ||
static OBJECT_TOO_LARGE: ErrorCode.OBJECT_TOO_LARGE; | ||
static OPERATION_FORBIDDEN: ErrorCode.OPERATION_FORBIDDEN; | ||
static CACHE_MISS: ErrorCode.CACHE_MISS; | ||
static INVALID_NESTED_KEY: ErrorCode.INVALID_NESTED_KEY; | ||
static INVALID_FILE_NAME: ErrorCode.INVALID_FILE_NAME; | ||
static INVALID_ACL: ErrorCode.INVALID_ACL; | ||
static TIMEOUT: ErrorCode.TIMEOUT; | ||
static INVALID_EMAIL_ADDRESS: ErrorCode.INVALID_EMAIL_ADDRESS; | ||
static MISSING_CONTENT_TYPE: ErrorCode.MISSING_CONTENT_TYPE; | ||
static MISSING_CONTENT_LENGTH: ErrorCode.MISSING_CONTENT_LENGTH; | ||
static INVALID_CONTENT_LENGTH: ErrorCode.INVALID_CONTENT_LENGTH; | ||
static FILE_TOO_LARGE: ErrorCode.FILE_TOO_LARGE; | ||
static FILE_SAVE_ERROR: ErrorCode.FILE_SAVE_ERROR; | ||
static DUPLICATE_VALUE: ErrorCode.DUPLICATE_VALUE; | ||
static INVALID_ROLE_NAME: ErrorCode.INVALID_ROLE_NAME; | ||
static EXCEEDED_QUOTA: ErrorCode.EXCEEDED_QUOTA; | ||
static SCRIPT_FAILED: ErrorCode.SCRIPT_FAILED; | ||
static VALIDATION_ERROR: ErrorCode.VALIDATION_ERROR; | ||
static INVALID_IMAGE_DATA: ErrorCode.INVALID_IMAGE_DATA; | ||
static UNSAVED_FILE_ERROR: ErrorCode.UNSAVED_FILE_ERROR; | ||
static INVALID_PUSH_TIME_ERROR: ErrorCode.INVALID_PUSH_TIME_ERROR; | ||
static FILE_DELETE_ERROR: ErrorCode.FILE_DELETE_ERROR; | ||
static REQUEST_LIMIT_EXCEEDED: ErrorCode.REQUEST_LIMIT_EXCEEDED; | ||
static INVALID_EVENT_NAME: ErrorCode.INVALID_EVENT_NAME; | ||
static USERNAME_MISSING: ErrorCode.USERNAME_MISSING; | ||
static PASSWORD_MISSING: ErrorCode.PASSWORD_MISSING; | ||
static USERNAME_TAKEN: ErrorCode.USERNAME_TAKEN; | ||
static EMAIL_TAKEN: ErrorCode.EMAIL_TAKEN; | ||
static EMAIL_MISSING: ErrorCode.EMAIL_MISSING; | ||
static EMAIL_NOT_FOUND: ErrorCode.EMAIL_NOT_FOUND; | ||
static SESSION_MISSING: ErrorCode.SESSION_MISSING; | ||
static MUST_CREATE_USER_THROUGH_SIGNUP: ErrorCode.MUST_CREATE_USER_THROUGH_SIGNUP; | ||
static ACCOUNT_ALREADY_LINKED: ErrorCode.ACCOUNT_ALREADY_LINKED; | ||
static INVALID_SESSION_TOKEN: ErrorCode.INVALID_SESSION_TOKEN; | ||
static LINKED_ID_MISSING: ErrorCode.LINKED_ID_MISSING; | ||
static INVALID_LINKED_SESSION: ErrorCode.INVALID_LINKED_SESSION; | ||
static UNSUPPORTED_SERVICE: ErrorCode.UNSUPPORTED_SERVICE; | ||
static AGGREGATE_ERROR: ErrorCode.AGGREGATE_ERROR; | ||
static FILE_READ_ERROR: ErrorCode.FILE_READ_ERROR; | ||
static X_DOMAIN_REQUEST: ErrorCode.X_DOMAIN_REQUEST; | ||
code: ErrorCode; | ||
message: string; | ||
code: ErrorCode; | ||
message: string; | ||
constructor(code: ErrorCode, message: string); | ||
constructor(code: ErrorCode, message: string); | ||
} | ||
/* | ||
* We need to inline the codes in order to make compilation work without this type definition as dependency. | ||
*/ | ||
const enum ErrorCode { | ||
OTHER_CAUSE = -1, | ||
INTERNAL_SERVER_ERROR = 1, | ||
CONNECTION_FAILED = 100, | ||
OBJECT_NOT_FOUND = 101, | ||
INVALID_QUERY = 102, | ||
INVALID_CLASS_NAME = 103, | ||
MISSING_OBJECT_ID = 104, | ||
INVALID_KEY_NAME = 105, | ||
INVALID_POINTER = 106, | ||
INVALID_JSON = 107, | ||
COMMAND_UNAVAILABLE = 108, | ||
NOT_INITIALIZED = 109, | ||
INCORRECT_TYPE = 111, | ||
INVALID_CHANNEL_NAME = 112, | ||
PUSH_MISCONFIGURED = 115, | ||
OBJECT_TOO_LARGE = 116, | ||
OPERATION_FORBIDDEN = 119, | ||
CACHE_MISS = 120, | ||
INVALID_NESTED_KEY = 121, | ||
INVALID_FILE_NAME = 122, | ||
INVALID_ACL = 123, | ||
TIMEOUT = 124, | ||
INVALID_EMAIL_ADDRESS = 125, | ||
MISSING_CONTENT_TYPE = 126, | ||
MISSING_CONTENT_LENGTH = 127, | ||
INVALID_CONTENT_LENGTH = 128, | ||
FILE_TOO_LARGE = 129, | ||
FILE_SAVE_ERROR = 130, | ||
DUPLICATE_VALUE = 137, | ||
INVALID_ROLE_NAME = 139, | ||
EXCEEDED_QUOTA = 140, | ||
SCRIPT_FAILED = 141, | ||
VALIDATION_ERROR = 142, | ||
INVALID_IMAGE_DATA = 150, | ||
UNSAVED_FILE_ERROR = 151, | ||
INVALID_PUSH_TIME_ERROR = 152, | ||
FILE_DELETE_ERROR = 153, | ||
REQUEST_LIMIT_EXCEEDED = 155, | ||
INVALID_EVENT_NAME = 160, | ||
USERNAME_MISSING = 200, | ||
PASSWORD_MISSING = 201, | ||
USERNAME_TAKEN = 202, | ||
EMAIL_TAKEN = 203, | ||
EMAIL_MISSING = 204, | ||
EMAIL_NOT_FOUND = 205, | ||
SESSION_MISSING = 206, | ||
MUST_CREATE_USER_THROUGH_SIGNUP = 207, | ||
ACCOUNT_ALREADY_LINKED = 208, | ||
INVALID_SESSION_TOKEN = 209, | ||
LINKED_ID_MISSING = 250, | ||
INVALID_LINKED_SESSION = 251, | ||
UNSUPPORTED_SERVICE = 252, | ||
AGGREGATE_ERROR = 600, | ||
FILE_READ_ERROR = 601, | ||
X_DOMAIN_REQUEST = 602 | ||
} | ||
/** | ||
@@ -984,0 +1033,0 @@ * @class |
{ | ||
"name": "@types/parse", | ||
"version": "2.2.9", | ||
"version": "2.2.10", | ||
"description": "TypeScript definitions for parse", | ||
@@ -88,4 +88,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "b1f2923331c21f0896ff1732677bd6e65f6c8245957bfda9765b6948beedf7f6", | ||
"typesPublisherContentHash": "9530796cf62d76729ad2717101f879af78b3e5245ee4972816fdd9cb01189003", | ||
"typeScriptVersion": "2.4" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 09 Sep 2019 12:51:50 GMT | ||
* Last updated: Fri, 27 Sep 2019 15:55:14 GMT | ||
* Dependencies: @types/node | ||
* Global values: Parse | ||
* Global values: ErrorCode, Parse | ||
# Credits | ||
These definitions were written by Ullisen Media Group <http://ullisenmedia.com>, David Poetzsch-Heffter <https://github.com/dpoetzsch>, Cedric Kemp <https://github.com/jaeggerr>, Flavio Negrão <https://github.com/flavionegrao>, Wes Grimes <https://github.com/wesleygrimes>, Otherwise SAS <https://github.com/owsas>, Andrew Goldis <https://github.com/agoldis>, Alexandre Hétu Rivard <https://github.com/AlexandreHetu>, Diamond Lewis <https://github.com/dplewis>, Jong Eun Lee <https://github.com/yomybaby>, Julien Quere <https://github.com/jlnquere>, Yago Tomé <https://github.com/yagotome>, Thibault MOCELLIN <https://github.com/tybi>, and Raschid JF Rafaelly <https://github.com/RaschidJFR>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48327
1019