@vendasta/social-posts 5.26.0 → 5.28.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.
@@ -205,6 +205,12 @@ var MediaType;
205
205
  //
206
206
  // Enums.
207
207
  // *********************************
208
+ var ContentLength;
209
+ (function (ContentLength) {
210
+ ContentLength[ContentLength["SHORT_FORM"] = 0] = "SHORT_FORM";
211
+ ContentLength[ContentLength["MEDIUM_FORM"] = 1] = "MEDIUM_FORM";
212
+ ContentLength[ContentLength["LONG_FORM"] = 2] = "LONG_FORM";
213
+ })(ContentLength || (ContentLength = {}));
208
214
  var GenerateType;
209
215
  (function (GenerateType) {
210
216
  GenerateType[GenerateType["TITLE"] = 0] = "TITLE";
@@ -4278,9 +4284,15 @@ class GenerateAiRequest {
4278
4284
  static fromProto(proto) {
4279
4285
  let m = new GenerateAiRequest();
4280
4286
  m = Object.assign(m, proto);
4287
+ if (proto.length) {
4288
+ m.length = enumStringToValue$4(ContentLength, proto.length);
4289
+ }
4281
4290
  if (proto.generateType) {
4282
4291
  m.generateType = enumStringToValue$4(GenerateType, proto.generateType);
4283
4292
  }
4293
+ if (proto.metadata) {
4294
+ m.metadata = proto.metadata.map(MetadataV2.fromProto);
4295
+ }
4284
4296
  return m;
4285
4297
  }
4286
4298
  constructor(kwargs) {
@@ -4309,6 +4321,9 @@ class GenerateAiRequest {
4309
4321
  if (typeof this.generateType !== 'undefined') {
4310
4322
  toReturn['generateType'] = this.generateType;
4311
4323
  }
4324
+ if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
4325
+ toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
4326
+ }
4312
4327
  return toReturn;
4313
4328
  }
4314
4329
  }
@@ -5466,6 +5481,29 @@ class CreateBlogConnectionResponse {
5466
5481
  return toReturn;
5467
5482
  }
5468
5483
  }
5484
+ class DeleteBlogConnectionRequest {
5485
+ static fromProto(proto) {
5486
+ let m = new DeleteBlogConnectionRequest();
5487
+ m = Object.assign(m, proto);
5488
+ return m;
5489
+ }
5490
+ constructor(kwargs) {
5491
+ if (!kwargs) {
5492
+ return;
5493
+ }
5494
+ Object.assign(this, kwargs);
5495
+ }
5496
+ toApiJson() {
5497
+ const toReturn = {};
5498
+ if (typeof this.socialServiceId !== 'undefined') {
5499
+ toReturn['socialServiceId'] = this.socialServiceId;
5500
+ }
5501
+ if (typeof this.businessId !== 'undefined') {
5502
+ toReturn['businessId'] = this.businessId;
5503
+ }
5504
+ return toReturn;
5505
+ }
5506
+ }
5469
5507
  class GetBlogConnectionRequest {
5470
5508
  static fromProto(proto) {
5471
5509
  let m = new GetBlogConnectionRequest();
@@ -5902,6 +5940,10 @@ class BlogConnectionApiService {
5902
5940
  return this.http.post(this._host + "/socialposts.v2.BlogConnectionService/Get", request.toApiJson(), this.apiOptions())
5903
5941
  .pipe(map(resp => GetBlogConnectionResponse.fromProto(resp)));
5904
5942
  }
5943
+ delete(r) {
5944
+ const request = (r.toApiJson) ? r : new DeleteBlogConnectionRequest(r);
5945
+ return this.http.post(this._host + "/socialposts.v2.BlogConnectionService/Delete", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
5946
+ }
5905
5947
  }
5906
5948
  BlogConnectionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
5907
5949
  BlogConnectionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionApiService, providedIn: 'root' });
@@ -6958,6 +7000,9 @@ class BlogConnectionService {
6958
7000
  get(getBlogConnectionRequest) {
6959
7001
  return this.blogConnectionApiService.get(getBlogConnectionRequest);
6960
7002
  }
7003
+ delete(deleteBlogConnectionRequest) {
7004
+ return this.blogConnectionApiService.delete(deleteBlogConnectionRequest);
7005
+ }
6961
7006
  }
6962
7007
  BlogConnectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionService, deps: [{ token: BlogConnectionApiService }], target: i0.ɵɵFactoryTarget.Injectable });
6963
7008
  BlogConnectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BlogConnectionService, providedIn: 'root' });
@@ -6985,5 +7030,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6985
7030
  * Generated bundle index. Do not edit.
6986
7031
  */
6987
7032
 
6988
- export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, ChatBotService, ChatBotV2Service, ChatMessage, Collection, ContentGenerationService, CreateBlogConnectionRequest, CreateBlogConnectionResponse, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, CuratedContentPost, DateRangeFilter, 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 };
7033
+ export { Access, Action, ActionType, AiInstructionService, AiInstructions, Ancestry, BlogConnection, BlogConnectionService, CallToAction, CallToActionCallToActionType, 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 };
6989
7034
  //# sourceMappingURL=vendasta-social-posts.mjs.map