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.
- package/README.md +0 -8
- package/dist/parse.js +27 -47
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +27 -47
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -2
- package/lib/browser/CryptoController.js +0 -1
- package/lib/browser/EventEmitter.js +0 -1
- package/lib/browser/EventuallyQueue.js +0 -1
- package/lib/browser/IndexedDBStorageController.js +0 -1
- package/lib/browser/InstallationController.js +0 -1
- package/lib/browser/LocalDatastore.js +0 -1
- package/lib/browser/LocalDatastoreController.default.js +0 -1
- package/lib/browser/LocalDatastoreController.js +0 -1
- package/lib/browser/LocalDatastoreController.react-native.js +0 -1
- package/lib/browser/OfflineQuery.js +0 -1
- package/lib/browser/ParseInstallation.js +0 -1
- package/lib/browser/ParseQuery.js +19 -17
- package/lib/browser/RESTController.js +4 -3
- package/lib/browser/Socket.weapp.js +0 -1
- package/lib/browser/Storage.js +0 -1
- package/lib/browser/StorageController.browser.js +0 -1
- package/lib/browser/StorageController.default.js +0 -1
- package/lib/browser/StorageController.js +0 -1
- package/lib/browser/StorageController.react-native.js +0 -1
- package/lib/browser/StorageController.weapp.js +0 -1
- package/lib/browser/TaskQueue.js +0 -1
- package/lib/browser/WebSocketController.js +0 -1
- package/lib/browser/Xhr.weapp.js +0 -1
- package/lib/browser/uuid.js +0 -1
- package/lib/node/CoreManager.js +1 -2
- package/lib/node/CryptoController.js +0 -1
- package/lib/node/EventEmitter.js +0 -1
- package/lib/node/EventuallyQueue.js +0 -1
- package/lib/node/IndexedDBStorageController.js +0 -1
- package/lib/node/InstallationController.js +0 -1
- package/lib/node/LocalDatastore.js +0 -1
- package/lib/node/LocalDatastoreController.default.js +0 -1
- package/lib/node/LocalDatastoreController.js +0 -1
- package/lib/node/LocalDatastoreController.react-native.js +0 -1
- package/lib/node/OfflineQuery.js +0 -1
- package/lib/node/ParseInstallation.js +0 -1
- package/lib/node/RESTController.js +0 -1
- package/lib/node/Socket.weapp.js +0 -1
- package/lib/node/Storage.js +0 -1
- package/lib/node/StorageController.browser.js +0 -1
- package/lib/node/StorageController.default.js +0 -1
- package/lib/node/StorageController.js +0 -1
- package/lib/node/StorageController.react-native.js +0 -1
- package/lib/node/StorageController.weapp.js +0 -1
- package/lib/node/TaskQueue.js +0 -1
- package/lib/node/WebSocketController.js +0 -1
- package/lib/node/Xhr.weapp.js +0 -1
- package/lib/node/uuid.js +0 -1
- package/lib/react-native/CoreManager.js +1 -2
- package/lib/react-native/CryptoController.js +0 -1
- package/lib/react-native/EventEmitter.js +0 -1
- package/lib/react-native/EventuallyQueue.js +0 -1
- package/lib/react-native/IndexedDBStorageController.js +0 -1
- package/lib/react-native/InstallationController.js +0 -1
- package/lib/react-native/LocalDatastore.js +0 -1
- package/lib/react-native/LocalDatastoreController.default.js +0 -1
- package/lib/react-native/LocalDatastoreController.js +0 -1
- package/lib/react-native/LocalDatastoreController.react-native.js +0 -1
- package/lib/react-native/OfflineQuery.js +0 -1
- package/lib/react-native/ParseInstallation.js +0 -1
- package/lib/react-native/RESTController.js +0 -1
- package/lib/react-native/Socket.weapp.js +0 -1
- package/lib/react-native/Storage.js +0 -1
- package/lib/react-native/StorageController.browser.js +0 -1
- package/lib/react-native/StorageController.default.js +0 -1
- package/lib/react-native/StorageController.js +0 -1
- package/lib/react-native/StorageController.react-native.js +0 -1
- package/lib/react-native/StorageController.weapp.js +0 -1
- package/lib/react-native/TaskQueue.js +0 -1
- package/lib/react-native/WebSocketController.js +0 -1
- package/lib/react-native/Xhr.weapp.js +0 -1
- package/lib/react-native/uuid.js +0 -1
- package/lib/weapp/CoreManager.js +1 -2
- package/lib/weapp/CryptoController.js +0 -1
- package/lib/weapp/EventEmitter.js +0 -1
- package/lib/weapp/EventuallyQueue.js +0 -1
- package/lib/weapp/IndexedDBStorageController.js +0 -1
- package/lib/weapp/InstallationController.js +0 -1
- package/lib/weapp/LocalDatastore.js +0 -1
- package/lib/weapp/LocalDatastoreController.default.js +0 -1
- package/lib/weapp/LocalDatastoreController.js +0 -1
- package/lib/weapp/LocalDatastoreController.react-native.js +0 -1
- package/lib/weapp/OfflineQuery.js +0 -1
- package/lib/weapp/ParseInstallation.js +0 -1
- package/lib/weapp/ParseQuery.js +19 -17
- package/lib/weapp/RESTController.js +4 -3
- package/lib/weapp/Socket.weapp.js +0 -1
- package/lib/weapp/Storage.js +0 -1
- package/lib/weapp/StorageController.browser.js +0 -1
- package/lib/weapp/StorageController.default.js +0 -1
- package/lib/weapp/StorageController.js +0 -1
- package/lib/weapp/StorageController.react-native.js +0 -1
- package/lib/weapp/StorageController.weapp.js +0 -1
- package/lib/weapp/TaskQueue.js +0 -1
- package/lib/weapp/WebSocketController.js +0 -1
- package/lib/weapp/Xhr.weapp.js +0 -1
- package/lib/weapp/uuid.js +0 -1
- package/package.json +11 -9
- package/types/Analytics.d.ts +42 -0
- package/types/AnonymousUtils.d.ts +84 -0
- package/types/Cloud.d.ts +65 -0
- package/types/CloudCode.d.ts +307 -0
- package/types/CoreManager.d.ts +325 -0
- package/types/CryptoController.d.ts +5 -0
- package/types/EventEmitter.d.ts +5 -0
- package/types/EventuallyQueue.d.ts +168 -0
- package/types/FacebookUtils.d.ts +107 -0
- package/types/IndexedDBStorageController.d.ts +2 -0
- package/types/InstallationController.d.ts +10 -0
- package/types/LiveQueryClient.d.ts +128 -0
- package/types/LiveQuerySubscription.d.ts +103 -0
- package/types/LocalDatastore.d.ts +56 -0
- package/types/LocalDatastoreController.d.ts +2 -0
- package/types/LocalDatastoreController.default.d.ts +9 -0
- package/types/LocalDatastoreController.react-native.d.ts +9 -0
- package/types/LocalDatastoreUtils.d.ts +5 -0
- package/types/ObjectStateMutations.d.ts +28 -0
- package/types/OfflineQuery.d.ts +20 -0
- package/types/Parse.d.ts +633 -0
- package/types/ParseACL.d.ts +141 -0
- package/types/ParseCLP.d.ts +293 -0
- package/types/ParseConfig.d.ts +77 -0
- package/types/ParseError.d.ts +476 -0
- package/types/ParseFile.d.ts +192 -0
- package/types/ParseGeoPoint.d.ts +104 -0
- package/types/ParseHooks.d.ts +27 -0
- package/types/ParseInstallation.d.ts +179 -0
- package/types/ParseLiveQuery.d.ts +48 -0
- package/types/ParseObject.d.ts +1072 -0
- package/types/ParseOp.d.ts +78 -0
- package/types/ParsePolygon.d.ts +69 -0
- package/types/ParseQuery.d.ts +961 -0
- package/types/ParseRelation.d.ts +56 -0
- package/types/ParseRole.d.ts +79 -0
- package/types/ParseSchema.d.ts +286 -0
- package/types/ParseSession.d.ts +45 -0
- package/types/ParseUser.d.ts +517 -0
- package/types/Push.d.ts +62 -0
- package/types/RESTController.d.ts +35 -0
- package/types/SingleInstanceStateController.d.ts +24 -0
- package/types/Socket.weapp.d.ts +10 -0
- package/types/Storage.d.ts +14 -0
- package/types/StorageController.browser.d.ts +9 -0
- package/types/StorageController.d.ts +2 -0
- package/types/StorageController.default.d.ts +9 -0
- package/types/StorageController.react-native.d.ts +11 -0
- package/types/StorageController.weapp.d.ts +9 -0
- package/types/TaskQueue.d.ts +11 -0
- package/types/UniqueInstanceStateController.d.ts +20 -0
- package/types/WebSocketController.d.ts +2 -0
- package/types/Xhr.weapp.d.ts +29 -0
- package/types/arrayContainsObject.d.ts +2 -0
- package/types/canBeSerialized.d.ts +2 -0
- package/types/decode.d.ts +1 -0
- package/types/encode.d.ts +1 -0
- package/types/equals.d.ts +1 -0
- package/types/escape.d.ts +1 -0
- package/types/index.d.ts +66 -0
- package/types/isRevocableSession.d.ts +1 -0
- package/types/node.d.ts +3 -0
- package/types/parseDate.d.ts +1 -0
- package/types/promiseUtils.d.ts +9 -0
- package/types/react-native.d.ts +3 -0
- package/types/tests.ts +2256 -0
- package/types/tsconfig.json +25 -0
- package/types/unique.d.ts +1 -0
- package/types/unsavedChildren.d.ts +11 -0
- package/types/uuid.d.ts +2 -0
package/types/Parse.d.ts
ADDED
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
import * as ParseOp from './ParseOp';
|
|
2
|
+
import ACL from './ParseACL';
|
|
3
|
+
import * as Analytics from './Analytics';
|
|
4
|
+
import * as Cloud from './Cloud';
|
|
5
|
+
import CLP from './ParseCLP';
|
|
6
|
+
import Config from './ParseConfig';
|
|
7
|
+
import ParseError from './ParseError';
|
|
8
|
+
import File from './ParseFile';
|
|
9
|
+
import * as Hooks from './ParseHooks';
|
|
10
|
+
import GeoPoint from './ParseGeoPoint';
|
|
11
|
+
import Polygon from './ParsePolygon';
|
|
12
|
+
import Installation from './ParseInstallation';
|
|
13
|
+
import ParseObject from './ParseObject';
|
|
14
|
+
import * as Push from './Push';
|
|
15
|
+
import Query from './ParseQuery';
|
|
16
|
+
import Relation from './ParseRelation';
|
|
17
|
+
import Role from './ParseRole';
|
|
18
|
+
import Schema from './ParseSchema';
|
|
19
|
+
import Session from './ParseSession';
|
|
20
|
+
import User from './ParseUser';
|
|
21
|
+
import ParseLiveQuery from './ParseLiveQuery';
|
|
22
|
+
import LiveQueryClient from './LiveQueryClient';
|
|
23
|
+
import type { EventuallyQueue } from './CoreManager';
|
|
24
|
+
declare const Parse: {
|
|
25
|
+
ACL: typeof ACL;
|
|
26
|
+
Analytics: typeof Analytics;
|
|
27
|
+
AnonymousUtils: {
|
|
28
|
+
isLinked(user: User): boolean;
|
|
29
|
+
logIn(options?: import("./RESTController").RequestOptions): Promise<User>;
|
|
30
|
+
link(user: User, options?: import("./RESTController").RequestOptions): Promise<User>;
|
|
31
|
+
isRegistered(): boolean;
|
|
32
|
+
_getAuthProvider(): {
|
|
33
|
+
restoreAuthentication(): boolean;
|
|
34
|
+
getAuthType(): string;
|
|
35
|
+
getAuthData(): {
|
|
36
|
+
authData: {
|
|
37
|
+
id: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
Cloud: typeof Cloud;
|
|
43
|
+
CLP: typeof CLP;
|
|
44
|
+
CoreManager: {
|
|
45
|
+
get: (key: string) => any;
|
|
46
|
+
set: (key: string, value: any) => void;
|
|
47
|
+
setIfNeeded: (key: string, value: any) => any;
|
|
48
|
+
setAnalyticsController(controller: {
|
|
49
|
+
track: (name: string, dimensions: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
}) => Promise<any>;
|
|
52
|
+
}): void;
|
|
53
|
+
getAnalyticsController(): {
|
|
54
|
+
track: (name: string, dimensions: {
|
|
55
|
+
[key: string]: string;
|
|
56
|
+
}) => Promise<any>;
|
|
57
|
+
};
|
|
58
|
+
setCloudController(controller: {
|
|
59
|
+
run: (name: string, data: any, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
60
|
+
getJobsData: (options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
61
|
+
startJob: (name: string, data: any, options?: import("./RESTController").RequestOptions) => Promise<string>;
|
|
62
|
+
}): void;
|
|
63
|
+
getCloudController(): {
|
|
64
|
+
run: (name: string, data: any, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
65
|
+
getJobsData: (options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
66
|
+
startJob: (name: string, data: any, options?: import("./RESTController").RequestOptions) => Promise<string>;
|
|
67
|
+
};
|
|
68
|
+
setConfigController(controller: {
|
|
69
|
+
current: () => Promise<Config> | Config;
|
|
70
|
+
get: (opts?: import("./RESTController").RequestOptions) => Promise<Config>;
|
|
71
|
+
save: (attrs: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}, masterKeyOnlyFlags?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}) => Promise<void>;
|
|
76
|
+
}): void;
|
|
77
|
+
getConfigController(): {
|
|
78
|
+
current: () => Promise<Config> | Config;
|
|
79
|
+
get: (opts?: import("./RESTController").RequestOptions) => Promise<Config>;
|
|
80
|
+
save: (attrs: {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}, masterKeyOnlyFlags?: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
}) => Promise<void>;
|
|
85
|
+
};
|
|
86
|
+
setCryptoController(controller: {
|
|
87
|
+
encrypt: (obj: any, secretKey: string) => string;
|
|
88
|
+
decrypt: (encryptedText: string, secretKey: any) => string;
|
|
89
|
+
}): void;
|
|
90
|
+
getCryptoController(): {
|
|
91
|
+
encrypt: (obj: any, secretKey: string) => string;
|
|
92
|
+
decrypt: (encryptedText: string, secretKey: any) => string;
|
|
93
|
+
};
|
|
94
|
+
setEventEmitter(eventEmitter: any): void;
|
|
95
|
+
getEventEmitter(): any;
|
|
96
|
+
setFileController(controller: {
|
|
97
|
+
saveFile: (name: string, source: import("./ParseFile").FileSource, options?: import("./RESTController").FullOptions) => Promise<any>;
|
|
98
|
+
saveBase64: (name: string, source: import("./ParseFile").FileSource, options?: import("./ParseFile").FileSaveOptions) => Promise<{
|
|
99
|
+
name: string;
|
|
100
|
+
url: string;
|
|
101
|
+
}>;
|
|
102
|
+
download: (uri: string, options?: any) => Promise<{
|
|
103
|
+
base64?: string;
|
|
104
|
+
contentType?: string;
|
|
105
|
+
}>;
|
|
106
|
+
deleteFile: (name: string, options?: {
|
|
107
|
+
useMasterKey?: boolean;
|
|
108
|
+
}) => Promise<void>;
|
|
109
|
+
}): void;
|
|
110
|
+
setEventuallyQueue(controller: EventuallyQueue): void;
|
|
111
|
+
getEventuallyQueue(): EventuallyQueue;
|
|
112
|
+
getFileController(): {
|
|
113
|
+
saveFile: (name: string, source: import("./ParseFile").FileSource, options?: import("./RESTController").FullOptions) => Promise<any>;
|
|
114
|
+
saveBase64: (name: string, source: import("./ParseFile").FileSource, options?: import("./ParseFile").FileSaveOptions) => Promise<{
|
|
115
|
+
name: string;
|
|
116
|
+
url: string;
|
|
117
|
+
}>;
|
|
118
|
+
download: (uri: string, options?: any) => Promise<{
|
|
119
|
+
base64?: string;
|
|
120
|
+
contentType?: string;
|
|
121
|
+
}>;
|
|
122
|
+
deleteFile: (name: string, options?: {
|
|
123
|
+
useMasterKey?: boolean;
|
|
124
|
+
}) => Promise<void>;
|
|
125
|
+
};
|
|
126
|
+
setInstallationController(controller: {
|
|
127
|
+
currentInstallationId: () => Promise<string>;
|
|
128
|
+
currentInstallation: () => Promise<Installation | null>;
|
|
129
|
+
updateInstallationOnDisk: (installation: Installation) => Promise<void>;
|
|
130
|
+
}): void;
|
|
131
|
+
getInstallationController(): {
|
|
132
|
+
currentInstallationId: () => Promise<string>;
|
|
133
|
+
currentInstallation: () => Promise<Installation | null>;
|
|
134
|
+
updateInstallationOnDisk: (installation: Installation) => Promise<void>;
|
|
135
|
+
};
|
|
136
|
+
setLiveQuery(liveQuery: any): void;
|
|
137
|
+
getLiveQuery(): any;
|
|
138
|
+
setObjectController(controller: {
|
|
139
|
+
fetch: (object: ParseObject | Array<ParseObject>, forceFetch: boolean, options?: import("./RESTController").RequestOptions) => Promise<Array<ParseObject | undefined> | ParseObject | undefined>;
|
|
140
|
+
save: (object: ParseObject | Array<ParseObject | File> | null, options?: import("./RESTController").RequestOptions) => Promise<ParseObject | Array<ParseObject> | File | undefined>;
|
|
141
|
+
destroy: (object: ParseObject | Array<ParseObject>, options?: import("./RESTController").RequestOptions) => Promise<ParseObject | Array<ParseObject>>;
|
|
142
|
+
}): void;
|
|
143
|
+
getObjectController(): {
|
|
144
|
+
fetch: (object: ParseObject | Array<ParseObject>, forceFetch: boolean, options?: import("./RESTController").RequestOptions) => Promise<Array<ParseObject | undefined> | ParseObject | undefined>;
|
|
145
|
+
save: (object: ParseObject | Array<ParseObject | File> | null, options?: import("./RESTController").RequestOptions) => Promise<ParseObject | Array<ParseObject> | File | undefined>;
|
|
146
|
+
destroy: (object: ParseObject | Array<ParseObject>, options?: import("./RESTController").RequestOptions) => Promise<ParseObject | Array<ParseObject>>;
|
|
147
|
+
};
|
|
148
|
+
setObjectStateController(controller: {
|
|
149
|
+
getState: (obj: any) => import("./ObjectStateMutations").State | null;
|
|
150
|
+
initializeState: (obj: any, initial?: import("./ObjectStateMutations").State) => import("./ObjectStateMutations").State;
|
|
151
|
+
removeState: (obj: any) => import("./ObjectStateMutations").State | null;
|
|
152
|
+
getServerData: (obj: any) => import("./ObjectStateMutations").AttributeMap;
|
|
153
|
+
setServerData: (obj: any, attributes: import("./ObjectStateMutations").AttributeMap) => void;
|
|
154
|
+
getPendingOps: (obj: any) => Array<import("./ObjectStateMutations").OpsMap>;
|
|
155
|
+
setPendingOp: (obj: any, attr: string, op?: ParseOp.Op) => void;
|
|
156
|
+
pushPendingState: (obj: any) => void;
|
|
157
|
+
popPendingState: (obj: any) => import("./ObjectStateMutations").OpsMap | undefined;
|
|
158
|
+
mergeFirstPendingState: (obj: any) => void;
|
|
159
|
+
getObjectCache: (obj: any) => import("./ObjectStateMutations").ObjectCache;
|
|
160
|
+
estimateAttribute: (obj: any, attr: string) => any;
|
|
161
|
+
estimateAttributes: (obj: any) => import("./ObjectStateMutations").AttributeMap;
|
|
162
|
+
commitServerChanges: (obj: any, changes: import("./ObjectStateMutations").AttributeMap) => void;
|
|
163
|
+
enqueueTask: (obj: any, task: () => Promise<void>) => Promise<void>;
|
|
164
|
+
clearAllState: () => void;
|
|
165
|
+
duplicateState: (source: any, dest: any) => void;
|
|
166
|
+
}): void;
|
|
167
|
+
getObjectStateController(): {
|
|
168
|
+
getState: (obj: any) => import("./ObjectStateMutations").State | null;
|
|
169
|
+
initializeState: (obj: any, initial?: import("./ObjectStateMutations").State) => import("./ObjectStateMutations").State;
|
|
170
|
+
removeState: (obj: any) => import("./ObjectStateMutations").State | null;
|
|
171
|
+
getServerData: (obj: any) => import("./ObjectStateMutations").AttributeMap;
|
|
172
|
+
setServerData: (obj: any, attributes: import("./ObjectStateMutations").AttributeMap) => void;
|
|
173
|
+
getPendingOps: (obj: any) => Array<import("./ObjectStateMutations").OpsMap>;
|
|
174
|
+
setPendingOp: (obj: any, attr: string, op?: ParseOp.Op) => void;
|
|
175
|
+
pushPendingState: (obj: any) => void;
|
|
176
|
+
popPendingState: (obj: any) => import("./ObjectStateMutations").OpsMap | undefined;
|
|
177
|
+
mergeFirstPendingState: (obj: any) => void;
|
|
178
|
+
getObjectCache: (obj: any) => import("./ObjectStateMutations").ObjectCache;
|
|
179
|
+
estimateAttribute: (obj: any, attr: string) => any;
|
|
180
|
+
estimateAttributes: (obj: any) => import("./ObjectStateMutations").AttributeMap;
|
|
181
|
+
commitServerChanges: (obj: any, changes: import("./ObjectStateMutations").AttributeMap) => void;
|
|
182
|
+
enqueueTask: (obj: any, task: () => Promise<void>) => Promise<void>;
|
|
183
|
+
clearAllState: () => void;
|
|
184
|
+
duplicateState: (source: any, dest: any) => void;
|
|
185
|
+
};
|
|
186
|
+
setPushController(controller: {
|
|
187
|
+
send: (data: Push.PushData, options?: import("./RESTController").FullOptions) => Promise<any>;
|
|
188
|
+
}): void;
|
|
189
|
+
getPushController(): {
|
|
190
|
+
send: (data: Push.PushData, options?: import("./RESTController").FullOptions) => Promise<any>;
|
|
191
|
+
};
|
|
192
|
+
setQueryController(controller: {
|
|
193
|
+
find(className: string, params: import("./ParseQuery").QueryJSON, options?: import("./RESTController").RequestOptions): Promise<{
|
|
194
|
+
results?: Array<ParseObject>;
|
|
195
|
+
className?: string;
|
|
196
|
+
count?: number;
|
|
197
|
+
}>;
|
|
198
|
+
aggregate(className: string, params: any, options?: import("./RESTController").RequestOptions): Promise<{
|
|
199
|
+
results?: Array<any>;
|
|
200
|
+
}>;
|
|
201
|
+
}): void;
|
|
202
|
+
getQueryController(): {
|
|
203
|
+
find(className: string, params: import("./ParseQuery").QueryJSON, options?: import("./RESTController").RequestOptions): Promise<{
|
|
204
|
+
results?: Array<ParseObject>;
|
|
205
|
+
className?: string;
|
|
206
|
+
count?: number;
|
|
207
|
+
}>;
|
|
208
|
+
aggregate(className: string, params: any, options?: import("./RESTController").RequestOptions): Promise<{
|
|
209
|
+
results?: Array<any>;
|
|
210
|
+
}>;
|
|
211
|
+
};
|
|
212
|
+
setRESTController(controller: {
|
|
213
|
+
request: (method: string, path: string, data?: any, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
214
|
+
ajax: (method: string, url: string, data: any, headers?: any, options?: import("./RESTController").FullOptions) => Promise<any>;
|
|
215
|
+
handleError: (err?: any) => void;
|
|
216
|
+
}): void;
|
|
217
|
+
getRESTController(): {
|
|
218
|
+
request: (method: string, path: string, data?: any, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
219
|
+
ajax: (method: string, url: string, data: any, headers?: any, options?: import("./RESTController").FullOptions) => Promise<any>;
|
|
220
|
+
handleError: (err?: any) => void;
|
|
221
|
+
};
|
|
222
|
+
setSchemaController(controller: {
|
|
223
|
+
purge: (className: string) => Promise<any>;
|
|
224
|
+
get: (className: string, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
225
|
+
delete: (className: string, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
226
|
+
create: (className: string, params: any, options? /**
|
|
227
|
+
* @member {string} Parse.maintenanceKey
|
|
228
|
+
* @static
|
|
229
|
+
*/: import("./RESTController").RequestOptions) => Promise<any>;
|
|
230
|
+
update: (className: string, params: any, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
231
|
+
send(className: string, method: string, params: any, options?: import("./RESTController").RequestOptions): Promise<any>;
|
|
232
|
+
}): void;
|
|
233
|
+
getSchemaController(): {
|
|
234
|
+
purge: (className: string) => Promise<any>;
|
|
235
|
+
get: (className: string, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
236
|
+
delete: (className: string, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
237
|
+
create: (className: string, params: any, options? /**
|
|
238
|
+
* @member {string} Parse.maintenanceKey
|
|
239
|
+
* @static
|
|
240
|
+
*/: import("./RESTController").RequestOptions) => Promise<any>;
|
|
241
|
+
update: (className: string, params: any, options?: import("./RESTController").RequestOptions) => Promise<any>;
|
|
242
|
+
send(className: string, method: string, params: any, options?: import("./RESTController").RequestOptions): Promise<any>;
|
|
243
|
+
};
|
|
244
|
+
setSessionController(controller: {
|
|
245
|
+
getSession: (options?: import("./RESTController").RequestOptions) => Promise<Session>;
|
|
246
|
+
}): void;
|
|
247
|
+
getSessionController(): {
|
|
248
|
+
getSession: (options?: import("./RESTController").RequestOptions) => Promise<Session>;
|
|
249
|
+
};
|
|
250
|
+
setStorageController(controller: {
|
|
251
|
+
async: 0;
|
|
252
|
+
getItem: (path: string) => string | null;
|
|
253
|
+
setItem: (path: string, value: string) => void;
|
|
254
|
+
removeItem: (path: string) => void;
|
|
255
|
+
getItemAsync?: (path: string) => Promise<string | null>;
|
|
256
|
+
setItemAsync?: (path: string, value: string) => Promise<void>;
|
|
257
|
+
removeItemAsync?: (path: string) => Promise<void>;
|
|
258
|
+
clear: () => void;
|
|
259
|
+
getAllKeys?: () => Array<string>;
|
|
260
|
+
getAllKeysAsync?: () => Promise<Array<string>>;
|
|
261
|
+
} | {
|
|
262
|
+
async: 1;
|
|
263
|
+
getItem?: (path: string) => string | null;
|
|
264
|
+
setItem?: (path: string, value: string) => void;
|
|
265
|
+
removeItem?: (path: string) => void;
|
|
266
|
+
getItemAsync: (path: string) => Promise<string | null>;
|
|
267
|
+
setItemAsync: (path: string, value: string) => Promise<void>;
|
|
268
|
+
removeItemAsync: (path: string) => Promise<void>;
|
|
269
|
+
clear: () => void;
|
|
270
|
+
getAllKeys?: () => Array<string>;
|
|
271
|
+
getAllKeysAsync?: () => Promise<Array<string>>;
|
|
272
|
+
}): void;
|
|
273
|
+
setLocalDatastoreController(controller: {
|
|
274
|
+
fromPinWithName: (name: string) => any | undefined;
|
|
275
|
+
pinWithName: (name: string, objects: any) => void;
|
|
276
|
+
unPinWithName: (name: string) => void;
|
|
277
|
+
getAllContents: () => any | undefined;
|
|
278
|
+
clear: () => void;
|
|
279
|
+
}): void;
|
|
280
|
+
getLocalDatastoreController(): {
|
|
281
|
+
fromPinWithName: (name: string) => any | undefined;
|
|
282
|
+
pinWithName: (name: string, objects: any) => void;
|
|
283
|
+
unPinWithName: (name: string) => void;
|
|
284
|
+
getAllContents: () => any | undefined;
|
|
285
|
+
clear: () => void;
|
|
286
|
+
};
|
|
287
|
+
setLocalDatastore(store: any): void;
|
|
288
|
+
getLocalDatastore(): any;
|
|
289
|
+
getStorageController(): {
|
|
290
|
+
async: 0;
|
|
291
|
+
getItem: (path: string) => string | null;
|
|
292
|
+
setItem: (path: string, value: string) => void;
|
|
293
|
+
removeItem: (path: string) => void;
|
|
294
|
+
getItemAsync?: (path: string) => Promise<string | null>;
|
|
295
|
+
setItemAsync?: (path: string, value: string) => Promise<void>;
|
|
296
|
+
removeItemAsync?: (path: string) => Promise<void>;
|
|
297
|
+
clear: () => void;
|
|
298
|
+
getAllKeys?: () => Array<string>;
|
|
299
|
+
getAllKeysAsync?: () => Promise<Array<string>>;
|
|
300
|
+
} | {
|
|
301
|
+
async: 1;
|
|
302
|
+
getItem?: (path: string) => string | null;
|
|
303
|
+
setItem?: (path: string, value: string) => void;
|
|
304
|
+
removeItem?: (path: string) => void;
|
|
305
|
+
getItemAsync: (path: string) => Promise<string | null>;
|
|
306
|
+
setItemAsync: (path: string, value: string) => Promise<void>;
|
|
307
|
+
removeItemAsync: (path: string) => Promise<void>;
|
|
308
|
+
clear: () => void;
|
|
309
|
+
getAllKeys?: () => Array<string>;
|
|
310
|
+
getAllKeysAsync?: () => Promise<Array<string>>;
|
|
311
|
+
};
|
|
312
|
+
setAsyncStorage(storage: {
|
|
313
|
+
getItem: (key: string, callback?: (error?: Error | null, result?: string | null) => void) => Promise<string | null>;
|
|
314
|
+
setItem: (key: string, value: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
315
|
+
removeItem: (key: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
316
|
+
mergeItem: (key: string, value: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
317
|
+
clear: (callback?: (error?: Error | null) => void) => Promise<void>;
|
|
318
|
+
getAllKeys: (callback?: (error?: Error | null, result?: readonly string[] | null) => void) => Promise<readonly string[]>;
|
|
319
|
+
multiGet: (keys: readonly string[], callback?: (errors?: readonly (Error | null)[] | null, result?: readonly [string, string][]) => void) => Promise<readonly [string, string | null][]>;
|
|
320
|
+
multiSet: (keyValuePairs: [string, string][], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<readonly [string, string | null][]>;
|
|
321
|
+
multiRemove: (keys: readonly string[], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<void>;
|
|
322
|
+
multiMerge: (keyValuePairs: [string, string][], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<void>;
|
|
323
|
+
}): void;
|
|
324
|
+
getAsyncStorage(): {
|
|
325
|
+
getItem: (key: string, callback?: (error?: Error | null, result?: string | null) => void) => Promise<string | null>;
|
|
326
|
+
setItem: (key: string, value: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
327
|
+
removeItem: (key: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
328
|
+
mergeItem: (key: string, value: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
329
|
+
clear: (callback?: (error?: Error | null) => void) => Promise<void>;
|
|
330
|
+
getAllKeys: (callback?: (error?: Error | null, result?: readonly string[] | null) => void) => Promise<readonly string[]>;
|
|
331
|
+
multiGet: (keys: readonly string[], callback?: (errors?: readonly (Error | null)[] | null, result?: readonly [string, string][]) => void) => Promise<readonly [string, string | null][]>;
|
|
332
|
+
multiSet: (keyValuePairs: [string, string][], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<readonly [string, string | null][]>;
|
|
333
|
+
multiRemove: (keys: readonly string[], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<void>;
|
|
334
|
+
multiMerge: (keyValuePairs: [string, string][], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<void>;
|
|
335
|
+
};
|
|
336
|
+
setWebSocketController(controller: new (url: string | URL, protocols?: string | string[] | undefined) => import("./CoreManager").WebSocketController): void;
|
|
337
|
+
getWebSocketController(): new (url: string | URL, protocols?: string | string[] | undefined) => import("./CoreManager").WebSocketController;
|
|
338
|
+
setUserController(controller: {
|
|
339
|
+
setCurrentUser: (user: User) => Promise<void>;
|
|
340
|
+
currentUser: () => User | null;
|
|
341
|
+
currentUserAsync: () => Promise<User | null>;
|
|
342
|
+
signUp: (user: User, attrs: import("./ObjectStateMutations").AttributeMap, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
343
|
+
logIn: (user: User, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
344
|
+
loginAs: (user: User, userId: string) => Promise<User>;
|
|
345
|
+
become: (user: User, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
346
|
+
hydrate: (user: User, userJSON: import("./ObjectStateMutations").AttributeMap) => Promise<User>;
|
|
347
|
+
logOut: (options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
348
|
+
me: (user: User, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
349
|
+
requestPasswordReset: (email: string, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
350
|
+
updateUserOnDisk: (user: User) => Promise<User>;
|
|
351
|
+
upgradeToRevocableSession: (user: User, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
352
|
+
linkWith: (user: User, authData: import("./ParseUser").AuthData, options?: import("./RESTController").FullOptions) => Promise<User>;
|
|
353
|
+
removeUserFromDisk: () => Promise<User | void>;
|
|
354
|
+
verifyPassword: (username: string, password: string, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
355
|
+
requestEmailVerification: (email: string, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
356
|
+
}): void;
|
|
357
|
+
getUserController(): {
|
|
358
|
+
setCurrentUser: (user: User) => Promise<void>;
|
|
359
|
+
currentUser: () => User | null;
|
|
360
|
+
currentUserAsync: () => Promise<User | null>;
|
|
361
|
+
signUp: (user: User, attrs: import("./ObjectStateMutations").AttributeMap, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
362
|
+
logIn: (user: User, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
363
|
+
loginAs: (user: User, userId: string) => Promise<User>;
|
|
364
|
+
become: (user: User, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
365
|
+
hydrate: (user: User, userJSON: import("./ObjectStateMutations").AttributeMap) => Promise<User>;
|
|
366
|
+
logOut: (options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
367
|
+
me: (user: User, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
368
|
+
requestPasswordReset: (email: string, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
369
|
+
updateUserOnDisk: (user: User) => Promise<User>;
|
|
370
|
+
upgradeToRevocableSession: (user: User, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
371
|
+
linkWith: (user: User, authData: import("./ParseUser").AuthData, options?: import("./RESTController").FullOptions) => Promise<User>;
|
|
372
|
+
removeUserFromDisk: () => Promise<User | void>;
|
|
373
|
+
verifyPassword: (username: string, password: string, options?: import("./RESTController").RequestOptions) => Promise<User>;
|
|
374
|
+
requestEmailVerification: (email: string, options?: import("./RESTController").RequestOptions) => Promise<void>;
|
|
375
|
+
};
|
|
376
|
+
setLiveQueryController(controller: {
|
|
377
|
+
setDefaultLiveQueryClient(liveQueryClient: LiveQueryClient): void;
|
|
378
|
+
getDefaultLiveQueryClient(): Promise<LiveQueryClient>;
|
|
379
|
+
_clearCachedDefaultClient(): void;
|
|
380
|
+
}): void;
|
|
381
|
+
getLiveQueryController(): {
|
|
382
|
+
setDefaultLiveQueryClient(liveQueryClient: LiveQueryClient): void;
|
|
383
|
+
getDefaultLiveQueryClient(): Promise<LiveQueryClient>;
|
|
384
|
+
_clearCachedDefaultClient(): void;
|
|
385
|
+
};
|
|
386
|
+
setHooksController(controller: {
|
|
387
|
+
get: (type: string, functionName?: string, triggerName?: string) => Promise<any>;
|
|
388
|
+
create: (hook: Hooks.HookDeclaration) => Promise<any>;
|
|
389
|
+
remove: (hook: Hooks.HookDeleteArg) => Promise<any>;
|
|
390
|
+
update: (hook: Hooks.HookDeclaration) => Promise<any>;
|
|
391
|
+
sendRequest?: (method: string, path: string, body?: any) => Promise<any>;
|
|
392
|
+
}): void;
|
|
393
|
+
getHooksController(): {
|
|
394
|
+
get: (type: string, functionName?: string, triggerName?: string) => Promise<any>;
|
|
395
|
+
create: (hook: Hooks.HookDeclaration) => Promise<any>;
|
|
396
|
+
remove: (hook: Hooks.HookDeleteArg) => Promise<any>;
|
|
397
|
+
update: (hook: Hooks.HookDeclaration) => Promise<any>;
|
|
398
|
+
sendRequest?: (method: string, path: string, body?: any) => Promise<any>;
|
|
399
|
+
};
|
|
400
|
+
setParseOp(op: any): void;
|
|
401
|
+
getParseOp(): any;
|
|
402
|
+
setParseObject(object: any): void;
|
|
403
|
+
getParseObject(): any;
|
|
404
|
+
setParseQuery(query: any): void;
|
|
405
|
+
getParseQuery(): any;
|
|
406
|
+
setParseRole(role: any): void;
|
|
407
|
+
getParseRole(): any;
|
|
408
|
+
setParseUser(user: any): void;
|
|
409
|
+
getParseUser(): any;
|
|
410
|
+
};
|
|
411
|
+
Config: typeof Config;
|
|
412
|
+
Error: typeof ParseError;
|
|
413
|
+
FacebookUtils: {
|
|
414
|
+
init(options: any): void;
|
|
415
|
+
isLinked(user: any): any;
|
|
416
|
+
logIn(permissions: any, options: any): Promise<User<import("./ParseObject").Attributes>>;
|
|
417
|
+
link(user: any, permissions: any, options: any): any;
|
|
418
|
+
unlink: (user: any, options: any) => any;
|
|
419
|
+
_getAuthProvider(): import("./ParseUser").AuthProvider;
|
|
420
|
+
};
|
|
421
|
+
File: typeof File;
|
|
422
|
+
GeoPoint: typeof GeoPoint;
|
|
423
|
+
Polygon: typeof Polygon;
|
|
424
|
+
Installation: typeof Installation;
|
|
425
|
+
LocalDatastore: {
|
|
426
|
+
isEnabled: boolean;
|
|
427
|
+
isSyncing: boolean;
|
|
428
|
+
fromPinWithName(name: string): Promise<Array<any>>;
|
|
429
|
+
pinWithName(name: string, value: any): Promise<void>;
|
|
430
|
+
unPinWithName(name: string): Promise<void>;
|
|
431
|
+
_getAllContents(): Promise<any>;
|
|
432
|
+
_getRawStorage(): Promise<any>;
|
|
433
|
+
_clear(): Promise<void>;
|
|
434
|
+
_handlePinAllWithName(name: string, objects: Array<ParseObject>): Promise<void>;
|
|
435
|
+
_handleUnPinAllWithName(name: string, objects: Array<ParseObject>): Promise<any[]>;
|
|
436
|
+
_getChildren(object: ParseObject): any;
|
|
437
|
+
_traverse(object: any, encountered: any): void;
|
|
438
|
+
_serializeObjectsFromPinName(name: string): Promise<any[]>;
|
|
439
|
+
_serializeObject(objectKey: string, localDatastore: any): Promise<any>;
|
|
440
|
+
_updateObjectIfPinned(object: ParseObject): Promise<void>;
|
|
441
|
+
_destroyObjectIfPinned(object: ParseObject): Promise<any[]>;
|
|
442
|
+
_updateLocalIdForObject(localId: string, object: ParseObject): Promise<any[]>;
|
|
443
|
+
updateFromServer(): Promise<void>;
|
|
444
|
+
getKeyForObject(object: any): string;
|
|
445
|
+
getPinName(pinName?: string): string;
|
|
446
|
+
checkIfEnabled(): any;
|
|
447
|
+
};
|
|
448
|
+
Object: typeof ParseObject;
|
|
449
|
+
Op: {
|
|
450
|
+
Set: typeof ParseOp.SetOp;
|
|
451
|
+
Unset: typeof ParseOp.UnsetOp;
|
|
452
|
+
Increment: typeof ParseOp.IncrementOp;
|
|
453
|
+
Add: typeof ParseOp.AddOp;
|
|
454
|
+
Remove: typeof ParseOp.RemoveOp;
|
|
455
|
+
AddUnique: typeof ParseOp.AddUniqueOp;
|
|
456
|
+
Relation: typeof ParseOp.RelationOp;
|
|
457
|
+
};
|
|
458
|
+
Push: typeof Push;
|
|
459
|
+
Query: typeof Query;
|
|
460
|
+
Relation: typeof Relation;
|
|
461
|
+
Role: typeof Role;
|
|
462
|
+
Schema: typeof Schema;
|
|
463
|
+
Session: typeof Session;
|
|
464
|
+
Storage: {
|
|
465
|
+
async(): boolean;
|
|
466
|
+
getItem(path: string): string | null;
|
|
467
|
+
getItemAsync(path: string): Promise<string | null>;
|
|
468
|
+
setItem(path: string, value: string): void;
|
|
469
|
+
setItemAsync(path: string, value: string): Promise<void>;
|
|
470
|
+
removeItem(path: string): void;
|
|
471
|
+
removeItemAsync(path: string): Promise<void>;
|
|
472
|
+
getAllKeys(): Array<string>;
|
|
473
|
+
getAllKeysAsync(): Promise<Array<string>>;
|
|
474
|
+
generatePath(path: string): string;
|
|
475
|
+
_clear(): void;
|
|
476
|
+
};
|
|
477
|
+
User: typeof User;
|
|
478
|
+
LiveQueryClient: typeof LiveQueryClient;
|
|
479
|
+
IndexedDB: any;
|
|
480
|
+
Hooks: any;
|
|
481
|
+
Parse: any;
|
|
482
|
+
/**
|
|
483
|
+
* @member {EventuallyQueue} Parse.EventuallyQueue
|
|
484
|
+
* @static
|
|
485
|
+
*/
|
|
486
|
+
EventuallyQueue: EventuallyQueue;
|
|
487
|
+
/**
|
|
488
|
+
* Call this method first to set up your authentication tokens for Parse.
|
|
489
|
+
*
|
|
490
|
+
* @param {string} applicationId Your Parse Application ID.
|
|
491
|
+
* @param {string} [javaScriptKey] Your Parse JavaScript Key (Not needed for parse-server)
|
|
492
|
+
* @param {string} [masterKey] Your Parse Master Key. (Node.js only!)
|
|
493
|
+
* @static
|
|
494
|
+
*/
|
|
495
|
+
initialize(applicationId: string, javaScriptKey: string): void;
|
|
496
|
+
_initialize(applicationId: string, javaScriptKey: string, masterKey?: string, maintenanceKey?: string): void;
|
|
497
|
+
/**
|
|
498
|
+
* Call this method to set your AsyncStorage engine
|
|
499
|
+
* Starting Parse@1.11, the ParseSDK do not provide a React AsyncStorage as the ReactNative module
|
|
500
|
+
* is not provided at a stable path and changes over versions.
|
|
501
|
+
*
|
|
502
|
+
* @param {AsyncStorage} storage a react native async storage.
|
|
503
|
+
* @static
|
|
504
|
+
*/
|
|
505
|
+
setAsyncStorage(storage: any): void;
|
|
506
|
+
/**
|
|
507
|
+
* Call this method to set your LocalDatastoreStorage engine
|
|
508
|
+
* If using React-Native use {@link Parse.setAsyncStorage Parse.setAsyncStorage()}
|
|
509
|
+
*
|
|
510
|
+
* @param {LocalDatastoreController} controller a data storage.
|
|
511
|
+
* @static
|
|
512
|
+
*/
|
|
513
|
+
setLocalDatastoreController(controller: any): void;
|
|
514
|
+
/**
|
|
515
|
+
* Returns information regarding the current server's health
|
|
516
|
+
*
|
|
517
|
+
* @returns {Promise}
|
|
518
|
+
* @static
|
|
519
|
+
*/
|
|
520
|
+
getServerHealth(): Promise<any>;
|
|
521
|
+
/**
|
|
522
|
+
* @member {string} Parse.applicationId
|
|
523
|
+
* @static
|
|
524
|
+
*/
|
|
525
|
+
applicationId: any;
|
|
526
|
+
/**
|
|
527
|
+
* @member {string} Parse.javaScriptKey
|
|
528
|
+
* @static
|
|
529
|
+
*/
|
|
530
|
+
javaScriptKey: any;
|
|
531
|
+
/**
|
|
532
|
+
* @member {string} Parse.masterKey
|
|
533
|
+
* @static
|
|
534
|
+
*/
|
|
535
|
+
masterKey: any;
|
|
536
|
+
/**
|
|
537
|
+
* @member {string} Parse.maintenanceKey
|
|
538
|
+
* @static
|
|
539
|
+
*/
|
|
540
|
+
maintenanceKey: any;
|
|
541
|
+
/**
|
|
542
|
+
* @member {string} Parse.serverURL
|
|
543
|
+
* @static
|
|
544
|
+
*/
|
|
545
|
+
serverURL: any;
|
|
546
|
+
/**
|
|
547
|
+
* @member {string} Parse.serverAuthToken
|
|
548
|
+
* @static
|
|
549
|
+
*/
|
|
550
|
+
serverAuthToken: any;
|
|
551
|
+
/**
|
|
552
|
+
* @member {string} Parse.serverAuthType
|
|
553
|
+
* @static
|
|
554
|
+
*/
|
|
555
|
+
serverAuthType: any;
|
|
556
|
+
/**
|
|
557
|
+
* @member {ParseLiveQuery} Parse.LiveQuery
|
|
558
|
+
* @static
|
|
559
|
+
*/
|
|
560
|
+
LiveQuery: ParseLiveQuery;
|
|
561
|
+
/**
|
|
562
|
+
* @member {string} Parse.liveQueryServerURL
|
|
563
|
+
* @static
|
|
564
|
+
*/
|
|
565
|
+
liveQueryServerURL: any;
|
|
566
|
+
/**
|
|
567
|
+
* @member {boolean} Parse.encryptedUser
|
|
568
|
+
* @static
|
|
569
|
+
*/
|
|
570
|
+
encryptedUser: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* @member {string} Parse.secret
|
|
573
|
+
* @static
|
|
574
|
+
*/
|
|
575
|
+
secret: any;
|
|
576
|
+
/**
|
|
577
|
+
* @member {boolean} Parse.idempotency
|
|
578
|
+
* @static
|
|
579
|
+
*/
|
|
580
|
+
idempotency: any;
|
|
581
|
+
/**
|
|
582
|
+
* @member {boolean} Parse.allowCustomObjectId
|
|
583
|
+
* @static
|
|
584
|
+
*/
|
|
585
|
+
allowCustomObjectId: any;
|
|
586
|
+
_request(...args: any[]): any;
|
|
587
|
+
_ajax(...args: any[]): any;
|
|
588
|
+
_decode(_: any, value: any): any;
|
|
589
|
+
_encode(value: any, _: any, disallowObjects: any): any;
|
|
590
|
+
_getInstallationId(): Promise<string>;
|
|
591
|
+
/**
|
|
592
|
+
* Enable pinning in your application.
|
|
593
|
+
* This must be called after `Parse.initialize` in your application.
|
|
594
|
+
*
|
|
595
|
+
* @param [polling] Allow pinging the server /health endpoint. Default true
|
|
596
|
+
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
597
|
+
* @static
|
|
598
|
+
*/
|
|
599
|
+
enableLocalDatastore(polling?: boolean, ms?: number): void;
|
|
600
|
+
/**
|
|
601
|
+
* Flag that indicates whether Local Datastore is enabled.
|
|
602
|
+
*
|
|
603
|
+
* @static
|
|
604
|
+
* @returns {boolean}
|
|
605
|
+
*/
|
|
606
|
+
isLocalDatastoreEnabled(): boolean;
|
|
607
|
+
/**
|
|
608
|
+
* Gets all contents from Local Datastore
|
|
609
|
+
*
|
|
610
|
+
* <pre>
|
|
611
|
+
* await Parse.dumpLocalDatastore();
|
|
612
|
+
* </pre>
|
|
613
|
+
*
|
|
614
|
+
* @static
|
|
615
|
+
* @returns {object}
|
|
616
|
+
*/
|
|
617
|
+
dumpLocalDatastore(): Promise<any>;
|
|
618
|
+
/**
|
|
619
|
+
* Enable the current user encryption.
|
|
620
|
+
* This must be called before login any user.
|
|
621
|
+
*
|
|
622
|
+
* @static
|
|
623
|
+
*/
|
|
624
|
+
enableEncryptedUser(): void;
|
|
625
|
+
/**
|
|
626
|
+
* Flag that indicates whether Encrypted User is enabled.
|
|
627
|
+
*
|
|
628
|
+
* @static
|
|
629
|
+
* @returns {boolean}
|
|
630
|
+
*/
|
|
631
|
+
isEncryptedUserEnabled(): any;
|
|
632
|
+
};
|
|
633
|
+
export default Parse;
|