parse 6.1.0-alpha.1 → 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.
- package/README.md +0 -8
- package/dist/parse.js +93 -105
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +93 -105
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/Cloud.js +1 -0
- package/lib/browser/CoreManager.js +2 -2
- package/lib/browser/CryptoController.js +0 -1
- package/lib/browser/EventEmitter.js +0 -1
- package/lib/browser/EventuallyQueue.js +6 -10
- package/lib/browser/IndexedDBStorageController.js +0 -1
- package/lib/browser/InstallationController.js +0 -1
- package/lib/browser/LiveQuerySubscription.js +4 -4
- 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/Parse.js +12 -1
- package/lib/browser/ParseACL.js +1 -1
- package/lib/browser/ParseConfig.js +2 -4
- package/lib/browser/ParseInstallation.js +0 -1
- package/lib/browser/ParseLiveQuery.js +2 -2
- package/lib/browser/ParseObject.js +10 -10
- package/lib/browser/ParseQuery.js +26 -25
- package/lib/browser/ParseRole.js +1 -1
- package/lib/browser/ParseSchema.js +6 -6
- package/lib/browser/ParseUser.js +10 -12
- package/lib/browser/RESTController.js +7 -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/Cloud.js +1 -0
- package/lib/node/CoreManager.js +2 -2
- package/lib/node/CryptoController.js +0 -1
- package/lib/node/EventEmitter.js +0 -1
- package/lib/node/EventuallyQueue.js +6 -7
- package/lib/node/IndexedDBStorageController.js +0 -1
- package/lib/node/InstallationController.js +0 -1
- package/lib/node/LiveQuerySubscription.js +4 -4
- 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/Parse.js +12 -1
- package/lib/node/ParseACL.js +1 -1
- package/lib/node/ParseConfig.js +2 -2
- package/lib/node/ParseInstallation.js +0 -1
- package/lib/node/ParseLiveQuery.js +2 -2
- package/lib/node/ParseObject.js +10 -7
- package/lib/node/ParseQuery.js +7 -7
- package/lib/node/ParseRole.js +1 -1
- package/lib/node/ParseSchema.js +6 -4
- package/lib/node/ParseUser.js +10 -10
- package/lib/node/RESTController.js +3 -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 +2 -2
- package/lib/react-native/CryptoController.js +0 -1
- package/lib/react-native/EventEmitter.js +0 -1
- package/lib/react-native/EventuallyQueue.js +5 -9
- package/lib/react-native/IndexedDBStorageController.js +0 -1
- package/lib/react-native/InstallationController.js +0 -1
- package/lib/react-native/LiveQuerySubscription.js +7 -7
- 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/Parse.js +8 -1
- package/lib/react-native/ParseConfig.js +2 -4
- package/lib/react-native/ParseInstallation.js +0 -1
- package/lib/react-native/ParseLiveQuery.js +2 -2
- package/lib/react-native/ParseObject.js +16 -18
- package/lib/react-native/ParseQuery.js +5 -6
- package/lib/react-native/ParseSchema.js +5 -6
- package/lib/react-native/ParseUser.js +3 -5
- package/lib/react-native/RESTController.js +3 -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/Cloud.js +1 -0
- package/lib/weapp/CoreManager.js +2 -2
- package/lib/weapp/CryptoController.js +0 -1
- package/lib/weapp/EventEmitter.js +0 -1
- package/lib/weapp/EventuallyQueue.js +6 -10
- package/lib/weapp/IndexedDBStorageController.js +0 -1
- package/lib/weapp/InstallationController.js +0 -1
- package/lib/weapp/LiveQuerySubscription.js +4 -4
- 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/Parse.js +12 -1
- package/lib/weapp/ParseACL.js +1 -1
- package/lib/weapp/ParseConfig.js +2 -4
- package/lib/weapp/ParseInstallation.js +0 -1
- package/lib/weapp/ParseLiveQuery.js +2 -2
- package/lib/weapp/ParseObject.js +10 -10
- package/lib/weapp/ParseQuery.js +26 -25
- package/lib/weapp/ParseRole.js +1 -1
- package/lib/weapp/ParseSchema.js +6 -6
- package/lib/weapp/ParseUser.js +10 -12
- package/lib/weapp/RESTController.js +7 -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 +15 -12
- 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
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import type { AttributeMap, ObjectCache, OpsMap, State } from './ObjectStateMutations';
|
|
2
|
+
import type ParseFile from './ParseFile';
|
|
3
|
+
import type { FileSaveOptions, FileSource } from './ParseFile';
|
|
4
|
+
import type { Op } from './ParseOp';
|
|
5
|
+
import type ParseObject from './ParseObject';
|
|
6
|
+
import type { SaveOptions } from './ParseObject';
|
|
7
|
+
import type { QueryJSON } from './ParseQuery';
|
|
8
|
+
import type ParseUser from './ParseUser';
|
|
9
|
+
import type { AuthData } from './ParseUser';
|
|
10
|
+
import type { PushData } from './Push';
|
|
11
|
+
import type { RequestOptions, FullOptions } from './RESTController';
|
|
12
|
+
import type ParseSession from './ParseSession';
|
|
13
|
+
import type { HookDeclaration, HookDeleteArg } from './ParseHooks';
|
|
14
|
+
import type ParseConfig from './ParseConfig';
|
|
15
|
+
import type LiveQueryClient from './LiveQueryClient';
|
|
16
|
+
import type ParseInstallation from './ParseInstallation';
|
|
17
|
+
type AnalyticsController = {
|
|
18
|
+
track: (name: string, dimensions: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
}) => Promise<any>;
|
|
21
|
+
};
|
|
22
|
+
type CloudController = {
|
|
23
|
+
run: (name: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
24
|
+
getJobsData: (options?: RequestOptions) => Promise<any>;
|
|
25
|
+
/** Returns promise which resolves with JobStatusId of the job */
|
|
26
|
+
startJob: (name: string, data: any, options?: RequestOptions) => Promise<string>;
|
|
27
|
+
};
|
|
28
|
+
type ConfigController = {
|
|
29
|
+
current: () => Promise<ParseConfig> | ParseConfig;
|
|
30
|
+
get: (opts?: RequestOptions) => Promise<ParseConfig>;
|
|
31
|
+
save: (attrs: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}, masterKeyOnlyFlags?: {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}) => Promise<void>;
|
|
36
|
+
};
|
|
37
|
+
type CryptoController = {
|
|
38
|
+
encrypt: (obj: any, secretKey: string) => string;
|
|
39
|
+
decrypt: (encryptedText: string, secretKey: any) => string;
|
|
40
|
+
};
|
|
41
|
+
type FileController = {
|
|
42
|
+
saveFile: (name: string, source: FileSource, options?: FullOptions) => Promise<any>;
|
|
43
|
+
saveBase64: (name: string, source: FileSource, options?: FileSaveOptions) => Promise<{
|
|
44
|
+
name: string;
|
|
45
|
+
url: string;
|
|
46
|
+
}>;
|
|
47
|
+
download: (uri: string, options?: any) => Promise<{
|
|
48
|
+
base64?: string;
|
|
49
|
+
contentType?: string;
|
|
50
|
+
}>;
|
|
51
|
+
deleteFile: (name: string, options?: {
|
|
52
|
+
useMasterKey?: boolean;
|
|
53
|
+
}) => Promise<void>;
|
|
54
|
+
};
|
|
55
|
+
type InstallationController = {
|
|
56
|
+
currentInstallationId: () => Promise<string>;
|
|
57
|
+
currentInstallation: () => Promise<ParseInstallation | null>;
|
|
58
|
+
updateInstallationOnDisk: (installation: ParseInstallation) => Promise<void>;
|
|
59
|
+
};
|
|
60
|
+
type ObjectController = {
|
|
61
|
+
fetch: (object: ParseObject | Array<ParseObject>, forceFetch: boolean, options?: RequestOptions) => Promise<Array<ParseObject | undefined> | ParseObject | undefined>;
|
|
62
|
+
save: (object: ParseObject | Array<ParseObject | ParseFile> | null, options?: RequestOptions) => Promise<ParseObject | Array<ParseObject> | ParseFile | undefined>;
|
|
63
|
+
destroy: (object: ParseObject | Array<ParseObject>, options?: RequestOptions) => Promise<ParseObject | Array<ParseObject>>;
|
|
64
|
+
};
|
|
65
|
+
type ObjectStateController = {
|
|
66
|
+
getState: (obj: any) => State | null;
|
|
67
|
+
initializeState: (obj: any, initial?: State) => State;
|
|
68
|
+
removeState: (obj: any) => State | null;
|
|
69
|
+
getServerData: (obj: any) => AttributeMap;
|
|
70
|
+
setServerData: (obj: any, attributes: AttributeMap) => void;
|
|
71
|
+
getPendingOps: (obj: any) => Array<OpsMap>;
|
|
72
|
+
setPendingOp: (obj: any, attr: string, op?: Op) => void;
|
|
73
|
+
pushPendingState: (obj: any) => void;
|
|
74
|
+
popPendingState: (obj: any) => OpsMap | undefined;
|
|
75
|
+
mergeFirstPendingState: (obj: any) => void;
|
|
76
|
+
getObjectCache: (obj: any) => ObjectCache;
|
|
77
|
+
estimateAttribute: (obj: any, attr: string) => any;
|
|
78
|
+
estimateAttributes: (obj: any) => AttributeMap;
|
|
79
|
+
commitServerChanges: (obj: any, changes: AttributeMap) => void;
|
|
80
|
+
enqueueTask: (obj: any, task: () => Promise<void>) => Promise<void>;
|
|
81
|
+
clearAllState: () => void;
|
|
82
|
+
duplicateState: (source: any, dest: any) => void;
|
|
83
|
+
};
|
|
84
|
+
type PushController = {
|
|
85
|
+
send: (data: PushData, options?: FullOptions) => Promise<any>;
|
|
86
|
+
};
|
|
87
|
+
type QueryController = {
|
|
88
|
+
find(className: string, params: QueryJSON, options?: RequestOptions): Promise<{
|
|
89
|
+
results?: Array<ParseObject>;
|
|
90
|
+
className?: string;
|
|
91
|
+
count?: number;
|
|
92
|
+
}>;
|
|
93
|
+
aggregate(className: string, params: any, options?: RequestOptions): Promise<{
|
|
94
|
+
results?: Array<any>;
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
97
|
+
export type QueueObject = {
|
|
98
|
+
queueId: string;
|
|
99
|
+
action: string;
|
|
100
|
+
object: ParseObject;
|
|
101
|
+
serverOptions: SaveOptions | RequestOptions;
|
|
102
|
+
id: string;
|
|
103
|
+
className: string;
|
|
104
|
+
hash: string;
|
|
105
|
+
createdAt: Date;
|
|
106
|
+
};
|
|
107
|
+
export type Queue = Array<QueueObject>;
|
|
108
|
+
export type EventuallyQueue = {
|
|
109
|
+
save: (object: ParseObject, serverOptions?: SaveOptions) => Promise<void>;
|
|
110
|
+
destroy: (object: ParseObject, serverOptions?: RequestOptions) => Promise<void>;
|
|
111
|
+
generateQueueId: (action: string, object: ParseObject) => string;
|
|
112
|
+
enqueue(action: string, object: ParseObject, serverOptions?: SaveOptions | RequestOptions): Promise<void>;
|
|
113
|
+
store(data: Queue): Promise<void>;
|
|
114
|
+
load(): Promise<string | null>;
|
|
115
|
+
getQueue(): Promise<Queue>;
|
|
116
|
+
setQueue(queue: Queue): Promise<void>;
|
|
117
|
+
remove(queueId: string): Promise<void>;
|
|
118
|
+
clear(): Promise<void>;
|
|
119
|
+
queueItemExists(queue: Queue, queueId: string): number;
|
|
120
|
+
length(): Promise<number>;
|
|
121
|
+
sendQueue(): Promise<boolean>;
|
|
122
|
+
sendQueueCallback(object: ParseObject, queueObject: QueueObject): Promise<void>;
|
|
123
|
+
poll(ms?: number): void;
|
|
124
|
+
stopPoll(): void;
|
|
125
|
+
isPolling(): boolean;
|
|
126
|
+
process: {
|
|
127
|
+
create(ObjectType: any, queueObject: any): Promise<void>;
|
|
128
|
+
byId(ObjectType: any, queueObject: any): Promise<void>;
|
|
129
|
+
byHash(ObjectType: any, queueObject: any): Promise<void>;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
type RESTController = {
|
|
133
|
+
request: (method: string, path: string, data?: any, options?: RequestOptions) => Promise<any>;
|
|
134
|
+
ajax: (method: string, url: string, data: any, headers?: any, options?: FullOptions) => Promise<any>;
|
|
135
|
+
handleError: (err?: any) => void;
|
|
136
|
+
};
|
|
137
|
+
type SchemaController = {
|
|
138
|
+
purge: (className: string) => Promise<any>;
|
|
139
|
+
get: (className: string, options?: RequestOptions) => Promise<any>;
|
|
140
|
+
delete: (className: string, options?: RequestOptions) => Promise<void>;
|
|
141
|
+
create: (className: string, params: any, options?: RequestOptions) => Promise<any>;
|
|
142
|
+
update: (className: string, params: any, options?: RequestOptions) => Promise<any>;
|
|
143
|
+
send(className: string, method: string, params: any, options?: RequestOptions): Promise<any>;
|
|
144
|
+
};
|
|
145
|
+
type SessionController = {
|
|
146
|
+
getSession: (options?: RequestOptions) => Promise<ParseSession>;
|
|
147
|
+
};
|
|
148
|
+
type StorageController = {
|
|
149
|
+
async: 0;
|
|
150
|
+
getItem: (path: string) => string | null;
|
|
151
|
+
setItem: (path: string, value: string) => void;
|
|
152
|
+
removeItem: (path: string) => void;
|
|
153
|
+
getItemAsync?: (path: string) => Promise<string | null>;
|
|
154
|
+
setItemAsync?: (path: string, value: string) => Promise<void>;
|
|
155
|
+
removeItemAsync?: (path: string) => Promise<void>;
|
|
156
|
+
clear: () => void;
|
|
157
|
+
getAllKeys?: () => Array<string>;
|
|
158
|
+
getAllKeysAsync?: () => Promise<Array<string>>;
|
|
159
|
+
} | {
|
|
160
|
+
async: 1;
|
|
161
|
+
getItem?: (path: string) => string | null;
|
|
162
|
+
setItem?: (path: string, value: string) => void;
|
|
163
|
+
removeItem?: (path: string) => void;
|
|
164
|
+
getItemAsync: (path: string) => Promise<string | null>;
|
|
165
|
+
setItemAsync: (path: string, value: string) => Promise<void>;
|
|
166
|
+
removeItemAsync: (path: string) => Promise<void>;
|
|
167
|
+
clear: () => void;
|
|
168
|
+
getAllKeys?: () => Array<string>;
|
|
169
|
+
getAllKeysAsync?: () => Promise<Array<string>>;
|
|
170
|
+
};
|
|
171
|
+
type LocalDatastoreController = {
|
|
172
|
+
fromPinWithName: (name: string) => any | undefined;
|
|
173
|
+
pinWithName: (name: string, objects: any) => void;
|
|
174
|
+
unPinWithName: (name: string) => void;
|
|
175
|
+
getAllContents: () => any | undefined;
|
|
176
|
+
clear: () => void;
|
|
177
|
+
};
|
|
178
|
+
type UserController = {
|
|
179
|
+
setCurrentUser: (user: ParseUser) => Promise<void>;
|
|
180
|
+
currentUser: () => ParseUser | null;
|
|
181
|
+
currentUserAsync: () => Promise<ParseUser | null>;
|
|
182
|
+
signUp: (user: ParseUser, attrs: AttributeMap, options?: RequestOptions) => Promise<ParseUser>;
|
|
183
|
+
logIn: (user: ParseUser, options?: RequestOptions) => Promise<ParseUser>;
|
|
184
|
+
loginAs: (user: ParseUser, userId: string) => Promise<ParseUser>;
|
|
185
|
+
become: (user: ParseUser, options?: RequestOptions) => Promise<ParseUser>;
|
|
186
|
+
hydrate: (user: ParseUser, userJSON: AttributeMap) => Promise<ParseUser>;
|
|
187
|
+
logOut: (options?: RequestOptions) => Promise<void>;
|
|
188
|
+
me: (user: ParseUser, options?: RequestOptions) => Promise<ParseUser>;
|
|
189
|
+
requestPasswordReset: (email: string, options?: RequestOptions) => Promise<void>;
|
|
190
|
+
updateUserOnDisk: (user: ParseUser) => Promise<ParseUser>;
|
|
191
|
+
upgradeToRevocableSession: (user: ParseUser, options?: RequestOptions) => Promise<void>;
|
|
192
|
+
linkWith: (user: ParseUser, authData: AuthData, options?: FullOptions) => Promise<ParseUser>;
|
|
193
|
+
removeUserFromDisk: () => Promise<ParseUser | void>;
|
|
194
|
+
verifyPassword: (username: string, password: string, options?: RequestOptions) => Promise<ParseUser>;
|
|
195
|
+
requestEmailVerification: (email: string, options?: RequestOptions) => Promise<void>;
|
|
196
|
+
};
|
|
197
|
+
type HooksController = {
|
|
198
|
+
get: (type: string, functionName?: string, triggerName?: string) => Promise<any>;
|
|
199
|
+
create: (hook: HookDeclaration) => Promise<any>;
|
|
200
|
+
remove: (hook: HookDeleteArg) => Promise<any>;
|
|
201
|
+
update: (hook: HookDeclaration) => Promise<any>;
|
|
202
|
+
sendRequest?: (method: string, path: string, body?: any) => Promise<any>;
|
|
203
|
+
};
|
|
204
|
+
type LiveQueryControllerType = {
|
|
205
|
+
setDefaultLiveQueryClient(liveQueryClient: LiveQueryClient): void;
|
|
206
|
+
getDefaultLiveQueryClient(): Promise<LiveQueryClient>;
|
|
207
|
+
_clearCachedDefaultClient(): void;
|
|
208
|
+
};
|
|
209
|
+
/** Based on https://github.com/react-native-async-storage/async-storage/blob/main/packages/default-storage-backend/src/types.ts */
|
|
210
|
+
type AsyncStorageType = {
|
|
211
|
+
/** Fetches an item for a `key` and invokes a callback upon completion. */
|
|
212
|
+
getItem: (key: string, callback?: (error?: Error | null, result?: string | null) => void) => Promise<string | null>;
|
|
213
|
+
/** Sets the value for a `key` and invokes a callback upon completion. */
|
|
214
|
+
setItem: (key: string, value: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
215
|
+
/** Removes an item for a `key` and invokes a callback upon completion. */
|
|
216
|
+
removeItem: (key: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
217
|
+
/** Merges an existing `key` value with an input value, assuming both values are stringified JSON. */
|
|
218
|
+
mergeItem: (key: string, value: string, callback?: (error?: Error | null) => void) => Promise<void>;
|
|
219
|
+
/**
|
|
220
|
+
* Erases *all* `AsyncStorage` for all clients, libraries, etc. You probably
|
|
221
|
+
* don't want to call this; use `removeItem` or `multiRemove` to clear only
|
|
222
|
+
* your app's keys.
|
|
223
|
+
*/
|
|
224
|
+
clear: (callback?: (error?: Error | null) => void) => Promise<void>;
|
|
225
|
+
/** Gets *all* keys known to your app; for all callers, libraries, etc. */
|
|
226
|
+
getAllKeys: (callback?: (error?: Error | null, result?: readonly string[] | null) => void) => Promise<readonly string[]>;
|
|
227
|
+
/**
|
|
228
|
+
* This allows you to batch the fetching of items given an array of `key`
|
|
229
|
+
* inputs. Your callback will be invoked with an array of corresponding
|
|
230
|
+
* key-value pairs found.
|
|
231
|
+
*/
|
|
232
|
+
multiGet: (keys: readonly string[], callback?: (errors?: readonly (Error | null)[] | null, result?: readonly [string, string][]) => void) => Promise<readonly [string, string | null][]>;
|
|
233
|
+
/**
|
|
234
|
+
* Use this as a batch operation for storing multiple key-value pairs. When
|
|
235
|
+
* the operation completes you'll get a single callback with any errors.
|
|
236
|
+
*
|
|
237
|
+
* See https://react-native-async-storage.github.io/async-storage/docs/api#multiset
|
|
238
|
+
*/
|
|
239
|
+
multiSet: (keyValuePairs: [string, string][], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<readonly [string, string | null][]>;
|
|
240
|
+
/**
|
|
241
|
+
* Call this to batch the deletion of all keys in the `keys` array.
|
|
242
|
+
*
|
|
243
|
+
* See https://react-native-async-storage.github.io/async-storage/docs/api#multiremove
|
|
244
|
+
*/
|
|
245
|
+
multiRemove: (keys: readonly string[], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* Batch operation to merge in existing and new values for a given set of
|
|
248
|
+
* keys. This assumes that the values are stringified JSON.
|
|
249
|
+
*
|
|
250
|
+
* See https://react-native-async-storage.github.io/async-storage/docs/api#multimerge
|
|
251
|
+
*/
|
|
252
|
+
multiMerge: (keyValuePairs: [string, string][], callback?: (errors?: readonly (Error | null)[] | null) => void) => Promise<void>;
|
|
253
|
+
};
|
|
254
|
+
export type WebSocketController = {
|
|
255
|
+
onopen: () => void;
|
|
256
|
+
onmessage: (message: any) => void;
|
|
257
|
+
onclose: (arg?: any) => void;
|
|
258
|
+
onerror: (error: any) => void;
|
|
259
|
+
send: (data: any) => void;
|
|
260
|
+
close: () => void;
|
|
261
|
+
};
|
|
262
|
+
declare const CoreManager: {
|
|
263
|
+
get: (key: string) => any;
|
|
264
|
+
set: (key: string, value: any) => void;
|
|
265
|
+
setIfNeeded: (key: string, value: any) => any;
|
|
266
|
+
setAnalyticsController(controller: AnalyticsController): void;
|
|
267
|
+
getAnalyticsController(): AnalyticsController;
|
|
268
|
+
setCloudController(controller: CloudController): void;
|
|
269
|
+
getCloudController(): CloudController;
|
|
270
|
+
setConfigController(controller: ConfigController): void;
|
|
271
|
+
getConfigController(): ConfigController;
|
|
272
|
+
setCryptoController(controller: CryptoController): void;
|
|
273
|
+
getCryptoController(): CryptoController;
|
|
274
|
+
setEventEmitter(eventEmitter: any): void;
|
|
275
|
+
getEventEmitter(): any;
|
|
276
|
+
setFileController(controller: FileController): void;
|
|
277
|
+
setEventuallyQueue(controller: EventuallyQueue): void;
|
|
278
|
+
getEventuallyQueue(): EventuallyQueue;
|
|
279
|
+
getFileController(): FileController;
|
|
280
|
+
setInstallationController(controller: InstallationController): void;
|
|
281
|
+
getInstallationController(): InstallationController;
|
|
282
|
+
setLiveQuery(liveQuery: any): void;
|
|
283
|
+
getLiveQuery(): any;
|
|
284
|
+
setObjectController(controller: ObjectController): void;
|
|
285
|
+
getObjectController(): ObjectController;
|
|
286
|
+
setObjectStateController(controller: ObjectStateController): void;
|
|
287
|
+
getObjectStateController(): ObjectStateController;
|
|
288
|
+
setPushController(controller: PushController): void;
|
|
289
|
+
getPushController(): PushController;
|
|
290
|
+
setQueryController(controller: QueryController): void;
|
|
291
|
+
getQueryController(): QueryController;
|
|
292
|
+
setRESTController(controller: RESTController): void;
|
|
293
|
+
getRESTController(): RESTController;
|
|
294
|
+
setSchemaController(controller: SchemaController): void;
|
|
295
|
+
getSchemaController(): SchemaController;
|
|
296
|
+
setSessionController(controller: SessionController): void;
|
|
297
|
+
getSessionController(): SessionController;
|
|
298
|
+
setStorageController(controller: StorageController): void;
|
|
299
|
+
setLocalDatastoreController(controller: LocalDatastoreController): void;
|
|
300
|
+
getLocalDatastoreController(): LocalDatastoreController;
|
|
301
|
+
setLocalDatastore(store: any): void;
|
|
302
|
+
getLocalDatastore(): any;
|
|
303
|
+
getStorageController(): StorageController;
|
|
304
|
+
setAsyncStorage(storage: AsyncStorageType): void;
|
|
305
|
+
getAsyncStorage(): AsyncStorageType;
|
|
306
|
+
setWebSocketController(controller: new (url: string | URL, protocols?: string | string[] | undefined) => WebSocketController): void;
|
|
307
|
+
getWebSocketController(): new (url: string | URL, protocols?: string | string[] | undefined) => WebSocketController;
|
|
308
|
+
setUserController(controller: UserController): void;
|
|
309
|
+
getUserController(): UserController;
|
|
310
|
+
setLiveQueryController(controller: LiveQueryControllerType): void;
|
|
311
|
+
getLiveQueryController(): LiveQueryControllerType;
|
|
312
|
+
setHooksController(controller: HooksController): void;
|
|
313
|
+
getHooksController(): HooksController;
|
|
314
|
+
setParseOp(op: any): void;
|
|
315
|
+
getParseOp(): any;
|
|
316
|
+
setParseObject(object: any): void;
|
|
317
|
+
getParseObject(): any;
|
|
318
|
+
setParseQuery(query: any): void;
|
|
319
|
+
getParseQuery(): any;
|
|
320
|
+
setParseRole(role: any): void;
|
|
321
|
+
getParseRole(): any;
|
|
322
|
+
setParseUser(user: any): void;
|
|
323
|
+
getParseUser(): any;
|
|
324
|
+
};
|
|
325
|
+
export default CoreManager;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import ParseObject from './ParseObject';
|
|
2
|
+
import type { Queue, QueueObject } from './CoreManager';
|
|
3
|
+
import type { SaveOptions } from './ParseObject';
|
|
4
|
+
import type { RequestOptions } from './RESTController';
|
|
5
|
+
/**
|
|
6
|
+
* Provides utility functions to queue objects that will be
|
|
7
|
+
* saved to the server at a later date.
|
|
8
|
+
*
|
|
9
|
+
* @class Parse.EventuallyQueue
|
|
10
|
+
* @static
|
|
11
|
+
*/
|
|
12
|
+
declare const EventuallyQueue: {
|
|
13
|
+
/**
|
|
14
|
+
* Add object to queue with save operation.
|
|
15
|
+
*
|
|
16
|
+
* @function save
|
|
17
|
+
* @name Parse.EventuallyQueue.save
|
|
18
|
+
* @param {ParseObject} object Parse.Object to be saved eventually
|
|
19
|
+
* @param {object} [serverOptions] See {@link https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Object.html#save Parse.Object.save} options.
|
|
20
|
+
* @returns {Promise} A promise that is fulfilled if object is added to queue.
|
|
21
|
+
* @static
|
|
22
|
+
* @see Parse.Object#saveEventually
|
|
23
|
+
*/
|
|
24
|
+
save(object: ParseObject, serverOptions?: SaveOptions): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Add object to queue with save operation.
|
|
27
|
+
*
|
|
28
|
+
* @function destroy
|
|
29
|
+
* @name Parse.EventuallyQueue.destroy
|
|
30
|
+
* @param {ParseObject} object Parse.Object to be destroyed eventually
|
|
31
|
+
* @param {object} [serverOptions] See {@link https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Object.html#destroy Parse.Object.destroy} options
|
|
32
|
+
* @returns {Promise} A promise that is fulfilled if object is added to queue.
|
|
33
|
+
* @static
|
|
34
|
+
* @see Parse.Object#destroyEventually
|
|
35
|
+
*/
|
|
36
|
+
destroy(object: ParseObject, serverOptions?: RequestOptions): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Generate unique identifier to avoid duplicates and maintain previous state.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} action save / destroy
|
|
41
|
+
* @param {object} object Parse.Object to be queued
|
|
42
|
+
* @returns {string}
|
|
43
|
+
* @static
|
|
44
|
+
* @ignore
|
|
45
|
+
*/
|
|
46
|
+
generateQueueId(action: string, object: ParseObject): string;
|
|
47
|
+
/**
|
|
48
|
+
* Build queue object and add to queue.
|
|
49
|
+
*
|
|
50
|
+
* @param {string} action save / destroy
|
|
51
|
+
* @param {object} object Parse.Object to be queued
|
|
52
|
+
* @param {object} [serverOptions]
|
|
53
|
+
* @returns {Promise} A promise that is fulfilled if object is added to queue.
|
|
54
|
+
* @static
|
|
55
|
+
* @ignore
|
|
56
|
+
*/
|
|
57
|
+
enqueue(action: string, object: ParseObject, serverOptions?: SaveOptions | RequestOptions): Promise<void>;
|
|
58
|
+
store(data: Queue): Promise<void>;
|
|
59
|
+
load(): Promise<string | null>;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the in-memory queue from local storage and returns.
|
|
62
|
+
*
|
|
63
|
+
* @function getQueue
|
|
64
|
+
* @name Parse.EventuallyQueue.getQueue
|
|
65
|
+
* @returns {Promise<Queue>}
|
|
66
|
+
* @static
|
|
67
|
+
*/
|
|
68
|
+
getQueue(): Promise<Queue>;
|
|
69
|
+
/**
|
|
70
|
+
* Saves the queue to local storage
|
|
71
|
+
*
|
|
72
|
+
* @param {Queue} queue Queue containing Parse.Object data.
|
|
73
|
+
* @returns {Promise} A promise that is fulfilled when queue is stored.
|
|
74
|
+
* @static
|
|
75
|
+
* @ignore
|
|
76
|
+
*/
|
|
77
|
+
setQueue(queue: Queue): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Removes Parse.Object data from queue.
|
|
80
|
+
*
|
|
81
|
+
* @param {string} queueId Unique identifier for Parse.Object data.
|
|
82
|
+
* @returns {Promise} A promise that is fulfilled when queue is stored.
|
|
83
|
+
* @static
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
remove(queueId: string): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Removes all objects from queue.
|
|
89
|
+
*
|
|
90
|
+
* @function clear
|
|
91
|
+
* @name Parse.EventuallyQueue.clear
|
|
92
|
+
* @returns {Promise} A promise that is fulfilled when queue is cleared.
|
|
93
|
+
* @static
|
|
94
|
+
*/
|
|
95
|
+
clear(): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Return the index of a queueId in the queue. Returns -1 if not found.
|
|
98
|
+
*
|
|
99
|
+
* @param {Queue} queue Queue containing Parse.Object data.
|
|
100
|
+
* @param {string} queueId Unique identifier for Parse.Object data.
|
|
101
|
+
* @returns {number}
|
|
102
|
+
* @static
|
|
103
|
+
* @ignore
|
|
104
|
+
*/
|
|
105
|
+
queueItemExists(queue: Queue, queueId: string): number;
|
|
106
|
+
/**
|
|
107
|
+
* Return the number of objects in the queue.
|
|
108
|
+
*
|
|
109
|
+
* @function length
|
|
110
|
+
* @name Parse.EventuallyQueue.length
|
|
111
|
+
* @returns {Promise<number>}
|
|
112
|
+
* @static
|
|
113
|
+
*/
|
|
114
|
+
length(): Promise<number>;
|
|
115
|
+
/**
|
|
116
|
+
* Sends the queue to the server.
|
|
117
|
+
*
|
|
118
|
+
* @function sendQueue
|
|
119
|
+
* @name Parse.EventuallyQueue.sendQueue
|
|
120
|
+
* @returns {Promise<boolean>} Returns true if queue was sent successfully.
|
|
121
|
+
* @static
|
|
122
|
+
*/
|
|
123
|
+
sendQueue(): Promise<boolean>;
|
|
124
|
+
/**
|
|
125
|
+
* Build queue object and add to queue.
|
|
126
|
+
*
|
|
127
|
+
* @param {ParseObject} object Parse.Object to be processed
|
|
128
|
+
* @param {QueueObject} queueObject Parse.Object data from the queue
|
|
129
|
+
* @returns {Promise} A promise that is fulfilled when operation is performed.
|
|
130
|
+
* @static
|
|
131
|
+
* @ignore
|
|
132
|
+
*/
|
|
133
|
+
sendQueueCallback(object: ParseObject, queueObject: QueueObject): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Start polling server for network connection.
|
|
136
|
+
* Will send queue if connection is established.
|
|
137
|
+
*
|
|
138
|
+
* @function poll
|
|
139
|
+
* @name Parse.EventuallyQueue.poll
|
|
140
|
+
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
141
|
+
* @static
|
|
142
|
+
*/
|
|
143
|
+
poll(ms?: number): void;
|
|
144
|
+
/**
|
|
145
|
+
* Turns off polling.
|
|
146
|
+
*
|
|
147
|
+
* @function stopPoll
|
|
148
|
+
* @name Parse.EventuallyQueue.stopPoll
|
|
149
|
+
* @static
|
|
150
|
+
*/
|
|
151
|
+
stopPoll(): void;
|
|
152
|
+
/**
|
|
153
|
+
* Return true if pinging the server.
|
|
154
|
+
*
|
|
155
|
+
* @function isPolling
|
|
156
|
+
* @name Parse.EventuallyQueue.isPolling
|
|
157
|
+
* @returns {boolean}
|
|
158
|
+
* @static
|
|
159
|
+
*/
|
|
160
|
+
isPolling(): boolean;
|
|
161
|
+
_setPolling(flag: boolean): void;
|
|
162
|
+
process: {
|
|
163
|
+
create(ObjectType: any, queueObject: any): Promise<void>;
|
|
164
|
+
byId(ObjectType: any, queueObject: any): Promise<void>;
|
|
165
|
+
byHash(ObjectType: any, queueObject: any): Promise<void>;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export default EventuallyQueue;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import ParseUser from './ParseUser';
|
|
2
|
+
import type { AuthProvider } from './ParseUser';
|
|
3
|
+
/**
|
|
4
|
+
* Provides a set of utilities for using Parse with Facebook.
|
|
5
|
+
*
|
|
6
|
+
* @class Parse.FacebookUtils
|
|
7
|
+
* @static
|
|
8
|
+
* @hideconstructor
|
|
9
|
+
*/
|
|
10
|
+
declare const FacebookUtils: {
|
|
11
|
+
/**
|
|
12
|
+
* Initializes Parse Facebook integration. Call this function after you
|
|
13
|
+
* have loaded the Facebook Javascript SDK with the same parameters
|
|
14
|
+
* as you would pass to<code>
|
|
15
|
+
* <a href=
|
|
16
|
+
* "https://developers.facebook.com/docs/reference/javascript/FB.init/">
|
|
17
|
+
* FB.init()</a></code>. Parse.FacebookUtils will invoke FB.init() for you
|
|
18
|
+
* with these arguments.
|
|
19
|
+
*
|
|
20
|
+
* @function init
|
|
21
|
+
* @name Parse.FacebookUtils.init
|
|
22
|
+
* @param {object} options Facebook options argument as described here:
|
|
23
|
+
* <a href=
|
|
24
|
+
* "https://developers.facebook.com/docs/reference/javascript/FB.init/">
|
|
25
|
+
* FB.init()</a>. The status flag will be coerced to 'false' because it
|
|
26
|
+
* interferes with Parse Facebook integration. Call FB.getLoginStatus()
|
|
27
|
+
* explicitly if this behavior is required by your application.
|
|
28
|
+
*/
|
|
29
|
+
init(options: any): void;
|
|
30
|
+
/**
|
|
31
|
+
* Gets whether the user has their account linked to Facebook.
|
|
32
|
+
*
|
|
33
|
+
* @function isLinked
|
|
34
|
+
* @name Parse.FacebookUtils.isLinked
|
|
35
|
+
* @param {Parse.User} user User to check for a facebook link.
|
|
36
|
+
* The user must be logged in on this device.
|
|
37
|
+
* @returns {boolean} <code>true</code> if the user has their account
|
|
38
|
+
* linked to Facebook.
|
|
39
|
+
*/
|
|
40
|
+
isLinked(user: any): any;
|
|
41
|
+
/**
|
|
42
|
+
* Logs in a user using Facebook. This method delegates to the Facebook
|
|
43
|
+
* SDK to authenticate the user, and then automatically logs in (or
|
|
44
|
+
* creates, in the case where it is a new user) a Parse.User.
|
|
45
|
+
*
|
|
46
|
+
* Standard API:
|
|
47
|
+
*
|
|
48
|
+
* <code>logIn(permission: string, authData: Object);</code>
|
|
49
|
+
*
|
|
50
|
+
* Advanced API: Used for handling your own oAuth tokens
|
|
51
|
+
* {@link https://docs.parseplatform.org/rest/guide/#linking-users}
|
|
52
|
+
*
|
|
53
|
+
* <code>logIn(authData: Object, options?: Object);</code>
|
|
54
|
+
*
|
|
55
|
+
* @function logIn
|
|
56
|
+
* @name Parse.FacebookUtils.logIn
|
|
57
|
+
* @param {(string | object)} permissions The permissions required for Facebook
|
|
58
|
+
* log in. This is a comma-separated string of permissions.
|
|
59
|
+
* Alternatively, supply a Facebook authData object as described in our
|
|
60
|
+
* REST API docs if you want to handle getting facebook auth tokens
|
|
61
|
+
* yourself.
|
|
62
|
+
* @param {object} options MasterKey / SessionToken. Alternatively can be used for authData if permissions is a string
|
|
63
|
+
* @returns {Promise}
|
|
64
|
+
*/
|
|
65
|
+
logIn(permissions: any, options: any): Promise<ParseUser<import("./ParseObject").Attributes>>;
|
|
66
|
+
/**
|
|
67
|
+
* Links Facebook to an existing PFUser. This method delegates to the
|
|
68
|
+
* Facebook SDK to authenticate the user, and then automatically links
|
|
69
|
+
* the account to the Parse.User.
|
|
70
|
+
*
|
|
71
|
+
* Standard API:
|
|
72
|
+
*
|
|
73
|
+
* <code>link(user: Parse.User, permission: string, authData?: Object);</code>
|
|
74
|
+
*
|
|
75
|
+
* Advanced API: Used for handling your own oAuth tokens
|
|
76
|
+
* {@link https://docs.parseplatform.org/rest/guide/#linking-users}
|
|
77
|
+
*
|
|
78
|
+
* <code>link(user: Parse.User, authData: Object, options?: FullOptions);</code>
|
|
79
|
+
*
|
|
80
|
+
* @function link
|
|
81
|
+
* @name Parse.FacebookUtils.link
|
|
82
|
+
* @param {Parse.User} user User to link to Facebook. This must be the
|
|
83
|
+
* current user.
|
|
84
|
+
* @param {(string | object)} permissions The permissions required for Facebook
|
|
85
|
+
* log in. This is a comma-separated string of permissions.
|
|
86
|
+
* Alternatively, supply a Facebook authData object as described in our
|
|
87
|
+
* REST API docs if you want to handle getting facebook auth tokens
|
|
88
|
+
* yourself.
|
|
89
|
+
* @param {object} options MasterKey / SessionToken. Alternatively can be used for authData if permissions is a string
|
|
90
|
+
* @returns {Promise}
|
|
91
|
+
*/
|
|
92
|
+
link(user: any, permissions: any, options: any): any;
|
|
93
|
+
/**
|
|
94
|
+
* Unlinks the Parse.User from a Facebook account.
|
|
95
|
+
*
|
|
96
|
+
* @function unlink
|
|
97
|
+
* @name Parse.FacebookUtils.unlink
|
|
98
|
+
* @param {Parse.User} user User to unlink from Facebook. This must be the
|
|
99
|
+
* current user.
|
|
100
|
+
* @param {object} options Standard options object with success and error
|
|
101
|
+
* callbacks.
|
|
102
|
+
* @returns {Promise}
|
|
103
|
+
*/
|
|
104
|
+
unlink: (user: any, options: any) => any;
|
|
105
|
+
_getAuthProvider(): AuthProvider;
|
|
106
|
+
};
|
|
107
|
+
export default FacebookUtils;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ParseInstallation from './ParseInstallation';
|
|
2
|
+
declare const InstallationController: {
|
|
3
|
+
updateInstallationOnDisk(installation: ParseInstallation): Promise<void>;
|
|
4
|
+
currentInstallationId(): Promise<string>;
|
|
5
|
+
currentInstallation(): Promise<ParseInstallation | null>;
|
|
6
|
+
_clearCache(): void;
|
|
7
|
+
_setInstallationIdCache(iid: string): void;
|
|
8
|
+
_setCurrentInstallationCache(installation: ParseInstallation, matchesDisk?: boolean): void;
|
|
9
|
+
};
|
|
10
|
+
export default InstallationController;
|