@wix/auto_sdk_blog_draft-posts 1.0.38 → 1.0.40
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 +12 -33
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -37
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/es/index.d.mts +12 -33
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -37
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/internal/cjs/index.d.ts +12 -33
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +16 -37
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -5
- package/build/internal/es/index.d.mts +12 -33
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +16 -37
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -5
- package/package.json +3 -3
|
@@ -1944,21 +1944,21 @@ interface Tag {
|
|
|
1944
1944
|
* For example: `{"name": "description", "content": "the description itself"}`.
|
|
1945
1945
|
*/
|
|
1946
1946
|
props?: Record<string, any> | null;
|
|
1947
|
-
/** SEO tag
|
|
1947
|
+
/** SEO tag metadata. For example, `{"height": 300, "width": 240}`. */
|
|
1948
1948
|
meta?: Record<string, any> | null;
|
|
1949
1949
|
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
1950
1950
|
children?: string;
|
|
1951
|
-
/** Whether the tag is a custom tag. */
|
|
1951
|
+
/** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */
|
|
1952
1952
|
custom?: boolean;
|
|
1953
|
-
/** Whether the tag is disabled. */
|
|
1953
|
+
/** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
|
|
1954
1954
|
disabled?: boolean;
|
|
1955
1955
|
}
|
|
1956
1956
|
interface Settings {
|
|
1957
1957
|
/**
|
|
1958
|
-
* Whether the
|
|
1958
|
+
* Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.
|
|
1959
1959
|
*
|
|
1960
1960
|
*
|
|
1961
|
-
* Default: `false` (
|
|
1961
|
+
* Default: `false` (automatical redirect is enabled).
|
|
1962
1962
|
*/
|
|
1963
1963
|
preventAutoRedirect?: boolean;
|
|
1964
1964
|
/**
|
|
@@ -1,8 +1,7 @@
|
|
|
1
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.mjs';
|
|
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, PricingData, 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.mjs';
|
|
3
|
+
export { Action, ActionEvent, ActionWithLiterals, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, ApproveDraftPostRequest, ApproveDraftPostResponse, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkActionMetadata, BulkCreateDraftPostsRequest, BulkDeleteDraftPostsRequest, BulkDraftPostResult, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, BulkUpdateDraftPostsRequest, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CardStylesType, CardStylesTypeWithLiterals, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostRequest, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteDraftPostRequest, DeleteDraftPostResponse, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftCategoriesUpdated, DraftPostOwnerChanged, DraftPostTranslation, DraftPostsQueryResult, DraftTagsUpdated, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetDeletedDraftPostRequest, GetDraftPostRequest, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, GetDraftPostsSort, GetDraftPostsSortWithLiterals, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialDraftPostsCopied, InitialExpandedItems, InitialExpandedItemsWithLiterals, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDeletedDraftPostsRequest, ListDraftPostsRequest, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, MaskedDraftPosts, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, ModerationDetails, ModerationStatusStatus, ModerationStatusStatusWithLiterals, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PostAmountByLanguage, PricingData, PublishDraftPostRequest, QueryDraftPostsRequest, QueryDraftPostsResponse, RejectDraftPostRequest, RejectDraftPostResponse, Rel, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, Resizing, ResizingWithLiterals, RestoreFromTrashBinRequest, RestoreInfo, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RibbonStyles, RichContent, SeoSchema, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TotalDraftPosts, TotalDraftPostsGroupingField, TotalDraftPostsGroupingFieldWithLiterals, TranslateCategoryRequest, TranslateCategoryResponse, TranslateDraftRequest, TranslateDraftResponse, Type, TypeWithLiterals, UnpublishPostRequest, UnpublishPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, UpdateDraftPostRequest, V1Media, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia } from './index.typings.mjs';
|
|
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`;
|
|
6
5
|
declare function createDraftPost$1(httpClient: HttpClient): CreateDraftPostSignature;
|
|
7
6
|
interface CreateDraftPostSignature {
|
|
8
7
|
/**
|
|
@@ -18,9 +17,7 @@ interface CreateDraftPostSignature {
|
|
|
18
17
|
* @param - Draft post to create.
|
|
19
18
|
* @param - Options for creating a draft post.
|
|
20
19
|
*/
|
|
21
|
-
(draftPost: NonNullablePaths<DraftPost, `title
|
|
22
|
-
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
23
|
-
}[DraftNonNullablePaths]>>;
|
|
20
|
+
(draftPost: NonNullablePaths<DraftPost, `title`, 2>, options?: CreateDraftPostOptions): Promise<NonNullablePaths<CreateDraftPostResponse, `draftPost._id` | `draftPost.title` | `draftPost.categoryIds` | `draftPost.hashtags` | `draftPost.minutesToRead` | `draftPost.tagIds` | `draftPost.relatedPostIds` | `draftPost.pricingPlanIds` | `draftPost.status` | `draftPost.moderationDetails.submittedBy` | `draftPost.moderationDetails.status` | `draftPost.hasUnpublishedChanges` | `draftPost.seoData.tags` | `draftPost.seoData.tags.${number}.type` | `draftPost.seoData.tags.${number}.children` | `draftPost.seoData.tags.${number}.custom` | `draftPost.seoData.tags.${number}.disabled` | `draftPost.seoData.settings.preventAutoRedirect` | `draftPost.seoData.settings.keywords` | `draftPost.seoData.settings.keywords.${number}.term` | `draftPost.seoData.settings.keywords.${number}.isMain` | `draftPost.media.embedMedia.thumbnail.url` | `draftPost.media.embedMedia.thumbnail.width` | `draftPost.media.embedMedia.thumbnail.height` | `draftPost.media.embedMedia.video.url` | `draftPost.media.embedMedia.video.width` | `draftPost.media.embedMedia.video.height` | `draftPost.media.displayed` | `draftPost.media.custom`, 7>>;
|
|
24
21
|
}
|
|
25
22
|
declare function bulkCreateDraftPosts$1(httpClient: HttpClient): BulkCreateDraftPostsSignature;
|
|
26
23
|
interface BulkCreateDraftPostsSignature {
|
|
@@ -29,9 +26,7 @@ interface BulkCreateDraftPostsSignature {
|
|
|
29
26
|
* @param - Draft posts to create.
|
|
30
27
|
* @param - Options for creating multiple draft posts.
|
|
31
28
|
*/
|
|
32
|
-
(draftPosts: NonNullablePaths<DraftPost, `title
|
|
33
|
-
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
34
|
-
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
29
|
+
(draftPosts: NonNullablePaths<DraftPost, `title`, 2>[], options?: BulkCreateDraftPostsOptions): Promise<NonNullablePaths<BulkCreateDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item._id` | `results.${number}.item.title` | `results.${number}.item.minutesToRead` | `results.${number}.item.status` | `results.${number}.item.moderationDetails.submittedBy` | `results.${number}.item.moderationDetails.status` | `results.${number}.item.hasUnpublishedChanges` | `results.${number}.item.media.displayed` | `results.${number}.item.media.custom` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
35
30
|
}
|
|
36
31
|
declare function bulkUpdateDraftPosts$1(httpClient: HttpClient): BulkUpdateDraftPostsSignature;
|
|
37
32
|
interface BulkUpdateDraftPostsSignature {
|
|
@@ -39,9 +34,7 @@ interface BulkUpdateDraftPostsSignature {
|
|
|
39
34
|
* Updates multiple draft posts.
|
|
40
35
|
* @param - Options for updating multiple draft posts.
|
|
41
36
|
*/
|
|
42
|
-
(options?: NonNullablePaths<BulkUpdateDraftPostsOptions, `draftPosts.${number}.draftPost` | `draftPosts.${number}.draftPost._id
|
|
43
|
-
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
44
|
-
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
37
|
+
(options?: NonNullablePaths<BulkUpdateDraftPostsOptions, `draftPosts.${number}.draftPost` | `draftPosts.${number}.draftPost._id`, 5>): Promise<NonNullablePaths<BulkUpdateDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item._id` | `results.${number}.item.title` | `results.${number}.item.minutesToRead` | `results.${number}.item.status` | `results.${number}.item.moderationDetails.submittedBy` | `results.${number}.item.moderationDetails.status` | `results.${number}.item.hasUnpublishedChanges` | `results.${number}.item.media.displayed` | `results.${number}.item.media.custom` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
45
38
|
}
|
|
46
39
|
declare function listDeletedDraftPosts$1(httpClient: HttpClient): ListDeletedDraftPostsSignature;
|
|
47
40
|
interface ListDeletedDraftPostsSignature {
|
|
@@ -54,9 +47,7 @@ interface ListDeletedDraftPostsSignature {
|
|
|
54
47
|
* - `paging.offset` is `0`.
|
|
55
48
|
* @param - Options for listing deleted draft posts.
|
|
56
49
|
*/
|
|
57
|
-
(options?: ListDeletedDraftPostsOptions): Promise<NonNullablePaths<ListDeletedDraftPostsResponse, {
|
|
58
|
-
[P in DraftNonNullablePaths]: `draftPosts.${number}.${P}`;
|
|
59
|
-
}[DraftNonNullablePaths]>>;
|
|
50
|
+
(options?: ListDeletedDraftPostsOptions): Promise<NonNullablePaths<ListDeletedDraftPostsResponse, `draftPosts` | `draftPosts.${number}._id` | `draftPosts.${number}.title` | `draftPosts.${number}.minutesToRead` | `draftPosts.${number}.status` | `draftPosts.${number}.moderationDetails.submittedBy` | `draftPosts.${number}.moderationDetails.status` | `draftPosts.${number}.hasUnpublishedChanges` | `draftPosts.${number}.seoData.settings.preventAutoRedirect` | `draftPosts.${number}.media.displayed` | `draftPosts.${number}.media.custom`, 6>>;
|
|
60
51
|
}
|
|
61
52
|
declare function getDraftPost$1(httpClient: HttpClient): GetDraftPostSignature;
|
|
62
53
|
interface GetDraftPostSignature {
|
|
@@ -65,9 +56,7 @@ interface GetDraftPostSignature {
|
|
|
65
56
|
* @param - Draft post ID.
|
|
66
57
|
* @param - Options for getting a draft post.
|
|
67
58
|
*/
|
|
68
|
-
(draftPostId: string, options?: GetDraftPostOptions): Promise<NonNullablePaths<GetDraftPostResponse, {
|
|
69
|
-
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
70
|
-
}[DraftNonNullablePaths]>>;
|
|
59
|
+
(draftPostId: string, options?: GetDraftPostOptions): Promise<NonNullablePaths<GetDraftPostResponse, `draftPost._id` | `draftPost.title` | `draftPost.categoryIds` | `draftPost.hashtags` | `draftPost.minutesToRead` | `draftPost.tagIds` | `draftPost.relatedPostIds` | `draftPost.pricingPlanIds` | `draftPost.status` | `draftPost.moderationDetails.submittedBy` | `draftPost.moderationDetails.status` | `draftPost.hasUnpublishedChanges` | `draftPost.seoData.tags` | `draftPost.seoData.tags.${number}.type` | `draftPost.seoData.tags.${number}.children` | `draftPost.seoData.tags.${number}.custom` | `draftPost.seoData.tags.${number}.disabled` | `draftPost.seoData.settings.preventAutoRedirect` | `draftPost.seoData.settings.keywords` | `draftPost.seoData.settings.keywords.${number}.term` | `draftPost.seoData.settings.keywords.${number}.isMain` | `draftPost.media.embedMedia.thumbnail.url` | `draftPost.media.embedMedia.thumbnail.width` | `draftPost.media.embedMedia.thumbnail.height` | `draftPost.media.embedMedia.video.url` | `draftPost.media.embedMedia.video.width` | `draftPost.media.embedMedia.video.height` | `draftPost.media.displayed` | `draftPost.media.custom`, 7>>;
|
|
71
60
|
}
|
|
72
61
|
declare function updateDraftPost$1(httpClient: HttpClient): UpdateDraftPostSignature;
|
|
73
62
|
interface UpdateDraftPostSignature {
|
|
@@ -77,9 +66,7 @@ interface UpdateDraftPostSignature {
|
|
|
77
66
|
* @param - Options for updating a draft post.
|
|
78
67
|
* @param - Draft Post info.
|
|
79
68
|
*/
|
|
80
|
-
(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions): Promise<NonNullablePaths<UpdateDraftPostResponse, {
|
|
81
|
-
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
82
|
-
}[DraftNonNullablePaths]>>;
|
|
69
|
+
(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions): Promise<NonNullablePaths<UpdateDraftPostResponse, `draftPost._id` | `draftPost.title` | `draftPost.categoryIds` | `draftPost.hashtags` | `draftPost.minutesToRead` | `draftPost.tagIds` | `draftPost.relatedPostIds` | `draftPost.pricingPlanIds` | `draftPost.status` | `draftPost.moderationDetails.submittedBy` | `draftPost.moderationDetails.status` | `draftPost.hasUnpublishedChanges` | `draftPost.seoData.tags` | `draftPost.seoData.tags.${number}.type` | `draftPost.seoData.tags.${number}.children` | `draftPost.seoData.tags.${number}.custom` | `draftPost.seoData.tags.${number}.disabled` | `draftPost.seoData.settings.preventAutoRedirect` | `draftPost.seoData.settings.keywords` | `draftPost.seoData.settings.keywords.${number}.term` | `draftPost.seoData.settings.keywords.${number}.isMain` | `draftPost.media.embedMedia.thumbnail.url` | `draftPost.media.embedMedia.thumbnail.width` | `draftPost.media.embedMedia.thumbnail.height` | `draftPost.media.embedMedia.video.url` | `draftPost.media.embedMedia.video.width` | `draftPost.media.embedMedia.video.height` | `draftPost.media.displayed` | `draftPost.media.custom`, 7>>;
|
|
83
70
|
}
|
|
84
71
|
declare function deleteDraftPost$1(httpClient: HttpClient): DeleteDraftPostSignature;
|
|
85
72
|
interface DeleteDraftPostSignature {
|
|
@@ -110,9 +97,7 @@ interface BulkDeleteDraftPostsSignature {
|
|
|
110
97
|
* @param - Post IDs.
|
|
111
98
|
* @param - Options for deleting multiple draft posts.
|
|
112
99
|
*/
|
|
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`>>;
|
|
100
|
+
(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` | `results.${number}.item._id` | `results.${number}.item.title` | `results.${number}.item.minutesToRead` | `results.${number}.item.status` | `results.${number}.item.moderationDetails.submittedBy` | `results.${number}.item.moderationDetails.status` | `results.${number}.item.hasUnpublishedChanges` | `results.${number}.item.media.displayed` | `results.${number}.item.media.custom` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
116
101
|
}
|
|
117
102
|
declare function listDraftPosts$1(httpClient: HttpClient): ListDraftPostsSignature;
|
|
118
103
|
interface ListDraftPostsSignature {
|
|
@@ -125,9 +110,7 @@ interface ListDraftPostsSignature {
|
|
|
125
110
|
* - `paging.offset` is `0`.
|
|
126
111
|
* @param - Options for listing multiple draft posts.
|
|
127
112
|
*/
|
|
128
|
-
(options?: ListDraftPostsOptions): Promise<NonNullablePaths<ListDraftPostsResponse, {
|
|
129
|
-
[P in DraftNonNullablePaths]: `draftPosts.${number}.${P}`;
|
|
130
|
-
}[DraftNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
|
113
|
+
(options?: ListDraftPostsOptions): Promise<NonNullablePaths<ListDraftPostsResponse, `draftPosts` | `draftPosts.${number}._id` | `draftPosts.${number}.title` | `draftPosts.${number}.minutesToRead` | `draftPosts.${number}.status` | `draftPosts.${number}.moderationDetails.submittedBy` | `draftPosts.${number}.moderationDetails.status` | `draftPosts.${number}.hasUnpublishedChanges` | `draftPosts.${number}.seoData.settings.preventAutoRedirect` | `draftPosts.${number}.media.displayed` | `draftPosts.${number}.media.custom` | `metaData.count` | `metaData.offset` | `metaData.total`, 6>>;
|
|
131
114
|
}
|
|
132
115
|
declare function getDeletedDraftPost$1(httpClient: HttpClient): GetDeletedDraftPostSignature;
|
|
133
116
|
interface GetDeletedDraftPostSignature {
|
|
@@ -135,9 +118,7 @@ interface GetDeletedDraftPostSignature {
|
|
|
135
118
|
* Retrieves a deleted draft post from the trash bin by the provided ID.
|
|
136
119
|
* @param - Draft post ID.
|
|
137
120
|
*/
|
|
138
|
-
(draftPostId: string): Promise<NonNullablePaths<GetDeletedDraftPostResponse, {
|
|
139
|
-
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
140
|
-
}[DraftNonNullablePaths]>>;
|
|
121
|
+
(draftPostId: string): Promise<NonNullablePaths<GetDeletedDraftPostResponse, `draftPost._id` | `draftPost.title` | `draftPost.categoryIds` | `draftPost.hashtags` | `draftPost.minutesToRead` | `draftPost.tagIds` | `draftPost.relatedPostIds` | `draftPost.pricingPlanIds` | `draftPost.status` | `draftPost.moderationDetails.submittedBy` | `draftPost.moderationDetails.status` | `draftPost.hasUnpublishedChanges` | `draftPost.seoData.tags` | `draftPost.seoData.tags.${number}.type` | `draftPost.seoData.tags.${number}.children` | `draftPost.seoData.tags.${number}.custom` | `draftPost.seoData.tags.${number}.disabled` | `draftPost.seoData.settings.preventAutoRedirect` | `draftPost.seoData.settings.keywords` | `draftPost.seoData.settings.keywords.${number}.term` | `draftPost.seoData.settings.keywords.${number}.isMain` | `draftPost.media.embedMedia.thumbnail.url` | `draftPost.media.embedMedia.thumbnail.width` | `draftPost.media.embedMedia.thumbnail.height` | `draftPost.media.embedMedia.video.url` | `draftPost.media.embedMedia.video.width` | `draftPost.media.embedMedia.video.height` | `draftPost.media.displayed` | `draftPost.media.custom`, 7>>;
|
|
141
122
|
}
|
|
142
123
|
declare function restoreFromTrashBin$1(httpClient: HttpClient): RestoreFromTrashBinSignature;
|
|
143
124
|
interface RestoreFromTrashBinSignature {
|
|
@@ -145,9 +126,7 @@ interface RestoreFromTrashBinSignature {
|
|
|
145
126
|
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
146
127
|
* @param - Draft post ID.
|
|
147
128
|
*/
|
|
148
|
-
(draftPostId: string): Promise<NonNullablePaths<RestoreFromTrashBinResponse, {
|
|
149
|
-
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
150
|
-
}[DraftNonNullablePaths]>>;
|
|
129
|
+
(draftPostId: string): Promise<NonNullablePaths<RestoreFromTrashBinResponse, `draftPost._id` | `draftPost.title` | `draftPost.categoryIds` | `draftPost.hashtags` | `draftPost.minutesToRead` | `draftPost.tagIds` | `draftPost.relatedPostIds` | `draftPost.pricingPlanIds` | `draftPost.status` | `draftPost.moderationDetails.submittedBy` | `draftPost.moderationDetails.status` | `draftPost.hasUnpublishedChanges` | `draftPost.seoData.tags` | `draftPost.seoData.tags.${number}.type` | `draftPost.seoData.tags.${number}.children` | `draftPost.seoData.tags.${number}.custom` | `draftPost.seoData.tags.${number}.disabled` | `draftPost.seoData.settings.preventAutoRedirect` | `draftPost.seoData.settings.keywords` | `draftPost.seoData.settings.keywords.${number}.term` | `draftPost.seoData.settings.keywords.${number}.isMain` | `draftPost.media.embedMedia.thumbnail.url` | `draftPost.media.embedMedia.thumbnail.width` | `draftPost.media.embedMedia.thumbnail.height` | `draftPost.media.embedMedia.video.url` | `draftPost.media.embedMedia.video.width` | `draftPost.media.embedMedia.video.height` | `draftPost.media.displayed` | `draftPost.media.custom`, 7>>;
|
|
151
130
|
}
|
|
152
131
|
declare function queryDraftPosts$1(httpClient: HttpClient): QueryDraftPostsSignature;
|
|
153
132
|
interface QueryDraftPostsSignature {
|
|
@@ -180,7 +159,7 @@ interface PublishDraftPostSignature {
|
|
|
180
159
|
* from the draft post.
|
|
181
160
|
* @param - Draft post ID.
|
|
182
161
|
*/
|
|
183
|
-
(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId
|
|
162
|
+
(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`, 2>>;
|
|
184
163
|
}
|
|
185
164
|
declare const onDraftCreated$1: EventDefinition<DraftCreatedEnvelope, "wix.blog.v3.draft_created">;
|
|
186
165
|
declare const onDraftDeleted$1: EventDefinition<DraftDeletedEnvelope, "wix.blog.v3.draft_deleted">;
|