-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(callForwardSettings): call forward types
- Loading branch information
1 parent
657d44e
commit 68b4986
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters