@vendasta/social-posts 5.34.1 → 5.36.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.
Files changed (29) hide show
  1. package/esm2020/lib/_internal/campaign.api.service.mjs +49 -0
  2. package/esm2020/lib/_internal/content-generation.api.service.mjs +17 -2
  3. package/esm2020/lib/_internal/enums/api-v2.enum.mjs +33 -1
  4. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  5. package/esm2020/lib/_internal/index.mjs +2 -1
  6. package/esm2020/lib/_internal/interfaces/api-v2.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/campaign.interface.mjs +8 -0
  8. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/api-v2.mjs +397 -1
  10. package/esm2020/lib/_internal/objects/campaign.mjs +157 -0
  11. package/esm2020/lib/_internal/objects/index.mjs +5 -4
  12. package/esm2020/lib/content-generation.service.mjs +4 -1
  13. package/fesm2015/vendasta-social-posts.mjs +689 -44
  14. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  15. package/fesm2020/vendasta-social-posts.mjs +689 -44
  16. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  17. package/lib/_internal/campaign.api.service.d.ts +16 -0
  18. package/lib/_internal/content-generation.api.service.d.ts +5 -2
  19. package/lib/_internal/enums/api-v2.enum.d.ts +30 -1
  20. package/lib/_internal/enums/index.d.ts +1 -1
  21. package/lib/_internal/index.d.ts +1 -0
  22. package/lib/_internal/interfaces/api-v2.interface.d.ts +61 -0
  23. package/lib/_internal/interfaces/campaign.interface.d.ts +27 -0
  24. package/lib/_internal/interfaces/index.d.ts +4 -3
  25. package/lib/_internal/objects/api-v2.d.ts +106 -0
  26. package/lib/_internal/objects/campaign.d.ts +47 -0
  27. package/lib/_internal/objects/index.d.ts +4 -3
  28. package/lib/content-generation.service.d.ts +2 -1
  29. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { CreateCampaignRequest, CreateCampaignResponse, GetCampaignRequest, GetCampaignResponse, UpdateCampaignRequest } from './objects/';
2
+ import { CreateCampaignRequestInterface, GetCampaignRequestInterface, UpdateCampaignRequestInterface } from './interfaces/';
3
+ import { HttpResponse } from '@angular/common/http';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CampaignApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ create(r: CreateCampaignRequest | CreateCampaignRequestInterface): Observable<CreateCampaignResponse>;
12
+ get(r: GetCampaignRequest | GetCampaignRequestInterface): Observable<GetCampaignResponse>;
13
+ update(r: UpdateCampaignRequest | UpdateCampaignRequestInterface): Observable<HttpResponse<null>>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CampaignApiService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<CampaignApiService>;
16
+ }
@@ -1,5 +1,5 @@
1
- import { GenerateAiRequest, GenerateAiResponse, GeneratePostsRequest, GeneratePostsResponse } from './objects/';
2
- import { GenerateAiRequestInterface, GeneratePostsRequestInterface } from './interfaces/';
1
+ import { GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateBlogPostCampaignResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse } from './objects/';
2
+ import { GenerateAiRequestInterface, GenerateBlogPostCampaignRequestInterface, GenerateContentMetaDataRequestInterface, GeneratePostCampaignRequestInterface, 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,9 @@ 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>;
13
+ generateBlogPostCampaign(r: GenerateBlogPostCampaignRequest | GenerateBlogPostCampaignRequestInterface): Observable<GenerateBlogPostCampaignResponse>;
14
+ generatePostCampaign(r: GeneratePostCampaignRequest | GeneratePostCampaignRequestInterface): Observable<GeneratePostCampaignResponse>;
12
15
  static ɵfac: i0.ɵɵFactoryDeclaration<ContentGenerationApiService, never>;
13
16
  static ɵprov: i0.ɵɵInjectableDeclaration<ContentGenerationApiService>;
14
17
  }
@@ -1,10 +1,39 @@
1
1
  export declare enum ContentLength {
2
2
  SHORT_FORM = 0,
3
3
  MEDIUM_FORM = 1,
4
- LONG_FORM = 2
4
+ LONG_FORM = 2,
5
+ OPTIMIZED_FORM = 3
5
6
  }
6
7
  export declare enum GenerateType {
7
8
  TITLE = 0,
8
9
  OUTLINE = 1,
9
10
  BLOG = 2
10
11
  }
12
+ export declare enum Network {
13
+ FACEBOOK = 0,
14
+ INSTAGRAM = 1,
15
+ LINKEDIN = 2,
16
+ TWITTER = 3,
17
+ GMB = 4,
18
+ TIKOTOK = 5,
19
+ YOUTUBE = 6,
20
+ CUSTOM_FEED = 7,
21
+ WORDPRESS = 8
22
+ }
23
+ export declare enum PostType {
24
+ DRAFT = 0,
25
+ SCHEDULED = 1,
26
+ PUBLISHED = 2
27
+ }
28
+ export declare enum Tone {
29
+ DEFAULT = 0,
30
+ FRIENDLY = 1,
31
+ LUXURIOUS = 2,
32
+ PROFESSIONAL = 3,
33
+ RELAXED = 4,
34
+ BOLD = 5,
35
+ ADVENTUROUS = 6,
36
+ WITTY = 7,
37
+ PERSUASIVE = 8,
38
+ EMPATHETIC = 9
39
+ }
@@ -2,6 +2,6 @@ export { CallToActionCallToActionType, SocialPostDeletionStatus, MessageLength,
2
2
  export { RemoveReason, } from './multilocation-post.enum';
3
3
  export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
4
4
  export { MediaType, } from './linkedin-v2.enum';
5
- export { ContentLength, GenerateType, } from './api-v2.enum';
5
+ export { ContentLength, GenerateType, Network, Tone, } from './api-v2.enum';
6
6
  export { ActionType, } from './chat-bot.enum';
7
7
  export { Role, } from './chat-bot-v2.enum';
@@ -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';
@@ -9,6 +9,10 @@ export interface AiInstructionsInterface {
9
9
  created?: Date;
10
10
  updated?: Date;
11
11
  }
12
+ export interface BlogPostCampaignInterface {
13
+ blogPostId?: string;
14
+ blogPostType?: e.PostType;
15
+ }
12
16
  export interface CreateCommonAiInstructionsRequestInterface {
13
17
  businessId?: string;
14
18
  partnerId?: string;
@@ -58,6 +62,31 @@ export interface GenerateAiResponseInterface {
58
62
  multiResult?: MultiResponseInterface;
59
63
  result?: ResponseInterface;
60
64
  }
65
+ export interface GenerateBlogPostCampaignRequestInterface {
66
+ businessId?: string;
67
+ networkType?: e.Network[];
68
+ blogCampaign?: BlogPostCampaignInterface;
69
+ }
70
+ export interface GenerateBlogPostCampaignResponseInterface {
71
+ posts?: PostsInterface[];
72
+ }
73
+ export interface GenerateContentMetaDataRequestInterface {
74
+ businessId?: string;
75
+ titleInput?: TitleGenerationInterface;
76
+ keywordInput?: KeywordGenerationInterface;
77
+ }
78
+ export interface GenerateContentMetaDataResponseInterface {
79
+ generatedTitle?: string;
80
+ generatedKeywords?: KeywordListInterface;
81
+ }
82
+ export interface GeneratePostCampaignRequestInterface {
83
+ businessId?: string;
84
+ networkType?: e.Network[];
85
+ postGeneration?: PostsGenerationInterface;
86
+ }
87
+ export interface GeneratePostCampaignResponseInterface {
88
+ postList?: PostListInterface;
89
+ }
61
90
  export interface GeneratePostsRequestInterface {
62
91
  numberOfPosts?: number;
63
92
  topic?: string;
@@ -88,6 +117,13 @@ export interface ImageCreatedInterface {
88
117
  export interface ImageUrlInterface {
89
118
  url?: string;
90
119
  }
120
+ export interface KeywordGenerationInterface {
121
+ blogPostId?: string;
122
+ keywordCount?: number;
123
+ }
124
+ export interface KeywordListInterface {
125
+ keywords?: string[];
126
+ }
91
127
  export interface ListCuratedContentRequestInterface {
92
128
  businessId?: string;
93
129
  feedId?: string;
@@ -131,6 +167,24 @@ export interface MultiResponseInterface {
131
167
  export interface GeneratePostsResponsePostInterface {
132
168
  text?: string;
133
169
  }
170
+ export interface PostContentInterface {
171
+ singlePost?: SinglePostInterface[];
172
+ }
173
+ export interface PostListInterface {
174
+ topic?: string;
175
+ posts?: PostsInterface[];
176
+ }
177
+ export interface PostsInterface {
178
+ postContent?: PostContentInterface[];
179
+ }
180
+ export interface PostsGenerationInterface {
181
+ topic?: string[];
182
+ goal?: string;
183
+ tone?: e.Tone;
184
+ contentLength?: e.ContentLength;
185
+ noOfPosts?: number;
186
+ useCommonInstr?: boolean;
187
+ }
134
188
  export interface RepostSocialPostRequestInterface {
135
189
  socialPostId?: string;
136
190
  accountGroupId?: string;
@@ -138,6 +192,10 @@ export interface RepostSocialPostRequestInterface {
138
192
  export interface ResponseInterface {
139
193
  content?: string;
140
194
  }
195
+ export interface SinglePostInterface {
196
+ socialNetwork?: e.Network;
197
+ post?: string;
198
+ }
141
199
  export interface SocialPostOutputInterface {
142
200
  internalPostId?: string;
143
201
  socialPost?: SocialPostV2Interface;
@@ -151,6 +209,9 @@ export interface SocialPostRequestInterface {
151
209
  export interface SocialPostResponseInterface {
152
210
  socialPosts?: SocialPostOutputInterface[];
153
211
  }
212
+ export interface TitleGenerationInterface {
213
+ blogTitle?: string;
214
+ }
154
215
  export interface UpdateCommonAiInstructionsRequestInterface {
155
216
  businessId?: string;
156
217
  partnerId?: string;
@@ -0,0 +1,27 @@
1
+ export interface CampaignInterface {
2
+ campaignName?: string;
3
+ businessId?: string;
4
+ partnerId?: string;
5
+ id?: string;
6
+ }
7
+ export interface CreateCampaignRequestInterface {
8
+ name?: string;
9
+ businessId?: string;
10
+ partnerId?: string;
11
+ }
12
+ export interface CreateCampaignResponseInterface {
13
+ campaignId?: string;
14
+ }
15
+ export interface GetCampaignRequestInterface {
16
+ campaignId?: string;
17
+ businessId?: string;
18
+ }
19
+ export interface GetCampaignResponseInterface {
20
+ campaign?: CampaignInterface;
21
+ }
22
+ export interface UpdateCampaignRequestInterface {
23
+ campaignId?: string;
24
+ name?: string;
25
+ businessId?: string;
26
+ partnerId?: string;
27
+ }
@@ -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, BlogPostCampaignInterface, CreateCommonAiInstructionsRequestInterface, CreateCommonAiInstructionsResponseInterface, CreateImageRequestInterface, CreateImageResponseInterface, CuratedContentPostInterface, DeletePostRequestInterface, GenerateAiRequestInterface, GenerateAiResponseInterface, GenerateBlogPostCampaignRequestInterface, GenerateBlogPostCampaignResponseInterface, GenerateContentMetaDataRequestInterface, GenerateContentMetaDataResponseInterface, GeneratePostCampaignRequestInterface, GeneratePostCampaignResponseInterface, GeneratePostsRequestInterface, GeneratePostsResponseInterface, GetCommonAiInstructionsRequestInterface, GetCommonAiInstructionsResponseInterface, ImageBlobInterface, ImageCreatedInterface, ImageUrlInterface, KeywordGenerationInterface, KeywordListInterface, ListCuratedContentRequestInterface, ListCuratedContentResponseInterface, ListUnsplashImagesRequestInterface, ListUnsplashImagesResponseInterface, MediaUploadRequestInterface, MediaUploadResponseInterface, MultiResponseInterface, GeneratePostsResponsePostInterface, PostContentInterface, PostListInterface, PostsInterface, PostsGenerationInterface, RepostSocialPostRequestInterface, ResponseInterface, SinglePostInterface, 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 { CampaignInterface, CreateCampaignRequestInterface, CreateCampaignResponseInterface, GetCampaignRequestInterface, GetCampaignResponseInterface, UpdateCampaignRequestInterface, } from './campaign.interface';
@@ -14,6 +14,13 @@ export declare class AiInstructions implements i.AiInstructionsInterface {
14
14
  constructor(kwargs?: i.AiInstructionsInterface);
15
15
  toApiJson(): object;
16
16
  }
17
+ export declare class BlogPostCampaign implements i.BlogPostCampaignInterface {
18
+ blogPostId: string;
19
+ blogPostType: e.PostType;
20
+ static fromProto(proto: any): BlogPostCampaign;
21
+ constructor(kwargs?: i.BlogPostCampaignInterface);
22
+ toApiJson(): object;
23
+ }
17
24
  export declare class CreateCommonAiInstructionsRequest implements i.CreateCommonAiInstructionsRequestInterface {
18
25
  businessId: string;
19
26
  partnerId: string;
@@ -87,6 +94,49 @@ export declare class GenerateAiResponse implements i.GenerateAiResponseInterface
87
94
  constructor(kwargs?: i.GenerateAiResponseInterface);
88
95
  toApiJson(): object;
89
96
  }
97
+ export declare class GenerateBlogPostCampaignRequest implements i.GenerateBlogPostCampaignRequestInterface {
98
+ businessId: string;
99
+ networkType: e.Network[];
100
+ blogCampaign: BlogPostCampaign;
101
+ static fromProto(proto: any): GenerateBlogPostCampaignRequest;
102
+ constructor(kwargs?: i.GenerateBlogPostCampaignRequestInterface);
103
+ toApiJson(): object;
104
+ }
105
+ export declare class GenerateBlogPostCampaignResponse implements i.GenerateBlogPostCampaignResponseInterface {
106
+ posts: Posts[];
107
+ static fromProto(proto: any): GenerateBlogPostCampaignResponse;
108
+ constructor(kwargs?: i.GenerateBlogPostCampaignResponseInterface);
109
+ toApiJson(): object;
110
+ }
111
+ export declare class GenerateContentMetaDataRequest implements i.GenerateContentMetaDataRequestInterface {
112
+ businessId: string;
113
+ titleInput: TitleGeneration;
114
+ keywordInput: KeywordGeneration;
115
+ static fromProto(proto: any): GenerateContentMetaDataRequest;
116
+ constructor(kwargs?: i.GenerateContentMetaDataRequestInterface);
117
+ toApiJson(): object;
118
+ }
119
+ export declare class GenerateContentMetaDataResponse implements i.GenerateContentMetaDataResponseInterface {
120
+ generatedTitle: string;
121
+ generatedKeywords: KeywordList;
122
+ static fromProto(proto: any): GenerateContentMetaDataResponse;
123
+ constructor(kwargs?: i.GenerateContentMetaDataResponseInterface);
124
+ toApiJson(): object;
125
+ }
126
+ export declare class GeneratePostCampaignRequest implements i.GeneratePostCampaignRequestInterface {
127
+ businessId: string;
128
+ networkType: e.Network[];
129
+ postGeneration: PostsGeneration;
130
+ static fromProto(proto: any): GeneratePostCampaignRequest;
131
+ constructor(kwargs?: i.GeneratePostCampaignRequestInterface);
132
+ toApiJson(): object;
133
+ }
134
+ export declare class GeneratePostCampaignResponse implements i.GeneratePostCampaignResponseInterface {
135
+ postList: PostList;
136
+ static fromProto(proto: any): GeneratePostCampaignResponse;
137
+ constructor(kwargs?: i.GeneratePostCampaignResponseInterface);
138
+ toApiJson(): object;
139
+ }
90
140
  export declare class GeneratePostsRequest implements i.GeneratePostsRequestInterface {
91
141
  numberOfPosts: number;
92
142
  topic: string;
@@ -138,6 +188,19 @@ export declare class ImageUrl implements i.ImageUrlInterface {
138
188
  constructor(kwargs?: i.ImageUrlInterface);
139
189
  toApiJson(): object;
140
190
  }
191
+ export declare class KeywordGeneration implements i.KeywordGenerationInterface {
192
+ blogPostId: string;
193
+ keywordCount: number;
194
+ static fromProto(proto: any): KeywordGeneration;
195
+ constructor(kwargs?: i.KeywordGenerationInterface);
196
+ toApiJson(): object;
197
+ }
198
+ export declare class KeywordList implements i.KeywordListInterface {
199
+ keywords: string[];
200
+ static fromProto(proto: any): KeywordList;
201
+ constructor(kwargs?: i.KeywordListInterface);
202
+ toApiJson(): object;
203
+ }
141
204
  export declare class ListCuratedContentRequest implements i.ListCuratedContentRequestInterface {
142
205
  businessId: string;
143
206
  feedId: string;
@@ -205,6 +268,36 @@ export declare class GeneratePostsResponsePost implements i.GeneratePostsRespons
205
268
  constructor(kwargs?: i.GeneratePostsResponsePostInterface);
206
269
  toApiJson(): object;
207
270
  }
271
+ export declare class PostContent implements i.PostContentInterface {
272
+ singlePost: SinglePost[];
273
+ static fromProto(proto: any): PostContent;
274
+ constructor(kwargs?: i.PostContentInterface);
275
+ toApiJson(): object;
276
+ }
277
+ export declare class PostList implements i.PostListInterface {
278
+ topic: string;
279
+ posts: Posts[];
280
+ static fromProto(proto: any): PostList;
281
+ constructor(kwargs?: i.PostListInterface);
282
+ toApiJson(): object;
283
+ }
284
+ export declare class Posts implements i.PostsInterface {
285
+ postContent: PostContent[];
286
+ static fromProto(proto: any): Posts;
287
+ constructor(kwargs?: i.PostsInterface);
288
+ toApiJson(): object;
289
+ }
290
+ export declare class PostsGeneration implements i.PostsGenerationInterface {
291
+ topic: string[];
292
+ goal: string;
293
+ tone: e.Tone;
294
+ contentLength: e.ContentLength;
295
+ noOfPosts: number;
296
+ useCommonInstr: boolean;
297
+ static fromProto(proto: any): PostsGeneration;
298
+ constructor(kwargs?: i.PostsGenerationInterface);
299
+ toApiJson(): object;
300
+ }
208
301
  export declare class RepostSocialPostRequest implements i.RepostSocialPostRequestInterface {
209
302
  socialPostId: string;
210
303
  accountGroupId: string;
@@ -218,6 +311,13 @@ export declare class Response implements i.ResponseInterface {
218
311
  constructor(kwargs?: i.ResponseInterface);
219
312
  toApiJson(): object;
220
313
  }
314
+ export declare class SinglePost implements i.SinglePostInterface {
315
+ socialNetwork: e.Network;
316
+ post: string;
317
+ static fromProto(proto: any): SinglePost;
318
+ constructor(kwargs?: i.SinglePostInterface);
319
+ toApiJson(): object;
320
+ }
221
321
  export declare class SocialPostOutput implements i.SocialPostOutputInterface {
222
322
  internalPostId: string;
223
323
  socialPost: SocialPostV2;
@@ -240,6 +340,12 @@ export declare class SocialPostResponse implements i.SocialPostResponseInterface
240
340
  constructor(kwargs?: i.SocialPostResponseInterface);
241
341
  toApiJson(): object;
242
342
  }
343
+ export declare class TitleGeneration implements i.TitleGenerationInterface {
344
+ blogTitle: string;
345
+ static fromProto(proto: any): TitleGeneration;
346
+ constructor(kwargs?: i.TitleGenerationInterface);
347
+ toApiJson(): object;
348
+ }
243
349
  export declare class UpdateCommonAiInstructionsRequest implements i.UpdateCommonAiInstructionsRequestInterface {
244
350
  businessId: string;
245
351
  partnerId: string;
@@ -0,0 +1,47 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class Campaign implements i.CampaignInterface {
4
+ campaignName: string;
5
+ businessId: string;
6
+ partnerId: string;
7
+ id: string;
8
+ static fromProto(proto: any): Campaign;
9
+ constructor(kwargs?: i.CampaignInterface);
10
+ toApiJson(): object;
11
+ }
12
+ export declare class CreateCampaignRequest implements i.CreateCampaignRequestInterface {
13
+ name: string;
14
+ businessId: string;
15
+ partnerId: string;
16
+ static fromProto(proto: any): CreateCampaignRequest;
17
+ constructor(kwargs?: i.CreateCampaignRequestInterface);
18
+ toApiJson(): object;
19
+ }
20
+ export declare class CreateCampaignResponse implements i.CreateCampaignResponseInterface {
21
+ campaignId: string;
22
+ static fromProto(proto: any): CreateCampaignResponse;
23
+ constructor(kwargs?: i.CreateCampaignResponseInterface);
24
+ toApiJson(): object;
25
+ }
26
+ export declare class GetCampaignRequest implements i.GetCampaignRequestInterface {
27
+ campaignId: string;
28
+ businessId: string;
29
+ static fromProto(proto: any): GetCampaignRequest;
30
+ constructor(kwargs?: i.GetCampaignRequestInterface);
31
+ toApiJson(): object;
32
+ }
33
+ export declare class GetCampaignResponse implements i.GetCampaignResponseInterface {
34
+ campaign: Campaign;
35
+ static fromProto(proto: any): GetCampaignResponse;
36
+ constructor(kwargs?: i.GetCampaignResponseInterface);
37
+ toApiJson(): object;
38
+ }
39
+ export declare class UpdateCampaignRequest implements i.UpdateCampaignRequestInterface {
40
+ campaignId: string;
41
+ name: string;
42
+ businessId: string;
43
+ partnerId: string;
44
+ static fromProto(proto: any): UpdateCampaignRequest;
45
+ constructor(kwargs?: i.UpdateCampaignRequestInterface);
46
+ toApiJson(): object;
47
+ }
@@ -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, BlogPostCampaign, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CuratedContentPost, DeletePostRequest, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateBlogPostCampaignResponse, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, ImageBlob, ImageCreated, ImageUrl, KeywordGeneration, KeywordList, ListCuratedContentRequest, ListCuratedContentResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, MultiResponse, GeneratePostsResponsePost, PostContent, PostList, Posts, PostsGeneration, RepostSocialPostRequest, Response, SinglePost, 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 { Campaign, CreateCampaignRequest, CreateCampaignResponse, GetCampaignRequest, GetCampaignResponse, UpdateCampaignRequest, } 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.1",
3
+ "version": "5.36.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"