@vendasta/social-posts 5.42.3 → 5.42.4
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.
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/multilocation-post.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/social-posts.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +8 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/multilocation-post.mjs +8 -2
- package/esm2020/lib/_internal/objects/social-posts.mjs +24 -1
- package/esm2020/lib/multilocation-posts.service.mjs +4 -3
- package/fesm2015/vendasta-social-posts.mjs +39 -3
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +39 -3
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +2 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/multilocation-post.interface.d.ts +2 -1
- package/lib/_internal/interfaces/social-posts.interface.d.ts +4 -0
- package/lib/_internal/objects/api.d.ts +2 -1
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/multilocation-post.d.ts +2 -1
- package/lib/_internal/objects/social-posts.d.ts +7 -0
- package/lib/multilocation-posts.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -471,6 +471,29 @@ class Event {
|
|
|
471
471
|
return toReturn;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
+
class MLPostCategory {
|
|
475
|
+
static fromProto(proto) {
|
|
476
|
+
let m = new MLPostCategory();
|
|
477
|
+
m = Object.assign(m, proto);
|
|
478
|
+
return m;
|
|
479
|
+
}
|
|
480
|
+
constructor(kwargs) {
|
|
481
|
+
if (!kwargs) {
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
Object.assign(this, kwargs);
|
|
485
|
+
}
|
|
486
|
+
toApiJson() {
|
|
487
|
+
const toReturn = {};
|
|
488
|
+
if (typeof this.isDraft !== 'undefined') {
|
|
489
|
+
toReturn['isDraft'] = this.isDraft;
|
|
490
|
+
}
|
|
491
|
+
if (typeof this.isHidden !== 'undefined') {
|
|
492
|
+
toReturn['isHidden'] = this.isHidden;
|
|
493
|
+
}
|
|
494
|
+
return toReturn;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
474
497
|
class MediaEntry {
|
|
475
498
|
static fromProto(proto) {
|
|
476
499
|
let m = new MediaEntry();
|
|
@@ -1091,6 +1114,9 @@ class MultilocationPost {
|
|
|
1091
1114
|
if (proto.postTypes) {
|
|
1092
1115
|
m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
|
|
1093
1116
|
}
|
|
1117
|
+
if (proto.postCategory) {
|
|
1118
|
+
m.postCategory = MLPostCategory.fromProto(proto.postCategory);
|
|
1119
|
+
}
|
|
1094
1120
|
return m;
|
|
1095
1121
|
}
|
|
1096
1122
|
constructor(kwargs) {
|
|
@@ -1149,6 +1175,9 @@ class MultilocationPost {
|
|
|
1149
1175
|
if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
|
|
1150
1176
|
toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
|
|
1151
1177
|
}
|
|
1178
|
+
if (typeof this.postCategory !== 'undefined' && this.postCategory !== null) {
|
|
1179
|
+
toReturn['postCategory'] = 'toApiJson' in this.postCategory ? this.postCategory.toApiJson() : this.postCategory;
|
|
1180
|
+
}
|
|
1152
1181
|
return toReturn;
|
|
1153
1182
|
}
|
|
1154
1183
|
}
|
|
@@ -1749,6 +1778,9 @@ class CreateMultilocationPostRequest {
|
|
|
1749
1778
|
if (proto.postTypes) {
|
|
1750
1779
|
m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
|
|
1751
1780
|
}
|
|
1781
|
+
if (proto.postCategory) {
|
|
1782
|
+
m.postCategory = MLPostCategory.fromProto(proto.postCategory);
|
|
1783
|
+
}
|
|
1752
1784
|
return m;
|
|
1753
1785
|
}
|
|
1754
1786
|
constructor(kwargs) {
|
|
@@ -1798,6 +1830,9 @@ class CreateMultilocationPostRequest {
|
|
|
1798
1830
|
if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
|
|
1799
1831
|
toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
|
|
1800
1832
|
}
|
|
1833
|
+
if (typeof this.postCategory !== 'undefined' && this.postCategory !== null) {
|
|
1834
|
+
toReturn['postCategory'] = 'toApiJson' in this.postCategory ? this.postCategory.toApiJson() : this.postCategory;
|
|
1835
|
+
}
|
|
1801
1836
|
return toReturn;
|
|
1802
1837
|
}
|
|
1803
1838
|
}
|
|
@@ -8382,7 +8417,7 @@ class MultilocationPostsService {
|
|
|
8382
8417
|
constructor(multilocationApiService) {
|
|
8383
8418
|
this.multilocationApiService = multilocationApiService;
|
|
8384
8419
|
}
|
|
8385
|
-
createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata, postTypes) {
|
|
8420
|
+
createMultilocationPost(brandId, text, media, gifs, videos, scheduledDate, locations, mediaEntries, postCustomization, linkShortCode, metadata, postTypes, postCategory) {
|
|
8386
8421
|
const req = new CreateMultilocationPostRequest({
|
|
8387
8422
|
brandId: brandId,
|
|
8388
8423
|
text: text,
|
|
@@ -8395,7 +8430,8 @@ class MultilocationPostsService {
|
|
|
8395
8430
|
metaData: metadata,
|
|
8396
8431
|
customization: postCustomization,
|
|
8397
8432
|
linkShortCode: linkShortCode,
|
|
8398
|
-
postTypes: postTypes
|
|
8433
|
+
postTypes: postTypes,
|
|
8434
|
+
postCategory: postCategory
|
|
8399
8435
|
});
|
|
8400
8436
|
return this.multilocationApiService.createMultilocationPost(req);
|
|
8401
8437
|
}
|
|
@@ -8853,5 +8889,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8853
8889
|
* Generated bundle index. Do not edit.
|
|
8854
8890
|
*/
|
|
8855
8891
|
|
|
8856
|
-
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, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, 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, 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, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, 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, 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 };
|
|
8892
|
+
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, GeneratePostsResponsePost, GenerateType, GetBlogConnectionRequest, GetBlogConnectionResponse, GetCampaignRequest, GetCampaignResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, 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, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, Location, MLPostCategory, Media, MediaEntry, MediaProperty, MediaType, MediaUploadRequest, MediaUploadResponse, MessageLength, MetaData, MetadataV2, MultiResponse, MultilocationPost, MultilocationPostApiService, MultilocationPostError, MultilocationPostsService, MultilocationServices, Network, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PartnerListScheduledSocialPostsRequestFilters, 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, 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 };
|
|
8857
8893
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|