@twilio/flex-ui
Version:
Twilio Flex UI
32 lines (31 loc) • 1.37 kB
TypeScript
import { OutboundCallingErrors } from "./internal-flex-commons/src";
import { Reservation } from "twilio-taskrouter";
/**
* @package
* @typedef {Actions.StartOutboundCallPayload} StartOutboundCallPayload
* @property {string} destination - destination phone number to make outbound call.
* @property {string} [queueSid] - queue sid to assign for the task, if undefined it picks the default from service configuration.
* @property {string} [callerId] - caller ID to make an outbound call. if undefined it picks the default from service configuration.
* @property {object} [taskAttributes] - custom attributes to set on task.
* @memberof Actions
*/
export interface StartOutboundCallPayload {
destination: string;
queueSid?: string;
callerId?: string;
taskAttributes?: object;
}
export { OutboundCallingErrors };
export declare class OutboundCalling {
private static lastOutboundCallActionPayload;
static initialize(): void;
static handleOutboundTaskCancelledEvent(r: Reservation): void;
private static registerActions;
private static registerNotifications;
private static fetchCountriesAndFlags;
private static sendTrackingOutboundCallEvent;
private static isNOAudioInputDevice;
private static checkAndHandleVoiceSdkDegradation;
private static startOutboundCall;
private static toggleOutboundDialer;
}