@vendasta/social-posts 5.51.0 → 5.52.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 (70) hide show
  1. package/esm2020/lib/_internal/enums/image-generation.enum.mjs +2 -1
  2. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  3. package/esm2020/lib/_internal/enums/social-content.enum.mjs +20 -1
  4. package/esm2020/lib/_internal/index.mjs +2 -1
  5. package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/drafts-api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/drafts.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/image-generation.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  11. package/esm2020/lib/_internal/interfaces/social-comment.interface.mjs +8 -0
  12. package/esm2020/lib/_internal/interfaces/social-comments.interface.mjs +2 -0
  13. package/esm2020/lib/_internal/interfaces/social-content.interface.mjs +1 -1
  14. package/esm2020/lib/_internal/interfaces/social-post-v2.interface.mjs +1 -1
  15. package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
  16. package/esm2020/lib/_internal/interfaces/wordpress-plugin.interface.mjs +1 -7
  17. package/esm2020/lib/_internal/objects/annotations.mjs +7 -1
  18. package/esm2020/lib/_internal/objects/api-v2.mjs +345 -1
  19. package/esm2020/lib/_internal/objects/chat-bot-v2.mjs +1 -1
  20. package/esm2020/lib/_internal/objects/drafts-api.mjs +7 -1
  21. package/esm2020/lib/_internal/objects/drafts.mjs +7 -1
  22. package/esm2020/lib/_internal/objects/image-generation.mjs +4 -1
  23. package/esm2020/lib/_internal/objects/index.mjs +5 -3
  24. package/esm2020/lib/_internal/objects/social-comment.mjs +54 -0
  25. package/esm2020/lib/_internal/objects/social-comments.mjs +134 -0
  26. package/esm2020/lib/_internal/objects/social-content.mjs +454 -1
  27. package/esm2020/lib/_internal/objects/social-post-v2.mjs +7 -1
  28. package/esm2020/lib/_internal/objects/social-posts.mjs +7 -1
  29. package/esm2020/lib/_internal/objects/wordpress-plugin.mjs +23 -1
  30. package/esm2020/lib/_internal/social-comments.api.service.mjs +45 -0
  31. package/esm2020/lib/_internal/social-content.api.service.mjs +17 -2
  32. package/esm2020/lib/_internal/social-posts-v2.api.service.mjs +7 -2
  33. package/esm2020/lib/social-post-v2.service.mjs +6 -2
  34. package/fesm2015/vendasta-social-posts.mjs +1351 -232
  35. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  36. package/fesm2020/vendasta-social-posts.mjs +1351 -232
  37. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  38. package/lib/_internal/enums/image-generation.enum.d.ts +2 -1
  39. package/lib/_internal/enums/index.d.ts +1 -1
  40. package/lib/_internal/enums/social-content.enum.d.ts +16 -0
  41. package/lib/_internal/index.d.ts +1 -0
  42. package/lib/_internal/interfaces/annotations.interface.d.ts +2 -0
  43. package/lib/_internal/interfaces/api-v2.interface.d.ts +69 -0
  44. package/lib/_internal/interfaces/drafts-api.interface.d.ts +2 -0
  45. package/lib/_internal/interfaces/drafts.interface.d.ts +2 -0
  46. package/lib/_internal/interfaces/image-generation.interface.d.ts +1 -0
  47. package/lib/_internal/interfaces/index.d.ts +4 -2
  48. package/lib/_internal/interfaces/social-comment.interface.d.ts +10 -0
  49. package/lib/_internal/interfaces/social-comments.interface.d.ts +25 -0
  50. package/lib/_internal/interfaces/social-content.interface.d.ts +75 -0
  51. package/lib/_internal/interfaces/social-post-v2.interface.d.ts +2 -0
  52. package/lib/_internal/interfaces/social-posts.interface.d.ts +2 -0
  53. package/lib/_internal/interfaces/wordpress-plugin.interface.d.ts +6 -0
  54. package/lib/_internal/objects/annotations.d.ts +2 -0
  55. package/lib/_internal/objects/api-v2.d.ts +99 -0
  56. package/lib/_internal/objects/drafts-api.d.ts +2 -0
  57. package/lib/_internal/objects/drafts.d.ts +2 -0
  58. package/lib/_internal/objects/image-generation.d.ts +1 -0
  59. package/lib/_internal/objects/index.d.ts +4 -2
  60. package/lib/_internal/objects/social-comment.d.ts +15 -0
  61. package/lib/_internal/objects/social-comments.d.ts +39 -0
  62. package/lib/_internal/objects/social-content.d.ts +120 -0
  63. package/lib/_internal/objects/social-post-v2.d.ts +2 -0
  64. package/lib/_internal/objects/social-posts.d.ts +2 -0
  65. package/lib/_internal/objects/wordpress-plugin.d.ts +6 -0
  66. package/lib/_internal/social-comments.api.service.d.ts +14 -0
  67. package/lib/_internal/social-content.api.service.d.ts +5 -2
  68. package/lib/_internal/social-posts-v2.api.service.d.ts +3 -2
  69. package/lib/social-post-v2.service.d.ts +2 -1
  70. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
4
4
  import { HttpClient, HttpHeaders } from '@angular/common/http';
5
5
  import { map } from 'rxjs/operators';
6
6
 
7
- function enumStringToValue$r(enumRef, value) {
7
+ function enumStringToValue$t(enumRef, value) {
8
8
  if (typeof value === 'number') {
9
9
  return value;
10
10
  }
@@ -31,7 +31,7 @@ class FieldMask {
31
31
  }
32
32
  }
33
33
 
34
- function enumStringToValue$q(enumRef, value) {
34
+ function enumStringToValue$s(enumRef, value) {
35
35
  if (typeof value === 'number') {
36
36
  return value;
37
37
  }
@@ -487,6 +487,19 @@ var CallToActionType;
487
487
  CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_GET_OFFER"] = 6] = "CALL_TO_ACTION_TYPE_GET_OFFER";
488
488
  CallToActionType[CallToActionType["CALL_TO_ACTION_TYPE_CALL"] = 7] = "CALL_TO_ACTION_TYPE_CALL";
489
489
  })(CallToActionType || (CallToActionType = {}));
490
+ var ContentState;
491
+ (function (ContentState) {
492
+ ContentState[ContentState["CONTENT_STATE_INVALID"] = 0] = "CONTENT_STATE_INVALID";
493
+ ContentState[ContentState["CONTENT_STATE_DRAFT"] = 1] = "CONTENT_STATE_DRAFT";
494
+ ContentState[ContentState["CONTENT_STATE_SCHEDULED"] = 2] = "CONTENT_STATE_SCHEDULED";
495
+ ContentState[ContentState["CONTENT_STATE_PUBLISHED"] = 3] = "CONTENT_STATE_PUBLISHED";
496
+ })(ContentState || (ContentState = {}));
497
+ var ContentStatus;
498
+ (function (ContentStatus) {
499
+ ContentStatus[ContentStatus["CONTENT_STATUS_INVALID"] = 0] = "CONTENT_STATUS_INVALID";
500
+ ContentStatus[ContentStatus["CONTENT_STATUS_OK"] = 1] = "CONTENT_STATUS_OK";
501
+ ContentStatus[ContentStatus["CONTENT_STATUS_FAILED"] = 2] = "CONTENT_STATUS_FAILED";
502
+ })(ContentStatus || (ContentStatus = {}));
490
503
  var MediaContentType;
491
504
  (function (MediaContentType) {
492
505
  MediaContentType[MediaContentType["MEDIA_CONTENT_TYPE_INVALID"] = 0] = "MEDIA_CONTENT_TYPE_INVALID";
@@ -520,6 +533,12 @@ var SocialContentType;
520
533
  SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_SOCIAL_POST"] = 1] = "SOCIAL_CONTENT_TYPE_SOCIAL_POST";
521
534
  SocialContentType[SocialContentType["SOCIAL_CONTENT_TYPE_BLOG_ARTICLE"] = 2] = "SOCIAL_CONTENT_TYPE_BLOG_ARTICLE";
522
535
  })(SocialContentType || (SocialContentType = {}));
536
+ var SortDirection;
537
+ (function (SortDirection) {
538
+ SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
539
+ SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
540
+ SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
541
+ })(SortDirection || (SortDirection = {}));
523
542
 
524
543
  // *********************************
525
544
  // Code generated by sdkgen
@@ -541,6 +560,7 @@ var ImageModel;
541
560
  ImageModel[ImageModel["DALL_E_3"] = 2] = "DALL_E_3";
542
561
  ImageModel[ImageModel["GPT_IMAGE_1"] = 3] = "GPT_IMAGE_1";
543
562
  ImageModel[ImageModel["GPT_IMAGE_1_5"] = 4] = "GPT_IMAGE_1_5";
563
+ ImageModel[ImageModel["GEMINI_3_1_FLASH_IMAGE"] = 5] = "GEMINI_3_1_FLASH_IMAGE";
544
564
  })(ImageModel || (ImageModel = {}));
545
565
  var ImageOutputFormat;
546
566
  (function (ImageOutputFormat) {
@@ -570,7 +590,7 @@ var ImageStyle;
570
590
  // Enums Index.
571
591
  // *********************************
572
592
 
573
- function enumStringToValue$p(enumRef, value) {
593
+ function enumStringToValue$r(enumRef, value) {
574
594
  if (typeof value === 'number') {
575
595
  return value;
576
596
  }
@@ -642,7 +662,7 @@ class CallToAction {
642
662
  let m = new CallToAction();
643
663
  m = Object.assign(m, proto);
644
664
  if (proto.actionType) {
645
- m.actionType = enumStringToValue$p(CallToActionCallToActionType, proto.actionType);
665
+ m.actionType = enumStringToValue$r(CallToActionCallToActionType, proto.actionType);
646
666
  }
647
667
  return m;
648
668
  }
@@ -880,7 +900,7 @@ class PostTemplate {
880
900
  m.metaData = proto.metaData.map(MetaData.fromProto);
881
901
  }
882
902
  if (proto.postType) {
883
- m.postType = enumStringToValue$p(PostType, proto.postType);
903
+ m.postType = enumStringToValue$r(PostType, proto.postType);
884
904
  }
885
905
  if (proto.youtubeCustomization) {
886
906
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -963,7 +983,7 @@ class SSIDPostType {
963
983
  let m = new SSIDPostType();
964
984
  m = Object.assign(m, proto);
965
985
  if (proto.postType) {
966
- m.postType = enumStringToValue$p(PostType, proto.postType);
986
+ m.postType = enumStringToValue$r(PostType, proto.postType);
967
987
  }
968
988
  return m;
969
989
  }
@@ -1047,10 +1067,10 @@ class SocialPost {
1047
1067
  m.posted = new Date(proto.posted);
1048
1068
  }
1049
1069
  if (proto.deletionStatus) {
1050
- m.deletionStatus = enumStringToValue$p(SocialPostDeletionStatus, proto.deletionStatus);
1070
+ m.deletionStatus = enumStringToValue$r(SocialPostDeletionStatus, proto.deletionStatus);
1051
1071
  }
1052
1072
  if (proto.service) {
1053
- m.service = enumStringToValue$p(SocialPostService, proto.service);
1073
+ m.service = enumStringToValue$r(SocialPostService, proto.service);
1054
1074
  }
1055
1075
  if (proto.created) {
1056
1076
  m.created = new Date(proto.created);
@@ -1059,7 +1079,7 @@ class SocialPost {
1059
1079
  m.scheduled = new Date(proto.scheduled);
1060
1080
  }
1061
1081
  if (proto.status) {
1062
- m.status = enumStringToValue$p(PostingStatus, proto.status);
1082
+ m.status = enumStringToValue$r(PostingStatus, proto.status);
1063
1083
  }
1064
1084
  if (proto.event) {
1065
1085
  m.event = Event.fromProto(proto.event);
@@ -1071,7 +1091,7 @@ class SocialPost {
1071
1091
  m.error = Error.fromProto(proto.error);
1072
1092
  }
1073
1093
  if (proto.postType) {
1074
- m.postType = enumStringToValue$p(PostType, proto.postType);
1094
+ m.postType = enumStringToValue$r(PostType, proto.postType);
1075
1095
  }
1076
1096
  if (proto.mediaEntries) {
1077
1097
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -1203,6 +1223,12 @@ class SocialPost {
1203
1223
  if (typeof this.campaign !== 'undefined' && this.campaign !== null) {
1204
1224
  toReturn['campaign'] = 'toApiJson' in this.campaign ? this.campaign.toApiJson() : this.campaign;
1205
1225
  }
1226
+ if (typeof this.createdBy !== 'undefined') {
1227
+ toReturn['createdBy'] = this.createdBy;
1228
+ }
1229
+ if (typeof this.updatedBy !== 'undefined') {
1230
+ toReturn['updatedBy'] = this.updatedBy;
1231
+ }
1206
1232
  return toReturn;
1207
1233
  }
1208
1234
  }
@@ -1272,7 +1298,7 @@ class YoutubeCustomization {
1272
1298
  let m = new YoutubeCustomization();
1273
1299
  m = Object.assign(m, proto);
1274
1300
  if (proto.privacyStatus) {
1275
- m.privacyStatus = enumStringToValue$p(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1301
+ m.privacyStatus = enumStringToValue$r(YoutubeCustomizationPrivacyStatus, proto.privacyStatus);
1276
1302
  }
1277
1303
  return m;
1278
1304
  }
@@ -1294,7 +1320,7 @@ class YoutubeCustomization {
1294
1320
  }
1295
1321
  }
1296
1322
 
1297
- function enumStringToValue$o(enumRef, value) {
1323
+ function enumStringToValue$q(enumRef, value) {
1298
1324
  if (typeof value === 'number') {
1299
1325
  return value;
1300
1326
  }
@@ -1435,7 +1461,7 @@ class MultilocationPost {
1435
1461
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
1436
1462
  }
1437
1463
  if (proto.postState) {
1438
- m.postState = enumStringToValue$o(MLPostState, proto.postState);
1464
+ m.postState = enumStringToValue$q(MLPostState, proto.postState);
1439
1465
  }
1440
1466
  if (proto.postCustomizationByLocation) {
1441
1467
  m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
@@ -1619,7 +1645,7 @@ class PostCustomizationByLocation {
1619
1645
  let m = new PostCustomizationByLocation();
1620
1646
  m = Object.assign(m, proto);
1621
1647
  if (proto.customizationStatus) {
1622
- m.customizationStatus = enumStringToValue$o(CustomizationStatus, proto.customizationStatus);
1648
+ m.customizationStatus = enumStringToValue$q(CustomizationStatus, proto.customizationStatus);
1623
1649
  }
1624
1650
  return m;
1625
1651
  }
@@ -1673,7 +1699,7 @@ class PostEvent {
1673
1699
  }
1674
1700
  }
1675
1701
 
1676
- function enumStringToValue$n(enumRef, value) {
1702
+ function enumStringToValue$p(enumRef, value) {
1677
1703
  if (typeof value === 'number') {
1678
1704
  return value;
1679
1705
  }
@@ -1727,7 +1753,7 @@ class PexelsImage {
1727
1753
  }
1728
1754
  }
1729
1755
 
1730
- function enumStringToValue$m(enumRef, value) {
1756
+ function enumStringToValue$o(enumRef, value) {
1731
1757
  if (typeof value === 'number') {
1732
1758
  return value;
1733
1759
  }
@@ -1868,7 +1894,7 @@ class PixabayImage {
1868
1894
  }
1869
1895
  }
1870
1896
 
1871
- function enumStringToValue$l(enumRef, value) {
1897
+ function enumStringToValue$n(enumRef, value) {
1872
1898
  if (typeof value === 'number') {
1873
1899
  return value;
1874
1900
  }
@@ -2207,7 +2233,7 @@ class YoutubePostStats {
2207
2233
  }
2208
2234
  }
2209
2235
 
2210
- function enumStringToValue$k(enumRef, value) {
2236
+ function enumStringToValue$m(enumRef, value) {
2211
2237
  if (typeof value === 'number') {
2212
2238
  return value;
2213
2239
  }
@@ -2313,7 +2339,7 @@ class TenorMediaObject {
2313
2339
  }
2314
2340
  }
2315
2341
 
2316
- function enumStringToValue$j(enumRef, value) {
2342
+ function enumStringToValue$l(enumRef, value) {
2317
2343
  if (typeof value === 'number') {
2318
2344
  return value;
2319
2345
  }
@@ -2362,7 +2388,7 @@ class BulkCreateMultilocationPostResponse {
2362
2388
  let m = new BulkCreateMultilocationPostResponse();
2363
2389
  m = Object.assign(m, proto);
2364
2390
  if (proto.status) {
2365
- m.status = enumStringToValue$j(BulkPostStatus, proto.status);
2391
+ m.status = enumStringToValue$l(BulkPostStatus, proto.status);
2366
2392
  }
2367
2393
  if (proto.error) {
2368
2394
  m.error = proto.error.map(MultilocationPostError.fromProto);
@@ -2521,7 +2547,7 @@ class CreatePostTemplateRequest {
2521
2547
  m.metaData = proto.metaData.map(MetaData.fromProto);
2522
2548
  }
2523
2549
  if (proto.postType) {
2524
- m.postType = enumStringToValue$j(PostType, proto.postType);
2550
+ m.postType = enumStringToValue$l(PostType, proto.postType);
2525
2551
  }
2526
2552
  if (proto.youtubeCustomization) {
2527
2553
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3926,7 +3952,7 @@ class RemoveFromMultilocationPostRequest {
3926
3952
  let m = new RemoveFromMultilocationPostRequest();
3927
3953
  m = Object.assign(m, proto);
3928
3954
  if (proto.reason) {
3929
- m.reason = enumStringToValue$j(RemoveReason, proto.reason);
3955
+ m.reason = enumStringToValue$l(RemoveReason, proto.reason);
3930
3956
  }
3931
3957
  if (proto.locations) {
3932
3958
  m.locations = proto.locations.map(Location.fromProto);
@@ -4149,10 +4175,10 @@ class SuggestMessageRequest {
4149
4175
  let m = new SuggestMessageRequest();
4150
4176
  m = Object.assign(m, proto);
4151
4177
  if (proto.length) {
4152
- m.length = enumStringToValue$j(MessageLength, proto.length);
4178
+ m.length = enumStringToValue$l(MessageLength, proto.length);
4153
4179
  }
4154
4180
  if (proto.type) {
4155
- m.type = enumStringToValue$j(TemplateType, proto.type);
4181
+ m.type = enumStringToValue$l(TemplateType, proto.type);
4156
4182
  }
4157
4183
  if (proto.metadata) {
4158
4184
  m.metadata = proto.metadata.map(MetaData.fromProto);
@@ -4219,7 +4245,7 @@ class UpdatePostTemplateRequest {
4219
4245
  m.metaData = proto.metaData.map(MetaData.fromProto);
4220
4246
  }
4221
4247
  if (proto.postType) {
4222
- m.postType = enumStringToValue$j(PostType, proto.postType);
4248
+ m.postType = enumStringToValue$l(PostType, proto.postType);
4223
4249
  }
4224
4250
  if (proto.youtubeCustomization) {
4225
4251
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -4286,7 +4312,7 @@ class UpdatePostTemplateRequest {
4286
4312
  }
4287
4313
  }
4288
4314
 
4289
- function enumStringToValue$i(enumRef, value) {
4315
+ function enumStringToValue$k(enumRef, value) {
4290
4316
  if (typeof value === 'number') {
4291
4317
  return value;
4292
4318
  }
@@ -4483,7 +4509,7 @@ class SortBy {
4483
4509
  let m = new SortBy();
4484
4510
  m = Object.assign(m, proto);
4485
4511
  if (proto.sortDirection) {
4486
- m.sortDirection = enumStringToValue$i(SortBySortDirection, proto.sortDirection);
4512
+ m.sortDirection = enumStringToValue$k(SortBySortDirection, proto.sortDirection);
4487
4513
  }
4488
4514
  return m;
4489
4515
  }
@@ -4505,7 +4531,7 @@ class SortBy {
4505
4531
  }
4506
4532
  }
4507
4533
 
4508
- function enumStringToValue$h(enumRef, value) {
4534
+ function enumStringToValue$j(enumRef, value) {
4509
4535
  if (typeof value === 'number') {
4510
4536
  return value;
4511
4537
  }
@@ -4519,7 +4545,7 @@ class ListStockImagesRequest {
4519
4545
  m.namespace = Namespace.fromProto(proto.namespace);
4520
4546
  }
4521
4547
  if (proto.imageSource) {
4522
- m.imageSource = enumStringToValue$h(ImageSource, proto.imageSource);
4548
+ m.imageSource = enumStringToValue$j(ImageSource, proto.imageSource);
4523
4549
  }
4524
4550
  return m;
4525
4551
  }
@@ -4592,7 +4618,7 @@ class Namespace {
4592
4618
  let m = new Namespace();
4593
4619
  m = Object.assign(m, proto);
4594
4620
  if (proto.namespaceType) {
4595
- m.namespaceType = enumStringToValue$h(NamespaceType, proto.namespaceType);
4621
+ m.namespaceType = enumStringToValue$j(NamespaceType, proto.namespaceType);
4596
4622
  }
4597
4623
  return m;
4598
4624
  }
@@ -4618,7 +4644,7 @@ class StockImage {
4618
4644
  let m = new StockImage();
4619
4645
  m = Object.assign(m, proto);
4620
4646
  if (proto.source) {
4621
- m.source = enumStringToValue$h(ImageSource, proto.source);
4647
+ m.source = enumStringToValue$j(ImageSource, proto.source);
4622
4648
  }
4623
4649
  return m;
4624
4650
  }
@@ -4672,7 +4698,7 @@ class StockImageError {
4672
4698
  }
4673
4699
  }
4674
4700
 
4675
- function enumStringToValue$g(enumRef, value) {
4701
+ function enumStringToValue$i(enumRef, value) {
4676
4702
  if (typeof value === 'number') {
4677
4703
  return value;
4678
4704
  }
@@ -4821,7 +4847,7 @@ class GetBlogWebsiteDetailsResponse {
4821
4847
  }
4822
4848
  }
4823
4849
 
4824
- function enumStringToValue$f(enumRef, value) {
4850
+ function enumStringToValue$h(enumRef, value) {
4825
4851
  if (typeof value === 'number') {
4826
4852
  return value;
4827
4853
  }
@@ -4867,11 +4893,17 @@ class MCPOptions {
4867
4893
  if (typeof this.serverId !== 'undefined') {
4868
4894
  toReturn['serverId'] = this.serverId;
4869
4895
  }
4896
+ if (typeof this.toolId !== 'undefined') {
4897
+ toReturn['toolId'] = this.toolId;
4898
+ }
4899
+ if (typeof this.requiredFields !== 'undefined') {
4900
+ toReturn['requiredFields'] = this.requiredFields;
4901
+ }
4870
4902
  return toReturn;
4871
4903
  }
4872
4904
  }
4873
4905
 
4874
- function enumStringToValue$e(enumRef, value) {
4906
+ function enumStringToValue$g(enumRef, value) {
4875
4907
  if (typeof value === 'number') {
4876
4908
  return value;
4877
4909
  }
@@ -5243,7 +5275,7 @@ class HeaderParameter {
5243
5275
  let m = new HeaderParameter();
5244
5276
  m = Object.assign(m, proto);
5245
5277
  if (proto.type) {
5246
- m.type = enumStringToValue$e(HeaderParameterType, proto.type);
5278
+ m.type = enumStringToValue$g(HeaderParameterType, proto.type);
5247
5279
  }
5248
5280
  return m;
5249
5281
  }
@@ -5369,7 +5401,7 @@ class JSONSchema {
5369
5401
  m.minProperties = parseInt(proto.minProperties, 10);
5370
5402
  }
5371
5403
  if (proto.type) {
5372
- m.type = proto.type.map((v) => enumStringToValue$e(JSONSchemaJSONSchemaSimpleTypes, v));
5404
+ m.type = proto.type.map((v) => enumStringToValue$g(JSONSchemaJSONSchemaSimpleTypes, v));
5373
5405
  }
5374
5406
  if (proto.fieldConfiguration) {
5375
5407
  m.fieldConfiguration = JSONSchemaFieldConfiguration.fromProto(proto.fieldConfiguration);
@@ -5502,7 +5534,7 @@ class Operation {
5502
5534
  m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response$1.fromProto(proto.responses[k]); return obj; }, {});
5503
5535
  }
5504
5536
  if (proto.schemes) {
5505
- m.schemes = proto.schemes.map((v) => enumStringToValue$e(Scheme, v));
5537
+ m.schemes = proto.schemes.map((v) => enumStringToValue$g(Scheme, v));
5506
5538
  }
5507
5539
  if (proto.security) {
5508
5540
  m.security = proto.security.map(SecurityRequirement.fromProto);
@@ -5891,13 +5923,13 @@ class SecurityScheme {
5891
5923
  let m = new SecurityScheme();
5892
5924
  m = Object.assign(m, proto);
5893
5925
  if (proto.type) {
5894
- m.type = enumStringToValue$e(SecuritySchemeType, proto.type);
5926
+ m.type = enumStringToValue$g(SecuritySchemeType, proto.type);
5895
5927
  }
5896
5928
  if (proto.in) {
5897
- m.in = enumStringToValue$e(SecuritySchemeIn, proto.in);
5929
+ m.in = enumStringToValue$g(SecuritySchemeIn, proto.in);
5898
5930
  }
5899
5931
  if (proto.flow) {
5900
- m.flow = enumStringToValue$e(SecuritySchemeFlow, proto.flow);
5932
+ m.flow = enumStringToValue$g(SecuritySchemeFlow, proto.flow);
5901
5933
  }
5902
5934
  if (proto.scopes) {
5903
5935
  m.scopes = Scopes.fromProto(proto.scopes);
@@ -5953,7 +5985,7 @@ class Swagger {
5953
5985
  m.info = Info.fromProto(proto.info);
5954
5986
  }
5955
5987
  if (proto.schemes) {
5956
- m.schemes = proto.schemes.map((v) => enumStringToValue$e(Scheme, v));
5988
+ m.schemes = proto.schemes.map((v) => enumStringToValue$g(Scheme, v));
5957
5989
  }
5958
5990
  if (proto.responses) {
5959
5991
  m.responses = Object.keys(proto.responses).reduce((obj, k) => { obj[k] = Response$1.fromProto(proto.responses[k]); return obj; }, {});
@@ -6061,7 +6093,7 @@ class Tag {
6061
6093
  }
6062
6094
  }
6063
6095
 
6064
- function enumStringToValue$d(enumRef, value) {
6096
+ function enumStringToValue$f(enumRef, value) {
6065
6097
  if (typeof value === 'number') {
6066
6098
  return value;
6067
6099
  }
@@ -6296,7 +6328,7 @@ class SocialPostV2 {
6296
6328
  m.customization = PostCustomizationV2.fromProto(proto.customization);
6297
6329
  }
6298
6330
  if (proto.postType) {
6299
- m.postType = enumStringToValue$d(PostTypeV2, proto.postType);
6331
+ m.postType = enumStringToValue$f(PostTypeV2, proto.postType);
6300
6332
  }
6301
6333
  if (proto.metadata) {
6302
6334
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
@@ -6365,6 +6397,12 @@ class SocialPostV2 {
6365
6397
  if (typeof this.campaignId !== 'undefined') {
6366
6398
  toReturn['campaignId'] = this.campaignId;
6367
6399
  }
6400
+ if (typeof this.createdBy !== 'undefined') {
6401
+ toReturn['createdBy'] = this.createdBy;
6402
+ }
6403
+ if (typeof this.updatedBy !== 'undefined') {
6404
+ toReturn['updatedBy'] = this.updatedBy;
6405
+ }
6368
6406
  return toReturn;
6369
6407
  }
6370
6408
  }
@@ -6405,7 +6443,7 @@ class YoutubeCustomizationV2 {
6405
6443
  let m = new YoutubeCustomizationV2();
6406
6444
  m = Object.assign(m, proto);
6407
6445
  if (proto.privacyStatus) {
6408
- m.privacyStatus = enumStringToValue$d(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
6446
+ m.privacyStatus = enumStringToValue$f(YoutubeCustomizationV2PrivacyStatusV2, proto.privacyStatus);
6409
6447
  }
6410
6448
  return m;
6411
6449
  }
@@ -6424,7 +6462,7 @@ class YoutubeCustomizationV2 {
6424
6462
  }
6425
6463
  }
6426
6464
 
6427
- function enumStringToValue$c(enumRef, value) {
6465
+ function enumStringToValue$e(enumRef, value) {
6428
6466
  if (typeof value === 'number') {
6429
6467
  return value;
6430
6468
  }
@@ -6435,7 +6473,7 @@ class Media {
6435
6473
  let m = new Media();
6436
6474
  m = Object.assign(m, proto);
6437
6475
  if (proto.mediaType) {
6438
- m.mediaType = enumStringToValue$c(MediaType$1, proto.mediaType);
6476
+ m.mediaType = enumStringToValue$e(MediaType$1, proto.mediaType);
6439
6477
  }
6440
6478
  return m;
6441
6479
  }
@@ -6457,7 +6495,7 @@ class Media {
6457
6495
  }
6458
6496
  }
6459
6497
 
6460
- function enumStringToValue$b(enumRef, value) {
6498
+ function enumStringToValue$d(enumRef, value) {
6461
6499
  if (typeof value === 'number') {
6462
6500
  return value;
6463
6501
  }
@@ -6992,7 +7030,7 @@ class UserLink {
6992
7030
  }
6993
7031
  }
6994
7032
 
6995
- function enumStringToValue$a(enumRef, value) {
7033
+ function enumStringToValue$c(enumRef, value) {
6996
7034
  if (typeof value === 'number') {
6997
7035
  return value;
6998
7036
  }
@@ -7003,7 +7041,7 @@ class ProvisionRequest {
7003
7041
  let m = new ProvisionRequest();
7004
7042
  m = Object.assign(m, proto);
7005
7043
  if (proto.action) {
7006
- m.action = enumStringToValue$a(ProvisionAction, proto.action);
7044
+ m.action = enumStringToValue$c(ProvisionAction, proto.action);
7007
7045
  }
7008
7046
  return m;
7009
7047
  }
@@ -7034,12 +7072,79 @@ class ProvisionRequest {
7034
7072
  }
7035
7073
  }
7036
7074
 
7037
- function enumStringToValue$9(enumRef, value) {
7075
+ function enumStringToValue$b(enumRef, value) {
7038
7076
  if (typeof value === 'number') {
7039
7077
  return value;
7040
7078
  }
7041
7079
  return enumRef[value];
7042
7080
  }
7081
+ class AccountGroupInfo {
7082
+ static fromProto(proto) {
7083
+ let m = new AccountGroupInfo();
7084
+ m = Object.assign(m, proto);
7085
+ return m;
7086
+ }
7087
+ constructor(kwargs) {
7088
+ if (!kwargs) {
7089
+ return;
7090
+ }
7091
+ Object.assign(this, kwargs);
7092
+ }
7093
+ toApiJson() {
7094
+ const toReturn = {};
7095
+ if (typeof this.partnerId !== 'undefined') {
7096
+ toReturn['partnerId'] = this.partnerId;
7097
+ }
7098
+ if (typeof this.address !== 'undefined') {
7099
+ toReturn['address'] = this.address;
7100
+ }
7101
+ if (typeof this.city !== 'undefined') {
7102
+ toReturn['city'] = this.city;
7103
+ }
7104
+ if (typeof this.state !== 'undefined') {
7105
+ toReturn['state'] = this.state;
7106
+ }
7107
+ if (typeof this.businessName !== 'undefined') {
7108
+ toReturn['businessName'] = this.businessName;
7109
+ }
7110
+ if (typeof this.workNumbers !== 'undefined') {
7111
+ toReturn['workNumbers'] = this.workNumbers;
7112
+ }
7113
+ if (typeof this.customerIdentifier !== 'undefined') {
7114
+ toReturn['customerIdentifier'] = this.customerIdentifier;
7115
+ }
7116
+ if (typeof this.tags !== 'undefined') {
7117
+ toReturn['tags'] = this.tags;
7118
+ }
7119
+ return toReturn;
7120
+ }
7121
+ }
7122
+ class ListSocialConnectionsByBusinessesResponseAccountsByBusinessEntry {
7123
+ static fromProto(proto) {
7124
+ let m = new ListSocialConnectionsByBusinessesResponseAccountsByBusinessEntry();
7125
+ m = Object.assign(m, proto);
7126
+ if (proto.value) {
7127
+ m.value = BusinessConnectedSocialAccounts.fromProto(proto.value);
7128
+ }
7129
+ return m;
7130
+ }
7131
+ constructor(kwargs) {
7132
+ if (!kwargs) {
7133
+ return;
7134
+ }
7135
+ Object.assign(this, kwargs);
7136
+ }
7137
+ toApiJson() {
7138
+ const toReturn = {};
7139
+ if (typeof this.key !== 'undefined') {
7140
+ toReturn['key'] = this.key;
7141
+ }
7142
+ if (typeof this.value !== 'undefined' && this.value !== null) {
7143
+ toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
7144
+ }
7145
+ return toReturn;
7146
+ }
7147
+ }
7043
7148
  class AiInstructions {
7044
7149
  static fromProto(proto) {
7045
7150
  let m = new AiInstructions();
@@ -7083,7 +7188,7 @@ class BlogPostCampaign {
7083
7188
  let m = new BlogPostCampaign();
7084
7189
  m = Object.assign(m, proto);
7085
7190
  if (proto.blogPostType) {
7086
- m.blogPostType = enumStringToValue$9(PostCategory, proto.blogPostType);
7191
+ m.blogPostType = enumStringToValue$b(PostCategory, proto.blogPostType);
7087
7192
  }
7088
7193
  return m;
7089
7194
  }
@@ -7107,12 +7212,30 @@ class BlogPostCampaign {
7107
7212
  return toReturn;
7108
7213
  }
7109
7214
  }
7110
- class CreateCommonAiInstructionsRequest {
7215
+ class BusinessConnectedSocialAccounts {
7111
7216
  static fromProto(proto) {
7112
- let m = new CreateCommonAiInstructionsRequest();
7217
+ let m = new BusinessConnectedSocialAccounts();
7113
7218
  m = Object.assign(m, proto);
7114
- if (proto.aiInstructions) {
7115
- m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
7219
+ if (proto.agidInfo) {
7220
+ m.agidInfo = AccountGroupInfo.fromProto(proto.agidInfo);
7221
+ }
7222
+ if (proto.facebookInfo) {
7223
+ m.facebookInfo = ConnectedFacebookPage.fromProto(proto.facebookInfo);
7224
+ }
7225
+ if (proto.gmbInfo) {
7226
+ m.gmbInfo = ConnectedGmbLocation.fromProto(proto.gmbInfo);
7227
+ }
7228
+ if (proto.linkedinInfo) {
7229
+ m.linkedinInfo = ConnectedLinkedinAccount.fromProto(proto.linkedinInfo);
7230
+ }
7231
+ if (proto.facebookPages) {
7232
+ m.facebookPages = proto.facebookPages.map(ConnectedFacebookPage.fromProto);
7233
+ }
7234
+ if (proto.linkedinAccounts) {
7235
+ m.linkedinAccounts = ConnectedLinkedinAccounts.fromProto(proto.linkedinAccounts);
7236
+ }
7237
+ if (proto.instagramAccounts) {
7238
+ m.instagramAccounts = proto.instagramAccounts.map(ConnectedInstagramAccount.fromProto);
7116
7239
  }
7117
7240
  return m;
7118
7241
  }
@@ -7124,25 +7247,34 @@ class CreateCommonAiInstructionsRequest {
7124
7247
  }
7125
7248
  toApiJson() {
7126
7249
  const toReturn = {};
7127
- if (typeof this.businessId !== 'undefined') {
7128
- toReturn['businessId'] = this.businessId;
7250
+ if (typeof this.agidInfo !== 'undefined' && this.agidInfo !== null) {
7251
+ toReturn['agidInfo'] = 'toApiJson' in this.agidInfo ? this.agidInfo.toApiJson() : this.agidInfo;
7129
7252
  }
7130
- if (typeof this.partnerId !== 'undefined') {
7131
- toReturn['partnerId'] = this.partnerId;
7253
+ if (typeof this.facebookInfo !== 'undefined' && this.facebookInfo !== null) {
7254
+ toReturn['facebookInfo'] = 'toApiJson' in this.facebookInfo ? this.facebookInfo.toApiJson() : this.facebookInfo;
7132
7255
  }
7133
- if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
7134
- toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
7256
+ if (typeof this.gmbInfo !== 'undefined' && this.gmbInfo !== null) {
7257
+ toReturn['gmbInfo'] = 'toApiJson' in this.gmbInfo ? this.gmbInfo.toApiJson() : this.gmbInfo;
7258
+ }
7259
+ if (typeof this.linkedinInfo !== 'undefined' && this.linkedinInfo !== null) {
7260
+ toReturn['linkedinInfo'] = 'toApiJson' in this.linkedinInfo ? this.linkedinInfo.toApiJson() : this.linkedinInfo;
7261
+ }
7262
+ if (typeof this.facebookPages !== 'undefined' && this.facebookPages !== null) {
7263
+ toReturn['facebookPages'] = 'toApiJson' in this.facebookPages ? this.facebookPages.toApiJson() : this.facebookPages;
7264
+ }
7265
+ if (typeof this.linkedinAccounts !== 'undefined' && this.linkedinAccounts !== null) {
7266
+ toReturn['linkedinAccounts'] = 'toApiJson' in this.linkedinAccounts ? this.linkedinAccounts.toApiJson() : this.linkedinAccounts;
7267
+ }
7268
+ if (typeof this.instagramAccounts !== 'undefined' && this.instagramAccounts !== null) {
7269
+ toReturn['instagramAccounts'] = 'toApiJson' in this.instagramAccounts ? this.instagramAccounts.toApiJson() : this.instagramAccounts;
7135
7270
  }
7136
7271
  return toReturn;
7137
7272
  }
7138
7273
  }
7139
- class CreateCommonAiInstructionsResponse {
7274
+ class ConnectedFacebookPage {
7140
7275
  static fromProto(proto) {
7141
- let m = new CreateCommonAiInstructionsResponse();
7276
+ let m = new ConnectedFacebookPage();
7142
7277
  m = Object.assign(m, proto);
7143
- if (proto.aiInstructions) {
7144
- m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
7145
- }
7146
7278
  return m;
7147
7279
  }
7148
7280
  constructor(kwargs) {
@@ -7153,19 +7285,37 @@ class CreateCommonAiInstructionsResponse {
7153
7285
  }
7154
7286
  toApiJson() {
7155
7287
  const toReturn = {};
7156
- if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
7157
- toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
7288
+ if (typeof this.ssid !== 'undefined') {
7289
+ toReturn['ssid'] = this.ssid;
7290
+ }
7291
+ if (typeof this.name !== 'undefined') {
7292
+ toReturn['name'] = this.name;
7293
+ }
7294
+ if (typeof this.profileUrl !== 'undefined') {
7295
+ toReturn['profileUrl'] = this.profileUrl;
7296
+ }
7297
+ if (typeof this.profileImageUrl !== 'undefined') {
7298
+ toReturn['profileImageUrl'] = this.profileImageUrl;
7299
+ }
7300
+ if (typeof this.clientTags !== 'undefined') {
7301
+ toReturn['clientTags'] = this.clientTags;
7302
+ }
7303
+ if (typeof this.isMasterFacebookPage !== 'undefined') {
7304
+ toReturn['isMasterFacebookPage'] = this.isMasterFacebookPage;
7305
+ }
7306
+ if (typeof this.tokenIsBroken !== 'undefined') {
7307
+ toReturn['tokenIsBroken'] = this.tokenIsBroken;
7308
+ }
7309
+ if (typeof this.isDefault !== 'undefined') {
7310
+ toReturn['isDefault'] = this.isDefault;
7158
7311
  }
7159
7312
  return toReturn;
7160
7313
  }
7161
7314
  }
7162
- class CreateImageRequest {
7315
+ class ConnectedGmbLocation {
7163
7316
  static fromProto(proto) {
7164
- let m = new CreateImageRequest();
7317
+ let m = new ConnectedGmbLocation();
7165
7318
  m = Object.assign(m, proto);
7166
- if (proto.metadata) {
7167
- m.metadata = proto.metadata.map(MetadataV2.fromProto);
7168
- }
7169
7319
  return m;
7170
7320
  }
7171
7321
  constructor(kwargs) {
@@ -7176,46 +7326,28 @@ class CreateImageRequest {
7176
7326
  }
7177
7327
  toApiJson() {
7178
7328
  const toReturn = {};
7179
- if (typeof this.businessId !== 'undefined') {
7180
- toReturn['businessId'] = this.businessId;
7181
- }
7182
- if (typeof this.prompt !== 'undefined') {
7183
- toReturn['prompt'] = this.prompt;
7184
- }
7185
- if (typeof this.imageAmount !== 'undefined') {
7186
- toReturn['imageAmount'] = this.imageAmount;
7187
- }
7188
- if (typeof this.size !== 'undefined') {
7189
- toReturn['size'] = this.size;
7190
- }
7191
- if (typeof this.responseFormat !== 'undefined') {
7192
- toReturn['responseFormat'] = this.responseFormat;
7329
+ if (typeof this.ssid !== 'undefined') {
7330
+ toReturn['ssid'] = this.ssid;
7193
7331
  }
7194
- if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
7195
- toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
7332
+ if (typeof this.name !== 'undefined') {
7333
+ toReturn['name'] = this.name;
7196
7334
  }
7197
- if (typeof this.model !== 'undefined') {
7198
- toReturn['model'] = this.model;
7335
+ if (typeof this.tokenIsBroken !== 'undefined') {
7336
+ toReturn['tokenIsBroken'] = this.tokenIsBroken;
7199
7337
  }
7200
- if (typeof this.style !== 'undefined') {
7201
- toReturn['style'] = this.style;
7338
+ if (typeof this.accountVerified !== 'undefined') {
7339
+ toReturn['accountVerified'] = this.accountVerified;
7202
7340
  }
7203
- if (typeof this.quality !== 'undefined') {
7204
- toReturn['quality'] = this.quality;
7341
+ if (typeof this.isDefault !== 'undefined') {
7342
+ toReturn['isDefault'] = this.isDefault;
7205
7343
  }
7206
7344
  return toReturn;
7207
7345
  }
7208
7346
  }
7209
- class CreateImageResponse {
7347
+ class ConnectedInstagramAccount {
7210
7348
  static fromProto(proto) {
7211
- let m = new CreateImageResponse();
7349
+ let m = new ConnectedInstagramAccount();
7212
7350
  m = Object.assign(m, proto);
7213
- if (proto.createdId) {
7214
- m.createdId = parseInt(proto.createdId, 10);
7215
- }
7216
- if (proto.generatedImages) {
7217
- m.generatedImages = proto.generatedImages.map(ImageCreated.fromProto);
7218
- }
7219
7351
  return m;
7220
7352
  }
7221
7353
  constructor(kwargs) {
@@ -7226,22 +7358,31 @@ class CreateImageResponse {
7226
7358
  }
7227
7359
  toApiJson() {
7228
7360
  const toReturn = {};
7229
- if (typeof this.createdId !== 'undefined') {
7230
- toReturn['createdId'] = this.createdId;
7361
+ if (typeof this.ssid !== 'undefined') {
7362
+ toReturn['ssid'] = this.ssid;
7231
7363
  }
7232
- if (typeof this.generatedImages !== 'undefined' && this.generatedImages !== null) {
7233
- toReturn['generatedImages'] = 'toApiJson' in this.generatedImages ? this.generatedImages.toApiJson() : this.generatedImages;
7364
+ if (typeof this.username !== 'undefined') {
7365
+ toReturn['username'] = this.username;
7366
+ }
7367
+ if (typeof this.fullName !== 'undefined') {
7368
+ toReturn['fullName'] = this.fullName;
7369
+ }
7370
+ if (typeof this.profileImageUrl !== 'undefined') {
7371
+ toReturn['profileImageUrl'] = this.profileImageUrl;
7372
+ }
7373
+ if (typeof this.tokenIsBroken !== 'undefined') {
7374
+ toReturn['tokenIsBroken'] = this.tokenIsBroken;
7375
+ }
7376
+ if (typeof this.isDefault !== 'undefined') {
7377
+ toReturn['isDefault'] = this.isDefault;
7234
7378
  }
7235
7379
  return toReturn;
7236
7380
  }
7237
7381
  }
7238
- class CuratedContentPost {
7382
+ class ConnectedLinkedinAccount {
7239
7383
  static fromProto(proto) {
7240
- let m = new CuratedContentPost();
7384
+ let m = new ConnectedLinkedinAccount();
7241
7385
  m = Object.assign(m, proto);
7242
- if (proto.media) {
7243
- m.media = proto.media.map(UploadedMedia.fromProto);
7244
- }
7245
7386
  return m;
7246
7387
  }
7247
7388
  constructor(kwargs) {
@@ -7252,34 +7393,40 @@ class CuratedContentPost {
7252
7393
  }
7253
7394
  toApiJson() {
7254
7395
  const toReturn = {};
7255
- if (typeof this.id !== 'undefined') {
7256
- toReturn['id'] = this.id;
7396
+ if (typeof this.ssid !== 'undefined') {
7397
+ toReturn['ssid'] = this.ssid;
7257
7398
  }
7258
- if (typeof this.text !== 'undefined') {
7259
- toReturn['text'] = this.text;
7399
+ if (typeof this.name !== 'undefined') {
7400
+ toReturn['name'] = this.name;
7260
7401
  }
7261
- if (typeof this.media !== 'undefined' && this.media !== null) {
7262
- toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
7402
+ if (typeof this.profileUrl !== 'undefined') {
7403
+ toReturn['profileUrl'] = this.profileUrl;
7263
7404
  }
7264
- if (typeof this.errors !== 'undefined') {
7265
- toReturn['errors'] = this.errors;
7405
+ if (typeof this.profileImageUrl !== 'undefined') {
7406
+ toReturn['profileImageUrl'] = this.profileImageUrl;
7266
7407
  }
7267
- if (typeof this.businessId !== 'undefined') {
7268
- toReturn['businessId'] = this.businessId;
7408
+ if (typeof this.clientTags !== 'undefined') {
7409
+ toReturn['clientTags'] = this.clientTags;
7269
7410
  }
7270
- if (typeof this.createdAt !== 'undefined') {
7271
- toReturn['createdAt'] = this.createdAt;
7411
+ if (typeof this.tokenIsBroken !== 'undefined') {
7412
+ toReturn['tokenIsBroken'] = this.tokenIsBroken;
7272
7413
  }
7273
- if (typeof this.postedAt !== 'undefined') {
7274
- toReturn['postedAt'] = this.postedAt;
7414
+ if (typeof this.isDefault !== 'undefined') {
7415
+ toReturn['isDefault'] = this.isDefault;
7275
7416
  }
7276
7417
  return toReturn;
7277
7418
  }
7278
7419
  }
7279
- class DeletePostRequest {
7420
+ class ConnectedLinkedinAccounts {
7280
7421
  static fromProto(proto) {
7281
- let m = new DeletePostRequest();
7422
+ let m = new ConnectedLinkedinAccounts();
7282
7423
  m = Object.assign(m, proto);
7424
+ if (proto.company) {
7425
+ m.company = proto.company.map(ConnectedLinkedinAccount.fromProto);
7426
+ }
7427
+ if (proto.user) {
7428
+ m.user = proto.user.map(ConnectedLinkedinAccount.fromProto);
7429
+ }
7283
7430
  return m;
7284
7431
  }
7285
7432
  constructor(kwargs) {
@@ -7290,21 +7437,21 @@ class DeletePostRequest {
7290
7437
  }
7291
7438
  toApiJson() {
7292
7439
  const toReturn = {};
7293
- if (typeof this.accessToken !== 'undefined') {
7294
- toReturn['accessToken'] = this.accessToken;
7440
+ if (typeof this.company !== 'undefined' && this.company !== null) {
7441
+ toReturn['company'] = 'toApiJson' in this.company ? this.company.toApiJson() : this.company;
7295
7442
  }
7296
- if (typeof this.postId !== 'undefined') {
7297
- toReturn['postId'] = this.postId;
7443
+ if (typeof this.user !== 'undefined' && this.user !== null) {
7444
+ toReturn['user'] = 'toApiJson' in this.user ? this.user.toApiJson() : this.user;
7298
7445
  }
7299
7446
  return toReturn;
7300
7447
  }
7301
7448
  }
7302
- class FetchLibraryImagesRequest {
7449
+ class CreateCommonAiInstructionsRequest {
7303
7450
  static fromProto(proto) {
7304
- let m = new FetchLibraryImagesRequest();
7451
+ let m = new CreateCommonAiInstructionsRequest();
7305
7452
  m = Object.assign(m, proto);
7306
- if (proto.keywordInput) {
7307
- m.keywordInput = KeywordGeneration.fromProto(proto.keywordInput);
7453
+ if (proto.aiInstructions) {
7454
+ m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
7308
7455
  }
7309
7456
  return m;
7310
7457
  }
@@ -7319,20 +7466,212 @@ class FetchLibraryImagesRequest {
7319
7466
  if (typeof this.businessId !== 'undefined') {
7320
7467
  toReturn['businessId'] = this.businessId;
7321
7468
  }
7322
- if (typeof this.keywordInput !== 'undefined' && this.keywordInput !== null) {
7323
- toReturn['keywordInput'] = 'toApiJson' in this.keywordInput ? this.keywordInput.toApiJson() : this.keywordInput;
7324
- }
7325
- if (typeof this.imageCount !== 'undefined') {
7326
- toReturn['imageCount'] = this.imageCount;
7327
- }
7328
- if (typeof this.includeLocalUrl !== 'undefined') {
7329
- toReturn['includeLocalUrl'] = this.includeLocalUrl;
7330
- }
7331
- if (typeof this.pageNumber !== 'undefined') {
7332
- toReturn['pageNumber'] = this.pageNumber;
7469
+ if (typeof this.partnerId !== 'undefined') {
7470
+ toReturn['partnerId'] = this.partnerId;
7333
7471
  }
7334
- if (typeof this.order !== 'undefined') {
7335
- toReturn['order'] = this.order;
7472
+ if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
7473
+ toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
7474
+ }
7475
+ return toReturn;
7476
+ }
7477
+ }
7478
+ class CreateCommonAiInstructionsResponse {
7479
+ static fromProto(proto) {
7480
+ let m = new CreateCommonAiInstructionsResponse();
7481
+ m = Object.assign(m, proto);
7482
+ if (proto.aiInstructions) {
7483
+ m.aiInstructions = AiInstructions.fromProto(proto.aiInstructions);
7484
+ }
7485
+ return m;
7486
+ }
7487
+ constructor(kwargs) {
7488
+ if (!kwargs) {
7489
+ return;
7490
+ }
7491
+ Object.assign(this, kwargs);
7492
+ }
7493
+ toApiJson() {
7494
+ const toReturn = {};
7495
+ if (typeof this.aiInstructions !== 'undefined' && this.aiInstructions !== null) {
7496
+ toReturn['aiInstructions'] = 'toApiJson' in this.aiInstructions ? this.aiInstructions.toApiJson() : this.aiInstructions;
7497
+ }
7498
+ return toReturn;
7499
+ }
7500
+ }
7501
+ class CreateImageRequest {
7502
+ static fromProto(proto) {
7503
+ let m = new CreateImageRequest();
7504
+ m = Object.assign(m, proto);
7505
+ if (proto.metadata) {
7506
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
7507
+ }
7508
+ return m;
7509
+ }
7510
+ constructor(kwargs) {
7511
+ if (!kwargs) {
7512
+ return;
7513
+ }
7514
+ Object.assign(this, kwargs);
7515
+ }
7516
+ toApiJson() {
7517
+ const toReturn = {};
7518
+ if (typeof this.businessId !== 'undefined') {
7519
+ toReturn['businessId'] = this.businessId;
7520
+ }
7521
+ if (typeof this.prompt !== 'undefined') {
7522
+ toReturn['prompt'] = this.prompt;
7523
+ }
7524
+ if (typeof this.imageAmount !== 'undefined') {
7525
+ toReturn['imageAmount'] = this.imageAmount;
7526
+ }
7527
+ if (typeof this.size !== 'undefined') {
7528
+ toReturn['size'] = this.size;
7529
+ }
7530
+ if (typeof this.responseFormat !== 'undefined') {
7531
+ toReturn['responseFormat'] = this.responseFormat;
7532
+ }
7533
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
7534
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
7535
+ }
7536
+ if (typeof this.model !== 'undefined') {
7537
+ toReturn['model'] = this.model;
7538
+ }
7539
+ if (typeof this.style !== 'undefined') {
7540
+ toReturn['style'] = this.style;
7541
+ }
7542
+ if (typeof this.quality !== 'undefined') {
7543
+ toReturn['quality'] = this.quality;
7544
+ }
7545
+ return toReturn;
7546
+ }
7547
+ }
7548
+ class CreateImageResponse {
7549
+ static fromProto(proto) {
7550
+ let m = new CreateImageResponse();
7551
+ m = Object.assign(m, proto);
7552
+ if (proto.createdId) {
7553
+ m.createdId = parseInt(proto.createdId, 10);
7554
+ }
7555
+ if (proto.generatedImages) {
7556
+ m.generatedImages = proto.generatedImages.map(ImageCreated.fromProto);
7557
+ }
7558
+ return m;
7559
+ }
7560
+ constructor(kwargs) {
7561
+ if (!kwargs) {
7562
+ return;
7563
+ }
7564
+ Object.assign(this, kwargs);
7565
+ }
7566
+ toApiJson() {
7567
+ const toReturn = {};
7568
+ if (typeof this.createdId !== 'undefined') {
7569
+ toReturn['createdId'] = this.createdId;
7570
+ }
7571
+ if (typeof this.generatedImages !== 'undefined' && this.generatedImages !== null) {
7572
+ toReturn['generatedImages'] = 'toApiJson' in this.generatedImages ? this.generatedImages.toApiJson() : this.generatedImages;
7573
+ }
7574
+ return toReturn;
7575
+ }
7576
+ }
7577
+ class CuratedContentPost {
7578
+ static fromProto(proto) {
7579
+ let m = new CuratedContentPost();
7580
+ m = Object.assign(m, proto);
7581
+ if (proto.media) {
7582
+ m.media = proto.media.map(UploadedMedia.fromProto);
7583
+ }
7584
+ return m;
7585
+ }
7586
+ constructor(kwargs) {
7587
+ if (!kwargs) {
7588
+ return;
7589
+ }
7590
+ Object.assign(this, kwargs);
7591
+ }
7592
+ toApiJson() {
7593
+ const toReturn = {};
7594
+ if (typeof this.id !== 'undefined') {
7595
+ toReturn['id'] = this.id;
7596
+ }
7597
+ if (typeof this.text !== 'undefined') {
7598
+ toReturn['text'] = this.text;
7599
+ }
7600
+ if (typeof this.media !== 'undefined' && this.media !== null) {
7601
+ toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
7602
+ }
7603
+ if (typeof this.errors !== 'undefined') {
7604
+ toReturn['errors'] = this.errors;
7605
+ }
7606
+ if (typeof this.businessId !== 'undefined') {
7607
+ toReturn['businessId'] = this.businessId;
7608
+ }
7609
+ if (typeof this.createdAt !== 'undefined') {
7610
+ toReturn['createdAt'] = this.createdAt;
7611
+ }
7612
+ if (typeof this.postedAt !== 'undefined') {
7613
+ toReturn['postedAt'] = this.postedAt;
7614
+ }
7615
+ return toReturn;
7616
+ }
7617
+ }
7618
+ class DeletePostRequest {
7619
+ static fromProto(proto) {
7620
+ let m = new DeletePostRequest();
7621
+ m = Object.assign(m, proto);
7622
+ return m;
7623
+ }
7624
+ constructor(kwargs) {
7625
+ if (!kwargs) {
7626
+ return;
7627
+ }
7628
+ Object.assign(this, kwargs);
7629
+ }
7630
+ toApiJson() {
7631
+ const toReturn = {};
7632
+ if (typeof this.accessToken !== 'undefined') {
7633
+ toReturn['accessToken'] = this.accessToken;
7634
+ }
7635
+ if (typeof this.postId !== 'undefined') {
7636
+ toReturn['postId'] = this.postId;
7637
+ }
7638
+ return toReturn;
7639
+ }
7640
+ }
7641
+ class FetchLibraryImagesRequest {
7642
+ static fromProto(proto) {
7643
+ let m = new FetchLibraryImagesRequest();
7644
+ m = Object.assign(m, proto);
7645
+ if (proto.keywordInput) {
7646
+ m.keywordInput = KeywordGeneration.fromProto(proto.keywordInput);
7647
+ }
7648
+ return m;
7649
+ }
7650
+ constructor(kwargs) {
7651
+ if (!kwargs) {
7652
+ return;
7653
+ }
7654
+ Object.assign(this, kwargs);
7655
+ }
7656
+ toApiJson() {
7657
+ const toReturn = {};
7658
+ if (typeof this.businessId !== 'undefined') {
7659
+ toReturn['businessId'] = this.businessId;
7660
+ }
7661
+ if (typeof this.keywordInput !== 'undefined' && this.keywordInput !== null) {
7662
+ toReturn['keywordInput'] = 'toApiJson' in this.keywordInput ? this.keywordInput.toApiJson() : this.keywordInput;
7663
+ }
7664
+ if (typeof this.imageCount !== 'undefined') {
7665
+ toReturn['imageCount'] = this.imageCount;
7666
+ }
7667
+ if (typeof this.includeLocalUrl !== 'undefined') {
7668
+ toReturn['includeLocalUrl'] = this.includeLocalUrl;
7669
+ }
7670
+ if (typeof this.pageNumber !== 'undefined') {
7671
+ toReturn['pageNumber'] = this.pageNumber;
7672
+ }
7673
+ if (typeof this.order !== 'undefined') {
7674
+ toReturn['order'] = this.order;
7336
7675
  }
7337
7676
  return toReturn;
7338
7677
  }
@@ -7365,10 +7704,10 @@ class GenerateAiRequest {
7365
7704
  let m = new GenerateAiRequest();
7366
7705
  m = Object.assign(m, proto);
7367
7706
  if (proto.length) {
7368
- m.length = enumStringToValue$9(ContentLength, proto.length);
7707
+ m.length = enumStringToValue$b(ContentLength, proto.length);
7369
7708
  }
7370
7709
  if (proto.generateType) {
7371
- m.generateType = enumStringToValue$9(GenerateType, proto.generateType);
7710
+ m.generateType = enumStringToValue$b(GenerateType, proto.generateType);
7372
7711
  }
7373
7712
  if (proto.metadata) {
7374
7713
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
@@ -7441,7 +7780,7 @@ class GenerateBlogPostCampaignRequest {
7441
7780
  let m = new GenerateBlogPostCampaignRequest();
7442
7781
  m = Object.assign(m, proto);
7443
7782
  if (proto.networkType) {
7444
- m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
7783
+ m.networkType = proto.networkType.map((v) => enumStringToValue$b(Network, v));
7445
7784
  }
7446
7785
  if (proto.blogCampaign) {
7447
7786
  m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
@@ -7534,7 +7873,7 @@ class GeneratePostCampaignRequest {
7534
7873
  let m = new GeneratePostCampaignRequest();
7535
7874
  m = Object.assign(m, proto);
7536
7875
  if (proto.networkType) {
7537
- m.networkType = proto.networkType.map((v) => enumStringToValue$9(Network, v));
7876
+ m.networkType = proto.networkType.map((v) => enumStringToValue$b(Network, v));
7538
7877
  }
7539
7878
  if (proto.postGeneration) {
7540
7879
  m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
@@ -7569,7 +7908,7 @@ class GeneratePostCampaignResponse {
7569
7908
  let m = new GeneratePostCampaignResponse();
7570
7909
  m = Object.assign(m, proto);
7571
7910
  if (proto.posts) {
7572
- m.posts = proto.posts.map(Post.fromProto);
7911
+ m.posts = proto.posts.map(Post$1.fromProto);
7573
7912
  }
7574
7913
  return m;
7575
7914
  }
@@ -7774,7 +8113,7 @@ class GetXSubscriptionTypeResponse {
7774
8113
  let m = new GetXSubscriptionTypeResponse();
7775
8114
  m = Object.assign(m, proto);
7776
8115
  if (proto.subscriptionType) {
7777
- m.subscriptionType = enumStringToValue$9(XSubscriptionType, proto.subscriptionType);
8116
+ m.subscriptionType = enumStringToValue$b(XSubscriptionType, proto.subscriptionType);
7778
8117
  }
7779
8118
  return m;
7780
8119
  }
@@ -7921,7 +8260,7 @@ class KeywordGeneration {
7921
8260
  let m = new KeywordGeneration();
7922
8261
  m = Object.assign(m, proto);
7923
8262
  if (proto.postType) {
7924
- m.postType = enumStringToValue$9(PostCategory, proto.postType);
8263
+ m.postType = enumStringToValue$b(PostCategory, proto.postType);
7925
8264
  }
7926
8265
  return m;
7927
8266
  }
@@ -8072,6 +8411,49 @@ class ListPostableSocialServiceResponse {
8072
8411
  return toReturn;
8073
8412
  }
8074
8413
  }
8414
+ class ListSocialConnectionsByBusinessesRequest {
8415
+ static fromProto(proto) {
8416
+ let m = new ListSocialConnectionsByBusinessesRequest();
8417
+ m = Object.assign(m, proto);
8418
+ return m;
8419
+ }
8420
+ constructor(kwargs) {
8421
+ if (!kwargs) {
8422
+ return;
8423
+ }
8424
+ Object.assign(this, kwargs);
8425
+ }
8426
+ toApiJson() {
8427
+ const toReturn = {};
8428
+ if (typeof this.accountGroupIds !== 'undefined') {
8429
+ toReturn['accountGroupIds'] = this.accountGroupIds;
8430
+ }
8431
+ return toReturn;
8432
+ }
8433
+ }
8434
+ class ListSocialConnectionsByBusinessesResponse {
8435
+ static fromProto(proto) {
8436
+ let m = new ListSocialConnectionsByBusinessesResponse();
8437
+ m = Object.assign(m, proto);
8438
+ if (proto.accountsByBusiness) {
8439
+ m.accountsByBusiness = Object.keys(proto.accountsByBusiness).reduce((obj, k) => { obj[k] = BusinessConnectedSocialAccounts.fromProto(proto.accountsByBusiness[k]); return obj; }, {});
8440
+ }
8441
+ return m;
8442
+ }
8443
+ constructor(kwargs) {
8444
+ if (!kwargs) {
8445
+ return;
8446
+ }
8447
+ Object.assign(this, kwargs);
8448
+ }
8449
+ toApiJson() {
8450
+ const toReturn = {};
8451
+ if (typeof this.accountsByBusiness !== 'undefined' && this.accountsByBusiness !== null) {
8452
+ toReturn['accountsByBusiness'] = 'toApiJson' in this.accountsByBusiness ? this.accountsByBusiness.toApiJson() : this.accountsByBusiness;
8453
+ }
8454
+ return toReturn;
8455
+ }
8456
+ }
8075
8457
  class ListUnsplashImagesRequest {
8076
8458
  static fromProto(proto) {
8077
8459
  let m = new ListUnsplashImagesRequest();
@@ -8255,7 +8637,7 @@ class GeneratePostsResponsePost {
8255
8637
  return toReturn;
8256
8638
  }
8257
8639
  }
8258
- class Post {
8640
+ let Post$1 = class Post {
8259
8641
  static fromProto(proto) {
8260
8642
  let m = new Post();
8261
8643
  m = Object.assign(m, proto);
@@ -8280,13 +8662,13 @@ class Post {
8280
8662
  }
8281
8663
  return toReturn;
8282
8664
  }
8283
- }
8665
+ };
8284
8666
  class PostContent {
8285
8667
  static fromProto(proto) {
8286
8668
  let m = new PostContent();
8287
8669
  m = Object.assign(m, proto);
8288
8670
  if (proto.socialNetwork) {
8289
- m.socialNetwork = enumStringToValue$9(Network, proto.socialNetwork);
8671
+ m.socialNetwork = enumStringToValue$b(Network, proto.socialNetwork);
8290
8672
  }
8291
8673
  return m;
8292
8674
  }
@@ -8312,10 +8694,10 @@ class PostsGeneration {
8312
8694
  let m = new PostsGeneration();
8313
8695
  m = Object.assign(m, proto);
8314
8696
  if (proto.tone) {
8315
- m.tone = enumStringToValue$9(Tone, proto.tone);
8697
+ m.tone = enumStringToValue$b(Tone, proto.tone);
8316
8698
  }
8317
8699
  if (proto.contentLength) {
8318
- m.contentLength = enumStringToValue$9(ContentLength, proto.contentLength);
8700
+ m.contentLength = enumStringToValue$b(ContentLength, proto.contentLength);
8319
8701
  }
8320
8702
  return m;
8321
8703
  }
@@ -8402,7 +8784,7 @@ class SocialPostOutput {
8402
8784
  m.metadata = proto.metadata.map(MetadataV2.fromProto);
8403
8785
  }
8404
8786
  if (proto.status) {
8405
- m.status = enumStringToValue$9(PostStatusV2, proto.status);
8787
+ m.status = enumStringToValue$b(PostStatusV2, proto.status);
8406
8788
  }
8407
8789
  return m;
8408
8790
  }
@@ -8711,7 +9093,7 @@ class UploadToStorageRequest {
8711
9093
  let m = new UploadToStorageRequest();
8712
9094
  m = Object.assign(m, proto);
8713
9095
  if (proto.mediaType) {
8714
- m.mediaType = enumStringToValue$9(MediaType$1, proto.mediaType);
9096
+ m.mediaType = enumStringToValue$b(MediaType$1, proto.mediaType);
8715
9097
  }
8716
9098
  return m;
8717
9099
  }
@@ -8779,7 +9161,7 @@ class UploadedMedia {
8779
9161
  }
8780
9162
  }
8781
9163
 
8782
- function enumStringToValue$8(enumRef, value) {
9164
+ function enumStringToValue$a(enumRef, value) {
8783
9165
  if (typeof value === 'number') {
8784
9166
  return value;
8785
9167
  }
@@ -8790,7 +9172,7 @@ class Action {
8790
9172
  let m = new Action();
8791
9173
  m = Object.assign(m, proto);
8792
9174
  if (proto.actionType) {
8793
- m.actionType = enumStringToValue$8(ActionType, proto.actionType);
9175
+ m.actionType = enumStringToValue$a(ActionType, proto.actionType);
8794
9176
  }
8795
9177
  return m;
8796
9178
  }
@@ -8930,7 +9312,7 @@ class StartChatResponse {
8930
9312
  }
8931
9313
  }
8932
9314
 
8933
- function enumStringToValue$7(enumRef, value) {
9315
+ function enumStringToValue$9(enumRef, value) {
8934
9316
  if (typeof value === 'number') {
8935
9317
  return value;
8936
9318
  }
@@ -8941,7 +9323,7 @@ class ChatMessage {
8941
9323
  let m = new ChatMessage();
8942
9324
  m = Object.assign(m, proto);
8943
9325
  if (proto.role) {
8944
- m.role = enumStringToValue$7(Role, proto.role);
9326
+ m.role = enumStringToValue$9(Role, proto.role);
8945
9327
  }
8946
9328
  return m;
8947
9329
  }
@@ -8970,7 +9352,7 @@ class SendMessageV2Request {
8970
9352
  m.messages = proto.messages.map(ChatMessage.fromProto);
8971
9353
  }
8972
9354
  if (proto.contentType) {
8973
- m.contentType = enumStringToValue$7(ContentType, proto.contentType);
9355
+ m.contentType = enumStringToValue$9(ContentType, proto.contentType);
8974
9356
  }
8975
9357
  return m;
8976
9358
  }
@@ -9027,7 +9409,7 @@ class SendMessageV2Response {
9027
9409
  }
9028
9410
  }
9029
9411
 
9030
- function enumStringToValue$6(enumRef, value) {
9412
+ function enumStringToValue$8(enumRef, value) {
9031
9413
  if (typeof value === 'number') {
9032
9414
  return value;
9033
9415
  }
@@ -9319,7 +9701,7 @@ class UpdateBlogConnectionRequest {
9319
9701
  }
9320
9702
  }
9321
9703
 
9322
- function enumStringToValue$5(enumRef, value) {
9704
+ function enumStringToValue$7(enumRef, value) {
9323
9705
  if (typeof value === 'number') {
9324
9706
  return value;
9325
9707
  }
@@ -9457,6 +9839,9 @@ class BlogPost {
9457
9839
  if (proto.deleted) {
9458
9840
  m.deleted = new Date(proto.deleted);
9459
9841
  }
9842
+ if (proto.metadata) {
9843
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
9844
+ }
9460
9845
  return m;
9461
9846
  }
9462
9847
  constructor(kwargs) {
@@ -9539,6 +9924,15 @@ class BlogPost {
9539
9924
  if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
9540
9925
  toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
9541
9926
  }
9927
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
9928
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
9929
+ }
9930
+ if (typeof this.createdBy !== 'undefined') {
9931
+ toReturn['createdBy'] = this.createdBy;
9932
+ }
9933
+ if (typeof this.updatedBy !== 'undefined') {
9934
+ toReturn['updatedBy'] = this.updatedBy;
9935
+ }
9542
9936
  return toReturn;
9543
9937
  }
9544
9938
  }
@@ -9757,7 +10151,10 @@ class PublishPostRequest {
9757
10151
  if (proto.postDateTime) {
9758
10152
  m.postDateTime = new Date(proto.postDateTime);
9759
10153
  }
9760
- return m;
10154
+ if (proto.metadata) {
10155
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
10156
+ }
10157
+ return m;
9761
10158
  }
9762
10159
  constructor(kwargs) {
9763
10160
  if (!kwargs) {
@@ -9815,6 +10212,12 @@ class PublishPostRequest {
9815
10212
  if (typeof this.internalPostId !== 'undefined') {
9816
10213
  toReturn['internalPostId'] = this.internalPostId;
9817
10214
  }
10215
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
10216
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
10217
+ }
10218
+ if (typeof this.createdBy !== 'undefined') {
10219
+ toReturn['createdBy'] = this.createdBy;
10220
+ }
9818
10221
  return toReturn;
9819
10222
  }
9820
10223
  }
@@ -9940,7 +10343,7 @@ class UpdateBlogPostRequest {
9940
10343
  }
9941
10344
  }
9942
10345
 
9943
- function enumStringToValue$4(enumRef, value) {
10346
+ function enumStringToValue$6(enumRef, value) {
9944
10347
  if (typeof value === 'number') {
9945
10348
  return value;
9946
10349
  }
@@ -10141,7 +10544,7 @@ class UpdateCampaignIdRequest {
10141
10544
  let m = new UpdateCampaignIdRequest();
10142
10545
  m = Object.assign(m, proto);
10143
10546
  if (proto.type) {
10144
- m.type = enumStringToValue$4(PostCategory, proto.type);
10547
+ m.type = enumStringToValue$6(PostCategory, proto.type);
10145
10548
  }
10146
10549
  return m;
10147
10550
  }
@@ -10198,7 +10601,7 @@ class UpdateCampaignRequest {
10198
10601
  }
10199
10602
  }
10200
10603
 
10201
- function enumStringToValue$3(enumRef, value) {
10604
+ function enumStringToValue$5(enumRef, value) {
10202
10605
  if (typeof value === 'number') {
10203
10606
  return value;
10204
10607
  }
@@ -10276,7 +10679,7 @@ class Draft {
10276
10679
  m.media = proto.media.map(DraftMedia.fromProto);
10277
10680
  }
10278
10681
  if (proto.draftType) {
10279
- m.draftType = enumStringToValue$3(DraftType, proto.draftType);
10682
+ m.draftType = enumStringToValue$5(DraftType, proto.draftType);
10280
10683
  }
10281
10684
  if (proto.metadata) {
10282
10685
  m.metadata = proto.metadata.map(DraftMetaData.fromProto);
@@ -10372,6 +10775,12 @@ class Draft {
10372
10775
  if (typeof this.socialNetworkIdentifier !== 'undefined') {
10373
10776
  toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
10374
10777
  }
10778
+ if (typeof this.createdBy !== 'undefined') {
10779
+ toReturn['createdBy'] = this.createdBy;
10780
+ }
10781
+ if (typeof this.updatedBy !== 'undefined') {
10782
+ toReturn['updatedBy'] = this.updatedBy;
10783
+ }
10375
10784
  return toReturn;
10376
10785
  }
10377
10786
  }
@@ -10534,7 +10943,7 @@ class DraftYoutubeCustomization {
10534
10943
  let m = new DraftYoutubeCustomization();
10535
10944
  m = Object.assign(m, proto);
10536
10945
  if (proto.privacyStatus) {
10537
- m.privacyStatus = enumStringToValue$3(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
10946
+ m.privacyStatus = enumStringToValue$5(DraftYoutubeCustomizationPrivacyStatus, proto.privacyStatus);
10538
10947
  }
10539
10948
  return m;
10540
10949
  }
@@ -10621,7 +11030,7 @@ class SSIDDraftType {
10621
11030
  let m = new SSIDDraftType();
10622
11031
  m = Object.assign(m, proto);
10623
11032
  if (proto.draftType) {
10624
- m.draftType = enumStringToValue$3(DraftType, proto.draftType);
11033
+ m.draftType = enumStringToValue$5(DraftType, proto.draftType);
10625
11034
  }
10626
11035
  return m;
10627
11036
  }
@@ -10643,7 +11052,7 @@ class SSIDDraftType {
10643
11052
  }
10644
11053
  }
10645
11054
 
10646
- function enumStringToValue$2(enumRef, value) {
11055
+ function enumStringToValue$4(enumRef, value) {
10647
11056
  if (typeof value === 'number') {
10648
11057
  return value;
10649
11058
  }
@@ -10663,7 +11072,7 @@ class CreateDraftRequest {
10663
11072
  m.media = proto.media.map(DraftMedia.fromProto);
10664
11073
  }
10665
11074
  if (proto.draftType) {
10666
- m.draftType = enumStringToValue$2(DraftType, proto.draftType);
11075
+ m.draftType = enumStringToValue$4(DraftType, proto.draftType);
10667
11076
  }
10668
11077
  if (proto.metadata) {
10669
11078
  m.metadata = proto.metadata.map(DraftMetaData.fromProto);
@@ -10750,6 +11159,9 @@ class CreateDraftRequest {
10750
11159
  if (typeof this.socialNetworkIdentifier !== 'undefined') {
10751
11160
  toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
10752
11161
  }
11162
+ if (typeof this.createdBy !== 'undefined') {
11163
+ toReturn['createdBy'] = this.createdBy;
11164
+ }
10753
11165
  return toReturn;
10754
11166
  }
10755
11167
  }
@@ -10966,10 +11378,10 @@ class ListDraftsRequest {
10966
11378
  m.end = new Date(proto.end);
10967
11379
  }
10968
11380
  if (proto.visibilityType) {
10969
- m.visibilityType = enumStringToValue$2(VisibilityType, proto.visibilityType);
11381
+ m.visibilityType = enumStringToValue$4(VisibilityType, proto.visibilityType);
10970
11382
  }
10971
11383
  if (proto.filterBy) {
10972
- m.filterBy = enumStringToValue$2(FilterBy, proto.filterBy);
11384
+ m.filterBy = enumStringToValue$4(FilterBy, proto.filterBy);
10973
11385
  }
10974
11386
  return m;
10975
11387
  }
@@ -11129,7 +11541,7 @@ class UpdateDraftRequest {
11129
11541
  m.media = proto.media.map(DraftMedia.fromProto);
11130
11542
  }
11131
11543
  if (proto.draftType) {
11132
- m.draftType = enumStringToValue$2(DraftType, proto.draftType);
11544
+ m.draftType = enumStringToValue$4(DraftType, proto.draftType);
11133
11545
  }
11134
11546
  if (proto.metadata) {
11135
11547
  m.metadata = proto.metadata.map(DraftMetaData.fromProto);
@@ -11219,6 +11631,9 @@ class UpdateDraftRequest {
11219
11631
  if (typeof this.socialNetworkIdentifier !== 'undefined') {
11220
11632
  toReturn['socialNetworkIdentifier'] = this.socialNetworkIdentifier;
11221
11633
  }
11634
+ if (typeof this.updatedBy !== 'undefined') {
11635
+ toReturn['updatedBy'] = this.updatedBy;
11636
+ }
11222
11637
  return toReturn;
11223
11638
  }
11224
11639
  }
@@ -11269,7 +11684,7 @@ class UpdateMultiMLDraftsRequest {
11269
11684
  }
11270
11685
  }
11271
11686
 
11272
- function enumStringToValue$1(enumRef, value) {
11687
+ function enumStringToValue$3(enumRef, value) {
11273
11688
  if (typeof value === 'number') {
11274
11689
  return value;
11275
11690
  }
@@ -11313,6 +11728,59 @@ class BlogPostOptions {
11313
11728
  return toReturn;
11314
11729
  }
11315
11730
  }
11731
+ class ContentItem {
11732
+ static fromProto(proto) {
11733
+ let m = new ContentItem();
11734
+ m = Object.assign(m, proto);
11735
+ if (proto.content) {
11736
+ m.content = SocialContentItem.fromProto(proto.content);
11737
+ }
11738
+ if (proto.status) {
11739
+ m.status = enumStringToValue$3(ContentStatus, proto.status);
11740
+ }
11741
+ if (proto.createdAt) {
11742
+ m.createdAt = new Date(proto.createdAt);
11743
+ }
11744
+ if (proto.updatedAt) {
11745
+ m.updatedAt = new Date(proto.updatedAt);
11746
+ }
11747
+ return m;
11748
+ }
11749
+ constructor(kwargs) {
11750
+ if (!kwargs) {
11751
+ return;
11752
+ }
11753
+ Object.assign(this, kwargs);
11754
+ }
11755
+ toApiJson() {
11756
+ const toReturn = {};
11757
+ if (typeof this.postId !== 'undefined') {
11758
+ toReturn['postId'] = this.postId;
11759
+ }
11760
+ if (typeof this.content !== 'undefined' && this.content !== null) {
11761
+ toReturn['content'] = 'toApiJson' in this.content ? this.content.toApiJson() : this.content;
11762
+ }
11763
+ if (typeof this.status !== 'undefined') {
11764
+ toReturn['status'] = this.status;
11765
+ }
11766
+ if (typeof this.errorMessage !== 'undefined') {
11767
+ toReturn['errorMessage'] = this.errorMessage;
11768
+ }
11769
+ if (typeof this.createdAt !== 'undefined' && this.createdAt !== null) {
11770
+ toReturn['createdAt'] = 'toApiJson' in this.createdAt ? this.createdAt.toApiJson() : this.createdAt;
11771
+ }
11772
+ if (typeof this.createdBy !== 'undefined') {
11773
+ toReturn['createdBy'] = this.createdBy;
11774
+ }
11775
+ if (typeof this.updatedAt !== 'undefined' && this.updatedAt !== null) {
11776
+ toReturn['updatedAt'] = 'toApiJson' in this.updatedAt ? this.updatedAt.toApiJson() : this.updatedAt;
11777
+ }
11778
+ if (typeof this.updatedBy !== 'undefined') {
11779
+ toReturn['updatedBy'] = this.updatedBy;
11780
+ }
11781
+ return toReturn;
11782
+ }
11783
+ }
11316
11784
  class ContentMetadata {
11317
11785
  static fromProto(proto) {
11318
11786
  let m = new ContentMetadata();
@@ -11391,6 +11859,139 @@ class CreateContentResponse {
11391
11859
  return toReturn;
11392
11860
  }
11393
11861
  }
11862
+ class DateFilter {
11863
+ static fromProto(proto) {
11864
+ let m = new DateFilter();
11865
+ m = Object.assign(m, proto);
11866
+ if (proto.from) {
11867
+ m.from = new Date(proto.from);
11868
+ }
11869
+ if (proto.to) {
11870
+ m.to = new Date(proto.to);
11871
+ }
11872
+ return m;
11873
+ }
11874
+ constructor(kwargs) {
11875
+ if (!kwargs) {
11876
+ return;
11877
+ }
11878
+ Object.assign(this, kwargs);
11879
+ }
11880
+ toApiJson() {
11881
+ const toReturn = {};
11882
+ if (typeof this.field !== 'undefined') {
11883
+ toReturn['field'] = this.field;
11884
+ }
11885
+ if (typeof this.from !== 'undefined' && this.from !== null) {
11886
+ toReturn['from'] = 'toApiJson' in this.from ? this.from.toApiJson() : this.from;
11887
+ }
11888
+ if (typeof this.to !== 'undefined' && this.to !== null) {
11889
+ toReturn['to'] = 'toApiJson' in this.to ? this.to.toApiJson() : this.to;
11890
+ }
11891
+ return toReturn;
11892
+ }
11893
+ }
11894
+ class DeleteContentRequest {
11895
+ static fromProto(proto) {
11896
+ let m = new DeleteContentRequest();
11897
+ m = Object.assign(m, proto);
11898
+ if (proto.post) {
11899
+ m.post = proto.post.map(Post.fromProto);
11900
+ }
11901
+ return m;
11902
+ }
11903
+ constructor(kwargs) {
11904
+ if (!kwargs) {
11905
+ return;
11906
+ }
11907
+ Object.assign(this, kwargs);
11908
+ }
11909
+ toApiJson() {
11910
+ const toReturn = {};
11911
+ if (typeof this.accountGroupId !== 'undefined') {
11912
+ toReturn['accountGroupId'] = this.accountGroupId;
11913
+ }
11914
+ if (typeof this.post !== 'undefined' && this.post !== null) {
11915
+ toReturn['post'] = 'toApiJson' in this.post ? this.post.toApiJson() : this.post;
11916
+ }
11917
+ if (typeof this.userId !== 'undefined') {
11918
+ toReturn['userId'] = this.userId;
11919
+ }
11920
+ return toReturn;
11921
+ }
11922
+ }
11923
+ class DeleteContentResponse {
11924
+ static fromProto(proto) {
11925
+ let m = new DeleteContentResponse();
11926
+ m = Object.assign(m, proto);
11927
+ if (proto.results) {
11928
+ m.results = proto.results.map(DeleteResult.fromProto);
11929
+ }
11930
+ return m;
11931
+ }
11932
+ constructor(kwargs) {
11933
+ if (!kwargs) {
11934
+ return;
11935
+ }
11936
+ Object.assign(this, kwargs);
11937
+ }
11938
+ toApiJson() {
11939
+ const toReturn = {};
11940
+ if (typeof this.results !== 'undefined' && this.results !== null) {
11941
+ toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
11942
+ }
11943
+ return toReturn;
11944
+ }
11945
+ }
11946
+ class DeleteResult {
11947
+ static fromProto(proto) {
11948
+ let m = new DeleteResult();
11949
+ m = Object.assign(m, proto);
11950
+ return m;
11951
+ }
11952
+ constructor(kwargs) {
11953
+ if (!kwargs) {
11954
+ return;
11955
+ }
11956
+ Object.assign(this, kwargs);
11957
+ }
11958
+ toApiJson() {
11959
+ const toReturn = {};
11960
+ if (typeof this.postId !== 'undefined') {
11961
+ toReturn['postId'] = this.postId;
11962
+ }
11963
+ if (typeof this.status !== 'undefined') {
11964
+ toReturn['status'] = this.status;
11965
+ }
11966
+ if (typeof this.errorMessage !== 'undefined') {
11967
+ toReturn['errorMessage'] = this.errorMessage;
11968
+ }
11969
+ return toReturn;
11970
+ }
11971
+ }
11972
+ class FieldFilter {
11973
+ static fromProto(proto) {
11974
+ let m = new FieldFilter();
11975
+ m = Object.assign(m, proto);
11976
+ return m;
11977
+ }
11978
+ constructor(kwargs) {
11979
+ if (!kwargs) {
11980
+ return;
11981
+ }
11982
+ Object.assign(this, kwargs);
11983
+ }
11984
+ toApiJson() {
11985
+ const toReturn = {};
11986
+ if (typeof this.field !== 'undefined') {
11987
+ toReturn['field'] = this.field;
11988
+ }
11989
+ if (typeof this.values !== 'undefined') {
11990
+ toReturn['values'] = this.values;
11991
+ }
11992
+ return toReturn;
11993
+ }
11994
+ }
11394
11995
  class GMBCustomization {
11395
11996
  static fromProto(proto) {
11396
11997
  let m = new GMBCustomization();
@@ -11402,7 +12003,7 @@ class GMBCustomization {
11402
12003
  m.eventEnd = new Date(proto.eventEnd);
11403
12004
  }
11404
12005
  if (proto.ctaType) {
11405
- m.ctaType = enumStringToValue$1(CallToActionType, proto.ctaType);
12006
+ m.ctaType = enumStringToValue$3(CallToActionType, proto.ctaType);
11406
12007
  }
11407
12008
  return m;
11408
12009
  }
@@ -11467,12 +12068,82 @@ class Link {
11467
12068
  return toReturn;
11468
12069
  }
11469
12070
  }
12071
+ class ListContentRequest {
12072
+ static fromProto(proto) {
12073
+ let m = new ListContentRequest();
12074
+ m = Object.assign(m, proto);
12075
+ if (proto.filter) {
12076
+ m.filter = SocialContentFilter.fromProto(proto.filter);
12077
+ }
12078
+ if (proto.sort) {
12079
+ m.sort = Sort.fromProto(proto.sort);
12080
+ }
12081
+ if (proto.pageSize) {
12082
+ m.pageSize = parseInt(proto.pageSize, 10);
12083
+ }
12084
+ return m;
12085
+ }
12086
+ constructor(kwargs) {
12087
+ if (!kwargs) {
12088
+ return;
12089
+ }
12090
+ Object.assign(this, kwargs);
12091
+ }
12092
+ toApiJson() {
12093
+ const toReturn = {};
12094
+ if (typeof this.namespace !== 'undefined') {
12095
+ toReturn['namespace'] = this.namespace;
12096
+ }
12097
+ if (typeof this.filter !== 'undefined' && this.filter !== null) {
12098
+ toReturn['filter'] = 'toApiJson' in this.filter ? this.filter.toApiJson() : this.filter;
12099
+ }
12100
+ if (typeof this.sort !== 'undefined' && this.sort !== null) {
12101
+ toReturn['sort'] = 'toApiJson' in this.sort ? this.sort.toApiJson() : this.sort;
12102
+ }
12103
+ if (typeof this.cursor !== 'undefined') {
12104
+ toReturn['cursor'] = this.cursor;
12105
+ }
12106
+ if (typeof this.pageSize !== 'undefined') {
12107
+ toReturn['pageSize'] = this.pageSize;
12108
+ }
12109
+ return toReturn;
12110
+ }
12111
+ }
12112
+ class ListContentResponse {
12113
+ static fromProto(proto) {
12114
+ let m = new ListContentResponse();
12115
+ m = Object.assign(m, proto);
12116
+ if (proto.items) {
12117
+ m.items = proto.items.map(ContentItem.fromProto);
12118
+ }
12119
+ return m;
12120
+ }
12121
+ constructor(kwargs) {
12122
+ if (!kwargs) {
12123
+ return;
12124
+ }
12125
+ Object.assign(this, kwargs);
12126
+ }
12127
+ toApiJson() {
12128
+ const toReturn = {};
12129
+ if (typeof this.items !== 'undefined' && this.items !== null) {
12130
+ toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
12131
+ }
12132
+ if (typeof this.nextCursor !== 'undefined') {
12133
+ toReturn['nextCursor'] = this.nextCursor;
12134
+ }
12135
+ if (typeof this.hasMore !== 'undefined') {
12136
+ toReturn['hasMore'] = this.hasMore;
12137
+ }
12138
+ return toReturn;
12139
+ }
12140
+ }
11470
12141
  class MediaItem {
11471
12142
  static fromProto(proto) {
11472
12143
  let m = new MediaItem();
11473
12144
  m = Object.assign(m, proto);
11474
12145
  if (proto.mediaType) {
11475
- m.mediaType = enumStringToValue$1(MediaType$1, proto.mediaType);
12146
+ m.mediaType = enumStringToValue$3(MediaType$1, proto.mediaType);
11476
12147
  }
11477
12148
  return m;
11478
12149
  }
@@ -11499,15 +12170,76 @@ class MediaItem {
11499
12170
  return toReturn;
11500
12171
  }
11501
12172
  }
12173
+ class Post {
12174
+ static fromProto(proto) {
12175
+ let m = new Post();
12176
+ m = Object.assign(m, proto);
12177
+ if (proto.state) {
12178
+ m.state = enumStringToValue$3(ContentState, proto.state);
12179
+ }
12180
+ return m;
12181
+ }
12182
+ constructor(kwargs) {
12183
+ if (!kwargs) {
12184
+ return;
12185
+ }
12186
+ Object.assign(this, kwargs);
12187
+ }
12188
+ toApiJson() {
12189
+ const toReturn = {};
12190
+ if (typeof this.postId !== 'undefined') {
12191
+ toReturn['postId'] = this.postId;
12192
+ }
12193
+ if (typeof this.state !== 'undefined') {
12194
+ toReturn['state'] = this.state;
12195
+ }
12196
+ return toReturn;
12197
+ }
12198
+ }
12199
+ class SocialContentFilter {
12200
+ static fromProto(proto) {
12201
+ let m = new SocialContentFilter();
12202
+ m = Object.assign(m, proto);
12203
+ if (proto.mode) {
12204
+ m.mode = enumStringToValue$3(PublishMode, proto.mode);
12205
+ }
12206
+ if (proto.dateFilter) {
12207
+ m.dateFilter = DateFilter.fromProto(proto.dateFilter);
12208
+ }
12209
+ if (proto.filters) {
12210
+ m.filters = proto.filters.map(FieldFilter.fromProto);
12211
+ }
12212
+ return m;
12213
+ }
12214
+ constructor(kwargs) {
12215
+ if (!kwargs) {
12216
+ return;
12217
+ }
12218
+ Object.assign(this, kwargs);
12219
+ }
12220
+ toApiJson() {
12221
+ const toReturn = {};
12222
+ if (typeof this.mode !== 'undefined') {
12223
+ toReturn['mode'] = this.mode;
12224
+ }
12225
+ if (typeof this.dateFilter !== 'undefined' && this.dateFilter !== null) {
12226
+ toReturn['dateFilter'] = 'toApiJson' in this.dateFilter ? this.dateFilter.toApiJson() : this.dateFilter;
12227
+ }
12228
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
12229
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
12230
+ }
12231
+ return toReturn;
12232
+ }
12233
+ }
11502
12234
  class SocialContentItem {
11503
12235
  static fromProto(proto) {
11504
12236
  let m = new SocialContentItem();
11505
12237
  m = Object.assign(m, proto);
11506
12238
  if (proto.type) {
11507
- m.type = enumStringToValue$1(SocialContentType, proto.type);
12239
+ m.type = enumStringToValue$3(SocialContentType, proto.type);
11508
12240
  }
11509
12241
  if (proto.mode) {
11510
- m.mode = enumStringToValue$1(PublishMode, proto.mode);
12242
+ m.mode = enumStringToValue$3(PublishMode, proto.mode);
11511
12243
  }
11512
12244
  if (proto.ssidTypes) {
11513
12245
  m.ssidTypes = proto.ssidTypes.map(SsidPostType.fromProto);
@@ -11567,34 +12299,179 @@ class SocialContentItem {
11567
12299
  if (typeof this.links !== 'undefined' && this.links !== null) {
11568
12300
  toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
11569
12301
  }
11570
- if (typeof this.scheduleAt !== 'undefined' && this.scheduleAt !== null) {
11571
- toReturn['scheduleAt'] = 'toApiJson' in this.scheduleAt ? this.scheduleAt.toApiJson() : this.scheduleAt;
12302
+ if (typeof this.scheduleAt !== 'undefined' && this.scheduleAt !== null) {
12303
+ toReturn['scheduleAt'] = 'toApiJson' in this.scheduleAt ? this.scheduleAt.toApiJson() : this.scheduleAt;
12304
+ }
12305
+ if (typeof this.gmbCustomization !== 'undefined' && this.gmbCustomization !== null) {
12306
+ toReturn['gmbCustomization'] = 'toApiJson' in this.gmbCustomization ? this.gmbCustomization.toApiJson() : this.gmbCustomization;
12307
+ }
12308
+ if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
12309
+ toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
12310
+ }
12311
+ if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
12312
+ toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
12313
+ }
12314
+ if (typeof this.blogPostOptions !== 'undefined' && this.blogPostOptions !== null) {
12315
+ toReturn['blogPostOptions'] = 'toApiJson' in this.blogPostOptions ? this.blogPostOptions.toApiJson() : this.blogPostOptions;
12316
+ }
12317
+ if (typeof this.campaignId !== 'undefined') {
12318
+ toReturn['campaignId'] = this.campaignId;
12319
+ }
12320
+ if (typeof this.contentMetadata !== 'undefined' && this.contentMetadata !== null) {
12321
+ toReturn['contentMetadata'] = 'toApiJson' in this.contentMetadata ? this.contentMetadata.toApiJson() : this.contentMetadata;
12322
+ }
12323
+ return toReturn;
12324
+ }
12325
+ }
12326
+ class SocialContentResult {
12327
+ static fromProto(proto) {
12328
+ let m = new SocialContentResult();
12329
+ m = Object.assign(m, proto);
12330
+ return m;
12331
+ }
12332
+ constructor(kwargs) {
12333
+ if (!kwargs) {
12334
+ return;
12335
+ }
12336
+ Object.assign(this, kwargs);
12337
+ }
12338
+ toApiJson() {
12339
+ const toReturn = {};
12340
+ if (typeof this.postId !== 'undefined') {
12341
+ toReturn['postId'] = this.postId;
12342
+ }
12343
+ if (typeof this.ssid !== 'undefined') {
12344
+ toReturn['ssid'] = this.ssid;
12345
+ }
12346
+ if (typeof this.network !== 'undefined') {
12347
+ toReturn['network'] = this.network;
12348
+ }
12349
+ if (typeof this.status !== 'undefined') {
12350
+ toReturn['status'] = this.status;
12351
+ }
12352
+ if (typeof this.errorMessage !== 'undefined') {
12353
+ toReturn['errorMessage'] = this.errorMessage;
12354
+ }
12355
+ return toReturn;
12356
+ }
12357
+ }
12358
+ class Sort {
12359
+ static fromProto(proto) {
12360
+ let m = new Sort();
12361
+ m = Object.assign(m, proto);
12362
+ if (proto.direction) {
12363
+ m.direction = enumStringToValue$3(SortDirection, proto.direction);
12364
+ }
12365
+ return m;
12366
+ }
12367
+ constructor(kwargs) {
12368
+ if (!kwargs) {
12369
+ return;
12370
+ }
12371
+ Object.assign(this, kwargs);
12372
+ }
12373
+ toApiJson() {
12374
+ const toReturn = {};
12375
+ if (typeof this.field !== 'undefined') {
12376
+ toReturn['field'] = this.field;
12377
+ }
12378
+ if (typeof this.direction !== 'undefined') {
12379
+ toReturn['direction'] = this.direction;
12380
+ }
12381
+ return toReturn;
12382
+ }
12383
+ }
12384
+ class SsidPostType {
12385
+ static fromProto(proto) {
12386
+ let m = new SsidPostType();
12387
+ m = Object.assign(m, proto);
12388
+ if (proto.mediaContentType) {
12389
+ m.mediaContentType = enumStringToValue$3(MediaContentType, proto.mediaContentType);
12390
+ }
12391
+ return m;
12392
+ }
12393
+ constructor(kwargs) {
12394
+ if (!kwargs) {
12395
+ return;
12396
+ }
12397
+ Object.assign(this, kwargs);
12398
+ }
12399
+ toApiJson() {
12400
+ const toReturn = {};
12401
+ if (typeof this.ssid !== 'undefined') {
12402
+ toReturn['ssid'] = this.ssid;
12403
+ }
12404
+ if (typeof this.mediaContentType !== 'undefined') {
12405
+ toReturn['mediaContentType'] = this.mediaContentType;
12406
+ }
12407
+ return toReturn;
12408
+ }
12409
+ }
12410
+ class UpdateContentItem {
12411
+ static fromProto(proto) {
12412
+ let m = new UpdateContentItem();
12413
+ m = Object.assign(m, proto);
12414
+ if (proto.content) {
12415
+ m.content = SocialContentItem.fromProto(proto.content);
12416
+ }
12417
+ return m;
12418
+ }
12419
+ constructor(kwargs) {
12420
+ if (!kwargs) {
12421
+ return;
12422
+ }
12423
+ Object.assign(this, kwargs);
12424
+ }
12425
+ toApiJson() {
12426
+ const toReturn = {};
12427
+ if (typeof this.postId !== 'undefined') {
12428
+ toReturn['postId'] = this.postId;
12429
+ }
12430
+ if (typeof this.content !== 'undefined' && this.content !== null) {
12431
+ toReturn['content'] = 'toApiJson' in this.content ? this.content.toApiJson() : this.content;
11572
12432
  }
11573
- if (typeof this.gmbCustomization !== 'undefined' && this.gmbCustomization !== null) {
11574
- toReturn['gmbCustomization'] = 'toApiJson' in this.gmbCustomization ? this.gmbCustomization.toApiJson() : this.gmbCustomization;
12433
+ return toReturn;
12434
+ }
12435
+ }
12436
+ class UpdateContentRequest {
12437
+ static fromProto(proto) {
12438
+ let m = new UpdateContentRequest();
12439
+ m = Object.assign(m, proto);
12440
+ if (proto.items) {
12441
+ m.items = proto.items.map(UpdateContentItem.fromProto);
11575
12442
  }
11576
- if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
11577
- toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
12443
+ return m;
12444
+ }
12445
+ constructor(kwargs) {
12446
+ if (!kwargs) {
12447
+ return;
11578
12448
  }
11579
- if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
11580
- toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
12449
+ Object.assign(this, kwargs);
12450
+ }
12451
+ toApiJson() {
12452
+ const toReturn = {};
12453
+ if (typeof this.accountGroupId !== 'undefined') {
12454
+ toReturn['accountGroupId'] = this.accountGroupId;
11581
12455
  }
11582
- if (typeof this.blogPostOptions !== 'undefined' && this.blogPostOptions !== null) {
11583
- toReturn['blogPostOptions'] = 'toApiJson' in this.blogPostOptions ? this.blogPostOptions.toApiJson() : this.blogPostOptions;
12456
+ if (typeof this.username !== 'undefined') {
12457
+ toReturn['username'] = this.username;
11584
12458
  }
11585
- if (typeof this.campaignId !== 'undefined') {
11586
- toReturn['campaignId'] = this.campaignId;
12459
+ if (typeof this.userId !== 'undefined') {
12460
+ toReturn['userId'] = this.userId;
11587
12461
  }
11588
- if (typeof this.contentMetadata !== 'undefined' && this.contentMetadata !== null) {
11589
- toReturn['contentMetadata'] = 'toApiJson' in this.contentMetadata ? this.contentMetadata.toApiJson() : this.contentMetadata;
12462
+ if (typeof this.items !== 'undefined' && this.items !== null) {
12463
+ toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
11590
12464
  }
11591
12465
  return toReturn;
11592
12466
  }
11593
12467
  }
11594
- class SocialContentResult {
12468
+ class UpdateContentResponse {
11595
12469
  static fromProto(proto) {
11596
- let m = new SocialContentResult();
12470
+ let m = new UpdateContentResponse();
11597
12471
  m = Object.assign(m, proto);
12472
+ if (proto.results) {
12473
+ m.results = proto.results.map(UpdateResult.fromProto);
12474
+ }
11598
12475
  return m;
11599
12476
  }
11600
12477
  constructor(kwargs) {
@@ -11605,30 +12482,18 @@ class SocialContentResult {
11605
12482
  }
11606
12483
  toApiJson() {
11607
12484
  const toReturn = {};
11608
- if (typeof this.postId !== 'undefined') {
11609
- toReturn['postId'] = this.postId;
11610
- }
11611
- if (typeof this.ssid !== 'undefined') {
11612
- toReturn['ssid'] = this.ssid;
11613
- }
11614
- if (typeof this.network !== 'undefined') {
11615
- toReturn['network'] = this.network;
11616
- }
11617
- if (typeof this.status !== 'undefined') {
11618
- toReturn['status'] = this.status;
11619
- }
11620
- if (typeof this.errorMessage !== 'undefined') {
11621
- toReturn['errorMessage'] = this.errorMessage;
12485
+ if (typeof this.results !== 'undefined' && this.results !== null) {
12486
+ toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
11622
12487
  }
11623
12488
  return toReturn;
11624
12489
  }
11625
12490
  }
11626
- class SsidPostType {
12491
+ class UpdateResult {
11627
12492
  static fromProto(proto) {
11628
- let m = new SsidPostType();
12493
+ let m = new UpdateResult();
11629
12494
  m = Object.assign(m, proto);
11630
- if (proto.mediaContentType) {
11631
- m.mediaContentType = enumStringToValue$1(MediaContentType, proto.mediaContentType);
12495
+ if (proto.item) {
12496
+ m.item = ContentItem.fromProto(proto.item);
11632
12497
  }
11633
12498
  return m;
11634
12499
  }
@@ -11640,17 +12505,20 @@ class SsidPostType {
11640
12505
  }
11641
12506
  toApiJson() {
11642
12507
  const toReturn = {};
11643
- if (typeof this.ssid !== 'undefined') {
11644
- toReturn['ssid'] = this.ssid;
12508
+ if (typeof this.item !== 'undefined' && this.item !== null) {
12509
+ toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
11645
12510
  }
11646
- if (typeof this.mediaContentType !== 'undefined') {
11647
- toReturn['mediaContentType'] = this.mediaContentType;
12511
+ if (typeof this.status !== 'undefined') {
12512
+ toReturn['status'] = this.status;
12513
+ }
12514
+ if (typeof this.errorMessage !== 'undefined') {
12515
+ toReturn['errorMessage'] = this.errorMessage;
11648
12516
  }
11649
12517
  return toReturn;
11650
12518
  }
11651
12519
  }
11652
12520
 
11653
- function enumStringToValue(enumRef, value) {
12521
+ function enumStringToValue$2(enumRef, value) {
11654
12522
  if (typeof value === 'number') {
11655
12523
  return value;
11656
12524
  }
@@ -11667,19 +12535,19 @@ class CreateOrEditRequest {
11667
12535
  m.imageInputs = proto.imageInputs.map(ImageInputSource.fromProto);
11668
12536
  }
11669
12537
  if (proto.model) {
11670
- m.model = enumStringToValue(ImageModel, proto.model);
12538
+ m.model = enumStringToValue$2(ImageModel, proto.model);
11671
12539
  }
11672
12540
  if (proto.quality) {
11673
- m.quality = enumStringToValue(ImageQuality, proto.quality);
12541
+ m.quality = enumStringToValue$2(ImageQuality, proto.quality);
11674
12542
  }
11675
12543
  if (proto.style) {
11676
- m.style = enumStringToValue(ImageStyle, proto.style);
12544
+ m.style = enumStringToValue$2(ImageStyle, proto.style);
11677
12545
  }
11678
12546
  if (proto.background) {
11679
- m.background = enumStringToValue(ImageBackground, proto.background);
12547
+ m.background = enumStringToValue$2(ImageBackground, proto.background);
11680
12548
  }
11681
12549
  if (proto.outputFormat) {
11682
- m.outputFormat = enumStringToValue(ImageOutputFormat, proto.outputFormat);
12550
+ m.outputFormat = enumStringToValue$2(ImageOutputFormat, proto.outputFormat);
11683
12551
  }
11684
12552
  return m;
11685
12553
  }
@@ -11727,6 +12595,9 @@ class CreateOrEditRequest {
11727
12595
  if (typeof this.moderation !== 'undefined') {
11728
12596
  toReturn['moderation'] = this.moderation;
11729
12597
  }
12598
+ if (typeof this.assistantType !== 'undefined') {
12599
+ toReturn['assistantType'] = this.assistantType;
12600
+ }
11730
12601
  return toReturn;
11731
12602
  }
11732
12603
  }
@@ -11803,6 +12674,192 @@ class ImageInputSource {
11803
12674
  }
11804
12675
  }
11805
12676
 
12677
+ function enumStringToValue$1(enumRef, value) {
12678
+ if (typeof value === 'number') {
12679
+ return value;
12680
+ }
12681
+ return enumRef[value];
12682
+ }
12683
+ class SocialComment {
12684
+ static fromProto(proto) {
12685
+ let m = new SocialComment();
12686
+ m = Object.assign(m, proto);
12687
+ if (proto.postedOn) {
12688
+ m.postedOn = new Date(proto.postedOn);
12689
+ }
12690
+ if (proto.likeCount) {
12691
+ m.likeCount = parseInt(proto.likeCount, 10);
12692
+ }
12693
+ return m;
12694
+ }
12695
+ constructor(kwargs) {
12696
+ if (!kwargs) {
12697
+ return;
12698
+ }
12699
+ Object.assign(this, kwargs);
12700
+ }
12701
+ toApiJson() {
12702
+ const toReturn = {};
12703
+ if (typeof this.commentId !== 'undefined') {
12704
+ toReturn['commentId'] = this.commentId;
12705
+ }
12706
+ if (typeof this.parentId !== 'undefined') {
12707
+ toReturn['parentId'] = this.parentId;
12708
+ }
12709
+ if (typeof this.postId !== 'undefined') {
12710
+ toReturn['postId'] = this.postId;
12711
+ }
12712
+ if (typeof this.text !== 'undefined') {
12713
+ toReturn['text'] = this.text;
12714
+ }
12715
+ if (typeof this.username !== 'undefined') {
12716
+ toReturn['username'] = this.username;
12717
+ }
12718
+ if (typeof this.postedOn !== 'undefined' && this.postedOn !== null) {
12719
+ toReturn['postedOn'] = 'toApiJson' in this.postedOn ? this.postedOn.toApiJson() : this.postedOn;
12720
+ }
12721
+ if (typeof this.likeCount !== 'undefined') {
12722
+ toReturn['likeCount'] = this.likeCount;
12723
+ }
12724
+ if (typeof this.hasReplies !== 'undefined') {
12725
+ toReturn['hasReplies'] = this.hasReplies;
12726
+ }
12727
+ return toReturn;
12728
+ }
12729
+ }
12730
+
12731
+ function enumStringToValue(enumRef, value) {
12732
+ if (typeof value === 'number') {
12733
+ return value;
12734
+ }
12735
+ return enumRef[value];
12736
+ }
12737
+ class ListCommentsRequest {
12738
+ static fromProto(proto) {
12739
+ let m = new ListCommentsRequest();
12740
+ m = Object.assign(m, proto);
12741
+ if (proto.platform) {
12742
+ m.platform = enumStringToValue(Network, proto.platform);
12743
+ }
12744
+ if (proto.pageSize) {
12745
+ m.pageSize = parseInt(proto.pageSize, 10);
12746
+ }
12747
+ return m;
12748
+ }
12749
+ constructor(kwargs) {
12750
+ if (!kwargs) {
12751
+ return;
12752
+ }
12753
+ Object.assign(this, kwargs);
12754
+ }
12755
+ toApiJson() {
12756
+ const toReturn = {};
12757
+ if (typeof this.platform !== 'undefined') {
12758
+ toReturn['platform'] = this.platform;
12759
+ }
12760
+ if (typeof this.accountGroupId !== 'undefined') {
12761
+ toReturn['accountGroupId'] = this.accountGroupId;
12762
+ }
12763
+ if (typeof this.postId !== 'undefined') {
12764
+ toReturn['postId'] = this.postId;
12765
+ }
12766
+ if (typeof this.parentCommentId !== 'undefined') {
12767
+ toReturn['parentCommentId'] = this.parentCommentId;
12768
+ }
12769
+ if (typeof this.cursor !== 'undefined') {
12770
+ toReturn['cursor'] = this.cursor;
12771
+ }
12772
+ if (typeof this.pageSize !== 'undefined') {
12773
+ toReturn['pageSize'] = this.pageSize;
12774
+ }
12775
+ return toReturn;
12776
+ }
12777
+ }
12778
+ class ListCommentsResponse {
12779
+ static fromProto(proto) {
12780
+ let m = new ListCommentsResponse();
12781
+ m = Object.assign(m, proto);
12782
+ if (proto.comments) {
12783
+ m.comments = proto.comments.map(SocialComment.fromProto);
12784
+ }
12785
+ return m;
12786
+ }
12787
+ constructor(kwargs) {
12788
+ if (!kwargs) {
12789
+ return;
12790
+ }
12791
+ Object.assign(this, kwargs);
12792
+ }
12793
+ toApiJson() {
12794
+ const toReturn = {};
12795
+ if (typeof this.comments !== 'undefined' && this.comments !== null) {
12796
+ toReturn['comments'] = 'toApiJson' in this.comments ? this.comments.toApiJson() : this.comments;
12797
+ }
12798
+ if (typeof this.nextCursor !== 'undefined') {
12799
+ toReturn['nextCursor'] = this.nextCursor;
12800
+ }
12801
+ if (typeof this.hasMore !== 'undefined') {
12802
+ toReturn['hasMore'] = this.hasMore;
12803
+ }
12804
+ return toReturn;
12805
+ }
12806
+ }
12807
+ class PostReplyRequest {
12808
+ static fromProto(proto) {
12809
+ let m = new PostReplyRequest();
12810
+ m = Object.assign(m, proto);
12811
+ if (proto.platform) {
12812
+ m.platform = enumStringToValue(Network, proto.platform);
12813
+ }
12814
+ return m;
12815
+ }
12816
+ constructor(kwargs) {
12817
+ if (!kwargs) {
12818
+ return;
12819
+ }
12820
+ Object.assign(this, kwargs);
12821
+ }
12822
+ toApiJson() {
12823
+ const toReturn = {};
12824
+ if (typeof this.platform !== 'undefined') {
12825
+ toReturn['platform'] = this.platform;
12826
+ }
12827
+ if (typeof this.accountGroupId !== 'undefined') {
12828
+ toReturn['accountGroupId'] = this.accountGroupId;
12829
+ }
12830
+ if (typeof this.postId !== 'undefined') {
12831
+ toReturn['postId'] = this.postId;
12832
+ }
12833
+ if (typeof this.parentCommentId !== 'undefined') {
12834
+ toReturn['parentCommentId'] = this.parentCommentId;
12835
+ }
12836
+ if (typeof this.text !== 'undefined') {
12837
+ toReturn['text'] = this.text;
12838
+ }
12839
+ return toReturn;
12840
+ }
12841
+ }
12842
+ class PostReplyResponse {
12843
+ static fromProto(proto) {
12844
+ let m = new PostReplyResponse();
12845
+ m = Object.assign(m, proto);
12846
+ return m;
12847
+ }
12848
+ constructor(kwargs) {
12849
+ if (!kwargs) {
12850
+ return;
12851
+ }
12852
+ Object.assign(this, kwargs);
12853
+ }
12854
+ toApiJson() {
12855
+ const toReturn = {};
12856
+ if (typeof this.commentId !== 'undefined') {
12857
+ toReturn['commentId'] = this.commentId;
12858
+ }
12859
+ return toReturn;
12860
+ }
12861
+ }
12862
+
11806
12863
  // *********************************
11807
12864
  // Code generated by sdkgen
11808
12865
  // DO NOT EDIT!.
@@ -12901,6 +13958,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
12901
13958
  args: [{ providedIn: 'root' }]
12902
13959
  }] });
12903
13960
 
13961
+ // *********************************
13962
+ // Code generated by sdkgen
13963
+ // DO NOT EDIT!.
13964
+ //
13965
+ // API Service.
13966
+ // *********************************
13967
+ class SocialCommentsApiService {
13968
+ constructor() {
13969
+ this.hostService = inject(HostService);
13970
+ this.http = inject(HttpClient);
13971
+ this._host = this.hostService.hostWithScheme;
13972
+ }
13973
+ apiOptions() {
13974
+ return {
13975
+ headers: new HttpHeaders({
13976
+ 'Content-Type': 'application/json'
13977
+ }),
13978
+ withCredentials: true
13979
+ };
13980
+ }
13981
+ listComments(r) {
13982
+ const request = (r.toApiJson) ? r : new ListCommentsRequest(r);
13983
+ return this.http.post(this._host + "/socialposts.v2.SocialComments/ListComments", request.toApiJson(), this.apiOptions())
13984
+ .pipe(map(resp => ListCommentsResponse.fromProto(resp)));
13985
+ }
13986
+ postReply(r) {
13987
+ const request = (r.toApiJson) ? r : new PostReplyRequest(r);
13988
+ return this.http.post(this._host + "/socialposts.v2.SocialComments/PostReply", request.toApiJson(), this.apiOptions())
13989
+ .pipe(map(resp => PostReplyResponse.fromProto(resp)));
13990
+ }
13991
+ }
13992
+ SocialCommentsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialCommentsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13993
+ SocialCommentsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialCommentsApiService, providedIn: 'root' });
13994
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialCommentsApiService, decorators: [{
13995
+ type: Injectable,
13996
+ args: [{ providedIn: 'root' }]
13997
+ }] });
13998
+
12904
13999
  // *********************************
12905
14000
  // Code generated by sdkgen
12906
14001
  // DO NOT EDIT!.
@@ -12926,6 +14021,21 @@ class SocialContentApiService {
12926
14021
  return this.http.post(this._host + "/socialposts.v1.SocialContent/Create", request.toApiJson(), this.apiOptions())
12927
14022
  .pipe(map(resp => CreateContentResponse.fromProto(resp)));
12928
14023
  }
14024
+ listPosts(r) {
14025
+ const request = (r.toApiJson) ? r : new ListContentRequest(r);
14026
+ return this.http.post(this._host + "/socialposts.v1.SocialContent/ListPosts", request.toApiJson(), this.apiOptions())
14027
+ .pipe(map(resp => ListContentResponse.fromProto(resp)));
14028
+ }
14029
+ update(r) {
14030
+ const request = (r.toApiJson) ? r : new UpdateContentRequest(r);
14031
+ return this.http.post(this._host + "/socialposts.v1.SocialContent/Update", request.toApiJson(), this.apiOptions())
14032
+ .pipe(map(resp => UpdateContentResponse.fromProto(resp)));
14033
+ }
14034
+ delete(r) {
14035
+ const request = (r.toApiJson) ? r : new DeleteContentRequest(r);
14036
+ return this.http.post(this._host + "/socialposts.v1.SocialContent/Delete", request.toApiJson(), this.apiOptions())
14037
+ .pipe(map(resp => DeleteContentResponse.fromProto(resp)));
14038
+ }
12929
14039
  }
12930
14040
  SocialContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
12931
14041
  SocialContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialContentApiService, providedIn: 'root' });
@@ -13031,6 +14141,11 @@ class SocialPostsV2ApiService {
13031
14141
  return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/GetXSubscriptionType", request.toApiJson(), this.apiOptions())
13032
14142
  .pipe(map(resp => GetXSubscriptionTypeResponse.fromProto(resp)));
13033
14143
  }
14144
+ listSocialConnectionsByBusinesses(r) {
14145
+ const request = (r.toApiJson) ? r : new ListSocialConnectionsByBusinessesRequest(r);
14146
+ return this.http.post(this._host + "/socialposts.v2.SocialPostsV2/ListSocialConnectionsByBusinesses", request.toApiJson(), this.apiOptions())
14147
+ .pipe(map(resp => ListSocialConnectionsByBusinessesResponse.fromProto(resp)));
14148
+ }
13034
14149
  }
13035
14150
  SocialPostsV2ApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
13036
14151
  SocialPostsV2ApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2ApiService, providedIn: 'root' });
@@ -13569,6 +14684,10 @@ class SocialPostsV2Service {
13569
14684
  getXSubscriptionType(req) {
13570
14685
  return this.socialpostV2ApiService.getXSubscriptionType(req);
13571
14686
  }
14687
+ listSocialConnectionsByBusinesses(accountGroupIds) {
14688
+ const req = new ListSocialConnectionsByBusinessesRequest({ accountGroupIds });
14689
+ return this.socialpostV2ApiService.listSocialConnectionsByBusinesses(req);
14690
+ }
13572
14691
  }
13573
14692
  SocialPostsV2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, deps: [{ token: SocialPostsV2ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
13574
14693
  SocialPostsV2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SocialPostsV2Service, providedIn: 'root' });
@@ -13804,5 +14923,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
13804
14923
  * Generated bundle index. Do not edit.
13805
14924
  */
13806
14925
 
13807
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogAuthor, BlogCategory, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostOptions, BlogPostsService, BlogVideo, BlogWebsiteDetails, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, CallToActionType, Campaign, CampaignCustomization, CampaignService, Categories, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, Contact, ContentGenerationService, ContentLength, ContentMetadata, ContentType, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateContentRequest, CreateContentResponse, CreateDraftRequest, CreateDraftResponse, CreateImageRequest, CreateImageResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreateOrEditRequest, CreateOrEditResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteDraftRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftType, DraftYoutubeCustomization, DraftYoutubeCustomizationPrivacyStatus, DraftsService, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, EnumSchema, EnumSchemaExtensionsEntry, Error, Event, ExternalDocumentation, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, FilterBy, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GeneratedImage, GetBlogConnectionRequest, GetBlogConnectionResponse, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetDraftRequest, GetDraftResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, GetXSubscriptionTypeRequest, GetXSubscriptionTypeResponse, HashTagsService, Hashtag, Header, HeaderParameter, HeaderParameterType, Image, ImageBackground, ImageBlob, ImageCreated, ImageInputSource, ImageModel, ImageOutputFormat, ImageQuality, ImageResponse, ImageSource, ImageStyle, ImageUrl, Info, InfoExtensionsEntry, InstagramPostStats, JSONSchema, JSONSchemaExtensionsEntry, JSONSchemaFieldConfiguration, JSONSchemaJSONSchemaSimpleTypes, KeywordGeneration, KeywordList, License, Link, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaContentType, MediaEntry, MediaItem, MediaProperty, MediaType$1 as MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MlDraftPost, MultiDeleteMLDraftPostsRequest, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Namespace, NamespaceType, Network, Response$1 as OpenApiResponse, Operation, OperationExtensionsEntry, OperationResponsesEntry, Parameters, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, ProvisionAction, ProvisionRequest, PublishMode, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, ResponseExamplesEntry, ResponseExtensionsEntry, ResponseHeadersEntry, Role, SSIDDraftType, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, Schema, Scheme, Scopes, ScopesScopeEntry, SearchHashtagRequest, SearchHashtagResponse, SecurityDefinitions, SecurityDefinitionsSecurityEntry, SecurityRequirement, SecurityRequirementSecurityRequirementEntry, SecurityRequirementSecurityRequirementValue, SecurityScheme, SecuritySchemeExtensionsEntry, SecuritySchemeFlow, SecuritySchemeIn, SecuritySchemeType, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialContentItem, MediaType as SocialContentMediaType, SocialContentResult, SocialContentType, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, SortBy, SortBySortDirection, Source, SsidPostType, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, StockImageError, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Swagger, SwaggerExtensionsEntry, SwaggerResponsesEntry, Tag, TagExtensionsEntry, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, VisibilityType, WordpressPluginService, Author as WpAuthor, Category as WpCategory, XSubscriptionType, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats, HeaderParameterType as gatewayprotoc_gen_openapiv2optionsHeaderParameterType, JSONSchemaJSONSchemaSimpleTypes as gatewayprotoc_gen_openapiv2optionsJSONSchemaJSONSchemaSimpleTypes, Scheme as gatewayprotoc_gen_openapiv2optionsScheme, SecuritySchemeFlow as gatewayprotoc_gen_openapiv2optionsSecuritySchemeFlow, SecuritySchemeIn as gatewayprotoc_gen_openapiv2optionsSecuritySchemeIn, SecuritySchemeType as gatewayprotoc_gen_openapiv2optionsSecuritySchemeType };
14926
+ export { Access, AccountGroupInfo, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogAuthor, BlogCategory, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostOptions, BlogPostsService, BlogVideo, BlogWebsiteDetails, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, BusinessConnectedSocialAccounts, CallToAction, CallToActionCallToActionType, CallToActionType, Campaign, CampaignCustomization, CampaignService, Categories, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ConnectedFacebookPage, ConnectedGmbLocation, ConnectedInstagramAccount, ConnectedLinkedinAccount, ConnectedLinkedinAccounts, Contact, ContentGenerationService, ContentItem, ContentLength, ContentMetadata, ContentState, ContentStatus, ContentType, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateContentRequest, CreateContentResponse, CreateDraftRequest, CreateDraftResponse, CreateImageRequest, CreateImageResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreateOrEditRequest, CreateOrEditResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateFilter, DateRange, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteContentRequest, DeleteContentResponse, DeleteDraftRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteResult, DeleteSocialPostRequest, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftType, DraftYoutubeCustomization, DraftYoutubeCustomizationPrivacyStatus, DraftsService, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, EngagementParameter, EnumSchema, EnumSchemaExtensionsEntry, Error, Event, ExternalDocumentation, FacebookPageInfo, FacebookPostStats, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, FetchFacebookMentionInfoResponsePageInfoEntry, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldFilter, FieldMask, FilterBy, GMBCustomization, GMBPostCustomization, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GeneratedImage, GetBlogConnectionRequest, GetBlogConnectionResponse, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetDraftRequest, GetDraftResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, GetXSubscriptionTypeRequest, GetXSubscriptionTypeResponse, HashTagsService, Hashtag, Header, HeaderParameter, HeaderParameterType, Image, ImageBackground, ImageBlob, ImageCreated, ImageInputSource, ImageModel, ImageOutputFormat, ImageQuality, ImageResponse, ImageSource, ImageStyle, ImageUrl, Info, InfoExtensionsEntry, InstagramPostStats, JSONSchema, JSONSchemaExtensionsEntry, JSONSchemaFieldConfiguration, JSONSchemaJSONSchemaSimpleTypes, KeywordGeneration, KeywordList, License, Link, LinkV2, LinkedInPostStats, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCommentsRequest, ListCommentsResponse, ListContentRequest, ListContentResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialConnectionsByBusinessesRequest, ListSocialConnectionsByBusinessesResponse, ListSocialConnectionsByBusinessesResponseAccountsByBusinessEntry, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListStockImagesRequest, ListStockImagesResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaContentType, MediaEntry, MediaItem, MediaProperty, MediaType$1 as MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MlDraftPost, MultiDeleteMLDraftPostsRequest, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Namespace, NamespaceType, Network, Response$1 as OpenApiResponse, Operation, OperationExtensionsEntry, OperationResponsesEntry, Parameters, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post$1 as Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationByLocation, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostReplyRequest, PostReplyResponse, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, ProvisionAction, ProvisionRequest, PublishMode, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, ResponseExamplesEntry, ResponseExtensionsEntry, ResponseHeadersEntry, Role, SSIDDraftType, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, Schema, Scheme, Scopes, ScopesScopeEntry, SearchHashtagRequest, SearchHashtagResponse, SecurityDefinitions, SecurityDefinitionsSecurityEntry, SecurityRequirement, SecurityRequirementSecurityRequirementEntry, SecurityRequirementSecurityRequirementValue, SecurityScheme, SecuritySchemeExtensionsEntry, SecuritySchemeFlow, SecuritySchemeIn, SecuritySchemeType, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialComment, SocialContentFilter, SocialContentItem, MediaType as SocialContentMediaType, Post as SocialContentPost, SocialContentResult, SocialContentType, SocialEngagement, SocialMentionsService, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostEngagement, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Sort, SortBy, SortBySortDirection, SortDirection, Source, SsidPostType, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, StockImage, StockImageError, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Swagger, SwaggerExtensionsEntry, SwaggerResponsesEntry, Tag, TagExtensionsEntry, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TikTokPostStats, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateContentItem, UpdateContentRequest, UpdateContentResponse, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdatePostTemplateRequest, UpdateResult, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, VisibilityType, WordpressPluginService, Author as WpAuthor, Category as WpCategory, XSubscriptionType, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2, YoutubePostStats, HeaderParameterType as gatewayprotoc_gen_openapiv2optionsHeaderParameterType, JSONSchemaJSONSchemaSimpleTypes as gatewayprotoc_gen_openapiv2optionsJSONSchemaJSONSchemaSimpleTypes, Scheme as gatewayprotoc_gen_openapiv2optionsScheme, SecuritySchemeFlow as gatewayprotoc_gen_openapiv2optionsSecuritySchemeFlow, SecuritySchemeIn as gatewayprotoc_gen_openapiv2optionsSecuritySchemeIn, SecuritySchemeType as gatewayprotoc_gen_openapiv2optionsSecuritySchemeType };
13808
14927
  //# sourceMappingURL=vendasta-social-posts.mjs.map