@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,289 +1,289 @@
|
|
|
1
|
-
import type { ICall } from '../CallingClient/calling/types';
|
|
2
|
-
import { CallId, DisplayInformation } from '../common/types';
|
|
3
|
-
import { CallError, CallingClientError } from '../Errors';
|
|
4
|
-
export declare enum COMMON_EVENT_KEYS {
|
|
5
|
-
CB_VOICEMESSAGE_CONTENT_GET = "call_back_voicemail_content_get",
|
|
6
|
-
CALL_HISTORY_USER_SESSION_INFO = "callHistory:user_recent_sessions"
|
|
7
|
-
}
|
|
8
|
-
export declare enum LINE_EVENT_KEYS {
|
|
9
|
-
INCOMING_CALL = "incoming_call"
|
|
10
|
-
}
|
|
11
|
-
export declare enum CALLING_CLIENT_EVENT_KEYS {
|
|
12
|
-
ERROR = "callingClient:error",
|
|
13
|
-
OUTGOING_CALL = "callingClient:outgoing_call",
|
|
14
|
-
USER_SESSION_INFO = "callingClient:user_recent_sessions",
|
|
15
|
-
ALL_CALLS_CLEARED = "callingClient:all_calls_cleared"
|
|
16
|
-
}
|
|
17
|
-
export declare enum CALL_EVENT_KEYS {
|
|
18
|
-
ALERTING = "alerting",
|
|
19
|
-
CALL_ERROR = "call_error",
|
|
20
|
-
CALLER_ID = "caller_id",
|
|
21
|
-
CONNECT = "connect",
|
|
22
|
-
DISCONNECT = "disconnect",
|
|
23
|
-
ESTABLISHED = "established",
|
|
24
|
-
HELD = "held",
|
|
25
|
-
HOLD_ERROR = "hold_error",
|
|
26
|
-
PROGRESS = "progress",
|
|
27
|
-
REMOTE_MEDIA = "remote_media",
|
|
28
|
-
RESUME_ERROR = "resume_error",
|
|
29
|
-
RESUMED = "resumed",
|
|
30
|
-
TRANSFER_ERROR = "transfer_error"
|
|
31
|
-
}
|
|
32
|
-
export declare enum SUPPLEMENTARY_SERVICES {
|
|
33
|
-
HOLD = "hold",
|
|
34
|
-
RESUME = "resume",
|
|
35
|
-
DIVERT = "divert",
|
|
36
|
-
TRANSFER = "transfer",
|
|
37
|
-
PARK = "park"
|
|
38
|
-
}
|
|
39
|
-
export declare enum MOBIUS_MIDCALL_STATE {
|
|
40
|
-
HELD = "HELD",
|
|
41
|
-
CONNECTED = "CONNECTED"
|
|
42
|
-
}
|
|
43
|
-
export declare enum Disposition {
|
|
44
|
-
ANSWERED = "Answered",
|
|
45
|
-
CANCELED = "Canceled",
|
|
46
|
-
INITIATED = "Initiated",
|
|
47
|
-
MISSED = "MISSED"
|
|
48
|
-
}
|
|
49
|
-
export type CallRecordLink = {
|
|
50
|
-
locusUrl?: string;
|
|
51
|
-
conversationUrl?: string;
|
|
52
|
-
callbackAddress: string;
|
|
53
|
-
};
|
|
54
|
-
export type CallBackInfo = {
|
|
55
|
-
callbackAddress: string;
|
|
56
|
-
callbackType: string;
|
|
57
|
-
};
|
|
58
|
-
export type LookUpInfo = {
|
|
59
|
-
lookupLink: string;
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
export type CallRecordSelf = {
|
|
63
|
-
id: string;
|
|
64
|
-
name?: string;
|
|
65
|
-
phoneNumber: string;
|
|
66
|
-
};
|
|
67
|
-
export type CallRecordListOther = {
|
|
68
|
-
ownerId?: string;
|
|
69
|
-
id: string;
|
|
70
|
-
name?: string;
|
|
71
|
-
sipUrl?: string;
|
|
72
|
-
primaryDisplayString?: string;
|
|
73
|
-
secondaryDisplayString?: string;
|
|
74
|
-
isPrivate: boolean;
|
|
75
|
-
callbackAddress: string;
|
|
76
|
-
phoneNumber: string;
|
|
77
|
-
contact?: string;
|
|
78
|
-
email?: string;
|
|
79
|
-
};
|
|
80
|
-
export declare enum SessionType {
|
|
81
|
-
SPARK = "SPARK",
|
|
82
|
-
WEBEX_CALLING = "WEBEXCALLING"
|
|
83
|
-
}
|
|
84
|
-
export type UserSession = {
|
|
85
|
-
id: string;
|
|
86
|
-
sessionId: string;
|
|
87
|
-
disposition: Disposition;
|
|
88
|
-
startTime: string;
|
|
89
|
-
endTime: string;
|
|
90
|
-
url: string;
|
|
91
|
-
durationSeconds: number;
|
|
92
|
-
joinedDurationSeconds: number;
|
|
93
|
-
participantCount: number;
|
|
94
|
-
isDeleted: boolean;
|
|
95
|
-
isPMR: boolean;
|
|
96
|
-
correlationIds: string[];
|
|
97
|
-
links: CallRecordLink;
|
|
98
|
-
self: CallRecordSelf;
|
|
99
|
-
durationSecs: number;
|
|
100
|
-
other: CallRecordListOther;
|
|
101
|
-
sessionType: SessionType;
|
|
102
|
-
direction: string;
|
|
103
|
-
};
|
|
104
|
-
export type CallingParty = {
|
|
105
|
-
name?: string;
|
|
106
|
-
number?: string;
|
|
107
|
-
privacyEnabled?: boolean;
|
|
108
|
-
userId?: string;
|
|
109
|
-
address?: string;
|
|
110
|
-
};
|
|
111
|
-
export type Item = {
|
|
112
|
-
id?: string;
|
|
113
|
-
duration?: number;
|
|
114
|
-
callingParty?: CallingParty;
|
|
115
|
-
urgent?: boolean;
|
|
116
|
-
confidential?: boolean;
|
|
117
|
-
read?: boolean;
|
|
118
|
-
created?: string;
|
|
119
|
-
messageId?: string;
|
|
120
|
-
time?: number;
|
|
121
|
-
};
|
|
122
|
-
export declare enum MOBIUS_EVENT_KEYS {
|
|
123
|
-
SERVER_EVENT_INCLUSIVE = "event:mobius",
|
|
124
|
-
CALL_SESSION_EVENT_INCLUSIVE = "event:janus.user_recent_sessions"
|
|
125
|
-
}
|
|
126
|
-
export type CallSessionData = {
|
|
127
|
-
userSessions: {
|
|
128
|
-
userSessions: UserSession[];
|
|
129
|
-
statusCode: number;
|
|
130
|
-
};
|
|
131
|
-
eventType: MOBIUS_EVENT_KEYS.CALL_SESSION_EVENT_INCLUSIVE;
|
|
132
|
-
};
|
|
133
|
-
export type CallSessionEvent = {
|
|
134
|
-
id: string;
|
|
135
|
-
data: CallSessionData;
|
|
136
|
-
timestamp: number;
|
|
137
|
-
trackingId: string;
|
|
138
|
-
};
|
|
139
|
-
export declare enum MEDIA_CONNECTION_EVENT_KEYS {
|
|
140
|
-
ROAP_MESSAGE_TO_SEND = "roap:messageToSend",
|
|
141
|
-
MEDIA_TYPE_AUDIO = "audio"
|
|
142
|
-
}
|
|
143
|
-
export type CallerIdDisplay = {
|
|
144
|
-
correlationId: string;
|
|
145
|
-
callerId: DisplayInformation;
|
|
146
|
-
};
|
|
147
|
-
export type CallEventTypes = {
|
|
148
|
-
[CALL_EVENT_KEYS.ALERTING]: (callId: CallId) => void;
|
|
149
|
-
[CALL_EVENT_KEYS.CALL_ERROR]: (error: CallError) => void;
|
|
150
|
-
[CALL_EVENT_KEYS.CALLER_ID]: (display: CallerIdDisplay) => void;
|
|
151
|
-
[CALL_EVENT_KEYS.CONNECT]: (callId: CallId) => void;
|
|
152
|
-
[CALL_EVENT_KEYS.DISCONNECT]: (callId: CallId) => void;
|
|
153
|
-
[CALL_EVENT_KEYS.ESTABLISHED]: (callId: CallId) => void;
|
|
154
|
-
[CALL_EVENT_KEYS.HELD]: (callId: CallId) => void;
|
|
155
|
-
[CALL_EVENT_KEYS.HOLD_ERROR]: (error: CallError) => void;
|
|
156
|
-
[LINE_EVENT_KEYS.INCOMING_CALL]: (callObj: ICall) => void;
|
|
157
|
-
[CALL_EVENT_KEYS.PROGRESS]: (callId: CallId) => void;
|
|
158
|
-
[CALL_EVENT_KEYS.REMOTE_MEDIA]: (track: MediaStreamTrack) => void;
|
|
159
|
-
[CALL_EVENT_KEYS.RESUME_ERROR]: (error: CallError) => void;
|
|
160
|
-
[CALL_EVENT_KEYS.RESUMED]: (callId: CallId) => void;
|
|
161
|
-
[CALL_EVENT_KEYS.TRANSFER_ERROR]: (error: CallError) => void;
|
|
162
|
-
[CALLING_CLIENT_EVENT_KEYS.ALL_CALLS_CLEARED]: () => void;
|
|
163
|
-
};
|
|
164
|
-
export type MessageId = {
|
|
165
|
-
messageId: string;
|
|
166
|
-
};
|
|
167
|
-
export type VoicemailEventTypes = {
|
|
168
|
-
[COMMON_EVENT_KEYS.CB_VOICEMESSAGE_CONTENT_GET]: (messageId: MessageId) => void;
|
|
169
|
-
};
|
|
170
|
-
export type CallingClientEventTypes = {
|
|
171
|
-
[CALLING_CLIENT_EVENT_KEYS.ERROR]: (error: CallingClientError) => void;
|
|
172
|
-
[CALLING_CLIENT_EVENT_KEYS.USER_SESSION_INFO]: (event: CallSessionEvent) => void;
|
|
173
|
-
[CALLING_CLIENT_EVENT_KEYS.OUTGOING_CALL]: (callId: string) => void;
|
|
174
|
-
[CALLING_CLIENT_EVENT_KEYS.ALL_CALLS_CLEARED]: () => void;
|
|
175
|
-
};
|
|
176
|
-
export type CallHistoryEventTypes = {
|
|
177
|
-
[COMMON_EVENT_KEYS.CALL_HISTORY_USER_SESSION_INFO]: (event: CallSessionEvent) => void;
|
|
178
|
-
};
|
|
179
|
-
type eventType = string;
|
|
180
|
-
export type CallerIdInfo = {
|
|
181
|
-
'x-broadworks-remote-party-info'?: string;
|
|
182
|
-
'p-asserted-identity'?: string;
|
|
183
|
-
from?: string;
|
|
184
|
-
};
|
|
185
|
-
type callId = string;
|
|
186
|
-
type deviceId = string;
|
|
187
|
-
type correlationId = string;
|
|
188
|
-
type callUrl = string;
|
|
189
|
-
interface BaseMessage {
|
|
190
|
-
eventType: eventType;
|
|
191
|
-
correlationId: correlationId;
|
|
192
|
-
deviceId: deviceId;
|
|
193
|
-
callId: callId;
|
|
194
|
-
callUrl: callUrl;
|
|
195
|
-
}
|
|
196
|
-
export interface CallSetupMessage extends BaseMessage {
|
|
197
|
-
callerId: CallerIdInfo;
|
|
198
|
-
trackingId: string;
|
|
199
|
-
alertType: string;
|
|
200
|
-
}
|
|
201
|
-
export declare const WEBSOCKET_SCOPE = "mobius";
|
|
202
|
-
export declare enum WEBSOCKET_KEYS {
|
|
203
|
-
CALL_PROGRESS = "callprogress",
|
|
204
|
-
CALL_CONNECTED = "callconnected",
|
|
205
|
-
CALL_DISCONNECTED = "callconnected",
|
|
206
|
-
CALL_INFO = "callinfo",
|
|
207
|
-
CALL = "call",
|
|
208
|
-
ROAP = "ROAP"
|
|
209
|
-
}
|
|
210
|
-
export type CallEvent = {
|
|
211
|
-
type: 'E_RECV_CALL_SETUP';
|
|
212
|
-
data?: unknown;
|
|
213
|
-
} | {
|
|
214
|
-
type: 'E_RECV_CALL_PROGRESS';
|
|
215
|
-
data?: unknown;
|
|
216
|
-
} | {
|
|
217
|
-
type: 'E_RECV_CALL_CONNECT';
|
|
218
|
-
data?: unknown;
|
|
219
|
-
} | {
|
|
220
|
-
type: 'E_RECV_CALL_DISCONNECT';
|
|
221
|
-
data?: unknown;
|
|
222
|
-
} | {
|
|
223
|
-
type: 'E_SEND_CALL_SETUP';
|
|
224
|
-
data?: unknown;
|
|
225
|
-
} | {
|
|
226
|
-
type: 'E_SEND_CALL_ALERTING';
|
|
227
|
-
data?: unknown;
|
|
228
|
-
} | {
|
|
229
|
-
type: 'E_SEND_CALL_CONNECT';
|
|
230
|
-
data?: unknown;
|
|
231
|
-
} | {
|
|
232
|
-
type: 'E_SEND_CALL_DISCONNECT';
|
|
233
|
-
data?: unknown;
|
|
234
|
-
} | {
|
|
235
|
-
type: 'E_CALL_ESTABLISHED';
|
|
236
|
-
data?: unknown;
|
|
237
|
-
} | {
|
|
238
|
-
type: 'E_CALL_INFO';
|
|
239
|
-
data?: unknown;
|
|
240
|
-
} | {
|
|
241
|
-
type: 'E_UNKNOWN';
|
|
242
|
-
data?: unknown;
|
|
243
|
-
} | {
|
|
244
|
-
type: 'E_CALL_CLEARED';
|
|
245
|
-
data?: unknown;
|
|
246
|
-
} | {
|
|
247
|
-
type: 'E_CALL_HOLD';
|
|
248
|
-
data?: unknown;
|
|
249
|
-
} | {
|
|
250
|
-
type: 'E_CALL_RESUME';
|
|
251
|
-
data?: unknown;
|
|
252
|
-
};
|
|
253
|
-
export type RoapEvent = {
|
|
254
|
-
type: 'E_SEND_ROAP_OFFER';
|
|
255
|
-
data?: unknown;
|
|
256
|
-
} | {
|
|
257
|
-
type: 'E_SEND_ROAP_ANSWER';
|
|
258
|
-
data?: unknown;
|
|
259
|
-
} | {
|
|
260
|
-
type: 'E_RECV_ROAP_OFFER';
|
|
261
|
-
data?: unknown;
|
|
262
|
-
} | {
|
|
263
|
-
type: 'E_RECV_ROAP_ANSWER';
|
|
264
|
-
data?: unknown;
|
|
265
|
-
} | {
|
|
266
|
-
type: 'E_ROAP_ERROR';
|
|
267
|
-
data?: unknown;
|
|
268
|
-
} | {
|
|
269
|
-
type: 'E_ROAP_OK';
|
|
270
|
-
data?: unknown;
|
|
271
|
-
} | {
|
|
272
|
-
type: 'E_RECV_ROAP_OFFER_REQUEST';
|
|
273
|
-
data?: unknown;
|
|
274
|
-
} | {
|
|
275
|
-
type: 'E_ROAP_TEARDOWN';
|
|
276
|
-
data?: unknown;
|
|
277
|
-
};
|
|
278
|
-
export interface RoapMessage {
|
|
279
|
-
seq: number;
|
|
280
|
-
messageType: 'OFFER' | 'ANSWER' | 'OK' | 'ERROR' | 'OFFER_REQUEST';
|
|
281
|
-
offererSessionId?: string;
|
|
282
|
-
answererSessionId?: string;
|
|
283
|
-
sdp?: string;
|
|
284
|
-
version?: string;
|
|
285
|
-
tieBreaker?: string;
|
|
286
|
-
errorType?: string;
|
|
287
|
-
}
|
|
288
|
-
export {};
|
|
1
|
+
import type { ICall } from '../CallingClient/calling/types';
|
|
2
|
+
import { CallId, DisplayInformation } from '../common/types';
|
|
3
|
+
import { CallError, CallingClientError } from '../Errors';
|
|
4
|
+
export declare enum COMMON_EVENT_KEYS {
|
|
5
|
+
CB_VOICEMESSAGE_CONTENT_GET = "call_back_voicemail_content_get",
|
|
6
|
+
CALL_HISTORY_USER_SESSION_INFO = "callHistory:user_recent_sessions"
|
|
7
|
+
}
|
|
8
|
+
export declare enum LINE_EVENT_KEYS {
|
|
9
|
+
INCOMING_CALL = "incoming_call"
|
|
10
|
+
}
|
|
11
|
+
export declare enum CALLING_CLIENT_EVENT_KEYS {
|
|
12
|
+
ERROR = "callingClient:error",
|
|
13
|
+
OUTGOING_CALL = "callingClient:outgoing_call",
|
|
14
|
+
USER_SESSION_INFO = "callingClient:user_recent_sessions",
|
|
15
|
+
ALL_CALLS_CLEARED = "callingClient:all_calls_cleared"
|
|
16
|
+
}
|
|
17
|
+
export declare enum CALL_EVENT_KEYS {
|
|
18
|
+
ALERTING = "alerting",
|
|
19
|
+
CALL_ERROR = "call_error",
|
|
20
|
+
CALLER_ID = "caller_id",
|
|
21
|
+
CONNECT = "connect",
|
|
22
|
+
DISCONNECT = "disconnect",
|
|
23
|
+
ESTABLISHED = "established",
|
|
24
|
+
HELD = "held",
|
|
25
|
+
HOLD_ERROR = "hold_error",
|
|
26
|
+
PROGRESS = "progress",
|
|
27
|
+
REMOTE_MEDIA = "remote_media",
|
|
28
|
+
RESUME_ERROR = "resume_error",
|
|
29
|
+
RESUMED = "resumed",
|
|
30
|
+
TRANSFER_ERROR = "transfer_error"
|
|
31
|
+
}
|
|
32
|
+
export declare enum SUPPLEMENTARY_SERVICES {
|
|
33
|
+
HOLD = "hold",
|
|
34
|
+
RESUME = "resume",
|
|
35
|
+
DIVERT = "divert",
|
|
36
|
+
TRANSFER = "transfer",
|
|
37
|
+
PARK = "park"
|
|
38
|
+
}
|
|
39
|
+
export declare enum MOBIUS_MIDCALL_STATE {
|
|
40
|
+
HELD = "HELD",
|
|
41
|
+
CONNECTED = "CONNECTED"
|
|
42
|
+
}
|
|
43
|
+
export declare enum Disposition {
|
|
44
|
+
ANSWERED = "Answered",
|
|
45
|
+
CANCELED = "Canceled",
|
|
46
|
+
INITIATED = "Initiated",
|
|
47
|
+
MISSED = "MISSED"
|
|
48
|
+
}
|
|
49
|
+
export type CallRecordLink = {
|
|
50
|
+
locusUrl?: string;
|
|
51
|
+
conversationUrl?: string;
|
|
52
|
+
callbackAddress: string;
|
|
53
|
+
};
|
|
54
|
+
export type CallBackInfo = {
|
|
55
|
+
callbackAddress: string;
|
|
56
|
+
callbackType: string;
|
|
57
|
+
};
|
|
58
|
+
export type LookUpInfo = {
|
|
59
|
+
lookupLink: string;
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
export type CallRecordSelf = {
|
|
63
|
+
id: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
phoneNumber: string;
|
|
66
|
+
};
|
|
67
|
+
export type CallRecordListOther = {
|
|
68
|
+
ownerId?: string;
|
|
69
|
+
id: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
sipUrl?: string;
|
|
72
|
+
primaryDisplayString?: string;
|
|
73
|
+
secondaryDisplayString?: string;
|
|
74
|
+
isPrivate: boolean;
|
|
75
|
+
callbackAddress: string;
|
|
76
|
+
phoneNumber: string;
|
|
77
|
+
contact?: string;
|
|
78
|
+
email?: string;
|
|
79
|
+
};
|
|
80
|
+
export declare enum SessionType {
|
|
81
|
+
SPARK = "SPARK",
|
|
82
|
+
WEBEX_CALLING = "WEBEXCALLING"
|
|
83
|
+
}
|
|
84
|
+
export type UserSession = {
|
|
85
|
+
id: string;
|
|
86
|
+
sessionId: string;
|
|
87
|
+
disposition: Disposition;
|
|
88
|
+
startTime: string;
|
|
89
|
+
endTime: string;
|
|
90
|
+
url: string;
|
|
91
|
+
durationSeconds: number;
|
|
92
|
+
joinedDurationSeconds: number;
|
|
93
|
+
participantCount: number;
|
|
94
|
+
isDeleted: boolean;
|
|
95
|
+
isPMR: boolean;
|
|
96
|
+
correlationIds: string[];
|
|
97
|
+
links: CallRecordLink;
|
|
98
|
+
self: CallRecordSelf;
|
|
99
|
+
durationSecs: number;
|
|
100
|
+
other: CallRecordListOther;
|
|
101
|
+
sessionType: SessionType;
|
|
102
|
+
direction: string;
|
|
103
|
+
};
|
|
104
|
+
export type CallingParty = {
|
|
105
|
+
name?: string;
|
|
106
|
+
number?: string;
|
|
107
|
+
privacyEnabled?: boolean;
|
|
108
|
+
userId?: string;
|
|
109
|
+
address?: string;
|
|
110
|
+
};
|
|
111
|
+
export type Item = {
|
|
112
|
+
id?: string;
|
|
113
|
+
duration?: number;
|
|
114
|
+
callingParty?: CallingParty;
|
|
115
|
+
urgent?: boolean;
|
|
116
|
+
confidential?: boolean;
|
|
117
|
+
read?: boolean;
|
|
118
|
+
created?: string;
|
|
119
|
+
messageId?: string;
|
|
120
|
+
time?: number;
|
|
121
|
+
};
|
|
122
|
+
export declare enum MOBIUS_EVENT_KEYS {
|
|
123
|
+
SERVER_EVENT_INCLUSIVE = "event:mobius",
|
|
124
|
+
CALL_SESSION_EVENT_INCLUSIVE = "event:janus.user_recent_sessions"
|
|
125
|
+
}
|
|
126
|
+
export type CallSessionData = {
|
|
127
|
+
userSessions: {
|
|
128
|
+
userSessions: UserSession[];
|
|
129
|
+
statusCode: number;
|
|
130
|
+
};
|
|
131
|
+
eventType: MOBIUS_EVENT_KEYS.CALL_SESSION_EVENT_INCLUSIVE;
|
|
132
|
+
};
|
|
133
|
+
export type CallSessionEvent = {
|
|
134
|
+
id: string;
|
|
135
|
+
data: CallSessionData;
|
|
136
|
+
timestamp: number;
|
|
137
|
+
trackingId: string;
|
|
138
|
+
};
|
|
139
|
+
export declare enum MEDIA_CONNECTION_EVENT_KEYS {
|
|
140
|
+
ROAP_MESSAGE_TO_SEND = "roap:messageToSend",
|
|
141
|
+
MEDIA_TYPE_AUDIO = "audio"
|
|
142
|
+
}
|
|
143
|
+
export type CallerIdDisplay = {
|
|
144
|
+
correlationId: string;
|
|
145
|
+
callerId: DisplayInformation;
|
|
146
|
+
};
|
|
147
|
+
export type CallEventTypes = {
|
|
148
|
+
[CALL_EVENT_KEYS.ALERTING]: (callId: CallId) => void;
|
|
149
|
+
[CALL_EVENT_KEYS.CALL_ERROR]: (error: CallError) => void;
|
|
150
|
+
[CALL_EVENT_KEYS.CALLER_ID]: (display: CallerIdDisplay) => void;
|
|
151
|
+
[CALL_EVENT_KEYS.CONNECT]: (callId: CallId) => void;
|
|
152
|
+
[CALL_EVENT_KEYS.DISCONNECT]: (callId: CallId) => void;
|
|
153
|
+
[CALL_EVENT_KEYS.ESTABLISHED]: (callId: CallId) => void;
|
|
154
|
+
[CALL_EVENT_KEYS.HELD]: (callId: CallId) => void;
|
|
155
|
+
[CALL_EVENT_KEYS.HOLD_ERROR]: (error: CallError) => void;
|
|
156
|
+
[LINE_EVENT_KEYS.INCOMING_CALL]: (callObj: ICall) => void;
|
|
157
|
+
[CALL_EVENT_KEYS.PROGRESS]: (callId: CallId) => void;
|
|
158
|
+
[CALL_EVENT_KEYS.REMOTE_MEDIA]: (track: MediaStreamTrack) => void;
|
|
159
|
+
[CALL_EVENT_KEYS.RESUME_ERROR]: (error: CallError) => void;
|
|
160
|
+
[CALL_EVENT_KEYS.RESUMED]: (callId: CallId) => void;
|
|
161
|
+
[CALL_EVENT_KEYS.TRANSFER_ERROR]: (error: CallError) => void;
|
|
162
|
+
[CALLING_CLIENT_EVENT_KEYS.ALL_CALLS_CLEARED]: () => void;
|
|
163
|
+
};
|
|
164
|
+
export type MessageId = {
|
|
165
|
+
messageId: string;
|
|
166
|
+
};
|
|
167
|
+
export type VoicemailEventTypes = {
|
|
168
|
+
[COMMON_EVENT_KEYS.CB_VOICEMESSAGE_CONTENT_GET]: (messageId: MessageId) => void;
|
|
169
|
+
};
|
|
170
|
+
export type CallingClientEventTypes = {
|
|
171
|
+
[CALLING_CLIENT_EVENT_KEYS.ERROR]: (error: CallingClientError) => void;
|
|
172
|
+
[CALLING_CLIENT_EVENT_KEYS.USER_SESSION_INFO]: (event: CallSessionEvent) => void;
|
|
173
|
+
[CALLING_CLIENT_EVENT_KEYS.OUTGOING_CALL]: (callId: string) => void;
|
|
174
|
+
[CALLING_CLIENT_EVENT_KEYS.ALL_CALLS_CLEARED]: () => void;
|
|
175
|
+
};
|
|
176
|
+
export type CallHistoryEventTypes = {
|
|
177
|
+
[COMMON_EVENT_KEYS.CALL_HISTORY_USER_SESSION_INFO]: (event: CallSessionEvent) => void;
|
|
178
|
+
};
|
|
179
|
+
type eventType = string;
|
|
180
|
+
export type CallerIdInfo = {
|
|
181
|
+
'x-broadworks-remote-party-info'?: string;
|
|
182
|
+
'p-asserted-identity'?: string;
|
|
183
|
+
from?: string;
|
|
184
|
+
};
|
|
185
|
+
type callId = string;
|
|
186
|
+
type deviceId = string;
|
|
187
|
+
type correlationId = string;
|
|
188
|
+
type callUrl = string;
|
|
189
|
+
interface BaseMessage {
|
|
190
|
+
eventType: eventType;
|
|
191
|
+
correlationId: correlationId;
|
|
192
|
+
deviceId: deviceId;
|
|
193
|
+
callId: callId;
|
|
194
|
+
callUrl: callUrl;
|
|
195
|
+
}
|
|
196
|
+
export interface CallSetupMessage extends BaseMessage {
|
|
197
|
+
callerId: CallerIdInfo;
|
|
198
|
+
trackingId: string;
|
|
199
|
+
alertType: string;
|
|
200
|
+
}
|
|
201
|
+
export declare const WEBSOCKET_SCOPE = "mobius";
|
|
202
|
+
export declare enum WEBSOCKET_KEYS {
|
|
203
|
+
CALL_PROGRESS = "callprogress",
|
|
204
|
+
CALL_CONNECTED = "callconnected",
|
|
205
|
+
CALL_DISCONNECTED = "callconnected",
|
|
206
|
+
CALL_INFO = "callinfo",
|
|
207
|
+
CALL = "call",
|
|
208
|
+
ROAP = "ROAP"
|
|
209
|
+
}
|
|
210
|
+
export type CallEvent = {
|
|
211
|
+
type: 'E_RECV_CALL_SETUP';
|
|
212
|
+
data?: unknown;
|
|
213
|
+
} | {
|
|
214
|
+
type: 'E_RECV_CALL_PROGRESS';
|
|
215
|
+
data?: unknown;
|
|
216
|
+
} | {
|
|
217
|
+
type: 'E_RECV_CALL_CONNECT';
|
|
218
|
+
data?: unknown;
|
|
219
|
+
} | {
|
|
220
|
+
type: 'E_RECV_CALL_DISCONNECT';
|
|
221
|
+
data?: unknown;
|
|
222
|
+
} | {
|
|
223
|
+
type: 'E_SEND_CALL_SETUP';
|
|
224
|
+
data?: unknown;
|
|
225
|
+
} | {
|
|
226
|
+
type: 'E_SEND_CALL_ALERTING';
|
|
227
|
+
data?: unknown;
|
|
228
|
+
} | {
|
|
229
|
+
type: 'E_SEND_CALL_CONNECT';
|
|
230
|
+
data?: unknown;
|
|
231
|
+
} | {
|
|
232
|
+
type: 'E_SEND_CALL_DISCONNECT';
|
|
233
|
+
data?: unknown;
|
|
234
|
+
} | {
|
|
235
|
+
type: 'E_CALL_ESTABLISHED';
|
|
236
|
+
data?: unknown;
|
|
237
|
+
} | {
|
|
238
|
+
type: 'E_CALL_INFO';
|
|
239
|
+
data?: unknown;
|
|
240
|
+
} | {
|
|
241
|
+
type: 'E_UNKNOWN';
|
|
242
|
+
data?: unknown;
|
|
243
|
+
} | {
|
|
244
|
+
type: 'E_CALL_CLEARED';
|
|
245
|
+
data?: unknown;
|
|
246
|
+
} | {
|
|
247
|
+
type: 'E_CALL_HOLD';
|
|
248
|
+
data?: unknown;
|
|
249
|
+
} | {
|
|
250
|
+
type: 'E_CALL_RESUME';
|
|
251
|
+
data?: unknown;
|
|
252
|
+
};
|
|
253
|
+
export type RoapEvent = {
|
|
254
|
+
type: 'E_SEND_ROAP_OFFER';
|
|
255
|
+
data?: unknown;
|
|
256
|
+
} | {
|
|
257
|
+
type: 'E_SEND_ROAP_ANSWER';
|
|
258
|
+
data?: unknown;
|
|
259
|
+
} | {
|
|
260
|
+
type: 'E_RECV_ROAP_OFFER';
|
|
261
|
+
data?: unknown;
|
|
262
|
+
} | {
|
|
263
|
+
type: 'E_RECV_ROAP_ANSWER';
|
|
264
|
+
data?: unknown;
|
|
265
|
+
} | {
|
|
266
|
+
type: 'E_ROAP_ERROR';
|
|
267
|
+
data?: unknown;
|
|
268
|
+
} | {
|
|
269
|
+
type: 'E_ROAP_OK';
|
|
270
|
+
data?: unknown;
|
|
271
|
+
} | {
|
|
272
|
+
type: 'E_RECV_ROAP_OFFER_REQUEST';
|
|
273
|
+
data?: unknown;
|
|
274
|
+
} | {
|
|
275
|
+
type: 'E_ROAP_TEARDOWN';
|
|
276
|
+
data?: unknown;
|
|
277
|
+
};
|
|
278
|
+
export interface RoapMessage {
|
|
279
|
+
seq: number;
|
|
280
|
+
messageType: 'OFFER' | 'ANSWER' | 'OK' | 'ERROR' | 'OFFER_REQUEST';
|
|
281
|
+
offererSessionId?: string;
|
|
282
|
+
answererSessionId?: string;
|
|
283
|
+
sdp?: string;
|
|
284
|
+
version?: string;
|
|
285
|
+
tieBreaker?: string;
|
|
286
|
+
errorType?: string;
|
|
287
|
+
}
|
|
288
|
+
export {};
|
|
289
289
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import ExtendedError from '../Errors/catalog/ExtendedError';
|
|
2
|
-
import { LogContext, LOGGER } from './types';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
log: (message: string, context: LogContext) => void;
|
|
5
|
-
error: (error: ExtendedError, context: LogContext) => void;
|
|
6
|
-
info: (message: string, context: LogContext) => void;
|
|
7
|
-
warn: (message: string, context: LogContext) => void;
|
|
8
|
-
trace: (message: string, context: LogContext) => void;
|
|
9
|
-
setLogger: (level: string, module: string) => void;
|
|
10
|
-
getLogLevel: () => LOGGER;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
1
|
+
import ExtendedError from '../Errors/catalog/ExtendedError';
|
|
2
|
+
import { LogContext, LOGGER } from './types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
log: (message: string, context: LogContext) => void;
|
|
5
|
+
error: (error: ExtendedError, context: LogContext) => void;
|
|
6
|
+
info: (message: string, context: LogContext) => void;
|
|
7
|
+
warn: (message: string, context: LogContext) => void;
|
|
8
|
+
trace: (message: string, context: LogContext) => void;
|
|
9
|
+
setLogger: (level: string, module: string) => void;
|
|
10
|
+
getLogLevel: () => LOGGER;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { IMetaContext } from '../common/types';
|
|
2
|
-
export interface LogContext extends IMetaContext {
|
|
3
|
-
}
|
|
4
|
-
export declare enum LOG_PREFIX {
|
|
5
|
-
MAIN = "CALLING_SDK",
|
|
6
|
-
FILE = "file",
|
|
7
|
-
METHOD = "method",
|
|
8
|
-
EVENT = "event",
|
|
9
|
-
MESSAGE = "message",
|
|
10
|
-
ERROR = "error"
|
|
11
|
-
}
|
|
12
|
-
export declare enum LOGGING_LEVEL {
|
|
13
|
-
error = 1,
|
|
14
|
-
warn = 2,
|
|
15
|
-
log = 3,
|
|
16
|
-
info = 4,
|
|
17
|
-
trace = 5
|
|
18
|
-
}
|
|
19
|
-
export declare enum LOGGER {
|
|
20
|
-
ERROR = "error",
|
|
21
|
-
WARN = "warn",
|
|
22
|
-
INFO = "info",
|
|
23
|
-
LOG = "log",
|
|
24
|
-
TRACE = "trace"
|
|
25
|
-
}
|
|
1
|
+
import { IMetaContext } from '../common/types';
|
|
2
|
+
export interface LogContext extends IMetaContext {
|
|
3
|
+
}
|
|
4
|
+
export declare enum LOG_PREFIX {
|
|
5
|
+
MAIN = "CALLING_SDK",
|
|
6
|
+
FILE = "file",
|
|
7
|
+
METHOD = "method",
|
|
8
|
+
EVENT = "event",
|
|
9
|
+
MESSAGE = "message",
|
|
10
|
+
ERROR = "error"
|
|
11
|
+
}
|
|
12
|
+
export declare enum LOGGING_LEVEL {
|
|
13
|
+
error = 1,
|
|
14
|
+
warn = 2,
|
|
15
|
+
log = 3,
|
|
16
|
+
info = 4,
|
|
17
|
+
trace = 5
|
|
18
|
+
}
|
|
19
|
+
export declare enum LOGGER {
|
|
20
|
+
ERROR = "error",
|
|
21
|
+
WARN = "warn",
|
|
22
|
+
INFO = "info",
|
|
23
|
+
LOG = "log",
|
|
24
|
+
TRACE = "trace"
|
|
25
|
+
}
|
|
26
26
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ServiceIndicator } from '../common/types';
|
|
2
|
-
import { WebexSDK } from '../SDKConnector/types';
|
|
3
|
-
import { IMetricManager } from './types';
|
|
4
|
-
export declare const getMetricManager: (webex: WebexSDK, indicator?: ServiceIndicator) => IMetricManager;
|
|
5
|
-
export default getMetricManager;
|
|
1
|
+
import { ServiceIndicator } from '../common/types';
|
|
2
|
+
import { WebexSDK } from '../SDKConnector/types';
|
|
3
|
+
import { IMetricManager } from './types';
|
|
4
|
+
export declare const getMetricManager: (webex: WebexSDK, indicator?: ServiceIndicator) => IMetricManager;
|
|
5
|
+
export default getMetricManager;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|