From 68b4986e9362b2d18b12102a009d279777988569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CAkula?= Date: Tue, 30 May 2023 11:56:12 +0530 Subject: [PATCH] fix(callForwardSettings): call forward types --- src/webexcalling/src/ICallForwardAdapter.ts | 96 +++++++++++++++++++++ src/webexcalling/src/index.ts | 1 + 2 files changed, 97 insertions(+) create mode 100644 src/webexcalling/src/ICallForwardAdapter.ts diff --git a/src/webexcalling/src/ICallForwardAdapter.ts b/src/webexcalling/src/ICallForwardAdapter.ts new file mode 100644 index 0000000..fcd06ad --- /dev/null +++ b/src/webexcalling/src/ICallForwardAdapter.ts @@ -0,0 +1,96 @@ +import { Observable } from "rxjs"; + +export interface IToggleSetting { + enabled: boolean; + ringSplashEnabled?: boolean; +}; + +export interface Ialways { + enabled: boolean; + ringReminderEnabled?: boolean; + destinationVoicemailEnabled?: boolean; + destination?: string; +} + +export interface Ibusy { + enabled: boolean; + destinationVoicemailEnabled?: boolean; + destination?: string; +} + +export interface InoAnswer { + enabled: boolean; + destinationVoicemailEnabled?: boolean; + destination?: string; +} +export interface IcallForwardDetails { + always?: Ialways; + busy?: Ibusy; + noAnswer?: InoAnswer; +} + +export interface ICallForwardSetting { + callForwarding?: IcallForwardDetails; + businessContinuity?: { + enabled: boolean; + destinationVoicemailEnabled?: boolean; + destination?: string; + }; +}; + +export interface IVoicemailSetting { + enabled: boolean; + sendAllCalls: { + enabled: boolean; + }; + sendBusyCalls: { + enabled: boolean; + greeting?: string; + greetingUploaded?: boolean; + }; + sendUnansweredCalls: { + enabled: boolean; + greeting?: string; + greetingUploaded?: boolean; + numberOfRings: number; + systemMaxNumberOfRings?: number; + }; + notifications: { + enabled: boolean; + destination?: string; + }; + transferToNumber?: { + enabled: boolean; + destination: string; + }; + emailCopyOfMessage: { + enabled: boolean; + emailId?: string; + }; + messageStorage: { + mwiEnabled: boolean; + storageType: string; + externalEmail?: string; + }; + faxMessage?: { + enabled: boolean; + phoneNumber?: string; + extension?: string; + }; + voiceMessageForwardingEnabled?: boolean; +}; + +export interface ICallSettingsData { + callSetting?: ICallForwardSetting; + error?: string; +} + +export interface ICallSettingResponse { + statusCode?: number; + data?: ICallSettingsData; + message?: string; +}; + +export interface ICallSettingsAdapter { + getCallForwardSettings(): Observable; +} \ No newline at end of file diff --git a/src/webexcalling/src/index.ts b/src/webexcalling/src/index.ts index 332818c..00badaf 100644 --- a/src/webexcalling/src/index.ts +++ b/src/webexcalling/src/index.ts @@ -6,3 +6,4 @@ export * from './IMakeCallAdapter'; export * from './ISpeedDialsAdapter'; export * from './IVoicemailAdapter'; export * from './IMetricsAdapter'; +export * from './ICallForwardAdapter';