@vendasta/conversation 0.92.0 → 0.94.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 +7 -2
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/evaluation.interface.mjs +8 -0
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +208 -23
- package/esm2022/lib/_internal/objects/evaluation.mjs +51 -0
- package/esm2022/lib/_internal/objects/index.mjs +3 -2
- package/fesm2022/vendasta-conversation.mjs +286 -47
- 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 +34 -5
- package/lib/_internal/interfaces/evaluation.interface.d.ts +8 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +52 -8
- package/lib/_internal/objects/evaluation.d.ts +13 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -202,7 +202,7 @@ var Status;
|
|
|
202
202
|
// Enums Index.
|
|
203
203
|
// *********************************
|
|
204
204
|
|
|
205
|
-
function enumStringToValue$
|
|
205
|
+
function enumStringToValue$d(enumRef, value) {
|
|
206
206
|
if (typeof value === 'number') {
|
|
207
207
|
return value;
|
|
208
208
|
}
|
|
@@ -240,7 +240,7 @@ class NamespaceDetail {
|
|
|
240
240
|
let m = new NamespaceDetail();
|
|
241
241
|
m = Object.assign(m, proto);
|
|
242
242
|
if (proto.participantType) {
|
|
243
|
-
m.participantType = enumStringToValue$
|
|
243
|
+
m.participantType = enumStringToValue$d(GlobalParticipantType, proto.participantType);
|
|
244
244
|
}
|
|
245
245
|
return m;
|
|
246
246
|
}
|
|
@@ -268,7 +268,7 @@ class SubjectParticipant {
|
|
|
268
268
|
let m = new SubjectParticipant();
|
|
269
269
|
m = Object.assign(m, proto);
|
|
270
270
|
if (proto.participantType) {
|
|
271
|
-
m.participantType = enumStringToValue$
|
|
271
|
+
m.participantType = enumStringToValue$d(GlobalParticipantType, proto.participantType);
|
|
272
272
|
}
|
|
273
273
|
return m;
|
|
274
274
|
}
|
|
@@ -290,7 +290,7 @@ class SubjectParticipant {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
function enumStringToValue$
|
|
293
|
+
function enumStringToValue$c(enumRef, value) {
|
|
294
294
|
if (typeof value === 'number') {
|
|
295
295
|
return value;
|
|
296
296
|
}
|
|
@@ -341,7 +341,7 @@ class Conversation {
|
|
|
341
341
|
let m = new Conversation();
|
|
342
342
|
m = Object.assign(m, proto);
|
|
343
343
|
if (proto.channel) {
|
|
344
|
-
m.channel = enumStringToValue$
|
|
344
|
+
m.channel = enumStringToValue$c(ConversationChannel, proto.channel);
|
|
345
345
|
}
|
|
346
346
|
if (proto.created) {
|
|
347
347
|
m.created = new Date(proto.created);
|
|
@@ -356,7 +356,7 @@ class Conversation {
|
|
|
356
356
|
m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
|
|
357
357
|
}
|
|
358
358
|
if (proto.originLocation) {
|
|
359
|
-
m.originLocation = enumStringToValue$
|
|
359
|
+
m.originLocation = enumStringToValue$c(PlatformLocation, proto.originLocation);
|
|
360
360
|
}
|
|
361
361
|
if (proto.lastSeenByParticipant) {
|
|
362
362
|
m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
|
|
@@ -457,7 +457,7 @@ class ConversationKey {
|
|
|
457
457
|
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
458
458
|
}
|
|
459
459
|
if (proto.channel) {
|
|
460
|
-
m.channel = enumStringToValue$
|
|
460
|
+
m.channel = enumStringToValue$c(ConversationChannel, proto.channel);
|
|
461
461
|
}
|
|
462
462
|
return m;
|
|
463
463
|
}
|
|
@@ -569,7 +569,7 @@ class SubjectParticipantKey {
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
function enumStringToValue$
|
|
572
|
+
function enumStringToValue$b(enumRef, value) {
|
|
573
573
|
if (typeof value === 'number') {
|
|
574
574
|
return value;
|
|
575
575
|
}
|
|
@@ -595,7 +595,7 @@ class Message {
|
|
|
595
595
|
let m = new Message();
|
|
596
596
|
m = Object.assign(m, proto);
|
|
597
597
|
if (proto.type) {
|
|
598
|
-
m.type = enumStringToValue$
|
|
598
|
+
m.type = enumStringToValue$b(MessageType, proto.type);
|
|
599
599
|
}
|
|
600
600
|
if (proto.created) {
|
|
601
601
|
m.created = new Date(proto.created);
|
|
@@ -610,7 +610,7 @@ class Message {
|
|
|
610
610
|
m.sendStatus = SendStatus.fromProto(proto.sendStatus);
|
|
611
611
|
}
|
|
612
612
|
if (proto.channel) {
|
|
613
|
-
m.channel = enumStringToValue$
|
|
613
|
+
m.channel = enumStringToValue$b(ConversationChannel, proto.channel);
|
|
614
614
|
}
|
|
615
615
|
if (proto.metadata) {
|
|
616
616
|
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
@@ -682,7 +682,7 @@ class ParticipantMessageStatus {
|
|
|
682
682
|
let m = new ParticipantMessageStatus();
|
|
683
683
|
m = Object.assign(m, proto);
|
|
684
684
|
if (proto.status) {
|
|
685
|
-
m.status = enumStringToValue$
|
|
685
|
+
m.status = enumStringToValue$b(MessageStatus, proto.status);
|
|
686
686
|
}
|
|
687
687
|
if (proto.updated) {
|
|
688
688
|
m.updated = new Date(proto.updated);
|
|
@@ -720,7 +720,7 @@ class SendStatus {
|
|
|
720
720
|
let m = new SendStatus();
|
|
721
721
|
m = Object.assign(m, proto);
|
|
722
722
|
if (proto.status) {
|
|
723
|
-
m.status = enumStringToValue$
|
|
723
|
+
m.status = enumStringToValue$b(MessageStatus, proto.status);
|
|
724
724
|
}
|
|
725
725
|
if (proto.created) {
|
|
726
726
|
m.created = new Date(proto.created);
|
|
@@ -748,7 +748,7 @@ class SendStatus {
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
|
|
751
|
-
function enumStringToValue$
|
|
751
|
+
function enumStringToValue$a(enumRef, value) {
|
|
752
752
|
if (typeof value === 'number') {
|
|
753
753
|
return value;
|
|
754
754
|
}
|
|
@@ -819,10 +819,10 @@ class Participant {
|
|
|
819
819
|
let m = new Participant();
|
|
820
820
|
m = Object.assign(m, proto);
|
|
821
821
|
if (proto.location) {
|
|
822
|
-
m.location = enumStringToValue$
|
|
822
|
+
m.location = enumStringToValue$a(PlatformLocation, proto.location);
|
|
823
823
|
}
|
|
824
824
|
if (proto.channel) {
|
|
825
|
-
m.channel = enumStringToValue$
|
|
825
|
+
m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
|
|
826
826
|
}
|
|
827
827
|
if (proto.created) {
|
|
828
828
|
m.created = new Date(proto.created);
|
|
@@ -834,7 +834,7 @@ class Participant {
|
|
|
834
834
|
m.deleted = new Date(proto.deleted);
|
|
835
835
|
}
|
|
836
836
|
if (proto.participantType) {
|
|
837
|
-
m.participantType = enumStringToValue$
|
|
837
|
+
m.participantType = enumStringToValue$a(ParticipantType, proto.participantType);
|
|
838
838
|
}
|
|
839
839
|
if (proto.address) {
|
|
840
840
|
m.address = Address.fromProto(proto.address);
|
|
@@ -924,13 +924,13 @@ class ParticipantKey {
|
|
|
924
924
|
let m = new ParticipantKey();
|
|
925
925
|
m = Object.assign(m, proto);
|
|
926
926
|
if (proto.location) {
|
|
927
|
-
m.location = enumStringToValue$
|
|
927
|
+
m.location = enumStringToValue$a(PlatformLocation, proto.location);
|
|
928
928
|
}
|
|
929
929
|
if (proto.channels) {
|
|
930
|
-
m.channels = proto.channels.map((v) => enumStringToValue$
|
|
930
|
+
m.channels = proto.channels.map((v) => enumStringToValue$a(ConversationChannel, v));
|
|
931
931
|
}
|
|
932
932
|
if (proto.participantType) {
|
|
933
|
-
m.participantType = enumStringToValue$
|
|
933
|
+
m.participantType = enumStringToValue$a(GlobalParticipantType, proto.participantType);
|
|
934
934
|
}
|
|
935
935
|
if (proto.namespaceHierarchy) {
|
|
936
936
|
m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
|
|
@@ -970,7 +970,7 @@ class ParticipantKey {
|
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
function enumStringToValue$
|
|
973
|
+
function enumStringToValue$9(enumRef, value) {
|
|
974
974
|
if (typeof value === 'number') {
|
|
975
975
|
return value;
|
|
976
976
|
}
|
|
@@ -1002,7 +1002,7 @@ class Access {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
-
function enumStringToValue$
|
|
1005
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1006
1006
|
if (typeof value === 'number') {
|
|
1007
1007
|
return value;
|
|
1008
1008
|
}
|
|
@@ -1164,7 +1164,7 @@ class ProductFeature {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
-
function enumStringToValue$
|
|
1167
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1168
1168
|
if (typeof value === 'number') {
|
|
1169
1169
|
return value;
|
|
1170
1170
|
}
|
|
@@ -1199,7 +1199,7 @@ class View {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
|
-
function enumStringToValue$
|
|
1202
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1203
1203
|
if (typeof value === 'number') {
|
|
1204
1204
|
return value;
|
|
1205
1205
|
}
|
|
@@ -1256,7 +1256,7 @@ class Widget {
|
|
|
1256
1256
|
let m = new Widget();
|
|
1257
1257
|
m = Object.assign(m, proto);
|
|
1258
1258
|
if (proto.position) {
|
|
1259
|
-
m.position = enumStringToValue$
|
|
1259
|
+
m.position = enumStringToValue$6(WidgetPosition, proto.position);
|
|
1260
1260
|
}
|
|
1261
1261
|
if (proto.created) {
|
|
1262
1262
|
m.created = new Date(proto.created);
|
|
@@ -1341,6 +1341,56 @@ class Widget {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1345
|
+
if (typeof value === 'number') {
|
|
1346
|
+
return value;
|
|
1347
|
+
}
|
|
1348
|
+
return enumRef[value];
|
|
1349
|
+
}
|
|
1350
|
+
class ResponseEvaluation {
|
|
1351
|
+
messageId;
|
|
1352
|
+
conversationId;
|
|
1353
|
+
sentiment;
|
|
1354
|
+
comment;
|
|
1355
|
+
createdAt;
|
|
1356
|
+
static fromProto(proto) {
|
|
1357
|
+
let m = new ResponseEvaluation();
|
|
1358
|
+
m = Object.assign(m, proto);
|
|
1359
|
+
if (proto.sentiment) {
|
|
1360
|
+
m.sentiment = enumStringToValue$5(EvaluationSentiment, proto.sentiment);
|
|
1361
|
+
}
|
|
1362
|
+
if (proto.createdAt) {
|
|
1363
|
+
m.createdAt = new Date(proto.createdAt);
|
|
1364
|
+
}
|
|
1365
|
+
return m;
|
|
1366
|
+
}
|
|
1367
|
+
constructor(kwargs) {
|
|
1368
|
+
if (!kwargs) {
|
|
1369
|
+
return;
|
|
1370
|
+
}
|
|
1371
|
+
Object.assign(this, kwargs);
|
|
1372
|
+
}
|
|
1373
|
+
toApiJson() {
|
|
1374
|
+
const toReturn = {};
|
|
1375
|
+
if (typeof this.messageId !== 'undefined') {
|
|
1376
|
+
toReturn['messageId'] = this.messageId;
|
|
1377
|
+
}
|
|
1378
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
1379
|
+
toReturn['conversationId'] = this.conversationId;
|
|
1380
|
+
}
|
|
1381
|
+
if (typeof this.sentiment !== 'undefined') {
|
|
1382
|
+
toReturn['sentiment'] = this.sentiment;
|
|
1383
|
+
}
|
|
1384
|
+
if (typeof this.comment !== 'undefined') {
|
|
1385
|
+
toReturn['comment'] = this.comment;
|
|
1386
|
+
}
|
|
1387
|
+
if (typeof this.createdAt !== 'undefined' && this.createdAt !== null) {
|
|
1388
|
+
toReturn['createdAt'] = 'toApiJson' in this.createdAt ? this.createdAt.toApiJson() : this.createdAt;
|
|
1389
|
+
}
|
|
1390
|
+
return toReturn;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1344
1394
|
function enumStringToValue$4(enumRef, value) {
|
|
1345
1395
|
if (typeof value === 'number') {
|
|
1346
1396
|
return value;
|
|
@@ -2416,15 +2466,12 @@ class DeleteWidgetRequest {
|
|
|
2416
2466
|
return toReturn;
|
|
2417
2467
|
}
|
|
2418
2468
|
}
|
|
2419
|
-
class
|
|
2469
|
+
class SearchConversationsResponseDetailedConversation {
|
|
2420
2470
|
conversation;
|
|
2421
2471
|
latestMessage;
|
|
2422
2472
|
participants;
|
|
2423
|
-
summary;
|
|
2424
|
-
event;
|
|
2425
|
-
message;
|
|
2426
2473
|
static fromProto(proto) {
|
|
2427
|
-
let m = new
|
|
2474
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
2428
2475
|
m = Object.assign(m, proto);
|
|
2429
2476
|
if (proto.conversation) {
|
|
2430
2477
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2435,12 +2482,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2435
2482
|
if (proto.participants) {
|
|
2436
2483
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2437
2484
|
}
|
|
2438
|
-
if (proto.event) {
|
|
2439
|
-
m.event = Event.fromProto(proto.event);
|
|
2440
|
-
}
|
|
2441
|
-
if (proto.message) {
|
|
2442
|
-
m.message = Message.fromProto(proto.message);
|
|
2443
|
-
}
|
|
2444
2485
|
return m;
|
|
2445
2486
|
}
|
|
2446
2487
|
constructor(kwargs) {
|
|
@@ -2460,24 +2501,18 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
2460
2501
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2461
2502
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2462
2503
|
}
|
|
2463
|
-
if (typeof this.summary !== 'undefined') {
|
|
2464
|
-
toReturn['summary'] = this.summary;
|
|
2465
|
-
}
|
|
2466
|
-
if (typeof this.event !== 'undefined' && this.event !== null) {
|
|
2467
|
-
toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
|
|
2468
|
-
}
|
|
2469
|
-
if (typeof this.message !== 'undefined' && this.message !== null) {
|
|
2470
|
-
toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
|
|
2471
|
-
}
|
|
2472
2504
|
return toReturn;
|
|
2473
2505
|
}
|
|
2474
2506
|
}
|
|
2475
|
-
class
|
|
2507
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
2476
2508
|
conversation;
|
|
2477
2509
|
latestMessage;
|
|
2478
2510
|
participants;
|
|
2511
|
+
summary;
|
|
2512
|
+
event;
|
|
2513
|
+
message;
|
|
2479
2514
|
static fromProto(proto) {
|
|
2480
|
-
let m = new
|
|
2515
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
2481
2516
|
m = Object.assign(m, proto);
|
|
2482
2517
|
if (proto.conversation) {
|
|
2483
2518
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -2488,6 +2523,12 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2488
2523
|
if (proto.participants) {
|
|
2489
2524
|
m.participants = proto.participants.map(Participant.fromProto);
|
|
2490
2525
|
}
|
|
2526
|
+
if (proto.event) {
|
|
2527
|
+
m.event = Event.fromProto(proto.event);
|
|
2528
|
+
}
|
|
2529
|
+
if (proto.message) {
|
|
2530
|
+
m.message = Message.fromProto(proto.message);
|
|
2531
|
+
}
|
|
2491
2532
|
return m;
|
|
2492
2533
|
}
|
|
2493
2534
|
constructor(kwargs) {
|
|
@@ -2507,6 +2548,15 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
2507
2548
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
2508
2549
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
2509
2550
|
}
|
|
2551
|
+
if (typeof this.summary !== 'undefined') {
|
|
2552
|
+
toReturn['summary'] = this.summary;
|
|
2553
|
+
}
|
|
2554
|
+
if (typeof this.event !== 'undefined' && this.event !== null) {
|
|
2555
|
+
toReturn['event'] = 'toApiJson' in this.event ? this.event.toApiJson() : this.event;
|
|
2556
|
+
}
|
|
2557
|
+
if (typeof this.message !== 'undefined' && this.message !== null) {
|
|
2558
|
+
toReturn['message'] = 'toApiJson' in this.message ? this.message.toApiJson() : this.message;
|
|
2559
|
+
}
|
|
2510
2560
|
return toReturn;
|
|
2511
2561
|
}
|
|
2512
2562
|
}
|
|
@@ -3422,6 +3472,10 @@ class GetWidgetConfigResponse {
|
|
|
3422
3472
|
hideMobileCta;
|
|
3423
3473
|
customGreetingMessage;
|
|
3424
3474
|
enableGreetingMessage;
|
|
3475
|
+
namespace;
|
|
3476
|
+
poweredByName;
|
|
3477
|
+
poweredByWebsite;
|
|
3478
|
+
showFooterContent;
|
|
3425
3479
|
static fromProto(proto) {
|
|
3426
3480
|
let m = new GetWidgetConfigResponse();
|
|
3427
3481
|
m = Object.assign(m, proto);
|
|
@@ -3486,6 +3540,18 @@ class GetWidgetConfigResponse {
|
|
|
3486
3540
|
if (typeof this.enableGreetingMessage !== 'undefined') {
|
|
3487
3541
|
toReturn['enableGreetingMessage'] = this.enableGreetingMessage;
|
|
3488
3542
|
}
|
|
3543
|
+
if (typeof this.namespace !== 'undefined') {
|
|
3544
|
+
toReturn['namespace'] = this.namespace;
|
|
3545
|
+
}
|
|
3546
|
+
if (typeof this.poweredByName !== 'undefined') {
|
|
3547
|
+
toReturn['poweredByName'] = this.poweredByName;
|
|
3548
|
+
}
|
|
3549
|
+
if (typeof this.poweredByWebsite !== 'undefined') {
|
|
3550
|
+
toReturn['poweredByWebsite'] = this.poweredByWebsite;
|
|
3551
|
+
}
|
|
3552
|
+
if (typeof this.showFooterContent !== 'undefined') {
|
|
3553
|
+
toReturn['showFooterContent'] = this.showFooterContent;
|
|
3554
|
+
}
|
|
3489
3555
|
return toReturn;
|
|
3490
3556
|
}
|
|
3491
3557
|
}
|
|
@@ -3854,6 +3920,93 @@ class ListMessagesResponse {
|
|
|
3854
3920
|
return toReturn;
|
|
3855
3921
|
}
|
|
3856
3922
|
}
|
|
3923
|
+
class ListResponseEvaluationsRequest {
|
|
3924
|
+
summarize;
|
|
3925
|
+
subjectParticipant;
|
|
3926
|
+
pagingOptions;
|
|
3927
|
+
createdAfter;
|
|
3928
|
+
createdBefore;
|
|
3929
|
+
static fromProto(proto) {
|
|
3930
|
+
let m = new ListResponseEvaluationsRequest();
|
|
3931
|
+
m = Object.assign(m, proto);
|
|
3932
|
+
if (proto.subjectParticipant) {
|
|
3933
|
+
m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
|
|
3934
|
+
}
|
|
3935
|
+
if (proto.pagingOptions) {
|
|
3936
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
3937
|
+
}
|
|
3938
|
+
if (proto.createdAfter) {
|
|
3939
|
+
m.createdAfter = new Date(proto.createdAfter);
|
|
3940
|
+
}
|
|
3941
|
+
if (proto.createdBefore) {
|
|
3942
|
+
m.createdBefore = new Date(proto.createdBefore);
|
|
3943
|
+
}
|
|
3944
|
+
return m;
|
|
3945
|
+
}
|
|
3946
|
+
constructor(kwargs) {
|
|
3947
|
+
if (!kwargs) {
|
|
3948
|
+
return;
|
|
3949
|
+
}
|
|
3950
|
+
Object.assign(this, kwargs);
|
|
3951
|
+
}
|
|
3952
|
+
toApiJson() {
|
|
3953
|
+
const toReturn = {};
|
|
3954
|
+
if (typeof this.summarize !== 'undefined') {
|
|
3955
|
+
toReturn['summarize'] = this.summarize;
|
|
3956
|
+
}
|
|
3957
|
+
if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
|
|
3958
|
+
toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
|
|
3959
|
+
}
|
|
3960
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
3961
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
3962
|
+
}
|
|
3963
|
+
if (typeof this.createdAfter !== 'undefined' && this.createdAfter !== null) {
|
|
3964
|
+
toReturn['createdAfter'] = 'toApiJson' in this.createdAfter ? this.createdAfter.toApiJson() : this.createdAfter;
|
|
3965
|
+
}
|
|
3966
|
+
if (typeof this.createdBefore !== 'undefined' && this.createdBefore !== null) {
|
|
3967
|
+
toReturn['createdBefore'] = 'toApiJson' in this.createdBefore ? this.createdBefore.toApiJson() : this.createdBefore;
|
|
3968
|
+
}
|
|
3969
|
+
return toReturn;
|
|
3970
|
+
}
|
|
3971
|
+
}
|
|
3972
|
+
class ListResponseEvaluationsResponse {
|
|
3973
|
+
evaluations;
|
|
3974
|
+
summary;
|
|
3975
|
+
pagingMetadata;
|
|
3976
|
+
static fromProto(proto) {
|
|
3977
|
+
let m = new ListResponseEvaluationsResponse();
|
|
3978
|
+
m = Object.assign(m, proto);
|
|
3979
|
+
if (proto.evaluations) {
|
|
3980
|
+
m.evaluations = proto.evaluations.map(ResponseEvaluation.fromProto);
|
|
3981
|
+
}
|
|
3982
|
+
if (proto.summary) {
|
|
3983
|
+
m.summary = ListResponseEvaluationsResponseSummary.fromProto(proto.summary);
|
|
3984
|
+
}
|
|
3985
|
+
if (proto.pagingMetadata) {
|
|
3986
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
3987
|
+
}
|
|
3988
|
+
return m;
|
|
3989
|
+
}
|
|
3990
|
+
constructor(kwargs) {
|
|
3991
|
+
if (!kwargs) {
|
|
3992
|
+
return;
|
|
3993
|
+
}
|
|
3994
|
+
Object.assign(this, kwargs);
|
|
3995
|
+
}
|
|
3996
|
+
toApiJson() {
|
|
3997
|
+
const toReturn = {};
|
|
3998
|
+
if (typeof this.evaluations !== 'undefined' && this.evaluations !== null) {
|
|
3999
|
+
toReturn['evaluations'] = 'toApiJson' in this.evaluations ? this.evaluations.toApiJson() : this.evaluations;
|
|
4000
|
+
}
|
|
4001
|
+
if (typeof this.summary !== 'undefined' && this.summary !== null) {
|
|
4002
|
+
toReturn['summary'] = 'toApiJson' in this.summary ? this.summary.toApiJson() : this.summary;
|
|
4003
|
+
}
|
|
4004
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
4005
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
4006
|
+
}
|
|
4007
|
+
return toReturn;
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
3857
4010
|
class ListWidgetsRequestListWidgetsFilters {
|
|
3858
4011
|
namespaces;
|
|
3859
4012
|
widgetTypes;
|
|
@@ -4502,6 +4655,27 @@ class SearchConversationsResponse {
|
|
|
4502
4655
|
return toReturn;
|
|
4503
4656
|
}
|
|
4504
4657
|
}
|
|
4658
|
+
class SendMessageOptions {
|
|
4659
|
+
runSync;
|
|
4660
|
+
static fromProto(proto) {
|
|
4661
|
+
let m = new SendMessageOptions();
|
|
4662
|
+
m = Object.assign(m, proto);
|
|
4663
|
+
return m;
|
|
4664
|
+
}
|
|
4665
|
+
constructor(kwargs) {
|
|
4666
|
+
if (!kwargs) {
|
|
4667
|
+
return;
|
|
4668
|
+
}
|
|
4669
|
+
Object.assign(this, kwargs);
|
|
4670
|
+
}
|
|
4671
|
+
toApiJson() {
|
|
4672
|
+
const toReturn = {};
|
|
4673
|
+
if (typeof this.runSync !== 'undefined') {
|
|
4674
|
+
toReturn['runSync'] = this.runSync;
|
|
4675
|
+
}
|
|
4676
|
+
return toReturn;
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4505
4679
|
class SendMessageRequest {
|
|
4506
4680
|
sender;
|
|
4507
4681
|
recipient;
|
|
@@ -4512,6 +4686,7 @@ class SendMessageRequest {
|
|
|
4512
4686
|
originLocation;
|
|
4513
4687
|
media;
|
|
4514
4688
|
channel;
|
|
4689
|
+
options;
|
|
4515
4690
|
static fromProto(proto) {
|
|
4516
4691
|
let m = new SendMessageRequest();
|
|
4517
4692
|
m = Object.assign(m, proto);
|
|
@@ -4536,6 +4711,9 @@ class SendMessageRequest {
|
|
|
4536
4711
|
if (proto.channel) {
|
|
4537
4712
|
m.channel = enumStringToValue(ConversationChannel, proto.channel);
|
|
4538
4713
|
}
|
|
4714
|
+
if (proto.options) {
|
|
4715
|
+
m.options = SendMessageOptions.fromProto(proto.options);
|
|
4716
|
+
}
|
|
4539
4717
|
return m;
|
|
4540
4718
|
}
|
|
4541
4719
|
constructor(kwargs) {
|
|
@@ -4573,6 +4751,9 @@ class SendMessageRequest {
|
|
|
4573
4751
|
if (typeof this.channel !== 'undefined') {
|
|
4574
4752
|
toReturn['channel'] = this.channel;
|
|
4575
4753
|
}
|
|
4754
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
4755
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
4756
|
+
}
|
|
4576
4757
|
return toReturn;
|
|
4577
4758
|
}
|
|
4578
4759
|
}
|
|
@@ -4723,6 +4904,59 @@ class SetLastSeenResponse {
|
|
|
4723
4904
|
return toReturn;
|
|
4724
4905
|
}
|
|
4725
4906
|
}
|
|
4907
|
+
class ListResponseEvaluationsResponseSummary {
|
|
4908
|
+
feedbackThemes;
|
|
4909
|
+
static fromProto(proto) {
|
|
4910
|
+
let m = new ListResponseEvaluationsResponseSummary();
|
|
4911
|
+
m = Object.assign(m, proto);
|
|
4912
|
+
if (proto.feedbackThemes) {
|
|
4913
|
+
m.feedbackThemes = proto.feedbackThemes.map(ListResponseEvaluationsResponseSummaryTheme.fromProto);
|
|
4914
|
+
}
|
|
4915
|
+
return m;
|
|
4916
|
+
}
|
|
4917
|
+
constructor(kwargs) {
|
|
4918
|
+
if (!kwargs) {
|
|
4919
|
+
return;
|
|
4920
|
+
}
|
|
4921
|
+
Object.assign(this, kwargs);
|
|
4922
|
+
}
|
|
4923
|
+
toApiJson() {
|
|
4924
|
+
const toReturn = {};
|
|
4925
|
+
if (typeof this.feedbackThemes !== 'undefined' && this.feedbackThemes !== null) {
|
|
4926
|
+
toReturn['feedbackThemes'] = 'toApiJson' in this.feedbackThemes ? this.feedbackThemes.toApiJson() : this.feedbackThemes;
|
|
4927
|
+
}
|
|
4928
|
+
return toReturn;
|
|
4929
|
+
}
|
|
4930
|
+
}
|
|
4931
|
+
class ListResponseEvaluationsResponseSummaryTheme {
|
|
4932
|
+
name;
|
|
4933
|
+
description;
|
|
4934
|
+
examples;
|
|
4935
|
+
static fromProto(proto) {
|
|
4936
|
+
let m = new ListResponseEvaluationsResponseSummaryTheme();
|
|
4937
|
+
m = Object.assign(m, proto);
|
|
4938
|
+
return m;
|
|
4939
|
+
}
|
|
4940
|
+
constructor(kwargs) {
|
|
4941
|
+
if (!kwargs) {
|
|
4942
|
+
return;
|
|
4943
|
+
}
|
|
4944
|
+
Object.assign(this, kwargs);
|
|
4945
|
+
}
|
|
4946
|
+
toApiJson() {
|
|
4947
|
+
const toReturn = {};
|
|
4948
|
+
if (typeof this.name !== 'undefined') {
|
|
4949
|
+
toReturn['name'] = this.name;
|
|
4950
|
+
}
|
|
4951
|
+
if (typeof this.description !== 'undefined') {
|
|
4952
|
+
toReturn['description'] = this.description;
|
|
4953
|
+
}
|
|
4954
|
+
if (typeof this.examples !== 'undefined') {
|
|
4955
|
+
toReturn['examples'] = this.examples;
|
|
4956
|
+
}
|
|
4957
|
+
return toReturn;
|
|
4958
|
+
}
|
|
4959
|
+
}
|
|
4726
4960
|
class UpdateConversationRequest {
|
|
4727
4961
|
conversation;
|
|
4728
4962
|
fieldMask;
|
|
@@ -5326,6 +5560,11 @@ class ConversationApiService {
|
|
|
5326
5560
|
const request = (r.toApiJson) ? r : new EvaluateResponseRequest(r);
|
|
5327
5561
|
return this.http.post(this._host + "/conversation.v1.ConversationService/EvaluateResponse", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5328
5562
|
}
|
|
5563
|
+
listResponseEvaluations(r) {
|
|
5564
|
+
const request = (r.toApiJson) ? r : new ListResponseEvaluationsRequest(r);
|
|
5565
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/ListResponseEvaluations", request.toApiJson(), this.apiOptions())
|
|
5566
|
+
.pipe(map(resp => ListResponseEvaluationsResponse.fromProto(resp)));
|
|
5567
|
+
}
|
|
5329
5568
|
createWidget(r) {
|
|
5330
5569
|
const request = (r.toApiJson) ? r : new CreateWidgetRequest(r);
|
|
5331
5570
|
return this.http.post(this._host + "/conversation.v1.ConversationService/CreateWidget", request.toApiJson(), this.apiOptions())
|
|
@@ -5499,5 +5738,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
5499
5738
|
* Generated bundle index. Do not edit.
|
|
5500
5739
|
*/
|
|
5501
5740
|
|
|
5502
|
-
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, 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, 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, ListWidgetsRequest, ListWidgetsRequestListWidgetsFilters, 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, SubjectParticipantKey, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
5741
|
+
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, 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, 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, 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, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
5503
5742
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|