@microsoft/omnichannel-chat-sdk 1.8.1-main.dde2906 → 1.8.1-main.e44745c

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.
@@ -1157,8 +1157,8 @@
1157
1157
  "affectsGlobalScope": false
1158
1158
  },
1159
1159
  "../src/core/ChatSDKConfig.ts": {
1160
- "version": "abb5ea6645ee857109a5a560b0a7a2361135e9d50d064cfc6bf578f9bc7ffc83",
1161
- "signature": "2a8066b522241eb931e6ce0914d2a6d566994910e46360cc1370c7747515f625",
1160
+ "version": "7a61a2c707e2a759e463efd9cd33283e9a95bc0bf169946aedd0197a98eaff83",
1161
+ "signature": "d7d33af9e95e939f0fcd33c250fd48bd38d39021921f564d99992e4f48634690",
1162
1162
  "affectsGlobalScope": false
1163
1163
  },
1164
1164
  "../src/external/IC3Adapter/IChatToken.ts": {
@@ -1291,9 +1291,79 @@
1291
1291
  "signature": "5b54da096dea549fc0673441ad9f9444241dab6e5816cf2121eda166cf0957b0",
1292
1292
  "affectsGlobalScope": false
1293
1293
  },
1294
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/IConversationTelemetryContext.d.ts": {
1295
+ "version": "a83a74c506a823f8b89f6c327b05c4a603110d195e559ff6ba03a5ce0f41cf81",
1296
+ "signature": "a83a74c506a823f8b89f6c327b05c4a603110d195e559ff6ba03a5ce0f41cf81",
1297
+ "affectsGlobalScope": false
1298
+ },
1299
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/IGlobalTelemetryContext.d.ts": {
1300
+ "version": "b05b05afe58e2bc5ed98c770f96d498b13c2f2508a11336d9f6042403b0c717f",
1301
+ "signature": "b05b05afe58e2bc5ed98c770f96d498b13c2f2508a11336d9f6042403b0c717f",
1302
+ "affectsGlobalScope": false
1303
+ },
1304
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/ISDKTelemetryContext.d.ts": {
1305
+ "version": "5f4f83982879ad0c50b024d3ea9fb5f34d2830be36f31791195bb77523e4dbca",
1306
+ "signature": "5f4f83982879ad0c50b024d3ea9fb5f34d2830be36f31791195bb77523e4dbca",
1307
+ "affectsGlobalScope": false
1308
+ },
1309
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/ILogData.d.ts": {
1310
+ "version": "d12ad5a0cc80bc0f2ca21194128fd5cd13b03f3c9cda0a04934647b396cb6424",
1311
+ "signature": "d12ad5a0cc80bc0f2ca21194128fd5cd13b03f3c9cda0a04934647b396cb6424",
1312
+ "affectsGlobalScope": false
1313
+ },
1314
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/LogLevel.d.ts": {
1315
+ "version": "91f8fe49b43f1f95640d595f4b9b4efe48930420ba0719ac0b80da2a5fae77ac",
1316
+ "signature": "91f8fe49b43f1f95640d595f4b9b4efe48930420ba0719ac0b80da2a5fae77ac",
1317
+ "affectsGlobalScope": false
1318
+ },
1319
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/ILogger.d.ts": {
1320
+ "version": "c619c03b15725bc958c4927b04782dbaa1f60539b7f1f0a7944f66c88ea7335e",
1321
+ "signature": "c619c03b15725bc958c4927b04782dbaa1f60539b7f1f0a7944f66c88ea7335e",
1322
+ "affectsGlobalScope": false
1323
+ },
1324
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/model/IClientSDKInitializationParameters.d.ts": {
1325
+ "version": "7923801c4eeb8a679d1aa587b775594debbd2659ce5bfb0f4bc8eb3a86d34a74",
1326
+ "signature": "7923801c4eeb8a679d1aa587b775594debbd2659ce5bfb0f4bc8eb3a86d34a74",
1327
+ "affectsGlobalScope": false
1328
+ },
1329
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/model/ConversationGenerator.d.ts": {
1330
+ "version": "f22c3346237f3d9dd99984c919d22726973d518aa11eab6672d7cf2c0da45b3d",
1331
+ "signature": "f22c3346237f3d9dd99984c919d22726973d518aa11eab6672d7cf2c0da45b3d",
1332
+ "affectsGlobalScope": false
1333
+ },
1334
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/model/IRegionGtms.d.ts": {
1335
+ "version": "18751932f6a349ce19db0480036de262cd2521925c18eadff5b8085299872b86",
1336
+ "signature": "18751932f6a349ce19db0480036de262cd2521925c18eadff5b8085299872b86",
1337
+ "affectsGlobalScope": false
1338
+ },
1339
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/model/IInitializationInfo.d.ts": {
1340
+ "version": "f292a090f2a8ba0b2a3c0806d74072672fc76584ecc0349b9952cea1447930e9",
1341
+ "signature": "f292a090f2a8ba0b2a3c0806d74072672fc76584ecc0349b9952cea1447930e9",
1342
+ "affectsGlobalScope": false
1343
+ },
1344
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/model/ISDK.d.ts": {
1345
+ "version": "7057d77e33f936687fd612ffe5f178ab328c28f611eeb534ea0b1cbb2a819a12",
1346
+ "signature": "7057d77e33f936687fd612ffe5f178ab328c28f611eeb534ea0b1cbb2a819a12",
1347
+ "affectsGlobalScope": false
1348
+ },
1349
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/core/SDKProvider.d.ts": {
1350
+ "version": "d7e0405ae0ebbe424fb9bda8a0ebb17c16a3613b5a912205814f403f3142f506",
1351
+ "signature": "d7e0405ae0ebbe424fb9bda8a0ebb17c16a3613b5a912205814f403f3142f506",
1352
+ "affectsGlobalScope": false
1353
+ },
1354
+ "../node_modules/@microsoft/omnichannel-ic3core/lib/index.d.ts": {
1355
+ "version": "561d2188e2bb667f9c6fd940f3340cb2bc0a6396e435eccbc3b6e928d5cb4915",
1356
+ "signature": "561d2188e2bb667f9c6fd940f3340cb2bc0a6396e435eccbc3b6e928d5cb4915",
1357
+ "affectsGlobalScope": false
1358
+ },
1359
+ "../src/index.ts": {
1360
+ "version": "e810b12af4eaf51e0a045c054a441c1a22c0d55c30b2ce239db4492d7f1d804f",
1361
+ "signature": "ca00ad5290b9dc418b8e51be6aa5d5d61a26c4798e94e141ec25a0d3f3a6e1f7",
1362
+ "affectsGlobalScope": false
1363
+ },
1294
1364
  "../src/utils/utilities.ts": {
1295
- "version": "99ffc0b45916cfc32150ad3a34ec0a26adc8b5d620a22c528a53bfc5b58ccc03",
1296
- "signature": "f28e1ab9b452920a7af8bd73689a3235aa24bef9a0bf52c6e8f51fecd60444d5",
1365
+ "version": "2b06f6e5b2a96b14c70ea8b56a3911714d00bcd2e6fe4bf072fbd79dfe4cdad8",
1366
+ "signature": "d5ddbf60a57d89f99661f2c981734d834d9287e44565a80d9a0e50240678ef23",
1297
1367
  "affectsGlobalScope": false
1298
1368
  },
1299
1369
  "../src/validators/SDKConfigValidators.ts": {
@@ -1386,71 +1456,6 @@
1386
1456
  "signature": "257756980ccf20b5bdbfa8271b0bee5d527c629d0e7a504d80f73521a9419247",
1387
1457
  "affectsGlobalScope": false
1388
1458
  },
1389
- "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/IConversationTelemetryContext.d.ts": {
1390
- "version": "a83a74c506a823f8b89f6c327b05c4a603110d195e559ff6ba03a5ce0f41cf81",
1391
- "signature": "a83a74c506a823f8b89f6c327b05c4a603110d195e559ff6ba03a5ce0f41cf81",
1392
- "affectsGlobalScope": false
1393
- },
1394
- "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/IGlobalTelemetryContext.d.ts": {
1395
- "version": "b05b05afe58e2bc5ed98c770f96d498b13c2f2508a11336d9f6042403b0c717f",
1396
- "signature": "b05b05afe58e2bc5ed98c770f96d498b13c2f2508a11336d9f6042403b0c717f",
1397
- "affectsGlobalScope": false
1398
- },
1399
- "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/ISDKTelemetryContext.d.ts": {
1400
- "version": "5f4f83982879ad0c50b024d3ea9fb5f34d2830be36f31791195bb77523e4dbca",
1401
- "signature": "5f4f83982879ad0c50b024d3ea9fb5f34d2830be36f31791195bb77523e4dbca",
1402
- "affectsGlobalScope": false
1403
- },
1404
- "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/ILogData.d.ts": {
1405
- "version": "d12ad5a0cc80bc0f2ca21194128fd5cd13b03f3c9cda0a04934647b396cb6424",
1406
- "signature": "d12ad5a0cc80bc0f2ca21194128fd5cd13b03f3c9cda0a04934647b396cb6424",
1407
- "affectsGlobalScope": false
1408
- },
1409
- "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/LogLevel.d.ts": {
1410
- "version": "91f8fe49b43f1f95640d595f4b9b4efe48930420ba0719ac0b80da2a5fae77ac",
1411
- "signature": "91f8fe49b43f1f95640d595f4b9b4efe48930420ba0719ac0b80da2a5fae77ac",
1412
- "affectsGlobalScope": false
1413
- },
1414
- "../node_modules/@microsoft/omnichannel-ic3core/lib/logging/ILogger.d.ts": {
1415
- "version": "c619c03b15725bc958c4927b04782dbaa1f60539b7f1f0a7944f66c88ea7335e",
1416
- "signature": "c619c03b15725bc958c4927b04782dbaa1f60539b7f1f0a7944f66c88ea7335e",
1417
- "affectsGlobalScope": false
1418
- },
1419
- "../node_modules/@microsoft/omnichannel-ic3core/lib/model/IClientSDKInitializationParameters.d.ts": {
1420
- "version": "7923801c4eeb8a679d1aa587b775594debbd2659ce5bfb0f4bc8eb3a86d34a74",
1421
- "signature": "7923801c4eeb8a679d1aa587b775594debbd2659ce5bfb0f4bc8eb3a86d34a74",
1422
- "affectsGlobalScope": false
1423
- },
1424
- "../node_modules/@microsoft/omnichannel-ic3core/lib/model/ConversationGenerator.d.ts": {
1425
- "version": "f22c3346237f3d9dd99984c919d22726973d518aa11eab6672d7cf2c0da45b3d",
1426
- "signature": "f22c3346237f3d9dd99984c919d22726973d518aa11eab6672d7cf2c0da45b3d",
1427
- "affectsGlobalScope": false
1428
- },
1429
- "../node_modules/@microsoft/omnichannel-ic3core/lib/model/IRegionGtms.d.ts": {
1430
- "version": "18751932f6a349ce19db0480036de262cd2521925c18eadff5b8085299872b86",
1431
- "signature": "18751932f6a349ce19db0480036de262cd2521925c18eadff5b8085299872b86",
1432
- "affectsGlobalScope": false
1433
- },
1434
- "../node_modules/@microsoft/omnichannel-ic3core/lib/model/IInitializationInfo.d.ts": {
1435
- "version": "f292a090f2a8ba0b2a3c0806d74072672fc76584ecc0349b9952cea1447930e9",
1436
- "signature": "f292a090f2a8ba0b2a3c0806d74072672fc76584ecc0349b9952cea1447930e9",
1437
- "affectsGlobalScope": false
1438
- },
1439
- "../node_modules/@microsoft/omnichannel-ic3core/lib/model/ISDK.d.ts": {
1440
- "version": "7057d77e33f936687fd612ffe5f178ab328c28f611eeb534ea0b1cbb2a819a12",
1441
- "signature": "7057d77e33f936687fd612ffe5f178ab328c28f611eeb534ea0b1cbb2a819a12",
1442
- "affectsGlobalScope": false
1443
- },
1444
- "../node_modules/@microsoft/omnichannel-ic3core/lib/core/SDKProvider.d.ts": {
1445
- "version": "d7e0405ae0ebbe424fb9bda8a0ebb17c16a3613b5a912205814f403f3142f506",
1446
- "signature": "d7e0405ae0ebbe424fb9bda8a0ebb17c16a3613b5a912205814f403f3142f506",
1447
- "affectsGlobalScope": false
1448
- },
1449
- "../node_modules/@microsoft/omnichannel-ic3core/lib/index.d.ts": {
1450
- "version": "561d2188e2bb667f9c6fd940f3340cb2bc0a6396e435eccbc3b6e928d5cb4915",
1451
- "signature": "561d2188e2bb667f9c6fd940f3340cb2bc0a6396e435eccbc3b6e928d5cb4915",
1452
- "affectsGlobalScope": false
1453
- },
1454
1459
  "../node_modules/@microsoft/ocsdk/lib/Interfaces/IEmailTranscriptOptionalParams.d.ts": {
1455
1460
  "version": "b2bf7bfd7bc467d6e4a2f640e3e98af888679803f3be4f107869cc378c305fe6",
1456
1461
  "signature": "b2bf7bfd7bc467d6e4a2f640e3e98af888679803f3be4f107869cc378c305fe6",
@@ -1576,14 +1581,34 @@
1576
1581
  "signature": "36754e9e735007b6b26e3eec4bad359eb7f0fe24ec837b7ca8cbf02ab7d289d7",
1577
1582
  "affectsGlobalScope": false
1578
1583
  },
1579
- "../src/OmnichannelChatSDK.ts": {
1580
- "version": "ddded7960744f01f5c80452bee78125b37c3983273a767906106262ed8f44db6",
1581
- "signature": "11f85a7a53185e0e1e606311a19537adc5f3cec9fd085597a33ac5ba76485023",
1584
+ "../src/utils/CoreServicesUtils.ts": {
1585
+ "version": "a7181c73718e0d6f696b7f7dd837f5bcf4e721878777682c4236ee38cf36ee89",
1586
+ "signature": "2ea1aebcf8d9f5dc6f1cc557a3dbe2a4b52ad825e41fa1c6d2ba0f1196d9c9da",
1582
1587
  "affectsGlobalScope": false
1583
1588
  },
1584
- "../src/index.ts": {
1585
- "version": "e810b12af4eaf51e0a045c054a441c1a22c0d55c30b2ce239db4492d7f1d804f",
1586
- "signature": "ca00ad5290b9dc418b8e51be6aa5d5d61a26c4798e94e141ec25a0d3f3a6e1f7",
1589
+ "../src/utils/loggerUtils.ts": {
1590
+ "version": "2d9405123c91f48f6fb042b15737280fdf49880ffd583307ae8d6de7ce79c9fe",
1591
+ "signature": "53a006758632a9c01b69e624da96984235ca867fded7cfd47cf9fb4a264f4edf",
1592
+ "affectsGlobalScope": false
1593
+ },
1594
+ "../src/config/ocSDKConfiguration.ts": {
1595
+ "version": "c704076937855aad873cd956f8b3ba76999387aa0966ea635958cfb9cdef5e04",
1596
+ "signature": "5cec1c152e90d6d344646a98a0b0e589b4f50e4188fd33493f399674093c79ef",
1597
+ "affectsGlobalScope": false
1598
+ },
1599
+ "../src/core/AxiosErrorCodes.ts": {
1600
+ "version": "35090fd33a781946dbef11801c80ad76d65bf6aac47a399000c22dd3ff74db42",
1601
+ "signature": "a8288916afbaf7657e3707508e592703b02eb06a9370390ce70f2b0e88fbc84a",
1602
+ "affectsGlobalScope": false
1603
+ },
1604
+ "../src/utils/internalUtils.ts": {
1605
+ "version": "c40c7d754b35319dfac1620cb4e4cc80b44353110e84f34bdedbeaefbda63cc3",
1606
+ "signature": "0a5ac20fda4bc43c5752f6634a7d346dcf1305701efda7f235a674920193f8e7",
1607
+ "affectsGlobalScope": false
1608
+ },
1609
+ "../src/OmnichannelChatSDK.ts": {
1610
+ "version": "5f832e94d763b17e01b13a43e66ddda577cf4f1b2af80e1af8e0a741f61740d9",
1611
+ "signature": "ce2fd44e4d3544957f1ffa0830d00ea39e720a6afa6ac7f714445eecd7881b59",
1587
1612
  "affectsGlobalScope": false
1588
1613
  },
1589
1614
  "../src/external/ACSAdapter/external.d.ts": {
@@ -3764,6 +3789,7 @@
3764
3789
  "../node_modules/@types/node/ts3.2/util.d.ts",
3765
3790
  "../node_modules/@types/node/util.d.ts",
3766
3791
  "../src/api/createVoiceVideoCalling.ts",
3792
+ "../src/config/ocSDKConfiguration.ts",
3767
3793
  "../src/core/AuthSettings.ts",
3768
3794
  "../src/core/CallingOptionsOptionSetNumber.ts",
3769
3795
  "../src/core/ChatConfig.ts",
@@ -3804,14 +3830,17 @@
3804
3830
  "../src/telemetry/ScenarioMarker.ts",
3805
3831
  "../src/telemetry/TelemetryEvent.ts",
3806
3832
  "../src/telemetry/retrieveCollectorUri.ts",
3833
+ "../src/utils/CoreServicesUtils.ts",
3807
3834
  "../src/utils/WebUtils.ts",
3808
3835
  "../src/utils/chatAdapterCreators.ts",
3809
3836
  "../src/utils/createOmnichannelMessage.ts",
3810
3837
  "../src/utils/createTelemetry.ts",
3811
3838
  "../src/utils/exceptionSuppressors.ts",
3812
3839
  "../src/utils/exceptionThrowers.ts",
3840
+ "../src/utils/internalUtils.ts",
3813
3841
  "../src/utils/locale.ts",
3814
3842
  "../src/utils/location.ts",
3843
+ "../src/utils/loggerUtils.ts",
3815
3844
  "../src/utils/loggers.ts",
3816
3845
  "../src/utils/parsers.ts",
3817
3846
  "../src/utils/platform.ts",
@@ -3829,6 +3858,12 @@
3829
3858
  "../src/telemetry/ScenarioMarker.ts",
3830
3859
  "../src/telemetry/TelemetryEvent.ts"
3831
3860
  ],
3861
+ "../src/config/ocSDKConfiguration.ts": [
3862
+ "../node_modules/@types/node/fs.d.ts",
3863
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
3864
+ "../node_modules/@types/node/ts3.2/util.d.ts",
3865
+ "../node_modules/@types/node/util.d.ts"
3866
+ ],
3832
3867
  "../src/config/settings.ts": [
3833
3868
  "../node_modules/@types/node/fs.d.ts",
3834
3869
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -3841,6 +3876,12 @@
3841
3876
  "../node_modules/@types/node/ts3.2/util.d.ts",
3842
3877
  "../node_modules/@types/node/util.d.ts"
3843
3878
  ],
3879
+ "../src/core/AxiosErrorCodes.ts": [
3880
+ "../node_modules/@types/node/fs.d.ts",
3881
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
3882
+ "../node_modules/@types/node/ts3.2/util.d.ts",
3883
+ "../node_modules/@types/node/util.d.ts"
3884
+ ],
3844
3885
  "../src/core/CallingOptionsOptionSetNumber.ts": [
3845
3886
  "../node_modules/@types/node/fs.d.ts",
3846
3887
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -4537,6 +4578,12 @@
4537
4578
  "../node_modules/@types/node/util.d.ts",
4538
4579
  "../src/telemetry/EUDomainNames.ts"
4539
4580
  ],
4581
+ "../src/utils/CoreServicesUtils.ts": [
4582
+ "../node_modules/@types/node/fs.d.ts",
4583
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
4584
+ "../node_modules/@types/node/ts3.2/util.d.ts",
4585
+ "../node_modules/@types/node/util.d.ts"
4586
+ ],
4540
4587
  "../src/utils/WebUtils.ts": [
4541
4588
  "../node_modules/@types/node/fs.d.ts",
4542
4589
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -4608,6 +4655,13 @@
4608
4655
  "../src/telemetry/ScenarioMarker.ts",
4609
4656
  "../src/telemetry/TelemetryEvent.ts"
4610
4657
  ],
4658
+ "../src/utils/internalUtils.ts": [
4659
+ "../node_modules/@types/node/fs.d.ts",
4660
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
4661
+ "../node_modules/@types/node/ts3.2/util.d.ts",
4662
+ "../node_modules/@types/node/util.d.ts",
4663
+ "../src/core/AxiosErrorCodes.ts"
4664
+ ],
4611
4665
  "../src/utils/libraries.ts": [
4612
4666
  "../node_modules/@types/node/fs.d.ts",
4613
4667
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -4630,6 +4684,14 @@
4630
4684
  "../src/telemetry/TelemetryEvent.ts",
4631
4685
  "../src/utils/platform.ts"
4632
4686
  ],
4687
+ "../src/utils/loggerUtils.ts": [
4688
+ "../node_modules/@types/node/fs.d.ts",
4689
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
4690
+ "../node_modules/@types/node/ts3.2/util.d.ts",
4691
+ "../node_modules/@types/node/util.d.ts",
4692
+ "../src/telemetry/AriaTelemetry.ts",
4693
+ "../src/utils/loggers.ts"
4694
+ ],
4633
4695
  "../src/utils/loggers.ts": [
4634
4696
  "../node_modules/@types/node/fs.d.ts",
4635
4697
  "../node_modules/@types/node/ts3.2/fs.d.ts",
@@ -4679,7 +4741,8 @@
4679
4741
  "../node_modules/@types/node/ts3.2/fs.d.ts",
4680
4742
  "../node_modules/@types/node/ts3.2/util.d.ts",
4681
4743
  "../node_modules/@types/node/util.d.ts",
4682
- "../src/core/messaging/ACSParticipantDisplayName.ts"
4744
+ "../src/core/messaging/ACSParticipantDisplayName.ts",
4745
+ "../src/index.ts"
4683
4746
  ],
4684
4747
  "../src/validators/OmnichannelConfigValidator.ts": [
4685
4748
  "../node_modules/@types/node/fs.d.ts",
@@ -7007,6 +7070,10 @@
7007
7070
  "../src/utils/location.ts": [
7008
7071
  "../src/telemetry/ScenarioMarker.ts"
7009
7072
  ],
7073
+ "../src/utils/loggerUtils.ts": [
7074
+ "../src/telemetry/AriaTelemetry.ts",
7075
+ "../src/utils/loggers.ts"
7076
+ ],
7010
7077
  "../src/utils/loggers.ts": [
7011
7078
  "../src/core/OmnichannelConfig.ts",
7012
7079
  "../src/external/CallingSDK/ICallingSDKLogData.ts",
@@ -7275,8 +7342,10 @@
7275
7342
  "../node_modules/typescript/lib/lib.esnext.intl.d.ts",
7276
7343
  "../src/OmnichannelChatSDK.ts",
7277
7344
  "../src/api/createVoiceVideoCalling.ts",
7345
+ "../src/config/ocSDKConfiguration.ts",
7278
7346
  "../src/config/settings.ts",
7279
7347
  "../src/core/AuthSettings.ts",
7348
+ "../src/core/AxiosErrorCodes.ts",
7280
7349
  "../src/core/CallingOptionsOptionSetNumber.ts",
7281
7350
  "../src/core/ChatConfig.ts",
7282
7351
  "../src/core/ChatReconnectContext.ts",
@@ -7372,15 +7441,18 @@
7372
7441
  "../src/telemetry/StopWatch.ts",
7373
7442
  "../src/telemetry/TelemetryEvent.ts",
7374
7443
  "../src/telemetry/retrieveCollectorUri.ts",
7444
+ "../src/utils/CoreServicesUtils.ts",
7375
7445
  "../src/utils/WebUtils.ts",
7376
7446
  "../src/utils/chatAdapterCreators.ts",
7377
7447
  "../src/utils/createOmnichannelMessage.ts",
7378
7448
  "../src/utils/createTelemetry.ts",
7379
7449
  "../src/utils/exceptionSuppressors.ts",
7380
7450
  "../src/utils/exceptionThrowers.ts",
7451
+ "../src/utils/internalUtils.ts",
7381
7452
  "../src/utils/libraries.ts",
7382
7453
  "../src/utils/locale.ts",
7383
7454
  "../src/utils/location.ts",
7455
+ "../src/utils/loggerUtils.ts",
7384
7456
  "../src/utils/loggers.ts",
7385
7457
  "../src/utils/parsers.ts",
7386
7458
  "../src/utils/platform.ts",
@@ -0,0 +1,6 @@
1
+ export declare const CoreServicesGeoNamesMapping: any;
2
+ export declare const coreServicesOrgUrlPrefix = "https://m-";
3
+ export declare const unqOrgUrlPattern: RegExp;
4
+ export declare const nonProductionDynamicsLocationCode: string[];
5
+ export declare const getCoreServicesGeoName: (dynamicsLocationCode: string) => string;
6
+ export declare const createCoreServicesOrgUrl: (orgId: string, geoName: string) => string;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCoreServicesOrgUrl = exports.getCoreServicesGeoName = exports.nonProductionDynamicsLocationCode = exports.unqOrgUrlPattern = exports.coreServicesOrgUrlPrefix = exports.CoreServicesGeoNamesMapping = void 0;
4
+ exports.CoreServicesGeoNamesMapping = {
5
+ "crm": "us",
6
+ "crm2": "br",
7
+ "crm3": "ca",
8
+ "crm4": "eu",
9
+ "crm5": "as",
10
+ "crm6": "au",
11
+ "crm7": "jp",
12
+ "crm8": "in",
13
+ "crm10": "preprod",
14
+ "crm11": "uk",
15
+ "crm12": "fr",
16
+ "crm14": "za",
17
+ "crm15": "ae",
18
+ "crm16": "de",
19
+ "crm17": "ch",
20
+ "crm19": "no",
21
+ "crm20": "sg",
22
+ "crm21": "kr",
23
+ "crm22": "se",
24
+ "crmtest": "test" // TEST
25
+ };
26
+ exports.coreServicesOrgUrlPrefix = "https://m-";
27
+ exports.unqOrgUrlPattern = /http[s]*:\/\/[\w-]*-(crm[\d]*).[\w.]*/;
28
+ exports.nonProductionDynamicsLocationCode = ["crm10", "crmtest"];
29
+ exports.getCoreServicesGeoName = function (dynamicsLocationCode) {
30
+ var _a;
31
+ return (_a = exports.CoreServicesGeoNamesMapping[dynamicsLocationCode]) !== null && _a !== void 0 ? _a : "";
32
+ };
33
+ exports.createCoreServicesOrgUrl = function (orgId, geoName) {
34
+ return "https://m-" + orgId + "." + geoName + ".omnichannelengagementhub.com";
35
+ };
36
+ //# sourceMappingURL=CoreServicesUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoreServicesUtils.js","sourceRoot":"","sources":["../../src/utils/CoreServicesUtils.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAQ;IAC5C,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,MAAM,CAAC,OAAO;CAC5B,CAAA;AAEY,QAAA,wBAAwB,GAAG,YAAY,CAAC;AAExC,QAAA,gBAAgB,GAAG,uCAAuC,CAAC;AAE3D,QAAA,iCAAiC,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAEzD,QAAA,sBAAsB,GAAG,UAAC,oBAA4B;;IAC/D,aAAO,mCAA2B,CAAC,oBAAoB,CAAC,mCAAI,EAAE,CAAC;AACnE,CAAC,CAAC;AAEW,QAAA,wBAAwB,GAAG,UAAC,KAAa,EAAE,OAAe;IACnE,OAAO,eAAa,KAAK,SAAI,OAAO,kCAA+B,CAAC;AACxE,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Utility function that are only meant to be used internally. It would not guarantee backward compatibility if they were used outside of the package.
3
+ */
4
+ export declare const isCoreServicesOrgUrlDNSError: (error: any, coreServicesOrgUrl: string | null, dynamicsLocationCode: string | null) => boolean;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Utility function that are only meant to be used internally. It would not guarantee backward compatibility if they were used outside of the package.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.isCoreServicesOrgUrlDNSError = void 0;
7
+ var AxiosErrorCodes_1 = require("../core/AxiosErrorCodes");
8
+ exports.isCoreServicesOrgUrlDNSError = function (error, coreServicesOrgUrl, dynamicsLocationCode) {
9
+ // Validating whether it's an 'ERR_NAME_NOT_RESOLVED' error
10
+ // `ERR_NETWORK` could return false positives since the error can be caused by network disconnection
11
+ var isDNSUrlResolveError = error.isAxiosError && error.code == AxiosErrorCodes_1.default.ERR_NETWORK;
12
+ if (isDNSUrlResolveError && coreServicesOrgUrl && dynamicsLocationCode) {
13
+ return true;
14
+ }
15
+ return false;
16
+ };
17
+ //# sourceMappingURL=internalUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internalUtils.js","sourceRoot":"","sources":["../../src/utils/internalUtils.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,2DAAsD;AAEzC,QAAA,4BAA4B,GAAG,UAAC,KAAU,EAAE,kBAAiC,EAAE,oBAAmC;IAC3H,2DAA2D;IAC3D,oGAAoG;IACpG,IAAM,oBAAoB,GAAG,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,IAAI,yBAAe,CAAC,WAAW,CAAC;IAC7F,IAAI,oBAAoB,IAAI,kBAAkB,IAAI,oBAAoB,EAAE;QACpE,OAAO,IAAI,CAAC;KACf;IAED,OAAO,KAAK,CAAC;AACjB,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import AriaTelemetry from "../telemetry/AriaTelemetry";
2
+ import { ACSAdapterLogger, ACSClientLogger, AMSClientLogger, CallingSDKLogger, IC3ClientLogger, OCSDKLogger } from "./loggers";
3
+ export declare const useTelemetry: (telemetry: typeof AriaTelemetry, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
4
+ export declare const setRuntimeId: (runtimeId: string, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
5
+ export declare const setRequestId: (requestId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
6
+ export declare const setDebug: (flag: boolean, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
7
+ export declare const setChatId: (chatId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
8
+ declare const _default: {
9
+ useTelemetry: (telemetry: typeof AriaTelemetry, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
10
+ setRuntimeId: (runtimeId: string, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
11
+ setRequestId: (requestId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
12
+ setDebug: (flag: boolean, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
13
+ setChatId: (chatId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
14
+ };
15
+ export default _default;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setChatId = exports.setDebug = exports.setRequestId = exports.setRuntimeId = exports.useTelemetry = void 0;
4
+ exports.useTelemetry = function (telemetry, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
5
+ if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
6
+ ocSdkLogger.useTelemetry(telemetry);
7
+ acsClientLogger.useTelemetry(telemetry);
8
+ acsAdapterLogger.useTelemetry(telemetry);
9
+ callingSdkLogger.useTelemetry(telemetry);
10
+ amsClientLogger.useTelemetry(telemetry);
11
+ ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.useTelemetry(telemetry);
12
+ };
13
+ exports.setRuntimeId = function (runtimeId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
14
+ if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
15
+ ocSdkLogger.setRuntimeId(runtimeId);
16
+ acsClientLogger.setRuntimeId(runtimeId);
17
+ acsAdapterLogger.setRuntimeId(runtimeId);
18
+ callingSdkLogger.setRuntimeId(runtimeId);
19
+ amsClientLogger.setRuntimeId(runtimeId);
20
+ ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setRuntimeId(runtimeId);
21
+ };
22
+ exports.setRequestId = function (requestId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
23
+ if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
24
+ ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setRequestId(requestId);
25
+ acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setRequestId(requestId);
26
+ acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setRequestId(requestId);
27
+ callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setRequestId(requestId);
28
+ amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setRequestId(requestId);
29
+ ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setRequestId(requestId);
30
+ };
31
+ exports.setDebug = function (flag, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
32
+ if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
33
+ ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setDebug(flag);
34
+ acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setDebug(flag);
35
+ acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setDebug(flag);
36
+ callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setDebug(flag);
37
+ amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setDebug(flag);
38
+ ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setDebug(flag);
39
+ };
40
+ exports.setChatId = function (chatId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
41
+ if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
42
+ ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setChatId(chatId);
43
+ acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setChatId(chatId);
44
+ acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setChatId(chatId);
45
+ callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setChatId(chatId);
46
+ amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setChatId(chatId);
47
+ ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setChatId(chatId);
48
+ };
49
+ exports.default = {
50
+ useTelemetry: exports.useTelemetry,
51
+ setRuntimeId: exports.setRuntimeId,
52
+ setRequestId: exports.setRequestId,
53
+ setDebug: exports.setDebug,
54
+ setChatId: exports.setChatId
55
+ };
56
+ //# sourceMappingURL=loggerUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loggerUtils.js","sourceRoot":"","sources":["../../src/utils/loggerUtils.ts"],"names":[],"mappings":"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"}
@@ -1,3 +1,5 @@
1
1
  export declare const isSystemMessage: (message: any) => boolean;
2
2
  export declare const isCustomerMessage: (message: any) => boolean;
3
3
  export declare const isClientIdNotFoundErrorMessage: (e: any) => boolean;
4
+ export declare const isNotEmpty: (value: string | null) => boolean;
5
+ export declare const getRuntimeId: (externalRuntimeId: string | null) => string;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isClientIdNotFoundErrorMessage = exports.isCustomerMessage = exports.isSystemMessage = void 0;
3
+ exports.getRuntimeId = exports.isNotEmpty = exports.isClientIdNotFoundErrorMessage = exports.isCustomerMessage = exports.isSystemMessage = void 0;
4
4
  var ACSParticipantDisplayName_1 = require("../core/messaging/ACSParticipantDisplayName");
5
5
  var MessageType_1 = require("@microsoft/omnichannel-ic3core/lib/model/MessageType");
6
+ var __1 = require("..");
6
7
  exports.isSystemMessage = function (message) {
7
8
  var messageType = message.messageType, properties = message.properties;
8
9
  var conditionV1 = messageType === MessageType_1.default.UserMessage
@@ -24,4 +25,13 @@ exports.isClientIdNotFoundErrorMessage = function (e) {
24
25
  return ((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.status) === 401
25
26
  && ((_c = (_b = e === null || e === void 0 ? void 0 : e.response) === null || _b === void 0 ? void 0 : _b.headers) === null || _c === void 0 ? void 0 : _c.message) === "UserId not found";
26
27
  };
28
+ exports.isNotEmpty = function (value) {
29
+ return value !== null && value !== undefined && value.trim() !== '';
30
+ };
31
+ exports.getRuntimeId = function (externalRuntimeId) {
32
+ if (externalRuntimeId !== null && exports.isNotEmpty(externalRuntimeId)) {
33
+ return externalRuntimeId;
34
+ }
35
+ return __1.uuidv4();
36
+ };
27
37
  //# sourceMappingURL=utilities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../src/utils/utilities.ts"],"names":[],"mappings":";;;AAAA,yFAAoF;AACpF,oFAA+E;AAElE,QAAA,eAAe,GAAG,UAAC,OAAY;IACjC,IAAA,WAAW,GAAgB,OAAO,YAAvB,EAAE,UAAU,GAAI,OAAO,WAAX,CAAY;IAE1C,IAAM,WAAW,GAAG,WAAW,KAAK,qBAAW,CAAC,WAAW;WACxD,UAAU;WACV,UAAU,CAAC,IAAI;WACf,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEtC,IAAM,WAAW,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACpE,OAAO,WAAW,IAAI,WAAW,IAAI,KAAK,CAAC;AAC/C,CAAC,CAAA;AAEY,QAAA,iBAAiB,GAAG,UAAC,OAAY;IACnC,IAAA,MAAM,GAAI,OAAO,OAAX,CAAY;IAEzB,IAAM,WAAW,GAAG,MAAM,IAAI,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC7E,IAAM,WAAW,GAAG,MAAM,IAAI,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,KAAK,mCAAyB,CAAC,QAAQ,CAAC;IAE9G,OAAO,WAAW,IAAI,WAAW,IAAI,KAAK,CAAC;AAC/C,CAAC,CAAA;AAED,iHAAiH;AACpG,QAAA,8BAA8B,GAAG,UAAC,CAAM;;IACjD,OAAO,OAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,QAAQ,0CAAE,MAAM,MAAK,GAAG;WAC3B,aAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,QAAQ,0CAAE,OAAO,0CAAE,OAAO,MAAK,kBAAkB,CAAC;AAChE,CAAC,CAAA"}
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../src/utils/utilities.ts"],"names":[],"mappings":";;;AAAA,yFAAoF;AACpF,oFAA+E;AAC/E,wBAA4B;AAEf,QAAA,eAAe,GAAG,UAAC,OAAY;IACjC,IAAA,WAAW,GAAgB,OAAO,YAAvB,EAAE,UAAU,GAAI,OAAO,WAAX,CAAY;IAE1C,IAAM,WAAW,GAAG,WAAW,KAAK,qBAAW,CAAC,WAAW;WACxD,UAAU;WACV,UAAU,CAAC,IAAI;WACf,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEtC,IAAM,WAAW,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACpE,OAAO,WAAW,IAAI,WAAW,IAAI,KAAK,CAAC;AAC/C,CAAC,CAAA;AAEY,QAAA,iBAAiB,GAAG,UAAC,OAAY;IACnC,IAAA,MAAM,GAAI,OAAO,OAAX,CAAY;IAEzB,IAAM,WAAW,GAAG,MAAM,IAAI,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC7E,IAAM,WAAW,GAAG,MAAM,IAAI,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,KAAK,mCAAyB,CAAC,QAAQ,CAAC;IAE9G,OAAO,WAAW,IAAI,WAAW,IAAI,KAAK,CAAC;AAC/C,CAAC,CAAA;AAED,iHAAiH;AACpG,QAAA,8BAA8B,GAAG,UAAC,CAAM;;IACjD,OAAO,OAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,QAAQ,0CAAE,MAAM,MAAK,GAAG;WAC3B,aAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,QAAQ,0CAAE,OAAO,0CAAE,OAAO,MAAK,kBAAkB,CAAC;AAChE,CAAC,CAAA;AAEY,QAAA,UAAU,GAAG,UAAC,KAAoB;IAC3C,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AACxE,CAAC,CAAA;AAEY,QAAA,YAAY,GAAG,UAAC,iBAAiC;IAC1D,IAAI,iBAAiB,KAAK,IAAI,IAAI,kBAAU,CAAC,iBAAiB,CAAC,EAAE;QAC7D,OAAO,iBAAiB,CAAC;KAC5B;IACD,OAAO,UAAM,EAAE,CAAC;AACpB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-sdk",
3
- "version": "1.8.1-main.dde2906",
3
+ "version": "1.8.1-main.e44745c",
4
4
  "description": "Microsoft Omnichannel Chat SDK",
5
5
  "files": [
6
6
  "lib/**/*"