@vendasta/conversation 0.32.0 → 0.33.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/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +37 -5
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-conversation.mjs +37 -5
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +37 -5
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +8 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +15 -6
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -56,12 +56,12 @@ export interface DeleteConversationRequestInterface {
|
|
|
56
56
|
export interface DeleteMessageRequestInterface {
|
|
57
57
|
messageId?: string;
|
|
58
58
|
}
|
|
59
|
-
export interface
|
|
59
|
+
export interface SearchConversationsResponseDetailedConversationInterface {
|
|
60
60
|
conversation?: ConversationInterface;
|
|
61
61
|
latestMessage?: MessageInterface;
|
|
62
62
|
participants?: ParticipantInterface[];
|
|
63
63
|
}
|
|
64
|
-
export interface
|
|
64
|
+
export interface GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
65
65
|
conversation?: ConversationInterface;
|
|
66
66
|
latestMessage?: MessageInterface;
|
|
67
67
|
participants?: ParticipantInterface[];
|
|
@@ -157,6 +157,11 @@ export interface LookupConversationsResponseInterface {
|
|
|
157
157
|
conversations?: LookupConversationsResponseConversationsInterface[];
|
|
158
158
|
pagingMetadata?: PagedResponseMetadataInterface;
|
|
159
159
|
}
|
|
160
|
+
export interface MediaInterface {
|
|
161
|
+
mediaContentType?: string;
|
|
162
|
+
mediaLocationPath?: string;
|
|
163
|
+
mediaFileName?: string;
|
|
164
|
+
}
|
|
160
165
|
export interface MetadataInterface {
|
|
161
166
|
identifier?: e.MetadataIdentifier;
|
|
162
167
|
data?: {
|
|
@@ -216,6 +221,7 @@ export interface SendMessageRequestInterface {
|
|
|
216
221
|
body?: string;
|
|
217
222
|
metadata?: MetadataInterface[];
|
|
218
223
|
originLocation?: e.PlatformLocation;
|
|
224
|
+
media?: MediaInterface[];
|
|
219
225
|
}
|
|
220
226
|
export interface SendMessageResponseInterface {
|
|
221
227
|
workflowId?: string;
|
|
@@ -5,4 +5,4 @@ export { AddressInterface, ParticipantInterface, ParticipantKeyInterface, } from
|
|
|
5
5
|
export { AccessInterface, } from './annotations.interface';
|
|
6
6
|
export { ConfigurationInterface, } from './configuration.interface';
|
|
7
7
|
export { ViewInterface, } from './conversation-view.interface';
|
|
8
|
-
export { AddConversationToConversationViewRequestInterface, AddMultiParticipantsRequestInterface, AddMultiParticipantsResponseInterface, ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMultiMessagesRequestInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface,
|
|
8
|
+
export { AddConversationToConversationViewRequestInterface, AddMultiParticipantsRequestInterface, AddMultiParticipantsResponseInterface, ConversationMessageCountInterface, LookupConversationsResponseConversationsInterface, GetMultiConversationMessageCountResponseCountsEntryInterface, CreateConversationRequestInterface, CreateConversationResponseInterface, CreateMultiMessagesRequestInterface, MetadataDataEntryInterface, DeleteConversationRequestInterface, DeleteMessageRequestInterface, SearchConversationsResponseDetailedConversationInterface, GetMultiConversationDetailsResponseDetailedConversationInterface, GetConfigurationRequestInterface, GetConfigurationResponseInterface, GetConversationByKeyRequestInterface, GetConversationByKeyResponseInterface, GetConversationViewsRequestInterface, GetConversationViewsResponseInterface, GetMessageRequestInterface, GetMultiConfigurationRequestInterface, GetMultiConfigurationResponseInterface, GetMultiConversationDetailsRequestInterface, GetMultiConversationDetailsResponseInterface, GetMultiConversationMessageCountRequestInterface, GetMultiConversationMessageCountResponseInterface, GetMultiMessagesRequestInterface, GetMultiMessagesResponseInterface, GetMultiParticipantsRequestInterface, GetMultiParticipantsResponseInterface, GetParticipantsByKeyRequestInterface, GetParticipantsByKeyResponseInterface, ListMessagesRequestListMessagesFiltersInterface, ListMessagesRequestInterface, ListMessagesResponseInterface, LookupConversationsRequestLookupConversationsFiltersInterface, LookupConversationsRequestInterface, LookupConversationsResponseInterface, MediaInterface, MetadataInterface, ReceiveMessageRequestMetadataEntryInterface, PagedRequestOptionsInterface, PagedResponseMetadataInterface, ReceiveMessageRequestInterface, RemoveConversationFromConversationViewRequestInterface, SearchConversationsRequestInterface, SearchConversationsResponseInterface, SendMessageRequestInterface, SendMessageResponseInterface, SetLastSeenRequestInterface, SetLastSeenResponseInterface, UpdateMessageStatusRequestInterface, UpsertConfigurationRequestInterface, UpsertConfigurationResponseInterface, } from './api.interface';
|
|
@@ -94,20 +94,20 @@ export declare class DeleteMessageRequest implements i.DeleteMessageRequestInter
|
|
|
94
94
|
constructor(kwargs?: i.DeleteMessageRequestInterface);
|
|
95
95
|
toApiJson(): object;
|
|
96
96
|
}
|
|
97
|
-
export declare class
|
|
97
|
+
export declare class SearchConversationsResponseDetailedConversation implements i.SearchConversationsResponseDetailedConversationInterface {
|
|
98
98
|
conversation: Conversation;
|
|
99
99
|
latestMessage: Message;
|
|
100
100
|
participants: Participant[];
|
|
101
|
-
static fromProto(proto: any):
|
|
102
|
-
constructor(kwargs?: i.
|
|
101
|
+
static fromProto(proto: any): SearchConversationsResponseDetailedConversation;
|
|
102
|
+
constructor(kwargs?: i.SearchConversationsResponseDetailedConversationInterface);
|
|
103
103
|
toApiJson(): object;
|
|
104
104
|
}
|
|
105
|
-
export declare class
|
|
105
|
+
export declare class GetMultiConversationDetailsResponseDetailedConversation implements i.GetMultiConversationDetailsResponseDetailedConversationInterface {
|
|
106
106
|
conversation: Conversation;
|
|
107
107
|
latestMessage: Message;
|
|
108
108
|
participants: Participant[];
|
|
109
|
-
static fromProto(proto: any):
|
|
110
|
-
constructor(kwargs?: i.
|
|
109
|
+
static fromProto(proto: any): GetMultiConversationDetailsResponseDetailedConversation;
|
|
110
|
+
constructor(kwargs?: i.GetMultiConversationDetailsResponseDetailedConversationInterface);
|
|
111
111
|
toApiJson(): object;
|
|
112
112
|
}
|
|
113
113
|
export declare class GetConfigurationRequest implements i.GetConfigurationRequestInterface {
|
|
@@ -276,6 +276,14 @@ export declare class LookupConversationsResponse implements i.LookupConversation
|
|
|
276
276
|
constructor(kwargs?: i.LookupConversationsResponseInterface);
|
|
277
277
|
toApiJson(): object;
|
|
278
278
|
}
|
|
279
|
+
export declare class Media implements i.MediaInterface {
|
|
280
|
+
mediaContentType: string;
|
|
281
|
+
mediaLocationPath: string;
|
|
282
|
+
mediaFileName: string;
|
|
283
|
+
static fromProto(proto: any): Media;
|
|
284
|
+
constructor(kwargs?: i.MediaInterface);
|
|
285
|
+
toApiJson(): object;
|
|
286
|
+
}
|
|
279
287
|
export declare class Metadata implements i.MetadataInterface {
|
|
280
288
|
identifier: e.MetadataIdentifier;
|
|
281
289
|
data: {
|
|
@@ -359,6 +367,7 @@ export declare class SendMessageRequest implements i.SendMessageRequestInterface
|
|
|
359
367
|
body: string;
|
|
360
368
|
metadata: Metadata[];
|
|
361
369
|
originLocation: e.PlatformLocation;
|
|
370
|
+
media: Media[];
|
|
362
371
|
static fromProto(proto: any): SendMessageRequest;
|
|
363
372
|
constructor(kwargs?: i.SendMessageRequestInterface);
|
|
364
373
|
toApiJson(): object;
|
|
@@ -5,4 +5,4 @@ export { Address, Participant, ParticipantKey, } from './participant';
|
|
|
5
5
|
export { Access, } from './annotations';
|
|
6
6
|
export { Configuration, } from './configuration';
|
|
7
7
|
export { View, } from './conversation-view';
|
|
8
|
-
export { AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest,
|
|
8
|
+
export { AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, SearchConversationsResponseDetailedConversation, GetMultiConversationDetailsResponseDetailedConversation, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Media, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenResponse, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, } from './api';
|