Skip to content

Commit

Permalink
fix: voicemail adapter fix, calling adapter migration from calling wi…
Browse files Browse the repository at this point in the history
…dgets
  • Loading branch information
jenithainbaraj committed Jan 12, 2023
1 parent f7e74ba commit 9a53b04
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "component-adapter-interfaces",
"version": "1.29.2",
"name": "@webex/component-adapter-interfaces",
"version": "1.28.1",
"description": "Adapter interfaces for Webex Components (https://github.com/webex/components)",
"author": "devsupport@webex.com",
"license": "MIT",
Expand Down
66 changes: 66 additions & 0 deletions src/webexcalling/src/IVoicemailAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,72 @@ export interface IWebexVoicemail {
unread: boolean;
date: string;
audioSrc: string;
duration: number;
}

export enum RESPONSE_STATUS {
STATUSCODE = 200,
SUCCESS = 'SUCCESS',
}

export enum VOICEMAIL_LIMIT {
OFFSET = 0,
OFFSET_LIMIT = 25,
}
export interface IDuration {
$: string;
}

export interface IName {
$: string;
}

export interface IUserId {
$: string;
}

export interface IAddress {
$: string;
}

export interface ICallingPartyInfo {
name: IName;
userId: IUserId;
address: IAddress;
}

export interface ITime {
$: string;
}

export interface IMessageId {
$: string;
}

export interface IVoiceMailList {
duration: IDuration;
callingPartyInfo: ICallingPartyInfo;
time: ITime;
messageId: IMessageId;
read: string;
}

export interface IVoiceMailData {
voicemailList: IVoiceMailList[];
}

export interface IVoiceMailResponse {
statusCode: number;
data: IVoiceMailData;
message: string;
}

export interface IVoiceMailDeleteData {}

export interface IVoiceMailDeleteResponse {
statusCode: number;
data: IVoiceMailDeleteData;
message: string;
}

export interface IVoicemailAdapter {
Expand Down

0 comments on commit 9a53b04

Please sign in to comment.