Skip to content

Commit

Permalink
fix(callForwardSettings): call forward types
Browse files Browse the repository at this point in the history
  • Loading branch information
akulakum authored and maysaxencisco committed May 31, 2023
1 parent 657d44e commit 68b4986
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
96 changes: 96 additions & 0 deletions src/webexcalling/src/ICallForwardAdapter.ts
Original file line number Diff line number Diff line change
@@ -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<ICallForwardSetting>;
}
1 change: 1 addition & 0 deletions src/webexcalling/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from './IMakeCallAdapter';
export * from './ISpeedDialsAdapter';
export * from './IVoicemailAdapter';
export * from './IMetricsAdapter';
export * from './ICallForwardAdapter';

0 comments on commit 68b4986

Please sign in to comment.