@vendasta/conversation 0.121.0 → 0.123.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 +17 -2
- package/esm2022/lib/_internal/enums/api.enum.mjs +8 -1
- package/esm2022/lib/_internal/enums/conversation.enum.mjs +2 -1
- package/esm2022/lib/_internal/enums/event.enum.mjs +3 -1
- package/esm2022/lib/_internal/enums/index.mjs +3 -2
- package/esm2022/lib/_internal/enums/message.enum.mjs +4 -1
- package/esm2022/lib/_internal/enums/ui-components.enum.mjs +14 -0
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/configuration.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/message.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/ui-components.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/ai-thought.mjs +1 -1
- package/esm2022/lib/_internal/objects/aisystemmessage.mjs +1 -1
- package/esm2022/lib/_internal/objects/annotations.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +342 -67
- package/esm2022/lib/_internal/objects/common.mjs +1 -1
- package/esm2022/lib/_internal/objects/configuration.mjs +9 -1
- package/esm2022/lib/_internal/objects/conversation-export.mjs +1 -1
- package/esm2022/lib/_internal/objects/conversation-view.mjs +1 -1
- package/esm2022/lib/_internal/objects/conversation.mjs +1 -1
- package/esm2022/lib/_internal/objects/evaluation.mjs +1 -1
- package/esm2022/lib/_internal/objects/event.mjs +1 -1
- package/esm2022/lib/_internal/objects/field-mask.mjs +1 -1
- package/esm2022/lib/_internal/objects/index.mjs +3 -3
- package/esm2022/lib/_internal/objects/message-template.mjs +1 -1
- package/esm2022/lib/_internal/objects/message.mjs +23 -2
- package/esm2022/lib/_internal/objects/participant.mjs +1 -1
- package/esm2022/lib/_internal/objects/ui-components.mjs +163 -1
- package/esm2022/lib/_internal/objects/widget.mjs +1 -1
- package/fesm2022/vendasta-conversation.mjs +574 -67
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +5 -2
- package/lib/_internal/enums/api.enum.d.ts +7 -1
- package/lib/_internal/enums/conversation.enum.d.ts +2 -1
- package/lib/_internal/enums/event.enum.d.ts +3 -1
- package/lib/_internal/enums/index.d.ts +2 -1
- package/lib/_internal/enums/message.enum.d.ts +4 -1
- package/lib/_internal/enums/ui-components.enum.d.ts +6 -0
- package/lib/_internal/interfaces/api.interface.d.ts +53 -12
- package/lib/_internal/interfaces/configuration.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/message.interface.d.ts +4 -1
- package/lib/_internal/interfaces/ui-components.interface.d.ts +27 -0
- package/lib/_internal/objects/ai-thought.d.ts +1 -1
- package/lib/_internal/objects/aisystemmessage.d.ts +1 -1
- package/lib/_internal/objects/annotations.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +93 -25
- package/lib/_internal/objects/common.d.ts +1 -1
- package/lib/_internal/objects/configuration.d.ts +3 -1
- package/lib/_internal/objects/conversation-export.d.ts +1 -1
- package/lib/_internal/objects/conversation-view.d.ts +1 -1
- package/lib/_internal/objects/conversation.d.ts +1 -1
- package/lib/_internal/objects/evaluation.d.ts +1 -1
- package/lib/_internal/objects/event.d.ts +1 -1
- package/lib/_internal/objects/field-mask.d.ts +1 -1
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/message-template.d.ts +1 -1
- package/lib/_internal/objects/message.d.ts +5 -2
- package/lib/_internal/objects/participant.d.ts +1 -1
- package/lib/_internal/objects/ui-components.d.ts +43 -1
- package/lib/_internal/objects/widget.d.ts +1 -1
- package/package.json +3 -3
|
@@ -52,6 +52,7 @@ var ConversationChannel;
|
|
|
52
52
|
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_AI_ASSISTANT"] = 11] = "CONVERSATION_CHANNEL_AI_ASSISTANT";
|
|
53
53
|
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_GOOGLE_CHAT"] = 12] = "CONVERSATION_CHANNEL_GOOGLE_CHAT";
|
|
54
54
|
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_PERSONAL_EMAIL"] = 13] = "CONVERSATION_CHANNEL_PERSONAL_EMAIL";
|
|
55
|
+
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_SYSTEM"] = 14] = "CONVERSATION_CHANNEL_SYSTEM";
|
|
55
56
|
})(ConversationChannel || (ConversationChannel = {}));
|
|
56
57
|
var PlatformLocation;
|
|
57
58
|
(function (PlatformLocation) {
|
|
@@ -72,6 +73,20 @@ var PlatformLocation;
|
|
|
72
73
|
PlatformLocation[PlatformLocation["PLATFORM_LOCATION_WHATSAPP_BUSINESS_APP"] = 14] = "PLATFORM_LOCATION_WHATSAPP_BUSINESS_APP";
|
|
73
74
|
})(PlatformLocation || (PlatformLocation = {}));
|
|
74
75
|
|
|
76
|
+
// *********************************
|
|
77
|
+
// Code generated by sdkgen
|
|
78
|
+
// DO NOT EDIT!.
|
|
79
|
+
//
|
|
80
|
+
// Enums.
|
|
81
|
+
// *********************************
|
|
82
|
+
var UIQuestionFormQuestionQuestionType;
|
|
83
|
+
(function (UIQuestionFormQuestionQuestionType) {
|
|
84
|
+
UIQuestionFormQuestionQuestionType[UIQuestionFormQuestionQuestionType["UNDEFINED"] = 0] = "UNDEFINED";
|
|
85
|
+
UIQuestionFormQuestionQuestionType[UIQuestionFormQuestionQuestionType["TEXT"] = 1] = "TEXT";
|
|
86
|
+
UIQuestionFormQuestionQuestionType[UIQuestionFormQuestionQuestionType["CHOICE"] = 2] = "CHOICE";
|
|
87
|
+
UIQuestionFormQuestionQuestionType[UIQuestionFormQuestionQuestionType["CONFIRM"] = 3] = "CONFIRM";
|
|
88
|
+
})(UIQuestionFormQuestionQuestionType || (UIQuestionFormQuestionQuestionType = {}));
|
|
89
|
+
|
|
75
90
|
// *********************************
|
|
76
91
|
// Code generated by sdkgen
|
|
77
92
|
// DO NOT EDIT!.
|
|
@@ -110,6 +125,9 @@ var UIComponentType;
|
|
|
110
125
|
(function (UIComponentType) {
|
|
111
126
|
UIComponentType[UIComponentType["UI_COMPONENT_TYPE_UNDEFINED"] = 0] = "UI_COMPONENT_TYPE_UNDEFINED";
|
|
112
127
|
UIComponentType[UIComponentType["UI_COMPONENT_TYPE_BUTTON"] = 1] = "UI_COMPONENT_TYPE_BUTTON";
|
|
128
|
+
UIComponentType[UIComponentType["UI_COMPONENT_TYPE_CHECKBOX_GROUP"] = 2] = "UI_COMPONENT_TYPE_CHECKBOX_GROUP";
|
|
129
|
+
UIComponentType[UIComponentType["UI_COMPONENT_TYPE_MARKDOWN_PLAN"] = 3] = "UI_COMPONENT_TYPE_MARKDOWN_PLAN";
|
|
130
|
+
UIComponentType[UIComponentType["UI_COMPONENT_TYPE_QUESTION_FORM"] = 4] = "UI_COMPONENT_TYPE_QUESTION_FORM";
|
|
113
131
|
})(UIComponentType || (UIComponentType = {}));
|
|
114
132
|
|
|
115
133
|
// *********************************
|
|
@@ -188,6 +206,8 @@ var EventType;
|
|
|
188
206
|
EventType[EventType["EVENT_TYPE_PHONE_CALL"] = 6] = "EVENT_TYPE_PHONE_CALL";
|
|
189
207
|
EventType[EventType["EVENT_TYPE_SMS_SUBSCRIBED"] = 7] = "EVENT_TYPE_SMS_SUBSCRIBED";
|
|
190
208
|
EventType[EventType["EVENT_TYPE_DUPLICATE_CONVERSATION"] = 8] = "EVENT_TYPE_DUPLICATE_CONVERSATION";
|
|
209
|
+
EventType[EventType["EVENT_TYPE_NPS_FEEDBACK"] = 9] = "EVENT_TYPE_NPS_FEEDBACK";
|
|
210
|
+
EventType[EventType["EVENT_TYPE_REVIEW_RECEIVED"] = 10] = "EVENT_TYPE_REVIEW_RECEIVED";
|
|
191
211
|
})(EventType || (EventType = {}));
|
|
192
212
|
|
|
193
213
|
// *********************************
|
|
@@ -216,7 +236,14 @@ var AIMode;
|
|
|
216
236
|
AIMode[AIMode["AI_MODE_FAST"] = 1] = "AI_MODE_FAST";
|
|
217
237
|
AIMode[AIMode["AI_MODE_THINKING"] = 2] = "AI_MODE_THINKING";
|
|
218
238
|
AIMode[AIMode["AI_MODE_DEEP_RESEARCH"] = 3] = "AI_MODE_DEEP_RESEARCH";
|
|
239
|
+
AIMode[AIMode["AI_MODE_GENERATION"] = 4] = "AI_MODE_GENERATION";
|
|
219
240
|
})(AIMode || (AIMode = {}));
|
|
241
|
+
var CommunicationChannelType;
|
|
242
|
+
(function (CommunicationChannelType) {
|
|
243
|
+
CommunicationChannelType[CommunicationChannelType["COMMUNICATION_CHANNEL_TYPE_UNDEFINED"] = 0] = "COMMUNICATION_CHANNEL_TYPE_UNDEFINED";
|
|
244
|
+
CommunicationChannelType[CommunicationChannelType["COMMUNICATION_CHANNEL_TYPE_SMS"] = 1] = "COMMUNICATION_CHANNEL_TYPE_SMS";
|
|
245
|
+
CommunicationChannelType[CommunicationChannelType["COMMUNICATION_CHANNEL_TYPE_VOICE"] = 2] = "COMMUNICATION_CHANNEL_TYPE_VOICE";
|
|
246
|
+
})(CommunicationChannelType || (CommunicationChannelType = {}));
|
|
220
247
|
var GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType;
|
|
221
248
|
(function (GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType) {
|
|
222
249
|
GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType[GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType["ENTITY_TYPE_UNDEFINED"] = 0] = "ENTITY_TYPE_UNDEFINED";
|
|
@@ -829,6 +856,38 @@ function enumStringToValue$d(enumRef, value) {
|
|
|
829
856
|
}
|
|
830
857
|
return enumRef[value];
|
|
831
858
|
}
|
|
859
|
+
class UIQuestionFormQuestion {
|
|
860
|
+
type;
|
|
861
|
+
text;
|
|
862
|
+
options;
|
|
863
|
+
static fromProto(proto) {
|
|
864
|
+
let m = new UIQuestionFormQuestion();
|
|
865
|
+
m = Object.assign(m, proto);
|
|
866
|
+
if (proto.type) {
|
|
867
|
+
m.type = enumStringToValue$d(UIQuestionFormQuestionQuestionType, proto.type);
|
|
868
|
+
}
|
|
869
|
+
return m;
|
|
870
|
+
}
|
|
871
|
+
constructor(kwargs) {
|
|
872
|
+
if (!kwargs) {
|
|
873
|
+
return;
|
|
874
|
+
}
|
|
875
|
+
Object.assign(this, kwargs);
|
|
876
|
+
}
|
|
877
|
+
toApiJson() {
|
|
878
|
+
const toReturn = {};
|
|
879
|
+
if (typeof this.type !== 'undefined') {
|
|
880
|
+
toReturn['type'] = this.type;
|
|
881
|
+
}
|
|
882
|
+
if (typeof this.text !== 'undefined') {
|
|
883
|
+
toReturn['text'] = this.text;
|
|
884
|
+
}
|
|
885
|
+
if (typeof this.options !== 'undefined') {
|
|
886
|
+
toReturn['options'] = this.options;
|
|
887
|
+
}
|
|
888
|
+
return toReturn;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
832
891
|
class UIButton {
|
|
833
892
|
label;
|
|
834
893
|
id;
|
|
@@ -869,6 +928,135 @@ class UIButton {
|
|
|
869
928
|
return toReturn;
|
|
870
929
|
}
|
|
871
930
|
}
|
|
931
|
+
class UICheckbox {
|
|
932
|
+
id;
|
|
933
|
+
labelText;
|
|
934
|
+
description;
|
|
935
|
+
labelTranslationKey;
|
|
936
|
+
static fromProto(proto) {
|
|
937
|
+
let m = new UICheckbox();
|
|
938
|
+
m = Object.assign(m, proto);
|
|
939
|
+
return m;
|
|
940
|
+
}
|
|
941
|
+
constructor(kwargs) {
|
|
942
|
+
if (!kwargs) {
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
Object.assign(this, kwargs);
|
|
946
|
+
}
|
|
947
|
+
toApiJson() {
|
|
948
|
+
const toReturn = {};
|
|
949
|
+
if (typeof this.id !== 'undefined') {
|
|
950
|
+
toReturn['id'] = this.id;
|
|
951
|
+
}
|
|
952
|
+
if (typeof this.labelText !== 'undefined') {
|
|
953
|
+
toReturn['labelText'] = this.labelText;
|
|
954
|
+
}
|
|
955
|
+
if (typeof this.description !== 'undefined') {
|
|
956
|
+
toReturn['description'] = this.description;
|
|
957
|
+
}
|
|
958
|
+
if (typeof this.labelTranslationKey !== 'undefined') {
|
|
959
|
+
toReturn['labelTranslationKey'] = this.labelTranslationKey;
|
|
960
|
+
}
|
|
961
|
+
return toReturn;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
class UICheckboxGroup {
|
|
965
|
+
id;
|
|
966
|
+
title;
|
|
967
|
+
description;
|
|
968
|
+
checkboxes;
|
|
969
|
+
submitLabel;
|
|
970
|
+
submittedAt;
|
|
971
|
+
selectedCheckboxIds;
|
|
972
|
+
static fromProto(proto) {
|
|
973
|
+
let m = new UICheckboxGroup();
|
|
974
|
+
m = Object.assign(m, proto);
|
|
975
|
+
if (proto.checkboxes) {
|
|
976
|
+
m.checkboxes = proto.checkboxes.map(UICheckbox.fromProto);
|
|
977
|
+
}
|
|
978
|
+
if (proto.submittedAt) {
|
|
979
|
+
m.submittedAt = new Date(proto.submittedAt);
|
|
980
|
+
}
|
|
981
|
+
return m;
|
|
982
|
+
}
|
|
983
|
+
constructor(kwargs) {
|
|
984
|
+
if (!kwargs) {
|
|
985
|
+
return;
|
|
986
|
+
}
|
|
987
|
+
Object.assign(this, kwargs);
|
|
988
|
+
}
|
|
989
|
+
toApiJson() {
|
|
990
|
+
const toReturn = {};
|
|
991
|
+
if (typeof this.id !== 'undefined') {
|
|
992
|
+
toReturn['id'] = this.id;
|
|
993
|
+
}
|
|
994
|
+
if (typeof this.title !== 'undefined') {
|
|
995
|
+
toReturn['title'] = this.title;
|
|
996
|
+
}
|
|
997
|
+
if (typeof this.description !== 'undefined') {
|
|
998
|
+
toReturn['description'] = this.description;
|
|
999
|
+
}
|
|
1000
|
+
if (typeof this.checkboxes !== 'undefined' && this.checkboxes !== null) {
|
|
1001
|
+
toReturn['checkboxes'] = 'toApiJson' in this.checkboxes ? this.checkboxes.toApiJson() : this.checkboxes;
|
|
1002
|
+
}
|
|
1003
|
+
if (typeof this.submitLabel !== 'undefined') {
|
|
1004
|
+
toReturn['submitLabel'] = this.submitLabel;
|
|
1005
|
+
}
|
|
1006
|
+
if (typeof this.submittedAt !== 'undefined' && this.submittedAt !== null) {
|
|
1007
|
+
toReturn['submittedAt'] = 'toApiJson' in this.submittedAt ? this.submittedAt.toApiJson() : this.submittedAt;
|
|
1008
|
+
}
|
|
1009
|
+
if (typeof this.selectedCheckboxIds !== 'undefined') {
|
|
1010
|
+
toReturn['selectedCheckboxIds'] = this.selectedCheckboxIds;
|
|
1011
|
+
}
|
|
1012
|
+
return toReturn;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
class UIMarkdownPlan {
|
|
1016
|
+
plan;
|
|
1017
|
+
static fromProto(proto) {
|
|
1018
|
+
let m = new UIMarkdownPlan();
|
|
1019
|
+
m = Object.assign(m, proto);
|
|
1020
|
+
return m;
|
|
1021
|
+
}
|
|
1022
|
+
constructor(kwargs) {
|
|
1023
|
+
if (!kwargs) {
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
Object.assign(this, kwargs);
|
|
1027
|
+
}
|
|
1028
|
+
toApiJson() {
|
|
1029
|
+
const toReturn = {};
|
|
1030
|
+
if (typeof this.plan !== 'undefined') {
|
|
1031
|
+
toReturn['plan'] = this.plan;
|
|
1032
|
+
}
|
|
1033
|
+
return toReturn;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
class UIQuestionForm {
|
|
1037
|
+
questions;
|
|
1038
|
+
static fromProto(proto) {
|
|
1039
|
+
let m = new UIQuestionForm();
|
|
1040
|
+
m = Object.assign(m, proto);
|
|
1041
|
+
if (proto.questions) {
|
|
1042
|
+
m.questions = proto.questions.map(UIQuestionFormQuestion.fromProto);
|
|
1043
|
+
}
|
|
1044
|
+
return m;
|
|
1045
|
+
}
|
|
1046
|
+
constructor(kwargs) {
|
|
1047
|
+
if (!kwargs) {
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
Object.assign(this, kwargs);
|
|
1051
|
+
}
|
|
1052
|
+
toApiJson() {
|
|
1053
|
+
const toReturn = {};
|
|
1054
|
+
if (typeof this.questions !== 'undefined' && this.questions !== null) {
|
|
1055
|
+
toReturn['questions'] = 'toApiJson' in this.questions ? this.questions.toApiJson() : this.questions;
|
|
1056
|
+
}
|
|
1057
|
+
return toReturn;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
872
1060
|
|
|
873
1061
|
function enumStringToValue$c(enumRef, value) {
|
|
874
1062
|
if (typeof value === 'number') {
|
|
@@ -1130,6 +1318,9 @@ class SendStatus {
|
|
|
1130
1318
|
class UIComponent {
|
|
1131
1319
|
type;
|
|
1132
1320
|
button;
|
|
1321
|
+
checkboxGroup;
|
|
1322
|
+
markdownPlan;
|
|
1323
|
+
questionForm;
|
|
1133
1324
|
static fromProto(proto) {
|
|
1134
1325
|
let m = new UIComponent();
|
|
1135
1326
|
m = Object.assign(m, proto);
|
|
@@ -1139,6 +1330,15 @@ class UIComponent {
|
|
|
1139
1330
|
if (proto.button) {
|
|
1140
1331
|
m.button = UIButton.fromProto(proto.button);
|
|
1141
1332
|
}
|
|
1333
|
+
if (proto.checkboxGroup) {
|
|
1334
|
+
m.checkboxGroup = UICheckboxGroup.fromProto(proto.checkboxGroup);
|
|
1335
|
+
}
|
|
1336
|
+
if (proto.markdownPlan) {
|
|
1337
|
+
m.markdownPlan = UIMarkdownPlan.fromProto(proto.markdownPlan);
|
|
1338
|
+
}
|
|
1339
|
+
if (proto.questionForm) {
|
|
1340
|
+
m.questionForm = UIQuestionForm.fromProto(proto.questionForm);
|
|
1341
|
+
}
|
|
1142
1342
|
return m;
|
|
1143
1343
|
}
|
|
1144
1344
|
constructor(kwargs) {
|
|
@@ -1155,6 +1355,15 @@ class UIComponent {
|
|
|
1155
1355
|
if (typeof this.button !== 'undefined' && this.button !== null) {
|
|
1156
1356
|
toReturn['button'] = 'toApiJson' in this.button ? this.button.toApiJson() : this.button;
|
|
1157
1357
|
}
|
|
1358
|
+
if (typeof this.checkboxGroup !== 'undefined' && this.checkboxGroup !== null) {
|
|
1359
|
+
toReturn['checkboxGroup'] = 'toApiJson' in this.checkboxGroup ? this.checkboxGroup.toApiJson() : this.checkboxGroup;
|
|
1360
|
+
}
|
|
1361
|
+
if (typeof this.markdownPlan !== 'undefined' && this.markdownPlan !== null) {
|
|
1362
|
+
toReturn['markdownPlan'] = 'toApiJson' in this.markdownPlan ? this.markdownPlan.toApiJson() : this.markdownPlan;
|
|
1363
|
+
}
|
|
1364
|
+
if (typeof this.questionForm !== 'undefined' && this.questionForm !== null) {
|
|
1365
|
+
toReturn['questionForm'] = 'toApiJson' in this.questionForm ? this.questionForm.toApiJson() : this.questionForm;
|
|
1366
|
+
}
|
|
1158
1367
|
return toReturn;
|
|
1159
1368
|
}
|
|
1160
1369
|
}
|
|
@@ -1479,6 +1688,7 @@ class Configuration {
|
|
|
1479
1688
|
aiVoiceEnabled;
|
|
1480
1689
|
aiEmailEnabled;
|
|
1481
1690
|
aiPlatformEnabled;
|
|
1691
|
+
emailEnabled;
|
|
1482
1692
|
static fromProto(proto) {
|
|
1483
1693
|
let m = new Configuration();
|
|
1484
1694
|
m = Object.assign(m, proto);
|
|
@@ -1555,6 +1765,9 @@ class Configuration {
|
|
|
1555
1765
|
if (typeof this.aiPlatformEnabled !== 'undefined') {
|
|
1556
1766
|
toReturn['aiPlatformEnabled'] = this.aiPlatformEnabled;
|
|
1557
1767
|
}
|
|
1768
|
+
if (typeof this.emailEnabled !== 'undefined') {
|
|
1769
|
+
toReturn['emailEnabled'] = this.emailEnabled;
|
|
1770
|
+
}
|
|
1558
1771
|
return toReturn;
|
|
1559
1772
|
}
|
|
1560
1773
|
}
|
|
@@ -1573,6 +1786,7 @@ class ProductFeature {
|
|
|
1573
1786
|
aiInstagramProductActive;
|
|
1574
1787
|
aiWhatsappProductActive;
|
|
1575
1788
|
aiPlatformEnabled;
|
|
1789
|
+
emailEnabled;
|
|
1576
1790
|
static fromProto(proto) {
|
|
1577
1791
|
let m = new ProductFeature();
|
|
1578
1792
|
m = Object.assign(m, proto);
|
|
@@ -1628,6 +1842,9 @@ class ProductFeature {
|
|
|
1628
1842
|
if (typeof this.aiPlatformEnabled !== 'undefined') {
|
|
1629
1843
|
toReturn['aiPlatformEnabled'] = this.aiPlatformEnabled;
|
|
1630
1844
|
}
|
|
1845
|
+
if (typeof this.emailEnabled !== 'undefined') {
|
|
1846
|
+
toReturn['emailEnabled'] = this.emailEnabled;
|
|
1847
|
+
}
|
|
1631
1848
|
return toReturn;
|
|
1632
1849
|
}
|
|
1633
1850
|
}
|
|
@@ -2246,6 +2463,52 @@ class AddMultiParticipantsResponse {
|
|
|
2246
2463
|
return toReturn;
|
|
2247
2464
|
}
|
|
2248
2465
|
}
|
|
2466
|
+
class AssignConversationRequest {
|
|
2467
|
+
conversationId;
|
|
2468
|
+
assigneeUserIds;
|
|
2469
|
+
linkToCrmOwner;
|
|
2470
|
+
static fromProto(proto) {
|
|
2471
|
+
let m = new AssignConversationRequest();
|
|
2472
|
+
m = Object.assign(m, proto);
|
|
2473
|
+
return m;
|
|
2474
|
+
}
|
|
2475
|
+
constructor(kwargs) {
|
|
2476
|
+
if (!kwargs) {
|
|
2477
|
+
return;
|
|
2478
|
+
}
|
|
2479
|
+
Object.assign(this, kwargs);
|
|
2480
|
+
}
|
|
2481
|
+
toApiJson() {
|
|
2482
|
+
const toReturn = {};
|
|
2483
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
2484
|
+
toReturn['conversationId'] = this.conversationId;
|
|
2485
|
+
}
|
|
2486
|
+
if (typeof this.assigneeUserIds !== 'undefined') {
|
|
2487
|
+
toReturn['assigneeUserIds'] = this.assigneeUserIds;
|
|
2488
|
+
}
|
|
2489
|
+
if (typeof this.linkToCrmOwner !== 'undefined') {
|
|
2490
|
+
toReturn['linkToCrmOwner'] = this.linkToCrmOwner;
|
|
2491
|
+
}
|
|
2492
|
+
return toReturn;
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
class AssignConversationResponse {
|
|
2496
|
+
static fromProto(proto) {
|
|
2497
|
+
let m = new AssignConversationResponse();
|
|
2498
|
+
m = Object.assign(m, proto);
|
|
2499
|
+
return m;
|
|
2500
|
+
}
|
|
2501
|
+
constructor(kwargs) {
|
|
2502
|
+
if (!kwargs) {
|
|
2503
|
+
return;
|
|
2504
|
+
}
|
|
2505
|
+
Object.assign(this, kwargs);
|
|
2506
|
+
}
|
|
2507
|
+
toApiJson() {
|
|
2508
|
+
const toReturn = {};
|
|
2509
|
+
return toReturn;
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2249
2512
|
class CancelAIResponderRequest {
|
|
2250
2513
|
conversationId;
|
|
2251
2514
|
static fromProto(proto) {
|
|
@@ -2363,6 +2626,34 @@ class ChannelStatus {
|
|
|
2363
2626
|
return toReturn;
|
|
2364
2627
|
}
|
|
2365
2628
|
}
|
|
2629
|
+
class CommunicationInfo {
|
|
2630
|
+
channel;
|
|
2631
|
+
identifier;
|
|
2632
|
+
static fromProto(proto) {
|
|
2633
|
+
let m = new CommunicationInfo();
|
|
2634
|
+
m = Object.assign(m, proto);
|
|
2635
|
+
if (proto.channel) {
|
|
2636
|
+
m.channel = enumStringToValue(CommunicationChannelType, proto.channel);
|
|
2637
|
+
}
|
|
2638
|
+
return m;
|
|
2639
|
+
}
|
|
2640
|
+
constructor(kwargs) {
|
|
2641
|
+
if (!kwargs) {
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
Object.assign(this, kwargs);
|
|
2645
|
+
}
|
|
2646
|
+
toApiJson() {
|
|
2647
|
+
const toReturn = {};
|
|
2648
|
+
if (typeof this.channel !== 'undefined') {
|
|
2649
|
+
toReturn['channel'] = this.channel;
|
|
2650
|
+
}
|
|
2651
|
+
if (typeof this.identifier !== 'undefined') {
|
|
2652
|
+
toReturn['identifier'] = this.identifier;
|
|
2653
|
+
}
|
|
2654
|
+
return toReturn;
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2366
2657
|
class ConversationMessageCount {
|
|
2367
2658
|
conversationId;
|
|
2368
2659
|
count;
|
|
@@ -2931,12 +3222,15 @@ class DeleteWidgetRequest {
|
|
|
2931
3222
|
return toReturn;
|
|
2932
3223
|
}
|
|
2933
3224
|
}
|
|
2934
|
-
class
|
|
3225
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
2935
3226
|
conversation;
|
|
2936
3227
|
latestMessage;
|
|
2937
3228
|
participants;
|
|
3229
|
+
summary;
|
|
3230
|
+
event;
|
|
3231
|
+
message;
|
|
2938
3232
|
static fromProto(proto) {
|
|
2939
|
-
let m = new
|
|
3233
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
2940
3234
|
m = Object.assign(m, proto);
|
|
2941
3235
|
if (proto.conversation) {
|
|
2942
3236
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2947,6 +3241,12 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2947
3241
|
if (proto.participants) {
|
|
2948
3242
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2949
3243
|
}
|
|
3244
|
+
if (proto.event) {
|
|
3245
|
+
m.event = Event.fromProto(proto.event);
|
|
3246
|
+
}
|
|
3247
|
+
if (proto.message) {
|
|
3248
|
+
m.message = Message.fromProto(proto.message);
|
|
3249
|
+
}
|
|
2950
3250
|
return m;
|
|
2951
3251
|
}
|
|
2952
3252
|
constructor(kwargs) {
|
|
@@ -2966,30 +3266,34 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2966
3266
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2967
3267
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2968
3268
|
}
|
|
3269
|
+
if (typeof this.summary !== 'undefined') {
|
|
3270
|
+
toReturn['summary'] = this.summary;
|
|
3271
|
+
}
|
|
3272
|
+
if (typeof this.event !== 'undefined' && this.event !== null) {
|
|
3273
|
+
toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
|
|
3274
|
+
}
|
|
3275
|
+
if (typeof this.message !== 'undefined' && this.message !== null) {
|
|
3276
|
+
toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
|
|
3277
|
+
}
|
|
2969
3278
|
return toReturn;
|
|
2970
3279
|
}
|
|
2971
3280
|
}
|
|
2972
|
-
class
|
|
3281
|
+
class SearchConversationsResponseDetailedConversation {
|
|
2973
3282
|
conversation;
|
|
3283
|
+
latestMessage;
|
|
2974
3284
|
participants;
|
|
2975
|
-
summary;
|
|
2976
|
-
event;
|
|
2977
|
-
message;
|
|
2978
3285
|
static fromProto(proto) {
|
|
2979
|
-
let m = new
|
|
3286
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
2980
3287
|
m = Object.assign(m, proto);
|
|
2981
3288
|
if (proto.conversation) {
|
|
2982
3289
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
2983
3290
|
}
|
|
3291
|
+
if (proto.latestMessage) {
|
|
3292
|
+
m.latestMessage = Message.fromProto(proto.latestMessage);
|
|
3293
|
+
}
|
|
2984
3294
|
if (proto.participants) {
|
|
2985
3295
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2986
3296
|
}
|
|
2987
|
-
if (proto.event) {
|
|
2988
|
-
m.event = Event.fromProto(proto.event);
|
|
2989
|
-
}
|
|
2990
|
-
if (proto.message) {
|
|
2991
|
-
m.message = Message.fromProto(proto.message);
|
|
2992
|
-
}
|
|
2993
3297
|
return m;
|
|
2994
3298
|
}
|
|
2995
3299
|
constructor(kwargs) {
|
|
@@ -3003,37 +3307,27 @@ class GetMultiConversationDetailsV2ResponseDetailedConversation {
|
|
|
3003
3307
|
if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
|
|
3004
3308
|
toReturn['conversation'] = 'toApiJson' in this.conversation ? this.conversation.toApiJson() : this.conversation;
|
|
3005
3309
|
}
|
|
3310
|
+
if (typeof this.latestMessage !== 'undefined' && this.latestMessage !== null) {
|
|
3311
|
+
toReturn['latestMessage'] = 'toApiJson' in this.latestMessage ? this.latestMessage.toApiJson() : this.latestMessage;
|
|
3312
|
+
}
|
|
3006
3313
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
3007
3314
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
3008
3315
|
}
|
|
3009
|
-
if (typeof this.summary !== 'undefined') {
|
|
3010
|
-
toReturn['summary'] = this.summary;
|
|
3011
|
-
}
|
|
3012
|
-
if (typeof this.event !== 'undefined' && this.event !== null) {
|
|
3013
|
-
toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
|
|
3014
|
-
}
|
|
3015
|
-
if (typeof this.message !== 'undefined' && this.message !== null) {
|
|
3016
|
-
toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
|
|
3017
|
-
}
|
|
3018
3316
|
return toReturn;
|
|
3019
3317
|
}
|
|
3020
3318
|
}
|
|
3021
|
-
class
|
|
3319
|
+
class GetMultiConversationDetailsV2ResponseDetailedConversation {
|
|
3022
3320
|
conversation;
|
|
3023
|
-
latestMessage;
|
|
3024
3321
|
participants;
|
|
3025
3322
|
summary;
|
|
3026
3323
|
event;
|
|
3027
3324
|
message;
|
|
3028
3325
|
static fromProto(proto) {
|
|
3029
|
-
let m = new
|
|
3326
|
+
let m = new GetMultiConversationDetailsV2ResponseDetailedConversation();
|
|
3030
3327
|
m = Object.assign(m, proto);
|
|
3031
3328
|
if (proto.conversation) {
|
|
3032
3329
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
3033
3330
|
}
|
|
3034
|
-
if (proto.latestMessage) {
|
|
3035
|
-
m.latestMessage = Message.fromProto(proto.latestMessage);
|
|
3036
|
-
}
|
|
3037
3331
|
if (proto.participants) {
|
|
3038
3332
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
3039
3333
|
}
|
|
@@ -3056,9 +3350,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
3056
3350
|
if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
|
|
3057
3351
|
toReturn['conversation'] = 'toApiJson' in this.conversation ? this.conversation.toApiJson() : this.conversation;
|
|
3058
3352
|
}
|
|
3059
|
-
if (typeof this.latestMessage !== 'undefined' && this.latestMessage !== null) {
|
|
3060
|
-
toReturn['latestMessage'] = 'toApiJson' in this.latestMessage ? this.latestMessage.toApiJson() : this.latestMessage;
|
|
3061
|
-
}
|
|
3062
3353
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
3063
3354
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
3064
3355
|
}
|
|
@@ -3163,37 +3454,6 @@ class ExportConversationsResponse {
|
|
|
3163
3454
|
return toReturn;
|
|
3164
3455
|
}
|
|
3165
3456
|
}
|
|
3166
|
-
class ListConversationExportsRequestFilterOptions {
|
|
3167
|
-
platformLocation;
|
|
3168
|
-
subjectParticipant;
|
|
3169
|
-
static fromProto(proto) {
|
|
3170
|
-
let m = new ListConversationExportsRequestFilterOptions();
|
|
3171
|
-
m = Object.assign(m, proto);
|
|
3172
|
-
if (proto.platformLocation) {
|
|
3173
|
-
m.platformLocation = enumStringToValue(PlatformLocation, proto.platformLocation);
|
|
3174
|
-
}
|
|
3175
|
-
if (proto.subjectParticipant) {
|
|
3176
|
-
m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
|
|
3177
|
-
}
|
|
3178
|
-
return m;
|
|
3179
|
-
}
|
|
3180
|
-
constructor(kwargs) {
|
|
3181
|
-
if (!kwargs) {
|
|
3182
|
-
return;
|
|
3183
|
-
}
|
|
3184
|
-
Object.assign(this, kwargs);
|
|
3185
|
-
}
|
|
3186
|
-
toApiJson() {
|
|
3187
|
-
const toReturn = {};
|
|
3188
|
-
if (typeof this.platformLocation !== 'undefined') {
|
|
3189
|
-
toReturn['platformLocation'] = this.platformLocation;
|
|
3190
|
-
}
|
|
3191
|
-
if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
|
|
3192
|
-
toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
|
|
3193
|
-
}
|
|
3194
|
-
return toReturn;
|
|
3195
|
-
}
|
|
3196
|
-
}
|
|
3197
3457
|
class ExportConversationsRequestFilterOptions {
|
|
3198
3458
|
subjectParticipant;
|
|
3199
3459
|
startTime;
|
|
@@ -3239,6 +3499,37 @@ class ExportConversationsRequestFilterOptions {
|
|
|
3239
3499
|
return toReturn;
|
|
3240
3500
|
}
|
|
3241
3501
|
}
|
|
3502
|
+
class ListConversationExportsRequestFilterOptions {
|
|
3503
|
+
platformLocation;
|
|
3504
|
+
subjectParticipant;
|
|
3505
|
+
static fromProto(proto) {
|
|
3506
|
+
let m = new ListConversationExportsRequestFilterOptions();
|
|
3507
|
+
m = Object.assign(m, proto);
|
|
3508
|
+
if (proto.platformLocation) {
|
|
3509
|
+
m.platformLocation = enumStringToValue(PlatformLocation, proto.platformLocation);
|
|
3510
|
+
}
|
|
3511
|
+
if (proto.subjectParticipant) {
|
|
3512
|
+
m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
|
|
3513
|
+
}
|
|
3514
|
+
return m;
|
|
3515
|
+
}
|
|
3516
|
+
constructor(kwargs) {
|
|
3517
|
+
if (!kwargs) {
|
|
3518
|
+
return;
|
|
3519
|
+
}
|
|
3520
|
+
Object.assign(this, kwargs);
|
|
3521
|
+
}
|
|
3522
|
+
toApiJson() {
|
|
3523
|
+
const toReturn = {};
|
|
3524
|
+
if (typeof this.platformLocation !== 'undefined') {
|
|
3525
|
+
toReturn['platformLocation'] = this.platformLocation;
|
|
3526
|
+
}
|
|
3527
|
+
if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
|
|
3528
|
+
toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
|
|
3529
|
+
}
|
|
3530
|
+
return toReturn;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3242
3533
|
class GetAvailableChannelsForConversationRequest {
|
|
3243
3534
|
conversationId;
|
|
3244
3535
|
static fromProto(proto) {
|
|
@@ -4449,6 +4740,44 @@ class GetMessageTemplateRequestHydrationOptions {
|
|
|
4449
4740
|
return toReturn;
|
|
4450
4741
|
}
|
|
4451
4742
|
}
|
|
4743
|
+
class ListConversationsResponseInboxConversation {
|
|
4744
|
+
conversation;
|
|
4745
|
+
latestMessage;
|
|
4746
|
+
participants;
|
|
4747
|
+
static fromProto(proto) {
|
|
4748
|
+
let m = new ListConversationsResponseInboxConversation();
|
|
4749
|
+
m = Object.assign(m, proto);
|
|
4750
|
+
if (proto.conversation) {
|
|
4751
|
+
m.conversation = Conversation.fromProto(proto.conversation);
|
|
4752
|
+
}
|
|
4753
|
+
if (proto.latestMessage) {
|
|
4754
|
+
m.latestMessage = Message.fromProto(proto.latestMessage);
|
|
4755
|
+
}
|
|
4756
|
+
if (proto.participants) {
|
|
4757
|
+
m.participants = proto.participants.map(Participant.fromProto);
|
|
4758
|
+
}
|
|
4759
|
+
return m;
|
|
4760
|
+
}
|
|
4761
|
+
constructor(kwargs) {
|
|
4762
|
+
if (!kwargs) {
|
|
4763
|
+
return;
|
|
4764
|
+
}
|
|
4765
|
+
Object.assign(this, kwargs);
|
|
4766
|
+
}
|
|
4767
|
+
toApiJson() {
|
|
4768
|
+
const toReturn = {};
|
|
4769
|
+
if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
|
|
4770
|
+
toReturn['conversation'] = 'toApiJson' in this.conversation ? this.conversation.toApiJson() : this.conversation;
|
|
4771
|
+
}
|
|
4772
|
+
if (typeof this.latestMessage !== 'undefined' && this.latestMessage !== null) {
|
|
4773
|
+
toReturn['latestMessage'] = 'toApiJson' in this.latestMessage ? this.latestMessage.toApiJson() : this.latestMessage;
|
|
4774
|
+
}
|
|
4775
|
+
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
4776
|
+
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
4777
|
+
}
|
|
4778
|
+
return toReturn;
|
|
4779
|
+
}
|
|
4780
|
+
}
|
|
4452
4781
|
class InjectMessageRequest {
|
|
4453
4782
|
messageId;
|
|
4454
4783
|
body;
|
|
@@ -4527,6 +4856,51 @@ class InjectMessageRequest {
|
|
|
4527
4856
|
return toReturn;
|
|
4528
4857
|
}
|
|
4529
4858
|
}
|
|
4859
|
+
class ListCommunicationChannelsInfoRequest {
|
|
4860
|
+
accountGroupId;
|
|
4861
|
+
static fromProto(proto) {
|
|
4862
|
+
let m = new ListCommunicationChannelsInfoRequest();
|
|
4863
|
+
m = Object.assign(m, proto);
|
|
4864
|
+
return m;
|
|
4865
|
+
}
|
|
4866
|
+
constructor(kwargs) {
|
|
4867
|
+
if (!kwargs) {
|
|
4868
|
+
return;
|
|
4869
|
+
}
|
|
4870
|
+
Object.assign(this, kwargs);
|
|
4871
|
+
}
|
|
4872
|
+
toApiJson() {
|
|
4873
|
+
const toReturn = {};
|
|
4874
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
4875
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
4876
|
+
}
|
|
4877
|
+
return toReturn;
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
class ListCommunicationChannelsInfoResponse {
|
|
4881
|
+
communicationInfo;
|
|
4882
|
+
static fromProto(proto) {
|
|
4883
|
+
let m = new ListCommunicationChannelsInfoResponse();
|
|
4884
|
+
m = Object.assign(m, proto);
|
|
4885
|
+
if (proto.communicationInfo) {
|
|
4886
|
+
m.communicationInfo = proto.communicationInfo.map(CommunicationInfo.fromProto);
|
|
4887
|
+
}
|
|
4888
|
+
return m;
|
|
4889
|
+
}
|
|
4890
|
+
constructor(kwargs) {
|
|
4891
|
+
if (!kwargs) {
|
|
4892
|
+
return;
|
|
4893
|
+
}
|
|
4894
|
+
Object.assign(this, kwargs);
|
|
4895
|
+
}
|
|
4896
|
+
toApiJson() {
|
|
4897
|
+
const toReturn = {};
|
|
4898
|
+
if (typeof this.communicationInfo !== 'undefined' && this.communicationInfo !== null) {
|
|
4899
|
+
toReturn['communicationInfo'] = 'toApiJson' in this.communicationInfo ? this.communicationInfo.toApiJson() : this.communicationInfo;
|
|
4900
|
+
}
|
|
4901
|
+
return toReturn;
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4530
4904
|
class ListConversationExportsRequest {
|
|
4531
4905
|
filterOptions;
|
|
4532
4906
|
pagingOptions;
|
|
@@ -4589,6 +4963,124 @@ class ListConversationExportsResponse {
|
|
|
4589
4963
|
return toReturn;
|
|
4590
4964
|
}
|
|
4591
4965
|
}
|
|
4966
|
+
class ListConversationsFilters {
|
|
4967
|
+
channels;
|
|
4968
|
+
isOpen;
|
|
4969
|
+
unreadOnly;
|
|
4970
|
+
awaitingResponseOnly;
|
|
4971
|
+
isAnonymous;
|
|
4972
|
+
assigneeUserId;
|
|
4973
|
+
static fromProto(proto) {
|
|
4974
|
+
let m = new ListConversationsFilters();
|
|
4975
|
+
m = Object.assign(m, proto);
|
|
4976
|
+
if (proto.channels) {
|
|
4977
|
+
m.channels = proto.channels.map((v) => enumStringToValue(ConversationChannel, v));
|
|
4978
|
+
}
|
|
4979
|
+
return m;
|
|
4980
|
+
}
|
|
4981
|
+
constructor(kwargs) {
|
|
4982
|
+
if (!kwargs) {
|
|
4983
|
+
return;
|
|
4984
|
+
}
|
|
4985
|
+
Object.assign(this, kwargs);
|
|
4986
|
+
}
|
|
4987
|
+
toApiJson() {
|
|
4988
|
+
const toReturn = {};
|
|
4989
|
+
if (typeof this.channels !== 'undefined') {
|
|
4990
|
+
toReturn['channels'] = this.channels;
|
|
4991
|
+
}
|
|
4992
|
+
if (typeof this.isOpen !== 'undefined') {
|
|
4993
|
+
toReturn['isOpen'] = this.isOpen;
|
|
4994
|
+
}
|
|
4995
|
+
if (typeof this.unreadOnly !== 'undefined') {
|
|
4996
|
+
toReturn['unreadOnly'] = this.unreadOnly;
|
|
4997
|
+
}
|
|
4998
|
+
if (typeof this.awaitingResponseOnly !== 'undefined') {
|
|
4999
|
+
toReturn['awaitingResponseOnly'] = this.awaitingResponseOnly;
|
|
5000
|
+
}
|
|
5001
|
+
if (typeof this.isAnonymous !== 'undefined') {
|
|
5002
|
+
toReturn['isAnonymous'] = this.isAnonymous;
|
|
5003
|
+
}
|
|
5004
|
+
if (typeof this.assigneeUserId !== 'undefined') {
|
|
5005
|
+
toReturn['assigneeUserId'] = this.assigneeUserId;
|
|
5006
|
+
}
|
|
5007
|
+
return toReturn;
|
|
5008
|
+
}
|
|
5009
|
+
}
|
|
5010
|
+
class ListConversationsRequest {
|
|
5011
|
+
accountGroupId;
|
|
5012
|
+
participantId;
|
|
5013
|
+
pagingOptions;
|
|
5014
|
+
filters;
|
|
5015
|
+
namespace;
|
|
5016
|
+
static fromProto(proto) {
|
|
5017
|
+
let m = new ListConversationsRequest();
|
|
5018
|
+
m = Object.assign(m, proto);
|
|
5019
|
+
if (proto.pagingOptions) {
|
|
5020
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
5021
|
+
}
|
|
5022
|
+
if (proto.filters) {
|
|
5023
|
+
m.filters = ListConversationsFilters.fromProto(proto.filters);
|
|
5024
|
+
}
|
|
5025
|
+
return m;
|
|
5026
|
+
}
|
|
5027
|
+
constructor(kwargs) {
|
|
5028
|
+
if (!kwargs) {
|
|
5029
|
+
return;
|
|
5030
|
+
}
|
|
5031
|
+
Object.assign(this, kwargs);
|
|
5032
|
+
}
|
|
5033
|
+
toApiJson() {
|
|
5034
|
+
const toReturn = {};
|
|
5035
|
+
if (typeof this.accountGroupId !== 'undefined') {
|
|
5036
|
+
toReturn['accountGroupId'] = this.accountGroupId;
|
|
5037
|
+
}
|
|
5038
|
+
if (typeof this.participantId !== 'undefined') {
|
|
5039
|
+
toReturn['participantId'] = this.participantId;
|
|
5040
|
+
}
|
|
5041
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
5042
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
5043
|
+
}
|
|
5044
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
5045
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
5046
|
+
}
|
|
5047
|
+
if (typeof this.namespace !== 'undefined') {
|
|
5048
|
+
toReturn['namespace'] = this.namespace;
|
|
5049
|
+
}
|
|
5050
|
+
return toReturn;
|
|
5051
|
+
}
|
|
5052
|
+
}
|
|
5053
|
+
class ListConversationsResponse {
|
|
5054
|
+
conversations;
|
|
5055
|
+
pagingMetadata;
|
|
5056
|
+
static fromProto(proto) {
|
|
5057
|
+
let m = new ListConversationsResponse();
|
|
5058
|
+
m = Object.assign(m, proto);
|
|
5059
|
+
if (proto.conversations) {
|
|
5060
|
+
m.conversations = proto.conversations.map(ListConversationsResponseInboxConversation.fromProto);
|
|
5061
|
+
}
|
|
5062
|
+
if (proto.pagingMetadata) {
|
|
5063
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
5064
|
+
}
|
|
5065
|
+
return m;
|
|
5066
|
+
}
|
|
5067
|
+
constructor(kwargs) {
|
|
5068
|
+
if (!kwargs) {
|
|
5069
|
+
return;
|
|
5070
|
+
}
|
|
5071
|
+
Object.assign(this, kwargs);
|
|
5072
|
+
}
|
|
5073
|
+
toApiJson() {
|
|
5074
|
+
const toReturn = {};
|
|
5075
|
+
if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
|
|
5076
|
+
toReturn['conversations'] = 'toApiJson' in this.conversations ? this.conversations.toApiJson() : this.conversations;
|
|
5077
|
+
}
|
|
5078
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
5079
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
5080
|
+
}
|
|
5081
|
+
return toReturn;
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
4592
5084
|
class ListMessageTemplateRequest {
|
|
4593
5085
|
subjectParticipant;
|
|
4594
5086
|
pagingOptions;
|
|
@@ -5176,11 +5668,11 @@ class Metadata {
|
|
|
5176
5668
|
return toReturn;
|
|
5177
5669
|
}
|
|
5178
5670
|
}
|
|
5179
|
-
class
|
|
5671
|
+
class ReceiveMessageRequestMetadataEntry {
|
|
5180
5672
|
key;
|
|
5181
5673
|
value;
|
|
5182
5674
|
static fromProto(proto) {
|
|
5183
|
-
let m = new
|
|
5675
|
+
let m = new ReceiveMessageRequestMetadataEntry();
|
|
5184
5676
|
m = Object.assign(m, proto);
|
|
5185
5677
|
return m;
|
|
5186
5678
|
}
|
|
@@ -5201,11 +5693,11 @@ class InjectMessageRequestMetadataEntry {
|
|
|
5201
5693
|
return toReturn;
|
|
5202
5694
|
}
|
|
5203
5695
|
}
|
|
5204
|
-
class
|
|
5696
|
+
class InjectMessageRequestMetadataEntry {
|
|
5205
5697
|
key;
|
|
5206
5698
|
value;
|
|
5207
5699
|
static fromProto(proto) {
|
|
5208
|
-
let m = new
|
|
5700
|
+
let m = new InjectMessageRequestMetadataEntry();
|
|
5209
5701
|
m = Object.assign(m, proto);
|
|
5210
5702
|
return m;
|
|
5211
5703
|
}
|
|
@@ -6608,6 +7100,21 @@ class ConversationApiService {
|
|
|
6608
7100
|
return this.http.post(this._host + "/conversation.v1.ConversationService/ListConversationExports", request.toApiJson(), this.apiOptions())
|
|
6609
7101
|
.pipe(map(resp => ListConversationExportsResponse.fromProto(resp)));
|
|
6610
7102
|
}
|
|
7103
|
+
listCommunicationChannelsInfo(r) {
|
|
7104
|
+
const request = (r.toApiJson) ? r : new ListCommunicationChannelsInfoRequest(r);
|
|
7105
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/ListCommunicationChannelsInfo", request.toApiJson(), this.apiOptions())
|
|
7106
|
+
.pipe(map(resp => ListCommunicationChannelsInfoResponse.fromProto(resp)));
|
|
7107
|
+
}
|
|
7108
|
+
listConversations(r) {
|
|
7109
|
+
const request = (r.toApiJson) ? r : new ListConversationsRequest(r);
|
|
7110
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/ListConversations", request.toApiJson(), this.apiOptions())
|
|
7111
|
+
.pipe(map(resp => ListConversationsResponse.fromProto(resp)));
|
|
7112
|
+
}
|
|
7113
|
+
assignConversation(r) {
|
|
7114
|
+
const request = (r.toApiJson) ? r : new AssignConversationRequest(r);
|
|
7115
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/AssignConversation", request.toApiJson(), this.apiOptions())
|
|
7116
|
+
.pipe(map(resp => AssignConversationResponse.fromProto(resp)));
|
|
7117
|
+
}
|
|
6611
7118
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6612
7119
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
6613
7120
|
}
|
|
@@ -6704,5 +7211,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
6704
7211
|
* Generated bundle index. Do not edit.
|
|
6705
7212
|
*/
|
|
6706
7213
|
|
|
6707
|
-
export { AIConfiguration, AIMode, AIStatus, AISystemMessage, AISystemMessageApiService, AIThought, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CancelAIResponderRequest, 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, GetMultiConversationDetailsOptions, 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 };
|
|
7214
|
+
export { AIConfiguration, AIMode, AIStatus, AISystemMessage, AISystemMessageApiService, AIThought, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, AssignConversationRequest, AssignConversationResponse, CancelAIResponderRequest, CapturedLead, ChannelAvailability, ChannelStatus, CommunicationChannelType, CommunicationInfo, 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, GetMultiConversationDetailsOptions, 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, ListCommunicationChannelsInfoRequest, ListCommunicationChannelsInfoResponse, ListConversationExportsRequest, ListConversationExportsRequestFilterOptions, ListConversationExportsResponse, ListConversationsFilters, ListConversationsRequest, ListConversationsResponse, ListConversationsResponseInboxConversation, 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, UICheckbox, UICheckboxGroup, UIComponent, UIComponentType, UIMarkdownPlan, UIQuestionForm, UIQuestionFormQuestion, UIQuestionFormQuestionQuestionType, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition, WidgetVisit };
|
|
6708
7215
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|