parse 6.1.0-alpha.2 → 6.1.0-alpha.3

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,104 @@
1
+ /**
2
+ * Creates a new GeoPoint with any of the following forms:<br>
3
+ * <pre>
4
+ * new GeoPoint(otherGeoPoint)
5
+ * new GeoPoint(30, 30)
6
+ * new GeoPoint([30, 30])
7
+ * new GeoPoint({latitude: 30, longitude: 30})
8
+ * new GeoPoint() // defaults to (0, 0)
9
+ * </pre>
10
+ * <p>Represents a latitude / longitude point that may be associated
11
+ * with a key in a ParseObject or used as a reference point for geo queries.
12
+ * This allows proximity-based queries on the key.</p>
13
+ *
14
+ * <p>Only one key in a class may contain a GeoPoint.</p>
15
+ *
16
+ * <p>Example:<pre>
17
+ * var point = new Parse.GeoPoint(30.0, -20.0);
18
+ * var object = new Parse.Object("PlaceObject");
19
+ * object.set("location", point);
20
+ * object.save();</pre></p>
21
+ *
22
+ * @alias Parse.GeoPoint
23
+ */
24
+ declare class ParseGeoPoint {
25
+ _latitude: number;
26
+ _longitude: number;
27
+ /**
28
+ * @param {(number[] | object | number)} arg1 Either a list of coordinate pairs, an object with `latitude`, `longitude`, or the latitude or the point.
29
+ * @param {number} arg2 The longitude of the GeoPoint
30
+ */
31
+ constructor(arg1?: [number, number] | {
32
+ latitude: number;
33
+ longitude: number;
34
+ } | number, arg2?: number);
35
+ /**
36
+ * North-south portion of the coordinate, in range [-90, 90].
37
+ * Throws an exception if set out of range in a modern browser.
38
+ *
39
+ * @property {number} latitude
40
+ * @returns {number}
41
+ */
42
+ get latitude(): number;
43
+ set latitude(val: number);
44
+ /**
45
+ * East-west portion of the coordinate, in range [-180, 180].
46
+ * Throws if set out of range in a modern browser.
47
+ *
48
+ * @property {number} longitude
49
+ * @returns {number}
50
+ */
51
+ get longitude(): number;
52
+ set longitude(val: number);
53
+ /**
54
+ * Returns a JSON representation of the GeoPoint, suitable for Parse.
55
+ *
56
+ * @returns {object}
57
+ */
58
+ toJSON(): {
59
+ __type: string;
60
+ latitude: number;
61
+ longitude: number;
62
+ };
63
+ equals(other: any): boolean;
64
+ /**
65
+ * Returns the distance from this GeoPoint to another in radians.
66
+ *
67
+ * @param {Parse.GeoPoint} point the other Parse.GeoPoint.
68
+ * @returns {number}
69
+ */
70
+ radiansTo(point: ParseGeoPoint): number;
71
+ /**
72
+ * Returns the distance from this GeoPoint to another in kilometers.
73
+ *
74
+ * @param {Parse.GeoPoint} point the other Parse.GeoPoint.
75
+ * @returns {number}
76
+ */
77
+ kilometersTo(point: ParseGeoPoint): number;
78
+ /**
79
+ * Returns the distance from this GeoPoint to another in miles.
80
+ *
81
+ * @param {Parse.GeoPoint} point the other Parse.GeoPoint.
82
+ * @returns {number}
83
+ */
84
+ milesTo(point: ParseGeoPoint): number;
85
+ static _validate(latitude: number, longitude: number): void;
86
+ /**
87
+ * Creates a GeoPoint with the user's current location, if available.
88
+ *
89
+ * @param {object} options The options.
90
+ * @param {boolean} [options.enableHighAccuracy] A boolean value that indicates the application would like to receive the best possible results.
91
+ * If true and if the device is able to provide a more accurate position, it will do so.
92
+ * Note that this can result in slower response times or increased power consumption (with a GPS chip on a mobile device for example).
93
+ * On the other hand, if false, the device can take the liberty to save resources by responding more quickly and/or using less power. Default: false.
94
+ * @param {number} [options.timeout] A positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position.
95
+ * The default value is Infinity, meaning that getCurrentPosition() won't return until the position is available.
96
+ * @param {number} [options.maximumAge] A positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return.
97
+ * If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position.
98
+ * If set to Infinity the device must return a cached position regardless of its age. Default: 0.
99
+ * @static
100
+ * @returns {Promise<Parse.GeoPoint>} User's current location
101
+ */
102
+ static current(options: any): Promise<ParseGeoPoint>;
103
+ }
104
+ export default ParseGeoPoint;
@@ -0,0 +1,27 @@
1
+ export type HookDeclaration = {
2
+ functionName: string;
3
+ url: string;
4
+ } | {
5
+ className: string;
6
+ triggerName: string;
7
+ url: string;
8
+ };
9
+ export type HookDeleteArg = {
10
+ functionName: string;
11
+ } | {
12
+ className: string;
13
+ triggerName: string;
14
+ };
15
+ export declare function getFunctions(): Promise<any>;
16
+ export declare function getTriggers(): Promise<any>;
17
+ export declare function getFunction(name: string): Promise<any>;
18
+ export declare function getTrigger(className: string, triggerName: string): Promise<any>;
19
+ export declare function createFunction(functionName: string, url: string): Promise<any>;
20
+ export declare function createTrigger(className: string, triggerName: string, url: string): Promise<any>;
21
+ export declare function create(hook: HookDeclaration): Promise<any>;
22
+ export declare function updateFunction(functionName: string, url: string): Promise<any>;
23
+ export declare function updateTrigger(className: string, triggerName: string, url: string): Promise<any>;
24
+ export declare function update(hook: HookDeclaration): Promise<any>;
25
+ export declare function removeFunction(functionName: string): Promise<any>;
26
+ export declare function removeTrigger(className: string, triggerName: string): Promise<any>;
27
+ export declare function remove(hook: HookDeleteArg): Promise<any>;
@@ -0,0 +1,179 @@
1
+ import ParseObject, { Attributes } from './ParseObject';
2
+ type DeviceInterface = {
3
+ IOS: string;
4
+ MACOS: string;
5
+ TVOS: string;
6
+ FCM: string;
7
+ ANDROID: string;
8
+ WEB: string;
9
+ };
10
+ /**
11
+ * Parse.Installation is a local representation of installation data that can be saved and retrieved from the Parse cloud.
12
+ * This class is a subclass of a Parse.Object, and retains the same functionality of a Parse.Object, but also extends it with installation-specific features.
13
+ *
14
+ * <p>A valid Parse.Installation can only be instantiated via <code>Parse.Installation.currentInstallation()</code>
15
+ *
16
+ * Parse.Installation objects which have a valid <code>deviceToken</code> and are saved to the Parse cloud can be used to target push notifications.
17
+ * </p>
18
+ *
19
+ * @alias Parse.Installation
20
+ */
21
+ declare class ParseInstallation<T extends Attributes = Attributes> extends ParseObject<T> {
22
+ /**
23
+ * @param {object} attributes The initial set of data to store in the object.
24
+ */
25
+ constructor(attributes?: T);
26
+ /**
27
+ * A unique identifier for this installation’s client application. In iOS, this is the Bundle Identifier.
28
+ *
29
+ * @property {string} appIdentifier
30
+ * @static
31
+ * @returns {string}
32
+ */
33
+ get appIdentifier(): T[Extract<keyof T, string>];
34
+ /**
35
+ * The version string of the client application to which this installation belongs.
36
+ *
37
+ * @property {string} appVersion
38
+ * @static
39
+ * @returns {string}
40
+ */
41
+ get appVersion(): T[Extract<keyof T, string>];
42
+ /**
43
+ * The display name of the client application to which this installation belongs.
44
+ *
45
+ * @property {string} appName
46
+ * @static
47
+ * @returns {string}
48
+ */
49
+ get appName(): T[Extract<keyof T, string>];
50
+ /**
51
+ * The current value of the icon badge for iOS apps.
52
+ * Changes to this value on the server will be used
53
+ * for future badge-increment push notifications.
54
+ *
55
+ * @property {number} badge
56
+ * @static
57
+ * @returns {number}
58
+ */
59
+ get badge(): T[Extract<keyof T, string>];
60
+ /**
61
+ * An array of the channels to which a device is currently subscribed.
62
+ *
63
+ * @property {string[]} channels
64
+ * @static
65
+ * @returns {string[]}
66
+ */
67
+ get channels(): T[Extract<keyof T, string>];
68
+ /**
69
+ * Token used to deliver push notifications to the device.
70
+ *
71
+ * @property {string} deviceToken
72
+ * @static
73
+ * @returns {string}
74
+ */
75
+ get deviceToken(): T[Extract<keyof T, string>];
76
+ /**
77
+ * The type of device, “ios”, “android”, “web”, etc.
78
+ *
79
+ * @property {string} deviceType
80
+ * @static
81
+ * @returns {string}
82
+ */
83
+ get deviceType(): T[Extract<keyof T, string>];
84
+ /**
85
+ * Gets the GCM sender identifier for this installation
86
+ *
87
+ * @property {string} GCMSenderId
88
+ * @static
89
+ * @returns {string}
90
+ */
91
+ get GCMSenderId(): T[Extract<keyof T, string>];
92
+ /**
93
+ * Universally Unique Identifier (UUID) for the device used by Parse. It must be unique across all of an app’s installations.
94
+ *
95
+ * @property {string} installationId
96
+ * @static
97
+ * @returns {string}
98
+ */
99
+ get installationId(): T[Extract<keyof T, string>];
100
+ /**
101
+ * Gets the local identifier for this installation
102
+ *
103
+ * @property {string} localeIdentifier
104
+ * @static
105
+ * @returns {string}
106
+ */
107
+ get localeIdentifier(): T[Extract<keyof T, string>];
108
+ /**
109
+ * Gets the parse server version for this installation
110
+ *
111
+ * @property {string} parseVersion
112
+ * @static
113
+ * @returns {string}
114
+ */
115
+ get parseVersion(): T[Extract<keyof T, string>];
116
+ /**
117
+ * This field is reserved for directing Parse to the push delivery network to be used.
118
+ *
119
+ * @property {string} pushType
120
+ * @static
121
+ * @returns {string}
122
+ */
123
+ get pushType(): T[Extract<keyof T, string>];
124
+ /**
125
+ * Gets the time zone for this installation
126
+ *
127
+ * @property {string} timeZone
128
+ * @static
129
+ * @returns {string}
130
+ */
131
+ get timeZone(): T[Extract<keyof T, string>];
132
+ /**
133
+ * Returns the device types for used for Push Notifications.
134
+ *
135
+ * <pre>
136
+ * Parse.Installation.DEVICE_TYPES.IOS
137
+ * Parse.Installation.DEVICE_TYPES.MACOS
138
+ * Parse.Installation.DEVICE_TYPES.TVOS
139
+ * Parse.Installation.DEVICE_TYPES.FCM
140
+ * Parse.Installation.DEVICE_TYPES.ANDROID
141
+ * Parse.Installation.DEVICE_TYPES.WEB
142
+ * </pre
143
+ *
144
+ * @property {object} DEVICE_TYPES
145
+ * @static
146
+ * @returns {object}
147
+ */
148
+ static get DEVICE_TYPES(): DeviceInterface;
149
+ /**
150
+ * Wrap the default fetch behavior with functionality to update local storage.
151
+ * If the installation is deleted on the server, retry the fetch as a save operation.
152
+ *
153
+ * @param {...any} args
154
+ * @returns {Promise}
155
+ */
156
+ fetch(...args: Array<any>): Promise<this>;
157
+ /**
158
+ * Wrap the default save behavior with functionality to update the local storage.
159
+ * If the installation is deleted on the server, retry saving a new installation.
160
+ *
161
+ * @param {...any} args
162
+ * @returns {Promise}
163
+ */
164
+ save(...args: Array<any>): Promise<this>;
165
+ _markAllFieldsDirty(): void;
166
+ /**
167
+ * Get the current Parse.Installation from disk. If doesn't exists, create an new installation.
168
+ *
169
+ * <pre>
170
+ * const installation = await Parse.Installation.currentInstallation();
171
+ * installation.set('deviceToken', '123');
172
+ * await installation.save();
173
+ * </pre>
174
+ *
175
+ * @returns {Promise} A promise that resolves to the local installation object.
176
+ */
177
+ static currentInstallation(): Promise<ParseInstallation>;
178
+ }
179
+ export default ParseInstallation;
@@ -0,0 +1,48 @@
1
+ import type { EventEmitter } from 'events';
2
+ /**
3
+ * We expose three events to help you monitor the status of the WebSocket connection:
4
+ *
5
+ * <p>Open - When we establish the WebSocket connection to the LiveQuery server, you'll get this event.
6
+ *
7
+ * <pre>
8
+ * Parse.LiveQuery.on('open', () => {
9
+ *
10
+ * });</pre></p>
11
+ *
12
+ * <p>Close - When we lose the WebSocket connection to the LiveQuery server, you'll get this event.
13
+ *
14
+ * <pre>
15
+ * Parse.LiveQuery.on('close', () => {
16
+ *
17
+ * });</pre></p>
18
+ *
19
+ * <p>Error - When some network error or LiveQuery server error happens, you'll get this event.
20
+ *
21
+ * <pre>
22
+ * Parse.LiveQuery.on('error', (error) => {
23
+ *
24
+ * });</pre></p>
25
+ *
26
+ * @class Parse.LiveQuery
27
+ * @static
28
+ */
29
+ declare class LiveQuery {
30
+ emitter: EventEmitter;
31
+ on: EventEmitter['on'];
32
+ emit: EventEmitter['emit'];
33
+ constructor();
34
+ /**
35
+ * After open is called, the LiveQuery will try to send a connect request
36
+ * to the LiveQuery server.
37
+ */
38
+ open(): Promise<void>;
39
+ /**
40
+ * When you're done using LiveQuery, you can call Parse.LiveQuery.close().
41
+ * This function will close the WebSocket connection to the LiveQuery server,
42
+ * cancel the auto reconnect, and unsubscribe all subscriptions based on it.
43
+ * If you call query.subscribe() after this, we'll create a new WebSocket
44
+ * connection to the LiveQuery server.
45
+ */
46
+ close(): Promise<void>;
47
+ }
48
+ export default LiveQuery;