UNPKG

bria

Version:

CounterPath Bria Desktop API for Node.js

26 lines 1.05 kB
import BriaClientLeaf from './Leaf'; import { BriaClient } from '.'; export declare type PhoneState = 'ready' | 'notReady'; export declare type PhoneCallState = 'allow' | 'notAllow'; export declare type PhoneAccountStatus = 'connected' | 'connecting' | 'failureContactingServer' | 'failureAtServer' | 'disabled'; export declare type PhoneStatus = { state: PhoneState; call: PhoneCallState; maxLines: number; accountStatus: PhoneAccountStatus; accountFailureCode: number; }; export declare class BriaClientPhone extends BriaClientLeaf { status?: PhoneStatus; constructor(client: BriaClient); populate(): Promise<void>; /** * @see https://docs.counterpath.com/guides/desk/desk_api/clients/deskAPI/deskApiEvents.htm#postStatusChangePhone */ private phoneUpdate; /** * @see https://docs.counterpath.com/guides/desk/desk_api/clients/deskAPI/deskApiGettingReady.htm#getStatusPhone */ getPhoneStatus(): Promise<PhoneStatus>; } //# sourceMappingURL=Phone.d.ts.map