parse 6.1.0-alpha.2 → 6.1.0

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 (174) hide show
  1. package/README.md +0 -8
  2. package/dist/parse.js +27 -47
  3. package/dist/parse.min.js +2 -2
  4. package/dist/parse.weapp.js +27 -47
  5. package/dist/parse.weapp.min.js +2 -2
  6. package/lib/browser/CoreManager.js +1 -2
  7. package/lib/browser/CryptoController.js +0 -1
  8. package/lib/browser/EventEmitter.js +0 -1
  9. package/lib/browser/EventuallyQueue.js +0 -1
  10. package/lib/browser/IndexedDBStorageController.js +0 -1
  11. package/lib/browser/InstallationController.js +0 -1
  12. package/lib/browser/LocalDatastore.js +0 -1
  13. package/lib/browser/LocalDatastoreController.default.js +0 -1
  14. package/lib/browser/LocalDatastoreController.js +0 -1
  15. package/lib/browser/LocalDatastoreController.react-native.js +0 -1
  16. package/lib/browser/OfflineQuery.js +0 -1
  17. package/lib/browser/ParseInstallation.js +0 -1
  18. package/lib/browser/ParseQuery.js +19 -17
  19. package/lib/browser/RESTController.js +4 -3
  20. package/lib/browser/Socket.weapp.js +0 -1
  21. package/lib/browser/Storage.js +0 -1
  22. package/lib/browser/StorageController.browser.js +0 -1
  23. package/lib/browser/StorageController.default.js +0 -1
  24. package/lib/browser/StorageController.js +0 -1
  25. package/lib/browser/StorageController.react-native.js +0 -1
  26. package/lib/browser/StorageController.weapp.js +0 -1
  27. package/lib/browser/TaskQueue.js +0 -1
  28. package/lib/browser/WebSocketController.js +0 -1
  29. package/lib/browser/Xhr.weapp.js +0 -1
  30. package/lib/browser/uuid.js +0 -1
  31. package/lib/node/CoreManager.js +1 -2
  32. package/lib/node/CryptoController.js +0 -1
  33. package/lib/node/EventEmitter.js +0 -1
  34. package/lib/node/EventuallyQueue.js +0 -1
  35. package/lib/node/IndexedDBStorageController.js +0 -1
  36. package/lib/node/InstallationController.js +0 -1
  37. package/lib/node/LocalDatastore.js +0 -1
  38. package/lib/node/LocalDatastoreController.default.js +0 -1
  39. package/lib/node/LocalDatastoreController.js +0 -1
  40. package/lib/node/LocalDatastoreController.react-native.js +0 -1
  41. package/lib/node/OfflineQuery.js +0 -1
  42. package/lib/node/ParseInstallation.js +0 -1
  43. package/lib/node/RESTController.js +0 -1
  44. package/lib/node/Socket.weapp.js +0 -1
  45. package/lib/node/Storage.js +0 -1
  46. package/lib/node/StorageController.browser.js +0 -1
  47. package/lib/node/StorageController.default.js +0 -1
  48. package/lib/node/StorageController.js +0 -1
  49. package/lib/node/StorageController.react-native.js +0 -1
  50. package/lib/node/StorageController.weapp.js +0 -1
  51. package/lib/node/TaskQueue.js +0 -1
  52. package/lib/node/WebSocketController.js +0 -1
  53. package/lib/node/Xhr.weapp.js +0 -1
  54. package/lib/node/uuid.js +0 -1
  55. package/lib/react-native/CoreManager.js +1 -2
  56. package/lib/react-native/CryptoController.js +0 -1
  57. package/lib/react-native/EventEmitter.js +0 -1
  58. package/lib/react-native/EventuallyQueue.js +0 -1
  59. package/lib/react-native/IndexedDBStorageController.js +0 -1
  60. package/lib/react-native/InstallationController.js +0 -1
  61. package/lib/react-native/LocalDatastore.js +0 -1
  62. package/lib/react-native/LocalDatastoreController.default.js +0 -1
  63. package/lib/react-native/LocalDatastoreController.js +0 -1
  64. package/lib/react-native/LocalDatastoreController.react-native.js +0 -1
  65. package/lib/react-native/OfflineQuery.js +0 -1
  66. package/lib/react-native/ParseInstallation.js +0 -1
  67. package/lib/react-native/RESTController.js +0 -1
  68. package/lib/react-native/Socket.weapp.js +0 -1
  69. package/lib/react-native/Storage.js +0 -1
  70. package/lib/react-native/StorageController.browser.js +0 -1
  71. package/lib/react-native/StorageController.default.js +0 -1
  72. package/lib/react-native/StorageController.js +0 -1
  73. package/lib/react-native/StorageController.react-native.js +0 -1
  74. package/lib/react-native/StorageController.weapp.js +0 -1
  75. package/lib/react-native/TaskQueue.js +0 -1
  76. package/lib/react-native/WebSocketController.js +0 -1
  77. package/lib/react-native/Xhr.weapp.js +0 -1
  78. package/lib/react-native/uuid.js +0 -1
  79. package/lib/weapp/CoreManager.js +1 -2
  80. package/lib/weapp/CryptoController.js +0 -1
  81. package/lib/weapp/EventEmitter.js +0 -1
  82. package/lib/weapp/EventuallyQueue.js +0 -1
  83. package/lib/weapp/IndexedDBStorageController.js +0 -1
  84. package/lib/weapp/InstallationController.js +0 -1
  85. package/lib/weapp/LocalDatastore.js +0 -1
  86. package/lib/weapp/LocalDatastoreController.default.js +0 -1
  87. package/lib/weapp/LocalDatastoreController.js +0 -1
  88. package/lib/weapp/LocalDatastoreController.react-native.js +0 -1
  89. package/lib/weapp/OfflineQuery.js +0 -1
  90. package/lib/weapp/ParseInstallation.js +0 -1
  91. package/lib/weapp/ParseQuery.js +19 -17
  92. package/lib/weapp/RESTController.js +4 -3
  93. package/lib/weapp/Socket.weapp.js +0 -1
  94. package/lib/weapp/Storage.js +0 -1
  95. package/lib/weapp/StorageController.browser.js +0 -1
  96. package/lib/weapp/StorageController.default.js +0 -1
  97. package/lib/weapp/StorageController.js +0 -1
  98. package/lib/weapp/StorageController.react-native.js +0 -1
  99. package/lib/weapp/StorageController.weapp.js +0 -1
  100. package/lib/weapp/TaskQueue.js +0 -1
  101. package/lib/weapp/WebSocketController.js +0 -1
  102. package/lib/weapp/Xhr.weapp.js +0 -1
  103. package/lib/weapp/uuid.js +0 -1
  104. package/package.json +11 -9
  105. package/types/Analytics.d.ts +42 -0
  106. package/types/AnonymousUtils.d.ts +84 -0
  107. package/types/Cloud.d.ts +65 -0
  108. package/types/CloudCode.d.ts +307 -0
  109. package/types/CoreManager.d.ts +325 -0
  110. package/types/CryptoController.d.ts +5 -0
  111. package/types/EventEmitter.d.ts +5 -0
  112. package/types/EventuallyQueue.d.ts +168 -0
  113. package/types/FacebookUtils.d.ts +107 -0
  114. package/types/IndexedDBStorageController.d.ts +2 -0
  115. package/types/InstallationController.d.ts +10 -0
  116. package/types/LiveQueryClient.d.ts +128 -0
  117. package/types/LiveQuerySubscription.d.ts +103 -0
  118. package/types/LocalDatastore.d.ts +56 -0
  119. package/types/LocalDatastoreController.d.ts +2 -0
  120. package/types/LocalDatastoreController.default.d.ts +9 -0
  121. package/types/LocalDatastoreController.react-native.d.ts +9 -0
  122. package/types/LocalDatastoreUtils.d.ts +5 -0
  123. package/types/ObjectStateMutations.d.ts +28 -0
  124. package/types/OfflineQuery.d.ts +20 -0
  125. package/types/Parse.d.ts +633 -0
  126. package/types/ParseACL.d.ts +141 -0
  127. package/types/ParseCLP.d.ts +293 -0
  128. package/types/ParseConfig.d.ts +77 -0
  129. package/types/ParseError.d.ts +476 -0
  130. package/types/ParseFile.d.ts +192 -0
  131. package/types/ParseGeoPoint.d.ts +104 -0
  132. package/types/ParseHooks.d.ts +27 -0
  133. package/types/ParseInstallation.d.ts +179 -0
  134. package/types/ParseLiveQuery.d.ts +48 -0
  135. package/types/ParseObject.d.ts +1072 -0
  136. package/types/ParseOp.d.ts +78 -0
  137. package/types/ParsePolygon.d.ts +69 -0
  138. package/types/ParseQuery.d.ts +961 -0
  139. package/types/ParseRelation.d.ts +56 -0
  140. package/types/ParseRole.d.ts +79 -0
  141. package/types/ParseSchema.d.ts +286 -0
  142. package/types/ParseSession.d.ts +45 -0
  143. package/types/ParseUser.d.ts +517 -0
  144. package/types/Push.d.ts +62 -0
  145. package/types/RESTController.d.ts +35 -0
  146. package/types/SingleInstanceStateController.d.ts +24 -0
  147. package/types/Socket.weapp.d.ts +10 -0
  148. package/types/Storage.d.ts +14 -0
  149. package/types/StorageController.browser.d.ts +9 -0
  150. package/types/StorageController.d.ts +2 -0
  151. package/types/StorageController.default.d.ts +9 -0
  152. package/types/StorageController.react-native.d.ts +11 -0
  153. package/types/StorageController.weapp.d.ts +9 -0
  154. package/types/TaskQueue.d.ts +11 -0
  155. package/types/UniqueInstanceStateController.d.ts +20 -0
  156. package/types/WebSocketController.d.ts +2 -0
  157. package/types/Xhr.weapp.d.ts +29 -0
  158. package/types/arrayContainsObject.d.ts +2 -0
  159. package/types/canBeSerialized.d.ts +2 -0
  160. package/types/decode.d.ts +1 -0
  161. package/types/encode.d.ts +1 -0
  162. package/types/equals.d.ts +1 -0
  163. package/types/escape.d.ts +1 -0
  164. package/types/index.d.ts +66 -0
  165. package/types/isRevocableSession.d.ts +1 -0
  166. package/types/node.d.ts +3 -0
  167. package/types/parseDate.d.ts +1 -0
  168. package/types/promiseUtils.d.ts +9 -0
  169. package/types/react-native.d.ts +3 -0
  170. package/types/tests.ts +2256 -0
  171. package/types/tsconfig.json +25 -0
  172. package/types/unique.d.ts +1 -0
  173. package/types/unsavedChildren.d.ts +11 -0
  174. package/types/uuid.d.ts +2 -0
@@ -0,0 +1,11 @@
1
+ declare const StorageController: {
2
+ async: number;
3
+ getItemAsync(path: string): Promise<string | null>;
4
+ setItemAsync(path: string, value: string): Promise<void>;
5
+ removeItemAsync(path: string): Promise<void>;
6
+ getAllKeysAsync(): Promise<readonly string[]>;
7
+ multiGet(keys: Array<string>): Promise<readonly [string, string | null][] | null>;
8
+ multiRemove(keys: Array<string>): Promise<Array<string>>;
9
+ clear(): Promise<void>;
10
+ };
11
+ export default StorageController;
@@ -0,0 +1,9 @@
1
+ declare const StorageController: {
2
+ async: number;
3
+ getItem(path: string): string | null;
4
+ setItem(path: string, value: string): void;
5
+ removeItem(path: string): void;
6
+ getAllKeys(): any;
7
+ clear(): void;
8
+ };
9
+ export default StorageController;
@@ -0,0 +1,11 @@
1
+ type Task = {
2
+ task: () => Promise<void>;
3
+ _completion: any;
4
+ };
5
+ declare class TaskQueue {
6
+ queue: Array<Task>;
7
+ constructor();
8
+ enqueue(task: () => Promise<void>): Promise<void>;
9
+ _dequeue(): void;
10
+ }
11
+ export default TaskQueue;
@@ -0,0 +1,20 @@
1
+ import type { Op } from './ParseOp';
2
+ import type ParseObject from './ParseObject';
3
+ import type { AttributeMap, ObjectCache, OpsMap, State } from './ObjectStateMutations';
4
+ export declare function getState(obj: ParseObject): State | null;
5
+ export declare function initializeState(obj: ParseObject, initial?: State): State;
6
+ export declare function removeState(obj: ParseObject): State | null;
7
+ export declare function getServerData(obj: ParseObject): AttributeMap;
8
+ export declare function setServerData(obj: ParseObject, attributes: AttributeMap): void;
9
+ export declare function getPendingOps(obj: ParseObject): Array<OpsMap>;
10
+ export declare function setPendingOp(obj: ParseObject, attr: string, op?: Op): void;
11
+ export declare function pushPendingState(obj: ParseObject): void;
12
+ export declare function popPendingState(obj: ParseObject): OpsMap;
13
+ export declare function mergeFirstPendingState(obj: ParseObject): void;
14
+ export declare function getObjectCache(obj: ParseObject): ObjectCache;
15
+ export declare function estimateAttribute(obj: ParseObject, attr: string): any;
16
+ export declare function estimateAttributes(obj: ParseObject): AttributeMap;
17
+ export declare function commitServerChanges(obj: ParseObject, changes: AttributeMap): void;
18
+ export declare function enqueueTask(obj: ParseObject, task: () => Promise<any>): Promise<void>;
19
+ export declare function duplicateState(source: ParseObject, dest: ParseObject): void;
20
+ export declare function clearAllState(): void;
@@ -0,0 +1,2 @@
1
+ declare let WebSocketController: any;
2
+ export default WebSocketController;
@@ -0,0 +1,29 @@
1
+ declare class XhrWeapp {
2
+ UNSENT: number;
3
+ OPENED: number;
4
+ HEADERS_RECEIVED: number;
5
+ LOADING: number;
6
+ DONE: number;
7
+ header: any;
8
+ readyState: any;
9
+ status: number;
10
+ response: string | undefined;
11
+ responseType: string;
12
+ responseText: string;
13
+ responseHeader: any;
14
+ method: string;
15
+ url: string;
16
+ onabort: () => void;
17
+ onprogress: () => void;
18
+ onerror: () => void;
19
+ onreadystatechange: () => void;
20
+ requestTask: any;
21
+ constructor();
22
+ getAllResponseHeaders(): string;
23
+ getResponseHeader(key: any): any;
24
+ setRequestHeader(key: any, value: any): void;
25
+ open(method: any, url: any): void;
26
+ abort(): void;
27
+ send(data: any): void;
28
+ }
29
+ export default XhrWeapp;
@@ -0,0 +1,2 @@
1
+ import type ParseObject from './ParseObject';
2
+ export default function arrayContainsObject(array: Array<any>, object: ParseObject): boolean;
@@ -0,0 +1,2 @@
1
+ import type ParseObject from './ParseObject';
2
+ export default function canBeSerialized(obj: ParseObject): boolean;
@@ -0,0 +1 @@
1
+ export default function decode(value: any): any;
@@ -0,0 +1 @@
1
+ export default function (value: any, disallowObjects?: boolean, forcePointers?: boolean, seen?: Array<any>, offline?: boolean): any;
@@ -0,0 +1 @@
1
+ export default function equals(a: any, b: any): boolean;
@@ -0,0 +1 @@
1
+ export default function escape(str: string): string;
@@ -0,0 +1,66 @@
1
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/b23a36e669fa127d1035e22ca93faab85b98e49f/types/parse/index.d.ts#L11
2
+
3
+ import parse from './Parse';
4
+ export default parse;
5
+
6
+ // All exports beyond this point will be included in the Parse namespace
7
+ export as namespace Parse;
8
+ import ACL from './ParseACL';
9
+ import * as Analytics from './Analytics';
10
+ import AnonymousUtils from './AnonymousUtils';
11
+ import * as Cloud from './Cloud';
12
+ import CLP from './ParseCLP';
13
+ import CoreManager from './CoreManager';
14
+ import Config from './ParseConfig';
15
+ import Error from './ParseError';
16
+ import FacebookUtils from './FacebookUtils';
17
+ import File from './ParseFile';
18
+ import GeoPoint from './ParseGeoPoint';
19
+ import * as Hooks from './ParseHooks';
20
+ import IndexedDB from './IndexedDBStorageController';
21
+ import Polygon from './ParsePolygon';
22
+ import Installation from './ParseInstallation';
23
+ import LiveQuery from './ParseLiveQuery';
24
+ import LiveQueryClient from './LiveQueryClient';
25
+ import LocalDatastore from './LocalDatastore';
26
+ import Object from './ParseObject';
27
+ import * as Push from './Push';
28
+ import Query from './ParseQuery';
29
+ import Relation from './ParseRelation';
30
+ import Role from './ParseRole';
31
+ import Schema from './ParseSchema';
32
+ import Session from './ParseSession';
33
+ import Storage from './Storage';
34
+ import User from './ParseUser';
35
+
36
+ export type { AuthProvider, AuthData } from './ParseUser';
37
+ export type { Pointer } from './ParseObject';
38
+ export {
39
+ ACL,
40
+ Analytics,
41
+ AnonymousUtils,
42
+ Cloud,
43
+ CLP,
44
+ CoreManager,
45
+ Config,
46
+ Error,
47
+ FacebookUtils,
48
+ File,
49
+ GeoPoint,
50
+ Polygon,
51
+ Installation,
52
+ LiveQuery,
53
+ LocalDatastore,
54
+ Object,
55
+ Push,
56
+ Query,
57
+ Relation,
58
+ Role,
59
+ Schema,
60
+ Session,
61
+ Storage,
62
+ User,
63
+ LiveQueryClient,
64
+ IndexedDB,
65
+ Hooks,
66
+ };
@@ -0,0 +1 @@
1
+ export default function isRevocableSession(token: string): boolean;
@@ -0,0 +1,3 @@
1
+ import * as parse from './index';
2
+
3
+ export = parse;
@@ -0,0 +1 @@
1
+ export default function parseDate(iso8601: string): Date | null;
@@ -0,0 +1,9 @@
1
+ export declare function resolvingPromise<T = any>(): Promise<T> & {
2
+ resolve: (res: T) => void;
3
+ reject: (err: any) => void;
4
+ };
5
+ export declare function when(promises: any): Promise<any[]> | (Promise<any> & {
6
+ resolve: (res: any) => void;
7
+ reject: (err: any) => void;
8
+ });
9
+ export declare function continueWhile(test: () => any, emitter: () => Promise<any>): any;
@@ -0,0 +1,3 @@
1
+ import * as parse from './index';
2
+
3
+ export = parse;