@webex/calling 3.12.0-next.60 → 3.12.0-next.62
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/dist/CallRecording/CallRecording.js +158 -0
- package/dist/CallRecording/CallRecording.js.map +1 -0
- package/dist/CallRecording/CallRecording.test.js +257 -0
- package/dist/CallRecording/CallRecording.test.js.map +1 -0
- package/dist/CallRecording/WxcCallRecordingConnector.js +576 -0
- package/dist/CallRecording/WxcCallRecordingConnector.js.map +1 -0
- package/dist/CallRecording/WxcCallRecordingConnector.test.js +651 -0
- package/dist/CallRecording/WxcCallRecordingConnector.test.js.map +1 -0
- package/dist/CallRecording/callRecordingFixtures.js +235 -0
- package/dist/CallRecording/callRecordingFixtures.js.map +1 -0
- package/dist/CallRecording/constants.js +49 -0
- package/dist/CallRecording/constants.js.map +1 -0
- package/dist/CallRecording/types.js +136 -0
- package/dist/CallRecording/types.js.map +1 -0
- package/dist/CallRecording/utils.js +42 -0
- package/dist/CallRecording/utils.js.map +1 -0
- package/dist/CallRecording/utils.test.js +97 -0
- package/dist/CallRecording/utils.test.js.map +1 -0
- package/dist/Events/types.js +28 -1
- package/dist/Events/types.js.map +1 -1
- package/dist/SDKConnector/types.js.map +1 -1
- package/dist/api.js +56 -0
- package/dist/api.js.map +1 -1
- package/dist/common/testUtil.js +2 -1
- package/dist/common/testUtil.js.map +1 -1
- package/dist/common/types.js +1 -0
- package/dist/common/types.js.map +1 -1
- package/dist/index.js +138 -45
- package/dist/index.js.map +1 -1
- package/dist/module/CallRecording/CallRecording.js +56 -0
- package/dist/module/CallRecording/WxcCallRecordingConnector.js +264 -0
- package/dist/module/CallRecording/callRecordingFixtures.js +201 -0
- package/dist/module/CallRecording/constants.js +27 -0
- package/dist/module/CallRecording/types.js +19 -0
- package/dist/module/CallRecording/utils.js +14 -0
- package/dist/module/Events/types.js +19 -0
- package/dist/module/api.js +3 -2
- package/dist/module/common/testUtil.js +1 -0
- package/dist/module/common/types.js +1 -0
- package/dist/module/index.js +4 -1
- package/dist/types/CallRecording/CallRecording.d.ts +18 -0
- package/dist/types/CallRecording/CallRecording.d.ts.map +1 -0
- package/dist/types/CallRecording/WxcCallRecordingConnector.d.ts +23 -0
- package/dist/types/CallRecording/WxcCallRecordingConnector.d.ts.map +1 -0
- package/dist/types/CallRecording/callRecordingFixtures.d.ts +61 -0
- package/dist/types/CallRecording/callRecordingFixtures.d.ts.map +1 -0
- package/dist/types/CallRecording/constants.d.ts +28 -0
- package/dist/types/CallRecording/constants.d.ts.map +1 -0
- package/dist/types/CallRecording/types.d.ts +176 -0
- package/dist/types/CallRecording/types.d.ts.map +1 -0
- package/dist/types/CallRecording/utils.d.ts +3 -0
- package/dist/types/CallRecording/utils.d.ts.map +1 -0
- package/dist/types/Events/types.d.ts +65 -2
- package/dist/types/Events/types.d.ts.map +1 -1
- package/dist/types/SDKConnector/types.d.ts +2 -0
- package/dist/types/SDKConnector/types.d.ts.map +1 -1
- package/dist/types/api.d.ts +6 -4
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/common/testUtil.d.ts +1 -0
- package/dist/types/common/testUtil.d.ts.map +1 -1
- package/dist/types/common/types.d.ts +2 -1
- package/dist/types/common/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -8,37 +8,37 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
8
8
|
_Object$defineProperty(exports, "CALLING_BACKEND", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _types0.CALLING_BACKEND;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
_Object$defineProperty(exports, "CALLING_CLIENT_EVENT_KEYS", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function get() {
|
|
17
|
-
return
|
|
17
|
+
return _types9.CALLING_CLIENT_EVENT_KEYS;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
_Object$defineProperty(exports, "CALL_EVENT_KEYS", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function get() {
|
|
23
|
-
return
|
|
23
|
+
return _types9.CALL_EVENT_KEYS;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
_Object$defineProperty(exports, "COMMON_EVENT_KEYS", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return
|
|
29
|
+
return _types9.COMMON_EVENT_KEYS;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
_Object$defineProperty(exports, "CallDetails", {
|
|
33
33
|
enumerable: true,
|
|
34
34
|
get: function get() {
|
|
35
|
-
return
|
|
35
|
+
return _types0.CallDetails;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
_Object$defineProperty(exports, "CallDirection", {
|
|
39
39
|
enumerable: true,
|
|
40
40
|
get: function get() {
|
|
41
|
-
return
|
|
41
|
+
return _types0.CallDirection;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
_Object$defineProperty(exports, "CallError", {
|
|
@@ -50,31 +50,31 @@ _Object$defineProperty(exports, "CallError", {
|
|
|
50
50
|
_Object$defineProperty(exports, "CallForwardAlwaysSetting", {
|
|
51
51
|
enumerable: true,
|
|
52
52
|
get: function get() {
|
|
53
|
-
return
|
|
53
|
+
return _types5.CallForwardAlwaysSetting;
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
_Object$defineProperty(exports, "CallForwardSetting", {
|
|
57
57
|
enumerable: true,
|
|
58
58
|
get: function get() {
|
|
59
|
-
return
|
|
59
|
+
return _types5.CallForwardSetting;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
_Object$defineProperty(exports, "CallSettingResponse", {
|
|
63
63
|
enumerable: true,
|
|
64
64
|
get: function get() {
|
|
65
|
-
return
|
|
65
|
+
return _types5.CallSettingResponse;
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
_Object$defineProperty(exports, "CallType", {
|
|
69
69
|
enumerable: true,
|
|
70
70
|
get: function get() {
|
|
71
|
-
return
|
|
71
|
+
return _types0.CallType;
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
_Object$defineProperty(exports, "CallerIdDisplay", {
|
|
75
75
|
enumerable: true,
|
|
76
76
|
get: function get() {
|
|
77
|
-
return
|
|
77
|
+
return _types9.CallerIdDisplay;
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
_Object$defineProperty(exports, "CallingClientConfig", {
|
|
@@ -86,25 +86,31 @@ _Object$defineProperty(exports, "CallingClientConfig", {
|
|
|
86
86
|
_Object$defineProperty(exports, "Contact", {
|
|
87
87
|
enumerable: true,
|
|
88
88
|
get: function get() {
|
|
89
|
-
return
|
|
89
|
+
return _types6.Contact;
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
_Object$defineProperty(exports, "ContactResponse", {
|
|
93
93
|
enumerable: true,
|
|
94
94
|
get: function get() {
|
|
95
|
-
return
|
|
95
|
+
return _types6.ContactResponse;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
_Object$defineProperty(exports, "DeleteRecordingOptions", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _types4.DeleteRecordingOptions;
|
|
96
102
|
}
|
|
97
103
|
});
|
|
98
104
|
_Object$defineProperty(exports, "DisplayInformation", {
|
|
99
105
|
enumerable: true,
|
|
100
106
|
get: function get() {
|
|
101
|
-
return
|
|
107
|
+
return _types0.DisplayInformation;
|
|
102
108
|
}
|
|
103
109
|
});
|
|
104
110
|
_Object$defineProperty(exports, "Disposition", {
|
|
105
111
|
enumerable: true,
|
|
106
112
|
get: function get() {
|
|
107
|
-
return
|
|
113
|
+
return _types9.Disposition;
|
|
108
114
|
}
|
|
109
115
|
});
|
|
110
116
|
_Object$defineProperty(exports, "ERROR_LAYER", {
|
|
@@ -119,16 +125,28 @@ _Object$defineProperty(exports, "ERROR_TYPE", {
|
|
|
119
125
|
return _types.ERROR_TYPE;
|
|
120
126
|
}
|
|
121
127
|
});
|
|
128
|
+
_Object$defineProperty(exports, "GetCallRecordingRequest", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function get() {
|
|
131
|
+
return _types4.GetCallRecordingRequest;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
_Object$defineProperty(exports, "GetRecordingsOptions", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function get() {
|
|
137
|
+
return _types4.GetRecordingsOptions;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
122
140
|
_Object$defineProperty(exports, "GroupType", {
|
|
123
141
|
enumerable: true,
|
|
124
142
|
get: function get() {
|
|
125
|
-
return
|
|
143
|
+
return _types6.GroupType;
|
|
126
144
|
}
|
|
127
145
|
});
|
|
128
146
|
_Object$defineProperty(exports, "ICall", {
|
|
129
147
|
enumerable: true,
|
|
130
148
|
get: function get() {
|
|
131
|
-
return
|
|
149
|
+
return _types10.ICall;
|
|
132
150
|
}
|
|
133
151
|
});
|
|
134
152
|
_Object$defineProperty(exports, "ICallHistory", {
|
|
@@ -137,10 +155,16 @@ _Object$defineProperty(exports, "ICallHistory", {
|
|
|
137
155
|
return _types3.ICallHistory;
|
|
138
156
|
}
|
|
139
157
|
});
|
|
158
|
+
_Object$defineProperty(exports, "ICallRecording", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function get() {
|
|
161
|
+
return _types4.ICallRecording;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
140
164
|
_Object$defineProperty(exports, "ICallSettings", {
|
|
141
165
|
enumerable: true,
|
|
142
166
|
get: function get() {
|
|
143
|
-
return
|
|
167
|
+
return _types5.ICallSettings;
|
|
144
168
|
}
|
|
145
169
|
});
|
|
146
170
|
_Object$defineProperty(exports, "ICallingClient", {
|
|
@@ -152,19 +176,19 @@ _Object$defineProperty(exports, "ICallingClient", {
|
|
|
152
176
|
_Object$defineProperty(exports, "IContacts", {
|
|
153
177
|
enumerable: true,
|
|
154
178
|
get: function get() {
|
|
155
|
-
return
|
|
179
|
+
return _types6.IContacts;
|
|
156
180
|
}
|
|
157
181
|
});
|
|
158
182
|
_Object$defineProperty(exports, "ILine", {
|
|
159
183
|
enumerable: true,
|
|
160
184
|
get: function get() {
|
|
161
|
-
return
|
|
185
|
+
return _types8.ILine;
|
|
162
186
|
}
|
|
163
187
|
});
|
|
164
188
|
_Object$defineProperty(exports, "IVoicemail", {
|
|
165
189
|
enumerable: true,
|
|
166
190
|
get: function get() {
|
|
167
|
-
return
|
|
191
|
+
return _types7.IVoicemail;
|
|
168
192
|
}
|
|
169
193
|
});
|
|
170
194
|
_Object$defineProperty(exports, "JanusResponseEvent", {
|
|
@@ -176,19 +200,19 @@ _Object$defineProperty(exports, "JanusResponseEvent", {
|
|
|
176
200
|
_Object$defineProperty(exports, "LINE_EVENTS", {
|
|
177
201
|
enumerable: true,
|
|
178
202
|
get: function get() {
|
|
179
|
-
return
|
|
203
|
+
return _types8.LINE_EVENTS;
|
|
180
204
|
}
|
|
181
205
|
});
|
|
182
206
|
_Object$defineProperty(exports, "LINE_EVENT_KEYS", {
|
|
183
207
|
enumerable: true,
|
|
184
208
|
get: function get() {
|
|
185
|
-
return
|
|
209
|
+
return _types9.LINE_EVENT_KEYS;
|
|
186
210
|
}
|
|
187
211
|
});
|
|
188
212
|
_Object$defineProperty(exports, "LOGGER", {
|
|
189
213
|
enumerable: true,
|
|
190
214
|
get: function get() {
|
|
191
|
-
return
|
|
215
|
+
return _types11.LOGGER;
|
|
192
216
|
}
|
|
193
217
|
});
|
|
194
218
|
_Object$defineProperty(exports, "LineError", {
|
|
@@ -212,13 +236,13 @@ _Object$defineProperty(exports, "Logger", {
|
|
|
212
236
|
_Object$defineProperty(exports, "MOBIUS_SOCKET_DISCONNECT_REASON", {
|
|
213
237
|
enumerable: true,
|
|
214
238
|
get: function get() {
|
|
215
|
-
return
|
|
239
|
+
return _types9.MOBIUS_SOCKET_DISCONNECT_REASON;
|
|
216
240
|
}
|
|
217
241
|
});
|
|
218
242
|
_Object$defineProperty(exports, "MobiusSocketDisconnectedEvent", {
|
|
219
243
|
enumerable: true,
|
|
220
244
|
get: function get() {
|
|
221
|
-
return
|
|
245
|
+
return _types9.MobiusSocketDisconnectedEvent;
|
|
222
246
|
}
|
|
223
247
|
});
|
|
224
248
|
_Object$defineProperty(exports, "NoiseReductionEffect", {
|
|
@@ -227,64 +251,118 @@ _Object$defineProperty(exports, "NoiseReductionEffect", {
|
|
|
227
251
|
return _mediaHelpers.NoiseReductionEffect;
|
|
228
252
|
}
|
|
229
253
|
});
|
|
254
|
+
_Object$defineProperty(exports, "Recording", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function get() {
|
|
257
|
+
return _types4.Recording;
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
_Object$defineProperty(exports, "RecordingDeleteResponse", {
|
|
261
|
+
enumerable: true,
|
|
262
|
+
get: function get() {
|
|
263
|
+
return _types4.RecordingDeleteResponse;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
_Object$defineProperty(exports, "RecordingListResponse", {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: function get() {
|
|
269
|
+
return _types4.RecordingListResponse;
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
_Object$defineProperty(exports, "RecordingMetadata", {
|
|
273
|
+
enumerable: true,
|
|
274
|
+
get: function get() {
|
|
275
|
+
return _types4.RecordingMetadata;
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
_Object$defineProperty(exports, "RecordingMetadataResponse", {
|
|
279
|
+
enumerable: true,
|
|
280
|
+
get: function get() {
|
|
281
|
+
return _types4.RecordingMetadataResponse;
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
_Object$defineProperty(exports, "RecordingRequestType", {
|
|
285
|
+
enumerable: true,
|
|
286
|
+
get: function get() {
|
|
287
|
+
return _types4.RecordingRequestType;
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
_Object$defineProperty(exports, "RecordingResponse", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function get() {
|
|
293
|
+
return _types4.RecordingResponse;
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
_Object$defineProperty(exports, "RecordingResponseFor", {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
get: function get() {
|
|
299
|
+
return _types4.RecordingResponseFor;
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
_Object$defineProperty(exports, "RecordingStatus", {
|
|
303
|
+
enumerable: true,
|
|
304
|
+
get: function get() {
|
|
305
|
+
return _types4.RecordingStatus;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
230
308
|
_Object$defineProperty(exports, "SORT", {
|
|
231
309
|
enumerable: true,
|
|
232
310
|
get: function get() {
|
|
233
|
-
return
|
|
311
|
+
return _types0.SORT;
|
|
234
312
|
}
|
|
235
313
|
});
|
|
236
314
|
_Object$defineProperty(exports, "SORT_BY", {
|
|
237
315
|
enumerable: true,
|
|
238
316
|
get: function get() {
|
|
239
|
-
return
|
|
317
|
+
return _types0.SORT_BY;
|
|
240
318
|
}
|
|
241
319
|
});
|
|
242
320
|
_Object$defineProperty(exports, "ServiceIndicator", {
|
|
243
321
|
enumerable: true,
|
|
244
322
|
get: function get() {
|
|
245
|
-
return
|
|
323
|
+
return _types0.ServiceIndicator;
|
|
246
324
|
}
|
|
247
325
|
});
|
|
248
326
|
_Object$defineProperty(exports, "SummaryInfo", {
|
|
249
327
|
enumerable: true,
|
|
250
328
|
get: function get() {
|
|
251
|
-
return
|
|
329
|
+
return _types7.SummaryInfo;
|
|
252
330
|
}
|
|
253
331
|
});
|
|
254
332
|
_Object$defineProperty(exports, "ToggleSetting", {
|
|
255
333
|
enumerable: true,
|
|
256
334
|
get: function get() {
|
|
257
|
-
return
|
|
335
|
+
return _types5.ToggleSetting;
|
|
258
336
|
}
|
|
259
337
|
});
|
|
260
338
|
_Object$defineProperty(exports, "TransferType", {
|
|
261
339
|
enumerable: true,
|
|
262
340
|
get: function get() {
|
|
263
|
-
return
|
|
341
|
+
return _types10.TransferType;
|
|
264
342
|
}
|
|
265
343
|
});
|
|
266
344
|
_Object$defineProperty(exports, "UserSession", {
|
|
267
345
|
enumerable: true,
|
|
268
346
|
get: function get() {
|
|
269
|
-
return
|
|
347
|
+
return _types9.UserSession;
|
|
270
348
|
}
|
|
271
349
|
});
|
|
272
350
|
_Object$defineProperty(exports, "VoicemailResponseEvent", {
|
|
273
351
|
enumerable: true,
|
|
274
352
|
get: function get() {
|
|
275
|
-
return
|
|
353
|
+
return _types7.VoicemailResponseEvent;
|
|
276
354
|
}
|
|
277
355
|
});
|
|
278
356
|
_Object$defineProperty(exports, "VoicemailSetting", {
|
|
279
357
|
enumerable: true,
|
|
280
358
|
get: function get() {
|
|
281
|
-
return
|
|
359
|
+
return _types5.VoicemailSetting;
|
|
282
360
|
}
|
|
283
361
|
});
|
|
284
362
|
_Object$defineProperty(exports, "WDMDevice", {
|
|
285
363
|
enumerable: true,
|
|
286
364
|
get: function get() {
|
|
287
|
-
return
|
|
365
|
+
return _types1.WDMDevice;
|
|
288
366
|
}
|
|
289
367
|
});
|
|
290
368
|
_Object$defineProperty(exports, "createCallHistoryClient", {
|
|
@@ -293,6 +371,12 @@ _Object$defineProperty(exports, "createCallHistoryClient", {
|
|
|
293
371
|
return _CallHistory.createCallHistoryClient;
|
|
294
372
|
}
|
|
295
373
|
});
|
|
374
|
+
_Object$defineProperty(exports, "createCallRecordingClient", {
|
|
375
|
+
enumerable: true,
|
|
376
|
+
get: function get() {
|
|
377
|
+
return _CallRecording.createCallRecordingClient;
|
|
378
|
+
}
|
|
379
|
+
});
|
|
296
380
|
_Object$defineProperty(exports, "createCallSettingsClient", {
|
|
297
381
|
enumerable: true,
|
|
298
382
|
get: function get() {
|
|
@@ -323,6 +407,12 @@ _Object$defineProperty(exports, "createVoicemailClient", {
|
|
|
323
407
|
return _Voicemail.createVoicemailClient;
|
|
324
408
|
}
|
|
325
409
|
});
|
|
410
|
+
_Object$defineProperty(exports, "getRemoteParty", {
|
|
411
|
+
enumerable: true,
|
|
412
|
+
get: function get() {
|
|
413
|
+
return _utils.getRemoteParty;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
326
416
|
_Object$defineProperty(exports, "resolveCallingBackend", {
|
|
327
417
|
enumerable: true,
|
|
328
418
|
get: function get() {
|
|
@@ -335,19 +425,22 @@ var _ContactsClient = require("./Contacts/ContactsClient");
|
|
|
335
425
|
var _CallingClient = require("./CallingClient/CallingClient");
|
|
336
426
|
var _CallHistory = require("./CallHistory/CallHistory");
|
|
337
427
|
var _Voicemail = require("./Voicemail/Voicemail");
|
|
428
|
+
var _CallRecording = require("./CallRecording/CallRecording");
|
|
338
429
|
var _Logger = _interopRequireDefault(require("./Logger"));
|
|
339
430
|
var _types = require("./Errors/types");
|
|
340
431
|
var _types2 = require("./CallingClient/types");
|
|
341
432
|
var _types3 = require("./CallHistory/types");
|
|
342
|
-
var _types4 = require("./
|
|
343
|
-
var
|
|
344
|
-
var
|
|
345
|
-
var
|
|
346
|
-
var
|
|
347
|
-
var
|
|
433
|
+
var _types4 = require("./CallRecording/types");
|
|
434
|
+
var _utils = require("./CallRecording/utils");
|
|
435
|
+
var _types5 = require("./CallSettings/types");
|
|
436
|
+
var _types6 = require("./Contacts/types");
|
|
437
|
+
var _types7 = require("./Voicemail/types");
|
|
438
|
+
var _types8 = require("./CallingClient/line/types");
|
|
439
|
+
var _types9 = require("./Events/types");
|
|
440
|
+
var _types0 = require("./common/types");
|
|
348
441
|
var _Utils = require("./common/Utils");
|
|
349
|
-
var
|
|
442
|
+
var _types1 = require("./SDKConnector/types");
|
|
350
443
|
var _Errors = require("./Errors");
|
|
351
|
-
var
|
|
352
|
-
var
|
|
444
|
+
var _types10 = require("./CallingClient/calling/types");
|
|
445
|
+
var _types11 = require("./Logger/types");
|
|
353
446
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mediaHelpers","require","_CallSettings","_ContactsClient","_CallingClient","_CallHistory","_Voicemail","_Logger","_interopRequireDefault","_types","_types2","_types3","_types4","_types5","_types6","_types7","_types8","_types9","_Utils","
|
|
1
|
+
{"version":3,"names":["_mediaHelpers","require","_CallSettings","_ContactsClient","_CallingClient","_CallHistory","_Voicemail","_CallRecording","_Logger","_interopRequireDefault","_types","_types2","_types3","_types4","_utils","_types5","_types6","_types7","_types8","_types9","_types0","_Utils","_types1","_Errors","_types10","_types11"],"sources":["index.ts"],"sourcesContent":["import {NoiseReductionEffect, createMicrophoneStream} from '@webex/media-helpers';\nimport {createCallSettingsClient} from './CallSettings/CallSettings';\nimport {createContactsClient} from './Contacts/ContactsClient';\nimport {createClient} from './CallingClient/CallingClient';\nimport {createCallHistoryClient} from './CallHistory/CallHistory';\nimport {createVoicemailClient} from './Voicemail/Voicemail';\nimport {createCallRecordingClient} from './CallRecording/CallRecording';\nimport Logger from './Logger';\n\nexport {\n createClient,\n createCallHistoryClient,\n createCallSettingsClient,\n createContactsClient,\n createMicrophoneStream,\n createVoicemailClient,\n createCallRecordingClient,\n Logger,\n NoiseReductionEffect,\n};\n\nexport {ERROR_LAYER, ERROR_TYPE} from './Errors/types';\nexport {ICallingClient} from './CallingClient/types';\nexport {ICallHistory, JanusResponseEvent} from './CallHistory/types';\nexport {\n ICallRecording,\n Recording,\n RecordingListResponse,\n RecordingMetadata,\n RecordingMetadataResponse,\n RecordingResponse,\n RecordingStatus,\n RecordingDeleteResponse,\n DeleteRecordingOptions,\n GetRecordingsOptions,\n RecordingRequestType,\n GetCallRecordingRequest,\n RecordingResponseFor,\n} from './CallRecording/types';\nexport {getRemoteParty} from './CallRecording/utils';\nexport {\n CallForwardSetting,\n CallForwardAlwaysSetting,\n CallSettingResponse,\n ICallSettings,\n ToggleSetting,\n VoicemailSetting,\n} from './CallSettings/types';\nexport {Contact, ContactResponse, GroupType, IContacts} from './Contacts/types';\nexport {IVoicemail, SummaryInfo, VoicemailResponseEvent} from './Voicemail/types';\nexport {ILine, LINE_EVENTS} from './CallingClient/line/types';\nexport {\n CALLING_CLIENT_EVENT_KEYS,\n CALL_EVENT_KEYS,\n CallerIdDisplay,\n Disposition,\n LINE_EVENT_KEYS,\n COMMON_EVENT_KEYS,\n MOBIUS_SOCKET_DISCONNECT_REASON,\n MobiusSocketDisconnectedEvent,\n UserSession,\n} from './Events/types';\nexport {\n CallDetails,\n CallDirection,\n CallType,\n CALLING_BACKEND,\n DisplayInformation,\n SORT,\n SORT_BY,\n} from './common/types';\nexport {resolveCallingBackend} from './common/Utils';\nexport {WDMDevice} from './SDKConnector/types';\nexport {CallError, LineError} from './Errors';\nexport {ICall, TransferType} from './CallingClient/calling/types';\nexport {LOGGER} from './Logger/types';\nexport {LocalMicrophoneStream} from '@webex/media-helpers';\nexport {CallingClientConfig} from './CallingClient/types';\nexport {ServiceIndicator} from './common/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAC,sBAAA,CAAAR,OAAA;AAcA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AAeA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AAQA,IAAAe,OAAA,GAAAf,OAAA;AACA,IAAAgB,OAAA,GAAAhB,OAAA;AACA,IAAAiB,OAAA,GAAAjB,OAAA;AACA,IAAAkB,OAAA,GAAAlB,OAAA;AAWA,IAAAmB,OAAA,GAAAnB,OAAA;AASA,IAAAoB,MAAA,GAAApB,OAAA;AACA,IAAAqB,OAAA,GAAArB,OAAA;AACA,IAAAsB,OAAA,GAAAtB,OAAA;AACA,IAAAuB,QAAA,GAAAvB,OAAA;AACA,IAAAwB,QAAA,GAAAxB,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import SDKConnector from '../SDKConnector';
|
|
2
|
+
import { CALLING_BACKEND } from '../common/types';
|
|
3
|
+
import log from '../Logger';
|
|
4
|
+
import { getCallingBackEnd } from '../common/Utils';
|
|
5
|
+
import { METHOD_START_MESSAGE } from '../common/constants';
|
|
6
|
+
import { COMMON_EVENT_KEYS } from '../Events/types';
|
|
7
|
+
import { Eventing } from '../Events/impl';
|
|
8
|
+
import { WxcCallRecordingConnector } from './WxcCallRecordingConnector';
|
|
9
|
+
import { CALL_RECORDING_FILE, METHODS } from './constants';
|
|
10
|
+
export class CallRecording extends Eventing {
|
|
11
|
+
logger;
|
|
12
|
+
sdkConnector;
|
|
13
|
+
webex;
|
|
14
|
+
callingBackend;
|
|
15
|
+
backendConnector;
|
|
16
|
+
constructor(webex, logger) {
|
|
17
|
+
super();
|
|
18
|
+
this.logger = logger;
|
|
19
|
+
this.sdkConnector = SDKConnector;
|
|
20
|
+
if (!this.sdkConnector.getWebex()) {
|
|
21
|
+
SDKConnector.setWebex(webex);
|
|
22
|
+
}
|
|
23
|
+
this.webex = this.sdkConnector.getWebex();
|
|
24
|
+
this.callingBackend = getCallingBackEnd(this.webex);
|
|
25
|
+
this.initializeBackendConnector();
|
|
26
|
+
this.forwardRecordingEvents();
|
|
27
|
+
log.setLogger(logger.level, CALL_RECORDING_FILE);
|
|
28
|
+
}
|
|
29
|
+
initializeBackendConnector() {
|
|
30
|
+
log.info(METHOD_START_MESSAGE, {
|
|
31
|
+
file: CALL_RECORDING_FILE,
|
|
32
|
+
method: METHODS.INITIALIZE_BACKEND_CONNECTOR,
|
|
33
|
+
});
|
|
34
|
+
switch (this.callingBackend) {
|
|
35
|
+
case CALLING_BACKEND.WXC: {
|
|
36
|
+
this.backendConnector = new WxcCallRecordingConnector(this.webex, this.logger);
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
default: {
|
|
40
|
+
throw new Error('Calling backend is not identified, exiting....');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
forwardRecordingEvents() {
|
|
45
|
+
this.backendConnector.on(COMMON_EVENT_KEYS.CALL_RECORDING_CREATED, (event) => this.emit(COMMON_EVENT_KEYS.CALL_RECORDING_CREATED, event));
|
|
46
|
+
this.backendConnector.on(COMMON_EVENT_KEYS.CALL_RECORDING_UPDATED, (event) => this.emit(COMMON_EVENT_KEYS.CALL_RECORDING_UPDATED, event));
|
|
47
|
+
this.backendConnector.on(COMMON_EVENT_KEYS.CALL_RECORDING_DELETED, (event) => this.emit(COMMON_EVENT_KEYS.CALL_RECORDING_DELETED, event));
|
|
48
|
+
}
|
|
49
|
+
getCallRecording(request) {
|
|
50
|
+
return this.backendConnector.getCallRecording(request);
|
|
51
|
+
}
|
|
52
|
+
async deleteRecording(recordingId, options) {
|
|
53
|
+
return this.backendConnector.deleteRecording(recordingId, options);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export const createCallRecordingClient = (webex, logger) => new CallRecording(webex, logger);
|