workano-js-sdk
Version:
Workano Communications SDK - A modern JavaScript SDK for WebRTC and VoIP integration.
21 lines • 1.98 kB
TypeScript
import WazoApiClient from '../api-client';
import BaseApiClient from '../base-api-client';
export declare const setApiClientId: (clientId: string, forServer?: string | null | undefined) => void;
export declare const setCurrentServer: (newServer: string) => void;
export declare const setApiToken: (newToken: string | null | undefined, forServer?: string | null | undefined) => void;
export declare const setRefreshToken: (newRefreshToken: string | null | undefined, forServer?: string | null | undefined) => void;
export declare const setRefreshTenantId: (refreshTenantId: string | null | undefined, forServer?: string | null | undefined) => void;
export declare const setRefreshDomainName: (refreshDomainName: string | null | undefined, forServer?: string | null | undefined) => void;
export declare const setOnRefreshToken: (onRefreshToken: (...args: Array<any>) => any, forServer?: string | null | undefined) => void;
export declare const setOnRefreshTokenError: (callback: (...args: Array<any>) => any, forServer?: string | null | undefined) => void;
export declare const setRefreshExpiration: (refreshExpiration: number, forServer?: string | null | undefined) => void;
export declare const setRefreshBackend: (refreshBackend: number, forServer?: string | null | undefined) => void;
export declare const setIsMobile: (isMobile: boolean, forServer?: string | null | undefined) => void;
export declare const setRequestTimeout: (requestTimeout: number, forServer?: string | null | undefined) => void;
export declare const setFetchOptions: (fetchOptions: Record<string, any>, forServer?: string | null | undefined) => void;
export declare const getFetchOptions: (forServer?: string | null | undefined) => any;
type ForServer = string | null;
type TClient = new (...args: any[]) => BaseApiClient;
declare const getApiClient: <T extends BaseApiClient = WazoApiClient>(forServer?: ForServer, Client?: TClient) => T;
export default getApiClient;
//# sourceMappingURL=getApiClient.d.ts.map