@twilio/conversations 2.1.0-rc.5 → 2.1.0-rc.9
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 +34 -0
- package/builds/browser.js +9 -7
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +36 -6
- package/builds/lib.js +9 -7
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +81 -64
- package/builds/twilio-conversations.min.js +2 -2
- package/dist/configuration.js.map +1 -1
- package/dist/conversation.js +3 -0
- package/dist/conversation.js.map +1 -1
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +4 -5
- package/dist/message.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/AggregatedDeliveryReceipt.html +0 -117
- package/docs/classes/Client.html +0 -117
- package/docs/classes/Conversation.html +35 -129
- package/docs/classes/DetailedDeliveryReceipt.html +0 -117
- package/docs/classes/Media.html +0 -117
- package/docs/classes/Message.html +4 -121
- package/docs/classes/MessageBuilder.html +2 -119
- package/docs/classes/Participant.html +4 -121
- package/docs/classes/PushNotification.html +0 -117
- package/docs/classes/RestPaginator.html +0 -117
- package/docs/classes/UnsentMessage.html +0 -117
- package/docs/classes/User.html +4 -121
- package/docs/index.html +60 -0
- package/docs/interfaces/ClientOptions.html +0 -117
- package/docs/interfaces/ConversationBindings.html +0 -117
- package/docs/interfaces/ConversationEmailBinding.html +0 -117
- package/docs/interfaces/ConversationLimits.html +3098 -0
- package/docs/interfaces/ConversationState.html +0 -117
- package/docs/interfaces/CreateConversationOptions.html +1 -118
- package/docs/interfaces/LastMessage.html +0 -117
- package/docs/interfaces/Paginator.html +0 -117
- package/docs/interfaces/ParticipantBindings.html +0 -117
- package/docs/interfaces/ParticipantEmailBinding.html +0 -117
- package/docs/interfaces/PushNotificationData.html +0 -117
- package/docs/interfaces/SendEmailOptions.html +0 -117
- package/docs/interfaces/SendMediaOptions.html +0 -117
- package/docs/modules.html +60 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,40 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.1.0-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.8...@twilio/conversations@2.1.0-rc.9) (2022-02-08)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @twilio/conversations
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [2.1.0-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.7...@twilio/conversations@2.1.0-rc.8) (2022-02-03)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @twilio/conversations
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
## [2.1.0-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.6...@twilio/conversations@2.1.0-rc.7) (2022-02-03)
|
23
|
+
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
* Allow undefined for email get methods ([a753060](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a75306021603e2bfb770d60f3834674b04069623))
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
## [2.1.0-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.5...@twilio/conversations@2.1.0-rc.6) (2022-02-02)
|
32
|
+
|
33
|
+
|
34
|
+
### Bug Fixes
|
35
|
+
|
36
|
+
* Make message.participantSid nullable ([86a90d4](https://github.com/twilio/rtd-sdk-monorepo-js/commit/86a90d4e76334b6581d7bb3214f97417606b2c55))
|
37
|
+
|
38
|
+
|
39
|
+
|
6
40
|
## [2.1.0-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.1.0-rc.4...@twilio/conversations@2.1.0-rc.5) (2022-01-31)
|
7
41
|
|
8
42
|
**Note:** Version bump only for package @twilio/conversations
|
package/builds/browser.js
CHANGED
@@ -2646,9 +2646,7 @@ var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
2646
2646
|
}, {
|
2647
2647
|
key: "participantSid",
|
2648
2648
|
get: function get() {
|
2649
|
-
|
2650
|
-
|
2651
|
-
return (_this$state$participa = this.state.participantSid) !== null && _this$state$participa !== void 0 ? _this$state$participa : "";
|
2649
|
+
return this.state.participantSid;
|
2652
2650
|
}
|
2653
2651
|
/**
|
2654
2652
|
* Aggregated information about the message delivery statuses across all participants of a conversation..
|
@@ -2794,7 +2792,7 @@ var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
2794
2792
|
}
|
2795
2793
|
|
2796
2794
|
_context.next = 4;
|
2797
|
-
return this.conversation.getParticipantBySid(this.participantSid).catch(function () {
|
2795
|
+
return this.conversation.getParticipantBySid(this.state.participantSid).catch(function () {
|
2798
2796
|
log$5.debug("Participant with sid \"".concat(_this2.participantSid, "\" not found for message ").concat(_this2.sid));
|
2799
2797
|
return null;
|
2800
2798
|
});
|
@@ -3120,9 +3118,9 @@ var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
3120
3118
|
|
3121
3119
|
_defineProperty__default['default'](Message, "updated", "updated");
|
3122
3120
|
|
3123
|
-
__decorate([declarativeTypeValidator.validateTypes(declarativeTypeValidator.nonEmptyString), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Media)], Message.prototype, "getEmailBody", null);
|
3121
|
+
__decorate([declarativeTypeValidator.validateTypes([declarativeTypeValidator.nonEmptyString, "undefined"]), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Media)], Message.prototype, "getEmailBody", null);
|
3124
3122
|
|
3125
|
-
__decorate([declarativeTypeValidator.validateTypes(declarativeTypeValidator.nonEmptyString), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Media)], Message.prototype, "getEmailHistory", null);
|
3123
|
+
__decorate([declarativeTypeValidator.validateTypes([declarativeTypeValidator.nonEmptyString, "undefined"]), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Media)], Message.prototype, "getEmailHistory", null);
|
3126
3124
|
|
3127
3125
|
__decorate([declarativeTypeValidator.validateTypesAsync("string"), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Promise)], Message.prototype, "updateBody", null);
|
3128
3126
|
|
@@ -4172,6 +4170,10 @@ var Conversation = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
4172
4170
|
get: function get() {
|
4173
4171
|
return this.channelState.bindings;
|
4174
4172
|
}
|
4173
|
+
/**
|
4174
|
+
* Current conversation limits.
|
4175
|
+
*/
|
4176
|
+
|
4175
4177
|
}, {
|
4176
4178
|
key: "limits",
|
4177
4179
|
get: function get() {
|
@@ -6858,7 +6860,7 @@ function PushNotification(data) {
|
|
6858
6860
|
this.data = data.data || {};
|
6859
6861
|
};
|
6860
6862
|
|
6861
|
-
var version = "2.1.0-rc.
|
6863
|
+
var version = "2.1.0-rc.9";
|
6862
6864
|
|
6863
6865
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
6864
6866
|
|