@vendasta/social-posts 5.29.0 → 5.30.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.
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/wordpress-plugin.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/wordpress-plugin.mjs +144 -1
- package/esm2020/lib/_internal/wordpress-plugin.api.service.mjs +7 -2
- package/esm2020/lib/wordpress-plugin.service.mjs +4 -1
- package/fesm2015/vendasta-social-posts.mjs +152 -1
- package/fesm2015/vendasta-social-posts.mjs.map +1 -1
- package/fesm2020/vendasta-social-posts.mjs +152 -1
- package/fesm2020/vendasta-social-posts.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/wordpress-plugin.interface.d.ts +28 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/wordpress-plugin.d.ts +40 -0
- package/lib/_internal/wordpress-plugin.api.service.d.ts +3 -2
- package/lib/wordpress-plugin.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -5728,6 +5728,52 @@ class AuthorsResponse {
|
|
|
5728
5728
|
return toReturn;
|
|
5729
5729
|
}
|
|
5730
5730
|
}
|
|
5731
|
+
class BlogImage {
|
|
5732
|
+
static fromProto(proto) {
|
|
5733
|
+
let m = new BlogImage();
|
|
5734
|
+
m = Object.assign(m, proto);
|
|
5735
|
+
return m;
|
|
5736
|
+
}
|
|
5737
|
+
constructor(kwargs) {
|
|
5738
|
+
if (!kwargs) {
|
|
5739
|
+
return;
|
|
5740
|
+
}
|
|
5741
|
+
Object.assign(this, kwargs);
|
|
5742
|
+
}
|
|
5743
|
+
toApiJson() {
|
|
5744
|
+
const toReturn = {};
|
|
5745
|
+
if (typeof this.path !== 'undefined') {
|
|
5746
|
+
toReturn['path'] = this.path;
|
|
5747
|
+
}
|
|
5748
|
+
if (typeof this.publicUrl !== 'undefined') {
|
|
5749
|
+
toReturn['publicUrl'] = this.publicUrl;
|
|
5750
|
+
}
|
|
5751
|
+
return toReturn;
|
|
5752
|
+
}
|
|
5753
|
+
}
|
|
5754
|
+
class BlogVideo {
|
|
5755
|
+
static fromProto(proto) {
|
|
5756
|
+
let m = new BlogVideo();
|
|
5757
|
+
m = Object.assign(m, proto);
|
|
5758
|
+
return m;
|
|
5759
|
+
}
|
|
5760
|
+
constructor(kwargs) {
|
|
5761
|
+
if (!kwargs) {
|
|
5762
|
+
return;
|
|
5763
|
+
}
|
|
5764
|
+
Object.assign(this, kwargs);
|
|
5765
|
+
}
|
|
5766
|
+
toApiJson() {
|
|
5767
|
+
const toReturn = {};
|
|
5768
|
+
if (typeof this.path !== 'undefined') {
|
|
5769
|
+
toReturn['path'] = this.path;
|
|
5770
|
+
}
|
|
5771
|
+
if (typeof this.publicUrl !== 'undefined') {
|
|
5772
|
+
toReturn['publicUrl'] = this.publicUrl;
|
|
5773
|
+
}
|
|
5774
|
+
return toReturn;
|
|
5775
|
+
}
|
|
5776
|
+
}
|
|
5731
5777
|
class Category {
|
|
5732
5778
|
static fromProto(proto) {
|
|
5733
5779
|
let m = new Category();
|
|
@@ -5800,6 +5846,103 @@ class CategoryResponse {
|
|
|
5800
5846
|
return toReturn;
|
|
5801
5847
|
}
|
|
5802
5848
|
}
|
|
5849
|
+
class PublishPostRequest {
|
|
5850
|
+
static fromProto(proto) {
|
|
5851
|
+
let m = new PublishPostRequest();
|
|
5852
|
+
m = Object.assign(m, proto);
|
|
5853
|
+
if (proto.images) {
|
|
5854
|
+
m.images = proto.images.map(BlogImage.fromProto);
|
|
5855
|
+
}
|
|
5856
|
+
if (proto.videos) {
|
|
5857
|
+
m.videos = proto.videos.map(BlogVideo.fromProto);
|
|
5858
|
+
}
|
|
5859
|
+
if (proto.author) {
|
|
5860
|
+
m.author = Author.fromProto(proto.author);
|
|
5861
|
+
}
|
|
5862
|
+
if (proto.categories) {
|
|
5863
|
+
m.categories = proto.categories.map(Category.fromProto);
|
|
5864
|
+
}
|
|
5865
|
+
if (proto.postDateTime) {
|
|
5866
|
+
m.postDateTime = new Date(proto.postDateTime);
|
|
5867
|
+
}
|
|
5868
|
+
return m;
|
|
5869
|
+
}
|
|
5870
|
+
constructor(kwargs) {
|
|
5871
|
+
if (!kwargs) {
|
|
5872
|
+
return;
|
|
5873
|
+
}
|
|
5874
|
+
Object.assign(this, kwargs);
|
|
5875
|
+
}
|
|
5876
|
+
toApiJson() {
|
|
5877
|
+
const toReturn = {};
|
|
5878
|
+
if (typeof this.businessId !== 'undefined') {
|
|
5879
|
+
toReturn['businessId'] = this.businessId;
|
|
5880
|
+
}
|
|
5881
|
+
if (typeof this.socialServiceId !== 'undefined') {
|
|
5882
|
+
toReturn['socialServiceId'] = this.socialServiceId;
|
|
5883
|
+
}
|
|
5884
|
+
if (typeof this.title !== 'undefined') {
|
|
5885
|
+
toReturn['title'] = this.title;
|
|
5886
|
+
}
|
|
5887
|
+
if (typeof this.content !== 'undefined') {
|
|
5888
|
+
toReturn['content'] = this.content;
|
|
5889
|
+
}
|
|
5890
|
+
if (typeof this.images !== 'undefined' && this.images !== null) {
|
|
5891
|
+
toReturn['images'] = 'toApiJson' in this.images ? this.images.toApiJson() : this.images;
|
|
5892
|
+
}
|
|
5893
|
+
if (typeof this.videos !== 'undefined' && this.videos !== null) {
|
|
5894
|
+
toReturn['videos'] = 'toApiJson' in this.videos ? this.videos.toApiJson() : this.videos;
|
|
5895
|
+
}
|
|
5896
|
+
if (typeof this.siteType !== 'undefined') {
|
|
5897
|
+
toReturn['siteType'] = this.siteType;
|
|
5898
|
+
}
|
|
5899
|
+
if (typeof this.author !== 'undefined' && this.author !== null) {
|
|
5900
|
+
toReturn['author'] = 'toApiJson' in this.author ? this.author.toApiJson() : this.author;
|
|
5901
|
+
}
|
|
5902
|
+
if (typeof this.categories !== 'undefined' && this.categories !== null) {
|
|
5903
|
+
toReturn['categories'] = 'toApiJson' in this.categories ? this.categories.toApiJson() : this.categories;
|
|
5904
|
+
}
|
|
5905
|
+
if (typeof this.tags !== 'undefined') {
|
|
5906
|
+
toReturn['tags'] = this.tags;
|
|
5907
|
+
}
|
|
5908
|
+
if (typeof this.postTags !== 'undefined') {
|
|
5909
|
+
toReturn['postTags'] = this.postTags;
|
|
5910
|
+
}
|
|
5911
|
+
if (typeof this.postDateTime !== 'undefined' && this.postDateTime !== null) {
|
|
5912
|
+
toReturn['postDateTime'] = 'toApiJson' in this.postDateTime ? this.postDateTime.toApiJson() : this.postDateTime;
|
|
5913
|
+
}
|
|
5914
|
+
if (typeof this.userId !== 'undefined') {
|
|
5915
|
+
toReturn['userId'] = this.userId;
|
|
5916
|
+
}
|
|
5917
|
+
if (typeof this.userName !== 'undefined') {
|
|
5918
|
+
toReturn['userName'] = this.userName;
|
|
5919
|
+
}
|
|
5920
|
+
if (typeof this.partnerId !== 'undefined') {
|
|
5921
|
+
toReturn['partnerId'] = this.partnerId;
|
|
5922
|
+
}
|
|
5923
|
+
return toReturn;
|
|
5924
|
+
}
|
|
5925
|
+
}
|
|
5926
|
+
class PublishPostResponse {
|
|
5927
|
+
static fromProto(proto) {
|
|
5928
|
+
let m = new PublishPostResponse();
|
|
5929
|
+
m = Object.assign(m, proto);
|
|
5930
|
+
return m;
|
|
5931
|
+
}
|
|
5932
|
+
constructor(kwargs) {
|
|
5933
|
+
if (!kwargs) {
|
|
5934
|
+
return;
|
|
5935
|
+
}
|
|
5936
|
+
Object.assign(this, kwargs);
|
|
5937
|
+
}
|
|
5938
|
+
toApiJson() {
|
|
5939
|
+
const toReturn = {};
|
|
5940
|
+
if (typeof this.internalPostId !== 'undefined') {
|
|
5941
|
+
toReturn['internalPostId'] = this.internalPostId;
|
|
5942
|
+
}
|
|
5943
|
+
return toReturn;
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5803
5946
|
class StatusRequest {
|
|
5804
5947
|
static fromProto(proto) {
|
|
5805
5948
|
let m = new StatusRequest();
|
|
@@ -6696,6 +6839,11 @@ class WordpressPluginApiService {
|
|
|
6696
6839
|
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/GetCategories", request.toApiJson(), this.apiOptions())
|
|
6697
6840
|
.pipe(map(resp => CategoryResponse.fromProto(resp)));
|
|
6698
6841
|
}
|
|
6842
|
+
publishPost(r) {
|
|
6843
|
+
const request = (r.toApiJson) ? r : new PublishPostRequest(r);
|
|
6844
|
+
return this.http.post(this._host + "/socialposts.v2.WordpressPluginService/PublishPost", request.toApiJson(), this.apiOptions())
|
|
6845
|
+
.pipe(map(resp => PublishPostResponse.fromProto(resp)));
|
|
6846
|
+
}
|
|
6699
6847
|
}
|
|
6700
6848
|
WordpressPluginApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6701
6849
|
WordpressPluginApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginApiService, providedIn: 'root' });
|
|
@@ -7175,6 +7323,9 @@ class WordpressPluginService {
|
|
|
7175
7323
|
getCategories(categoryRequestInterface) {
|
|
7176
7324
|
return this.wordpressPluginApiService.getCategories(categoryRequestInterface);
|
|
7177
7325
|
}
|
|
7326
|
+
publishPost(PublishPostRequestInterface) {
|
|
7327
|
+
return this.wordpressPluginApiService.publishPost(PublishPostRequestInterface);
|
|
7328
|
+
}
|
|
7178
7329
|
}
|
|
7179
7330
|
WordpressPluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, deps: [{ token: WordpressPluginApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7180
7331
|
WordpressPluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WordpressPluginService, providedIn: 'root' });
|
|
@@ -7187,5 +7338,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
7187
7338
|
* Generated bundle index. Do not edit.
|
|
7188
7339
|
*/
|
|
7189
7340
|
|
|
7190
|
-
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, 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, 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, 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, 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, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
7341
|
+
export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, 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, 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, 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, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdatePostTemplateRequest, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, Urls, User, UserLink, WordpressPluginService, YoutubeCustomization, YoutubeCustomizationPrivacyStatus, YoutubeCustomizationV2, YoutubeCustomizationV2PrivacyStatusV2 };
|
|
7191
7342
|
//# sourceMappingURL=vendasta-social-posts.mjs.map
|