@vendasta/social-posts 5.34.0 → 5.35.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.
@@ -0,0 +1,13 @@
1
+ import { CreateCampaignRequest, CreateCampaignResponse } from './objects/';
2
+ import { CreateCampaignRequestInterface } from './interfaces/';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CampaignApiService {
6
+ private readonly hostService;
7
+ private readonly http;
8
+ private _host;
9
+ private apiOptions;
10
+ create(r: CreateCampaignRequest | CreateCampaignRequestInterface): Observable<CreateCampaignResponse>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CampaignApiService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<CampaignApiService>;
13
+ }
@@ -1,5 +1,5 @@
1
- import { GenerateAiRequest, GenerateAiResponse, GeneratePostsRequest, GeneratePostsResponse } from './objects/';
2
- import { GenerateAiRequestInterface, GeneratePostsRequestInterface } from './interfaces/';
1
+ import { GenerateAiRequest, GenerateAiResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostsRequest, GeneratePostsResponse } from './objects/';
2
+ import { GenerateAiRequestInterface, GenerateContentMetaDataRequestInterface, GeneratePostsRequestInterface } from './interfaces/';
3
3
  import { Observable } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ContentGenerationApiService {
@@ -9,6 +9,7 @@ export declare class ContentGenerationApiService {
9
9
  private apiOptions;
10
10
  generatePosts(r: GeneratePostsRequest | GeneratePostsRequestInterface): Observable<GeneratePostsResponse>;
11
11
  generate(r: GenerateAiRequest | GenerateAiRequestInterface): Observable<GenerateAiResponse>;
12
+ generateContentMetaData(r: GenerateContentMetaDataRequest | GenerateContentMetaDataRequestInterface): Observable<GenerateContentMetaDataResponse>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ContentGenerationApiService, never>;
13
14
  static ɵprov: i0.ɵɵInjectableDeclaration<ContentGenerationApiService>;
14
15
  }
@@ -3,6 +3,7 @@ export * from './objects';
3
3
  export * from './interfaces';
4
4
  export { BlogConnectionApiService } from './blog-connection.api.service';
5
5
  export { BlogPostsApiService } from './blog-posts.api.service';
6
+ export { CampaignApiService } from './campaign.api.service';
6
7
  export { ChatBotApiService } from './chat-bot.api.service';
7
8
  export { ChatBotV2ApiService } from './chat-bot-v2.api.service';
8
9
  export { CommonAiInstructionsApiService } from './common-ai-instructions.api.service';
@@ -6,6 +6,8 @@ export interface AiInstructionsInterface {
6
6
  commonAiInstructions?: string;
7
7
  dataUsageStatus?: boolean;
8
8
  aiBlogInstructions?: string;
9
+ created?: Date;
10
+ updated?: Date;
9
11
  }
10
12
  export interface CreateCommonAiInstructionsRequestInterface {
11
13
  businessId?: string;
@@ -56,6 +58,15 @@ export interface GenerateAiResponseInterface {
56
58
  multiResult?: MultiResponseInterface;
57
59
  result?: ResponseInterface;
58
60
  }
61
+ export interface GenerateContentMetaDataRequestInterface {
62
+ businessId?: string;
63
+ titleInput?: TitleGenerationInterface;
64
+ keywordInput?: KeywordGenerationInterface;
65
+ }
66
+ export interface GenerateContentMetaDataResponseInterface {
67
+ generatedTitle?: string;
68
+ generatedKeywords?: KeywordListInterface;
69
+ }
59
70
  export interface GeneratePostsRequestInterface {
60
71
  numberOfPosts?: number;
61
72
  topic?: string;
@@ -86,6 +97,13 @@ export interface ImageCreatedInterface {
86
97
  export interface ImageUrlInterface {
87
98
  url?: string;
88
99
  }
100
+ export interface KeywordGenerationInterface {
101
+ blogPostId?: string;
102
+ keywordCount?: number;
103
+ }
104
+ export interface KeywordListInterface {
105
+ keywords?: string[];
106
+ }
89
107
  export interface ListCuratedContentRequestInterface {
90
108
  businessId?: string;
91
109
  feedId?: string;
@@ -149,6 +167,9 @@ export interface SocialPostRequestInterface {
149
167
  export interface SocialPostResponseInterface {
150
168
  socialPosts?: SocialPostOutputInterface[];
151
169
  }
170
+ export interface TitleGenerationInterface {
171
+ blogTitle?: string;
172
+ }
152
173
  export interface UpdateCommonAiInstructionsRequestInterface {
153
174
  businessId?: string;
154
175
  partnerId?: string;
@@ -0,0 +1,8 @@
1
+ export interface CreateCampaignRequestInterface {
2
+ name?: string;
3
+ businessId?: string;
4
+ partnerId?: string;
5
+ }
6
+ export interface CreateCampaignResponseInterface {
7
+ campaignId?: string;
8
+ }
@@ -1,6 +1,6 @@
1
1
  export { FieldMaskInterface, } from './field-mask.interface';
2
2
  export { HashtagInterface, } from './hashtag.interface';
3
- export { AuthorInterface, BlogPostCustomizationInterface, CallToActionInterface, CategoryInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
3
+ export { BlogPostCustomizationInterface, CallToActionInterface, ErrorInterface, EventInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
4
4
  export { LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, PostActionInterface, PostCustomizationInterface, PostEventInterface, } from './multilocation-post.interface';
5
5
  export { PixabayImageInterface, } from './pixabay-image.interface';
6
6
  export { FacebookPostStatsInterface, SocialPostStatsInterface, TwitterPostStatsInterface, } from './social-post-stats.interface';
@@ -10,8 +10,9 @@ export { AccessInterface, } from './annotations.interface';
10
10
  export { LinkV2Interface, MetadataV2Interface, PostActionV2Interface, PostContentV2Interface, PostCustomizationV2Interface, PostEventV2Interface, PostMediaV2Interface, SocialPostV2Interface, TikTokCustomizationV2Interface, YoutubeCustomizationV2Interface, } from './social-post-v2.interface';
11
11
  export { MediaInterface, } from './linkedin-v2.interface';
12
12
  export { AncestryInterface, CollectionInterface, ImageInterface, LinksInterface, PhotoInterface, SocialInterface, SourceInterface, SubAncestryInterface, TagsInterface, UrlsInterface, UserInterface, UserLinkInterface, } from './unsplash-image.interface';
13
- export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, CuratedContentPostInterface, DeletePostRequestInterface, GenerateAiRequestInterface, GenerateAiResponseInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, ListCuratedContentRequestInterface, ListCuratedContentResponseInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, MultiResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, ResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, UploadToStorageRequestInterface, UploadToStorageResponseInterface, UploadedMediaInterface, } from './api-v2.interface';
13
+ export { AiInstructionsInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, CuratedContentPostInterface, DeletePostRequestInterface, GenerateAiRequestInterface, GenerateAiResponseInterface, GenerateContentMetaDataRequestInterface, GenerateContentMetaDataResponseInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, KeywordGenerationInterface, KeywordListInterface, ListCuratedContentRequestInterface, ListCuratedContentResponseInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, MultiResponseInterface, GeneratePostsResponsePostInterface, RepostSocialPostRequestInterface, ResponseInterface, SocialPostOutputInterface, SocialPostRequestInterface, SocialPostResponseInterface, TitleGenerationInterface, UpdateCommonAiInstructionsRequestInterface, UpdateCommonAiInstructionsResponseInterface, UpdateSocialPostRequestInterface, UpdateSocialPostResponseInterface, UploadToStorageRequestInterface, UploadToStorageResponseInterface, UploadedMediaInterface, } from './api-v2.interface';
14
14
  export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
15
15
  export { ChatMessageInterface, SendMessageV2RequestInterface, SendMessageV2ResponseInterface, } from './chat-bot-v2.interface';
16
16
  export { BlogConnectionInterface, CreateBlogConnectionRequestInterface, CreateBlogConnectionResponseInterface, DeleteBlogConnectionRequestInterface, GetBlogConnectionRequestInterface, GetBlogConnectionResponseInterface, ListBlogConnectionRequestInterface, ListBlogConnectionResponseInterface, UpdateBlogConnectionRequestInterface, } from './blog-connection.interface';
17
- export { AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
17
+ export { AuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
18
+ export { CreateCampaignRequestInterface, CreateCampaignResponseInterface, } from './campaign.interface';
@@ -8,6 +8,8 @@ export declare class AiInstructions implements i.AiInstructionsInterface {
8
8
  commonAiInstructions: string;
9
9
  dataUsageStatus: boolean;
10
10
  aiBlogInstructions: string;
11
+ created: Date;
12
+ updated: Date;
11
13
  static fromProto(proto: any): AiInstructions;
12
14
  constructor(kwargs?: i.AiInstructionsInterface);
13
15
  toApiJson(): object;
@@ -85,6 +87,21 @@ export declare class GenerateAiResponse implements i.GenerateAiResponseInterface
85
87
  constructor(kwargs?: i.GenerateAiResponseInterface);
86
88
  toApiJson(): object;
87
89
  }
90
+ export declare class GenerateContentMetaDataRequest implements i.GenerateContentMetaDataRequestInterface {
91
+ businessId: string;
92
+ titleInput: TitleGeneration;
93
+ keywordInput: KeywordGeneration;
94
+ static fromProto(proto: any): GenerateContentMetaDataRequest;
95
+ constructor(kwargs?: i.GenerateContentMetaDataRequestInterface);
96
+ toApiJson(): object;
97
+ }
98
+ export declare class GenerateContentMetaDataResponse implements i.GenerateContentMetaDataResponseInterface {
99
+ generatedTitle: string;
100
+ generatedKeywords: KeywordList;
101
+ static fromProto(proto: any): GenerateContentMetaDataResponse;
102
+ constructor(kwargs?: i.GenerateContentMetaDataResponseInterface);
103
+ toApiJson(): object;
104
+ }
88
105
  export declare class GeneratePostsRequest implements i.GeneratePostsRequestInterface {
89
106
  numberOfPosts: number;
90
107
  topic: string;
@@ -136,6 +153,19 @@ export declare class ImageUrl implements i.ImageUrlInterface {
136
153
  constructor(kwargs?: i.ImageUrlInterface);
137
154
  toApiJson(): object;
138
155
  }
156
+ export declare class KeywordGeneration implements i.KeywordGenerationInterface {
157
+ blogPostId: string;
158
+ keywordCount: number;
159
+ static fromProto(proto: any): KeywordGeneration;
160
+ constructor(kwargs?: i.KeywordGenerationInterface);
161
+ toApiJson(): object;
162
+ }
163
+ export declare class KeywordList implements i.KeywordListInterface {
164
+ keywords: string[];
165
+ static fromProto(proto: any): KeywordList;
166
+ constructor(kwargs?: i.KeywordListInterface);
167
+ toApiJson(): object;
168
+ }
139
169
  export declare class ListCuratedContentRequest implements i.ListCuratedContentRequestInterface {
140
170
  businessId: string;
141
171
  feedId: string;
@@ -238,6 +268,12 @@ export declare class SocialPostResponse implements i.SocialPostResponseInterface
238
268
  constructor(kwargs?: i.SocialPostResponseInterface);
239
269
  toApiJson(): object;
240
270
  }
271
+ export declare class TitleGeneration implements i.TitleGenerationInterface {
272
+ blogTitle: string;
273
+ static fromProto(proto: any): TitleGeneration;
274
+ constructor(kwargs?: i.TitleGenerationInterface);
275
+ toApiJson(): object;
276
+ }
241
277
  export declare class UpdateCommonAiInstructionsRequest implements i.UpdateCommonAiInstructionsRequestInterface {
242
278
  businessId: string;
243
279
  partnerId: string;
@@ -0,0 +1,16 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class CreateCampaignRequest implements i.CreateCampaignRequestInterface {
4
+ name: string;
5
+ businessId: string;
6
+ partnerId: string;
7
+ static fromProto(proto: any): CreateCampaignRequest;
8
+ constructor(kwargs?: i.CreateCampaignRequestInterface);
9
+ toApiJson(): object;
10
+ }
11
+ export declare class CreateCampaignResponse implements i.CreateCampaignResponseInterface {
12
+ campaignId: string;
13
+ static fromProto(proto: any): CreateCampaignResponse;
14
+ constructor(kwargs?: i.CreateCampaignResponseInterface);
15
+ toApiJson(): object;
16
+ }
@@ -1,6 +1,6 @@
1
1
  export { FieldMask, } from './field-mask';
2
2
  export { Hashtag, } from './hashtag';
3
- export { Author, BlogPostCustomization, CallToAction, Category, Error, Event, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
3
+ export { BlogPostCustomization, CallToAction, Error, Event, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
4
4
  export { Location, MultilocationPost, MultilocationPostError, PostAction, PostCustomization, PostEvent, } from './multilocation-post';
5
5
  export { PixabayImage, } from './pixabay-image';
6
6
  export { FacebookPostStats, SocialPostStats, TwitterPostStats, } from './social-post-stats';
@@ -10,8 +10,9 @@ export { Access, } from './annotations';
10
10
  export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, TikTokCustomizationV2, YoutubeCustomizationV2, } from './social-post-v2';
11
11
  export { Media, } from './linkedin-v2';
12
12
  export { Ancestry, Collection, Image, Links, Photo, Social, Source, SubAncestry, Tags, Urls, User, UserLink, } from './unsplash-image';
13
- export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CuratedContentPost, DeletePostRequest, GenerateAiRequest, GenerateAiResponse, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, ListCuratedContentRequest, ListCuratedContentResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, MultiResponse, GeneratePostsResponsePost, RepostSocialPostRequest, Response, SocialPostOutput, SocialPostRequest, SocialPostResponse, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, } from './api-v2';
13
+ export { AiInstructions, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CuratedContentPost, DeletePostRequest, GenerateAiRequest, GenerateAiResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, KeywordGeneration, KeywordList, ListCuratedContentRequest, ListCuratedContentResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, MultiResponse, GeneratePostsResponsePost, RepostSocialPostRequest, Response, SocialPostOutput, SocialPostRequest, SocialPostResponse, TitleGeneration, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, } from './api-v2';
14
14
  export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
15
15
  export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
16
16
  export { BlogConnection, CreateBlogConnectionRequest, CreateBlogConnectionResponse, DeleteBlogConnectionRequest, GetBlogConnectionRequest, GetBlogConnectionResponse, ListBlogConnectionRequest, ListBlogConnectionResponse, UpdateBlogConnectionRequest, } from './blog-connection';
17
- export { AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
17
+ export { Author, AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, Category, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
18
+ export { CreateCampaignRequest, CreateCampaignResponse, } from './campaign';
@@ -1,11 +1,12 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ContentGenerationApiService, GenerateAiRequest, GenerateAiRequestInterface, GenerateAiResponse, GeneratePostsRequest, GeneratePostsRequestInterface, GeneratePostsResponse } from './_internal';
2
+ import { ContentGenerationApiService, GenerateAiRequest, GenerateAiRequestInterface, GenerateAiResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataRequestInterface, GenerateContentMetaDataResponse, GeneratePostsRequest, GeneratePostsRequestInterface, GeneratePostsResponse } from './_internal';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ContentGenerationService {
5
5
  private contentGenerationApiService;
6
6
  constructor(contentGenerationApiService: ContentGenerationApiService);
7
7
  generatePosts(r: GeneratePostsRequest | GeneratePostsRequestInterface): Observable<GeneratePostsResponse>;
8
8
  generate(r: GenerateAiRequest | GenerateAiRequestInterface): Observable<GenerateAiResponse>;
9
+ generateContentMetaData(r: GenerateContentMetaDataRequest | GenerateContentMetaDataRequestInterface): Observable<GenerateContentMetaDataResponse>;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ContentGenerationService, never>;
10
11
  static ɵprov: i0.ɵɵInjectableDeclaration<ContentGenerationService>;
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.34.0",
3
+ "version": "5.35.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"