@webex/calling 3.3.1 → 3.4.0-next.10
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/CallHistory/CallHistory.js +103 -4
- package/dist/CallHistory/CallHistory.js.map +1 -1
- package/dist/CallHistory/CallHistory.test.js +143 -0
- package/dist/CallHistory/CallHistory.test.js.map +1 -1
- package/dist/CallHistory/callHistoryFixtures.js +224 -1
- package/dist/CallHistory/callHistoryFixtures.js.map +1 -1
- package/dist/CallHistory/constants.js +8 -2
- package/dist/CallHistory/constants.js.map +1 -1
- package/dist/CallHistory/types.js.map +1 -1
- package/dist/CallSettings/UcmBackendConnector.js +1 -1
- package/dist/CallSettings/UcmBackendConnector.js.map +1 -1
- package/dist/CallSettings/UcmBackendConnector.test.js +1 -1
- package/dist/CallSettings/UcmBackendConnector.test.js.map +1 -1
- package/dist/CallSettings/constants.js +1 -3
- package/dist/CallSettings/constants.js.map +1 -1
- package/dist/CallingClient/calling/CallerId/types.js.map +1 -1
- package/dist/CallingClient/calling/call.js +5 -3
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +17 -15
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/constants.js +6 -8
- package/dist/CallingClient/constants.js.map +1 -1
- package/dist/CallingClient/registration/register.js +18 -13
- package/dist/CallingClient/registration/register.js.map +1 -1
- package/dist/CallingClient/registration/register.test.js +242 -125
- package/dist/CallingClient/registration/register.test.js.map +1 -1
- package/dist/Contacts/ContactsClient.js +270 -292
- package/dist/Contacts/ContactsClient.js.map +1 -1
- package/dist/Contacts/ContactsClient.test.js +109 -12
- package/dist/Contacts/ContactsClient.test.js.map +1 -1
- package/dist/Contacts/constants.js +3 -1
- package/dist/Contacts/constants.js.map +1 -1
- package/dist/Contacts/contactFixtures.js +164 -48
- package/dist/Contacts/contactFixtures.js.map +1 -1
- package/dist/Contacts/types.js.map +1 -1
- package/dist/Events/types.js.map +1 -1
- package/dist/Metrics/index.js +9 -9
- package/dist/Metrics/index.js.map +1 -1
- package/dist/Metrics/index.test.js +37 -10
- package/dist/Metrics/index.test.js.map +1 -1
- package/dist/SDKConnector/types.js.map +1 -1
- package/dist/common/Utils.js +12 -10
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +25 -1
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/common/constants.js +10 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/testUtil.js +24 -6
- 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/module/CallHistory/CallHistory.js +57 -3
- package/dist/module/CallHistory/callHistoryFixtures.js +215 -0
- package/dist/module/CallHistory/constants.js +7 -1
- package/dist/module/CallSettings/UcmBackendConnector.js +5 -3
- package/dist/module/CallSettings/constants.js +0 -2
- package/dist/module/CallingClient/calling/call.js +6 -4
- package/dist/module/CallingClient/constants.js +5 -6
- package/dist/module/CallingClient/registration/register.js +12 -6
- package/dist/module/Contacts/ContactsClient.js +75 -58
- package/dist/module/Contacts/constants.js +2 -0
- package/dist/module/Contacts/contactFixtures.js +198 -31
- package/dist/module/Metrics/index.js +9 -9
- package/dist/module/common/Utils.js +10 -9
- package/dist/module/common/constants.js +9 -0
- package/dist/module/common/testUtil.js +24 -4
- package/dist/module/common/types.js +1 -0
- package/dist/types/CallHistory/CallHistory.d.ts +1 -0
- package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
- package/dist/types/CallHistory/callHistoryFixtures.d.ts +98 -1
- package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +1 -1
- package/dist/types/CallHistory/constants.d.ts +7 -1
- package/dist/types/CallHistory/constants.d.ts.map +1 -1
- package/dist/types/CallHistory/types.d.ts +9 -1
- package/dist/types/CallHistory/types.d.ts.map +1 -1
- package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -1
- package/dist/types/CallSettings/constants.d.ts +0 -2
- package/dist/types/CallSettings/constants.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/CallerId/types.d.ts +1 -23
- package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/constants.d.ts +4 -5
- package/dist/types/CallingClient/constants.d.ts.map +1 -1
- package/dist/types/CallingClient/registration/register.d.ts +1 -0
- package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
- package/dist/types/Contacts/ContactsClient.d.ts +2 -2
- package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
- package/dist/types/Contacts/constants.d.ts +2 -0
- package/dist/types/Contacts/constants.d.ts.map +1 -1
- package/dist/types/Contacts/contactFixtures.d.ts +99 -39
- package/dist/types/Contacts/contactFixtures.d.ts.map +1 -1
- package/dist/types/Contacts/types.d.ts +7 -14
- package/dist/types/Contacts/types.d.ts.map +1 -1
- package/dist/types/Events/types.d.ts +15 -0
- package/dist/types/Events/types.d.ts.map +1 -1
- package/dist/types/SDKConnector/types.d.ts +1 -5
- package/dist/types/SDKConnector/types.d.ts.map +1 -1
- package/dist/types/Voicemail/UcmBackendConnector.d.ts +1 -1
- package/dist/types/Voicemail/WxCallBackendConnector.d.ts +1 -1
- package/dist/types/common/Utils.d.ts +3 -2
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/dist/types/common/constants.d.ts +9 -0
- package/dist/types/common/constants.d.ts.map +1 -1
- package/dist/types/common/testUtil.d.ts +20 -4
- package/dist/types/common/testUtil.d.ts.map +1 -1
- package/dist/types/common/types.d.ts +56 -25
- package/dist/types/common/types.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -243,42 +243,209 @@ export const mockContactGroupListTwo = [
|
|
|
243
243
|
isMigration: false,
|
|
244
244
|
},
|
|
245
245
|
];
|
|
246
|
-
export const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
246
|
+
export const mockContactMinimum = {
|
|
247
|
+
contactId: 'userId',
|
|
248
|
+
contactType: 'CLOUD',
|
|
249
|
+
encryptionKeyUrl: 'kms://cisco.com/keys/dcf18f9d-155e-44ff-ad61-c8a69b7103ab',
|
|
250
|
+
groups: ['1561977e-3443-4ccf-a591-69686275d7d2'],
|
|
251
|
+
ownerId: 'ownerId',
|
|
252
|
+
};
|
|
253
|
+
export const scimUserMinimum = {
|
|
254
|
+
schemas: ['urn:ietf:params:scim:schemas:core:2.0:User'],
|
|
255
|
+
id: 'userId',
|
|
256
|
+
userName: 'userName',
|
|
257
|
+
userType: 'user',
|
|
258
|
+
};
|
|
259
|
+
const scimUser1 = {
|
|
260
|
+
schemas: [
|
|
261
|
+
'urn:ietf:params:scim:schemas:core:2.0:User',
|
|
262
|
+
'urn:scim:schemas:extension:cisco:webexidentity:2.0:User',
|
|
263
|
+
'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User',
|
|
264
|
+
],
|
|
265
|
+
id: 'userId',
|
|
266
|
+
userName: 'johndoe@cisco.com',
|
|
267
|
+
active: true,
|
|
268
|
+
name: {
|
|
269
|
+
familyName: 'Doe',
|
|
270
|
+
givenName: 'John',
|
|
271
|
+
},
|
|
272
|
+
displayName: 'John Doe',
|
|
273
|
+
emails: [
|
|
274
|
+
{
|
|
275
|
+
value: 'johndoe@cisco.com',
|
|
276
|
+
type: 'work',
|
|
277
|
+
primary: true,
|
|
262
278
|
},
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
279
|
+
],
|
|
280
|
+
userType: 'user',
|
|
281
|
+
phoneNumbers: [
|
|
282
|
+
{
|
|
283
|
+
value: '+91 22 1234 5678',
|
|
284
|
+
type: 'work',
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
photos: [
|
|
288
|
+
{
|
|
289
|
+
value: 'photoUrl',
|
|
290
|
+
type: 'photo',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
value: 'thumbnailURL',
|
|
294
|
+
type: 'thumbnail',
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
addresses: [
|
|
298
|
+
{
|
|
299
|
+
type: 'work',
|
|
300
|
+
streetAddress: 'Street',
|
|
301
|
+
locality: 'BANGALORE',
|
|
302
|
+
region: 'KARNATAKA',
|
|
303
|
+
postalCode: '560103',
|
|
304
|
+
country: 'IN',
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User': {
|
|
308
|
+
department: '123029016',
|
|
309
|
+
manager: {
|
|
310
|
+
value: 'userId',
|
|
311
|
+
displayName: 'Jane Smith',
|
|
312
|
+
$ref: 'scimUrl',
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
'urn:scim:schemas:extension:cisco:webexidentity:2.0:User': {
|
|
316
|
+
isTeamsOnJabberEnabled: false,
|
|
317
|
+
isUCCallOnJabberEnabled: false,
|
|
318
|
+
licenseID: ['license'],
|
|
319
|
+
userSettings: ['setting'],
|
|
320
|
+
userPreferences: ['preferences'],
|
|
321
|
+
sipAddresses: [
|
|
322
|
+
{
|
|
323
|
+
value: 'johndoe@cisco.call.ciscospark.com',
|
|
324
|
+
type: 'cloud-calling',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
value: 'johndoe@cisco.calls.webex.com',
|
|
328
|
+
type: 'cloud-calling',
|
|
329
|
+
primary: true,
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
value: 'johndoe@cisco.webex.com',
|
|
333
|
+
type: 'personal-room',
|
|
334
|
+
},
|
|
271
335
|
],
|
|
272
|
-
|
|
336
|
+
meta: {
|
|
337
|
+
organizationId: 'orgId',
|
|
338
|
+
},
|
|
339
|
+
userNameType: 'email',
|
|
340
|
+
},
|
|
341
|
+
meta: {
|
|
342
|
+
resourceType: 'User',
|
|
343
|
+
location: 'scimUrl',
|
|
344
|
+
version: 'W/"16629124099"',
|
|
345
|
+
created: '2019-12-24T02:01:42.803Z',
|
|
346
|
+
lastModified: '2024-08-21T14:22:55.987Z',
|
|
347
|
+
},
|
|
348
|
+
};
|
|
349
|
+
const scimUser2NoPhoto = {
|
|
350
|
+
schemas: [
|
|
351
|
+
'urn:ietf:params:scim:schemas:core:2.0:User',
|
|
352
|
+
'urn:scim:schemas:extension:cisco:webexidentity:2.0:User',
|
|
353
|
+
'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User',
|
|
354
|
+
],
|
|
355
|
+
id: 'userId',
|
|
356
|
+
userName: 'janedoe@cisco.com',
|
|
357
|
+
active: true,
|
|
358
|
+
name: {
|
|
359
|
+
familyName: 'Doe',
|
|
360
|
+
givenName: 'Jane',
|
|
361
|
+
},
|
|
362
|
+
displayName: 'Jane Doe',
|
|
363
|
+
emails: [
|
|
364
|
+
{
|
|
365
|
+
value: 'janedoe@cisco.com',
|
|
366
|
+
type: 'work',
|
|
367
|
+
primary: true,
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
userType: 'user',
|
|
371
|
+
phoneNumbers: [
|
|
372
|
+
{
|
|
373
|
+
value: '+91 22 1234 5678',
|
|
374
|
+
type: 'work',
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
addresses: [
|
|
378
|
+
{
|
|
379
|
+
type: 'work',
|
|
380
|
+
streetAddress: 'Street',
|
|
381
|
+
locality: 'BANGALORE',
|
|
382
|
+
region: 'KARNATAKA',
|
|
383
|
+
postalCode: '560103',
|
|
384
|
+
country: 'IN',
|
|
385
|
+
},
|
|
386
|
+
],
|
|
387
|
+
'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User': {
|
|
388
|
+
department: '123029016',
|
|
389
|
+
manager: {
|
|
390
|
+
value: 'userId',
|
|
391
|
+
displayName: 'John Smith',
|
|
392
|
+
$ref: 'scimUrl',
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
'urn:scim:schemas:extension:cisco:webexidentity:2.0:User': {
|
|
396
|
+
isTeamsOnJabberEnabled: false,
|
|
397
|
+
isUCCallOnJabberEnabled: false,
|
|
398
|
+
licenseID: ['license'],
|
|
399
|
+
userSettings: ['setting'],
|
|
400
|
+
userPreferences: ['preferences'],
|
|
273
401
|
sipAddresses: [
|
|
274
|
-
{
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
402
|
+
{
|
|
403
|
+
value: 'janedoe@cisco.call.ciscospark.com',
|
|
404
|
+
type: 'cloud-calling',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
value: 'janedoe@cisco.calls.webex.com',
|
|
408
|
+
type: 'cloud-calling',
|
|
409
|
+
primary: true,
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
value: 'janedoe@cisco.webex.com',
|
|
413
|
+
type: 'personal-room',
|
|
414
|
+
},
|
|
278
415
|
],
|
|
279
|
-
|
|
416
|
+
meta: {
|
|
417
|
+
organizationId: 'orgId',
|
|
418
|
+
},
|
|
419
|
+
userNameType: 'email',
|
|
280
420
|
},
|
|
281
|
-
|
|
421
|
+
meta: {
|
|
422
|
+
resourceType: 'User',
|
|
423
|
+
location: 'scimUrl',
|
|
424
|
+
version: 'W/"16629124099"',
|
|
425
|
+
created: '2019-12-24T02:01:42.803Z',
|
|
426
|
+
lastModified: '2024-08-21T14:22:55.987Z',
|
|
427
|
+
},
|
|
428
|
+
};
|
|
429
|
+
export const mockSCIMListResponse = {
|
|
430
|
+
statusCode: 200,
|
|
431
|
+
body: {
|
|
432
|
+
schemas: ['urn:ietf:params:scim:api:messages:2.0:ListResponse'],
|
|
433
|
+
totalResults: 2,
|
|
434
|
+
itemsPerPage: 2,
|
|
435
|
+
startIndex: 1,
|
|
436
|
+
Resources: [scimUser1, scimUser2NoPhoto],
|
|
437
|
+
},
|
|
438
|
+
};
|
|
439
|
+
export const mockSCIMMinListResponse = {
|
|
440
|
+
statusCode: 200,
|
|
441
|
+
body: {
|
|
442
|
+
schemas: ['urn:ietf:params:scim:api:messages:2.0:ListResponse'],
|
|
443
|
+
totalResults: 1,
|
|
444
|
+
itemsPerPage: 1,
|
|
445
|
+
startIndex: 1,
|
|
446
|
+
Resources: [scimUserMinimum],
|
|
447
|
+
},
|
|
448
|
+
};
|
|
282
449
|
export const mockKmsKey = {
|
|
283
450
|
uri: 'kms://kms-cisco.wbx2.com/keys/16095024-612d-4424-ba51-57cad2402e14',
|
|
284
451
|
};
|
|
@@ -27,7 +27,7 @@ class MetricManager {
|
|
|
27
27
|
fields: {
|
|
28
28
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
29
29
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
30
|
-
calling_sdk_version: VERSION,
|
|
30
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
31
31
|
},
|
|
32
32
|
type,
|
|
33
33
|
};
|
|
@@ -44,7 +44,7 @@ class MetricManager {
|
|
|
44
44
|
fields: {
|
|
45
45
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
46
46
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
47
|
-
calling_sdk_version: VERSION,
|
|
47
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
48
48
|
error: clientError.getError().message,
|
|
49
49
|
error_type: clientError.getError().type,
|
|
50
50
|
},
|
|
@@ -77,7 +77,7 @@ class MetricManager {
|
|
|
77
77
|
fields: {
|
|
78
78
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
79
79
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
80
|
-
calling_sdk_version: VERSION,
|
|
80
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
81
81
|
call_id: callId,
|
|
82
82
|
correlation_id: correlationId,
|
|
83
83
|
},
|
|
@@ -96,7 +96,7 @@ class MetricManager {
|
|
|
96
96
|
fields: {
|
|
97
97
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
98
98
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
99
|
-
calling_sdk_version: VERSION,
|
|
99
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
100
100
|
call_id: callId,
|
|
101
101
|
correlation_id: correlationId,
|
|
102
102
|
error: callError.getCallError().message,
|
|
@@ -131,7 +131,7 @@ class MetricManager {
|
|
|
131
131
|
fields: {
|
|
132
132
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
133
133
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
134
|
-
calling_sdk_version: VERSION,
|
|
134
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
135
135
|
call_id: callId,
|
|
136
136
|
correlation_id: correlationId,
|
|
137
137
|
local_media_details: localSdp,
|
|
@@ -152,7 +152,7 @@ class MetricManager {
|
|
|
152
152
|
fields: {
|
|
153
153
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
154
154
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
155
|
-
calling_sdk_version: VERSION,
|
|
155
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
156
156
|
call_id: callId,
|
|
157
157
|
correlation_id: correlationId,
|
|
158
158
|
local_media_details: localSdp,
|
|
@@ -188,7 +188,7 @@ class MetricManager {
|
|
|
188
188
|
},
|
|
189
189
|
fields: {
|
|
190
190
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
191
|
-
calling_sdk_version: VERSION,
|
|
191
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
192
192
|
},
|
|
193
193
|
type,
|
|
194
194
|
};
|
|
@@ -205,7 +205,7 @@ class MetricManager {
|
|
|
205
205
|
},
|
|
206
206
|
fields: {
|
|
207
207
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
208
|
-
calling_sdk_version: VERSION,
|
|
208
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
209
209
|
},
|
|
210
210
|
type,
|
|
211
211
|
};
|
|
@@ -233,7 +233,7 @@ class MetricManager {
|
|
|
233
233
|
fields: {
|
|
234
234
|
device_url: this.deviceInfo?.device?.clientDeviceUri,
|
|
235
235
|
mobius_url: this.deviceInfo?.device?.uri,
|
|
236
|
-
calling_sdk_version: VERSION,
|
|
236
|
+
calling_sdk_version: process.env.CALLING_SDK_VERSION || VERSION,
|
|
237
237
|
call_id: callId,
|
|
238
238
|
correlation_id: correlationId,
|
|
239
239
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as platform from 'platform';
|
|
2
2
|
import { createCallError } from '../Errors/catalog/CallError';
|
|
3
3
|
import { DEVICE_ERROR_CODE, ERROR_CODE, ERROR_TYPE, CALL_ERROR_CODE, } from '../Errors/types';
|
|
4
|
-
import {
|
|
4
|
+
import { CALLING_BACKEND, HTTP_METHODS, RegistrationStatus, SORT, ServiceIndicator, } from './types';
|
|
5
5
|
import log from '../Logger';
|
|
6
6
|
import { createClientError } from '../Errors/catalog/CallingDeviceError';
|
|
7
|
-
import { BYTES_RECEIVED, BYTES_SENT, CALLING_USER_AGENT, CISCO_DEVICE_URL, CODEC_ID, DUMMY_METRICS,
|
|
8
|
-
import { DEVICES, ITEMS, SETTINGS, VALUES, KEY, TIME, PLACEHOLDER_KEY, XSI_ACTION_ENDPOINT_ORG_URL_PARAM, XSI_ACTION_ENDPOINT, INFER_ID_CONSTANT, BW_XSI_URL, ENTITLEMENT_BASIC, ENTITLEMENT_BROADWORKS_CONN, ENTITLEMENT_STANDARD, NATIVE_WEBEX_TEAMS_CALLING, NATIVE_SIP_CALL_TO_UCM, BW_XSI_ENDPOINT_VERSION, } from './constants';
|
|
7
|
+
import { BYTES_RECEIVED, BYTES_SENT, CALLING_USER_AGENT, CISCO_DEVICE_URL, CODEC_ID, DUMMY_METRICS, INBOUND_CODEC_MATCH, INBOUND_RTP, JITTER_BUFFER_DELAY, JITTER_BUFFER_EMITTED_COUNT, LOCAL_CANDIDATE_ID, MEDIA_ID, MEDIA_SOURCE, MIME_TYPE, NETWORK_TYPE, OUTBOUND_CODEC_MATCH, OUTBOUND_RTP, PACKETS_DISCARDED, PACKETS_LOST, PACKETS_RECEIVED, PACKETS_SENT, REMOTE_INBOUND_RTP, ROUND_TRIP_TIME_MEASUREMENTS, RTC_CODEC, RTC_ICE_CANDIDATE, RTC_ICE_CANDIDATE_PAIR, RTP_RX_STAT, RTP_TX_STAT, SELECTED_CANDIDATE_PAIR_ID, SPARK_USER_AGENT, TARGET_BIT_RATE, TIMESTAMP, TOTAL_ROUND_TRIP_TIME, TOTAL_SAMPLES_DURATION, TRANSPORT, TYPE, URL_ENDPOINT, UTILS_FILE, } from '../CallingClient/constants';
|
|
8
|
+
import { DEVICES, ITEMS, SETTINGS, VALUES, KEY, TIME, PLACEHOLDER_KEY, XSI_ACTION_ENDPOINT_ORG_URL_PARAM, XSI_ACTION_ENDPOINT, INFER_ID_CONSTANT, BW_XSI_URL, ENTITLEMENT_BASIC, ENTITLEMENT_BROADWORKS_CONN, ENTITLEMENT_STANDARD, NATIVE_WEBEX_TEAMS_CALLING, NATIVE_SIP_CALL_TO_UCM, BW_XSI_ENDPOINT_VERSION, IDENTITY_ENDPOINT_RESOURCE, SCIM_ENDPOINT_RESOURCE, SCIM_USER_FILTER, WEBEX_API_PROD, WEBEX_API_BTS, } from './constants';
|
|
9
9
|
import SDKConnector from '../SDKConnector';
|
|
10
10
|
import { createLineError } from '../Errors/catalog/LineError';
|
|
11
11
|
export function filterMobiusUris(mobiusServers, defaultMobiusUrl) {
|
|
@@ -649,14 +649,16 @@ export function getSortedVoicemailList(voiceMessageList, sortOrder) {
|
|
|
649
649
|
}
|
|
650
650
|
return voiceMessageList;
|
|
651
651
|
}
|
|
652
|
-
async function scimQuery(filter) {
|
|
652
|
+
export async function scimQuery(filter) {
|
|
653
653
|
log.info(`Starting resolution for filter:- ${filter}`, {
|
|
654
654
|
file: UTILS_FILE,
|
|
655
655
|
method: 'scimQuery',
|
|
656
656
|
});
|
|
657
657
|
const sdkConnector = SDKConnector;
|
|
658
658
|
const webex = sdkConnector.getWebex();
|
|
659
|
-
const
|
|
659
|
+
const isProd = !webex.internal.device.url.includes('-int');
|
|
660
|
+
const webexHost = isProd ? WEBEX_API_PROD : WEBEX_API_BTS;
|
|
661
|
+
const scimUrl = `${webexHost}/${IDENTITY_ENDPOINT_RESOURCE}/${SCIM_ENDPOINT_RESOURCE}/${webex.internal.device.orgId}/${SCIM_USER_FILTER}`;
|
|
660
662
|
const query = scimUrl + encodeURIComponent(filter);
|
|
661
663
|
return webex.request({
|
|
662
664
|
uri: query,
|
|
@@ -665,7 +667,6 @@ async function scimQuery(filter) {
|
|
|
665
667
|
[CISCO_DEVICE_URL]: webex.internal.device.url,
|
|
666
668
|
[SPARK_USER_AGENT]: CALLING_USER_AGENT,
|
|
667
669
|
},
|
|
668
|
-
service: ALLOWED_SERVICES.MOBIUS,
|
|
669
670
|
});
|
|
670
671
|
}
|
|
671
672
|
export async function resolveCallerIdDisplay(filter) {
|
|
@@ -689,12 +690,12 @@ export async function resolveCallerIdDisplay(filter) {
|
|
|
689
690
|
if (resolution?.totalResults && resolution.totalResults > 0) {
|
|
690
691
|
const scimResource = resolution.Resources[0];
|
|
691
692
|
displayResult.name = scimResource.displayName;
|
|
692
|
-
const numberObj = scimResource.phoneNumbers
|
|
693
|
-
scimResource.phoneNumbers
|
|
693
|
+
const numberObj = scimResource.phoneNumbers?.find((num) => num.primary) ||
|
|
694
|
+
scimResource.phoneNumbers?.find((num) => num.type.toLowerCase() === 'work');
|
|
694
695
|
if (numberObj) {
|
|
695
696
|
displayResult.num = numberObj.value;
|
|
696
697
|
}
|
|
697
|
-
else if (scimResource.phoneNumbers.length > 0) {
|
|
698
|
+
else if (scimResource.phoneNumbers && scimResource.phoneNumbers.length > 0) {
|
|
698
699
|
log.info('Failure to resolve caller information. Setting number as caller ID', {
|
|
699
700
|
file: UTILS_FILE,
|
|
700
701
|
method: 'resolveCallerIdDisplay',
|
|
@@ -4,6 +4,7 @@ export const BINARY = 'binary';
|
|
|
4
4
|
export const CONTENT = 'content';
|
|
5
5
|
export const DEVICES = 'devices';
|
|
6
6
|
export const FAILURE_MESSAGE = 'FAILURE';
|
|
7
|
+
export const IDENTITY_ENDPOINT_RESOURCE = 'identity';
|
|
7
8
|
export const ITEMS = 'items';
|
|
8
9
|
export const KEY = 'key';
|
|
9
10
|
export const OBJECT = 'object';
|
|
@@ -12,6 +13,8 @@ export const RAW_REQUEST = 'rawRequest';
|
|
|
12
13
|
export const RESPONSE = 'response';
|
|
13
14
|
export const RESPONSE_DATA = 'responseData';
|
|
14
15
|
export const RESPONSE_MESSAGE = 'responseMessage';
|
|
16
|
+
export const SCIM_ENDPOINT_RESOURCE = 'scim';
|
|
17
|
+
export const SCIM_USER_FILTER = 'v2/Users?filter=';
|
|
15
18
|
export const SETTINGS = 'settings';
|
|
16
19
|
export const STATUS_CODE = 'statusCode';
|
|
17
20
|
export const SUCCESS_MESSAGE = 'SUCCESS';
|
|
@@ -39,3 +42,9 @@ export const BW_XSI_URL = 'broadworksXsiActionsUrl';
|
|
|
39
42
|
export const WEBEX_CALLING_CONNECTOR_FILE = 'WxCallBackendConnector';
|
|
40
43
|
export const UCM_CONNECTOR_FILE = 'UcmBackendConnector';
|
|
41
44
|
export const VOICEMAIL = 'VOICEMAIL';
|
|
45
|
+
export const SCIM_WEBEXIDENTITY_USER = 'urn:scim:schemas:extension:cisco:webexidentity:2.0:User';
|
|
46
|
+
export const SCIM_ENTERPRISE_USER = 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User';
|
|
47
|
+
export const WEBEX_API_PROD = 'https://webexapis.com';
|
|
48
|
+
export const WEBEX_API_BTS = 'https://integration.webexapis.com';
|
|
49
|
+
export const WEBEX_API_CONFIG_INT_URL = `https://${WEBEX_API_BTS}/v1/uc/config`;
|
|
50
|
+
export const WEBEX_API_CONFIG_PROD_URL = `https://${WEBEX_API_PROD}/v1/uc/config`;
|
|
@@ -33,9 +33,6 @@ export function getTestUtilsWebex() {
|
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
|
-
dss: {
|
|
37
|
-
lookup: jest.fn(),
|
|
38
|
-
},
|
|
39
36
|
encryption: {
|
|
40
37
|
decryptText: jest.fn(),
|
|
41
38
|
encryptText: jest.fn(),
|
|
@@ -59,7 +56,6 @@ export function getTestUtilsWebex() {
|
|
|
59
56
|
mercuryApi: 'https://mercury-api-intb.ciscospark.com/v1',
|
|
60
57
|
'ucmgmt-gateway': 'https://gw.telemetry.int-ucmgmt.cisco.com',
|
|
61
58
|
contactsService: 'https://contacts-service-a.wbx2.com/contact/api/v1',
|
|
62
|
-
directorySearch: 'https://directory-search-a.wbx2.com/direcory-search/api/v1/',
|
|
63
59
|
},
|
|
64
60
|
fetchClientRegionInfo: jest.fn(),
|
|
65
61
|
},
|
|
@@ -219,6 +215,30 @@ export const getSampleScimResponse = () => {
|
|
|
219
215
|
],
|
|
220
216
|
};
|
|
221
217
|
};
|
|
218
|
+
export const getSampleMinimumScimResponse = () => {
|
|
219
|
+
return {
|
|
220
|
+
totalResults: '1',
|
|
221
|
+
itemsPerPage: '1',
|
|
222
|
+
startIndex: '1',
|
|
223
|
+
schemas: ['urn:scim:schemas:core:1.0'],
|
|
224
|
+
Resources: [
|
|
225
|
+
{
|
|
226
|
+
userName: 'atlas.test.wxcwebrtc+user8@gmail.com',
|
|
227
|
+
id: 'userExternalId',
|
|
228
|
+
meta: {
|
|
229
|
+
created: '2022-03-16T16:13:53.847Z',
|
|
230
|
+
lastModified: '2022-05-31T14:39:12.782Z',
|
|
231
|
+
lastLoginTime: '2022-05-31T14:39:12.780Z',
|
|
232
|
+
version: 'W/"66025591113"',
|
|
233
|
+
location: 'https://identitybts.webex.com/identity/scim/1704d30d-a131-4bc7-9449-948487643793/v1/Users/652fe0c7-05ce-4acd-8bda-9a080830187f',
|
|
234
|
+
organizationID: '1704d30d-a131-4bc7-9449-948487643793',
|
|
235
|
+
creator: '97fe25e3-d3e8-400e-856b-5b0cd5b0c790',
|
|
236
|
+
modifier: '8c7abf2f-0c8e-49cf-b8e4-693d4ec7daee',
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
};
|
|
241
|
+
};
|
|
222
242
|
export const getSamplePeopleListResponse = () => {
|
|
223
243
|
return {
|
|
224
244
|
notFoundIds: null,
|
|
@@ -13,6 +13,7 @@ export declare class CallHistory extends Eventing<CallHistoryEventTypes> impleme
|
|
|
13
13
|
constructor(webex: WebexSDK, logger: LoggerInterface);
|
|
14
14
|
getCallHistoryData(days?: number, limit?: number, sort?: SORT, sortBy?: SORT_BY): Promise<JanusResponseEvent>;
|
|
15
15
|
updateMissedCalls(endTimeSessionIds: EndTimeSessionId[]): Promise<UpdateMissedCallsResponse>;
|
|
16
|
+
private fetchUCMLinesData;
|
|
16
17
|
handleSessionEvents: (event?: CallSessionEvent) => Promise<void>;
|
|
17
18
|
handleUserReadSessionEvents: (event?: CallSessionViewedEvent) => Promise<void>;
|
|
18
19
|
private registerSessionsListener;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CallHistory.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/CallHistory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"CallHistory.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/CallHistory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAIL,IAAI,EACJ,OAAO,EAER,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EAE1B,MAAM,SAAS,CAAC;AAqBjB,OAAO,EAEL,qBAAqB,EACrB,gBAAgB,EAGhB,gBAAgB,EAChB,sBAAsB,EAGvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAWxC,qBAAa,WAAY,SAAQ,QAAQ,CAAC,qBAAqB,CAAE,YAAW,YAAY;IACtF,OAAO,CAAC,YAAY,CAAgB;IAEpC,OAAO,CAAC,KAAK,CAAW;IAExB,OAAO,CAAC,QAAQ,CAAM;IAEtB,OAAO,CAAC,QAAQ,CAAM;IAEtB,OAAO,CAAC,aAAa,CAGnB;IAEF,OAAO,CAAC,YAAY,CAA4B;gBAKpC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe;IAmBvC,kBAAkB,CAC7B,IAAI,GAAE,MAAuB,EAC7B,KAAK,GAAE,MAAc,EACrB,IAAI,GAAE,IAAmB,EACzB,MAAM,GAAE,OAAyB,GAChC,OAAO,CAAC,kBAAkB,CAAC;IAoGjB,iBAAiB,CAC5B,iBAAiB,EAAE,gBAAgB,EAAE,GACpC,OAAO,CAAC,yBAAyB,CAAC;YAsDvB,iBAAiB;IAmC/B,mBAAmB,WAAkB,gBAAgB,mBAInD;IAEF,2BAA2B,WAAkB,sBAAsB,mBAOjE;IAKF,OAAO,CAAC,wBAAwB;CAcjC;AAOD,eAAO,MAAM,uBAAuB,UAAW,QAAQ,UAAU,eAAe,KAAG,YACnD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CallSessionEvent, CallSessionViewedEvent } from '../Events/types';
|
|
2
|
-
import { UpdateMissedCallsResponse } from './types';
|
|
2
|
+
import { UCMLinesResponse, UpdateMissedCallsResponse } from './types';
|
|
3
3
|
export declare const sortedCallHistory: {
|
|
4
4
|
body: {
|
|
5
5
|
statusCode: number;
|
|
@@ -92,6 +92,101 @@ export declare const mockCallHistoryBody: {
|
|
|
92
92
|
}[];
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
+
export declare const MOCK_CALL_HISTORY_WITH_UCM_LINE_NUMBER: {
|
|
96
|
+
body: {
|
|
97
|
+
statusCode: number;
|
|
98
|
+
userSessions: {
|
|
99
|
+
id: string;
|
|
100
|
+
durationSecs: number;
|
|
101
|
+
self: {
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
cucmDN: string;
|
|
105
|
+
ucmLineNumber: number;
|
|
106
|
+
incomingCallProtocols: never[];
|
|
107
|
+
callbackInfo: {
|
|
108
|
+
callbackAddress: string;
|
|
109
|
+
callbackType: string;
|
|
110
|
+
};
|
|
111
|
+
lookUpInfo: {
|
|
112
|
+
lookupLink: string;
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
url: string;
|
|
117
|
+
sessionId: string;
|
|
118
|
+
sessionType: string;
|
|
119
|
+
startTime: string;
|
|
120
|
+
endTime: string;
|
|
121
|
+
direction: string;
|
|
122
|
+
disposition: string;
|
|
123
|
+
other: {
|
|
124
|
+
id: string;
|
|
125
|
+
name: string;
|
|
126
|
+
isPrivate: boolean;
|
|
127
|
+
callbackAddress: string;
|
|
128
|
+
};
|
|
129
|
+
durationSeconds: number;
|
|
130
|
+
joinedDurationSeconds: number;
|
|
131
|
+
participantCount: number;
|
|
132
|
+
links: {
|
|
133
|
+
locusUrl: string;
|
|
134
|
+
conversationUrl: string;
|
|
135
|
+
callbackAddress: string;
|
|
136
|
+
};
|
|
137
|
+
isDeleted: boolean;
|
|
138
|
+
isPMR: boolean;
|
|
139
|
+
correlationIds: string[];
|
|
140
|
+
}[];
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export declare const MOCK_CALL_HISTORY_WITHOUT_UCM_LINE_NUMBER: {
|
|
144
|
+
body: {
|
|
145
|
+
statusCode: number;
|
|
146
|
+
userSessions: {
|
|
147
|
+
id: string;
|
|
148
|
+
durationSecs: number;
|
|
149
|
+
self: {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
cucmDN: string;
|
|
153
|
+
incomingCallProtocols: never[];
|
|
154
|
+
callbackInfo: {
|
|
155
|
+
callbackAddress: string;
|
|
156
|
+
callbackType: string;
|
|
157
|
+
};
|
|
158
|
+
lookUpInfo: {
|
|
159
|
+
lookupLink: string;
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
url: string;
|
|
164
|
+
sessionId: string;
|
|
165
|
+
sessionType: string;
|
|
166
|
+
startTime: string;
|
|
167
|
+
endTime: string;
|
|
168
|
+
direction: string;
|
|
169
|
+
disposition: string;
|
|
170
|
+
other: {
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
isPrivate: boolean;
|
|
174
|
+
callbackAddress: string;
|
|
175
|
+
};
|
|
176
|
+
durationSeconds: number;
|
|
177
|
+
joinedDurationSeconds: number;
|
|
178
|
+
participantCount: number;
|
|
179
|
+
links: {
|
|
180
|
+
locusUrl: string;
|
|
181
|
+
conversationUrl: string;
|
|
182
|
+
callbackAddress: string;
|
|
183
|
+
};
|
|
184
|
+
isDeleted: boolean;
|
|
185
|
+
isPMR: boolean;
|
|
186
|
+
correlationIds: string[];
|
|
187
|
+
}[];
|
|
188
|
+
};
|
|
189
|
+
};
|
|
95
190
|
export declare const MOCK_SESSION_EVENT: CallSessionEvent;
|
|
96
191
|
export declare const MOCK_SESSION_EVENT_LEGACY: CallSessionEvent;
|
|
97
192
|
export declare const MOCK_SESSION_EVENT_VIEWED: CallSessionViewedEvent;
|
|
@@ -111,4 +206,6 @@ export declare const ERROR_DETAILS_400: {
|
|
|
111
206
|
};
|
|
112
207
|
message: string;
|
|
113
208
|
};
|
|
209
|
+
export declare const MOCK_LINES_API_CALL_RESPONSE: UCMLinesResponse;
|
|
210
|
+
export declare const MOCK_LINES_API_CALL_RESPONSE_WITH_NO_LINEDATA: UCMLinesResponse;
|
|
114
211
|
//# sourceMappingURL=callHistoryFixtures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callHistoryFixtures.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/callHistoryFixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,EAEhB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,yBAAyB,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"callHistoryFixtures.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/callHistoryFixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,EAEhB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,gBAAgB,EAAE,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAEpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I/B,CAAC;AAMF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FlD,CAAC;AAMF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FrD,CAAC;AA2FF,eAAO,MAAM,kBAAkB,EAAE,gBAWhC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,gBAWvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,sBAWvC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,yBAM9C,CAAC;AACF,eAAO,MAAM,oBAAoB,qFACmD,CAAC;AAErF,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC;AACF,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC;AAKF,eAAO,MAAM,4BAA4B,EAAE,gBAyB1C,CAAC;AAMF,eAAO,MAAM,6CAA6C,EAAE,gBAI3D,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export declare const APPLICATION_JSON = "application/json";
|
|
2
2
|
export declare const CALL_HISTORY_FILE = "CallHistory";
|
|
3
3
|
export declare const CONTENT_TYPE = "Content-Type";
|
|
4
|
+
export declare const CONFIG = "config";
|
|
4
5
|
export declare const FROM_DATE = "?from";
|
|
5
6
|
export declare const HISTORY = "history";
|
|
6
7
|
export declare const LIMIT = 50;
|
|
8
|
+
export declare const LINES = "lines";
|
|
7
9
|
export declare const NUMBER_OF_DAYS = 10;
|
|
10
|
+
export declare const ORG_ID = "orgId";
|
|
11
|
+
export declare const PEOPLE = "people";
|
|
8
12
|
export declare const RESPONSE_MESSAGE = "responseMessage";
|
|
9
|
-
export declare const UPDATE_MISSED_CALLS_ENDPOINT = "setReadState";
|
|
10
13
|
export declare const SET_READ_STATE_SUCCESS_MESSAGE = "Missed calls are read by the user.";
|
|
11
14
|
export declare const SUCCESS_MESSAGE = "SUCCESS";
|
|
12
15
|
export declare const STATUS_CODE = "statusCode";
|
|
13
16
|
export declare const USER_SESSIONS = "userSessions";
|
|
17
|
+
export declare const UPDATE_MISSED_CALLS_ENDPOINT = "setReadState";
|
|
18
|
+
export declare const UNIFIED_COMMUNICATIONS = "uc";
|
|
19
|
+
export declare const VERSION_1 = "v1";
|
|
14
20
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,KAAK,KAAK,CAAC;AACxB,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAC/C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,KAAK,KAAK,CAAC;AACxB,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,8BAA8B,uCAAuC,CAAC;AACnF,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,SAAS,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Eventing } from '../Events/impl';
|
|
2
|
-
import { CallHistoryEventTypes, EndTimeSessionId, UserSession } from '../Events/types';
|
|
2
|
+
import { CallHistoryEventTypes, EndTimeSessionId, UserSession, UCMLinesApiResponse } from '../Events/types';
|
|
3
3
|
import { LOGGER } from '../Logger/types';
|
|
4
4
|
import { SORT, SORT_BY } from '../common/types';
|
|
5
5
|
export interface LoggerInterface {
|
|
@@ -21,6 +21,14 @@ export type UpdateMissedCallsResponse = {
|
|
|
21
21
|
};
|
|
22
22
|
message: string | null;
|
|
23
23
|
};
|
|
24
|
+
export type UCMLinesResponse = {
|
|
25
|
+
statusCode: number;
|
|
26
|
+
data: {
|
|
27
|
+
lines?: UCMLinesApiResponse;
|
|
28
|
+
error?: string;
|
|
29
|
+
};
|
|
30
|
+
message: string | null;
|
|
31
|
+
};
|
|
24
32
|
export interface ICallHistory extends Eventing<CallHistoryEventTypes> {
|
|
25
33
|
getCallHistoryData(days: number, limit: number, sort: SORT, sortBy: SORT_BY): Promise<JanusResponseEvent>;
|
|
26
34
|
updateMissedCalls(endTimeSessionIds: EndTimeSessionId[]): Promise<UpdateMissedCallsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/CallHistory/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,mBAAmB,CAAC;QAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAMF,MAAM,WAAW,YAAa,SAAQ,QAAQ,CAAC,qBAAqB,CAAC;IAenE,kBAAkB,CAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAY/B,iBAAiB,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAC9F"}
|