@vendasta/social-posts 5.48.0 → 5.49.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 (27) hide show
  1. package/esm2020/lib/_internal/enums/drafts-api.enum.mjs +7 -1
  2. package/esm2020/lib/_internal/enums/image-generation.enum.mjs +42 -0
  3. package/esm2020/lib/_internal/enums/index.mjs +5 -4
  4. package/esm2020/lib/_internal/image-generation.api.service.mjs +40 -0
  5. package/esm2020/lib/_internal/index.mjs +2 -1
  6. package/esm2020/lib/_internal/interfaces/drafts-api.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/image-generation.interface.mjs +2 -0
  8. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  9. package/esm2020/lib/_internal/objects/drafts-api.mjs +7 -1
  10. package/esm2020/lib/_internal/objects/image-generation.mjs +155 -0
  11. package/esm2020/lib/_internal/objects/index.mjs +4 -3
  12. package/fesm2015/vendasta-social-posts.mjs +316 -76
  13. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  14. package/fesm2020/vendasta-social-posts.mjs +316 -76
  15. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  16. package/lib/_internal/enums/drafts-api.enum.d.ts +5 -0
  17. package/lib/_internal/enums/image-generation.enum.d.ts +30 -0
  18. package/lib/_internal/enums/index.d.ts +4 -3
  19. package/lib/_internal/image-generation.api.service.d.ts +13 -0
  20. package/lib/_internal/index.d.ts +1 -0
  21. package/lib/_internal/interfaces/drafts-api.interface.d.ts +1 -0
  22. package/lib/_internal/interfaces/image-generation.interface.d.ts +28 -0
  23. package/lib/_internal/interfaces/index.d.ts +3 -2
  24. package/lib/_internal/objects/drafts-api.d.ts +1 -0
  25. package/lib/_internal/objects/image-generation.d.ts +42 -0
  26. package/lib/_internal/objects/index.d.ts +3 -2
  27. package/package.json +1 -1
@@ -1,3 +1,8 @@
1
+ export declare enum FilterBy {
2
+ FILTER_BY_INVALID = 0,
3
+ FILTER_BY_UPDATED = 1,
4
+ FILTER_BY_SCHEDULED = 2
5
+ }
1
6
  export declare enum VisibilityType {
2
7
  VISIBILITY_TYPE_INVALID = 0,
3
8
  VISIBILITY_TYPE_ALL = 1,
@@ -0,0 +1,30 @@
1
+ export declare enum ImageBackground {
2
+ IMAGE_BACKGROUND_UNSPECIFIED = 0,
3
+ IMAGE_BACKGROUND_TRANSPARENT = 1,
4
+ IMAGE_BACKGROUND_OPAQUE = 2,
5
+ IMAGE_BACKGROUND_AUTO = 3
6
+ }
7
+ export declare enum ImageModel {
8
+ IMAGE_MODEL_UNSPECIFIED = 0,
9
+ DALL_E_2 = 1,
10
+ DALL_E_3 = 2,
11
+ GPT_IMAGE_1 = 3,
12
+ GPT_IMAGE_1_5 = 4
13
+ }
14
+ export declare enum ImageOutputFormat {
15
+ IMAGE_OUTPUT_FORMAT_UNSPECIFIED = 0,
16
+ IMAGE_OUTPUT_FORMAT_PNG = 1,
17
+ IMAGE_OUTPUT_FORMAT_JPEG = 2,
18
+ IMAGE_OUTPUT_FORMAT_WEBP = 3
19
+ }
20
+ export declare enum ImageQuality {
21
+ IMAGE_QUALITY_UNSPECIFIED = 0,
22
+ IMAGE_QUALITY_LOW = 1,
23
+ IMAGE_QUALITY_MEDIUM = 2,
24
+ IMAGE_QUALITY_STANDARD = 3
25
+ }
26
+ export declare enum ImageStyle {
27
+ IMAGE_STYLE_UNSPECIFIED = 0,
28
+ IMAGE_STYLE_VIVID = 1,
29
+ IMAGE_STYLE_NATURAL = 2
30
+ }
@@ -4,11 +4,12 @@ export { SortBySortDirection, } from './engagement.enum';
4
4
  export { ImageSource, NamespaceType, } from './stock-image.enum';
5
5
  export { BulkPostStatus, } from './api.enum';
6
6
  export { PostStatusV2, PostTypeV2, YoutubeCustomizationV2PrivacyStatusV2, } from './social-post-v2.enum';
7
- export { MediaType, } from './linkedin-v2.enum';
7
+ export { MediaType as LinkedInMediaType, } from './linkedin-v2.enum';
8
8
  export { ProvisionAction, } from './provisioning.enum';
9
9
  export { ContentLength, GenerateType, Network, PostCategory, Tone, } from './api-v2.enum';
10
10
  export { ActionType, } from './chat-bot.enum';
11
11
  export { Role, } from './chat-bot-v2.enum';
12
12
  export { DraftType, DraftYoutubeCustomizationPrivacyStatus, } from './drafts.enum';
13
- export { VisibilityType, } from './drafts-api.enum';
14
- export { CallToActionType, MediaContentType, PublishMode, SocialContentType, } from './social-content.enum';
13
+ export { FilterBy, VisibilityType, } from './drafts-api.enum';
14
+ export { CallToActionType, MediaContentType, MediaType, PublishMode, SocialContentType, } from './social-content.enum';
15
+ export { ImageBackground, ImageModel, ImageOutputFormat, ImageQuality, ImageStyle, } from './image-generation.enum';
@@ -0,0 +1,13 @@
1
+ import { CreateOrEditRequest, CreateOrEditResponse } from './objects/';
2
+ import { CreateOrEditRequestInterface } from './interfaces/';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ImageGenerationApiService {
6
+ private readonly hostService;
7
+ private readonly http;
8
+ private _host;
9
+ private apiOptions;
10
+ createOrEdit(r: CreateOrEditRequest | CreateOrEditRequestInterface): Observable<CreateOrEditResponse>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageGenerationApiService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ImageGenerationApiService>;
13
+ }
@@ -12,6 +12,7 @@ export { ContentGenerationApiService } from './content-generation.api.service';
12
12
  export { CuratedContentApiService } from './curated-content.api.service';
13
13
  export { DraftsApiService } from './drafts.api.service';
14
14
  export { HashTagsApiService } from './hash-tags.api.service';
15
+ export { ImageGenerationApiService } from './image-generation.api.service';
15
16
  export { ImageLibraryApiService } from './image-library.api.service';
16
17
  export { LinkedinApiService } from './linkedin.api.service';
17
18
  export { MultilocationPostApiService } from './multilocation-post.api.service';
@@ -61,6 +61,7 @@ export interface ListDraftsRequestInterface {
61
61
  searchTerm?: string;
62
62
  networks?: string[];
63
63
  visibilityType?: e.VisibilityType;
64
+ filterBy?: e.FilterBy;
64
65
  }
65
66
  export interface ListDraftsResponseInterface {
66
67
  drafts?: DraftInterface[];
@@ -0,0 +1,28 @@
1
+ import { NamespaceInterface } from './stock-image.interface';
2
+ import * as e from '../enums';
3
+ export interface CreateOrEditRequestInterface {
4
+ namespace?: NamespaceInterface;
5
+ prompt?: string;
6
+ imageInputs?: ImageInputSourceInterface[];
7
+ model?: e.ImageModel;
8
+ imageCount?: number;
9
+ size?: string;
10
+ quality?: e.ImageQuality;
11
+ responseFormat?: string;
12
+ style?: e.ImageStyle;
13
+ background?: e.ImageBackground;
14
+ outputFormat?: e.ImageOutputFormat;
15
+ moderation?: string;
16
+ }
17
+ export interface CreateOrEditResponseInterface {
18
+ images?: GeneratedImageInterface[];
19
+ }
20
+ export interface GeneratedImageInterface {
21
+ url?: string;
22
+ b64Json?: string;
23
+ revisedPrompt?: string;
24
+ }
25
+ export interface ImageInputSourceInterface {
26
+ url?: string;
27
+ data?: string;
28
+ }
@@ -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, FacebookPageInfoInterface, MLPostCategoryInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialCampaignInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
3
+ export { BlogPostCustomizationInterface, CallToActionInterface, ErrorInterface, EventInterface, FacebookPageInfoInterface, MLPostCategoryInterface, MediaEntryInterface, MetaDataInterface, PostTemplateInterface, SSIDPostTypeInterface, SchedulePostStatusInterface, SocialCampaignInterface, SocialPostInterface, SocialPostDataInterface, TikTokCustomizationInterface, YoutubeCustomizationInterface, } from './social-posts.interface';
4
4
  export { BulkUploadMultilocationInterface, LocationInterface, MultilocationPostInterface, MultilocationPostErrorInterface, MultilocationServicesInterface, PostActionInterface, PostCustomizationInterface, PostCustomizationByLocationInterface, PostEventInterface, } from './multilocation-post.interface';
5
5
  export { PixabayImageInterface, } from './pixabay-image.interface';
6
6
  export { FacebookPostStatsInterface, InstagramPostStatsInterface, LinkedInPostStatsInterface, SocialPostStatsInterface, TikTokPostStatsInterface, TwitterPostStatsInterface, YoutubePostStatsInterface, } from './social-post-stats.interface';
@@ -19,8 +19,9 @@ export { AiInstructionsInterface, BlogPostCampaignInterface, CreateCommonAiInstr
19
19
  export { ActionInterface, EndChatRequestInterface, SendMessageRequestInterface, SendMessageResponseInterface, StartChatRequestInterface, StartChatResponseInterface, } from './chat-bot.interface';
20
20
  export { ChatMessageInterface, SendMessageV2RequestInterface, SendMessageV2ResponseInterface, } from './chat-bot-v2.interface';
21
21
  export { BlogConnectionInterface, CreateBlogConnectionRequestInterface, CreateBlogConnectionResponseInterface, DeleteBlogConnectionRequestInterface, GetBlogConnectionRequestInterface, GetBlogConnectionResponseInterface, ListBlogConnectionRequestInterface, ListBlogConnectionResponseInterface, UpdateBlogConnectionRequestInterface, } from './blog-connection.interface';
22
- export { AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
22
+ export { AuthorInterface, AuthorsRequestInterface, AuthorsResponseInterface, BlogImageInterface, BlogPostInterface, BlogVideoInterface, CategoryInterface, CategoryRequestInterface, CategoryResponseInterface, DeleteBlogPostRequestInterface, GetMultiBlogPostsRequestInterface, GetMultiBlogPostsResponseInterface, MediaPropertyInterface, PublishPostRequestInterface, PublishPostResponseInterface, RepostBlogPostRequestInterface, StatusRequestInterface, StatusResponseInterface, UpdateBlogPostRequestInterface, } from './wordpress-plugin.interface';
23
23
  export { CampaignInterface, CreateCampaignRequestInterface, CreateCampaignResponseInterface, DeleteCampaignRequestInterface, GetCampaignRequestInterface, GetCampaignResponseInterface, GetMultiCampaignsRequestInterface, GetMultiCampaignsResponseInterface, UpdateCampaignIdRequestInterface, UpdateCampaignRequestInterface, } from './campaign.interface';
24
24
  export { CampaignCustomizationInterface, CategoriesInterface, DraftInterface, DraftAuthorInterface, DraftBlogPostCustomizationInterface, DraftMediaInterface, DraftMetaDataInterface, DraftTikTokCustomizationInterface, DraftYoutubeCustomizationInterface, GMBPostCustomizationInterface, MlDraftPostInterface, SSIDDraftTypeInterface, } from './drafts.interface';
25
25
  export { CreateDraftRequestInterface, CreateDraftResponseInterface, CreateMultiDraftsRequestInterface, CreateMultiDraftsResponseInterface, DeleteDraftRequestInterface, GetDraftRequestInterface, GetDraftResponseInterface, ListDraftsByNetworkIdentifierRequestInterface, ListDraftsByNetworkIdentifierResponseInterface, ListDraftsRequestInterface, ListDraftsResponseInterface, ListMultilocationDraftsRequestInterface, ListMultilocationDraftsResponseInterface, MultiDeleteMLDraftPostsRequestInterface, UpdateDraftRequestInterface, UpdateDraftResponseInterface, UpdateMultiMLDraftsRequestInterface, } from './drafts-api.interface';
26
26
  export { BlogPostOptionsInterface, ContentMetadataInterface, CreateContentRequestInterface, CreateContentResponseInterface, GMBCustomizationInterface, LinkInterface, MediaItemInterface, SocialContentItemInterface, SocialContentResultInterface, SsidPostTypeInterface, } from './social-content.interface';
27
+ export { CreateOrEditRequestInterface, CreateOrEditResponseInterface, GeneratedImageInterface, ImageInputSourceInterface, } from './image-generation.interface';
@@ -90,6 +90,7 @@ export declare class ListDraftsRequest implements i.ListDraftsRequestInterface {
90
90
  searchTerm: string;
91
91
  networks: string[];
92
92
  visibilityType: e.VisibilityType;
93
+ filterBy: e.FilterBy;
93
94
  static fromProto(proto: any): ListDraftsRequest;
94
95
  constructor(kwargs?: i.ListDraftsRequestInterface);
95
96
  toApiJson(): object;
@@ -0,0 +1,42 @@
1
+ import * as i from '../interfaces';
2
+ import { Namespace } from './stock-image';
3
+ import * as e from '../enums';
4
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class CreateOrEditRequest implements i.CreateOrEditRequestInterface {
6
+ namespace: Namespace;
7
+ prompt: string;
8
+ imageInputs: ImageInputSource[];
9
+ model: e.ImageModel;
10
+ imageCount: number;
11
+ size: string;
12
+ quality: e.ImageQuality;
13
+ responseFormat: string;
14
+ style: e.ImageStyle;
15
+ background: e.ImageBackground;
16
+ outputFormat: e.ImageOutputFormat;
17
+ moderation: string;
18
+ static fromProto(proto: any): CreateOrEditRequest;
19
+ constructor(kwargs?: i.CreateOrEditRequestInterface);
20
+ toApiJson(): object;
21
+ }
22
+ export declare class CreateOrEditResponse implements i.CreateOrEditResponseInterface {
23
+ images: GeneratedImage[];
24
+ static fromProto(proto: any): CreateOrEditResponse;
25
+ constructor(kwargs?: i.CreateOrEditResponseInterface);
26
+ toApiJson(): object;
27
+ }
28
+ export declare class GeneratedImage implements i.GeneratedImageInterface {
29
+ url: string;
30
+ b64Json: string;
31
+ revisedPrompt: string;
32
+ static fromProto(proto: any): GeneratedImage;
33
+ constructor(kwargs?: i.GeneratedImageInterface);
34
+ toApiJson(): object;
35
+ }
36
+ export declare class ImageInputSource implements i.ImageInputSourceInterface {
37
+ url: string;
38
+ data: string;
39
+ static fromProto(proto: any): ImageInputSource;
40
+ constructor(kwargs?: i.ImageInputSourceInterface);
41
+ toApiJson(): object;
42
+ }
@@ -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, FacebookPageInfo, MLPostCategory, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialCampaign, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
3
+ export { BlogPostCustomization, CallToAction, Error, Event, FacebookPageInfo, MLPostCategory, MediaEntry, MetaData, PostTemplate, SSIDPostType, SchedulePostStatus, SocialCampaign, SocialPost, SocialPostData, TikTokCustomization, YoutubeCustomization, } from './social-posts';
4
4
  export { BulkUploadMultilocation, Location, MultilocationPost, MultilocationPostError, MultilocationServices, PostAction, PostCustomization, PostCustomizationByLocation, PostEvent, } from './multilocation-post';
5
5
  export { PixabayImage, } from './pixabay-image';
6
6
  export { FacebookPostStats, InstagramPostStats, LinkedInPostStats, SocialPostStats, TikTokPostStats, TwitterPostStats, YoutubePostStats, } from './social-post-stats';
@@ -19,8 +19,9 @@ export { AiInstructions, BlogPostCampaign, CreateCommonAiInstructionsRequest, Cr
19
19
  export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
20
20
  export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
21
21
  export { BlogConnection, CreateBlogConnectionRequest, CreateBlogConnectionResponse, DeleteBlogConnectionRequest, GetBlogConnectionRequest, GetBlogConnectionResponse, ListBlogConnectionRequest, ListBlogConnectionResponse, UpdateBlogConnectionRequest, } from './blog-connection';
22
- export { AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
22
+ export { Author, AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, Category, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
23
23
  export { Campaign, CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, UpdateCampaignIdRequest, UpdateCampaignRequest, } from './campaign';
24
24
  export { CampaignCustomization, Categories, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftYoutubeCustomization, GMBPostCustomization, MlDraftPost, SSIDDraftType, } from './drafts';
25
25
  export { CreateDraftRequest, CreateDraftResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, DeleteDraftRequest, GetDraftRequest, GetDraftResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, MultiDeleteMLDraftPostsRequest, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, } from './drafts-api';
26
26
  export { BlogPostOptions, ContentMetadata, CreateContentRequest, CreateContentResponse, GMBCustomization, Link, MediaItem, SocialContentItem, SocialContentResult, SsidPostType, } from './social-content';
27
+ export { CreateOrEditRequest, CreateOrEditResponse, GeneratedImage, ImageInputSource, } from './image-generation';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.48.0",
3
+ "version": "5.49.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"