@vendasta/conversation 0.108.0 → 0.110.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/esm2022/lib/_internal/conversation.api.service.mjs +12 -2
- package/esm2022/lib/_internal/enums/api.enum.mjs +9 -1
- package/esm2022/lib/_internal/enums/conversation-export.enum.mjs +14 -0
- package/esm2022/lib/_internal/enums/conversation.enum.mjs +2 -1
- package/esm2022/lib/_internal/enums/index.mjs +3 -2
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/conversation-export.interface.mjs +2 -0
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +208 -27
- package/esm2022/lib/_internal/objects/conversation-export.mjs +108 -0
- package/esm2022/lib/_internal/objects/index.mjs +3 -2
- package/fesm2022/vendasta-conversation.mjs +381 -62
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +4 -2
- package/lib/_internal/enums/api.enum.d.ts +7 -0
- package/lib/_internal/enums/conversation-export.enum.d.ts +6 -0
- package/lib/_internal/enums/conversation.enum.d.ts +2 -1
- package/lib/_internal/enums/index.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +32 -7
- package/lib/_internal/interfaces/conversation-export.interface.d.ts +17 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +57 -14
- package/lib/_internal/objects/conversation-export.d.ts +25 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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!.
|
|
@@ -190,6 +205,14 @@ var EvaluateResponseType;
|
|
|
190
205
|
EvaluateResponseType[EvaluateResponseType["EVALUATION_RESPONSE_TYPE_EVENT"] = 1] = "EVALUATION_RESPONSE_TYPE_EVENT";
|
|
191
206
|
EvaluateResponseType[EvaluateResponseType["EVALUATION_RESPONSE_TYPE_MESSAGE"] = 2] = "EVALUATION_RESPONSE_TYPE_MESSAGE";
|
|
192
207
|
})(EvaluateResponseType || (EvaluateResponseType = {}));
|
|
208
|
+
var GetWidgetConfigResponseGreetingMessageType;
|
|
209
|
+
(function (GetWidgetConfigResponseGreetingMessageType) {
|
|
210
|
+
GetWidgetConfigResponseGreetingMessageType[GetWidgetConfigResponseGreetingMessageType["GREETING_MESSAGE_UNDEFINED"] = 0] = "GREETING_MESSAGE_UNDEFINED";
|
|
211
|
+
GetWidgetConfigResponseGreetingMessageType[GetWidgetConfigResponseGreetingMessageType["GREETING_MESSAGE_NONE"] = 1] = "GREETING_MESSAGE_NONE";
|
|
212
|
+
GetWidgetConfigResponseGreetingMessageType[GetWidgetConfigResponseGreetingMessageType["GREETING_MESSAGE_CUSTOM"] = 2] = "GREETING_MESSAGE_CUSTOM";
|
|
213
|
+
GetWidgetConfigResponseGreetingMessageType[GetWidgetConfigResponseGreetingMessageType["GREETING_MESSAGE_DEFAULT"] = 3] = "GREETING_MESSAGE_DEFAULT";
|
|
214
|
+
GetWidgetConfigResponseGreetingMessageType[GetWidgetConfigResponseGreetingMessageType["GREETING_MESSAGE_AI"] = 4] = "GREETING_MESSAGE_AI";
|
|
215
|
+
})(GetWidgetConfigResponseGreetingMessageType || (GetWidgetConfigResponseGreetingMessageType = {}));
|
|
193
216
|
var MetadataIdentifier;
|
|
194
217
|
(function (MetadataIdentifier) {
|
|
195
218
|
MetadataIdentifier[MetadataIdentifier["METADATA_IDENTIFIER_UNDEFINED"] = 0] = "METADATA_IDENTIFIER_UNDEFINED";
|
|
@@ -218,7 +241,7 @@ var Status;
|
|
|
218
241
|
// Enums Index.
|
|
219
242
|
// *********************************
|
|
220
243
|
|
|
221
|
-
function enumStringToValue$
|
|
244
|
+
function enumStringToValue$f(enumRef, value) {
|
|
222
245
|
if (typeof value === 'number') {
|
|
223
246
|
return value;
|
|
224
247
|
}
|
|
@@ -256,7 +279,7 @@ class NamespaceDetail {
|
|
|
256
279
|
let m = new NamespaceDetail();
|
|
257
280
|
m = Object.assign(m, proto);
|
|
258
281
|
if (proto.participantType) {
|
|
259
|
-
m.participantType = enumStringToValue$
|
|
282
|
+
m.participantType = enumStringToValue$f(GlobalParticipantType, proto.participantType);
|
|
260
283
|
}
|
|
261
284
|
return m;
|
|
262
285
|
}
|
|
@@ -284,7 +307,7 @@ class SubjectParticipant {
|
|
|
284
307
|
let m = new SubjectParticipant();
|
|
285
308
|
m = Object.assign(m, proto);
|
|
286
309
|
if (proto.participantType) {
|
|
287
|
-
m.participantType = enumStringToValue$
|
|
310
|
+
m.participantType = enumStringToValue$f(GlobalParticipantType, proto.participantType);
|
|
288
311
|
}
|
|
289
312
|
return m;
|
|
290
313
|
}
|
|
@@ -306,7 +329,7 @@ class SubjectParticipant {
|
|
|
306
329
|
}
|
|
307
330
|
}
|
|
308
331
|
|
|
309
|
-
function enumStringToValue$
|
|
332
|
+
function enumStringToValue$e(enumRef, value) {
|
|
310
333
|
if (typeof value === 'number') {
|
|
311
334
|
return value;
|
|
312
335
|
}
|
|
@@ -366,7 +389,7 @@ class Conversation {
|
|
|
366
389
|
let m = new Conversation();
|
|
367
390
|
m = Object.assign(m, proto);
|
|
368
391
|
if (proto.channel) {
|
|
369
|
-
m.channel = enumStringToValue$
|
|
392
|
+
m.channel = enumStringToValue$e(ConversationChannel, proto.channel);
|
|
370
393
|
}
|
|
371
394
|
if (proto.created) {
|
|
372
395
|
m.created = new Date(proto.created);
|
|
@@ -381,7 +404,7 @@ class Conversation {
|
|
|
381
404
|
m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
|
|
382
405
|
}
|
|
383
406
|
if (proto.originLocation) {
|
|
384
|
-
m.originLocation = enumStringToValue$
|
|
407
|
+
m.originLocation = enumStringToValue$e(PlatformLocation, proto.originLocation);
|
|
385
408
|
}
|
|
386
409
|
if (proto.lastSeenByParticipant) {
|
|
387
410
|
m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
|
|
@@ -491,7 +514,7 @@ class ConversationKey {
|
|
|
491
514
|
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
492
515
|
}
|
|
493
516
|
if (proto.channel) {
|
|
494
|
-
m.channel = enumStringToValue$
|
|
517
|
+
m.channel = enumStringToValue$e(ConversationChannel, proto.channel);
|
|
495
518
|
}
|
|
496
519
|
return m;
|
|
497
520
|
}
|
|
@@ -603,7 +626,7 @@ class SubjectParticipantKey {
|
|
|
603
626
|
}
|
|
604
627
|
}
|
|
605
628
|
|
|
606
|
-
function enumStringToValue$
|
|
629
|
+
function enumStringToValue$d(enumRef, value) {
|
|
607
630
|
if (typeof value === 'number') {
|
|
608
631
|
return value;
|
|
609
632
|
}
|
|
@@ -650,7 +673,7 @@ class UIButton {
|
|
|
650
673
|
}
|
|
651
674
|
}
|
|
652
675
|
|
|
653
|
-
function enumStringToValue$
|
|
676
|
+
function enumStringToValue$c(enumRef, value) {
|
|
654
677
|
if (typeof value === 'number') {
|
|
655
678
|
return value;
|
|
656
679
|
}
|
|
@@ -677,7 +700,7 @@ class Message {
|
|
|
677
700
|
let m = new Message();
|
|
678
701
|
m = Object.assign(m, proto);
|
|
679
702
|
if (proto.type) {
|
|
680
|
-
m.type = enumStringToValue$
|
|
703
|
+
m.type = enumStringToValue$c(MessageType, proto.type);
|
|
681
704
|
}
|
|
682
705
|
if (proto.created) {
|
|
683
706
|
m.created = new Date(proto.created);
|
|
@@ -692,7 +715,7 @@ class Message {
|
|
|
692
715
|
m.sendStatus = SendStatus.fromProto(proto.sendStatus);
|
|
693
716
|
}
|
|
694
717
|
if (proto.channel) {
|
|
695
|
-
m.channel = enumStringToValue$
|
|
718
|
+
m.channel = enumStringToValue$c(ConversationChannel, proto.channel);
|
|
696
719
|
}
|
|
697
720
|
if (proto.metadata) {
|
|
698
721
|
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
@@ -770,7 +793,7 @@ class ParticipantMessageStatus {
|
|
|
770
793
|
let m = new ParticipantMessageStatus();
|
|
771
794
|
m = Object.assign(m, proto);
|
|
772
795
|
if (proto.status) {
|
|
773
|
-
m.status = enumStringToValue$
|
|
796
|
+
m.status = enumStringToValue$c(MessageStatus, proto.status);
|
|
774
797
|
}
|
|
775
798
|
if (proto.updated) {
|
|
776
799
|
m.updated = new Date(proto.updated);
|
|
@@ -809,7 +832,7 @@ class SendStatus {
|
|
|
809
832
|
let m = new SendStatus();
|
|
810
833
|
m = Object.assign(m, proto);
|
|
811
834
|
if (proto.status) {
|
|
812
|
-
m.status = enumStringToValue$
|
|
835
|
+
m.status = enumStringToValue$c(MessageStatus, proto.status);
|
|
813
836
|
}
|
|
814
837
|
if (proto.created) {
|
|
815
838
|
m.created = new Date(proto.created);
|
|
@@ -846,7 +869,7 @@ class UIComponent {
|
|
|
846
869
|
let m = new UIComponent();
|
|
847
870
|
m = Object.assign(m, proto);
|
|
848
871
|
if (proto.type) {
|
|
849
|
-
m.type = enumStringToValue$
|
|
872
|
+
m.type = enumStringToValue$c(UIComponentType, proto.type);
|
|
850
873
|
}
|
|
851
874
|
if (proto.button) {
|
|
852
875
|
m.button = UIButton.fromProto(proto.button);
|
|
@@ -871,7 +894,7 @@ class UIComponent {
|
|
|
871
894
|
}
|
|
872
895
|
}
|
|
873
896
|
|
|
874
|
-
function enumStringToValue$
|
|
897
|
+
function enumStringToValue$b(enumRef, value) {
|
|
875
898
|
if (typeof value === 'number') {
|
|
876
899
|
return value;
|
|
877
900
|
}
|
|
@@ -942,10 +965,10 @@ class Participant {
|
|
|
942
965
|
let m = new Participant();
|
|
943
966
|
m = Object.assign(m, proto);
|
|
944
967
|
if (proto.location) {
|
|
945
|
-
m.location = enumStringToValue$
|
|
968
|
+
m.location = enumStringToValue$b(PlatformLocation, proto.location);
|
|
946
969
|
}
|
|
947
970
|
if (proto.channel) {
|
|
948
|
-
m.channel = enumStringToValue$
|
|
971
|
+
m.channel = enumStringToValue$b(ConversationChannel, proto.channel);
|
|
949
972
|
}
|
|
950
973
|
if (proto.created) {
|
|
951
974
|
m.created = new Date(proto.created);
|
|
@@ -957,7 +980,7 @@ class Participant {
|
|
|
957
980
|
m.deleted = new Date(proto.deleted);
|
|
958
981
|
}
|
|
959
982
|
if (proto.participantType) {
|
|
960
|
-
m.participantType = enumStringToValue$
|
|
983
|
+
m.participantType = enumStringToValue$b(ParticipantType, proto.participantType);
|
|
961
984
|
}
|
|
962
985
|
if (proto.address) {
|
|
963
986
|
m.address = Address.fromProto(proto.address);
|
|
@@ -1047,13 +1070,13 @@ class ParticipantKey {
|
|
|
1047
1070
|
let m = new ParticipantKey();
|
|
1048
1071
|
m = Object.assign(m, proto);
|
|
1049
1072
|
if (proto.location) {
|
|
1050
|
-
m.location = enumStringToValue$
|
|
1073
|
+
m.location = enumStringToValue$b(PlatformLocation, proto.location);
|
|
1051
1074
|
}
|
|
1052
1075
|
if (proto.channels) {
|
|
1053
|
-
m.channels = proto.channels.map((v) => enumStringToValue$
|
|
1076
|
+
m.channels = proto.channels.map((v) => enumStringToValue$b(ConversationChannel, v));
|
|
1054
1077
|
}
|
|
1055
1078
|
if (proto.participantType) {
|
|
1056
|
-
m.participantType = enumStringToValue$
|
|
1079
|
+
m.participantType = enumStringToValue$b(GlobalParticipantType, proto.participantType);
|
|
1057
1080
|
}
|
|
1058
1081
|
if (proto.namespaceHierarchy) {
|
|
1059
1082
|
m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
|
|
@@ -1093,7 +1116,7 @@ class ParticipantKey {
|
|
|
1093
1116
|
}
|
|
1094
1117
|
}
|
|
1095
1118
|
|
|
1096
|
-
function enumStringToValue$
|
|
1119
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1097
1120
|
if (typeof value === 'number') {
|
|
1098
1121
|
return value;
|
|
1099
1122
|
}
|
|
@@ -1146,7 +1169,7 @@ class MCPOptions {
|
|
|
1146
1169
|
}
|
|
1147
1170
|
}
|
|
1148
1171
|
|
|
1149
|
-
function enumStringToValue$
|
|
1172
|
+
function enumStringToValue$9(enumRef, value) {
|
|
1150
1173
|
if (typeof value === 'number') {
|
|
1151
1174
|
return value;
|
|
1152
1175
|
}
|
|
@@ -1316,7 +1339,7 @@ class ProductFeature {
|
|
|
1316
1339
|
}
|
|
1317
1340
|
}
|
|
1318
1341
|
|
|
1319
|
-
function enumStringToValue$
|
|
1342
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1320
1343
|
if (typeof value === 'number') {
|
|
1321
1344
|
return value;
|
|
1322
1345
|
}
|
|
@@ -1351,7 +1374,7 @@ class View {
|
|
|
1351
1374
|
}
|
|
1352
1375
|
}
|
|
1353
1376
|
|
|
1354
|
-
function enumStringToValue$
|
|
1377
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1355
1378
|
if (typeof value === 'number') {
|
|
1356
1379
|
return value;
|
|
1357
1380
|
}
|
|
@@ -1409,7 +1432,7 @@ class Widget {
|
|
|
1409
1432
|
let m = new Widget();
|
|
1410
1433
|
m = Object.assign(m, proto);
|
|
1411
1434
|
if (proto.position) {
|
|
1412
|
-
m.position = enumStringToValue$
|
|
1435
|
+
m.position = enumStringToValue$7(WidgetPosition, proto.position);
|
|
1413
1436
|
}
|
|
1414
1437
|
if (proto.created) {
|
|
1415
1438
|
m.created = new Date(proto.created);
|
|
@@ -1497,7 +1520,7 @@ class Widget {
|
|
|
1497
1520
|
}
|
|
1498
1521
|
}
|
|
1499
1522
|
|
|
1500
|
-
function enumStringToValue$
|
|
1523
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1501
1524
|
if (typeof value === 'number') {
|
|
1502
1525
|
return value;
|
|
1503
1526
|
}
|
|
@@ -1515,7 +1538,7 @@ class ResponseEvaluation {
|
|
|
1515
1538
|
let m = new ResponseEvaluation();
|
|
1516
1539
|
m = Object.assign(m, proto);
|
|
1517
1540
|
if (proto.sentiment) {
|
|
1518
|
-
m.sentiment = enumStringToValue$
|
|
1541
|
+
m.sentiment = enumStringToValue$6(EvaluationSentiment, proto.sentiment);
|
|
1519
1542
|
}
|
|
1520
1543
|
if (proto.createdAt) {
|
|
1521
1544
|
m.createdAt = new Date(proto.createdAt);
|
|
@@ -1558,7 +1581,7 @@ class ResponseEvaluation {
|
|
|
1558
1581
|
}
|
|
1559
1582
|
}
|
|
1560
1583
|
|
|
1561
|
-
function enumStringToValue$
|
|
1584
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1562
1585
|
if (typeof value === 'number') {
|
|
1563
1586
|
return value;
|
|
1564
1587
|
}
|
|
@@ -1586,7 +1609,7 @@ class FieldMask {
|
|
|
1586
1609
|
}
|
|
1587
1610
|
}
|
|
1588
1611
|
|
|
1589
|
-
function enumStringToValue$
|
|
1612
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1590
1613
|
if (typeof value === 'number') {
|
|
1591
1614
|
return value;
|
|
1592
1615
|
}
|
|
@@ -1629,7 +1652,7 @@ class MessageTemplate {
|
|
|
1629
1652
|
}
|
|
1630
1653
|
}
|
|
1631
1654
|
|
|
1632
|
-
function enumStringToValue$
|
|
1655
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1633
1656
|
if (typeof value === 'number') {
|
|
1634
1657
|
return value;
|
|
1635
1658
|
}
|
|
@@ -1801,7 +1824,7 @@ class UpsertAISystemMessageRequest {
|
|
|
1801
1824
|
}
|
|
1802
1825
|
}
|
|
1803
1826
|
|
|
1804
|
-
function enumStringToValue$
|
|
1827
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1805
1828
|
if (typeof value === 'number') {
|
|
1806
1829
|
return value;
|
|
1807
1830
|
}
|
|
@@ -1837,13 +1860,13 @@ class Event {
|
|
|
1837
1860
|
m.deleted = new Date(proto.deleted);
|
|
1838
1861
|
}
|
|
1839
1862
|
if (proto.channel) {
|
|
1840
|
-
m.channel = enumStringToValue$
|
|
1863
|
+
m.channel = enumStringToValue$2(ConversationChannel, proto.channel);
|
|
1841
1864
|
}
|
|
1842
1865
|
if (proto.originatedAt) {
|
|
1843
|
-
m.originatedAt = enumStringToValue$
|
|
1866
|
+
m.originatedAt = enumStringToValue$2(PlatformLocation, proto.originatedAt);
|
|
1844
1867
|
}
|
|
1845
1868
|
if (proto.type) {
|
|
1846
|
-
m.type = enumStringToValue$
|
|
1869
|
+
m.type = enumStringToValue$2(EventType, proto.type);
|
|
1847
1870
|
}
|
|
1848
1871
|
if (proto.metadata) {
|
|
1849
1872
|
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
@@ -1901,6 +1924,112 @@ class Event {
|
|
|
1901
1924
|
}
|
|
1902
1925
|
}
|
|
1903
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
|
+
|
|
1904
2033
|
function enumStringToValue(enumRef, value) {
|
|
1905
2034
|
if (typeof value === 'number') {
|
|
1906
2035
|
return value;
|
|
@@ -2648,12 +2777,15 @@ class DeleteWidgetRequest {
|
|
|
2648
2777
|
return toReturn;
|
|
2649
2778
|
}
|
|
2650
2779
|
}
|
|
2651
|
-
class
|
|
2780
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
2652
2781
|
conversation;
|
|
2653
2782
|
latestMessage;
|
|
2654
2783
|
participants;
|
|
2784
|
+
summary;
|
|
2785
|
+
event;
|
|
2786
|
+
message;
|
|
2655
2787
|
static fromProto(proto) {
|
|
2656
|
-
let m = new
|
|
2788
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
2657
2789
|
m = Object.assign(m, proto);
|
|
2658
2790
|
if (proto.conversation) {
|
|
2659
2791
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2664,6 +2796,12 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2664
2796
|
if (proto.participants) {
|
|
2665
2797
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2666
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
|
+
}
|
|
2667
2805
|
return m;
|
|
2668
2806
|
}
|
|
2669
2807
|
constructor(kwargs) {
|
|
@@ -2683,18 +2821,24 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2683
2821
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2684
2822
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2685
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
|
+
}
|
|
2686
2833
|
return toReturn;
|
|
2687
2834
|
}
|
|
2688
2835
|
}
|
|
2689
|
-
class
|
|
2836
|
+
class SearchConversationsResponseDetailedConversation {
|
|
2690
2837
|
conversation;
|
|
2691
2838
|
latestMessage;
|
|
2692
2839
|
participants;
|
|
2693
|
-
summary;
|
|
2694
|
-
event;
|
|
2695
|
-
message;
|
|
2696
2840
|
static fromProto(proto) {
|
|
2697
|
-
let m = new
|
|
2841
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
2698
2842
|
m = Object.assign(m, proto);
|
|
2699
2843
|
if (proto.conversation) {
|
|
2700
2844
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2705,12 +2849,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2705
2849
|
if (proto.participants) {
|
|
2706
2850
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2707
2851
|
}
|
|
2708
|
-
if (proto.event) {
|
|
2709
|
-
m.event = Event.fromProto(proto.event);
|
|
2710
|
-
}
|
|
2711
|
-
if (proto.message) {
|
|
2712
|
-
m.message = Message.fromProto(proto.message);
|
|
2713
|
-
}
|
|
2714
2852
|
return m;
|
|
2715
2853
|
}
|
|
2716
2854
|
constructor(kwargs) {
|
|
@@ -2730,15 +2868,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2730
2868
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2731
2869
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2732
2870
|
}
|
|
2733
|
-
if (typeof this.summary !== 'undefined') {
|
|
2734
|
-
toReturn['summary'] = this.summary;
|
|
2735
|
-
}
|
|
2736
|
-
if (typeof this.event !== 'undefined' && this.event !== null) {
|
|
2737
|
-
toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
|
|
2738
|
-
}
|
|
2739
|
-
if (typeof this.message !== 'undefined' && this.message !== null) {
|
|
2740
|
-
toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
|
|
2741
|
-
}
|
|
2742
2871
|
return toReturn;
|
|
2743
2872
|
}
|
|
2744
2873
|
}
|
|
@@ -2835,6 +2964,113 @@ class EvaluateResponseRequest {
|
|
|
2835
2964
|
return toReturn;
|
|
2836
2965
|
}
|
|
2837
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
|
+
}
|
|
2838
3074
|
class GetAvailableChannelsForConversationRequest {
|
|
2839
3075
|
conversationId;
|
|
2840
3076
|
static fromProto(proto) {
|
|
@@ -3778,6 +4014,7 @@ class GetWidgetConfigResponse {
|
|
|
3778
4014
|
poweredByName;
|
|
3779
4015
|
poweredByWebsite;
|
|
3780
4016
|
showFooterContent;
|
|
4017
|
+
greetingMessageType;
|
|
3781
4018
|
static fromProto(proto) {
|
|
3782
4019
|
let m = new GetWidgetConfigResponse();
|
|
3783
4020
|
m = Object.assign(m, proto);
|
|
@@ -3787,6 +4024,9 @@ class GetWidgetConfigResponse {
|
|
|
3787
4024
|
if (proto.position) {
|
|
3788
4025
|
m.position = enumStringToValue(WidgetPosition, proto.position);
|
|
3789
4026
|
}
|
|
4027
|
+
if (proto.greetingMessageType) {
|
|
4028
|
+
m.greetingMessageType = enumStringToValue(GetWidgetConfigResponseGreetingMessageType, proto.greetingMessageType);
|
|
4029
|
+
}
|
|
3790
4030
|
return m;
|
|
3791
4031
|
}
|
|
3792
4032
|
constructor(kwargs) {
|
|
@@ -3854,6 +4094,9 @@ class GetWidgetConfigResponse {
|
|
|
3854
4094
|
if (typeof this.showFooterContent !== 'undefined') {
|
|
3855
4095
|
toReturn['showFooterContent'] = this.showFooterContent;
|
|
3856
4096
|
}
|
|
4097
|
+
if (typeof this.greetingMessageType !== 'undefined') {
|
|
4098
|
+
toReturn['greetingMessageType'] = this.greetingMessageType;
|
|
4099
|
+
}
|
|
3857
4100
|
return toReturn;
|
|
3858
4101
|
}
|
|
3859
4102
|
}
|
|
@@ -4077,6 +4320,68 @@ class InjectMessageRequest {
|
|
|
4077
4320
|
return toReturn;
|
|
4078
4321
|
}
|
|
4079
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
|
+
}
|
|
4080
4385
|
class ListMessageTemplateRequest {
|
|
4081
4386
|
subjectParticipant;
|
|
4082
4387
|
pagingOptions;
|
|
@@ -4525,6 +4830,7 @@ class LookupConversationsResponse {
|
|
|
4525
4830
|
}
|
|
4526
4831
|
class MakeToolCallRequest {
|
|
4527
4832
|
messageOption;
|
|
4833
|
+
payload;
|
|
4528
4834
|
static fromProto(proto) {
|
|
4529
4835
|
let m = new MakeToolCallRequest();
|
|
4530
4836
|
m = Object.assign(m, proto);
|
|
@@ -4544,6 +4850,9 @@ class MakeToolCallRequest {
|
|
|
4544
4850
|
if (typeof this.messageOption !== 'undefined' && this.messageOption !== null) {
|
|
4545
4851
|
toReturn['messageOption'] = 'toApiJson' in this.messageOption ? this.messageOption.toApiJson() : this.messageOption;
|
|
4546
4852
|
}
|
|
4853
|
+
if (typeof this.payload !== 'undefined') {
|
|
4854
|
+
toReturn['payload'] = this.payload;
|
|
4855
|
+
}
|
|
4547
4856
|
return toReturn;
|
|
4548
4857
|
}
|
|
4549
4858
|
}
|
|
@@ -4660,11 +4969,11 @@ class Metadata {
|
|
|
4660
4969
|
return toReturn;
|
|
4661
4970
|
}
|
|
4662
4971
|
}
|
|
4663
|
-
class
|
|
4972
|
+
class ReceiveMessageRequestMetadataEntry {
|
|
4664
4973
|
key;
|
|
4665
4974
|
value;
|
|
4666
4975
|
static fromProto(proto) {
|
|
4667
|
-
let m = new
|
|
4976
|
+
let m = new ReceiveMessageRequestMetadataEntry();
|
|
4668
4977
|
m = Object.assign(m, proto);
|
|
4669
4978
|
return m;
|
|
4670
4979
|
}
|
|
@@ -4685,11 +4994,11 @@ class InjectMessageRequestMetadataEntry {
|
|
|
4685
4994
|
return toReturn;
|
|
4686
4995
|
}
|
|
4687
4996
|
}
|
|
4688
|
-
class
|
|
4997
|
+
class InjectMessageRequestMetadataEntry {
|
|
4689
4998
|
key;
|
|
4690
4999
|
value;
|
|
4691
5000
|
static fromProto(proto) {
|
|
4692
|
-
let m = new
|
|
5001
|
+
let m = new InjectMessageRequestMetadataEntry();
|
|
4693
5002
|
m = Object.assign(m, proto);
|
|
4694
5003
|
return m;
|
|
4695
5004
|
}
|
|
@@ -6056,6 +6365,16 @@ class ConversationApiService {
|
|
|
6056
6365
|
return this.http.post(this._host + "/conversation.v1.ConversationService/MakeToolCall", request.toApiJson(), this.apiOptions())
|
|
6057
6366
|
.pipe(map(resp => MakeToolCallResponse.fromProto(resp)));
|
|
6058
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
|
+
}
|
|
6059
6378
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6060
6379
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
6061
6380
|
}
|
|
@@ -6152,5 +6471,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
6152
6471
|
* Generated bundle index. Do not edit.
|
|
6153
6472
|
*/
|
|
6154
6473
|
|
|
6155
|
-
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, 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 };
|
|
6156
6475
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|