@vendasta/social-posts 5.20.0 → 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.
Files changed (33) hide show
  1. package/esm2020/lib/_internal/chat-bot.api.service.mjs +50 -0
  2. package/esm2020/lib/_internal/enums/chat-bot.enum.mjs +12 -0
  3. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  4. package/esm2020/lib/_internal/index.mjs +2 -1
  5. package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
  6. package/esm2020/lib/_internal/interfaces/chat-bot.interface.mjs +8 -0
  7. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
  11. package/esm2020/lib/_internal/objects/chat-bot.mjs +146 -0
  12. package/esm2020/lib/_internal/objects/index.mjs +4 -2
  13. package/esm2020/lib/_internal/objects/social-post-v2.mjs +5 -5
  14. package/esm2020/lib/_internal/objects/social-posts.mjs +39 -1
  15. package/fesm2015/vendasta-social-posts.mjs +302 -35
  16. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  17. package/fesm2020/vendasta-social-posts.mjs +302 -35
  18. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  19. package/lib/_internal/chat-bot.api.service.d.ts +18 -0
  20. package/lib/_internal/enums/chat-bot.enum.d.ts +4 -0
  21. package/lib/_internal/enums/index.d.ts +1 -0
  22. package/lib/_internal/index.d.ts +1 -0
  23. package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
  24. package/lib/_internal/interfaces/chat-bot.interface.d.ts +23 -0
  25. package/lib/_internal/interfaces/index.d.ts +3 -1
  26. package/lib/_internal/interfaces/social-post-v2.interface.d.ts +1 -1
  27. package/lib/_internal/interfaces/social-posts.interface.d.ts +7 -0
  28. package/lib/_internal/objects/annotations.d.ts +9 -0
  29. package/lib/_internal/objects/chat-bot.d.ts +43 -0
  30. package/lib/_internal/objects/index.d.ts +3 -1
  31. package/lib/_internal/objects/social-post-v2.d.ts +1 -1
  32. package/lib/_internal/objects/social-posts.d.ts +10 -0
  33. 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$b(enumRef, value) {
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$a(enumRef, value) {
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$9(enumRef, value) {
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$9(CallToActionCallToActionType, proto.actionType);
232
+ m.actionType = enumStringToValue$b(CallToActionCallToActionType, proto.actionType);
221
233
  }
222
234
  return m;
223
235
  }
@@ -371,11 +383,14 @@ class PostTemplate {
371
383
  m.metaData = proto.metaData.map(MetaData.fromProto);
372
384
  }
373
385
  if (proto.postType) {
374
- m.postType = enumStringToValue$9(PostType, proto.postType);
386
+ m.postType = enumStringToValue$b(PostType, proto.postType);
375
387
  }
376
388
  if (proto.youtubeCustomization) {
377
389
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
378
390
  }
391
+ if (proto.tiktokCustomization) {
392
+ m.tiktokCustomization = TikTokCustomization.fromProto(proto.tiktokCustomization);
393
+ }
379
394
  return m;
380
395
  }
381
396
  constructor(kwargs) {
@@ -440,6 +455,9 @@ class PostTemplate {
440
455
  if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
441
456
  toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
442
457
  }
458
+ if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
459
+ toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
460
+ }
443
461
  return toReturn;
444
462
  }
445
463
  }
@@ -448,7 +466,7 @@ class SSIDPostType {
448
466
  let m = new SSIDPostType();
449
467
  m = Object.assign(m, proto);
450
468
  if (proto.postType) {
451
- m.postType = enumStringToValue$9(PostType, proto.postType);
469
+ m.postType = enumStringToValue$b(PostType, proto.postType);
452
470
  }
453
471
  return m;
454
472
  }
@@ -509,10 +527,10 @@ class SocialPost {
509
527
  m.posted = new Date(proto.posted);
510
528
  }
511
529
  if (proto.deletionStatus) {
512
- m.deletionStatus = enumStringToValue$9(SocialPostDeletionStatus, proto.deletionStatus);
530
+ m.deletionStatus = enumStringToValue$b(SocialPostDeletionStatus, proto.deletionStatus);
513
531
  }
514
532
  if (proto.service) {
515
- m.service = enumStringToValue$9(SocialPostService, proto.service);
533
+ m.service = enumStringToValue$b(SocialPostService, proto.service);
516
534
  }
517
535
  if (proto.created) {
518
536
  m.created = new Date(proto.created);
@@ -521,7 +539,7 @@ class SocialPost {
521
539
  m.scheduled = new Date(proto.scheduled);
522
540
  }
523
541
  if (proto.status) {
524
- m.status = enumStringToValue$9(PostingStatus, proto.status);
542
+ m.status = enumStringToValue$b(PostingStatus, proto.status);
525
543
  }
526
544
  if (proto.event) {
527
545
  m.event = Event.fromProto(proto.event);
@@ -533,7 +551,7 @@ class SocialPost {
533
551
  m.error = Error.fromProto(proto.error);
534
552
  }
535
553
  if (proto.postType) {
536
- m.postType = enumStringToValue$9(PostType, proto.postType);
554
+ m.postType = enumStringToValue$b(PostType, proto.postType);
537
555
  }
538
556
  if (proto.mediaEntries) {
539
557
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -544,6 +562,9 @@ class SocialPost {
544
562
  if (proto.youtubeCustomization) {
545
563
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
546
564
  }
565
+ if (proto.tiktokCustomization) {
566
+ m.tiktokCustomization = TikTokCustomization.fromProto(proto.tiktokCustomization);
567
+ }
547
568
  return m;
548
569
  }
549
570
  constructor(kwargs) {
@@ -647,6 +668,9 @@ class SocialPost {
647
668
  if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
648
669
  toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
649
670
  }
671
+ if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
672
+ toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
673
+ }
650
674
  return toReturn;
651
675
  }
652
676
  }
@@ -679,12 +703,38 @@ class SocialPostData {
679
703
  return toReturn;
680
704
  }
681
705
  }
706
+ class TikTokCustomization {
707
+ static fromProto(proto) {
708
+ let m = new TikTokCustomization();
709
+ m = Object.assign(m, proto);
710
+ return m;
711
+ }
712
+ constructor(kwargs) {
713
+ if (!kwargs) {
714
+ return;
715
+ }
716
+ Object.assign(this, kwargs);
717
+ }
718
+ toApiJson() {
719
+ const toReturn = {};
720
+ if (typeof this.allowComment !== 'undefined') {
721
+ toReturn['allowComment'] = this.allowComment;
722
+ }
723
+ if (typeof this.allowDuet !== 'undefined') {
724
+ toReturn['allowDuet'] = this.allowDuet;
725
+ }
726
+ if (typeof this.allowStitch !== 'undefined') {
727
+ toReturn['allowStitch'] = this.allowStitch;
728
+ }
729
+ return toReturn;
730
+ }
731
+ }
682
732
  class YoutubeCustomization {
683
733
  static fromProto(proto) {
684
734
  let m = new YoutubeCustomization();
685
735
  m = Object.assign(m, proto);
686
736
  if (proto.privacyStatus) {
687
- m.privacyStatus = enumStringToValue$9(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
737
+ m.privacyStatus = enumStringToValue$b(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
688
738
  }
689
739
  return m;
690
740
  }
@@ -706,7 +756,7 @@ class YoutubeCustomization {
706
756
  }
707
757
  }
708
758
 
709
- function enumStringToValue$8(enumRef, value) {
759
+ function enumStringToValue$a(enumRef, value) {
710
760
  if (typeof value === 'number') {
711
761
  return value;
712
762
  }
@@ -935,7 +985,7 @@ class PostEvent {
935
985
  }
936
986
  }
937
987
 
938
- function enumStringToValue$7(enumRef, value) {
988
+ function enumStringToValue$9(enumRef, value) {
939
989
  if (typeof value === 'number') {
940
990
  return value;
941
991
  }
@@ -1076,7 +1126,7 @@ class PixabayImage {
1076
1126
  }
1077
1127
  }
1078
1128
 
1079
- function enumStringToValue$6(enumRef, value) {
1129
+ function enumStringToValue$8(enumRef, value) {
1080
1130
  if (typeof value === 'number') {
1081
1131
  return value;
1082
1132
  }
@@ -1203,7 +1253,7 @@ class TwitterPostStats {
1203
1253
  }
1204
1254
  }
1205
1255
 
1206
- function enumStringToValue$5(enumRef, value) {
1256
+ function enumStringToValue$7(enumRef, value) {
1207
1257
  if (typeof value === 'number') {
1208
1258
  return value;
1209
1259
  }
@@ -1309,7 +1359,7 @@ class TenorMediaObject {
1309
1359
  }
1310
1360
  }
1311
1361
 
1312
- function enumStringToValue$4(enumRef, value) {
1362
+ function enumStringToValue$6(enumRef, value) {
1313
1363
  if (typeof value === 'number') {
1314
1364
  return value;
1315
1365
  }
@@ -1432,7 +1482,7 @@ class CreatePostTemplateRequest {
1432
1482
  m.metaData = proto.metaData.map(MetaData.fromProto);
1433
1483
  }
1434
1484
  if (proto.postType) {
1435
- m.postType = enumStringToValue$4(PostType, proto.postType);
1485
+ m.postType = enumStringToValue$6(PostType, proto.postType);
1436
1486
  }
1437
1487
  if (proto.youtubeCustomization) {
1438
1488
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -2665,7 +2715,7 @@ class RemoveFromMultilocationPostRequest {
2665
2715
  let m = new RemoveFromMultilocationPostRequest();
2666
2716
  m = Object.assign(m, proto);
2667
2717
  if (proto.reason) {
2668
- m.reason = enumStringToValue$4(RemoveReason, proto.reason);
2718
+ m.reason = enumStringToValue$6(RemoveReason, proto.reason);
2669
2719
  }
2670
2720
  if (proto.locations) {
2671
2721
  m.locations = proto.locations.map(Location.fromProto);
@@ -2888,10 +2938,10 @@ class SuggestMessageRequest {
2888
2938
  let m = new SuggestMessageRequest();
2889
2939
  m = Object.assign(m, proto);
2890
2940
  if (proto.length) {
2891
- m.length = enumStringToValue$4(MessageLength, proto.length);
2941
+ m.length = enumStringToValue$6(MessageLength, proto.length);
2892
2942
  }
2893
2943
  if (proto.type) {
2894
- m.type = enumStringToValue$4(TemplateType, proto.type);
2944
+ m.type = enumStringToValue$6(TemplateType, proto.type);
2895
2945
  }
2896
2946
  if (proto.metadata) {
2897
2947
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -2958,7 +3008,7 @@ class UpdatePostTemplateRequest {
2958
3008
  m.metaData = proto.metaData.map(MetaData.fromProto);
2959
3009
  }
2960
3010
  if (proto.postType) {
2961
- m.postType = enumStringToValue$4(PostType, proto.postType);
3011
+ m.postType = enumStringToValue$6(PostType, proto.postType);
2962
3012
  }
2963
3013
  if (proto.youtubeCustomization) {
2964
3014
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3025,7 +3075,37 @@ class UpdatePostTemplateRequest {
3025
3075
  }
3026
3076
  }
3027
3077
 
3028
- function enumStringToValue$3(enumRef, value) {
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) {
3029
3109
  if (typeof value === 'number') {
3030
3110
  return value;
3031
3111
  }
@@ -3260,7 +3340,7 @@ class SocialPostV2 {
3260
3340
  m.customization = PostCustomizationV2.fromProto(proto.customization);
3261
3341
  }
3262
3342
  if (proto.postType) {
3263
- m.postType = enumStringToValue$3(PostTypeV2, proto.postType);
3343
+ m.postType = enumStringToValue$4(PostTypeV2, proto.postType);
3264
3344
  }
3265
3345
  if (proto.metadata) {
3266
3346
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
@@ -3268,8 +3348,8 @@ class SocialPostV2 {
3268
3348
  if (proto.youtubeCustomization) {
3269
3349
  m.youtubeCustomization = YoutubeCustomizationV2.fromProto(proto.youtubeCustomization);
3270
3350
  }
3271
- if (proto.tilktokCustomization) {
3272
- m.tilktokCustomization = TikTokCustomizationV2.fromProto(proto.tilktokCustomization);
3351
+ if (proto.tiktokCustomization) {
3352
+ m.tiktokCustomization = TikTokCustomizationV2.fromProto(proto.tiktokCustomization);
3273
3353
  }
3274
3354
  return m;
3275
3355
  }
@@ -3323,8 +3403,8 @@ class SocialPostV2 {
3323
3403
  if (typeof this.shareId !== 'undefined') {
3324
3404
  toReturn['shareId'] = this.shareId;
3325
3405
  }
3326
- if (typeof this.tilktokCustomization !== 'undefined' && this.tilktokCustomization !== null) {
3327
- toReturn['tilktokCustomization'] = 'toApiJson' in this.tilktokCustomization ? this.tilktokCustomization.toApiJson() : this.tilktokCustomization;
3406
+ if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
3407
+ toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
3328
3408
  }
3329
3409
  return toReturn;
3330
3410
  }
@@ -3360,7 +3440,7 @@ class YoutubeCustomizationV2 {
3360
3440
  let m = new YoutubeCustomizationV2();
3361
3441
  m = Object.assign(m, proto);
3362
3442
  if (proto.privacyStatus) {
3363
- m.privacyStatus = enumStringToValue$3(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
3443
+ m.privacyStatus = enumStringToValue$4(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
3364
3444
  }
3365
3445
  return m;
3366
3446
  }
@@ -3379,7 +3459,7 @@ class YoutubeCustomizationV2 {
3379
3459
  }
3380
3460
  }
3381
3461
 
3382
- function enumStringToValue$2(enumRef, value) {
3462
+ function enumStringToValue$3(enumRef, value) {
3383
3463
  if (typeof value === 'number') {
3384
3464
  return value;
3385
3465
  }
@@ -3390,7 +3470,7 @@ class Media {
3390
3470
  let m = new Media();
3391
3471
  m = Object.assign(m, proto);
3392
3472
  if (proto.mediaType) {
3393
- m.mediaType = enumStringToValue$2(MediaType, proto.mediaType);
3473
+ m.mediaType = enumStringToValue$3(MediaType, proto.mediaType);
3394
3474
  }
3395
3475
  return m;
3396
3476
  }
@@ -3412,7 +3492,7 @@ class Media {
3412
3492
  }
3413
3493
  }
3414
3494
 
3415
- function enumStringToValue$1(enumRef, value) {
3495
+ function enumStringToValue$2(enumRef, value) {
3416
3496
  if (typeof value === 'number') {
3417
3497
  return value;
3418
3498
  }
@@ -3947,7 +4027,7 @@ class UserLink {
3947
4027
  }
3948
4028
  }
3949
4029
 
3950
- function enumStringToValue(enumRef, value) {
4030
+ function enumStringToValue$1(enumRef, value) {
3951
4031
  if (typeof value === 'number') {
3952
4032
  return value;
3953
4033
  }
@@ -4491,7 +4571,7 @@ class SocialPostOutput {
4491
4571
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
4492
4572
  }
4493
4573
  if (proto.status) {
4494
- m.status = enumStringToValue(PostStatusV2, proto.status);
4574
+ m.status = enumStringToValue$1(PostStatusV2, proto.status);
4495
4575
  }
4496
4576
  return m;
4497
4577
  }
@@ -4709,7 +4789,7 @@ class UploadToStorageRequest {
4709
4789
  let m = new UploadToStorageRequest();
4710
4790
  m = Object.assign(m, proto);
4711
4791
  if (proto.mediaType) {
4712
- m.mediaType = enumStringToValue(MediaType, proto.mediaType);
4792
+ m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
4713
4793
  }
4714
4794
  return m;
4715
4795
  }
@@ -4754,6 +4834,151 @@ class UploadToStorageResponse {
4754
4834
  }
4755
4835
  }
4756
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
+
4757
4982
  // *********************************
4758
4983
  // Code generated by sdkgen
4759
4984
  // DO NOT EDIT!.
@@ -4893,6 +5118,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4893
5118
  args: [{ providedIn: 'root' }]
4894
5119
  }], ctorParameters: function () { return [{ type: SocialPostsApiService }]; } });
4895
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
+
4896
5163
  // *********************************
4897
5164
  // Code generated by sdkgen
4898
5165
  // DO NOT EDIT!.
@@ -5777,5 +6044,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5777
6044
  * Generated bundle index. Do not edit.
5778
6045
  */
5779
6046
 
5780
- 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, 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 };
5781
6048
  //# sourceMappingURL=vendasta-social-posts.mjs.map