@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
|
@@ -368,6 +368,8 @@ interface Node extends NodeDataOneOf {
|
|
|
368
368
|
checkboxListData?: CheckboxListData;
|
|
369
369
|
/** Data for a list item node. */
|
|
370
370
|
listItemData?: ListItemNodeData;
|
|
371
|
+
/** Data for a slot node. */
|
|
372
|
+
slotData?: SlotData;
|
|
371
373
|
/** 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. */
|
|
372
374
|
type?: NodeTypeWithLiterals;
|
|
373
375
|
/** Node ID. */
|
|
@@ -449,6 +451,8 @@ interface NodeDataOneOf {
|
|
|
449
451
|
checkboxListData?: CheckboxListData;
|
|
450
452
|
/** Data for a list item node. */
|
|
451
453
|
listItemData?: ListItemNodeData;
|
|
454
|
+
/** Data for a slot node. */
|
|
455
|
+
slotData?: SlotData;
|
|
452
456
|
}
|
|
453
457
|
declare enum NodeType {
|
|
454
458
|
PARAGRAPH = "PARAGRAPH",
|
|
@@ -490,10 +494,11 @@ declare enum NodeType {
|
|
|
490
494
|
TOC = "TOC",
|
|
491
495
|
SMART_BLOCK = "SMART_BLOCK",
|
|
492
496
|
SMART_BLOCK_CELL = "SMART_BLOCK_CELL",
|
|
493
|
-
CHECKBOX_LIST = "CHECKBOX_LIST"
|
|
497
|
+
CHECKBOX_LIST = "CHECKBOX_LIST",
|
|
498
|
+
SLOT = "SLOT"
|
|
494
499
|
}
|
|
495
500
|
/** @enumType */
|
|
496
|
-
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';
|
|
501
|
+
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';
|
|
497
502
|
interface NodeStyle {
|
|
498
503
|
/** The top padding value in pixels. */
|
|
499
504
|
paddingTop?: string | null;
|
|
@@ -1817,10 +1822,41 @@ interface AnchorData {
|
|
|
1817
1822
|
anchor?: string;
|
|
1818
1823
|
}
|
|
1819
1824
|
interface ColorData {
|
|
1820
|
-
/**
|
|
1825
|
+
/**
|
|
1826
|
+
* Deprecated: Use `backgroundStyle` instead. The text's background color as a hexadecimal value.
|
|
1827
|
+
* @deprecated
|
|
1828
|
+
*/
|
|
1821
1829
|
background?: string | null;
|
|
1822
|
-
/**
|
|
1830
|
+
/**
|
|
1831
|
+
* Deprecated: Use `foregroundStyle` instead. The text's foreground color as a hexadecimal value.
|
|
1832
|
+
* @deprecated
|
|
1833
|
+
*/
|
|
1823
1834
|
foreground?: string | null;
|
|
1835
|
+
/** Text fill styling (color or gradient). When present, takes precedence over `foreground`. */
|
|
1836
|
+
foregroundStyle?: ColorDataBackground;
|
|
1837
|
+
/** Text background (highlight) styling (color or gradient). When present, takes precedence over `background`. */
|
|
1838
|
+
backgroundStyle?: ColorDataBackground;
|
|
1839
|
+
}
|
|
1840
|
+
/** Background type */
|
|
1841
|
+
declare enum ColorDataBackgroundType {
|
|
1842
|
+
/** Solid color */
|
|
1843
|
+
COLOR = "COLOR",
|
|
1844
|
+
/** Gradient */
|
|
1845
|
+
GRADIENT = "GRADIENT"
|
|
1846
|
+
}
|
|
1847
|
+
/** @enumType */
|
|
1848
|
+
type ColorDataBackgroundTypeWithLiterals = ColorDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
1849
|
+
/** Fill styling (color or gradient) */
|
|
1850
|
+
interface ColorDataBackground {
|
|
1851
|
+
/** Background type. */
|
|
1852
|
+
type?: ColorDataBackgroundTypeWithLiterals;
|
|
1853
|
+
/**
|
|
1854
|
+
* Color as a hexadecimal value.
|
|
1855
|
+
* @maxLength 19
|
|
1856
|
+
*/
|
|
1857
|
+
color?: string | null;
|
|
1858
|
+
/** Gradient configuration. */
|
|
1859
|
+
gradient?: Gradient;
|
|
1824
1860
|
}
|
|
1825
1861
|
interface LinkData {
|
|
1826
1862
|
/** Link details. */
|
|
@@ -2994,6 +3030,42 @@ interface ListItemNodeData {
|
|
|
2994
3030
|
/** Node animation. */
|
|
2995
3031
|
animation?: Animation;
|
|
2996
3032
|
}
|
|
3033
|
+
interface SlotData {
|
|
3034
|
+
/** Integration type, for example `wix.forms.form`. Used to render the slot in the editor and viewer. */
|
|
3035
|
+
integrationType?: string | null;
|
|
3036
|
+
/** ID of the resource the slot renders, for example a form ID. Passed as-is to the integration. */
|
|
3037
|
+
resourceId?: string | null;
|
|
3038
|
+
/** Node animation. */
|
|
3039
|
+
animation?: Animation;
|
|
3040
|
+
/** Design overrides for this slot. Unset colours use the Ricos theme; unset sizes default to 0. */
|
|
3041
|
+
design?: SlotDesign;
|
|
3042
|
+
}
|
|
3043
|
+
interface SlotDesign {
|
|
3044
|
+
/** Text colour: CSS colour or `$theme-color-N[-opacity]` token. */
|
|
3045
|
+
textColor?: string | null;
|
|
3046
|
+
/** Accent colour. */
|
|
3047
|
+
accentColor?: string | null;
|
|
3048
|
+
/** Button background colour. */
|
|
3049
|
+
buttonColor?: string | null;
|
|
3050
|
+
/** Button text colour. */
|
|
3051
|
+
buttonTextColor?: string | null;
|
|
3052
|
+
/** Block background colour. */
|
|
3053
|
+
backgroundColor?: string | null;
|
|
3054
|
+
/** Block border colour. */
|
|
3055
|
+
borderColor?: string | null;
|
|
3056
|
+
/** Block border width, px. */
|
|
3057
|
+
borderWidth?: number | null;
|
|
3058
|
+
/** Block corner radius, px. */
|
|
3059
|
+
borderRadius?: number | null;
|
|
3060
|
+
/** Horizontal inner padding, px. */
|
|
3061
|
+
paddingHorizontal?: number | null;
|
|
3062
|
+
/** Vertical inner padding, px. */
|
|
3063
|
+
paddingVertical?: number | null;
|
|
3064
|
+
/** Vertical gap between rows, px. */
|
|
3065
|
+
rowGap?: number | null;
|
|
3066
|
+
/** Horizontal gap between columns, px. */
|
|
3067
|
+
columnGap?: number | null;
|
|
3068
|
+
}
|
|
2997
3069
|
interface Metadata {
|
|
2998
3070
|
/** Schema version. */
|
|
2999
3071
|
version?: number;
|
|
@@ -4365,80 +4437,94 @@ interface MarkPostAsInModerationResponse {
|
|
|
4365
4437
|
}
|
|
4366
4438
|
interface TranslateDraftRequest {
|
|
4367
4439
|
/**
|
|
4368
|
-
*
|
|
4440
|
+
* ID of the draft post or published post to translate.
|
|
4369
4441
|
* @format GUID
|
|
4370
4442
|
*/
|
|
4371
|
-
postId
|
|
4443
|
+
postId: string;
|
|
4372
4444
|
/**
|
|
4373
|
-
*
|
|
4445
|
+
* Language to translate the post into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4446
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
4374
4447
|
* @format LANGUAGE_TAG
|
|
4375
4448
|
*/
|
|
4376
|
-
language
|
|
4449
|
+
language: string;
|
|
4377
4450
|
/**
|
|
4378
|
-
*
|
|
4379
|
-
*
|
|
4380
|
-
*
|
|
4451
|
+
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
4452
|
+
*
|
|
4453
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
4454
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
4455
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4456
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4457
|
+
*
|
|
4458
|
+
* Default: Core draft post fields only.
|
|
4381
4459
|
* @maxSize 10
|
|
4382
4460
|
*/
|
|
4383
4461
|
fieldsets?: FieldWithLiterals[];
|
|
4384
4462
|
/**
|
|
4385
|
-
*
|
|
4463
|
+
* Whether to machine translate the title and content into the target language.
|
|
4464
|
+
*
|
|
4465
|
+
* Default: `false`
|
|
4386
4466
|
* @internal
|
|
4387
4467
|
*/
|
|
4388
4468
|
useAutoTranslation?: boolean;
|
|
4389
4469
|
}
|
|
4390
4470
|
interface TranslateDraftResponse {
|
|
4391
|
-
/**
|
|
4471
|
+
/** Created draft post. */
|
|
4392
4472
|
draftPost?: DraftPost;
|
|
4393
4473
|
}
|
|
4394
4474
|
interface IsDraftPostAutoTranslatableRequest {
|
|
4395
4475
|
/**
|
|
4396
|
-
*
|
|
4476
|
+
* Draft post ID.
|
|
4397
4477
|
* @format GUID
|
|
4398
4478
|
*/
|
|
4399
4479
|
draftPostId?: string;
|
|
4400
4480
|
}
|
|
4401
4481
|
interface IsDraftPostAutoTranslatableResponse {
|
|
4402
4482
|
/**
|
|
4403
|
-
*
|
|
4483
|
+
* Draft post ID.
|
|
4404
4484
|
* @format GUID
|
|
4405
4485
|
*/
|
|
4406
4486
|
draftPostId?: string;
|
|
4407
|
-
/**
|
|
4487
|
+
/** Whether enough machine translation word credits are available to translate the draft post. */
|
|
4408
4488
|
translatable?: boolean;
|
|
4409
|
-
/**
|
|
4489
|
+
/** Number of words in the draft post's title. */
|
|
4410
4490
|
titleWordCount?: number;
|
|
4411
|
-
/**
|
|
4491
|
+
/** Number of words in the draft post's content. */
|
|
4412
4492
|
contentWordCount?: number;
|
|
4413
|
-
/**
|
|
4493
|
+
/** Number of machine translation word credits currently available. `-1` if the site's quota is unlimited. */
|
|
4414
4494
|
availableAutoTranslateWords?: number;
|
|
4415
|
-
/**
|
|
4495
|
+
/** Number of machine translation word credits that remain after translating the draft post. `-1` if the site's quota is unlimited. */
|
|
4416
4496
|
availableAutoTranslateWordsAfter?: number;
|
|
4417
|
-
/**
|
|
4497
|
+
/** Number of characters in the draft post's plain text content. */
|
|
4418
4498
|
contentTextCharacterCount?: number;
|
|
4419
4499
|
}
|
|
4420
4500
|
interface UpdateDraftPostLanguageRequest {
|
|
4421
4501
|
/**
|
|
4422
|
-
*
|
|
4502
|
+
* ID of the draft post to update.
|
|
4423
4503
|
* @format GUID
|
|
4424
4504
|
*/
|
|
4425
|
-
postId
|
|
4505
|
+
postId: string;
|
|
4426
4506
|
/**
|
|
4427
|
-
* New language
|
|
4507
|
+
* New language of the draft post, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4508
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
4428
4509
|
* @minLength 2
|
|
4429
4510
|
* @format LANGUAGE_TAG
|
|
4430
4511
|
*/
|
|
4431
|
-
language
|
|
4512
|
+
language: string;
|
|
4432
4513
|
/**
|
|
4433
|
-
*
|
|
4434
|
-
*
|
|
4435
|
-
*
|
|
4514
|
+
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
4515
|
+
*
|
|
4516
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
4517
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
4518
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
4519
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
4520
|
+
*
|
|
4521
|
+
* Default: Core draft post fields only.
|
|
4436
4522
|
* @maxSize 10
|
|
4437
4523
|
*/
|
|
4438
4524
|
fieldsets?: FieldWithLiterals[];
|
|
4439
4525
|
}
|
|
4440
4526
|
interface UpdateDraftPostLanguageResponse {
|
|
4441
|
-
/**
|
|
4527
|
+
/** Updated draft post. */
|
|
4442
4528
|
draftPost?: DraftPost;
|
|
4443
4529
|
}
|
|
4444
4530
|
interface BaseEventMetadata {
|
|
@@ -5318,5 +5404,90 @@ declare const utils: {
|
|
|
5318
5404
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.PublishDraftPost
|
|
5319
5405
|
*/
|
|
5320
5406
|
declare function publishDraftPost(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`, 0>>;
|
|
5407
|
+
/**
|
|
5408
|
+
* Creates a draft post in the specified language by copying an existing draft post or published post.
|
|
5409
|
+
*
|
|
5410
|
+
* The created draft post contains the source draft's title, rich content, excerpt, cover and hero images, hashtags,
|
|
5411
|
+
* pricing plan IDs, preview text paragraph, and commenting and featured settings. Tags, related posts, SEO data,
|
|
5412
|
+
* and the slug aren't copied. Category IDs are replaced with the IDs of the categories' translations in the specified
|
|
5413
|
+
* language. Categories that have no translation in that language are omitted.
|
|
5414
|
+
*
|
|
5415
|
+
* The created draft post shares the source's `translationId` and keeps the source's `memberId`. If the source doesn't
|
|
5416
|
+
* have a `translationId` yet, one is generated and assigned to both the source and the created draft post.
|
|
5417
|
+
*
|
|
5418
|
+
* The source keeps its status. The created draft post is always unpublished. To publish it, call
|
|
5419
|
+
* [Update Draft Post](https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/update-draft-post)
|
|
5420
|
+
* with `action` set to `UPDATE_PUBLISH`.
|
|
5421
|
+
*
|
|
5422
|
+
* Translating a post to its own language, or to a language that already exists in the same translation group,
|
|
5423
|
+
* fails with an `ALREADY_EXISTS` error. The specified language isn't checked against the site's
|
|
5424
|
+
* [Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) languages.
|
|
5425
|
+
*
|
|
5426
|
+
* To change the language of an existing draft post instead of creating a copy, call
|
|
5427
|
+
* [Update Draft Post Language](https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/update-draft-post-language).
|
|
5428
|
+
* @param postId - ID of the draft post or published post to translate.
|
|
5429
|
+
* @param language - Language to translate the post into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
5430
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
5431
|
+
* @public
|
|
5432
|
+
* @requiredField language
|
|
5433
|
+
* @requiredField postId
|
|
5434
|
+
* @param options - Options for translating a draft post.
|
|
5435
|
+
* @permissionId BLOG.CREATE-DRAFT
|
|
5436
|
+
* @applicableIdentity APP
|
|
5437
|
+
* @fqn com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.TranslateDraft
|
|
5438
|
+
*/
|
|
5439
|
+
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>>;
|
|
5440
|
+
interface TranslateDraftOptions {
|
|
5441
|
+
/**
|
|
5442
|
+
* Predefined sets of fields to return in the created draft post, in addition to the core draft post fields.
|
|
5443
|
+
*
|
|
5444
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
5445
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
5446
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5447
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5448
|
+
*
|
|
5449
|
+
* Default: Core draft post fields only.
|
|
5450
|
+
* @maxSize 10
|
|
5451
|
+
*/
|
|
5452
|
+
fieldsets?: FieldWithLiterals[];
|
|
5453
|
+
}
|
|
5454
|
+
/**
|
|
5455
|
+
* Changes the language of a draft post and replaces its categories with their translations in the specified language.
|
|
5456
|
+
*
|
|
5457
|
+
* Category IDs are replaced with the IDs of the categories' translations in the specified language. Categories that
|
|
5458
|
+
* have no translation in that language are removed. Tag IDs and related post IDs are cleared, because tags and related
|
|
5459
|
+
* posts are language specific. If the draft post is published, the published post is updated in the same way.
|
|
5460
|
+
*
|
|
5461
|
+
* Changing the language to the draft post's current language fails with an `INVALID_ARGUMENT` error. Changing it to a
|
|
5462
|
+
* language that already exists in the same translation group fails with an `ALREADY_EXISTS` error.
|
|
5463
|
+
*
|
|
5464
|
+
* To create a translated copy instead of changing the language in place, call
|
|
5465
|
+
* [Translate Draft](https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/translate-draft).
|
|
5466
|
+
* @param postId - ID of the draft post to update.
|
|
5467
|
+
* @param language - New language of the draft post, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
5468
|
+
* For example, `de` for German, or `pt-br` for Brazilian Portuguese.
|
|
5469
|
+
* @public
|
|
5470
|
+
* @requiredField language
|
|
5471
|
+
* @requiredField postId
|
|
5472
|
+
* @param options - Options for updating a draft post's language.
|
|
5473
|
+
* @permissionId BLOG.EDIT-DRAFT
|
|
5474
|
+
* @applicableIdentity APP
|
|
5475
|
+
* @fqn com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.UpdateDraftPostLanguage
|
|
5476
|
+
*/
|
|
5477
|
+
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>>;
|
|
5478
|
+
interface UpdateDraftPostLanguageOptions {
|
|
5479
|
+
/**
|
|
5480
|
+
* Predefined sets of fields to return in the updated draft post, in addition to the core draft post fields.
|
|
5481
|
+
*
|
|
5482
|
+
* - `URL`: Returns the draft post's preview URL.
|
|
5483
|
+
* - `CONTENT`: Returns the draft post's content.
|
|
5484
|
+
* - `RICH_CONTENT`: Returns the draft post's rich content.
|
|
5485
|
+
* - `GENERATED_EXCERPT`: Returns an excerpt generated from the content if a custom excerpt isn't set.
|
|
5486
|
+
*
|
|
5487
|
+
* Default: Core draft post fields only.
|
|
5488
|
+
* @maxSize 10
|
|
5489
|
+
*/
|
|
5490
|
+
fieldsets?: FieldWithLiterals[];
|
|
5491
|
+
}
|
|
5321
5492
|
|
|
5322
|
-
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 };
|
|
5493
|
+
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 };
|