twilio-taskrouter 0.8.2 → 0.8.4
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 +12 -0
- package/dist/docs/Activity.html +525 -131
- package/dist/docs/Channel.html +900 -7
- package/dist/docs/IncomingTransfer.html +180 -14
- package/dist/docs/OutgoingTransfer.html +234 -17
- package/dist/docs/Reservation.html +901 -2351
- package/dist/docs/Supervisor.html +4385 -0
- package/dist/docs/Task.html +1738 -537
- package/dist/docs/TaskQueue.html +1021 -5
- package/dist/docs/Transfers.html +444 -4
- package/dist/docs/Worker.html +1555 -594
- package/dist/docs/Workspace.html +159 -913
- package/dist/docs/classes.list.html +1823 -14
- package/dist/docs/global.html +4755 -0
- package/dist/docs/index.html +11 -4
- package/dist/docs/quicksearch.html +1 -1
- package/dist/index.commonjs2.js +1 -1
- package/dist/index.commonjs2.js.LICENSE.txt +1 -1
- package/dist/index.window.js +2 -2
- package/dist/index.window.js.LICENSE.txt +1 -1
- package/package.json +9 -7
package/dist/docs/Transfers.html
CHANGED
|
@@ -30,14 +30,21 @@
|
|
|
30
30
|
<li class="dropdown">
|
|
31
31
|
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
|
|
32
32
|
<ul class="dropdown-menu ">
|
|
33
|
-
<li><a href="Activity.html">Activity</a></li><li><a href="Channel.html">Channel</a></li><li><a href="IncomingTransfer.html">IncomingTransfer</a></li><li><a href="OutgoingTransfer.html">OutgoingTransfer</a></li><li><a href="Reservation.html">Reservation</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskQueue.html">TaskQueue</a></li><li><a href="Transfers.html">Transfers</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workspace.html">Workspace</a></li>
|
|
33
|
+
<li><a href="Activity.html">Activity</a></li><li><a href="Channel.html">Channel</a></li><li><a href="IncomingTransfer.html">IncomingTransfer</a></li><li><a href="OutgoingTransfer.html">OutgoingTransfer</a></li><li><a href="Reservation.html">Reservation</a></li><li><a href="Supervisor.html">Supervisor</a></li><li><a href="Task.html">Task</a></li><li><a href="TaskQueue.html">TaskQueue</a></li><li><a href="Transfers.html">Transfers</a></li><li><a href="Worker.html">Worker</a></li><li><a href="Workspace.html">Workspace</a></li>
|
|
34
34
|
</ul>
|
|
35
35
|
</li>
|
|
36
36
|
|
|
37
37
|
<li class="dropdown">
|
|
38
38
|
<a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b class="caret"></b></a>
|
|
39
39
|
<ul class="dropdown-menu ">
|
|
40
|
-
<li><a href="Channel.html#event:availabilityUpdated">Channel#event:availabilityUpdated</a></li><li><a href="Channel.html#event:capacityUpdated">Channel#event:capacityUpdated</a></li><li><a href="OutgoingTransfer.html#event:attemptFailed">OutgoingTransfer#event:attemptFailed</a></li><li><a href="OutgoingTransfer.html#event:canceled">OutgoingTransfer#event:canceled</a></li><li><a href="OutgoingTransfer.html#event:completed">OutgoingTransfer#event:completed</a></li><li><a href="OutgoingTransfer.html#event:failed">OutgoingTransfer#event:failed</a></li><li><a href="Reservation.html#event:accepted">Reservation#event:accepted</a></li><li><a href="Reservation.html#event:canceled">Reservation#event:canceled</a></li><li><a href="Reservation.html#event:completed">Reservation#event:completed</a></li><li><a href="Reservation.html#event:rejected">Reservation#event:rejected</a></li><li><a href="Reservation.html#event:rescinded">Reservation#event:rescinded</a></li><li><a href="Reservation.html#event:timeout">Reservation#event:timeout</a></li><li><a href="Reservation.html#event:wrapup">Reservation#event:wrapup</a></li><li><a href="Task.html#event:canceled">Task#event:canceled</a></li><li><a href="Task.html#event:completed">Task#event:completed</a></li><li><a href="Task.html#event:transferInitiated">Task#event:transferInitiated</a></li><li><a href="Task.html#event:updated">Task#event:updated</a></li><li><a href="Task.html#event:wrapup">Task#event:wrapup</a></li><li><a href="Worker.html#event:activityUpdated">Worker#event:activityUpdated</a></li><li><a href="Worker.html#event:attributesUpdated">Worker#event:attributesUpdated</a></li><li><a href="Worker.html#event:disconnected">Worker#event:disconnected</a></li><li><a href="Worker.html#event:error">Worker#event:error</a></li><li><a href="Worker.html#event:ready">Worker#event:ready</a></li><li><a href="Worker.html#event:reservationCreated">Worker#event:reservationCreated</a></li><li><a href="Worker.html#event:reservationFailed">Worker#event:reservationFailed</a></li><li><a href="Worker.html#event:tokenExpired">Worker#event:tokenExpired</a></li><li><a href="Worker.html#event:tokenUpdated">Worker#event:tokenUpdated</a></li>
|
|
40
|
+
<li><a href="Channel.html#event:availabilityUpdated">Channel#event:availabilityUpdated</a></li><li><a href="Channel.html#event:capacityUpdated">Channel#event:capacityUpdated</a></li><li><a href="OutgoingTransfer.html#event:attemptFailed">OutgoingTransfer#event:attemptFailed</a></li><li><a href="OutgoingTransfer.html#event:canceled">OutgoingTransfer#event:canceled</a></li><li><a href="OutgoingTransfer.html#event:completed">OutgoingTransfer#event:completed</a></li><li><a href="OutgoingTransfer.html#event:failed">OutgoingTransfer#event:failed</a></li><li><a href="Reservation.html#event:accepted">Reservation#event:accepted</a></li><li><a href="Reservation.html#event:canceled">Reservation#event:canceled</a></li><li><a href="Reservation.html#event:completed">Reservation#event:completed</a></li><li><a href="Reservation.html#event:rejected">Reservation#event:rejected</a></li><li><a href="Reservation.html#event:rescinded">Reservation#event:rescinded</a></li><li><a href="Reservation.html#event:timeout">Reservation#event:timeout</a></li><li><a href="Reservation.html#event:wrapup">Reservation#event:wrapup</a></li><li><a href="Supervisor.html#event:activityUpdated">Supervisor#event:activityUpdated</a></li><li><a href="Supervisor.html#event:attributesUpdated">Supervisor#event:attributesUpdated</a></li><li><a href="Supervisor.html#event:disconnected">Supervisor#event:disconnected</a></li><li><a href="Supervisor.html#event:error">Supervisor#event:error</a></li><li><a href="Supervisor.html#event:monitor">Supervisor#event:monitor</a></li><li><a href="Supervisor.html#event:ready">Supervisor#event:ready</a></li><li><a href="Supervisor.html#event:reservationCreated">Supervisor#event:reservationCreated</a></li><li><a href="Supervisor.html#event:reservationFailed">Supervisor#event:reservationFailed</a></li><li><a href="Supervisor.html#event:tokenExpired">Supervisor#event:tokenExpired</a></li><li><a href="Supervisor.html#event:tokenUpdated">Supervisor#event:tokenUpdated</a></li><li><a href="Task.html#event:canceled">Task#event:canceled</a></li><li><a href="Task.html#event:completed">Task#event:completed</a></li><li><a href="Task.html#event:transferAttemptFailed">Task#event:transferAttemptFailed</a></li><li><a href="Task.html#event:transferCanceled">Task#event:transferCanceled</a></li><li><a href="Task.html#event:transferCompleted">Task#event:transferCompleted</a></li><li><a href="Task.html#event:transferFailed">Task#event:transferFailed</a></li><li><a href="Task.html#event:transferInitiated">Task#event:transferInitiated</a></li><li><a href="Task.html#event:updated">Task#event:updated</a></li><li><a href="Task.html#event:wrapup">Task#event:wrapup</a></li><li><a href="Worker.html#event:activityUpdated">Worker#event:activityUpdated</a></li><li><a href="Worker.html#event:attributesUpdated">Worker#event:attributesUpdated</a></li><li><a href="Worker.html#event:disconnected">Worker#event:disconnected</a></li><li><a href="Worker.html#event:error">Worker#event:error</a></li><li><a href="Worker.html#event:ready">Worker#event:ready</a></li><li><a href="Worker.html#event:reservationCreated">Worker#event:reservationCreated</a></li><li><a href="Worker.html#event:reservationFailed">Worker#event:reservationFailed</a></li><li><a href="Worker.html#event:tokenExpired">Worker#event:tokenExpired</a></li><li><a href="Worker.html#event:tokenUpdated">Worker#event:tokenUpdated</a></li>
|
|
41
|
+
</ul>
|
|
42
|
+
</li>
|
|
43
|
+
|
|
44
|
+
<li class="dropdown">
|
|
45
|
+
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
|
|
46
|
+
<ul class="dropdown-menu ">
|
|
47
|
+
<li><a href="global.html">Global</a></li>
|
|
41
48
|
</ul>
|
|
42
49
|
</li>
|
|
43
50
|
|
|
@@ -247,20 +254,453 @@
|
|
|
247
254
|
</div>
|
|
248
255
|
|
|
249
256
|
|
|
257
|
+
<h3 class="subsection-title">Extends</h3>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<ul>
|
|
263
|
+
<li>EventEmitter</li>
|
|
264
|
+
</ul>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
<h3 class="subsection-title">Members</h3>
|
|
279
|
+
|
|
280
|
+
<dl>
|
|
281
|
+
|
|
282
|
+
<hr>
|
|
283
|
+
<dt class="name" id="incoming">
|
|
284
|
+
<h4 id="incoming"><span class="type-signature"></span>incoming<span class="type-signature"> :<a href="IncomingTransfer.html">IncomingTransfer</a></span></h4>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</dt>
|
|
288
|
+
<dd>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
<h5>Type:</h5>
|
|
293
|
+
<ul>
|
|
294
|
+
<li>
|
|
295
|
+
|
|
296
|
+
<span class="param-type"><a href="IncomingTransfer.html">IncomingTransfer</a></span>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
</li>
|
|
301
|
+
</ul>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
<dl class="details">
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
</dl>
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
</dd>
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
<hr>
|
|
350
|
+
<dt class="name" id="outgoing">
|
|
351
|
+
<h4 id="outgoing"><span class="type-signature"></span>outgoing<span class="type-signature"> :<a href="OutgoingTransfer.html">OutgoingTransfer</a></span></h4>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
</dt>
|
|
355
|
+
<dd>
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
<h5>Type:</h5>
|
|
360
|
+
<ul>
|
|
361
|
+
<li>
|
|
362
|
+
|
|
363
|
+
<span class="param-type"><a href="OutgoingTransfer.html">OutgoingTransfer</a></span>
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
</li>
|
|
368
|
+
</ul>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
<dl class="details">
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
</dl>
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
</dd>
|
|
250
413
|
|
|
414
|
+
</dl>
|
|
251
415
|
|
|
252
416
|
|
|
253
417
|
|
|
418
|
+
<h3 class="subsection-title">Methods</h3>
|
|
254
419
|
|
|
420
|
+
<dl>
|
|
421
|
+
|
|
422
|
+
<hr>
|
|
423
|
+
<dt>
|
|
424
|
+
<h4 class="name" id="_emitEvent"><span class="type-signature"></span>_emitEvent(eventType, rawEventData)</h4>
|
|
425
|
+
|
|
255
426
|
|
|
427
|
+
</dt>
|
|
428
|
+
<dd>
|
|
256
429
|
|
|
257
430
|
|
|
431
|
+
<div class="description">
|
|
432
|
+
<p>Emit the transfer event and handle any appropriate clean-up or data modification</p>
|
|
433
|
+
</div>
|
|
434
|
+
|
|
258
435
|
|
|
259
436
|
|
|
260
437
|
|
|
261
438
|
|
|
262
439
|
|
|
263
440
|
|
|
441
|
+
|
|
442
|
+
<h5>Parameters:</h5>
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
<table class="params table table-striped">
|
|
446
|
+
<thead>
|
|
447
|
+
<tr>
|
|
448
|
+
|
|
449
|
+
<th>Name</th>
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
<th>Type</th>
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
<th class="last">Description</th>
|
|
459
|
+
</tr>
|
|
460
|
+
</thead>
|
|
461
|
+
|
|
462
|
+
<tbody>
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
<tr>
|
|
466
|
+
|
|
467
|
+
<td class="name"><code>eventType</code></td>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
<td class="type">
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
<span class="param-type">Object</span>
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
</td>
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
<td class="description last"><p>the name of the transfer event</p></td>
|
|
485
|
+
</tr>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
<tr>
|
|
490
|
+
|
|
491
|
+
<td class="name"><code>rawEventData</code></td>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
<td class="type">
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
<span class="param-type">Object</span>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
</td>
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
<td class="description last"><p>the raw payload contents of the event</p></td>
|
|
509
|
+
</tr>
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
</tbody>
|
|
513
|
+
</table>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
<dl class="details">
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
</dl>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
</dd>
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
<hr>
|
|
575
|
+
<dt>
|
|
576
|
+
<h4 class="name" id="_update"><span class="type-signature"></span>_update(latestTransfersData)</h4>
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
</dt>
|
|
580
|
+
<dd>
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
<div class="description">
|
|
584
|
+
<p>Update Transfers using the latest transfers data</p>
|
|
585
|
+
</div>
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
<h5>Parameters:</h5>
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
<table class="params table table-striped">
|
|
598
|
+
<thead>
|
|
599
|
+
<tr>
|
|
600
|
+
|
|
601
|
+
<th>Name</th>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
<th>Type</th>
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
<th class="last">Description</th>
|
|
611
|
+
</tr>
|
|
612
|
+
</thead>
|
|
613
|
+
|
|
614
|
+
<tbody>
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<tr>
|
|
618
|
+
|
|
619
|
+
<td class="name"><code>latestTransfersData</code></td>
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
<td class="type">
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
<span class="param-type">Object</span>
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
</td>
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
<td class="description last"><p>The latest transfers data</p></td>
|
|
637
|
+
</tr>
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
</tbody>
|
|
641
|
+
</table>
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
<dl class="details">
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
</dl>
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
</dd>
|
|
699
|
+
|
|
700
|
+
</dl>
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
264
704
|
|
|
265
705
|
|
|
266
706
|
</article>
|
|
@@ -305,9 +745,9 @@
|
|
|
305
745
|
|
|
306
746
|
|
|
307
747
|
<span class="jsdoc-message">
|
|
308
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.
|
|
748
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
|
|
309
749
|
|
|
310
|
-
on 2023-
|
|
750
|
+
on 2023-08-01T08:45:21+00:00
|
|
311
751
|
|
|
312
752
|
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
|
313
753
|
</span>
|