@webex/calling 3.0.0-next.2 → 3.0.0-next.4
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/CHANGELOG.md +1403 -0
- package/README.md +74 -74
- package/dist/module/CallHistory/CallHistory.js +81 -81
- package/dist/module/CallHistory/callHistoryFixtures.js +307 -307
- package/dist/module/CallHistory/constants.js +9 -9
- package/dist/module/CallHistory/types.js +1 -1
- package/dist/module/CallSettings/CallSettings.js +65 -65
- package/dist/module/CallSettings/UcmBackendConnector.js +100 -100
- package/dist/module/CallSettings/WxCallBackendConnector.js +287 -287
- package/dist/module/CallSettings/constants.js +11 -11
- package/dist/module/CallSettings/testFixtures.js +62 -62
- package/dist/module/CallSettings/types.js +1 -1
- package/dist/module/CallingClient/CallingClient.js +248 -248
- package/dist/module/CallingClient/callRecordFixtures.js +93 -93
- package/dist/module/CallingClient/calling/CallerId/index.js +169 -169
- package/dist/module/CallingClient/calling/CallerId/types.js +1 -1
- package/dist/module/CallingClient/calling/call.js +1658 -1658
- package/dist/module/CallingClient/calling/callManager.js +284 -284
- package/dist/module/CallingClient/calling/index.js +2 -2
- package/dist/module/CallingClient/calling/types.js +53 -53
- package/dist/module/CallingClient/callingClientFixtures.js +38 -38
- package/dist/module/CallingClient/constants.js +122 -122
- package/dist/module/CallingClient/line/index.js +158 -158
- package/dist/module/CallingClient/line/types.js +15 -15
- package/dist/module/CallingClient/registration/index.js +1 -1
- package/dist/module/CallingClient/registration/register.js +507 -507
- package/dist/module/CallingClient/registration/registerFixtures.js +28 -28
- package/dist/module/CallingClient/registration/types.js +1 -1
- package/dist/module/CallingClient/types.js +1 -1
- package/dist/module/Contacts/ContactsClient.js +484 -484
- package/dist/module/Contacts/constants.js +20 -20
- package/dist/module/Contacts/contactFixtures.js +284 -284
- package/dist/module/Contacts/types.js +10 -10
- package/dist/module/Errors/catalog/CallError.js +26 -26
- package/dist/module/Errors/catalog/CallingDeviceError.js +18 -18
- package/dist/module/Errors/catalog/ExtendedError.js +10 -10
- package/dist/module/Errors/catalog/LineError.js +24 -24
- package/dist/module/Errors/index.js +2 -2
- package/dist/module/Errors/types.js +48 -48
- package/dist/module/Events/impl/index.js +19 -19
- package/dist/module/Events/types.js +83 -83
- package/dist/module/Logger/index.js +114 -114
- package/dist/module/Logger/types.js +25 -25
- package/dist/module/Metrics/index.js +232 -232
- package/dist/module/Metrics/types.js +37 -37
- package/dist/module/SDKConnector/index.js +39 -39
- package/dist/module/SDKConnector/types.js +1 -1
- package/dist/module/SDKConnector/utils.js +12 -12
- package/dist/module/Voicemail/BroadworksBackendConnector.js +291 -291
- package/dist/module/Voicemail/UcmBackendConnector.js +279 -279
- package/dist/module/Voicemail/Voicemail.js +110 -110
- package/dist/module/Voicemail/WxCallBackendConnector.js +279 -279
- package/dist/module/Voicemail/constants.js +29 -29
- package/dist/module/Voicemail/types.js +1 -1
- package/dist/module/Voicemail/voicemailFixture.js +510 -510
- package/dist/module/api.js +6 -6
- package/dist/module/common/Utils.js +802 -802
- package/dist/module/common/constants.js +41 -41
- package/dist/module/common/index.js +1 -1
- package/dist/module/common/testUtil.js +938 -938
- package/dist/module/common/types.js +57 -57
- package/dist/module/index.js +8 -8
- package/dist/types/CallHistory/CallHistory.d.ts +17 -17
- package/dist/types/CallHistory/callHistoryFixtures.d.ts +94 -94
- package/dist/types/CallHistory/constants.d.ts +9 -9
- package/dist/types/CallHistory/types.d.ts +18 -18
- package/dist/types/CallSettings/CallSettings.d.ts +19 -19
- package/dist/types/CallSettings/UcmBackendConnector.d.ts +19 -19
- package/dist/types/CallSettings/WxCallBackendConnector.d.ts +21 -21
- package/dist/types/CallSettings/constants.d.ts +11 -11
- package/dist/types/CallSettings/testFixtures.d.ts +15 -15
- package/dist/types/CallSettings/types.d.ts +107 -107
- package/dist/types/CallingClient/CallingClient.d.ts +35 -35
- package/dist/types/CallingClient/callRecordFixtures.d.ts +3 -3
- package/dist/types/CallingClient/calling/CallerId/index.d.ts +17 -17
- package/dist/types/CallingClient/calling/CallerId/types.d.ts +41 -41
- package/dist/types/CallingClient/calling/call.d.ts +96 -96
- package/dist/types/CallingClient/calling/callManager.d.ts +25 -25
- package/dist/types/CallingClient/calling/index.d.ts +2 -2
- package/dist/types/CallingClient/calling/types.d.ts +206 -206
- package/dist/types/CallingClient/callingClientFixtures.d.ts +18 -18
- package/dist/types/CallingClient/constants.d.ts +122 -122
- package/dist/types/CallingClient/line/index.d.ts +43 -43
- package/dist/types/CallingClient/line/types.d.ts +55 -55
- package/dist/types/CallingClient/registration/index.d.ts +1 -1
- package/dist/types/CallingClient/registration/register.d.ts +64 -64
- package/dist/types/CallingClient/registration/registerFixtures.d.ts +28 -28
- package/dist/types/CallingClient/registration/types.d.ts +20 -20
- package/dist/types/CallingClient/types.d.ts +29 -29
- package/dist/types/Contacts/ContactsClient.d.ts +26 -26
- package/dist/types/Contacts/constants.d.ts +19 -19
- package/dist/types/Contacts/contactFixtures.d.ts +280 -280
- package/dist/types/Contacts/types.d.ts +72 -72
- package/dist/types/Errors/catalog/CallError.d.ts +11 -11
- package/dist/types/Errors/catalog/CallingDeviceError.d.ts +10 -10
- package/dist/types/Errors/catalog/ExtendedError.d.ts +6 -6
- package/dist/types/Errors/catalog/LineError.d.ts +10 -10
- package/dist/types/Errors/index.d.ts +2 -2
- package/dist/types/Errors/types.d.ts +60 -60
- package/dist/types/Events/impl/index.d.ts +8 -8
- package/dist/types/Events/types.d.ts +288 -288
- package/dist/types/Logger/index.d.ts +12 -12
- package/dist/types/Logger/types.d.ts +25 -25
- package/dist/types/Metrics/index.d.ts +5 -5
- package/dist/types/Metrics/types.d.ts +42 -42
- package/dist/types/SDKConnector/index.d.ts +12 -12
- package/dist/types/SDKConnector/types.d.ts +128 -128
- package/dist/types/SDKConnector/utils.d.ts +5 -5
- package/dist/types/Voicemail/BroadworksBackendConnector.d.ts +27 -27
- package/dist/types/Voicemail/UcmBackendConnector.d.ts +34 -34
- package/dist/types/Voicemail/Voicemail.d.ts +27 -27
- package/dist/types/Voicemail/WxCallBackendConnector.d.ts +23 -23
- package/dist/types/Voicemail/constants.d.ts +29 -29
- package/dist/types/Voicemail/types.d.ts +133 -133
- package/dist/types/Voicemail/voicemailFixture.d.ts +417 -417
- package/dist/types/api.d.ts +16 -16
- package/dist/types/common/Utils.d.ts +34 -34
- package/dist/types/common/constants.d.ts +41 -41
- package/dist/types/common/index.d.ts +1 -1
- package/dist/types/common/testUtil.d.ts +3611 -3611
- package/dist/types/common/types.d.ts +191 -191
- package/dist/types/index.d.ts +8 -8
- package/package.json +4 -4
- package/dist/CallHistory/CallHistory.js +0 -203
- package/dist/CallHistory/CallHistory.js.map +0 -1
- package/dist/CallHistory/CallHistory.test.js +0 -133
- package/dist/CallHistory/CallHistory.test.js.map +0 -1
- package/dist/CallHistory/callHistoryFixtures.js +0 -310
- package/dist/CallHistory/callHistoryFixtures.js.map +0 -1
- package/dist/CallHistory/constants.js +0 -26
- package/dist/CallHistory/constants.js.map +0 -1
- package/dist/CallHistory/types.js +0 -7
- package/dist/CallHistory/types.js.map +0 -1
- package/dist/CallSettings/CallSettings.js +0 -276
- package/dist/CallSettings/CallSettings.js.map +0 -1
- package/dist/CallSettings/CallSettings.test.js +0 -122
- package/dist/CallSettings/CallSettings.test.js.map +0 -1
- package/dist/CallSettings/UcmBackendConnector.js +0 -217
- package/dist/CallSettings/UcmBackendConnector.js.map +0 -1
- package/dist/CallSettings/UcmBackendConnector.test.js +0 -227
- package/dist/CallSettings/UcmBackendConnector.test.js.map +0 -1
- package/dist/CallSettings/WxCallBackendConnector.js +0 -541
- package/dist/CallSettings/WxCallBackendConnector.js.map +0 -1
- package/dist/CallSettings/WxCallBackendConnector.test.js +0 -802
- package/dist/CallSettings/WxCallBackendConnector.test.js.map +0 -1
- package/dist/CallSettings/constants.js +0 -30
- package/dist/CallSettings/constants.js.map +0 -1
- package/dist/CallSettings/testFixtures.js +0 -72
- package/dist/CallSettings/testFixtures.js.map +0 -1
- package/dist/CallSettings/types.js +0 -7
- package/dist/CallSettings/types.js.map +0 -1
- package/dist/CallingClient/CallingClient.js +0 -572
- package/dist/CallingClient/CallingClient.js.map +0 -1
- package/dist/CallingClient/CallingClient.test.js +0 -931
- package/dist/CallingClient/CallingClient.test.js.map +0 -1
- package/dist/CallingClient/callRecordFixtures.js +0 -103
- package/dist/CallingClient/callRecordFixtures.js.map +0 -1
- package/dist/CallingClient/calling/CallerId/index.js +0 -287
- package/dist/CallingClient/calling/CallerId/index.js.map +0 -1
- package/dist/CallingClient/calling/CallerId/index.test.js +0 -274
- package/dist/CallingClient/calling/CallerId/index.test.js.map +0 -1
- package/dist/CallingClient/calling/CallerId/types.js +0 -7
- package/dist/CallingClient/calling/CallerId/types.js.map +0 -1
- package/dist/CallingClient/calling/call.js +0 -2995
- package/dist/CallingClient/calling/call.js.map +0 -1
- package/dist/CallingClient/calling/call.test.js +0 -2614
- package/dist/CallingClient/calling/call.test.js.map +0 -1
- package/dist/CallingClient/calling/callManager.js +0 -443
- package/dist/CallingClient/calling/callManager.js.map +0 -1
- package/dist/CallingClient/calling/callManager.test.js +0 -683
- package/dist/CallingClient/calling/callManager.test.js.map +0 -1
- package/dist/CallingClient/calling/index.js +0 -30
- package/dist/CallingClient/calling/index.js.map +0 -1
- package/dist/CallingClient/calling/types.js +0 -71
- package/dist/CallingClient/calling/types.js.map +0 -1
- package/dist/CallingClient/callingClientFixtures.js +0 -53
- package/dist/CallingClient/callingClientFixtures.js.map +0 -1
- package/dist/CallingClient/constants.js +0 -226
- package/dist/CallingClient/constants.js.map +0 -1
- package/dist/CallingClient/line/index.js +0 -312
- package/dist/CallingClient/line/index.js.map +0 -1
- package/dist/CallingClient/line/line.test.js +0 -270
- package/dist/CallingClient/line/line.test.js.map +0 -1
- package/dist/CallingClient/line/types.js +0 -25
- package/dist/CallingClient/line/types.js.map +0 -1
- package/dist/CallingClient/registration/index.js +0 -19
- package/dist/CallingClient/registration/index.js.map +0 -1
- package/dist/CallingClient/registration/register.js +0 -1295
- package/dist/CallingClient/registration/register.js.map +0 -1
- package/dist/CallingClient/registration/register.test.js +0 -838
- package/dist/CallingClient/registration/register.test.js.map +0 -1
- package/dist/CallingClient/registration/registerFixtures.js +0 -41
- package/dist/CallingClient/registration/registerFixtures.js.map +0 -1
- package/dist/CallingClient/registration/types.js +0 -7
- package/dist/CallingClient/registration/types.js.map +0 -1
- package/dist/CallingClient/types.js +0 -7
- package/dist/CallingClient/types.js.map +0 -1
- package/dist/Contacts/ContactsClient.js +0 -1139
- package/dist/Contacts/ContactsClient.js.map +0 -1
- package/dist/Contacts/ContactsClient.test.js +0 -725
- package/dist/Contacts/ContactsClient.test.js.map +0 -1
- package/dist/Contacts/constants.js +0 -36
- package/dist/Contacts/constants.js.map +0 -1
- package/dist/Contacts/contactFixtures.js +0 -340
- package/dist/Contacts/contactFixtures.js.map +0 -1
- package/dist/Contacts/types.js +0 -20
- package/dist/Contacts/types.js.map +0 -1
- package/dist/Errors/catalog/CallError.js +0 -94
- package/dist/Errors/catalog/CallError.js.map +0 -1
- package/dist/Errors/catalog/CallingDeviceError.js +0 -88
- package/dist/Errors/catalog/CallingDeviceError.js.map +0 -1
- package/dist/Errors/catalog/ExtendedError.js +0 -45
- package/dist/Errors/catalog/ExtendedError.js.map +0 -1
- package/dist/Errors/catalog/LineError.js +0 -90
- package/dist/Errors/catalog/LineError.js.map +0 -1
- package/dist/Errors/index.js +0 -21
- package/dist/Errors/index.js.map +0 -1
- package/dist/Errors/types.js +0 -62
- package/dist/Errors/types.js.map +0 -1
- package/dist/Events/impl/index.js +0 -82
- package/dist/Events/impl/index.js.map +0 -1
- package/dist/Events/types.js +0 -111
- package/dist/Events/types.js.map +0 -1
- package/dist/Logger/index.js +0 -221
- package/dist/Logger/index.js.map +0 -1
- package/dist/Logger/index.test.js +0 -62
- package/dist/Logger/index.test.js.map +0 -1
- package/dist/Logger/types.js +0 -37
- package/dist/Logger/types.js.map +0 -1
- package/dist/Metrics/index.js +0 -329
- package/dist/Metrics/index.js.map +0 -1
- package/dist/Metrics/index.test.js +0 -291
- package/dist/Metrics/index.test.js.map +0 -1
- package/dist/Metrics/types.js +0 -50
- package/dist/Metrics/types.js.map +0 -1
- package/dist/SDKConnector/index.js +0 -105
- package/dist/SDKConnector/index.js.map +0 -1
- package/dist/SDKConnector/index.test.js +0 -9
- package/dist/SDKConnector/index.test.js.map +0 -1
- package/dist/SDKConnector/types.js +0 -7
- package/dist/SDKConnector/types.js.map +0 -1
- package/dist/SDKConnector/utils.js +0 -40
- package/dist/SDKConnector/utils.js.map +0 -1
- package/dist/SDKConnector/utils.test.js +0 -9
- package/dist/SDKConnector/utils.test.js.map +0 -1
- package/dist/Voicemail/BroadworksBackendConnector.js +0 -632
- package/dist/Voicemail/BroadworksBackendConnector.js.map +0 -1
- package/dist/Voicemail/BroadworksBackendConnector.test.js +0 -733
- package/dist/Voicemail/BroadworksBackendConnector.test.js.map +0 -1
- package/dist/Voicemail/UcmBackendConnector.js +0 -566
- package/dist/Voicemail/UcmBackendConnector.js.map +0 -1
- package/dist/Voicemail/UcmBackendConnector.test.js +0 -628
- package/dist/Voicemail/UcmBackendConnector.test.js.map +0 -1
- package/dist/Voicemail/Voicemail.js +0 -378
- package/dist/Voicemail/Voicemail.js.map +0 -1
- package/dist/Voicemail/Voicemail.test.js +0 -226
- package/dist/Voicemail/Voicemail.test.js.map +0 -1
- package/dist/Voicemail/WxCallBackendConnector.js +0 -540
- package/dist/Voicemail/WxCallBackendConnector.js.map +0 -1
- package/dist/Voicemail/WxCallBackendConnector.test.js +0 -942
- package/dist/Voicemail/WxCallBackendConnector.test.js.map +0 -1
- package/dist/Voicemail/constants.js +0 -66
- package/dist/Voicemail/constants.js.map +0 -1
- package/dist/Voicemail/types.js +0 -7
- package/dist/Voicemail/types.js.map +0 -1
- package/dist/Voicemail/voicemailFixture.js +0 -559
- package/dist/Voicemail/voicemailFixture.js.map +0 -1
- package/dist/api.js +0 -134
- package/dist/api.js.map +0 -1
- package/dist/common/Utils.js +0 -1264
- package/dist/common/Utils.js.map +0 -1
- package/dist/common/Utils.test.js +0 -1227
- package/dist/common/Utils.test.js.map +0 -1
- package/dist/common/constants.js +0 -90
- package/dist/common/constants.js.map +0 -1
- package/dist/common/index.js +0 -19
- package/dist/common/index.js.map +0 -1
- package/dist/common/testUtil.js +0 -968
- package/dist/common/testUtil.js.map +0 -1
- package/dist/common/types.js +0 -75
- package/dist/common/types.js.map +0 -1
- package/dist/index.js +0 -63
- package/dist/index.js.map +0 -1
|
@@ -1,108 +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
|
-
};
|
|
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
108
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,36 +1,36 @@
|
|
|
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 { ICallingClient, CallingClientConfig } from './types';
|
|
7
|
-
import { ICall } from './calling/types';
|
|
8
|
-
import { ILine } from './line/types';
|
|
9
|
-
export declare class CallingClient extends Eventing<CallingClientEventTypes> implements ICallingClient {
|
|
10
|
-
private sdkConnector;
|
|
11
|
-
private webex;
|
|
12
|
-
private mutex;
|
|
13
|
-
private callManager;
|
|
14
|
-
private metricManager;
|
|
15
|
-
private sdkConfig?;
|
|
16
|
-
private primaryMobiusUris;
|
|
17
|
-
private backupMobiusUris;
|
|
18
|
-
mediaEngine: typeof Media;
|
|
19
|
-
private lineDict;
|
|
20
|
-
constructor(webex: WebexSDK, config?: CallingClientConfig);
|
|
21
|
-
init(): Promise<void>;
|
|
22
|
-
private detectNetworkChange;
|
|
23
|
-
private getClientRegionInfo;
|
|
24
|
-
private getMobiusServers;
|
|
25
|
-
private registerCallsClearedListener;
|
|
26
|
-
private callsClearedHandler;
|
|
27
|
-
getLoggingLevel(): LOGGER;
|
|
28
|
-
getSDKConnector(): ISDKConnector;
|
|
29
|
-
private registerSessionsListener;
|
|
30
|
-
private createLine;
|
|
31
|
-
getLines(): Record<string, ILine>;
|
|
32
|
-
getActiveCalls(): Record<string, ICall[]>;
|
|
33
|
-
getConnectedCall(): ICall | undefined;
|
|
34
|
-
}
|
|
35
|
-
export declare const createClient: (webex: WebexSDK, config?: CallingClientConfig) => Promise<ICallingClient>;
|
|
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 { ICallingClient, CallingClientConfig } from './types';
|
|
7
|
+
import { ICall } from './calling/types';
|
|
8
|
+
import { ILine } from './line/types';
|
|
9
|
+
export declare class CallingClient extends Eventing<CallingClientEventTypes> implements ICallingClient {
|
|
10
|
+
private sdkConnector;
|
|
11
|
+
private webex;
|
|
12
|
+
private mutex;
|
|
13
|
+
private callManager;
|
|
14
|
+
private metricManager;
|
|
15
|
+
private sdkConfig?;
|
|
16
|
+
private primaryMobiusUris;
|
|
17
|
+
private backupMobiusUris;
|
|
18
|
+
mediaEngine: typeof Media;
|
|
19
|
+
private lineDict;
|
|
20
|
+
constructor(webex: WebexSDK, config?: CallingClientConfig);
|
|
21
|
+
init(): Promise<void>;
|
|
22
|
+
private detectNetworkChange;
|
|
23
|
+
private getClientRegionInfo;
|
|
24
|
+
private getMobiusServers;
|
|
25
|
+
private registerCallsClearedListener;
|
|
26
|
+
private callsClearedHandler;
|
|
27
|
+
getLoggingLevel(): LOGGER;
|
|
28
|
+
getSDKConnector(): ISDKConnector;
|
|
29
|
+
private registerSessionsListener;
|
|
30
|
+
private createLine;
|
|
31
|
+
getLines(): Record<string, ILine>;
|
|
32
|
+
getActiveCalls(): Record<string, ICall[]>;
|
|
33
|
+
getConnectedCall(): ICall | undefined;
|
|
34
|
+
}
|
|
35
|
+
export declare const createClient: (webex: WebexSDK, config?: CallingClientConfig) => Promise<ICallingClient>;
|
|
36
36
|
//# sourceMappingURL=CallingClient.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallSessionEvent } from '../Events/types';
|
|
2
|
-
export declare const MOCK_SESSION_EVENT: CallSessionEvent;
|
|
3
|
-
export declare const MOCK_MULTIPLE_SESSIONS_EVENT: CallSessionEvent;
|
|
1
|
+
import { CallSessionEvent } from '../Events/types';
|
|
2
|
+
export declare const MOCK_SESSION_EVENT: CallSessionEvent;
|
|
3
|
+
export declare const MOCK_MULTIPLE_SESSIONS_EVENT: CallSessionEvent;
|
|
4
4
|
//# sourceMappingURL=callRecordFixtures.d.ts.map
|
|
@@ -1,18 +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;
|
|
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
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,42 +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
|
-
}
|
|
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
42
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { LocalMicrophoneStream } from '@webex/internal-media-core';
|
|
2
|
-
import { CallDetails, CallDirection, CallId, CorrelationId, DisplayInformation, ServiceIndicator, WebexRequestPayload } from '../../common/types';
|
|
3
|
-
import { Eventing } from '../../Events/impl';
|
|
4
|
-
import { CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, SUPPLEMENTARY_SERVICES } from '../../Events/types';
|
|
5
|
-
import { WebexSDK } from '../../SDKConnector/types';
|
|
6
|
-
import { CallRtpStats, DeleteRecordCallBack, DisconnectReason, ICall, MidCallEvent, SSResponse, TransferType } from './types';
|
|
7
|
-
export declare class Call extends Eventing<CallEventTypes> implements ICall {
|
|
8
|
-
private sdkConnector;
|
|
9
|
-
private webex;
|
|
10
|
-
private destination;
|
|
11
|
-
private direction;
|
|
12
|
-
private callId;
|
|
13
|
-
private correlationId;
|
|
14
|
-
private deviceId;
|
|
15
|
-
lineId: string;
|
|
16
|
-
private disconnectReason;
|
|
17
|
-
private callStateMachine;
|
|
18
|
-
private mediaStateMachine;
|
|
19
|
-
private seq;
|
|
20
|
-
mediaConnection?: any;
|
|
21
|
-
private earlyMedia;
|
|
22
|
-
private connected;
|
|
23
|
-
private callerInfo;
|
|
24
|
-
private localRoapMessage;
|
|
25
|
-
private mobiusUrl;
|
|
26
|
-
private remoteRoapMessage;
|
|
27
|
-
private deleteCb;
|
|
28
|
-
private callerId;
|
|
29
|
-
private sessionTimer?;
|
|
30
|
-
private supplementaryServicesTimer?;
|
|
31
|
-
private muted;
|
|
32
|
-
private held;
|
|
33
|
-
private metricManager;
|
|
34
|
-
private broadworksCorrelationInfo?;
|
|
35
|
-
private serviceIndicator;
|
|
36
|
-
private mediaNegotiationCompleted;
|
|
37
|
-
private receivedRoapOKSeq;
|
|
38
|
-
isMuted(): boolean;
|
|
39
|
-
isConnected(): boolean;
|
|
40
|
-
isHeld(): boolean;
|
|
41
|
-
constructor(activeUrl: string, webex: WebexSDK, destination: CallDetails, direction: CallDirection, deviceId: string, lineId: string, deleteCb: DeleteRecordCallBack, indicator: ServiceIndicator);
|
|
42
|
-
private handleIncomingCallSetup;
|
|
43
|
-
private handleOutgoingCallSetup;
|
|
44
|
-
private handleCallHold;
|
|
45
|
-
private handleCallResume;
|
|
46
|
-
private handleIncomingCallProgress;
|
|
47
|
-
private handleIncomingRoapOfferRequest;
|
|
48
|
-
private handleOutgoingCallAlerting;
|
|
49
|
-
private handleIncomingCallConnect;
|
|
50
|
-
private handleOutgoingCallConnect;
|
|
51
|
-
private handleIncomingCallDisconnect;
|
|
52
|
-
private handleOutgoingCallDisconnect;
|
|
53
|
-
private handleCallEstablished;
|
|
54
|
-
private handleUnknownState;
|
|
55
|
-
private getEmitterCallback;
|
|
56
|
-
private handleRoapEstablished;
|
|
57
|
-
private handleRoapError;
|
|
58
|
-
private handleOutgoingRoapOffer;
|
|
59
|
-
private handleOutgoingRoapAnswer;
|
|
60
|
-
private handleIncomingRoapOffer;
|
|
61
|
-
private handleIncomingRoapAnswer;
|
|
62
|
-
private initMediaConnection;
|
|
63
|
-
getDirection: () => CallDirection;
|
|
64
|
-
getCallId: () => CallId;
|
|
65
|
-
getCorrelationId: () => CorrelationId;
|
|
66
|
-
sendCallStateMachineEvt(event: CallEvent): void;
|
|
67
|
-
sendMediaStateMachineEvt(event: RoapEvent): void;
|
|
68
|
-
setCallId: (callId: CallId) => void;
|
|
69
|
-
private setDisconnectReason;
|
|
70
|
-
getDisconnectReason: () => DisconnectReason;
|
|
71
|
-
answer(localAudioStream: LocalMicrophoneStream): Promise<void>;
|
|
72
|
-
dial(localAudioStream: LocalMicrophoneStream): Promise<void>;
|
|
73
|
-
private post;
|
|
74
|
-
private patch;
|
|
75
|
-
postSSRequest(context: unknown, type: SUPPLEMENTARY_SERVICES): Promise<SSResponse>;
|
|
76
|
-
postStatus(): Promise<WebexRequestPayload>;
|
|
77
|
-
completeTransfer(transferType: TransferType, transferCallId?: CallId, transferTarget?: string): Promise<void>;
|
|
78
|
-
private getCallStats;
|
|
79
|
-
private postMedia;
|
|
80
|
-
private mediaRoapEventsListener;
|
|
81
|
-
private mediaTrackListener;
|
|
82
|
-
private outputTrackUpdateListener;
|
|
83
|
-
private delete;
|
|
84
|
-
private submitCallErrorMetric;
|
|
85
|
-
handleMidCallEvent(event: MidCallEvent): void;
|
|
86
|
-
getCallerInfo: () => DisplayInformation;
|
|
87
|
-
end: () => void;
|
|
88
|
-
doHoldResume: () => void;
|
|
89
|
-
startCallerIdResolution(callerInfo: CallerIdInfo): void;
|
|
90
|
-
sendDigit(tone: string): void;
|
|
91
|
-
mute: (localAudioStream: LocalMicrophoneStream) => void;
|
|
92
|
-
setBroadworksCorrelationInfo(broadworksCorrelationInfo: string): void;
|
|
93
|
-
getBroadworksCorrelationInfo(): string | undefined;
|
|
94
|
-
getCallRtpStats(): Promise<CallRtpStats>;
|
|
95
|
-
}
|
|
96
|
-
export declare const createCall: (activeUrl: string, webex: WebexSDK, dest: CallDetails, dir: CallDirection, deviceId: string, lineId: string, deleteCb: DeleteRecordCallBack, indicator: ServiceIndicator) => ICall;
|
|
1
|
+
import { LocalMicrophoneStream } from '@webex/internal-media-core';
|
|
2
|
+
import { CallDetails, CallDirection, CallId, CorrelationId, DisplayInformation, ServiceIndicator, WebexRequestPayload } from '../../common/types';
|
|
3
|
+
import { Eventing } from '../../Events/impl';
|
|
4
|
+
import { CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, SUPPLEMENTARY_SERVICES } from '../../Events/types';
|
|
5
|
+
import { WebexSDK } from '../../SDKConnector/types';
|
|
6
|
+
import { CallRtpStats, DeleteRecordCallBack, DisconnectReason, ICall, MidCallEvent, SSResponse, TransferType } from './types';
|
|
7
|
+
export declare class Call extends Eventing<CallEventTypes> implements ICall {
|
|
8
|
+
private sdkConnector;
|
|
9
|
+
private webex;
|
|
10
|
+
private destination;
|
|
11
|
+
private direction;
|
|
12
|
+
private callId;
|
|
13
|
+
private correlationId;
|
|
14
|
+
private deviceId;
|
|
15
|
+
lineId: string;
|
|
16
|
+
private disconnectReason;
|
|
17
|
+
private callStateMachine;
|
|
18
|
+
private mediaStateMachine;
|
|
19
|
+
private seq;
|
|
20
|
+
mediaConnection?: any;
|
|
21
|
+
private earlyMedia;
|
|
22
|
+
private connected;
|
|
23
|
+
private callerInfo;
|
|
24
|
+
private localRoapMessage;
|
|
25
|
+
private mobiusUrl;
|
|
26
|
+
private remoteRoapMessage;
|
|
27
|
+
private deleteCb;
|
|
28
|
+
private callerId;
|
|
29
|
+
private sessionTimer?;
|
|
30
|
+
private supplementaryServicesTimer?;
|
|
31
|
+
private muted;
|
|
32
|
+
private held;
|
|
33
|
+
private metricManager;
|
|
34
|
+
private broadworksCorrelationInfo?;
|
|
35
|
+
private serviceIndicator;
|
|
36
|
+
private mediaNegotiationCompleted;
|
|
37
|
+
private receivedRoapOKSeq;
|
|
38
|
+
isMuted(): boolean;
|
|
39
|
+
isConnected(): boolean;
|
|
40
|
+
isHeld(): boolean;
|
|
41
|
+
constructor(activeUrl: string, webex: WebexSDK, destination: CallDetails, direction: CallDirection, deviceId: string, lineId: string, deleteCb: DeleteRecordCallBack, indicator: ServiceIndicator);
|
|
42
|
+
private handleIncomingCallSetup;
|
|
43
|
+
private handleOutgoingCallSetup;
|
|
44
|
+
private handleCallHold;
|
|
45
|
+
private handleCallResume;
|
|
46
|
+
private handleIncomingCallProgress;
|
|
47
|
+
private handleIncomingRoapOfferRequest;
|
|
48
|
+
private handleOutgoingCallAlerting;
|
|
49
|
+
private handleIncomingCallConnect;
|
|
50
|
+
private handleOutgoingCallConnect;
|
|
51
|
+
private handleIncomingCallDisconnect;
|
|
52
|
+
private handleOutgoingCallDisconnect;
|
|
53
|
+
private handleCallEstablished;
|
|
54
|
+
private handleUnknownState;
|
|
55
|
+
private getEmitterCallback;
|
|
56
|
+
private handleRoapEstablished;
|
|
57
|
+
private handleRoapError;
|
|
58
|
+
private handleOutgoingRoapOffer;
|
|
59
|
+
private handleOutgoingRoapAnswer;
|
|
60
|
+
private handleIncomingRoapOffer;
|
|
61
|
+
private handleIncomingRoapAnswer;
|
|
62
|
+
private initMediaConnection;
|
|
63
|
+
getDirection: () => CallDirection;
|
|
64
|
+
getCallId: () => CallId;
|
|
65
|
+
getCorrelationId: () => CorrelationId;
|
|
66
|
+
sendCallStateMachineEvt(event: CallEvent): void;
|
|
67
|
+
sendMediaStateMachineEvt(event: RoapEvent): void;
|
|
68
|
+
setCallId: (callId: CallId) => void;
|
|
69
|
+
private setDisconnectReason;
|
|
70
|
+
getDisconnectReason: () => DisconnectReason;
|
|
71
|
+
answer(localAudioStream: LocalMicrophoneStream): Promise<void>;
|
|
72
|
+
dial(localAudioStream: LocalMicrophoneStream): Promise<void>;
|
|
73
|
+
private post;
|
|
74
|
+
private patch;
|
|
75
|
+
postSSRequest(context: unknown, type: SUPPLEMENTARY_SERVICES): Promise<SSResponse>;
|
|
76
|
+
postStatus(): Promise<WebexRequestPayload>;
|
|
77
|
+
completeTransfer(transferType: TransferType, transferCallId?: CallId, transferTarget?: string): Promise<void>;
|
|
78
|
+
private getCallStats;
|
|
79
|
+
private postMedia;
|
|
80
|
+
private mediaRoapEventsListener;
|
|
81
|
+
private mediaTrackListener;
|
|
82
|
+
private outputTrackUpdateListener;
|
|
83
|
+
private delete;
|
|
84
|
+
private submitCallErrorMetric;
|
|
85
|
+
handleMidCallEvent(event: MidCallEvent): void;
|
|
86
|
+
getCallerInfo: () => DisplayInformation;
|
|
87
|
+
end: () => void;
|
|
88
|
+
doHoldResume: () => void;
|
|
89
|
+
startCallerIdResolution(callerInfo: CallerIdInfo): void;
|
|
90
|
+
sendDigit(tone: string): void;
|
|
91
|
+
mute: (localAudioStream: LocalMicrophoneStream) => void;
|
|
92
|
+
setBroadworksCorrelationInfo(broadworksCorrelationInfo: string): void;
|
|
93
|
+
getBroadworksCorrelationInfo(): string | undefined;
|
|
94
|
+
getCallRtpStats(): Promise<CallRtpStats>;
|
|
95
|
+
}
|
|
96
|
+
export declare const createCall: (activeUrl: string, webex: WebexSDK, dest: CallDetails, dir: CallDirection, deviceId: string, lineId: string, deleteCb: DeleteRecordCallBack, indicator: ServiceIndicator) => ICall;
|
|
97
97
|
//# sourceMappingURL=call.d.ts.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { CallEventTypes } from '../../Events/types';
|
|
2
|
-
import { Eventing } from '../../Events/impl';
|
|
3
|
-
import { WebexSDK } from '../../SDKConnector/types';
|
|
4
|
-
import { CallDetails, CallDirection, CorrelationId, ServiceIndicator } from '../../common/types';
|
|
5
|
-
import { ICall, ICallManager } from './types';
|
|
6
|
-
import { ILine } from '../line/types';
|
|
7
|
-
export declare class CallManager extends Eventing<CallEventTypes> implements ICallManager {
|
|
8
|
-
private sdkConnector;
|
|
9
|
-
private webex;
|
|
10
|
-
private callCollection;
|
|
11
|
-
private activeMobiusUrl;
|
|
12
|
-
private serviceIndicator;
|
|
13
|
-
private lineDict;
|
|
14
|
-
constructor(webex: WebexSDK, indicator: ServiceIndicator);
|
|
15
|
-
createCall: (destination: CallDetails, direction: CallDirection, deviceId: string, lineId: string) => ICall;
|
|
16
|
-
updateActiveMobius(url: string): void;
|
|
17
|
-
private listenForWsEvents;
|
|
18
|
-
private dequeueWsEvents;
|
|
19
|
-
endCall: (correlationId: CorrelationId) => void;
|
|
20
|
-
getCall: (correlationId: CorrelationId) => ICall;
|
|
21
|
-
getActiveCalls: () => Record<string, ICall>;
|
|
22
|
-
updateLine(deviceId: string, line: ILine): void;
|
|
23
|
-
private getLineId;
|
|
24
|
-
}
|
|
25
|
-
export declare const getCallManager: (webex: WebexSDK, indicator: ServiceIndicator) => ICallManager;
|
|
1
|
+
import { CallEventTypes } from '../../Events/types';
|
|
2
|
+
import { Eventing } from '../../Events/impl';
|
|
3
|
+
import { WebexSDK } from '../../SDKConnector/types';
|
|
4
|
+
import { CallDetails, CallDirection, CorrelationId, ServiceIndicator } from '../../common/types';
|
|
5
|
+
import { ICall, ICallManager } from './types';
|
|
6
|
+
import { ILine } from '../line/types';
|
|
7
|
+
export declare class CallManager extends Eventing<CallEventTypes> implements ICallManager {
|
|
8
|
+
private sdkConnector;
|
|
9
|
+
private webex;
|
|
10
|
+
private callCollection;
|
|
11
|
+
private activeMobiusUrl;
|
|
12
|
+
private serviceIndicator;
|
|
13
|
+
private lineDict;
|
|
14
|
+
constructor(webex: WebexSDK, indicator: ServiceIndicator);
|
|
15
|
+
createCall: (destination: CallDetails, direction: CallDirection, deviceId: string, lineId: string) => ICall;
|
|
16
|
+
updateActiveMobius(url: string): void;
|
|
17
|
+
private listenForWsEvents;
|
|
18
|
+
private dequeueWsEvents;
|
|
19
|
+
endCall: (correlationId: CorrelationId) => void;
|
|
20
|
+
getCall: (correlationId: CorrelationId) => ICall;
|
|
21
|
+
getActiveCalls: () => Record<string, ICall>;
|
|
22
|
+
updateLine(deviceId: string, line: ILine): void;
|
|
23
|
+
private getLineId;
|
|
24
|
+
}
|
|
25
|
+
export declare const getCallManager: (webex: WebexSDK, indicator: ServiceIndicator) => ICallManager;
|
|
26
26
|
//# sourceMappingURL=callManager.d.ts.map
|