twilio-taskrouter 2.0.7 → 2.0.8

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.
@@ -1 +1 @@
1
- /*! twilio-taskrouter.js 2.0.7 */
1
+ /*! twilio-taskrouter.js 2.0.8 */
package/dist/types.d.ts CHANGED
@@ -36,6 +36,8 @@ export class Worker extends (EventEmitter as new () => TypedEmitter<WorkerEvents
36
36
 
37
37
  export class Supervisor extends Worker {
38
38
  monitor(taskSid: string, reservationSid: string, extraParams: Object): Promise<void>;
39
+ setWorkerAttributes(workerSid: string, attributes: string): Promise<Worker>;
40
+ setWorkerActivity(workerSid: string, activitySid: string, options: Object): Promise<Worker>;
39
41
  }
40
42
 
41
43
  interface WorkerEvents {
@@ -326,6 +328,7 @@ export interface ReservationParticipantOptions {
326
328
  export interface WorkerOptions {
327
329
  connectActivitySid?: string;
328
330
  closeExistingSessions?: boolean;
331
+ setWorkerOfflineIfDisconnected?: boolean
329
332
  logLevel?: "error" | "warn" | "info" | "debug" | "trace" | "silent";
330
333
  ebServer?: string;
331
334
  wsServer?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio-taskrouter",
3
3
  "title": "Twilio TaskRouter",
4
- "version": "2.0.7",
4
+ "version": "2.0.8",
5
5
  "description": "Twilio TaskRouter JavaScript library",
6
6
  "homepage": "https://www.twilio.com",
7
7
  "author": "Wanjun Li <wli@twilio.com>",