@vendasta/conversation 0.7.0 → 0.11.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/bundles/vendasta-conversation.umd.js +229 -0
- package/bundles/vendasta-conversation.umd.js.map +1 -1
- package/bundles/vendasta-conversation.umd.min.js +1 -1
- package/bundles/vendasta-conversation.umd.min.js.map +1 -1
- package/esm2015/lib/_internal/conversation.api.service.js +12 -2
- package/esm2015/lib/_internal/enums/participant.enum.js +3 -1
- package/esm2015/lib/_internal/interfaces/api.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/index.js +1 -1
- package/esm2015/lib/_internal/objects/api.js +204 -1
- package/esm2015/lib/_internal/objects/index.js +2 -2
- package/fesm2015/vendasta-conversation.js +216 -1
- package/fesm2015/vendasta-conversation.js.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +4 -2
- package/lib/_internal/enums/participant.enum.d.ts +3 -1
- package/lib/_internal/interfaces/api.interface.d.ts +33 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +54 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
- package/vendasta-conversation.metadata.json +1 -1
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
export { Message, ParticipantMessageStatus, } from './message';
|
|
8
8
|
export { Conversation, } from './conversation';
|
|
9
9
|
export { Participant, } from './participant';
|
|
10
|
-
export { LookupConversationsResponseConversations, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest, } from './api';
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
export { ConversationMessageCount, LookupConversationsResponseConversations, GetMultiConversationMessageCountResponseCountsEntry, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, MetadataDataEntry, DeleteConversationRequest, DeleteMessageRequest, GetMultiConversationDetailsResponseDetailedConversation, SearchConversationsResponseDetailedConversation, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequestListMessagesFilters, ListMessagesRequest, ListMessagesResponse, LookupConversationsRequestLookupConversationsFilters, LookupConversationsRequest, LookupConversationsResponse, Metadata, ReceiveMessageRequestMetadataEntry, PagedRequestOptions, PagedResponseMetadata, ReceiveMessageRequest, SearchConversationsRequest, SearchConversationsResponse, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest, } from './api';
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3dvcmtzcGFjZS9zZGtzL3R5cGVzY3JpcHQvc3JjL2NvbnZlcnNhdGlvbl9zZGsvc3JjLyIsInNvdXJjZXMiOlsibGliL19pbnRlcm5hbC9vYmplY3RzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9DQUFvQztBQUNwQywyQkFBMkI7QUFDM0IsZ0JBQWdCO0FBQ2hCLEVBQUU7QUFDRixpQkFBaUI7QUFDakIsb0NBQW9DO0FBQ3BDLE9BQU8sRUFDSCxPQUFPLEVBQ1Asd0JBQXdCLEdBQzNCLE1BQU0sV0FBV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3QsXG4gICAgR2V0TXVsdGlNZXNzYWdlc1Jlc3BvbnNlLFxuICAgIEdldE11bHRpUGFydGljaXBhbnRzUmVxdWVzdCxcbiAgICBHZXRNdWx0aVBhcnRpY2lwYW50c1Jlc3BvbnNlLFxuICAgIExpc3RNZXNzYWdlc1JlcXVlc3RMaXN0TWVzc2FnZXNGaWx0ZXJzLFxuICAgIExpc3RNZXNzYWdlc1JlcXVlc3QsXG4gICAgTGlzdE1lc3NhZ2VzUmVzcG9uc2UsXG4gICAgTG9va3VwQ29udmVyc2F0aW9uc1JlcXVlc3RMb29rdXBDb252ZXJzYXRpb25zRmlsdGVycyxcbiAgICBMb29rdXBDb252ZXJzYXRpb25zUmVxdWVzdCxcbiAgICBMb29rdXBDb252ZXJzYXRpb25zUmVzcG9uc2UsXG4gICAgTWV0YWRhdGEsXG4gICAgUmVjZWl2ZU1lc3NhZ2VSZXF1ZXN0TWV0YWRhdGFFbnRyeSxcbiAgICBQYWdlZFJlcXVlc3RPcHRpb25zLFxuICAgIFBhZ2VkUmVzcG9uc2VNZXRhZGF0YSxcbiAgICBSZWNlaXZlTWVzc2FnZVJlcXVlc3QsXG4gICAgU2VhcmNoQ29udmVyc2F0aW9uc1JlcXVlc3QsXG4gICAgU2VhcmNoQ29udmVyc2F0aW9uc1Jlc3BvbnNlLFxuICAgIFNlbmRNZXNzYWdlUmVxdWVzdCxcbiAgICBTZW5kTWVzc2FnZVJlc3BvbnNlLFxuICAgIFVwZGF0ZU1lc3NhZ2VTdGF0dXNSZXF1ZXN0LFxufSBmcm9tICcuL2FwaSc7XG5cbiJdfQ==
|
|
@@ -63,6 +63,8 @@ var ParticipantType;
|
|
|
63
63
|
ParticipantType[ParticipantType["PARTICIPANT_TYPE_ACCOUNT_GROUP"] = 3] = "PARTICIPANT_TYPE_ACCOUNT_GROUP";
|
|
64
64
|
ParticipantType[ParticipantType["PARTICIPANT_TYPE_PARTNER"] = 4] = "PARTICIPANT_TYPE_PARTNER";
|
|
65
65
|
ParticipantType[ParticipantType["PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT"] = 5] = "PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT";
|
|
66
|
+
ParticipantType[ParticipantType["PARTICIPANT_TYPE_DIGITAL_AGENT"] = 6] = "PARTICIPANT_TYPE_DIGITAL_AGENT";
|
|
67
|
+
ParticipantType[ParticipantType["PARTICIPANT_TYPE_VENDOR"] = 7] = "PARTICIPANT_TYPE_VENDOR";
|
|
66
68
|
})(ParticipantType || (ParticipantType = {}));
|
|
67
69
|
|
|
68
70
|
// *********************************
|
|
@@ -347,6 +349,32 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
347
349
|
}
|
|
348
350
|
return enumRef[value];
|
|
349
351
|
}
|
|
352
|
+
class ConversationMessageCount {
|
|
353
|
+
constructor(kwargs) {
|
|
354
|
+
if (!kwargs) {
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
Object.assign(this, kwargs);
|
|
358
|
+
}
|
|
359
|
+
static fromProto(proto) {
|
|
360
|
+
let m = new ConversationMessageCount();
|
|
361
|
+
m = Object.assign(m, proto);
|
|
362
|
+
if (proto.count) {
|
|
363
|
+
m.count = parseInt(proto.count, 10);
|
|
364
|
+
}
|
|
365
|
+
return m;
|
|
366
|
+
}
|
|
367
|
+
toApiJson() {
|
|
368
|
+
const toReturn = {};
|
|
369
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
370
|
+
toReturn['conversationId'] = this.conversationId;
|
|
371
|
+
}
|
|
372
|
+
if (typeof this.count !== 'undefined') {
|
|
373
|
+
toReturn['count'] = this.count;
|
|
374
|
+
}
|
|
375
|
+
return toReturn;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
350
378
|
class LookupConversationsResponseConversations {
|
|
351
379
|
constructor(kwargs) {
|
|
352
380
|
if (!kwargs) {
|
|
@@ -376,6 +404,32 @@ class LookupConversationsResponseConversations {
|
|
|
376
404
|
return toReturn;
|
|
377
405
|
}
|
|
378
406
|
}
|
|
407
|
+
class GetMultiConversationMessageCountResponseCountsEntry {
|
|
408
|
+
constructor(kwargs) {
|
|
409
|
+
if (!kwargs) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
Object.assign(this, kwargs);
|
|
413
|
+
}
|
|
414
|
+
static fromProto(proto) {
|
|
415
|
+
let m = new GetMultiConversationMessageCountResponseCountsEntry();
|
|
416
|
+
m = Object.assign(m, proto);
|
|
417
|
+
if (proto.value) {
|
|
418
|
+
m.value = parseInt(proto.value, 10);
|
|
419
|
+
}
|
|
420
|
+
return m;
|
|
421
|
+
}
|
|
422
|
+
toApiJson() {
|
|
423
|
+
const toReturn = {};
|
|
424
|
+
if (typeof this.key !== 'undefined') {
|
|
425
|
+
toReturn['key'] = this.key;
|
|
426
|
+
}
|
|
427
|
+
if (typeof this.value !== 'undefined') {
|
|
428
|
+
toReturn['value'] = this.value;
|
|
429
|
+
}
|
|
430
|
+
return toReturn;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
379
433
|
class CreateConversationRequest {
|
|
380
434
|
constructor(kwargs) {
|
|
381
435
|
if (!kwargs) {
|
|
@@ -550,6 +604,41 @@ class DeleteMessageRequest {
|
|
|
550
604
|
return toReturn;
|
|
551
605
|
}
|
|
552
606
|
}
|
|
607
|
+
class SearchConversationsResponseDetailedConversation {
|
|
608
|
+
constructor(kwargs) {
|
|
609
|
+
if (!kwargs) {
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
Object.assign(this, kwargs);
|
|
613
|
+
}
|
|
614
|
+
static fromProto(proto) {
|
|
615
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
616
|
+
m = Object.assign(m, proto);
|
|
617
|
+
if (proto.conversation) {
|
|
618
|
+
m.conversation = Conversation.fromProto(proto.conversation);
|
|
619
|
+
}
|
|
620
|
+
if (proto.latestMessage) {
|
|
621
|
+
m.latestMessage = Message.fromProto(proto.latestMessage);
|
|
622
|
+
}
|
|
623
|
+
if (proto.participants) {
|
|
624
|
+
m.participants = proto.participants.map(Participant.fromProto);
|
|
625
|
+
}
|
|
626
|
+
return m;
|
|
627
|
+
}
|
|
628
|
+
toApiJson() {
|
|
629
|
+
const toReturn = {};
|
|
630
|
+
if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
|
|
631
|
+
toReturn['conversation'] = 'toApiJson' in this.conversation ? this.conversation.toApiJson() : this.conversation;
|
|
632
|
+
}
|
|
633
|
+
if (typeof this.latestMessage !== 'undefined' && this.latestMessage !== null) {
|
|
634
|
+
toReturn['latestMessage'] = 'toApiJson' in this.latestMessage ? this.latestMessage.toApiJson() : this.latestMessage;
|
|
635
|
+
}
|
|
636
|
+
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
637
|
+
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
638
|
+
}
|
|
639
|
+
return toReturn;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
553
642
|
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
554
643
|
constructor(kwargs) {
|
|
555
644
|
if (!kwargs) {
|
|
@@ -648,6 +737,55 @@ class GetMultiConversationDetailsResponse {
|
|
|
648
737
|
return toReturn;
|
|
649
738
|
}
|
|
650
739
|
}
|
|
740
|
+
class GetMultiConversationMessageCountRequest {
|
|
741
|
+
constructor(kwargs) {
|
|
742
|
+
if (!kwargs) {
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
Object.assign(this, kwargs);
|
|
746
|
+
}
|
|
747
|
+
static fromProto(proto) {
|
|
748
|
+
let m = new GetMultiConversationMessageCountRequest();
|
|
749
|
+
m = Object.assign(m, proto);
|
|
750
|
+
return m;
|
|
751
|
+
}
|
|
752
|
+
toApiJson() {
|
|
753
|
+
const toReturn = {};
|
|
754
|
+
if (typeof this.conversationIds !== 'undefined') {
|
|
755
|
+
toReturn['conversationIds'] = this.conversationIds;
|
|
756
|
+
}
|
|
757
|
+
return toReturn;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
class GetMultiConversationMessageCountResponse {
|
|
761
|
+
constructor(kwargs) {
|
|
762
|
+
if (!kwargs) {
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
Object.assign(this, kwargs);
|
|
766
|
+
}
|
|
767
|
+
static fromProto(proto) {
|
|
768
|
+
let m = new GetMultiConversationMessageCountResponse();
|
|
769
|
+
m = Object.assign(m, proto);
|
|
770
|
+
if (proto.messageCounts) {
|
|
771
|
+
m.messageCounts = proto.messageCounts.map(ConversationMessageCount.fromProto);
|
|
772
|
+
}
|
|
773
|
+
if (proto.counts) {
|
|
774
|
+
m.counts = Object.keys(proto.counts).reduce((obj, k) => { obj[k] = parseInt(proto.counts[k], 10); return obj; }, {});
|
|
775
|
+
}
|
|
776
|
+
return m;
|
|
777
|
+
}
|
|
778
|
+
toApiJson() {
|
|
779
|
+
const toReturn = {};
|
|
780
|
+
if (typeof this.messageCounts !== 'undefined' && this.messageCounts !== null) {
|
|
781
|
+
toReturn['messageCounts'] = 'toApiJson' in this.messageCounts ? this.messageCounts.toApiJson() : this.messageCounts;
|
|
782
|
+
}
|
|
783
|
+
if (typeof this.counts !== 'undefined' && this.counts !== null) {
|
|
784
|
+
toReturn['counts'] = 'toApiJson' in this.counts ? this.counts.toApiJson() : this.counts;
|
|
785
|
+
}
|
|
786
|
+
return toReturn;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
651
789
|
class GetMultiMessagesRequest {
|
|
652
790
|
constructor(kwargs) {
|
|
653
791
|
if (!kwargs) {
|
|
@@ -1080,6 +1218,73 @@ class ReceiveMessageRequest {
|
|
|
1080
1218
|
return toReturn;
|
|
1081
1219
|
}
|
|
1082
1220
|
}
|
|
1221
|
+
class SearchConversationsRequest {
|
|
1222
|
+
constructor(kwargs) {
|
|
1223
|
+
if (!kwargs) {
|
|
1224
|
+
return;
|
|
1225
|
+
}
|
|
1226
|
+
Object.assign(this, kwargs);
|
|
1227
|
+
}
|
|
1228
|
+
static fromProto(proto) {
|
|
1229
|
+
let m = new SearchConversationsRequest();
|
|
1230
|
+
m = Object.assign(m, proto);
|
|
1231
|
+
if (proto.location) {
|
|
1232
|
+
m.location = enumStringToValue$3(PlatformLocation, proto.location);
|
|
1233
|
+
}
|
|
1234
|
+
if (proto.pagingOptions) {
|
|
1235
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1236
|
+
}
|
|
1237
|
+
return m;
|
|
1238
|
+
}
|
|
1239
|
+
toApiJson() {
|
|
1240
|
+
const toReturn = {};
|
|
1241
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
1242
|
+
toReturn['partnerId'] = this.partnerId;
|
|
1243
|
+
}
|
|
1244
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
1245
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
1246
|
+
}
|
|
1247
|
+
if (typeof this.location !== 'undefined') {
|
|
1248
|
+
toReturn['location'] = this.location;
|
|
1249
|
+
}
|
|
1250
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
1251
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
1252
|
+
}
|
|
1253
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1254
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1255
|
+
}
|
|
1256
|
+
return toReturn;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
class SearchConversationsResponse {
|
|
1260
|
+
constructor(kwargs) {
|
|
1261
|
+
if (!kwargs) {
|
|
1262
|
+
return;
|
|
1263
|
+
}
|
|
1264
|
+
Object.assign(this, kwargs);
|
|
1265
|
+
}
|
|
1266
|
+
static fromProto(proto) {
|
|
1267
|
+
let m = new SearchConversationsResponse();
|
|
1268
|
+
m = Object.assign(m, proto);
|
|
1269
|
+
if (proto.conversations) {
|
|
1270
|
+
m.conversations = proto.conversations.map(SearchConversationsResponseDetailedConversation.fromProto);
|
|
1271
|
+
}
|
|
1272
|
+
if (proto.pagingMetadata) {
|
|
1273
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1274
|
+
}
|
|
1275
|
+
return m;
|
|
1276
|
+
}
|
|
1277
|
+
toApiJson() {
|
|
1278
|
+
const toReturn = {};
|
|
1279
|
+
if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
|
|
1280
|
+
toReturn['conversations'] = 'toApiJson' in this.conversations ? this.conversations.toApiJson() : this.conversations;
|
|
1281
|
+
}
|
|
1282
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1283
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1284
|
+
}
|
|
1285
|
+
return toReturn;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1083
1288
|
class SendMessageRequest {
|
|
1084
1289
|
constructor(kwargs) {
|
|
1085
1290
|
if (!kwargs) {
|
|
@@ -1314,6 +1519,16 @@ class ConversationApiService {
|
|
|
1314
1519
|
return this.http.post(this.hostService.hostWithScheme() + "/conversation.v1.ConversationService/GetMultiParticipants", request.toApiJson(), this.apiOptions())
|
|
1315
1520
|
.pipe(map(resp => GetMultiParticipantsResponse.fromProto(resp)), share());
|
|
1316
1521
|
}
|
|
1522
|
+
searchConversations(r) {
|
|
1523
|
+
const request = (r.toApiJson) ? r : new SearchConversationsRequest(r);
|
|
1524
|
+
return this.http.post(this.hostService.hostWithScheme() + "/conversation.v1.ConversationService/SearchConversations", request.toApiJson(), this.apiOptions())
|
|
1525
|
+
.pipe(map(resp => SearchConversationsResponse.fromProto(resp)), share());
|
|
1526
|
+
}
|
|
1527
|
+
getMultiConversationMessageCount(r) {
|
|
1528
|
+
const request = (r.toApiJson) ? r : new GetMultiConversationMessageCountRequest(r);
|
|
1529
|
+
return this.http.post(this.hostService.hostWithScheme() + "/conversation.v1.ConversationService/GetMultiConversationMessageCount", request.toApiJson(), this.apiOptions())
|
|
1530
|
+
.pipe(map(resp => GetMultiConversationMessageCountResponse.fromProto(resp)), share());
|
|
1531
|
+
}
|
|
1317
1532
|
}
|
|
1318
1533
|
ConversationApiService.ɵprov = ɵɵdefineInjectable({ factory: function ConversationApiService_Factory() { return new ConversationApiService(ɵɵinject(HttpClient), ɵɵinject(HostService)); }, token: ConversationApiService, providedIn: "root" });
|
|
1319
1534
|
ConversationApiService.decorators = [
|
|
@@ -1330,5 +1545,5 @@ ConversationApiService.ctorParameters = () => [
|
|
|
1330
1545
|
* Generated bundle index. Do not edit.
|
|
1331
1546
|
*/
|
|
1332
1547
|
|
|
1333
|
-
export { Conversation, ConversationApiService, ConversationChannel, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest, HostService as ɵa };
|
|
1548
|
+
export { Conversation, ConversationApiService, ConversationChannel, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, UpdateMessageStatusRequest, HostService as ɵa };
|
|
1334
1549
|
//# sourceMappingURL=vendasta-conversation.js.map
|