twilio-taskrouter 2.0.14 → 2.1.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 CHANGED
@@ -1,3 +1,27 @@
1
+ 2.1.0
2
+ ==========
3
+ New Features
4
+ ----------
5
+ - Introduced `fetchWorkerInfo` and `fetchWorkersInfo` methods in `Workspace` for retrieving worker information in a more structured format
6
+
7
+ Deprecations
8
+ ----------
9
+ - Deprecated `fetchWorker` and `fetchWorkers` in `Workspace`. <b>Please migrate to `fetchWorkerInfo` and `fetchWorkersInfo`.</b>
10
+
11
+ Bug fixes
12
+ ----------
13
+ - Fixed a bug with some node dependencies. `graphql` is now marked as `peerDependencies`.
14
+
15
+ 2.0.13
16
+ ==========
17
+ New Features
18
+ ----------
19
+ - Introduced `fetchWorkerInfo` and `fetchWorkersInfo` methods in `Workspace` for retrieving worker information in a more structured format
20
+
21
+ Deprecations
22
+ ----------
23
+ - Deprecated `fetchWorker` and `fetchWorkers` in `Workspace`. <b>Please migrate to `fetchWorkerInfo` and `fetchWorkersInfo`.§</b>
24
+
1
25
  2.0.12
2
26
  ==========
3
27
  New Features
@@ -44,7 +68,7 @@ New Features
44
68
 
45
69
  Bug fixes
46
70
  ----------
47
- - Added `setWorkerAttributes` and `setWorkerActivity` fields to Supervisor type declaration
71
+ - Added `setWorkerAttributes` and `setWorkerActivity` fields to Supervisor type declaration
48
72
 
49
73
  2.0.7
50
74
  ==========
@@ -1157,7 +1157,7 @@
1157
1157
  <span class="jsdoc-message">
1158
1158
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1159
1159
 
1160
- on 2025-05-08T08:31:45+00:00
1160
+ on 2025-05-15T11:44:09+00:00
1161
1161
 
1162
1162
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1163
1163
  </span>
@@ -1732,7 +1732,7 @@
1732
1732
  <span class="jsdoc-message">
1733
1733
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1734
1734
 
1735
- on 2025-05-08T08:31:45+00:00
1735
+ on 2025-05-15T11:44:09+00:00
1736
1736
 
1737
1737
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1738
1738
  </span>
@@ -641,7 +641,7 @@
641
641
  <span class="jsdoc-message">
642
642
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
643
643
 
644
- on 2025-05-08T08:31:45+00:00
644
+ on 2025-05-15T11:44:09+00:00
645
645
 
646
646
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
647
647
  </span>
@@ -1341,7 +1341,7 @@ No more attempts on the <a href="OutgoingTransfer.html">OutgoingTransfer</a> wil
1341
1341
  <span class="jsdoc-message">
1342
1342
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1343
1343
 
1344
- on 2025-05-08T08:31:45+00:00
1344
+ on 2025-05-15T11:44:09+00:00
1345
1345
 
1346
1346
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1347
1347
  </span>
@@ -3929,7 +3929,7 @@ in the <a href="Worker.html">Worker</a>'s attributes for this call to go through
3929
3929
  <span class="jsdoc-message">
3930
3930
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
3931
3931
 
3932
- on 2025-05-08T08:31:45+00:00
3932
+ on 2025-05-15T11:44:09+00:00
3933
3933
 
3934
3934
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3935
3935
  </span>
@@ -4751,7 +4751,7 @@ TaskSid of the created Task.</li>
4751
4751
  <span class="jsdoc-message">
4752
4752
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
4753
4753
 
4754
- on 2025-05-08T08:31:45+00:00
4754
+ on 2025-05-15T11:44:09+00:00
4755
4755
 
4756
4756
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4757
4757
  </span>
@@ -4800,7 +4800,7 @@ provided, defaults to dateCreated.</p></td>
4800
4800
  <span class="jsdoc-message">
4801
4801
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
4802
4802
 
4803
- on 2025-05-08T08:31:45+00:00
4803
+ on 2025-05-15T11:44:09+00:00
4804
4804
 
4805
4805
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4806
4806
  </span>
@@ -1635,7 +1635,7 @@
1635
1635
  <span class="jsdoc-message">
1636
1636
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1637
1637
 
1638
- on 2025-05-08T08:31:45+00:00
1638
+ on 2025-05-15T11:44:09+00:00
1639
1639
 
1640
1640
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1641
1641
  </span>
@@ -747,7 +747,7 @@
747
747
  <span class="jsdoc-message">
748
748
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
749
749
 
750
- on 2025-05-08T08:31:45+00:00
750
+ on 2025-05-15T11:44:09+00:00
751
751
 
752
752
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
753
753
  </span>
@@ -4149,7 +4149,7 @@ TaskSid of the created Task.</li>
4149
4149
  <span class="jsdoc-message">
4150
4150
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
4151
4151
 
4152
- on 2025-05-08T08:31:45+00:00
4152
+ on 2025-05-15T11:44:09+00:00
4153
4153
 
4154
4154
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4155
4155
  </span>
@@ -972,6 +972,150 @@
972
972
 
973
973
 
974
974
 
975
+ <dt class="important tag-deprecated method-doc-label method-doc-details-label">Deprecated:</dt>
976
+
977
+ <dd>
978
+ <ul class="dummy">
979
+ <li>use <a href="Workspace.html#fetchWorkerInfo">Workspace#fetchWorkerInfo</a></li>
980
+ </ul>
981
+ </dd>
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+ </dl>
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+ <h5>Returns:</h5>
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+ </dd>
1026
+
1027
+
1028
+
1029
+ <hr>
1030
+ <dt>
1031
+ <h4 class="name" id="fetchWorkerInfo"><span class="type-signature"></span>fetchWorkerInfo(workerSid)</h4>
1032
+
1033
+
1034
+ </dt>
1035
+ <dd>
1036
+
1037
+
1038
+ <div class="description">
1039
+ <p>Fetch worker info of this <a href="Workspace.html">Workspace</a> by given sid</p>
1040
+ </div>
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+ <h5>Parameters:</h5>
1050
+
1051
+
1052
+ <table class="params table table-striped">
1053
+ <thead>
1054
+ <tr>
1055
+
1056
+ <th>Name</th>
1057
+
1058
+
1059
+ <th>Type</th>
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+ <th class="last">Description</th>
1066
+ </tr>
1067
+ </thead>
1068
+
1069
+ <tbody>
1070
+
1071
+
1072
+ <tr>
1073
+
1074
+ <td class="name"><code>workerSid</code></td>
1075
+
1076
+
1077
+ <td class="type">
1078
+
1079
+
1080
+ <span class="param-type">string</span>
1081
+
1082
+
1083
+
1084
+
1085
+ </td>
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+ <td class="description last"><p>the sid of the worker to fetch</p></td>
1092
+ </tr>
1093
+
1094
+
1095
+ </tbody>
1096
+ </table>
1097
+
1098
+
1099
+
1100
+
1101
+ <dl class="details">
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
975
1119
 
976
1120
 
977
1121
 
@@ -1007,9 +1151,28 @@
1007
1151
  <h5>Returns:</h5>
1008
1152
 
1009
1153
 
1154
+ <div class="param-desc">
1155
+ <ul>
1156
+ <li>A worker with given sid</li>
1157
+ </ul>
1158
+ </div>
1159
+
1160
+
1161
+
1162
+ <dl>
1163
+ <dt>
1164
+ Type
1165
+ </dt>
1166
+ <dd>
1167
+
1168
+ <span class="param-type">Promise.&lt;<a href="global.html#WorkerInfo">WorkerInfo</a>&gt;</span>
1010
1169
 
1011
1170
 
1012
1171
 
1172
+ </dd>
1173
+ </dl>
1174
+
1175
+
1013
1176
 
1014
1177
 
1015
1178
 
@@ -1119,6 +1282,15 @@
1119
1282
 
1120
1283
 
1121
1284
 
1285
+ <dt class="important tag-deprecated method-doc-label method-doc-details-label">Deprecated:</dt>
1286
+
1287
+ <dd>
1288
+ <ul class="dummy">
1289
+ <li>use <a href="Workspace.html#fetchWorkersInfo">Workspace#fetchWorkersInfo</a></li>
1290
+ </ul>
1291
+ </dd>
1292
+
1293
+
1122
1294
 
1123
1295
 
1124
1296
 
@@ -1160,6 +1332,172 @@
1160
1332
 
1161
1333
 
1162
1334
 
1335
+ </dd>
1336
+
1337
+
1338
+
1339
+ <hr>
1340
+ <dt>
1341
+ <h4 class="name" id="fetchWorkersInfo"><span class="type-signature"></span>fetchWorkersInfo( [params])</h4>
1342
+
1343
+
1344
+ </dt>
1345
+ <dd>
1346
+
1347
+
1348
+ <div class="description">
1349
+ <p>Fetch workers info of this <a href="Workspace.html">Workspace</a></p>
1350
+ </div>
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+ <h5>Parameters:</h5>
1360
+
1361
+
1362
+ <table class="params table table-striped">
1363
+ <thead>
1364
+ <tr>
1365
+
1366
+ <th>Name</th>
1367
+
1368
+
1369
+ <th>Type</th>
1370
+
1371
+
1372
+ <th>Argument</th>
1373
+
1374
+
1375
+
1376
+
1377
+ <th class="last">Description</th>
1378
+ </tr>
1379
+ </thead>
1380
+
1381
+ <tbody>
1382
+
1383
+
1384
+ <tr>
1385
+
1386
+ <td class="name"><code>params</code></td>
1387
+
1388
+
1389
+ <td class="type">
1390
+
1391
+
1392
+ <span class="param-type"><a href="global.html#FetchWorkerInfoParams">FetchWorkerInfoParams</a></span>
1393
+
1394
+
1395
+
1396
+
1397
+ </td>
1398
+
1399
+
1400
+ <td class="attributes">
1401
+
1402
+ &lt;optional&gt;<br>
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+ </td>
1409
+
1410
+
1411
+
1412
+
1413
+ <td class="description last"></td>
1414
+ </tr>
1415
+
1416
+
1417
+ </tbody>
1418
+ </table>
1419
+
1420
+
1421
+
1422
+
1423
+ <dl class="details">
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+ </dl>
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+ <h5>Returns:</h5>
1474
+
1475
+
1476
+ <div class="param-desc">
1477
+ <ul>
1478
+ <li>A map with the workers info</li>
1479
+ </ul>
1480
+ </div>
1481
+
1482
+
1483
+
1484
+ <dl>
1485
+ <dt>
1486
+ Type
1487
+ </dt>
1488
+ <dd>
1489
+
1490
+ <span class="param-type">Promise.&lt;Map.&lt;string, <a href="global.html#WorkerInfo">WorkerInfo</a>&gt;&gt;</span>
1491
+
1492
+
1493
+
1494
+ </dd>
1495
+ </dl>
1496
+
1497
+
1498
+
1499
+
1500
+
1163
1501
  </dd>
1164
1502
 
1165
1503
 
@@ -1366,7 +1704,7 @@
1366
1704
  <span class="jsdoc-message">
1367
1705
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1368
1706
 
1369
- on 2025-05-08T08:31:45+00:00
1707
+ on 2025-05-15T11:44:09+00:00
1370
1708
 
1371
1709
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1372
1710
  </span>
@@ -5346,7 +5346,7 @@ No more attempts on the <a href="OutgoingTransfer.html">OutgoingTransfer</a> wil
5346
5346
  <span class="jsdoc-message">
5347
5347
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
5348
5348
 
5349
- on 2025-05-08T08:31:45+00:00
5349
+ on 2025-05-15T11:44:09+00:00
5350
5350
 
5351
5351
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
5352
5352
  </span>