@vendasta/conversation 0.109.0 → 0.111.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.
@@ -60,6 +60,7 @@ var PlatformLocation;
60
60
  PlatformLocation[PlatformLocation["PLATFORM_LOCATION_TASK_MANAGER"] = 4] = "PLATFORM_LOCATION_TASK_MANAGER";
61
61
  PlatformLocation[PlatformLocation["PLATFORM_LOCATION_PROPOSAL_BUILDER"] = 5] = "PLATFORM_LOCATION_PROPOSAL_BUILDER";
62
62
  PlatformLocation[PlatformLocation["PLATFORM_LOCATION_SALES_CENTER"] = 6] = "PLATFORM_LOCATION_SALES_CENTER";
63
+ PlatformLocation[PlatformLocation["PLATFORM_LOCATION_ADMIN_CENTER"] = 7] = "PLATFORM_LOCATION_ADMIN_CENTER";
63
64
  })(PlatformLocation || (PlatformLocation = {}));
64
65
 
65
66
  // *********************************
@@ -171,6 +172,20 @@ var EventType;
171
172
  EventType[EventType["EVENT_TYPE_DUPLICATE_CONVERSATION"] = 8] = "EVENT_TYPE_DUPLICATE_CONVERSATION";
172
173
  })(EventType || (EventType = {}));
173
174
 
175
+ // *********************************
176
+ // Code generated by sdkgen
177
+ // DO NOT EDIT!.
178
+ //
179
+ // Enums.
180
+ // *********************************
181
+ var ExportStatus;
182
+ (function (ExportStatus) {
183
+ ExportStatus[ExportStatus["EXPORT_STATUS_UNDEFINED"] = 0] = "EXPORT_STATUS_UNDEFINED";
184
+ ExportStatus[ExportStatus["EXPORT_STATUS_IN_PROGRESS"] = 1] = "EXPORT_STATUS_IN_PROGRESS";
185
+ ExportStatus[ExportStatus["EXPORT_STATUS_COMPLETED"] = 2] = "EXPORT_STATUS_COMPLETED";
186
+ ExportStatus[ExportStatus["EXPORT_STATUS_FAILED"] = 3] = "EXPORT_STATUS_FAILED";
187
+ })(ExportStatus || (ExportStatus = {}));
188
+
174
189
  // *********************************
175
190
  // Code generated by sdkgen
176
191
  // DO NOT EDIT!.
@@ -226,7 +241,7 @@ var Status;
226
241
  // Enums Index.
227
242
  // *********************************
228
243
 
229
- function enumStringToValue$e(enumRef, value) {
244
+ function enumStringToValue$f(enumRef, value) {
230
245
  if (typeof value === 'number') {
231
246
  return value;
232
247
  }
@@ -264,7 +279,7 @@ class NamespaceDetail {
264
279
  let m = new NamespaceDetail();
265
280
  m = Object.assign(m, proto);
266
281
  if (proto.participantType) {
267
- m.participantType = enumStringToValue$e(GlobalParticipantType, proto.participantType);
282
+ m.participantType = enumStringToValue$f(GlobalParticipantType, proto.participantType);
268
283
  }
269
284
  return m;
270
285
  }
@@ -292,7 +307,7 @@ class SubjectParticipant {
292
307
  let m = new SubjectParticipant();
293
308
  m = Object.assign(m, proto);
294
309
  if (proto.participantType) {
295
- m.participantType = enumStringToValue$e(GlobalParticipantType, proto.participantType);
310
+ m.participantType = enumStringToValue$f(GlobalParticipantType, proto.participantType);
296
311
  }
297
312
  return m;
298
313
  }
@@ -314,7 +329,7 @@ class SubjectParticipant {
314
329
  }
315
330
  }
316
331
 
317
- function enumStringToValue$d(enumRef, value) {
332
+ function enumStringToValue$e(enumRef, value) {
318
333
  if (typeof value === 'number') {
319
334
  return value;
320
335
  }
@@ -374,7 +389,7 @@ class Conversation {
374
389
  let m = new Conversation();
375
390
  m = Object.assign(m, proto);
376
391
  if (proto.channel) {
377
- m.channel = enumStringToValue$d(ConversationChannel, proto.channel);
392
+ m.channel = enumStringToValue$e(ConversationChannel, proto.channel);
378
393
  }
379
394
  if (proto.created) {
380
395
  m.created = new Date(proto.created);
@@ -389,7 +404,7 @@ class Conversation {
389
404
  m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
390
405
  }
391
406
  if (proto.originLocation) {
392
- m.originLocation = enumStringToValue$d(PlatformLocation, proto.originLocation);
407
+ m.originLocation = enumStringToValue$e(PlatformLocation, proto.originLocation);
393
408
  }
394
409
  if (proto.lastSeenByParticipant) {
395
410
  m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
@@ -499,7 +514,7 @@ class ConversationKey {
499
514
  m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
500
515
  }
501
516
  if (proto.channel) {
502
- m.channel = enumStringToValue$d(ConversationChannel, proto.channel);
517
+ m.channel = enumStringToValue$e(ConversationChannel, proto.channel);
503
518
  }
504
519
  return m;
505
520
  }
@@ -611,7 +626,7 @@ class SubjectParticipantKey {
611
626
  }
612
627
  }
613
628
 
614
- function enumStringToValue$c(enumRef, value) {
629
+ function enumStringToValue$d(enumRef, value) {
615
630
  if (typeof value === 'number') {
616
631
  return value;
617
632
  }
@@ -658,7 +673,7 @@ class UIButton {
658
673
  }
659
674
  }
660
675
 
661
- function enumStringToValue$b(enumRef, value) {
676
+ function enumStringToValue$c(enumRef, value) {
662
677
  if (typeof value === 'number') {
663
678
  return value;
664
679
  }
@@ -685,7 +700,7 @@ class Message {
685
700
  let m = new Message();
686
701
  m = Object.assign(m, proto);
687
702
  if (proto.type) {
688
- m.type = enumStringToValue$b(MessageType, proto.type);
703
+ m.type = enumStringToValue$c(MessageType, proto.type);
689
704
  }
690
705
  if (proto.created) {
691
706
  m.created = new Date(proto.created);
@@ -700,7 +715,7 @@ class Message {
700
715
  m.sendStatus = SendStatus.fromProto(proto.sendStatus);
701
716
  }
702
717
  if (proto.channel) {
703
- m.channel = enumStringToValue$b(ConversationChannel, proto.channel);
718
+ m.channel = enumStringToValue$c(ConversationChannel, proto.channel);
704
719
  }
705
720
  if (proto.metadata) {
706
721
  m.metadata = proto.metadata.map(KeyValuePair.fromProto);
@@ -778,7 +793,7 @@ class ParticipantMessageStatus {
778
793
  let m = new ParticipantMessageStatus();
779
794
  m = Object.assign(m, proto);
780
795
  if (proto.status) {
781
- m.status = enumStringToValue$b(MessageStatus, proto.status);
796
+ m.status = enumStringToValue$c(MessageStatus, proto.status);
782
797
  }
783
798
  if (proto.updated) {
784
799
  m.updated = new Date(proto.updated);
@@ -817,7 +832,7 @@ class SendStatus {
817
832
  let m = new SendStatus();
818
833
  m = Object.assign(m, proto);
819
834
  if (proto.status) {
820
- m.status = enumStringToValue$b(MessageStatus, proto.status);
835
+ m.status = enumStringToValue$c(MessageStatus, proto.status);
821
836
  }
822
837
  if (proto.created) {
823
838
  m.created = new Date(proto.created);
@@ -854,7 +869,7 @@ class UIComponent {
854
869
  let m = new UIComponent();
855
870
  m = Object.assign(m, proto);
856
871
  if (proto.type) {
857
- m.type = enumStringToValue$b(UIComponentType, proto.type);
872
+ m.type = enumStringToValue$c(UIComponentType, proto.type);
858
873
  }
859
874
  if (proto.button) {
860
875
  m.button = UIButton.fromProto(proto.button);
@@ -879,7 +894,7 @@ class UIComponent {
879
894
  }
880
895
  }
881
896
 
882
- function enumStringToValue$a(enumRef, value) {
897
+ function enumStringToValue$b(enumRef, value) {
883
898
  if (typeof value === 'number') {
884
899
  return value;
885
900
  }
@@ -950,10 +965,10 @@ class Participant {
950
965
  let m = new Participant();
951
966
  m = Object.assign(m, proto);
952
967
  if (proto.location) {
953
- m.location = enumStringToValue$a(PlatformLocation, proto.location);
968
+ m.location = enumStringToValue$b(PlatformLocation, proto.location);
954
969
  }
955
970
  if (proto.channel) {
956
- m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
971
+ m.channel = enumStringToValue$b(ConversationChannel, proto.channel);
957
972
  }
958
973
  if (proto.created) {
959
974
  m.created = new Date(proto.created);
@@ -965,7 +980,7 @@ class Participant {
965
980
  m.deleted = new Date(proto.deleted);
966
981
  }
967
982
  if (proto.participantType) {
968
- m.participantType = enumStringToValue$a(ParticipantType, proto.participantType);
983
+ m.participantType = enumStringToValue$b(ParticipantType, proto.participantType);
969
984
  }
970
985
  if (proto.address) {
971
986
  m.address = Address.fromProto(proto.address);
@@ -1055,13 +1070,13 @@ class ParticipantKey {
1055
1070
  let m = new ParticipantKey();
1056
1071
  m = Object.assign(m, proto);
1057
1072
  if (proto.location) {
1058
- m.location = enumStringToValue$a(PlatformLocation, proto.location);
1073
+ m.location = enumStringToValue$b(PlatformLocation, proto.location);
1059
1074
  }
1060
1075
  if (proto.channels) {
1061
- m.channels = proto.channels.map((v) => enumStringToValue$a(ConversationChannel, v));
1076
+ m.channels = proto.channels.map((v) => enumStringToValue$b(ConversationChannel, v));
1062
1077
  }
1063
1078
  if (proto.participantType) {
1064
- m.participantType = enumStringToValue$a(GlobalParticipantType, proto.participantType);
1079
+ m.participantType = enumStringToValue$b(GlobalParticipantType, proto.participantType);
1065
1080
  }
1066
1081
  if (proto.namespaceHierarchy) {
1067
1082
  m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
@@ -1101,7 +1116,7 @@ class ParticipantKey {
1101
1116
  }
1102
1117
  }
1103
1118
 
1104
- function enumStringToValue$9(enumRef, value) {
1119
+ function enumStringToValue$a(enumRef, value) {
1105
1120
  if (typeof value === 'number') {
1106
1121
  return value;
1107
1122
  }
@@ -1154,7 +1169,7 @@ class MCPOptions {
1154
1169
  }
1155
1170
  }
1156
1171
 
1157
- function enumStringToValue$8(enumRef, value) {
1172
+ function enumStringToValue$9(enumRef, value) {
1158
1173
  if (typeof value === 'number') {
1159
1174
  return value;
1160
1175
  }
@@ -1324,7 +1339,7 @@ class ProductFeature {
1324
1339
  }
1325
1340
  }
1326
1341
 
1327
- function enumStringToValue$7(enumRef, value) {
1342
+ function enumStringToValue$8(enumRef, value) {
1328
1343
  if (typeof value === 'number') {
1329
1344
  return value;
1330
1345
  }
@@ -1359,7 +1374,7 @@ class View {
1359
1374
  }
1360
1375
  }
1361
1376
 
1362
- function enumStringToValue$6(enumRef, value) {
1377
+ function enumStringToValue$7(enumRef, value) {
1363
1378
  if (typeof value === 'number') {
1364
1379
  return value;
1365
1380
  }
@@ -1417,7 +1432,7 @@ class Widget {
1417
1432
  let m = new Widget();
1418
1433
  m = Object.assign(m, proto);
1419
1434
  if (proto.position) {
1420
- m.position = enumStringToValue$6(WidgetPosition, proto.position);
1435
+ m.position = enumStringToValue$7(WidgetPosition, proto.position);
1421
1436
  }
1422
1437
  if (proto.created) {
1423
1438
  m.created = new Date(proto.created);
@@ -1505,7 +1520,7 @@ class Widget {
1505
1520
  }
1506
1521
  }
1507
1522
 
1508
- function enumStringToValue$5(enumRef, value) {
1523
+ function enumStringToValue$6(enumRef, value) {
1509
1524
  if (typeof value === 'number') {
1510
1525
  return value;
1511
1526
  }
@@ -1523,7 +1538,7 @@ class ResponseEvaluation {
1523
1538
  let m = new ResponseEvaluation();
1524
1539
  m = Object.assign(m, proto);
1525
1540
  if (proto.sentiment) {
1526
- m.sentiment = enumStringToValue$5(EvaluationSentiment, proto.sentiment);
1541
+ m.sentiment = enumStringToValue$6(EvaluationSentiment, proto.sentiment);
1527
1542
  }
1528
1543
  if (proto.createdAt) {
1529
1544
  m.createdAt = new Date(proto.createdAt);
@@ -1566,7 +1581,7 @@ class ResponseEvaluation {
1566
1581
  }
1567
1582
  }
1568
1583
 
1569
- function enumStringToValue$4(enumRef, value) {
1584
+ function enumStringToValue$5(enumRef, value) {
1570
1585
  if (typeof value === 'number') {
1571
1586
  return value;
1572
1587
  }
@@ -1594,7 +1609,7 @@ class FieldMask {
1594
1609
  }
1595
1610
  }
1596
1611
 
1597
- function enumStringToValue$3(enumRef, value) {
1612
+ function enumStringToValue$4(enumRef, value) {
1598
1613
  if (typeof value === 'number') {
1599
1614
  return value;
1600
1615
  }
@@ -1637,7 +1652,7 @@ class MessageTemplate {
1637
1652
  }
1638
1653
  }
1639
1654
 
1640
- function enumStringToValue$2(enumRef, value) {
1655
+ function enumStringToValue$3(enumRef, value) {
1641
1656
  if (typeof value === 'number') {
1642
1657
  return value;
1643
1658
  }
@@ -1809,7 +1824,7 @@ class UpsertAISystemMessageRequest {
1809
1824
  }
1810
1825
  }
1811
1826
 
1812
- function enumStringToValue$1(enumRef, value) {
1827
+ function enumStringToValue$2(enumRef, value) {
1813
1828
  if (typeof value === 'number') {
1814
1829
  return value;
1815
1830
  }
@@ -1845,13 +1860,13 @@ class Event {
1845
1860
  m.deleted = new Date(proto.deleted);
1846
1861
  }
1847
1862
  if (proto.channel) {
1848
- m.channel = enumStringToValue$1(ConversationChannel, proto.channel);
1863
+ m.channel = enumStringToValue$2(ConversationChannel, proto.channel);
1849
1864
  }
1850
1865
  if (proto.originatedAt) {
1851
- m.originatedAt = enumStringToValue$1(PlatformLocation, proto.originatedAt);
1866
+ m.originatedAt = enumStringToValue$2(PlatformLocation, proto.originatedAt);
1852
1867
  }
1853
1868
  if (proto.type) {
1854
- m.type = enumStringToValue$1(EventType, proto.type);
1869
+ m.type = enumStringToValue$2(EventType, proto.type);
1855
1870
  }
1856
1871
  if (proto.metadata) {
1857
1872
  m.metadata = proto.metadata.map(KeyValuePair.fromProto);
@@ -1909,6 +1924,112 @@ class Event {
1909
1924
  }
1910
1925
  }
1911
1926
 
1927
+ function enumStringToValue$1(enumRef, value) {
1928
+ if (typeof value === 'number') {
1929
+ return value;
1930
+ }
1931
+ return enumRef[value];
1932
+ }
1933
+ class ConversationExportRecord {
1934
+ requestId;
1935
+ userId;
1936
+ subjectParticipant;
1937
+ status;
1938
+ recipientEmail;
1939
+ filters;
1940
+ errorCode;
1941
+ created;
1942
+ updated;
1943
+ static fromProto(proto) {
1944
+ let m = new ConversationExportRecord();
1945
+ m = Object.assign(m, proto);
1946
+ if (proto.subjectParticipant) {
1947
+ m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
1948
+ }
1949
+ if (proto.status) {
1950
+ m.status = enumStringToValue$1(ExportStatus, proto.status);
1951
+ }
1952
+ if (proto.filters) {
1953
+ m.filters = Filters.fromProto(proto.filters);
1954
+ }
1955
+ if (proto.created) {
1956
+ m.created = new Date(proto.created);
1957
+ }
1958
+ if (proto.updated) {
1959
+ m.updated = new Date(proto.updated);
1960
+ }
1961
+ return m;
1962
+ }
1963
+ constructor(kwargs) {
1964
+ if (!kwargs) {
1965
+ return;
1966
+ }
1967
+ Object.assign(this, kwargs);
1968
+ }
1969
+ toApiJson() {
1970
+ const toReturn = {};
1971
+ if (typeof this.requestId !== 'undefined') {
1972
+ toReturn['requestId'] = this.requestId;
1973
+ }
1974
+ if (typeof this.userId !== 'undefined') {
1975
+ toReturn['userId'] = this.userId;
1976
+ }
1977
+ if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
1978
+ toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
1979
+ }
1980
+ if (typeof this.status !== 'undefined') {
1981
+ toReturn['status'] = this.status;
1982
+ }
1983
+ if (typeof this.recipientEmail !== 'undefined') {
1984
+ toReturn['recipientEmail'] = this.recipientEmail;
1985
+ }
1986
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
1987
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
1988
+ }
1989
+ if (typeof this.errorCode !== 'undefined') {
1990
+ toReturn['errorCode'] = this.errorCode;
1991
+ }
1992
+ if (typeof this.created !== 'undefined' && this.created !== null) {
1993
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
1994
+ }
1995
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
1996
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
1997
+ }
1998
+ return toReturn;
1999
+ }
2000
+ }
2001
+ class Filters {
2002
+ startTime;
2003
+ endTime;
2004
+ static fromProto(proto) {
2005
+ let m = new Filters();
2006
+ m = Object.assign(m, proto);
2007
+ if (proto.startTime) {
2008
+ m.startTime = new Date(proto.startTime);
2009
+ }
2010
+ if (proto.endTime) {
2011
+ m.endTime = new Date(proto.endTime);
2012
+ }
2013
+ return m;
2014
+ }
2015
+ constructor(kwargs) {
2016
+ if (!kwargs) {
2017
+ return;
2018
+ }
2019
+ Object.assign(this, kwargs);
2020
+ }
2021
+ toApiJson() {
2022
+ const toReturn = {};
2023
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
2024
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
2025
+ }
2026
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
2027
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
2028
+ }
2029
+ return toReturn;
2030
+ }
2031
+ }
2032
+
1912
2033
  function enumStringToValue(enumRef, value) {
1913
2034
  if (typeof value === 'number') {
1914
2035
  return value;
@@ -2656,12 +2777,15 @@ class DeleteWidgetRequest {
2656
2777
  return toReturn;
2657
2778
  }
2658
2779
  }
2659
- class SearchConversationsResponseDetailedConversation {
2780
+ class GetMultiConversationDetailsResponseDetailedConversation {
2660
2781
  conversation;
2661
2782
  latestMessage;
2662
2783
  participants;
2784
+ summary;
2785
+ event;
2786
+ message;
2663
2787
  static fromProto(proto) {
2664
- let m = new SearchConversationsResponseDetailedConversation();
2788
+ let m = new GetMultiConversationDetailsResponseDetailedConversation();
2665
2789
  m = Object.assign(m, proto);
2666
2790
  if (proto.conversation) {
2667
2791
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -2672,6 +2796,12 @@ class SearchConversationsResponseDetailedConversation {
2672
2796
  if (proto.participants) {
2673
2797
  m.participants = proto.participants.map(Participant.fromProto);
2674
2798
  }
2799
+ if (proto.event) {
2800
+ m.event = Event.fromProto(proto.event);
2801
+ }
2802
+ if (proto.message) {
2803
+ m.message = Message.fromProto(proto.message);
2804
+ }
2675
2805
  return m;
2676
2806
  }
2677
2807
  constructor(kwargs) {
@@ -2691,18 +2821,24 @@ class SearchConversationsResponseDetailedConversation {
2691
2821
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
2692
2822
  toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
2693
2823
  }
2824
+ if (typeof this.summary !== 'undefined') {
2825
+ toReturn['summary'] = this.summary;
2826
+ }
2827
+ if (typeof this.event !== 'undefined' && this.event !== null) {
2828
+ toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
2829
+ }
2830
+ if (typeof this.message !== 'undefined' && this.message !== null) {
2831
+ toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
2832
+ }
2694
2833
  return toReturn;
2695
2834
  }
2696
2835
  }
2697
- class GetMultiConversationDetailsResponseDetailedConversation {
2836
+ class SearchConversationsResponseDetailedConversation {
2698
2837
  conversation;
2699
2838
  latestMessage;
2700
2839
  participants;
2701
- summary;
2702
- event;
2703
- message;
2704
2840
  static fromProto(proto) {
2705
- let m = new GetMultiConversationDetailsResponseDetailedConversation();
2841
+ let m = new SearchConversationsResponseDetailedConversation();
2706
2842
  m = Object.assign(m, proto);
2707
2843
  if (proto.conversation) {
2708
2844
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -2713,12 +2849,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
2713
2849
  if (proto.participants) {
2714
2850
  m.participants = proto.participants.map(Participant.fromProto);
2715
2851
  }
2716
- if (proto.event) {
2717
- m.event = Event.fromProto(proto.event);
2718
- }
2719
- if (proto.message) {
2720
- m.message = Message.fromProto(proto.message);
2721
- }
2722
2852
  return m;
2723
2853
  }
2724
2854
  constructor(kwargs) {
@@ -2738,15 +2868,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
2738
2868
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
2739
2869
  toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
2740
2870
  }
2741
- if (typeof this.summary !== 'undefined') {
2742
- toReturn['summary'] = this.summary;
2743
- }
2744
- if (typeof this.event !== 'undefined' && this.event !== null) {
2745
- toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
2746
- }
2747
- if (typeof this.message !== 'undefined' && this.message !== null) {
2748
- toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
2749
- }
2750
2871
  return toReturn;
2751
2872
  }
2752
2873
  }
@@ -2843,6 +2964,113 @@ class EvaluateResponseRequest {
2843
2964
  return toReturn;
2844
2965
  }
2845
2966
  }
2967
+ class ExportConversationsRequest {
2968
+ filterOptions;
2969
+ static fromProto(proto) {
2970
+ let m = new ExportConversationsRequest();
2971
+ m = Object.assign(m, proto);
2972
+ if (proto.filterOptions) {
2973
+ m.filterOptions = ExportConversationsRequestFilterOptions.fromProto(proto.filterOptions);
2974
+ }
2975
+ return m;
2976
+ }
2977
+ constructor(kwargs) {
2978
+ if (!kwargs) {
2979
+ return;
2980
+ }
2981
+ Object.assign(this, kwargs);
2982
+ }
2983
+ toApiJson() {
2984
+ const toReturn = {};
2985
+ if (typeof this.filterOptions !== 'undefined' && this.filterOptions !== null) {
2986
+ toReturn['filterOptions'] = 'toApiJson' in this.filterOptions ? this.filterOptions.toApiJson() : this.filterOptions;
2987
+ }
2988
+ return toReturn;
2989
+ }
2990
+ }
2991
+ class ExportConversationsResponse {
2992
+ workflowId;
2993
+ static fromProto(proto) {
2994
+ let m = new ExportConversationsResponse();
2995
+ m = Object.assign(m, proto);
2996
+ return m;
2997
+ }
2998
+ constructor(kwargs) {
2999
+ if (!kwargs) {
3000
+ return;
3001
+ }
3002
+ Object.assign(this, kwargs);
3003
+ }
3004
+ toApiJson() {
3005
+ const toReturn = {};
3006
+ if (typeof this.workflowId !== 'undefined') {
3007
+ toReturn['workflowId'] = this.workflowId;
3008
+ }
3009
+ return toReturn;
3010
+ }
3011
+ }
3012
+ class ListConversationExportsRequestFilterOptions {
3013
+ platformLocation;
3014
+ static fromProto(proto) {
3015
+ let m = new ListConversationExportsRequestFilterOptions();
3016
+ m = Object.assign(m, proto);
3017
+ if (proto.platformLocation) {
3018
+ m.platformLocation = enumStringToValue(PlatformLocation, proto.platformLocation);
3019
+ }
3020
+ return m;
3021
+ }
3022
+ constructor(kwargs) {
3023
+ if (!kwargs) {
3024
+ return;
3025
+ }
3026
+ Object.assign(this, kwargs);
3027
+ }
3028
+ toApiJson() {
3029
+ const toReturn = {};
3030
+ if (typeof this.platformLocation !== 'undefined') {
3031
+ toReturn['platformLocation'] = this.platformLocation;
3032
+ }
3033
+ return toReturn;
3034
+ }
3035
+ }
3036
+ class ExportConversationsRequestFilterOptions {
3037
+ subjectParticipant;
3038
+ startTime;
3039
+ endTime;
3040
+ static fromProto(proto) {
3041
+ let m = new ExportConversationsRequestFilterOptions();
3042
+ m = Object.assign(m, proto);
3043
+ if (proto.subjectParticipant) {
3044
+ m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
3045
+ }
3046
+ if (proto.startTime) {
3047
+ m.startTime = new Date(proto.startTime);
3048
+ }
3049
+ if (proto.endTime) {
3050
+ m.endTime = new Date(proto.endTime);
3051
+ }
3052
+ return m;
3053
+ }
3054
+ constructor(kwargs) {
3055
+ if (!kwargs) {
3056
+ return;
3057
+ }
3058
+ Object.assign(this, kwargs);
3059
+ }
3060
+ toApiJson() {
3061
+ const toReturn = {};
3062
+ if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
3063
+ toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
3064
+ }
3065
+ if (typeof this.startTime !== 'undefined' && this.startTime !== null) {
3066
+ toReturn['startTime'] = 'toApiJson' in this.startTime ? this.startTime.toApiJson() : this.startTime;
3067
+ }
3068
+ if (typeof this.endTime !== 'undefined' && this.endTime !== null) {
3069
+ toReturn['endTime'] = 'toApiJson' in this.endTime ? this.endTime.toApiJson() : this.endTime;
3070
+ }
3071
+ return toReturn;
3072
+ }
3073
+ }
2846
3074
  class GetAvailableChannelsForConversationRequest {
2847
3075
  conversationId;
2848
3076
  static fromProto(proto) {
@@ -4092,6 +4320,68 @@ class InjectMessageRequest {
4092
4320
  return toReturn;
4093
4321
  }
4094
4322
  }
4323
+ class ListConversationExportsRequest {
4324
+ filterOptions;
4325
+ pagingOptions;
4326
+ static fromProto(proto) {
4327
+ let m = new ListConversationExportsRequest();
4328
+ m = Object.assign(m, proto);
4329
+ if (proto.filterOptions) {
4330
+ m.filterOptions = ListConversationExportsRequestFilterOptions.fromProto(proto.filterOptions);
4331
+ }
4332
+ if (proto.pagingOptions) {
4333
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
4334
+ }
4335
+ return m;
4336
+ }
4337
+ constructor(kwargs) {
4338
+ if (!kwargs) {
4339
+ return;
4340
+ }
4341
+ Object.assign(this, kwargs);
4342
+ }
4343
+ toApiJson() {
4344
+ const toReturn = {};
4345
+ if (typeof this.filterOptions !== 'undefined' && this.filterOptions !== null) {
4346
+ toReturn['filterOptions'] = 'toApiJson' in this.filterOptions ? this.filterOptions.toApiJson() : this.filterOptions;
4347
+ }
4348
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
4349
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
4350
+ }
4351
+ return toReturn;
4352
+ }
4353
+ }
4354
+ class ListConversationExportsResponse {
4355
+ record;
4356
+ pagingMetadata;
4357
+ static fromProto(proto) {
4358
+ let m = new ListConversationExportsResponse();
4359
+ m = Object.assign(m, proto);
4360
+ if (proto.record) {
4361
+ m.record = proto.record.map(ConversationExportRecord.fromProto);
4362
+ }
4363
+ if (proto.pagingMetadata) {
4364
+ m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
4365
+ }
4366
+ return m;
4367
+ }
4368
+ constructor(kwargs) {
4369
+ if (!kwargs) {
4370
+ return;
4371
+ }
4372
+ Object.assign(this, kwargs);
4373
+ }
4374
+ toApiJson() {
4375
+ const toReturn = {};
4376
+ if (typeof this.record !== 'undefined' && this.record !== null) {
4377
+ toReturn['record'] = 'toApiJson' in this.record ? this.record.toApiJson() : this.record;
4378
+ }
4379
+ if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
4380
+ toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
4381
+ }
4382
+ return toReturn;
4383
+ }
4384
+ }
4095
4385
  class ListMessageTemplateRequest {
4096
4386
  subjectParticipant;
4097
4387
  pagingOptions;
@@ -4679,11 +4969,11 @@ class Metadata {
4679
4969
  return toReturn;
4680
4970
  }
4681
4971
  }
4682
- class InjectMessageRequestMetadataEntry {
4972
+ class ReceiveMessageRequestMetadataEntry {
4683
4973
  key;
4684
4974
  value;
4685
4975
  static fromProto(proto) {
4686
- let m = new InjectMessageRequestMetadataEntry();
4976
+ let m = new ReceiveMessageRequestMetadataEntry();
4687
4977
  m = Object.assign(m, proto);
4688
4978
  return m;
4689
4979
  }
@@ -4704,11 +4994,11 @@ class InjectMessageRequestMetadataEntry {
4704
4994
  return toReturn;
4705
4995
  }
4706
4996
  }
4707
- class ReceiveMessageRequestMetadataEntry {
4997
+ class InjectMessageRequestMetadataEntry {
4708
4998
  key;
4709
4999
  value;
4710
5000
  static fromProto(proto) {
4711
- let m = new ReceiveMessageRequestMetadataEntry();
5001
+ let m = new InjectMessageRequestMetadataEntry();
4712
5002
  m = Object.assign(m, proto);
4713
5003
  return m;
4714
5004
  }
@@ -6075,6 +6365,16 @@ class ConversationApiService {
6075
6365
  return this.http.post(this._host + "/conversation.v1.ConversationService/MakeToolCall", request.toApiJson(), this.apiOptions())
6076
6366
  .pipe(map(resp => MakeToolCallResponse.fromProto(resp)));
6077
6367
  }
6368
+ exportConversations(r) {
6369
+ const request = (r.toApiJson) ? r : new ExportConversationsRequest(r);
6370
+ return this.http.post(this._host + "/conversation.v1.ConversationService/ExportConversations", request.toApiJson(), this.apiOptions())
6371
+ .pipe(map(resp => ExportConversationsResponse.fromProto(resp)));
6372
+ }
6373
+ listConversationExports(r) {
6374
+ const request = (r.toApiJson) ? r : new ListConversationExportsRequest(r);
6375
+ return this.http.post(this._host + "/conversation.v1.ConversationService/ListConversationExports", request.toApiJson(), this.apiOptions())
6376
+ .pipe(map(resp => ListConversationExportsResponse.fromProto(resp)));
6377
+ }
6078
6378
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6079
6379
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
6080
6380
  }
@@ -6171,5 +6471,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
6171
6471
  * Generated bundle index. Do not edit.
6172
6472
  */
6173
6473
 
6174
- export { AIConfiguration, AISystemMessage, AISystemMessageApiService, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, ConfigurationAIConfiguration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluateResponseType, EvaluationSentiment, Event, EventType, FieldMask, GetAISystemMessageRequest, GetAISystemMessageResponse, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateRequestHydrationOptions, GetMessageTemplateRequestHydrationOptionsHydrationEntity, GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType, GetMessageTemplateResponse, GetMessageTemplateResponseHydrationInformation, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationDetailsV2Request, GetMultiConversationDetailsV2Response, GetMultiConversationDetailsV2ResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiEventsRequest, GetMultiEventsResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetMultiWidgetRequest, GetMultiWidgetResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConfigResponseGreetingMessageType, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, InjectMessageRequest, InjectMessageRequestMetadataEntry, KeyValuePair, LastSeenByParticipant, LatestMessageSentTimeBySubjectParticipant, ListAISystemMessagesRequest, ListAISystemMessagesResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListResponseEvaluationsRequest, ListResponseEvaluationsResponse, ListResponseEvaluationsResponseSummary, ListResponseEvaluationsResponseSummaryTheme, ListWidgetsRequest, ListWidgetsRequestListWidgetsFilters, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, MCPOptions, MakeToolCallRequest, MakeToolCallRequestMessageOption, MakeToolCallResponse, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, ResponseEvaluation, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageOptions, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, Status, SubjectParticipant, SubjectParticipantKey, UIButton, UIComponent, UIComponentType, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition, WidgetVisit };
6474
+ export { AIConfiguration, AISystemMessage, AISystemMessageApiService, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, ConfigurationAIConfiguration, Conversation, ConversationApiService, ConversationChannel, ConversationExportRecord, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluateResponseType, EvaluationSentiment, Event, EventType, ExportConversationsRequest, ExportConversationsRequestFilterOptions, ExportConversationsResponse, ExportStatus, FieldMask, Filters, GetAISystemMessageRequest, GetAISystemMessageResponse, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateRequestHydrationOptions, GetMessageTemplateRequestHydrationOptionsHydrationEntity, GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType, GetMessageTemplateResponse, GetMessageTemplateResponseHydrationInformation, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationDetailsV2Request, GetMultiConversationDetailsV2Response, GetMultiConversationDetailsV2ResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiEventsRequest, GetMultiEventsResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetMultiWidgetRequest, GetMultiWidgetResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConfigResponseGreetingMessageType, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, InjectMessageRequest, InjectMessageRequestMetadataEntry, KeyValuePair, LastSeenByParticipant, LatestMessageSentTimeBySubjectParticipant, ListAISystemMessagesRequest, ListAISystemMessagesResponse, ListConversationExportsRequest, ListConversationExportsRequestFilterOptions, ListConversationExportsResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListResponseEvaluationsRequest, ListResponseEvaluationsResponse, ListResponseEvaluationsResponseSummary, ListResponseEvaluationsResponseSummaryTheme, ListWidgetsRequest, ListWidgetsRequestListWidgetsFilters, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, MCPOptions, MakeToolCallRequest, MakeToolCallRequestMessageOption, MakeToolCallResponse, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, ResponseEvaluation, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageOptions, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, Status, SubjectParticipant, SubjectParticipantKey, UIButton, UIComponent, UIComponentType, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition, WidgetVisit };
6175
6475
  //# sourceMappingURL=vendasta-conversation.mjs.map