@vendasta/social-posts 5.35.0 → 5.37.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.
@@ -97,7 +97,7 @@ var MessageLength;
97
97
  MessageLength[MessageLength["SHORT_FORM"] = 0] = "SHORT_FORM";
98
98
  MessageLength[MessageLength["LONG_FORM"] = 1] = "LONG_FORM";
99
99
  })(MessageLength || (MessageLength = {}));
100
- var PostType;
100
+ var PostType$1;
101
101
  (function (PostType) {
102
102
  PostType[PostType["POST_TYPE_INVALID"] = 0] = "POST_TYPE_INVALID";
103
103
  PostType[PostType["POST_TYPE_IMAGE"] = 1] = "POST_TYPE_IMAGE";
@@ -107,7 +107,7 @@ var PostType;
107
107
  PostType[PostType["POST_TYPE_CAROUSEL"] = 5] = "POST_TYPE_CAROUSEL";
108
108
  PostType[PostType["POST_TYPE_STORIES"] = 6] = "POST_TYPE_STORIES";
109
109
  PostType[PostType["POST_TYPE_TEXT"] = 7] = "POST_TYPE_TEXT";
110
- })(PostType || (PostType = {}));
110
+ })(PostType$1 || (PostType$1 = {}));
111
111
  var PostingStatus;
112
112
  (function (PostingStatus) {
113
113
  PostingStatus[PostingStatus["POSTING_IN_PROGRESS"] = 0] = "POSTING_IN_PROGRESS";
@@ -210,6 +210,7 @@ var ContentLength;
210
210
  ContentLength[ContentLength["SHORT_FORM"] = 0] = "SHORT_FORM";
211
211
  ContentLength[ContentLength["MEDIUM_FORM"] = 1] = "MEDIUM_FORM";
212
212
  ContentLength[ContentLength["LONG_FORM"] = 2] = "LONG_FORM";
213
+ ContentLength[ContentLength["OPTIMIZED_FORM"] = 3] = "OPTIMIZED_FORM";
213
214
  })(ContentLength || (ContentLength = {}));
214
215
  var GenerateType;
215
216
  (function (GenerateType) {
@@ -217,6 +218,37 @@ var GenerateType;
217
218
  GenerateType[GenerateType["OUTLINE"] = 1] = "OUTLINE";
218
219
  GenerateType[GenerateType["BLOG"] = 2] = "BLOG";
219
220
  })(GenerateType || (GenerateType = {}));
221
+ var Network;
222
+ (function (Network) {
223
+ Network[Network["FACEBOOK"] = 0] = "FACEBOOK";
224
+ Network[Network["INSTAGRAM"] = 1] = "INSTAGRAM";
225
+ Network[Network["LINKEDIN"] = 2] = "LINKEDIN";
226
+ Network[Network["TWITTER"] = 3] = "TWITTER";
227
+ Network[Network["GMB"] = 4] = "GMB";
228
+ Network[Network["TIKOTOK"] = 5] = "TIKOTOK";
229
+ Network[Network["YOUTUBE"] = 6] = "YOUTUBE";
230
+ Network[Network["CUSTOM_FEED"] = 7] = "CUSTOM_FEED";
231
+ Network[Network["WORDPRESS"] = 8] = "WORDPRESS";
232
+ })(Network || (Network = {}));
233
+ var PostType;
234
+ (function (PostType) {
235
+ PostType[PostType["DRAFT"] = 0] = "DRAFT";
236
+ PostType[PostType["SCHEDULED"] = 1] = "SCHEDULED";
237
+ PostType[PostType["PUBLISHED"] = 2] = "PUBLISHED";
238
+ })(PostType || (PostType = {}));
239
+ var Tone;
240
+ (function (Tone) {
241
+ Tone[Tone["DEFAULT"] = 0] = "DEFAULT";
242
+ Tone[Tone["FRIENDLY"] = 1] = "FRIENDLY";
243
+ Tone[Tone["LUXURIOUS"] = 2] = "LUXURIOUS";
244
+ Tone[Tone["PROFESSIONAL"] = 3] = "PROFESSIONAL";
245
+ Tone[Tone["RELAXED"] = 4] = "RELAXED";
246
+ Tone[Tone["BOLD"] = 5] = "BOLD";
247
+ Tone[Tone["ADVENTUROUS"] = 6] = "ADVENTUROUS";
248
+ Tone[Tone["WITTY"] = 7] = "WITTY";
249
+ Tone[Tone["PERSUASIVE"] = 8] = "PERSUASIVE";
250
+ Tone[Tone["EMPATHETIC"] = 9] = "EMPATHETIC";
251
+ })(Tone || (Tone = {}));
220
252
 
221
253
  // *********************************
222
254
  // Code generated by sdkgen
@@ -505,7 +537,7 @@ class PostTemplate {
505
537
  m.metaData = proto.metaData.map(MetaData.fromProto);
506
538
  }
507
539
  if (proto.postType) {
508
- m.postType = enumStringToValue$f(PostType, proto.postType);
540
+ m.postType = enumStringToValue$f(PostType$1, proto.postType);
509
541
  }
510
542
  if (proto.youtubeCustomization) {
511
543
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -588,7 +620,7 @@ class SSIDPostType {
588
620
  let m = new SSIDPostType();
589
621
  m = Object.assign(m, proto);
590
622
  if (proto.postType) {
591
- m.postType = enumStringToValue$f(PostType, proto.postType);
623
+ m.postType = enumStringToValue$f(PostType$1, proto.postType);
592
624
  }
593
625
  return m;
594
626
  }
@@ -673,7 +705,7 @@ class SocialPost {
673
705
  m.error = Error.fromProto(proto.error);
674
706
  }
675
707
  if (proto.postType) {
676
- m.postType = enumStringToValue$f(PostType, proto.postType);
708
+ m.postType = enumStringToValue$f(PostType$1, proto.postType);
677
709
  }
678
710
  if (proto.mediaEntries) {
679
711
  m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
@@ -1610,7 +1642,7 @@ class CreatePostTemplateRequest {
1610
1642
  m.metaData = proto.metaData.map(MetaData.fromProto);
1611
1643
  }
1612
1644
  if (proto.postType) {
1613
- m.postType = enumStringToValue$a(PostType, proto.postType);
1645
+ m.postType = enumStringToValue$a(PostType$1, proto.postType);
1614
1646
  }
1615
1647
  if (proto.youtubeCustomization) {
1616
1648
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -3136,7 +3168,7 @@ class UpdatePostTemplateRequest {
3136
3168
  m.metaData = proto.metaData.map(MetaData.fromProto);
3137
3169
  }
3138
3170
  if (proto.postType) {
3139
- m.postType = enumStringToValue$a(PostType, proto.postType);
3171
+ m.postType = enumStringToValue$a(PostType$1, proto.postType);
3140
3172
  }
3141
3173
  if (proto.youtubeCustomization) {
3142
3174
  m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
@@ -4199,6 +4231,32 @@ class AiInstructions {
4199
4231
  return toReturn;
4200
4232
  }
4201
4233
  }
4234
+ class BlogPostCampaign {
4235
+ static fromProto(proto) {
4236
+ let m = new BlogPostCampaign();
4237
+ m = Object.assign(m, proto);
4238
+ if (proto.blogPostType) {
4239
+ m.blogPostType = enumStringToValue$5(PostType$1, proto.blogPostType);
4240
+ }
4241
+ return m;
4242
+ }
4243
+ constructor(kwargs) {
4244
+ if (!kwargs) {
4245
+ return;
4246
+ }
4247
+ Object.assign(this, kwargs);
4248
+ }
4249
+ toApiJson() {
4250
+ const toReturn = {};
4251
+ if (typeof this.blogPostId !== 'undefined') {
4252
+ toReturn['blogPostId'] = this.blogPostId;
4253
+ }
4254
+ if (typeof this.blogPostType !== 'undefined') {
4255
+ toReturn['blogPostType'] = this.blogPostType;
4256
+ }
4257
+ return toReturn;
4258
+ }
4259
+ }
4202
4260
  class CreateCommonAiInstructionsRequest {
4203
4261
  static fromProto(proto) {
4204
4262
  let m = new CreateCommonAiInstructionsRequest();
@@ -4467,6 +4525,61 @@ class GenerateAiResponse {
4467
4525
  return toReturn;
4468
4526
  }
4469
4527
  }
4528
+ class GenerateBlogPostCampaignRequest {
4529
+ static fromProto(proto) {
4530
+ let m = new GenerateBlogPostCampaignRequest();
4531
+ m = Object.assign(m, proto);
4532
+ if (proto.networkType) {
4533
+ m.networkType = proto.networkType.map((v) => enumStringToValue$5(Network, v));
4534
+ }
4535
+ if (proto.blogCampaign) {
4536
+ m.blogCampaign = BlogPostCampaign.fromProto(proto.blogCampaign);
4537
+ }
4538
+ return m;
4539
+ }
4540
+ constructor(kwargs) {
4541
+ if (!kwargs) {
4542
+ return;
4543
+ }
4544
+ Object.assign(this, kwargs);
4545
+ }
4546
+ toApiJson() {
4547
+ const toReturn = {};
4548
+ if (typeof this.businessId !== 'undefined') {
4549
+ toReturn['businessId'] = this.businessId;
4550
+ }
4551
+ if (typeof this.networkType !== 'undefined') {
4552
+ toReturn['networkType'] = this.networkType;
4553
+ }
4554
+ if (typeof this.blogCampaign !== 'undefined' && this.blogCampaign !== null) {
4555
+ toReturn['blogCampaign'] = 'toApiJson' in this.blogCampaign ? this.blogCampaign.toApiJson() : this.blogCampaign;
4556
+ }
4557
+ return toReturn;
4558
+ }
4559
+ }
4560
+ class GenerateBlogPostCampaignResponse {
4561
+ static fromProto(proto) {
4562
+ let m = new GenerateBlogPostCampaignResponse();
4563
+ m = Object.assign(m, proto);
4564
+ if (proto.posts) {
4565
+ m.posts = proto.posts.map(Posts.fromProto);
4566
+ }
4567
+ return m;
4568
+ }
4569
+ constructor(kwargs) {
4570
+ if (!kwargs) {
4571
+ return;
4572
+ }
4573
+ Object.assign(this, kwargs);
4574
+ }
4575
+ toApiJson() {
4576
+ const toReturn = {};
4577
+ if (typeof this.posts !== 'undefined' && this.posts !== null) {
4578
+ toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
4579
+ }
4580
+ return toReturn;
4581
+ }
4582
+ }
4470
4583
  class GenerateContentMetaDataRequest {
4471
4584
  static fromProto(proto) {
4472
4585
  let m = new GenerateContentMetaDataRequest();
@@ -4525,6 +4638,61 @@ class GenerateContentMetaDataResponse {
4525
4638
  return toReturn;
4526
4639
  }
4527
4640
  }
4641
+ class GeneratePostCampaignRequest {
4642
+ static fromProto(proto) {
4643
+ let m = new GeneratePostCampaignRequest();
4644
+ m = Object.assign(m, proto);
4645
+ if (proto.networkType) {
4646
+ m.networkType = proto.networkType.map((v) => enumStringToValue$5(Network, v));
4647
+ }
4648
+ if (proto.postGeneration) {
4649
+ m.postGeneration = PostsGeneration.fromProto(proto.postGeneration);
4650
+ }
4651
+ return m;
4652
+ }
4653
+ constructor(kwargs) {
4654
+ if (!kwargs) {
4655
+ return;
4656
+ }
4657
+ Object.assign(this, kwargs);
4658
+ }
4659
+ toApiJson() {
4660
+ const toReturn = {};
4661
+ if (typeof this.businessId !== 'undefined') {
4662
+ toReturn['businessId'] = this.businessId;
4663
+ }
4664
+ if (typeof this.networkType !== 'undefined') {
4665
+ toReturn['networkType'] = this.networkType;
4666
+ }
4667
+ if (typeof this.postGeneration !== 'undefined' && this.postGeneration !== null) {
4668
+ toReturn['postGeneration'] = 'toApiJson' in this.postGeneration ? this.postGeneration.toApiJson() : this.postGeneration;
4669
+ }
4670
+ return toReturn;
4671
+ }
4672
+ }
4673
+ class GeneratePostCampaignResponse {
4674
+ static fromProto(proto) {
4675
+ let m = new GeneratePostCampaignResponse();
4676
+ m = Object.assign(m, proto);
4677
+ if (proto.postList) {
4678
+ m.postList = PostList.fromProto(proto.postList);
4679
+ }
4680
+ return m;
4681
+ }
4682
+ constructor(kwargs) {
4683
+ if (!kwargs) {
4684
+ return;
4685
+ }
4686
+ Object.assign(this, kwargs);
4687
+ }
4688
+ toApiJson() {
4689
+ const toReturn = {};
4690
+ if (typeof this.postList !== 'undefined' && this.postList !== null) {
4691
+ toReturn['postList'] = 'toApiJson' in this.postList ? this.postList.toApiJson() : this.postList;
4692
+ }
4693
+ return toReturn;
4694
+ }
4695
+ }
4528
4696
  class GeneratePostsRequest {
4529
4697
  static fromProto(proto) {
4530
4698
  let m = new GeneratePostsRequest();
@@ -4988,6 +5156,119 @@ class GeneratePostsResponsePost {
4988
5156
  return toReturn;
4989
5157
  }
4990
5158
  }
5159
+ class PostContent {
5160
+ static fromProto(proto) {
5161
+ let m = new PostContent();
5162
+ m = Object.assign(m, proto);
5163
+ if (proto.singlePost) {
5164
+ m.singlePost = proto.singlePost.map(SinglePost.fromProto);
5165
+ }
5166
+ return m;
5167
+ }
5168
+ constructor(kwargs) {
5169
+ if (!kwargs) {
5170
+ return;
5171
+ }
5172
+ Object.assign(this, kwargs);
5173
+ }
5174
+ toApiJson() {
5175
+ const toReturn = {};
5176
+ if (typeof this.singlePost !== 'undefined' && this.singlePost !== null) {
5177
+ toReturn['singlePost'] = 'toApiJson' in this.singlePost ? this.singlePost.toApiJson() : this.singlePost;
5178
+ }
5179
+ return toReturn;
5180
+ }
5181
+ }
5182
+ class PostList {
5183
+ static fromProto(proto) {
5184
+ let m = new PostList();
5185
+ m = Object.assign(m, proto);
5186
+ if (proto.posts) {
5187
+ m.posts = proto.posts.map(Posts.fromProto);
5188
+ }
5189
+ return m;
5190
+ }
5191
+ constructor(kwargs) {
5192
+ if (!kwargs) {
5193
+ return;
5194
+ }
5195
+ Object.assign(this, kwargs);
5196
+ }
5197
+ toApiJson() {
5198
+ const toReturn = {};
5199
+ if (typeof this.topic !== 'undefined') {
5200
+ toReturn['topic'] = this.topic;
5201
+ }
5202
+ if (typeof this.posts !== 'undefined' && this.posts !== null) {
5203
+ toReturn['posts'] = 'toApiJson' in this.posts ? this.posts.toApiJson() : this.posts;
5204
+ }
5205
+ return toReturn;
5206
+ }
5207
+ }
5208
+ class Posts {
5209
+ static fromProto(proto) {
5210
+ let m = new Posts();
5211
+ m = Object.assign(m, proto);
5212
+ if (proto.postContent) {
5213
+ m.postContent = proto.postContent.map(PostContent.fromProto);
5214
+ }
5215
+ return m;
5216
+ }
5217
+ constructor(kwargs) {
5218
+ if (!kwargs) {
5219
+ return;
5220
+ }
5221
+ Object.assign(this, kwargs);
5222
+ }
5223
+ toApiJson() {
5224
+ const toReturn = {};
5225
+ if (typeof this.postContent !== 'undefined' && this.postContent !== null) {
5226
+ toReturn['postContent'] = 'toApiJson' in this.postContent ? this.postContent.toApiJson() : this.postContent;
5227
+ }
5228
+ return toReturn;
5229
+ }
5230
+ }
5231
+ class PostsGeneration {
5232
+ static fromProto(proto) {
5233
+ let m = new PostsGeneration();
5234
+ m = Object.assign(m, proto);
5235
+ if (proto.tone) {
5236
+ m.tone = enumStringToValue$5(Tone, proto.tone);
5237
+ }
5238
+ if (proto.contentLength) {
5239
+ m.contentLength = enumStringToValue$5(ContentLength, proto.contentLength);
5240
+ }
5241
+ return m;
5242
+ }
5243
+ constructor(kwargs) {
5244
+ if (!kwargs) {
5245
+ return;
5246
+ }
5247
+ Object.assign(this, kwargs);
5248
+ }
5249
+ toApiJson() {
5250
+ const toReturn = {};
5251
+ if (typeof this.topic !== 'undefined') {
5252
+ toReturn['topic'] = this.topic;
5253
+ }
5254
+ if (typeof this.goal !== 'undefined') {
5255
+ toReturn['goal'] = this.goal;
5256
+ }
5257
+ if (typeof this.tone !== 'undefined') {
5258
+ toReturn['tone'] = this.tone;
5259
+ }
5260
+ if (typeof this.contentLength !== 'undefined') {
5261
+ toReturn['contentLength'] = this.contentLength;
5262
+ }
5263
+ if (typeof this.noOfPosts !== 'undefined') {
5264
+ toReturn['noOfPosts'] = this.noOfPosts;
5265
+ }
5266
+ if (typeof this.useCommonInstr !== 'undefined') {
5267
+ toReturn['useCommonInstr'] = this.useCommonInstr;
5268
+ }
5269
+ return toReturn;
5270
+ }
5271
+ }
4991
5272
  class RepostSocialPostRequest {
4992
5273
  static fromProto(proto) {
4993
5274
  let m = new RepostSocialPostRequest();
@@ -5031,6 +5312,32 @@ class Response {
5031
5312
  return toReturn;
5032
5313
  }
5033
5314
  }
5315
+ class SinglePost {
5316
+ static fromProto(proto) {
5317
+ let m = new SinglePost();
5318
+ m = Object.assign(m, proto);
5319
+ if (proto.socialNetwork) {
5320
+ m.socialNetwork = enumStringToValue$5(Network, proto.socialNetwork);
5321
+ }
5322
+ return m;
5323
+ }
5324
+ constructor(kwargs) {
5325
+ if (!kwargs) {
5326
+ return;
5327
+ }
5328
+ Object.assign(this, kwargs);
5329
+ }
5330
+ toApiJson() {
5331
+ const toReturn = {};
5332
+ if (typeof this.socialNetwork !== 'undefined') {
5333
+ toReturn['socialNetwork'] = this.socialNetwork;
5334
+ }
5335
+ if (typeof this.post !== 'undefined') {
5336
+ toReturn['post'] = this.post;
5337
+ }
5338
+ return toReturn;
5339
+ }
5340
+ }
5034
5341
  class SocialPostOutput {
5035
5342
  static fromProto(proto) {
5036
5343
  let m = new SocialPostOutput();
@@ -6509,6 +6816,35 @@ function enumStringToValue(enumRef, value) {
6509
6816
  }
6510
6817
  return enumRef[value];
6511
6818
  }
6819
+ class Campaign {
6820
+ static fromProto(proto) {
6821
+ let m = new Campaign();
6822
+ m = Object.assign(m, proto);
6823
+ return m;
6824
+ }
6825
+ constructor(kwargs) {
6826
+ if (!kwargs) {
6827
+ return;
6828
+ }
6829
+ Object.assign(this, kwargs);
6830
+ }
6831
+ toApiJson() {
6832
+ const toReturn = {};
6833
+ if (typeof this.campaignName !== 'undefined') {
6834
+ toReturn['campaignName'] = this.campaignName;
6835
+ }
6836
+ if (typeof this.businessId !== 'undefined') {
6837
+ toReturn['businessId'] = this.businessId;
6838
+ }
6839
+ if (typeof this.partnerId !== 'undefined') {
6840
+ toReturn['partnerId'] = this.partnerId;
6841
+ }
6842
+ if (typeof this.id !== 'undefined') {
6843
+ toReturn['id'] = this.id;
6844
+ }
6845
+ return toReturn;
6846
+ }
6847
+ }
6512
6848
  class CreateCampaignRequest {
6513
6849
  static fromProto(proto) {
6514
6850
  let m = new CreateCampaignRequest();
@@ -6555,6 +6891,81 @@ class CreateCampaignResponse {
6555
6891
  return toReturn;
6556
6892
  }
6557
6893
  }
6894
+ class GetCampaignRequest {
6895
+ static fromProto(proto) {
6896
+ let m = new GetCampaignRequest();
6897
+ m = Object.assign(m, proto);
6898
+ return m;
6899
+ }
6900
+ constructor(kwargs) {
6901
+ if (!kwargs) {
6902
+ return;
6903
+ }
6904
+ Object.assign(this, kwargs);
6905
+ }
6906
+ toApiJson() {
6907
+ const toReturn = {};
6908
+ if (typeof this.campaignId !== 'undefined') {
6909
+ toReturn['campaignId'] = this.campaignId;
6910
+ }
6911
+ if (typeof this.businessId !== 'undefined') {
6912
+ toReturn['businessId'] = this.businessId;
6913
+ }
6914
+ return toReturn;
6915
+ }
6916
+ }
6917
+ class GetCampaignResponse {
6918
+ static fromProto(proto) {
6919
+ let m = new GetCampaignResponse();
6920
+ m = Object.assign(m, proto);
6921
+ if (proto.campaign) {
6922
+ m.campaign = Campaign.fromProto(proto.campaign);
6923
+ }
6924
+ return m;
6925
+ }
6926
+ constructor(kwargs) {
6927
+ if (!kwargs) {
6928
+ return;
6929
+ }
6930
+ Object.assign(this, kwargs);
6931
+ }
6932
+ toApiJson() {
6933
+ const toReturn = {};
6934
+ if (typeof this.campaign !== 'undefined' && this.campaign !== null) {
6935
+ toReturn['campaign'] = 'toApiJson' in this.campaign ? this.campaign.toApiJson() : this.campaign;
6936
+ }
6937
+ return toReturn;
6938
+ }
6939
+ }
6940
+ class UpdateCampaignRequest {
6941
+ static fromProto(proto) {
6942
+ let m = new UpdateCampaignRequest();
6943
+ m = Object.assign(m, proto);
6944
+ return m;
6945
+ }
6946
+ constructor(kwargs) {
6947
+ if (!kwargs) {
6948
+ return;
6949
+ }
6950
+ Object.assign(this, kwargs);
6951
+ }
6952
+ toApiJson() {
6953
+ const toReturn = {};
6954
+ if (typeof this.campaignId !== 'undefined') {
6955
+ toReturn['campaignId'] = this.campaignId;
6956
+ }
6957
+ if (typeof this.name !== 'undefined') {
6958
+ toReturn['name'] = this.name;
6959
+ }
6960
+ if (typeof this.businessId !== 'undefined') {
6961
+ toReturn['businessId'] = this.businessId;
6962
+ }
6963
+ if (typeof this.partnerId !== 'undefined') {
6964
+ toReturn['partnerId'] = this.partnerId;
6965
+ }
6966
+ return toReturn;
6967
+ }
6968
+ }
6558
6969
 
6559
6970
  // *********************************
6560
6971
  // Code generated by sdkgen
@@ -6812,6 +7223,15 @@ class CampaignApiService {
6812
7223
  return this.http.post(this._host + "/socialposts.v2.CampaignService/Create", request.toApiJson(), this.apiOptions())
6813
7224
  .pipe(map(resp => CreateCampaignResponse.fromProto(resp)));
6814
7225
  }
7226
+ get(r) {
7227
+ const request = (r.toApiJson) ? r : new GetCampaignRequest(r);
7228
+ return this.http.post(this._host + "/socialposts.v2.CampaignService/Get", request.toApiJson(), this.apiOptions())
7229
+ .pipe(map(resp => GetCampaignResponse.fromProto(resp)));
7230
+ }
7231
+ update(r) {
7232
+ const request = (r.toApiJson) ? r : new UpdateCampaignRequest(r);
7233
+ return this.http.post(this._host + "/socialposts.v2.CampaignService/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
7234
+ }
6815
7235
  }
6816
7236
  CampaignApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6817
7237
  CampaignApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignApiService, providedIn: 'root' });
@@ -6973,6 +7393,16 @@ class ContentGenerationApiService {
6973
7393
  return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GenerateContentMetaData", request.toApiJson(), this.apiOptions())
6974
7394
  .pipe(map(resp => GenerateContentMetaDataResponse.fromProto(resp)));
6975
7395
  }
7396
+ generateBlogPostCampaign(r) {
7397
+ const request = (r.toApiJson) ? r : new GenerateBlogPostCampaignRequest(r);
7398
+ return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GenerateBlogPostCampaign", request.toApiJson(), this.apiOptions())
7399
+ .pipe(map(resp => GenerateBlogPostCampaignResponse.fromProto(resp)));
7400
+ }
7401
+ generatePostCampaign(r) {
7402
+ const request = (r.toApiJson) ? r : new GeneratePostCampaignRequest(r);
7403
+ return this.http.post(this._host + "/socialposts.v2.ContentGeneration/GeneratePostCampaign", request.toApiJson(), this.apiOptions())
7404
+ .pipe(map(resp => GeneratePostCampaignResponse.fromProto(resp)));
7405
+ }
6976
7406
  }
6977
7407
  ContentGenerationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6978
7408
  ContentGenerationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentGenerationApiService, providedIn: 'root' });
@@ -7518,7 +7948,7 @@ class PostTemplatesService {
7518
7948
  previews: previews,
7519
7949
  options: options,
7520
7950
  videoUrl: videoUrl,
7521
- postType: postType || PostType.POST_TYPE_INVALID,
7951
+ postType: postType || PostType$1.POST_TYPE_INVALID,
7522
7952
  mediaEntries: mediaEntries,
7523
7953
  metaData: metadata,
7524
7954
  youtubeCustomization: youtubeCustomization,
@@ -7538,7 +7968,7 @@ class PostTemplatesService {
7538
7968
  previews: previews,
7539
7969
  options: options,
7540
7970
  videoUrl: videoUrl,
7541
- postType: postType || PostType.POST_TYPE_INVALID,
7971
+ postType: postType || PostType$1.POST_TYPE_INVALID,
7542
7972
  mediaEntries: mediaEntries,
7543
7973
  metaData: metadata,
7544
7974
  youtubeCustomization: youtubeCustomization,
@@ -8011,5 +8441,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8011
8441
  * Generated bundle index. Do not edit.
8012
8442
  */
8013
8443
 
8014
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCustomization, BlogPostsService, BlogVideo, CallToAction, CallToActionCallToActionType, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
8444
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, CallToAction, CallToActionCallToActionType, Campaign, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateBlogPostCampaignResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, Photo, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContent, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostList, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType$1 as PostType, PostTypeV2, PostingStatus, Posts, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, SinglePost, Social, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
8015
8445
  //# sourceMappingURL=vendasta-social-posts.mjs.map