@wix/auto_sdk_blog_draft-posts 1.0.31 → 1.0.33
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.
- package/build/cjs/index.d.ts +36 -15
- package/build/cjs/index.js +64 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +211 -9
- package/build/cjs/index.typings.js +64 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +210 -8
- package/build/es/index.d.mts +36 -15
- package/build/es/index.mjs +57 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +211 -9
- package/build/es/index.typings.mjs +57 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +210 -8
- package/build/internal/cjs/index.d.ts +36 -15
- package/build/internal/cjs/index.js +64 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +211 -9
- package/build/internal/cjs/index.typings.js +64 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +210 -8
- package/build/internal/es/index.d.mts +36 -15
- package/build/internal/es/index.mjs +57 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +211 -9
- package/build/internal/es/index.typings.mjs +57 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +210 -8
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { DraftPost, CreateDraftPostOptions, CreateDraftPostResponse, BulkCreateDraftPostsOptions, BulkCreateDraftPostsResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsResponse, ListDeletedDraftPostsOptions, ListDeletedDraftPostsResponse, GetDraftPostOptions, GetDraftPostResponse, UpdateDraftPost, UpdateDraftPostOptions, UpdateDraftPostResponse, DeleteDraftPostOptions, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsResponse, ListDraftPostsOptions, ListDraftPostsResponse, GetDeletedDraftPostResponse, RestoreFromTrashBinResponse, QueryDraftPostsOptions, DraftPostsQueryBuilder, PublishDraftPostResponse, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { Action, ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, ApplicationError, ApproveDraftPostRequest, ApproveDraftPostResponse, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkActionMetadata, BulkCreateDraftPostsRequest, BulkDeleteDraftPostsRequest, BulkDraftPostResult, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, BulkUpdateDraftPostsRequest, BulletedListData, ButtonData, ButtonDataType, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostRequest, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeleteDraftPostRequest, DeleteDraftPostResponse, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftCategoriesUpdated, DraftPostOwnerChanged, DraftPostTranslation, DraftPostsQueryResult, DraftTagsUpdated, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GetDeletedDraftPostRequest, GetDraftPostRequest, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, GetDraftPostsSort, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InitialDraftPostsCopied, InitialExpandedItems, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDeletedDraftPostsRequest, ListDraftPostsRequest, ListValue, MapData, MapSettings, MapType, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, MaskedDraftPosts, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, PostAmountByLanguage, PublishDraftPostRequest, QueryDraftPostsRequest, QueryDraftPostsResponse, RejectDraftPostRequest, RejectDraftPostResponse, Rel, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, RestoreFromTrashBinRequest, RestoreInfo, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RichContent, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, StylesBorder, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, TotalDraftPosts, TotalDraftPostsGroupingField, TranslateCategoryRequest, TranslateCategoryResponse, TranslateDraftRequest, TranslateDraftResponse, Type, UnpublishPostRequest, UnpublishPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, UpdateDraftPostRequest, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia } from './index.typings.js';
|
|
3
|
+
export { Action, ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, ApplicationError, ApproveDraftPostRequest, ApproveDraftPostResponse, AspectRatio, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkActionMetadata, BulkCreateDraftPostsRequest, BulkDeleteDraftPostsRequest, BulkDraftPostResult, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, BulkUpdateDraftPostsRequest, BulletedListData, ButtonData, ButtonDataType, ButtonStyles, CaptionData, CardStyles, CardStylesType, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostRequest, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeleteDraftPostRequest, DeleteDraftPostResponse, Design, Dimensions, Direction, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftCategoriesUpdated, DraftPostOwnerChanged, DraftPostTranslation, DraftPostsQueryResult, DraftTagsUpdated, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, GetDeletedDraftPostRequest, GetDraftPostRequest, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, GetDraftPostsSort, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialDraftPostsCopied, InitialExpandedItems, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDeletedDraftPostsRequest, ListDraftPostsRequest, ListValue, MapData, MapSettings, MapType, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, MaskedDraftPosts, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, Placement, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, PostAmountByLanguage, PublishDraftPostRequest, QueryDraftPostsRequest, QueryDraftPostsResponse, RejectDraftPostRequest, RejectDraftPostResponse, Rel, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, Resizing, RestoreFromTrashBinRequest, RestoreInfo, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RibbonStyles, RichContent, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, StylesBorder, StylesPosition, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, TotalDraftPosts, TotalDraftPostsGroupingField, TranslateCategoryRequest, TranslateCategoryResponse, TranslateDraftRequest, TranslateDraftResponse, Type, UnpublishPostRequest, UnpublishPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, UpdateDraftPostRequest, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type DraftNonNullablePaths = `_id` | `title` | `categoryIds` | `hashtags` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `status` | `moderationDetails.submittedBy` | `moderationDetails.status` | `hasUnpublishedChanges` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom`;
|
|
5
6
|
declare function createDraftPost$1(httpClient: HttpClient): CreateDraftPostSignature;
|
|
6
7
|
interface CreateDraftPostSignature {
|
|
7
8
|
/**
|
|
@@ -17,7 +18,9 @@ interface CreateDraftPostSignature {
|
|
|
17
18
|
* @param - Draft post to create.
|
|
18
19
|
* @param - Options for creating a draft post.
|
|
19
20
|
*/
|
|
20
|
-
(draftPost: DraftPost, options?: CreateDraftPostOptions
|
|
21
|
+
(draftPost: NonNullablePaths<DraftPost, `title`>, options?: CreateDraftPostOptions): Promise<NonNullablePaths<CreateDraftPostResponse, {
|
|
22
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
23
|
+
}[DraftNonNullablePaths]>>;
|
|
21
24
|
}
|
|
22
25
|
declare function bulkCreateDraftPosts$1(httpClient: HttpClient): BulkCreateDraftPostsSignature;
|
|
23
26
|
interface BulkCreateDraftPostsSignature {
|
|
@@ -26,7 +29,9 @@ interface BulkCreateDraftPostsSignature {
|
|
|
26
29
|
* @param - Draft posts to create.
|
|
27
30
|
* @param - Options for creating multiple draft posts.
|
|
28
31
|
*/
|
|
29
|
-
(draftPosts: DraftPost[], options?: BulkCreateDraftPostsOptions
|
|
32
|
+
(draftPosts: NonNullablePaths<DraftPost, `title`>[], options?: BulkCreateDraftPostsOptions): Promise<NonNullablePaths<BulkCreateDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
33
|
+
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
34
|
+
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
30
35
|
}
|
|
31
36
|
declare function bulkUpdateDraftPosts$1(httpClient: HttpClient): BulkUpdateDraftPostsSignature;
|
|
32
37
|
interface BulkUpdateDraftPostsSignature {
|
|
@@ -34,7 +39,9 @@ interface BulkUpdateDraftPostsSignature {
|
|
|
34
39
|
* Updates multiple draft posts.
|
|
35
40
|
* @param - Options for updating multiple draft posts.
|
|
36
41
|
*/
|
|
37
|
-
(options?: BulkUpdateDraftPostsOptions |
|
|
42
|
+
(options?: NonNullablePaths<BulkUpdateDraftPostsOptions, `draftPosts.${number}.draftPost` | `draftPosts.${number}.draftPost._id`>): Promise<NonNullablePaths<BulkUpdateDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
43
|
+
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
44
|
+
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
38
45
|
}
|
|
39
46
|
declare function listDeletedDraftPosts$1(httpClient: HttpClient): ListDeletedDraftPostsSignature;
|
|
40
47
|
interface ListDeletedDraftPostsSignature {
|
|
@@ -47,7 +54,9 @@ interface ListDeletedDraftPostsSignature {
|
|
|
47
54
|
* - `paging.offset` is `0`.
|
|
48
55
|
* @param - Options for listing deleted draft posts.
|
|
49
56
|
*/
|
|
50
|
-
(options?: ListDeletedDraftPostsOptions
|
|
57
|
+
(options?: ListDeletedDraftPostsOptions): Promise<NonNullablePaths<ListDeletedDraftPostsResponse, {
|
|
58
|
+
[P in DraftNonNullablePaths]: `draftPosts.${number}.${P}`;
|
|
59
|
+
}[DraftNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
|
51
60
|
}
|
|
52
61
|
declare function getDraftPost$1(httpClient: HttpClient): GetDraftPostSignature;
|
|
53
62
|
interface GetDraftPostSignature {
|
|
@@ -56,7 +65,9 @@ interface GetDraftPostSignature {
|
|
|
56
65
|
* @param - Draft post ID.
|
|
57
66
|
* @param - Options for getting a draft post.
|
|
58
67
|
*/
|
|
59
|
-
(draftPostId: string, options?: GetDraftPostOptions
|
|
68
|
+
(draftPostId: string, options?: GetDraftPostOptions): Promise<NonNullablePaths<GetDraftPostResponse, {
|
|
69
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
70
|
+
}[DraftNonNullablePaths]>>;
|
|
60
71
|
}
|
|
61
72
|
declare function updateDraftPost$1(httpClient: HttpClient): UpdateDraftPostSignature;
|
|
62
73
|
interface UpdateDraftPostSignature {
|
|
@@ -66,7 +77,9 @@ interface UpdateDraftPostSignature {
|
|
|
66
77
|
* @param - Options for updating a draft post.
|
|
67
78
|
* @param - Draft Post info.
|
|
68
79
|
*/
|
|
69
|
-
(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions
|
|
80
|
+
(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions): Promise<NonNullablePaths<UpdateDraftPostResponse, {
|
|
81
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
82
|
+
}[DraftNonNullablePaths]>>;
|
|
70
83
|
}
|
|
71
84
|
declare function deleteDraftPost$1(httpClient: HttpClient): DeleteDraftPostSignature;
|
|
72
85
|
interface DeleteDraftPostSignature {
|
|
@@ -78,7 +91,7 @@ interface DeleteDraftPostSignature {
|
|
|
78
91
|
* @param - Draft post ID.
|
|
79
92
|
* @param - Options for deleting a draft post.
|
|
80
93
|
*/
|
|
81
|
-
(draftPostId: string, options?: DeleteDraftPostOptions
|
|
94
|
+
(draftPostId: string, options?: DeleteDraftPostOptions): Promise<void>;
|
|
82
95
|
}
|
|
83
96
|
declare function removeFromTrashBin$1(httpClient: HttpClient): RemoveFromTrashBinSignature;
|
|
84
97
|
interface RemoveFromTrashBinSignature {
|
|
@@ -97,7 +110,9 @@ interface BulkDeleteDraftPostsSignature {
|
|
|
97
110
|
* @param - Post IDs.
|
|
98
111
|
* @param - Options for deleting multiple draft posts.
|
|
99
112
|
*/
|
|
100
|
-
(postIds: string[], options?: BulkDeleteDraftPostsOptions
|
|
113
|
+
(postIds: string[], options?: BulkDeleteDraftPostsOptions): Promise<NonNullablePaths<BulkDeleteDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
114
|
+
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
115
|
+
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
101
116
|
}
|
|
102
117
|
declare function listDraftPosts$1(httpClient: HttpClient): ListDraftPostsSignature;
|
|
103
118
|
interface ListDraftPostsSignature {
|
|
@@ -110,7 +125,9 @@ interface ListDraftPostsSignature {
|
|
|
110
125
|
* - `paging.offset` is `0`.
|
|
111
126
|
* @param - Options for listing multiple draft posts.
|
|
112
127
|
*/
|
|
113
|
-
(options?: ListDraftPostsOptions
|
|
128
|
+
(options?: ListDraftPostsOptions): Promise<NonNullablePaths<ListDraftPostsResponse, {
|
|
129
|
+
[P in DraftNonNullablePaths]: `draftPosts.${number}.${P}`;
|
|
130
|
+
}[DraftNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
|
114
131
|
}
|
|
115
132
|
declare function getDeletedDraftPost$1(httpClient: HttpClient): GetDeletedDraftPostSignature;
|
|
116
133
|
interface GetDeletedDraftPostSignature {
|
|
@@ -118,7 +135,9 @@ interface GetDeletedDraftPostSignature {
|
|
|
118
135
|
* Retrieves a deleted draft post from the trash bin by the provided ID.
|
|
119
136
|
* @param - Draft post ID.
|
|
120
137
|
*/
|
|
121
|
-
(draftPostId: string): Promise<GetDeletedDraftPostResponse
|
|
138
|
+
(draftPostId: string): Promise<NonNullablePaths<GetDeletedDraftPostResponse, {
|
|
139
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
140
|
+
}[DraftNonNullablePaths]>>;
|
|
122
141
|
}
|
|
123
142
|
declare function restoreFromTrashBin$1(httpClient: HttpClient): RestoreFromTrashBinSignature;
|
|
124
143
|
interface RestoreFromTrashBinSignature {
|
|
@@ -126,7 +145,9 @@ interface RestoreFromTrashBinSignature {
|
|
|
126
145
|
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
127
146
|
* @param - Draft post ID.
|
|
128
147
|
*/
|
|
129
|
-
(draftPostId: string): Promise<RestoreFromTrashBinResponse
|
|
148
|
+
(draftPostId: string): Promise<NonNullablePaths<RestoreFromTrashBinResponse, {
|
|
149
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
150
|
+
}[DraftNonNullablePaths]>>;
|
|
130
151
|
}
|
|
131
152
|
declare function queryDraftPosts$1(httpClient: HttpClient): QueryDraftPostsSignature;
|
|
132
153
|
interface QueryDraftPostsSignature {
|
|
@@ -147,7 +168,7 @@ interface QueryDraftPostsSignature {
|
|
|
147
168
|
* The following `DraftPostsQueryBuilder` functions are supported for `queryDraftPosts()`. For a full description of the Draft Posts object, see the object returned for the `items` property in `DraftPostsQueryResult`.
|
|
148
169
|
* @param - Options for querying draft posts.
|
|
149
170
|
*/
|
|
150
|
-
(options?: QueryDraftPostsOptions
|
|
171
|
+
(options?: QueryDraftPostsOptions): DraftPostsQueryBuilder;
|
|
151
172
|
}
|
|
152
173
|
declare function publishDraftPost$1(httpClient: HttpClient): PublishDraftPostSignature;
|
|
153
174
|
interface PublishDraftPostSignature {
|
|
@@ -159,7 +180,7 @@ interface PublishDraftPostSignature {
|
|
|
159
180
|
* from the draft post.
|
|
160
181
|
* @param - Draft post ID.
|
|
161
182
|
*/
|
|
162
|
-
(draftPostId: string): Promise<PublishDraftPostResponse
|
|
183
|
+
(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`>>;
|
|
163
184
|
}
|
|
164
185
|
declare const onDraftCreated$1: EventDefinition<DraftCreatedEnvelope, "wix.blog.v3.draft_created">;
|
|
165
186
|
declare const onDraftDeleted$1: EventDefinition<DraftDeletedEnvelope, "wix.blog.v3.draft_deleted">;
|
package/build/cjs/index.js
CHANGED
|
@@ -23,16 +23,20 @@ __export(index_exports, {
|
|
|
23
23
|
Action: () => Action,
|
|
24
24
|
Alignment: () => Alignment,
|
|
25
25
|
AppType: () => AppType,
|
|
26
|
+
AspectRatio: () => AspectRatio,
|
|
26
27
|
BackgroundType: () => BackgroundType,
|
|
27
28
|
ButtonDataType: () => ButtonDataType,
|
|
29
|
+
CardStylesType: () => CardStylesType,
|
|
28
30
|
Crop: () => Crop,
|
|
29
31
|
DecorationType: () => DecorationType,
|
|
30
32
|
Direction: () => Direction,
|
|
33
|
+
DividerDataAlignment: () => DividerDataAlignment,
|
|
31
34
|
Field: () => Field,
|
|
32
35
|
FontType: () => FontType,
|
|
33
36
|
GIFType: () => GIFType,
|
|
34
37
|
GetDraftPostsSort: () => GetDraftPostsSort,
|
|
35
38
|
InitialExpandedItems: () => InitialExpandedItems,
|
|
39
|
+
Layout: () => Layout,
|
|
36
40
|
LayoutType: () => LayoutType,
|
|
37
41
|
LineStyle: () => LineStyle,
|
|
38
42
|
MapType: () => MapType,
|
|
@@ -41,13 +45,16 @@ __export(index_exports, {
|
|
|
41
45
|
NullValue: () => NullValue,
|
|
42
46
|
Orientation: () => Orientation,
|
|
43
47
|
Origin: () => Origin,
|
|
48
|
+
Placement: () => Placement,
|
|
44
49
|
PluginContainerDataAlignment: () => PluginContainerDataAlignment,
|
|
45
50
|
PollLayoutDirection: () => PollLayoutDirection,
|
|
46
51
|
PollLayoutType: () => PollLayoutType,
|
|
47
52
|
Position: () => Position,
|
|
53
|
+
Resizing: () => Resizing,
|
|
48
54
|
SortOrder: () => SortOrder,
|
|
49
55
|
Source: () => Source,
|
|
50
56
|
Status: () => Status,
|
|
57
|
+
StylesPosition: () => StylesPosition,
|
|
51
58
|
Target: () => Target,
|
|
52
59
|
TextAlignment: () => TextAlignment,
|
|
53
60
|
ThumbnailsAlignment: () => ThumbnailsAlignment,
|
|
@@ -1966,12 +1973,12 @@ var Width = /* @__PURE__ */ ((Width2) => {
|
|
|
1966
1973
|
Width2["SMALL"] = "SMALL";
|
|
1967
1974
|
return Width2;
|
|
1968
1975
|
})(Width || {});
|
|
1969
|
-
var
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
return
|
|
1974
|
-
})(
|
|
1976
|
+
var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
|
|
1977
|
+
DividerDataAlignment2["CENTER"] = "CENTER";
|
|
1978
|
+
DividerDataAlignment2["LEFT"] = "LEFT";
|
|
1979
|
+
DividerDataAlignment2["RIGHT"] = "RIGHT";
|
|
1980
|
+
return DividerDataAlignment2;
|
|
1981
|
+
})(DividerDataAlignment || {});
|
|
1975
1982
|
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
|
1976
1983
|
ViewMode2["NONE"] = "NONE";
|
|
1977
1984
|
ViewMode2["FULL"] = "FULL";
|
|
@@ -2019,13 +2026,13 @@ var Source = /* @__PURE__ */ ((Source2) => {
|
|
|
2019
2026
|
Source2["ADSENSE"] = "ADSENSE";
|
|
2020
2027
|
return Source2;
|
|
2021
2028
|
})(Source || {});
|
|
2022
|
-
var
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
return
|
|
2028
|
-
})(
|
|
2029
|
+
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
2030
|
+
StylesPosition2["START"] = "START";
|
|
2031
|
+
StylesPosition2["END"] = "END";
|
|
2032
|
+
StylesPosition2["TOP"] = "TOP";
|
|
2033
|
+
StylesPosition2["HIDDEN"] = "HIDDEN";
|
|
2034
|
+
return StylesPosition2;
|
|
2035
|
+
})(StylesPosition || {});
|
|
2029
2036
|
var MapType = /* @__PURE__ */ ((MapType2) => {
|
|
2030
2037
|
MapType2["ROADMAP"] = "ROADMAP";
|
|
2031
2038
|
MapType2["SATELITE"] = "SATELITE";
|
|
@@ -2081,6 +2088,43 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
|
2081
2088
|
FontType2["EM"] = "EM";
|
|
2082
2089
|
return FontType2;
|
|
2083
2090
|
})(FontType || {});
|
|
2091
|
+
var Position = /* @__PURE__ */ ((Position2) => {
|
|
2092
|
+
Position2["START"] = "START";
|
|
2093
|
+
Position2["END"] = "END";
|
|
2094
|
+
Position2["TOP"] = "TOP";
|
|
2095
|
+
return Position2;
|
|
2096
|
+
})(Position || {});
|
|
2097
|
+
var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
|
|
2098
|
+
AspectRatio2["SQUARE"] = "SQUARE";
|
|
2099
|
+
AspectRatio2["RECTANGLE"] = "RECTANGLE";
|
|
2100
|
+
return AspectRatio2;
|
|
2101
|
+
})(AspectRatio || {});
|
|
2102
|
+
var Resizing = /* @__PURE__ */ ((Resizing2) => {
|
|
2103
|
+
Resizing2["FILL"] = "FILL";
|
|
2104
|
+
Resizing2["FIT"] = "FIT";
|
|
2105
|
+
return Resizing2;
|
|
2106
|
+
})(Resizing || {});
|
|
2107
|
+
var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
2108
|
+
Placement2["IMAGE"] = "IMAGE";
|
|
2109
|
+
Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
|
|
2110
|
+
return Placement2;
|
|
2111
|
+
})(Placement || {});
|
|
2112
|
+
var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
|
|
2113
|
+
CardStylesType2["CONTAINED"] = "CONTAINED";
|
|
2114
|
+
CardStylesType2["FRAMELESS"] = "FRAMELESS";
|
|
2115
|
+
return CardStylesType2;
|
|
2116
|
+
})(CardStylesType || {});
|
|
2117
|
+
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
|
2118
|
+
Alignment2["START"] = "START";
|
|
2119
|
+
Alignment2["CENTER"] = "CENTER";
|
|
2120
|
+
Alignment2["END"] = "END";
|
|
2121
|
+
return Alignment2;
|
|
2122
|
+
})(Alignment || {});
|
|
2123
|
+
var Layout = /* @__PURE__ */ ((Layout2) => {
|
|
2124
|
+
Layout2["STACKED"] = "STACKED";
|
|
2125
|
+
Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
|
|
2126
|
+
return Layout2;
|
|
2127
|
+
})(Layout || {});
|
|
2084
2128
|
var AppType = /* @__PURE__ */ ((AppType2) => {
|
|
2085
2129
|
AppType2["PRODUCT"] = "PRODUCT";
|
|
2086
2130
|
AppType2["EVENT"] = "EVENT";
|
|
@@ -3380,16 +3424,20 @@ var onDraftUpdated2 = (0, import_event_definition_modules.createEventModule)(onD
|
|
|
3380
3424
|
Action,
|
|
3381
3425
|
Alignment,
|
|
3382
3426
|
AppType,
|
|
3427
|
+
AspectRatio,
|
|
3383
3428
|
BackgroundType,
|
|
3384
3429
|
ButtonDataType,
|
|
3430
|
+
CardStylesType,
|
|
3385
3431
|
Crop,
|
|
3386
3432
|
DecorationType,
|
|
3387
3433
|
Direction,
|
|
3434
|
+
DividerDataAlignment,
|
|
3388
3435
|
Field,
|
|
3389
3436
|
FontType,
|
|
3390
3437
|
GIFType,
|
|
3391
3438
|
GetDraftPostsSort,
|
|
3392
3439
|
InitialExpandedItems,
|
|
3440
|
+
Layout,
|
|
3393
3441
|
LayoutType,
|
|
3394
3442
|
LineStyle,
|
|
3395
3443
|
MapType,
|
|
@@ -3398,13 +3446,16 @@ var onDraftUpdated2 = (0, import_event_definition_modules.createEventModule)(onD
|
|
|
3398
3446
|
NullValue,
|
|
3399
3447
|
Orientation,
|
|
3400
3448
|
Origin,
|
|
3449
|
+
Placement,
|
|
3401
3450
|
PluginContainerDataAlignment,
|
|
3402
3451
|
PollLayoutDirection,
|
|
3403
3452
|
PollLayoutType,
|
|
3404
3453
|
Position,
|
|
3454
|
+
Resizing,
|
|
3405
3455
|
SortOrder,
|
|
3406
3456
|
Source,
|
|
3407
3457
|
Status,
|
|
3458
|
+
StylesPosition,
|
|
3408
3459
|
Target,
|
|
3409
3460
|
TextAlignment,
|
|
3410
3461
|
ThumbnailsAlignment,
|