@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,123 +1,123 @@
|
|
|
1
|
-
export declare const VERSION = "1.71.1";
|
|
2
|
-
export declare const REPO_NAME = "web-calling-sdk";
|
|
3
|
-
export declare const CALLING_FEATURE = "web-calling";
|
|
4
|
-
export declare const CALLING_USER_AGENT: string;
|
|
5
|
-
export declare const CALL_ENDPOINT_RESOURCE = "call";
|
|
6
|
-
export declare const CALL_STATUS_RESOURCE = "status";
|
|
7
|
-
export declare const CALLS_ENDPOINT_RESOURCE = "calls";
|
|
8
|
-
export declare const CISCO_DEVICE_URL = "cisco-device-url";
|
|
9
|
-
export declare const CRLF = "\r\n";
|
|
10
|
-
export declare const DEFAULT_KEEPALIVE_INTERVAL = 30;
|
|
11
|
-
export declare const DEFAULT_LOCAL_CALL_ID = "DefaultLocalId";
|
|
12
|
-
export declare const DEFAULT_REHOMING_INTERVAL_MAX = 120;
|
|
13
|
-
export declare const DEFAULT_REHOMING_INTERVAL_MIN = 60;
|
|
14
|
-
export declare const DEFAULT_SESSION_TIMER: number;
|
|
15
|
-
export declare const DEVICES_ENDPOINT_RESOURCE = "devices";
|
|
16
|
-
export declare const DISCOVERY_URL = "https://ds.ciscospark.com/v1/region";
|
|
17
|
-
export declare const DUMMY_METRICS: {
|
|
18
|
-
'rtp-rxstat': {
|
|
19
|
-
Dur: number;
|
|
20
|
-
Pkt: number;
|
|
21
|
-
Oct: number;
|
|
22
|
-
LatePkt: number;
|
|
23
|
-
LostPkt: number;
|
|
24
|
-
AvgJit: number;
|
|
25
|
-
VQMetrics: {
|
|
26
|
-
VoRxCodec: string;
|
|
27
|
-
VoPktSizeMs: number;
|
|
28
|
-
maxJitter: number;
|
|
29
|
-
VoOneWayDelayMs: number;
|
|
30
|
-
networkType: string;
|
|
31
|
-
hwType: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
'rtp-txstat': {
|
|
35
|
-
Dur: number;
|
|
36
|
-
Pkt: number;
|
|
37
|
-
Oct: number;
|
|
38
|
-
VQMetrics: {
|
|
39
|
-
VoTxCodec: string;
|
|
40
|
-
rtpBitRate: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export declare const DUMMY_MOBIUS_URL = "https://mobius.aintgen-a-1.int.infra.webex.com/api/v1";
|
|
45
|
-
export declare const FETCH_NAME: RegExp;
|
|
46
|
-
export declare const IDENTITY_BROKER = "https://identitybts.webex.com/";
|
|
47
|
-
export declare const IP_ENDPOINT = "myip";
|
|
48
|
-
export declare const IDENTITY_ENDPOINT_RESOURCE = "identity";
|
|
49
|
-
export declare const INITIAL_SEQ_NUMBER = 1;
|
|
50
|
-
export declare const MEDIA_ENDPOINT_RESOURCE = "media";
|
|
51
|
-
export declare const NETWORK_FLAP_TIMEOUT = 2000;
|
|
52
|
-
export declare const CALL_HOLD_SERVICE = "callhold";
|
|
53
|
-
export declare const CALL_TRANSFER_SERVICE = "calltransfer";
|
|
54
|
-
export declare const HOLD_ENDPOINT = "hold";
|
|
55
|
-
export declare const TRANSFER_ENDPOINT = "commit";
|
|
56
|
-
export declare const RESUME_ENDPOINT = "resume";
|
|
57
|
-
export declare const SCIM_ENDPOINT_RESOURCE = "scim";
|
|
58
|
-
export declare const SCIM_USER_FILTER = "v1/Users?filter=";
|
|
59
|
-
export declare const SPARK_USER_AGENT = "spark-user-agent";
|
|
60
|
-
export declare const REGISTER_RETRY_TIMEOUT = 10000;
|
|
61
|
-
export declare const SUPPLEMENTARY_SERVICES_TIMEOUT = 10000;
|
|
62
|
-
export declare const URL_ENDPOINT = "/calling/web/";
|
|
63
|
-
export declare const VALID_PHONE: RegExp;
|
|
64
|
-
export declare const WEB_AGENT = "(web)";
|
|
65
|
-
export declare const WEBEX = "webex";
|
|
66
|
-
export declare const WEBEX_WEB_CLIENT = "webex-web-client";
|
|
67
|
-
export declare const CALLER_ID_FILE = "CallerId";
|
|
68
|
-
export declare const UTILS_FILE = "utils";
|
|
69
|
-
export declare const CALLING_CLIENT_FILE = "CallingClient";
|
|
70
|
-
export declare const LINE_FILE = "line";
|
|
71
|
-
export declare const CALL_FILE = "call";
|
|
72
|
-
export declare const CALL_MANAGER_FILE = "callManager";
|
|
73
|
-
export declare const METRIC_FILE = "metric";
|
|
74
|
-
export declare const REGISTRATION_FILE = "register";
|
|
75
|
-
export declare const CODEC_ID = "codecId";
|
|
76
|
-
export declare const MEDIA_ID = "id";
|
|
77
|
-
export declare const RTC_ICE_CANDIDATE_PAIR = "RTCIceCandidatePair_";
|
|
78
|
-
export declare const LOCAL_CANDIDATE_ID = "localCandidateId";
|
|
79
|
-
export declare const RTC_ICE_CANDIDATE = "RTCIceCandidate_";
|
|
80
|
-
export declare const NETWORK_TYPE = "networkType";
|
|
81
|
-
export declare const RTC_CODEC = "RTCCodec_";
|
|
82
|
-
export declare const INBOUND_CODEC_MATCH = "CIT01_";
|
|
83
|
-
export declare const OUTBOUND_CODEC_MATCH = "COT01_";
|
|
84
|
-
export declare const MIME_TYPE = "mimeType";
|
|
85
|
-
export declare const REMOTE_INBOUND_RTP = "remote-inbound-rtp";
|
|
86
|
-
export declare const TOTAL_ROUND_TRIP_TIME = "totalRoundTripTime";
|
|
87
|
-
export declare const ROUND_TRIP_TIME_MEASUREMENTS = "roundTripTimeMeasurements";
|
|
88
|
-
export declare const INBOUND_RTP = "inbound-rtp";
|
|
89
|
-
export declare const OUTBOUND_RTP = "outbound-rtp";
|
|
90
|
-
export declare const PACKETS_RECEIVED = "packetsReceived";
|
|
91
|
-
export declare const PACKETS_SENT = "packetsSent";
|
|
92
|
-
export declare const PACKETS_LOST = "packetsLost";
|
|
93
|
-
export declare const PACKETS_DISCARDED = "packetsDiscarded";
|
|
94
|
-
export declare const JITTER_BUFFER_DELAY = "jitterBufferDelay";
|
|
95
|
-
export declare const JITTER_BUFFER_EMITTED_COUNT = "jitterBufferEmittedCount";
|
|
96
|
-
export declare const TIMESTAMP = "timestamp";
|
|
97
|
-
export declare const TYPE = "type";
|
|
98
|
-
export declare const TRANSPORT = "transport";
|
|
99
|
-
export declare const TARGET_BIT_RATE = "targetBitrate";
|
|
100
|
-
export declare const MEDIA_SOURCE = "media-source";
|
|
101
|
-
export declare const BYTES_RECEIVED = "bytesReceived";
|
|
102
|
-
export declare const BYTES_SENT = "bytesSent";
|
|
103
|
-
export declare const SELECTED_CANDIDATE_PAIR_ID = "selectedCandidatePairId";
|
|
104
|
-
export declare const TOTAL_SAMPLES_DURATION = "totalSamplesDuration";
|
|
105
|
-
export declare const RTP_RX_STAT = "rtp-rxstat";
|
|
106
|
-
export declare const RTP_TX_STAT = "rtp-txstat";
|
|
107
|
-
export declare const BASE_REG_TIMER_MFACTOR = 2;
|
|
108
|
-
export declare const BASE_REG_RETRY_TIMER_VAL_IN_SEC = 30;
|
|
109
|
-
export declare const SEC_TO_MSEC_MFACTOR = 1000;
|
|
110
|
-
export declare const MINUTES_TO_SEC_MFACTOR = 60;
|
|
111
|
-
export declare const REG_RANDOM_T_FACTOR_UPPER_LIMIT = 10000;
|
|
112
|
-
export declare const REG_TRY_BACKUP_TIMER_VAL_IN_SEC = 1200;
|
|
113
|
-
export declare const REG_FAILBACK_429_MAX_RETRIES = 5;
|
|
114
|
-
export declare const REGISTER_UTIL = "registerDevice";
|
|
115
|
-
export declare const GET_MOBIUS_SERVERS_UTIL = "getMobiusServers";
|
|
116
|
-
export declare const KEEPALIVE_UTIL = "startKeepaliveTimer";
|
|
117
|
-
export declare const FAILBACK_UTIL = "executeFailback";
|
|
118
|
-
export declare const FAILBACK_429_RETRY_UTIL = "scheduleFailback429Retry";
|
|
119
|
-
export declare const FAILOVER_UTIL = "startFailoverTimer";
|
|
120
|
-
export declare const NETWORK_CHANGE_DETECTION_UTIL = "detectNetworkChange";
|
|
121
|
-
export declare const CALLS_CLEARED_HANDLER_UTIL = "callsClearedHandler";
|
|
122
|
-
export declare const RECONNECT_UTIL = "reconnectOnFailure";
|
|
1
|
+
export declare const VERSION = "1.71.1";
|
|
2
|
+
export declare const REPO_NAME = "web-calling-sdk";
|
|
3
|
+
export declare const CALLING_FEATURE = "web-calling";
|
|
4
|
+
export declare const CALLING_USER_AGENT: string;
|
|
5
|
+
export declare const CALL_ENDPOINT_RESOURCE = "call";
|
|
6
|
+
export declare const CALL_STATUS_RESOURCE = "status";
|
|
7
|
+
export declare const CALLS_ENDPOINT_RESOURCE = "calls";
|
|
8
|
+
export declare const CISCO_DEVICE_URL = "cisco-device-url";
|
|
9
|
+
export declare const CRLF = "\r\n";
|
|
10
|
+
export declare const DEFAULT_KEEPALIVE_INTERVAL = 30;
|
|
11
|
+
export declare const DEFAULT_LOCAL_CALL_ID = "DefaultLocalId";
|
|
12
|
+
export declare const DEFAULT_REHOMING_INTERVAL_MAX = 120;
|
|
13
|
+
export declare const DEFAULT_REHOMING_INTERVAL_MIN = 60;
|
|
14
|
+
export declare const DEFAULT_SESSION_TIMER: number;
|
|
15
|
+
export declare const DEVICES_ENDPOINT_RESOURCE = "devices";
|
|
16
|
+
export declare const DISCOVERY_URL = "https://ds.ciscospark.com/v1/region";
|
|
17
|
+
export declare const DUMMY_METRICS: {
|
|
18
|
+
'rtp-rxstat': {
|
|
19
|
+
Dur: number;
|
|
20
|
+
Pkt: number;
|
|
21
|
+
Oct: number;
|
|
22
|
+
LatePkt: number;
|
|
23
|
+
LostPkt: number;
|
|
24
|
+
AvgJit: number;
|
|
25
|
+
VQMetrics: {
|
|
26
|
+
VoRxCodec: string;
|
|
27
|
+
VoPktSizeMs: number;
|
|
28
|
+
maxJitter: number;
|
|
29
|
+
VoOneWayDelayMs: number;
|
|
30
|
+
networkType: string;
|
|
31
|
+
hwType: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
'rtp-txstat': {
|
|
35
|
+
Dur: number;
|
|
36
|
+
Pkt: number;
|
|
37
|
+
Oct: number;
|
|
38
|
+
VQMetrics: {
|
|
39
|
+
VoTxCodec: string;
|
|
40
|
+
rtpBitRate: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const DUMMY_MOBIUS_URL = "https://mobius.aintgen-a-1.int.infra.webex.com/api/v1";
|
|
45
|
+
export declare const FETCH_NAME: RegExp;
|
|
46
|
+
export declare const IDENTITY_BROKER = "https://identitybts.webex.com/";
|
|
47
|
+
export declare const IP_ENDPOINT = "myip";
|
|
48
|
+
export declare const IDENTITY_ENDPOINT_RESOURCE = "identity";
|
|
49
|
+
export declare const INITIAL_SEQ_NUMBER = 1;
|
|
50
|
+
export declare const MEDIA_ENDPOINT_RESOURCE = "media";
|
|
51
|
+
export declare const NETWORK_FLAP_TIMEOUT = 2000;
|
|
52
|
+
export declare const CALL_HOLD_SERVICE = "callhold";
|
|
53
|
+
export declare const CALL_TRANSFER_SERVICE = "calltransfer";
|
|
54
|
+
export declare const HOLD_ENDPOINT = "hold";
|
|
55
|
+
export declare const TRANSFER_ENDPOINT = "commit";
|
|
56
|
+
export declare const RESUME_ENDPOINT = "resume";
|
|
57
|
+
export declare const SCIM_ENDPOINT_RESOURCE = "scim";
|
|
58
|
+
export declare const SCIM_USER_FILTER = "v1/Users?filter=";
|
|
59
|
+
export declare const SPARK_USER_AGENT = "spark-user-agent";
|
|
60
|
+
export declare const REGISTER_RETRY_TIMEOUT = 10000;
|
|
61
|
+
export declare const SUPPLEMENTARY_SERVICES_TIMEOUT = 10000;
|
|
62
|
+
export declare const URL_ENDPOINT = "/calling/web/";
|
|
63
|
+
export declare const VALID_PHONE: RegExp;
|
|
64
|
+
export declare const WEB_AGENT = "(web)";
|
|
65
|
+
export declare const WEBEX = "webex";
|
|
66
|
+
export declare const WEBEX_WEB_CLIENT = "webex-web-client";
|
|
67
|
+
export declare const CALLER_ID_FILE = "CallerId";
|
|
68
|
+
export declare const UTILS_FILE = "utils";
|
|
69
|
+
export declare const CALLING_CLIENT_FILE = "CallingClient";
|
|
70
|
+
export declare const LINE_FILE = "line";
|
|
71
|
+
export declare const CALL_FILE = "call";
|
|
72
|
+
export declare const CALL_MANAGER_FILE = "callManager";
|
|
73
|
+
export declare const METRIC_FILE = "metric";
|
|
74
|
+
export declare const REGISTRATION_FILE = "register";
|
|
75
|
+
export declare const CODEC_ID = "codecId";
|
|
76
|
+
export declare const MEDIA_ID = "id";
|
|
77
|
+
export declare const RTC_ICE_CANDIDATE_PAIR = "RTCIceCandidatePair_";
|
|
78
|
+
export declare const LOCAL_CANDIDATE_ID = "localCandidateId";
|
|
79
|
+
export declare const RTC_ICE_CANDIDATE = "RTCIceCandidate_";
|
|
80
|
+
export declare const NETWORK_TYPE = "networkType";
|
|
81
|
+
export declare const RTC_CODEC = "RTCCodec_";
|
|
82
|
+
export declare const INBOUND_CODEC_MATCH = "CIT01_";
|
|
83
|
+
export declare const OUTBOUND_CODEC_MATCH = "COT01_";
|
|
84
|
+
export declare const MIME_TYPE = "mimeType";
|
|
85
|
+
export declare const REMOTE_INBOUND_RTP = "remote-inbound-rtp";
|
|
86
|
+
export declare const TOTAL_ROUND_TRIP_TIME = "totalRoundTripTime";
|
|
87
|
+
export declare const ROUND_TRIP_TIME_MEASUREMENTS = "roundTripTimeMeasurements";
|
|
88
|
+
export declare const INBOUND_RTP = "inbound-rtp";
|
|
89
|
+
export declare const OUTBOUND_RTP = "outbound-rtp";
|
|
90
|
+
export declare const PACKETS_RECEIVED = "packetsReceived";
|
|
91
|
+
export declare const PACKETS_SENT = "packetsSent";
|
|
92
|
+
export declare const PACKETS_LOST = "packetsLost";
|
|
93
|
+
export declare const PACKETS_DISCARDED = "packetsDiscarded";
|
|
94
|
+
export declare const JITTER_BUFFER_DELAY = "jitterBufferDelay";
|
|
95
|
+
export declare const JITTER_BUFFER_EMITTED_COUNT = "jitterBufferEmittedCount";
|
|
96
|
+
export declare const TIMESTAMP = "timestamp";
|
|
97
|
+
export declare const TYPE = "type";
|
|
98
|
+
export declare const TRANSPORT = "transport";
|
|
99
|
+
export declare const TARGET_BIT_RATE = "targetBitrate";
|
|
100
|
+
export declare const MEDIA_SOURCE = "media-source";
|
|
101
|
+
export declare const BYTES_RECEIVED = "bytesReceived";
|
|
102
|
+
export declare const BYTES_SENT = "bytesSent";
|
|
103
|
+
export declare const SELECTED_CANDIDATE_PAIR_ID = "selectedCandidatePairId";
|
|
104
|
+
export declare const TOTAL_SAMPLES_DURATION = "totalSamplesDuration";
|
|
105
|
+
export declare const RTP_RX_STAT = "rtp-rxstat";
|
|
106
|
+
export declare const RTP_TX_STAT = "rtp-txstat";
|
|
107
|
+
export declare const BASE_REG_TIMER_MFACTOR = 2;
|
|
108
|
+
export declare const BASE_REG_RETRY_TIMER_VAL_IN_SEC = 30;
|
|
109
|
+
export declare const SEC_TO_MSEC_MFACTOR = 1000;
|
|
110
|
+
export declare const MINUTES_TO_SEC_MFACTOR = 60;
|
|
111
|
+
export declare const REG_RANDOM_T_FACTOR_UPPER_LIMIT = 10000;
|
|
112
|
+
export declare const REG_TRY_BACKUP_TIMER_VAL_IN_SEC = 1200;
|
|
113
|
+
export declare const REG_FAILBACK_429_MAX_RETRIES = 5;
|
|
114
|
+
export declare const REGISTER_UTIL = "registerDevice";
|
|
115
|
+
export declare const GET_MOBIUS_SERVERS_UTIL = "getMobiusServers";
|
|
116
|
+
export declare const KEEPALIVE_UTIL = "startKeepaliveTimer";
|
|
117
|
+
export declare const FAILBACK_UTIL = "executeFailback";
|
|
118
|
+
export declare const FAILBACK_429_RETRY_UTIL = "scheduleFailback429Retry";
|
|
119
|
+
export declare const FAILOVER_UTIL = "startFailoverTimer";
|
|
120
|
+
export declare const NETWORK_CHANGE_DETECTION_UTIL = "detectNetworkChange";
|
|
121
|
+
export declare const CALLS_CLEARED_HANDLER_UTIL = "callsClearedHandler";
|
|
122
|
+
export declare const RECONNECT_UTIL = "reconnectOnFailure";
|
|
123
123
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { Mutex } from 'async-mutex';
|
|
2
|
-
import { CallDetails, CorrelationId, IDeviceInfo, MobiusDeviceId, MobiusStatus } from '../../common/types';
|
|
3
|
-
import { ILine, LINE_EVENTS, LineEventTypes, LineStatus } from './types';
|
|
4
|
-
import { IRegistration } from '../registration/types';
|
|
5
|
-
import { CallingClientConfig } from '../types';
|
|
6
|
-
import { Eventing } from '../../Events/impl';
|
|
7
|
-
import { LineError } from '../../Errors/catalog/LineError';
|
|
8
|
-
import { LOGGER } from '../../Logger/types';
|
|
9
|
-
import { ICall } from '../calling/types';
|
|
10
|
-
export default class Line extends Eventing<LineEventTypes> implements ILine {
|
|
11
|
-
#private;
|
|
12
|
-
registration: IRegistration;
|
|
13
|
-
userId: string;
|
|
14
|
-
clientDeviceUri: string;
|
|
15
|
-
lineId: string;
|
|
16
|
-
mobiusDeviceId?: string;
|
|
17
|
-
private mobiusUri?;
|
|
18
|
-
phoneNumber?: string;
|
|
19
|
-
extension?: string;
|
|
20
|
-
status: LineStatus;
|
|
21
|
-
sipAddresses?: string[];
|
|
22
|
-
voicemail?: string;
|
|
23
|
-
lastSeen?: string;
|
|
24
|
-
keepaliveInterval?: number;
|
|
25
|
-
callKeepaliveInterval?: number;
|
|
26
|
-
rehomingIntervalMin?: number;
|
|
27
|
-
rehomingIntervalMax?: number;
|
|
28
|
-
voicePortalNumber?: number;
|
|
29
|
-
voicePortalExtension?: number;
|
|
30
|
-
private callManager;
|
|
31
|
-
constructor(userId: string, clientDeviceUri: string, status: LineStatus, mutex: Mutex, primaryMobiusUris: string[], backupMobiusUris: string[], logLevel: LOGGER, serviceDataConfig?: CallingClientConfig['serviceData'], phoneNumber?: string, extension?: string, voicemail?: string);
|
|
32
|
-
register(): Promise<void>;
|
|
33
|
-
deregister(): Promise<void>;
|
|
34
|
-
private normalizeLine;
|
|
35
|
-
lineEmitter: (event: LINE_EVENTS, deviceInfo?: IDeviceInfo, lineError?: LineError) => void;
|
|
36
|
-
getLoggingLevel(): LOGGER;
|
|
37
|
-
getActiveMobiusUrl(): string;
|
|
38
|
-
getRegistrationStatus: () => MobiusStatus;
|
|
39
|
-
getDeviceId: () => MobiusDeviceId | undefined;
|
|
40
|
-
makeCall: (dest: CallDetails) => ICall | undefined;
|
|
41
|
-
private incomingCallListener;
|
|
42
|
-
getCall: (correlationId: CorrelationId) => ICall;
|
|
43
|
-
}
|
|
1
|
+
import { Mutex } from 'async-mutex';
|
|
2
|
+
import { CallDetails, CorrelationId, IDeviceInfo, MobiusDeviceId, MobiusStatus } from '../../common/types';
|
|
3
|
+
import { ILine, LINE_EVENTS, LineEventTypes, LineStatus } from './types';
|
|
4
|
+
import { IRegistration } from '../registration/types';
|
|
5
|
+
import { CallingClientConfig } from '../types';
|
|
6
|
+
import { Eventing } from '../../Events/impl';
|
|
7
|
+
import { LineError } from '../../Errors/catalog/LineError';
|
|
8
|
+
import { LOGGER } from '../../Logger/types';
|
|
9
|
+
import { ICall } from '../calling/types';
|
|
10
|
+
export default class Line extends Eventing<LineEventTypes> implements ILine {
|
|
11
|
+
#private;
|
|
12
|
+
registration: IRegistration;
|
|
13
|
+
userId: string;
|
|
14
|
+
clientDeviceUri: string;
|
|
15
|
+
lineId: string;
|
|
16
|
+
mobiusDeviceId?: string;
|
|
17
|
+
private mobiusUri?;
|
|
18
|
+
phoneNumber?: string;
|
|
19
|
+
extension?: string;
|
|
20
|
+
status: LineStatus;
|
|
21
|
+
sipAddresses?: string[];
|
|
22
|
+
voicemail?: string;
|
|
23
|
+
lastSeen?: string;
|
|
24
|
+
keepaliveInterval?: number;
|
|
25
|
+
callKeepaliveInterval?: number;
|
|
26
|
+
rehomingIntervalMin?: number;
|
|
27
|
+
rehomingIntervalMax?: number;
|
|
28
|
+
voicePortalNumber?: number;
|
|
29
|
+
voicePortalExtension?: number;
|
|
30
|
+
private callManager;
|
|
31
|
+
constructor(userId: string, clientDeviceUri: string, status: LineStatus, mutex: Mutex, primaryMobiusUris: string[], backupMobiusUris: string[], logLevel: LOGGER, serviceDataConfig?: CallingClientConfig['serviceData'], phoneNumber?: string, extension?: string, voicemail?: string);
|
|
32
|
+
register(): Promise<void>;
|
|
33
|
+
deregister(): Promise<void>;
|
|
34
|
+
private normalizeLine;
|
|
35
|
+
lineEmitter: (event: LINE_EVENTS, deviceInfo?: IDeviceInfo, lineError?: LineError) => void;
|
|
36
|
+
getLoggingLevel(): LOGGER;
|
|
37
|
+
getActiveMobiusUrl(): string;
|
|
38
|
+
getRegistrationStatus: () => MobiusStatus;
|
|
39
|
+
getDeviceId: () => MobiusDeviceId | undefined;
|
|
40
|
+
makeCall: (dest: CallDetails) => ICall | undefined;
|
|
41
|
+
private incomingCallListener;
|
|
42
|
+
getCall: (correlationId: CorrelationId) => ICall;
|
|
43
|
+
}
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { IRegistration } from '../registration/types';
|
|
2
|
-
import { LineError } from '../../Errors/catalog/LineError';
|
|
3
|
-
import { CallDetails, CorrelationId, IDeviceInfo, MobiusDeviceId, MobiusStatus } from '../../common/types';
|
|
4
|
-
import { ICall } from '../calling/types';
|
|
5
|
-
export declare enum LineStatus {
|
|
6
|
-
INACTIVE = "inactive",
|
|
7
|
-
ACTIVE = "active"
|
|
8
|
-
}
|
|
9
|
-
export declare enum LINE_EVENTS {
|
|
10
|
-
CONNECTING = "connecting",
|
|
11
|
-
ERROR = "error",
|
|
12
|
-
RECONNECTED = "reconnected",
|
|
13
|
-
RECONNECTING = "reconnecting",
|
|
14
|
-
REGISTERED = "registered",
|
|
15
|
-
UNREGISTERED = "unregistered",
|
|
16
|
-
INCOMING_CALL = "line:incoming_call"
|
|
17
|
-
}
|
|
18
|
-
export interface ILine {
|
|
19
|
-
userId: string;
|
|
20
|
-
clientDeviceUri: string;
|
|
21
|
-
lineId: string;
|
|
22
|
-
status: LineStatus;
|
|
23
|
-
mobiusDeviceId?: string;
|
|
24
|
-
phoneNumber?: string;
|
|
25
|
-
extension?: string;
|
|
26
|
-
sipAddresses?: string[];
|
|
27
|
-
voicemail?: string;
|
|
28
|
-
lastSeen?: string;
|
|
29
|
-
keepaliveInterval?: number;
|
|
30
|
-
callKeepaliveInterval?: number;
|
|
31
|
-
rehomingIntervalMin?: number;
|
|
32
|
-
rehomingIntervalMax?: number;
|
|
33
|
-
voicePortalNumber?: number;
|
|
34
|
-
voicePortalExtension?: number;
|
|
35
|
-
registration: IRegistration;
|
|
36
|
-
register: () => void;
|
|
37
|
-
deregister: () => void;
|
|
38
|
-
getActiveMobiusUrl: () => string;
|
|
39
|
-
getRegistrationStatus: () => MobiusStatus;
|
|
40
|
-
getDeviceId: () => MobiusDeviceId | undefined;
|
|
41
|
-
lineEmitter: (event: LINE_EVENTS, deviceInfo?: IDeviceInfo, lineError?: LineError) => void;
|
|
42
|
-
makeCall: (dest: CallDetails) => ICall | undefined;
|
|
43
|
-
getCall: (correlationId: CorrelationId) => ICall;
|
|
44
|
-
}
|
|
45
|
-
export type LineEventTypes = {
|
|
46
|
-
[LINE_EVENTS.CONNECTING]: () => void;
|
|
47
|
-
[LINE_EVENTS.ERROR]: (error: LineError) => void;
|
|
48
|
-
[LINE_EVENTS.RECONNECTED]: () => void;
|
|
49
|
-
[LINE_EVENTS.RECONNECTING]: () => void;
|
|
50
|
-
[LINE_EVENTS.REGISTERED]: (lineInfo: ILine) => void;
|
|
51
|
-
[LINE_EVENTS.UNREGISTERED]: () => void;
|
|
52
|
-
[LINE_EVENTS.INCOMING_CALL]: (callObj: ICall) => void;
|
|
53
|
-
};
|
|
54
|
-
export type LineEmitterCallback = (event: LINE_EVENTS, deviceInfo?: IDeviceInfo, clientError?: LineError) => void;
|
|
55
|
-
export type LineErrorEmitterCallback = (err: LineError, finalError?: boolean) => void;
|
|
1
|
+
import { IRegistration } from '../registration/types';
|
|
2
|
+
import { LineError } from '../../Errors/catalog/LineError';
|
|
3
|
+
import { CallDetails, CorrelationId, IDeviceInfo, MobiusDeviceId, MobiusStatus } from '../../common/types';
|
|
4
|
+
import { ICall } from '../calling/types';
|
|
5
|
+
export declare enum LineStatus {
|
|
6
|
+
INACTIVE = "inactive",
|
|
7
|
+
ACTIVE = "active"
|
|
8
|
+
}
|
|
9
|
+
export declare enum LINE_EVENTS {
|
|
10
|
+
CONNECTING = "connecting",
|
|
11
|
+
ERROR = "error",
|
|
12
|
+
RECONNECTED = "reconnected",
|
|
13
|
+
RECONNECTING = "reconnecting",
|
|
14
|
+
REGISTERED = "registered",
|
|
15
|
+
UNREGISTERED = "unregistered",
|
|
16
|
+
INCOMING_CALL = "line:incoming_call"
|
|
17
|
+
}
|
|
18
|
+
export interface ILine {
|
|
19
|
+
userId: string;
|
|
20
|
+
clientDeviceUri: string;
|
|
21
|
+
lineId: string;
|
|
22
|
+
status: LineStatus;
|
|
23
|
+
mobiusDeviceId?: string;
|
|
24
|
+
phoneNumber?: string;
|
|
25
|
+
extension?: string;
|
|
26
|
+
sipAddresses?: string[];
|
|
27
|
+
voicemail?: string;
|
|
28
|
+
lastSeen?: string;
|
|
29
|
+
keepaliveInterval?: number;
|
|
30
|
+
callKeepaliveInterval?: number;
|
|
31
|
+
rehomingIntervalMin?: number;
|
|
32
|
+
rehomingIntervalMax?: number;
|
|
33
|
+
voicePortalNumber?: number;
|
|
34
|
+
voicePortalExtension?: number;
|
|
35
|
+
registration: IRegistration;
|
|
36
|
+
register: () => void;
|
|
37
|
+
deregister: () => void;
|
|
38
|
+
getActiveMobiusUrl: () => string;
|
|
39
|
+
getRegistrationStatus: () => MobiusStatus;
|
|
40
|
+
getDeviceId: () => MobiusDeviceId | undefined;
|
|
41
|
+
lineEmitter: (event: LINE_EVENTS, deviceInfo?: IDeviceInfo, lineError?: LineError) => void;
|
|
42
|
+
makeCall: (dest: CallDetails) => ICall | undefined;
|
|
43
|
+
getCall: (correlationId: CorrelationId) => ICall;
|
|
44
|
+
}
|
|
45
|
+
export type LineEventTypes = {
|
|
46
|
+
[LINE_EVENTS.CONNECTING]: () => void;
|
|
47
|
+
[LINE_EVENTS.ERROR]: (error: LineError) => void;
|
|
48
|
+
[LINE_EVENTS.RECONNECTED]: () => void;
|
|
49
|
+
[LINE_EVENTS.RECONNECTING]: () => void;
|
|
50
|
+
[LINE_EVENTS.REGISTERED]: (lineInfo: ILine) => void;
|
|
51
|
+
[LINE_EVENTS.UNREGISTERED]: () => void;
|
|
52
|
+
[LINE_EVENTS.INCOMING_CALL]: (callObj: ICall) => void;
|
|
53
|
+
};
|
|
54
|
+
export type LineEmitterCallback = (event: LINE_EVENTS, deviceInfo?: IDeviceInfo, clientError?: LineError) => void;
|
|
55
|
+
export type LineErrorEmitterCallback = (err: LineError, finalError?: boolean) => void;
|
|
56
56
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './register';
|
|
1
|
+
export * from './register';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { Mutex } from 'async-mutex';
|
|
2
|
-
import { LOGGER } from '../../Logger/types';
|
|
3
|
-
import { IRegistration } from './types';
|
|
4
|
-
import { IDeviceInfo, MobiusStatus, ServiceData } from '../../common/types';
|
|
5
|
-
import { WebexSDK } from '../../SDKConnector/types';
|
|
6
|
-
import { LineEmitterCallback } from '../line/types';
|
|
7
|
-
export declare class Registration implements IRegistration {
|
|
8
|
-
private sdkConnector;
|
|
9
|
-
private webex;
|
|
10
|
-
private userId;
|
|
11
|
-
private serviceData;
|
|
12
|
-
private failback429RetryAttempts;
|
|
13
|
-
private registrationStatus;
|
|
14
|
-
private failbackTimer?;
|
|
15
|
-
private activeMobiusUrl;
|
|
16
|
-
private keepaliveTimer;
|
|
17
|
-
private rehomingIntervalMin;
|
|
18
|
-
private rehomingIntervalMax;
|
|
19
|
-
private mutex;
|
|
20
|
-
private metricManager;
|
|
21
|
-
private lineEmitter;
|
|
22
|
-
private callManager;
|
|
23
|
-
private deviceInfo;
|
|
24
|
-
private primaryMobiusUris;
|
|
25
|
-
private backupMobiusUris;
|
|
26
|
-
private registerRetry;
|
|
27
|
-
private reconnectPending;
|
|
28
|
-
constructor(webex: WebexSDK, serviceData: ServiceData, mutex: Mutex, lineEmitter: LineEmitterCallback, logLevel: LOGGER);
|
|
29
|
-
getActiveMobiusUrl(): string;
|
|
30
|
-
setActiveMobiusUrl(url: string): void;
|
|
31
|
-
setMobiusServers(primaryMobiusUris: string[], backupMobiusUris: string[]): void;
|
|
32
|
-
private postKeepAlive;
|
|
33
|
-
private deleteRegistration;
|
|
34
|
-
private postRegistration;
|
|
35
|
-
private restorePreviousRegistration;
|
|
36
|
-
private scheduleFailback429Retry;
|
|
37
|
-
private getRegRetryInterval;
|
|
38
|
-
private startFailoverTimer;
|
|
39
|
-
private clearFailbackTimer;
|
|
40
|
-
private isFailbackRequired;
|
|
41
|
-
private getFailbackInterval;
|
|
42
|
-
private initiateFailback;
|
|
43
|
-
private startFailbackTimer;
|
|
44
|
-
private executeFailback;
|
|
45
|
-
private setIntervalValues;
|
|
46
|
-
getDeviceInfo(): IDeviceInfo;
|
|
47
|
-
isDeviceRegistered(): boolean;
|
|
48
|
-
getStatus(): MobiusStatus;
|
|
49
|
-
setStatus(value: MobiusStatus): void;
|
|
50
|
-
private restartRegistration;
|
|
51
|
-
handleConnectionRestoration(retry: boolean): Promise<boolean>;
|
|
52
|
-
private restoreRegistrationCallBack;
|
|
53
|
-
triggerRegistration(): Promise<void>;
|
|
54
|
-
private attemptRegistrationWithServers;
|
|
55
|
-
private startKeepaliveTimer;
|
|
56
|
-
clearKeepaliveTimer(): void;
|
|
57
|
-
isReconnectPending(): boolean;
|
|
58
|
-
deregister(): Promise<void>;
|
|
59
|
-
private isRegRetry;
|
|
60
|
-
private setRegRetry;
|
|
61
|
-
private getExistingDevice;
|
|
62
|
-
reconnectOnFailure(caller: string): Promise<void>;
|
|
63
|
-
}
|
|
64
|
-
export declare const createRegistration: (webex: WebexSDK, serviceData: ServiceData, mutex: Mutex, lineEmitter: LineEmitterCallback, logLevel: LOGGER) => IRegistration;
|
|
1
|
+
import { Mutex } from 'async-mutex';
|
|
2
|
+
import { LOGGER } from '../../Logger/types';
|
|
3
|
+
import { IRegistration } from './types';
|
|
4
|
+
import { IDeviceInfo, MobiusStatus, ServiceData } from '../../common/types';
|
|
5
|
+
import { WebexSDK } from '../../SDKConnector/types';
|
|
6
|
+
import { LineEmitterCallback } from '../line/types';
|
|
7
|
+
export declare class Registration implements IRegistration {
|
|
8
|
+
private sdkConnector;
|
|
9
|
+
private webex;
|
|
10
|
+
private userId;
|
|
11
|
+
private serviceData;
|
|
12
|
+
private failback429RetryAttempts;
|
|
13
|
+
private registrationStatus;
|
|
14
|
+
private failbackTimer?;
|
|
15
|
+
private activeMobiusUrl;
|
|
16
|
+
private keepaliveTimer;
|
|
17
|
+
private rehomingIntervalMin;
|
|
18
|
+
private rehomingIntervalMax;
|
|
19
|
+
private mutex;
|
|
20
|
+
private metricManager;
|
|
21
|
+
private lineEmitter;
|
|
22
|
+
private callManager;
|
|
23
|
+
private deviceInfo;
|
|
24
|
+
private primaryMobiusUris;
|
|
25
|
+
private backupMobiusUris;
|
|
26
|
+
private registerRetry;
|
|
27
|
+
private reconnectPending;
|
|
28
|
+
constructor(webex: WebexSDK, serviceData: ServiceData, mutex: Mutex, lineEmitter: LineEmitterCallback, logLevel: LOGGER);
|
|
29
|
+
getActiveMobiusUrl(): string;
|
|
30
|
+
setActiveMobiusUrl(url: string): void;
|
|
31
|
+
setMobiusServers(primaryMobiusUris: string[], backupMobiusUris: string[]): void;
|
|
32
|
+
private postKeepAlive;
|
|
33
|
+
private deleteRegistration;
|
|
34
|
+
private postRegistration;
|
|
35
|
+
private restorePreviousRegistration;
|
|
36
|
+
private scheduleFailback429Retry;
|
|
37
|
+
private getRegRetryInterval;
|
|
38
|
+
private startFailoverTimer;
|
|
39
|
+
private clearFailbackTimer;
|
|
40
|
+
private isFailbackRequired;
|
|
41
|
+
private getFailbackInterval;
|
|
42
|
+
private initiateFailback;
|
|
43
|
+
private startFailbackTimer;
|
|
44
|
+
private executeFailback;
|
|
45
|
+
private setIntervalValues;
|
|
46
|
+
getDeviceInfo(): IDeviceInfo;
|
|
47
|
+
isDeviceRegistered(): boolean;
|
|
48
|
+
getStatus(): MobiusStatus;
|
|
49
|
+
setStatus(value: MobiusStatus): void;
|
|
50
|
+
private restartRegistration;
|
|
51
|
+
handleConnectionRestoration(retry: boolean): Promise<boolean>;
|
|
52
|
+
private restoreRegistrationCallBack;
|
|
53
|
+
triggerRegistration(): Promise<void>;
|
|
54
|
+
private attemptRegistrationWithServers;
|
|
55
|
+
private startKeepaliveTimer;
|
|
56
|
+
clearKeepaliveTimer(): void;
|
|
57
|
+
isReconnectPending(): boolean;
|
|
58
|
+
deregister(): Promise<void>;
|
|
59
|
+
private isRegRetry;
|
|
60
|
+
private setRegRetry;
|
|
61
|
+
private getExistingDevice;
|
|
62
|
+
reconnectOnFailure(caller: string): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
export declare const createRegistration: (webex: WebexSDK, serviceData: ServiceData, mutex: Mutex, lineEmitter: LineEmitterCallback, logLevel: LOGGER) => IRegistration;
|
|
65
65
|
//# sourceMappingURL=register.d.ts.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export declare const DEVICE_ID = "9381a370-b26b-3c5b-8901-4e8dab405dcc";
|
|
2
|
-
export declare const CLIENT_DEVICE_URL = "https://clientDeviceUrl";
|
|
3
|
-
export declare const URL = "https://wdm-intb.ciscospark.com/wdm/api/v1/";
|
|
4
|
-
export declare const mockPostResponse: {
|
|
5
|
-
userId: string;
|
|
6
|
-
device: {
|
|
7
|
-
deviceId: string;
|
|
8
|
-
uri: string;
|
|
9
|
-
status: string;
|
|
10
|
-
lastSeen: string;
|
|
11
|
-
addresses: string[];
|
|
12
|
-
clientDeviceUri: string;
|
|
13
|
-
};
|
|
14
|
-
keepaliveInterval: number;
|
|
15
|
-
rehomingIntervalMin: number;
|
|
16
|
-
rehomingIntervalMax: number;
|
|
17
|
-
};
|
|
18
|
-
export declare const mockDeleteResponse: {
|
|
19
|
-
userId: string;
|
|
20
|
-
device: {
|
|
21
|
-
deviceId: string;
|
|
22
|
-
uri: string;
|
|
23
|
-
status: string;
|
|
24
|
-
lastSeen: string;
|
|
25
|
-
addresses: string[];
|
|
26
|
-
clientDeviceUri: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
export declare const DEVICE_ID = "9381a370-b26b-3c5b-8901-4e8dab405dcc";
|
|
2
|
+
export declare const CLIENT_DEVICE_URL = "https://clientDeviceUrl";
|
|
3
|
+
export declare const URL = "https://wdm-intb.ciscospark.com/wdm/api/v1/";
|
|
4
|
+
export declare const mockPostResponse: {
|
|
5
|
+
userId: string;
|
|
6
|
+
device: {
|
|
7
|
+
deviceId: string;
|
|
8
|
+
uri: string;
|
|
9
|
+
status: string;
|
|
10
|
+
lastSeen: string;
|
|
11
|
+
addresses: string[];
|
|
12
|
+
clientDeviceUri: string;
|
|
13
|
+
};
|
|
14
|
+
keepaliveInterval: number;
|
|
15
|
+
rehomingIntervalMin: number;
|
|
16
|
+
rehomingIntervalMax: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const mockDeleteResponse: {
|
|
19
|
+
userId: string;
|
|
20
|
+
device: {
|
|
21
|
+
deviceId: string;
|
|
22
|
+
uri: string;
|
|
23
|
+
status: string;
|
|
24
|
+
lastSeen: string;
|
|
25
|
+
addresses: string[];
|
|
26
|
+
clientDeviceUri: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
29
|
//# sourceMappingURL=registerFixtures.d.ts.map
|