@vendasta/conversation 0.61.0 → 0.63.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/{esm2020 → esm2022}/lib/_generated/host.service.mjs +4 -4
- package/esm2022/lib/_internal/conversation.api.service.mjs +231 -0
- package/esm2022/lib/_internal/email.api.service.mjs +37 -0
- package/{esm2020 → esm2022}/lib/_internal/enums/conversation.enum.mjs +2 -1
- package/esm2022/lib/_internal/inbox.api.service.mjs +52 -0
- package/{esm2020 → esm2022}/lib/_internal/index.mjs +2 -1
- package/esm2022/lib/_internal/interfaces/api.interface.mjs +2 -0
- package/esm2022/lib/_internal/interfaces/configuration.interface.mjs +2 -0
- package/esm2022/lib/_internal/interfaces/evaluation.interface.mjs +8 -0
- package/esm2022/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2022/lib/_internal/objects/annotations.mjs +32 -0
- package/esm2022/lib/_internal/objects/api.mjs +2861 -0
- package/esm2022/lib/_internal/objects/common.mjs +64 -0
- package/esm2022/lib/_internal/objects/configuration.mjs +123 -0
- package/esm2022/lib/_internal/objects/conversation-view.mjs +35 -0
- package/esm2022/lib/_internal/objects/conversation.mjs +173 -0
- package/esm2022/lib/_internal/objects/evaluation.mjs +7 -0
- package/esm2022/lib/_internal/objects/field-mask.mjs +28 -0
- package/esm2022/lib/_internal/objects/index.mjs +18 -0
- package/esm2022/lib/_internal/objects/message-template.mjs +43 -0
- package/esm2022/lib/_internal/objects/message.mjs +169 -0
- package/esm2022/lib/_internal/objects/participant.mjs +224 -0
- package/esm2022/lib/_internal/objects/widget.mjs +107 -0
- package/{fesm2020 → fesm2022}/vendasta-conversation.mjs +536 -32
- package/fesm2022/vendasta-conversation.mjs.map +1 -0
- package/lib/_internal/conversation.api.service.d.ts +6 -7
- package/lib/_internal/email.api.service.d.ts +13 -0
- package/lib/_internal/enums/conversation.enum.d.ts +2 -1
- package/lib/_internal/inbox.api.service.d.ts +2 -5
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/api.interface.d.ts +25 -3
- package/lib/_internal/interfaces/configuration.interface.d.ts +2 -0
- package/lib/_internal/interfaces/evaluation.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +44 -7
- package/lib/_internal/objects/configuration.d.ts +2 -0
- package/lib/_internal/objects/evaluation.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/package.json +7 -13
- package/esm2020/lib/_internal/conversation.api.service.mjs +0 -230
- package/esm2020/lib/_internal/inbox.api.service.mjs +0 -56
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +0 -2
- package/esm2020/lib/_internal/interfaces/configuration.interface.mjs +0 -2
- package/esm2020/lib/_internal/interfaces/index.mjs +0 -2
- package/esm2020/lib/_internal/objects/annotations.mjs +0 -30
- package/esm2020/lib/_internal/objects/api.mjs +0 -2512
- package/esm2020/lib/_internal/objects/common.mjs +0 -60
- package/esm2020/lib/_internal/objects/configuration.mjs +0 -99
- package/esm2020/lib/_internal/objects/conversation-view.mjs +0 -33
- package/esm2020/lib/_internal/objects/conversation.mjs +0 -153
- package/esm2020/lib/_internal/objects/field-mask.mjs +0 -27
- package/esm2020/lib/_internal/objects/index.mjs +0 -18
- package/esm2020/lib/_internal/objects/message-template.mjs +0 -39
- package/esm2020/lib/_internal/objects/message.mjs +0 -149
- package/esm2020/lib/_internal/objects/participant.mjs +0 -192
- package/esm2020/lib/_internal/objects/widget.mjs +0 -93
- package/fesm2015/vendasta-conversation.mjs +0 -3852
- package/fesm2015/vendasta-conversation.mjs.map +0 -1
- package/fesm2020/vendasta-conversation.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/_internal/enums/api.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/common.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/conversation-view.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/evaluation.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/message.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/participant.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/enums/widget.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/annotations.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/common.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/conversation-view.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/conversation.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/field-mask.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/message-template.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/message.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/participant.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_internal/interfaces/widget.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/vendasta-conversation.mjs +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
4
|
import { map } from 'rxjs/operators';
|
|
6
5
|
|
|
7
6
|
// *********************************
|
|
@@ -47,6 +46,7 @@ var ConversationChannel;
|
|
|
47
46
|
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_EMAIL"] = 6] = "CONVERSATION_CHANNEL_EMAIL";
|
|
48
47
|
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS"] = 7] = "CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS";
|
|
49
48
|
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_WEB_CHAT"] = 8] = "CONVERSATION_CHANNEL_WEB_CHAT";
|
|
49
|
+
ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_INSTAGRAM"] = 9] = "CONVERSATION_CHANNEL_INSTAGRAM";
|
|
50
50
|
})(ConversationChannel || (ConversationChannel = {}));
|
|
51
51
|
var PlatformLocation;
|
|
52
52
|
(function (PlatformLocation) {
|
|
@@ -174,6 +174,8 @@ function enumStringToValue$a(enumRef, value) {
|
|
|
174
174
|
return enumRef[value];
|
|
175
175
|
}
|
|
176
176
|
class NamespaceDetail {
|
|
177
|
+
participantType;
|
|
178
|
+
internalParticipantId;
|
|
177
179
|
static fromProto(proto) {
|
|
178
180
|
let m = new NamespaceDetail();
|
|
179
181
|
m = Object.assign(m, proto);
|
|
@@ -200,6 +202,8 @@ class NamespaceDetail {
|
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
204
|
class SubjectParticipant {
|
|
205
|
+
participantType;
|
|
206
|
+
internalParticipantId;
|
|
203
207
|
static fromProto(proto) {
|
|
204
208
|
let m = new SubjectParticipant();
|
|
205
209
|
m = Object.assign(m, proto);
|
|
@@ -233,6 +237,21 @@ function enumStringToValue$9(enumRef, value) {
|
|
|
233
237
|
return enumRef[value];
|
|
234
238
|
}
|
|
235
239
|
class Conversation {
|
|
240
|
+
conversationId;
|
|
241
|
+
channel;
|
|
242
|
+
externalConversationId;
|
|
243
|
+
created;
|
|
244
|
+
updated;
|
|
245
|
+
deleted;
|
|
246
|
+
participantIds;
|
|
247
|
+
latestMsgSentTime;
|
|
248
|
+
originLocation;
|
|
249
|
+
originLocationExternalId;
|
|
250
|
+
lastSeenByParticipant;
|
|
251
|
+
conversationViewIds;
|
|
252
|
+
subjectParticipantsKey;
|
|
253
|
+
subjectParticipants;
|
|
254
|
+
isOpen;
|
|
236
255
|
static fromProto(proto) {
|
|
237
256
|
let m = new Conversation();
|
|
238
257
|
m = Object.assign(m, proto);
|
|
@@ -319,6 +338,9 @@ class Conversation {
|
|
|
319
338
|
}
|
|
320
339
|
}
|
|
321
340
|
class ConversationKey {
|
|
341
|
+
subjectParticipants;
|
|
342
|
+
channel;
|
|
343
|
+
originLocationExternalId;
|
|
322
344
|
static fromProto(proto) {
|
|
323
345
|
let m = new ConversationKey();
|
|
324
346
|
m = Object.assign(m, proto);
|
|
@@ -351,6 +373,8 @@ class ConversationKey {
|
|
|
351
373
|
}
|
|
352
374
|
}
|
|
353
375
|
class LastSeenByParticipant {
|
|
376
|
+
participantId;
|
|
377
|
+
lastSeenTime;
|
|
354
378
|
static fromProto(proto) {
|
|
355
379
|
let m = new LastSeenByParticipant();
|
|
356
380
|
m = Object.assign(m, proto);
|
|
@@ -384,6 +408,19 @@ function enumStringToValue$8(enumRef, value) {
|
|
|
384
408
|
return enumRef[value];
|
|
385
409
|
}
|
|
386
410
|
class Message {
|
|
411
|
+
messageId;
|
|
412
|
+
externalMessageId;
|
|
413
|
+
conversationId;
|
|
414
|
+
participantId;
|
|
415
|
+
type;
|
|
416
|
+
body;
|
|
417
|
+
error;
|
|
418
|
+
created;
|
|
419
|
+
updated;
|
|
420
|
+
deleted;
|
|
421
|
+
media;
|
|
422
|
+
sendStatus;
|
|
423
|
+
channel;
|
|
387
424
|
static fromProto(proto) {
|
|
388
425
|
let m = new Message();
|
|
389
426
|
m = Object.assign(m, proto);
|
|
@@ -458,6 +495,10 @@ class Message {
|
|
|
458
495
|
}
|
|
459
496
|
}
|
|
460
497
|
class ParticipantMessageStatus {
|
|
498
|
+
participantId;
|
|
499
|
+
messageId;
|
|
500
|
+
status;
|
|
501
|
+
updated;
|
|
461
502
|
static fromProto(proto) {
|
|
462
503
|
let m = new ParticipantMessageStatus();
|
|
463
504
|
m = Object.assign(m, proto);
|
|
@@ -493,6 +534,9 @@ class ParticipantMessageStatus {
|
|
|
493
534
|
}
|
|
494
535
|
}
|
|
495
536
|
class SendStatus {
|
|
537
|
+
status;
|
|
538
|
+
reason;
|
|
539
|
+
created;
|
|
496
540
|
static fromProto(proto) {
|
|
497
541
|
let m = new SendStatus();
|
|
498
542
|
m = Object.assign(m, proto);
|
|
@@ -532,6 +576,12 @@ function enumStringToValue$7(enumRef, value) {
|
|
|
532
576
|
return enumRef[value];
|
|
533
577
|
}
|
|
534
578
|
class Address {
|
|
579
|
+
firstLineAddress;
|
|
580
|
+
secondLineAddress;
|
|
581
|
+
city;
|
|
582
|
+
state;
|
|
583
|
+
country;
|
|
584
|
+
zipCode;
|
|
535
585
|
static fromProto(proto) {
|
|
536
586
|
let m = new Address();
|
|
537
587
|
m = Object.assign(m, proto);
|
|
@@ -567,6 +617,25 @@ class Address {
|
|
|
567
617
|
}
|
|
568
618
|
}
|
|
569
619
|
class Participant {
|
|
620
|
+
participantId;
|
|
621
|
+
internalParticipantId;
|
|
622
|
+
partnerId;
|
|
623
|
+
accountGroupId;
|
|
624
|
+
location;
|
|
625
|
+
channel;
|
|
626
|
+
externalParticipantId;
|
|
627
|
+
name;
|
|
628
|
+
created;
|
|
629
|
+
updated;
|
|
630
|
+
deleted;
|
|
631
|
+
participantType;
|
|
632
|
+
email;
|
|
633
|
+
phoneNumber;
|
|
634
|
+
address;
|
|
635
|
+
isSubjectParticipant;
|
|
636
|
+
isParticipantInternalInfoDeleted;
|
|
637
|
+
profileImageUrl;
|
|
638
|
+
namespaceHierarchy;
|
|
570
639
|
static fromProto(proto) {
|
|
571
640
|
let m = new Participant();
|
|
572
641
|
m = Object.assign(m, proto);
|
|
@@ -665,6 +734,13 @@ class Participant {
|
|
|
665
734
|
}
|
|
666
735
|
}
|
|
667
736
|
class ParticipantKey {
|
|
737
|
+
internalParticipantId;
|
|
738
|
+
partnerId;
|
|
739
|
+
accountGroupId;
|
|
740
|
+
location;
|
|
741
|
+
channels;
|
|
742
|
+
participantType;
|
|
743
|
+
namespaceHierarchy;
|
|
668
744
|
static fromProto(proto) {
|
|
669
745
|
let m = new ParticipantKey();
|
|
670
746
|
m = Object.assign(m, proto);
|
|
@@ -722,6 +798,8 @@ function enumStringToValue$6(enumRef, value) {
|
|
|
722
798
|
return enumRef[value];
|
|
723
799
|
}
|
|
724
800
|
class Access {
|
|
801
|
+
scope;
|
|
802
|
+
public;
|
|
725
803
|
static fromProto(proto) {
|
|
726
804
|
let m = new Access();
|
|
727
805
|
m = Object.assign(m, proto);
|
|
@@ -752,6 +830,18 @@ function enumStringToValue$5(enumRef, value) {
|
|
|
752
830
|
return enumRef[value];
|
|
753
831
|
}
|
|
754
832
|
class Configuration {
|
|
833
|
+
subjectParticipant;
|
|
834
|
+
createdAt;
|
|
835
|
+
updatedAt;
|
|
836
|
+
availabilityMessage;
|
|
837
|
+
showAvailabilityMessage;
|
|
838
|
+
googleBusinessMessagesEnabled;
|
|
839
|
+
smsEnabled;
|
|
840
|
+
inboxProEnabled;
|
|
841
|
+
webChatEnabled;
|
|
842
|
+
facebookMessengerEnabled;
|
|
843
|
+
multiLocationEnabled;
|
|
844
|
+
instagramMessagingEnabled;
|
|
755
845
|
static fromProto(proto) {
|
|
756
846
|
let m = new Configuration();
|
|
757
847
|
m = Object.assign(m, proto);
|
|
@@ -807,10 +897,19 @@ class Configuration {
|
|
|
807
897
|
if (typeof this.multiLocationEnabled !== 'undefined') {
|
|
808
898
|
toReturn['multiLocationEnabled'] = this.multiLocationEnabled;
|
|
809
899
|
}
|
|
900
|
+
if (typeof this.instagramMessagingEnabled !== 'undefined') {
|
|
901
|
+
toReturn['instagramMessagingEnabled'] = this.instagramMessagingEnabled;
|
|
902
|
+
}
|
|
810
903
|
return toReturn;
|
|
811
904
|
}
|
|
812
905
|
}
|
|
813
906
|
class ProductFeature {
|
|
907
|
+
googleBusinessMessagesEnabled;
|
|
908
|
+
smsEnabled;
|
|
909
|
+
multiLocationEnabled;
|
|
910
|
+
webChatEnabled;
|
|
911
|
+
facebookMessengerEnabled;
|
|
912
|
+
instagramMessagingEnabled;
|
|
814
913
|
static fromProto(proto) {
|
|
815
914
|
let m = new ProductFeature();
|
|
816
915
|
m = Object.assign(m, proto);
|
|
@@ -839,6 +938,9 @@ class ProductFeature {
|
|
|
839
938
|
if (typeof this.facebookMessengerEnabled !== 'undefined') {
|
|
840
939
|
toReturn['facebookMessengerEnabled'] = this.facebookMessengerEnabled;
|
|
841
940
|
}
|
|
941
|
+
if (typeof this.instagramMessagingEnabled !== 'undefined') {
|
|
942
|
+
toReturn['instagramMessagingEnabled'] = this.instagramMessagingEnabled;
|
|
943
|
+
}
|
|
842
944
|
return toReturn;
|
|
843
945
|
}
|
|
844
946
|
}
|
|
@@ -850,6 +952,8 @@ function enumStringToValue$4(enumRef, value) {
|
|
|
850
952
|
return enumRef[value];
|
|
851
953
|
}
|
|
852
954
|
class View {
|
|
955
|
+
viewId;
|
|
956
|
+
created;
|
|
853
957
|
static fromProto(proto) {
|
|
854
958
|
let m = new View();
|
|
855
959
|
m = Object.assign(m, proto);
|
|
@@ -883,6 +987,7 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
883
987
|
return enumRef[value];
|
|
884
988
|
}
|
|
885
989
|
class DataSources {
|
|
990
|
+
businessProfile;
|
|
886
991
|
static fromProto(proto) {
|
|
887
992
|
let m = new DataSources();
|
|
888
993
|
m = Object.assign(m, proto);
|
|
@@ -903,6 +1008,19 @@ class DataSources {
|
|
|
903
1008
|
}
|
|
904
1009
|
}
|
|
905
1010
|
class Widget {
|
|
1011
|
+
widgetId;
|
|
1012
|
+
name;
|
|
1013
|
+
namespace;
|
|
1014
|
+
color;
|
|
1015
|
+
allowedUrls;
|
|
1016
|
+
position;
|
|
1017
|
+
created;
|
|
1018
|
+
updated;
|
|
1019
|
+
isEnabled;
|
|
1020
|
+
welcomeMessage;
|
|
1021
|
+
textColor;
|
|
1022
|
+
accentColor;
|
|
1023
|
+
accentTextColor;
|
|
906
1024
|
static fromProto(proto) {
|
|
907
1025
|
let m = new Widget();
|
|
908
1026
|
m = Object.assign(m, proto);
|
|
@@ -975,6 +1093,7 @@ function enumStringToValue$2(enumRef, value) {
|
|
|
975
1093
|
return enumRef[value];
|
|
976
1094
|
}
|
|
977
1095
|
class FieldMask {
|
|
1096
|
+
paths;
|
|
978
1097
|
static fromProto(proto) {
|
|
979
1098
|
let m = new FieldMask();
|
|
980
1099
|
m = Object.assign(m, proto);
|
|
@@ -1002,6 +1121,10 @@ function enumStringToValue$1(enumRef, value) {
|
|
|
1002
1121
|
return enumRef[value];
|
|
1003
1122
|
}
|
|
1004
1123
|
class MessageTemplate {
|
|
1124
|
+
templateId;
|
|
1125
|
+
name;
|
|
1126
|
+
content;
|
|
1127
|
+
created;
|
|
1005
1128
|
static fromProto(proto) {
|
|
1006
1129
|
let m = new MessageTemplate();
|
|
1007
1130
|
m = Object.assign(m, proto);
|
|
@@ -1041,6 +1164,9 @@ function enumStringToValue(enumRef, value) {
|
|
|
1041
1164
|
return enumRef[value];
|
|
1042
1165
|
}
|
|
1043
1166
|
class AddConversationToConversationViewRequest {
|
|
1167
|
+
viewId;
|
|
1168
|
+
conversationId;
|
|
1169
|
+
participantId;
|
|
1044
1170
|
static fromProto(proto) {
|
|
1045
1171
|
let m = new AddConversationToConversationViewRequest();
|
|
1046
1172
|
m = Object.assign(m, proto);
|
|
@@ -1067,6 +1193,8 @@ class AddConversationToConversationViewRequest {
|
|
|
1067
1193
|
}
|
|
1068
1194
|
}
|
|
1069
1195
|
class AddMultiParticipantsRequest {
|
|
1196
|
+
conversationId;
|
|
1197
|
+
participants;
|
|
1070
1198
|
static fromProto(proto) {
|
|
1071
1199
|
let m = new AddMultiParticipantsRequest();
|
|
1072
1200
|
m = Object.assign(m, proto);
|
|
@@ -1093,6 +1221,7 @@ class AddMultiParticipantsRequest {
|
|
|
1093
1221
|
}
|
|
1094
1222
|
}
|
|
1095
1223
|
class AddMultiParticipantsResponse {
|
|
1224
|
+
participants;
|
|
1096
1225
|
static fromProto(proto) {
|
|
1097
1226
|
let m = new AddMultiParticipantsResponse();
|
|
1098
1227
|
m = Object.assign(m, proto);
|
|
@@ -1115,7 +1244,38 @@ class AddMultiParticipantsResponse {
|
|
|
1115
1244
|
return toReturn;
|
|
1116
1245
|
}
|
|
1117
1246
|
}
|
|
1247
|
+
class CapturedLead {
|
|
1248
|
+
name;
|
|
1249
|
+
email;
|
|
1250
|
+
phone;
|
|
1251
|
+
static fromProto(proto) {
|
|
1252
|
+
let m = new CapturedLead();
|
|
1253
|
+
m = Object.assign(m, proto);
|
|
1254
|
+
return m;
|
|
1255
|
+
}
|
|
1256
|
+
constructor(kwargs) {
|
|
1257
|
+
if (!kwargs) {
|
|
1258
|
+
return;
|
|
1259
|
+
}
|
|
1260
|
+
Object.assign(this, kwargs);
|
|
1261
|
+
}
|
|
1262
|
+
toApiJson() {
|
|
1263
|
+
const toReturn = {};
|
|
1264
|
+
if (typeof this.name !== 'undefined') {
|
|
1265
|
+
toReturn['name'] = this.name;
|
|
1266
|
+
}
|
|
1267
|
+
if (typeof this.email !== 'undefined') {
|
|
1268
|
+
toReturn['email'] = this.email;
|
|
1269
|
+
}
|
|
1270
|
+
if (typeof this.phone !== 'undefined') {
|
|
1271
|
+
toReturn['phone'] = this.phone;
|
|
1272
|
+
}
|
|
1273
|
+
return toReturn;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1118
1276
|
class ConversationMessageCount {
|
|
1277
|
+
conversationId;
|
|
1278
|
+
count;
|
|
1119
1279
|
static fromProto(proto) {
|
|
1120
1280
|
let m = new ConversationMessageCount();
|
|
1121
1281
|
m = Object.assign(m, proto);
|
|
@@ -1142,6 +1302,8 @@ class ConversationMessageCount {
|
|
|
1142
1302
|
}
|
|
1143
1303
|
}
|
|
1144
1304
|
class LookupConversationsResponseConversations {
|
|
1305
|
+
conversation;
|
|
1306
|
+
participants;
|
|
1145
1307
|
static fromProto(proto) {
|
|
1146
1308
|
let m = new LookupConversationsResponseConversations();
|
|
1147
1309
|
m = Object.assign(m, proto);
|
|
@@ -1171,6 +1333,8 @@ class LookupConversationsResponseConversations {
|
|
|
1171
1333
|
}
|
|
1172
1334
|
}
|
|
1173
1335
|
class GetMultiConversationMessageCountResponseCountsEntry {
|
|
1336
|
+
key;
|
|
1337
|
+
value;
|
|
1174
1338
|
static fromProto(proto) {
|
|
1175
1339
|
let m = new GetMultiConversationMessageCountResponseCountsEntry();
|
|
1176
1340
|
m = Object.assign(m, proto);
|
|
@@ -1197,6 +1361,13 @@ class GetMultiConversationMessageCountResponseCountsEntry {
|
|
|
1197
1361
|
}
|
|
1198
1362
|
}
|
|
1199
1363
|
class CreateConversationRequest {
|
|
1364
|
+
participants;
|
|
1365
|
+
channel;
|
|
1366
|
+
externalConversationId;
|
|
1367
|
+
created;
|
|
1368
|
+
updated;
|
|
1369
|
+
originLocation;
|
|
1370
|
+
originLocationExternalId;
|
|
1200
1371
|
static fromProto(proto) {
|
|
1201
1372
|
let m = new CreateConversationRequest();
|
|
1202
1373
|
m = Object.assign(m, proto);
|
|
@@ -1250,6 +1421,8 @@ class CreateConversationRequest {
|
|
|
1250
1421
|
}
|
|
1251
1422
|
}
|
|
1252
1423
|
class CreateConversationResponse {
|
|
1424
|
+
conversation;
|
|
1425
|
+
participants;
|
|
1253
1426
|
static fromProto(proto) {
|
|
1254
1427
|
let m = new CreateConversationResponse();
|
|
1255
1428
|
m = Object.assign(m, proto);
|
|
@@ -1279,6 +1452,8 @@ class CreateConversationResponse {
|
|
|
1279
1452
|
}
|
|
1280
1453
|
}
|
|
1281
1454
|
class CreateMessageTemplateRequest {
|
|
1455
|
+
template;
|
|
1456
|
+
subjectParticipant;
|
|
1282
1457
|
static fromProto(proto) {
|
|
1283
1458
|
let m = new CreateMessageTemplateRequest();
|
|
1284
1459
|
m = Object.assign(m, proto);
|
|
@@ -1308,6 +1483,7 @@ class CreateMessageTemplateRequest {
|
|
|
1308
1483
|
}
|
|
1309
1484
|
}
|
|
1310
1485
|
class CreateMessageTemplateResponse {
|
|
1486
|
+
template;
|
|
1311
1487
|
static fromProto(proto) {
|
|
1312
1488
|
let m = new CreateMessageTemplateResponse();
|
|
1313
1489
|
m = Object.assign(m, proto);
|
|
@@ -1331,6 +1507,8 @@ class CreateMessageTemplateResponse {
|
|
|
1331
1507
|
}
|
|
1332
1508
|
}
|
|
1333
1509
|
class CreateMultiMessagesRequest {
|
|
1510
|
+
messages;
|
|
1511
|
+
lastSeen;
|
|
1334
1512
|
static fromProto(proto) {
|
|
1335
1513
|
let m = new CreateMultiMessagesRequest();
|
|
1336
1514
|
m = Object.assign(m, proto);
|
|
@@ -1360,6 +1538,8 @@ class CreateMultiMessagesRequest {
|
|
|
1360
1538
|
}
|
|
1361
1539
|
}
|
|
1362
1540
|
class CreateWidgetConversationRequest {
|
|
1541
|
+
widgetId;
|
|
1542
|
+
chatSourceUrl;
|
|
1363
1543
|
static fromProto(proto) {
|
|
1364
1544
|
let m = new CreateWidgetConversationRequest();
|
|
1365
1545
|
m = Object.assign(m, proto);
|
|
@@ -1383,6 +1563,8 @@ class CreateWidgetConversationRequest {
|
|
|
1383
1563
|
}
|
|
1384
1564
|
}
|
|
1385
1565
|
class CreateWidgetConversationResponse {
|
|
1566
|
+
widgetParticipantToken;
|
|
1567
|
+
conversation;
|
|
1386
1568
|
static fromProto(proto) {
|
|
1387
1569
|
let m = new CreateWidgetConversationResponse();
|
|
1388
1570
|
m = Object.assign(m, proto);
|
|
@@ -1409,6 +1591,15 @@ class CreateWidgetConversationResponse {
|
|
|
1409
1591
|
}
|
|
1410
1592
|
}
|
|
1411
1593
|
class CreateWidgetRequest {
|
|
1594
|
+
name;
|
|
1595
|
+
namespace;
|
|
1596
|
+
color;
|
|
1597
|
+
allowedUrls;
|
|
1598
|
+
welcomeMessage;
|
|
1599
|
+
dataSources;
|
|
1600
|
+
textColor;
|
|
1601
|
+
accentColor;
|
|
1602
|
+
accentTextColor;
|
|
1412
1603
|
static fromProto(proto) {
|
|
1413
1604
|
let m = new CreateWidgetRequest();
|
|
1414
1605
|
m = Object.assign(m, proto);
|
|
@@ -1456,6 +1647,7 @@ class CreateWidgetRequest {
|
|
|
1456
1647
|
}
|
|
1457
1648
|
}
|
|
1458
1649
|
class CreateWidgetResponse {
|
|
1650
|
+
widget;
|
|
1459
1651
|
static fromProto(proto) {
|
|
1460
1652
|
let m = new CreateWidgetResponse();
|
|
1461
1653
|
m = Object.assign(m, proto);
|
|
@@ -1479,6 +1671,8 @@ class CreateWidgetResponse {
|
|
|
1479
1671
|
}
|
|
1480
1672
|
}
|
|
1481
1673
|
class MetadataDataEntry {
|
|
1674
|
+
key;
|
|
1675
|
+
value;
|
|
1482
1676
|
static fromProto(proto) {
|
|
1483
1677
|
let m = new MetadataDataEntry();
|
|
1484
1678
|
m = Object.assign(m, proto);
|
|
@@ -1502,6 +1696,7 @@ class MetadataDataEntry {
|
|
|
1502
1696
|
}
|
|
1503
1697
|
}
|
|
1504
1698
|
class DeleteConversationRequest {
|
|
1699
|
+
conversationId;
|
|
1505
1700
|
static fromProto(proto) {
|
|
1506
1701
|
let m = new DeleteConversationRequest();
|
|
1507
1702
|
m = Object.assign(m, proto);
|
|
@@ -1522,6 +1717,7 @@ class DeleteConversationRequest {
|
|
|
1522
1717
|
}
|
|
1523
1718
|
}
|
|
1524
1719
|
class DeleteMessageRequest {
|
|
1720
|
+
messageId;
|
|
1525
1721
|
static fromProto(proto) {
|
|
1526
1722
|
let m = new DeleteMessageRequest();
|
|
1527
1723
|
m = Object.assign(m, proto);
|
|
@@ -1542,6 +1738,7 @@ class DeleteMessageRequest {
|
|
|
1542
1738
|
}
|
|
1543
1739
|
}
|
|
1544
1740
|
class DeleteMessageTemplateRequest {
|
|
1741
|
+
templateId;
|
|
1545
1742
|
static fromProto(proto) {
|
|
1546
1743
|
let m = new DeleteMessageTemplateRequest();
|
|
1547
1744
|
m = Object.assign(m, proto);
|
|
@@ -1562,6 +1759,7 @@ class DeleteMessageTemplateRequest {
|
|
|
1562
1759
|
}
|
|
1563
1760
|
}
|
|
1564
1761
|
class DeleteWidgetRequest {
|
|
1762
|
+
widgetId;
|
|
1565
1763
|
static fromProto(proto) {
|
|
1566
1764
|
let m = new DeleteWidgetRequest();
|
|
1567
1765
|
m = Object.assign(m, proto);
|
|
@@ -1581,9 +1779,13 @@ class DeleteWidgetRequest {
|
|
|
1581
1779
|
return toReturn;
|
|
1582
1780
|
}
|
|
1583
1781
|
}
|
|
1584
|
-
class
|
|
1782
|
+
class GetMultiConversationDetailsResponseDetailedConversation {
|
|
1783
|
+
conversation;
|
|
1784
|
+
latestMessage;
|
|
1785
|
+
participants;
|
|
1786
|
+
summary;
|
|
1585
1787
|
static fromProto(proto) {
|
|
1586
|
-
let m = new
|
|
1788
|
+
let m = new GetMultiConversationDetailsResponseDetailedConversation();
|
|
1587
1789
|
m = Object.assign(m, proto);
|
|
1588
1790
|
if (proto.conversation) {
|
|
1589
1791
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -1613,12 +1815,18 @@ class SearchConversationsResponseDetailedConversation {
|
|
|
1613
1815
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
1614
1816
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
1615
1817
|
}
|
|
1818
|
+
if (typeof this.summary !== 'undefined') {
|
|
1819
|
+
toReturn['summary'] = this.summary;
|
|
1820
|
+
}
|
|
1616
1821
|
return toReturn;
|
|
1617
1822
|
}
|
|
1618
1823
|
}
|
|
1619
|
-
class
|
|
1824
|
+
class SearchConversationsResponseDetailedConversation {
|
|
1825
|
+
conversation;
|
|
1826
|
+
latestMessage;
|
|
1827
|
+
participants;
|
|
1620
1828
|
static fromProto(proto) {
|
|
1621
|
-
let m = new
|
|
1829
|
+
let m = new SearchConversationsResponseDetailedConversation();
|
|
1622
1830
|
m = Object.assign(m, proto);
|
|
1623
1831
|
if (proto.conversation) {
|
|
1624
1832
|
m.conversation = Conversation.fromProto(proto.conversation);
|
|
@@ -1648,13 +1856,13 @@ class GetMultiConversationDetailsResponseDetailedConversation {
|
|
|
1648
1856
|
if (typeof this.participants !== 'undefined' && this.participants !== null) {
|
|
1649
1857
|
toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
|
|
1650
1858
|
}
|
|
1651
|
-
if (typeof this.summary !== 'undefined') {
|
|
1652
|
-
toReturn['summary'] = this.summary;
|
|
1653
|
-
}
|
|
1654
1859
|
return toReturn;
|
|
1655
1860
|
}
|
|
1656
1861
|
}
|
|
1657
1862
|
class EvaluateResponseRequest {
|
|
1863
|
+
messageId;
|
|
1864
|
+
sentiment;
|
|
1865
|
+
comment;
|
|
1658
1866
|
static fromProto(proto) {
|
|
1659
1867
|
let m = new EvaluateResponseRequest();
|
|
1660
1868
|
m = Object.assign(m, proto);
|
|
@@ -1684,6 +1892,7 @@ class EvaluateResponseRequest {
|
|
|
1684
1892
|
}
|
|
1685
1893
|
}
|
|
1686
1894
|
class GetAvailableChannelsForConversationRequest {
|
|
1895
|
+
conversationId;
|
|
1687
1896
|
static fromProto(proto) {
|
|
1688
1897
|
let m = new GetAvailableChannelsForConversationRequest();
|
|
1689
1898
|
m = Object.assign(m, proto);
|
|
@@ -1704,6 +1913,8 @@ class GetAvailableChannelsForConversationRequest {
|
|
|
1704
1913
|
}
|
|
1705
1914
|
}
|
|
1706
1915
|
class GetAvailableChannelsForConversationResponse {
|
|
1916
|
+
channels;
|
|
1917
|
+
preferredChannel;
|
|
1707
1918
|
static fromProto(proto) {
|
|
1708
1919
|
let m = new GetAvailableChannelsForConversationResponse();
|
|
1709
1920
|
m = Object.assign(m, proto);
|
|
@@ -1733,6 +1944,7 @@ class GetAvailableChannelsForConversationResponse {
|
|
|
1733
1944
|
}
|
|
1734
1945
|
}
|
|
1735
1946
|
class GetConfigurationRequest {
|
|
1947
|
+
subjectParticipant;
|
|
1736
1948
|
static fromProto(proto) {
|
|
1737
1949
|
let m = new GetConfigurationRequest();
|
|
1738
1950
|
m = Object.assign(m, proto);
|
|
@@ -1756,6 +1968,7 @@ class GetConfigurationRequest {
|
|
|
1756
1968
|
}
|
|
1757
1969
|
}
|
|
1758
1970
|
class GetConfigurationResponse {
|
|
1971
|
+
configuration;
|
|
1759
1972
|
static fromProto(proto) {
|
|
1760
1973
|
let m = new GetConfigurationResponse();
|
|
1761
1974
|
m = Object.assign(m, proto);
|
|
@@ -1779,6 +1992,7 @@ class GetConfigurationResponse {
|
|
|
1779
1992
|
}
|
|
1780
1993
|
}
|
|
1781
1994
|
class GetConversationByKeyRequest {
|
|
1995
|
+
conversationKey;
|
|
1782
1996
|
static fromProto(proto) {
|
|
1783
1997
|
let m = new GetConversationByKeyRequest();
|
|
1784
1998
|
m = Object.assign(m, proto);
|
|
@@ -1802,6 +2016,7 @@ class GetConversationByKeyRequest {
|
|
|
1802
2016
|
}
|
|
1803
2017
|
}
|
|
1804
2018
|
class GetConversationByKeyResponse {
|
|
2019
|
+
conversation;
|
|
1805
2020
|
static fromProto(proto) {
|
|
1806
2021
|
let m = new GetConversationByKeyResponse();
|
|
1807
2022
|
m = Object.assign(m, proto);
|
|
@@ -1825,6 +2040,7 @@ class GetConversationByKeyResponse {
|
|
|
1825
2040
|
}
|
|
1826
2041
|
}
|
|
1827
2042
|
class GetConversationSummaryRequest {
|
|
2043
|
+
conversationId;
|
|
1828
2044
|
static fromProto(proto) {
|
|
1829
2045
|
let m = new GetConversationSummaryRequest();
|
|
1830
2046
|
m = Object.assign(m, proto);
|
|
@@ -1845,6 +2061,7 @@ class GetConversationSummaryRequest {
|
|
|
1845
2061
|
}
|
|
1846
2062
|
}
|
|
1847
2063
|
class GetConversationSummaryResponse {
|
|
2064
|
+
summary;
|
|
1848
2065
|
static fromProto(proto) {
|
|
1849
2066
|
let m = new GetConversationSummaryResponse();
|
|
1850
2067
|
m = Object.assign(m, proto);
|
|
@@ -1865,6 +2082,7 @@ class GetConversationSummaryResponse {
|
|
|
1865
2082
|
}
|
|
1866
2083
|
}
|
|
1867
2084
|
class GetConversationViewsRequest {
|
|
2085
|
+
participantId;
|
|
1868
2086
|
static fromProto(proto) {
|
|
1869
2087
|
let m = new GetConversationViewsRequest();
|
|
1870
2088
|
m = Object.assign(m, proto);
|
|
@@ -1885,6 +2103,7 @@ class GetConversationViewsRequest {
|
|
|
1885
2103
|
}
|
|
1886
2104
|
}
|
|
1887
2105
|
class GetConversationViewsResponse {
|
|
2106
|
+
views;
|
|
1888
2107
|
static fromProto(proto) {
|
|
1889
2108
|
let m = new GetConversationViewsResponse();
|
|
1890
2109
|
m = Object.assign(m, proto);
|
|
@@ -1908,6 +2127,7 @@ class GetConversationViewsResponse {
|
|
|
1908
2127
|
}
|
|
1909
2128
|
}
|
|
1910
2129
|
class GetMessageRequest {
|
|
2130
|
+
messageId;
|
|
1911
2131
|
static fromProto(proto) {
|
|
1912
2132
|
let m = new GetMessageRequest();
|
|
1913
2133
|
m = Object.assign(m, proto);
|
|
@@ -1928,6 +2148,7 @@ class GetMessageRequest {
|
|
|
1928
2148
|
}
|
|
1929
2149
|
}
|
|
1930
2150
|
class GetMessageTemplateRequest {
|
|
2151
|
+
templateId;
|
|
1931
2152
|
static fromProto(proto) {
|
|
1932
2153
|
let m = new GetMessageTemplateRequest();
|
|
1933
2154
|
m = Object.assign(m, proto);
|
|
@@ -1948,6 +2169,7 @@ class GetMessageTemplateRequest {
|
|
|
1948
2169
|
}
|
|
1949
2170
|
}
|
|
1950
2171
|
class GetMessageTemplateResponse {
|
|
2172
|
+
template;
|
|
1951
2173
|
static fromProto(proto) {
|
|
1952
2174
|
let m = new GetMessageTemplateResponse();
|
|
1953
2175
|
m = Object.assign(m, proto);
|
|
@@ -1971,6 +2193,7 @@ class GetMessageTemplateResponse {
|
|
|
1971
2193
|
}
|
|
1972
2194
|
}
|
|
1973
2195
|
class GetMultiConfigurationRequest {
|
|
2196
|
+
subjectParticipants;
|
|
1974
2197
|
static fromProto(proto) {
|
|
1975
2198
|
let m = new GetMultiConfigurationRequest();
|
|
1976
2199
|
m = Object.assign(m, proto);
|
|
@@ -1994,6 +2217,7 @@ class GetMultiConfigurationRequest {
|
|
|
1994
2217
|
}
|
|
1995
2218
|
}
|
|
1996
2219
|
class GetMultiConfigurationResponse {
|
|
2220
|
+
configurations;
|
|
1997
2221
|
static fromProto(proto) {
|
|
1998
2222
|
let m = new GetMultiConfigurationResponse();
|
|
1999
2223
|
m = Object.assign(m, proto);
|
|
@@ -2017,6 +2241,8 @@ class GetMultiConfigurationResponse {
|
|
|
2017
2241
|
}
|
|
2018
2242
|
}
|
|
2019
2243
|
class GetMultiConversationDetailsRequest {
|
|
2244
|
+
conversationIds;
|
|
2245
|
+
options;
|
|
2020
2246
|
static fromProto(proto) {
|
|
2021
2247
|
let m = new GetMultiConversationDetailsRequest();
|
|
2022
2248
|
m = Object.assign(m, proto);
|
|
@@ -2043,6 +2269,7 @@ class GetMultiConversationDetailsRequest {
|
|
|
2043
2269
|
}
|
|
2044
2270
|
}
|
|
2045
2271
|
class GetMultiConversationDetailsResponse {
|
|
2272
|
+
conversations;
|
|
2046
2273
|
static fromProto(proto) {
|
|
2047
2274
|
let m = new GetMultiConversationDetailsResponse();
|
|
2048
2275
|
m = Object.assign(m, proto);
|
|
@@ -2066,6 +2293,7 @@ class GetMultiConversationDetailsResponse {
|
|
|
2066
2293
|
}
|
|
2067
2294
|
}
|
|
2068
2295
|
class GetMultiConversationMessageCountRequest {
|
|
2296
|
+
conversationIds;
|
|
2069
2297
|
static fromProto(proto) {
|
|
2070
2298
|
let m = new GetMultiConversationMessageCountRequest();
|
|
2071
2299
|
m = Object.assign(m, proto);
|
|
@@ -2086,6 +2314,8 @@ class GetMultiConversationMessageCountRequest {
|
|
|
2086
2314
|
}
|
|
2087
2315
|
}
|
|
2088
2316
|
class GetMultiConversationMessageCountResponse {
|
|
2317
|
+
messageCounts;
|
|
2318
|
+
counts;
|
|
2089
2319
|
static fromProto(proto) {
|
|
2090
2320
|
let m = new GetMultiConversationMessageCountResponse();
|
|
2091
2321
|
m = Object.assign(m, proto);
|
|
@@ -2115,6 +2345,9 @@ class GetMultiConversationMessageCountResponse {
|
|
|
2115
2345
|
}
|
|
2116
2346
|
}
|
|
2117
2347
|
class GetMultiMessagesRequest {
|
|
2348
|
+
messageIds;
|
|
2349
|
+
conversationId;
|
|
2350
|
+
languageCode;
|
|
2118
2351
|
static fromProto(proto) {
|
|
2119
2352
|
let m = new GetMultiMessagesRequest();
|
|
2120
2353
|
m = Object.assign(m, proto);
|
|
@@ -2141,6 +2374,7 @@ class GetMultiMessagesRequest {
|
|
|
2141
2374
|
}
|
|
2142
2375
|
}
|
|
2143
2376
|
class GetMultiMessagesResponse {
|
|
2377
|
+
messages;
|
|
2144
2378
|
static fromProto(proto) {
|
|
2145
2379
|
let m = new GetMultiMessagesResponse();
|
|
2146
2380
|
m = Object.assign(m, proto);
|
|
@@ -2164,6 +2398,8 @@ class GetMultiMessagesResponse {
|
|
|
2164
2398
|
}
|
|
2165
2399
|
}
|
|
2166
2400
|
class GetMultiParticipantsRequest {
|
|
2401
|
+
participantIds;
|
|
2402
|
+
conversationId;
|
|
2167
2403
|
static fromProto(proto) {
|
|
2168
2404
|
let m = new GetMultiParticipantsRequest();
|
|
2169
2405
|
m = Object.assign(m, proto);
|
|
@@ -2187,6 +2423,7 @@ class GetMultiParticipantsRequest {
|
|
|
2187
2423
|
}
|
|
2188
2424
|
}
|
|
2189
2425
|
class GetMultiParticipantsResponse {
|
|
2426
|
+
participants;
|
|
2190
2427
|
static fromProto(proto) {
|
|
2191
2428
|
let m = new GetMultiParticipantsResponse();
|
|
2192
2429
|
m = Object.assign(m, proto);
|
|
@@ -2210,6 +2447,7 @@ class GetMultiParticipantsResponse {
|
|
|
2210
2447
|
}
|
|
2211
2448
|
}
|
|
2212
2449
|
class GetMultiWidgetMessagesRequest {
|
|
2450
|
+
messageIds;
|
|
2213
2451
|
static fromProto(proto) {
|
|
2214
2452
|
let m = new GetMultiWidgetMessagesRequest();
|
|
2215
2453
|
m = Object.assign(m, proto);
|
|
@@ -2230,6 +2468,7 @@ class GetMultiWidgetMessagesRequest {
|
|
|
2230
2468
|
}
|
|
2231
2469
|
}
|
|
2232
2470
|
class GetMultiWidgetMessagesResponse {
|
|
2471
|
+
messages;
|
|
2233
2472
|
static fromProto(proto) {
|
|
2234
2473
|
let m = new GetMultiWidgetMessagesResponse();
|
|
2235
2474
|
m = Object.assign(m, proto);
|
|
@@ -2252,7 +2491,53 @@ class GetMultiWidgetMessagesResponse {
|
|
|
2252
2491
|
return toReturn;
|
|
2253
2492
|
}
|
|
2254
2493
|
}
|
|
2494
|
+
class GetOwnerEmailRequest {
|
|
2495
|
+
subjectParticipant;
|
|
2496
|
+
static fromProto(proto) {
|
|
2497
|
+
let m = new GetOwnerEmailRequest();
|
|
2498
|
+
m = Object.assign(m, proto);
|
|
2499
|
+
if (proto.subjectParticipant) {
|
|
2500
|
+
m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
|
|
2501
|
+
}
|
|
2502
|
+
return m;
|
|
2503
|
+
}
|
|
2504
|
+
constructor(kwargs) {
|
|
2505
|
+
if (!kwargs) {
|
|
2506
|
+
return;
|
|
2507
|
+
}
|
|
2508
|
+
Object.assign(this, kwargs);
|
|
2509
|
+
}
|
|
2510
|
+
toApiJson() {
|
|
2511
|
+
const toReturn = {};
|
|
2512
|
+
if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
|
|
2513
|
+
toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
|
|
2514
|
+
}
|
|
2515
|
+
return toReturn;
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
class GetOwnerEmailResponse {
|
|
2519
|
+
forwardingEmail;
|
|
2520
|
+
static fromProto(proto) {
|
|
2521
|
+
let m = new GetOwnerEmailResponse();
|
|
2522
|
+
m = Object.assign(m, proto);
|
|
2523
|
+
return m;
|
|
2524
|
+
}
|
|
2525
|
+
constructor(kwargs) {
|
|
2526
|
+
if (!kwargs) {
|
|
2527
|
+
return;
|
|
2528
|
+
}
|
|
2529
|
+
Object.assign(this, kwargs);
|
|
2530
|
+
}
|
|
2531
|
+
toApiJson() {
|
|
2532
|
+
const toReturn = {};
|
|
2533
|
+
if (typeof this.forwardingEmail !== 'undefined') {
|
|
2534
|
+
toReturn['forwardingEmail'] = this.forwardingEmail;
|
|
2535
|
+
}
|
|
2536
|
+
return toReturn;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2255
2539
|
class GetParticipantsByKeyRequest {
|
|
2540
|
+
participantKey;
|
|
2256
2541
|
static fromProto(proto) {
|
|
2257
2542
|
let m = new GetParticipantsByKeyRequest();
|
|
2258
2543
|
m = Object.assign(m, proto);
|
|
@@ -2276,6 +2561,8 @@ class GetParticipantsByKeyRequest {
|
|
|
2276
2561
|
}
|
|
2277
2562
|
}
|
|
2278
2563
|
class GetParticipantsByKeyResponse {
|
|
2564
|
+
participants;
|
|
2565
|
+
participant;
|
|
2279
2566
|
static fromProto(proto) {
|
|
2280
2567
|
let m = new GetParticipantsByKeyResponse();
|
|
2281
2568
|
m = Object.assign(m, proto);
|
|
@@ -2305,6 +2592,7 @@ class GetParticipantsByKeyResponse {
|
|
|
2305
2592
|
}
|
|
2306
2593
|
}
|
|
2307
2594
|
class GetWidgetConfigRequest {
|
|
2595
|
+
widgetId;
|
|
2308
2596
|
static fromProto(proto) {
|
|
2309
2597
|
let m = new GetWidgetConfigRequest();
|
|
2310
2598
|
m = Object.assign(m, proto);
|
|
@@ -2325,6 +2613,13 @@ class GetWidgetConfigRequest {
|
|
|
2325
2613
|
}
|
|
2326
2614
|
}
|
|
2327
2615
|
class GetWidgetConfigResponse {
|
|
2616
|
+
name;
|
|
2617
|
+
color;
|
|
2618
|
+
isEnabled;
|
|
2619
|
+
welcomeMessage;
|
|
2620
|
+
textColor;
|
|
2621
|
+
accentColor;
|
|
2622
|
+
accentTextColor;
|
|
2328
2623
|
static fromProto(proto) {
|
|
2329
2624
|
let m = new GetWidgetConfigResponse();
|
|
2330
2625
|
m = Object.assign(m, proto);
|
|
@@ -2363,6 +2658,7 @@ class GetWidgetConfigResponse {
|
|
|
2363
2658
|
}
|
|
2364
2659
|
}
|
|
2365
2660
|
class GetWidgetConversationResponse {
|
|
2661
|
+
conversation;
|
|
2366
2662
|
static fromProto(proto) {
|
|
2367
2663
|
let m = new GetWidgetConversationResponse();
|
|
2368
2664
|
m = Object.assign(m, proto);
|
|
@@ -2386,6 +2682,7 @@ class GetWidgetConversationResponse {
|
|
|
2386
2682
|
}
|
|
2387
2683
|
}
|
|
2388
2684
|
class GetWidgetRequest {
|
|
2685
|
+
widgetId;
|
|
2389
2686
|
static fromProto(proto) {
|
|
2390
2687
|
let m = new GetWidgetRequest();
|
|
2391
2688
|
m = Object.assign(m, proto);
|
|
@@ -2406,6 +2703,7 @@ class GetWidgetRequest {
|
|
|
2406
2703
|
}
|
|
2407
2704
|
}
|
|
2408
2705
|
class GetWidgetResponse {
|
|
2706
|
+
widget;
|
|
2409
2707
|
static fromProto(proto) {
|
|
2410
2708
|
let m = new GetWidgetResponse();
|
|
2411
2709
|
m = Object.assign(m, proto);
|
|
@@ -2429,6 +2727,8 @@ class GetWidgetResponse {
|
|
|
2429
2727
|
}
|
|
2430
2728
|
}
|
|
2431
2729
|
class ListMessageTemplateRequest {
|
|
2730
|
+
subjectParticipant;
|
|
2731
|
+
pagingOptions;
|
|
2432
2732
|
static fromProto(proto) {
|
|
2433
2733
|
let m = new ListMessageTemplateRequest();
|
|
2434
2734
|
m = Object.assign(m, proto);
|
|
@@ -2458,6 +2758,8 @@ class ListMessageTemplateRequest {
|
|
|
2458
2758
|
}
|
|
2459
2759
|
}
|
|
2460
2760
|
class ListMessageTemplateResponse {
|
|
2761
|
+
templates;
|
|
2762
|
+
pagingMetadata;
|
|
2461
2763
|
static fromProto(proto) {
|
|
2462
2764
|
let m = new ListMessageTemplateResponse();
|
|
2463
2765
|
m = Object.assign(m, proto);
|
|
@@ -2487,6 +2789,7 @@ class ListMessageTemplateResponse {
|
|
|
2487
2789
|
}
|
|
2488
2790
|
}
|
|
2489
2791
|
class ListMessagesRequestListMessagesFilters {
|
|
2792
|
+
conversationId;
|
|
2490
2793
|
static fromProto(proto) {
|
|
2491
2794
|
let m = new ListMessagesRequestListMessagesFilters();
|
|
2492
2795
|
m = Object.assign(m, proto);
|
|
@@ -2507,6 +2810,8 @@ class ListMessagesRequestListMessagesFilters {
|
|
|
2507
2810
|
}
|
|
2508
2811
|
}
|
|
2509
2812
|
class ListMessagesRequest {
|
|
2813
|
+
filters;
|
|
2814
|
+
pagingOptions;
|
|
2510
2815
|
static fromProto(proto) {
|
|
2511
2816
|
let m = new ListMessagesRequest();
|
|
2512
2817
|
m = Object.assign(m, proto);
|
|
@@ -2536,6 +2841,8 @@ class ListMessagesRequest {
|
|
|
2536
2841
|
}
|
|
2537
2842
|
}
|
|
2538
2843
|
class ListMessagesResponse {
|
|
2844
|
+
messages;
|
|
2845
|
+
pagingMetadata;
|
|
2539
2846
|
static fromProto(proto) {
|
|
2540
2847
|
let m = new ListMessagesResponse();
|
|
2541
2848
|
m = Object.assign(m, proto);
|
|
@@ -2565,6 +2872,8 @@ class ListMessagesResponse {
|
|
|
2565
2872
|
}
|
|
2566
2873
|
}
|
|
2567
2874
|
class ListWidgetsRequest {
|
|
2875
|
+
namespace;
|
|
2876
|
+
pagingOptions;
|
|
2568
2877
|
static fromProto(proto) {
|
|
2569
2878
|
let m = new ListWidgetsRequest();
|
|
2570
2879
|
m = Object.assign(m, proto);
|
|
@@ -2591,6 +2900,8 @@ class ListWidgetsRequest {
|
|
|
2591
2900
|
}
|
|
2592
2901
|
}
|
|
2593
2902
|
class ListWidgetsResponse {
|
|
2903
|
+
widgets;
|
|
2904
|
+
pagingMetadata;
|
|
2594
2905
|
static fromProto(proto) {
|
|
2595
2906
|
let m = new ListWidgetsResponse();
|
|
2596
2907
|
m = Object.assign(m, proto);
|
|
@@ -2620,6 +2931,13 @@ class ListWidgetsResponse {
|
|
|
2620
2931
|
}
|
|
2621
2932
|
}
|
|
2622
2933
|
class LookupConversationsRequestLookupConversationsFilters {
|
|
2934
|
+
internalParticipantId;
|
|
2935
|
+
location;
|
|
2936
|
+
channel;
|
|
2937
|
+
accountGroupId;
|
|
2938
|
+
externalConversationId;
|
|
2939
|
+
originLocation;
|
|
2940
|
+
originLocationExternalId;
|
|
2623
2941
|
static fromProto(proto) {
|
|
2624
2942
|
let m = new LookupConversationsRequestLookupConversationsFilters();
|
|
2625
2943
|
m = Object.assign(m, proto);
|
|
@@ -2667,6 +2985,8 @@ class LookupConversationsRequestLookupConversationsFilters {
|
|
|
2667
2985
|
}
|
|
2668
2986
|
}
|
|
2669
2987
|
class LookupConversationsRequest {
|
|
2988
|
+
filters;
|
|
2989
|
+
pagingOptions;
|
|
2670
2990
|
static fromProto(proto) {
|
|
2671
2991
|
let m = new LookupConversationsRequest();
|
|
2672
2992
|
m = Object.assign(m, proto);
|
|
@@ -2696,6 +3016,8 @@ class LookupConversationsRequest {
|
|
|
2696
3016
|
}
|
|
2697
3017
|
}
|
|
2698
3018
|
class LookupConversationsResponse {
|
|
3019
|
+
conversations;
|
|
3020
|
+
pagingMetadata;
|
|
2699
3021
|
static fromProto(proto) {
|
|
2700
3022
|
let m = new LookupConversationsResponse();
|
|
2701
3023
|
m = Object.assign(m, proto);
|
|
@@ -2725,6 +3047,10 @@ class LookupConversationsResponse {
|
|
|
2725
3047
|
}
|
|
2726
3048
|
}
|
|
2727
3049
|
class Media {
|
|
3050
|
+
mediaContentType;
|
|
3051
|
+
mediaLocationPath;
|
|
3052
|
+
mediaFileName;
|
|
3053
|
+
fileSize;
|
|
2728
3054
|
static fromProto(proto) {
|
|
2729
3055
|
let m = new Media();
|
|
2730
3056
|
m = Object.assign(m, proto);
|
|
@@ -2757,6 +3083,8 @@ class Media {
|
|
|
2757
3083
|
}
|
|
2758
3084
|
}
|
|
2759
3085
|
class Metadata {
|
|
3086
|
+
identifier;
|
|
3087
|
+
data;
|
|
2760
3088
|
static fromProto(proto) {
|
|
2761
3089
|
let m = new Metadata();
|
|
2762
3090
|
m = Object.assign(m, proto);
|
|
@@ -2786,6 +3114,8 @@ class Metadata {
|
|
|
2786
3114
|
}
|
|
2787
3115
|
}
|
|
2788
3116
|
class ReceiveMessageRequestMetadataEntry {
|
|
3117
|
+
key;
|
|
3118
|
+
value;
|
|
2789
3119
|
static fromProto(proto) {
|
|
2790
3120
|
let m = new ReceiveMessageRequestMetadataEntry();
|
|
2791
3121
|
m = Object.assign(m, proto);
|
|
@@ -2808,7 +3138,77 @@ class ReceiveMessageRequestMetadataEntry {
|
|
|
2808
3138
|
return toReturn;
|
|
2809
3139
|
}
|
|
2810
3140
|
}
|
|
3141
|
+
class NewInboxLeadCapturedRequest {
|
|
3142
|
+
namespace;
|
|
3143
|
+
parentNamespace;
|
|
3144
|
+
conversationId;
|
|
3145
|
+
conversationSummary;
|
|
3146
|
+
capturedLead;
|
|
3147
|
+
source;
|
|
3148
|
+
capturedAt;
|
|
3149
|
+
static fromProto(proto) {
|
|
3150
|
+
let m = new NewInboxLeadCapturedRequest();
|
|
3151
|
+
m = Object.assign(m, proto);
|
|
3152
|
+
if (proto.capturedLead) {
|
|
3153
|
+
m.capturedLead = CapturedLead.fromProto(proto.capturedLead);
|
|
3154
|
+
}
|
|
3155
|
+
if (proto.capturedAt) {
|
|
3156
|
+
m.capturedAt = new Date(proto.capturedAt);
|
|
3157
|
+
}
|
|
3158
|
+
return m;
|
|
3159
|
+
}
|
|
3160
|
+
constructor(kwargs) {
|
|
3161
|
+
if (!kwargs) {
|
|
3162
|
+
return;
|
|
3163
|
+
}
|
|
3164
|
+
Object.assign(this, kwargs);
|
|
3165
|
+
}
|
|
3166
|
+
toApiJson() {
|
|
3167
|
+
const toReturn = {};
|
|
3168
|
+
if (typeof this.namespace !== 'undefined') {
|
|
3169
|
+
toReturn['namespace'] = this.namespace;
|
|
3170
|
+
}
|
|
3171
|
+
if (typeof this.parentNamespace !== 'undefined') {
|
|
3172
|
+
toReturn['parentNamespace'] = this.parentNamespace;
|
|
3173
|
+
}
|
|
3174
|
+
if (typeof this.conversationId !== 'undefined') {
|
|
3175
|
+
toReturn['conversationId'] = this.conversationId;
|
|
3176
|
+
}
|
|
3177
|
+
if (typeof this.conversationSummary !== 'undefined') {
|
|
3178
|
+
toReturn['conversationSummary'] = this.conversationSummary;
|
|
3179
|
+
}
|
|
3180
|
+
if (typeof this.capturedLead !== 'undefined' && this.capturedLead !== null) {
|
|
3181
|
+
toReturn['capturedLead'] = 'toApiJson' in this.capturedLead ? this.capturedLead.toApiJson() : this.capturedLead;
|
|
3182
|
+
}
|
|
3183
|
+
if (typeof this.source !== 'undefined') {
|
|
3184
|
+
toReturn['source'] = this.source;
|
|
3185
|
+
}
|
|
3186
|
+
if (typeof this.capturedAt !== 'undefined' && this.capturedAt !== null) {
|
|
3187
|
+
toReturn['capturedAt'] = 'toApiJson' in this.capturedAt ? this.capturedAt.toApiJson() : this.capturedAt;
|
|
3188
|
+
}
|
|
3189
|
+
return toReturn;
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
class NewInboxLeadCapturedResponse {
|
|
3193
|
+
static fromProto(proto) {
|
|
3194
|
+
let m = new NewInboxLeadCapturedResponse();
|
|
3195
|
+
m = Object.assign(m, proto);
|
|
3196
|
+
return m;
|
|
3197
|
+
}
|
|
3198
|
+
constructor(kwargs) {
|
|
3199
|
+
if (!kwargs) {
|
|
3200
|
+
return;
|
|
3201
|
+
}
|
|
3202
|
+
Object.assign(this, kwargs);
|
|
3203
|
+
}
|
|
3204
|
+
toApiJson() {
|
|
3205
|
+
const toReturn = {};
|
|
3206
|
+
return toReturn;
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
2811
3209
|
class PagedRequestOptions {
|
|
3210
|
+
cursor;
|
|
3211
|
+
pageSize;
|
|
2812
3212
|
static fromProto(proto) {
|
|
2813
3213
|
let m = new PagedRequestOptions();
|
|
2814
3214
|
m = Object.assign(m, proto);
|
|
@@ -2832,6 +3232,9 @@ class PagedRequestOptions {
|
|
|
2832
3232
|
}
|
|
2833
3233
|
}
|
|
2834
3234
|
class PagedResponseMetadata {
|
|
3235
|
+
nextCursor;
|
|
3236
|
+
hasMore;
|
|
3237
|
+
totalResults;
|
|
2835
3238
|
static fromProto(proto) {
|
|
2836
3239
|
let m = new PagedResponseMetadata();
|
|
2837
3240
|
m = Object.assign(m, proto);
|
|
@@ -2861,6 +3264,18 @@ class PagedResponseMetadata {
|
|
|
2861
3264
|
}
|
|
2862
3265
|
}
|
|
2863
3266
|
class ReceiveMessageRequest {
|
|
3267
|
+
senderId;
|
|
3268
|
+
recipientId;
|
|
3269
|
+
conversationId;
|
|
3270
|
+
messageId;
|
|
3271
|
+
body;
|
|
3272
|
+
channel;
|
|
3273
|
+
type;
|
|
3274
|
+
location;
|
|
3275
|
+
partnerId;
|
|
3276
|
+
accountGroupId;
|
|
3277
|
+
metadata;
|
|
3278
|
+
media;
|
|
2864
3279
|
static fromProto(proto) {
|
|
2865
3280
|
let m = new ReceiveMessageRequest();
|
|
2866
3281
|
m = Object.assign(m, proto);
|
|
@@ -2926,6 +3341,9 @@ class ReceiveMessageRequest {
|
|
|
2926
3341
|
}
|
|
2927
3342
|
}
|
|
2928
3343
|
class RemoveConversationFromConversationViewRequest {
|
|
3344
|
+
viewId;
|
|
3345
|
+
conversationId;
|
|
3346
|
+
participantId;
|
|
2929
3347
|
static fromProto(proto) {
|
|
2930
3348
|
let m = new RemoveConversationFromConversationViewRequest();
|
|
2931
3349
|
m = Object.assign(m, proto);
|
|
@@ -2952,6 +3370,11 @@ class RemoveConversationFromConversationViewRequest {
|
|
|
2952
3370
|
}
|
|
2953
3371
|
}
|
|
2954
3372
|
class SearchConversationsRequest {
|
|
3373
|
+
partnerId;
|
|
3374
|
+
accountGroupId;
|
|
3375
|
+
location;
|
|
3376
|
+
searchTerm;
|
|
3377
|
+
pagingOptions;
|
|
2955
3378
|
static fromProto(proto) {
|
|
2956
3379
|
let m = new SearchConversationsRequest();
|
|
2957
3380
|
m = Object.assign(m, proto);
|
|
@@ -2990,6 +3413,8 @@ class SearchConversationsRequest {
|
|
|
2990
3413
|
}
|
|
2991
3414
|
}
|
|
2992
3415
|
class SearchConversationsResponse {
|
|
3416
|
+
conversations;
|
|
3417
|
+
pagingMetadata;
|
|
2993
3418
|
static fromProto(proto) {
|
|
2994
3419
|
let m = new SearchConversationsResponse();
|
|
2995
3420
|
m = Object.assign(m, proto);
|
|
@@ -3019,6 +3444,15 @@ class SearchConversationsResponse {
|
|
|
3019
3444
|
}
|
|
3020
3445
|
}
|
|
3021
3446
|
class SendMessageRequest {
|
|
3447
|
+
sender;
|
|
3448
|
+
recipient;
|
|
3449
|
+
conversationId;
|
|
3450
|
+
type;
|
|
3451
|
+
body;
|
|
3452
|
+
metadata;
|
|
3453
|
+
originLocation;
|
|
3454
|
+
media;
|
|
3455
|
+
channel;
|
|
3022
3456
|
static fromProto(proto) {
|
|
3023
3457
|
let m = new SendMessageRequest();
|
|
3024
3458
|
m = Object.assign(m, proto);
|
|
@@ -3084,6 +3518,8 @@ class SendMessageRequest {
|
|
|
3084
3518
|
}
|
|
3085
3519
|
}
|
|
3086
3520
|
class SendMessageResponse {
|
|
3521
|
+
workflowId;
|
|
3522
|
+
messageId;
|
|
3087
3523
|
static fromProto(proto) {
|
|
3088
3524
|
let m = new SendMessageResponse();
|
|
3089
3525
|
m = Object.assign(m, proto);
|
|
@@ -3107,6 +3543,10 @@ class SendMessageResponse {
|
|
|
3107
3543
|
}
|
|
3108
3544
|
}
|
|
3109
3545
|
class SendWidgetMessageRequest {
|
|
3546
|
+
type;
|
|
3547
|
+
body;
|
|
3548
|
+
metadata;
|
|
3549
|
+
location;
|
|
3110
3550
|
static fromProto(proto) {
|
|
3111
3551
|
let m = new SendWidgetMessageRequest();
|
|
3112
3552
|
m = Object.assign(m, proto);
|
|
@@ -3145,6 +3585,7 @@ class SendWidgetMessageRequest {
|
|
|
3145
3585
|
}
|
|
3146
3586
|
}
|
|
3147
3587
|
class SendWidgetMessageResponse {
|
|
3588
|
+
messageId;
|
|
3148
3589
|
static fromProto(proto) {
|
|
3149
3590
|
let m = new SendWidgetMessageResponse();
|
|
3150
3591
|
m = Object.assign(m, proto);
|
|
@@ -3165,6 +3606,9 @@ class SendWidgetMessageResponse {
|
|
|
3165
3606
|
}
|
|
3166
3607
|
}
|
|
3167
3608
|
class SetLastSeenRequest {
|
|
3609
|
+
conversationId;
|
|
3610
|
+
participant;
|
|
3611
|
+
status;
|
|
3168
3612
|
static fromProto(proto) {
|
|
3169
3613
|
let m = new SetLastSeenRequest();
|
|
3170
3614
|
m = Object.assign(m, proto);
|
|
@@ -3197,6 +3641,7 @@ class SetLastSeenRequest {
|
|
|
3197
3641
|
}
|
|
3198
3642
|
}
|
|
3199
3643
|
class SetLastSeenResponse {
|
|
3644
|
+
participant;
|
|
3200
3645
|
static fromProto(proto) {
|
|
3201
3646
|
let m = new SetLastSeenResponse();
|
|
3202
3647
|
m = Object.assign(m, proto);
|
|
@@ -3220,6 +3665,8 @@ class SetLastSeenResponse {
|
|
|
3220
3665
|
}
|
|
3221
3666
|
}
|
|
3222
3667
|
class UpdateConversationRequest {
|
|
3668
|
+
conversation;
|
|
3669
|
+
fieldMask;
|
|
3223
3670
|
static fromProto(proto) {
|
|
3224
3671
|
let m = new UpdateConversationRequest();
|
|
3225
3672
|
m = Object.assign(m, proto);
|
|
@@ -3249,6 +3696,7 @@ class UpdateConversationRequest {
|
|
|
3249
3696
|
}
|
|
3250
3697
|
}
|
|
3251
3698
|
class UpdateConversationResponse {
|
|
3699
|
+
conversation;
|
|
3252
3700
|
static fromProto(proto) {
|
|
3253
3701
|
let m = new UpdateConversationResponse();
|
|
3254
3702
|
m = Object.assign(m, proto);
|
|
@@ -3272,6 +3720,9 @@ class UpdateConversationResponse {
|
|
|
3272
3720
|
}
|
|
3273
3721
|
}
|
|
3274
3722
|
class UpdateMessageStatusRequest {
|
|
3723
|
+
messageId;
|
|
3724
|
+
participantId;
|
|
3725
|
+
status;
|
|
3275
3726
|
static fromProto(proto) {
|
|
3276
3727
|
let m = new UpdateMessageStatusRequest();
|
|
3277
3728
|
m = Object.assign(m, proto);
|
|
@@ -3301,6 +3752,8 @@ class UpdateMessageStatusRequest {
|
|
|
3301
3752
|
}
|
|
3302
3753
|
}
|
|
3303
3754
|
class UpdateMessageTemplateRequest {
|
|
3755
|
+
template;
|
|
3756
|
+
fieldMask;
|
|
3304
3757
|
static fromProto(proto) {
|
|
3305
3758
|
let m = new UpdateMessageTemplateRequest();
|
|
3306
3759
|
m = Object.assign(m, proto);
|
|
@@ -3330,6 +3783,7 @@ class UpdateMessageTemplateRequest {
|
|
|
3330
3783
|
}
|
|
3331
3784
|
}
|
|
3332
3785
|
class UpdateMessageTemplateResponse {
|
|
3786
|
+
template;
|
|
3333
3787
|
static fromProto(proto) {
|
|
3334
3788
|
let m = new UpdateMessageTemplateResponse();
|
|
3335
3789
|
m = Object.assign(m, proto);
|
|
@@ -3353,6 +3807,16 @@ class UpdateMessageTemplateResponse {
|
|
|
3353
3807
|
}
|
|
3354
3808
|
}
|
|
3355
3809
|
class UpdateWidgetRequest {
|
|
3810
|
+
widgetId;
|
|
3811
|
+
name;
|
|
3812
|
+
color;
|
|
3813
|
+
allowedUrls;
|
|
3814
|
+
welcomeMessage;
|
|
3815
|
+
isEnabled;
|
|
3816
|
+
fieldMask;
|
|
3817
|
+
textColor;
|
|
3818
|
+
accentColor;
|
|
3819
|
+
accentTextColor;
|
|
3356
3820
|
static fromProto(proto) {
|
|
3357
3821
|
let m = new UpdateWidgetRequest();
|
|
3358
3822
|
m = Object.assign(m, proto);
|
|
@@ -3403,6 +3867,7 @@ class UpdateWidgetRequest {
|
|
|
3403
3867
|
}
|
|
3404
3868
|
}
|
|
3405
3869
|
class UpdateWidgetResponse {
|
|
3870
|
+
widget;
|
|
3406
3871
|
static fromProto(proto) {
|
|
3407
3872
|
let m = new UpdateWidgetResponse();
|
|
3408
3873
|
m = Object.assign(m, proto);
|
|
@@ -3426,6 +3891,8 @@ class UpdateWidgetResponse {
|
|
|
3426
3891
|
}
|
|
3427
3892
|
}
|
|
3428
3893
|
class UpsertConfigurationRequest {
|
|
3894
|
+
configuration;
|
|
3895
|
+
fieldMask;
|
|
3429
3896
|
static fromProto(proto) {
|
|
3430
3897
|
let m = new UpsertConfigurationRequest();
|
|
3431
3898
|
m = Object.assign(m, proto);
|
|
@@ -3455,6 +3922,7 @@ class UpsertConfigurationRequest {
|
|
|
3455
3922
|
}
|
|
3456
3923
|
}
|
|
3457
3924
|
class UpsertConfigurationResponse {
|
|
3925
|
+
configuration;
|
|
3458
3926
|
static fromProto(proto) {
|
|
3459
3927
|
let m = new UpsertConfigurationResponse();
|
|
3460
3928
|
m = Object.assign(m, proto);
|
|
@@ -3478,6 +3946,9 @@ class UpsertConfigurationResponse {
|
|
|
3478
3946
|
}
|
|
3479
3947
|
}
|
|
3480
3948
|
class UpsertProductFeatureRequest {
|
|
3949
|
+
productFeature;
|
|
3950
|
+
fieldMask;
|
|
3951
|
+
subjectParticipant;
|
|
3481
3952
|
static fromProto(proto) {
|
|
3482
3953
|
let m = new UpsertProductFeatureRequest();
|
|
3483
3954
|
m = Object.assign(m, proto);
|
|
@@ -3513,6 +3984,7 @@ class UpsertProductFeatureRequest {
|
|
|
3513
3984
|
}
|
|
3514
3985
|
}
|
|
3515
3986
|
class UpsertProductFeatureResponse {
|
|
3987
|
+
productFeature;
|
|
3516
3988
|
static fromProto(proto) {
|
|
3517
3989
|
let m = new UpsertProductFeatureResponse();
|
|
3518
3990
|
m = Object.assign(m, proto);
|
|
@@ -3558,10 +4030,10 @@ class HostService {
|
|
|
3558
4030
|
get hostWithScheme() {
|
|
3559
4031
|
return 'https://' + this.host;
|
|
3560
4032
|
}
|
|
4033
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4034
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
3561
4035
|
}
|
|
3562
|
-
|
|
3563
|
-
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
3564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
4036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: HostService, decorators: [{
|
|
3565
4037
|
type: Injectable,
|
|
3566
4038
|
args: [{ providedIn: 'root' }]
|
|
3567
4039
|
}] });
|
|
@@ -3573,11 +4045,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3573
4045
|
// API Service.
|
|
3574
4046
|
// *********************************
|
|
3575
4047
|
class ConversationApiService {
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
this._host = this.hostService.hostWithScheme;
|
|
3580
|
-
}
|
|
4048
|
+
hostService = inject(HostService);
|
|
4049
|
+
http = inject(HttpClient);
|
|
4050
|
+
_host = this.hostService.hostWithScheme;
|
|
3581
4051
|
apiOptions() {
|
|
3582
4052
|
return {
|
|
3583
4053
|
headers: new HttpHeaders({
|
|
@@ -3780,13 +4250,18 @@ class ConversationApiService {
|
|
|
3780
4250
|
return this.http.post(this._host + "/conversation.v1.ConversationService/GetConversationSummary", request.toApiJson(), this.apiOptions())
|
|
3781
4251
|
.pipe(map(resp => GetConversationSummaryResponse.fromProto(resp)));
|
|
3782
4252
|
}
|
|
4253
|
+
newInboxLeadCaptured(r) {
|
|
4254
|
+
const request = (r.toApiJson) ? r : new NewInboxLeadCapturedRequest(r);
|
|
4255
|
+
return this.http.post(this._host + "/conversation.v1.ConversationService/NewInboxLeadCaptured", request.toApiJson(), this.apiOptions())
|
|
4256
|
+
.pipe(map(resp => NewInboxLeadCapturedResponse.fromProto(resp)));
|
|
4257
|
+
}
|
|
4258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4259
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
3783
4260
|
}
|
|
3784
|
-
|
|
3785
|
-
ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
3786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, decorators: [{
|
|
4261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ConversationApiService, decorators: [{
|
|
3787
4262
|
type: Injectable,
|
|
3788
4263
|
args: [{ providedIn: 'root' }]
|
|
3789
|
-
}]
|
|
4264
|
+
}] });
|
|
3790
4265
|
|
|
3791
4266
|
// *********************************
|
|
3792
4267
|
// Code generated by sdkgen
|
|
@@ -3794,12 +4269,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3794
4269
|
//
|
|
3795
4270
|
// API Service.
|
|
3796
4271
|
// *********************************
|
|
3797
|
-
class
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
4272
|
+
class EmailApiService {
|
|
4273
|
+
hostService = inject(HostService);
|
|
4274
|
+
http = inject(HttpClient);
|
|
4275
|
+
_host = this.hostService.hostWithScheme;
|
|
4276
|
+
apiOptions() {
|
|
4277
|
+
return {
|
|
4278
|
+
headers: new HttpHeaders({
|
|
4279
|
+
'Content-Type': 'application/json'
|
|
4280
|
+
}),
|
|
4281
|
+
withCredentials: true
|
|
4282
|
+
};
|
|
3802
4283
|
}
|
|
4284
|
+
getOwnerEmail(r) {
|
|
4285
|
+
const request = (r.toApiJson) ? r : new GetOwnerEmailRequest(r);
|
|
4286
|
+
return this.http.post(this._host + "/conversation.v1.EmailService/GetOwnerEmail", request.toApiJson(), this.apiOptions())
|
|
4287
|
+
.pipe(map(resp => GetOwnerEmailResponse.fromProto(resp)));
|
|
4288
|
+
}
|
|
4289
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmailApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4290
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmailApiService, providedIn: 'root' });
|
|
4291
|
+
}
|
|
4292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmailApiService, decorators: [{
|
|
4293
|
+
type: Injectable,
|
|
4294
|
+
args: [{ providedIn: 'root' }]
|
|
4295
|
+
}] });
|
|
4296
|
+
|
|
4297
|
+
// *********************************
|
|
4298
|
+
// Code generated by sdkgen
|
|
4299
|
+
// DO NOT EDIT!.
|
|
4300
|
+
//
|
|
4301
|
+
// API Service.
|
|
4302
|
+
// *********************************
|
|
4303
|
+
class InboxApiService {
|
|
4304
|
+
hostService = inject(HostService);
|
|
4305
|
+
http = inject(HttpClient);
|
|
4306
|
+
_host = this.hostService.hostWithScheme;
|
|
3803
4307
|
apiOptions() {
|
|
3804
4308
|
return {
|
|
3805
4309
|
headers: new HttpHeaders({
|
|
@@ -3828,13 +4332,13 @@ class InboxApiService {
|
|
|
3828
4332
|
return this.http.post(this._host + "/conversation.v1.InboxService/UpsertProductFeature", request.toApiJson(), this.apiOptions())
|
|
3829
4333
|
.pipe(map(resp => UpsertProductFeatureResponse.fromProto(resp)));
|
|
3830
4334
|
}
|
|
4335
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: InboxApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4336
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: InboxApiService, providedIn: 'root' });
|
|
3831
4337
|
}
|
|
3832
|
-
|
|
3833
|
-
InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, providedIn: 'root' });
|
|
3834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, decorators: [{
|
|
4338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: InboxApiService, decorators: [{
|
|
3835
4339
|
type: Injectable,
|
|
3836
4340
|
args: [{ providedIn: 'root' }]
|
|
3837
|
-
}]
|
|
4341
|
+
}] });
|
|
3838
4342
|
|
|
3839
4343
|
// *********************************
|
|
3840
4344
|
// Code generated by sdkgen
|
|
@@ -3847,5 +4351,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3847
4351
|
* Generated bundle index. Do not edit.
|
|
3848
4352
|
*/
|
|
3849
4353
|
|
|
3850
|
-
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
4354
|
+
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, 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, LastSeenByParticipant, 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, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
3851
4355
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|