-
-
Notifications
You must be signed in to change notification settings - Fork 603
Expand file tree
/
Copy pathRESTController.d.ts
More file actions
38 lines (38 loc) · 1.14 KB
/
RESTController.d.ts
File metadata and controls
38 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/** Base options for all Parse requests that go through _getRequestOptions */
export interface BaseRequestOptions {
useMasterKey?: boolean;
useMaintenanceKey?: boolean;
sessionToken?: string;
installationId?: string;
context?: Record<string, unknown>;
}
export interface RequestOptions {
useMasterKey?: boolean;
useMaintenanceKey?: boolean;
sessionToken?: string;
installationId?: string;
returnStatus?: boolean;
batchSize?: number;
include?: any;
progress?: any;
context?: any;
usePost?: boolean;
ignoreEmailVerification?: boolean;
transaction?: boolean;
}
export interface FullOptions {
success?: any;
error?: any;
useMasterKey?: boolean;
useMaintenanceKey?: boolean;
sessionToken?: string;
installationId?: string;
progress?: any;
usePost?: boolean;
}
declare const RESTController: {
ajax(method: string, url: string, data: any, headers?: any, options?: FullOptions): Promise<any>;
request(method: string, path: string, data: any, options?: RequestOptions): Promise<any>;
handleError(errorJSON: any): Promise<never>;
};
export default RESTController;