1 | export declare class BotonicAPIService {
|
2 | cliendId: string;
|
3 | clientSecret: string;
|
4 | baseUrl: string;
|
5 | baseApiUrl: string;
|
6 | loginUrl: string;
|
7 | botPath: string;
|
8 | botCredentialsPath: string;
|
9 | globalConfigPath: string;
|
10 | globalCredentialsPath: string;
|
11 | oauth: any;
|
12 | me: any;
|
13 | analytics: any;
|
14 | lastBuildHash: any;
|
15 | bot: any;
|
16 | headers: object | null;
|
17 | constructor();
|
18 | beforeExit(): void;
|
19 | loadGlobalCredentials(): void;
|
20 | loadBotCredentials(): void;
|
21 | checkGlobalCredentialsPath(): Promise<void>;
|
22 | saveGlobalCredentials(): Promise<void>;
|
23 | saveBotCredentials(): void;
|
24 | getCurrentBuildHash(): Promise<any>;
|
25 | build(npmCommand?: string): Promise<boolean>;
|
26 | buildIfChanged(force: boolean, npmCommand?: string): Promise<boolean>;
|
27 | setCurrentBot(bot: any): void;
|
28 | logout(): void;
|
29 | api(path: string, body?: any, method?: string, headers?: any | null, params?: any): Promise<any>;
|
30 | refreshToken(): Promise<any>;
|
31 | login(email: any, password: any): Promise<any>;
|
32 | signup(email: string, password: string, org_name: string, campaign: any): Promise<any>;
|
33 | saveBot(bot_name: string): Promise<any>;
|
34 | getMe(): Promise<any>;
|
35 | getBots(): Promise<any>;
|
36 | getMoreBots(bots: any, nextBots: any): any;
|
37 | getProviders(): Promise<any>;
|
38 | deployBot(bundlePath: string, forceDeploy: boolean): Promise<any>;
|
39 | deployStatus(deploy_id: string): Promise<any>;
|
40 | getHeaders(form: any): Promise<unknown>;
|
41 | }
|