twilio-taskrouter 2.0.11 → 2.0.13

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,23 @@
1
+ 2.0.13
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
+ 2.0.12
12
+ ==========
13
+ New Features
14
+ ----------
15
+ - Added `fetchTask` method to `Workspace`
16
+
17
+ Maintenance
18
+ ----------
19
+ - Fix missing Babel dependency
20
+
1
21
  2.0.11
2
22
  ==========
3
23
  Bug fixes
@@ -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 2024-08-24T14:56:30+00:00
1160
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
1735
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
644
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
1344
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
3932
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
4754
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
4803
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
1638
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
750
+ on 2025-05-07T16:55:18+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 2024-08-24T14:56:30+00:00
4152
+ on 2025-05-07T16:55:18+00:00
4153
4153
 
4154
4154
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4155
4155
  </span>
@@ -465,6 +465,141 @@
465
465
 
466
466
  <dl>
467
467
 
468
+ <hr>
469
+ <dt>
470
+ <h4 class="name" id="fetchTask"><span class="type-signature"></span>fetchTask(taskSid)</h4>
471
+
472
+
473
+ </dt>
474
+ <dd>
475
+
476
+
477
+ <div class="description">
478
+ <p>Fetch Task of this <a href="Workspace.html">Workspace</a> by given sid</p>
479
+ </div>
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+ <h5>Parameters:</h5>
489
+
490
+
491
+ <table class="params table table-striped">
492
+ <thead>
493
+ <tr>
494
+
495
+ <th>Name</th>
496
+
497
+
498
+ <th>Type</th>
499
+
500
+
501
+
502
+
503
+
504
+ <th class="last">Description</th>
505
+ </tr>
506
+ </thead>
507
+
508
+ <tbody>
509
+
510
+
511
+ <tr>
512
+
513
+ <td class="name"><code>taskSid</code></td>
514
+
515
+
516
+ <td class="type">
517
+
518
+
519
+ <span class="param-type">string</span>
520
+
521
+
522
+
523
+
524
+ </td>
525
+
526
+
527
+
528
+
529
+
530
+ <td class="description last"><p>the sid of the task to fetch</p></td>
531
+ </tr>
532
+
533
+
534
+ </tbody>
535
+ </table>
536
+
537
+
538
+
539
+
540
+ <dl class="details">
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+ </dl>
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+ <h5>Returns:</h5>
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+ </dd>
600
+
601
+
602
+
468
603
  <hr>
469
604
  <dt>
470
605
  <h4 class="name" id="fetchTaskQueue"><span class="type-signature"></span>fetchTaskQueue(queueSid)</h4>
@@ -837,6 +972,150 @@
837
972
 
838
973
 
839
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
+
840
1119
 
841
1120
 
842
1121
 
@@ -872,8 +1151,27 @@
872
1151
  <h5>Returns:</h5>
873
1152
 
874
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>
1169
+
875
1170
 
876
1171
 
1172
+ </dd>
1173
+ </dl>
1174
+
877
1175
 
878
1176
 
879
1177
 
@@ -984,6 +1282,15 @@
984
1282
 
985
1283
 
986
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
+
987
1294
 
988
1295
 
989
1296
 
@@ -1025,6 +1332,172 @@
1025
1332
 
1026
1333
 
1027
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
+
1028
1501
  </dd>
1029
1502
 
1030
1503
 
@@ -1231,7 +1704,7 @@
1231
1704
  <span class="jsdoc-message">
1232
1705
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1233
1706
 
1234
- on 2024-08-24T14:56:30+00:00
1707
+ on 2025-05-07T16:55:18+00:00
1235
1708
 
1236
1709
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1237
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 2024-08-24T14:56:30+00:00
5349
+ on 2025-05-07T16:55:18+00:00
5350
5350
 
5351
5351
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
5352
5352
  </span>