twilio-taskrouter 2.0.5 → 2.0.6

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,9 @@
1
+ 2.0.6
2
+ ==========
3
+ New Features
4
+ ----------
5
+ - Added `setWorkerAttributes` and `setWorkerActivity` to Supervisor
6
+
1
7
  2.0.5
2
8
  ==========
3
9
  New Features
@@ -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-05-09T13:26:27+00:00
1160
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
1735
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
644
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
1344
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
3932
+ on 2024-06-03T16:34:29+00:00
3933
3933
 
3934
3934
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
3935
3935
  </span>
@@ -2785,6 +2785,466 @@ TaskSid of the created Task.</li>
2785
2785
 
2786
2786
 
2787
2787
 
2788
+ </dd>
2789
+
2790
+
2791
+
2792
+ <hr>
2793
+ <dt>
2794
+ <h4 class="name" id="setWorkerActivity"><span class="type-signature"></span>setWorkerActivity(workerSid, activitySid [, options])</h4>
2795
+
2796
+
2797
+ </dt>
2798
+ <dd>
2799
+
2800
+
2801
+ <div class="description">
2802
+ <p>Sets the worker activity for a given worker based on the provided workerSid and activitySid.</p>
2803
+ </div>
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+ <h5>Parameters:</h5>
2813
+
2814
+
2815
+ <table class="params table table-striped">
2816
+ <thead>
2817
+ <tr>
2818
+
2819
+ <th>Name</th>
2820
+
2821
+
2822
+ <th>Type</th>
2823
+
2824
+
2825
+ <th>Argument</th>
2826
+
2827
+
2828
+
2829
+
2830
+ <th class="last">Description</th>
2831
+ </tr>
2832
+ </thead>
2833
+
2834
+ <tbody>
2835
+
2836
+
2837
+ <tr>
2838
+
2839
+ <td class="name"><code>workerSid</code></td>
2840
+
2841
+
2842
+ <td class="type">
2843
+
2844
+
2845
+ <span class="param-type">string</span>
2846
+
2847
+
2848
+
2849
+
2850
+ </td>
2851
+
2852
+
2853
+ <td class="attributes">
2854
+
2855
+
2856
+
2857
+
2858
+
2859
+ </td>
2860
+
2861
+
2862
+
2863
+
2864
+ <td class="description last"><p>The SID of the worker.</p></td>
2865
+ </tr>
2866
+
2867
+
2868
+
2869
+ <tr>
2870
+
2871
+ <td class="name"><code>activitySid</code></td>
2872
+
2873
+
2874
+ <td class="type">
2875
+
2876
+
2877
+ <span class="param-type">string</span>
2878
+
2879
+
2880
+
2881
+
2882
+ </td>
2883
+
2884
+
2885
+ <td class="attributes">
2886
+
2887
+
2888
+
2889
+
2890
+
2891
+ </td>
2892
+
2893
+
2894
+
2895
+
2896
+ <td class="description last"><p>The SID of the activity to set for the worker.</p></td>
2897
+ </tr>
2898
+
2899
+
2900
+
2901
+ <tr>
2902
+
2903
+ <td class="name"><code>options</code></td>
2904
+
2905
+
2906
+ <td class="type">
2907
+
2908
+
2909
+ <span class="param-type">Object</span>
2910
+
2911
+
2912
+
2913
+
2914
+ </td>
2915
+
2916
+
2917
+ <td class="attributes">
2918
+
2919
+ &lt;optional&gt;<br>
2920
+
2921
+
2922
+
2923
+
2924
+
2925
+ </td>
2926
+
2927
+
2928
+
2929
+
2930
+ <td class="description last"><p>An object containing extra params to append to the payload.</p></td>
2931
+ </tr>
2932
+
2933
+
2934
+ </tbody>
2935
+ </table>
2936
+
2937
+
2938
+
2939
+
2940
+ <dl class="details">
2941
+
2942
+
2943
+
2944
+
2945
+
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+
2962
+
2963
+
2964
+
2965
+
2966
+
2967
+
2968
+
2969
+
2970
+
2971
+
2972
+
2973
+
2974
+
2975
+
2976
+ </dl>
2977
+
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+ <h5>Throws:</h5>
2989
+
2990
+
2991
+
2992
+ <dl>
2993
+ <dt>
2994
+ <div class="param-desc">
2995
+ <p>If workerSid or activitySid are not strings.</p>
2996
+ </div>
2997
+ </dt>
2998
+ <dt>
2999
+ <dl>
3000
+ <dt>
3001
+ Type
3002
+ </dt>
3003
+ <dd>
3004
+
3005
+ <span class="param-type">TypeError</span>
3006
+
3007
+
3008
+
3009
+ </dd>
3010
+ </dl>
3011
+ </dt>
3012
+ </dl>
3013
+
3014
+
3015
+
3016
+
3017
+
3018
+ <h5>Returns:</h5>
3019
+
3020
+
3021
+ <div class="param-desc">
3022
+ <p>Returns a <a href="Worker.html">Worker</a></p>
3023
+ </div>
3024
+
3025
+
3026
+
3027
+ <dl>
3028
+ <dt>
3029
+ Type
3030
+ </dt>
3031
+ <dd>
3032
+
3033
+ <span class="param-type">Promise.&lt;<a href="Worker.html">Worker</a>&gt;</span>
3034
+
3035
+
3036
+
3037
+ </dd>
3038
+ </dl>
3039
+
3040
+
3041
+
3042
+
3043
+
3044
+ </dd>
3045
+
3046
+
3047
+
3048
+ <hr>
3049
+ <dt>
3050
+ <h4 class="name" id="setWorkerAttributes"><span class="type-signature"></span>setWorkerAttributes(workerSid, attributes)</h4>
3051
+
3052
+
3053
+ </dt>
3054
+ <dd>
3055
+
3056
+
3057
+ <div class="description">
3058
+ <p>Sets the attributes of a worker.</p>
3059
+ </div>
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+ <h5>Parameters:</h5>
3069
+
3070
+
3071
+ <table class="params table table-striped">
3072
+ <thead>
3073
+ <tr>
3074
+
3075
+ <th>Name</th>
3076
+
3077
+
3078
+ <th>Type</th>
3079
+
3080
+
3081
+
3082
+
3083
+
3084
+ <th class="last">Description</th>
3085
+ </tr>
3086
+ </thead>
3087
+
3088
+ <tbody>
3089
+
3090
+
3091
+ <tr>
3092
+
3093
+ <td class="name"><code>workerSid</code></td>
3094
+
3095
+
3096
+ <td class="type">
3097
+
3098
+
3099
+ <span class="param-type">string</span>
3100
+
3101
+
3102
+
3103
+
3104
+ </td>
3105
+
3106
+
3107
+
3108
+
3109
+
3110
+ <td class="description last"><p>The SID of the worker.</p></td>
3111
+ </tr>
3112
+
3113
+
3114
+
3115
+ <tr>
3116
+
3117
+ <td class="name"><code>attributes</code></td>
3118
+
3119
+
3120
+ <td class="type">
3121
+
3122
+
3123
+ <span class="param-type">Record.&lt;string, any&gt;</span>
3124
+
3125
+
3126
+
3127
+
3128
+ </td>
3129
+
3130
+
3131
+
3132
+
3133
+
3134
+ <td class="description last"><p>The attributes to set for the worker.</p></td>
3135
+ </tr>
3136
+
3137
+
3138
+ </tbody>
3139
+ </table>
3140
+
3141
+
3142
+
3143
+
3144
+ <dl class="details">
3145
+
3146
+
3147
+
3148
+
3149
+
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+
3156
+
3157
+
3158
+
3159
+
3160
+
3161
+
3162
+
3163
+
3164
+
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3171
+
3172
+
3173
+
3174
+
3175
+
3176
+
3177
+
3178
+
3179
+
3180
+ </dl>
3181
+
3182
+
3183
+
3184
+
3185
+
3186
+
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+ <h5>Throws:</h5>
3193
+
3194
+
3195
+
3196
+ <dl>
3197
+ <dt>
3198
+ <div class="param-desc">
3199
+ <p>If workerSid is not a string or attributes is not an object.</p>
3200
+ </div>
3201
+ </dt>
3202
+ <dt>
3203
+ <dl>
3204
+ <dt>
3205
+ Type
3206
+ </dt>
3207
+ <dd>
3208
+
3209
+ <span class="param-type">TypeError</span>
3210
+
3211
+
3212
+
3213
+ </dd>
3214
+ </dl>
3215
+ </dt>
3216
+ </dl>
3217
+
3218
+
3219
+
3220
+
3221
+
3222
+ <h5>Returns:</h5>
3223
+
3224
+
3225
+ <div class="param-desc">
3226
+ <p>Returns a <a href="Worker.html">Worker</a></p>
3227
+ </div>
3228
+
3229
+
3230
+
3231
+ <dl>
3232
+ <dt>
3233
+ Type
3234
+ </dt>
3235
+ <dd>
3236
+
3237
+ <span class="param-type">Promise.&lt;<a href="Worker.html">Worker</a>&gt;</span>
3238
+
3239
+
3240
+
3241
+ </dd>
3242
+ </dl>
3243
+
3244
+
3245
+
3246
+
3247
+
2788
3248
  </dd>
2789
3249
 
2790
3250
 
@@ -4291,7 +4751,7 @@ TaskSid of the created Task.</li>
4291
4751
  <span class="jsdoc-message">
4292
4752
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
4293
4753
 
4294
- on 2024-05-09T13:26:27+00:00
4754
+ on 2024-06-03T16:34:29+00:00
4295
4755
 
4296
4756
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4297
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-05-09T13:26:27+00:00
4803
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
1638
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
750
+ on 2024-06-03T16:34:29+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-05-09T13:26:27+00:00
4152
+ on 2024-06-03T16:34:29+00:00
4153
4153
 
4154
4154
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4155
4155
  </span>
@@ -1231,7 +1231,7 @@
1231
1231
  <span class="jsdoc-message">
1232
1232
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
1233
1233
 
1234
- on 2024-05-09T13:26:27+00:00
1234
+ on 2024-06-03T16:34:29+00:00
1235
1235
 
1236
1236
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1237
1237
  </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-05-09T13:26:27+00:00
5349
+ on 2024-06-03T16:34:29+00:00
5350
5350
 
5351
5351
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
5352
5352
  </span>
@@ -4865,7 +4865,7 @@ provided, defaults to dateCreated.</p></td>
4865
4865
  <span class="jsdoc-message">
4866
4866
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
4867
4867
 
4868
- on 2024-05-09T13:26:27+00:00
4868
+ on 2024-06-03T16:34:29+00:00
4869
4869
 
4870
4870
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4871
4871
  </span>
@@ -255,7 +255,7 @@ request/contribution process, <a href="https://gun.io/blog/how-to-github-fork-br
255
255
  <span class="jsdoc-message">
256
256
  Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a>
257
257
 
258
- on 2024-05-09T13:26:27+00:00
258
+ on 2024-06-03T16:34:29+00:00
259
259
 
260
260
  using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
261
261
  </span>