@twilio/conversations 3.0.0-canary.5 → 3.0.0-rc.5
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 +485 -0
- package/builds/browser.js +398 -381
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +6 -5
- package/builds/lib.js +398 -381
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +2185 -1838
- package/builds/twilio-conversations.min.js +1 -16
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/client.js +29 -8
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/conversation.js +5 -8
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +1 -1
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/interfaces/attributes.js.map +1 -1
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/logger.js +2 -4
- package/dist/logger.js.map +1 -1
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js.map +1 -1
- package/dist/message.js +16 -12
- package/dist/message.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/participant.js +2 -2
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +1 -1
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js.map +1 -1
- package/docs/assets/css/main.css +2660 -0
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +248 -0
- package/docs/assets/js/search.js +1 -0
- package/docs/classes/AggregatedDeliveryReceipt.html +3184 -0
- package/docs/classes/CancellablePromise.html +3213 -0
- package/docs/classes/Client.html +4239 -0
- package/docs/classes/Conversation.html +4354 -0
- package/docs/classes/DetailedDeliveryReceipt.html +3163 -0
- package/docs/classes/Media.html +3167 -0
- package/docs/classes/Message.html +3732 -0
- package/docs/classes/MessageBuilder.html +3277 -0
- package/docs/classes/Participant.html +3444 -0
- package/docs/classes/PushNotification.html +3130 -0
- package/docs/classes/RestPaginator.html +3160 -0
- package/docs/classes/UnsentMessage.html +3042 -0
- package/docs/classes/User.html +3349 -0
- package/docs/index.html +3509 -0
- package/docs/interfaces/ClientOptions.html +3034 -0
- package/docs/interfaces/ConversationBindings.html +3001 -0
- package/docs/interfaces/ConversationEmailBinding.html +3001 -0
- package/docs/interfaces/ConversationLimits.html +3098 -0
- package/docs/interfaces/ConversationState.html +3050 -0
- package/docs/interfaces/ConversationUpdatedEventArgs.html +3001 -0
- package/docs/interfaces/CreateConversationOptions.html +3066 -0
- package/docs/interfaces/LastMessage.html +3050 -0
- package/docs/interfaces/Paginator.html +3141 -0
- package/docs/interfaces/ParticipantBindings.html +3001 -0
- package/docs/interfaces/ParticipantEmailBinding.html +3001 -0
- package/docs/interfaces/PushNotificationData.html +3114 -0
- package/docs/interfaces/SendEmailOptions.html +3034 -0
- package/docs/interfaces/SendMediaOptions.html +3068 -0
- package/docs/modules.html +3510 -0
- package/package.json +21 -20
package/builds/lib.d.ts
CHANGED
@@ -872,7 +872,7 @@ declare class Message extends ReplayEventEmitter<MessageEvents> {
|
|
872
872
|
* Get content URLs for all media attachments in the given set using a single operation.
|
873
873
|
* @param contentSet Set of media attachments to query content URLs.
|
874
874
|
*/
|
875
|
-
getTemporaryContentUrlsForMedia(contentSet: Media[]
|
875
|
+
getTemporaryContentUrlsForMedia(contentSet: Media[]): CancellablePromise<Map<string, string>>;
|
876
876
|
/**
|
877
877
|
* Get content URLs for all media attachments in the given set of media sids using a single operation.
|
878
878
|
* @param mediaSids Set of media sids to query for the content URL.
|
@@ -1110,7 +1110,10 @@ declare class UnsentMessage {
|
|
1110
1110
|
private messagesEntity;
|
1111
1111
|
text?: string;
|
1112
1112
|
attributes: JSONValue;
|
1113
|
-
mediaContent: [
|
1113
|
+
mediaContent: [
|
1114
|
+
MediaCategory,
|
1115
|
+
FormData | SendMediaOptions
|
1116
|
+
][];
|
1114
1117
|
emailOptions: SendEmailOptions;
|
1115
1118
|
/**
|
1116
1119
|
* @internal
|
@@ -1689,8 +1692,6 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
|
|
1689
1692
|
* argument, it will assume that the string is an identity or SID.
|
1690
1693
|
* @param participant Identity, SID or the participant object to remove.
|
1691
1694
|
*/
|
1692
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
1693
|
-
// @ts-ignore TODO: fix validateTypesAsync typing
|
1694
1695
|
removeParticipant(participant: string | Participant): Promise<void>;
|
1695
1696
|
/**
|
1696
1697
|
* Send a message to the conversation.
|
@@ -2439,4 +2440,4 @@ declare class NotificationTypes {
|
|
2439
2440
|
static readonly REMOVED_FROM_CONVERSATION = "twilio.conversations.removed_from_conversation";
|
2440
2441
|
static readonly CONSUMPTION_UPDATE = "twilio.channel.consumption_update";
|
2441
2442
|
}
|
2442
|
-
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 };
|
2443
|
+
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 };
|