@twilio/conversations 2.5.0-rc.8 → 2.6.0-rc.0
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 +2 -2
- package/builds/browser.esm.js +10713 -0
- package/builds/browser.esm.js.map +1 -0
- package/builds/browser.js +241 -81
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +10 -9
- package/builds/lib.esm.d.ts +3166 -0
- package/builds/lib.esm.js +10712 -0
- package/builds/lib.js +250 -81
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +11231 -11244
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/aggregated-delivery-receipt.js +3 -5
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/channel-metadata-client.js +7 -9
- package/dist/channel-metadata-client.js.map +1 -1
- package/dist/client.js +201 -166
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +8 -8
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +12 -9
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +11 -8
- package/dist/content-client.js.map +1 -1
- package/dist/content-template.js +3 -5
- package/dist/content-template.js.map +1 -1
- package/dist/conversation.js +130 -96
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +36 -43
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +23 -21
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +27 -24
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +15 -13
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +3 -5
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +17 -49
- package/dist/index.js.map +1 -1
- package/dist/interfaces/notification-types.js +1 -5
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/interfaces/rules.js +13 -10
- package/dist/interfaces/rules.js.map +1 -1
- package/dist/logger.js +25 -26
- package/dist/logger.js.map +1 -1
- package/dist/media.js +11 -8
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +48 -40
- package/dist/message-builder.js.map +1 -1
- package/dist/message-recipients-client.js +11 -13
- package/dist/message-recipients-client.js.map +1 -1
- package/dist/message.js +96 -83
- package/dist/message.js.map +1 -1
- package/dist/node_modules/quick-lru/index.js +1 -5
- package/dist/node_modules/quick-lru/index.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -7
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +2 -6
- package/dist/packages/conversations/package.json.js.map +1 -1
- package/dist/participant.js +40 -31
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +5 -4
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +9 -8
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +3 -7
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +11 -8
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +9 -8
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +27 -24
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +6 -4
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js +1 -9
- package/dist/util/index.js.map +1 -1
- package/docs/classes/Client.html +2 -2
- package/docs/index.html +3 -3
- package/docs/modules.html +2 -2
- package/package.json +10 -10
package/builds/lib.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="node" />
|
1
2
|
import { SyncClient, SyncDocument, SyncList } from "twilio-sync";
|
2
3
|
import { LogLevelDesc } from "loglevel";
|
3
4
|
import { Transport, TwilsockClient, InitRegistration, TransportResult } from "twilsock";
|
@@ -1611,7 +1612,7 @@ declare class RestPaginator<T> implements Paginator<T> {
|
|
1611
1612
|
/**
|
1612
1613
|
* @internal
|
1613
1614
|
*/
|
1614
|
-
constructor(items: any, source: any, prevToken: any, nextToken: any
|
1615
|
+
constructor(items: any, source: any, prevToken: any, nextToken: any);
|
1615
1616
|
/**
|
1616
1617
|
* Request the next page. Does not modify the existing object.
|
1617
1618
|
*/
|
@@ -2119,11 +2120,6 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
|
|
2119
2120
|
* @internal
|
2120
2121
|
*/
|
2121
2122
|
readonly _links: ConversationLinks;
|
2122
|
-
/**
|
2123
|
-
* Map of participants.
|
2124
|
-
* @internal
|
2125
|
-
*/
|
2126
|
-
readonly _participants: Map<string, Participant>;
|
2127
2123
|
/**
|
2128
2124
|
* Configuration of the client that the conversation belongs to.
|
2129
2125
|
*/
|
@@ -2148,6 +2144,11 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
|
|
2148
2144
|
* Sync list containing messages.
|
2149
2145
|
*/
|
2150
2146
|
private _messagesList?;
|
2147
|
+
/**
|
2148
|
+
* Map of participants.
|
2149
|
+
* @internal
|
2150
|
+
*/
|
2151
|
+
readonly _participants: Map<string, Participant>;
|
2151
2152
|
/**
|
2152
2153
|
* Participants entity.
|
2153
2154
|
*/
|
@@ -2218,7 +2219,7 @@ declare class Conversation extends ReplayEventEmitter<ConversationEvents> {
|
|
2218
2219
|
*/
|
2219
2220
|
get notificationLevel(): NotificationLevel;
|
2220
2221
|
/**
|
2221
|
-
* Conversation bindings.
|
2222
|
+
* Conversation bindings. An undocumented feature (for now).
|
2222
2223
|
* @internal
|
2223
2224
|
*/
|
2224
2225
|
get bindings(): ConversationBindings;
|
@@ -2974,7 +2975,7 @@ declare class Client extends ReplayEventEmitter<ClientEvents> {
|
|
2974
2975
|
*/
|
2975
2976
|
private _conversationsPromise;
|
2976
2977
|
/**
|
2977
|
-
* Returned Conversations instance is not yet fully initialized. Calling any
|
2978
|
+
* Returned Conversations Client instance is not yet fully initialized. Calling any
|
2978
2979
|
* operations will block until it is. Use connection events to monitor when
|
2979
2980
|
* client becomes fully available (connectionStateChanged with state
|
2980
2981
|
* 'connected') or not available (connectionStateChange with state 'denied',
|
@@ -3101,7 +3102,7 @@ declare class Client extends ReplayEventEmitter<ClientEvents> {
|
|
3101
3102
|
*/
|
3102
3103
|
removePushRegistrations(channelType: ChannelType, registrationId: string): Promise<void>;
|
3103
3104
|
/**
|
3104
|
-
*
|
3105
|
+
* Parse a push notification payload.
|
3105
3106
|
*/
|
3106
3107
|
parsePushNotification: typeof Client.parsePushNotification;
|
3107
3108
|
/**
|