@vendasta/conversation 0.70.0 → 0.72.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 +9 -5
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/event.interface.mjs +8 -0
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/widget.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +71 -13
- package/esm2022/lib/_internal/objects/event.mjs +72 -0
- package/esm2022/lib/_internal/objects/index.mjs +3 -2
- package/esm2022/lib/_internal/objects/widget.mjs +5 -1
- package/fesm2022/vendasta-conversation.mjs +178 -40
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/conversation.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +14 -4
- package/lib/_internal/interfaces/event.interface.d.ts +11 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/widget.interface.d.ts +1 -0
- package/lib/_internal/objects/api.d.ts +24 -8
- package/lib/_internal/objects/event.d.ts +16 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/widget.d.ts +1 -0
- package/package.json +1 -1
|
@@ -181,7 +181,7 @@ var Status;
|
|
|
181
181
|
// Enums Index.
|
|
182
182
|
// *********************************
|
|
183
183
|
|
|
184
|
-
function enumStringToValue$
|
|
184
|
+
function enumStringToValue$c(enumRef, value) {
|
|
185
185
|
if (typeof value === 'number') {
|
|
186
186
|
return value;
|
|
187
187
|
}
|
|
@@ -194,7 +194,7 @@ class NamespaceDetail {
|
|
|
194
194
|
let m = new NamespaceDetail();
|
|
195
195
|
m = Object.assign(m, proto);
|
|
196
196
|
if (proto.participantType) {
|
|
197
|
-
m.participantType = enumStringToValue$
|
|
197
|
+
m.participantType = enumStringToValue$c(GlobalParticipantType, proto.participantType);
|
|
198
198
|
}
|
|
199
199
|
return m;
|
|
200
200
|
}
|
|
@@ -222,7 +222,7 @@ class SubjectParticipant {
|
|
|
222
222
|
let m = new SubjectParticipant();
|
|
223
223
|
m = Object.assign(m, proto);
|
|
224
224
|
if (proto.participantType) {
|
|
225
|
-
m.participantType = enumStringToValue$
|
|
225
|
+
m.participantType = enumStringToValue$c(GlobalParticipantType, proto.participantType);
|
|
226
226
|
}
|
|
227
227
|
return m;
|
|
228
228
|
}
|
|
@@ -244,7 +244,7 @@ class SubjectParticipant {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
function enumStringToValue$
|
|
247
|
+
function enumStringToValue$b(enumRef, value) {
|
|
248
248
|
if (typeof value === 'number') {
|
|
249
249
|
return value;
|
|
250
250
|
}
|
|
@@ -270,7 +270,7 @@ class Conversation {
|
|
|
270
270
|
let m = new Conversation();
|
|
271
271
|
m = Object.assign(m, proto);
|
|
272
272
|
if (proto.channel) {
|
|
273
|
-
m.channel = enumStringToValue$
|
|
273
|
+
m.channel = enumStringToValue$b(ConversationChannel, proto.channel);
|
|
274
274
|
}
|
|
275
275
|
if (proto.created) {
|
|
276
276
|
m.created = new Date(proto.created);
|
|
@@ -285,7 +285,7 @@ class Conversation {
|
|
|
285
285
|
m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
|
|
286
286
|
}
|
|
287
287
|
if (proto.originLocation) {
|
|
288
|
-
m.originLocation = enumStringToValue$
|
|
288
|
+
m.originLocation = enumStringToValue$b(PlatformLocation, proto.originLocation);
|
|
289
289
|
}
|
|
290
290
|
if (proto.lastSeenByParticipant) {
|
|
291
291
|
m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
|
|
@@ -362,7 +362,7 @@ class ConversationKey {
|
|
|
362
362
|
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
363
363
|
}
|
|
364
364
|
if (proto.channel) {
|
|
365
|
-
m.channel = enumStringToValue$
|
|
365
|
+
m.channel = enumStringToValue$b(ConversationChannel, proto.channel);
|
|
366
366
|
}
|
|
367
367
|
return m;
|
|
368
368
|
}
|
|
@@ -415,7 +415,7 @@ class LastSeenByParticipant {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
function enumStringToValue$
|
|
418
|
+
function enumStringToValue$a(enumRef, value) {
|
|
419
419
|
if (typeof value === 'number') {
|
|
420
420
|
return value;
|
|
421
421
|
}
|
|
@@ -466,7 +466,7 @@ class Message {
|
|
|
466
466
|
let m = new Message();
|
|
467
467
|
m = Object.assign(m, proto);
|
|
468
468
|
if (proto.type) {
|
|
469
|
-
m.type = enumStringToValue$
|
|
469
|
+
m.type = enumStringToValue$a(MessageType, proto.type);
|
|
470
470
|
}
|
|
471
471
|
if (proto.created) {
|
|
472
472
|
m.created = new Date(proto.created);
|
|
@@ -481,7 +481,7 @@ class Message {
|
|
|
481
481
|
m.sendStatus = SendStatus.fromProto(proto.sendStatus);
|
|
482
482
|
}
|
|
483
483
|
if (proto.channel) {
|
|
484
|
-
m.channel = enumStringToValue$
|
|
484
|
+
m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
|
|
485
485
|
}
|
|
486
486
|
if (proto.metadata) {
|
|
487
487
|
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
@@ -553,7 +553,7 @@ class ParticipantMessageStatus {
|
|
|
553
553
|
let m = new ParticipantMessageStatus();
|
|
554
554
|
m = Object.assign(m, proto);
|
|
555
555
|
if (proto.status) {
|
|
556
|
-
m.status = enumStringToValue$
|
|
556
|
+
m.status = enumStringToValue$a(MessageStatus, proto.status);
|
|
557
557
|
}
|
|
558
558
|
if (proto.updated) {
|
|
559
559
|
m.updated = new Date(proto.updated);
|
|
@@ -591,7 +591,7 @@ class SendStatus {
|
|
|
591
591
|
let m = new SendStatus();
|
|
592
592
|
m = Object.assign(m, proto);
|
|
593
593
|
if (proto.status) {
|
|
594
|
-
m.status = enumStringToValue$
|
|
594
|
+
m.status = enumStringToValue$a(MessageStatus, proto.status);
|
|
595
595
|
}
|
|
596
596
|
if (proto.created) {
|
|
597
597
|
m.created = new Date(proto.created);
|
|
@@ -619,7 +619,7 @@ class SendStatus {
|
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
function enumStringToValue$
|
|
622
|
+
function enumStringToValue$9(enumRef, value) {
|
|
623
623
|
if (typeof value === 'number') {
|
|
624
624
|
return value;
|
|
625
625
|
}
|
|
@@ -690,10 +690,10 @@ class Participant {
|
|
|
690
690
|
let m = new Participant();
|
|
691
691
|
m = Object.assign(m, proto);
|
|
692
692
|
if (proto.location) {
|
|
693
|
-
m.location = enumStringToValue$
|
|
693
|
+
m.location = enumStringToValue$9(PlatformLocation, proto.location);
|
|
694
694
|
}
|
|
695
695
|
if (proto.channel) {
|
|
696
|
-
m.channel = enumStringToValue$
|
|
696
|
+
m.channel = enumStringToValue$9(ConversationChannel, proto.channel);
|
|
697
697
|
}
|
|
698
698
|
if (proto.created) {
|
|
699
699
|
m.created = new Date(proto.created);
|
|
@@ -705,7 +705,7 @@ class Participant {
|
|
|
705
705
|
m.deleted = new Date(proto.deleted);
|
|
706
706
|
}
|
|
707
707
|
if (proto.participantType) {
|
|
708
|
-
m.participantType = enumStringToValue$
|
|
708
|
+
m.participantType = enumStringToValue$9(ParticipantType, proto.participantType);
|
|
709
709
|
}
|
|
710
710
|
if (proto.address) {
|
|
711
711
|
m.address = Address.fromProto(proto.address);
|
|
@@ -795,13 +795,13 @@ class ParticipantKey {
|
|
|
795
795
|
let m = new ParticipantKey();
|
|
796
796
|
m = Object.assign(m, proto);
|
|
797
797
|
if (proto.location) {
|
|
798
|
-
m.location = enumStringToValue$
|
|
798
|
+
m.location = enumStringToValue$9(PlatformLocation, proto.location);
|
|
799
799
|
}
|
|
800
800
|
if (proto.channels) {
|
|
801
|
-
m.channels = proto.channels.map((v) => enumStringToValue$
|
|
801
|
+
m.channels = proto.channels.map((v) => enumStringToValue$9(ConversationChannel, v));
|
|
802
802
|
}
|
|
803
803
|
if (proto.participantType) {
|
|
804
|
-
m.participantType = enumStringToValue$
|
|
804
|
+
m.participantType = enumStringToValue$9(GlobalParticipantType, proto.participantType);
|
|
805
805
|
}
|
|
806
806
|
if (proto.namespaceHierarchy) {
|
|
807
807
|
m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
|
|
@@ -841,7 +841,7 @@ class ParticipantKey {
|
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
|
|
844
|
-
function enumStringToValue$
|
|
844
|
+
function enumStringToValue$8(enumRef, value) {
|
|
845
845
|
if (typeof value === 'number') {
|
|
846
846
|
return value;
|
|
847
847
|
}
|
|
@@ -873,7 +873,7 @@ class Access {
|
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
function enumStringToValue$
|
|
876
|
+
function enumStringToValue$7(enumRef, value) {
|
|
877
877
|
if (typeof value === 'number') {
|
|
878
878
|
return value;
|
|
879
879
|
}
|
|
@@ -995,7 +995,7 @@ class ProductFeature {
|
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
function enumStringToValue$
|
|
998
|
+
function enumStringToValue$6(enumRef, value) {
|
|
999
999
|
if (typeof value === 'number') {
|
|
1000
1000
|
return value;
|
|
1001
1001
|
}
|
|
@@ -1030,7 +1030,7 @@ class View {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
-
function enumStringToValue$
|
|
1033
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1034
1034
|
if (typeof value === 'number') {
|
|
1035
1035
|
return value;
|
|
1036
1036
|
}
|
|
@@ -1076,11 +1076,12 @@ class Widget {
|
|
|
1076
1076
|
accentColor;
|
|
1077
1077
|
accentTextColor;
|
|
1078
1078
|
skipContactCapture;
|
|
1079
|
+
additionalPromptInstructions;
|
|
1079
1080
|
static fromProto(proto) {
|
|
1080
1081
|
let m = new Widget();
|
|
1081
1082
|
m = Object.assign(m, proto);
|
|
1082
1083
|
if (proto.position) {
|
|
1083
|
-
m.position = enumStringToValue$
|
|
1084
|
+
m.position = enumStringToValue$5(WidgetPosition, proto.position);
|
|
1084
1085
|
}
|
|
1085
1086
|
if (proto.created) {
|
|
1086
1087
|
m.created = new Date(proto.created);
|
|
@@ -1140,11 +1141,14 @@ class Widget {
|
|
|
1140
1141
|
if (typeof this.skipContactCapture !== 'undefined') {
|
|
1141
1142
|
toReturn['skipContactCapture'] = this.skipContactCapture;
|
|
1142
1143
|
}
|
|
1144
|
+
if (typeof this.additionalPromptInstructions !== 'undefined') {
|
|
1145
|
+
toReturn['additionalPromptInstructions'] = this.additionalPromptInstructions;
|
|
1146
|
+
}
|
|
1143
1147
|
return toReturn;
|
|
1144
1148
|
}
|
|
1145
1149
|
}
|
|
1146
1150
|
|
|
1147
|
-
function enumStringToValue$
|
|
1151
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1148
1152
|
if (typeof value === 'number') {
|
|
1149
1153
|
return value;
|
|
1150
1154
|
}
|
|
@@ -1172,7 +1176,7 @@ class FieldMask {
|
|
|
1172
1176
|
}
|
|
1173
1177
|
}
|
|
1174
1178
|
|
|
1175
|
-
function enumStringToValue$
|
|
1179
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1176
1180
|
if (typeof value === 'number') {
|
|
1177
1181
|
return value;
|
|
1178
1182
|
}
|
|
@@ -1215,7 +1219,7 @@ class MessageTemplate {
|
|
|
1215
1219
|
}
|
|
1216
1220
|
}
|
|
1217
1221
|
|
|
1218
|
-
function enumStringToValue$
|
|
1222
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1219
1223
|
if (typeof value === 'number') {
|
|
1220
1224
|
return value;
|
|
1221
1225
|
}
|
|
@@ -1387,6 +1391,78 @@ class UpsertAISystemMessageRequest {
|
|
|
1387
1391
|
}
|
|
1388
1392
|
}
|
|
1389
1393
|
|
|
1394
|
+
function enumStringToValue$1(enumRef, value) {
|
|
1395
|
+
if (typeof value === 'number') {
|
|
1396
|
+
return value;
|
|
1397
|
+
}
|
|
1398
|
+
return enumRef[value];
|
|
1399
|
+
}
|
|
1400
|
+
class Event {
|
|
1401
|
+
conversationId;
|
|
1402
|
+
eventId;
|
|
1403
|
+
happenedAt;
|
|
1404
|
+
labelKey;
|
|
1405
|
+
initiatorId;
|
|
1406
|
+
created;
|
|
1407
|
+
updated;
|
|
1408
|
+
deleted;
|
|
1409
|
+
message;
|
|
1410
|
+
static fromProto(proto) {
|
|
1411
|
+
let m = new Event();
|
|
1412
|
+
m = Object.assign(m, proto);
|
|
1413
|
+
if (proto.happenedAt) {
|
|
1414
|
+
m.happenedAt = new Date(proto.happenedAt);
|
|
1415
|
+
}
|
|
1416
|
+
if (proto.created) {
|
|
1417
|
+
m.created = new Date(proto.created);
|
|
1418
|
+
}
|
|
1419
|
+
if (proto.updated) {
|
|
1420
|
+
m.updated = new Date(proto.updated);
|
|
1421
|
+
}
|
|
1422
|
+
if (proto.deleted) {
|
|
1423
|
+
m.deleted = new Date(proto.deleted);
|
|
1424
|
+
}
|
|
1425
|
+
return m;
|
|
1426
|
+
}
|
|
1427
|
+
constructor(kwargs) {
|
|
1428
|
+
if (!kwargs) {
|
|
1429
|
+
return;
|
|
1430
|
+
}
|
|
1431
|
+
Object.assign(this, kwargs);
|
|
1432
|
+
}
|
|
1433
|
+
toApiJson() {
|
|
1434
|
+
const toReturn = {};
|
|
1435
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
1436
|
+
toReturn['conversationId'] = this.conversationId;
|
|
1437
|
+
}
|
|
1438
|
+
if (typeof this.eventId !== 'undefined') {
|
|
1439
|
+
toReturn['eventId'] = this.eventId;
|
|
1440
|
+
}
|
|
1441
|
+
if (typeof this.happenedAt !== 'undefined' && this.happenedAt !== null) {
|
|
1442
|
+
toReturn['happenedAt'] = 'toApiJson' in this.happenedAt ? this.happenedAt.toApiJson() : this.happenedAt;
|
|
1443
|
+
}
|
|
1444
|
+
if (typeof this.labelKey !== 'undefined') {
|
|
1445
|
+
toReturn['labelKey'] = this.labelKey;
|
|
1446
|
+
}
|
|
1447
|
+
if (typeof this.initiatorId !== 'undefined') {
|
|
1448
|
+
toReturn['initiatorId'] = this.initiatorId;
|
|
1449
|
+
}
|
|
1450
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1451
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1452
|
+
}
|
|
1453
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
1454
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
1455
|
+
}
|
|
1456
|
+
if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
|
|
1457
|
+
toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
|
|
1458
|
+
}
|
|
1459
|
+
if (typeof this.message !== 'undefined') {
|
|
1460
|
+
toReturn['message'] = this.message;
|
|
1461
|
+
}
|
|
1462
|
+
return toReturn;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1390
1466
|
function enumStringToValue(enumRef, value) {
|
|
1391
1467
|
if (typeof value === 'number') {
|
|
1392
1468
|
return value;
|
|
@@ -1898,6 +1974,7 @@ class CreateWidgetRequest {
|
|
|
1898
1974
|
accentColor;
|
|
1899
1975
|
accentTextColor;
|
|
1900
1976
|
skipContactCapture;
|
|
1977
|
+
additionalPromptInstructions;
|
|
1901
1978
|
static fromProto(proto) {
|
|
1902
1979
|
let m = new CreateWidgetRequest();
|
|
1903
1980
|
m = Object.assign(m, proto);
|
|
@@ -1944,6 +2021,9 @@ class CreateWidgetRequest {
|
|
|
1944
2021
|
if (typeof this.skipContactCapture !== 'undefined') {
|
|
1945
2022
|
toReturn['skipContactCapture'] = this.skipContactCapture;
|
|
1946
2023
|
}
|
|
2024
|
+
if (typeof this.additionalPromptInstructions !== 'undefined') {
|
|
2025
|
+
toReturn['additionalPromptInstructions'] = this.additionalPromptInstructions;
|
|
2026
|
+
}
|
|
1947
2027
|
return toReturn;
|
|
1948
2028
|
}
|
|
1949
2029
|
}
|
|
@@ -2080,12 +2160,13 @@ class DeleteWidgetRequest {
|
|
|
2080
2160
|
return toReturn;
|
|
2081
2161
|
}
|
|
2082
2162
|
}
|
|
2083
|
-
class
|
|
2163
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
2084
2164
|
conversation;
|
|
2085
2165
|
latestMessage;
|
|
2086
2166
|
participants;
|
|
2167
|
+
summary;
|
|
2087
2168
|
static fromProto(proto) {
|
|
2088
|
-
let m = new
|
|
2169
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
2089
2170
|
m = Object.assign(m, proto);
|
|
2090
2171
|
if (proto.conversation) {
|
|
2091
2172
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2115,16 +2196,18 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2115
2196
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2116
2197
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2117
2198
|
}
|
|
2199
|
+
if (typeof this.summary !== 'undefined') {
|
|
2200
|
+
toReturn['summary'] = this.summary;
|
|
2201
|
+
}
|
|
2118
2202
|
return toReturn;
|
|
2119
2203
|
}
|
|
2120
2204
|
}
|
|
2121
|
-
class
|
|
2205
|
+
class SearchConversationsResponseDetailedConversation {
|
|
2122
2206
|
conversation;
|
|
2123
2207
|
latestMessage;
|
|
2124
2208
|
participants;
|
|
2125
|
-
summary;
|
|
2126
2209
|
static fromProto(proto) {
|
|
2127
|
-
let m = new
|
|
2210
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
2128
2211
|
m = Object.assign(m, proto);
|
|
2129
2212
|
if (proto.conversation) {
|
|
2130
2213
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2154,9 +2237,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2154
2237
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2155
2238
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2156
2239
|
}
|
|
2157
|
-
if (typeof this.summary !== 'undefined') {
|
|
2158
|
-
toReturn['summary'] = this.summary;
|
|
2159
|
-
}
|
|
2160
2240
|
return toReturn;
|
|
2161
2241
|
}
|
|
2162
2242
|
}
|
|
@@ -2694,6 +2774,55 @@ class GetMultiConversationMessageCountResponse {
|
|
|
2694
2774
|
return toReturn;
|
|
2695
2775
|
}
|
|
2696
2776
|
}
|
|
2777
|
+
class GetMultiEventsRequest {
|
|
2778
|
+
eventIds;
|
|
2779
|
+
conversationId;
|
|
2780
|
+
static fromProto(proto) {
|
|
2781
|
+
let m = new GetMultiEventsRequest();
|
|
2782
|
+
m = Object.assign(m, proto);
|
|
2783
|
+
return m;
|
|
2784
|
+
}
|
|
2785
|
+
constructor(kwargs) {
|
|
2786
|
+
if (!kwargs) {
|
|
2787
|
+
return;
|
|
2788
|
+
}
|
|
2789
|
+
Object.assign(this, kwargs);
|
|
2790
|
+
}
|
|
2791
|
+
toApiJson() {
|
|
2792
|
+
const toReturn = {};
|
|
2793
|
+
if (typeof this.eventIds !== 'undefined') {
|
|
2794
|
+
toReturn['eventIds'] = this.eventIds;
|
|
2795
|
+
}
|
|
2796
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
2797
|
+
toReturn['conversationId'] = this.conversationId;
|
|
2798
|
+
}
|
|
2799
|
+
return toReturn;
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
class GetMultiEventsResponse {
|
|
2803
|
+
events;
|
|
2804
|
+
static fromProto(proto) {
|
|
2805
|
+
let m = new GetMultiEventsResponse();
|
|
2806
|
+
m = Object.assign(m, proto);
|
|
2807
|
+
if (proto.events) {
|
|
2808
|
+
m.events = proto.events.map(Event.fromProto);
|
|
2809
|
+
}
|
|
2810
|
+
return m;
|
|
2811
|
+
}
|
|
2812
|
+
constructor(kwargs) {
|
|
2813
|
+
if (!kwargs) {
|
|
2814
|
+
return;
|
|
2815
|
+
}
|
|
2816
|
+
Object.assign(this, kwargs);
|
|
2817
|
+
}
|
|
2818
|
+
toApiJson() {
|
|
2819
|
+
const toReturn = {};
|
|
2820
|
+
if (typeof this.events !== 'undefined' && this.events !== null) {
|
|
2821
|
+
toReturn['events'] = 'toApiJson' in this.events ? this.events.toApiJson() : this.events;
|
|
2822
|
+
}
|
|
2823
|
+
return toReturn;
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2697
2826
|
class GetMultiMessagesRequest {
|
|
2698
2827
|
messageIds;
|
|
2699
2828
|
conversationId;
|
|
@@ -4248,11 +4377,12 @@ class UpdateWidgetRequest {
|
|
|
4248
4377
|
allowedUrls;
|
|
4249
4378
|
welcomeMessage;
|
|
4250
4379
|
isEnabled;
|
|
4251
|
-
fieldMask;
|
|
4252
4380
|
textColor;
|
|
4253
4381
|
accentColor;
|
|
4254
4382
|
accentTextColor;
|
|
4255
4383
|
skipContactCapture;
|
|
4384
|
+
additionalPromptInstructions;
|
|
4385
|
+
fieldMask;
|
|
4256
4386
|
static fromProto(proto) {
|
|
4257
4387
|
let m = new UpdateWidgetRequest();
|
|
4258
4388
|
m = Object.assign(m, proto);
|
|
@@ -4287,9 +4417,6 @@ class UpdateWidgetRequest {
|
|
|
4287
4417
|
if (typeof this.isEnabled !== 'undefined') {
|
|
4288
4418
|
toReturn['isEnabled'] = this.isEnabled;
|
|
4289
4419
|
}
|
|
4290
|
-
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
4291
|
-
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
4292
|
-
}
|
|
4293
4420
|
if (typeof this.textColor !== 'undefined') {
|
|
4294
4421
|
toReturn['textColor'] = this.textColor;
|
|
4295
4422
|
}
|
|
@@ -4302,6 +4429,12 @@ class UpdateWidgetRequest {
|
|
|
4302
4429
|
if (typeof this.skipContactCapture !== 'undefined') {
|
|
4303
4430
|
toReturn['skipContactCapture'] = this.skipContactCapture;
|
|
4304
4431
|
}
|
|
4432
|
+
if (typeof this.additionalPromptInstructions !== 'undefined') {
|
|
4433
|
+
toReturn['additionalPromptInstructions'] = this.additionalPromptInstructions;
|
|
4434
|
+
}
|
|
4435
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
4436
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
4437
|
+
}
|
|
4305
4438
|
return toReturn;
|
|
4306
4439
|
}
|
|
4307
4440
|
}
|
|
@@ -4734,6 +4867,11 @@ class ConversationApiService {
|
|
|
4734
4867
|
return this.http.post(this._host + "/conversation.v1.ConversationService/NewInboxLeadCaptured", request.toApiJson(), this.apiOptions())
|
|
4735
4868
|
.pipe(map(resp => NewInboxLeadCapturedResponse.fromProto(resp)));
|
|
4736
4869
|
}
|
|
4870
|
+
getMultiEvents(r) {
|
|
4871
|
+
const request = (r.toApiJson) ? r : new GetMultiEventsRequest(r);
|
|
4872
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/GetMultiEvents", request.toApiJson(), this.apiOptions())
|
|
4873
|
+
.pipe(map(resp => GetMultiEventsResponse.fromProto(resp)));
|
|
4874
|
+
}
|
|
4737
4875
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4738
4876
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
4739
4877
|
}
|
|
@@ -4830,5 +4968,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
4830
4968
|
* Generated bundle index. Do not edit.
|
|
4831
4969
|
*/
|
|
4832
4970
|
|
|
4833
|
-
export { AISystemMessage, AISystemMessageApiService, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, 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, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, KeyValuePair, LastSeenByParticipant, ListAISystemMessagesRequest, ListAISystemMessagesResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, Status, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
4971
|
+
export { AISystemMessage, AISystemMessageApiService, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, Event, 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, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiEventsRequest, GetMultiEventsResponse, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, KeyValuePair, LastSeenByParticipant, ListAISystemMessagesRequest, ListAISystemMessagesResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, Status, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
4834
4972
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|