UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

41 lines (40 loc) 1.2 kB
/** * @description * * The XompassClient module help developers to externally * configure the base url and api version for loopback.io * * Example * * import { XompassClient, BrowserStorage } from './sdk'; * * * export class MyApp { * constructor() { * XompassClient.setBaseURL('http://localhost:3000'); * XompassClient.setApiVersion('api'); * XompassClient.setStorage(new BrowserStorage()) * } * } */ import { ClientStorage } from "./storage"; export declare class XompassClient { private static path; private static version; private static authPrefix; private static authHeader; private static debug; private static timeout; static storage: ClientStorage; static setApiVersion(version?: string): void; static getApiVersion(): string | number; static setBaseURL(url?: string): void; static getPath(): string; static setAuthPrefix(authPrefix?: string): void; static getAuthPrefix(): string; static setDebugMode(isEnabled: boolean): void; static debuggable(): boolean; static setStorage(storage: ClientStorage): void; static setTimeout(timeout: number): void; static getTimeout(): number; }