@swell/cli
Version:
Swell's command line interface/utility
17 lines (16 loc) • 873 B
TypeScript
export default class Api {
envId: string | undefined;
secretKey: string | undefined;
storeId: string | undefined;
constructor(storeId?: string, envId?: string, secretKey?: string);
api(pathOpts: Api.Paths, options: Api.RequestOptions): Promise<any>;
delete(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise<any>;
get(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise<any>;
isAdmin(): boolean;
post(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise<any>;
put(pathOpts: Api.Paths, options?: Api.RequestOptions): Promise<any>;
setStoreEnv(storeId: string, envId?: string): Promise<void>;
isTestEnvEnabled(): Promise<boolean>;
truncatePath(path: string | undefined): string | undefined;
waitForAsyncResponse(response: any, pathOpts: Api.Paths, options?: Api.RequestOptions): Promise<any>;
}