parse 4.0.1 → 4.1.0-alpha.2

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