@twilio/conversations 2.4.0-rc.0 → 2.4.0-rc.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 +17 -11
- package/builds/browser.js +19 -2
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +16 -3
- package/builds/lib.js +19 -2
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +19 -2
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/channel-metadata-client.js +6 -0
- package/dist/channel-metadata-client.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/ChannelMetadata.html +3050 -0
- package/docs/classes/Message.html +3 -3
- package/docs/classes/Participant.html +2 -2
- package/docs/index.html +14 -7
- package/docs/modules.html +14 -7
- package/package.json +2 -2
package/builds/lib.d.ts
CHANGED
@@ -345,9 +345,10 @@ interface ParticipantLinks {
|
|
345
345
|
*/
|
346
346
|
type ParticipantUpdateReason = "attributes" | "dateCreated" | "dateUpdated" | "roleSid" | "lastReadMessageIndex" | "lastReadTimestamp" | "bindings";
|
347
347
|
/**
|
348
|
-
*
|
348
|
+
* Participant type. The string variant can be used to denote new types of
|
349
|
+
* participant that aren't supported by this version of the SDK.
|
349
350
|
*/
|
350
|
-
type ParticipantType = "chat" | "sms" | "whatsapp" | "email";
|
351
|
+
type ParticipantType = "chat" | "sms" | "whatsapp" | "email" | string;
|
351
352
|
interface ParticipantUpdatedEventArgs {
|
352
353
|
participant: Participant;
|
353
354
|
updateReasons: ParticipantUpdateReason[];
|
@@ -1184,9 +1185,21 @@ declare class ContentTemplate {
|
|
1184
1185
|
type ChannelMetadataClientServices = {
|
1185
1186
|
commandExecutor: CommandExecutor;
|
1186
1187
|
};
|
1188
|
+
/**
|
1189
|
+
* Represents channel metadata.
|
1190
|
+
*/
|
1187
1191
|
declare class ChannelMetadata {
|
1192
|
+
/**
|
1193
|
+
* Communication channel type.
|
1194
|
+
*/
|
1188
1195
|
readonly type: string;
|
1196
|
+
/**
|
1197
|
+
* The actual metadata.
|
1198
|
+
*/
|
1189
1199
|
readonly data: unknown;
|
1200
|
+
/**
|
1201
|
+
* @internal
|
1202
|
+
*/
|
1190
1203
|
constructor(type: string, data: unknown);
|
1191
1204
|
}
|
1192
1205
|
declare class ChannelMetadataClient {
|
@@ -3052,4 +3065,4 @@ declare class NotificationTypes {
|
|
3052
3065
|
static readonly REMOVED_FROM_CONVERSATION = "twilio.conversations.removed_from_conversation";
|
3053
3066
|
static readonly CONSUMPTION_UPDATE = "twilio.channel.consumption_update";
|
3054
3067
|
}
|
3055
|
-
export { Conversation, ConversationBindings, ConversationEmailBinding, ConversationUpdateReason, ConversationStatus, NotificationLevel, ConversationState, ConversationUpdatedEventArgs, SendMediaOptions, SendEmailOptions, LastMessage, Participant, ParticipantUpdateReason, ParticipantType, ParticipantUpdatedEventArgs, ParticipantBindings, ParticipantEmailBinding, ParticipantEmailLevel, Message, MessageUpdateReason, MessageType, MessageUpdatedEventArgs, Media, MediaCategory$0 as MediaCategory, AggregatedDeliveryReceipt, DeliveryAmount, DetailedDeliveryReceipt, DeliveryStatus, RestPaginator, MessageBuilder, UnsentMessage, Paginator, ParticipantBindingOptions, User, UserUpdateReason, UserUpdatedEventArgs, PushNotification, PushNotificationType, PushNotificationDescriptor, PushNotificationData, NotificationTypes, Client, State, ConnectionState, NotificationsChannelType, ClientOptions, CreateConversationOptions, ConversationLimits, JSONValue, JSONObject, JSONArray, CancellablePromise, ContentDataActionUrl, ContentDataActionPhone, ContentDataActionReply, ContentDataActionOther, ContentDataAction, ContentDataText, ContentDataMedia, ContentDataLocation, ContentDataReply, ContentDataQuickReply, ContentDataCallToAction, ContentDataListPicker, ContentDataListItem, ContentDataCard, ContentDataOther, ContentData, ContentTemplate, ContentTemplateVariable };
|
3068
|
+
export { Conversation, ConversationBindings, ConversationEmailBinding, ConversationUpdateReason, ConversationStatus, NotificationLevel, ConversationState, ConversationUpdatedEventArgs, SendMediaOptions, SendEmailOptions, LastMessage, Participant, ParticipantUpdateReason, ParticipantType, ParticipantUpdatedEventArgs, ParticipantBindings, ParticipantEmailBinding, ParticipantEmailLevel, Message, MessageUpdateReason, MessageType, MessageUpdatedEventArgs, Media, MediaCategory$0 as MediaCategory, AggregatedDeliveryReceipt, DeliveryAmount, DetailedDeliveryReceipt, DeliveryStatus, RestPaginator, MessageBuilder, UnsentMessage, Paginator, ParticipantBindingOptions, User, UserUpdateReason, UserUpdatedEventArgs, PushNotification, PushNotificationType, PushNotificationDescriptor, PushNotificationData, NotificationTypes, Client, State, ConnectionState, NotificationsChannelType, ClientOptions, CreateConversationOptions, ConversationLimits, JSONValue, JSONObject, JSONArray, CancellablePromise, ContentDataActionUrl, ContentDataActionPhone, ContentDataActionReply, ContentDataActionOther, ContentDataAction, ContentDataText, ContentDataMedia, ContentDataLocation, ContentDataReply, ContentDataQuickReply, ContentDataCallToAction, ContentDataListPicker, ContentDataListItem, ContentDataCard, ContentDataOther, ContentData, ContentTemplate, ContentTemplateVariable, ChannelMetadata };
|
package/builds/lib.js
CHANGED
@@ -7815,7 +7815,7 @@ function PushNotification(data) {
|
|
7815
7815
|
this.data = data.data || {};
|
7816
7816
|
});
|
7817
7817
|
|
7818
|
-
var version = "2.4.0-rc.
|
7818
|
+
var version = "2.4.0-rc.1";
|
7819
7819
|
|
7820
7820
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
7821
7821
|
|
@@ -8563,7 +8563,23 @@ var QuickLRU = /*#__PURE__*/function (_Symbol$iterator) {
|
|
8563
8563
|
|
8564
8564
|
var quickLru = QuickLRU;
|
8565
8565
|
|
8566
|
-
|
8566
|
+
/**
|
8567
|
+
* Represents channel metadata.
|
8568
|
+
*/
|
8569
|
+
|
8570
|
+
var ChannelMetadata = /*#__PURE__*/_createClass__default["default"](
|
8571
|
+
/**
|
8572
|
+
* Communication channel type.
|
8573
|
+
*/
|
8574
|
+
|
8575
|
+
/**
|
8576
|
+
* The actual metadata.
|
8577
|
+
*/
|
8578
|
+
|
8579
|
+
/**
|
8580
|
+
* @internal
|
8581
|
+
*/
|
8582
|
+
function ChannelMetadata(type, data) {
|
8567
8583
|
_classCallCheck__default["default"](this, ChannelMetadata);
|
8568
8584
|
|
8569
8585
|
this.type = type;
|
@@ -10231,6 +10247,7 @@ Object.defineProperty(exports, 'CancellablePromise', {
|
|
10231
10247
|
get: function () { return mcsClient.CancellablePromise; }
|
10232
10248
|
});
|
10233
10249
|
exports.AggregatedDeliveryReceipt = AggregatedDeliveryReceipt;
|
10250
|
+
exports.ChannelMetadata = ChannelMetadata;
|
10234
10251
|
exports.ContentTemplate = ContentTemplate;
|
10235
10252
|
exports.ContentTemplateVariable = ContentTemplateVariable;
|
10236
10253
|
exports.Conversation = Conversation;
|