@vendasta/conversation 0.68.0 → 0.69.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/_generated/host.service.mjs +3 -3
- package/esm2022/lib/_internal/ai-system-message.api.service.mjs +46 -0
- package/esm2022/lib/_internal/conversation.api.service.mjs +3 -3
- package/esm2022/lib/_internal/email.api.service.mjs +3 -3
- package/esm2022/lib/_internal/inbox.api.service.mjs +3 -3
- package/esm2022/lib/_internal/index.mjs +2 -1
- package/esm2022/lib/_internal/interfaces/aisystemmessage.interface.mjs +8 -0
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/objects/aisystemmessage.mjs +172 -0
- package/esm2022/lib/_internal/objects/index.mjs +2 -1
- package/fesm2022/vendasta-conversation.mjs +251 -39
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/ai-system-message.api.service.d.ts +16 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/aisystemmessage.interface.d.ts +24 -0
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/objects/aisystemmessage.d.ts +44 -0
- package/lib/_internal/objects/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -174,7 +174,7 @@ var Status;
|
|
|
174
174
|
// Enums Index.
|
|
175
175
|
// *********************************
|
|
176
176
|
|
|
177
|
-
function enumStringToValue$
|
|
177
|
+
function enumStringToValue$b(enumRef, value) {
|
|
178
178
|
if (typeof value === 'number') {
|
|
179
179
|
return value;
|
|
180
180
|
}
|
|
@@ -187,7 +187,7 @@ class NamespaceDetail {
|
|
|
187
187
|
let m = new NamespaceDetail();
|
|
188
188
|
m = Object.assign(m, proto);
|
|
189
189
|
if (proto.participantType) {
|
|
190
|
-
m.participantType = enumStringToValue$
|
|
190
|
+
m.participantType = enumStringToValue$b(GlobalParticipantType, proto.participantType);
|
|
191
191
|
}
|
|
192
192
|
return m;
|
|
193
193
|
}
|
|
@@ -215,7 +215,7 @@ class SubjectParticipant {
|
|
|
215
215
|
let m = new SubjectParticipant();
|
|
216
216
|
m = Object.assign(m, proto);
|
|
217
217
|
if (proto.participantType) {
|
|
218
|
-
m.participantType = enumStringToValue$
|
|
218
|
+
m.participantType = enumStringToValue$b(GlobalParticipantType, proto.participantType);
|
|
219
219
|
}
|
|
220
220
|
return m;
|
|
221
221
|
}
|
|
@@ -237,7 +237,7 @@ class SubjectParticipant {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
function enumStringToValue$
|
|
240
|
+
function enumStringToValue$a(enumRef, value) {
|
|
241
241
|
if (typeof value === 'number') {
|
|
242
242
|
return value;
|
|
243
243
|
}
|
|
@@ -263,7 +263,7 @@ class Conversation {
|
|
|
263
263
|
let m = new Conversation();
|
|
264
264
|
m = Object.assign(m, proto);
|
|
265
265
|
if (proto.channel) {
|
|
266
|
-
m.channel = enumStringToValue$
|
|
266
|
+
m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
|
|
267
267
|
}
|
|
268
268
|
if (proto.created) {
|
|
269
269
|
m.created = new Date(proto.created);
|
|
@@ -278,7 +278,7 @@ class Conversation {
|
|
|
278
278
|
m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
|
|
279
279
|
}
|
|
280
280
|
if (proto.originLocation) {
|
|
281
|
-
m.originLocation = enumStringToValue$
|
|
281
|
+
m.originLocation = enumStringToValue$a(PlatformLocation, proto.originLocation);
|
|
282
282
|
}
|
|
283
283
|
if (proto.lastSeenByParticipant) {
|
|
284
284
|
m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
|
|
@@ -355,7 +355,7 @@ class ConversationKey {
|
|
|
355
355
|
m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
|
|
356
356
|
}
|
|
357
357
|
if (proto.channel) {
|
|
358
|
-
m.channel = enumStringToValue$
|
|
358
|
+
m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
|
|
359
359
|
}
|
|
360
360
|
return m;
|
|
361
361
|
}
|
|
@@ -408,7 +408,7 @@ class LastSeenByParticipant {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
function enumStringToValue$
|
|
411
|
+
function enumStringToValue$9(enumRef, value) {
|
|
412
412
|
if (typeof value === 'number') {
|
|
413
413
|
return value;
|
|
414
414
|
}
|
|
@@ -459,7 +459,7 @@ class Message {
|
|
|
459
459
|
let m = new Message();
|
|
460
460
|
m = Object.assign(m, proto);
|
|
461
461
|
if (proto.type) {
|
|
462
|
-
m.type = enumStringToValue$
|
|
462
|
+
m.type = enumStringToValue$9(MessageType, proto.type);
|
|
463
463
|
}
|
|
464
464
|
if (proto.created) {
|
|
465
465
|
m.created = new Date(proto.created);
|
|
@@ -474,7 +474,7 @@ class Message {
|
|
|
474
474
|
m.sendStatus = SendStatus.fromProto(proto.sendStatus);
|
|
475
475
|
}
|
|
476
476
|
if (proto.channel) {
|
|
477
|
-
m.channel = enumStringToValue$
|
|
477
|
+
m.channel = enumStringToValue$9(ConversationChannel, proto.channel);
|
|
478
478
|
}
|
|
479
479
|
if (proto.metadata) {
|
|
480
480
|
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
@@ -546,7 +546,7 @@ class ParticipantMessageStatus {
|
|
|
546
546
|
let m = new ParticipantMessageStatus();
|
|
547
547
|
m = Object.assign(m, proto);
|
|
548
548
|
if (proto.status) {
|
|
549
|
-
m.status = enumStringToValue$
|
|
549
|
+
m.status = enumStringToValue$9(MessageStatus, proto.status);
|
|
550
550
|
}
|
|
551
551
|
if (proto.updated) {
|
|
552
552
|
m.updated = new Date(proto.updated);
|
|
@@ -584,7 +584,7 @@ class SendStatus {
|
|
|
584
584
|
let m = new SendStatus();
|
|
585
585
|
m = Object.assign(m, proto);
|
|
586
586
|
if (proto.status) {
|
|
587
|
-
m.status = enumStringToValue$
|
|
587
|
+
m.status = enumStringToValue$9(MessageStatus, proto.status);
|
|
588
588
|
}
|
|
589
589
|
if (proto.created) {
|
|
590
590
|
m.created = new Date(proto.created);
|
|
@@ -612,7 +612,7 @@ class SendStatus {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
-
function enumStringToValue$
|
|
615
|
+
function enumStringToValue$8(enumRef, value) {
|
|
616
616
|
if (typeof value === 'number') {
|
|
617
617
|
return value;
|
|
618
618
|
}
|
|
@@ -683,10 +683,10 @@ class Participant {
|
|
|
683
683
|
let m = new Participant();
|
|
684
684
|
m = Object.assign(m, proto);
|
|
685
685
|
if (proto.location) {
|
|
686
|
-
m.location = enumStringToValue$
|
|
686
|
+
m.location = enumStringToValue$8(PlatformLocation, proto.location);
|
|
687
687
|
}
|
|
688
688
|
if (proto.channel) {
|
|
689
|
-
m.channel = enumStringToValue$
|
|
689
|
+
m.channel = enumStringToValue$8(ConversationChannel, proto.channel);
|
|
690
690
|
}
|
|
691
691
|
if (proto.created) {
|
|
692
692
|
m.created = new Date(proto.created);
|
|
@@ -698,7 +698,7 @@ class Participant {
|
|
|
698
698
|
m.deleted = new Date(proto.deleted);
|
|
699
699
|
}
|
|
700
700
|
if (proto.participantType) {
|
|
701
|
-
m.participantType = enumStringToValue$
|
|
701
|
+
m.participantType = enumStringToValue$8(ParticipantType, proto.participantType);
|
|
702
702
|
}
|
|
703
703
|
if (proto.address) {
|
|
704
704
|
m.address = Address.fromProto(proto.address);
|
|
@@ -788,13 +788,13 @@ class ParticipantKey {
|
|
|
788
788
|
let m = new ParticipantKey();
|
|
789
789
|
m = Object.assign(m, proto);
|
|
790
790
|
if (proto.location) {
|
|
791
|
-
m.location = enumStringToValue$
|
|
791
|
+
m.location = enumStringToValue$8(PlatformLocation, proto.location);
|
|
792
792
|
}
|
|
793
793
|
if (proto.channels) {
|
|
794
|
-
m.channels = proto.channels.map((v) => enumStringToValue$
|
|
794
|
+
m.channels = proto.channels.map((v) => enumStringToValue$8(ConversationChannel, v));
|
|
795
795
|
}
|
|
796
796
|
if (proto.participantType) {
|
|
797
|
-
m.participantType = enumStringToValue$
|
|
797
|
+
m.participantType = enumStringToValue$8(GlobalParticipantType, proto.participantType);
|
|
798
798
|
}
|
|
799
799
|
if (proto.namespaceHierarchy) {
|
|
800
800
|
m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
|
|
@@ -834,7 +834,7 @@ class ParticipantKey {
|
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
|
|
837
|
-
function enumStringToValue$
|
|
837
|
+
function enumStringToValue$7(enumRef, value) {
|
|
838
838
|
if (typeof value === 'number') {
|
|
839
839
|
return value;
|
|
840
840
|
}
|
|
@@ -866,7 +866,7 @@ class Access {
|
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
-
function enumStringToValue$
|
|
869
|
+
function enumStringToValue$6(enumRef, value) {
|
|
870
870
|
if (typeof value === 'number') {
|
|
871
871
|
return value;
|
|
872
872
|
}
|
|
@@ -988,7 +988,7 @@ class ProductFeature {
|
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
function enumStringToValue$
|
|
991
|
+
function enumStringToValue$5(enumRef, value) {
|
|
992
992
|
if (typeof value === 'number') {
|
|
993
993
|
return value;
|
|
994
994
|
}
|
|
@@ -1023,7 +1023,7 @@ class View {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
function enumStringToValue$
|
|
1026
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1027
1027
|
if (typeof value === 'number') {
|
|
1028
1028
|
return value;
|
|
1029
1029
|
}
|
|
@@ -1073,7 +1073,7 @@ class Widget {
|
|
|
1073
1073
|
let m = new Widget();
|
|
1074
1074
|
m = Object.assign(m, proto);
|
|
1075
1075
|
if (proto.position) {
|
|
1076
|
-
m.position = enumStringToValue$
|
|
1076
|
+
m.position = enumStringToValue$4(WidgetPosition, proto.position);
|
|
1077
1077
|
}
|
|
1078
1078
|
if (proto.created) {
|
|
1079
1079
|
m.created = new Date(proto.created);
|
|
@@ -1137,7 +1137,7 @@ class Widget {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
-
function enumStringToValue$
|
|
1140
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1141
1141
|
if (typeof value === 'number') {
|
|
1142
1142
|
return value;
|
|
1143
1143
|
}
|
|
@@ -1165,7 +1165,7 @@ class FieldMask {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
|
-
function enumStringToValue$
|
|
1168
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1169
1169
|
if (typeof value === 'number') {
|
|
1170
1170
|
return value;
|
|
1171
1171
|
}
|
|
@@ -1208,6 +1208,178 @@ class MessageTemplate {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
|
+
function enumStringToValue$1(enumRef, value) {
|
|
1212
|
+
if (typeof value === 'number') {
|
|
1213
|
+
return value;
|
|
1214
|
+
}
|
|
1215
|
+
return enumRef[value];
|
|
1216
|
+
}
|
|
1217
|
+
class AISystemMessage {
|
|
1218
|
+
systemMessageId;
|
|
1219
|
+
systemMessageBody;
|
|
1220
|
+
iamUserId;
|
|
1221
|
+
updated;
|
|
1222
|
+
static fromProto(proto) {
|
|
1223
|
+
let m = new AISystemMessage();
|
|
1224
|
+
m = Object.assign(m, proto);
|
|
1225
|
+
if (proto.updated) {
|
|
1226
|
+
m.updated = new Date(proto.updated);
|
|
1227
|
+
}
|
|
1228
|
+
return m;
|
|
1229
|
+
}
|
|
1230
|
+
constructor(kwargs) {
|
|
1231
|
+
if (!kwargs) {
|
|
1232
|
+
return;
|
|
1233
|
+
}
|
|
1234
|
+
Object.assign(this, kwargs);
|
|
1235
|
+
}
|
|
1236
|
+
toApiJson() {
|
|
1237
|
+
const toReturn = {};
|
|
1238
|
+
if (typeof this.systemMessageId !== 'undefined') {
|
|
1239
|
+
toReturn['systemMessageId'] = this.systemMessageId;
|
|
1240
|
+
}
|
|
1241
|
+
if (typeof this.systemMessageBody !== 'undefined') {
|
|
1242
|
+
toReturn['systemMessageBody'] = this.systemMessageBody;
|
|
1243
|
+
}
|
|
1244
|
+
if (typeof this.iamUserId !== 'undefined') {
|
|
1245
|
+
toReturn['iamUserId'] = this.iamUserId;
|
|
1246
|
+
}
|
|
1247
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
1248
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
1249
|
+
}
|
|
1250
|
+
return toReturn;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
class GetAISystemMessageRequest {
|
|
1254
|
+
systemMessageId;
|
|
1255
|
+
static fromProto(proto) {
|
|
1256
|
+
let m = new GetAISystemMessageRequest();
|
|
1257
|
+
m = Object.assign(m, proto);
|
|
1258
|
+
return m;
|
|
1259
|
+
}
|
|
1260
|
+
constructor(kwargs) {
|
|
1261
|
+
if (!kwargs) {
|
|
1262
|
+
return;
|
|
1263
|
+
}
|
|
1264
|
+
Object.assign(this, kwargs);
|
|
1265
|
+
}
|
|
1266
|
+
toApiJson() {
|
|
1267
|
+
const toReturn = {};
|
|
1268
|
+
if (typeof this.systemMessageId !== 'undefined') {
|
|
1269
|
+
toReturn['systemMessageId'] = this.systemMessageId;
|
|
1270
|
+
}
|
|
1271
|
+
return toReturn;
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
class GetAISystemMessageResponse {
|
|
1275
|
+
systemMessage;
|
|
1276
|
+
static fromProto(proto) {
|
|
1277
|
+
let m = new GetAISystemMessageResponse();
|
|
1278
|
+
m = Object.assign(m, proto);
|
|
1279
|
+
if (proto.systemMessage) {
|
|
1280
|
+
m.systemMessage = AISystemMessage.fromProto(proto.systemMessage);
|
|
1281
|
+
}
|
|
1282
|
+
return m;
|
|
1283
|
+
}
|
|
1284
|
+
constructor(kwargs) {
|
|
1285
|
+
if (!kwargs) {
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
Object.assign(this, kwargs);
|
|
1289
|
+
}
|
|
1290
|
+
toApiJson() {
|
|
1291
|
+
const toReturn = {};
|
|
1292
|
+
if (typeof this.systemMessage !== 'undefined' && this.systemMessage !== null) {
|
|
1293
|
+
toReturn['systemMessage'] = 'toApiJson' in this.systemMessage ? this.systemMessage.toApiJson() : this.systemMessage;
|
|
1294
|
+
}
|
|
1295
|
+
return toReturn;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
class ListAISystemMessagesRequest {
|
|
1299
|
+
cursor;
|
|
1300
|
+
pageSize;
|
|
1301
|
+
static fromProto(proto) {
|
|
1302
|
+
let m = new ListAISystemMessagesRequest();
|
|
1303
|
+
m = Object.assign(m, proto);
|
|
1304
|
+
if (proto.pageSize) {
|
|
1305
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
1306
|
+
}
|
|
1307
|
+
return m;
|
|
1308
|
+
}
|
|
1309
|
+
constructor(kwargs) {
|
|
1310
|
+
if (!kwargs) {
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
Object.assign(this, kwargs);
|
|
1314
|
+
}
|
|
1315
|
+
toApiJson() {
|
|
1316
|
+
const toReturn = {};
|
|
1317
|
+
if (typeof this.cursor !== 'undefined') {
|
|
1318
|
+
toReturn['cursor'] = this.cursor;
|
|
1319
|
+
}
|
|
1320
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
1321
|
+
toReturn['pageSize'] = this.pageSize;
|
|
1322
|
+
}
|
|
1323
|
+
return toReturn;
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
class ListAISystemMessagesResponse {
|
|
1327
|
+
aiSystemMessages;
|
|
1328
|
+
nextCursor;
|
|
1329
|
+
hasMore;
|
|
1330
|
+
static fromProto(proto) {
|
|
1331
|
+
let m = new ListAISystemMessagesResponse();
|
|
1332
|
+
m = Object.assign(m, proto);
|
|
1333
|
+
if (proto.aiSystemMessages) {
|
|
1334
|
+
m.aiSystemMessages = proto.aiSystemMessages.map(AISystemMessage.fromProto);
|
|
1335
|
+
}
|
|
1336
|
+
return m;
|
|
1337
|
+
}
|
|
1338
|
+
constructor(kwargs) {
|
|
1339
|
+
if (!kwargs) {
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
Object.assign(this, kwargs);
|
|
1343
|
+
}
|
|
1344
|
+
toApiJson() {
|
|
1345
|
+
const toReturn = {};
|
|
1346
|
+
if (typeof this.aiSystemMessages !== 'undefined' && this.aiSystemMessages !== null) {
|
|
1347
|
+
toReturn['aiSystemMessages'] = 'toApiJson' in this.aiSystemMessages ? this.aiSystemMessages.toApiJson() : this.aiSystemMessages;
|
|
1348
|
+
}
|
|
1349
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
1350
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
1351
|
+
}
|
|
1352
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
1353
|
+
toReturn['hasMore'] = this.hasMore;
|
|
1354
|
+
}
|
|
1355
|
+
return toReturn;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
class UpsertAISystemMessageRequest {
|
|
1359
|
+
systemMessage;
|
|
1360
|
+
static fromProto(proto) {
|
|
1361
|
+
let m = new UpsertAISystemMessageRequest();
|
|
1362
|
+
m = Object.assign(m, proto);
|
|
1363
|
+
if (proto.systemMessage) {
|
|
1364
|
+
m.systemMessage = AISystemMessage.fromProto(proto.systemMessage);
|
|
1365
|
+
}
|
|
1366
|
+
return m;
|
|
1367
|
+
}
|
|
1368
|
+
constructor(kwargs) {
|
|
1369
|
+
if (!kwargs) {
|
|
1370
|
+
return;
|
|
1371
|
+
}
|
|
1372
|
+
Object.assign(this, kwargs);
|
|
1373
|
+
}
|
|
1374
|
+
toApiJson() {
|
|
1375
|
+
const toReturn = {};
|
|
1376
|
+
if (typeof this.systemMessage !== 'undefined' && this.systemMessage !== null) {
|
|
1377
|
+
toReturn['systemMessage'] = 'toApiJson' in this.systemMessage ? this.systemMessage.toApiJson() : this.systemMessage;
|
|
1378
|
+
}
|
|
1379
|
+
return toReturn;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1211
1383
|
function enumStringToValue(enumRef, value) {
|
|
1212
1384
|
if (typeof value === 'number') {
|
|
1213
1385
|
return value;
|
|
@@ -4203,10 +4375,50 @@ class HostService {
|
|
|
4203
4375
|
get hostWithScheme() {
|
|
4204
4376
|
return 'https://' + this.host;
|
|
4205
4377
|
}
|
|
4206
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4207
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
4378
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4379
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
4380
|
+
}
|
|
4381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HostService, decorators: [{
|
|
4382
|
+
type: Injectable,
|
|
4383
|
+
args: [{ providedIn: 'root' }]
|
|
4384
|
+
}] });
|
|
4385
|
+
|
|
4386
|
+
// *********************************
|
|
4387
|
+
// Code generated by sdkgen
|
|
4388
|
+
// DO NOT EDIT!.
|
|
4389
|
+
//
|
|
4390
|
+
// API Service.
|
|
4391
|
+
// *********************************
|
|
4392
|
+
class AISystemMessageApiService {
|
|
4393
|
+
hostService = inject(HostService);
|
|
4394
|
+
http = inject(HttpClient);
|
|
4395
|
+
_host = this.hostService.hostWithScheme;
|
|
4396
|
+
apiOptions() {
|
|
4397
|
+
return {
|
|
4398
|
+
headers: new HttpHeaders({
|
|
4399
|
+
'Content-Type': 'application/json'
|
|
4400
|
+
}),
|
|
4401
|
+
withCredentials: true
|
|
4402
|
+
};
|
|
4403
|
+
}
|
|
4404
|
+
upsertAiSystemMessage(r) {
|
|
4405
|
+
const request = (r.toApiJson) ? r : new UpsertAISystemMessageRequest(r);
|
|
4406
|
+
return this.http.post(this._host + "/conversation.v1.AISystemMessageService/UpsertAISystemMessage", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
4407
|
+
}
|
|
4408
|
+
getAiSystemMessage(r) {
|
|
4409
|
+
const request = (r.toApiJson) ? r : new GetAISystemMessageRequest(r);
|
|
4410
|
+
return this.http.post(this._host + "/conversation.v1.AISystemMessageService/GetAISystemMessage", request.toApiJson(), this.apiOptions())
|
|
4411
|
+
.pipe(map(resp => GetAISystemMessageResponse.fromProto(resp)));
|
|
4412
|
+
}
|
|
4413
|
+
listAiSystemMessages(r) {
|
|
4414
|
+
const request = (r.toApiJson) ? r : new ListAISystemMessagesRequest(r);
|
|
4415
|
+
return this.http.post(this._host + "/conversation.v1.AISystemMessageService/ListAISystemMessages", request.toApiJson(), this.apiOptions())
|
|
4416
|
+
.pipe(map(resp => ListAISystemMessagesResponse.fromProto(resp)));
|
|
4417
|
+
}
|
|
4418
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AISystemMessageApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4419
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AISystemMessageApiService, providedIn: 'root' });
|
|
4208
4420
|
}
|
|
4209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AISystemMessageApiService, decorators: [{
|
|
4210
4422
|
type: Injectable,
|
|
4211
4423
|
args: [{ providedIn: 'root' }]
|
|
4212
4424
|
}] });
|
|
@@ -4428,10 +4640,10 @@ class ConversationApiService {
|
|
|
4428
4640
|
return this.http.post(this._host + "/conversation.v1.ConversationService/NewInboxLeadCaptured", request.toApiJson(), this.apiOptions())
|
|
4429
4641
|
.pipe(map(resp => NewInboxLeadCapturedResponse.fromProto(resp)));
|
|
4430
4642
|
}
|
|
4431
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4432
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
4643
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4644
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
|
|
4433
4645
|
}
|
|
4434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4646
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, decorators: [{
|
|
4435
4647
|
type: Injectable,
|
|
4436
4648
|
args: [{ providedIn: 'root' }]
|
|
4437
4649
|
}] });
|
|
@@ -4459,10 +4671,10 @@ class EmailApiService {
|
|
|
4459
4671
|
return this.http.post(this._host + "/conversation.v1.EmailService/GetOwnerEmail", request.toApiJson(), this.apiOptions())
|
|
4460
4672
|
.pipe(map(resp => GetOwnerEmailResponse.fromProto(resp)));
|
|
4461
4673
|
}
|
|
4462
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4463
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
4674
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4675
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailApiService, providedIn: 'root' });
|
|
4464
4676
|
}
|
|
4465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailApiService, decorators: [{
|
|
4466
4678
|
type: Injectable,
|
|
4467
4679
|
args: [{ providedIn: 'root' }]
|
|
4468
4680
|
}] });
|
|
@@ -4505,10 +4717,10 @@ class InboxApiService {
|
|
|
4505
4717
|
return this.http.post(this._host + "/conversation.v1.InboxService/UpsertProductFeature", request.toApiJson(), this.apiOptions())
|
|
4506
4718
|
.pipe(map(resp => UpsertProductFeatureResponse.fromProto(resp)));
|
|
4507
4719
|
}
|
|
4508
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4509
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
4720
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InboxApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4721
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InboxApiService, providedIn: 'root' });
|
|
4510
4722
|
}
|
|
4511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InboxApiService, decorators: [{
|
|
4512
4724
|
type: Injectable,
|
|
4513
4725
|
args: [{ providedIn: 'root' }]
|
|
4514
4726
|
}] });
|
|
@@ -4524,5 +4736,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
|
|
|
4524
4736
|
* Generated bundle index. Do not edit.
|
|
4525
4737
|
*/
|
|
4526
4738
|
|
|
4527
|
-
export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, 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, KeyValuePair, 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, Status, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
4739
|
+
export { AISystemMessage, AISystemMessageApiService, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAISystemMessageRequest, GetAISystemMessageResponse, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, GetMessageRequest, GetMessageTemplateRequest, 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, KeyValuePair, LastSeenByParticipant, ListAISystemMessagesRequest, ListAISystemMessagesResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, Status, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
|
|
4528
4740
|
//# sourceMappingURL=vendasta-conversation.mjs.map
|