@vendasta/social-posts 5.45.4 → 5.45.5

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.
@@ -155,6 +155,14 @@ var TemplateType;
155
155
  //
156
156
  // Enums.
157
157
  // *********************************
158
+ var CustomizationStatus;
159
+ (function (CustomizationStatus) {
160
+ CustomizationStatus[CustomizationStatus["INVALID"] = 0] = "INVALID";
161
+ CustomizationStatus[CustomizationStatus["DISABLED"] = 1] = "DISABLED";
162
+ CustomizationStatus[CustomizationStatus["PENDING"] = 2] = "PENDING";
163
+ CustomizationStatus[CustomizationStatus["COMPLETED"] = 3] = "COMPLETED";
164
+ CustomizationStatus[CustomizationStatus["FAILED"] = 4] = "FAILED";
165
+ })(CustomizationStatus || (CustomizationStatus = {}));
158
166
  var RemoveReason;
159
167
  (function (RemoveReason) {
160
168
  RemoveReason[RemoveReason["REMOVE_REASON_EDIT"] = 0] = "REMOVE_REASON_EDIT";
@@ -1139,6 +1147,9 @@ class MultilocationPost {
1139
1147
  if (proto.postState) {
1140
1148
  m.postState = enumStringToValue$f(MLPostState, proto.postState);
1141
1149
  }
1150
+ if (proto.postCustomizationByLocation) {
1151
+ m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
1152
+ }
1142
1153
  return m;
1143
1154
  }
1144
1155
  constructor(kwargs) {
@@ -1203,6 +1214,12 @@ class MultilocationPost {
1203
1214
  if (typeof this.postState !== 'undefined') {
1204
1215
  toReturn['postState'] = this.postState;
1205
1216
  }
1217
+ if (typeof this.postCustomizationByLocation !== 'undefined' && this.postCustomizationByLocation !== null) {
1218
+ toReturn['postCustomizationByLocation'] = 'toApiJson' in this.postCustomizationByLocation ? this.postCustomizationByLocation.toApiJson() : this.postCustomizationByLocation;
1219
+ }
1220
+ if (typeof this.partnerId !== 'undefined') {
1221
+ toReturn['partnerId'] = this.partnerId;
1222
+ }
1206
1223
  return toReturn;
1207
1224
  }
1208
1225
  }
@@ -1307,6 +1324,32 @@ class PostCustomization {
1307
1324
  return toReturn;
1308
1325
  }
1309
1326
  }
1327
+ class PostCustomizationByLocation {
1328
+ static fromProto(proto) {
1329
+ let m = new PostCustomizationByLocation();
1330
+ m = Object.assign(m, proto);
1331
+ if (proto.customizationStatus) {
1332
+ m.customizationStatus = enumStringToValue$f(CustomizationStatus, proto.customizationStatus);
1333
+ }
1334
+ return m;
1335
+ }
1336
+ constructor(kwargs) {
1337
+ if (!kwargs) {
1338
+ return;
1339
+ }
1340
+ Object.assign(this, kwargs);
1341
+ }
1342
+ toApiJson() {
1343
+ const toReturn = {};
1344
+ if (typeof this.isCustomizedByLocation !== 'undefined') {
1345
+ toReturn['isCustomizedByLocation'] = this.isCustomizedByLocation;
1346
+ }
1347
+ if (typeof this.customizationStatus !== 'undefined') {
1348
+ toReturn['customizationStatus'] = this.customizationStatus;
1349
+ }
1350
+ return toReturn;
1351
+ }
1352
+ }
1310
1353
  class PostEvent {
1311
1354
  static fromProto(proto) {
1312
1355
  let m = new PostEvent();
@@ -1860,6 +1903,9 @@ class CreateMultilocationPostRequest {
1860
1903
  if (proto.postCategory) {
1861
1904
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
1862
1905
  }
1906
+ if (proto.postCustomizationByLocation) {
1907
+ m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
1908
+ }
1863
1909
  return m;
1864
1910
  }
1865
1911
  constructor(kwargs) {
@@ -1912,6 +1958,12 @@ class CreateMultilocationPostRequest {
1912
1958
  if (typeof this.postCategory !== 'undefined' && this.postCategory !== null) {
1913
1959
  toReturn['postCategory'] = 'toApiJson' in this.postCategory ? this.postCategory.toApiJson() : this.postCategory;
1914
1960
  }
1961
+ if (typeof this.postCustomizationByLocation !== 'undefined' && this.postCustomizationByLocation !== null) {
1962
+ toReturn['postCustomizationByLocation'] = 'toApiJson' in this.postCustomizationByLocation ? this.postCustomizationByLocation.toApiJson() : this.postCustomizationByLocation;
1963
+ }
1964
+ if (typeof this.partnerId !== 'undefined') {
1965
+ toReturn['partnerId'] = this.partnerId;
1966
+ }
1915
1967
  return toReturn;
1916
1968
  }
1917
1969
  }
@@ -2199,6 +2251,9 @@ class EditMultilocationPostRequest {
2199
2251
  if (proto.postCategory) {
2200
2252
  m.postCategory = MLPostCategory.fromProto(proto.postCategory);
2201
2253
  }
2254
+ if (proto.postCustomizationByLocation) {
2255
+ m.postCustomizationByLocation = PostCustomizationByLocation.fromProto(proto.postCustomizationByLocation);
2256
+ }
2202
2257
  return m;
2203
2258
  }
2204
2259
  constructor(kwargs) {
@@ -2263,6 +2318,12 @@ class EditMultilocationPostRequest {
2263
2318
  if (typeof this.postCategory !== 'undefined' && this.postCategory !== null) {
2264
2319
  toReturn['postCategory'] = 'toApiJson' in this.postCategory ? this.postCategory.toApiJson() : this.postCategory;
2265
2320
  }
2321
+ if (typeof this.postCustomizationByLocation !== 'undefined' && this.postCustomizationByLocation !== null) {
2322
+ toReturn['postCustomizationByLocation'] = 'toApiJson' in this.postCustomizationByLocation ? this.postCustomizationByLocation.toApiJson() : this.postCustomizationByLocation;
2323
+ }
2324
+ if (typeof this.partnerId !== 'undefined') {
2325
+ toReturn['partnerId'] = this.partnerId;
2326
+ }
2266
2327
  return toReturn;
2267
2328
  }
2268
2329
  }
@@ -8833,7 +8894,7 @@ class MultilocationPostsService {
8833
8894
  constructor(multilocationApiService) {
8834
8895
  this.multilocationApiService = multilocationApiService;
8835
8896
  }
8836
- createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata, postTypes, postCategory) {
8897
+ createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata, postTypes, postCategory, postCustomizationByLocation) {
8837
8898
  const req = new CreateMultilocationPostRequest({
8838
8899
  brandId: brandId,
8839
8900
  text: text,
@@ -8847,11 +8908,12 @@ class MultilocationPostsService {
8847
8908
  customization: postCustomization,
8848
8909
  linkShortCode: linkShortCode,
8849
8910
  postTypes: postTypes,
8850
- postCategory: postCategory
8911
+ postCategory: postCategory,
8912
+ postCustomizationByLocation: postCustomizationByLocation
8851
8913
  });
8852
8914
  return this.multilocationApiService.createMultilocationPost(req);
8853
8915
  }
8854
- editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata, postTypes, postCategory, newServices, deletedServices) {
8916
+ editMultilocationPost(brandId, multilocationId, text, media, gifs, videos, scheduledDate, locations, fieldMask, mediaEntries, postCustomization, linkShortCode, metadata, postTypes, postCategory, newServices, deletedServices, postCustomizationByLocation) {
8855
8917
  const req = new EditMultilocationPostRequest({
8856
8918
  brandId: brandId,
8857
8919
  multilocationId: multilocationId,
@@ -8869,7 +8931,8 @@ class MultilocationPostsService {
8869
8931
  postTypes: postTypes,
8870
8932
  postCategory: postCategory,
8871
8933
  newServices: newServices,
8872
- deletedServices: deletedServices
8934
+ deletedServices: deletedServices,
8935
+ postCustomizationByLocation: postCustomizationByLocation
8873
8936
  });
8874
8937
  return this.multilocationApiService.editMultilocationPost(req);
8875
8938
  }
@@ -9334,5 +9397,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
9334
9397
  * Generated bundle index. Do not edit.
9335
9398
  */
9336
9399
 
9337
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as 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, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, PexelsImage, PexelsImageService, Photo, PixabayImage, PixabayImageService, Post, PostAction, PostActionV2, PostCategory, PostContent, PostContentV2, PostCustomization, PostCustomizationV2, PostData, PostEvent, PostEventV2, PostMediaV2, PostPerformanceApiService, PostPerformanceService, PostStatusV2, PostTemplate, PostTemplatesService, PostType, PostTypeV2, PostingStatus, PostsGeneration, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
9400
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author$1 as Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, CampaignService, Category$1 as Category, CategoryRequest, CategoryResponse, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, ContentLength, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCampaignRequest, CreateCampaignResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, CustomizationStatus, DateRangeFilter, DeleteBlogConnectionRequest, DeleteBlogPostRequest, DeleteCampaignRequest, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, EndChatRequest, Error, Event, FacebookPostStats, FetchLibraryImagesRequest, FetchLibraryImagesResponse, FieldMask, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GeneratePostsResponseImageResponse, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, HashTagsService, Hashtag, Image, ImageBlob, ImageCreated, ImageResponse, ImageUrl, KeywordGeneration, KeywordList, LinkV2, Links, ListBlogConnectionRequest, ListBlogConnectionResponse, ListCuratedContentRequest, ListCuratedContentResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MCPOptions, MLPostCategory, MLPostState, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, 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, PublishPostRequest, PublishPostResponse, RemoveFromMultilocationPostRequest, RemoveReason, ReplaceHashtagsRequest, RepostBlogPostRequest, RepostSocialPostRequest, Response, Role, SSIDPostType, SchedulePostRequest, SchedulePostResponse, SchedulePostStatus, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SendMessageRequest, SendMessageResponse, SendMessageV2Request, SendMessageV2Response, Social, SocialCampaign, SocialPost, SocialPostData, SocialPostDeletionStatus, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialPostService, SocialPostStats, SocialPostV2, SocialPostsService, SocialPostsV2Service, SocialService, Source, StartChatRequest, StartChatResponse, StatusRequest, StatusResponse, SubAncestry, SuggestMessageRequest, SuggestMessageResponse, Tags, TemplateType, TenorGif, TenorGifMediaMapEntry, TenorGifsService, TenorMediaObject, TikTokCustomization, TikTokCustomizationV2, TitleGeneration, Tone, TwitterPostStats, UnsplashImageService, UpdateBlogConnectionRequest, UpdateBlogPostRequest, UpdateCampaignIdRequest, UpdateCampaignRequest, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
9338
9401
  //# sourceMappingURL=vendasta-social-posts.mjs.map