@wix/auto_sdk_blog_draft-posts 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/build/cjs/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
  2. package/build/cjs/src/blog-v3-draft-draft-posts.http.js +33 -29
  3. package/build/cjs/src/blog-v3-draft-draft-posts.http.js.map +1 -1
  4. package/build/cjs/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
  5. package/build/cjs/src/blog-v3-draft-draft-posts.public.js.map +1 -1
  6. package/build/cjs/src/blog-v3-draft-draft-posts.types.d.ts +7 -77
  7. package/build/cjs/src/blog-v3-draft-draft-posts.types.js +0 -11
  8. package/build/cjs/src/blog-v3-draft-draft-posts.types.js.map +1 -1
  9. package/build/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +57 -152
  10. package/build/cjs/src/blog-v3-draft-draft-posts.universal.js +32 -33
  11. package/build/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
  12. package/build/es/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
  13. package/build/es/src/blog-v3-draft-draft-posts.http.js +33 -29
  14. package/build/es/src/blog-v3-draft-draft-posts.http.js.map +1 -1
  15. package/build/es/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
  16. package/build/es/src/blog-v3-draft-draft-posts.public.js.map +1 -1
  17. package/build/es/src/blog-v3-draft-draft-posts.types.d.ts +7 -77
  18. package/build/es/src/blog-v3-draft-draft-posts.types.js +0 -11
  19. package/build/es/src/blog-v3-draft-draft-posts.types.js.map +1 -1
  20. package/build/es/src/blog-v3-draft-draft-posts.universal.d.ts +57 -152
  21. package/build/es/src/blog-v3-draft-draft-posts.universal.js +32 -33
  22. package/build/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
  23. package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
  24. package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js +33 -29
  25. package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js.map +1 -1
  26. package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
  27. package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js.map +1 -1
  28. package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.d.ts +7 -77
  29. package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js +0 -11
  30. package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js.map +1 -1
  31. package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +57 -168
  32. package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js +32 -33
  33. package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
  34. package/build/internal/es/src/blog-v3-draft-draft-posts.http.d.ts +33 -29
  35. package/build/internal/es/src/blog-v3-draft-draft-posts.http.js +33 -29
  36. package/build/internal/es/src/blog-v3-draft-draft-posts.http.js.map +1 -1
  37. package/build/internal/es/src/blog-v3-draft-draft-posts.public.d.ts +32 -22
  38. package/build/internal/es/src/blog-v3-draft-draft-posts.public.js.map +1 -1
  39. package/build/internal/es/src/blog-v3-draft-draft-posts.types.d.ts +7 -77
  40. package/build/internal/es/src/blog-v3-draft-draft-posts.types.js +0 -11
  41. package/build/internal/es/src/blog-v3-draft-draft-posts.types.js.map +1 -1
  42. package/build/internal/es/src/blog-v3-draft-draft-posts.universal.d.ts +57 -168
  43. package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js +32 -33
  44. package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -32,7 +32,7 @@ export interface DraftPost {
32
32
  */
33
33
  memberId?: string | null;
34
34
  /**
35
- * Hashtags in the draft post.
35
+ * Hashtags in the post.
36
36
  * @maxSize 100
37
37
  * @maxLength 100
38
38
  */
@@ -59,7 +59,7 @@ export interface DraftPost {
59
59
  */
60
60
  relatedPostIds?: string[];
61
61
  /**
62
- * Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan.
62
+ * Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan. See the Pricing Plans API for more info.
63
63
  * @maxSize 100
64
64
  * @format GUID
65
65
  */
@@ -80,22 +80,12 @@ export interface DraftPost {
80
80
  */
81
81
  language?: string | null;
82
82
  /**
83
- * Reserved for internal use.
84
- * @readonly
85
- */
86
- changeOrigin?: Origin;
87
- /**
88
- * Reserved for internal use.
89
- * @readonly
90
- * @maxLength 24
91
- */
92
- contentId?: string | null;
93
- /**
94
- * Reserved for internal use.
95
- * @format GUID
83
+ * Draft Post rich content.
84
+ *
85
+ * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.gallery.video.audio.divider.linkButton.html.giphy.codeBlock.file.hashtag.lineSpacing.indent.link.textColor.textHighlight.heading.verticalEmbed.table.collapsibleList.poll" exampleid="72c23a25-524f-4f70-a260-4a2777b6f5d5">
86
+ * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
87
+ * </widget>
96
88
  */
97
- editingSessionId?: string | null;
98
- /** Draft post rich content. */
99
89
  richContent?: RichContent;
100
90
  /**
101
91
  * Status of the draft post.
@@ -104,12 +94,6 @@ export interface DraftPost {
104
94
  status?: Status;
105
95
  /** Details of the draft post in review. Only relevant to posts submitted by guest writers. */
106
96
  moderationDetails?: ModerationDetails;
107
- /**
108
- * Reserved for internal use.
109
- * @readonly
110
- * @format GUID
111
- */
112
- mostRecentContributorId?: string | null;
113
97
  /**
114
98
  * Indicates if there are changes made to the draft post that have not yet been published.
115
99
  * @readonly
@@ -125,19 +109,10 @@ export interface DraftPost {
125
109
  * @readonly
126
110
  */
127
111
  scheduledPublishDate?: Date | null;
128
- /** Reserved for internal use. */
129
- content?: Record<string, any> | null;
130
112
  /** Date the post was first published. */
131
113
  firstPublishedDate?: Date | null;
132
114
  /** SEO data. */
133
115
  seoData?: SeoSchema;
134
- /**
135
- * Reserved for internal use.
136
- * @readonly
137
- * @maxSize 5000
138
- * @maxLength 100
139
- */
140
- slugs?: string[];
141
116
  /**
142
117
  * Draft post URL preview. What the URL will look like once the post is published.
143
118
  * @readonly
@@ -157,12 +132,6 @@ export interface DraftPost {
157
132
  media?: Media;
158
133
  /** Number of paragraphs to display in a paid content preview for non-paying users. */
159
134
  previewTextParagraph?: number | null;
160
- /**
161
- * Reserved for internal use.
162
- * @readonly
163
- * @maxLength 24
164
- */
165
- internalId?: string | null;
166
135
  }
167
136
  export interface CoverMedia extends CoverMediaMediaOneOf {
168
137
  /** Image url. */
@@ -183,7 +152,12 @@ export interface CoverMedia extends CoverMediaMediaOneOf {
183
152
  /** Whether cover media is custom. If `false` the cover image is set to the first media item that appears in the content. */
184
153
  custom?: boolean;
185
154
  /**
186
- * Media alternative text.
155
+ * Alternative text is a short phrase that describes what the image depicts.
156
+ *
157
+ * The alternative text is used:
158
+ * + If the browser cannot display the image.
159
+ * + If the user is utilizing a screen reader.
160
+ * + By search engines to understand what images are on a site.
187
161
  * @minLength 1
188
162
  * @maxLength 1000
189
163
  */
@@ -563,7 +537,7 @@ export interface Link extends LinkDataOneOf {
563
537
  /** The target node's ID. Used for linking to another node in this object. */
564
538
  anchor?: string;
565
539
  /**
566
- * The HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
540
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
567
541
  * `SELF` - Default. Opens the linked document in the same frame as the link.
568
542
  * `BLANK` - Opens the linked document in a new browser tab or window.
569
543
  * `PARENT` - Opens the linked document in the link's parent frame.
@@ -599,7 +573,7 @@ export interface Rel {
599
573
  sponsored?: boolean | null;
600
574
  /** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */
601
575
  ugc?: boolean | null;
602
- /** Indicates that this link protects referral information from being passed to the target website. */
576
+ /** Indicates that this link protect referral information from being passed to the target website. */
603
577
  noreferrer?: boolean | null;
604
578
  }
605
579
  export interface CodeBlockData {
@@ -1650,12 +1624,6 @@ export declare enum Status {
1650
1624
  SCHEDULED = "SCHEDULED",
1651
1625
  /** Status indicating the draft post is deleted. */
1652
1626
  DELETED = "DELETED",
1653
- /**
1654
- * Deprecated. Use `IN_REVIEW` instead. Status indicating the draft post is in review.
1655
- * Target removal date 2024-06-30
1656
- * Reserved for internal use.
1657
- */
1658
- IN_MODERATION = "IN_MODERATION",
1659
1627
  /** Status indicating the draft post is in review. */
1660
1628
  IN_REVIEW = "IN_REVIEW"
1661
1629
  }
@@ -2082,11 +2050,6 @@ export declare enum Field {
2082
2050
  UNKNOWN = "UNKNOWN",
2083
2051
  /** Includes draft post preview URL. */
2084
2052
  URL = "URL",
2085
- /**
2086
- * Includes internal id field.
2087
- * Reserved for internal use.
2088
- */
2089
- INTERNAL_ID = "INTERNAL_ID",
2090
2053
  /** Includes content field. */
2091
2054
  CONTENT = "CONTENT",
2092
2055
  /** Includes rich content field. */
@@ -2165,14 +2128,6 @@ export interface BulkUpdateDraftPostsRequest {
2165
2128
  /**
2166
2129
  * Action to perform on the posts.
2167
2130
  *
2168
- * - `UPDATE`: Update the draft post.
2169
- * - `UPDATE_PUBLISH`: Update and publish the draft post.
2170
- * - `UPDATE_SCHEDULE`: Update the draft post and schedule a publish date.
2171
- * - `UPDATE_REVERT_TO_DRAFT`: Update the post and revert it to a draft post.
2172
- * - `UPDATE_CANCEL_SCHEDULE`: Update the draft post and cancel the scheduled publish date.
2173
- * - `UPDATE_REJECT`: Update and reject the draft post.
2174
- * - `UPDATE_PUBLICATION`: Update a published post. This creates and updates a draft version of the post. The original post is still published.
2175
- *
2176
2131
  * Default: `UPDATE`
2177
2132
  */
2178
2133
  action?: Action;
@@ -2189,7 +2144,7 @@ export interface BulkUpdateDraftPostsRequest {
2189
2144
  fieldsets?: Field[];
2190
2145
  }
2191
2146
  export interface MaskedDraftPosts {
2192
- /** Draft post info. */
2147
+ /** Draft post */
2193
2148
  draftPost?: DraftPost;
2194
2149
  /** Field mask of fields to update. */
2195
2150
  fieldMask?: string[];
@@ -2321,7 +2276,7 @@ export interface UpdateDraftPostContentRequest extends UpdateDraftPostContentReq
2321
2276
  * @maxLength 400000
2322
2277
  */
2323
2278
  content?: string;
2324
- /** Draft post rich content. */
2279
+ /** Draft Post rich content. */
2325
2280
  richContent?: RichContent;
2326
2281
  /**
2327
2282
  * Draft post ID.
@@ -2345,7 +2300,7 @@ export interface UpdateDraftPostContentRequestDraftContentOneOf {
2345
2300
  * @maxLength 400000
2346
2301
  */
2347
2302
  content?: string;
2348
- /** Draft post rich content. */
2303
+ /** Draft Post rich content. */
2349
2304
  richContent?: RichContent;
2350
2305
  }
2351
2306
  export interface UpdateDraftPostContentResponse {
@@ -2421,7 +2376,6 @@ export interface ListDraftPostsRequest {
2421
2376
  * Draft post status filter.
2422
2377
  *
2423
2378
  * If omitted, draft posts with all statuses are returned.
2424
- * `IN_MODERATION` is deprecated, use `IN_REVIEW` instead.
2425
2379
  */
2426
2380
  status?: Status;
2427
2381
  /**
@@ -2556,19 +2510,6 @@ export interface CursorPaging {
2556
2510
  export interface QueryDraftPostsResponse {
2557
2511
  /** List of posts. */
2558
2512
  draftPosts?: DraftPost[];
2559
- /**
2560
- * __Deprecated.__ Use `pagingMetadata` instead.
2561
- * This property will be removed on June 30, 2023.
2562
- *
2563
- * Details on the paged set of results returned.
2564
- * @deprecated __Deprecated.__ Use `pagingMetadata` instead.
2565
- * This property will be removed on June 30, 2023.
2566
- *
2567
- * Details on the paged set of results returned.
2568
- * @replacedBy pagingMetadata
2569
- * @targetRemovalDate 2024-06-30
2570
- */
2571
- metaData?: MetaData;
2572
2513
  /** Details on the paged set of results returned. */
2573
2514
  pagingMetadata?: PagingMetadataV2;
2574
2515
  }
@@ -2695,12 +2636,6 @@ export interface Category {
2695
2636
  * @maxLength 100
2696
2637
  */
2697
2638
  slug?: string;
2698
- /**
2699
- * Reserved for internal use.
2700
- * @readonly
2701
- * @maxLength 24
2702
- */
2703
- internalId?: string | null;
2704
2639
  /** SEO data. */
2705
2640
  seoData?: SeoSchema;
2706
2641
  /** Category cover image. */
@@ -3492,7 +3427,13 @@ export declare function onDraftUpdated(handler: (event: DraftUpdatedEnvelope) =>
3492
3427
  /**
3493
3428
  * Creates a draft post.
3494
3429
  *
3495
- * The draft post's `memberId` is required for third-party apps.
3430
+ * For 3rd-party apps, `memberId` is a required field.
3431
+ *
3432
+ * In `categoryIds`, only categories that already exist will be added to the draft post. Including
3433
+ * `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array.
3434
+ * If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`.
3435
+ * You can check which categories are available with
3436
+ * 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)).
3496
3437
  * @param draftPost - Draft post to create.
3497
3438
  * @public
3498
3439
  * @requiredField draftPost
@@ -3570,14 +3511,6 @@ export interface BulkUpdateDraftPostsOptions {
3570
3511
  /**
3571
3512
  * Action to perform on the posts.
3572
3513
  *
3573
- * - `UPDATE`: Update the draft post.
3574
- * - `UPDATE_PUBLISH`: Update and publish the draft post.
3575
- * - `UPDATE_SCHEDULE`: Update the draft post and schedule a publish date.
3576
- * - `UPDATE_REVERT_TO_DRAFT`: Update the post and revert it to a draft post.
3577
- * - `UPDATE_CANCEL_SCHEDULE`: Update the draft post and cancel the scheduled publish date.
3578
- * - `UPDATE_REJECT`: Update and reject the draft post.
3579
- * - `UPDATE_PUBLICATION`: Update a published post. This creates and updates a draft version of the post. The original post is still published.
3580
- *
3581
3514
  * Default: `UPDATE`
3582
3515
  */
3583
3516
  action?: Action;
@@ -3596,7 +3529,7 @@ export interface BulkUpdateDraftPostsOptions {
3596
3529
  /**
3597
3530
  * Retrieves a list of up to 100 deleted draft posts.
3598
3531
  *
3599
- * List Deleted Draft Posts runs with these defaults, which you can override:
3532
+ * List Draft Posts runs with these defaults, which you can override:
3600
3533
  * - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
3601
3534
  * - `paging.limit` is `50`.
3602
3535
  * - `paging.offset` is `0`.
@@ -3641,9 +3574,7 @@ export interface ListDeletedDraftPostsOptions {
3641
3574
  draftPostIds?: string[];
3642
3575
  }
3643
3576
  /**
3644
- * Gets a draft post by the provided ID.
3645
- *
3646
- * Uses the provided `draftPostId` to retrieve a draft post.
3577
+ * Retrieves a draft post by the provided ID.
3647
3578
  * @param draftPostId - Draft post ID.
3648
3579
  * @public
3649
3580
  * @requiredField draftPostId
@@ -3713,7 +3644,7 @@ export interface UpdateDraftPost {
3713
3644
  */
3714
3645
  memberId?: string | null;
3715
3646
  /**
3716
- * Hashtags in the draft post.
3647
+ * Hashtags in the post.
3717
3648
  * @maxSize 100
3718
3649
  * @maxLength 100
3719
3650
  */
@@ -3740,7 +3671,7 @@ export interface UpdateDraftPost {
3740
3671
  */
3741
3672
  relatedPostIds?: string[];
3742
3673
  /**
3743
- * Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan.
3674
+ * Pricing plan IDs. Only relevant if a post is assigned to a specific pricing plan. See the Pricing Plans API for more info.
3744
3675
  * @maxSize 100
3745
3676
  * @format GUID
3746
3677
  */
@@ -3761,22 +3692,12 @@ export interface UpdateDraftPost {
3761
3692
  */
3762
3693
  language?: string | null;
3763
3694
  /**
3764
- * Reserved for internal use.
3765
- * @readonly
3766
- */
3767
- changeOrigin?: Origin;
3768
- /**
3769
- * Reserved for internal use.
3770
- * @readonly
3771
- * @maxLength 24
3772
- */
3773
- contentId?: string | null;
3774
- /**
3775
- * Reserved for internal use.
3776
- * @format GUID
3695
+ * Draft Post rich content.
3696
+ *
3697
+ * <widget src="https://apps.wix.com/_serverless/ricos-playground-services/goto/api-component" plugins="image.gallery.video.audio.divider.linkButton.html.giphy.codeBlock.file.hashtag.lineSpacing.indent.link.textColor.textHighlight.heading.verticalEmbed.table.collapsibleList.poll" exampleid="72c23a25-524f-4f70-a260-4a2777b6f5d5">
3698
+ * <a href="https://dev.wix.com/docs/ricos/api-reference/ricos-document">See Ricos document reference</a>
3699
+ * </widget>
3777
3700
  */
3778
- editingSessionId?: string | null;
3779
- /** Draft post rich content. */
3780
3701
  richContent?: RichContent;
3781
3702
  /**
3782
3703
  * Status of the draft post.
@@ -3785,12 +3706,6 @@ export interface UpdateDraftPost {
3785
3706
  status?: Status;
3786
3707
  /** Details of the draft post in review. Only relevant to posts submitted by guest writers. */
3787
3708
  moderationDetails?: ModerationDetails;
3788
- /**
3789
- * Reserved for internal use.
3790
- * @readonly
3791
- * @format GUID
3792
- */
3793
- mostRecentContributorId?: string | null;
3794
3709
  /**
3795
3710
  * Indicates if there are changes made to the draft post that have not yet been published.
3796
3711
  * @readonly
@@ -3806,19 +3721,10 @@ export interface UpdateDraftPost {
3806
3721
  * @readonly
3807
3722
  */
3808
3723
  scheduledPublishDate?: Date | null;
3809
- /** Reserved for internal use. */
3810
- content?: Record<string, any> | null;
3811
3724
  /** Date the post was first published. */
3812
3725
  firstPublishedDate?: Date | null;
3813
3726
  /** SEO data. */
3814
3727
  seoData?: SeoSchema;
3815
- /**
3816
- * Reserved for internal use.
3817
- * @readonly
3818
- * @maxSize 5000
3819
- * @maxLength 100
3820
- */
3821
- slugs?: string[];
3822
3728
  /**
3823
3729
  * Draft post URL preview. What the URL will look like once the post is published.
3824
3730
  * @readonly
@@ -3838,12 +3744,6 @@ export interface UpdateDraftPost {
3838
3744
  media?: Media;
3839
3745
  /** Number of paragraphs to display in a paid content preview for non-paying users. */
3840
3746
  previewTextParagraph?: number | null;
3841
- /**
3842
- * Reserved for internal use.
3843
- * @readonly
3844
- * @maxLength 24
3845
- */
3846
- internalId?: string | null;
3847
3747
  }
3848
3748
  export interface UpdateDraftPostOptions {
3849
3749
  /**
@@ -3863,10 +3763,10 @@ export interface UpdateDraftPostOptions {
3863
3763
  fieldsets?: Field[];
3864
3764
  }
3865
3765
  /**
3866
- * Moves a draft post with the provided ID to the trash bin.
3867
- * A published post can also be deleted by its provided `draftPostId`.
3766
+ * Moves a draft post to the trash bin.
3767
+ * 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.
3868
3768
  *
3869
- * The optional `permanent` field enables you to delete a post permanently, bypassing the trash bin. When a draft post is deleted this way, it can't be restored.
3769
+ * To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this.
3870
3770
  * @param draftPostId - Draft post ID.
3871
3771
  * @public
3872
3772
  * @requiredField draftPostId
@@ -3887,9 +3787,9 @@ export interface DeleteDraftPostOptions {
3887
3787
  permanent?: boolean;
3888
3788
  }
3889
3789
  /**
3890
- * Permanently deletes a draft post by the provided ID from the trash bin.
3790
+ * Permanently deletes a draft post that is currently in the trash bin.
3891
3791
  *
3892
- * Uses the provided `draftPostId` to permanently delete a draft post from the trash bin. This action is permanent and cannot be reversed.
3792
+ * This action is permanent and can't be reversed.
3893
3793
  * @param draftPostId - Draft post ID.
3894
3794
  * @public
3895
3795
  * @requiredField draftPostId
@@ -3938,7 +3838,6 @@ export interface ListDraftPostsOptions {
3938
3838
  * Draft post status filter.
3939
3839
  *
3940
3840
  * If omitted, draft posts with all statuses are returned.
3941
- * `IN_MODERATION` is deprecated, use `IN_REVIEW` instead.
3942
3841
  */
3943
3842
  status?: Status;
3944
3843
  /**
@@ -3966,9 +3865,7 @@ export interface ListDraftPostsOptions {
3966
3865
  fieldsets?: Field[];
3967
3866
  }
3968
3867
  /**
3969
- * Gets a deleted draft post from the trash bin by the provided ID.
3970
- *
3971
- * Uses the provided `draftPostId` to retrieve a previously deleted draft post from the trash bin.
3868
+ * Retrieves a deleted draft post from the trash bin by the provided ID.
3972
3869
  * @param draftPostId - Draft post ID.
3973
3870
  * @public
3974
3871
  * @requiredField draftPostId
@@ -3981,8 +3878,6 @@ export interface ListDraftPostsOptions {
3981
3878
  export declare function getDeletedDraftPost(draftPostId: string): Promise<GetDeletedDraftPostResponse & GetDeletedDraftPostResponseNonNullableFields>;
3982
3879
  /**
3983
3880
  * Restores a deleted draft post from the trash bin by the provided ID.
3984
- *
3985
- * Uses the `draftPostId` to restore a deleted draft post from the trash bin.
3986
3881
  * @param draftPostId - Draft post ID.
3987
3882
  * @public
3988
3883
  * @requiredField draftPostId
@@ -3994,12 +3889,20 @@ export declare function getDeletedDraftPost(draftPostId: string): Promise<GetDel
3994
3889
  */
3995
3890
  export declare function restoreFromTrashBin(draftPostId: string): Promise<RestoreFromTrashBinResponse & RestoreFromTrashBinResponseNonNullableFields>;
3996
3891
  /**
3997
- * Retrieves a list of up to 100 draft posts, given the provided paging, filtering, and sorting.
3892
+ * Creates a query to retrieve a list of up to 100 draft posts.
3998
3893
  *
3999
- * Query Draft Posts runs with these defaults, which you can override:
4000
- * - `editedDate` is sorted in `DESC` order.
4001
- * - `paging.limit` is `50`.
4002
- * - `paging.offset` is `0`.
3894
+ *
3895
+ * The `queryDraftPosts()` function builds a query to retrieve a list of up to 100 draft posts, and returns a `DraftPostsQueryBuilder` object.
3896
+ *
3897
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
3898
+ *
3899
+ * 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.
3900
+ *
3901
+ * `queryDraftPosts()` runs with these `DraftPostsQueryBuilder` defaults that can be overridden:
3902
+ * - `limit(50)`
3903
+ * - `ascending('_id')`
3904
+ *
3905
+ * 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`.
4003
3906
  * @public
4004
3907
  * @param options - Options for querying draft posts.
4005
3908
  * @permissionScope Manage Blog
@@ -4073,9 +3976,11 @@ export interface DraftPostsQueryBuilder {
4073
3976
  find: () => Promise<DraftPostsQueryResult>;
4074
3977
  }
4075
3978
  /**
4076
- * Publishes a specified draft post by ID. This creates a new post entity with the data from the draft post.
3979
+ * 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))
3980
+ * with the data from the draft post.
4077
3981
  *
4078
- * If the specified draft post was already published, the published post will be updated with the latest values from the draft post entity.
3982
+ * If the draft post was already published, the published post will be updated with the latest values
3983
+ * from the draft post.
4079
3984
  * @param draftPostId - Draft post ID.
4080
3985
  * @public
4081
3986
  * @requiredField draftPostId
@@ -431,12 +431,6 @@ var Status;
431
431
  Status["SCHEDULED"] = "SCHEDULED";
432
432
  /** Status indicating the draft post is deleted. */
433
433
  Status["DELETED"] = "DELETED";
434
- /**
435
- * Deprecated. Use `IN_REVIEW` instead. Status indicating the draft post is in review.
436
- * Target removal date 2024-06-30
437
- * Reserved for internal use.
438
- */
439
- Status["IN_MODERATION"] = "IN_MODERATION";
440
434
  /** Status indicating the draft post is in review. */
441
435
  Status["IN_REVIEW"] = "IN_REVIEW";
442
436
  })(Status || (exports.Status = Status = {}));
@@ -481,11 +475,6 @@ var Field;
481
475
  Field["UNKNOWN"] = "UNKNOWN";
482
476
  /** Includes draft post preview URL. */
483
477
  Field["URL"] = "URL";
484
- /**
485
- * Includes internal id field.
486
- * Reserved for internal use.
487
- */
488
- Field["INTERNAL_ID"] = "INTERNAL_ID";
489
478
  /** Includes content field. */
490
479
  Field["CONTENT"] = "CONTENT";
491
480
  /** Includes rich content field. */
@@ -525,7 +514,13 @@ var SortOrder;
525
514
  /**
526
515
  * Creates a draft post.
527
516
  *
528
- * The draft post's `memberId` is required for third-party apps.
517
+ * For 3rd-party apps, `memberId` is a required field.
518
+ *
519
+ * In `categoryIds`, only categories that already exist will be added to the draft post. Including
520
+ * `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array.
521
+ * If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`.
522
+ * You can check which categories are available with
523
+ * 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)).
529
524
  * @param draftPost - Draft post to create.
530
525
  * @public
531
526
  * @requiredField draftPost
@@ -805,7 +800,7 @@ exports.bulkUpdateDraftPosts = bulkUpdateDraftPosts;
805
800
  /**
806
801
  * Retrieves a list of up to 100 deleted draft posts.
807
802
  *
808
- * List Deleted Draft Posts runs with these defaults, which you can override:
803
+ * List Draft Posts runs with these defaults, which you can override:
809
804
  * - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
810
805
  * - `paging.limit` is `50`.
811
806
  * - `paging.offset` is `0`.
@@ -876,9 +871,7 @@ async function listDeletedDraftPosts(options) {
876
871
  }
877
872
  exports.listDeletedDraftPosts = listDeletedDraftPosts;
878
873
  /**
879
- * Gets a draft post by the provided ID.
880
- *
881
- * Uses the provided `draftPostId` to retrieve a draft post.
874
+ * Retrieves a draft post by the provided ID.
882
875
  * @param draftPostId - Draft post ID.
883
876
  * @public
884
877
  * @requiredField draftPostId
@@ -1036,10 +1029,10 @@ async function updateDraftPost(_id, draftPost, options) {
1036
1029
  }
1037
1030
  exports.updateDraftPost = updateDraftPost;
1038
1031
  /**
1039
- * Moves a draft post with the provided ID to the trash bin.
1040
- * A published post can also be deleted by its provided `draftPostId`.
1032
+ * Moves a draft post to the trash bin.
1033
+ * 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.
1041
1034
  *
1042
- * The optional `permanent` field enables you to delete a post permanently, bypassing the trash bin. When a draft post is deleted this way, it can't be restored.
1035
+ * To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this.
1043
1036
  * @param draftPostId - Draft post ID.
1044
1037
  * @public
1045
1038
  * @requiredField draftPostId
@@ -1078,9 +1071,9 @@ async function deleteDraftPost(draftPostId, options) {
1078
1071
  }
1079
1072
  exports.deleteDraftPost = deleteDraftPost;
1080
1073
  /**
1081
- * Permanently deletes a draft post by the provided ID from the trash bin.
1074
+ * Permanently deletes a draft post that is currently in the trash bin.
1082
1075
  *
1083
- * Uses the provided `draftPostId` to permanently delete a draft post from the trash bin. This action is permanent and cannot be reversed.
1076
+ * This action is permanent and can't be reversed.
1084
1077
  * @param draftPostId - Draft post ID.
1085
1078
  * @public
1086
1079
  * @requiredField draftPostId
@@ -1251,9 +1244,7 @@ async function listDraftPosts(options) {
1251
1244
  }
1252
1245
  exports.listDraftPosts = listDraftPosts;
1253
1246
  /**
1254
- * Gets a deleted draft post from the trash bin by the provided ID.
1255
- *
1256
- * Uses the provided `draftPostId` to retrieve a previously deleted draft post from the trash bin.
1247
+ * Retrieves a deleted draft post from the trash bin by the provided ID.
1257
1248
  * @param draftPostId - Draft post ID.
1258
1249
  * @public
1259
1250
  * @requiredField draftPostId
@@ -1313,8 +1304,6 @@ async function getDeletedDraftPost(draftPostId) {
1313
1304
  exports.getDeletedDraftPost = getDeletedDraftPost;
1314
1305
  /**
1315
1306
  * Restores a deleted draft post from the trash bin by the provided ID.
1316
- *
1317
- * Uses the `draftPostId` to restore a deleted draft post from the trash bin.
1318
1307
  * @param draftPostId - Draft post ID.
1319
1308
  * @public
1320
1309
  * @requiredField draftPostId
@@ -1373,12 +1362,20 @@ async function restoreFromTrashBin(draftPostId) {
1373
1362
  }
1374
1363
  exports.restoreFromTrashBin = restoreFromTrashBin;
1375
1364
  /**
1376
- * Retrieves a list of up to 100 draft posts, given the provided paging, filtering, and sorting.
1365
+ * Creates a query to retrieve a list of up to 100 draft posts.
1377
1366
  *
1378
- * Query Draft Posts runs with these defaults, which you can override:
1379
- * - `editedDate` is sorted in `DESC` order.
1380
- * - `paging.limit` is `50`.
1381
- * - `paging.offset` is `0`.
1367
+ *
1368
+ * The `queryDraftPosts()` function builds a query to retrieve a list of up to 100 draft posts, and returns a `DraftPostsQueryBuilder` object.
1369
+ *
1370
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
1371
+ *
1372
+ * 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.
1373
+ *
1374
+ * `queryDraftPosts()` runs with these `DraftPostsQueryBuilder` defaults that can be overridden:
1375
+ * - `limit(50)`
1376
+ * - `ascending('_id')`
1377
+ *
1378
+ * 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`.
1382
1379
  * @public
1383
1380
  * @param options - Options for querying draft posts.
1384
1381
  * @permissionScope Manage Blog
@@ -1459,9 +1456,11 @@ function queryDraftPosts(options) {
1459
1456
  }
1460
1457
  exports.queryDraftPosts = queryDraftPosts;
1461
1458
  /**
1462
- * Publishes a specified draft post by ID. This creates a new post entity with the data from the draft post.
1459
+ * 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))
1460
+ * with the data from the draft post.
1463
1461
  *
1464
- * If the specified draft post was already published, the published post will be updated with the latest values from the draft post entity.
1462
+ * If the draft post was already published, the published post will be updated with the latest values
1463
+ * from the draft post.
1465
1464
  * @param draftPostId - Draft post ID.
1466
1465
  * @public
1467
1466
  * @requiredField draftPostId