@vendasta/social-posts 5.15.2 → 5.15.3

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.
@@ -349,6 +349,9 @@ class PostTemplate {
349
349
  if (proto.postType) {
350
350
  m.postType = enumStringToValue$8(PostType, proto.postType);
351
351
  }
352
+ if (proto.youtubeCustomization) {
353
+ m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
354
+ }
352
355
  return m;
353
356
  }
354
357
  constructor(kwargs) {
@@ -410,6 +413,9 @@ class PostTemplate {
410
413
  if (typeof this.postType !== 'undefined') {
411
414
  toReturn['postType'] = this.postType;
412
415
  }
416
+ if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
417
+ toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
418
+ }
413
419
  return toReturn;
414
420
  }
415
421
  }
@@ -614,6 +620,26 @@ class SocialPostData {
614
620
  return toReturn;
615
621
  }
616
622
  }
623
+ class YoutubeCustomization {
624
+ static fromProto(proto) {
625
+ let m = new YoutubeCustomization();
626
+ m = Object.assign(m, proto);
627
+ return m;
628
+ }
629
+ constructor(kwargs) {
630
+ if (!kwargs) {
631
+ return;
632
+ }
633
+ Object.assign(this, kwargs);
634
+ }
635
+ toApiJson() {
636
+ const toReturn = {};
637
+ if (typeof this.title !== 'undefined') {
638
+ toReturn['title'] = this.title;
639
+ }
640
+ return toReturn;
641
+ }
642
+ }
617
643
 
618
644
  function enumStringToValue$7(enumRef, value) {
619
645
  if (typeof value === 'number') {
@@ -1328,6 +1354,9 @@ class CreatePostTemplateRequest {
1328
1354
  if (proto.postType) {
1329
1355
  m.postType = enumStringToValue$3(PostType, proto.postType);
1330
1356
  }
1357
+ if (proto.youtubeCustomization) {
1358
+ m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
1359
+ }
1331
1360
  return m;
1332
1361
  }
1333
1362
  constructor(kwargs) {
@@ -1380,6 +1409,9 @@ class CreatePostTemplateRequest {
1380
1409
  if (typeof this.postType !== 'undefined') {
1381
1410
  toReturn['postType'] = this.postType;
1382
1411
  }
1412
+ if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
1413
+ toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
1414
+ }
1383
1415
  return toReturn;
1384
1416
  }
1385
1417
  }
@@ -2836,6 +2868,9 @@ class UpdatePostTemplateRequest {
2836
2868
  if (proto.postType) {
2837
2869
  m.postType = enumStringToValue$3(PostType, proto.postType);
2838
2870
  }
2871
+ if (proto.youtubeCustomization) {
2872
+ m.youtubeCustomization = YoutubeCustomization.fromProto(proto.youtubeCustomization);
2873
+ }
2839
2874
  return m;
2840
2875
  }
2841
2876
  constructor(kwargs) {
@@ -2891,6 +2926,9 @@ class UpdatePostTemplateRequest {
2891
2926
  if (typeof this.postType !== 'undefined') {
2892
2927
  toReturn['postType'] = this.postType;
2893
2928
  }
2929
+ if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
2930
+ toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
2931
+ }
2894
2932
  return toReturn;
2895
2933
  }
2896
2934
  }
@@ -3030,6 +3068,9 @@ class PostCustomizationV2 {
3030
3068
  if (proto.action) {
3031
3069
  m.action = PostActionV2.fromProto(proto.action);
3032
3070
  }
3071
+ if (proto.youtubeCustomization) {
3072
+ m.youtubeCustomization = YoutubeCustomizationV2.fromProto(proto.youtubeCustomization);
3073
+ }
3033
3074
  return m;
3034
3075
  }
3035
3076
  constructor(kwargs) {
@@ -3046,6 +3087,9 @@ class PostCustomizationV2 {
3046
3087
  if (typeof this.action !== 'undefined' && this.action !== null) {
3047
3088
  toReturn['action'] = 'toApiJson' in this.action ? this.action.toApiJson() : this.action;
3048
3089
  }
3090
+ if (typeof this.youtubeCustomization !== 'undefined' && this.youtubeCustomization !== null) {
3091
+ toReturn['youtubeCustomization'] = 'toApiJson' in this.youtubeCustomization ? this.youtubeCustomization.toApiJson() : this.youtubeCustomization;
3092
+ }
3049
3093
  return toReturn;
3050
3094
  }
3051
3095
  }
@@ -3181,6 +3225,26 @@ class SocialPostV2 {
3181
3225
  return toReturn;
3182
3226
  }
3183
3227
  }
3228
+ class YoutubeCustomizationV2 {
3229
+ static fromProto(proto) {
3230
+ let m = new YoutubeCustomizationV2();
3231
+ m = Object.assign(m, proto);
3232
+ return m;
3233
+ }
3234
+ constructor(kwargs) {
3235
+ if (!kwargs) {
3236
+ return;
3237
+ }
3238
+ Object.assign(this, kwargs);
3239
+ }
3240
+ toApiJson() {
3241
+ const toReturn = {};
3242
+ if (typeof this.title !== 'undefined') {
3243
+ toReturn['title'] = this.title;
3244
+ }
3245
+ return toReturn;
3246
+ }
3247
+ }
3184
3248
 
3185
3249
  function enumStringToValue$1(enumRef, value) {
3186
3250
  if (typeof value === 'number') {
@@ -4097,7 +4161,7 @@ class PostTemplatesService {
4097
4161
  constructor(socialPostsApiService) {
4098
4162
  this.socialPostsApiService = socialPostsApiService;
4099
4163
  }
4100
- updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
4164
+ updatePostTemplate(accountGroupId, templateId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata, youtubeCustomization) {
4101
4165
  const req = new UpdatePostTemplateRequest({
4102
4166
  accountGroupId: accountGroupId,
4103
4167
  templateId: templateId,
@@ -4114,10 +4178,11 @@ class PostTemplatesService {
4114
4178
  postType: postType || PostType.POST_TYPE_INVALID,
4115
4179
  mediaEntries: mediaEntries,
4116
4180
  metaData: metadata,
4181
+ youtubeCustomization: youtubeCustomization,
4117
4182
  });
4118
4183
  return this.socialPostsApiService.updatePostTemplate(req);
4119
4184
  }
4120
- createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata) {
4185
+ createPostTemplate(accountGroupId, title, postText, postDateTime, gmbPostCustomization, imageUrl, imagePath, imageSize, previews, options, videoUrl, postType, mediaEntries, metadata, youtubeCustomization) {
4121
4186
  const req = new CreatePostTemplateRequest({
4122
4187
  accountGroupId: accountGroupId,
4123
4188
  title: title,
@@ -4133,6 +4198,7 @@ class PostTemplatesService {
4133
4198
  postType: postType || PostType.POST_TYPE_INVALID,
4134
4199
  mediaEntries: mediaEntries,
4135
4200
  metaData: metadata,
4201
+ youtubeCustomization: youtubeCustomization,
4136
4202
  });
4137
4203
  return this.socialPostsApiService.createPostTemplate(req);
4138
4204
  }
@@ -4384,5 +4450,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
4384
4450
  * Generated bundle index. Do not edit.
4385
4451
  */
4386
4452
 
4387
- export { CallToAction, CallToActionCallToActionType, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse };
4453
+ export { CallToAction, CallToActionCallToActionType, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, Error, Event, FacebookPostStats, FieldMask, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, ImageBlob, ImageCreated, ImageUrl, LinkV2, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, Location, Media, MediaEntry, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PixabayImage, PixabayImageService, PostAction, PostActionV2, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostSocialPostRequest, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SuggestMessageRequest, SuggestMessageResponse, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TwitterPostStats, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, YoutubeCustomization, YoutubeCustomizationV2 };
4388
4454
  //# sourceMappingURL=vendasta-social-posts.mjs.map