@vendasta/social-posts 5.20.7 → 5.21.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.
Files changed (55) hide show
  1. package/esm2020/lib/_internal/chat-bot-v2.api.service.mjs +40 -0
  2. package/esm2020/lib/_internal/chat-bot.api.service.mjs +7 -8
  3. package/esm2020/lib/_internal/common-ai-instructions.api.service.mjs +7 -8
  4. package/esm2020/lib/_internal/content-generation.api.service.mjs +7 -8
  5. package/esm2020/lib/_internal/curated-content.api.service.mjs +7 -8
  6. package/esm2020/lib/_internal/enums/chat-bot-v2.enum.mjs +13 -0
  7. package/esm2020/lib/_internal/enums/index.mjs +2 -1
  8. package/esm2020/lib/_internal/hash-tags.api.service.mjs +7 -8
  9. package/esm2020/lib/_internal/index.mjs +2 -1
  10. package/esm2020/lib/_internal/interfaces/chat-bot-v2.interface.mjs +8 -0
  11. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2020/lib/_internal/linkedin.api.service.mjs +7 -8
  13. package/esm2020/lib/_internal/multilocation-post.api.service.mjs +7 -8
  14. package/esm2020/lib/_internal/objects/chat-bot-v2.mjs +89 -0
  15. package/esm2020/lib/_internal/objects/index.mjs +2 -1
  16. package/esm2020/lib/_internal/partner-social-posts.api.service.mjs +7 -8
  17. package/esm2020/lib/_internal/pixabay-images.api.service.mjs +7 -8
  18. package/esm2020/lib/_internal/post-performance.api.service.mjs +7 -8
  19. package/esm2020/lib/_internal/post-templates.api.service.mjs +7 -8
  20. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +7 -8
  21. package/esm2020/lib/_internal/social-posts.api.service.mjs +7 -8
  22. package/esm2020/lib/_internal/tenor-gifs.api.service.mjs +7 -8
  23. package/esm2020/lib/_internal/unsplash.api.service.mjs +7 -8
  24. package/esm2020/lib/chat-bot-v2.service.mjs +26 -0
  25. package/esm2020/lib/index.mjs +2 -1
  26. package/fesm2015/vendasta-social-posts.mjs +267 -112
  27. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  28. package/fesm2020/vendasta-social-posts.mjs +267 -112
  29. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  30. package/lib/_internal/chat-bot-v2.api.service.d.ts +13 -0
  31. package/lib/_internal/chat-bot.api.service.d.ts +3 -5
  32. package/lib/_internal/common-ai-instructions.api.service.d.ts +2 -5
  33. package/lib/_internal/content-generation.api.service.d.ts +2 -5
  34. package/lib/_internal/curated-content.api.service.d.ts +2 -5
  35. package/lib/_internal/enums/chat-bot-v2.enum.d.ts +5 -0
  36. package/lib/_internal/enums/index.d.ts +1 -0
  37. package/lib/_internal/hash-tags.api.service.d.ts +3 -5
  38. package/lib/_internal/index.d.ts +1 -0
  39. package/lib/_internal/interfaces/chat-bot-v2.interface.d.ts +15 -0
  40. package/lib/_internal/interfaces/index.d.ts +1 -0
  41. package/lib/_internal/linkedin.api.service.d.ts +3 -5
  42. package/lib/_internal/multilocation-post.api.service.d.ts +3 -5
  43. package/lib/_internal/objects/chat-bot-v2.d.ts +26 -0
  44. package/lib/_internal/objects/index.d.ts +1 -0
  45. package/lib/_internal/partner-social-posts.api.service.d.ts +2 -5
  46. package/lib/_internal/pixabay-images.api.service.d.ts +2 -5
  47. package/lib/_internal/post-performance.api.service.d.ts +2 -5
  48. package/lib/_internal/post-templates.api.service.d.ts +3 -5
  49. package/lib/_internal/social-posts-v2.api.service.d.ts +3 -5
  50. package/lib/_internal/social-posts.api.service.d.ts +3 -5
  51. package/lib/_internal/tenor-gifs.api.service.d.ts +2 -5
  52. package/lib/_internal/unsplash.api.service.d.ts +2 -5
  53. package/lib/chat-bot-v2.service.d.ts +10 -0
  54. package/lib/index.d.ts +1 -0
  55. package/package.json +1 -1
@@ -1,11 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
2
+ import { Injectable, inject } from '@angular/core';
3
3
  import { of } from 'rxjs';
4
- import * as i1 from '@angular/common/http';
5
- import { HttpHeaders } from '@angular/common/http';
4
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
6
5
  import { map } from 'rxjs/operators';
7
6
 
8
- function enumStringToValue$d(enumRef, value) {
7
+ function enumStringToValue$e(enumRef, value) {
9
8
  if (typeof value === 'number') {
10
9
  return value;
11
10
  }
@@ -32,7 +31,7 @@ class FieldMask {
32
31
  }
33
32
  }
34
33
 
35
- function enumStringToValue$c(enumRef, value) {
34
+ function enumStringToValue$d(enumRef, value) {
36
35
  if (typeof value === 'number') {
37
36
  return value;
38
37
  }
@@ -211,6 +210,19 @@ var ActionType;
211
210
  ActionType[ActionType["CHANGE_TONE"] = 1] = "CHANGE_TONE";
212
211
  })(ActionType || (ActionType = {}));
213
212
 
213
+ // *********************************
214
+ // Code generated by sdkgen
215
+ // DO NOT EDIT!.
216
+ //
217
+ // Enums.
218
+ // *********************************
219
+ var Role;
220
+ (function (Role) {
221
+ Role[Role["INVALID"] = 0] = "INVALID";
222
+ Role[Role["USER"] = 1] = "USER";
223
+ Role[Role["AI_BOT"] = 2] = "AI_BOT";
224
+ })(Role || (Role = {}));
225
+
214
226
  // *********************************
215
227
  // Code generated by sdkgen
216
228
  // DO NOT EDIT!.
@@ -218,7 +230,7 @@ var ActionType;
218
230
  // Enums Index.
219
231
  // *********************************
220
232
 
221
- function enumStringToValue$b(enumRef, value) {
233
+ function enumStringToValue$c(enumRef, value) {
222
234
  if (typeof value === 'number') {
223
235
  return value;
224
236
  }
@@ -229,7 +241,7 @@ class CallToAction {
229
241
  let m = new CallToAction();
230
242
  m = Object.assign(m, proto);
231
243
  if (proto.actionType) {
232
- m.actionType = enumStringToValue$b(CallToActionCallToActionType, proto.actionType);
244
+ m.actionType = enumStringToValue$c(CallToActionCallToActionType, proto.actionType);
233
245
  }
234
246
  return m;
235
247
  }
@@ -383,7 +395,7 @@ class PostTemplate {
383
395
  m.metaData = proto.metaData.map(MetaData.fromProto);
384
396
  }
385
397
  if (proto.postType) {
386
- m.postType = enumStringToValue$b(PostType, proto.postType);
398
+ m.postType = enumStringToValue$c(PostType, proto.postType);
387
399
  }
388
400
  if (proto.youtubeCustomization) {
389
401
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -466,7 +478,7 @@ class SSIDPostType {
466
478
  let m = new SSIDPostType();
467
479
  m = Object.assign(m, proto);
468
480
  if (proto.postType) {
469
- m.postType = enumStringToValue$b(PostType, proto.postType);
481
+ m.postType = enumStringToValue$c(PostType, proto.postType);
470
482
  }
471
483
  return m;
472
484
  }
@@ -527,10 +539,10 @@ class SocialPost {
527
539
  m.posted = new Date(proto.posted);
528
540
  }
529
541
  if (proto.deletionStatus) {
530
- m.deletionStatus = enumStringToValue$b(SocialPostDeletionStatus, proto.deletionStatus);
542
+ m.deletionStatus = enumStringToValue$c(SocialPostDeletionStatus, proto.deletionStatus);
531
543
  }
532
544
  if (proto.service) {
533
- m.service = enumStringToValue$b(SocialPostService, proto.service);
545
+ m.service = enumStringToValue$c(SocialPostService, proto.service);
534
546
  }
535
547
  if (proto.created) {
536
548
  m.created = new Date(proto.created);
@@ -539,7 +551,7 @@ class SocialPost {
539
551
  m.scheduled = new Date(proto.scheduled);
540
552
  }
541
553
  if (proto.status) {
542
- m.status = enumStringToValue$b(PostingStatus, proto.status);
554
+ m.status = enumStringToValue$c(PostingStatus, proto.status);
543
555
  }
544
556
  if (proto.event) {
545
557
  m.event = Event.fromProto(proto.event);
@@ -551,7 +563,7 @@ class SocialPost {
551
563
  m.error = Error.fromProto(proto.error);
552
564
  }
553
565
  if (proto.postType) {
554
- m.postType = enumStringToValue$b(PostType, proto.postType);
566
+ m.postType = enumStringToValue$c(PostType, proto.postType);
555
567
  }
556
568
  if (proto.mediaEntries) {
557
569
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -734,7 +746,7 @@ class YoutubeCustomization {
734
746
  let m = new YoutubeCustomization();
735
747
  m = Object.assign(m, proto);
736
748
  if (proto.privacyStatus) {
737
- m.privacyStatus = enumStringToValue$b(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
749
+ m.privacyStatus = enumStringToValue$c(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
738
750
  }
739
751
  return m;
740
752
  }
@@ -756,7 +768,7 @@ class YoutubeCustomization {
756
768
  }
757
769
  }
758
770
 
759
- function enumStringToValue$a(enumRef, value) {
771
+ function enumStringToValue$b(enumRef, value) {
760
772
  if (typeof value === 'number') {
761
773
  return value;
762
774
  }
@@ -985,7 +997,7 @@ class PostEvent {
985
997
  }
986
998
  }
987
999
 
988
- function enumStringToValue$9(enumRef, value) {
1000
+ function enumStringToValue$a(enumRef, value) {
989
1001
  if (typeof value === 'number') {
990
1002
  return value;
991
1003
  }
@@ -1126,7 +1138,7 @@ class PixabayImage {
1126
1138
  }
1127
1139
  }
1128
1140
 
1129
- function enumStringToValue$8(enumRef, value) {
1141
+ function enumStringToValue$9(enumRef, value) {
1130
1142
  if (typeof value === 'number') {
1131
1143
  return value;
1132
1144
  }
@@ -1253,7 +1265,7 @@ class TwitterPostStats {
1253
1265
  }
1254
1266
  }
1255
1267
 
1256
- function enumStringToValue$7(enumRef, value) {
1268
+ function enumStringToValue$8(enumRef, value) {
1257
1269
  if (typeof value === 'number') {
1258
1270
  return value;
1259
1271
  }
@@ -1359,7 +1371,7 @@ class TenorMediaObject {
1359
1371
  }
1360
1372
  }
1361
1373
 
1362
- function enumStringToValue$6(enumRef, value) {
1374
+ function enumStringToValue$7(enumRef, value) {
1363
1375
  if (typeof value === 'number') {
1364
1376
  return value;
1365
1377
  }
@@ -1482,7 +1494,7 @@ class CreatePostTemplateRequest {
1482
1494
  m.metaData = proto.metaData.map(MetaData.fromProto);
1483
1495
  }
1484
1496
  if (proto.postType) {
1485
- m.postType = enumStringToValue$6(PostType, proto.postType);
1497
+ m.postType = enumStringToValue$7(PostType, proto.postType);
1486
1498
  }
1487
1499
  if (proto.youtubeCustomization) {
1488
1500
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -2715,7 +2727,7 @@ class RemoveFromMultilocationPostRequest {
2715
2727
  let m = new RemoveFromMultilocationPostRequest();
2716
2728
  m = Object.assign(m, proto);
2717
2729
  if (proto.reason) {
2718
- m.reason = enumStringToValue$6(RemoveReason, proto.reason);
2730
+ m.reason = enumStringToValue$7(RemoveReason, proto.reason);
2719
2731
  }
2720
2732
  if (proto.locations) {
2721
2733
  m.locations = proto.locations.map(Location.fromProto);
@@ -2938,10 +2950,10 @@ class SuggestMessageRequest {
2938
2950
  let m = new SuggestMessageRequest();
2939
2951
  m = Object.assign(m, proto);
2940
2952
  if (proto.length) {
2941
- m.length = enumStringToValue$6(MessageLength, proto.length);
2953
+ m.length = enumStringToValue$7(MessageLength, proto.length);
2942
2954
  }
2943
2955
  if (proto.type) {
2944
- m.type = enumStringToValue$6(TemplateType, proto.type);
2956
+ m.type = enumStringToValue$7(TemplateType, proto.type);
2945
2957
  }
2946
2958
  if (proto.metadata) {
2947
2959
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -3008,7 +3020,7 @@ class UpdatePostTemplateRequest {
3008
3020
  m.metaData = proto.metaData.map(MetaData.fromProto);
3009
3021
  }
3010
3022
  if (proto.postType) {
3011
- m.postType = enumStringToValue$6(PostType, proto.postType);
3023
+ m.postType = enumStringToValue$7(PostType, proto.postType);
3012
3024
  }
3013
3025
  if (proto.youtubeCustomization) {
3014
3026
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3075,7 +3087,7 @@ class UpdatePostTemplateRequest {
3075
3087
  }
3076
3088
  }
3077
3089
 
3078
- function enumStringToValue$5(enumRef, value) {
3090
+ function enumStringToValue$6(enumRef, value) {
3079
3091
  if (typeof value === 'number') {
3080
3092
  return value;
3081
3093
  }
@@ -3105,7 +3117,7 @@ class Access {
3105
3117
  }
3106
3118
  }
3107
3119
 
3108
- function enumStringToValue$4(enumRef, value) {
3120
+ function enumStringToValue$5(enumRef, value) {
3109
3121
  if (typeof value === 'number') {
3110
3122
  return value;
3111
3123
  }
@@ -3340,7 +3352,7 @@ class SocialPostV2 {
3340
3352
  m.customization = PostCustomizationV2.fromProto(proto.customization);
3341
3353
  }
3342
3354
  if (proto.postType) {
3343
- m.postType = enumStringToValue$4(PostTypeV2, proto.postType);
3355
+ m.postType = enumStringToValue$5(PostTypeV2, proto.postType);
3344
3356
  }
3345
3357
  if (proto.metadata) {
3346
3358
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
@@ -3440,7 +3452,7 @@ class YoutubeCustomizationV2 {
3440
3452
  let m = new YoutubeCustomizationV2();
3441
3453
  m = Object.assign(m, proto);
3442
3454
  if (proto.privacyStatus) {
3443
- m.privacyStatus = enumStringToValue$4(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
3455
+ m.privacyStatus = enumStringToValue$5(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
3444
3456
  }
3445
3457
  return m;
3446
3458
  }
@@ -3459,7 +3471,7 @@ class YoutubeCustomizationV2 {
3459
3471
  }
3460
3472
  }
3461
3473
 
3462
- function enumStringToValue$3(enumRef, value) {
3474
+ function enumStringToValue$4(enumRef, value) {
3463
3475
  if (typeof value === 'number') {
3464
3476
  return value;
3465
3477
  }
@@ -3470,7 +3482,7 @@ class Media {
3470
3482
  let m = new Media();
3471
3483
  m = Object.assign(m, proto);
3472
3484
  if (proto.mediaType) {
3473
- m.mediaType = enumStringToValue$3(MediaType, proto.mediaType);
3485
+ m.mediaType = enumStringToValue$4(MediaType, proto.mediaType);
3474
3486
  }
3475
3487
  return m;
3476
3488
  }
@@ -3492,7 +3504,7 @@ class Media {
3492
3504
  }
3493
3505
  }
3494
3506
 
3495
- function enumStringToValue$2(enumRef, value) {
3507
+ function enumStringToValue$3(enumRef, value) {
3496
3508
  if (typeof value === 'number') {
3497
3509
  return value;
3498
3510
  }
@@ -4027,7 +4039,7 @@ class UserLink {
4027
4039
  }
4028
4040
  }
4029
4041
 
4030
- function enumStringToValue$1(enumRef, value) {
4042
+ function enumStringToValue$2(enumRef, value) {
4031
4043
  if (typeof value === 'number') {
4032
4044
  return value;
4033
4045
  }
@@ -4682,7 +4694,7 @@ class SocialPostOutput {
4682
4694
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
4683
4695
  }
4684
4696
  if (proto.status) {
4685
- m.status = enumStringToValue$1(PostStatusV2, proto.status);
4697
+ m.status = enumStringToValue$2(PostStatusV2, proto.status);
4686
4698
  }
4687
4699
  return m;
4688
4700
  }
@@ -4900,7 +4912,7 @@ class UploadToStorageRequest {
4900
4912
  let m = new UploadToStorageRequest();
4901
4913
  m = Object.assign(m, proto);
4902
4914
  if (proto.mediaType) {
4903
- m.mediaType = enumStringToValue$1(MediaType, proto.mediaType);
4915
+ m.mediaType = enumStringToValue$2(MediaType, proto.mediaType);
4904
4916
  }
4905
4917
  return m;
4906
4918
  }
@@ -4968,7 +4980,7 @@ class UploadedMedia {
4968
4980
  }
4969
4981
  }
4970
4982
 
4971
- function enumStringToValue(enumRef, value) {
4983
+ function enumStringToValue$1(enumRef, value) {
4972
4984
  if (typeof value === 'number') {
4973
4985
  return value;
4974
4986
  }
@@ -4979,7 +4991,7 @@ class Action {
4979
4991
  let m = new Action();
4980
4992
  m = Object.assign(m, proto);
4981
4993
  if (proto.actionType) {
4982
- m.actionType = enumStringToValue(ActionType, proto.actionType);
4994
+ m.actionType = enumStringToValue$1(ActionType, proto.actionType);
4983
4995
  }
4984
4996
  return m;
4985
4997
  }
@@ -5119,6 +5131,94 @@ class StartChatResponse {
5119
5131
  }
5120
5132
  }
5121
5133
 
5134
+ function enumStringToValue(enumRef, value) {
5135
+ if (typeof value === 'number') {
5136
+ return value;
5137
+ }
5138
+ return enumRef[value];
5139
+ }
5140
+ class ChatMessage {
5141
+ static fromProto(proto) {
5142
+ let m = new ChatMessage();
5143
+ m = Object.assign(m, proto);
5144
+ if (proto.role) {
5145
+ m.role = enumStringToValue(Role, proto.role);
5146
+ }
5147
+ return m;
5148
+ }
5149
+ constructor(kwargs) {
5150
+ if (!kwargs) {
5151
+ return;
5152
+ }
5153
+ Object.assign(this, kwargs);
5154
+ }
5155
+ toApiJson() {
5156
+ const toReturn = {};
5157
+ if (typeof this.role !== 'undefined') {
5158
+ toReturn['role'] = this.role;
5159
+ }
5160
+ if (typeof this.content !== 'undefined') {
5161
+ toReturn['content'] = this.content;
5162
+ }
5163
+ return toReturn;
5164
+ }
5165
+ }
5166
+ class SendMessageV2Request {
5167
+ static fromProto(proto) {
5168
+ let m = new SendMessageV2Request();
5169
+ m = Object.assign(m, proto);
5170
+ if (proto.messages) {
5171
+ m.messages = proto.messages.map(ChatMessage.fromProto);
5172
+ }
5173
+ return m;
5174
+ }
5175
+ constructor(kwargs) {
5176
+ if (!kwargs) {
5177
+ return;
5178
+ }
5179
+ Object.assign(this, kwargs);
5180
+ }
5181
+ toApiJson() {
5182
+ const toReturn = {};
5183
+ if (typeof this.businessId !== 'undefined') {
5184
+ toReturn['businessId'] = this.businessId;
5185
+ }
5186
+ if (typeof this.partnerId !== 'undefined') {
5187
+ toReturn['partnerId'] = this.partnerId;
5188
+ }
5189
+ if (typeof this.marketId !== 'undefined') {
5190
+ toReturn['marketId'] = this.marketId;
5191
+ }
5192
+ if (typeof this.customInstructions !== 'undefined') {
5193
+ toReturn['customInstructions'] = this.customInstructions;
5194
+ }
5195
+ if (typeof this.messages !== 'undefined' && this.messages !== null) {
5196
+ toReturn['messages'] = 'toApiJson' in this.messages ? this.messages.toApiJson() : this.messages;
5197
+ }
5198
+ return toReturn;
5199
+ }
5200
+ }
5201
+ class SendMessageV2Response {
5202
+ static fromProto(proto) {
5203
+ let m = new SendMessageV2Response();
5204
+ m = Object.assign(m, proto);
5205
+ return m;
5206
+ }
5207
+ constructor(kwargs) {
5208
+ if (!kwargs) {
5209
+ return;
5210
+ }
5211
+ Object.assign(this, kwargs);
5212
+ }
5213
+ toApiJson() {
5214
+ const toReturn = {};
5215
+ if (typeof this.messageResponse !== 'undefined') {
5216
+ toReturn['messageResponse'] = this.messageResponse;
5217
+ }
5218
+ return toReturn;
5219
+ }
5220
+ }
5221
+
5122
5222
  // *********************************
5123
5223
  // Code generated by sdkgen
5124
5224
  // DO NOT EDIT!.
@@ -5156,9 +5256,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5156
5256
  // API Service.
5157
5257
  // *********************************
5158
5258
  class SocialPostsApiService {
5159
- constructor(http, hostService) {
5160
- this.http = http;
5161
- this.hostService = hostService;
5259
+ constructor() {
5260
+ this.hostService = inject(HostService);
5261
+ this.http = inject(HttpClient);
5162
5262
  this._host = this.hostService.hostWithScheme;
5163
5263
  }
5164
5264
  apiOptions() {
@@ -5209,12 +5309,12 @@ class SocialPostsApiService {
5209
5309
  .pipe(map(resp => SuggestMessageResponse.fromProto(resp)));
5210
5310
  }
5211
5311
  }
5212
- SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5312
+ SocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5213
5313
  SocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, providedIn: 'root' });
5214
5314
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsApiService, decorators: [{
5215
5315
  type: Injectable,
5216
5316
  args: [{ providedIn: 'root' }]
5217
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5317
+ }] });
5218
5318
 
5219
5319
  class SocialPostsService {
5220
5320
  constructor(socialPostsApiService) {
@@ -5264,9 +5364,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5264
5364
  // API Service.
5265
5365
  // *********************************
5266
5366
  class PostTemplatesApiService {
5267
- constructor(http, hostService) {
5268
- this.http = http;
5269
- this.hostService = hostService;
5367
+ constructor() {
5368
+ this.hostService = inject(HostService);
5369
+ this.http = inject(HttpClient);
5270
5370
  this._host = this.hostService.hostWithScheme;
5271
5371
  }
5272
5372
  apiOptions() {
@@ -5301,12 +5401,12 @@ class PostTemplatesApiService {
5301
5401
  return this.http.post(this._host + "/socialposts.v1.PostTemplates/DeletePostTemplate", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5302
5402
  }
5303
5403
  }
5304
- PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostTemplatesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5404
+ PostTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostTemplatesApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5305
5405
  PostTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostTemplatesApiService, providedIn: 'root' });
5306
5406
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostTemplatesApiService, decorators: [{
5307
5407
  type: Injectable,
5308
5408
  args: [{ providedIn: 'root' }]
5309
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5409
+ }] });
5310
5410
 
5311
5411
  // *********************************
5312
5412
  // Code generated by sdkgen
@@ -5315,9 +5415,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5315
5415
  // API Service.
5316
5416
  // *********************************
5317
5417
  class ChatBotApiService {
5318
- constructor(http, hostService) {
5319
- this.http = http;
5320
- this.hostService = hostService;
5418
+ constructor() {
5419
+ this.hostService = inject(HostService);
5420
+ this.http = inject(HttpClient);
5321
5421
  this._host = this.hostService.hostWithScheme;
5322
5422
  }
5323
5423
  apiOptions() {
@@ -5343,12 +5443,45 @@ class ChatBotApiService {
5343
5443
  return this.http.post(this._host + "/socialposts.v2.ChatBot/EndChat", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5344
5444
  }
5345
5445
  }
5346
- 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 });
5446
+ ChatBotApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5347
5447
  ChatBotApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotApiService, providedIn: 'root' });
5348
5448
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotApiService, decorators: [{
5349
5449
  type: Injectable,
5350
5450
  args: [{ providedIn: 'root' }]
5351
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5451
+ }] });
5452
+
5453
+ // *********************************
5454
+ // Code generated by sdkgen
5455
+ // DO NOT EDIT!.
5456
+ //
5457
+ // API Service.
5458
+ // *********************************
5459
+ class ChatBotV2ApiService {
5460
+ constructor() {
5461
+ this.hostService = inject(HostService);
5462
+ this.http = inject(HttpClient);
5463
+ this._host = this.hostService.hostWithScheme;
5464
+ }
5465
+ apiOptions() {
5466
+ return {
5467
+ headers: new HttpHeaders({
5468
+ 'Content-Type': 'application/json'
5469
+ }),
5470
+ withCredentials: true
5471
+ };
5472
+ }
5473
+ sendMessageV2(r) {
5474
+ const request = (r.toApiJson) ? r : new SendMessageV2Request(r);
5475
+ return this.http.post(this._host + "/socialposts.v2.ChatBotV2/SendMessageV2", request.toApiJson(), this.apiOptions())
5476
+ .pipe(map(resp => SendMessageV2Response.fromProto(resp)));
5477
+ }
5478
+ }
5479
+ ChatBotV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotV2ApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5480
+ ChatBotV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotV2ApiService, providedIn: 'root' });
5481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotV2ApiService, decorators: [{
5482
+ type: Injectable,
5483
+ args: [{ providedIn: 'root' }]
5484
+ }] });
5352
5485
 
5353
5486
  // *********************************
5354
5487
  // Code generated by sdkgen
@@ -5357,9 +5490,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5357
5490
  // API Service.
5358
5491
  // *********************************
5359
5492
  class CommonAiInstructionsApiService {
5360
- constructor(http, hostService) {
5361
- this.http = http;
5362
- this.hostService = hostService;
5493
+ constructor() {
5494
+ this.hostService = inject(HostService);
5495
+ this.http = inject(HttpClient);
5363
5496
  this._host = this.hostService.hostWithScheme;
5364
5497
  }
5365
5498
  apiOptions() {
@@ -5386,12 +5519,12 @@ class CommonAiInstructionsApiService {
5386
5519
  .pipe(map(resp => GetCommonAiInstructionsResponse.fromProto(resp)));
5387
5520
  }
5388
5521
  }
5389
- CommonAiInstructionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5522
+ CommonAiInstructionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5390
5523
  CommonAiInstructionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, providedIn: 'root' });
5391
5524
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CommonAiInstructionsApiService, decorators: [{
5392
5525
  type: Injectable,
5393
5526
  args: [{ providedIn: 'root' }]
5394
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5527
+ }] });
5395
5528
 
5396
5529
  // *********************************
5397
5530
  // Code generated by sdkgen
@@ -5400,9 +5533,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5400
5533
  // API Service.
5401
5534
  // *********************************
5402
5535
  class ContentGenerationApiService {
5403
- constructor(http, hostService) {
5404
- this.http = http;
5405
- this.hostService = hostService;
5536
+ constructor() {
5537
+ this.hostService = inject(HostService);
5538
+ this.http = inject(HttpClient);
5406
5539
  this._host = this.hostService.hostWithScheme;
5407
5540
  }
5408
5541
  apiOptions() {
@@ -5419,12 +5552,12 @@ class ContentGenerationApiService {
5419
5552
  .pipe(map(resp => GeneratePostsResponse.fromProto(resp)));
5420
5553
  }
5421
5554
  }
5422
- ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5555
+ ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5423
5556
  ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
5424
5557
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, decorators: [{
5425
5558
  type: Injectable,
5426
5559
  args: [{ providedIn: 'root' }]
5427
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5560
+ }] });
5428
5561
 
5429
5562
  // *********************************
5430
5563
  // Code generated by sdkgen
@@ -5433,9 +5566,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5433
5566
  // API Service.
5434
5567
  // *********************************
5435
5568
  class CuratedContentApiService {
5436
- constructor(http, hostService) {
5437
- this.http = http;
5438
- this.hostService = hostService;
5569
+ constructor() {
5570
+ this.hostService = inject(HostService);
5571
+ this.http = inject(HttpClient);
5439
5572
  this._host = this.hostService.hostWithScheme;
5440
5573
  }
5441
5574
  apiOptions() {
@@ -5452,12 +5585,12 @@ class CuratedContentApiService {
5452
5585
  .pipe(map(resp => ListCuratedContentResponse.fromProto(resp)));
5453
5586
  }
5454
5587
  }
5455
- CuratedContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5588
+ CuratedContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5456
5589
  CuratedContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, providedIn: 'root' });
5457
5590
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CuratedContentApiService, decorators: [{
5458
5591
  type: Injectable,
5459
5592
  args: [{ providedIn: 'root' }]
5460
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5593
+ }] });
5461
5594
 
5462
5595
  // *********************************
5463
5596
  // Code generated by sdkgen
@@ -5466,9 +5599,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5466
5599
  // API Service.
5467
5600
  // *********************************
5468
5601
  class HashTagsApiService {
5469
- constructor(http, hostService) {
5470
- this.http = http;
5471
- this.hostService = hostService;
5602
+ constructor() {
5603
+ this.hostService = inject(HostService);
5604
+ this.http = inject(HttpClient);
5472
5605
  this._host = this.hostService.hostWithScheme;
5473
5606
  }
5474
5607
  apiOptions() {
@@ -5493,12 +5626,12 @@ class HashTagsApiService {
5493
5626
  .pipe(map(resp => SearchHashtagResponse.fromProto(resp)));
5494
5627
  }
5495
5628
  }
5496
- HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HashTagsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5629
+ HashTagsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HashTagsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5497
5630
  HashTagsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HashTagsApiService, providedIn: 'root' });
5498
5631
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HashTagsApiService, decorators: [{
5499
5632
  type: Injectable,
5500
5633
  args: [{ providedIn: 'root' }]
5501
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5634
+ }] });
5502
5635
 
5503
5636
  // *********************************
5504
5637
  // Code generated by sdkgen
@@ -5507,9 +5640,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5507
5640
  // API Service.
5508
5641
  // *********************************
5509
5642
  class LinkedinApiService {
5510
- constructor(http, hostService) {
5511
- this.http = http;
5512
- this.hostService = hostService;
5643
+ constructor() {
5644
+ this.hostService = inject(HostService);
5645
+ this.http = inject(HttpClient);
5513
5646
  this._host = this.hostService.hostWithScheme;
5514
5647
  }
5515
5648
  apiOptions() {
@@ -5530,12 +5663,12 @@ class LinkedinApiService {
5530
5663
  .pipe(map(resp => MediaUploadResponse.fromProto(resp)));
5531
5664
  }
5532
5665
  }
5533
- LinkedinApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkedinApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5666
+ LinkedinApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkedinApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5534
5667
  LinkedinApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkedinApiService, providedIn: 'root' });
5535
5668
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LinkedinApiService, decorators: [{
5536
5669
  type: Injectable,
5537
5670
  args: [{ providedIn: 'root' }]
5538
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5671
+ }] });
5539
5672
 
5540
5673
  // *********************************
5541
5674
  // Code generated by sdkgen
@@ -5544,9 +5677,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5544
5677
  // API Service.
5545
5678
  // *********************************
5546
5679
  class MultilocationPostApiService {
5547
- constructor(http, hostService) {
5548
- this.http = http;
5549
- this.hostService = hostService;
5680
+ constructor() {
5681
+ this.hostService = inject(HostService);
5682
+ this.http = inject(HttpClient);
5550
5683
  this._host = this.hostService.hostWithScheme;
5551
5684
  }
5552
5685
  apiOptions() {
@@ -5586,12 +5719,12 @@ class MultilocationPostApiService {
5586
5719
  .pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
5587
5720
  }
5588
5721
  }
5589
- MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5722
+ MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5590
5723
  MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
5591
5724
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostApiService, decorators: [{
5592
5725
  type: Injectable,
5593
5726
  args: [{ providedIn: 'root' }]
5594
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5727
+ }] });
5595
5728
 
5596
5729
  // *********************************
5597
5730
  // Code generated by sdkgen
@@ -5600,9 +5733,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5600
5733
  // API Service.
5601
5734
  // *********************************
5602
5735
  class PartnerSocialPostsApiService {
5603
- constructor(http, hostService) {
5604
- this.http = http;
5605
- this.hostService = hostService;
5736
+ constructor() {
5737
+ this.hostService = inject(HostService);
5738
+ this.http = inject(HttpClient);
5606
5739
  this._host = this.hostService.hostWithScheme;
5607
5740
  }
5608
5741
  apiOptions() {
@@ -5624,12 +5757,12 @@ class PartnerSocialPostsApiService {
5624
5757
  .pipe(map(resp => PartnerListScheduledPostsResponse.fromProto(resp)));
5625
5758
  }
5626
5759
  }
5627
- PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5760
+ PartnerSocialPostsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PartnerSocialPostsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5628
5761
  PartnerSocialPostsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PartnerSocialPostsApiService, providedIn: 'root' });
5629
5762
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PartnerSocialPostsApiService, decorators: [{
5630
5763
  type: Injectable,
5631
5764
  args: [{ providedIn: 'root' }]
5632
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5765
+ }] });
5633
5766
 
5634
5767
  // *********************************
5635
5768
  // Code generated by sdkgen
@@ -5638,9 +5771,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5638
5771
  // API Service.
5639
5772
  // *********************************
5640
5773
  class PixabayImagesApiService {
5641
- constructor(http, hostService) {
5642
- this.http = http;
5643
- this.hostService = hostService;
5774
+ constructor() {
5775
+ this.hostService = inject(HostService);
5776
+ this.http = inject(HttpClient);
5644
5777
  this._host = this.hostService.hostWithScheme;
5645
5778
  }
5646
5779
  apiOptions() {
@@ -5657,12 +5790,12 @@ class PixabayImagesApiService {
5657
5790
  .pipe(map(resp => ListPixabayImagesResponse.fromProto(resp)));
5658
5791
  }
5659
5792
  }
5660
- PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5793
+ PixabayImagesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PixabayImagesApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5661
5794
  PixabayImagesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PixabayImagesApiService, providedIn: 'root' });
5662
5795
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PixabayImagesApiService, decorators: [{
5663
5796
  type: Injectable,
5664
5797
  args: [{ providedIn: 'root' }]
5665
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5798
+ }] });
5666
5799
 
5667
5800
  // *********************************
5668
5801
  // Code generated by sdkgen
@@ -5671,9 +5804,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5671
5804
  // API Service.
5672
5805
  // *********************************
5673
5806
  class PostPerformanceApiService {
5674
- constructor(http, hostService) {
5675
- this.http = http;
5676
- this.hostService = hostService;
5807
+ constructor() {
5808
+ this.hostService = inject(HostService);
5809
+ this.http = inject(HttpClient);
5677
5810
  this._host = this.hostService.hostWithScheme;
5678
5811
  }
5679
5812
  apiOptions() {
@@ -5695,12 +5828,12 @@ class PostPerformanceApiService {
5695
5828
  .pipe(map(resp => GetGeneratedCSVForPerformanceStatsResponse.fromProto(resp)));
5696
5829
  }
5697
5830
  }
5698
- PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5831
+ PostPerformanceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostPerformanceApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5699
5832
  PostPerformanceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostPerformanceApiService, providedIn: 'root' });
5700
5833
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PostPerformanceApiService, decorators: [{
5701
5834
  type: Injectable,
5702
5835
  args: [{ providedIn: 'root' }]
5703
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5836
+ }] });
5704
5837
 
5705
5838
  // *********************************
5706
5839
  // Code generated by sdkgen
@@ -5709,9 +5842,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5709
5842
  // API Service.
5710
5843
  // *********************************
5711
5844
  class SocialPostsV2ApiService {
5712
- constructor(http, hostService) {
5713
- this.http = http;
5714
- this.hostService = hostService;
5845
+ constructor() {
5846
+ this.hostService = inject(HostService);
5847
+ this.http = inject(HttpClient);
5715
5848
  this._host = this.hostService.hostWithScheme;
5716
5849
  }
5717
5850
  apiOptions() {
@@ -5752,12 +5885,12 @@ class SocialPostsV2ApiService {
5752
5885
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/RepostSocialPost", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5753
5886
  }
5754
5887
  }
5755
- SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5888
+ SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5756
5889
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
5757
5890
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, decorators: [{
5758
5891
  type: Injectable,
5759
5892
  args: [{ providedIn: 'root' }]
5760
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5893
+ }] });
5761
5894
 
5762
5895
  // *********************************
5763
5896
  // Code generated by sdkgen
@@ -5766,9 +5899,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5766
5899
  // API Service.
5767
5900
  // *********************************
5768
5901
  class TenorGifsApiService {
5769
- constructor(http, hostService) {
5770
- this.http = http;
5771
- this.hostService = hostService;
5902
+ constructor() {
5903
+ this.hostService = inject(HostService);
5904
+ this.http = inject(HttpClient);
5772
5905
  this._host = this.hostService.hostWithScheme;
5773
5906
  }
5774
5907
  apiOptions() {
@@ -5790,12 +5923,12 @@ class TenorGifsApiService {
5790
5923
  .pipe(map(resp => ListTenorGifsResponse.fromProto(resp)));
5791
5924
  }
5792
5925
  }
5793
- TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TenorGifsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5926
+ TenorGifsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TenorGifsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5794
5927
  TenorGifsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TenorGifsApiService, providedIn: 'root' });
5795
5928
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TenorGifsApiService, decorators: [{
5796
5929
  type: Injectable,
5797
5930
  args: [{ providedIn: 'root' }]
5798
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5931
+ }] });
5799
5932
 
5800
5933
  // *********************************
5801
5934
  // Code generated by sdkgen
@@ -5804,9 +5937,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
5804
5937
  // API Service.
5805
5938
  // *********************************
5806
5939
  class UnsplashApiService {
5807
- constructor(http, hostService) {
5808
- this.http = http;
5809
- this.hostService = hostService;
5940
+ constructor() {
5941
+ this.hostService = inject(HostService);
5942
+ this.http = inject(HttpClient);
5810
5943
  this._host = this.hostService.hostWithScheme;
5811
5944
  }
5812
5945
  apiOptions() {
@@ -5828,12 +5961,12 @@ class UnsplashApiService {
5828
5961
  .pipe(map(resp => UploadToStorageResponse.fromProto(resp)));
5829
5962
  }
5830
5963
  }
5831
- UnsplashApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5964
+ UnsplashApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5832
5965
  UnsplashApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, providedIn: 'root' });
5833
5966
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UnsplashApiService, decorators: [{
5834
5967
  type: Injectable,
5835
5968
  args: [{ providedIn: 'root' }]
5836
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
5969
+ }] });
5837
5970
 
5838
5971
  // *********************************
5839
5972
  // Code generated by sdkgen
@@ -6243,9 +6376,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6243
6376
  args: [{ providedIn: 'root' }]
6244
6377
  }], ctorParameters: function () { return [{ type: ChatBotApiService }]; } });
6245
6378
 
6379
+ class ChatBotV2Service {
6380
+ constructor(chatBotV2ApiService) {
6381
+ this.chatBotV2ApiService = chatBotV2ApiService;
6382
+ }
6383
+ sendMessageV2(businessId, partnerId, marketId, customInstructions, messages) {
6384
+ const messageRequest = new SendMessageV2Request({
6385
+ businessId,
6386
+ partnerId,
6387
+ marketId,
6388
+ customInstructions,
6389
+ messages
6390
+ });
6391
+ return this.chatBotV2ApiService.sendMessageV2(messageRequest);
6392
+ }
6393
+ }
6394
+ ChatBotV2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotV2Service, deps: [{ token: ChatBotV2ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
6395
+ ChatBotV2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotV2Service, providedIn: 'root' });
6396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChatBotV2Service, decorators: [{
6397
+ type: Injectable,
6398
+ args: [{ providedIn: 'root' }]
6399
+ }], ctorParameters: function () { return [{ type: ChatBotV2ApiService }]; } });
6400
+
6246
6401
  /**
6247
6402
  * Generated bundle index. Do not edit.
6248
6403
  */
6249
6404
 
6250
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, ChatBotService, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, 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, ListCuratedContentRequest, ListCuratedContentResponse, 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, UploadedMedia, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
6405
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, CallToAction, CallToActionCallToActionType, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, 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, ListCuratedContentRequest, ListCuratedContentResponse, 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, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, 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, UploadedMedia, Urls, User, UserLink, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
6251
6406
  //# sourceMappingURL=vendasta-social-posts.mjs.map