1 | import { Callback, Connection, RestApiOptions } from "../connection";
|
2 |
|
3 | export class Apex {
|
4 | constructor(conn: Connection);
|
5 |
|
6 | get<T>(path: string, options: RestApiOptions, callback?: Callback<T>): Promise<T>;
|
7 | get<T>(path: string, callback?: Callback<T>): Promise<T>;
|
8 |
|
9 | post<T>(path: string, body: object, options: RestApiOptions, callback?: Callback<T>): Promise<T>;
|
10 | post<T>(path: string, body: object, callback?: Callback<T>): Promise<T>;
|
11 | post<T>(path: string, callback?: Callback<T>): Promise<T>;
|
12 |
|
13 | put<T>(path: string, body: object, options: RestApiOptions, callback?: Callback<T>): Promise<T>;
|
14 | put<T>(path: string, body: object, callback?: Callback<T>): Promise<T>;
|
15 | put<T>(path: string, callback?: Callback<T>): Promise<T>;
|
16 |
|
17 | patch<T>(path: string, body: object, options: RestApiOptions, callback?: Callback<T>): Promise<T>;
|
18 | patch<T>(path: string, body: object, callback?: Callback<T>): Promise<T>;
|
19 | patch<T>(path: string, callback?: Callback<T>): Promise<T>;
|
20 |
|
21 | del<T>(path: string, options: RestApiOptions, callback?: Callback<T>): Promise<T>;
|
22 | del<T>(path: string, callback?: Callback<T>): Promise<T>;
|
23 | delete<T>(path: string, options: RestApiOptions, callback?: Callback<T>): Promise<T>;
|
24 | delete<T>(path: string, callback?: Callback<T>): Promise<T>;
|
25 | }
|