@webex/calling 3.0.0-next.4 → 3.0.0-next.5
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 -1403
- 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 +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './call';
|
|
2
|
-
export * from './callManager';
|
|
1
|
+
export * from './call';
|
|
2
|
+
export * from './callManager';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,207 +1,207 @@
|
|
|
1
|
-
import { LocalMicrophoneStream } from '@webex/internal-media-core';
|
|
2
|
-
import { CallError } from '../../Errors/catalog/CallError';
|
|
3
|
-
import { CallDetails, CallDirection, CallId, DisplayInformation } from '../../common/types';
|
|
4
|
-
import { Eventing } from '../../Events/impl';
|
|
5
|
-
import { CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, RoapMessage } from '../../Events/types';
|
|
6
|
-
import { ILine } from '../line/types';
|
|
7
|
-
export declare enum MobiusEventType {
|
|
8
|
-
CALL_SETUP = "mobius.call",
|
|
9
|
-
CALL_PROGRESS = "mobius.callprogress",
|
|
10
|
-
CALL_CONNECTED = "mobius.callconnected",
|
|
11
|
-
CALL_MEDIA = "mobius.media",
|
|
12
|
-
CALL_DISCONNECTED = "mobius.calldisconnected"
|
|
13
|
-
}
|
|
14
|
-
export declare enum MediaState {
|
|
15
|
-
OFFER = "OFFER",
|
|
16
|
-
ANSWER = "ANSWER",
|
|
17
|
-
OFFER_REQUEST = "OFFER_REQUEST",
|
|
18
|
-
OK = "OK",
|
|
19
|
-
ERROR = "ERROR"
|
|
20
|
-
}
|
|
21
|
-
export declare enum DisconnectCode {
|
|
22
|
-
BUSY = 115,
|
|
23
|
-
NORMAL = 0,
|
|
24
|
-
MEDIA_INACTIVITY = 131
|
|
25
|
-
}
|
|
26
|
-
export declare enum DisconnectCause {
|
|
27
|
-
BUSY = "User Busy.",
|
|
28
|
-
NORMAL = "Normal Disconnect.",
|
|
29
|
-
MEDIA_INACTIVITY = "Media Inactivity."
|
|
30
|
-
}
|
|
31
|
-
export declare enum MidCallEventType {
|
|
32
|
-
CALL_INFO = "callInfo",
|
|
33
|
-
CALL_STATE = "callState"
|
|
34
|
-
}
|
|
35
|
-
export type MidCallCallerId = {
|
|
36
|
-
callerId: CallerIdInfo;
|
|
37
|
-
};
|
|
38
|
-
export type DisconnectReason = {
|
|
39
|
-
code: DisconnectCode;
|
|
40
|
-
cause: DisconnectCause;
|
|
41
|
-
};
|
|
42
|
-
export declare enum RoapScenario {
|
|
43
|
-
ANSWER = "ANSWER",
|
|
44
|
-
OK = "OK",
|
|
45
|
-
OFFER = "OFFER",
|
|
46
|
-
ERROR = "ERROR",
|
|
47
|
-
OFFER_RESPONSE = "OFFER_RESPONSE"
|
|
48
|
-
}
|
|
49
|
-
export declare enum MobiusCallState {
|
|
50
|
-
PROCEEDING = "sig_proceeding",
|
|
51
|
-
PROGRESS = "sig_progress",
|
|
52
|
-
ALERTING = "sig_alerting",
|
|
53
|
-
CONNECTED = "sig_connected"
|
|
54
|
-
}
|
|
55
|
-
export type MobiusCallResponse = {
|
|
56
|
-
statusCode: number;
|
|
57
|
-
body: {
|
|
58
|
-
device: {
|
|
59
|
-
deviceId: string;
|
|
60
|
-
correlationId: string;
|
|
61
|
-
};
|
|
62
|
-
callId: CallId;
|
|
63
|
-
callData?: {
|
|
64
|
-
callState: MobiusCallState;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
export type MidCallEvent = {
|
|
69
|
-
eventType: string;
|
|
70
|
-
eventData: unknown;
|
|
71
|
-
};
|
|
72
|
-
export type SupplementaryServiceState = {
|
|
73
|
-
callState: string;
|
|
74
|
-
};
|
|
75
|
-
export type MobiusCallData = {
|
|
76
|
-
callProgressData?: {
|
|
77
|
-
alerting: boolean;
|
|
78
|
-
inbandMedia: boolean;
|
|
79
|
-
};
|
|
80
|
-
message?: RoapMessage;
|
|
81
|
-
callerId: {
|
|
82
|
-
from: string;
|
|
83
|
-
};
|
|
84
|
-
midCallService?: Array<MidCallEvent>;
|
|
85
|
-
callId: CallId;
|
|
86
|
-
callUrl: string;
|
|
87
|
-
deviceId: string;
|
|
88
|
-
correlationId: string;
|
|
89
|
-
eventType: MobiusEventType;
|
|
90
|
-
broadworksCorrelationInfo?: string;
|
|
91
|
-
};
|
|
92
|
-
export type MobiusCallEvent = {
|
|
93
|
-
id: string;
|
|
94
|
-
data: MobiusCallData;
|
|
95
|
-
timestamp: number;
|
|
96
|
-
trackingId: string;
|
|
97
|
-
};
|
|
98
|
-
export type PatchResponse = {
|
|
99
|
-
statusCode: number;
|
|
100
|
-
body: {
|
|
101
|
-
device: {
|
|
102
|
-
deviceId: string;
|
|
103
|
-
correlationId: string;
|
|
104
|
-
};
|
|
105
|
-
callId: CallId;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
export type SSResponse = {
|
|
109
|
-
statusCode: number;
|
|
110
|
-
body: {
|
|
111
|
-
device: {
|
|
112
|
-
deviceId: string;
|
|
113
|
-
correlationId: string;
|
|
114
|
-
};
|
|
115
|
-
callId: CallId;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
export type DivertContext = {
|
|
119
|
-
destination: string;
|
|
120
|
-
toVoicemail: boolean;
|
|
121
|
-
};
|
|
122
|
-
export type TransferContext = {
|
|
123
|
-
transferorCallId: CallId;
|
|
124
|
-
destination?: string;
|
|
125
|
-
transferToCallId?: CallId;
|
|
126
|
-
};
|
|
127
|
-
export declare enum TransferType {
|
|
128
|
-
BLIND = "BLIND",
|
|
129
|
-
CONSULT = "CONSULT"
|
|
130
|
-
}
|
|
131
|
-
export type ParkContext = {
|
|
132
|
-
isGroupPark: boolean;
|
|
133
|
-
destination: string;
|
|
134
|
-
};
|
|
135
|
-
export type MediaContext = {
|
|
136
|
-
previousState: string;
|
|
137
|
-
};
|
|
138
|
-
export type VoiceQualityMetrics = {
|
|
139
|
-
VoRxCodec: string;
|
|
140
|
-
VoPktSizeMs: number;
|
|
141
|
-
maxJitter: number;
|
|
142
|
-
VoOneWayDelayMs: number;
|
|
143
|
-
networkType: string;
|
|
144
|
-
hwType: string;
|
|
145
|
-
};
|
|
146
|
-
export type TransmitterVqPayload = {
|
|
147
|
-
VoTxCodec: string;
|
|
148
|
-
rtpBitRate: number;
|
|
149
|
-
};
|
|
150
|
-
export type ReceiveStatistics = {
|
|
151
|
-
Dur: number;
|
|
152
|
-
Pkt: number;
|
|
153
|
-
Oct: number;
|
|
154
|
-
LatePkt: number;
|
|
155
|
-
LostPkt: number;
|
|
156
|
-
AvgJit: number;
|
|
157
|
-
VQMetrics: VoiceQualityMetrics;
|
|
158
|
-
};
|
|
159
|
-
export type TransmitStatistics = {
|
|
160
|
-
Dur: number;
|
|
161
|
-
Pkt: number;
|
|
162
|
-
Oct: number;
|
|
163
|
-
VQMetrics: TransmitterVqPayload;
|
|
164
|
-
};
|
|
165
|
-
export type CallRtpStats = {
|
|
166
|
-
'rtp-rxstat': ReceiveStatistics;
|
|
167
|
-
'rtp-txstat': TransmitStatistics;
|
|
168
|
-
};
|
|
169
|
-
export interface ICall extends Eventing<CallEventTypes> {
|
|
170
|
-
lineId: string;
|
|
171
|
-
getCallId: () => string;
|
|
172
|
-
getCorrelationId: () => string;
|
|
173
|
-
getDirection: () => CallDirection;
|
|
174
|
-
setCallId: (callId: CallId) => void;
|
|
175
|
-
sendCallStateMachineEvt: (event: CallEvent) => void;
|
|
176
|
-
sendMediaStateMachineEvt: (event: RoapEvent) => void;
|
|
177
|
-
getDisconnectReason: () => DisconnectReason;
|
|
178
|
-
end: () => void;
|
|
179
|
-
isMuted: () => boolean;
|
|
180
|
-
isConnected: () => boolean;
|
|
181
|
-
isHeld: () => boolean;
|
|
182
|
-
doHoldResume: () => void;
|
|
183
|
-
mute: (localAudioStream: LocalMicrophoneStream) => void;
|
|
184
|
-
getCallerInfo: () => DisplayInformation;
|
|
185
|
-
startCallerIdResolution: (callerInfo: CallerIdInfo) => void;
|
|
186
|
-
handleMidCallEvent: (event: MidCallEvent) => void;
|
|
187
|
-
dial: (localAudioStream: LocalMicrophoneStream) => void;
|
|
188
|
-
sendDigit: (tone: string) => void;
|
|
189
|
-
answer: (localAudioStream: LocalMicrophoneStream) => void;
|
|
190
|
-
completeTransfer: (transferType: TransferType, transferCallId?: CallId, transferTarget?: string) => void;
|
|
191
|
-
getBroadworksCorrelationInfo: () => string | undefined;
|
|
192
|
-
setBroadworksCorrelationInfo: (broadworksCorrelationInfo: string) => void;
|
|
193
|
-
getCallRtpStats: () => Promise<CallRtpStats>;
|
|
194
|
-
}
|
|
195
|
-
export type DeleteRecordCallBack = (callId: CallId) => void;
|
|
196
|
-
export type CallEmitterCallBack = (callerInfo: DisplayInformation) => void;
|
|
197
|
-
export type CallErrorEmitterCallBack = (error: CallError) => void;
|
|
198
|
-
export type RetryCallBack = (interval: number) => void;
|
|
199
|
-
export interface ICallManager extends Eventing<CallEventTypes> {
|
|
200
|
-
createCall: (destination: CallDetails, direction: CallDirection, deviceId: string, lineId: string) => ICall;
|
|
201
|
-
endCall: (callId: CallId) => void;
|
|
202
|
-
getCall: (callId: CallId) => ICall;
|
|
203
|
-
updateActiveMobius: (url: string) => void;
|
|
204
|
-
getActiveCalls: () => Record<string, ICall>;
|
|
205
|
-
updateLine: (deviceId: string, line: ILine) => void;
|
|
206
|
-
}
|
|
1
|
+
import { LocalMicrophoneStream } from '@webex/internal-media-core';
|
|
2
|
+
import { CallError } from '../../Errors/catalog/CallError';
|
|
3
|
+
import { CallDetails, CallDirection, CallId, DisplayInformation } from '../../common/types';
|
|
4
|
+
import { Eventing } from '../../Events/impl';
|
|
5
|
+
import { CallerIdInfo, CallEvent, CallEventTypes, RoapEvent, RoapMessage } from '../../Events/types';
|
|
6
|
+
import { ILine } from '../line/types';
|
|
7
|
+
export declare enum MobiusEventType {
|
|
8
|
+
CALL_SETUP = "mobius.call",
|
|
9
|
+
CALL_PROGRESS = "mobius.callprogress",
|
|
10
|
+
CALL_CONNECTED = "mobius.callconnected",
|
|
11
|
+
CALL_MEDIA = "mobius.media",
|
|
12
|
+
CALL_DISCONNECTED = "mobius.calldisconnected"
|
|
13
|
+
}
|
|
14
|
+
export declare enum MediaState {
|
|
15
|
+
OFFER = "OFFER",
|
|
16
|
+
ANSWER = "ANSWER",
|
|
17
|
+
OFFER_REQUEST = "OFFER_REQUEST",
|
|
18
|
+
OK = "OK",
|
|
19
|
+
ERROR = "ERROR"
|
|
20
|
+
}
|
|
21
|
+
export declare enum DisconnectCode {
|
|
22
|
+
BUSY = 115,
|
|
23
|
+
NORMAL = 0,
|
|
24
|
+
MEDIA_INACTIVITY = 131
|
|
25
|
+
}
|
|
26
|
+
export declare enum DisconnectCause {
|
|
27
|
+
BUSY = "User Busy.",
|
|
28
|
+
NORMAL = "Normal Disconnect.",
|
|
29
|
+
MEDIA_INACTIVITY = "Media Inactivity."
|
|
30
|
+
}
|
|
31
|
+
export declare enum MidCallEventType {
|
|
32
|
+
CALL_INFO = "callInfo",
|
|
33
|
+
CALL_STATE = "callState"
|
|
34
|
+
}
|
|
35
|
+
export type MidCallCallerId = {
|
|
36
|
+
callerId: CallerIdInfo;
|
|
37
|
+
};
|
|
38
|
+
export type DisconnectReason = {
|
|
39
|
+
code: DisconnectCode;
|
|
40
|
+
cause: DisconnectCause;
|
|
41
|
+
};
|
|
42
|
+
export declare enum RoapScenario {
|
|
43
|
+
ANSWER = "ANSWER",
|
|
44
|
+
OK = "OK",
|
|
45
|
+
OFFER = "OFFER",
|
|
46
|
+
ERROR = "ERROR",
|
|
47
|
+
OFFER_RESPONSE = "OFFER_RESPONSE"
|
|
48
|
+
}
|
|
49
|
+
export declare enum MobiusCallState {
|
|
50
|
+
PROCEEDING = "sig_proceeding",
|
|
51
|
+
PROGRESS = "sig_progress",
|
|
52
|
+
ALERTING = "sig_alerting",
|
|
53
|
+
CONNECTED = "sig_connected"
|
|
54
|
+
}
|
|
55
|
+
export type MobiusCallResponse = {
|
|
56
|
+
statusCode: number;
|
|
57
|
+
body: {
|
|
58
|
+
device: {
|
|
59
|
+
deviceId: string;
|
|
60
|
+
correlationId: string;
|
|
61
|
+
};
|
|
62
|
+
callId: CallId;
|
|
63
|
+
callData?: {
|
|
64
|
+
callState: MobiusCallState;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type MidCallEvent = {
|
|
69
|
+
eventType: string;
|
|
70
|
+
eventData: unknown;
|
|
71
|
+
};
|
|
72
|
+
export type SupplementaryServiceState = {
|
|
73
|
+
callState: string;
|
|
74
|
+
};
|
|
75
|
+
export type MobiusCallData = {
|
|
76
|
+
callProgressData?: {
|
|
77
|
+
alerting: boolean;
|
|
78
|
+
inbandMedia: boolean;
|
|
79
|
+
};
|
|
80
|
+
message?: RoapMessage;
|
|
81
|
+
callerId: {
|
|
82
|
+
from: string;
|
|
83
|
+
};
|
|
84
|
+
midCallService?: Array<MidCallEvent>;
|
|
85
|
+
callId: CallId;
|
|
86
|
+
callUrl: string;
|
|
87
|
+
deviceId: string;
|
|
88
|
+
correlationId: string;
|
|
89
|
+
eventType: MobiusEventType;
|
|
90
|
+
broadworksCorrelationInfo?: string;
|
|
91
|
+
};
|
|
92
|
+
export type MobiusCallEvent = {
|
|
93
|
+
id: string;
|
|
94
|
+
data: MobiusCallData;
|
|
95
|
+
timestamp: number;
|
|
96
|
+
trackingId: string;
|
|
97
|
+
};
|
|
98
|
+
export type PatchResponse = {
|
|
99
|
+
statusCode: number;
|
|
100
|
+
body: {
|
|
101
|
+
device: {
|
|
102
|
+
deviceId: string;
|
|
103
|
+
correlationId: string;
|
|
104
|
+
};
|
|
105
|
+
callId: CallId;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export type SSResponse = {
|
|
109
|
+
statusCode: number;
|
|
110
|
+
body: {
|
|
111
|
+
device: {
|
|
112
|
+
deviceId: string;
|
|
113
|
+
correlationId: string;
|
|
114
|
+
};
|
|
115
|
+
callId: CallId;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export type DivertContext = {
|
|
119
|
+
destination: string;
|
|
120
|
+
toVoicemail: boolean;
|
|
121
|
+
};
|
|
122
|
+
export type TransferContext = {
|
|
123
|
+
transferorCallId: CallId;
|
|
124
|
+
destination?: string;
|
|
125
|
+
transferToCallId?: CallId;
|
|
126
|
+
};
|
|
127
|
+
export declare enum TransferType {
|
|
128
|
+
BLIND = "BLIND",
|
|
129
|
+
CONSULT = "CONSULT"
|
|
130
|
+
}
|
|
131
|
+
export type ParkContext = {
|
|
132
|
+
isGroupPark: boolean;
|
|
133
|
+
destination: string;
|
|
134
|
+
};
|
|
135
|
+
export type MediaContext = {
|
|
136
|
+
previousState: string;
|
|
137
|
+
};
|
|
138
|
+
export type VoiceQualityMetrics = {
|
|
139
|
+
VoRxCodec: string;
|
|
140
|
+
VoPktSizeMs: number;
|
|
141
|
+
maxJitter: number;
|
|
142
|
+
VoOneWayDelayMs: number;
|
|
143
|
+
networkType: string;
|
|
144
|
+
hwType: string;
|
|
145
|
+
};
|
|
146
|
+
export type TransmitterVqPayload = {
|
|
147
|
+
VoTxCodec: string;
|
|
148
|
+
rtpBitRate: number;
|
|
149
|
+
};
|
|
150
|
+
export type ReceiveStatistics = {
|
|
151
|
+
Dur: number;
|
|
152
|
+
Pkt: number;
|
|
153
|
+
Oct: number;
|
|
154
|
+
LatePkt: number;
|
|
155
|
+
LostPkt: number;
|
|
156
|
+
AvgJit: number;
|
|
157
|
+
VQMetrics: VoiceQualityMetrics;
|
|
158
|
+
};
|
|
159
|
+
export type TransmitStatistics = {
|
|
160
|
+
Dur: number;
|
|
161
|
+
Pkt: number;
|
|
162
|
+
Oct: number;
|
|
163
|
+
VQMetrics: TransmitterVqPayload;
|
|
164
|
+
};
|
|
165
|
+
export type CallRtpStats = {
|
|
166
|
+
'rtp-rxstat': ReceiveStatistics;
|
|
167
|
+
'rtp-txstat': TransmitStatistics;
|
|
168
|
+
};
|
|
169
|
+
export interface ICall extends Eventing<CallEventTypes> {
|
|
170
|
+
lineId: string;
|
|
171
|
+
getCallId: () => string;
|
|
172
|
+
getCorrelationId: () => string;
|
|
173
|
+
getDirection: () => CallDirection;
|
|
174
|
+
setCallId: (callId: CallId) => void;
|
|
175
|
+
sendCallStateMachineEvt: (event: CallEvent) => void;
|
|
176
|
+
sendMediaStateMachineEvt: (event: RoapEvent) => void;
|
|
177
|
+
getDisconnectReason: () => DisconnectReason;
|
|
178
|
+
end: () => void;
|
|
179
|
+
isMuted: () => boolean;
|
|
180
|
+
isConnected: () => boolean;
|
|
181
|
+
isHeld: () => boolean;
|
|
182
|
+
doHoldResume: () => void;
|
|
183
|
+
mute: (localAudioStream: LocalMicrophoneStream) => void;
|
|
184
|
+
getCallerInfo: () => DisplayInformation;
|
|
185
|
+
startCallerIdResolution: (callerInfo: CallerIdInfo) => void;
|
|
186
|
+
handleMidCallEvent: (event: MidCallEvent) => void;
|
|
187
|
+
dial: (localAudioStream: LocalMicrophoneStream) => void;
|
|
188
|
+
sendDigit: (tone: string) => void;
|
|
189
|
+
answer: (localAudioStream: LocalMicrophoneStream) => void;
|
|
190
|
+
completeTransfer: (transferType: TransferType, transferCallId?: CallId, transferTarget?: string) => void;
|
|
191
|
+
getBroadworksCorrelationInfo: () => string | undefined;
|
|
192
|
+
setBroadworksCorrelationInfo: (broadworksCorrelationInfo: string) => void;
|
|
193
|
+
getCallRtpStats: () => Promise<CallRtpStats>;
|
|
194
|
+
}
|
|
195
|
+
export type DeleteRecordCallBack = (callId: CallId) => void;
|
|
196
|
+
export type CallEmitterCallBack = (callerInfo: DisplayInformation) => void;
|
|
197
|
+
export type CallErrorEmitterCallBack = (error: CallError) => void;
|
|
198
|
+
export type RetryCallBack = (interval: number) => void;
|
|
199
|
+
export interface ICallManager extends Eventing<CallEventTypes> {
|
|
200
|
+
createCall: (destination: CallDetails, direction: CallDirection, deviceId: string, lineId: string) => ICall;
|
|
201
|
+
endCall: (callId: CallId) => void;
|
|
202
|
+
getCall: (callId: CallId) => ICall;
|
|
203
|
+
updateActiveMobius: (url: string) => void;
|
|
204
|
+
getActiveCalls: () => Record<string, ICall>;
|
|
205
|
+
updateLine: (deviceId: string, line: ILine) => void;
|
|
206
|
+
}
|
|
207
207
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { WebexRequestPayload } from '../common/types';
|
|
2
|
-
declare const ipPayload: WebexRequestPayload;
|
|
3
|
-
declare const regionBody: {
|
|
4
|
-
attribution: string;
|
|
5
|
-
clientAddress: string;
|
|
6
|
-
clientRegion: string;
|
|
7
|
-
countryCode: string;
|
|
8
|
-
disclaimer: string;
|
|
9
|
-
regionCode: string;
|
|
10
|
-
timezone: string;
|
|
11
|
-
};
|
|
12
|
-
declare const regionPayload: WebexRequestPayload;
|
|
13
|
-
declare const primaryUrl: string;
|
|
14
|
-
declare const discoveryPayload: WebexRequestPayload;
|
|
15
|
-
declare const registrationPayload: WebexRequestPayload;
|
|
16
|
-
declare const uri: string;
|
|
17
|
-
declare const myIP: string;
|
|
18
|
-
export { ipPayload, regionBody, regionPayload, primaryUrl, discoveryPayload, registrationPayload, uri, myIP, };
|
|
1
|
+
import { WebexRequestPayload } from '../common/types';
|
|
2
|
+
declare const ipPayload: WebexRequestPayload;
|
|
3
|
+
declare const regionBody: {
|
|
4
|
+
attribution: string;
|
|
5
|
+
clientAddress: string;
|
|
6
|
+
clientRegion: string;
|
|
7
|
+
countryCode: string;
|
|
8
|
+
disclaimer: string;
|
|
9
|
+
regionCode: string;
|
|
10
|
+
timezone: string;
|
|
11
|
+
};
|
|
12
|
+
declare const regionPayload: WebexRequestPayload;
|
|
13
|
+
declare const primaryUrl: string;
|
|
14
|
+
declare const discoveryPayload: WebexRequestPayload;
|
|
15
|
+
declare const registrationPayload: WebexRequestPayload;
|
|
16
|
+
declare const uri: string;
|
|
17
|
+
declare const myIP: string;
|
|
18
|
+
export { ipPayload, regionBody, regionPayload, primaryUrl, discoveryPayload, registrationPayload, uri, myIP, };
|
|
19
19
|
//# sourceMappingURL=callingClientFixtures.d.ts.map
|