@twilio/conversations 2.0.0-rc.1 → 2.0.1-canary.1
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/README.md +25 -28
- package/dist/browser.js +3125 -3460
- package/dist/browser.js.map +1 -1
- package/dist/docs/assets/js/search.js +1 -1
- package/dist/docs/classes/AggregatedDeliveryReceipt.html +22 -6
- package/dist/docs/classes/Client.html +78 -33
- package/dist/docs/classes/Conversation.html +33 -17
- package/dist/docs/classes/DetailedDeliveryReceipt.html +22 -6
- package/dist/docs/classes/Media.html +23 -7
- package/dist/docs/classes/Message.html +23 -7
- package/dist/docs/classes/MessageBuilder.html +3280 -0
- package/dist/docs/classes/Participant.html +23 -7
- package/dist/docs/classes/PushNotification.html +24 -8
- package/dist/docs/classes/RestPaginator.html +28 -9
- package/dist/docs/classes/UnsentMessage.html +3144 -0
- package/dist/docs/classes/User.html +25 -9
- package/dist/docs/index.html +89 -47
- package/dist/docs/interfaces/ClientOptions.html +22 -6
- package/dist/docs/interfaces/ConversationState.html +22 -6
- package/dist/docs/interfaces/CreateConversationOptions.html +22 -6
- package/dist/docs/interfaces/LastMessage.html +22 -6
- package/dist/docs/interfaces/Paginator.html +3243 -0
- package/dist/docs/interfaces/PushNotificationData.html +3168 -0
- package/dist/docs/interfaces/SendEmailOptions.html +22 -6
- package/dist/docs/interfaces/SendMediaOptions.html +24 -7
- package/dist/docs/modules.html +88 -46
- package/dist/lib/aggregated-delivery-receipt.js +227 -0
- package/dist/lib/aggregated-delivery-receipt.js.map +1 -0
- package/dist/lib/client.js +872 -0
- package/dist/lib/client.js.map +1 -0
- package/dist/lib/command-executor.js +203 -0
- package/dist/lib/command-executor.js.map +1 -0
- package/dist/lib/configuration.js +196 -0
- package/dist/lib/configuration.js.map +1 -0
- package/dist/lib/conversation.js +973 -0
- package/dist/lib/conversation.js.map +1 -0
- package/dist/lib/data/conversations.js +443 -0
- package/dist/lib/data/conversations.js.map +1 -0
- package/dist/lib/data/messages.js +341 -0
- package/dist/lib/data/messages.js.map +1 -0
- package/dist/lib/data/participants.js +313 -0
- package/dist/lib/data/participants.js.map +1 -0
- package/dist/lib/data/users.js +228 -0
- package/dist/lib/data/users.js.map +1 -0
- package/dist/lib/detailed-delivery-receipt.js +154 -0
- package/dist/lib/detailed-delivery-receipt.js.map +1 -0
- package/dist/lib/index.js +167 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/interfaces/notification-types.js +143 -0
- package/dist/lib/interfaces/notification-types.js.map +1 -0
- package/dist/lib/logger.js +190 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/media.js +213 -0
- package/dist/lib/media.js.map +1 -0
- package/dist/lib/message-builder.js +209 -0
- package/dist/lib/message-builder.js.map +1 -0
- package/dist/lib/message.js +450 -0
- package/dist/lib/message.js.map +1 -0
- package/dist/lib/node_modules/tslib/tslib.es6.js +161 -0
- package/dist/lib/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/lib/packages/conversations/package.json.js +136 -0
- package/dist/lib/packages/conversations/package.json.js.map +1 -0
- package/dist/lib/participant.js +346 -0
- package/dist/lib/participant.js.map +1 -0
- package/dist/lib/push-notification.js +152 -0
- package/dist/lib/push-notification.js.map +1 -0
- package/dist/lib/rest-paginator.js +175 -0
- package/dist/lib/rest-paginator.js.map +1 -0
- package/dist/lib/services/network.js +205 -0
- package/dist/lib/services/network.js.map +1 -0
- package/dist/lib/services/typing-indicator.js +235 -0
- package/dist/lib/services/typing-indicator.js.map +1 -0
- package/dist/lib/unsent-message.js +159 -0
- package/dist/lib/unsent-message.js.map +1 -0
- package/dist/lib/user.js +392 -0
- package/dist/lib/user.js.map +1 -0
- package/dist/lib/util/deferred.js +154 -0
- package/dist/lib/util/deferred.js.map +1 -0
- package/dist/lib/util/index.js +206 -0
- package/dist/lib/util/index.js.map +1 -0
- package/dist/lib.d.ts +250 -59
- package/dist/lib.js +3055 -2919
- package/dist/lib.js.map +1 -1
- package/dist/twilio-conversations.js +25175 -23918
- package/dist/twilio-conversations.min.js +14 -2
- package/package.json +16 -14
- package/CHANGELOG.md +0 -168
- package/dist/post-install.js +0 -29
- package/dist/react-native.js +0 -4412
- package/dist/react-native.js.map +0 -1
package/package.json
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@twilio/conversations",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.1-canary.1+a593ec5",
|
4
4
|
"description": "Twilio Conversations client library",
|
5
5
|
"main": "./dist/lib.js",
|
6
6
|
"browser": "./dist/browser.js",
|
7
|
+
"react-native": "./dist/lib/index.js",
|
7
8
|
"types": "./dist/lib.d.ts",
|
8
9
|
"author": "Twilio",
|
9
10
|
"license": "MIT",
|
@@ -29,23 +30,23 @@
|
|
29
30
|
"sourceMapReport:html": "npx source-map-explorer@2.5.2 ./dist/lib.js --html ./dist/lib.report.html",
|
30
31
|
"sourceMapReport:json": "npx source-map-explorer@2.5.2 ./dist/lib.js --json ./dist/lib.report.json",
|
31
32
|
"docs": "npx typedoc && npx ts-node docs-postprocess.ts",
|
32
|
-
"ci": "yarn clean && yarn lint && yarn build && yarn ssri && yarn sourceMapReport:html && yarn sourceMapReport:json && yarn docs"
|
33
|
-
"postinstall": "if [ -f ./dist/post-install.js ]; then node ./dist/post-install.js; fi"
|
33
|
+
"ci": "yarn clean && yarn lint && yarn build && yarn ssri && yarn sourceMapReport:html && yarn sourceMapReport:json && yarn docs"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
36
|
"@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.
|
37
|
+
"@twilio/declarative-type-validator": "^0.1.10-canary.1+a593ec5",
|
38
|
+
"@twilio/mcs-client": "^0.5.2-canary.1+a593ec5",
|
39
|
+
"@twilio/notifications": "^1.0.4-canary.1+a593ec5",
|
40
|
+
"@twilio/operation-retrier": "^4.0.6-canary.1+a593ec5",
|
41
|
+
"@twilio/replay-event-emitter": "^0.2.3-canary.1+a593ec5",
|
41
42
|
"core-js": "^3.17.3",
|
42
43
|
"glob": "^7.1.7",
|
43
44
|
"iso8601-duration": "=1.2.0",
|
45
|
+
"lodash.isequal": "^4.5.0",
|
44
46
|
"loglevel": "^1.6.6",
|
45
47
|
"platform": "^1.3.6",
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"twilsock": "^0.12.0-rc.1",
|
48
|
+
"twilio-sync": "^3.0.6-canary.1+a593ec5",
|
49
|
+
"twilsock": "^0.12.1-canary.1+a593ec5",
|
49
50
|
"uuid": "^3.4.0"
|
50
51
|
},
|
51
52
|
"devDependencies": {
|
@@ -58,6 +59,7 @@
|
|
58
59
|
"@types/chai": "^4.2.5",
|
59
60
|
"@types/chai-as-promised": "^7.1.2",
|
60
61
|
"@types/chai-string": "^1.4.1",
|
62
|
+
"@types/lodash.isequal": "^4.5.5",
|
61
63
|
"@types/mocha": "^5.2.7",
|
62
64
|
"@types/node": "^12.12.12",
|
63
65
|
"@types/sinon": "^10.0.0",
|
@@ -65,7 +67,7 @@
|
|
65
67
|
"async": "^3.0.1",
|
66
68
|
"async-test-tools": "^1.0.7",
|
67
69
|
"backoff": "^2.5.0",
|
68
|
-
"browserslist": "^4.
|
70
|
+
"browserslist": "^4.17.3",
|
69
71
|
"chai": "^4.2.0",
|
70
72
|
"chai-as-promised": "^7.1.1",
|
71
73
|
"chai-string": "^1.5.0",
|
@@ -81,7 +83,6 @@
|
|
81
83
|
"nyc": "^14.1.1",
|
82
84
|
"path": "^0.12.7",
|
83
85
|
"rollup": "^2.51.1",
|
84
|
-
"rollup-plugin-copy": "^3.4.0",
|
85
86
|
"rollup-plugin-polyfill-node": "^0.6.2",
|
86
87
|
"rollup-plugin-terser": "^7.0.2",
|
87
88
|
"rollup-plugin-ts": "^1.4.0",
|
@@ -96,7 +97,7 @@
|
|
96
97
|
"vinyl-source-stream": "^2.0.0"
|
97
98
|
},
|
98
99
|
"engines": {
|
99
|
-
"node": ">=
|
100
|
+
"node": ">=14"
|
100
101
|
},
|
101
102
|
"browserslist": [
|
102
103
|
"IE 11",
|
@@ -109,5 +110,6 @@
|
|
109
110
|
"last 2 FirefoxAndroid version",
|
110
111
|
"last 2 Samsung versions",
|
111
112
|
"last 2 UCAndroid versions"
|
112
|
-
]
|
113
|
+
],
|
114
|
+
"gitHead": "a593ec59cbb34801a5bf478866f8597ff2aab27c"
|
113
115
|
}
|
package/CHANGELOG.md
DELETED
@@ -1,168 +0,0 @@
|
|
1
|
-
# Change Log
|
2
|
-
|
3
|
-
All notable changes to this project will be documented in this file.
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
-
|
6
|
-
## [2.0.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.0-rc.0...@twilio/conversations@2.0.0-rc.1) (2021-10-04)
|
7
|
-
|
8
|
-
|
9
|
-
### ⚠ BREAKING CHANGES
|
10
|
-
|
11
|
-
* User.updateFriendlyName no longer accepts
|
12
|
-
null as the value.
|
13
|
-
* Passing null to Conversation.sendMessage
|
14
|
-
will result with the message body being empty.
|
15
|
-
|
16
|
-
### Features
|
17
|
-
|
18
|
-
* Add getCachedTemporaryUrl() ([c453e70](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c453e70d0e0bc8bb6f0cd80ef0e2a3309b5ba804))
|
19
|
-
* Add limits support ([b471295](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b4712954bf6f0cf82c47c77b96a98ed1ebe9c158))
|
20
|
-
* Add Media category field ([0672c20](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0672c202d000736dda37be66387692e2befe24bd))
|
21
|
-
* Add mediaSet GET operation support ([424bd4a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/424bd4abe42312ea01740bc142ed1c6ec3b1913d))
|
22
|
-
* Add multiple media accessors ([99e78e6](https://github.com/twilio/rtd-sdk-monorepo-js/commit/99e78e6239b87d36b23e6bbbd0bc68f19b869f85))
|
23
|
-
* Add sendMessageV2 and prepareMessage() builder ([fd5ae39](https://github.com/twilio/rtd-sdk-monorepo-js/commit/fd5ae39816e45cce83a37120bfff3f2d530f09d3))
|
24
|
-
* Allow specifying filename when uploading media file ([abd6126](https://github.com/twilio/rtd-sdk-monorepo-js/commit/abd61266135b14c27c3d076c009a3fd331a0f810))
|
25
|
-
* Dispose of session in favour of the sessionless protocol ([8b46fbd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/8b46fbdac04d7e2cf55a74fb13b3016661f869b8))
|
26
|
-
* Do not filter out body for media messages ([3eeeabc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/3eeeabc7c32b2798bef40e50466610d155aa68e5))
|
27
|
-
|
28
|
-
|
29
|
-
### Bug Fixes
|
30
|
-
|
31
|
-
* Add token update for notificationClient ([5cda351](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5cda3513c0df4aac8df01034d2764bb0e970a476))
|
32
|
-
* Default addNonChatParticipant options to empty if not provided ([84e205b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/84e205b7e4c4c2faebce6fe79521751765dde8c5))
|
33
|
-
* Deprecate unsetPushRegistrationId and add removePushRegistrations ([82ef892](https://github.com/twilio/rtd-sdk-monorepo-js/commit/82ef892537942efd1e47302dad33086a2d8a5f22))
|
34
|
-
* Fix setPushRegistrationId and unsetPushRegistrationId impls ([9120a65](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9120a65834c9fb38c184c55bfa961d2e1cddb8ca))
|
35
|
-
* Return correct type from function ([5353810](https://github.com/twilio/rtd-sdk-monorepo-js/commit/5353810e32de201415f1e93d25d1b679eac2d974))
|
36
|
-
* Streamline Message state initialization ([a29331f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a29331f3d7e75ed85d4919efd67a5766482af06b))
|
37
|
-
|
38
|
-
|
39
|
-
### Code Refactoring
|
40
|
-
|
41
|
-
* Migrate to Sessionless EditUser command ([060b96b](https://github.com/twilio/rtd-sdk-monorepo-js/commit/060b96b5019311a47e7fdb71b12cbdd4996f3e44))
|
42
|
-
* Migrate to Sessionless SendMessage command ([997e17f](https://github.com/twilio/rtd-sdk-monorepo-js/commit/997e17fd04426aebe04e1fa734752aee4ddecaf5))
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
## [2.0.0-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.12...@twilio/conversations@2.0.0-rc.0) (2021-09-23)
|
47
|
-
|
48
|
-
|
49
|
-
### ⚠ BREAKING CHANGES
|
50
|
-
|
51
|
-
* Add init registrations
|
52
|
-
* Use twilsock connection state
|
53
|
-
|
54
|
-
### Features
|
55
|
-
|
56
|
-
* Add init registrations ([d09c52d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/d09c52d2b1894fb0db2e3a084937350ee1a73f01))
|
57
|
-
* Export Telemetry from Twilsock ([eb261ec](https://github.com/twilio/rtd-sdk-monorepo-js/commit/eb261ecdb366b6381462c377431735c5c09f1094))
|
58
|
-
* Use twilsock connection state ([2a6a4be](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2a6a4be6384037ca80f1a02663cb126cbff3797a))
|
59
|
-
|
60
|
-
|
61
|
-
### Bug Fixes
|
62
|
-
|
63
|
-
* Fix getMessages()' usage of sync pagination ([4563227](https://github.com/twilio/rtd-sdk-monorepo-js/commit/45632271337affeb3af7dcf8bec78b555b5db6b1))
|
64
|
-
* Start client connection state in 'unknown' ([a78acd1](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a78acd1e5dde7532cfd64ed6ed09178d5009399e))
|
65
|
-
* Use Transport from Twilsock ([7f0ce1e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7f0ce1e8e74b39d38cb4feff685e19807cba5ff0))
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
### [1.2.4-rc.12](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.11...@twilio/conversations@1.2.4-rc.12) (2021-09-12)
|
70
|
-
|
71
|
-
**Note:** Version bump only for package @twilio/conversations
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
### [1.2.4-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.10...@twilio/conversations@1.2.4-rc.11) (2021-09-12)
|
78
|
-
|
79
|
-
**Note:** Version bump only for package @twilio/conversations
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
### [1.2.4-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.9...@twilio/conversations@1.2.4-rc.10) (2021-09-12)
|
86
|
-
|
87
|
-
**Note:** Version bump only for package @twilio/conversations
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
### [1.2.4-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.8...@twilio/conversations@1.2.4-rc.9) (2021-09-12)
|
94
|
-
|
95
|
-
**Note:** Version bump only for package @twilio/conversations
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
### [1.2.4-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.7...@twilio/conversations@1.2.4-rc.8) (2021-09-12)
|
102
|
-
|
103
|
-
**Note:** Version bump only for package @twilio/conversations
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
### [1.2.4-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.5...@twilio/conversations@1.2.4-rc.7) (2021-09-12)
|
110
|
-
|
111
|
-
**Note:** Version bump only for package @twilio/conversations
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
### [1.2.4-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.5...@twilio/conversations@1.2.4-rc.6) (2021-09-12)
|
118
|
-
|
119
|
-
**Note:** Version bump only for package @twilio/conversations
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
### [1.2.4-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.4...@twilio/conversations@1.2.4-rc.5) (2021-09-10)
|
126
|
-
|
127
|
-
**Note:** Version bump only for package @twilio/conversations
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
### [1.2.4-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.3...@twilio/conversations@1.2.4-rc.4) (2021-09-10)
|
134
|
-
|
135
|
-
**Note:** Version bump only for package @twilio/conversations
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
### [1.2.4-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.4-rc.2...@twilio/conversations@1.2.4-rc.3) (2021-09-09)
|
142
|
-
|
143
|
-
|
144
|
-
### Bug Fixes
|
145
|
-
|
146
|
-
* Fix Rollup type export issue ([02f9d73](https://github.com/twilio/rtd-sdk-monorepo-js/commit/02f9d7307ce982afbd1a8e92f8e8bdd6646b74f0))
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
### [1.2.4-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.3-rc.1...@twilio/conversations@1.2.4-rc.2) (2021-09-07)
|
151
|
-
|
152
|
-
**Note:** Version bump only for package @twilio/conversations
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
### [1.2.3-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@1.2.3-rc.0...@twilio/conversations@1.2.3-rc.1) (2021-08-23)
|
159
|
-
|
160
|
-
**Note:** Version bump only for package @twilio/conversations
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
### 1.2.3-rc.0 (2021-08-23)
|
167
|
-
|
168
|
-
**Note:** Version bump only for package @twilio/conversations
|
package/dist/post-install.js
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
// Abort if the script is being run after "npm install" or "yarn" is executed on
|
2
|
-
// the monorepo project itself.
|
3
|
-
try {
|
4
|
-
const monorepoPackageJson = require("../../../package.json");
|
5
|
-
|
6
|
-
if (monorepoPackageJson.name === "root") {
|
7
|
-
return;
|
8
|
-
}
|
9
|
-
} catch {}
|
10
|
-
|
11
|
-
// Change the "browser" property to "./dist/react-native.js" if React Native
|
12
|
-
// is detected.
|
13
|
-
const fs = require("fs");
|
14
|
-
|
15
|
-
const mainProjectPackageJsonPath =
|
16
|
-
require.main.paths[0].split("node_modules")[0] + "package.json";
|
17
|
-
const mainProjectPackageJson = require(mainProjectPackageJsonPath);
|
18
|
-
const dependencyPackageJsonPath = `${__dirname}/../package.json`;
|
19
|
-
const dependencyPackageJson = require(dependencyPackageJsonPath);
|
20
|
-
|
21
|
-
if (
|
22
|
-
typeof mainProjectPackageJson?.dependencies?.["react-native"] !== "undefined"
|
23
|
-
) {
|
24
|
-
dependencyPackageJson["browser"] = "./dist/react-native.js";
|
25
|
-
fs.writeFileSync(
|
26
|
-
dependencyPackageJsonPath,
|
27
|
-
JSON.stringify(dependencyPackageJson, null, 2)
|
28
|
-
);
|
29
|
-
}
|