@wix/auto_sdk_blog_draft-posts 1.0.106 → 1.0.108
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 +56 -3
- package/build/cjs/index.js +4353 -76
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +198 -29
- package/build/cjs/index.typings.js +3979 -262
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +120 -30
- package/build/cjs/meta.js +3897 -248
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +56 -3
- package/build/es/index.mjs +4350 -76
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +198 -29
- package/build/es/index.typings.mjs +3976 -262
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +120 -30
- package/build/es/meta.mjs +3893 -247
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +56 -3
- package/build/internal/cjs/index.typings.d.ts +201 -30
- package/build/internal/cjs/meta.d.ts +123 -31
- package/build/internal/es/index.d.mts +56 -3
- package/build/internal/es/index.typings.d.mts +201 -30
- package/build/internal/es/meta.d.mts +123 -31
- package/package.json +2 -2
|
@@ -303,6 +303,8 @@ interface Node extends NodeDataOneOf {
|
|
|
303
303
|
checkboxListData?: CheckboxListData;
|
|
304
304
|
/** Data for a list item node. */
|
|
305
305
|
listItemData?: ListItemNodeData;
|
|
306
|
+
/** Data for a slot node. */
|
|
307
|
+
slotData?: SlotData;
|
|
306
308
|
/** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */
|
|
307
309
|
type?: NodeTypeWithLiterals;
|
|
308
310
|
/** Node ID. */
|
|
@@ -384,6 +386,8 @@ interface NodeDataOneOf {
|
|
|
384
386
|
checkboxListData?: CheckboxListData;
|
|
385
387
|
/** Data for a list item node. */
|
|
386
388
|
listItemData?: ListItemNodeData;
|
|
389
|
+
/** Data for a slot node. */
|
|
390
|
+
slotData?: SlotData;
|
|
387
391
|
}
|
|
388
392
|
declare enum NodeType {
|
|
389
393
|
PARAGRAPH = "PARAGRAPH",
|
|
@@ -425,10 +429,11 @@ declare enum NodeType {
|
|
|
425
429
|
TOC = "TOC",
|
|
426
430
|
SMART_BLOCK = "SMART_BLOCK",
|
|
427
431
|
SMART_BLOCK_CELL = "SMART_BLOCK_CELL",
|
|
428
|
-
CHECKBOX_LIST = "CHECKBOX_LIST"
|
|
432
|
+
CHECKBOX_LIST = "CHECKBOX_LIST",
|
|
433
|
+
SLOT = "SLOT"
|
|
429
434
|
}
|
|
430
435
|
/** @enumType */
|
|
431
|
-
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE' | 'CARD' | 'TOC' | 'SMART_BLOCK' | 'SMART_BLOCK_CELL' | 'CHECKBOX_LIST';
|
|
436
|
+
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE' | 'CARD' | 'TOC' | 'SMART_BLOCK' | 'SMART_BLOCK_CELL' | 'CHECKBOX_LIST' | 'SLOT';
|
|
432
437
|
interface NodeStyle {
|
|
433
438
|
/** The top padding value in pixels. */
|
|
434
439
|
paddingTop?: string | null;
|
|
@@ -1752,10 +1757,41 @@ interface AnchorData {
|
|
|
1752
1757
|
anchor?: string;
|
|
1753
1758
|
}
|
|
1754
1759
|
interface ColorData {
|
|
1755
|
-
/**
|
|
1760
|
+
/**
|
|
1761
|
+
* Deprecated: Use `backgroundStyle` instead. The text's background color as a hexadecimal value.
|
|
1762
|
+
* @deprecated
|
|
1763
|
+
*/
|
|
1756
1764
|
background?: string | null;
|
|
1757
|
-
/**
|
|
1765
|
+
/**
|
|
1766
|
+
* Deprecated: Use `foregroundStyle` instead. The text's foreground color as a hexadecimal value.
|
|
1767
|
+
* @deprecated
|
|
1768
|
+
*/
|
|
1758
1769
|
foreground?: string | null;
|
|
1770
|
+
/** Text fill styling (color or gradient). When present, takes precedence over `foreground`. */
|
|
1771
|
+
foregroundStyle?: ColorDataBackground;
|
|
1772
|
+
/** Text background (highlight) styling (color or gradient). When present, takes precedence over `background`. */
|
|
1773
|
+
backgroundStyle?: ColorDataBackground;
|
|
1774
|
+
}
|
|
1775
|
+
/** Background type */
|
|
1776
|
+
declare enum ColorDataBackgroundType {
|
|
1777
|
+
/** Solid color */
|
|
1778
|
+
COLOR = "COLOR",
|
|
1779
|
+
/** Gradient */
|
|
1780
|
+
GRADIENT = "GRADIENT"
|
|
1781
|
+
}
|
|
1782
|
+
/** @enumType */
|
|
1783
|
+
type ColorDataBackgroundTypeWithLiterals = ColorDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
1784
|
+
/** Fill styling (color or gradient) */
|
|
1785
|
+
interface ColorDataBackground {
|
|
1786
|
+
/** Background type. */
|
|
1787
|
+
type?: ColorDataBackgroundTypeWithLiterals;
|
|
1788
|
+
/**
|
|
1789
|
+
* Color as a hexadecimal value.
|
|
1790
|
+
* @maxLength 19
|
|
1791
|
+
*/
|
|
1792
|
+
color?: string | null;
|
|
1793
|
+
/** Gradient configuration. */
|
|
1794
|
+
gradient?: Gradient;
|
|
1759
1795
|
}
|
|
1760
1796
|
interface LinkData {
|
|
1761
1797
|
/** Link details. */
|
|
@@ -2929,6 +2965,42 @@ interface ListItemNodeData {
|
|
|
2929
2965
|
/** Node animation. */
|
|
2930
2966
|
animation?: Animation;
|
|
2931
2967
|
}
|
|
2968
|
+
interface SlotData {
|
|
2969
|
+
/** Integration type, for example `wix.forms.form`. Used to render the slot in the editor and viewer. */
|
|
2970
|
+
integrationType?: string | null;
|
|
2971
|
+
/** ID of the resource the slot renders, for example a form ID. Passed as-is to the integration. */
|
|
2972
|
+
resourceId?: string | null;
|
|
2973
|
+
/** Node animation. */
|
|
2974
|
+
animation?: Animation;
|
|
2975
|
+
/** Design overrides for this slot. Unset colours use the Ricos theme; unset sizes default to 0. */
|
|
2976
|
+
design?: SlotDesign;
|
|
2977
|
+
}
|
|
2978
|
+
interface SlotDesign {
|
|
2979
|
+
/** Text colour: CSS colour or `$theme-color-N[-opacity]` token. */
|
|
2980
|
+
textColor?: string | null;
|
|
2981
|
+
/** Accent colour. */
|
|
2982
|
+
accentColor?: string | null;
|
|
2983
|
+
/** Button background colour. */
|
|
2984
|
+
buttonColor?: string | null;
|
|
2985
|
+
/** Button text colour. */
|
|
2986
|
+
buttonTextColor?: string | null;
|
|
2987
|
+
/** Block background colour. */
|
|
2988
|
+
backgroundColor?: string | null;
|
|
2989
|
+
/** Block border colour. */
|
|
2990
|
+
borderColor?: string | null;
|
|
2991
|
+
/** Block border width, px. */
|
|
2992
|
+
borderWidth?: number | null;
|
|
2993
|
+
/** Block corner radius, px. */
|
|
2994
|
+
borderRadius?: number | null;
|
|
2995
|
+
/** Horizontal inner padding, px. */
|
|
2996
|
+
paddingHorizontal?: number | null;
|
|
2997
|
+
/** Vertical inner padding, px. */
|
|
2998
|
+
paddingVertical?: number | null;
|
|
2999
|
+
/** Vertical gap between rows, px. */
|
|
3000
|
+
rowGap?: number | null;
|
|
3001
|
+
/** Horizontal gap between columns, px. */
|
|
3002
|
+
columnGap?: number | null;
|
|
3003
|
+
}
|
|
2932
3004
|
interface Metadata {
|
|
2933
3005
|
/** Schema version. */
|
|
2934
3006
|
version?: number;
|
|
@@ -4128,75 +4200,87 @@ interface MarkPostAsInModerationResponse {
|
|
|
4128
4200
|
}
|
|
4129
4201
|
interface TranslateDraftRequest {
|
|
4130
4202
|
/**
|
|
4131
|
-
*
|
|
4203
|
+
* ID of the draft post or published post to translate.
|
|
4132
4204
|
* @format GUID
|
|
4133
4205
|
*/
|
|
4134
|
-
postId
|
|
4206
|
+
postId: string;
|
|
4135
4207
|
/**
|
|
4136
|
-
*
|
|
4208
|
+
* Language to translate the post into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4209
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
4137
4210
|
* @format LANGUAGE_TAG
|
|
4138
4211
|
*/
|
|
4139
|
-
language
|
|
4212
|
+
language: string;
|
|
4140
4213
|
/**
|
|
4141
|
-
*
|
|
4142
|
-
*
|
|
4143
|
-
*
|
|
4214
|
+
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
4215
|
+
*
|
|
4216
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
4217
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
4218
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4219
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4220
|
+
*
|
|
4221
|
+
* Default: Core draft post fields only.
|
|
4144
4222
|
* @maxSize 10
|
|
4145
4223
|
*/
|
|
4146
4224
|
fieldsets?: FieldWithLiterals[];
|
|
4147
4225
|
}
|
|
4148
4226
|
interface TranslateDraftResponse {
|
|
4149
|
-
/**
|
|
4227
|
+
/** Created draft post. */
|
|
4150
4228
|
draftPost?: DraftPost;
|
|
4151
4229
|
}
|
|
4152
4230
|
interface IsDraftPostAutoTranslatableRequest {
|
|
4153
4231
|
/**
|
|
4154
|
-
*
|
|
4232
|
+
* Draft post ID.
|
|
4155
4233
|
* @format GUID
|
|
4156
4234
|
*/
|
|
4157
4235
|
draftPostId?: string;
|
|
4158
4236
|
}
|
|
4159
4237
|
interface IsDraftPostAutoTranslatableResponse {
|
|
4160
4238
|
/**
|
|
4161
|
-
*
|
|
4239
|
+
* Draft post ID.
|
|
4162
4240
|
* @format GUID
|
|
4163
4241
|
*/
|
|
4164
4242
|
draftPostId?: string;
|
|
4165
|
-
/**
|
|
4243
|
+
/** Whether enough machine translation word credits are available to translate the draft post. */
|
|
4166
4244
|
translatable?: boolean;
|
|
4167
|
-
/**
|
|
4245
|
+
/** Number of words in the draft post's title. */
|
|
4168
4246
|
titleWordCount?: number;
|
|
4169
|
-
/**
|
|
4247
|
+
/** Number of words in the draft post's content. */
|
|
4170
4248
|
contentWordCount?: number;
|
|
4171
|
-
/**
|
|
4249
|
+
/** Number of machine translation word credits currently available. `-1` if the site's quota is unlimited. */
|
|
4172
4250
|
availableAutoTranslateWords?: number;
|
|
4173
|
-
/**
|
|
4251
|
+
/** Number of machine translation word credits that remain after translating the draft post. `-1` if the site's quota is unlimited. */
|
|
4174
4252
|
availableAutoTranslateWordsAfter?: number;
|
|
4175
|
-
/**
|
|
4253
|
+
/** Number of characters in the draft post's plain text content. */
|
|
4176
4254
|
contentTextCharacterCount?: number;
|
|
4177
4255
|
}
|
|
4178
4256
|
interface UpdateDraftPostLanguageRequest {
|
|
4179
4257
|
/**
|
|
4180
|
-
*
|
|
4258
|
+
* ID of the draft post to update.
|
|
4181
4259
|
* @format GUID
|
|
4182
4260
|
*/
|
|
4183
|
-
postId
|
|
4261
|
+
postId: string;
|
|
4184
4262
|
/**
|
|
4185
|
-
* New language
|
|
4263
|
+
* New language of the draft post, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4264
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
4186
4265
|
* @minLength 2
|
|
4187
4266
|
* @format LANGUAGE_TAG
|
|
4188
4267
|
*/
|
|
4189
|
-
language
|
|
4268
|
+
language: string;
|
|
4190
4269
|
/**
|
|
4191
|
-
*
|
|
4192
|
-
*
|
|
4193
|
-
*
|
|
4270
|
+
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
4271
|
+
*
|
|
4272
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
4273
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
4274
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4275
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4276
|
+
*
|
|
4277
|
+
* Default: Core draft post fields only.
|
|
4194
4278
|
* @maxSize 10
|
|
4195
4279
|
*/
|
|
4196
4280
|
fieldsets?: FieldWithLiterals[];
|
|
4197
4281
|
}
|
|
4198
4282
|
interface UpdateDraftPostLanguageResponse {
|
|
4199
|
-
/**
|
|
4283
|
+
/** Updated draft post. */
|
|
4200
4284
|
draftPost?: DraftPost;
|
|
4201
4285
|
}
|
|
4202
4286
|
interface BaseEventMetadata {
|
|
@@ -4997,5 +5081,90 @@ declare const utils: {
|
|
|
4997
5081
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.PublishDraftPost
|
|
4998
5082
|
*/
|
|
4999
5083
|
declare function publishDraftPost(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`, 0>>;
|
|
5084
|
+
/**
|
|
5085
|
+
* Creates a draft post in the specified language by copying an existing draft post or published post.
|
|
5086
|
+
*
|
|
5087
|
+
* The created draft post contains the source draft's title, rich content, excerpt, cover and hero images, hashtags,
|
|
5088
|
+
* pricing plan IDs, preview text paragraph, and commenting and featured settings. Tags, related posts, SEO data,
|
|
5089
|
+
* and the slug aren't copied. Category IDs are replaced with the IDs of the categories' translations in the specified
|
|
5090
|
+
* language. Categories that have no translation in that language are omitted.
|
|
5091
|
+
*
|
|
5092
|
+
* The created draft post shares the source's `translationId` and keeps the source's `memberId`. If the source doesn't
|
|
5093
|
+
* have a `translationId` yet, one is generated and assigned to both the source and the created draft post.
|
|
5094
|
+
*
|
|
5095
|
+
* The source keeps its status. The created draft post is always unpublished. To publish it, call
|
|
5096
|
+
* [Update Draft Post](https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/update-draft-post)
|
|
5097
|
+
* with `action` set to `UPDATE_PUBLISH`.
|
|
5098
|
+
*
|
|
5099
|
+
* Translating a post to its own language, or to a language that already exists in the same translation group,
|
|
5100
|
+
* fails with an `ALREADY_EXISTS` error. The specified language isn't checked against the site's
|
|
5101
|
+
* [Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) languages.
|
|
5102
|
+
*
|
|
5103
|
+
* To change the language of an existing draft post instead of creating a copy, call
|
|
5104
|
+
* [Update Draft Post Language](https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/update-draft-post-language).
|
|
5105
|
+
* @param postId - ID of the draft post or published post to translate.
|
|
5106
|
+
* @param language - Language to translate the post into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
5107
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
5108
|
+
* @public
|
|
5109
|
+
* @requiredField language
|
|
5110
|
+
* @requiredField postId
|
|
5111
|
+
* @param options - Options for translating a draft post.
|
|
5112
|
+
* @permissionId BLOG.CREATE-DRAFT
|
|
5113
|
+
* @applicableIdentity APP
|
|
5114
|
+
* @fqn com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.TranslateDraft
|
|
5115
|
+
*/
|
|
5116
|
+
declare function translateDraft(postId: string, language: string, options?: TranslateDraftOptions): Promise<NonNullablePaths<TranslateDraftResponse, `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`, 5>>;
|
|
5117
|
+
interface TranslateDraftOptions {
|
|
5118
|
+
/**
|
|
5119
|
+
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
5120
|
+
*
|
|
5121
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
5122
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
5123
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5124
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5125
|
+
*
|
|
5126
|
+
* Default: Core draft post fields only.
|
|
5127
|
+
* @maxSize 10
|
|
5128
|
+
*/
|
|
5129
|
+
fieldsets?: FieldWithLiterals[];
|
|
5130
|
+
}
|
|
5131
|
+
/**
|
|
5132
|
+
* Changes the language of a draft post and replaces its categories with their translations in the specified language.
|
|
5133
|
+
*
|
|
5134
|
+
* Category IDs are replaced with the IDs of the categories' translations in the specified language. Categories that
|
|
5135
|
+
* have no translation in that language are removed. Tag IDs and related post IDs are cleared, because tags and related
|
|
5136
|
+
* posts are language specific. If the draft post is published, the published post is updated in the same way.
|
|
5137
|
+
*
|
|
5138
|
+
* Changing the language to the draft post's current language fails with an `INVALID_ARGUMENT` error. Changing it to a
|
|
5139
|
+
* language that already exists in the same translation group fails with an `ALREADY_EXISTS` error.
|
|
5140
|
+
*
|
|
5141
|
+
* To create a translated copy instead of changing the language in place, call
|
|
5142
|
+
* [Translate Draft](https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/translate-draft).
|
|
5143
|
+
* @param postId - ID of the draft post to update.
|
|
5144
|
+
* @param language - New language of the draft post, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
5145
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
5146
|
+
* @public
|
|
5147
|
+
* @requiredField language
|
|
5148
|
+
* @requiredField postId
|
|
5149
|
+
* @param options - Options for updating a draft post's language.
|
|
5150
|
+
* @permissionId BLOG.EDIT-DRAFT
|
|
5151
|
+
* @applicableIdentity APP
|
|
5152
|
+
* @fqn com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.UpdateDraftPostLanguage
|
|
5153
|
+
*/
|
|
5154
|
+
declare function updateDraftPostLanguage(postId: string, language: string, options?: UpdateDraftPostLanguageOptions): Promise<NonNullablePaths<UpdateDraftPostLanguageResponse, `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`, 5>>;
|
|
5155
|
+
interface UpdateDraftPostLanguageOptions {
|
|
5156
|
+
/**
|
|
5157
|
+
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
5158
|
+
*
|
|
5159
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
5160
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
5161
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5162
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5163
|
+
*
|
|
5164
|
+
* Default: Core draft post fields only.
|
|
5165
|
+
* @maxSize 10
|
|
5166
|
+
*/
|
|
5167
|
+
fieldsets?: FieldWithLiterals[];
|
|
5168
|
+
}
|
|
5000
5169
|
|
|
5001
|
-
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, AnimationType, type AnimationTypeWithLiterals, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, type ApproveDraftPostRequest, type ApproveDraftPostResponse, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, BannerOrigin, type BannerOriginWithLiterals, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkActionMetadata, type BulkCreateDraftPostsOptions, type BulkCreateDraftPostsRequest, type BulkCreateDraftPostsResponse, type BulkDeleteDraftPostsOptions, type BulkDeleteDraftPostsRequest, type BulkDeleteDraftPostsResponse, type BulkDraftPostResult, type BulkRejectDraftPostRequest, type BulkRejectDraftPostResponse, type BulkRevertToUnpublishedRequest, type BulkRevertToUnpublishedResponse, type BulkUpdateDraftPostsOptions, type BulkUpdateDraftPostsRequest, type BulkUpdateDraftPostsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, type CreateDraftPostOptions, type CreateDraftPostRequest, type CreateDraftPostResponse, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteDraftPostOptions, type DeleteDraftPostRequest, type DeleteDraftPostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type DraftCategoriesUpdated, type DraftCreatedEnvelope, type DraftDeletedEnvelope, type DraftPost, type DraftPostCount, type DraftPostOwnerChanged, type DraftPostQuery, type DraftPostQuerySpec, type DraftPostTranslation, type DraftPostsQueryBuilder, type DraftPostsQueryResult, type DraftTagsUpdated, type DraftUpdatedEnvelope, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetDeletedDraftPostRequest, type GetDeletedDraftPostResponse, type GetDraftPostCountsRequest, type GetDraftPostCountsResponse, type GetDraftPostOptions, type GetDraftPostRequest, type GetDraftPostResponse, type GetDraftPostTotalsRequest, type GetDraftPostTotalsResponse, GetDraftPostsSort, type GetDraftPostsSortWithLiterals, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, type InitialDraftPostsCopied, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type IsDraftPostAutoTranslatableRequest, type IsDraftPostAutoTranslatableResponse, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, type Keyword, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDeletedDraftPostsOptions, type ListDeletedDraftPostsRequest, type ListDeletedDraftPostsResponse, type ListDraftPostsOptions, type ListDraftPostsRequest, type ListDraftPostsResponse, type ListItemNodeData, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkPostAsInModerationRequest, type MarkPostAsInModerationResponse, type MaskedDraftPosts, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type ModerationDetails, ModerationStatusStatus, type ModerationStatusStatusWithLiterals, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type PricingData, type PublishDraftPostRequest, type PublishDraftPostResponse, type QueryDraftPostsOptions, type QueryDraftPostsRequest, type QueryDraftPostsResponse, type RejectDraftPostRequest, type RejectDraftPostResponse, type Rel, type RemoveFromTrashBinRequest, type RemoveFromTrashBinResponse, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreFromTrashBinRequest, type RestoreFromTrashBinResponse, type RestoreInfo, type RevertToUnpublishedRequest, type RevertToUnpublishedResponse, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type SectionDivider, type SeoSchema, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TocData, type TotalDraftPosts, TotalDraftPostsGroupingField, type TotalDraftPostsGroupingFieldWithLiterals, type TranslateDraftRequest, type TranslateDraftResponse, Type, type TypeWithLiterals, type UnpublishPostRequest, type UnpublishPostResponse, type UpdateDraftPost, type UpdateDraftPostContentRequest, type UpdateDraftPostContentResponse, type UpdateDraftPostLanguageRequest, type UpdateDraftPostLanguageResponse, type UpdateDraftPostOptions, type UpdateDraftPostRequest, type UpdateDraftPostResponse, type V1Media, Variant, type VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, onDraftCreated, onDraftDeleted, onDraftUpdated, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, typedQueryDraftPosts, updateDraftPost, utils };
|
|
5170
|
+
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, AnimationType, type AnimationTypeWithLiterals, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, type ApproveDraftPostRequest, type ApproveDraftPostResponse, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, BannerOrigin, type BannerOriginWithLiterals, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkActionMetadata, type BulkCreateDraftPostsOptions, type BulkCreateDraftPostsRequest, type BulkCreateDraftPostsResponse, type BulkDeleteDraftPostsOptions, type BulkDeleteDraftPostsRequest, type BulkDeleteDraftPostsResponse, type BulkDraftPostResult, type BulkRejectDraftPostRequest, type BulkRejectDraftPostResponse, type BulkRevertToUnpublishedRequest, type BulkRevertToUnpublishedResponse, type BulkUpdateDraftPostsOptions, type BulkUpdateDraftPostsRequest, type BulkUpdateDraftPostsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorDataBackground, ColorDataBackgroundType, type ColorDataBackgroundTypeWithLiterals, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, type CreateDraftPostOptions, type CreateDraftPostRequest, type CreateDraftPostResponse, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteDraftPostOptions, type DeleteDraftPostRequest, type DeleteDraftPostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type DraftCategoriesUpdated, type DraftCreatedEnvelope, type DraftDeletedEnvelope, type DraftPost, type DraftPostCount, type DraftPostOwnerChanged, type DraftPostQuery, type DraftPostQuerySpec, type DraftPostTranslation, type DraftPostsQueryBuilder, type DraftPostsQueryResult, type DraftTagsUpdated, type DraftUpdatedEnvelope, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetDeletedDraftPostRequest, type GetDeletedDraftPostResponse, type GetDraftPostCountsRequest, type GetDraftPostCountsResponse, type GetDraftPostOptions, type GetDraftPostRequest, type GetDraftPostResponse, type GetDraftPostTotalsRequest, type GetDraftPostTotalsResponse, GetDraftPostsSort, type GetDraftPostsSortWithLiterals, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, type InitialDraftPostsCopied, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type IsDraftPostAutoTranslatableRequest, type IsDraftPostAutoTranslatableResponse, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, type Keyword, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDeletedDraftPostsOptions, type ListDeletedDraftPostsRequest, type ListDeletedDraftPostsResponse, type ListDraftPostsOptions, type ListDraftPostsRequest, type ListDraftPostsResponse, type ListItemNodeData, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkPostAsInModerationRequest, type MarkPostAsInModerationResponse, type MaskedDraftPosts, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type ModerationDetails, ModerationStatusStatus, type ModerationStatusStatusWithLiterals, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type PricingData, type PublishDraftPostRequest, type PublishDraftPostResponse, type QueryDraftPostsOptions, type QueryDraftPostsRequest, type QueryDraftPostsResponse, type RejectDraftPostRequest, type RejectDraftPostResponse, type Rel, type RemoveFromTrashBinRequest, type RemoveFromTrashBinResponse, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreFromTrashBinRequest, type RestoreFromTrashBinResponse, type RestoreInfo, type RevertToUnpublishedRequest, type RevertToUnpublishedResponse, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type SectionDivider, type SeoSchema, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SlotData, type SlotDesign, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TocData, type TotalDraftPosts, TotalDraftPostsGroupingField, type TotalDraftPostsGroupingFieldWithLiterals, type TranslateDraftOptions, type TranslateDraftRequest, type TranslateDraftResponse, Type, type TypeWithLiterals, type UnpublishPostRequest, type UnpublishPostResponse, type UpdateDraftPost, type UpdateDraftPostContentRequest, type UpdateDraftPostContentResponse, type UpdateDraftPostLanguageOptions, type UpdateDraftPostLanguageRequest, type UpdateDraftPostLanguageResponse, type UpdateDraftPostOptions, type UpdateDraftPostRequest, type UpdateDraftPostResponse, type V1Media, Variant, type VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, onDraftCreated, onDraftDeleted, onDraftUpdated, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, translateDraft, typedQueryDraftPosts, updateDraftPost, updateDraftPostLanguage, utils };
|