parse 4.0.1-beta.1 → 4.1.0-alpha.1

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