@webex/calling 0.0.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -0
- package/dist/module/CallHistory/CallHistory.js +84 -0
- package/dist/module/CallHistory/callHistoryFixtures.js +307 -0
- package/dist/module/CallHistory/constants.js +9 -0
- package/dist/module/CallHistory/types.js +1 -0
- package/dist/module/CallSettings/CallSettings.js +65 -0
- package/dist/module/CallSettings/UcmBackendConnector.js +100 -0
- package/dist/module/CallSettings/WxCallBackendConnector.js +287 -0
- package/dist/module/CallSettings/constants.js +11 -0
- package/dist/module/CallSettings/testFixtures.js +62 -0
- package/dist/module/CallSettings/types.js +1 -0
- package/dist/module/CallingClient/CallingClient.js +268 -0
- package/dist/module/CallingClient/callRecordFixtures.js +93 -0
- package/dist/module/CallingClient/calling/CallerId/index.js +169 -0
- package/dist/module/CallingClient/calling/CallerId/types.js +1 -0
- package/dist/module/CallingClient/calling/call.js +1649 -0
- package/dist/module/CallingClient/calling/callManager.js +274 -0
- package/dist/module/CallingClient/calling/index.js +2 -0
- package/dist/module/CallingClient/calling/types.js +53 -0
- package/dist/module/CallingClient/callingClientFixtures.js +38 -0
- package/dist/module/CallingClient/constants.js +122 -0
- package/dist/module/CallingClient/line/index.js +110 -0
- package/dist/module/CallingClient/line/types.js +14 -0
- package/dist/module/CallingClient/registration/index.js +1 -0
- package/dist/module/CallingClient/registration/register.js +507 -0
- package/dist/module/CallingClient/registration/registerFixtures.js +28 -0
- package/dist/module/CallingClient/registration/types.js +1 -0
- package/dist/module/CallingClient/types.js +1 -0
- package/dist/module/Contacts/ContactsClient.js +487 -0
- package/dist/module/Contacts/constants.js +20 -0
- package/dist/module/Contacts/contactFixtures.js +284 -0
- package/dist/module/Contacts/types.js +10 -0
- package/dist/module/Errors/catalog/CallError.js +26 -0
- package/dist/module/Errors/catalog/CallingDeviceError.js +18 -0
- package/dist/module/Errors/catalog/ExtendedError.js +10 -0
- package/dist/module/Errors/catalog/LineError.js +24 -0
- package/dist/module/Errors/index.js +2 -0
- package/dist/module/Errors/types.js +48 -0
- package/dist/module/Events/impl/index.js +19 -0
- package/dist/module/Events/types.js +74 -0
- package/dist/module/Logger/index.js +114 -0
- package/dist/module/Logger/types.js +25 -0
- package/dist/module/Metrics/index.js +232 -0
- package/dist/module/Metrics/types.js +37 -0
- package/dist/module/SDKConnector/index.js +39 -0
- package/dist/module/SDKConnector/types.js +1 -0
- package/dist/module/SDKConnector/utils.js +12 -0
- package/dist/module/Voicemail/BroadworksBackendConnector.js +289 -0
- package/dist/module/Voicemail/UcmBackendConnector.js +275 -0
- package/dist/module/Voicemail/Voicemail.js +110 -0
- package/dist/module/Voicemail/WxCallBackendConnector.js +279 -0
- package/dist/module/Voicemail/constants.js +29 -0
- package/dist/module/Voicemail/types.js +1 -0
- package/dist/module/Voicemail/voicemailFixture.js +449 -0
- package/dist/module/common/Utils.js +802 -0
- package/dist/module/common/constants.js +40 -0
- package/dist/module/common/index.js +1 -0
- package/dist/module/common/testUtil.js +938 -0
- package/dist/module/common/types.js +57 -0
- package/dist/module/index.js +8 -0
- package/dist/types/CallHistory/CallHistory.d.ts +19 -0
- package/dist/types/CallHistory/CallHistory.d.ts.map +1 -0
- package/dist/types/CallHistory/callHistoryFixtures.d.ts +95 -0
- package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +1 -0
- package/dist/types/CallHistory/constants.d.ts +10 -0
- package/dist/types/CallHistory/constants.d.ts.map +1 -0
- package/dist/types/CallHistory/types.d.ts +21 -0
- package/dist/types/CallHistory/types.d.ts.map +1 -0
- package/dist/types/CallSettings/CallSettings.d.ts +20 -0
- package/dist/types/CallSettings/CallSettings.d.ts.map +1 -0
- package/dist/types/CallSettings/UcmBackendConnector.d.ts +20 -0
- package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -0
- package/dist/types/CallSettings/WxCallBackendConnector.d.ts +22 -0
- package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -0
- package/dist/types/CallSettings/constants.d.ts +12 -0
- package/dist/types/CallSettings/constants.d.ts.map +1 -0
- package/dist/types/CallSettings/testFixtures.d.ts +16 -0
- package/dist/types/CallSettings/testFixtures.d.ts.map +1 -0
- package/dist/types/CallSettings/types.d.ts +108 -0
- package/dist/types/CallSettings/types.d.ts.map +1 -0
- package/dist/types/CallingClient/CallingClient.d.ts +38 -0
- package/dist/types/CallingClient/CallingClient.d.ts.map +1 -0
- package/dist/types/CallingClient/callRecordFixtures.d.ts +4 -0
- package/dist/types/CallingClient/callRecordFixtures.d.ts.map +1 -0
- package/dist/types/CallingClient/calling/CallerId/index.d.ts +18 -0
- package/dist/types/CallingClient/calling/CallerId/index.d.ts.map +1 -0
- package/dist/types/CallingClient/calling/CallerId/types.d.ts +42 -0
- package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -0
- package/dist/types/CallingClient/calling/call.d.ts +95 -0
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -0
- package/dist/types/CallingClient/calling/callManager.d.ts +22 -0
- package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -0
- package/dist/types/CallingClient/calling/index.d.ts +3 -0
- package/dist/types/CallingClient/calling/index.d.ts.map +1 -0
- package/dist/types/CallingClient/calling/types.d.ts +204 -0
- package/dist/types/CallingClient/calling/types.d.ts.map +1 -0
- package/dist/types/CallingClient/callingClientFixtures.d.ts +19 -0
- package/dist/types/CallingClient/callingClientFixtures.d.ts.map +1 -0
- package/dist/types/CallingClient/constants.d.ts +123 -0
- package/dist/types/CallingClient/constants.d.ts.map +1 -0
- package/dist/types/CallingClient/line/index.d.ts +39 -0
- package/dist/types/CallingClient/line/index.d.ts.map +1 -0
- package/dist/types/CallingClient/line/types.d.ts +51 -0
- package/dist/types/CallingClient/line/types.d.ts.map +1 -0
- package/dist/types/CallingClient/registration/index.d.ts +2 -0
- package/dist/types/CallingClient/registration/index.d.ts.map +1 -0
- package/dist/types/CallingClient/registration/register.d.ts +65 -0
- package/dist/types/CallingClient/registration/register.d.ts.map +1 -0
- package/dist/types/CallingClient/registration/registerFixtures.d.ts +29 -0
- package/dist/types/CallingClient/registration/registerFixtures.d.ts.map +1 -0
- package/dist/types/CallingClient/registration/types.d.ts +21 -0
- package/dist/types/CallingClient/registration/types.d.ts.map +1 -0
- package/dist/types/CallingClient/types.d.ts +30 -0
- package/dist/types/CallingClient/types.d.ts.map +1 -0
- package/dist/types/Contacts/ContactsClient.d.ts +28 -0
- package/dist/types/Contacts/ContactsClient.d.ts.map +1 -0
- package/dist/types/Contacts/constants.d.ts +20 -0
- package/dist/types/Contacts/constants.d.ts.map +1 -0
- package/dist/types/Contacts/contactFixtures.d.ts +281 -0
- package/dist/types/Contacts/contactFixtures.d.ts.map +1 -0
- package/dist/types/Contacts/types.d.ts +75 -0
- package/dist/types/Contacts/types.d.ts.map +1 -0
- package/dist/types/Errors/catalog/CallError.d.ts +12 -0
- package/dist/types/Errors/catalog/CallError.d.ts.map +1 -0
- package/dist/types/Errors/catalog/CallingDeviceError.d.ts +11 -0
- package/dist/types/Errors/catalog/CallingDeviceError.d.ts.map +1 -0
- package/dist/types/Errors/catalog/ExtendedError.d.ts +7 -0
- package/dist/types/Errors/catalog/ExtendedError.d.ts.map +1 -0
- package/dist/types/Errors/catalog/LineError.d.ts +11 -0
- package/dist/types/Errors/catalog/LineError.d.ts.map +1 -0
- package/dist/types/Errors/index.d.ts +3 -0
- package/dist/types/Errors/index.d.ts.map +1 -0
- package/dist/types/Errors/types.d.ts +61 -0
- package/dist/types/Errors/types.d.ts.map +1 -0
- package/dist/types/Events/impl/index.d.ts +9 -0
- package/dist/types/Events/impl/index.d.ts.map +1 -0
- package/dist/types/Events/types.d.ts +284 -0
- package/dist/types/Events/types.d.ts.map +1 -0
- package/dist/types/Logger/index.d.ts +13 -0
- package/dist/types/Logger/index.d.ts.map +1 -0
- package/dist/types/Logger/types.d.ts +26 -0
- package/dist/types/Logger/types.d.ts.map +1 -0
- package/dist/types/Metrics/index.d.ts +6 -0
- package/dist/types/Metrics/index.d.ts.map +1 -0
- package/dist/types/Metrics/types.d.ts +43 -0
- package/dist/types/Metrics/types.d.ts.map +1 -0
- package/dist/types/SDKConnector/index.d.ts +13 -0
- package/dist/types/SDKConnector/index.d.ts.map +1 -0
- package/dist/types/SDKConnector/types.d.ts +129 -0
- package/dist/types/SDKConnector/types.d.ts.map +1 -0
- package/dist/types/SDKConnector/utils.d.ts +6 -0
- package/dist/types/SDKConnector/utils.d.ts.map +1 -0
- package/dist/types/Voicemail/BroadworksBackendConnector.d.ts +28 -0
- package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -0
- package/dist/types/Voicemail/UcmBackendConnector.d.ts +35 -0
- package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -0
- package/dist/types/Voicemail/Voicemail.d.ts +28 -0
- package/dist/types/Voicemail/Voicemail.d.ts.map +1 -0
- package/dist/types/Voicemail/WxCallBackendConnector.d.ts +24 -0
- package/dist/types/Voicemail/WxCallBackendConnector.d.ts.map +1 -0
- package/dist/types/Voicemail/constants.d.ts +30 -0
- package/dist/types/Voicemail/constants.d.ts.map +1 -0
- package/dist/types/Voicemail/types.d.ts +134 -0
- package/dist/types/Voicemail/types.d.ts.map +1 -0
- package/dist/types/Voicemail/voicemailFixture.d.ts +350 -0
- package/dist/types/Voicemail/voicemailFixture.d.ts.map +1 -0
- package/dist/types/common/Utils.d.ts +35 -0
- package/dist/types/common/Utils.d.ts.map +1 -0
- package/dist/types/common/constants.d.ts +41 -0
- package/dist/types/common/constants.d.ts.map +1 -0
- package/dist/types/common/index.d.ts +2 -0
- package/dist/types/common/index.d.ts.map +1 -0
- package/dist/types/common/testUtil.d.ts +3612 -0
- package/dist/types/common/testUtil.d.ts.map +1 -0
- package/dist/types/common/types.d.ts +192 -0
- package/dist/types/common/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +161 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { LoggerInterface, IBroadworksCallBackendConnector, VoicemailResponseEvent, CallingPartyInfo } from './types';
|
|
3
|
+
import { DisplayInformation, SORT, WebexRequestPayload } from '../common/types';
|
|
4
|
+
export declare class BroadworksBackendConnector implements IBroadworksCallBackendConnector {
|
|
5
|
+
bwtoken: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
xsiAccessToken: string;
|
|
8
|
+
xsiEndpoint: WebexRequestPayload;
|
|
9
|
+
private context;
|
|
10
|
+
private sdkConnector;
|
|
11
|
+
private webex;
|
|
12
|
+
private xsiVoiceMessageURI;
|
|
13
|
+
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
14
|
+
init(): VoicemailResponseEvent;
|
|
15
|
+
getSDKConnector(): ISDKConnector;
|
|
16
|
+
private getUserId;
|
|
17
|
+
private getBwToken;
|
|
18
|
+
private setXsiVoiceMessageURI;
|
|
19
|
+
getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<VoicemailResponseEvent>;
|
|
20
|
+
getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
|
|
21
|
+
getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
|
|
22
|
+
voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
|
|
23
|
+
voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
|
|
24
|
+
deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
|
|
25
|
+
getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
|
|
26
|
+
resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=BroadworksBackendConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BroadworksBackendConnector.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/BroadworksBackendConn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CAAC,sBAAsB,GAAG,IAAI,CAAC;IAYhF,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAK9F"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { SORT, DisplayInformation } from '../common/types';
|
|
3
|
+
import { CallingPartyInfo, IUcmBackendConnector, LoggerInterface, VoicemailResponseEvent } from './types';
|
|
4
|
+
export declare class UcmBackendConnector implements IUcmBackendConnector {
|
|
5
|
+
vgEndpoint: string | unknown;
|
|
6
|
+
userId: string;
|
|
7
|
+
orgId: string;
|
|
8
|
+
private sdkConnector;
|
|
9
|
+
private webex;
|
|
10
|
+
private vgVoiceMessageURI;
|
|
11
|
+
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
12
|
+
init(): VoicemailResponseEvent;
|
|
13
|
+
getSDKConnector(): ISDKConnector;
|
|
14
|
+
private setUcmVoiceMessageBaseURI;
|
|
15
|
+
getVoicemailList(offset: number, offsetLimit: number, sort: SORT): Promise<import("../CallHistory/types").JanusResponseEvent | VoicemailResponseEvent | import("../CallSettings/types").CallSettingResponse | import("../Contacts/types").ContactResponse>;
|
|
16
|
+
getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
|
|
17
|
+
getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
|
|
18
|
+
getVoicemailContentUcm(messageId: string): Promise<unknown>;
|
|
19
|
+
returnUcmPromise(voicemailContentUrl: string, mercuryApi: string): Promise<{
|
|
20
|
+
statusCode: number;
|
|
21
|
+
data: {
|
|
22
|
+
voicemailContent: {
|
|
23
|
+
type: string;
|
|
24
|
+
content: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
message: string;
|
|
28
|
+
}>;
|
|
29
|
+
voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
|
|
30
|
+
voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
|
|
31
|
+
deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
|
|
32
|
+
getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
|
|
33
|
+
resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=UcmBackendConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UcmBackendConnector.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/UcmBackendConnector.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAEL,IAAI,EAEJ,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EAIf,sBAAsB,EAKvB,MAAM,SAAS,CAAC;AAKjB,qBAAa,mBAAoB,YAAW,oBAAoB;IACvD,UAAU,EAAG,MAAM,GAAG,OAAO,CAAC;IAE9B,MAAM,EAAG,MAAM,CAAC;IAEhB,KAAK,EAAG,MAAM,CAAC;IAEtB,OAAO,CAAC,YAAY,CAAiB;IAErC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,iBAAiB,CAAU;gBAMvB,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe;IAc7C,IAAI;IAeJ,eAAe,IAAI,aAAa;IAOvC,OAAO,CAAC,yBAAyB;IAepB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI;IAwEhE,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAwBvE,mBAAmB,IAAI,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAO7D,sBAAsB,CAAC,SAAS,EAAE,MAAM;IAwC/C,gBAAgB,CAAC,mBAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;;;;;;;;;;IA+BzD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAqCvE,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAqCzE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAqCnE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAYhF,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAK9F"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { IVoicemail, VoicemailResponseEvent, LoggerInterface, CallingPartyInfo } from './types';
|
|
3
|
+
import { DisplayInformation, SORT } from '../common/types';
|
|
4
|
+
import { VoicemailEventTypes } from '../Events/types';
|
|
5
|
+
import { Eventing } from '../Events/impl';
|
|
6
|
+
export declare class Voicemail extends Eventing<VoicemailEventTypes> implements IVoicemail {
|
|
7
|
+
logger: LoggerInterface;
|
|
8
|
+
private sdkConnector;
|
|
9
|
+
private webex;
|
|
10
|
+
private callingBackend;
|
|
11
|
+
private backendConnector;
|
|
12
|
+
private metricManager;
|
|
13
|
+
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
14
|
+
init(): VoicemailResponseEvent;
|
|
15
|
+
private initializeBackendConnector;
|
|
16
|
+
private submitMetric;
|
|
17
|
+
getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<VoicemailResponseEvent>;
|
|
18
|
+
getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
|
|
19
|
+
getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
|
|
20
|
+
voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
|
|
21
|
+
voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
|
|
22
|
+
deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
|
|
23
|
+
getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
|
|
24
|
+
resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
|
|
25
|
+
getSDKConnector(): ISDKConnector;
|
|
26
|
+
}
|
|
27
|
+
export declare const createVoicemailClient: (webex: WebexSDK, logger: LoggerInterface) => IVoicemail;
|
|
28
|
+
//# sourceMappingURL=Voicemail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Voicemail.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/Voicemail.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAE,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAkB,kBAAkB,EAAE,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAK1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AASxC,qBAAa,SAAU,SAAQ,QAAQ,CAAC,mBAAmB,CAAE,YAAW,UAAU;IAe5C,MAAM,EAAE,eAAe;IAd3D,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,cAAc,CAAkB;IAExC,OAAO,CAAC,gBAAgB,CAAc;IAEtC,OAAO,CAAC,aAAa,CAAiB;gBAM1B,KAAK,EAAE,QAAQ,EAAS,MAAM,EAAE,eAAe;IAkBpD,IAAI;IASX,OAAO,CAAC,0BAA0B;IA4BlC,OAAO,CAAC,YAAY;IAkCP,gBAAgB,CAC3B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,sBAAsB,CAAC;IAmBrB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAavE,mBAAmB,IAAI,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAiB7D,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAcvE,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAczE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAcnE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAehF,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAStF,eAAe,IAAI,aAAa;CAGxC;AAMD,eAAO,MAAM,qBAAqB,UAAW,QAAQ,UAAU,eAAe,KAAG,UACnD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { LoggerInterface, IWxCallBackendConnector, VoicemailResponseEvent, CallingPartyInfo } from './types';
|
|
3
|
+
import { DisplayInformation, SORT, WebexRequestPayload } from '../common/types';
|
|
4
|
+
export declare class WxCallBackendConnector implements IWxCallBackendConnector {
|
|
5
|
+
xsiEndpoint: WebexRequestPayload;
|
|
6
|
+
userId: string;
|
|
7
|
+
private context;
|
|
8
|
+
private sdkConnector;
|
|
9
|
+
private xsiVoiceMessageURI;
|
|
10
|
+
private webex;
|
|
11
|
+
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
12
|
+
init(): VoicemailResponseEvent;
|
|
13
|
+
getSDKConnector(): ISDKConnector;
|
|
14
|
+
private setXsiVoiceMessageURI;
|
|
15
|
+
getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<import("../CallHistory/types").JanusResponseEvent | VoicemailResponseEvent | import("../CallSettings/types").CallSettingResponse | import("../Contacts/types").ContactResponse>;
|
|
16
|
+
getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
|
|
17
|
+
getVoicemailSummary(): Promise<VoicemailResponseEvent>;
|
|
18
|
+
voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
|
|
19
|
+
voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
|
|
20
|
+
deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
|
|
21
|
+
getVMTranscript(messageId: string): Promise<VoicemailResponseEvent>;
|
|
22
|
+
resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=WxCallBackendConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WxCallBackendConnector.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/WxCallBackendConnector.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,uBAAuB,EAEvB,sBAAsB,EAEtB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,kBAAkB,EAElB,IAAI,EACJ,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AA0BzB,qBAAa,sBAAuB,YAAW,uBAAuB;IAC7D,WAAW,EAAG,mBAAmB,CAAC;IAElC,MAAM,EAAG,MAAM,CAAC;IAEvB,OAAO,CAAC,OAAO,CAAS;IAExB,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,kBAAkB,CAAU;IAEpC,OAAO,CAAC,KAAK,CAAW;gBAMZ,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe;IAgB7C,IAAI;IAiBJ,eAAe,IAAI,aAAa;YAOzB,qBAAqB;IA+BtB,gBAAgB,CAC3B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,OAAO;IA2EN,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IA+CvE,mBAAmB,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAwDtD,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAkCvE,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAkCzE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAkCnE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAwCzE,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAG9F"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const API_V1 = "api/v1";
|
|
2
|
+
export declare const VOICEMAIL_FILE = "VoicemailClient";
|
|
3
|
+
export declare const BROADWORKS_VOICEMAIL_FILE = "BroadworksBackendConnector";
|
|
4
|
+
export declare const CALLS = "calls";
|
|
5
|
+
export declare const BW_TOKEN_FETCH_ENDPOINT = "/idp/bwtoken/fetch";
|
|
6
|
+
export declare const JSON_FORMAT = "?format=json";
|
|
7
|
+
export declare const LIMIT = "&limit";
|
|
8
|
+
export declare const MARK_AS_READ = "MarkAsRead";
|
|
9
|
+
export declare const MARK_AS_UNREAD = "MarkAsUnread";
|
|
10
|
+
export declare const MESSAGE_MEDIA_CONTENT = "messageMediaContent";
|
|
11
|
+
export declare const MESSAGE_SUMMARY = "MessageSummary";
|
|
12
|
+
export declare const NO_VOICEMAIL_MSG = "No additional voicemails";
|
|
13
|
+
export declare const NO_VOICEMAIL_STATUS_CODE = 204;
|
|
14
|
+
export declare const OFFSET = "?offset";
|
|
15
|
+
export declare const OFFSET_INDEX = 0;
|
|
16
|
+
export declare const OFFSET_LIMIT = 100;
|
|
17
|
+
export declare const PREFIX = 2;
|
|
18
|
+
export declare const RADIX_RAND = 36;
|
|
19
|
+
export declare const SORT_ORDER = "&sortOrder";
|
|
20
|
+
export declare const TRANSCRIPT_STATUS = "status";
|
|
21
|
+
export declare const SUMMARY = "summary";
|
|
22
|
+
export declare const TRANSCRIPT_CONTENT = "content";
|
|
23
|
+
export declare const VMGATEWAY = "vmgateway";
|
|
24
|
+
export declare const VOICEMAILS = "voicemails";
|
|
25
|
+
export declare const VOICE_MESSAGING_MESSAGES = "VoiceMessagingMessages";
|
|
26
|
+
export declare const NEW_MESSAGES = "newMessages";
|
|
27
|
+
export declare const OLD_MESSAGES = "oldMessages";
|
|
28
|
+
export declare const NEW_URGENT_MESSAGES = "newUrgentMessages";
|
|
29
|
+
export declare const OLD_URGENT_MESSAGES = "oldUrgentMessages";
|
|
30
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,yBAAyB,+BAA+B,CAAC;AACtE,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAC1C,eAAO,MAAM,KAAK,WAAW,CAAC;AAC9B,eAAO,MAAM,YAAY,eAAe,CAAC;AACzC,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAC7C,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,MAAM,YAAY,CAAC;AAChC,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,wBAAwB,2BAA2B,CAAC;AACjE,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAC1C,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AACvD,eAAO,MAAM,mBAAmB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ISDKConnector } from '../SDKConnector/types';
|
|
2
|
+
import { LOGGER } from '../Logger/types';
|
|
3
|
+
import { WebexRequestPayload, SORT, DisplayInformation } from '../common/types';
|
|
4
|
+
export interface LoggerInterface {
|
|
5
|
+
level: LOGGER;
|
|
6
|
+
}
|
|
7
|
+
export type BroadworksTokenType = {
|
|
8
|
+
token: {
|
|
9
|
+
bearer: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type ResponseString$ = {
|
|
13
|
+
$: string;
|
|
14
|
+
};
|
|
15
|
+
export type ResponseNumber$ = {
|
|
16
|
+
$: number;
|
|
17
|
+
};
|
|
18
|
+
export type CallingPartyInfo = {
|
|
19
|
+
name: ResponseString$;
|
|
20
|
+
userId?: ResponseString$;
|
|
21
|
+
address: ResponseString$;
|
|
22
|
+
userExternalId?: ResponseString$;
|
|
23
|
+
};
|
|
24
|
+
export type SummaryInfo = {
|
|
25
|
+
newMessages: number;
|
|
26
|
+
oldMessages: number;
|
|
27
|
+
newUrgentMessages: number;
|
|
28
|
+
oldUrgentMessages: number;
|
|
29
|
+
};
|
|
30
|
+
export type MessageInfo = {
|
|
31
|
+
duration: ResponseString$;
|
|
32
|
+
callingPartyInfo: CallingPartyInfo;
|
|
33
|
+
time: ResponseNumber$;
|
|
34
|
+
messageId: ResponseString$;
|
|
35
|
+
read: ResponseString$ | object;
|
|
36
|
+
};
|
|
37
|
+
export type FilteredVoicemail = {
|
|
38
|
+
messages: MessageInfo[];
|
|
39
|
+
moreVMAvailable: boolean;
|
|
40
|
+
};
|
|
41
|
+
export type VoicemailList = {
|
|
42
|
+
VoiceMessagingMessages: {
|
|
43
|
+
messageInfoList: {
|
|
44
|
+
messageInfo: MessageInfo[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type VoicemailResponseEvent = {
|
|
49
|
+
statusCode: number;
|
|
50
|
+
data: {
|
|
51
|
+
voicemailList?: MessageInfo[];
|
|
52
|
+
voicemailContent?: {
|
|
53
|
+
type: string | null;
|
|
54
|
+
content: string | null;
|
|
55
|
+
};
|
|
56
|
+
voicemailSummary?: SummaryInfo;
|
|
57
|
+
voicemailTranscript?: string | null;
|
|
58
|
+
error?: string;
|
|
59
|
+
};
|
|
60
|
+
message: string | null;
|
|
61
|
+
};
|
|
62
|
+
export interface IVoicemail {
|
|
63
|
+
getSDKConnector: () => ISDKConnector;
|
|
64
|
+
init: () => VoicemailResponseEvent;
|
|
65
|
+
getVoicemailList: (offset: number, offsetLimit: number, sort: SORT, refresh?: boolean) => Promise<VoicemailResponseEvent>;
|
|
66
|
+
getVoicemailContent: (messageId: string) => Promise<VoicemailResponseEvent>;
|
|
67
|
+
getVoicemailSummary: () => Promise<VoicemailResponseEvent | null>;
|
|
68
|
+
voicemailMarkAsRead: (messageId: string) => Promise<VoicemailResponseEvent>;
|
|
69
|
+
voicemailMarkAsUnread: (messageId: string) => Promise<VoicemailResponseEvent>;
|
|
70
|
+
deleteVoicemail: (messageId: string) => Promise<VoicemailResponseEvent>;
|
|
71
|
+
getVMTranscript: (messageId: string) => Promise<VoicemailResponseEvent | null>;
|
|
72
|
+
resolveContact: (callingPartyInfo: CallingPartyInfo) => Promise<DisplayInformation | null>;
|
|
73
|
+
}
|
|
74
|
+
export interface IWxCallBackendConnector extends IVoicemail {
|
|
75
|
+
xsiEndpoint: WebexRequestPayload;
|
|
76
|
+
userId: string;
|
|
77
|
+
}
|
|
78
|
+
export interface IBroadworksCallBackendConnector extends IVoicemail {
|
|
79
|
+
xsiEndpoint: WebexRequestPayload;
|
|
80
|
+
userId: string;
|
|
81
|
+
bwtoken: string;
|
|
82
|
+
xsiAccessToken: string;
|
|
83
|
+
}
|
|
84
|
+
export interface IUcmBackendConnector extends IVoicemail {
|
|
85
|
+
userId: string;
|
|
86
|
+
}
|
|
87
|
+
export type From = {
|
|
88
|
+
DisplayName: string;
|
|
89
|
+
SmtpAddress: string;
|
|
90
|
+
DtmfAccessId: string;
|
|
91
|
+
};
|
|
92
|
+
export type CallerId = {
|
|
93
|
+
CallerNumber: string;
|
|
94
|
+
CallerName: string;
|
|
95
|
+
};
|
|
96
|
+
export type UcmVmMessageInfo = {
|
|
97
|
+
Subject: string;
|
|
98
|
+
Read: string;
|
|
99
|
+
Dispatch: string;
|
|
100
|
+
Secure: string;
|
|
101
|
+
Priority: string;
|
|
102
|
+
Sensitivity: string;
|
|
103
|
+
URI: string;
|
|
104
|
+
MsgId: string;
|
|
105
|
+
From: From;
|
|
106
|
+
CallerId: CallerId;
|
|
107
|
+
ArrivalTime: string;
|
|
108
|
+
Size: string;
|
|
109
|
+
Duration: string;
|
|
110
|
+
IMAPUid: string;
|
|
111
|
+
FromSub: string;
|
|
112
|
+
MsgType: string;
|
|
113
|
+
};
|
|
114
|
+
export type UcmVMContentResponse = {
|
|
115
|
+
data?: string;
|
|
116
|
+
};
|
|
117
|
+
export type UcmVMResponse = {
|
|
118
|
+
'@total': string;
|
|
119
|
+
Message: UcmVmMessageInfo;
|
|
120
|
+
};
|
|
121
|
+
export type MessageId = {
|
|
122
|
+
messageId: string;
|
|
123
|
+
eventType: string;
|
|
124
|
+
status: string;
|
|
125
|
+
};
|
|
126
|
+
export type VoicemailEvent = {
|
|
127
|
+
data: MessageId;
|
|
128
|
+
filterMessage: boolean;
|
|
129
|
+
id: string;
|
|
130
|
+
sequenceNumber: number;
|
|
131
|
+
timestamp: number;
|
|
132
|
+
trackingId: string;
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,mBAAmB,EAAE,IAAI,EAAE,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;IACzB,cAAc,CAAC,EAAE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Type: {
|
|
3
|
+
body: {
|
|
4
|
+
token: {
|
|
5
|
+
bearer: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const broadworksUserInfoUrl = "https://xsp-alpha.broadcloudpbx.net/com.broadsoft.xsi-actions/v2.0/user/bgerman@wcslab.broadcloud.org/VoiceMessagingMessages";
|
|
10
|
+
export declare const broadworksUserMessageId = "274a236c-9212-4679-8b40-2786ea460538";
|
|
11
|
+
export declare const braodworksUserMessageInfo = "/v2.0/user/bgerman@wcslab.broadcloud.org/VoiceMessagingMessages";
|
|
12
|
+
export declare const ucmBackendInfoUrl = "https://gw.telemetry.int-ucmgmt.cisco.com/vmgateway/api/v1/users/8a67806f-fc4d-446b-a131-31e71ea5b0e9/voicemails";
|
|
13
|
+
export declare const voicemailContent = "/?offset=0&limit=20&sortOrder=DESC";
|
|
14
|
+
export declare const orgId = "1704d30d-a131-4bc7-9449-948487643793";
|
|
15
|
+
export declare const name = "Adrian";
|
|
16
|
+
export declare const userid = "admin";
|
|
17
|
+
export declare const address = "tel1372";
|
|
18
|
+
export declare const userId = "8a67806f-fc4d-446b-a131-31e71ea5b0e9";
|
|
19
|
+
export declare const voicemailSummaryUrl: string;
|
|
20
|
+
export declare const getVoicemailListJsonBWRKS: {
|
|
21
|
+
statusCode: number;
|
|
22
|
+
VoiceMessagingMessages: {
|
|
23
|
+
messageInfoList: {
|
|
24
|
+
messageInfo: {
|
|
25
|
+
duration: {
|
|
26
|
+
$: string;
|
|
27
|
+
};
|
|
28
|
+
callingPartyInfo: {
|
|
29
|
+
name: {
|
|
30
|
+
$: string;
|
|
31
|
+
};
|
|
32
|
+
userId: {
|
|
33
|
+
$: string;
|
|
34
|
+
};
|
|
35
|
+
address: {
|
|
36
|
+
$: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
time: {
|
|
40
|
+
$: string;
|
|
41
|
+
};
|
|
42
|
+
messageId: {
|
|
43
|
+
$: string;
|
|
44
|
+
};
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const getAscVoicemailListJsonBWRKS: {
|
|
50
|
+
statusCode: number;
|
|
51
|
+
VoiceMessagingMessages: {
|
|
52
|
+
messageInfoList: {
|
|
53
|
+
messageInfo: {
|
|
54
|
+
duration: {
|
|
55
|
+
$: string;
|
|
56
|
+
};
|
|
57
|
+
callingPartyInfo: {
|
|
58
|
+
name: {
|
|
59
|
+
$: string;
|
|
60
|
+
};
|
|
61
|
+
userId: {
|
|
62
|
+
$: string;
|
|
63
|
+
};
|
|
64
|
+
address: {
|
|
65
|
+
$: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
time: {
|
|
69
|
+
$: string;
|
|
70
|
+
};
|
|
71
|
+
messageId: {
|
|
72
|
+
$: string;
|
|
73
|
+
};
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const getDescVoicemailListJsonBWRKS: {
|
|
79
|
+
statusCode: number;
|
|
80
|
+
VoiceMessagingMessages: {
|
|
81
|
+
messageInfoList: {
|
|
82
|
+
messageInfo: {
|
|
83
|
+
duration: {
|
|
84
|
+
$: string;
|
|
85
|
+
};
|
|
86
|
+
callingPartyInfo: {
|
|
87
|
+
name: {
|
|
88
|
+
$: string;
|
|
89
|
+
};
|
|
90
|
+
userId: {
|
|
91
|
+
$: string;
|
|
92
|
+
};
|
|
93
|
+
address: {
|
|
94
|
+
$: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
time: {
|
|
98
|
+
$: string;
|
|
99
|
+
};
|
|
100
|
+
messageId: {
|
|
101
|
+
$: string;
|
|
102
|
+
};
|
|
103
|
+
}[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export declare const getVoicemailListJsonWXC: {
|
|
108
|
+
statusCode: number;
|
|
109
|
+
body: {
|
|
110
|
+
VoiceMessagingMessages: {
|
|
111
|
+
messageInfoList: {
|
|
112
|
+
messageInfo: {
|
|
113
|
+
duration: {
|
|
114
|
+
$: string;
|
|
115
|
+
};
|
|
116
|
+
callingPartyInfo: {
|
|
117
|
+
name: {
|
|
118
|
+
$: string;
|
|
119
|
+
};
|
|
120
|
+
userId: {
|
|
121
|
+
$: string;
|
|
122
|
+
};
|
|
123
|
+
address: {
|
|
124
|
+
$: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
time: {
|
|
128
|
+
$: string;
|
|
129
|
+
};
|
|
130
|
+
messageId: {
|
|
131
|
+
$: string;
|
|
132
|
+
};
|
|
133
|
+
}[];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export declare const mockBWRKSData: {
|
|
139
|
+
body: {
|
|
140
|
+
devices: {
|
|
141
|
+
settings: {
|
|
142
|
+
broadworksXsiActionsUrl: string;
|
|
143
|
+
};
|
|
144
|
+
}[];
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export declare const mockVoicemailBody: {
|
|
148
|
+
body: {
|
|
149
|
+
statusCode: number;
|
|
150
|
+
items: {
|
|
151
|
+
duration: {
|
|
152
|
+
$: string;
|
|
153
|
+
};
|
|
154
|
+
callingPartyInfo: {
|
|
155
|
+
name: {
|
|
156
|
+
$: string;
|
|
157
|
+
};
|
|
158
|
+
userId: {
|
|
159
|
+
$: string;
|
|
160
|
+
};
|
|
161
|
+
address: {
|
|
162
|
+
$: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
time: {
|
|
166
|
+
$: string;
|
|
167
|
+
};
|
|
168
|
+
messageId: {
|
|
169
|
+
$: string;
|
|
170
|
+
};
|
|
171
|
+
}[];
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
export declare const mockWXCData: {
|
|
175
|
+
body: {
|
|
176
|
+
items: {
|
|
177
|
+
xsiActionsEndpoint: string;
|
|
178
|
+
}[];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
export declare const getAscVoicemailListJsonWXC: {
|
|
182
|
+
statusCode: number;
|
|
183
|
+
body: {
|
|
184
|
+
VoiceMessagingMessages: {
|
|
185
|
+
messageInfoList: {
|
|
186
|
+
messageInfo: {
|
|
187
|
+
duration: {
|
|
188
|
+
$: string;
|
|
189
|
+
};
|
|
190
|
+
callingPartyInfo: {
|
|
191
|
+
name: {
|
|
192
|
+
$: string;
|
|
193
|
+
};
|
|
194
|
+
userId: {
|
|
195
|
+
$: string;
|
|
196
|
+
};
|
|
197
|
+
address: {
|
|
198
|
+
$: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
time: {
|
|
202
|
+
$: string;
|
|
203
|
+
};
|
|
204
|
+
messageId: {
|
|
205
|
+
$: string;
|
|
206
|
+
};
|
|
207
|
+
}[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
export declare const getDescVoicemailListJsonWXC: {
|
|
213
|
+
statusCode: number;
|
|
214
|
+
body: {
|
|
215
|
+
VoiceMessagingMessages: {
|
|
216
|
+
messageInfoList: {
|
|
217
|
+
messageInfo: {
|
|
218
|
+
duration: {
|
|
219
|
+
$: string;
|
|
220
|
+
};
|
|
221
|
+
callingPartyInfo: {
|
|
222
|
+
name: {
|
|
223
|
+
$: string;
|
|
224
|
+
};
|
|
225
|
+
userId: {
|
|
226
|
+
$: string;
|
|
227
|
+
};
|
|
228
|
+
address: {
|
|
229
|
+
$: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
time: {
|
|
233
|
+
$: string;
|
|
234
|
+
};
|
|
235
|
+
messageId: {
|
|
236
|
+
$: string;
|
|
237
|
+
};
|
|
238
|
+
}[];
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
export declare const mockUCMVoicemailBody: {
|
|
244
|
+
body: {
|
|
245
|
+
statusCode: number;
|
|
246
|
+
items: {
|
|
247
|
+
Duration: number;
|
|
248
|
+
MsgId: string;
|
|
249
|
+
ArrivalTime: number;
|
|
250
|
+
Read: string;
|
|
251
|
+
callingPartyInfo: {
|
|
252
|
+
name: string;
|
|
253
|
+
userId: string;
|
|
254
|
+
};
|
|
255
|
+
CallerId: {
|
|
256
|
+
CallerNumber: string;
|
|
257
|
+
CallerName: string;
|
|
258
|
+
};
|
|
259
|
+
}[];
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
export declare const getVoiceMailListJsonUCM: {
|
|
263
|
+
statusCode: number;
|
|
264
|
+
body: {
|
|
265
|
+
Message: {
|
|
266
|
+
Duration: number;
|
|
267
|
+
MsgId: string;
|
|
268
|
+
ArrivalTime: number;
|
|
269
|
+
Read: string;
|
|
270
|
+
callingPartyInfo: {
|
|
271
|
+
name: string;
|
|
272
|
+
userId: string;
|
|
273
|
+
};
|
|
274
|
+
CallerId: {
|
|
275
|
+
CallerNumber: string;
|
|
276
|
+
CallerName: string;
|
|
277
|
+
};
|
|
278
|
+
}[];
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
export declare const getDescVoiceMailListJsonUCM: {
|
|
282
|
+
statusCode: number;
|
|
283
|
+
body: {
|
|
284
|
+
Message: {
|
|
285
|
+
voicemailList: {
|
|
286
|
+
duration: {
|
|
287
|
+
$: number;
|
|
288
|
+
};
|
|
289
|
+
time: {
|
|
290
|
+
$: number;
|
|
291
|
+
};
|
|
292
|
+
messageId: {
|
|
293
|
+
$: string;
|
|
294
|
+
};
|
|
295
|
+
callingPartyInfo: {
|
|
296
|
+
name: {
|
|
297
|
+
$: string;
|
|
298
|
+
};
|
|
299
|
+
userId: {
|
|
300
|
+
$: string;
|
|
301
|
+
};
|
|
302
|
+
address: {
|
|
303
|
+
$: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
}[];
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
export declare const mockVoicemailTranscriptResponse: {
|
|
311
|
+
body: string;
|
|
312
|
+
statusCode: number;
|
|
313
|
+
method: string;
|
|
314
|
+
headers: {
|
|
315
|
+
'cache-control': string;
|
|
316
|
+
connection: string;
|
|
317
|
+
'content-language': string;
|
|
318
|
+
'content-type': string;
|
|
319
|
+
date: string;
|
|
320
|
+
expires: string;
|
|
321
|
+
'keep-alive': string;
|
|
322
|
+
pragma: string;
|
|
323
|
+
'strict-transport-security': string;
|
|
324
|
+
trackingid: string;
|
|
325
|
+
'transfer-encoding': string;
|
|
326
|
+
'x-content-type-options': string;
|
|
327
|
+
'x-frame-options': string;
|
|
328
|
+
'x-xss-protection': string;
|
|
329
|
+
};
|
|
330
|
+
url: string;
|
|
331
|
+
options: {
|
|
332
|
+
uri: string;
|
|
333
|
+
method: string;
|
|
334
|
+
json: boolean;
|
|
335
|
+
headers: {
|
|
336
|
+
trackingid: string;
|
|
337
|
+
'spark-user-agent': string;
|
|
338
|
+
authorization: string;
|
|
339
|
+
'cisco-no-http-redirect': boolean;
|
|
340
|
+
};
|
|
341
|
+
$timings: {
|
|
342
|
+
requestStart: number;
|
|
343
|
+
networkStart: number;
|
|
344
|
+
networkEnd: number;
|
|
345
|
+
requestEnd: number;
|
|
346
|
+
};
|
|
347
|
+
$redirectCount: number;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
//# sourceMappingURL=voicemailFixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voicemailFixture.d.ts","sourceRoot":"","sources":["../../../src/Voicemail/voicemailFixture.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,iIAC8F,CAAC;AAEjI,eAAO,MAAM,uBAAuB,yCAAyC,CAAC;AAE9E,eAAO,MAAM,yBAAyB,oEAC6B,CAAC;AAEpE,eAAO,MAAM,iBAAiB,qHACsF,CA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