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.
- package/CHANGELOG.md +25 -2
- package/dist/docs/Activity.html +1 -1
- package/dist/docs/Channel.html +1 -1
- package/dist/docs/IncomingTransfer.html +1 -1
- package/dist/docs/OutgoingTransfer.html +1 -1
- package/dist/docs/Reservation.html +1 -1
- package/dist/docs/Supervisor.html +1 -1
- package/dist/docs/Task.html +1 -1
- package/dist/docs/TaskQueue.html +1 -1
- package/dist/docs/Transfers.html +1 -1
- package/dist/docs/Worker.html +1 -1
- package/dist/docs/Workspace.html +136 -1
- package/dist/docs/classes.list.html +1 -1
- package/dist/docs/global.html +1 -1
- package/dist/docs/index.html +1 -1
- 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/dist/types.d.ts +7 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! twilio-taskrouter.js 2.0.
|
|
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.
|
|
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
|
-
"
|
|
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": "^
|
|
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",
|