@twilio/conversations 2.0.1 → 2.1.0-rc.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 +74 -0
- package/NOTICE.txt +679 -0
- package/builds/browser.js +889 -619
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +384 -129
- package/builds/lib.js +889 -619
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +1065 -939
- package/builds/twilio-conversations.min.js +2 -14
- package/dist/aggregated-delivery-receipt.js +6 -1
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/client.js +165 -142
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +16 -14
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +14 -10
- package/dist/configuration.js.map +1 -1
- package/dist/conversation.js +232 -159
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +82 -78
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +43 -39
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +100 -78
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +24 -22
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +1 -1
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/interfaces/attributes.js +147 -0
- package/dist/interfaces/attributes.js.map +1 -0
- package/dist/interfaces/notification-types.js +5 -5
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/logger.js +36 -15
- package/dist/logger.js.map +1 -1
- package/dist/media.js +21 -9
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +56 -3
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +157 -78
- package/dist/message.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js +101 -50
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +16 -6
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +18 -14
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +20 -17
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +87 -60
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +3 -1
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js +6 -6
- package/dist/util/index.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/AggregatedDeliveryReceipt.html +0 -102
- package/docs/classes/Client.html +24 -132
- package/docs/classes/Conversation.html +37 -132
- package/docs/classes/DetailedDeliveryReceipt.html +1 -103
- package/docs/classes/Media.html +0 -102
- package/docs/classes/Message.html +73 -109
- package/docs/classes/MessageBuilder.html +78 -104
- package/docs/classes/Participant.html +37 -110
- package/docs/classes/PushNotification.html +0 -102
- package/docs/classes/RestPaginator.html +0 -102
- package/docs/classes/UnsentMessage.html +0 -102
- package/docs/classes/User.html +7 -109
- package/docs/index.html +93 -3
- package/docs/interfaces/ClientOptions.html +0 -102
- package/docs/interfaces/ConversationBindings.html +3001 -0
- package/docs/interfaces/ConversationEmailBinding.html +3001 -0
- package/docs/interfaces/ConversationState.html +0 -102
- package/docs/interfaces/CreateConversationOptions.html +1 -103
- package/docs/interfaces/LastMessage.html +0 -102
- package/docs/interfaces/Paginator.html +0 -102
- package/docs/interfaces/ParticipantBindings.html +3001 -0
- package/docs/interfaces/ParticipantEmailBinding.html +3001 -0
- package/docs/interfaces/PushNotificationData.html +0 -102
- package/docs/interfaces/SendEmailOptions.html +0 -102
- package/docs/interfaces/SendMediaOptions.html +0 -102
- package/docs/modules.html +93 -3
- package/package.json +23 -17
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@twilio/conversations",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.1.0-rc.6",
|
4
4
|
"description": "Twilio Conversations client library",
|
5
5
|
"main": "./builds/lib.js",
|
6
6
|
"browser": "./builds/browser.js",
|
@@ -15,18 +15,20 @@
|
|
15
15
|
"builds/**/*.js",
|
16
16
|
"builds/**/*.map",
|
17
17
|
"README.md",
|
18
|
-
"LICENSE"
|
18
|
+
"LICENSE",
|
19
|
+
"NOTICE.txt"
|
19
20
|
],
|
20
21
|
"scripts": {
|
21
22
|
"clean": "rm -rf ./coverage ./dist ./builds ./docs",
|
22
|
-
"lint": "npx
|
23
|
-
"lint:
|
23
|
+
"lint:strict": "npx tsc-strict",
|
24
|
+
"lint": "yarn lint:strict && npx eslint src test --ext .ts",
|
25
|
+
"lint:fix": "yarn lint:strict && npx eslint src test --ext .ts --fix",
|
24
26
|
"test:unit": "env FORCE_COLOR=1 NODE_ENV=test npx nyc --report-dir coverage/unit ./node_modules/.bin/mocha test/unit/index.ts",
|
25
27
|
"test:integration": "env FORCE_COLOR=1 NODE_ENV=test npx nyc --report-dir coverage/integration ./node_modules/.bin/mocha test/integration/index.ts",
|
26
28
|
"build": "npx rollup -c",
|
27
29
|
"ssri": "yarn ssri:bundle && yarn ssri:min",
|
28
|
-
"ssri:bundle": "openssl dgst -sha256 -binary ./builds/twilio-conversations.js | openssl base64 -A | (printf \"sha256-\" && cat)
|
29
|
-
"ssri:min": "openssl dgst -sha256 -binary ./builds/twilio-conversations.min.js | openssl base64 -A | (printf \"sha256-\" && cat)
|
30
|
+
"ssri:bundle": "openssl dgst -sha256 -binary ./builds/twilio-conversations.js | openssl base64 -A | (printf \"sha256-\" && cat) | tee ./builds/twilio-conversations.sri",
|
31
|
+
"ssri:min": "openssl dgst -sha256 -binary ./builds/twilio-conversations.min.js | openssl base64 -A | (printf \"sha256-\" && cat) | tee ./builds/twilio-conversations.min.sri",
|
30
32
|
"sourceMapReport:html": "npx source-map-explorer@2.5.2 ./builds/lib.js --html ./builds/lib.report.html",
|
31
33
|
"sourceMapReport:json": "npx source-map-explorer@2.5.2 ./builds/lib.js --json ./builds/lib.report.json",
|
32
34
|
"docs": "npx typedoc && npx ts-node docs-postprocess.ts",
|
@@ -34,20 +36,19 @@
|
|
34
36
|
},
|
35
37
|
"dependencies": {
|
36
38
|
"@babel/runtime": "^7.14.5",
|
37
|
-
"@twilio/declarative-type-validator": "^0.1.
|
38
|
-
"@twilio/mcs-client": "^0.5.
|
39
|
-
"@twilio/notifications": "^1.0.
|
40
|
-
"@twilio/operation-retrier": "^4.0.
|
41
|
-
"@twilio/replay-event-emitter": "^0.2.
|
39
|
+
"@twilio/declarative-type-validator": "^0.1.11-rc.0",
|
40
|
+
"@twilio/mcs-client": "^0.5.3-rc.0",
|
41
|
+
"@twilio/notifications": "^1.0.5-rc.0",
|
42
|
+
"@twilio/operation-retrier": "^4.0.7-rc.0",
|
43
|
+
"@twilio/replay-event-emitter": "^0.2.4-rc.0",
|
42
44
|
"core-js": "^3.17.3",
|
43
|
-
"glob": "^7.1.7",
|
44
45
|
"iso8601-duration": "=1.2.0",
|
45
46
|
"isomorphic-form-data": "^2.0.0",
|
46
47
|
"lodash.isequal": "^4.5.0",
|
47
48
|
"loglevel": "^1.6.6",
|
48
49
|
"platform": "^1.3.6",
|
49
|
-
"twilio-sync": "^3.0.
|
50
|
-
"twilsock": "^0.12.
|
50
|
+
"twilio-sync": "^3.0.7-rc.0",
|
51
|
+
"twilsock": "^0.12.2-rc.0",
|
51
52
|
"uuid": "^3.4.0"
|
52
53
|
},
|
53
54
|
"devDependencies": {
|
@@ -65,6 +66,8 @@
|
|
65
66
|
"@types/node": "^12.12.12",
|
66
67
|
"@types/sinon": "^10.0.0",
|
67
68
|
"@types/sinon-chai": "^3.2.2",
|
69
|
+
"@typescript-eslint/eslint-plugin": "5.4.0",
|
70
|
+
"@typescript-eslint/parser": "5.4.0",
|
68
71
|
"async": "^3.0.1",
|
69
72
|
"async-test-tools": "^1.0.7",
|
70
73
|
"backoff": "^2.5.0",
|
@@ -75,6 +78,9 @@
|
|
75
78
|
"cheerio": "^1.0.0-rc.2",
|
76
79
|
"cross-env": "^5.2.0",
|
77
80
|
"dotenv": "^10.0.0",
|
81
|
+
"eslint": "8.3.0",
|
82
|
+
"eslint-config-prettier": "8.3.0",
|
83
|
+
"eslint-plugin-prettier": "4.0.0",
|
78
84
|
"fancy-log": "^1.3.3",
|
79
85
|
"fs": "0.0.2",
|
80
86
|
"mocha": "^6.2.2",
|
@@ -82,19 +88,19 @@
|
|
82
88
|
"node-fetch": "^2.6.1",
|
83
89
|
"nyc": "^14.1.1",
|
84
90
|
"path": "^0.12.7",
|
91
|
+
"prettier": "2.4.1",
|
85
92
|
"rollup": "^2.51.1",
|
93
|
+
"rollup-plugin-copy": "^3.4.0",
|
86
94
|
"rollup-plugin-polyfill-node": "^0.6.2",
|
87
95
|
"rollup-plugin-terser": "^7.0.2",
|
88
96
|
"rollup-plugin-ts": "^1.4.0",
|
89
97
|
"sinon": "^9.2.4",
|
90
98
|
"sinon-chai": "^3.3.0",
|
91
99
|
"ts-node": "^8.5.2",
|
92
|
-
"tslint": "^5.20.1",
|
93
100
|
"twilio": "^3.37.1",
|
94
101
|
"typedoc": "^0.21.4",
|
95
102
|
"typescript": "^4.3.2",
|
96
|
-
"
|
97
|
-
"vinyl-source-stream": "^2.0.0"
|
103
|
+
"typescript-strict-plugin": "1.1.2"
|
98
104
|
},
|
99
105
|
"engines": {
|
100
106
|
"node": ">=14"
|