@vendasta/social-posts 5.40.0 → 5.41.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.
@@ -154,6 +154,18 @@ var RemoveReason;
154
154
  RemoveReason[RemoveReason["REMOVE_REASON_DELETE"] = 1] = "REMOVE_REASON_DELETE";
155
155
  })(RemoveReason || (RemoveReason = {}));
156
156
 
157
+ // *********************************
158
+ // Code generated by sdkgen
159
+ // DO NOT EDIT!.
160
+ //
161
+ // Enums.
162
+ // *********************************
163
+ var BulkPostStatus;
164
+ (function (BulkPostStatus) {
165
+ BulkPostStatus[BulkPostStatus["SUCCESS"] = 0] = "SUCCESS";
166
+ BulkPostStatus[BulkPostStatus["FAILURE"] = 1] = "FAILURE";
167
+ })(BulkPostStatus || (BulkPostStatus = {}));
168
+
157
169
  // *********************************
158
170
  // Code generated by sdkgen
159
171
  // DO NOT EDIT!.
@@ -954,6 +966,74 @@ function enumStringToValue$e(enumRef, value) {
954
966
  }
955
967
  return enumRef[value];
956
968
  }
969
+ class BulkUploadMultilocation {
970
+ static fromProto(proto) {
971
+ let m = new BulkUploadMultilocation();
972
+ m = Object.assign(m, proto);
973
+ if (proto.scheduledDate) {
974
+ m.scheduledDate = new Date(proto.scheduledDate);
975
+ }
976
+ if (proto.mediaEntries) {
977
+ m.mediaEntries = proto.mediaEntries.map(MediaEntry.fromProto);
978
+ }
979
+ if (proto.metaData) {
980
+ m.metaData = proto.metaData.map(MetaData.fromProto);
981
+ }
982
+ if (proto.customization) {
983
+ m.customization = PostCustomization.fromProto(proto.customization);
984
+ }
985
+ if (proto.postTypes) {
986
+ m.postTypes = proto.postTypes.map(SSIDPostType.fromProto);
987
+ }
988
+ return m;
989
+ }
990
+ constructor(kwargs) {
991
+ if (!kwargs) {
992
+ return;
993
+ }
994
+ Object.assign(this, kwargs);
995
+ }
996
+ toApiJson() {
997
+ const toReturn = {};
998
+ if (typeof this.text !== 'undefined') {
999
+ toReturn['text'] = this.text;
1000
+ }
1001
+ if (typeof this.media !== 'undefined') {
1002
+ toReturn['media'] = this.media;
1003
+ }
1004
+ if (typeof this.scheduledDate !== 'undefined' && this.scheduledDate !== null) {
1005
+ toReturn['scheduledDate'] = 'toApiJson' in this.scheduledDate ? this.scheduledDate.toApiJson() : this.scheduledDate;
1006
+ }
1007
+ if (typeof this.gifs !== 'undefined') {
1008
+ toReturn['gifs'] = this.gifs;
1009
+ }
1010
+ if (typeof this.videos !== 'undefined') {
1011
+ toReturn['videos'] = this.videos;
1012
+ }
1013
+ if (typeof this.mediaEntries !== 'undefined' && this.mediaEntries !== null) {
1014
+ toReturn['mediaEntries'] = 'toApiJson' in this.mediaEntries ? this.mediaEntries.toApiJson() : this.mediaEntries;
1015
+ }
1016
+ if (typeof this.metaData !== 'undefined' && this.metaData !== null) {
1017
+ toReturn['metaData'] = 'toApiJson' in this.metaData ? this.metaData.toApiJson() : this.metaData;
1018
+ }
1019
+ if (typeof this.tags !== 'undefined') {
1020
+ toReturn['tags'] = this.tags;
1021
+ }
1022
+ if (typeof this.customization !== 'undefined' && this.customization !== null) {
1023
+ toReturn['customization'] = 'toApiJson' in this.customization ? this.customization.toApiJson() : this.customization;
1024
+ }
1025
+ if (typeof this.linkShortCode !== 'undefined') {
1026
+ toReturn['linkShortCode'] = this.linkShortCode;
1027
+ }
1028
+ if (typeof this.postTypes !== 'undefined' && this.postTypes !== null) {
1029
+ toReturn['postTypes'] = 'toApiJson' in this.postTypes ? this.postTypes.toApiJson() : this.postTypes;
1030
+ }
1031
+ if (typeof this.multilocationId !== 'undefined') {
1032
+ toReturn['multilocationId'] = this.multilocationId;
1033
+ }
1034
+ return toReturn;
1035
+ }
1036
+ }
957
1037
  class Location {
958
1038
  static fromProto(proto) {
959
1039
  let m = new Location();
@@ -1557,6 +1637,67 @@ function enumStringToValue$a(enumRef, value) {
1557
1637
  }
1558
1638
  return enumRef[value];
1559
1639
  }
1640
+ class BulkCreateMultilocationPostRequest {
1641
+ static fromProto(proto) {
1642
+ let m = new BulkCreateMultilocationPostRequest();
1643
+ m = Object.assign(m, proto);
1644
+ if (proto.locations) {
1645
+ m.locations = proto.locations.map(Location.fromProto);
1646
+ }
1647
+ if (proto.request) {
1648
+ m.request = proto.request.map(BulkUploadMultilocation.fromProto);
1649
+ }
1650
+ return m;
1651
+ }
1652
+ constructor(kwargs) {
1653
+ if (!kwargs) {
1654
+ return;
1655
+ }
1656
+ Object.assign(this, kwargs);
1657
+ }
1658
+ toApiJson() {
1659
+ const toReturn = {};
1660
+ if (typeof this.brandId !== 'undefined') {
1661
+ toReturn['brandId'] = this.brandId;
1662
+ }
1663
+ if (typeof this.locations !== 'undefined' && this.locations !== null) {
1664
+ toReturn['locations'] = 'toApiJson' in this.locations ? this.locations.toApiJson() : this.locations;
1665
+ }
1666
+ if (typeof this.request !== 'undefined' && this.request !== null) {
1667
+ toReturn['request'] = 'toApiJson' in this.request ? this.request.toApiJson() : this.request;
1668
+ }
1669
+ return toReturn;
1670
+ }
1671
+ }
1672
+ class BulkCreateMultilocationPostResponse {
1673
+ static fromProto(proto) {
1674
+ let m = new BulkCreateMultilocationPostResponse();
1675
+ m = Object.assign(m, proto);
1676
+ if (proto.status) {
1677
+ m.status = enumStringToValue$a(BulkPostStatus, proto.status);
1678
+ }
1679
+ if (proto.error) {
1680
+ m.error = proto.error.map(MultilocationPostError.fromProto);
1681
+ }
1682
+ return m;
1683
+ }
1684
+ constructor(kwargs) {
1685
+ if (!kwargs) {
1686
+ return;
1687
+ }
1688
+ Object.assign(this, kwargs);
1689
+ }
1690
+ toApiJson() {
1691
+ const toReturn = {};
1692
+ if (typeof this.status !== 'undefined') {
1693
+ toReturn['status'] = this.status;
1694
+ }
1695
+ if (typeof this.error !== 'undefined' && this.error !== null) {
1696
+ toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
1697
+ }
1698
+ return toReturn;
1699
+ }
1700
+ }
1560
1701
  class CreateMultilocationPostRequest {
1561
1702
  static fromProto(proto) {
1562
1703
  let m = new CreateMultilocationPostRequest();
@@ -7798,6 +7939,11 @@ class MultilocationPostApiService {
7798
7939
  return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/GetMultilocationPost", request.toApiJson(), this.apiOptions())
7799
7940
  .pipe(map(resp => GetMultilocationPostResponse.fromProto(resp)));
7800
7941
  }
7942
+ bulkCreateMultilocationPost(r) {
7943
+ const request = (r.toApiJson) ? r : new BulkCreateMultilocationPostRequest(r);
7944
+ return this.http.post(this._host + "/socialposts.v1.MultilocationPostService/BulkCreateMultilocationPost", request.toApiJson(), this.apiOptions())
7945
+ .pipe(map(resp => BulkCreateMultilocationPostResponse.fromProto(resp)));
7946
+ }
7801
7947
  }
7802
7948
  MultilocationPostApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7803
7949
  MultilocationPostApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostApiService, providedIn: 'root' });
@@ -8255,6 +8401,9 @@ class MultilocationPostsService {
8255
8401
  });
8256
8402
  return this.multilocationApiService.getMultilocationPost(req);
8257
8403
  }
8404
+ bulkCreateMultilocationPost(BulkCreateMultilocationPostRequest) {
8405
+ return this.multilocationApiService.bulkCreateMultilocationPost(BulkCreateMultilocationPostRequest);
8406
+ }
8258
8407
  }
8259
8408
  MultilocationPostsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostsService, deps: [{ token: MultilocationPostApiService }], target: i0.ɵɵFactoryTarget.Injectable });
8260
8409
  MultilocationPostsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MultilocationPostsService, providedIn: 'root' });
@@ -8621,5 +8770,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8621
8770
  * Generated bundle index. Do not edit.
8622
8771
  */
8623
8772
 
8624
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, CallToAction, CallToActionCallToActionType, Campaign, 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, 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 };
8773
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, Author, AuthorsRequest, AuthorsResponse, BlogConnection, BlogConnectionService, BlogImage, BlogPost, BlogPostCampaign, BlogPostCustomization, BlogPostsService, BlogVideo, BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, BulkPostStatus, BulkUploadMultilocation, CallToAction, CallToActionCallToActionType, Campaign, 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, 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 };
8625
8774
  //# sourceMappingURL=vendasta-social-posts.mjs.map