@vendasta/social-posts 5.32.0 → 5.32.1

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.
@@ -133,6 +133,7 @@ var SocialPostService;
133
133
  SocialPostService[SocialPostService["CURATED_CONTENT"] = 7] = "CURATED_CONTENT";
134
134
  SocialPostService[SocialPostService["YOUTUBE"] = 8] = "YOUTUBE";
135
135
  SocialPostService[SocialPostService["TIKTOK"] = 9] = "TIKTOK";
136
+ SocialPostService[SocialPostService["WORDPRESS"] = 10] = "WORDPRESS";
136
137
  })(SocialPostService || (SocialPostService = {}));
137
138
  var TemplateType;
138
139
  (function (TemplateType) {
@@ -255,6 +256,67 @@ function enumStringToValue$e(enumRef, value) {
255
256
  }
256
257
  return enumRef[value];
257
258
  }
259
+ let Author$1 = class Author {
260
+ static fromProto(proto) {
261
+ let m = new Author();
262
+ m = Object.assign(m, proto);
263
+ if (proto.id) {
264
+ m.id = parseInt(proto.id, 10);
265
+ }
266
+ return m;
267
+ }
268
+ constructor(kwargs) {
269
+ if (!kwargs) {
270
+ return;
271
+ }
272
+ Object.assign(this, kwargs);
273
+ }
274
+ toApiJson() {
275
+ const toReturn = {};
276
+ if (typeof this.name !== 'undefined') {
277
+ toReturn['name'] = this.name;
278
+ }
279
+ if (typeof this.id !== 'undefined') {
280
+ toReturn['id'] = this.id;
281
+ }
282
+ return toReturn;
283
+ }
284
+ };
285
+ class BlogPostCustomization {
286
+ static fromProto(proto) {
287
+ let m = new BlogPostCustomization();
288
+ m = Object.assign(m, proto);
289
+ if (proto.author) {
290
+ m.author = Author$1.fromProto(proto.author);
291
+ }
292
+ if (proto.categories) {
293
+ m.categories = proto.categories.map(Category$1.fromProto);
294
+ }
295
+ return m;
296
+ }
297
+ constructor(kwargs) {
298
+ if (!kwargs) {
299
+ return;
300
+ }
301
+ Object.assign(this, kwargs);
302
+ }
303
+ toApiJson() {
304
+ const toReturn = {};
305
+ if (typeof this.siteType !== 'undefined') {
306
+ toReturn['siteType'] = this.siteType;
307
+ }
308
+ if (typeof this.author !== 'undefined' && this.author !== null) {
309
+ toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
310
+ }
311
+ if (typeof this.categories !== 'undefined' && this.categories !== null) {
312
+ toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
313
+ }
314
+ if (typeof this.tags !== 'undefined') {
315
+ toReturn['tags'] = this.tags;
316
+ }
317
+ return toReturn;
318
+ }
319
+ }
258
320
  class CallToAction {
259
321
  static fromProto(proto) {
260
322
  let m = new CallToAction();
@@ -281,6 +343,32 @@ class CallToAction {
281
343
  return toReturn;
282
344
  }
283
345
  }
346
+ let Category$1 = class Category {
347
+ static fromProto(proto) {
348
+ let m = new Category();
349
+ m = Object.assign(m, proto);
350
+ if (proto.id) {
351
+ m.id = parseInt(proto.id, 10);
352
+ }
353
+ return m;
354
+ }
355
+ constructor(kwargs) {
356
+ if (!kwargs) {
357
+ return;
358
+ }
359
+ Object.assign(this, kwargs);
360
+ }
361
+ toApiJson() {
362
+ const toReturn = {};
363
+ if (typeof this.id !== 'undefined') {
364
+ toReturn['id'] = this.id;
365
+ }
366
+ if (typeof this.name !== 'undefined') {
367
+ toReturn['name'] = this.name;
368
+ }
369
+ return toReturn;
370
+ }
371
+ };
284
372
  class Error {
285
373
  static fromProto(proto) {
286
374
  let m = new Error();
@@ -368,6 +456,9 @@ class MediaEntry {
368
456
  if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
369
457
  toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
370
458
  }
459
+ if (typeof this.mediaPath !== 'undefined') {
460
+ toReturn['mediaPath'] = this.mediaPath;
461
+ }
371
462
  return toReturn;
372
463
  }
373
464
  }
@@ -596,6 +687,9 @@ class SocialPost {
596
687
  if (proto.tiktokCustomization) {
597
688
  m.tiktokCustomization = TikTokCustomization.fromProto(proto.tiktokCustomization);
598
689
  }
690
+ if (proto.blogPostCustomization) {
691
+ m.blogPostCustomization = BlogPostCustomization.fromProto(proto.blogPostCustomization);
692
+ }
599
693
  return m;
600
694
  }
601
695
  constructor(kwargs) {
@@ -702,6 +796,9 @@ class SocialPost {
702
796
  if (typeof this.tiktokCustomization !== 'undefined' && this.tiktokCustomization !== null) {
703
797
  toReturn['tiktokCustomization'] = 'toApiJson' in this.tiktokCustomization ? this.tiktokCustomization.toApiJson() : this.tiktokCustomization;
704
798
  }
799
+ if (typeof this.blogPostCustomization !== 'undefined' && this.blogPostCustomization !== null) {
800
+ toReturn['blogPostCustomization'] = 'toApiJson' in this.blogPostCustomization ? this.blogPostCustomization.toApiJson() : this.blogPostCustomization;
801
+ }
705
802
  return toReturn;
706
803
  }
707
804
  }
@@ -7622,5 +7719,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
7622
7719
  * Generated bundle index. Do not edit.
7623
7720
  */
7624
7721
 
7625
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostsService, BlogVideo, CallToAction, CallToActionCallToActionType, Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, 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, 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, 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, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
7722
+ 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, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, DeleteBlogConnectionRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, 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, 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, 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, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
7626
7723
  //# sourceMappingURL=vendasta-social-posts.mjs.map