parse 4.0.0-alpha.1 → 4.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +167 -25
- package/NOTICE +10 -0
- package/README.md +6 -5
- package/dist/parse.js +12838 -21190
- package/dist/parse.min.js +7 -6
- package/dist/parse.weapp.js +7921 -17062
- package/dist/parse.weapp.min.js +7 -6
- package/lib/browser/Analytics.js +2 -27
- package/lib/browser/AnonymousUtils.js +6 -42
- package/lib/browser/Cloud.js +12 -77
- package/lib/browser/CloudCode.js +0 -3
- package/lib/browser/CoreManager.js +46 -191
- package/lib/browser/CryptoController.js +2 -16
- package/lib/browser/EventEmitter.js +1 -8
- package/lib/browser/EventuallyQueue.js +277 -824
- package/lib/browser/FacebookUtils.js +6 -42
- package/lib/browser/IndexedDBStorageController.js +3 -14
- package/lib/browser/InstallationController.js +2 -20
- package/lib/browser/LiveQueryClient.js +105 -213
- package/lib/browser/LiveQuerySubscription.js +10 -39
- package/lib/browser/LocalDatastore.js +451 -1081
- package/lib/browser/LocalDatastoreController.js +145 -602
- package/lib/browser/LocalDatastoreController.react-native.js +137 -573
- package/lib/browser/LocalDatastoreUtils.js +2 -19
- package/lib/browser/ObjectStateMutations.js +18 -121
- package/lib/browser/OfflineQuery.js +61 -222
- package/lib/browser/Parse.js +12 -115
- package/lib/browser/ParseACL.js +33 -148
- package/lib/browser/ParseCLP.js +96 -314
- package/lib/browser/ParseConfig.js +18 -95
- package/lib/browser/ParseError.js +63 -99
- package/lib/browser/ParseFile.js +128 -685
- package/lib/browser/ParseGeoPoint.js +23 -89
- package/lib/browser/ParseHooks.js +1 -34
- package/lib/browser/ParseInstallation.js +4 -32
- package/lib/browser/ParseLiveQuery.js +96 -505
- package/lib/browser/ParseObject.js +665 -1845
- package/lib/browser/ParseOp.js +41 -287
- package/lib/browser/ParsePolygon.js +13 -70
- package/lib/browser/ParseQuery.js +403 -1504
- package/lib/browser/ParseRelation.js +12 -68
- package/lib/browser/ParseRole.js +13 -75
- package/lib/browser/ParseSchema.js +49 -208
- package/lib/browser/ParseSession.js +11 -69
- package/lib/browser/ParseUser.js +274 -1127
- package/lib/browser/Push.js +7 -50
- package/lib/browser/RESTController.js +28 -157
- package/lib/browser/SingleInstanceStateController.js +19 -144
- package/lib/browser/Socket.weapp.js +0 -10
- package/lib/browser/Storage.js +10 -80
- package/lib/browser/StorageController.browser.js +4 -24
- package/lib/browser/StorageController.default.js +4 -24
- package/lib/browser/StorageController.react-native.js +6 -40
- package/lib/browser/StorageController.weapp.js +5 -23
- package/lib/browser/TaskQueue.js +1 -29
- package/lib/browser/UniqueInstanceStateController.js +19 -149
- package/lib/browser/Xhr.weapp.js +0 -17
- package/lib/browser/arrayContainsObject.js +2 -23
- package/lib/browser/canBeSerialized.js +3 -40
- package/lib/browser/decode.js +3 -40
- package/lib/browser/encode.js +9 -77
- package/lib/browser/equals.js +2 -34
- package/lib/browser/escape.js +1 -15
- package/lib/browser/isRevocableSession.js +2 -18
- package/lib/browser/parseDate.js +2 -20
- package/lib/browser/promiseUtils.js +3 -21
- package/lib/browser/unique.js +3 -24
- package/lib/browser/unsavedChildren.js +6 -57
- package/lib/browser/uuid.js +3 -1
- package/lib/node/Analytics.js +1 -25
- package/lib/node/AnonymousUtils.js +5 -44
- package/lib/node/Cloud.js +10 -73
- package/lib/node/CloudCode.js +0 -3
- package/lib/node/CoreManager.js +47 -227
- package/lib/node/CryptoController.js +2 -16
- package/lib/node/EventEmitter.js +1 -8
- package/lib/node/EventuallyQueue.js +16 -123
- package/lib/node/FacebookUtils.js +5 -44
- package/lib/node/IndexedDBStorageController.js +3 -19
- package/lib/node/InstallationController.js +2 -22
- package/lib/node/LiveQueryClient.js +72 -154
- package/lib/node/LiveQuerySubscription.js +7 -26
- package/lib/node/LocalDatastore.js +19 -182
- package/lib/node/LocalDatastoreController.js +6 -45
- package/lib/node/LocalDatastoreController.react-native.js +6 -52
- package/lib/node/LocalDatastoreUtils.js +1 -13
- package/lib/node/ObjectStateMutations.js +13 -100
- package/lib/node/OfflineQuery.js +27 -151
- package/lib/node/Parse.js +11 -108
- package/lib/node/ParseACL.js +32 -157
- package/lib/node/ParseCLP.js +69 -269
- package/lib/node/ParseConfig.js +16 -91
- package/lib/node/ParseError.js +61 -74
- package/lib/node/ParseFile.js +49 -212
- package/lib/node/ParseGeoPoint.js +21 -89
- package/lib/node/ParseHooks.js +0 -35
- package/lib/node/ParseInstallation.js +1 -17
- package/lib/node/ParseLiveQuery.js +10 -43
- package/lib/node/ParseObject.js +229 -964
- package/lib/node/ParseOp.js +31 -262
- package/lib/node/ParsePolygon.js +12 -69
- package/lib/node/ParseQuery.js +169 -888
- package/lib/node/ParseRelation.js +11 -68
- package/lib/node/ParseRole.js +10 -64
- package/lib/node/ParseSchema.js +46 -229
- package/lib/node/ParseSession.js +8 -57
- package/lib/node/ParseUser.js +107 -583
- package/lib/node/Push.js +4 -44
- package/lib/node/RESTController.js +18 -127
- package/lib/node/SingleInstanceStateController.js +17 -137
- package/lib/node/Socket.weapp.js +0 -7
- package/lib/node/Storage.js +10 -90
- package/lib/node/StorageController.browser.js +4 -30
- package/lib/node/StorageController.default.js +5 -28
- package/lib/node/StorageController.react-native.js +6 -47
- package/lib/node/StorageController.weapp.js +6 -28
- package/lib/node/TaskQueue.js +1 -24
- package/lib/node/UniqueInstanceStateController.js +16 -140
- package/lib/node/Xhr.weapp.js +0 -15
- package/lib/node/arrayContainsObject.js +1 -19
- package/lib/node/canBeSerialized.js +2 -35
- package/lib/node/decode.js +1 -33
- package/lib/node/encode.js +3 -61
- package/lib/node/equals.js +0 -27
- package/lib/node/escape.js +1 -13
- package/lib/node/isRevocableSession.js +1 -12
- package/lib/node/parseDate.js +1 -14
- package/lib/node/promiseUtils.js +2 -14
- package/lib/node/unique.js +1 -18
- package/lib/node/unsavedChildren.js +2 -45
- package/lib/node/uuid.js +6 -1
- package/lib/react-native/Analytics.js +0 -9
- package/lib/react-native/AnonymousUtils.js +0 -10
- package/lib/react-native/Cloud.js +0 -26
- package/lib/react-native/CoreManager.js +2 -6
- package/lib/react-native/CryptoController.js +0 -2
- package/lib/react-native/EventEmitter.js +0 -2
- package/lib/react-native/EventuallyQueue.js +156 -711
- package/lib/react-native/FacebookUtils.js +0 -22
- package/lib/react-native/IndexedDBStorageController.js +0 -1
- package/lib/react-native/InstallationController.js +0 -6
- package/lib/react-native/LiveQueryClient.js +46 -157
- package/lib/react-native/LiveQuerySubscription.js +3 -27
- package/lib/react-native/LocalDatastore.js +281 -948
- package/lib/react-native/LocalDatastoreController.js +71 -552
- package/lib/react-native/LocalDatastoreController.react-native.js +91 -526
- package/lib/react-native/LocalDatastoreUtils.js +0 -1
- package/lib/react-native/ObjectStateMutations.js +2 -65
- package/lib/react-native/OfflineQuery.js +25 -196
- package/lib/react-native/Parse.js +0 -65
- package/lib/react-native/ParseACL.js +0 -44
- package/lib/react-native/ParseCLP.js +23 -161
- package/lib/react-native/ParseConfig.js +0 -42
- package/lib/react-native/ParseError.js +1 -21
- package/lib/react-native/ParseFile.js +55 -529
- package/lib/react-native/ParseGeoPoint.js +0 -17
- package/lib/react-native/ParseHooks.js +0 -30
- package/lib/react-native/ParseInstallation.js +1 -23
- package/lib/react-native/ParseLiveQuery.js +55 -472
- package/lib/react-native/ParseObject.js +245 -1246
- package/lib/react-native/ParseOp.js +1 -138
- package/lib/react-native/ParsePolygon.js +0 -24
- package/lib/react-native/ParseQuery.js +182 -874
- package/lib/react-native/ParseRelation.js +0 -25
- package/lib/react-native/ParseRole.js +1 -36
- package/lib/react-native/ParseSchema.js +3 -54
- package/lib/react-native/ParseSession.js +1 -40
- package/lib/react-native/ParseUser.js +95 -773
- package/lib/react-native/Push.js +0 -16
- package/lib/react-native/RESTController.js +12 -109
- package/lib/react-native/SingleInstanceStateController.js +0 -44
- package/lib/react-native/Socket.weapp.js +0 -10
- package/lib/react-native/Storage.js +0 -24
- package/lib/react-native/StorageController.browser.js +0 -2
- package/lib/react-native/StorageController.default.js +0 -1
- package/lib/react-native/StorageController.react-native.js +0 -2
- package/lib/react-native/TaskQueue.js +0 -15
- package/lib/react-native/UniqueInstanceStateController.js +0 -47
- package/lib/react-native/Xhr.weapp.js +0 -16
- package/lib/react-native/arrayContainsObject.js +0 -5
- package/lib/react-native/canBeSerialized.js +0 -18
- package/lib/react-native/decode.js +0 -21
- package/lib/react-native/encode.js +0 -25
- package/lib/react-native/equals.js +0 -18
- package/lib/react-native/escape.js +0 -1
- package/lib/react-native/isRevocableSession.js +0 -1
- package/lib/react-native/parseDate.js +0 -3
- package/lib/react-native/promiseUtils.js +0 -13
- package/lib/react-native/unique.js +0 -4
- package/lib/react-native/unsavedChildren.js +0 -21
- package/lib/react-native/uuid.js +3 -1
- package/lib/weapp/Analytics.js +2 -27
- package/lib/weapp/AnonymousUtils.js +6 -42
- package/lib/weapp/Cloud.js +12 -77
- package/lib/weapp/CloudCode.js +0 -3
- package/lib/weapp/CoreManager.js +46 -191
- package/lib/weapp/CryptoController.js +2 -16
- package/lib/weapp/EventEmitter.js +1 -8
- package/lib/weapp/EventuallyQueue.js +277 -824
- package/lib/weapp/FacebookUtils.js +6 -42
- package/lib/weapp/IndexedDBStorageController.js +3 -14
- package/lib/weapp/InstallationController.js +2 -20
- package/lib/weapp/LiveQueryClient.js +105 -213
- package/lib/weapp/LiveQuerySubscription.js +10 -39
- package/lib/weapp/LocalDatastore.js +451 -1081
- package/lib/weapp/LocalDatastoreController.js +145 -602
- package/lib/weapp/LocalDatastoreController.react-native.js +137 -573
- package/lib/weapp/LocalDatastoreUtils.js +2 -19
- package/lib/weapp/ObjectStateMutations.js +18 -121
- package/lib/weapp/OfflineQuery.js +61 -222
- package/lib/weapp/Parse.js +12 -115
- package/lib/weapp/ParseACL.js +33 -148
- package/lib/weapp/ParseCLP.js +96 -314
- package/lib/weapp/ParseConfig.js +18 -95
- package/lib/weapp/ParseError.js +63 -99
- package/lib/weapp/ParseFile.js +129 -686
- package/lib/weapp/ParseGeoPoint.js +23 -89
- package/lib/weapp/ParseHooks.js +1 -34
- package/lib/weapp/ParseInstallation.js +4 -32
- package/lib/weapp/ParseLiveQuery.js +96 -505
- package/lib/weapp/ParseObject.js +665 -1845
- package/lib/weapp/ParseOp.js +41 -287
- package/lib/weapp/ParsePolygon.js +13 -70
- package/lib/weapp/ParseQuery.js +403 -1504
- package/lib/weapp/ParseRelation.js +12 -68
- package/lib/weapp/ParseRole.js +13 -75
- package/lib/weapp/ParseSchema.js +49 -208
- package/lib/weapp/ParseSession.js +11 -69
- package/lib/weapp/ParseUser.js +274 -1127
- package/lib/weapp/Push.js +7 -50
- package/lib/weapp/RESTController.js +28 -157
- package/lib/weapp/SingleInstanceStateController.js +19 -144
- package/lib/weapp/Socket.weapp.js +0 -10
- package/lib/weapp/Storage.js +10 -80
- package/lib/weapp/StorageController.browser.js +4 -24
- package/lib/weapp/StorageController.default.js +4 -24
- package/lib/weapp/StorageController.react-native.js +6 -40
- package/lib/weapp/StorageController.weapp.js +5 -23
- package/lib/weapp/TaskQueue.js +1 -29
- package/lib/weapp/UniqueInstanceStateController.js +19 -149
- package/lib/weapp/Xhr.weapp.js +0 -17
- package/lib/weapp/arrayContainsObject.js +2 -23
- package/lib/weapp/canBeSerialized.js +3 -40
- package/lib/weapp/decode.js +3 -40
- package/lib/weapp/encode.js +9 -77
- package/lib/weapp/equals.js +2 -34
- package/lib/weapp/escape.js +1 -15
- package/lib/weapp/isRevocableSession.js +2 -18
- package/lib/weapp/parseDate.js +2 -20
- package/lib/weapp/promiseUtils.js +3 -21
- package/lib/weapp/unique.js +3 -24
- package/lib/weapp/unsavedChildren.js +6 -57
- package/lib/weapp/uuid.js +1 -6
- package/package.json +34 -30
- package/PATENTS +0 -37
package/lib/weapp/ParseError.js
CHANGED
|
@@ -1,56 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _Object$defineProperty2 = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
6
|
-
|
|
7
3
|
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
|
|
8
|
-
|
|
4
|
+
var _Object$defineProperty2 = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
9
6
|
_Object$defineProperty2(exports, "__esModule", {
|
|
10
7
|
value: true
|
|
11
8
|
});
|
|
12
|
-
|
|
13
9
|
exports.default = void 0;
|
|
14
|
-
|
|
15
10
|
var _defineProperty = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/define-property"));
|
|
16
|
-
|
|
17
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
|
|
18
|
-
|
|
19
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
|
|
20
|
-
|
|
21
13
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
|
|
22
|
-
|
|
23
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
|
|
24
|
-
|
|
25
15
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
|
|
26
|
-
|
|
27
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
|
|
28
|
-
|
|
29
17
|
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/wrapNativeSuper"));
|
|
30
|
-
|
|
31
18
|
function _createSuper(Derived) {
|
|
32
19
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
33
|
-
|
|
34
20
|
return function () {
|
|
35
21
|
var Super = (0, _getPrototypeOf2.default)(Derived),
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
result;
|
|
38
23
|
if (hasNativeReflectConstruct) {
|
|
39
24
|
var NewTarget = (0, _getPrototypeOf2.default)(this).constructor;
|
|
40
25
|
result = _Reflect$construct(Super, arguments, NewTarget);
|
|
41
26
|
} else {
|
|
42
27
|
result = Super.apply(this, arguments);
|
|
43
28
|
}
|
|
44
|
-
|
|
45
29
|
return (0, _possibleConstructorReturn2.default)(this, result);
|
|
46
30
|
};
|
|
47
31
|
}
|
|
48
|
-
|
|
49
32
|
function _isNativeReflectConstruct() {
|
|
50
33
|
if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
|
|
51
34
|
if (_Reflect$construct.sham) return false;
|
|
52
35
|
if (typeof Proxy === "function") return true;
|
|
53
|
-
|
|
54
36
|
try {
|
|
55
37
|
Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {}));
|
|
56
38
|
return true;
|
|
@@ -58,35 +40,20 @@ function _isNativeReflectConstruct() {
|
|
|
58
40
|
return false;
|
|
59
41
|
}
|
|
60
42
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Copyright (c) 2015-present, Parse, LLC.
|
|
63
|
-
* All rights reserved.
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the BSD-style license found in the
|
|
66
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
67
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
43
|
/**
|
|
71
44
|
* Constructs a new Parse.Error object with the given code and message.
|
|
72
45
|
*
|
|
73
46
|
* @alias Parse.Error
|
|
74
47
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
48
|
var ParseError = /*#__PURE__*/function (_Error) {
|
|
78
49
|
(0, _inherits2.default)(ParseError, _Error);
|
|
79
|
-
|
|
80
50
|
var _super = _createSuper(ParseError);
|
|
81
51
|
/**
|
|
82
52
|
* @param {number} code An error code constant from <code>Parse.Error</code>.
|
|
83
53
|
* @param {string} message A detailed description of the error.
|
|
84
54
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
55
|
function ParseError(code, message) {
|
|
88
56
|
var _this;
|
|
89
|
-
|
|
90
57
|
(0, _classCallCheck2.default)(this, ParseError);
|
|
91
58
|
_this = _super.call(this, message);
|
|
92
59
|
_this.code = code;
|
|
@@ -96,7 +63,6 @@ var ParseError = /*#__PURE__*/function (_Error) {
|
|
|
96
63
|
});
|
|
97
64
|
return _this;
|
|
98
65
|
}
|
|
99
|
-
|
|
100
66
|
(0, _createClass2.default)(ParseError, [{
|
|
101
67
|
key: "toString",
|
|
102
68
|
value: function () {
|
|
@@ -111,33 +77,32 @@ var ParseError = /*#__PURE__*/function (_Error) {
|
|
|
111
77
|
* @property {number} OTHER_CAUSE
|
|
112
78
|
* @static
|
|
113
79
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
116
80
|
ParseError.OTHER_CAUSE = -1;
|
|
81
|
+
|
|
117
82
|
/**
|
|
118
83
|
* Error code indicating that something has gone wrong with the server.
|
|
119
84
|
*
|
|
120
85
|
* @property {number} INTERNAL_SERVER_ERROR
|
|
121
86
|
* @static
|
|
122
87
|
*/
|
|
123
|
-
|
|
124
88
|
ParseError.INTERNAL_SERVER_ERROR = 1;
|
|
89
|
+
|
|
125
90
|
/**
|
|
126
91
|
* Error code indicating the connection to the Parse servers failed.
|
|
127
92
|
*
|
|
128
93
|
* @property {number} CONNECTION_FAILED
|
|
129
94
|
* @static
|
|
130
95
|
*/
|
|
131
|
-
|
|
132
96
|
ParseError.CONNECTION_FAILED = 100;
|
|
97
|
+
|
|
133
98
|
/**
|
|
134
99
|
* Error code indicating the specified object doesn't exist.
|
|
135
100
|
*
|
|
136
101
|
* @property {number} OBJECT_NOT_FOUND
|
|
137
102
|
* @static
|
|
138
103
|
*/
|
|
139
|
-
|
|
140
104
|
ParseError.OBJECT_NOT_FOUND = 101;
|
|
105
|
+
|
|
141
106
|
/**
|
|
142
107
|
* Error code indicating you tried to query with a datatype that doesn't
|
|
143
108
|
* support it, like exact matching an array or object.
|
|
@@ -145,8 +110,8 @@ ParseError.OBJECT_NOT_FOUND = 101;
|
|
|
145
110
|
* @property {number} INVALID_QUERY
|
|
146
111
|
* @static
|
|
147
112
|
*/
|
|
148
|
-
|
|
149
113
|
ParseError.INVALID_QUERY = 102;
|
|
114
|
+
|
|
150
115
|
/**
|
|
151
116
|
* Error code indicating a missing or invalid classname. Classnames are
|
|
152
117
|
* case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the
|
|
@@ -155,16 +120,16 @@ ParseError.INVALID_QUERY = 102;
|
|
|
155
120
|
* @property {number} INVALID_CLASS_NAME
|
|
156
121
|
* @static
|
|
157
122
|
*/
|
|
158
|
-
|
|
159
123
|
ParseError.INVALID_CLASS_NAME = 103;
|
|
124
|
+
|
|
160
125
|
/**
|
|
161
126
|
* Error code indicating an unspecified object id.
|
|
162
127
|
*
|
|
163
128
|
* @property {number} MISSING_OBJECT_ID
|
|
164
129
|
* @static
|
|
165
130
|
*/
|
|
166
|
-
|
|
167
131
|
ParseError.MISSING_OBJECT_ID = 104;
|
|
132
|
+
|
|
168
133
|
/**
|
|
169
134
|
* Error code indicating an invalid key name. Keys are case-sensitive. They
|
|
170
135
|
* must start with a letter, and a-zA-Z0-9_ are the only valid characters.
|
|
@@ -172,8 +137,8 @@ ParseError.MISSING_OBJECT_ID = 104;
|
|
|
172
137
|
* @property {number} INVALID_KEY_NAME
|
|
173
138
|
* @static
|
|
174
139
|
*/
|
|
175
|
-
|
|
176
140
|
ParseError.INVALID_KEY_NAME = 105;
|
|
141
|
+
|
|
177
142
|
/**
|
|
178
143
|
* Error code indicating a malformed pointer. You should not see this unless
|
|
179
144
|
* you have been mucking about changing internal Parse code.
|
|
@@ -181,8 +146,8 @@ ParseError.INVALID_KEY_NAME = 105;
|
|
|
181
146
|
* @property {number} INVALID_POINTER
|
|
182
147
|
* @static
|
|
183
148
|
*/
|
|
184
|
-
|
|
185
149
|
ParseError.INVALID_POINTER = 106;
|
|
150
|
+
|
|
186
151
|
/**
|
|
187
152
|
* Error code indicating that badly formed JSON was received upstream. This
|
|
188
153
|
* either indicates you have done something unusual with modifying how
|
|
@@ -191,8 +156,8 @@ ParseError.INVALID_POINTER = 106;
|
|
|
191
156
|
* @property {number} INVALID_JSON
|
|
192
157
|
* @static
|
|
193
158
|
*/
|
|
194
|
-
|
|
195
159
|
ParseError.INVALID_JSON = 107;
|
|
160
|
+
|
|
196
161
|
/**
|
|
197
162
|
* Error code indicating that the feature you tried to access is only
|
|
198
163
|
* available internally for testing purposes.
|
|
@@ -200,24 +165,24 @@ ParseError.INVALID_JSON = 107;
|
|
|
200
165
|
* @property {number} COMMAND_UNAVAILABLE
|
|
201
166
|
* @static
|
|
202
167
|
*/
|
|
203
|
-
|
|
204
168
|
ParseError.COMMAND_UNAVAILABLE = 108;
|
|
169
|
+
|
|
205
170
|
/**
|
|
206
171
|
* You must call Parse.initialize before using the Parse library.
|
|
207
172
|
*
|
|
208
173
|
* @property {number} NOT_INITIALIZED
|
|
209
174
|
* @static
|
|
210
175
|
*/
|
|
211
|
-
|
|
212
176
|
ParseError.NOT_INITIALIZED = 109;
|
|
177
|
+
|
|
213
178
|
/**
|
|
214
179
|
* Error code indicating that a field was set to an inconsistent type.
|
|
215
180
|
*
|
|
216
181
|
* @property {number} INCORRECT_TYPE
|
|
217
182
|
* @static
|
|
218
183
|
*/
|
|
219
|
-
|
|
220
184
|
ParseError.INCORRECT_TYPE = 111;
|
|
185
|
+
|
|
221
186
|
/**
|
|
222
187
|
* Error code indicating an invalid channel name. A channel name is either
|
|
223
188
|
* an empty string (the broadcast channel) or contains only a-zA-Z0-9_
|
|
@@ -226,40 +191,40 @@ ParseError.INCORRECT_TYPE = 111;
|
|
|
226
191
|
* @property {number} INVALID_CHANNEL_NAME
|
|
227
192
|
* @static
|
|
228
193
|
*/
|
|
229
|
-
|
|
230
194
|
ParseError.INVALID_CHANNEL_NAME = 112;
|
|
195
|
+
|
|
231
196
|
/**
|
|
232
197
|
* Error code indicating that push is misconfigured.
|
|
233
198
|
*
|
|
234
199
|
* @property {number} PUSH_MISCONFIGURED
|
|
235
200
|
* @static
|
|
236
201
|
*/
|
|
237
|
-
|
|
238
202
|
ParseError.PUSH_MISCONFIGURED = 115;
|
|
203
|
+
|
|
239
204
|
/**
|
|
240
205
|
* Error code indicating that the object is too large.
|
|
241
206
|
*
|
|
242
207
|
* @property {number} OBJECT_TOO_LARGE
|
|
243
208
|
* @static
|
|
244
209
|
*/
|
|
245
|
-
|
|
246
210
|
ParseError.OBJECT_TOO_LARGE = 116;
|
|
211
|
+
|
|
247
212
|
/**
|
|
248
213
|
* Error code indicating that the operation isn't allowed for clients.
|
|
249
214
|
*
|
|
250
215
|
* @property {number} OPERATION_FORBIDDEN
|
|
251
216
|
* @static
|
|
252
217
|
*/
|
|
253
|
-
|
|
254
218
|
ParseError.OPERATION_FORBIDDEN = 119;
|
|
219
|
+
|
|
255
220
|
/**
|
|
256
221
|
* Error code indicating the result was not found in the cache.
|
|
257
222
|
*
|
|
258
223
|
* @property {number} CACHE_MISS
|
|
259
224
|
* @static
|
|
260
225
|
*/
|
|
261
|
-
|
|
262
226
|
ParseError.CACHE_MISS = 120;
|
|
227
|
+
|
|
263
228
|
/**
|
|
264
229
|
* Error code indicating that an invalid key was used in a nested
|
|
265
230
|
* JSONObject.
|
|
@@ -267,8 +232,8 @@ ParseError.CACHE_MISS = 120;
|
|
|
267
232
|
* @property {number} INVALID_NESTED_KEY
|
|
268
233
|
* @static
|
|
269
234
|
*/
|
|
270
|
-
|
|
271
235
|
ParseError.INVALID_NESTED_KEY = 121;
|
|
236
|
+
|
|
272
237
|
/**
|
|
273
238
|
* Error code indicating that an invalid filename was used for ParseFile.
|
|
274
239
|
* A valid file name contains only a-zA-Z0-9_. characters and is between 1
|
|
@@ -277,16 +242,16 @@ ParseError.INVALID_NESTED_KEY = 121;
|
|
|
277
242
|
* @property {number} INVALID_FILE_NAME
|
|
278
243
|
* @static
|
|
279
244
|
*/
|
|
280
|
-
|
|
281
245
|
ParseError.INVALID_FILE_NAME = 122;
|
|
246
|
+
|
|
282
247
|
/**
|
|
283
248
|
* Error code indicating an invalid ACL was provided.
|
|
284
249
|
*
|
|
285
250
|
* @property {number} INVALID_ACL
|
|
286
251
|
* @static
|
|
287
252
|
*/
|
|
288
|
-
|
|
289
253
|
ParseError.INVALID_ACL = 123;
|
|
254
|
+
|
|
290
255
|
/**
|
|
291
256
|
* Error code indicating that the request timed out on the server. Typically
|
|
292
257
|
* this indicates that the request is too expensive to run.
|
|
@@ -294,56 +259,56 @@ ParseError.INVALID_ACL = 123;
|
|
|
294
259
|
* @property {number} TIMEOUT
|
|
295
260
|
* @static
|
|
296
261
|
*/
|
|
297
|
-
|
|
298
262
|
ParseError.TIMEOUT = 124;
|
|
263
|
+
|
|
299
264
|
/**
|
|
300
265
|
* Error code indicating that the email address was invalid.
|
|
301
266
|
*
|
|
302
267
|
* @property {number} INVALID_EMAIL_ADDRESS
|
|
303
268
|
* @static
|
|
304
269
|
*/
|
|
305
|
-
|
|
306
270
|
ParseError.INVALID_EMAIL_ADDRESS = 125;
|
|
271
|
+
|
|
307
272
|
/**
|
|
308
273
|
* Error code indicating a missing content type.
|
|
309
274
|
*
|
|
310
275
|
* @property {number} MISSING_CONTENT_TYPE
|
|
311
276
|
* @static
|
|
312
277
|
*/
|
|
313
|
-
|
|
314
278
|
ParseError.MISSING_CONTENT_TYPE = 126;
|
|
279
|
+
|
|
315
280
|
/**
|
|
316
281
|
* Error code indicating a missing content length.
|
|
317
282
|
*
|
|
318
283
|
* @property {number} MISSING_CONTENT_LENGTH
|
|
319
284
|
* @static
|
|
320
285
|
*/
|
|
321
|
-
|
|
322
286
|
ParseError.MISSING_CONTENT_LENGTH = 127;
|
|
287
|
+
|
|
323
288
|
/**
|
|
324
289
|
* Error code indicating an invalid content length.
|
|
325
290
|
*
|
|
326
291
|
* @property {number} INVALID_CONTENT_LENGTH
|
|
327
292
|
* @static
|
|
328
293
|
*/
|
|
329
|
-
|
|
330
294
|
ParseError.INVALID_CONTENT_LENGTH = 128;
|
|
295
|
+
|
|
331
296
|
/**
|
|
332
297
|
* Error code indicating a file that was too large.
|
|
333
298
|
*
|
|
334
299
|
* @property {number} FILE_TOO_LARGE
|
|
335
300
|
* @static
|
|
336
301
|
*/
|
|
337
|
-
|
|
338
302
|
ParseError.FILE_TOO_LARGE = 129;
|
|
303
|
+
|
|
339
304
|
/**
|
|
340
305
|
* Error code indicating an error saving a file.
|
|
341
306
|
*
|
|
342
307
|
* @property {number} FILE_SAVE_ERROR
|
|
343
308
|
* @static
|
|
344
309
|
*/
|
|
345
|
-
|
|
346
310
|
ParseError.FILE_SAVE_ERROR = 130;
|
|
311
|
+
|
|
347
312
|
/**
|
|
348
313
|
* Error code indicating that a unique field was given a value that is
|
|
349
314
|
* already taken.
|
|
@@ -351,16 +316,16 @@ ParseError.FILE_SAVE_ERROR = 130;
|
|
|
351
316
|
* @property {number} DUPLICATE_VALUE
|
|
352
317
|
* @static
|
|
353
318
|
*/
|
|
354
|
-
|
|
355
319
|
ParseError.DUPLICATE_VALUE = 137;
|
|
320
|
+
|
|
356
321
|
/**
|
|
357
322
|
* Error code indicating that a role's name is invalid.
|
|
358
323
|
*
|
|
359
324
|
* @property {number} INVALID_ROLE_NAME
|
|
360
325
|
* @static
|
|
361
326
|
*/
|
|
362
|
-
|
|
363
327
|
ParseError.INVALID_ROLE_NAME = 139;
|
|
328
|
+
|
|
364
329
|
/**
|
|
365
330
|
* Error code indicating that an application quota was exceeded. Upgrade to
|
|
366
331
|
* resolve.
|
|
@@ -368,64 +333,64 @@ ParseError.INVALID_ROLE_NAME = 139;
|
|
|
368
333
|
* @property {number} EXCEEDED_QUOTA
|
|
369
334
|
* @static
|
|
370
335
|
*/
|
|
371
|
-
|
|
372
336
|
ParseError.EXCEEDED_QUOTA = 140;
|
|
337
|
+
|
|
373
338
|
/**
|
|
374
339
|
* Error code indicating that a Cloud Code script failed.
|
|
375
340
|
*
|
|
376
341
|
* @property {number} SCRIPT_FAILED
|
|
377
342
|
* @static
|
|
378
343
|
*/
|
|
379
|
-
|
|
380
344
|
ParseError.SCRIPT_FAILED = 141;
|
|
345
|
+
|
|
381
346
|
/**
|
|
382
347
|
* Error code indicating that a Cloud Code validation failed.
|
|
383
348
|
*
|
|
384
349
|
* @property {number} VALIDATION_ERROR
|
|
385
350
|
* @static
|
|
386
351
|
*/
|
|
387
|
-
|
|
388
352
|
ParseError.VALIDATION_ERROR = 142;
|
|
353
|
+
|
|
389
354
|
/**
|
|
390
355
|
* Error code indicating that invalid image data was provided.
|
|
391
356
|
*
|
|
392
357
|
* @property {number} INVALID_IMAGE_DATA
|
|
393
358
|
* @static
|
|
394
359
|
*/
|
|
395
|
-
|
|
396
360
|
ParseError.INVALID_IMAGE_DATA = 143;
|
|
361
|
+
|
|
397
362
|
/**
|
|
398
363
|
* Error code indicating an unsaved file.
|
|
399
364
|
*
|
|
400
365
|
* @property {number} UNSAVED_FILE_ERROR
|
|
401
366
|
* @static
|
|
402
367
|
*/
|
|
403
|
-
|
|
404
368
|
ParseError.UNSAVED_FILE_ERROR = 151;
|
|
369
|
+
|
|
405
370
|
/**
|
|
406
371
|
* Error code indicating an invalid push time.
|
|
407
372
|
*
|
|
408
373
|
* @property {number} INVALID_PUSH_TIME_ERROR
|
|
409
374
|
* @static
|
|
410
375
|
*/
|
|
411
|
-
|
|
412
376
|
ParseError.INVALID_PUSH_TIME_ERROR = 152;
|
|
377
|
+
|
|
413
378
|
/**
|
|
414
379
|
* Error code indicating an error deleting a file.
|
|
415
380
|
*
|
|
416
381
|
* @property {number} FILE_DELETE_ERROR
|
|
417
382
|
* @static
|
|
418
383
|
*/
|
|
419
|
-
|
|
420
384
|
ParseError.FILE_DELETE_ERROR = 153;
|
|
385
|
+
|
|
421
386
|
/**
|
|
422
387
|
* Error code indicating an error deleting an unnamed file.
|
|
423
388
|
*
|
|
424
389
|
* @property {number} FILE_DELETE_UNNAMED_ERROR
|
|
425
390
|
* @static
|
|
426
391
|
*/
|
|
427
|
-
|
|
428
392
|
ParseError.FILE_DELETE_UNNAMED_ERROR = 161;
|
|
393
|
+
|
|
429
394
|
/**
|
|
430
395
|
* Error code indicating that the application has exceeded its request
|
|
431
396
|
* limit.
|
|
@@ -433,8 +398,8 @@ ParseError.FILE_DELETE_UNNAMED_ERROR = 161;
|
|
|
433
398
|
* @property {number} REQUEST_LIMIT_EXCEEDED
|
|
434
399
|
* @static
|
|
435
400
|
*/
|
|
436
|
-
|
|
437
401
|
ParseError.REQUEST_LIMIT_EXCEEDED = 155;
|
|
402
|
+
|
|
438
403
|
/**
|
|
439
404
|
* Error code indicating that the request was a duplicate and has been discarded due to
|
|
440
405
|
* idempotency rules.
|
|
@@ -442,72 +407,72 @@ ParseError.REQUEST_LIMIT_EXCEEDED = 155;
|
|
|
442
407
|
* @property {number} DUPLICATE_REQUEST
|
|
443
408
|
* @static
|
|
444
409
|
*/
|
|
445
|
-
|
|
446
410
|
ParseError.DUPLICATE_REQUEST = 159;
|
|
411
|
+
|
|
447
412
|
/**
|
|
448
413
|
* Error code indicating an invalid event name.
|
|
449
414
|
*
|
|
450
415
|
* @property {number} INVALID_EVENT_NAME
|
|
451
416
|
* @static
|
|
452
417
|
*/
|
|
453
|
-
|
|
454
418
|
ParseError.INVALID_EVENT_NAME = 160;
|
|
419
|
+
|
|
455
420
|
/**
|
|
456
421
|
* Error code indicating that a field had an invalid value.
|
|
457
422
|
*
|
|
458
423
|
* @property {number} INVALID_VALUE
|
|
459
424
|
* @static
|
|
460
425
|
*/
|
|
461
|
-
|
|
462
426
|
ParseError.INVALID_VALUE = 162;
|
|
427
|
+
|
|
463
428
|
/**
|
|
464
429
|
* Error code indicating that the username is missing or empty.
|
|
465
430
|
*
|
|
466
431
|
* @property {number} USERNAME_MISSING
|
|
467
432
|
* @static
|
|
468
433
|
*/
|
|
469
|
-
|
|
470
434
|
ParseError.USERNAME_MISSING = 200;
|
|
435
|
+
|
|
471
436
|
/**
|
|
472
437
|
* Error code indicating that the password is missing or empty.
|
|
473
438
|
*
|
|
474
439
|
* @property {number} PASSWORD_MISSING
|
|
475
440
|
* @static
|
|
476
441
|
*/
|
|
477
|
-
|
|
478
442
|
ParseError.PASSWORD_MISSING = 201;
|
|
443
|
+
|
|
479
444
|
/**
|
|
480
445
|
* Error code indicating that the username has already been taken.
|
|
481
446
|
*
|
|
482
447
|
* @property {number} USERNAME_TAKEN
|
|
483
448
|
* @static
|
|
484
449
|
*/
|
|
485
|
-
|
|
486
450
|
ParseError.USERNAME_TAKEN = 202;
|
|
451
|
+
|
|
487
452
|
/**
|
|
488
453
|
* Error code indicating that the email has already been taken.
|
|
489
454
|
*
|
|
490
455
|
* @property {number} EMAIL_TAKEN
|
|
491
456
|
* @static
|
|
492
457
|
*/
|
|
493
|
-
|
|
494
458
|
ParseError.EMAIL_TAKEN = 203;
|
|
459
|
+
|
|
495
460
|
/**
|
|
496
461
|
* Error code indicating that the email is missing, but must be specified.
|
|
497
462
|
*
|
|
498
463
|
* @property {number} EMAIL_MISSING
|
|
499
464
|
* @static
|
|
500
465
|
*/
|
|
501
|
-
|
|
502
466
|
ParseError.EMAIL_MISSING = 204;
|
|
467
|
+
|
|
503
468
|
/**
|
|
504
469
|
* Error code indicating that a user with the specified email was not found.
|
|
505
470
|
*
|
|
506
471
|
* @property {number} EMAIL_NOT_FOUND
|
|
507
472
|
* @static
|
|
508
473
|
*/
|
|
509
|
-
|
|
510
474
|
ParseError.EMAIL_NOT_FOUND = 205;
|
|
475
|
+
|
|
511
476
|
/**
|
|
512
477
|
* Error code indicating that a user object without a valid session could
|
|
513
478
|
* not be altered.
|
|
@@ -515,16 +480,16 @@ ParseError.EMAIL_NOT_FOUND = 205;
|
|
|
515
480
|
* @property {number} SESSION_MISSING
|
|
516
481
|
* @static
|
|
517
482
|
*/
|
|
518
|
-
|
|
519
483
|
ParseError.SESSION_MISSING = 206;
|
|
484
|
+
|
|
520
485
|
/**
|
|
521
486
|
* Error code indicating that a user can only be created through signup.
|
|
522
487
|
*
|
|
523
488
|
* @property {number} MUST_CREATE_USER_THROUGH_SIGNUP
|
|
524
489
|
* @static
|
|
525
490
|
*/
|
|
526
|
-
|
|
527
491
|
ParseError.MUST_CREATE_USER_THROUGH_SIGNUP = 207;
|
|
492
|
+
|
|
528
493
|
/**
|
|
529
494
|
* Error code indicating that an an account being linked is already linked
|
|
530
495
|
* to another user.
|
|
@@ -532,32 +497,32 @@ ParseError.MUST_CREATE_USER_THROUGH_SIGNUP = 207;
|
|
|
532
497
|
* @property {number} ACCOUNT_ALREADY_LINKED
|
|
533
498
|
* @static
|
|
534
499
|
*/
|
|
535
|
-
|
|
536
500
|
ParseError.ACCOUNT_ALREADY_LINKED = 208;
|
|
501
|
+
|
|
537
502
|
/**
|
|
538
503
|
* Error code indicating that the current session token is invalid.
|
|
539
504
|
*
|
|
540
505
|
* @property {number} INVALID_SESSION_TOKEN
|
|
541
506
|
* @static
|
|
542
507
|
*/
|
|
543
|
-
|
|
544
508
|
ParseError.INVALID_SESSION_TOKEN = 209;
|
|
509
|
+
|
|
545
510
|
/**
|
|
546
511
|
* Error code indicating an error enabling or verifying MFA
|
|
547
512
|
*
|
|
548
513
|
* @property {number} MFA_ERROR
|
|
549
514
|
* @static
|
|
550
515
|
*/
|
|
551
|
-
|
|
552
516
|
ParseError.MFA_ERROR = 210;
|
|
517
|
+
|
|
553
518
|
/**
|
|
554
519
|
* Error code indicating that a valid MFA token must be provided
|
|
555
520
|
*
|
|
556
521
|
* @property {number} MFA_TOKEN_REQUIRED
|
|
557
522
|
* @static
|
|
558
523
|
*/
|
|
559
|
-
|
|
560
524
|
ParseError.MFA_TOKEN_REQUIRED = 211;
|
|
525
|
+
|
|
561
526
|
/**
|
|
562
527
|
* Error code indicating that a user cannot be linked to an account because
|
|
563
528
|
* that account's id could not be found.
|
|
@@ -565,8 +530,8 @@ ParseError.MFA_TOKEN_REQUIRED = 211;
|
|
|
565
530
|
* @property {number} LINKED_ID_MISSING
|
|
566
531
|
* @static
|
|
567
532
|
*/
|
|
568
|
-
|
|
569
533
|
ParseError.LINKED_ID_MISSING = 250;
|
|
534
|
+
|
|
570
535
|
/**
|
|
571
536
|
* Error code indicating that a user with a linked (e.g. Facebook) account
|
|
572
537
|
* has an invalid session.
|
|
@@ -574,8 +539,8 @@ ParseError.LINKED_ID_MISSING = 250;
|
|
|
574
539
|
* @property {number} INVALID_LINKED_SESSION
|
|
575
540
|
* @static
|
|
576
541
|
*/
|
|
577
|
-
|
|
578
542
|
ParseError.INVALID_LINKED_SESSION = 251;
|
|
543
|
+
|
|
579
544
|
/**
|
|
580
545
|
* Error code indicating that a service being linked (e.g. Facebook or
|
|
581
546
|
* Twitter) is unsupported.
|
|
@@ -583,16 +548,16 @@ ParseError.INVALID_LINKED_SESSION = 251;
|
|
|
583
548
|
* @property {number} UNSUPPORTED_SERVICE
|
|
584
549
|
* @static
|
|
585
550
|
*/
|
|
586
|
-
|
|
587
551
|
ParseError.UNSUPPORTED_SERVICE = 252;
|
|
552
|
+
|
|
588
553
|
/**
|
|
589
554
|
* Error code indicating an invalid operation occured on schema
|
|
590
555
|
*
|
|
591
556
|
* @property {number} INVALID_SCHEMA_OPERATION
|
|
592
557
|
* @static
|
|
593
558
|
*/
|
|
594
|
-
|
|
595
559
|
ParseError.INVALID_SCHEMA_OPERATION = 255;
|
|
560
|
+
|
|
596
561
|
/**
|
|
597
562
|
* Error code indicating that there were multiple errors. Aggregate errors
|
|
598
563
|
* have an "errors" property, which is an array of error objects with more
|
|
@@ -601,16 +566,16 @@ ParseError.INVALID_SCHEMA_OPERATION = 255;
|
|
|
601
566
|
* @property {number} AGGREGATE_ERROR
|
|
602
567
|
* @static
|
|
603
568
|
*/
|
|
604
|
-
|
|
605
569
|
ParseError.AGGREGATE_ERROR = 600;
|
|
570
|
+
|
|
606
571
|
/**
|
|
607
572
|
* Error code indicating the client was unable to read an input file.
|
|
608
573
|
*
|
|
609
574
|
* @property {number} FILE_READ_ERROR
|
|
610
575
|
* @static
|
|
611
576
|
*/
|
|
612
|
-
|
|
613
577
|
ParseError.FILE_READ_ERROR = 601;
|
|
578
|
+
|
|
614
579
|
/**
|
|
615
580
|
* Error code indicating a real error code is unavailable because
|
|
616
581
|
* we had to use an XDomainRequest object to allow CORS requests in
|
|
@@ -620,7 +585,6 @@ ParseError.FILE_READ_ERROR = 601;
|
|
|
620
585
|
* @property {number} X_DOMAIN_REQUEST
|
|
621
586
|
* @static
|
|
622
587
|
*/
|
|
623
|
-
|
|
624
588
|
ParseError.X_DOMAIN_REQUEST = 602;
|
|
625
589
|
var _default = ParseError;
|
|
626
590
|
exports.default = _default;
|