@vendasta/conversation 0.31.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 +43 -5
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-conversation.mjs +43 -5
- package/fesm2015/vendasta-conversation.mjs.map +1 -1
- package/fesm2020/vendasta-conversation.mjs +43 -5
- package/fesm2020/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +9 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +16 -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[];
|
|
@@ -127,6 +127,7 @@ export interface GetParticipantsByKeyRequestInterface {
|
|
|
127
127
|
}
|
|
128
128
|
export interface GetParticipantsByKeyResponseInterface {
|
|
129
129
|
participants?: ParticipantInterface[];
|
|
130
|
+
participant?: ParticipantInterface;
|
|
130
131
|
}
|
|
131
132
|
export interface ListMessagesRequestListMessagesFiltersInterface {
|
|
132
133
|
conversationId?: string;
|
|
@@ -156,6 +157,11 @@ export interface LookupConversationsResponseInterface {
|
|
|
156
157
|
conversations?: LookupConversationsResponseConversationsInterface[];
|
|
157
158
|
pagingMetadata?: PagedResponseMetadataInterface;
|
|
158
159
|
}
|
|
160
|
+
export interface MediaInterface {
|
|
161
|
+
mediaContentType?: string;
|
|
162
|
+
mediaLocationPath?: string;
|
|
163
|
+
mediaFileName?: string;
|
|
164
|
+
}
|
|
159
165
|
export interface MetadataInterface {
|
|
160
166
|
identifier?: e.MetadataIdentifier;
|
|
161
167
|
data?: {
|
|
@@ -215,6 +221,7 @@ export interface SendMessageRequestInterface {
|
|
|
215
221
|
body?: string;
|
|
216
222
|
metadata?: MetadataInterface[];
|
|
217
223
|
originLocation?: e.PlatformLocation;
|
|
224
|
+
media?: MediaInterface[];
|
|
218
225
|
}
|
|
219
226
|
export interface SendMessageResponseInterface {
|
|
220
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 {
|
|
@@ -225,6 +225,7 @@ export declare class GetParticipantsByKeyRequest implements i.GetParticipantsByK
|
|
|
225
225
|
}
|
|
226
226
|
export declare class GetParticipantsByKeyResponse implements i.GetParticipantsByKeyResponseInterface {
|
|
227
227
|
participants: Participant[];
|
|
228
|
+
participant: Participant;
|
|
228
229
|
static fromProto(proto: any): GetParticipantsByKeyResponse;
|
|
229
230
|
constructor(kwargs?: i.GetParticipantsByKeyResponseInterface);
|
|
230
231
|
toApiJson(): object;
|
|
@@ -275,6 +276,14 @@ export declare class LookupConversationsResponse implements i.LookupConversation
|
|
|
275
276
|
constructor(kwargs?: i.LookupConversationsResponseInterface);
|
|
276
277
|
toApiJson(): object;
|
|
277
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
|
+
}
|
|
278
287
|
export declare class Metadata implements i.MetadataInterface {
|
|
279
288
|
identifier: e.MetadataIdentifier;
|
|
280
289
|
data: {
|
|
@@ -358,6 +367,7 @@ export declare class SendMessageRequest implements i.SendMessageRequestInterface
|
|
|
358
367
|
body: string;
|
|
359
368
|
metadata: Metadata[];
|
|
360
369
|
originLocation: e.PlatformLocation;
|
|
370
|
+
media: Media[];
|
|
361
371
|
static fromProto(proto: any): SendMessageRequest;
|
|
362
372
|
constructor(kwargs?: i.SendMessageRequestInterface);
|
|
363
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';
|