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