twilio-taskrouter 2.0.10 → 2.0.12

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.10 */
1
+ /*! twilio-taskrouter.js 2.0.12 */
package/dist/types.d.ts CHANGED
@@ -211,6 +211,7 @@ export class Workspace {
211
211
  fetchWorkers(params?: FetchWorkersParams): Promise<Map<string, Worker>>;
212
212
  fetchTaskQueue(queueSid: string): Promise<TaskQueue>;
213
213
  fetchTaskQueues(params?: FetchTaskQueuesParams): Promise<Map<string, TaskQueue>>;
214
+ fetchTask(taskSid: string): Promise<Task>;
214
215
  }
215
216
 
216
217
  export interface Transfers {
@@ -337,6 +338,12 @@ export interface WorkerOptions {
337
338
  enableVersionCheck?: boolean;
338
339
  }
339
340
 
341
+ export interface WorkspaceOptions {
342
+ region?: string;
343
+ pageSize?: number;
344
+ logLevel?: "error" | "warn" | "info" | "debug" | "trace" | "silent";
345
+ }
346
+
340
347
  export interface TaskOptions {
341
348
  attributes?: any;
342
349
  taskChannelUniqueName?: 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.10",
4
+ "version": "2.0.12",
5
5
  "description": "Twilio TaskRouter JavaScript library",
6
6
  "homepage": "https://www.twilio.com",
7
7
  "author": "Wanjun Li <wli@twilio.com>",
@@ -56,7 +56,8 @@
56
56
  "url": "https://github.com/twilio/twilio-taskrouter.js.git"
57
57
  },
58
58
  "dependencies": {
59
- "axios": "^1.6.7",
59
+ "@babel/runtime": "^7.16.3",
60
+ "axios": "^1.7.4",
60
61
  "events": "3.3.0",
61
62
  "jwt-decode": "^3.1.2",
62
63
  "lodash": "^4.17.21",
@@ -64,7 +65,7 @@
64
65
  "path-browserify": "^1.0.1",
65
66
  "typed-emitter": "^2.1.0",
66
67
  "util": "^0.12.4",
67
- "ws": "^7.5.10"
68
+ "ws": "^8.17.1"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@babel/core": "^7.16.0",
@@ -73,7 +74,6 @@
73
74
  "@babel/plugin-transform-runtime": "^7.16.4",
74
75
  "@babel/preset-env": "^7.16.4",
75
76
  "@babel/register": "^7.16.0",
76
- "@babel/runtime": "^7.16.3",
77
77
  "@types/express": "^4.17.7",
78
78
  "@types/qs": "^6.9.4",
79
79
  "async-test-tools": "^1.0.7",