twilio-taskrouter 2.0.1 → 2.0.3
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 +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 +1 -1
- package/dist/docs/classes.list.html +1 -1
- package/dist/docs/global.html +33 -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 +4 -3
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! twilio-taskrouter.js 2.0.
|
|
1
|
+
/*! twilio-taskrouter.js 2.0.3 */
|
package/dist/types.d.ts
CHANGED
|
@@ -187,6 +187,7 @@ type FetchTaskQueuesParams = {
|
|
|
187
187
|
AfterSid?: string;
|
|
188
188
|
FriendlyName?: string;
|
|
189
189
|
Ordering?: "DateUpdated:asc" | "DateUpdated:desc"
|
|
190
|
+
WorkerSid?: string;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
type FetchWorkersParams = {
|
|
@@ -211,8 +212,8 @@ export class Workspace {
|
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
export interface Transfers {
|
|
214
|
-
readonly incoming: IncomingTransfer;
|
|
215
|
-
readonly outgoing: OutgoingTransfer;
|
|
215
|
+
readonly incoming: IncomingTransfer | null;
|
|
216
|
+
readonly outgoing: OutgoingTransfer | null;
|
|
216
217
|
}
|
|
217
218
|
|
|
218
219
|
export interface IncomingTransfer {
|
|
@@ -328,7 +329,7 @@ export interface WorkerOptions {
|
|
|
328
329
|
logLevel?: "error" | "warn" | "info" | "debug" | "trace" | "silent";
|
|
329
330
|
ebServer?: string;
|
|
330
331
|
wsServer?: string;
|
|
331
|
-
eventHandlerClass?:
|
|
332
|
+
eventHandlerClass?: typeof TaskRouterEventHandler;
|
|
332
333
|
region?: string;
|
|
333
334
|
}
|
|
334
335
|
|
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.3",
|
|
5
5
|
"description": "Twilio TaskRouter JavaScript library",
|
|
6
6
|
"homepage": "https://www.twilio.com",
|
|
7
7
|
"author": "Wanjun Li <wli@twilio.com>",
|
|
@@ -27,10 +27,11 @@
|
|
|
27
27
|
"webpack": "webpack --config ./webpack.config.js --progress --mode",
|
|
28
28
|
"mocha": "mocha --require @babel/register --exit $1",
|
|
29
29
|
"clean": "rm -rf ./coverage ./dist ./node_modules",
|
|
30
|
-
"lint": "eslint ./lib ./test/integration",
|
|
30
|
+
"lint": "eslint ./lib ./test/integration/spec ./test/integration/index.js",
|
|
31
31
|
"test:unit": "mocha --full-trace --check-leaks --require @babel/register ./test/unit/index.js --exit",
|
|
32
32
|
"test:integration": "mocha --full-trace --check-leaks --require @babel/register -r ./test/mocha/no-unicode-reporter.js -r ./test/mocha/fetch.js ./test/integration/index.js --reporter mochawesome --reporter-options reportDir=reports,reportFilename=e2e-test-report --timeout 40000 --exit",
|
|
33
33
|
"test:integration-six-sigma": "mocha --full-trace --check-leaks --require @babel/register -r ./test/mocha/no-unicode-reporter.js -r ./test/mocha/fetch.js ./test/integration/index.js --reporter mochawesome --reporter-options reportDir=reports,reportFilename=e2e-test-report --timeout 40000 --exit -g '@SixSigma'",
|
|
34
|
+
"test:integration:tr:voice": "mocha --full-trace --check-leaks --require @babel/register ./test/integration/voice/index.js --timeout 40000 --exit",
|
|
34
35
|
"test:integration:voice": "mocha --full-trace --check-leaks --require @babel/register ./test/voice/index.js --timeout 40000 --exit",
|
|
35
36
|
"test:integration:media": "mocha --full-trace --check-leaks --require @babel/register ./test/media/index.js --timeout 40000 --exit",
|
|
36
37
|
"test": "yarn test:unit && yarn test:integration",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"url": "https://github.com/twilio/twilio-taskrouter.js.git"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
|
-
"axios": "^1.6.
|
|
59
|
+
"axios": "^1.6.7",
|
|
59
60
|
"events": "3.3.0",
|
|
60
61
|
"jwt-decode": "^3.1.2",
|
|
61
62
|
"lodash": "^4.17.21",
|