@vendasta/social-posts 5.47.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 (67) hide show
  1. package/esm2020/lib/_internal/blog-website.api.service.mjs +40 -0
  2. package/esm2020/lib/_internal/drafts.api.service.mjs +82 -0
  3. package/esm2020/lib/_internal/enums/drafts-api.enum.mjs +20 -0
  4. package/esm2020/lib/_internal/enums/drafts.enum.mjs +27 -0
  5. package/esm2020/lib/_internal/enums/image-generation.enum.mjs +42 -0
  6. package/esm2020/lib/_internal/enums/index.mjs +8 -3
  7. package/esm2020/lib/_internal/enums/provisioning.enum.mjs +14 -0
  8. package/esm2020/lib/_internal/enums/social-content.enum.mjs +51 -0
  9. package/esm2020/lib/_internal/enums/stock-image.enum.mjs +10 -3
  10. package/esm2020/lib/_internal/image-generation.api.service.mjs +40 -0
  11. package/esm2020/lib/_internal/index.mjs +6 -1
  12. package/esm2020/lib/_internal/interfaces/blog-website-info.interface.mjs +8 -0
  13. package/esm2020/lib/_internal/interfaces/drafts-api.interface.mjs +2 -0
  14. package/esm2020/lib/_internal/interfaces/drafts.interface.mjs +8 -0
  15. package/esm2020/lib/_internal/interfaces/image-generation.interface.mjs +2 -0
  16. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  17. package/esm2020/lib/_internal/interfaces/provisioning.interface.mjs +8 -0
  18. package/esm2020/lib/_internal/interfaces/social-content.interface.mjs +2 -0
  19. package/esm2020/lib/_internal/interfaces/stock-image.interface.mjs +1 -1
  20. package/esm2020/lib/_internal/objects/blog-website-info.mjs +149 -0
  21. package/esm2020/lib/_internal/objects/drafts-api.mjs +628 -0
  22. package/esm2020/lib/_internal/objects/drafts.mjs +446 -0
  23. package/esm2020/lib/_internal/objects/image-generation.mjs +155 -0
  24. package/esm2020/lib/_internal/objects/index.mjs +8 -2
  25. package/esm2020/lib/_internal/objects/provisioning.mjs +43 -0
  26. package/esm2020/lib/_internal/objects/social-content.mjs +384 -0
  27. package/esm2020/lib/_internal/objects/stock-image.mjs +63 -5
  28. package/esm2020/lib/_internal/provisioning.api.service.mjs +38 -0
  29. package/esm2020/lib/_internal/social-content.api.service.mjs +40 -0
  30. package/esm2020/lib/drafts.service.mjs +46 -0
  31. package/esm2020/lib/index.mjs +2 -1
  32. package/fesm2015/vendasta-social-posts.mjs +2474 -211
  33. package/fesm2015/vendasta-social-posts.mjs.map +1 -1
  34. package/fesm2020/vendasta-social-posts.mjs +2474 -211
  35. package/fesm2020/vendasta-social-posts.mjs.map +1 -1
  36. package/lib/_internal/blog-website.api.service.d.ts +13 -0
  37. package/lib/_internal/drafts.api.service.d.ts +23 -0
  38. package/lib/_internal/enums/drafts-api.enum.d.ts +11 -0
  39. package/lib/_internal/enums/drafts.enum.d.ts +18 -0
  40. package/lib/_internal/enums/image-generation.enum.d.ts +30 -0
  41. package/lib/_internal/enums/index.d.ts +7 -2
  42. package/lib/_internal/enums/provisioning.enum.d.ts +6 -0
  43. package/lib/_internal/enums/social-content.enum.d.ts +39 -0
  44. package/lib/_internal/enums/stock-image.enum.d.ts +8 -2
  45. package/lib/_internal/image-generation.api.service.d.ts +13 -0
  46. package/lib/_internal/index.d.ts +5 -0
  47. package/lib/_internal/interfaces/blog-website-info.interface.d.ts +24 -0
  48. package/lib/_internal/interfaces/drafts-api.interface.d.ts +110 -0
  49. package/lib/_internal/interfaces/drafts.interface.d.ts +82 -0
  50. package/lib/_internal/interfaces/image-generation.interface.d.ts +28 -0
  51. package/lib/_internal/interfaces/index.d.ts +7 -1
  52. package/lib/_internal/interfaces/provisioning.interface.d.ts +8 -0
  53. package/lib/_internal/interfaces/social-content.interface.d.ts +71 -0
  54. package/lib/_internal/interfaces/stock-image.interface.d.ts +11 -2
  55. package/lib/_internal/objects/blog-website-info.d.ts +41 -0
  56. package/lib/_internal/objects/drafts-api.d.ts +163 -0
  57. package/lib/_internal/objects/drafts.d.ts +120 -0
  58. package/lib/_internal/objects/image-generation.d.ts +42 -0
  59. package/lib/_internal/objects/index.d.ts +7 -1
  60. package/lib/_internal/objects/provisioning.d.ts +13 -0
  61. package/lib/_internal/objects/social-content.d.ts +103 -0
  62. package/lib/_internal/objects/stock-image.d.ts +17 -2
  63. package/lib/_internal/provisioning.api.service.d.ts +14 -0
  64. package/lib/_internal/social-content.api.service.d.ts +13 -0
  65. package/lib/drafts.service.d.ts +20 -0
  66. package/lib/index.d.ts +1 -0
  67. package/package.json +1 -1
@@ -0,0 +1,163 @@
1
+ import * as i from '../interfaces';
2
+ import { GMBPostCustomization, DraftMedia, DraftMetaData, DraftYoutubeCustomization, SSIDDraftType, DraftTikTokCustomization, DraftBlogPostCustomization, CampaignCustomization, Draft, MlDraftPost } from './drafts';
3
+ import * as e from '../enums';
4
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class CreateDraftRequest implements i.CreateDraftRequestInterface {
6
+ accountGroupId: string;
7
+ draftText: string;
8
+ postDateTime: Date;
9
+ gmbPostCustomization: GMBPostCustomization;
10
+ previews: string;
11
+ options: string[];
12
+ media: DraftMedia[];
13
+ ssids: string[];
14
+ draftType: e.DraftType;
15
+ metadata: DraftMetaData[];
16
+ youtubeCustomization: DraftYoutubeCustomization;
17
+ ssidDraftTypes: SSIDDraftType[];
18
+ isHidden: boolean;
19
+ tiktokCustomization: DraftTikTokCustomization;
20
+ blogPostCustomization: DraftBlogPostCustomization;
21
+ campaignCustomization: CampaignCustomization;
22
+ brandId: string;
23
+ multilocationPostId: string;
24
+ socialNetworkIdentifier: string;
25
+ static fromProto(proto: any): CreateDraftRequest;
26
+ constructor(kwargs?: i.CreateDraftRequestInterface);
27
+ toApiJson(): object;
28
+ }
29
+ export declare class CreateDraftResponse implements i.CreateDraftResponseInterface {
30
+ draft: Draft;
31
+ static fromProto(proto: any): CreateDraftResponse;
32
+ constructor(kwargs?: i.CreateDraftResponseInterface);
33
+ toApiJson(): object;
34
+ }
35
+ export declare class CreateMultiDraftsRequest implements i.CreateMultiDraftsRequestInterface {
36
+ drafts: CreateDraftRequest[];
37
+ static fromProto(proto: any): CreateMultiDraftsRequest;
38
+ constructor(kwargs?: i.CreateMultiDraftsRequestInterface);
39
+ toApiJson(): object;
40
+ }
41
+ export declare class CreateMultiDraftsResponse implements i.CreateMultiDraftsResponseInterface {
42
+ drafts: Draft[];
43
+ static fromProto(proto: any): CreateMultiDraftsResponse;
44
+ constructor(kwargs?: i.CreateMultiDraftsResponseInterface);
45
+ toApiJson(): object;
46
+ }
47
+ export declare class DeleteDraftRequest implements i.DeleteDraftRequestInterface {
48
+ accountGroupId: string;
49
+ draftId: string;
50
+ static fromProto(proto: any): DeleteDraftRequest;
51
+ constructor(kwargs?: i.DeleteDraftRequestInterface);
52
+ toApiJson(): object;
53
+ }
54
+ export declare class GetDraftRequest implements i.GetDraftRequestInterface {
55
+ accountGroupId: string;
56
+ draftId: string;
57
+ static fromProto(proto: any): GetDraftRequest;
58
+ constructor(kwargs?: i.GetDraftRequestInterface);
59
+ toApiJson(): object;
60
+ }
61
+ export declare class GetDraftResponse implements i.GetDraftResponseInterface {
62
+ draft: Draft;
63
+ static fromProto(proto: any): GetDraftResponse;
64
+ constructor(kwargs?: i.GetDraftResponseInterface);
65
+ toApiJson(): object;
66
+ }
67
+ export declare class ListDraftsByNetworkIdentifierRequest implements i.ListDraftsByNetworkIdentifierRequestInterface {
68
+ accountGroupId: string;
69
+ socialNetworkIdentifier: string;
70
+ cursor: string;
71
+ pageSize: number;
72
+ static fromProto(proto: any): ListDraftsByNetworkIdentifierRequest;
73
+ constructor(kwargs?: i.ListDraftsByNetworkIdentifierRequestInterface);
74
+ toApiJson(): object;
75
+ }
76
+ export declare class ListDraftsByNetworkIdentifierResponse implements i.ListDraftsByNetworkIdentifierResponseInterface {
77
+ drafts: Draft[];
78
+ nextCursor: string;
79
+ hasMore: boolean;
80
+ static fromProto(proto: any): ListDraftsByNetworkIdentifierResponse;
81
+ constructor(kwargs?: i.ListDraftsByNetworkIdentifierResponseInterface);
82
+ toApiJson(): object;
83
+ }
84
+ export declare class ListDraftsRequest implements i.ListDraftsRequestInterface {
85
+ accountGroupId: string;
86
+ cursor: string;
87
+ pageSize: number;
88
+ start: Date;
89
+ end: Date;
90
+ searchTerm: string;
91
+ networks: string[];
92
+ visibilityType: e.VisibilityType;
93
+ filterBy: e.FilterBy;
94
+ static fromProto(proto: any): ListDraftsRequest;
95
+ constructor(kwargs?: i.ListDraftsRequestInterface);
96
+ toApiJson(): object;
97
+ }
98
+ export declare class ListDraftsResponse implements i.ListDraftsResponseInterface {
99
+ drafts: Draft[];
100
+ nextCursor: string;
101
+ hasMore: boolean;
102
+ static fromProto(proto: any): ListDraftsResponse;
103
+ constructor(kwargs?: i.ListDraftsResponseInterface);
104
+ toApiJson(): object;
105
+ }
106
+ export declare class ListMultilocationDraftsRequest implements i.ListMultilocationDraftsRequestInterface {
107
+ brandId: string;
108
+ multilocationPostId: string;
109
+ accountGroupIds: string[];
110
+ static fromProto(proto: any): ListMultilocationDraftsRequest;
111
+ constructor(kwargs?: i.ListMultilocationDraftsRequestInterface);
112
+ toApiJson(): object;
113
+ }
114
+ export declare class ListMultilocationDraftsResponse implements i.ListMultilocationDraftsResponseInterface {
115
+ drafts: Draft[];
116
+ static fromProto(proto: any): ListMultilocationDraftsResponse;
117
+ constructor(kwargs?: i.ListMultilocationDraftsResponseInterface);
118
+ toApiJson(): object;
119
+ }
120
+ export declare class MultiDeleteMLDraftPostsRequest implements i.MultiDeleteMLDraftPostsRequestInterface {
121
+ mlDraftPosts: MlDraftPost[];
122
+ brandId: string;
123
+ static fromProto(proto: any): MultiDeleteMLDraftPostsRequest;
124
+ constructor(kwargs?: i.MultiDeleteMLDraftPostsRequestInterface);
125
+ toApiJson(): object;
126
+ }
127
+ export declare class UpdateDraftRequest implements i.UpdateDraftRequestInterface {
128
+ accountGroupId: string;
129
+ draftId: string;
130
+ draftText: string;
131
+ postDateTime: Date;
132
+ gmbPostCustomization: GMBPostCustomization;
133
+ previews: string;
134
+ options: string[];
135
+ media: DraftMedia[];
136
+ ssids: string[];
137
+ draftType: e.DraftType;
138
+ metadata: DraftMetaData[];
139
+ youtubeCustomization: DraftYoutubeCustomization;
140
+ ssidDraftTypes: SSIDDraftType[];
141
+ isHidden: boolean;
142
+ tiktokCustomization: DraftTikTokCustomization;
143
+ blogPostCustomization: DraftBlogPostCustomization;
144
+ campaignCustomization: CampaignCustomization;
145
+ brandId: string;
146
+ multilocationPostId: string;
147
+ socialNetworkIdentifier: string;
148
+ static fromProto(proto: any): UpdateDraftRequest;
149
+ constructor(kwargs?: i.UpdateDraftRequestInterface);
150
+ toApiJson(): object;
151
+ }
152
+ export declare class UpdateDraftResponse implements i.UpdateDraftResponseInterface {
153
+ draft: Draft;
154
+ static fromProto(proto: any): UpdateDraftResponse;
155
+ constructor(kwargs?: i.UpdateDraftResponseInterface);
156
+ toApiJson(): object;
157
+ }
158
+ export declare class UpdateMultiMLDraftsRequest implements i.UpdateMultiMLDraftsRequestInterface {
159
+ drafts: UpdateDraftRequest[];
160
+ static fromProto(proto: any): UpdateMultiMLDraftsRequest;
161
+ constructor(kwargs?: i.UpdateMultiMLDraftsRequestInterface);
162
+ toApiJson(): object;
163
+ }
@@ -0,0 +1,120 @@
1
+ import * as i from '../interfaces';
2
+ import * as e from '../enums';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class CampaignCustomization implements i.CampaignCustomizationInterface {
5
+ id: string;
6
+ name: string;
7
+ shortCode: string;
8
+ static fromProto(proto: any): CampaignCustomization;
9
+ constructor(kwargs?: i.CampaignCustomizationInterface);
10
+ toApiJson(): object;
11
+ }
12
+ export declare class Categories implements i.CategoriesInterface {
13
+ id: number;
14
+ name: string;
15
+ static fromProto(proto: any): Categories;
16
+ constructor(kwargs?: i.CategoriesInterface);
17
+ toApiJson(): object;
18
+ }
19
+ export declare class Draft implements i.DraftInterface {
20
+ accountGroupId: string;
21
+ draftId: string;
22
+ created: Date;
23
+ updated: Date;
24
+ draftText: string;
25
+ postDateTime: Date;
26
+ gmbPostCustomization: GMBPostCustomization;
27
+ previews: string;
28
+ options: string[];
29
+ media: DraftMedia[];
30
+ ssids: string[];
31
+ draftType: e.DraftType;
32
+ metadata: DraftMetaData[];
33
+ youtubeCustomization: DraftYoutubeCustomization;
34
+ ssidDraftTypes: SSIDDraftType[];
35
+ isHidden: boolean;
36
+ tiktokCustomization: DraftTikTokCustomization;
37
+ blogPostCustomization: DraftBlogPostCustomization;
38
+ campaignCustomization: CampaignCustomization;
39
+ brandId: string;
40
+ multilocationPostId: string;
41
+ socialNetworkIdentifier: string;
42
+ static fromProto(proto: any): Draft;
43
+ constructor(kwargs?: i.DraftInterface);
44
+ toApiJson(): object;
45
+ }
46
+ export declare class DraftAuthor implements i.DraftAuthorInterface {
47
+ id: number;
48
+ name: string;
49
+ static fromProto(proto: any): DraftAuthor;
50
+ constructor(kwargs?: i.DraftAuthorInterface);
51
+ toApiJson(): object;
52
+ }
53
+ export declare class DraftBlogPostCustomization implements i.DraftBlogPostCustomizationInterface {
54
+ title: string;
55
+ author: DraftAuthor;
56
+ categories: Categories[];
57
+ tags: string[];
58
+ siteType: string;
59
+ static fromProto(proto: any): DraftBlogPostCustomization;
60
+ constructor(kwargs?: i.DraftBlogPostCustomizationInterface);
61
+ toApiJson(): object;
62
+ }
63
+ export declare class DraftMedia implements i.DraftMediaInterface {
64
+ imageUrl: string;
65
+ videoUrl: string;
66
+ gifUrl: string;
67
+ mediaId: string;
68
+ metaData: DraftMetaData[];
69
+ static fromProto(proto: any): DraftMedia;
70
+ constructor(kwargs?: i.DraftMediaInterface);
71
+ toApiJson(): object;
72
+ }
73
+ export declare class DraftMetaData implements i.DraftMetaDataInterface {
74
+ propertyName: string;
75
+ propertyValue: string;
76
+ static fromProto(proto: any): DraftMetaData;
77
+ constructor(kwargs?: i.DraftMetaDataInterface);
78
+ toApiJson(): object;
79
+ }
80
+ export declare class DraftTikTokCustomization implements i.DraftTikTokCustomizationInterface {
81
+ allowComment: boolean;
82
+ allowDuet: boolean;
83
+ allowStitch: boolean;
84
+ isBrandOrganic: boolean;
85
+ isBrandedContent: boolean;
86
+ static fromProto(proto: any): DraftTikTokCustomization;
87
+ constructor(kwargs?: i.DraftTikTokCustomizationInterface);
88
+ toApiJson(): object;
89
+ }
90
+ export declare class DraftYoutubeCustomization implements i.DraftYoutubeCustomizationInterface {
91
+ title: string;
92
+ privacyStatus: e.DraftYoutubeCustomizationPrivacyStatus;
93
+ static fromProto(proto: any): DraftYoutubeCustomization;
94
+ constructor(kwargs?: i.DraftYoutubeCustomizationInterface);
95
+ toApiJson(): object;
96
+ }
97
+ export declare class GMBPostCustomization implements i.GMBPostCustomizationInterface {
98
+ title: string;
99
+ eventStart: Date;
100
+ eventEnd: Date;
101
+ ctaType: string;
102
+ linkUrl: string;
103
+ static fromProto(proto: any): GMBPostCustomization;
104
+ constructor(kwargs?: i.GMBPostCustomizationInterface);
105
+ toApiJson(): object;
106
+ }
107
+ export declare class MlDraftPost implements i.MlDraftPostInterface {
108
+ multilocationPostId: string;
109
+ accountGroupIds: string[];
110
+ static fromProto(proto: any): MlDraftPost;
111
+ constructor(kwargs?: i.MlDraftPostInterface);
112
+ toApiJson(): object;
113
+ }
114
+ export declare class SSIDDraftType implements i.SSIDDraftTypeInterface {
115
+ ssid: string;
116
+ draftType: e.DraftType;
117
+ static fromProto(proto: any): SSIDDraftType;
118
+ constructor(kwargs?: i.SSIDDraftTypeInterface);
119
+ toApiJson(): object;
120
+ }
@@ -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
+ }
@@ -7,15 +7,21 @@ export { FacebookPostStats, InstagramPostStats, LinkedInPostStats, SocialPostSta
7
7
  export { TenorGifMediaMapEntry, TenorGif, TenorMediaObject, } from './tenor-gif';
8
8
  export { PexelsImage, } from './pexels-image';
9
9
  export { DateRange, EngagementParameter, ListSocialPostEngagementsRequest, ListSocialPostEngagementsResponse, SocialEngagement, SocialPostEngagement, SortBy, } from './engagement';
10
- export { ListStockImagesRequest, ListStockImagesResponse, StockImage, } from './stock-image';
10
+ export { ListStockImagesRequest, ListStockImagesResponse, Namespace, StockImage, StockImageError, } from './stock-image';
11
+ export { BlogAuthor, BlogCategory, BlogWebsiteDetails, GetBlogWebsiteDetailsRequest, GetBlogWebsiteDetailsResponse, } from './blog-website-info';
11
12
  export { Access, MCPOptions, } from './annotations';
12
13
  export { BulkCreateMultilocationPostRequest, BulkCreateMultilocationPostResponse, CreateMultilocationPostRequest, CreateMultilocationPostResponse, CreatePostTemplateRequest, CreatePostTemplateResponse, DateRangeFilter, DeleteHashtagsRequest, DeleteMultilocationPostRequest, DeletePostTemplateRequest, DeleteSocialPostRequest, EditMultilocationPostRequest, EditMultilocationPostResponse, FetchFacebookMentionInfoRequest, FetchFacebookMentionInfoResponse, PartnerListScheduledSocialPostsRequestFilters, GenerateCSVForPerformanceStatsRequest, GenerateCSVForPerformanceStatsResponse, GetGeneratedCSVForPerformanceStatsRequest, GetGeneratedCSVForPerformanceStatsResponse, GetMultiSocialPostStatsRequest, GetMultiSocialPostStatsResponse, GetMultiSocialPostsRequest, GetMultiSocialPostsResponse, GetMultilocationPostRequest, GetMultilocationPostResponse, GetPostTemplateRequest, GetPostTemplateResponse, GetScheduledPostCountRequest, GetScheduledPostCountResponse, GetTenorAnonymousIdRequest, GetTenorAnonymousIdResponse, ListMultilocationPostsForBrandRequest, ListMultilocationPostsForBrandResponse, ListPexelsImagesRequest, ListPexelsImagesResponse, ListPixabayImagesRequest, ListPixabayImagesResponse, ListPostTemplatesRequest, ListPostTemplatesResponse, ListSocialPostsRequest, ListSocialPostsResponse, ListTenorGifsRequest, ListTenorGifsResponse, FetchFacebookMentionInfoResponsePageInfoEntry, PartnerListScheduledPostsResponse, PartnerListScheduledSocialPostsRequest, PostData, RemoveFromMultilocationPostRequest, ReplaceHashtagsRequest, SchedulePostRequest, SchedulePostResponse, ScheduleToAllPagesRequest, ScheduleToAllPagesResponse, SearchHashtagRequest, SearchHashtagResponse, SuggestMessageRequest, SuggestMessageResponse, UpdatePostTemplateRequest, } from './api';
13
14
  export { LinkV2, MetadataV2, PostActionV2, PostContentV2, PostCustomizationV2, PostEventV2, PostMediaV2, SocialPostV2, TikTokCustomizationV2, YoutubeCustomizationV2, } from './social-post-v2';
14
15
  export { Media, } from './linkedin-v2';
15
16
  export { Ancestry, Collection, Image, Links, Photo, Social, Source, SubAncestry, Tags, Urls, User, UserLink, } from './unsplash-image';
17
+ export { ProvisionRequest, } from './provisioning';
16
18
  export { AiInstructions, BlogPostCampaign, CreateCommonAiInstructionsRequest, CreateCommonAiInstructionsResponse, CreateImageRequest, CreateImageResponse, CuratedContentPost, DeletePostRequest, FetchLibraryImagesRequest, FetchLibraryImagesResponse, GenerateAiRequest, GenerateAiResponse, GenerateBlogPostCampaignRequest, GenerateContentMetaDataRequest, GenerateContentMetaDataResponse, GeneratePostCampaignRequest, GeneratePostCampaignResponse, GeneratePostsRequest, GeneratePostsResponse, GetCommonAiInstructionsRequest, GetCommonAiInstructionsResponse, GetMediaMetadataFromURLRequest, GetMediaMetadataFromURLResponse, ImageBlob, ImageCreated, GeneratePostsResponseImageResponse, ImageResponse, ImageUrl, KeywordGeneration, KeywordList, ListCuratedContentRequest, ListCuratedContentResponse, ListPostableSocialServiceRequest, ListPostableSocialServiceResponse, ListUnsplashImagesRequest, ListUnsplashImagesResponse, MediaUploadRequest, MediaUploadResponse, MultiResponse, Post, GeneratePostsResponsePost, PostContent, PostsGeneration, RepostSocialPostRequest, Response, SocialPostOutput, SocialPostRequest, SocialPostResponse, SocialService, TitleGeneration, UpdateCommonAiInstructionsRequest, UpdateCommonAiInstructionsResponse, UpdateSocialPostRequest, UpdateSocialPostResponse, UploadToStorageRequest, UploadToStorageResponse, UploadedMedia, } from './api-v2';
17
19
  export { Action, EndChatRequest, SendMessageRequest, SendMessageResponse, StartChatRequest, StartChatResponse, } from './chat-bot';
18
20
  export { ChatMessage, SendMessageV2Request, SendMessageV2Response, } from './chat-bot-v2';
19
21
  export { BlogConnection, CreateBlogConnectionRequest, CreateBlogConnectionResponse, DeleteBlogConnectionRequest, GetBlogConnectionRequest, GetBlogConnectionResponse, ListBlogConnectionRequest, ListBlogConnectionResponse, UpdateBlogConnectionRequest, } from './blog-connection';
20
22
  export { Author, AuthorsRequest, AuthorsResponse, BlogImage, BlogPost, BlogVideo, Category, CategoryRequest, CategoryResponse, DeleteBlogPostRequest, GetMultiBlogPostsRequest, GetMultiBlogPostsResponse, MediaProperty, PublishPostRequest, PublishPostResponse, RepostBlogPostRequest, StatusRequest, StatusResponse, UpdateBlogPostRequest, } from './wordpress-plugin';
21
23
  export { Campaign, CreateCampaignRequest, CreateCampaignResponse, DeleteCampaignRequest, GetCampaignRequest, GetCampaignResponse, GetMultiCampaignsRequest, GetMultiCampaignsResponse, UpdateCampaignIdRequest, UpdateCampaignRequest, } from './campaign';
24
+ export { CampaignCustomization, Categories, Draft, DraftAuthor, DraftBlogPostCustomization, DraftMedia, DraftMetaData, DraftTikTokCustomization, DraftYoutubeCustomization, GMBPostCustomization, MlDraftPost, SSIDDraftType, } from './drafts';
25
+ export { CreateDraftRequest, CreateDraftResponse, CreateMultiDraftsRequest, CreateMultiDraftsResponse, DeleteDraftRequest, GetDraftRequest, GetDraftResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsResponse, MultiDeleteMLDraftPostsRequest, UpdateDraftRequest, UpdateDraftResponse, UpdateMultiMLDraftsRequest, } from './drafts-api';
26
+ export { BlogPostOptions, ContentMetadata, CreateContentRequest, CreateContentResponse, GMBCustomization, Link, MediaItem, SocialContentItem, SocialContentResult, SsidPostType, } from './social-content';
27
+ export { CreateOrEditRequest, CreateOrEditResponse, GeneratedImage, ImageInputSource, } from './image-generation';
@@ -0,0 +1,13 @@
1
+ import * as i from '../interfaces';
2
+ import * as e from '../enums';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class ProvisionRequest implements i.ProvisionRequestInterface {
5
+ action: e.ProvisionAction;
6
+ partnerId: string;
7
+ businessId: string;
8
+ activationId: string;
9
+ editionId: string;
10
+ static fromProto(proto: any): ProvisionRequest;
11
+ constructor(kwargs?: i.ProvisionRequestInterface);
12
+ toApiJson(): object;
13
+ }
@@ -0,0 +1,103 @@
1
+ import * as i from '../interfaces';
2
+ import { BlogAuthor, BlogCategory } from './blog-website-info';
3
+ import { YoutubeCustomization, TikTokCustomization } from './social-posts';
4
+ import * as e from '../enums';
5
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
6
+ export declare class BlogPostOptions implements i.BlogPostOptionsInterface {
7
+ title: string;
8
+ author: BlogAuthor;
9
+ categories: BlogCategory[];
10
+ tags: string[];
11
+ siteType: string;
12
+ static fromProto(proto: any): BlogPostOptions;
13
+ constructor(kwargs?: i.BlogPostOptionsInterface);
14
+ toApiJson(): object;
15
+ }
16
+ export declare class ContentMetadata implements i.ContentMetadataInterface {
17
+ name: string;
18
+ value: string;
19
+ static fromProto(proto: any): ContentMetadata;
20
+ constructor(kwargs?: i.ContentMetadataInterface);
21
+ toApiJson(): object;
22
+ }
23
+ export declare class CreateContentRequest implements i.CreateContentRequestInterface {
24
+ accountGroupId: string;
25
+ username: string;
26
+ userId: string;
27
+ items: SocialContentItem[];
28
+ static fromProto(proto: any): CreateContentRequest;
29
+ constructor(kwargs?: i.CreateContentRequestInterface);
30
+ toApiJson(): object;
31
+ }
32
+ export declare class CreateContentResponse implements i.CreateContentResponseInterface {
33
+ results: SocialContentResult[];
34
+ static fromProto(proto: any): CreateContentResponse;
35
+ constructor(kwargs?: i.CreateContentResponseInterface);
36
+ toApiJson(): object;
37
+ }
38
+ export declare class GMBCustomization implements i.GMBCustomizationInterface {
39
+ title: string;
40
+ eventStart: Date;
41
+ eventEnd: Date;
42
+ ctaType: e.CallToActionType;
43
+ linkUrl: string;
44
+ static fromProto(proto: any): GMBCustomization;
45
+ constructor(kwargs?: i.GMBCustomizationInterface);
46
+ toApiJson(): object;
47
+ }
48
+ export declare class Link implements i.LinkInterface {
49
+ name: string;
50
+ picture: string;
51
+ description: string;
52
+ title: string;
53
+ url: string;
54
+ shortcode: string;
55
+ static fromProto(proto: any): Link;
56
+ constructor(kwargs?: i.LinkInterface);
57
+ toApiJson(): object;
58
+ }
59
+ export declare class MediaItem implements i.MediaItemInterface {
60
+ mediaId: string;
61
+ mediaType: e.MediaType;
62
+ path: string;
63
+ url: string;
64
+ static fromProto(proto: any): MediaItem;
65
+ constructor(kwargs?: i.MediaItemInterface);
66
+ toApiJson(): object;
67
+ }
68
+ export declare class SocialContentItem implements i.SocialContentItemInterface {
69
+ type: e.SocialContentType;
70
+ mode: e.PublishMode;
71
+ ssidTypes: SsidPostType[];
72
+ text: string;
73
+ description: string;
74
+ media: MediaItem[];
75
+ links: Link[];
76
+ scheduleAt: Date;
77
+ gmbCustomization: GMBCustomization;
78
+ youtubeCustomization: YoutubeCustomization;
79
+ tiktokCustomization: TikTokCustomization;
80
+ blogPostOptions: BlogPostOptions;
81
+ campaignId: string;
82
+ contentMetadata: ContentMetadata[];
83
+ static fromProto(proto: any): SocialContentItem;
84
+ constructor(kwargs?: i.SocialContentItemInterface);
85
+ toApiJson(): object;
86
+ }
87
+ export declare class SocialContentResult implements i.SocialContentResultInterface {
88
+ postId: string;
89
+ ssid: string;
90
+ network: string;
91
+ status: string;
92
+ errorMessage: string;
93
+ static fromProto(proto: any): SocialContentResult;
94
+ constructor(kwargs?: i.SocialContentResultInterface);
95
+ toApiJson(): object;
96
+ }
97
+ export declare class SsidPostType implements i.SsidPostTypeInterface {
98
+ ssid: string;
99
+ mediaContentType: e.MediaContentType;
100
+ static fromProto(proto: any): SsidPostType;
101
+ constructor(kwargs?: i.SsidPostTypeInterface);
102
+ toApiJson(): object;
103
+ }
@@ -2,7 +2,7 @@ import * as i from '../interfaces';
2
2
  import * as e from '../enums';
3
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
4
  export declare class ListStockImagesRequest implements i.ListStockImagesRequestInterface {
5
- namespaceId: string;
5
+ namespace: Namespace;
6
6
  keywords: string[];
7
7
  imageCount: number;
8
8
  imageSource: e.ImageSource;
@@ -16,13 +16,21 @@ export declare class ListStockImagesRequest implements i.ListStockImagesRequestI
16
16
  }
17
17
  export declare class ListStockImagesResponse implements i.ListStockImagesResponseInterface {
18
18
  images: StockImage[];
19
+ error: StockImageError;
19
20
  static fromProto(proto: any): ListStockImagesResponse;
20
21
  constructor(kwargs?: i.ListStockImagesResponseInterface);
21
22
  toApiJson(): object;
22
23
  }
24
+ export declare class Namespace implements i.NamespaceInterface {
25
+ namespaceId: string;
26
+ namespaceType: e.NamespaceType;
27
+ static fromProto(proto: any): Namespace;
28
+ constructor(kwargs?: i.NamespaceInterface);
29
+ toApiJson(): object;
30
+ }
23
31
  export declare class StockImage implements i.StockImageInterface {
24
32
  publicUrl: string;
25
- storageUrl: string;
33
+ imageId: string;
26
34
  source: e.ImageSource;
27
35
  photographerName: string;
28
36
  photographerUrl: string;
@@ -30,3 +38,10 @@ export declare class StockImage implements i.StockImageInterface {
30
38
  constructor(kwargs?: i.StockImageInterface);
31
39
  toApiJson(): object;
32
40
  }
41
+ export declare class StockImageError implements i.StockImageErrorInterface {
42
+ code: string;
43
+ message: string;
44
+ static fromProto(proto: any): StockImageError;
45
+ constructor(kwargs?: i.StockImageErrorInterface);
46
+ toApiJson(): object;
47
+ }
@@ -0,0 +1,14 @@
1
+ import { ProvisionRequest } from './objects/';
2
+ import { ProvisionRequestInterface } 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 ProvisioningApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ provision(r: ProvisionRequest | ProvisionRequestInterface): Observable<HttpResponse<null>>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProvisioningApiService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProvisioningApiService>;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { CreateContentRequest, CreateContentResponse } from './objects/';
2
+ import { CreateContentRequestInterface } from './interfaces/';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SocialContentApiService {
6
+ private readonly hostService;
7
+ private readonly http;
8
+ private _host;
9
+ private apiOptions;
10
+ create(r: CreateContentRequest | CreateContentRequestInterface): Observable<CreateContentResponse>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SocialContentApiService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<SocialContentApiService>;
13
+ }
@@ -0,0 +1,20 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpResponse } from '@angular/common/http';
3
+ import { CreateDraftRequest, CreateDraftRequestInterface, CreateDraftResponse, CreateMultiDraftsRequest, CreateMultiDraftsRequestInterface, CreateMultiDraftsResponse, DeleteDraftRequest, DeleteDraftRequestInterface, DraftsApiService, GetDraftRequest, GetDraftRequestInterface, GetDraftResponse, ListDraftsByNetworkIdentifierRequest, ListDraftsByNetworkIdentifierRequestInterface, ListDraftsByNetworkIdentifierResponse, ListDraftsRequest, ListDraftsRequestInterface, ListDraftsResponse, ListMultilocationDraftsRequest, ListMultilocationDraftsRequestInterface, ListMultilocationDraftsResponse, MultiDeleteMLDraftPostsRequest, MultiDeleteMLDraftPostsRequestInterface, UpdateDraftRequest, UpdateDraftRequestInterface, UpdateDraftResponse, UpdateMultiMLDraftsRequest, UpdateMultiMLDraftsRequestInterface } from './_internal';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DraftsService {
6
+ private draftsApiService;
7
+ constructor(draftsApiService: DraftsApiService);
8
+ createDraft(r: CreateDraftRequest | CreateDraftRequestInterface): Observable<CreateDraftResponse>;
9
+ createMultiDrafts(r: CreateMultiDraftsRequest | CreateMultiDraftsRequestInterface): Observable<CreateMultiDraftsResponse>;
10
+ getDraft(r: GetDraftRequest | GetDraftRequestInterface): Observable<GetDraftResponse>;
11
+ updateDraft(r: UpdateDraftRequest | UpdateDraftRequestInterface): Observable<UpdateDraftResponse>;
12
+ deleteDraft(r: DeleteDraftRequest | DeleteDraftRequestInterface): Observable<HttpResponse<null>>;
13
+ listDrafts(r: ListDraftsRequest | ListDraftsRequestInterface): Observable<ListDraftsResponse>;
14
+ listDraftsByNetworkIdentifier(r: ListDraftsByNetworkIdentifierRequest | ListDraftsByNetworkIdentifierRequestInterface): Observable<ListDraftsByNetworkIdentifierResponse>;
15
+ listMultilocationDrafts(r: ListMultilocationDraftsRequest | ListMultilocationDraftsRequestInterface): Observable<ListMultilocationDraftsResponse>;
16
+ updateMultiMlDrafts(r: UpdateMultiMLDraftsRequest | UpdateMultiMLDraftsRequestInterface): Observable<HttpResponse<null>>;
17
+ deleteMultiMlDrafts(r: MultiDeleteMLDraftPostsRequest | MultiDeleteMLDraftPostsRequestInterface): Observable<HttpResponse<null>>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DraftsService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<DraftsService>;
20
+ }
package/lib/index.d.ts CHANGED
@@ -21,3 +21,4 @@ export { BlogConnectionService } from './blog-connection.service';
21
21
  export { WordpressPluginService } from './wordpress-plugin.service';
22
22
  export { BlogPostsService } from './blog-posts.service';
23
23
  export { CampaignService } from './campaign.service';
24
+ export { DraftsService } from './drafts.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/social-posts",
3
- "version": "5.47.0",
3
+ "version": "5.49.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"