@vendasta/social-posts 5.20.1 → 5.20.2
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/lib/_internal/chat-bot.api.service.mjs +50 -0
- package/esm2020/lib/_internal/enums/chat-bot.enum.mjs +12 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/chat-bot.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
- package/esm2020/lib/_internal/objects/chat-bot.mjs +146 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -1
- package/fesm2015/vendasta-social-posts.mjs +260 -31
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +260 -31
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/chat-bot.api.service.d.ts +18 -0
- package/lib/_internal/enums/chat-bot.enum.d.ts +4 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/chat-bot.interface.d.ts +23 -0
- package/lib/_internal/interfaces/index.d.ts +2 -0
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/chat-bot.d.ts +43 -0
- package/lib/_internal/objects/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import * as i1 from '@angular/common/http';
|
|
|
5
5
|
import { HttpHeaders } from '@angular/common/http';
|
|
6
6
|
import { map } from 'rxjs/operators';
|
|
7
7
|
|
|
8
|
-
function enumStringToValue$
|
|
8
|
+
function enumStringToValue$d(enumRef, value) {
|
|
9
9
|
if (typeof value === 'number') {
|
|
10
10
|
return value;
|
|
11
11
|
}
|
|
@@ -32,7 +32,7 @@ class FieldMask {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function enumStringToValue$
|
|
35
|
+
function enumStringToValue$c(enumRef, value) {
|
|
36
36
|
if (typeof value === 'number') {
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
@@ -199,6 +199,18 @@ var MediaType;
|
|
|
199
199
|
MediaType[MediaType["MEDIA_TYPE_CAROUSEL"] = 4] = "MEDIA_TYPE_CAROUSEL";
|
|
200
200
|
})(MediaType || (MediaType = {}));
|
|
201
201
|
|
|
202
|
+
// *********************************
|
|
203
|
+
// Code generated by sdkgen
|
|
204
|
+
// DO NOT EDIT!.
|
|
205
|
+
//
|
|
206
|
+
// Enums.
|
|
207
|
+
// *********************************
|
|
208
|
+
var ActionType;
|
|
209
|
+
(function (ActionType) {
|
|
210
|
+
ActionType[ActionType["RESPOND"] = 0] = "RESPOND";
|
|
211
|
+
ActionType[ActionType["CHANGE_TONE"] = 1] = "CHANGE_TONE";
|
|
212
|
+
})(ActionType || (ActionType = {}));
|
|
213
|
+
|
|
202
214
|
// *********************************
|
|
203
215
|
// Code generated by sdkgen
|
|
204
216
|
// DO NOT EDIT!.
|
|
@@ -206,7 +218,7 @@ var MediaType;
|
|
|
206
218
|
// Enums Index.
|
|
207
219
|
// *********************************
|
|
208
220
|
|
|
209
|
-
function enumStringToValue$
|
|
221
|
+
function enumStringToValue$b(enumRef, value) {
|
|
210
222
|
if (typeof value === 'number') {
|
|
211
223
|
return value;
|
|
212
224
|
}
|
|
@@ -217,7 +229,7 @@ class CallToAction {
|
|
|
217
229
|
let m = new CallToAction();
|
|
218
230
|
m = Object.assign(m, proto);
|
|
219
231
|
if (proto.actionType) {
|
|
220
|
-
m.actionType = enumStringToValue$
|
|
232
|
+
m.actionType = enumStringToValue$b(CallToActionCallToActionType, proto.actionType);
|
|
221
233
|
}
|
|
222
234
|
return m;
|
|
223
235
|
}
|
|
@@ -371,7 +383,7 @@ class PostTemplate {
|
|
|
371
383
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
372
384
|
}
|
|
373
385
|
if (proto.postType) {
|
|
374
|
-
m.postType = enumStringToValue$
|
|
386
|
+
m.postType = enumStringToValue$b(PostType, proto.postType);
|
|
375
387
|
}
|
|
376
388
|
if (proto.youtubeCustomization) {
|
|
377
389
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -454,7 +466,7 @@ class SSIDPostType {
|
|
|
454
466
|
let m = new SSIDPostType();
|
|
455
467
|
m = Object.assign(m, proto);
|
|
456
468
|
if (proto.postType) {
|
|
457
|
-
m.postType = enumStringToValue$
|
|
469
|
+
m.postType = enumStringToValue$b(PostType, proto.postType);
|
|
458
470
|
}
|
|
459
471
|
return m;
|
|
460
472
|
}
|
|
@@ -515,10 +527,10 @@ class SocialPost {
|
|
|
515
527
|
m.posted = new Date(proto.posted);
|
|
516
528
|
}
|
|
517
529
|
if (proto.deletionStatus) {
|
|
518
|
-
m.deletionStatus = enumStringToValue$
|
|
530
|
+
m.deletionStatus = enumStringToValue$b(SocialPostDeletionStatus, proto.deletionStatus);
|
|
519
531
|
}
|
|
520
532
|
if (proto.service) {
|
|
521
|
-
m.service = enumStringToValue$
|
|
533
|
+
m.service = enumStringToValue$b(SocialPostService, proto.service);
|
|
522
534
|
}
|
|
523
535
|
if (proto.created) {
|
|
524
536
|
m.created = new Date(proto.created);
|
|
@@ -527,7 +539,7 @@ class SocialPost {
|
|
|
527
539
|
m.scheduled = new Date(proto.scheduled);
|
|
528
540
|
}
|
|
529
541
|
if (proto.status) {
|
|
530
|
-
m.status = enumStringToValue$
|
|
542
|
+
m.status = enumStringToValue$b(PostingStatus, proto.status);
|
|
531
543
|
}
|
|
532
544
|
if (proto.event) {
|
|
533
545
|
m.event = Event.fromProto(proto.event);
|
|
@@ -539,7 +551,7 @@ class SocialPost {
|
|
|
539
551
|
m.error = Error.fromProto(proto.error);
|
|
540
552
|
}
|
|
541
553
|
if (proto.postType) {
|
|
542
|
-
m.postType = enumStringToValue$
|
|
554
|
+
m.postType = enumStringToValue$b(PostType, proto.postType);
|
|
543
555
|
}
|
|
544
556
|
if (proto.mediaEntries) {
|
|
545
557
|
m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
|
|
@@ -722,7 +734,7 @@ class YoutubeCustomization {
|
|
|
722
734
|
let m = new YoutubeCustomization();
|
|
723
735
|
m = Object.assign(m, proto);
|
|
724
736
|
if (proto.privacyStatus) {
|
|
725
|
-
m.privacyStatus = enumStringToValue$
|
|
737
|
+
m.privacyStatus = enumStringToValue$b(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
|
|
726
738
|
}
|
|
727
739
|
return m;
|
|
728
740
|
}
|
|
@@ -744,7 +756,7 @@ class YoutubeCustomization {
|
|
|
744
756
|
}
|
|
745
757
|
}
|
|
746
758
|
|
|
747
|
-
function enumStringToValue$
|
|
759
|
+
function enumStringToValue$a(enumRef, value) {
|
|
748
760
|
if (typeof value === 'number') {
|
|
749
761
|
return value;
|
|
750
762
|
}
|
|
@@ -973,7 +985,7 @@ class PostEvent {
|
|
|
973
985
|
}
|
|
974
986
|
}
|
|
975
987
|
|
|
976
|
-
function enumStringToValue$
|
|
988
|
+
function enumStringToValue$9(enumRef, value) {
|
|
977
989
|
if (typeof value === 'number') {
|
|
978
990
|
return value;
|
|
979
991
|
}
|
|
@@ -1114,7 +1126,7 @@ class PixabayImage {
|
|
|
1114
1126
|
}
|
|
1115
1127
|
}
|
|
1116
1128
|
|
|
1117
|
-
function enumStringToValue$
|
|
1129
|
+
function enumStringToValue$8(enumRef, value) {
|
|
1118
1130
|
if (typeof value === 'number') {
|
|
1119
1131
|
return value;
|
|
1120
1132
|
}
|
|
@@ -1241,7 +1253,7 @@ class TwitterPostStats {
|
|
|
1241
1253
|
}
|
|
1242
1254
|
}
|
|
1243
1255
|
|
|
1244
|
-
function enumStringToValue$
|
|
1256
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1245
1257
|
if (typeof value === 'number') {
|
|
1246
1258
|
return value;
|
|
1247
1259
|
}
|
|
@@ -1347,7 +1359,7 @@ class TenorMediaObject {
|
|
|
1347
1359
|
}
|
|
1348
1360
|
}
|
|
1349
1361
|
|
|
1350
|
-
function enumStringToValue$
|
|
1362
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1351
1363
|
if (typeof value === 'number') {
|
|
1352
1364
|
return value;
|
|
1353
1365
|
}
|
|
@@ -1470,7 +1482,7 @@ class CreatePostTemplateRequest {
|
|
|
1470
1482
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
1471
1483
|
}
|
|
1472
1484
|
if (proto.postType) {
|
|
1473
|
-
m.postType = enumStringToValue$
|
|
1485
|
+
m.postType = enumStringToValue$6(PostType, proto.postType);
|
|
1474
1486
|
}
|
|
1475
1487
|
if (proto.youtubeCustomization) {
|
|
1476
1488
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -2703,7 +2715,7 @@ class RemoveFromMultilocationPostRequest {
|
|
|
2703
2715
|
let m = new RemoveFromMultilocationPostRequest();
|
|
2704
2716
|
m = Object.assign(m, proto);
|
|
2705
2717
|
if (proto.reason) {
|
|
2706
|
-
m.reason = enumStringToValue$
|
|
2718
|
+
m.reason = enumStringToValue$6(RemoveReason, proto.reason);
|
|
2707
2719
|
}
|
|
2708
2720
|
if (proto.locations) {
|
|
2709
2721
|
m.locations = proto.locations.map(Location.fromProto);
|
|
@@ -2926,10 +2938,10 @@ class SuggestMessageRequest {
|
|
|
2926
2938
|
let m = new SuggestMessageRequest();
|
|
2927
2939
|
m = Object.assign(m, proto);
|
|
2928
2940
|
if (proto.length) {
|
|
2929
|
-
m.length = enumStringToValue$
|
|
2941
|
+
m.length = enumStringToValue$6(MessageLength, proto.length);
|
|
2930
2942
|
}
|
|
2931
2943
|
if (proto.type) {
|
|
2932
|
-
m.type = enumStringToValue$
|
|
2944
|
+
m.type = enumStringToValue$6(TemplateType, proto.type);
|
|
2933
2945
|
}
|
|
2934
2946
|
if (proto.metadata) {
|
|
2935
2947
|
m.metadata = proto.metadata.map(MetaData.fromProto);
|
|
@@ -2996,7 +3008,7 @@ class UpdatePostTemplateRequest {
|
|
|
2996
3008
|
m.metaData = proto.metaData.map(MetaData.fromProto);
|
|
2997
3009
|
}
|
|
2998
3010
|
if (proto.postType) {
|
|
2999
|
-
m.postType = enumStringToValue$
|
|
3011
|
+
m.postType = enumStringToValue$6(PostType, proto.postType);
|
|
3000
3012
|
}
|
|
3001
3013
|
if (proto.youtubeCustomization) {
|
|
3002
3014
|
m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
|
|
@@ -3063,7 +3075,37 @@ class UpdatePostTemplateRequest {
|
|
|
3063
3075
|
}
|
|
3064
3076
|
}
|
|
3065
3077
|
|
|
3066
|
-
function enumStringToValue$
|
|
3078
|
+
function enumStringToValue$5(enumRef, value) {
|
|
3079
|
+
if (typeof value === 'number') {
|
|
3080
|
+
return value;
|
|
3081
|
+
}
|
|
3082
|
+
return enumRef[value];
|
|
3083
|
+
}
|
|
3084
|
+
class Access {
|
|
3085
|
+
static fromProto(proto) {
|
|
3086
|
+
let m = new Access();
|
|
3087
|
+
m = Object.assign(m, proto);
|
|
3088
|
+
return m;
|
|
3089
|
+
}
|
|
3090
|
+
constructor(kwargs) {
|
|
3091
|
+
if (!kwargs) {
|
|
3092
|
+
return;
|
|
3093
|
+
}
|
|
3094
|
+
Object.assign(this, kwargs);
|
|
3095
|
+
}
|
|
3096
|
+
toApiJson() {
|
|
3097
|
+
const toReturn = {};
|
|
3098
|
+
if (typeof this.scope !== 'undefined') {
|
|
3099
|
+
toReturn['scope'] = this.scope;
|
|
3100
|
+
}
|
|
3101
|
+
if (typeof this.public !== 'undefined') {
|
|
3102
|
+
toReturn['public'] = this.public;
|
|
3103
|
+
}
|
|
3104
|
+
return toReturn;
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
function enumStringToValue$4(enumRef, value) {
|
|
3067
3109
|
if (typeof value === 'number') {
|
|
3068
3110
|
return value;
|
|
3069
3111
|
}
|
|
@@ -3298,7 +3340,7 @@ class SocialPostV2 {
|
|
|
3298
3340
|
m.customization = PostCustomizationV2.fromProto(proto.customization);
|
|
3299
3341
|
}
|
|
3300
3342
|
if (proto.postType) {
|
|
3301
|
-
m.postType = enumStringToValue$
|
|
3343
|
+
m.postType = enumStringToValue$4(PostTypeV2, proto.postType);
|
|
3302
3344
|
}
|
|
3303
3345
|
if (proto.metadata) {
|
|
3304
3346
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
@@ -3398,7 +3440,7 @@ class YoutubeCustomizationV2 {
|
|
|
3398
3440
|
let m = new YoutubeCustomizationV2();
|
|
3399
3441
|
m = Object.assign(m, proto);
|
|
3400
3442
|
if (proto.privacyStatus) {
|
|
3401
|
-
m.privacyStatus = enumStringToValue$
|
|
3443
|
+
m.privacyStatus = enumStringToValue$4(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
|
|
3402
3444
|
}
|
|
3403
3445
|
return m;
|
|
3404
3446
|
}
|
|
@@ -3417,7 +3459,7 @@ class YoutubeCustomizationV2 {
|
|
|
3417
3459
|
}
|
|
3418
3460
|
}
|
|
3419
3461
|
|
|
3420
|
-
function enumStringToValue$
|
|
3462
|
+
function enumStringToValue$3(enumRef, value) {
|
|
3421
3463
|
if (typeof value === 'number') {
|
|
3422
3464
|
return value;
|
|
3423
3465
|
}
|
|
@@ -3428,7 +3470,7 @@ class Media {
|
|
|
3428
3470
|
let m = new Media();
|
|
3429
3471
|
m = Object.assign(m, proto);
|
|
3430
3472
|
if (proto.mediaType) {
|
|
3431
|
-
m.mediaType = enumStringToValue$
|
|
3473
|
+
m.mediaType = enumStringToValue$3(MediaType, proto.mediaType);
|
|
3432
3474
|
}
|
|
3433
3475
|
return m;
|
|
3434
3476
|
}
|
|
@@ -3450,7 +3492,7 @@ class Media {
|
|
|
3450
3492
|
}
|
|
3451
3493
|
}
|
|
3452
3494
|
|
|
3453
|
-
function enumStringToValue$
|
|
3495
|
+
function enumStringToValue$2(enumRef, value) {
|
|
3454
3496
|
if (typeof value === 'number') {
|
|
3455
3497
|
return value;
|
|
3456
3498
|
}
|
|
@@ -3985,7 +4027,7 @@ class UserLink {
|
|
|
3985
4027
|
}
|
|
3986
4028
|
}
|
|
3987
4029
|
|
|
3988
|
-
function enumStringToValue(enumRef, value) {
|
|
4030
|
+
function enumStringToValue$1(enumRef, value) {
|
|
3989
4031
|
if (typeof value === 'number') {
|
|
3990
4032
|
return value;
|
|
3991
4033
|
}
|
|
@@ -4529,7 +4571,7 @@ class SocialPostOutput {
|
|
|
4529
4571
|
m.metadata = proto.metadata.map(MetadataV2.fromProto);
|
|
4530
4572
|
}
|
|
4531
4573
|
if (proto.status) {
|
|
4532
|
-
m.status = enumStringToValue(PostStatusV2, proto.status);
|
|
4574
|
+
m.status = enumStringToValue$1(PostStatusV2, proto.status);
|
|
4533
4575
|
}
|
|
4534
4576
|
return m;
|
|
4535
4577
|
}
|
|
@@ -4747,7 +4789,7 @@ class UploadToStorageRequest {
|
|
|
4747
4789
|
let m = new UploadToStorageRequest();
|
|
4748
4790
|
m = Object.assign(m, proto);
|
|
4749
4791
|
if (proto.mediaType) {
|
|
4750
|
-
m.mediaType = enumStringToValue(MediaType, proto.mediaType);
|
|
4792
|
+
m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
|
|
4751
4793
|
}
|
|
4752
4794
|
return m;
|
|
4753
4795
|
}
|
|
@@ -4792,6 +4834,151 @@ class UploadToStorageResponse {
|
|
|
4792
4834
|
}
|
|
4793
4835
|
}
|
|
4794
4836
|
|
|
4837
|
+
function enumStringToValue(enumRef, value) {
|
|
4838
|
+
if (typeof value === 'number') {
|
|
4839
|
+
return value;
|
|
4840
|
+
}
|
|
4841
|
+
return enumRef[value];
|
|
4842
|
+
}
|
|
4843
|
+
class Action {
|
|
4844
|
+
static fromProto(proto) {
|
|
4845
|
+
let m = new Action();
|
|
4846
|
+
m = Object.assign(m, proto);
|
|
4847
|
+
if (proto.actionType) {
|
|
4848
|
+
m.actionType = enumStringToValue(ActionType, proto.actionType);
|
|
4849
|
+
}
|
|
4850
|
+
return m;
|
|
4851
|
+
}
|
|
4852
|
+
constructor(kwargs) {
|
|
4853
|
+
if (!kwargs) {
|
|
4854
|
+
return;
|
|
4855
|
+
}
|
|
4856
|
+
Object.assign(this, kwargs);
|
|
4857
|
+
}
|
|
4858
|
+
toApiJson() {
|
|
4859
|
+
const toReturn = {};
|
|
4860
|
+
if (typeof this.actionType !== 'undefined') {
|
|
4861
|
+
toReturn['actionType'] = this.actionType;
|
|
4862
|
+
}
|
|
4863
|
+
if (typeof this.actionPayload !== 'undefined') {
|
|
4864
|
+
toReturn['actionPayload'] = this.actionPayload;
|
|
4865
|
+
}
|
|
4866
|
+
return toReturn;
|
|
4867
|
+
}
|
|
4868
|
+
}
|
|
4869
|
+
class EndChatRequest {
|
|
4870
|
+
static fromProto(proto) {
|
|
4871
|
+
let m = new EndChatRequest();
|
|
4872
|
+
m = Object.assign(m, proto);
|
|
4873
|
+
return m;
|
|
4874
|
+
}
|
|
4875
|
+
constructor(kwargs) {
|
|
4876
|
+
if (!kwargs) {
|
|
4877
|
+
return;
|
|
4878
|
+
}
|
|
4879
|
+
Object.assign(this, kwargs);
|
|
4880
|
+
}
|
|
4881
|
+
toApiJson() {
|
|
4882
|
+
const toReturn = {};
|
|
4883
|
+
if (typeof this.threadId !== 'undefined') {
|
|
4884
|
+
toReturn['threadId'] = this.threadId;
|
|
4885
|
+
}
|
|
4886
|
+
return toReturn;
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
class SendMessageRequest {
|
|
4890
|
+
static fromProto(proto) {
|
|
4891
|
+
let m = new SendMessageRequest();
|
|
4892
|
+
m = Object.assign(m, proto);
|
|
4893
|
+
if (proto.actions) {
|
|
4894
|
+
m.actions = proto.actions.map(Action.fromProto);
|
|
4895
|
+
}
|
|
4896
|
+
return m;
|
|
4897
|
+
}
|
|
4898
|
+
constructor(kwargs) {
|
|
4899
|
+
if (!kwargs) {
|
|
4900
|
+
return;
|
|
4901
|
+
}
|
|
4902
|
+
Object.assign(this, kwargs);
|
|
4903
|
+
}
|
|
4904
|
+
toApiJson() {
|
|
4905
|
+
const toReturn = {};
|
|
4906
|
+
if (typeof this.messageContent !== 'undefined') {
|
|
4907
|
+
toReturn['messageContent'] = this.messageContent;
|
|
4908
|
+
}
|
|
4909
|
+
if (typeof this.threadId !== 'undefined') {
|
|
4910
|
+
toReturn['threadId'] = this.threadId;
|
|
4911
|
+
}
|
|
4912
|
+
if (typeof this.actions !== 'undefined' && this.actions !== null) {
|
|
4913
|
+
toReturn['actions'] = 'toApiJson' in this.actions ? this.actions.toApiJson() : this.actions;
|
|
4914
|
+
}
|
|
4915
|
+
return toReturn;
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4918
|
+
class SendMessageResponse {
|
|
4919
|
+
static fromProto(proto) {
|
|
4920
|
+
let m = new SendMessageResponse();
|
|
4921
|
+
m = Object.assign(m, proto);
|
|
4922
|
+
return m;
|
|
4923
|
+
}
|
|
4924
|
+
constructor(kwargs) {
|
|
4925
|
+
if (!kwargs) {
|
|
4926
|
+
return;
|
|
4927
|
+
}
|
|
4928
|
+
Object.assign(this, kwargs);
|
|
4929
|
+
}
|
|
4930
|
+
toApiJson() {
|
|
4931
|
+
const toReturn = {};
|
|
4932
|
+
if (typeof this.messageResponse !== 'undefined') {
|
|
4933
|
+
toReturn['messageResponse'] = this.messageResponse;
|
|
4934
|
+
}
|
|
4935
|
+
if (typeof this.threadId !== 'undefined') {
|
|
4936
|
+
toReturn['threadId'] = this.threadId;
|
|
4937
|
+
}
|
|
4938
|
+
return toReturn;
|
|
4939
|
+
}
|
|
4940
|
+
}
|
|
4941
|
+
class StartChatRequest {
|
|
4942
|
+
static fromProto(proto) {
|
|
4943
|
+
let m = new StartChatRequest();
|
|
4944
|
+
m = Object.assign(m, proto);
|
|
4945
|
+
return m;
|
|
4946
|
+
}
|
|
4947
|
+
constructor(kwargs) {
|
|
4948
|
+
if (!kwargs) {
|
|
4949
|
+
return;
|
|
4950
|
+
}
|
|
4951
|
+
Object.assign(this, kwargs);
|
|
4952
|
+
}
|
|
4953
|
+
toApiJson() {
|
|
4954
|
+
const toReturn = {};
|
|
4955
|
+
return toReturn;
|
|
4956
|
+
}
|
|
4957
|
+
}
|
|
4958
|
+
class StartChatResponse {
|
|
4959
|
+
static fromProto(proto) {
|
|
4960
|
+
let m = new StartChatResponse();
|
|
4961
|
+
m = Object.assign(m, proto);
|
|
4962
|
+
return m;
|
|
4963
|
+
}
|
|
4964
|
+
constructor(kwargs) {
|
|
4965
|
+
if (!kwargs) {
|
|
4966
|
+
return;
|
|
4967
|
+
}
|
|
4968
|
+
Object.assign(this, kwargs);
|
|
4969
|
+
}
|
|
4970
|
+
toApiJson() {
|
|
4971
|
+
const toReturn = {};
|
|
4972
|
+
if (typeof this.assistantId !== 'undefined') {
|
|
4973
|
+
toReturn['assistantId'] = this.assistantId;
|
|
4974
|
+
}
|
|
4975
|
+
if (typeof this.threadId !== 'undefined') {
|
|
4976
|
+
toReturn['threadId'] = this.threadId;
|
|
4977
|
+
}
|
|
4978
|
+
return toReturn;
|
|
4979
|
+
}
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4795
4982
|
// *********************************
|
|
4796
4983
|
// Code generated by sdkgen
|
|
4797
4984
|
// DO NOT EDIT!.
|
|
@@ -4931,6 +5118,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4931
5118
|
args: [{ providedIn: 'root' }]
|
|
4932
5119
|
}], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
|
|
4933
5120
|
|
|
5121
|
+
// *********************************
|
|
5122
|
+
// Code generated by sdkgen
|
|
5123
|
+
// DO NOT EDIT!.
|
|
5124
|
+
//
|
|
5125
|
+
// API Service.
|
|
5126
|
+
// *********************************
|
|
5127
|
+
class ChatBotApiService {
|
|
5128
|
+
constructor(http, hostService) {
|
|
5129
|
+
this.http = http;
|
|
5130
|
+
this.hostService = hostService;
|
|
5131
|
+
this._host = this.hostService.hostWithScheme;
|
|
5132
|
+
}
|
|
5133
|
+
apiOptions() {
|
|
5134
|
+
return {
|
|
5135
|
+
headers: new HttpHeaders({
|
|
5136
|
+
'Content-Type': 'application/json'
|
|
5137
|
+
}),
|
|
5138
|
+
withCredentials: true
|
|
5139
|
+
};
|
|
5140
|
+
}
|
|
5141
|
+
startChat(r) {
|
|
5142
|
+
const request = (r.toApiJson) ? r : new StartChatRequest(r);
|
|
5143
|
+
return this.http.post(this._host + "/socialposts.v2.ChatBot/StartChat", request.toApiJson(), this.apiOptions())
|
|
5144
|
+
.pipe(map(resp => StartChatResponse.fromProto(resp)));
|
|
5145
|
+
}
|
|
5146
|
+
sendMessage(r) {
|
|
5147
|
+
const request = (r.toApiJson) ? r : new SendMessageRequest(r);
|
|
5148
|
+
return this.http.post(this._host + "/socialposts.v2.ChatBot/SendMessage", request.toApiJson(), this.apiOptions())
|
|
5149
|
+
.pipe(map(resp => SendMessageResponse.fromProto(resp)));
|
|
5150
|
+
}
|
|
5151
|
+
endChat(r) {
|
|
5152
|
+
const request = (r.toApiJson) ? r : new EndChatRequest(r);
|
|
5153
|
+
return this.http.post(this._host + "/socialposts.v2.ChatBot/EndChat", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5154
|
+
}
|
|
5155
|
+
}
|
|
5156
|
+
ChatBotApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5157
|
+
ChatBotApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotApiService, providedIn: 'root' });
|
|
5158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotApiService, decorators: [{
|
|
5159
|
+
type: Injectable,
|
|
5160
|
+
args: [{ providedIn: 'root' }]
|
|
5161
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
5162
|
+
|
|
4934
5163
|
// *********************************
|
|
4935
5164
|
// Code generated by sdkgen
|
|
4936
5165
|
// DO NOT EDIT!.
|
|
@@ -5815,5 +6044,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5815
6044
|
* Generated bundle index. Do not edit.
|
|
5816
6045
|
*/
|
|
5817
6046
|
|
|
5818
|
-
export { AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
6047
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, LinkV2, Links, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TwitterPostStats, UnsplashImageService, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
5819
6048
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|