@wix/auto_sdk_blog_draft-posts 1.0.14 → 1.0.16
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/{internal/cjs/src/blog-v3-draft-draft-posts.universal.d.ts → blog-v3-draft-draft-posts.universal-vVP72XfS.d.mts} +311 -958
- package/build/{internal/es/src/blog-v3-draft-draft-posts.universal.d.ts → blog-v3-draft-draft-posts.universal-vVP72XfS.d.ts} +311 -958
- package/build/index.d.mts +193 -0
- package/build/index.d.ts +193 -0
- package/build/index.js +3411 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +3331 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/blog-v3-draft-draft-posts.universal.d.ts → internal/blog-v3-draft-draft-posts.universal-vVP72XfS.d.mts} +311 -958
- package/build/{es/src/blog-v3-draft-draft-posts.universal.d.ts → internal/blog-v3-draft-draft-posts.universal-vVP72XfS.d.ts} +311 -958
- package/build/internal/index.d.mts +193 -0
- package/build/internal/index.d.ts +193 -0
- package/build/internal/index.js +3411 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +3331 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/blog-v3-draft-draft-posts.types.d.ts → internal/meta.d.mts} +269 -1445
- package/build/internal/{cjs/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.ts} +269 -1445
- package/build/internal/meta.js +2057 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +2017 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{cjs/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.mts} +269 -1445
- package/build/{internal/es/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.ts} +269 -1445
- package/build/meta.js +2057 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +2017 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
- package/build/cjs/src/blog-v3-draft-draft-posts.context.js +0 -78
- package/build/cjs/src/blog-v3-draft-draft-posts.context.js.map +0 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
- package/build/cjs/src/blog-v3-draft-draft-posts.http.js +0 -1803
- package/build/cjs/src/blog-v3-draft-draft-posts.http.js.map +0 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
- package/build/cjs/src/blog-v3-draft-draft-posts.meta.js +0 -294
- package/build/cjs/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
- package/build/cjs/src/blog-v3-draft-draft-posts.public.js +0 -339
- package/build/cjs/src/blog-v3-draft-draft-posts.public.js.map +0 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.types.js +0 -476
- package/build/cjs/src/blog-v3-draft-draft-posts.types.js.map +0 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.js +0 -1497
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
- package/build/es/src/blog-v3-draft-draft-posts.context.js +0 -34
- package/build/es/src/blog-v3-draft-draft-posts.context.js.map +0 -1
- package/build/es/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
- package/build/es/src/blog-v3-draft-draft-posts.http.js +0 -1786
- package/build/es/src/blog-v3-draft-draft-posts.http.js.map +0 -1
- package/build/es/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
- package/build/es/src/blog-v3-draft-draft-posts.meta.js +0 -254
- package/build/es/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
- package/build/es/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
- package/build/es/src/blog-v3-draft-draft-posts.public.js +0 -281
- package/build/es/src/blog-v3-draft-draft-posts.public.js.map +0 -1
- package/build/es/src/blog-v3-draft-draft-posts.types.js +0 -473
- package/build/es/src/blog-v3-draft-draft-posts.types.js.map +0 -1
- package/build/es/src/blog-v3-draft-draft-posts.universal.js +0 -1456
- package/build/es/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.js +0 -78
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js +0 -1803
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.js +0 -294
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js +0 -339
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js +0 -476
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js +0 -1497
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
- package/build/internal/es/src/blog-v3-draft-draft-posts.context.js +0 -34
- package/build/internal/es/src/blog-v3-draft-draft-posts.context.js.map +0 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
- package/build/internal/es/src/blog-v3-draft-draft-posts.http.js +0 -1786
- package/build/internal/es/src/blog-v3-draft-draft-posts.http.js.map +0 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
- package/build/internal/es/src/blog-v3-draft-draft-posts.meta.js +0 -254
- package/build/internal/es/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.js +0 -281
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.js.map +0 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.js +0 -473
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.js.map +0 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js +0 -1456
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { D as DraftPost, C as CreateDraftPostOptions, a as CreateDraftPostResponse, B as BulkCreateDraftPostsOptions, b as BulkCreateDraftPostsResponse, c as BulkUpdateDraftPostsOptions, d as BulkUpdateDraftPostsResponse, L as ListDeletedDraftPostsOptions, e as ListDeletedDraftPostsResponse, G as GetDraftPostOptions, f as GetDraftPostResponse, U as UpdateDraftPost, g as UpdateDraftPostOptions, h as UpdateDraftPostResponse, i as DeleteDraftPostOptions, j as BulkDeleteDraftPostsOptions, k as BulkDeleteDraftPostsResponse, l as ListDraftPostsOptions, m as ListDraftPostsResponse, n as GetDeletedDraftPostResponse, R as RestoreFromTrashBinResponse, Q as QueryDraftPostsOptions, o as DraftPostsQueryBuilder, P as PublishDraftPostResponse } from './blog-v3-draft-draft-posts.universal-vVP72XfS.mjs';
|
|
3
|
+
export { a7 as Action, c2 as ActionEvent, A as Alignment, bc as AnchorData, bi as AppEmbedData, bj as AppEmbedDataAppDataOneOf, Y as AppType, cb as ApplicationError, d3 as ApproveDraftPostRequest, d4 as ApproveDraftPostResponse, bx as AudioData, b2 as Background, b3 as BackgroundBackgroundOneOf, J as BackgroundType, d7 as BaseEventMetadata, bA as BlockquoteData, ch as BlogPaging, bk as BookingData, ai as Border, bv as BorderColors, cc as BulkActionMetadata, c8 as BulkCreateDraftPostsRequest, cu as BulkDeleteDraftPostsRequest, c9 as BulkDraftPostResult, cZ as BulkRejectDraftPostRequest, c_ as BulkRejectDraftPostResponse, cX as BulkRevertToUnpublishedRequest, cY as BulkRevertToUnpublishedResponse, cS as BulkUpdateDraftPostLanguageRequest, cT as BulkUpdateDraftPostLanguageResponse, cd as BulkUpdateDraftPostsRequest, bz as BulletedListData, ah as ButtonData, q as ButtonDataType, bB as CaptionData, cK as Category, cL as CategoryTranslation, bu as CellStyle, at as CodeBlockData, bq as CollapsibleListData, bd as ColorData, aj as Colors, aa as CoverMedia, ab as CoverMediaMediaOneOf, c7 as CreateDraftPostRequest, w as Crop, cD as CursorPaging, ck as Cursors, ba as Decoration, bb as DecorationDataOneOf, K as DecorationType, cq as DeleteDraftPostRequest, cr as DeleteDraftPostResponse, b8 as Design, bs as Dimensions, _ as Direction, av as DividerData, bE as DocumentStyle, bY as DomainEvent, bZ as DomainEventBodyOneOf, bT as DraftCategoriesUpdated, d9 as DraftCreatedEnvelope, da as DraftDeletedEnvelope, cf as DraftPostOwnerChanged, bS as DraftPostTranslation, dc as DraftPostsQueryResult, bU as DraftTagsUpdated, db as DraftUpdatedEnvelope, bo as EmbedData, bP as EmbedMedia, bQ as EmbedThumbnail, bR as EmbedVideo, b_ as EntityCreatedEvent, c1 as EntityDeletedEvent, c0 as EntityUpdatedEvent, bl as EventData, d8 as EventMetadata, a6 as Field, aw as FileData, ax as FileSource, ay as FileSourceDataOneOf, ac as FocalPoint, bg as FontSizeData, X as FontType, aL as GIF, aK as GIFData, y as GIFType, aA as GalleryData, aG as GalleryOptions, cw as GetDeletedDraftPostRequest, cl as GetDraftPostRequest, bV as GetDraftPostTotalsRequest, bW as GetDraftPostTotalsResponse, a8 as GetDraftPostsSort, cU as GetPostAmountsByLanguageRequest, cV as GetPostAmountsByLanguageResponse, b1 as Gradient, aN as HTMLData, aO as HTMLDataDataOneOf, aM as HeadingData, ao as Height, c4 as IdentificationData, c5 as IdentificationDataIdOneOf, aC as Image, aP as ImageData, aR as ImageDataStyles, c6 as InitialDraftPostsCopied, Z as InitialExpandedItems, cO as IsDraftPostAutoTranslatableRequest, cP as IsDraftPostAutoTranslatableResponse, aE as Item, aF as ItemDataOneOf, ca as ItemMetadata, aI as ItemStyle, bI as Keyword, aH as Layout, bC as LayoutCellData, u as LayoutType, s as LineStyle, aq as Link, be as LinkData, ar as LinkDataOneOf, aS as LinkPreviewData, aT as LinkPreviewDataStyles, cg as ListDeletedDraftPostsRequest, cv as ListDraftPostsRequest, bw as ListValue, aU as MapData, aV as MapSettings, M as MapType, d5 as MarkPostAsInModerationRequest, d6 as MarkPostAsInModerationResponse, ce as MaskedDraftPosts, bL as Media, bM as MediaMediaOneOf, bf as MentionData, c3 as MessageEnvelope, ci as MetaData, bD as Metadata, bG as ModerationDetails, a2 as ModerationStatusStatus, ae as Node, af as NodeDataOneOf, ag as NodeStyle, N as NodeType, a0 as NullValue, bp as Oembed, aZ as Option, b5 as OptionDesign, b0 as OptionLayout, by as OrderedListData, v as Orientation, O as Origin, az as PDFSettings, cC as Paging, cj as PagingMetadataV2, aW as ParagraphData, aY as Permissions, cA as PlatformQuery, cB as PlatformQueryPagingMethodOneOf, bn as PlaybackOptions, ak as PluginContainerData, p as PluginContainerDataAlignment, al as PluginContainerDataWidth, am as PluginContainerDataWidthDataOneOf, b6 as Poll, aX as PollData, b7 as PollDataLayout, b4 as PollDesign, a$ as PollLayout, I as PollLayoutDirection, H as PollLayoutType, a_ as PollSettings, z as Position, cW as PostAmountByLanguage, cF as PublishDraftPostRequest, cy as QueryDraftPostsRequest, cE as QueryDraftPostsResponse, d1 as RejectDraftPostRequest, d2 as RejectDraftPostResponse, as as Rel, cs as RemoveFromTrashBinRequest, ct as RemoveFromTrashBinResponse, cx as RestoreFromTrashBinRequest, b$ as RestoreInfo, c$ as RevertToUnpublishedRequest, d0 as RevertToUnpublishedResponse, ad as RichContent, bH as SeoSchema, bK as Settings, a9 as SortOrder, cz as Sorting, S as Source, an as Spoiler, bh as SpoilerData, a1 as Status, ap as Styles, aQ as StylesBorder, bt as TableCellData, br as TableData, bJ as Tag, T as Target, r as TextAlignment, b9 as TextData, bF as TextNodeStyle, au as TextStyle, aJ as Thumbnails, x as ThumbnailsAlignment, bX as TotalDraftPosts, a3 as TotalDraftPostsGroupingField, cI as TranslateCategoryRequest, cJ as TranslateCategoryResponse, cM as TranslateDraftRequest, cN as TranslateDraftResponse, a5 as Type, cG as UnpublishPostRequest, cH as UnpublishPostResponse, cm as UpdateDraftPostContentRequest, cn as UpdateDraftPostContentRequestDraftContentOneOf, co as UpdateDraftPostContentResponse, cQ as UpdateDraftPostLanguageRequest, cR as UpdateDraftPostLanguageResponse, cp as UpdateDraftPostRequest, aB as V1Media, $ as VerticalAlignment, aD as Video, bm as VideoData, bO as VideoResolution, V as ViewMode, E as ViewRole, F as VoteRole, a4 as WebhookIdentityType, t as Width, W as WidthType, bN as WixMedia } from './blog-v3-draft-draft-posts.universal-vVP72XfS.mjs';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function createDraftPost$1(httpClient: HttpClient): CreateDraftPostSignature;
|
|
7
|
+
interface CreateDraftPostSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a draft post.
|
|
10
|
+
*
|
|
11
|
+
* For 3rd-party apps, `memberId` is a required field.
|
|
12
|
+
*
|
|
13
|
+
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
14
|
+
* `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array.
|
|
15
|
+
* If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`.
|
|
16
|
+
* You can check which categories are available with
|
|
17
|
+
* List Categories ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/list-categories) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/category/list-categories)).
|
|
18
|
+
* @param - Draft post to create.
|
|
19
|
+
* @param - Options for creating a draft post.
|
|
20
|
+
*/
|
|
21
|
+
(draftPost: DraftPost, options?: CreateDraftPostOptions | undefined): Promise<CreateDraftPostResponse>;
|
|
22
|
+
}
|
|
23
|
+
declare function bulkCreateDraftPosts$1(httpClient: HttpClient): BulkCreateDraftPostsSignature;
|
|
24
|
+
interface BulkCreateDraftPostsSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Creates multiple draft posts.
|
|
27
|
+
* @param - Draft posts to create.
|
|
28
|
+
* @param - Options for creating multiple draft posts.
|
|
29
|
+
*/
|
|
30
|
+
(draftPosts: DraftPost[], options?: BulkCreateDraftPostsOptions | undefined): Promise<BulkCreateDraftPostsResponse>;
|
|
31
|
+
}
|
|
32
|
+
declare function bulkUpdateDraftPosts$1(httpClient: HttpClient): BulkUpdateDraftPostsSignature;
|
|
33
|
+
interface BulkUpdateDraftPostsSignature {
|
|
34
|
+
/**
|
|
35
|
+
* Updates multiple draft posts.
|
|
36
|
+
* @param - Options for updating multiple draft posts.
|
|
37
|
+
*/
|
|
38
|
+
(options?: BulkUpdateDraftPostsOptions | undefined): Promise<BulkUpdateDraftPostsResponse>;
|
|
39
|
+
}
|
|
40
|
+
declare function listDeletedDraftPosts$1(httpClient: HttpClient): ListDeletedDraftPostsSignature;
|
|
41
|
+
interface ListDeletedDraftPostsSignature {
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a list of up to 100 deleted draft posts.
|
|
44
|
+
*
|
|
45
|
+
* List Draft Posts runs with these defaults, which you can override:
|
|
46
|
+
* - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
|
|
47
|
+
* - `paging.limit` is `50`.
|
|
48
|
+
* - `paging.offset` is `0`.
|
|
49
|
+
* @param - Options for listing deleted draft posts.
|
|
50
|
+
*/
|
|
51
|
+
(options?: ListDeletedDraftPostsOptions | undefined): Promise<ListDeletedDraftPostsResponse>;
|
|
52
|
+
}
|
|
53
|
+
declare function getDraftPost$1(httpClient: HttpClient): GetDraftPostSignature;
|
|
54
|
+
interface GetDraftPostSignature {
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves a draft post by the provided ID.
|
|
57
|
+
* @param - Draft post ID.
|
|
58
|
+
* @param - Options for getting a draft post.
|
|
59
|
+
*/
|
|
60
|
+
(draftPostId: string, options?: GetDraftPostOptions | undefined): Promise<GetDraftPostResponse>;
|
|
61
|
+
}
|
|
62
|
+
declare function updateDraftPost$1(httpClient: HttpClient): UpdateDraftPostSignature;
|
|
63
|
+
interface UpdateDraftPostSignature {
|
|
64
|
+
/**
|
|
65
|
+
* Updates a draft post.
|
|
66
|
+
* @param - Draft post ID.
|
|
67
|
+
* @param - Options for updating a draft post.
|
|
68
|
+
* @param - Draft Post info.
|
|
69
|
+
*/
|
|
70
|
+
(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions | undefined): Promise<UpdateDraftPostResponse>;
|
|
71
|
+
}
|
|
72
|
+
declare function deleteDraftPost$1(httpClient: HttpClient): DeleteDraftPostSignature;
|
|
73
|
+
interface DeleteDraftPostSignature {
|
|
74
|
+
/**
|
|
75
|
+
* Moves a draft post to the trash bin.
|
|
76
|
+
* A published post can also be deleted by the `post.id`. See the Posts API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object)) for more information about posts.
|
|
77
|
+
*
|
|
78
|
+
* To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this.
|
|
79
|
+
* @param - Draft post ID.
|
|
80
|
+
* @param - Options for deleting a draft post.
|
|
81
|
+
*/
|
|
82
|
+
(draftPostId: string, options?: DeleteDraftPostOptions | undefined): Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
declare function removeFromTrashBin$1(httpClient: HttpClient): RemoveFromTrashBinSignature;
|
|
85
|
+
interface RemoveFromTrashBinSignature {
|
|
86
|
+
/**
|
|
87
|
+
* Permanently deletes a draft post that is currently in the trash bin.
|
|
88
|
+
*
|
|
89
|
+
* This action is permanent and can't be reversed.
|
|
90
|
+
* @param - Draft post ID.
|
|
91
|
+
*/
|
|
92
|
+
(draftPostId: string): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
declare function bulkDeleteDraftPosts$1(httpClient: HttpClient): BulkDeleteDraftPostsSignature;
|
|
95
|
+
interface BulkDeleteDraftPostsSignature {
|
|
96
|
+
/**
|
|
97
|
+
* Deletes multiple draft posts.
|
|
98
|
+
* @param - Post IDs.
|
|
99
|
+
* @param - Options for deleting multiple draft posts.
|
|
100
|
+
*/
|
|
101
|
+
(postIds: string[], options?: BulkDeleteDraftPostsOptions | undefined): Promise<BulkDeleteDraftPostsResponse>;
|
|
102
|
+
}
|
|
103
|
+
declare function listDraftPosts$1(httpClient: HttpClient): ListDraftPostsSignature;
|
|
104
|
+
interface ListDraftPostsSignature {
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves a list of up to 100 draft posts per request.
|
|
107
|
+
*
|
|
108
|
+
* List Draft Posts runs with these defaults, which you can override:
|
|
109
|
+
* - `editedDate` is sorted in descending order.
|
|
110
|
+
* - `paging.limit` is `50`.
|
|
111
|
+
* - `paging.offset` is `0`.
|
|
112
|
+
* @param - Options for listing multiple draft posts.
|
|
113
|
+
*/
|
|
114
|
+
(options?: ListDraftPostsOptions | undefined): Promise<ListDraftPostsResponse>;
|
|
115
|
+
}
|
|
116
|
+
declare function getDeletedDraftPost$1(httpClient: HttpClient): GetDeletedDraftPostSignature;
|
|
117
|
+
interface GetDeletedDraftPostSignature {
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves a deleted draft post from the trash bin by the provided ID.
|
|
120
|
+
* @param - Draft post ID.
|
|
121
|
+
*/
|
|
122
|
+
(draftPostId: string): Promise<GetDeletedDraftPostResponse>;
|
|
123
|
+
}
|
|
124
|
+
declare function restoreFromTrashBin$1(httpClient: HttpClient): RestoreFromTrashBinSignature;
|
|
125
|
+
interface RestoreFromTrashBinSignature {
|
|
126
|
+
/**
|
|
127
|
+
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
128
|
+
* @param - Draft post ID.
|
|
129
|
+
*/
|
|
130
|
+
(draftPostId: string): Promise<RestoreFromTrashBinResponse>;
|
|
131
|
+
}
|
|
132
|
+
declare function queryDraftPosts$1(httpClient: HttpClient): QueryDraftPostsSignature;
|
|
133
|
+
interface QueryDraftPostsSignature {
|
|
134
|
+
/**
|
|
135
|
+
* Creates a query to retrieve a list of up to 100 draft posts.
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* The `queryDraftPosts()` function builds a query to retrieve a list of up to 100 draft posts, and returns a `DraftPostsQueryBuilder` object.
|
|
139
|
+
*
|
|
140
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
141
|
+
*
|
|
142
|
+
* You can refine the query by chaining `DraftPostsQueryBuilder` functions onto the query. `DraftPostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryDraftPosts()` returns.
|
|
143
|
+
*
|
|
144
|
+
* `queryDraftPosts()` runs with these `DraftPostsQueryBuilder` defaults that can be overridden:
|
|
145
|
+
* - `limit(50)`
|
|
146
|
+
* - `ascending('_id')`
|
|
147
|
+
*
|
|
148
|
+
* 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`.
|
|
149
|
+
* @param - Options for querying draft posts.
|
|
150
|
+
*/
|
|
151
|
+
(options?: QueryDraftPostsOptions | undefined): DraftPostsQueryBuilder;
|
|
152
|
+
}
|
|
153
|
+
declare function publishDraftPost$1(httpClient: HttpClient): PublishDraftPostSignature;
|
|
154
|
+
interface PublishDraftPostSignature {
|
|
155
|
+
/**
|
|
156
|
+
* Publishes a draft post by ID. This creates a new post ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object))
|
|
157
|
+
* with the data from the draft post.
|
|
158
|
+
*
|
|
159
|
+
* If the draft post was already published, the published post will be updated with the latest values
|
|
160
|
+
* from the draft post.
|
|
161
|
+
* @param - Draft post ID.
|
|
162
|
+
*/
|
|
163
|
+
(draftPostId: string): Promise<PublishDraftPostResponse>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare const createDraftPost: MaybeContext<BuildRESTFunction<typeof createDraftPost$1> & typeof createDraftPost$1>;
|
|
167
|
+
declare const bulkCreateDraftPosts: MaybeContext<BuildRESTFunction<typeof bulkCreateDraftPosts$1> & typeof bulkCreateDraftPosts$1>;
|
|
168
|
+
declare const bulkUpdateDraftPosts: MaybeContext<BuildRESTFunction<typeof bulkUpdateDraftPosts$1> & typeof bulkUpdateDraftPosts$1>;
|
|
169
|
+
declare const listDeletedDraftPosts: MaybeContext<BuildRESTFunction<typeof listDeletedDraftPosts$1> & typeof listDeletedDraftPosts$1>;
|
|
170
|
+
declare const getDraftPost: MaybeContext<BuildRESTFunction<typeof getDraftPost$1> & typeof getDraftPost$1>;
|
|
171
|
+
declare const updateDraftPost: MaybeContext<BuildRESTFunction<typeof updateDraftPost$1> & typeof updateDraftPost$1>;
|
|
172
|
+
declare const deleteDraftPost: MaybeContext<BuildRESTFunction<typeof deleteDraftPost$1> & typeof deleteDraftPost$1>;
|
|
173
|
+
declare const removeFromTrashBin: MaybeContext<BuildRESTFunction<typeof removeFromTrashBin$1> & typeof removeFromTrashBin$1>;
|
|
174
|
+
declare const bulkDeleteDraftPosts: MaybeContext<BuildRESTFunction<typeof bulkDeleteDraftPosts$1> & typeof bulkDeleteDraftPosts$1>;
|
|
175
|
+
declare const listDraftPosts: MaybeContext<BuildRESTFunction<typeof listDraftPosts$1> & typeof listDraftPosts$1>;
|
|
176
|
+
declare const getDeletedDraftPost: MaybeContext<BuildRESTFunction<typeof getDeletedDraftPost$1> & typeof getDeletedDraftPost$1>;
|
|
177
|
+
declare const restoreFromTrashBin: MaybeContext<BuildRESTFunction<typeof restoreFromTrashBin$1> & typeof restoreFromTrashBin$1>;
|
|
178
|
+
declare const queryDraftPosts: MaybeContext<BuildRESTFunction<typeof queryDraftPosts$1> & typeof queryDraftPosts$1>;
|
|
179
|
+
declare const publishDraftPost: MaybeContext<BuildRESTFunction<typeof publishDraftPost$1> & typeof publishDraftPost$1>;
|
|
180
|
+
/**
|
|
181
|
+
* Triggered when a draft post is created.
|
|
182
|
+
*/
|
|
183
|
+
declare const onDraftCreated: ReturnType<typeof createEventModule<typeof publicOnDraftCreated>>;
|
|
184
|
+
/**
|
|
185
|
+
* Triggered when a draft post is deleted.
|
|
186
|
+
*/
|
|
187
|
+
declare const onDraftDeleted: ReturnType<typeof createEventModule<typeof publicOnDraftDeleted>>;
|
|
188
|
+
/**
|
|
189
|
+
* Triggered when a draft post is updated.
|
|
190
|
+
*/
|
|
191
|
+
declare const onDraftUpdated: ReturnType<typeof createEventModule<typeof publicOnDraftUpdated>>;
|
|
192
|
+
|
|
193
|
+
export { BulkCreateDraftPostsOptions, BulkCreateDraftPostsResponse, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsResponse, CreateDraftPostOptions, CreateDraftPostResponse, DeleteDraftPostOptions, DraftPost, DraftPostsQueryBuilder, GetDeletedDraftPostResponse, GetDraftPostOptions, GetDraftPostResponse, ListDeletedDraftPostsOptions, ListDeletedDraftPostsResponse, ListDraftPostsOptions, ListDraftPostsResponse, PublishDraftPostResponse, QueryDraftPostsOptions, RestoreFromTrashBinResponse, UpdateDraftPost, UpdateDraftPostOptions, UpdateDraftPostResponse, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, onDraftCreated, onDraftDeleted, onDraftUpdated, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, updateDraftPost };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { D as DraftPost, C as CreateDraftPostOptions, a as CreateDraftPostResponse, B as BulkCreateDraftPostsOptions, b as BulkCreateDraftPostsResponse, c as BulkUpdateDraftPostsOptions, d as BulkUpdateDraftPostsResponse, L as ListDeletedDraftPostsOptions, e as ListDeletedDraftPostsResponse, G as GetDraftPostOptions, f as GetDraftPostResponse, U as UpdateDraftPost, g as UpdateDraftPostOptions, h as UpdateDraftPostResponse, i as DeleteDraftPostOptions, j as BulkDeleteDraftPostsOptions, k as BulkDeleteDraftPostsResponse, l as ListDraftPostsOptions, m as ListDraftPostsResponse, n as GetDeletedDraftPostResponse, R as RestoreFromTrashBinResponse, Q as QueryDraftPostsOptions, o as DraftPostsQueryBuilder, P as PublishDraftPostResponse } from './blog-v3-draft-draft-posts.universal-vVP72XfS.js';
|
|
3
|
+
export { a7 as Action, c2 as ActionEvent, A as Alignment, bc as AnchorData, bi as AppEmbedData, bj as AppEmbedDataAppDataOneOf, Y as AppType, cb as ApplicationError, d3 as ApproveDraftPostRequest, d4 as ApproveDraftPostResponse, bx as AudioData, b2 as Background, b3 as BackgroundBackgroundOneOf, J as BackgroundType, d7 as BaseEventMetadata, bA as BlockquoteData, ch as BlogPaging, bk as BookingData, ai as Border, bv as BorderColors, cc as BulkActionMetadata, c8 as BulkCreateDraftPostsRequest, cu as BulkDeleteDraftPostsRequest, c9 as BulkDraftPostResult, cZ as BulkRejectDraftPostRequest, c_ as BulkRejectDraftPostResponse, cX as BulkRevertToUnpublishedRequest, cY as BulkRevertToUnpublishedResponse, cS as BulkUpdateDraftPostLanguageRequest, cT as BulkUpdateDraftPostLanguageResponse, cd as BulkUpdateDraftPostsRequest, bz as BulletedListData, ah as ButtonData, q as ButtonDataType, bB as CaptionData, cK as Category, cL as CategoryTranslation, bu as CellStyle, at as CodeBlockData, bq as CollapsibleListData, bd as ColorData, aj as Colors, aa as CoverMedia, ab as CoverMediaMediaOneOf, c7 as CreateDraftPostRequest, w as Crop, cD as CursorPaging, ck as Cursors, ba as Decoration, bb as DecorationDataOneOf, K as DecorationType, cq as DeleteDraftPostRequest, cr as DeleteDraftPostResponse, b8 as Design, bs as Dimensions, _ as Direction, av as DividerData, bE as DocumentStyle, bY as DomainEvent, bZ as DomainEventBodyOneOf, bT as DraftCategoriesUpdated, d9 as DraftCreatedEnvelope, da as DraftDeletedEnvelope, cf as DraftPostOwnerChanged, bS as DraftPostTranslation, dc as DraftPostsQueryResult, bU as DraftTagsUpdated, db as DraftUpdatedEnvelope, bo as EmbedData, bP as EmbedMedia, bQ as EmbedThumbnail, bR as EmbedVideo, b_ as EntityCreatedEvent, c1 as EntityDeletedEvent, c0 as EntityUpdatedEvent, bl as EventData, d8 as EventMetadata, a6 as Field, aw as FileData, ax as FileSource, ay as FileSourceDataOneOf, ac as FocalPoint, bg as FontSizeData, X as FontType, aL as GIF, aK as GIFData, y as GIFType, aA as GalleryData, aG as GalleryOptions, cw as GetDeletedDraftPostRequest, cl as GetDraftPostRequest, bV as GetDraftPostTotalsRequest, bW as GetDraftPostTotalsResponse, a8 as GetDraftPostsSort, cU as GetPostAmountsByLanguageRequest, cV as GetPostAmountsByLanguageResponse, b1 as Gradient, aN as HTMLData, aO as HTMLDataDataOneOf, aM as HeadingData, ao as Height, c4 as IdentificationData, c5 as IdentificationDataIdOneOf, aC as Image, aP as ImageData, aR as ImageDataStyles, c6 as InitialDraftPostsCopied, Z as InitialExpandedItems, cO as IsDraftPostAutoTranslatableRequest, cP as IsDraftPostAutoTranslatableResponse, aE as Item, aF as ItemDataOneOf, ca as ItemMetadata, aI as ItemStyle, bI as Keyword, aH as Layout, bC as LayoutCellData, u as LayoutType, s as LineStyle, aq as Link, be as LinkData, ar as LinkDataOneOf, aS as LinkPreviewData, aT as LinkPreviewDataStyles, cg as ListDeletedDraftPostsRequest, cv as ListDraftPostsRequest, bw as ListValue, aU as MapData, aV as MapSettings, M as MapType, d5 as MarkPostAsInModerationRequest, d6 as MarkPostAsInModerationResponse, ce as MaskedDraftPosts, bL as Media, bM as MediaMediaOneOf, bf as MentionData, c3 as MessageEnvelope, ci as MetaData, bD as Metadata, bG as ModerationDetails, a2 as ModerationStatusStatus, ae as Node, af as NodeDataOneOf, ag as NodeStyle, N as NodeType, a0 as NullValue, bp as Oembed, aZ as Option, b5 as OptionDesign, b0 as OptionLayout, by as OrderedListData, v as Orientation, O as Origin, az as PDFSettings, cC as Paging, cj as PagingMetadataV2, aW as ParagraphData, aY as Permissions, cA as PlatformQuery, cB as PlatformQueryPagingMethodOneOf, bn as PlaybackOptions, ak as PluginContainerData, p as PluginContainerDataAlignment, al as PluginContainerDataWidth, am as PluginContainerDataWidthDataOneOf, b6 as Poll, aX as PollData, b7 as PollDataLayout, b4 as PollDesign, a$ as PollLayout, I as PollLayoutDirection, H as PollLayoutType, a_ as PollSettings, z as Position, cW as PostAmountByLanguage, cF as PublishDraftPostRequest, cy as QueryDraftPostsRequest, cE as QueryDraftPostsResponse, d1 as RejectDraftPostRequest, d2 as RejectDraftPostResponse, as as Rel, cs as RemoveFromTrashBinRequest, ct as RemoveFromTrashBinResponse, cx as RestoreFromTrashBinRequest, b$ as RestoreInfo, c$ as RevertToUnpublishedRequest, d0 as RevertToUnpublishedResponse, ad as RichContent, bH as SeoSchema, bK as Settings, a9 as SortOrder, cz as Sorting, S as Source, an as Spoiler, bh as SpoilerData, a1 as Status, ap as Styles, aQ as StylesBorder, bt as TableCellData, br as TableData, bJ as Tag, T as Target, r as TextAlignment, b9 as TextData, bF as TextNodeStyle, au as TextStyle, aJ as Thumbnails, x as ThumbnailsAlignment, bX as TotalDraftPosts, a3 as TotalDraftPostsGroupingField, cI as TranslateCategoryRequest, cJ as TranslateCategoryResponse, cM as TranslateDraftRequest, cN as TranslateDraftResponse, a5 as Type, cG as UnpublishPostRequest, cH as UnpublishPostResponse, cm as UpdateDraftPostContentRequest, cn as UpdateDraftPostContentRequestDraftContentOneOf, co as UpdateDraftPostContentResponse, cQ as UpdateDraftPostLanguageRequest, cR as UpdateDraftPostLanguageResponse, cp as UpdateDraftPostRequest, aB as V1Media, $ as VerticalAlignment, aD as Video, bm as VideoData, bO as VideoResolution, V as ViewMode, E as ViewRole, F as VoteRole, a4 as WebhookIdentityType, t as Width, W as WidthType, bN as WixMedia } from './blog-v3-draft-draft-posts.universal-vVP72XfS.js';
|
|
4
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
5
|
+
|
|
6
|
+
declare function createDraftPost$1(httpClient: HttpClient): CreateDraftPostSignature;
|
|
7
|
+
interface CreateDraftPostSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a draft post.
|
|
10
|
+
*
|
|
11
|
+
* For 3rd-party apps, `memberId` is a required field.
|
|
12
|
+
*
|
|
13
|
+
* In `categoryIds`, only categories that already exist will be added to the draft post. Including
|
|
14
|
+
* `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array.
|
|
15
|
+
* If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`.
|
|
16
|
+
* You can check which categories are available with
|
|
17
|
+
* List Categories ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/list-categories) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/category/list-categories)).
|
|
18
|
+
* @param - Draft post to create.
|
|
19
|
+
* @param - Options for creating a draft post.
|
|
20
|
+
*/
|
|
21
|
+
(draftPost: DraftPost, options?: CreateDraftPostOptions | undefined): Promise<CreateDraftPostResponse>;
|
|
22
|
+
}
|
|
23
|
+
declare function bulkCreateDraftPosts$1(httpClient: HttpClient): BulkCreateDraftPostsSignature;
|
|
24
|
+
interface BulkCreateDraftPostsSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Creates multiple draft posts.
|
|
27
|
+
* @param - Draft posts to create.
|
|
28
|
+
* @param - Options for creating multiple draft posts.
|
|
29
|
+
*/
|
|
30
|
+
(draftPosts: DraftPost[], options?: BulkCreateDraftPostsOptions | undefined): Promise<BulkCreateDraftPostsResponse>;
|
|
31
|
+
}
|
|
32
|
+
declare function bulkUpdateDraftPosts$1(httpClient: HttpClient): BulkUpdateDraftPostsSignature;
|
|
33
|
+
interface BulkUpdateDraftPostsSignature {
|
|
34
|
+
/**
|
|
35
|
+
* Updates multiple draft posts.
|
|
36
|
+
* @param - Options for updating multiple draft posts.
|
|
37
|
+
*/
|
|
38
|
+
(options?: BulkUpdateDraftPostsOptions | undefined): Promise<BulkUpdateDraftPostsResponse>;
|
|
39
|
+
}
|
|
40
|
+
declare function listDeletedDraftPosts$1(httpClient: HttpClient): ListDeletedDraftPostsSignature;
|
|
41
|
+
interface ListDeletedDraftPostsSignature {
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a list of up to 100 deleted draft posts.
|
|
44
|
+
*
|
|
45
|
+
* List Draft Posts runs with these defaults, which you can override:
|
|
46
|
+
* - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
|
|
47
|
+
* - `paging.limit` is `50`.
|
|
48
|
+
* - `paging.offset` is `0`.
|
|
49
|
+
* @param - Options for listing deleted draft posts.
|
|
50
|
+
*/
|
|
51
|
+
(options?: ListDeletedDraftPostsOptions | undefined): Promise<ListDeletedDraftPostsResponse>;
|
|
52
|
+
}
|
|
53
|
+
declare function getDraftPost$1(httpClient: HttpClient): GetDraftPostSignature;
|
|
54
|
+
interface GetDraftPostSignature {
|
|
55
|
+
/**
|
|
56
|
+
* Retrieves a draft post by the provided ID.
|
|
57
|
+
* @param - Draft post ID.
|
|
58
|
+
* @param - Options for getting a draft post.
|
|
59
|
+
*/
|
|
60
|
+
(draftPostId: string, options?: GetDraftPostOptions | undefined): Promise<GetDraftPostResponse>;
|
|
61
|
+
}
|
|
62
|
+
declare function updateDraftPost$1(httpClient: HttpClient): UpdateDraftPostSignature;
|
|
63
|
+
interface UpdateDraftPostSignature {
|
|
64
|
+
/**
|
|
65
|
+
* Updates a draft post.
|
|
66
|
+
* @param - Draft post ID.
|
|
67
|
+
* @param - Options for updating a draft post.
|
|
68
|
+
* @param - Draft Post info.
|
|
69
|
+
*/
|
|
70
|
+
(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions | undefined): Promise<UpdateDraftPostResponse>;
|
|
71
|
+
}
|
|
72
|
+
declare function deleteDraftPost$1(httpClient: HttpClient): DeleteDraftPostSignature;
|
|
73
|
+
interface DeleteDraftPostSignature {
|
|
74
|
+
/**
|
|
75
|
+
* Moves a draft post to the trash bin.
|
|
76
|
+
* A published post can also be deleted by the `post.id`. See the Posts API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object)) for more information about posts.
|
|
77
|
+
*
|
|
78
|
+
* To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this.
|
|
79
|
+
* @param - Draft post ID.
|
|
80
|
+
* @param - Options for deleting a draft post.
|
|
81
|
+
*/
|
|
82
|
+
(draftPostId: string, options?: DeleteDraftPostOptions | undefined): Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
declare function removeFromTrashBin$1(httpClient: HttpClient): RemoveFromTrashBinSignature;
|
|
85
|
+
interface RemoveFromTrashBinSignature {
|
|
86
|
+
/**
|
|
87
|
+
* Permanently deletes a draft post that is currently in the trash bin.
|
|
88
|
+
*
|
|
89
|
+
* This action is permanent and can't be reversed.
|
|
90
|
+
* @param - Draft post ID.
|
|
91
|
+
*/
|
|
92
|
+
(draftPostId: string): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
declare function bulkDeleteDraftPosts$1(httpClient: HttpClient): BulkDeleteDraftPostsSignature;
|
|
95
|
+
interface BulkDeleteDraftPostsSignature {
|
|
96
|
+
/**
|
|
97
|
+
* Deletes multiple draft posts.
|
|
98
|
+
* @param - Post IDs.
|
|
99
|
+
* @param - Options for deleting multiple draft posts.
|
|
100
|
+
*/
|
|
101
|
+
(postIds: string[], options?: BulkDeleteDraftPostsOptions | undefined): Promise<BulkDeleteDraftPostsResponse>;
|
|
102
|
+
}
|
|
103
|
+
declare function listDraftPosts$1(httpClient: HttpClient): ListDraftPostsSignature;
|
|
104
|
+
interface ListDraftPostsSignature {
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves a list of up to 100 draft posts per request.
|
|
107
|
+
*
|
|
108
|
+
* List Draft Posts runs with these defaults, which you can override:
|
|
109
|
+
* - `editedDate` is sorted in descending order.
|
|
110
|
+
* - `paging.limit` is `50`.
|
|
111
|
+
* - `paging.offset` is `0`.
|
|
112
|
+
* @param - Options for listing multiple draft posts.
|
|
113
|
+
*/
|
|
114
|
+
(options?: ListDraftPostsOptions | undefined): Promise<ListDraftPostsResponse>;
|
|
115
|
+
}
|
|
116
|
+
declare function getDeletedDraftPost$1(httpClient: HttpClient): GetDeletedDraftPostSignature;
|
|
117
|
+
interface GetDeletedDraftPostSignature {
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves a deleted draft post from the trash bin by the provided ID.
|
|
120
|
+
* @param - Draft post ID.
|
|
121
|
+
*/
|
|
122
|
+
(draftPostId: string): Promise<GetDeletedDraftPostResponse>;
|
|
123
|
+
}
|
|
124
|
+
declare function restoreFromTrashBin$1(httpClient: HttpClient): RestoreFromTrashBinSignature;
|
|
125
|
+
interface RestoreFromTrashBinSignature {
|
|
126
|
+
/**
|
|
127
|
+
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
128
|
+
* @param - Draft post ID.
|
|
129
|
+
*/
|
|
130
|
+
(draftPostId: string): Promise<RestoreFromTrashBinResponse>;
|
|
131
|
+
}
|
|
132
|
+
declare function queryDraftPosts$1(httpClient: HttpClient): QueryDraftPostsSignature;
|
|
133
|
+
interface QueryDraftPostsSignature {
|
|
134
|
+
/**
|
|
135
|
+
* Creates a query to retrieve a list of up to 100 draft posts.
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* The `queryDraftPosts()` function builds a query to retrieve a list of up to 100 draft posts, and returns a `DraftPostsQueryBuilder` object.
|
|
139
|
+
*
|
|
140
|
+
* The returned object contains the query definition, which is typically used to run the query using the `find()` function.
|
|
141
|
+
*
|
|
142
|
+
* You can refine the query by chaining `DraftPostsQueryBuilder` functions onto the query. `DraftPostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryDraftPosts()` returns.
|
|
143
|
+
*
|
|
144
|
+
* `queryDraftPosts()` runs with these `DraftPostsQueryBuilder` defaults that can be overridden:
|
|
145
|
+
* - `limit(50)`
|
|
146
|
+
* - `ascending('_id')`
|
|
147
|
+
*
|
|
148
|
+
* 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`.
|
|
149
|
+
* @param - Options for querying draft posts.
|
|
150
|
+
*/
|
|
151
|
+
(options?: QueryDraftPostsOptions | undefined): DraftPostsQueryBuilder;
|
|
152
|
+
}
|
|
153
|
+
declare function publishDraftPost$1(httpClient: HttpClient): PublishDraftPostSignature;
|
|
154
|
+
interface PublishDraftPostSignature {
|
|
155
|
+
/**
|
|
156
|
+
* Publishes a draft post by ID. This creates a new post ([SDK](https://dev.wix.com/docs/sdk/backend-modules/blog/posts/) | [REST](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object))
|
|
157
|
+
* with the data from the draft post.
|
|
158
|
+
*
|
|
159
|
+
* If the draft post was already published, the published post will be updated with the latest values
|
|
160
|
+
* from the draft post.
|
|
161
|
+
* @param - Draft post ID.
|
|
162
|
+
*/
|
|
163
|
+
(draftPostId: string): Promise<PublishDraftPostResponse>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare const createDraftPost: MaybeContext<BuildRESTFunction<typeof createDraftPost$1> & typeof createDraftPost$1>;
|
|
167
|
+
declare const bulkCreateDraftPosts: MaybeContext<BuildRESTFunction<typeof bulkCreateDraftPosts$1> & typeof bulkCreateDraftPosts$1>;
|
|
168
|
+
declare const bulkUpdateDraftPosts: MaybeContext<BuildRESTFunction<typeof bulkUpdateDraftPosts$1> & typeof bulkUpdateDraftPosts$1>;
|
|
169
|
+
declare const listDeletedDraftPosts: MaybeContext<BuildRESTFunction<typeof listDeletedDraftPosts$1> & typeof listDeletedDraftPosts$1>;
|
|
170
|
+
declare const getDraftPost: MaybeContext<BuildRESTFunction<typeof getDraftPost$1> & typeof getDraftPost$1>;
|
|
171
|
+
declare const updateDraftPost: MaybeContext<BuildRESTFunction<typeof updateDraftPost$1> & typeof updateDraftPost$1>;
|
|
172
|
+
declare const deleteDraftPost: MaybeContext<BuildRESTFunction<typeof deleteDraftPost$1> & typeof deleteDraftPost$1>;
|
|
173
|
+
declare const removeFromTrashBin: MaybeContext<BuildRESTFunction<typeof removeFromTrashBin$1> & typeof removeFromTrashBin$1>;
|
|
174
|
+
declare const bulkDeleteDraftPosts: MaybeContext<BuildRESTFunction<typeof bulkDeleteDraftPosts$1> & typeof bulkDeleteDraftPosts$1>;
|
|
175
|
+
declare const listDraftPosts: MaybeContext<BuildRESTFunction<typeof listDraftPosts$1> & typeof listDraftPosts$1>;
|
|
176
|
+
declare const getDeletedDraftPost: MaybeContext<BuildRESTFunction<typeof getDeletedDraftPost$1> & typeof getDeletedDraftPost$1>;
|
|
177
|
+
declare const restoreFromTrashBin: MaybeContext<BuildRESTFunction<typeof restoreFromTrashBin$1> & typeof restoreFromTrashBin$1>;
|
|
178
|
+
declare const queryDraftPosts: MaybeContext<BuildRESTFunction<typeof queryDraftPosts$1> & typeof queryDraftPosts$1>;
|
|
179
|
+
declare const publishDraftPost: MaybeContext<BuildRESTFunction<typeof publishDraftPost$1> & typeof publishDraftPost$1>;
|
|
180
|
+
/**
|
|
181
|
+
* Triggered when a draft post is created.
|
|
182
|
+
*/
|
|
183
|
+
declare const onDraftCreated: ReturnType<typeof createEventModule<typeof publicOnDraftCreated>>;
|
|
184
|
+
/**
|
|
185
|
+
* Triggered when a draft post is deleted.
|
|
186
|
+
*/
|
|
187
|
+
declare const onDraftDeleted: ReturnType<typeof createEventModule<typeof publicOnDraftDeleted>>;
|
|
188
|
+
/**
|
|
189
|
+
* Triggered when a draft post is updated.
|
|
190
|
+
*/
|
|
191
|
+
declare const onDraftUpdated: ReturnType<typeof createEventModule<typeof publicOnDraftUpdated>>;
|
|
192
|
+
|
|
193
|
+
export { BulkCreateDraftPostsOptions, BulkCreateDraftPostsResponse, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsResponse, CreateDraftPostOptions, CreateDraftPostResponse, DeleteDraftPostOptions, DraftPost, DraftPostsQueryBuilder, GetDeletedDraftPostResponse, GetDraftPostOptions, GetDraftPostResponse, ListDeletedDraftPostsOptions, ListDeletedDraftPostsResponse, ListDraftPostsOptions, ListDraftPostsResponse, PublishDraftPostResponse, QueryDraftPostsOptions, RestoreFromTrashBinResponse, UpdateDraftPost, UpdateDraftPostOptions, UpdateDraftPostResponse, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, onDraftCreated, onDraftDeleted, onDraftUpdated, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, updateDraftPost };
|