@microsoft/omnichannel-chat-sdk 1.2.1-main.f777b2c → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +14 -3
- package/lib/OmnichannelChatSDK.d.ts +5 -1
- package/lib/OmnichannelChatSDK.js +287 -180
- package/lib/OmnichannelChatSDK.js.map +1 -1
- package/lib/config/settings.d.ts +1 -1
- package/lib/config/settings.js +1 -1
- package/lib/core/ChatSDKErrors.d.ts +2 -0
- package/lib/core/ChatSDKErrors.js +2 -0
- package/lib/core/ChatSDKErrors.js.map +1 -1
- package/lib/core/ChatSDKExceptionDetails.d.ts +1 -0
- package/lib/core/GetAgentAvailabilityOptionalParams.d.ts +13 -0
- package/lib/core/GetAgentAvailabilityOptionalParams.js +3 -0
- package/lib/core/GetAgentAvailabilityOptionalParams.js.map +1 -0
- package/lib/core/PostChatContext.d.ts +2 -0
- package/lib/core/StartChatOptionalParams.d.ts +4 -0
- package/lib/core/messaging/ACSClient.js +5 -0
- package/lib/core/messaging/ACSClient.js.map +1 -1
- package/lib/external/ACSAdapter/AMSFileManager.js +2 -1
- package/lib/external/ACSAdapter/AMSFileManager.js.map +1 -1
- package/lib/telemetry/AriaTelemetry.d.ts +1 -0
- package/lib/telemetry/AriaTelemetry.js +49 -0
- package/lib/telemetry/AriaTelemetry.js.map +1 -1
- package/lib/telemetry/ScenarioType.d.ts +1 -0
- package/lib/telemetry/ScenarioType.js +1 -0
- package/lib/telemetry/ScenarioType.js.map +1 -1
- package/lib/telemetry/TelemetryEvent.d.ts +3 -1
- package/lib/telemetry/TelemetryEvent.js +2 -0
- package/lib/telemetry/TelemetryEvent.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +172 -98
- package/lib/utils/WebUtils.d.ts +2 -2
- package/lib/utils/WebUtils.js +30 -4
- package/lib/utils/WebUtils.js.map +1 -1
- package/lib/utils/chatAdapterCreators.js +67 -30
- package/lib/utils/chatAdapterCreators.js.map +1 -1
- package/lib/utils/location.d.ts +7 -0
- package/lib/utils/location.js +96 -0
- package/lib/utils/location.js.map +1 -0
- package/lib/utils/loggers.d.ts +16 -0
- package/lib/utils/loggers.js +69 -1
- package/lib/utils/loggers.js.map +1 -1
- package/lib/utils/sleep.d.ts +2 -0
- package/lib/utils/sleep.js +5 -0
- package/lib/utils/sleep.js.map +1 -0
- package/package.json +3 -3
package/lib/tsconfig.tsbuildinfo
CHANGED
@@ -252,13 +252,13 @@
|
|
252
252
|
"affectsGlobalScope": false
|
253
253
|
},
|
254
254
|
"../src/config/settings.ts": {
|
255
|
-
"version": "
|
256
|
-
"signature": "
|
255
|
+
"version": "21507cd07dde59422151e28965cb6711d191a9d9da883d664531443c1e6aa6fa",
|
256
|
+
"signature": "d282ceab2cd95094bf3ce0e9d6c8311936e10ddf9c3d742a7dfcd8638604eaa2",
|
257
257
|
"affectsGlobalScope": false
|
258
258
|
},
|
259
259
|
"../src/telemetry/ScenarioType.ts": {
|
260
|
-
"version": "
|
261
|
-
"signature": "
|
260
|
+
"version": "41b8be933617a4c228ec78fa33618f963a5b1a9e3ea8db020ec2ef296f62fa3b",
|
261
|
+
"signature": "4f07b1ea4acbb0139ff36eedd3fa03d132e80e7e7a44a543135f955bfc9482b2",
|
262
262
|
"affectsGlobalScope": false
|
263
263
|
},
|
264
264
|
"../src/utils/platform.ts": {
|
@@ -267,8 +267,8 @@
|
|
267
267
|
"affectsGlobalScope": false
|
268
268
|
},
|
269
269
|
"../src/telemetry/AriaTelemetry.ts": {
|
270
|
-
"version": "
|
271
|
-
"signature": "
|
270
|
+
"version": "0101745f6bc8fab24f5d2986cff6544dce740ac99606b547f362b85eb65470e7",
|
271
|
+
"signature": "ddac64d3c296ab2f666d19ea2dff288638718bf4b83909068c6abe32938136bc",
|
272
272
|
"affectsGlobalScope": false
|
273
273
|
},
|
274
274
|
"../src/telemetry/StopWatch.ts": {
|
@@ -287,8 +287,8 @@
|
|
287
287
|
"affectsGlobalScope": false
|
288
288
|
},
|
289
289
|
"../src/utils/loggers.ts": {
|
290
|
-
"version": "
|
291
|
-
"signature": "
|
290
|
+
"version": "5d2129d9831b04ad6edec6e5fa3143e43da1606ffe2e1e47b7bb12528c41d224",
|
291
|
+
"signature": "2b0ce57fef08fcf0909b07322cb777b3734a7018fc06a58f4ed40753029033cc",
|
292
292
|
"affectsGlobalScope": false
|
293
293
|
},
|
294
294
|
"../src/core/messaging/ACSChatMessageType.ts": {
|
@@ -1252,7 +1252,7 @@
|
|
1252
1252
|
"affectsGlobalScope": false
|
1253
1253
|
},
|
1254
1254
|
"../src/core/messaging/ACSClient.ts": {
|
1255
|
-
"version": "
|
1255
|
+
"version": "858f9ebe1ac24c6c3557c77ee379302cd11b388ea6eea672f12133de6a84dce4",
|
1256
1256
|
"signature": "28a3d5f437e0763357c46c79f3fc97c30bb84b37be5951b303e143a9f049f317",
|
1257
1257
|
"affectsGlobalScope": false
|
1258
1258
|
},
|
@@ -1272,8 +1272,8 @@
|
|
1272
1272
|
"affectsGlobalScope": false
|
1273
1273
|
},
|
1274
1274
|
"../node_modules/@microsoft/ocsdk/lib/Model/InitContext.d.ts": {
|
1275
|
-
"version": "
|
1276
|
-
"signature": "
|
1275
|
+
"version": "f8293d82ecb18c2b372cdde9836b0666f941495f59462955936d4c152c4dbf2e",
|
1276
|
+
"signature": "f8293d82ecb18c2b372cdde9836b0666f941495f59462955936d4c152c4dbf2e",
|
1277
1277
|
"affectsGlobalScope": false
|
1278
1278
|
},
|
1279
1279
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IGetQueueAvailabilityOptionalParams.d.ts": {
|
@@ -1291,9 +1291,14 @@
|
|
1291
1291
|
"signature": "bc4fea3618840ae16ce081ff05dd571a1a538438d4d4afabd3b0fa58507069b9",
|
1292
1292
|
"affectsGlobalScope": false
|
1293
1293
|
},
|
1294
|
+
"../node_modules/@microsoft/ocsdk/lib/Common/RequestTimeoutConfig.d.ts": {
|
1295
|
+
"version": "9c74abd459c8cb96ee08ac892f46296bab93e557eae3f41061205da44c5d92f0",
|
1296
|
+
"signature": "9c74abd459c8cb96ee08ac892f46296bab93e557eae3f41061205da44c5d92f0",
|
1297
|
+
"affectsGlobalScope": false
|
1298
|
+
},
|
1294
1299
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/ISDKConfiguration.d.ts": {
|
1295
|
-
"version": "
|
1296
|
-
"signature": "
|
1300
|
+
"version": "ec8aa2b065646d8a3451da66278749582d70fab8605ad064249518433e4acd80",
|
1301
|
+
"signature": "ec8aa2b065646d8a3451da66278749582d70fab8605ad064249518433e4acd80",
|
1297
1302
|
"affectsGlobalScope": false
|
1298
1303
|
},
|
1299
1304
|
"../node_modules/@microsoft/ocsdk/lib/Model/IOCSDKLogData.d.ts": {
|
@@ -1326,44 +1331,14 @@
|
|
1326
1331
|
"signature": "3fdc76aa38bc8ab2f3d94427007dcd481d55451d62c952fe0e8d35724cc72dbb",
|
1327
1332
|
"affectsGlobalScope": true
|
1328
1333
|
},
|
1329
|
-
"../src/utils/locale.ts": {
|
1330
|
-
"version": "f5f90f8b237a9deb157d50662f9ad18a21ef4160f955cf36335cd3064c97d964",
|
1331
|
-
"signature": "5b54da096dea549fc0673441ad9f9444241dab6e5816cf2121eda166cf0957b0",
|
1332
|
-
"affectsGlobalScope": false
|
1333
|
-
},
|
1334
|
-
"../src/utils/WebUtils.ts": {
|
1335
|
-
"version": "fbd050f037bf79d2327a0fc64a5561f887df0a2fbbbe82d2413aa3583ea0d0bc",
|
1336
|
-
"signature": "f5b58a21ee38dbcc07b10d67b04a370d4126d733f3148112448d88f8e5c6ad0c",
|
1337
|
-
"affectsGlobalScope": false
|
1338
|
-
},
|
1339
|
-
"../src/core/messaging/ChatAdapterConfig.ts": {
|
1340
|
-
"version": "a62b71810516b438a8d242118e83b2b1c073323f7dfc08d21e2dadac0c800e0f",
|
1341
|
-
"signature": "74052f43d552c2a0a4528922c3fc6e97ce3ad9171ad811ec2eda04ad1c7fec5b",
|
1342
|
-
"affectsGlobalScope": false
|
1343
|
-
},
|
1344
|
-
"../src/core/messaging/IC3Config.ts": {
|
1345
|
-
"version": "87c0c3462d614fefbec74dd817da8310ff2ca74347b2cce087ff985dc1ea10e1",
|
1346
|
-
"signature": "ab7f1dd689910cdafb5f5e687aa32fc9d0eb71b3b2eb2c7b27b17c88ec3bb601",
|
1347
|
-
"affectsGlobalScope": false
|
1348
|
-
},
|
1349
|
-
"../src/core/ChatSDKConfig.ts": {
|
1350
|
-
"version": "603ebd909d167b7f279141075a08850223be221bb8cdeec59e73106f0f3ee93d",
|
1351
|
-
"signature": "53e8c351baa07b8ffb200cfc31b229f8cc4a4dbb22bdc01f48a67d1bbb851d64",
|
1352
|
-
"affectsGlobalScope": false
|
1353
|
-
},
|
1354
|
-
"../src/validators/SDKConfigValidators.ts": {
|
1355
|
-
"version": "4bbb4400f948db78efff6cf3eec05e1ae2115814c074f8681b4a7bb171862c76",
|
1356
|
-
"signature": "543cfd36181a83d211fc7b43429b2e93cbed6cbfae0eb0fda3db73d17b8034e5",
|
1357
|
-
"affectsGlobalScope": false
|
1358
|
-
},
|
1359
1334
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/AMSFileInfo.d.ts": {
|
1360
1335
|
"version": "4bc3aed4d89e2f356f799320880ac180fe8654cf06d2fc7544b619ee93d72cbe",
|
1361
1336
|
"signature": "4bc3aed4d89e2f356f799320880ac180fe8654cf06d2fc7544b619ee93d72cbe",
|
1362
1337
|
"affectsGlobalScope": false
|
1363
1338
|
},
|
1364
1339
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/AMSLogData.d.ts": {
|
1365
|
-
"version": "
|
1366
|
-
"signature": "
|
1340
|
+
"version": "4b19de357229164d37d79bbc4c15899c04783029a6e32e905a04d00b15b62891",
|
1341
|
+
"signature": "4b19de357229164d37d79bbc4c15899c04783029a6e32e905a04d00b15b62891",
|
1367
1342
|
"affectsGlobalScope": false
|
1368
1343
|
},
|
1369
1344
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/LogLevel.d.ts": {
|
@@ -1417,63 +1392,43 @@
|
|
1417
1392
|
"affectsGlobalScope": false
|
1418
1393
|
},
|
1419
1394
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/FramedClient.d.ts": {
|
1420
|
-
"version": "
|
1421
|
-
"signature": "
|
1395
|
+
"version": "2c0ae0564affedb861cdd9ba2246a6a376db7445992502c2655a0b59a3179940",
|
1396
|
+
"signature": "2c0ae0564affedb861cdd9ba2246a6a376db7445992502c2655a0b59a3179940",
|
1422
1397
|
"affectsGlobalScope": false
|
1423
1398
|
},
|
1424
1399
|
"../src/external/ACSAdapter/AMSFileManager.ts": {
|
1425
|
-
"version": "
|
1400
|
+
"version": "cff06542b3c9e133a3312857cf5b793c943c541d5dc3074905ae2fd0f4079ed0",
|
1426
1401
|
"signature": "dc59a002e25bafa3e10743cc81cef24559515a781abe259ff33ac80ce3b188ba",
|
1427
1402
|
"affectsGlobalScope": false
|
1428
1403
|
},
|
1429
|
-
"../src/core/AuthSettings.ts": {
|
1430
|
-
"version": "4efe92d973f8dbdc6e2ca3ab1451ca1e5baea281c1120ba6ee7abea281960ab7",
|
1431
|
-
"signature": "5f9d44ad571211eb8b98e51143bb0431d816f1a4e57ca313f3b557537260ddb4",
|
1432
|
-
"affectsGlobalScope": false
|
1433
|
-
},
|
1434
|
-
"../src/core/CallingOptionsOptionSetNumber.ts": {
|
1435
|
-
"version": "82e75264807e2314a1f51544201b8654d7be15d734a091e15ecef2638dd469a2",
|
1436
|
-
"signature": "c0143ebc391a99cee8da206d18341a7d36bcc101fcc35a3b8f300ca67e0d7bf5",
|
1437
|
-
"affectsGlobalScope": false
|
1438
|
-
},
|
1439
1404
|
"../src/core/messaging/ChatAdapterOptionalParams.ts": {
|
1440
1405
|
"version": "853d483cda2ce2a59798a1fa1cac6b5f85d40577b402309ce375b774de01bb51",
|
1441
1406
|
"signature": "370d26c4b6b2da743e2924ce8556efec163a31546060941b8a01c2c327c57d4d",
|
1442
1407
|
"affectsGlobalScope": false
|
1443
1408
|
},
|
1444
|
-
"../src/core/messaging/
|
1445
|
-
"version": "
|
1446
|
-
"signature": "
|
1447
|
-
"affectsGlobalScope": false
|
1448
|
-
},
|
1449
|
-
"../src/core/ChatConfig.ts": {
|
1450
|
-
"version": "9a57c56da2bf5c885b27a528e26e04df7b01759997e4037b22a787522c930c73",
|
1451
|
-
"signature": "389651771cefd5293b6ce95f38887b80ce3b907c1abdb8444b8f32126aa17d5a",
|
1409
|
+
"../src/core/messaging/ChatAdapterConfig.ts": {
|
1410
|
+
"version": "a62b71810516b438a8d242118e83b2b1c073323f7dfc08d21e2dadac0c800e0f",
|
1411
|
+
"signature": "74052f43d552c2a0a4528922c3fc6e97ce3ad9171ad811ec2eda04ad1c7fec5b",
|
1452
1412
|
"affectsGlobalScope": false
|
1453
1413
|
},
|
1454
|
-
"../src/core/
|
1455
|
-
"version": "
|
1456
|
-
"signature": "
|
1414
|
+
"../src/core/messaging/IC3Config.ts": {
|
1415
|
+
"version": "87c0c3462d614fefbec74dd817da8310ff2ca74347b2cce087ff985dc1ea10e1",
|
1416
|
+
"signature": "ab7f1dd689910cdafb5f5e687aa32fc9d0eb71b3b2eb2c7b27b17c88ec3bb601",
|
1457
1417
|
"affectsGlobalScope": false
|
1458
1418
|
},
|
1459
|
-
"../src/core/
|
1460
|
-
"version": "
|
1461
|
-
"signature": "
|
1419
|
+
"../src/core/ChatSDKConfig.ts": {
|
1420
|
+
"version": "603ebd909d167b7f279141075a08850223be221bb8cdeec59e73106f0f3ee93d",
|
1421
|
+
"signature": "53e8c351baa07b8ffb200cfc31b229f8cc4a4dbb22bdc01f48a67d1bbb851d64",
|
1462
1422
|
"affectsGlobalScope": false
|
1463
1423
|
},
|
1464
1424
|
"../src/core/ChatSDKErrors.ts": {
|
1465
|
-
"version": "
|
1466
|
-
"signature": "
|
1425
|
+
"version": "d7ffebab8323bfe2008d0a193c1f9997128cd03508ced7dfa429f8e50cfd2cc7",
|
1426
|
+
"signature": "edf35d41ff1167bf716c49dfc095d6d7defb300339b4af80afc7f5718c518b79",
|
1467
1427
|
"affectsGlobalScope": false
|
1468
1428
|
},
|
1469
1429
|
"../src/core/ChatSDKExceptionDetails.ts": {
|
1470
|
-
"version": "
|
1471
|
-
"signature": "
|
1472
|
-
"affectsGlobalScope": false
|
1473
|
-
},
|
1474
|
-
"../src/core/ChatTranscriptBody.ts": {
|
1475
|
-
"version": "5d5c735e2f1c4e29cd55582a053de81b79327f46320180b9fa25613d7c3a1454",
|
1476
|
-
"signature": "bd027df8152d6a709feb6b35c6335c365210281ef06f361c9a54cbeb0330ff9c",
|
1430
|
+
"version": "65254ff05a6a79bee022503a2edae60892db888a990075487743528267f4bf7a",
|
1431
|
+
"signature": "8abb04dd1381db42e0c0d7d3fe08e17b77aaf693c221f9b092e69308fac326f3",
|
1477
1432
|
"affectsGlobalScope": false
|
1478
1433
|
},
|
1479
1434
|
"../src/external/ACSAdapter/createChannelDataEgressMiddleware.ts": {
|
@@ -1556,9 +1511,24 @@
|
|
1556
1511
|
"signature": "f49c0cd702049afbc35caedd60bcdde8ec45176061d89deb5822d52140782a5a",
|
1557
1512
|
"affectsGlobalScope": false
|
1558
1513
|
},
|
1514
|
+
"../src/utils/sleep.ts": {
|
1515
|
+
"version": "984327fe4c8ffd3aa33840ba069bbf3fc975c341fde0e0f748b44a99be771fba",
|
1516
|
+
"signature": "199a87d4c3d4e3261b1d2386e4ebaa8fd8779c1e55c7bdfd2c6efab71f32191a",
|
1517
|
+
"affectsGlobalScope": false
|
1518
|
+
},
|
1519
|
+
"../src/utils/WebUtils.ts": {
|
1520
|
+
"version": "e9b4ee5af0f98661752fe787925eef1729ee158d9db563bfbbde2797cf436833",
|
1521
|
+
"signature": "64014750a5759f2bf00d4871a1368772b4c86a431a718b2d7387eb4923eb0936",
|
1522
|
+
"affectsGlobalScope": false
|
1523
|
+
},
|
1559
1524
|
"../src/telemetry/TelemetryEvent.ts": {
|
1560
|
-
"version": "
|
1561
|
-
"signature": "
|
1525
|
+
"version": "3db68b81716c4794a80f0a040e166855b55a942ff3f09381eaaa891181c5c70b",
|
1526
|
+
"signature": "8865ab550defbcabb39d7fb9b63f574dc808d4d7418db3dea3788ee34751d01a",
|
1527
|
+
"affectsGlobalScope": false
|
1528
|
+
},
|
1529
|
+
"../src/core/messaging/ChatAdapterProtocols.ts": {
|
1530
|
+
"version": "0eb9e2248575e69d38be1dcb98d206789e7f602c74a06975115c617e5ac83997",
|
1531
|
+
"signature": "ad6a20c94d7fb8a46d685bbb9010f26a69fc9d8a11dbecd7b69d15f3dbfb7362",
|
1562
1532
|
"affectsGlobalScope": false
|
1563
1533
|
},
|
1564
1534
|
"../src/utils/libraries.ts": {
|
@@ -1572,10 +1542,50 @@
|
|
1572
1542
|
"affectsGlobalScope": false
|
1573
1543
|
},
|
1574
1544
|
"../src/utils/chatAdapterCreators.ts": {
|
1575
|
-
"version": "
|
1545
|
+
"version": "dab1eb3fe65a1983290dcdb67af2fd80ab1f0037041057e1539bcb10b963fa82",
|
1576
1546
|
"signature": "b7ff6b5e527719c70f346439a1dddeb7dc3a263528b06008d946db0826dfa434",
|
1577
1547
|
"affectsGlobalScope": false
|
1578
1548
|
},
|
1549
|
+
"../src/utils/locale.ts": {
|
1550
|
+
"version": "f5f90f8b237a9deb157d50662f9ad18a21ef4160f955cf36335cd3064c97d964",
|
1551
|
+
"signature": "5b54da096dea549fc0673441ad9f9444241dab6e5816cf2121eda166cf0957b0",
|
1552
|
+
"affectsGlobalScope": false
|
1553
|
+
},
|
1554
|
+
"../src/validators/SDKConfigValidators.ts": {
|
1555
|
+
"version": "4bbb4400f948db78efff6cf3eec05e1ae2115814c074f8681b4a7bb171862c76",
|
1556
|
+
"signature": "543cfd36181a83d211fc7b43429b2e93cbed6cbfae0eb0fda3db73d17b8034e5",
|
1557
|
+
"affectsGlobalScope": false
|
1558
|
+
},
|
1559
|
+
"../src/core/AuthSettings.ts": {
|
1560
|
+
"version": "4efe92d973f8dbdc6e2ca3ab1451ca1e5baea281c1120ba6ee7abea281960ab7",
|
1561
|
+
"signature": "5f9d44ad571211eb8b98e51143bb0431d816f1a4e57ca313f3b557537260ddb4",
|
1562
|
+
"affectsGlobalScope": false
|
1563
|
+
},
|
1564
|
+
"../src/core/CallingOptionsOptionSetNumber.ts": {
|
1565
|
+
"version": "82e75264807e2314a1f51544201b8654d7be15d734a091e15ecef2638dd469a2",
|
1566
|
+
"signature": "c0143ebc391a99cee8da206d18341a7d36bcc101fcc35a3b8f300ca67e0d7bf5",
|
1567
|
+
"affectsGlobalScope": false
|
1568
|
+
},
|
1569
|
+
"../src/core/ChatConfig.ts": {
|
1570
|
+
"version": "9a57c56da2bf5c885b27a528e26e04df7b01759997e4037b22a787522c930c73",
|
1571
|
+
"signature": "389651771cefd5293b6ce95f38887b80ce3b907c1abdb8444b8f32126aa17d5a",
|
1572
|
+
"affectsGlobalScope": false
|
1573
|
+
},
|
1574
|
+
"../src/core/ChatReconnectContext.ts": {
|
1575
|
+
"version": "84695a6b8db58e7ecfca619ffbfe16ffc62549910b3215e95dace8cdde7ca832",
|
1576
|
+
"signature": "1f7785b811b9b43feed40557cd53da6d4a04795733ca8b00f54be2f698877611",
|
1577
|
+
"affectsGlobalScope": false
|
1578
|
+
},
|
1579
|
+
"../src/core/ChatReconnectOptionalParams.ts": {
|
1580
|
+
"version": "7cad55b2883d986087fced4b108e8d5a4af8677aef56940b38d3d72d74ad2793",
|
1581
|
+
"signature": "7cad55b2883d986087fced4b108e8d5a4af8677aef56940b38d3d72d74ad2793",
|
1582
|
+
"affectsGlobalScope": false
|
1583
|
+
},
|
1584
|
+
"../src/core/ChatTranscriptBody.ts": {
|
1585
|
+
"version": "5d5c735e2f1c4e29cd55582a053de81b79327f46320180b9fa25613d7c3a1454",
|
1586
|
+
"signature": "bd027df8152d6a709feb6b35c6335c365210281ef06f361c9a54cbeb0330ff9c",
|
1587
|
+
"affectsGlobalScope": false
|
1588
|
+
},
|
1579
1589
|
"../src/core/ConversationMode.ts": {
|
1580
1590
|
"version": "a58a14e6e0a82ecf9eda05e54e8d62218cbed510f7a0603cbfb005eb4e4c6066",
|
1581
1591
|
"signature": "8ad3f69c9148ea3e9466496e84fc8302ec3a8bb7e809bcd8b378c4270ab5c137",
|
@@ -1592,8 +1602,13 @@
|
|
1592
1602
|
"affectsGlobalScope": false
|
1593
1603
|
},
|
1594
1604
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/FramedlessClient.d.ts": {
|
1595
|
-
"version": "
|
1596
|
-
"signature": "
|
1605
|
+
"version": "1a398bf01a4b64794866163930f318ddf46ed5b3c984d2cfedb04caea694c0c1",
|
1606
|
+
"signature": "1a398bf01a4b64794866163930f318ddf46ed5b3c984d2cfedb04caea694c0c1",
|
1607
|
+
"affectsGlobalScope": false
|
1608
|
+
},
|
1609
|
+
"../src/core/GetAgentAvailabilityOptionalParams.ts": {
|
1610
|
+
"version": "b1000844de13fb1065ab0b56d290c4ccd5075dd3e17f1d95c29ce4e589946cf5",
|
1611
|
+
"signature": "4e8b1fcc4e7e24b24003e7339d3bfd284623aa6906508413f06b999c7abf60c2",
|
1597
1612
|
"affectsGlobalScope": false
|
1598
1613
|
},
|
1599
1614
|
"../src/core/GetLiveChatConfigOptionalParams.ts": {
|
@@ -1686,11 +1701,6 @@
|
|
1686
1701
|
"signature": "8e21046747b1e28b30b6cc3517c6026669a301774d7f0d225c4bc215c2b2c39e",
|
1687
1702
|
"affectsGlobalScope": false
|
1688
1703
|
},
|
1689
|
-
"../src/core/InitializeOptionalParams.ts": {
|
1690
|
-
"version": "367697f8a953bb97449a538cbd50b9558be9c45180a2c03101e0b87a23437d2f",
|
1691
|
-
"signature": "ceadf968b29c30076a19ad87946b3814c9c1dace00b1a696d18007efef4287ab",
|
1692
|
-
"affectsGlobalScope": false
|
1693
|
-
},
|
1694
1704
|
"../node_modules/@microsoft/omnichannel-ic3core/lib/interfaces/IRawThread.d.ts": {
|
1695
1705
|
"version": "09c92ec2a3f96d9cc891feec03334da54379afb16439464edb4ce1a3017066c7",
|
1696
1706
|
"signature": "09c92ec2a3f96d9cc891feec03334da54379afb16439464edb4ce1a3017066c7",
|
@@ -1706,6 +1716,11 @@
|
|
1706
1716
|
"signature": "3925dc89c49ab8cef684136ff603bca1f53c2208d73e81f772db568d76d34fc3",
|
1707
1717
|
"affectsGlobalScope": false
|
1708
1718
|
},
|
1719
|
+
"../src/core/InitializeOptionalParams.ts": {
|
1720
|
+
"version": "367697f8a953bb97449a538cbd50b9558be9c45180a2c03101e0b87a23437d2f",
|
1721
|
+
"signature": "ceadf968b29c30076a19ad87946b3814c9c1dace00b1a696d18007efef4287ab",
|
1722
|
+
"affectsGlobalScope": false
|
1723
|
+
},
|
1709
1724
|
"../src/core/LiveChatContext.ts": {
|
1710
1725
|
"version": "5ecbe03b07f24f775351e12965b6e397f975f4776c8f756dfaf91ff64388208c",
|
1711
1726
|
"signature": "4a40f5c91c3b4d6d0486e9a6eac8a0aa17a2f1811dc53671efdd6766afe899ff",
|
@@ -1732,13 +1747,13 @@
|
|
1732
1747
|
"affectsGlobalScope": false
|
1733
1748
|
},
|
1734
1749
|
"../src/core/PostChatContext.ts": {
|
1735
|
-
"version": "
|
1736
|
-
"signature": "
|
1750
|
+
"version": "43212dfe025f4a2704525badfbd0cd13c7624c81b5495232c5148b3832338f4a",
|
1751
|
+
"signature": "a1cecc0e858ef8bb219f96a3d6aba8a4207f5e949fac61bfe0075872f1dae72b",
|
1737
1752
|
"affectsGlobalScope": false
|
1738
1753
|
},
|
1739
1754
|
"../src/core/StartChatOptionalParams.ts": {
|
1740
|
-
"version": "
|
1741
|
-
"signature": "
|
1755
|
+
"version": "85f275cd2ff3986c40b44b962aadf08c832ec0b013e5a3e006ab121c92ed34c5",
|
1756
|
+
"signature": "d343799018c5de58fd712661a0f417b6f22c6e2a2fe5f4dd21cee4727fe92b36",
|
1742
1757
|
"affectsGlobalScope": false
|
1743
1758
|
},
|
1744
1759
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/createAMSClient.d.ts": {
|
@@ -1761,6 +1776,11 @@
|
|
1761
1776
|
"signature": "07576387ef81a3926be172c4fdd1f2113a9d2453c2e9ebc2fd86622d5eec35de",
|
1762
1777
|
"affectsGlobalScope": false
|
1763
1778
|
},
|
1779
|
+
"../src/utils/location.ts": {
|
1780
|
+
"version": "f7f59dbbb3cb9c99c4e163cc2ab03e1efc729c09491639a01218e84da1d005b6",
|
1781
|
+
"signature": "15c36c63403168e638db8fe30dd94eba1d6bee09701c43eb93f2aafdeb33a09f",
|
1782
|
+
"affectsGlobalScope": false
|
1783
|
+
},
|
1764
1784
|
"../src/utils/utilities.ts": {
|
1765
1785
|
"version": "f1d06cde73f0a88b61677610f48c1075deff1bb9e798f35957c3112269692b6c",
|
1766
1786
|
"signature": "0aab6881e2a3e4d21d07fd8a2dae57ae7234e8ee9042b90d16d3381903171d95",
|
@@ -1772,8 +1792,8 @@
|
|
1772
1792
|
"affectsGlobalScope": false
|
1773
1793
|
},
|
1774
1794
|
"../src/OmnichannelChatSDK.ts": {
|
1775
|
-
"version": "
|
1776
|
-
"signature": "
|
1795
|
+
"version": "2ed24426b073e0a4b61a3832e1564acf80e81bc618135451e76de3afff939723",
|
1796
|
+
"signature": "bcafc65815a897cd4d5adb3f8d58cdbfcc283b13769500c2ffaa943ceb7f1aba",
|
1777
1797
|
"affectsGlobalScope": false
|
1778
1798
|
},
|
1779
1799
|
"../src/index.ts": {
|
@@ -3169,6 +3189,12 @@
|
|
3169
3189
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
3170
3190
|
"../node_modules/@types/node/util.d.ts"
|
3171
3191
|
],
|
3192
|
+
"../node_modules/@microsoft/ocsdk/lib/Common/RequestTimeoutConfig.d.ts": [
|
3193
|
+
"../node_modules/@types/node/fs.d.ts",
|
3194
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
3195
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
3196
|
+
"../node_modules/@types/node/util.d.ts"
|
3197
|
+
],
|
3172
3198
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IDataMaskingInfo.d.ts": [
|
3173
3199
|
"../node_modules/@types/node/fs.d.ts",
|
3174
3200
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
@@ -3229,6 +3255,7 @@
|
|
3229
3255
|
"../node_modules/@types/node/util.d.ts"
|
3230
3256
|
],
|
3231
3257
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/ISDKConfiguration.d.ts": [
|
3258
|
+
"../node_modules/@microsoft/ocsdk/lib/Common/RequestTimeoutConfig.d.ts",
|
3232
3259
|
"../node_modules/@types/node/fs.d.ts",
|
3233
3260
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
3234
3261
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
@@ -4438,6 +4465,7 @@
|
|
4438
4465
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IGetChatTokenOptionalParams.d.ts",
|
4439
4466
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IGetChatTranscriptsOptionalParams.d.ts",
|
4440
4467
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IGetLWIDetailsOptionalParams.d.ts",
|
4468
|
+
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IGetQueueAvailabilityOptionalParams.d.ts",
|
4441
4469
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IOmnichannelConfiguration.d.ts",
|
4442
4470
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IReconnectableChatsParams.d.ts",
|
4443
4471
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/ISDKConfiguration.d.ts",
|
@@ -4449,6 +4477,7 @@
|
|
4449
4477
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/FramedClient.d.ts",
|
4450
4478
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/FramedlessClient.d.ts",
|
4451
4479
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/OmnichannelChatToken.d.ts",
|
4480
|
+
"../node_modules/@microsoft/omnichannel-amsclient/lib/PluggableLogger.d.ts",
|
4452
4481
|
"../node_modules/@microsoft/omnichannel-amsclient/lib/index.d.ts",
|
4453
4482
|
"../node_modules/@microsoft/omnichannel-ic3core/lib/index.d.ts",
|
4454
4483
|
"../node_modules/@microsoft/omnichannel-ic3core/lib/interfaces/HostType.d.ts",
|
@@ -4482,6 +4511,7 @@
|
|
4482
4511
|
"../src/core/ChatSDKExceptionDetails.ts",
|
4483
4512
|
"../src/core/ChatTranscriptBody.ts",
|
4484
4513
|
"../src/core/ConversationMode.ts",
|
4514
|
+
"../src/core/GetAgentAvailabilityOptionalParams.ts",
|
4485
4515
|
"../src/core/GetLiveChatConfigOptionalParams.ts",
|
4486
4516
|
"../src/core/InitializeOptionalParams.ts",
|
4487
4517
|
"../src/core/LiveChatContext.ts",
|
@@ -4510,6 +4540,7 @@
|
|
4510
4540
|
"../src/utils/createOmnichannelMessage.ts",
|
4511
4541
|
"../src/utils/createTelemetry.ts",
|
4512
4542
|
"../src/utils/locale.ts",
|
4543
|
+
"../src/utils/location.ts",
|
4513
4544
|
"../src/utils/loggers.ts",
|
4514
4545
|
"../src/utils/platform.ts",
|
4515
4546
|
"../src/utils/urlResolvers.ts",
|
@@ -4594,6 +4625,13 @@
|
|
4594
4625
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
4595
4626
|
"../node_modules/@types/node/util.d.ts"
|
4596
4627
|
],
|
4628
|
+
"../src/core/GetAgentAvailabilityOptionalParams.ts": [
|
4629
|
+
"../node_modules/@microsoft/ocsdk/lib/Model/InitContext.d.ts",
|
4630
|
+
"../node_modules/@types/node/fs.d.ts",
|
4631
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
4632
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
4633
|
+
"../node_modules/@types/node/util.d.ts"
|
4634
|
+
],
|
4597
4635
|
"../src/core/GetLiveChatConfigOptionalParams.ts": [
|
4598
4636
|
"../node_modules/@types/node/fs.d.ts",
|
4599
4637
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
@@ -5159,7 +5197,8 @@
|
|
5159
5197
|
"../node_modules/@types/node/fs.d.ts",
|
5160
5198
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
5161
5199
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
5162
|
-
"../node_modules/@types/node/util.d.ts"
|
5200
|
+
"../node_modules/@types/node/util.d.ts",
|
5201
|
+
"../src/utils/sleep.ts"
|
5163
5202
|
],
|
5164
5203
|
"../src/utils/chatAdapterCreators.ts": [
|
5165
5204
|
"../node_modules/@azure/communication-chat/types/communication-chat.d.ts",
|
@@ -5168,6 +5207,8 @@
|
|
5168
5207
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
5169
5208
|
"../node_modules/@types/node/util.d.ts",
|
5170
5209
|
"../src/core/ChatSDKConfig.ts",
|
5210
|
+
"../src/core/ChatSDKErrors.ts",
|
5211
|
+
"../src/core/ChatSDKExceptionDetails.ts",
|
5171
5212
|
"../src/core/LiveChatVersion.ts",
|
5172
5213
|
"../src/core/OmnichannelConfig.ts",
|
5173
5214
|
"../src/core/messaging/ACSParticipantDisplayName.ts",
|
@@ -5216,6 +5257,15 @@
|
|
5216
5257
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
5217
5258
|
"../node_modules/@types/node/util.d.ts"
|
5218
5259
|
],
|
5260
|
+
"../src/utils/location.ts": [
|
5261
|
+
"../node_modules/@types/node/fs.d.ts",
|
5262
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
5263
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
5264
|
+
"../node_modules/@types/node/util.d.ts",
|
5265
|
+
"../src/telemetry/ScenarioMarker.ts",
|
5266
|
+
"../src/telemetry/TelemetryEvent.ts",
|
5267
|
+
"../src/utils/platform.ts"
|
5268
|
+
],
|
5219
5269
|
"../src/utils/loggers.ts": [
|
5220
5270
|
"../node_modules/@types/node/fs.d.ts",
|
5221
5271
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
@@ -5237,6 +5287,12 @@
|
|
5237
5287
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
5238
5288
|
"../node_modules/@types/node/util.d.ts"
|
5239
5289
|
],
|
5290
|
+
"../src/utils/sleep.ts": [
|
5291
|
+
"../node_modules/@types/node/fs.d.ts",
|
5292
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
5293
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
5294
|
+
"../node_modules/@types/node/util.d.ts"
|
5295
|
+
],
|
5240
5296
|
"../src/utils/urlResolvers.ts": [
|
5241
5297
|
"../node_modules/@types/node/fs.d.ts",
|
5242
5298
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
@@ -6420,6 +6476,12 @@
|
|
6420
6476
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
6421
6477
|
"../node_modules/@types/node/util.d.ts"
|
6422
6478
|
],
|
6479
|
+
"../node_modules/@microsoft/ocsdk/lib/Common/RequestTimeoutConfig.d.ts": [
|
6480
|
+
"../node_modules/@types/node/fs.d.ts",
|
6481
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
6482
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
6483
|
+
"../node_modules/@types/node/util.d.ts"
|
6484
|
+
],
|
6423
6485
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IDataMaskingInfo.d.ts": [
|
6424
6486
|
"../node_modules/@types/node/fs.d.ts",
|
6425
6487
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
@@ -6480,6 +6542,7 @@
|
|
6480
6542
|
"../node_modules/@types/node/util.d.ts"
|
6481
6543
|
],
|
6482
6544
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/ISDKConfiguration.d.ts": [
|
6545
|
+
"../node_modules/@microsoft/ocsdk/lib/Common/RequestTimeoutConfig.d.ts",
|
6483
6546
|
"../node_modules/@types/node/fs.d.ts",
|
6484
6547
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
6485
6548
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
@@ -7697,6 +7760,7 @@
|
|
7697
7760
|
"../src/core/ChatReconnectOptionalParams.ts",
|
7698
7761
|
"../src/core/ChatSDKConfig.ts",
|
7699
7762
|
"../src/core/ChatTranscriptBody.ts",
|
7763
|
+
"../src/core/GetAgentAvailabilityOptionalParams.ts",
|
7700
7764
|
"../src/core/GetLiveChatConfigOptionalParams.ts",
|
7701
7765
|
"../src/core/InitializeOptionalParams.ts",
|
7702
7766
|
"../src/core/LiveChatContext.ts",
|
@@ -7718,6 +7782,9 @@
|
|
7718
7782
|
"../src/core/messaging/ChatAdapterConfig.ts",
|
7719
7783
|
"../src/core/messaging/IC3Config.ts"
|
7720
7784
|
],
|
7785
|
+
"../src/core/GetAgentAvailabilityOptionalParams.ts": [
|
7786
|
+
"../node_modules/@microsoft/ocsdk/lib/Model/InitContext.d.ts"
|
7787
|
+
],
|
7721
7788
|
"../src/core/InitializeOptionalParams.ts": [
|
7722
7789
|
"../src/core/GetLiveChatConfigOptionalParams.ts"
|
7723
7790
|
],
|
@@ -8058,6 +8125,9 @@
|
|
8058
8125
|
"../src/utils/createTelemetry.ts": [
|
8059
8126
|
"../src/telemetry/AriaTelemetry.ts"
|
8060
8127
|
],
|
8128
|
+
"../src/utils/location.ts": [
|
8129
|
+
"../src/telemetry/ScenarioMarker.ts"
|
8130
|
+
],
|
8061
8131
|
"../src/utils/loggers.ts": [
|
8062
8132
|
"../src/core/OmnichannelConfig.ts",
|
8063
8133
|
"../src/external/CallingSDK/ICallingSDKLogData.ts",
|
@@ -8204,6 +8274,7 @@
|
|
8204
8274
|
"../node_modules/@azure/logger/types/logger.d.ts",
|
8205
8275
|
"../node_modules/@babel/parser/typings/babel-parser.d.ts",
|
8206
8276
|
"../node_modules/@babel/types/lib/index.d.ts",
|
8277
|
+
"../node_modules/@microsoft/ocsdk/lib/Common/RequestTimeoutConfig.d.ts",
|
8207
8278
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IDataMaskingInfo.d.ts",
|
8208
8279
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IEmailTranscriptOptionalParams.d.ts",
|
8209
8280
|
"../node_modules/@microsoft/ocsdk/lib/Interfaces/IGetChatTokenOptionalParams.d.ts",
|
@@ -8392,6 +8463,7 @@
|
|
8392
8463
|
"../src/core/ChatSDKExceptionDetails.ts",
|
8393
8464
|
"../src/core/ChatTranscriptBody.ts",
|
8394
8465
|
"../src/core/ConversationMode.ts",
|
8466
|
+
"../src/core/GetAgentAvailabilityOptionalParams.ts",
|
8395
8467
|
"../src/core/GetLiveChatConfigOptionalParams.ts",
|
8396
8468
|
"../src/core/InitializeOptionalParams.ts",
|
8397
8469
|
"../src/core/LiveChatContext.ts",
|
@@ -8473,8 +8545,10 @@
|
|
8473
8545
|
"../src/utils/createTelemetry.ts",
|
8474
8546
|
"../src/utils/libraries.ts",
|
8475
8547
|
"../src/utils/locale.ts",
|
8548
|
+
"../src/utils/location.ts",
|
8476
8549
|
"../src/utils/loggers.ts",
|
8477
8550
|
"../src/utils/platform.ts",
|
8551
|
+
"../src/utils/sleep.ts",
|
8478
8552
|
"../src/utils/urlResolvers.ts",
|
8479
8553
|
"../src/utils/utilities.ts",
|
8480
8554
|
"../src/validators/OmnichannelConfigValidator.ts",
|
package/lib/utils/WebUtils.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
declare const loadScript: (scriptUrl: string, callbackOnload?: CallableFunction, callbackError?: CallableFunction) => Promise<void>;
|
1
|
+
declare const loadScript: (scriptUrl: string, callbackOnload?: CallableFunction, callbackError?: CallableFunction, retries?: number, attempt?: number) => Promise<void>;
|
2
2
|
declare const removeElementById: (id: string) => void;
|
3
3
|
declare const _default: {
|
4
|
-
loadScript: (scriptUrl: string, callbackOnload?: CallableFunction, callbackError?: CallableFunction) => Promise<void>;
|
4
|
+
loadScript: (scriptUrl: string, callbackOnload?: CallableFunction, callbackError?: CallableFunction, retries?: number, attempt?: number) => Promise<void>;
|
5
5
|
removeElementById: (id: string) => void;
|
6
6
|
};
|
7
7
|
export default _default;
|
package/lib/utils/WebUtils.js
CHANGED
@@ -37,9 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
37
37
|
};
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
39
39
|
exports.removeElementById = exports.loadScript = void 0;
|
40
|
-
var
|
40
|
+
var sleep_1 = require("./sleep");
|
41
|
+
var defaultLoadScriptRetries = 3;
|
42
|
+
var maxBackoffSeconds = 60;
|
43
|
+
var loadScript = function (scriptUrl, callbackOnload, callbackError, retries, attempt) {
|
41
44
|
if (callbackOnload === void 0) { callbackOnload = function () { return void (0); }; }
|
42
45
|
if (callbackError === void 0) { callbackError = function () { return void (0); }; }
|
46
|
+
if (retries === void 0) { retries = defaultLoadScriptRetries; }
|
47
|
+
if (attempt === void 0) { attempt = 0; }
|
43
48
|
return __awaiter(void 0, void 0, void 0, function () {
|
44
49
|
return __generator(this, function (_a) {
|
45
50
|
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(void 0, void 0, void 0, function () {
|
@@ -71,13 +76,34 @@ var loadScript = function (scriptUrl, callbackOnload, callbackError) {
|
|
71
76
|
});
|
72
77
|
}); });
|
73
78
|
scriptElement.addEventListener('error', function () { return __awaiter(void 0, void 0, void 0, function () {
|
79
|
+
var exponentialBackoffWaitTime, e_1;
|
74
80
|
return __generator(this, function (_a) {
|
75
81
|
switch (_a.label) {
|
76
|
-
case 0:
|
82
|
+
case 0:
|
83
|
+
if (!(++attempt >= retries)) return [3 /*break*/, 2];
|
84
|
+
return [4 /*yield*/, callbackError()];
|
77
85
|
case 1:
|
78
86
|
_a.sent();
|
79
|
-
|
80
|
-
return [2 /*return
|
87
|
+
// Reference: https://developer.mozilla.org/en-US/docs/Web/API/Element/error_event
|
88
|
+
return [2 /*return*/, reject(new Error("Resource failed to load, or can't be used."))];
|
89
|
+
case 2:
|
90
|
+
scriptElement.remove();
|
91
|
+
exponentialBackoffWaitTime = Math.min((Math.pow(2, attempt)) + Math.random(), maxBackoffSeconds) * 1000;
|
92
|
+
return [4 /*yield*/, sleep_1.default(exponentialBackoffWaitTime)];
|
93
|
+
case 3:
|
94
|
+
_a.sent();
|
95
|
+
_a.label = 4;
|
96
|
+
case 4:
|
97
|
+
_a.trys.push([4, 6, , 7]);
|
98
|
+
return [4 /*yield*/, loadScript(scriptUrl, callbackOnload, callbackError, retries, attempt)];
|
99
|
+
case 5:
|
100
|
+
_a.sent();
|
101
|
+
return [3 /*break*/, 7];
|
102
|
+
case 6:
|
103
|
+
e_1 = _a.sent();
|
104
|
+
reject(e_1);
|
105
|
+
return [3 /*break*/, 7];
|
106
|
+
case 7: return [2 /*return*/];
|
81
107
|
}
|
82
108
|
});
|
83
109
|
}); });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WebUtils.js","sourceRoot":"","sources":["../../src/utils/WebUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,UAAU,GAAG,UAAO,SAAiB,EAAE,cAAgD,EAAE,aAA+C;
|
1
|
+
{"version":3,"file":"WebUtils.js","sourceRoot":"","sources":["../../src/utils/WebUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA4B;AAE5B,IAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,IAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,IAAM,UAAU,GAAG,UAAO,SAAiB,EAAE,cAAgD,EAAE,aAA+C,EAAE,OAAkC,EAAE,OAAW;IAAlJ,+BAAA,EAAA,+BAAyC,OAAA,KAAI,CAAC,CAAC,CAAC,EAAP,CAAO;IAAE,8BAAA,EAAA,8BAAwC,OAAA,KAAI,CAAC,CAAC,CAAC,EAAP,CAAO;IAAE,wBAAA,EAAA,kCAAkC;IAAE,wBAAA,EAAA,WAAW;;;YAC7L,sBAAO,IAAI,OAAO,CAAE,UAAO,OAAO,EAAE,MAAM;;;;;gCAClC,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC;gCACrE,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,UAAA,aAAa,IAAI,OAAA,aAAa,CAAC,GAAG,IAAI,SAAS,EAA9B,CAA8B,CAAC,CAAC;qCAE9F,kBAAkB,CAAC,MAAM,EAAzB,wBAAyB;gCAC3B,qBAAM,cAAc,EAAE,EAAA;;gCAAtB,SAAsB,CAAC;gCACvB,sBAAO,OAAO,EAAE,EAAC;;gCAGb,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;gCACvD,aAAa,CAAC,YAAY,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;gCAC7C,aAAa,CAAC,YAAY,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;gCACtD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;gCAEzC,aAAa,CAAC,gBAAgB,CAAC,MAAM,EAAE;;;oDACrC,qBAAM,cAAc,EAAE,EAAA;;gDAAtB,SAAsB,CAAC;gDACvB,OAAO,EAAE,CAAC;;;;qCACX,CAAC,CAAC;gCAEH,aAAa,CAAC,gBAAgB,CAAC,OAAO,EAAE;;;;;qDAClC,CAAA,EAAE,OAAO,IAAI,OAAO,CAAA,EAApB,wBAAoB;gDACtB,qBAAM,aAAa,EAAE,EAAA;;gDAArB,SAAqB,CAAC;gDAEtB,kFAAkF;gDAClF,sBAAO,MAAM,CAAC,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC,EAAC;;gDAGzE,aAAa,CAAC,MAAM,EAAE,CAAC;gDAEjB,0BAA0B,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,SAAA,CAAC,EAAI,OAAO,CAAA,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,iBAAiB,CAAC,GAAG,IAAI,CAAC;gDACtG,qBAAM,eAAK,CAAC,0BAA0B,CAAC,EAAA;;gDAAvC,SAAuC,CAAC;;;;gDAGtC,qBAAM,UAAU,CAAC,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,EAAA;;gDAA5E,SAA4E,CAAC;;;;gDAE7E,MAAM,CAAC,GAAC,CAAC,CAAC;;;;;qCAEb,CAAC,CAAC;;;;qBACJ,CAAC,EAAC;;;CACJ,CAAC;AAYA,gCAAU;AAVZ,IAAM,iBAAiB,GAAG,UAAC,EAAU;;IACnC,MAAA,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,0CAAE,MAAM,GAAG;AACxC,CAAC,CAAA;AASC,8CAAiB;AAPnB,kBAAe;IACb,UAAU,YAAA;IACV,iBAAiB,mBAAA;CAClB,CAAA"}
|