@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,57 @@
|
|
|
1
|
+
export var ALLOWED_SERVICES;
|
|
2
|
+
(function (ALLOWED_SERVICES) {
|
|
3
|
+
ALLOWED_SERVICES["MOBIUS"] = "mobius";
|
|
4
|
+
ALLOWED_SERVICES["JANUS"] = "janus";
|
|
5
|
+
})(ALLOWED_SERVICES || (ALLOWED_SERVICES = {}));
|
|
6
|
+
export var HTTP_METHODS;
|
|
7
|
+
(function (HTTP_METHODS) {
|
|
8
|
+
HTTP_METHODS["GET"] = "GET";
|
|
9
|
+
HTTP_METHODS["POST"] = "POST";
|
|
10
|
+
HTTP_METHODS["PATCH"] = "PATCH";
|
|
11
|
+
HTTP_METHODS["PUT"] = "PUT";
|
|
12
|
+
HTTP_METHODS["DELETE"] = "DELETE";
|
|
13
|
+
})(HTTP_METHODS || (HTTP_METHODS = {}));
|
|
14
|
+
export var MobiusStatus;
|
|
15
|
+
(function (MobiusStatus) {
|
|
16
|
+
MobiusStatus["ACTIVE"] = "active";
|
|
17
|
+
MobiusStatus["DEFAULT"] = "default";
|
|
18
|
+
})(MobiusStatus || (MobiusStatus = {}));
|
|
19
|
+
export var CALLING_BACKEND;
|
|
20
|
+
(function (CALLING_BACKEND) {
|
|
21
|
+
CALLING_BACKEND["WXC"] = "WEBEX_CALLING";
|
|
22
|
+
CALLING_BACKEND["BWRKS"] = "BROADWORKS_CALLING";
|
|
23
|
+
CALLING_BACKEND["UCM"] = "UCM_CALLING";
|
|
24
|
+
CALLING_BACKEND["INVALID"] = "Calling backend is currently not supported";
|
|
25
|
+
})(CALLING_BACKEND || (CALLING_BACKEND = {}));
|
|
26
|
+
export var CallType;
|
|
27
|
+
(function (CallType) {
|
|
28
|
+
CallType["URI"] = "uri";
|
|
29
|
+
CallType["TEL"] = "tel";
|
|
30
|
+
})(CallType || (CallType = {}));
|
|
31
|
+
export var CallDirection;
|
|
32
|
+
(function (CallDirection) {
|
|
33
|
+
CallDirection["INBOUND"] = "inbound";
|
|
34
|
+
CallDirection["OUTBOUND"] = "outbound";
|
|
35
|
+
})(CallDirection || (CallDirection = {}));
|
|
36
|
+
export var SORT;
|
|
37
|
+
(function (SORT) {
|
|
38
|
+
SORT["ASC"] = "ASC";
|
|
39
|
+
SORT["DESC"] = "DESC";
|
|
40
|
+
SORT["DEFAULT"] = "DESC";
|
|
41
|
+
})(SORT || (SORT = {}));
|
|
42
|
+
export var SORT_BY;
|
|
43
|
+
(function (SORT_BY) {
|
|
44
|
+
SORT_BY["END_TIME"] = "endTime";
|
|
45
|
+
SORT_BY["DEFAULT"] = "endTime";
|
|
46
|
+
SORT_BY["START_TIME"] = "startTime";
|
|
47
|
+
})(SORT_BY || (SORT_BY = {}));
|
|
48
|
+
export var ServiceIndicator;
|
|
49
|
+
(function (ServiceIndicator) {
|
|
50
|
+
ServiceIndicator["CALLING"] = "calling";
|
|
51
|
+
ServiceIndicator["CONTACT_CENTER"] = "contactcenter";
|
|
52
|
+
})(ServiceIndicator || (ServiceIndicator = {}));
|
|
53
|
+
export var DecodeType;
|
|
54
|
+
(function (DecodeType) {
|
|
55
|
+
DecodeType["PEOPLE"] = "PEOPLE";
|
|
56
|
+
DecodeType["ORGANIZATION"] = "ORGANIZATION";
|
|
57
|
+
})(DecodeType || (DecodeType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createMicrophoneStream } from '@webex/media-helpers';
|
|
2
|
+
import { createCallSettingsClient } from './CallSettings/CallSettings';
|
|
3
|
+
import { createContactsClient } from './Contacts/ContactsClient';
|
|
4
|
+
import { createClient } from './CallingClient/CallingClient';
|
|
5
|
+
import { createCallHistoryClient } from './CallHistory/CallHistory';
|
|
6
|
+
import { createVoicemailClient } from './Voicemail/Voicemail';
|
|
7
|
+
import Logger from './Logger';
|
|
8
|
+
export { createClient, createCallHistoryClient, createMicrophoneStream, createVoicemailClient, createContactsClient, createCallSettingsClient, Logger, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { SORT, SORT_BY } from '../common/types';
|
|
3
|
+
import { ICallHistory, JanusResponseEvent, LoggerInterface } from './types';
|
|
4
|
+
import { CallHistoryEventTypes } from '../Events/types';
|
|
5
|
+
import { Eventing } from '../Events/impl';
|
|
6
|
+
export declare class CallHistory extends Eventing<CallHistoryEventTypes> implements ICallHistory {
|
|
7
|
+
private sdkConnector;
|
|
8
|
+
private webex;
|
|
9
|
+
private janusUrl;
|
|
10
|
+
private fromDate;
|
|
11
|
+
private loggerContext;
|
|
12
|
+
private userSessions;
|
|
13
|
+
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
14
|
+
getCallHistoryData(days?: number, limit?: number, sort?: SORT, sortBy?: SORT_BY): Promise<JanusResponseEvent>;
|
|
15
|
+
getSDKConnector(): ISDKConnector;
|
|
16
|
+
private registerSessionsListener;
|
|
17
|
+
}
|
|
18
|
+
export declare const createCallHistoryClient: (webex: WebexSDK, logger: LoggerInterface) => ICallHistory;
|
|
19
|
+
//# sourceMappingURL=CallHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallHistory.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/CallHistory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAsD,IAAI,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAK1E,OAAO,EACL,qBAAqB,EAKtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAIxC,qBAAa,WAAY,SAAQ,QAAQ,CAAC,qBAAqB,CAAE,YAAW,YAAY;IACtF,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,QAAQ,CAAM;IAEtB,OAAO,CAAC,QAAQ,CAAM;IAEtB,OAAO,CAAC,aAAa,CAGnB;IAEF,OAAO,CAAC,YAAY,CAA4B;gBAQpC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe;IAqBvC,kBAAkB,CAC7B,IAAI,GAAE,MAAuB,EAC7B,KAAK,GAAE,MAAc,EACrB,IAAI,GAAE,IAAmB,EACzB,MAAM,GAAE,OAAyB,GAChC,OAAO,CAAC,kBAAkB,CAAC;IA+DvB,eAAe,IAAI,aAAa;IAOvC,OAAO,CAAC,wBAAwB;CAUjC;AAKD,eAAO,MAAM,uBAAuB,UAAW,QAAQ,UAAU,eAAe,KAAG,YACnD,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { CallSessionEvent } from '../Events/types';
|
|
2
|
+
export declare const sortedCallHistory: {
|
|
3
|
+
body: {
|
|
4
|
+
statusCode: number;
|
|
5
|
+
userSessions: {
|
|
6
|
+
id: string;
|
|
7
|
+
durationSecs: number;
|
|
8
|
+
self: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
incomingCallProtocols: never[];
|
|
12
|
+
callbackInfo: {
|
|
13
|
+
callbackAddress: string;
|
|
14
|
+
callbackType: string;
|
|
15
|
+
};
|
|
16
|
+
lookUpInfo: {
|
|
17
|
+
lookupLink: string;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
url: string;
|
|
22
|
+
sessionId: string;
|
|
23
|
+
sessionType: string;
|
|
24
|
+
startTime: string;
|
|
25
|
+
endTime: string;
|
|
26
|
+
direction: string;
|
|
27
|
+
disposition: string;
|
|
28
|
+
other: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
isPrivate: boolean;
|
|
32
|
+
callbackAddress: string;
|
|
33
|
+
};
|
|
34
|
+
durationSeconds: number;
|
|
35
|
+
joinedDurationSeconds: number;
|
|
36
|
+
participantCount: number;
|
|
37
|
+
links: {
|
|
38
|
+
locusUrl: string;
|
|
39
|
+
conversationUrl: string;
|
|
40
|
+
callbackAddress: string;
|
|
41
|
+
};
|
|
42
|
+
isDeleted: boolean;
|
|
43
|
+
isPMR: boolean;
|
|
44
|
+
correlationIds: string[];
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const mockCallHistoryBody: {
|
|
49
|
+
body: {
|
|
50
|
+
statusCode: number;
|
|
51
|
+
userSessions: {
|
|
52
|
+
id: string;
|
|
53
|
+
durationSecs: number;
|
|
54
|
+
self: {
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
incomingCallProtocols: never[];
|
|
58
|
+
callbackInfo: {
|
|
59
|
+
callbackAddress: string;
|
|
60
|
+
callbackType: string;
|
|
61
|
+
};
|
|
62
|
+
lookUpInfo: {
|
|
63
|
+
lookupLink: string;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
url: string;
|
|
68
|
+
sessionId: string;
|
|
69
|
+
sessionType: string;
|
|
70
|
+
startTime: string;
|
|
71
|
+
endTime: string;
|
|
72
|
+
direction: string;
|
|
73
|
+
disposition: string;
|
|
74
|
+
other: {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
isPrivate: boolean;
|
|
78
|
+
callbackAddress: string;
|
|
79
|
+
};
|
|
80
|
+
durationSeconds: number;
|
|
81
|
+
joinedDurationSeconds: number;
|
|
82
|
+
participantCount: number;
|
|
83
|
+
links: {
|
|
84
|
+
locusUrl: string;
|
|
85
|
+
conversationUrl: string;
|
|
86
|
+
callbackAddress: string;
|
|
87
|
+
};
|
|
88
|
+
isDeleted: boolean;
|
|
89
|
+
isPMR: boolean;
|
|
90
|
+
correlationIds: string[];
|
|
91
|
+
}[];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare const MOCK_SESSION_EVENT: CallSessionEvent;
|
|
95
|
+
//# sourceMappingURL=callHistoryFixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callHistoryFixtures.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/callHistoryFixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,gBAAgB,EAAc,MAAM,iBAAiB,CAAC;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I/B,CAAC;AAuCF,eAAO,MAAM,kBAAkB,EAAE,gBAWhC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const CALL_HISTORY_FILE = "CallHistory";
|
|
2
|
+
export declare const FROM_DATE = "?from";
|
|
3
|
+
export declare const HISTORY = "history";
|
|
4
|
+
export declare const LIMIT = 50;
|
|
5
|
+
export declare const NUMBER_OF_DAYS = 10;
|
|
6
|
+
export declare const RESPONSE_MESSAGE = "responseMessage";
|
|
7
|
+
export declare const SUCCESS_MESSAGE = "SUCCESS";
|
|
8
|
+
export declare const STATUS_CODE = "statusCode";
|
|
9
|
+
export declare const USER_SESSIONS = "userSessions";
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,KAAK,KAAK,CAAC;AACxB,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,aAAa,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Eventing } from '../Events/impl';
|
|
2
|
+
import { CallHistoryEventTypes, UserSession } from '../Events/types';
|
|
3
|
+
import { ISDKConnector } from '../SDKConnector/types';
|
|
4
|
+
import { LOGGER } from '../Logger/types';
|
|
5
|
+
import { SORT, SORT_BY } from '../common/types';
|
|
6
|
+
export interface LoggerInterface {
|
|
7
|
+
level: LOGGER;
|
|
8
|
+
}
|
|
9
|
+
export type JanusResponseEvent = {
|
|
10
|
+
statusCode: number;
|
|
11
|
+
data: {
|
|
12
|
+
userSessions?: UserSession[];
|
|
13
|
+
error?: string;
|
|
14
|
+
};
|
|
15
|
+
message: string | null;
|
|
16
|
+
};
|
|
17
|
+
export interface ICallHistory extends Eventing<CallHistoryEventTypes> {
|
|
18
|
+
getSDKConnector: () => ISDKConnector;
|
|
19
|
+
getCallHistoryData: (days: number, limit: number, sort: SORT, sortBy: SORT_BY) => Promise<JanusResponseEvent>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,qBAAqB,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,QAAQ,CAAC,qBAAqB,CAAC;IACnE,eAAe,EAAE,MAAM,aAAa,CAAC;IACrC,kBAAkB,EAAE,CAClB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,OAAO,KACZ,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { ICallSettings, LoggerInterface, CallForwardSetting, CallSettingResponse, VoicemailSetting } from './types';
|
|
3
|
+
export declare class CallSettings implements ICallSettings {
|
|
4
|
+
private sdkConnector;
|
|
5
|
+
private webex;
|
|
6
|
+
private callingBackend;
|
|
7
|
+
private backendConnector;
|
|
8
|
+
constructor(webex: WebexSDK, logger: LoggerInterface, useProdWebexApis?: boolean);
|
|
9
|
+
private initializeBackendConnector;
|
|
10
|
+
getCallWaitingSetting(): Promise<CallSettingResponse>;
|
|
11
|
+
getDoNotDisturbSetting(): Promise<CallSettingResponse>;
|
|
12
|
+
setDoNotDisturbSetting(enabled: boolean): Promise<CallSettingResponse>;
|
|
13
|
+
getCallForwardSetting(): Promise<CallSettingResponse>;
|
|
14
|
+
setCallForwardSetting(callForwardingRequest: CallForwardSetting): Promise<CallSettingResponse>;
|
|
15
|
+
getVoicemailSetting(): Promise<CallSettingResponse>;
|
|
16
|
+
setVoicemailSetting(voicemailRequest: VoicemailSetting): Promise<CallSettingResponse>;
|
|
17
|
+
getCallForwardAlwaysSetting(directoryNumber?: string): Promise<CallSettingResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare const createCallSettingsClient: (webex: WebexSDK, logger: LoggerInterface, useProdWebexApis?: boolean) => ICallSettings;
|
|
20
|
+
//# sourceMappingURL=CallSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallSettings.d.ts","sourceRoot":"","sources":["../../../src/CallSettings/CallSettings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAajB,qBAAa,YAAa,YAAW,aAAa;IAChD,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,cAAc,CAAmB;IAEzC,OAAO,CAAC,gBAAgB,CAAiB;gBAE7B,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,CAAC,EAAE,OAAO;IAehF,OAAO,CAAC,0BAA0B;IAyBrB,qBAAqB;IAOrB,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOtE,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOrD,qBAAqB,CAChC,qBAAqB,EAAE,kBAAkB,GACxC,OAAO,CAAC,mBAAmB,CAAC;IAOlB,mBAAmB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOnD,mBAAmB,CAC9B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,mBAAmB,CAAC;IASlB,2BAA2B,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAGjG;AAID,eAAO,MAAM,wBAAwB,UAC5B,QAAQ,UACP,eAAe,qBACJ,OAAO,KACzB,aAAkE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { LoggerInterface, CallSettingResponse, IUcmBackendConnector } from './types';
|
|
3
|
+
export declare class UcmBackendConnector implements IUcmBackendConnector {
|
|
4
|
+
private sdkConnector;
|
|
5
|
+
private webex;
|
|
6
|
+
private userId;
|
|
7
|
+
private orgId;
|
|
8
|
+
private useProdWebexApis;
|
|
9
|
+
constructor(webex: WebexSDK, logger: LoggerInterface, useProdWebexApis?: boolean);
|
|
10
|
+
getCallWaitingSetting(): Promise<CallSettingResponse>;
|
|
11
|
+
getDoNotDisturbSetting(): Promise<CallSettingResponse>;
|
|
12
|
+
setDoNotDisturbSetting(): Promise<CallSettingResponse>;
|
|
13
|
+
getCallForwardSetting(): Promise<CallSettingResponse>;
|
|
14
|
+
setCallForwardSetting(): Promise<CallSettingResponse>;
|
|
15
|
+
getVoicemailSetting(): Promise<CallSettingResponse>;
|
|
16
|
+
setVoicemailSetting(): Promise<CallSettingResponse>;
|
|
17
|
+
private getMethodNotSupportedResponse;
|
|
18
|
+
getCallForwardAlwaysSetting(directoryNumber?: string): Promise<CallSettingResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=UcmBackendConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UcmBackendConnector.d.ts","sourceRoot":"","sources":["../../../src/CallSettings/UcmBackendConnector.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgB,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,mBAAmB,EAEnB,oBAAoB,EAErB,MAAM,SAAS,CAAC;AAgBjB,qBAAa,mBAAoB,YAAW,oBAAoB;IAC9D,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,gBAAgB,CAAU;gBAKtB,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,UAAO;IAiBtE,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOrD,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOtD,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOtD,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOrD,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOrD,mBAAmB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOnD,mBAAmB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAO1D,OAAO,CAAC,6BAA6B;IAiBxB,2BAA2B,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CA4DjG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WebexSDK } from '../SDKConnector/types';
|
|
2
|
+
import { LoggerInterface, CallForwardSetting, CallSettingResponse, VoicemailSetting, IWxCallBackendConnector } from './types';
|
|
3
|
+
export declare class WxCallBackendConnector implements IWxCallBackendConnector {
|
|
4
|
+
private sdkConnector;
|
|
5
|
+
private webex;
|
|
6
|
+
private userId;
|
|
7
|
+
private personId;
|
|
8
|
+
private orgId;
|
|
9
|
+
private xsiEndpoint;
|
|
10
|
+
private hydraEndpoint;
|
|
11
|
+
private VOICEMAIL;
|
|
12
|
+
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
13
|
+
getCallWaitingSetting(): Promise<CallSettingResponse>;
|
|
14
|
+
getDoNotDisturbSetting(): Promise<CallSettingResponse>;
|
|
15
|
+
setDoNotDisturbSetting(enabled: boolean): Promise<CallSettingResponse>;
|
|
16
|
+
getCallForwardSetting(): Promise<CallSettingResponse>;
|
|
17
|
+
setCallForwardSetting(callForwardingRequest: CallForwardSetting): Promise<CallSettingResponse>;
|
|
18
|
+
getVoicemailSetting(): Promise<CallSettingResponse>;
|
|
19
|
+
setVoicemailSetting(voicemailRequest: VoicemailSetting): Promise<CallSettingResponse>;
|
|
20
|
+
getCallForwardAlwaysSetting(): Promise<CallSettingResponse>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=WxCallBackendConnector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WxCallBackendConnector.d.ts","sourceRoot":"","sources":["../../../src/CallSettings/WxCallBackendConnector.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,eAAe,EAEf,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EAExB,MAAM,SAAS,CAAC;AA2BjB,qBAAa,sBAAuB,YAAW,uBAAuB;IACpE,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,KAAK,CAAS;IAEtB,OAAO,CAAC,WAAW,CAAU;IAE7B,OAAO,CAAC,aAAa,CAAS;IAE9B,OAAO,CAAC,SAAS,CAAe;gBAEpB,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe;IAoBvC,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IA4DrD,sBAAsB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAgCtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAsCtE,qBAAqB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAgCrD,qBAAqB,CAChC,qBAAqB,EAAE,kBAAkB,GACxC,OAAO,CAAC,mBAAmB,CAAC;IAiClB,mBAAmB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAgCnD,mBAAmB,CAC9B,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,mBAAmB,CAAC;IAmClB,2BAA2B,IAAI,OAAO,CAAC,mBAAmB,CAAC;CAqEzE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const CALL_SETTINGS_FILE = "CallSettings";
|
|
2
|
+
export declare const PEOPLE_ENDPOINT = "people";
|
|
3
|
+
export declare const USER_ENDPOINT = "user";
|
|
4
|
+
export declare const ORG_ENDPOINT = "orgId";
|
|
5
|
+
export declare const DND_ENDPOINT = "features/doNotDisturb";
|
|
6
|
+
export declare const CF_ENDPOINT = "features/callForwarding";
|
|
7
|
+
export declare const VM_ENDPOINT = "features/voicemail";
|
|
8
|
+
export declare const CALL_WAITING_ENDPOINT = "CallWaiting";
|
|
9
|
+
export declare const XSI_VERSION = "v2.0";
|
|
10
|
+
export declare const WEBEX_APIS_INT_URL = "https://integration.webexapis.com/v1/uc/config";
|
|
11
|
+
export declare const WEBEX_APIS_PROD_URL = "https://webexapis.com/v1/uc/config";
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/CallSettings/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,aAAa,SAAS,CAAC;AACpC,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,eAAO,MAAM,YAAY,0BAA0B,CAAC;AACpD,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAChD,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AACnD,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,kBAAkB,mDAAmD,CAAC;AACnF,eAAO,MAAM,mBAAmB,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CallForwardSetting, VoicemailSetting } from './types';
|
|
2
|
+
export declare const xsiEndpointUrlResponse: {
|
|
3
|
+
items: {
|
|
4
|
+
id: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
created: string;
|
|
7
|
+
xsiDomain: string;
|
|
8
|
+
xsiActionsEndpoint: string;
|
|
9
|
+
xsiEventsEndpoint: string;
|
|
10
|
+
xsiEventsChannelEndpoint: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
export declare const callForwardPayload: CallForwardSetting;
|
|
14
|
+
export declare const dummyEmail = "abc@test.com";
|
|
15
|
+
export declare const voicemailPayload: VoicemailSetting;
|
|
16
|
+
//# sourceMappingURL=testFixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testFixtures.d.ts","sourceRoot":"","sources":["../../../src/CallSettings/testFixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;;;;;;;;CAalC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAoBhC,CAAC;AAEF,eAAO,MAAM,UAAU,iBAAiB,CAAC;AAEzC,eAAO,MAAM,gBAAgB,EAAE,gBA0B9B,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { LOGGER } from '../Logger/types';
|
|
2
|
+
export interface LoggerInterface {
|
|
3
|
+
level: LOGGER;
|
|
4
|
+
}
|
|
5
|
+
export type ToggleSetting = {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
ringSplashEnabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type CallForwardAlwaysSetting = {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
ringReminderEnabled?: boolean;
|
|
12
|
+
destinationVoicemailEnabled?: boolean;
|
|
13
|
+
destination?: string;
|
|
14
|
+
};
|
|
15
|
+
export type CallForwardSetting = {
|
|
16
|
+
callForwarding: {
|
|
17
|
+
always: CallForwardAlwaysSetting;
|
|
18
|
+
busy: {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
destinationVoicemailEnabled?: boolean;
|
|
21
|
+
destination?: string;
|
|
22
|
+
};
|
|
23
|
+
noAnswer: {
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
numberOfRings?: number;
|
|
26
|
+
systemMaxNumberOfRings?: number;
|
|
27
|
+
destinationVoicemailEnabled?: boolean;
|
|
28
|
+
destination?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
businessContinuity: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
destinationVoicemailEnabled?: boolean;
|
|
34
|
+
destination?: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type VoicemailSetting = {
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
sendAllCalls: {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
};
|
|
42
|
+
sendBusyCalls: {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
greeting?: string;
|
|
45
|
+
greetingUploaded?: boolean;
|
|
46
|
+
};
|
|
47
|
+
sendUnansweredCalls: {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
greeting?: string;
|
|
50
|
+
greetingUploaded?: boolean;
|
|
51
|
+
numberOfRings: number;
|
|
52
|
+
systemMaxNumberOfRings?: number;
|
|
53
|
+
};
|
|
54
|
+
notifications: {
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
destination?: string;
|
|
57
|
+
};
|
|
58
|
+
transferToNumber?: {
|
|
59
|
+
enabled: boolean;
|
|
60
|
+
destination: string;
|
|
61
|
+
};
|
|
62
|
+
emailCopyOfMessage: {
|
|
63
|
+
enabled: boolean;
|
|
64
|
+
emailId?: string;
|
|
65
|
+
};
|
|
66
|
+
messageStorage: {
|
|
67
|
+
mwiEnabled: boolean;
|
|
68
|
+
storageType: string;
|
|
69
|
+
externalEmail?: string;
|
|
70
|
+
};
|
|
71
|
+
faxMessage?: {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
phoneNumber?: string;
|
|
74
|
+
extension?: string;
|
|
75
|
+
};
|
|
76
|
+
voiceMessageForwardingEnabled?: boolean;
|
|
77
|
+
};
|
|
78
|
+
export type CallSettingResponse = {
|
|
79
|
+
statusCode: number;
|
|
80
|
+
data: {
|
|
81
|
+
callSetting?: ToggleSetting | CallForwardSetting | VoicemailSetting | CallForwardAlwaysSetting;
|
|
82
|
+
error?: string;
|
|
83
|
+
};
|
|
84
|
+
message: string | null;
|
|
85
|
+
};
|
|
86
|
+
export interface ICallSettings {
|
|
87
|
+
getCallWaitingSetting: () => Promise<CallSettingResponse>;
|
|
88
|
+
getDoNotDisturbSetting: () => Promise<CallSettingResponse>;
|
|
89
|
+
setDoNotDisturbSetting: (flag: boolean) => Promise<CallSettingResponse>;
|
|
90
|
+
getCallForwardSetting: () => Promise<CallSettingResponse>;
|
|
91
|
+
setCallForwardSetting: (request: CallForwardSetting) => Promise<CallSettingResponse>;
|
|
92
|
+
getVoicemailSetting: () => Promise<CallSettingResponse>;
|
|
93
|
+
setVoicemailSetting: (request: VoicemailSetting) => Promise<CallSettingResponse>;
|
|
94
|
+
getCallForwardAlwaysSetting: (directoryNumber?: string) => Promise<CallSettingResponse>;
|
|
95
|
+
}
|
|
96
|
+
export type IWxCallBackendConnector = ICallSettings;
|
|
97
|
+
export type IUcmBackendConnector = ICallSettings;
|
|
98
|
+
export type CallForwardingAlwaysSettingsUCM = {
|
|
99
|
+
dn: string;
|
|
100
|
+
destination?: string;
|
|
101
|
+
destinationVoicemailEnabled: boolean;
|
|
102
|
+
};
|
|
103
|
+
export type CallForwardingSettingsUCM = {
|
|
104
|
+
callForwarding: {
|
|
105
|
+
always: CallForwardingAlwaysSettingsUCM[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CallSettings/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,KAA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IACxE,qBAAqB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC1D,qBAAqB,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrF,mBAAmB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACxD,mBAAmB,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjF,2BAA2B,EAAE,CAAC,eAAe,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACzF;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC;AACpD,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC;AAEjD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,EAAE;QACd,MAAM,EAAE,+BAA+B,EAAE,CAAC;KAC3C,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Media from '@webex/internal-media-core';
|
|
2
|
+
import { LOGGER } from '../Logger/types';
|
|
3
|
+
import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
|
|
4
|
+
import { Eventing } from '../Events/impl';
|
|
5
|
+
import { CallingClientEventTypes } from '../Events/types';
|
|
6
|
+
import { CallDetails, CorrelationId } from '../common/types';
|
|
7
|
+
import { ICallingClient, CallingClientConfig } from './types';
|
|
8
|
+
import { ICall } from './calling/types';
|
|
9
|
+
import { ILine } from './line/types';
|
|
10
|
+
export declare class CallingClient extends Eventing<CallingClientEventTypes> implements ICallingClient {
|
|
11
|
+
private sdkConnector;
|
|
12
|
+
private webex;
|
|
13
|
+
private mutex;
|
|
14
|
+
private callManager;
|
|
15
|
+
private metricManager;
|
|
16
|
+
private sdkConfig?;
|
|
17
|
+
private primaryMobiusUris;
|
|
18
|
+
private backupMobiusUris;
|
|
19
|
+
mediaEngine: typeof Media;
|
|
20
|
+
private lineDict;
|
|
21
|
+
constructor(webex: WebexSDK, config?: CallingClientConfig);
|
|
22
|
+
init(): Promise<void>;
|
|
23
|
+
private incomingCallListener;
|
|
24
|
+
private detectNetworkChange;
|
|
25
|
+
private getClientRegionInfo;
|
|
26
|
+
private getMobiusServers;
|
|
27
|
+
private registerCallsClearedListener;
|
|
28
|
+
private callsClearedHandler;
|
|
29
|
+
getLoggingLevel(): LOGGER;
|
|
30
|
+
getCall: (correlationId: CorrelationId) => ICall;
|
|
31
|
+
makeCall: (dest: CallDetails) => ICall | undefined;
|
|
32
|
+
getSDKConnector(): ISDKConnector;
|
|
33
|
+
private registerSessionsListener;
|
|
34
|
+
private createLine;
|
|
35
|
+
getLines(): Record<string, ILine>;
|
|
36
|
+
}
|
|
37
|
+
export declare const createClient: (webex: WebexSDK, config?: CallingClientConfig) => Promise<ICallingClient>;
|
|
38
|
+
//# sourceMappingURL=CallingClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallingClient.d.ts","sourceRoot":"","sources":["../../../src/CallingClient/CallingClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAIpD,OAAO,EAAC,MAAM,EAAa,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAmB,aAAa,EAAE,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAEL,uBAAuB,EAIxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,WAAW,EACX,aAAa,EAQd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,cAAc,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAC,KAAK,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AAM,kBAAkB,EAAE,gBAWhC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,gBAW1C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CallerIdInfo } from '../../../Events/types';
|
|
2
|
+
import { WebexSDK } from '../../../SDKConnector/types';
|
|
3
|
+
import { DisplayInformation } from '../../../common/types';
|
|
4
|
+
import { ICallerId } from './types';
|
|
5
|
+
import { CallEmitterCallBack } from '../types';
|
|
6
|
+
export declare class CallerId implements ICallerId {
|
|
7
|
+
private webex;
|
|
8
|
+
private callerInfo;
|
|
9
|
+
private sdkConnector;
|
|
10
|
+
private emitter;
|
|
11
|
+
constructor(webex: WebexSDK, emitter: CallEmitterCallBack);
|
|
12
|
+
private resolveCallerId;
|
|
13
|
+
private parseRemotePartyInfo;
|
|
14
|
+
private parseSipUri;
|
|
15
|
+
fetchCallerDetails(callerId: CallerIdInfo): DisplayInformation;
|
|
16
|
+
}
|
|
17
|
+
export declare const createCallerId: (webex: WebexSDK, emitterCb: CallEmitterCallBack) => ICallerId;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CallingClient/calling/CallerId/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAgB,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAKzD,OAAO,EAAC,SAAS,EAAC,MAAM,SAAS,CAAC;AAClC,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAM7C,qBAAa,QAAS,YAAW,SAAS;IACxC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,UAAU,CAAqB;IAEvC,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,OAAO,CAAsB;gBASzB,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB;YAiB3C,eAAe;YAqDf,oBAAoB;IA2BlC,OAAO,CAAC,WAAW;IAgDZ,kBAAkB,CAAC,QAAQ,EAAE,YAAY;CAuFjD;AAQD,eAAO,MAAM,cAAc,UAAW,QAAQ,aAAa,mBAAmB,KAAG,SACjD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CallerIdInfo } from '../../../Events/types';
|
|
2
|
+
import { DisplayInformation, PhoneNumber } from '../../../common/types';
|
|
3
|
+
export type EmailType = {
|
|
4
|
+
primary: boolean;
|
|
5
|
+
type: string;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
export type SipAddressType = {
|
|
9
|
+
type: string;
|
|
10
|
+
value: string;
|
|
11
|
+
primary?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type PhotoType = {
|
|
14
|
+
type: string;
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
export type ResourceType = {
|
|
18
|
+
userName: string;
|
|
19
|
+
emails: Array<EmailType>;
|
|
20
|
+
name: {
|
|
21
|
+
givenName: string;
|
|
22
|
+
familyName: string;
|
|
23
|
+
};
|
|
24
|
+
phoneNumbers: Array<PhoneNumber>;
|
|
25
|
+
entitlements: Array<string>;
|
|
26
|
+
id: string;
|
|
27
|
+
photos: Array<PhotoType>;
|
|
28
|
+
displayName: string;
|
|
29
|
+
active: boolean;
|
|
30
|
+
sipAddresses: Array<SipAddressType>;
|
|
31
|
+
};
|
|
32
|
+
export type scimResponseBody = {
|
|
33
|
+
totalResults: number;
|
|
34
|
+
itemsPerPage: number;
|
|
35
|
+
startIndex: number;
|
|
36
|
+
schemas: Array<string>;
|
|
37
|
+
Resources: Array<ResourceType>;
|
|
38
|
+
};
|
|
39
|
+
export interface ICallerId {
|
|
40
|
+
fetchCallerDetails: (callerId: CallerIdInfo) => DisplayInformation;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/CallingClient/calling/CallerId/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,kBAAkB,EAAE,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACzB,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACrC,CAAC;AAGF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IAC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