@wix/auto_sdk_blog_draft-posts 1.0.88 → 1.0.89
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 +1 -1
- package/build/cjs/index.js +589 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +180 -106
- package/build/cjs/index.typings.js +496 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +175 -106
- package/build/cjs/meta.js +496 -7
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +588 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +180 -106
- package/build/es/index.typings.mjs +495 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +175 -106
- package/build/es/meta.mjs +495 -7
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +589 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +180 -106
- package/build/internal/cjs/index.typings.js +496 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +175 -106
- package/build/internal/cjs/meta.js +496 -7
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +588 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +180 -106
- package/build/internal/es/index.typings.mjs +495 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +175 -106
- package/build/internal/es/meta.mjs +495 -7
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -754,7 +754,17 @@ interface DividerData {
|
|
|
754
754
|
width?: WidthWithLiterals;
|
|
755
755
|
/** Divider alignment. */
|
|
756
756
|
alignment?: DividerDataAlignmentWithLiterals;
|
|
757
|
+
/** Visual styling for the divider lines. */
|
|
758
|
+
styles?: DividerDataStyles;
|
|
757
759
|
}
|
|
760
|
+
declare enum LineCap {
|
|
761
|
+
/** Square line endings. */
|
|
762
|
+
SQUARE = "SQUARE",
|
|
763
|
+
/** Rounded line endings. */
|
|
764
|
+
ROUND = "ROUND"
|
|
765
|
+
}
|
|
766
|
+
/** @enumType */
|
|
767
|
+
type LineCapWithLiterals = LineCap | 'SQUARE' | 'ROUND';
|
|
758
768
|
declare enum LineStyle {
|
|
759
769
|
/** Single Line */
|
|
760
770
|
SINGLE = "SINGLE",
|
|
@@ -787,6 +797,26 @@ declare enum DividerDataAlignment {
|
|
|
787
797
|
}
|
|
788
798
|
/** @enumType */
|
|
789
799
|
type DividerDataAlignmentWithLiterals = DividerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
|
|
800
|
+
interface DividerDataStyles {
|
|
801
|
+
/**
|
|
802
|
+
* Divider color as a hexadecimal value. An alpha channel controls opacity.
|
|
803
|
+
* @maxLength 19
|
|
804
|
+
*/
|
|
805
|
+
color?: string | null;
|
|
806
|
+
/** Divider line ending shape. */
|
|
807
|
+
lineCap?: LineCapWithLiterals;
|
|
808
|
+
/**
|
|
809
|
+
* Line thicknesses in pixels, ordered from first line to last line.
|
|
810
|
+
* @maxSize 10
|
|
811
|
+
*/
|
|
812
|
+
lineThickness?: number[];
|
|
813
|
+
/** Dash length in pixels for dashed dividers. */
|
|
814
|
+
dashLength?: number | null;
|
|
815
|
+
/** Gap between dashes or dots in pixels. */
|
|
816
|
+
dashGap?: number | null;
|
|
817
|
+
/** Gap between divider lines in pixels. */
|
|
818
|
+
lineGap?: number | null;
|
|
819
|
+
}
|
|
790
820
|
interface FileData {
|
|
791
821
|
/** Styling for the file's container. */
|
|
792
822
|
containerData?: PluginContainerData;
|
|
@@ -1109,6 +1139,10 @@ interface ImageData {
|
|
|
1109
1139
|
decorative?: boolean | null;
|
|
1110
1140
|
/** Styling for the image. */
|
|
1111
1141
|
styles?: ImageDataStyles;
|
|
1142
|
+
/** Non-destructive crop rectangle, expressed as fractions (0-1) of the original image. When omitted, the full image is shown. */
|
|
1143
|
+
crop?: ImageDataCrop;
|
|
1144
|
+
/** Optional shape mask applied to the visible crop. Supported values: CIRCLE, OVAL, STAR, PENTAGON, HEXAGON, TRIANGLE, HEART, RHOMBUS, FLUID, WINDOW. */
|
|
1145
|
+
cropShape?: string | null;
|
|
1112
1146
|
}
|
|
1113
1147
|
interface StylesBorder {
|
|
1114
1148
|
/** Border width in pixels. */
|
|
@@ -1125,6 +1159,16 @@ interface ImageDataStyles {
|
|
|
1125
1159
|
/** Border attributes. */
|
|
1126
1160
|
border?: StylesBorder;
|
|
1127
1161
|
}
|
|
1162
|
+
interface ImageDataCrop {
|
|
1163
|
+
/** Left edge of the crop, as a fraction (0-1) of the original image width. */
|
|
1164
|
+
x?: number | null;
|
|
1165
|
+
/** Top edge of the crop, as a fraction (0-1) of the original image height. */
|
|
1166
|
+
y?: number | null;
|
|
1167
|
+
/** Visible width of the crop, as a fraction (0-1) of the original image width. */
|
|
1168
|
+
width?: number | null;
|
|
1169
|
+
/** Visible height of the crop, as a fraction (0-1) of the original image height. */
|
|
1170
|
+
height?: number | null;
|
|
1171
|
+
}
|
|
1128
1172
|
interface LinkPreviewData {
|
|
1129
1173
|
/** Styling for the link preview's container. */
|
|
1130
1174
|
containerData?: PluginContainerData;
|
|
@@ -2162,6 +2206,27 @@ declare enum ImagePosition {
|
|
|
2162
2206
|
}
|
|
2163
2207
|
/** @enumType */
|
|
2164
2208
|
type ImagePositionWithLiterals = ImagePosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
|
|
2209
|
+
/** Background styling (color or gradient) */
|
|
2210
|
+
interface LayoutDataBackground {
|
|
2211
|
+
/** Background type. */
|
|
2212
|
+
type?: LayoutDataBackgroundTypeWithLiterals;
|
|
2213
|
+
/**
|
|
2214
|
+
* Background color as a hexadecimal value.
|
|
2215
|
+
* @maxLength 19
|
|
2216
|
+
*/
|
|
2217
|
+
color?: string | null;
|
|
2218
|
+
/** Gradient configuration. */
|
|
2219
|
+
gradient?: Gradient;
|
|
2220
|
+
}
|
|
2221
|
+
/** Background type */
|
|
2222
|
+
declare enum LayoutDataBackgroundType {
|
|
2223
|
+
/** Solid color background */
|
|
2224
|
+
COLOR = "COLOR",
|
|
2225
|
+
/** Gradient background */
|
|
2226
|
+
GRADIENT = "GRADIENT"
|
|
2227
|
+
}
|
|
2228
|
+
/** @enumType */
|
|
2229
|
+
type LayoutDataBackgroundTypeWithLiterals = LayoutDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
2165
2230
|
declare enum BannerOrigin {
|
|
2166
2231
|
/** Banner originated from an image */
|
|
2167
2232
|
IMAGE = "IMAGE",
|
|
@@ -2178,15 +2243,6 @@ declare enum BannerPosition {
|
|
|
2178
2243
|
}
|
|
2179
2244
|
/** @enumType */
|
|
2180
2245
|
type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM';
|
|
2181
|
-
/** Background type */
|
|
2182
|
-
declare enum LayoutDataBackgroundType {
|
|
2183
|
-
/** Solid color background */
|
|
2184
|
-
COLOR = "COLOR",
|
|
2185
|
-
/** Gradient background */
|
|
2186
|
-
GRADIENT = "GRADIENT"
|
|
2187
|
-
}
|
|
2188
|
-
/** @enumType */
|
|
2189
|
-
type LayoutDataBackgroundTypeWithLiterals = LayoutDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
2190
2246
|
/** Backdrop type */
|
|
2191
2247
|
declare enum BackdropType {
|
|
2192
2248
|
/** Solid color backdrop */
|
|
@@ -2199,12 +2255,19 @@ type BackdropTypeWithLiterals = BackdropType | 'COLOR' | 'GRADIENT';
|
|
|
2199
2255
|
interface LayoutDataBackgroundImage {
|
|
2200
2256
|
/** Background image. */
|
|
2201
2257
|
media?: V1Media;
|
|
2202
|
-
/**
|
|
2258
|
+
/**
|
|
2259
|
+
* Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background`/`backdrop` color behind it.
|
|
2260
|
+
* @deprecated
|
|
2261
|
+
*/
|
|
2203
2262
|
opacity?: number | null;
|
|
2204
2263
|
/** Background image scaling. */
|
|
2205
2264
|
scaling?: ImageScalingScalingWithLiterals;
|
|
2206
2265
|
/** Position of background. Defaults to `CENTER`. */
|
|
2207
2266
|
position?: ImagePositionWithLiterals;
|
|
2267
|
+
/** Blur radius in pixels applied to the image layer. `0` (default) leaves the image unblurred; blur is independent of any color overlay and the two stack. */
|
|
2268
|
+
blur?: number | null;
|
|
2269
|
+
/** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`/`backdrop`). */
|
|
2270
|
+
overlay?: LayoutDataBackground;
|
|
2208
2271
|
}
|
|
2209
2272
|
declare enum VerticalAlignmentAlignment {
|
|
2210
2273
|
/** Top alignment */
|
|
@@ -2238,18 +2301,6 @@ interface Banner {
|
|
|
2238
2301
|
/** Position of the banner */
|
|
2239
2302
|
position?: BannerPositionWithLiterals;
|
|
2240
2303
|
}
|
|
2241
|
-
/** Background styling (color or gradient) */
|
|
2242
|
-
interface LayoutDataBackground {
|
|
2243
|
-
/** Background type. */
|
|
2244
|
-
type?: LayoutDataBackgroundTypeWithLiterals;
|
|
2245
|
-
/**
|
|
2246
|
-
* Background color as a hexadecimal value.
|
|
2247
|
-
* @maxLength 19
|
|
2248
|
-
*/
|
|
2249
|
-
color?: string | null;
|
|
2250
|
-
/** Gradient configuration. */
|
|
2251
|
-
gradient?: Gradient;
|
|
2252
|
-
}
|
|
2253
2304
|
/** Backdrop styling (color or gradient) */
|
|
2254
2305
|
interface Backdrop {
|
|
2255
2306
|
/** Backdrop type. */
|
|
@@ -2321,15 +2372,6 @@ declare enum ImagePositionPosition {
|
|
|
2321
2372
|
}
|
|
2322
2373
|
/** @enumType */
|
|
2323
2374
|
type ImagePositionPositionWithLiterals = ImagePositionPosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
|
|
2324
|
-
/** Background type */
|
|
2325
|
-
declare enum CardDataBackgroundType {
|
|
2326
|
-
/** Solid color background */
|
|
2327
|
-
COLOR = "COLOR",
|
|
2328
|
-
/** Gradient background */
|
|
2329
|
-
GRADIENT = "GRADIENT"
|
|
2330
|
-
}
|
|
2331
|
-
/** @enumType */
|
|
2332
|
-
type CardDataBackgroundTypeWithLiterals = CardDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
2333
2375
|
/** Background styling (color or gradient) */
|
|
2334
2376
|
interface CardDataBackground {
|
|
2335
2377
|
/** Background type. */
|
|
@@ -2342,15 +2384,31 @@ interface CardDataBackground {
|
|
|
2342
2384
|
/** Gradient configuration. */
|
|
2343
2385
|
gradient?: Gradient;
|
|
2344
2386
|
}
|
|
2387
|
+
/** Background type */
|
|
2388
|
+
declare enum CardDataBackgroundType {
|
|
2389
|
+
/** Solid color background */
|
|
2390
|
+
COLOR = "COLOR",
|
|
2391
|
+
/** Gradient background */
|
|
2392
|
+
GRADIENT = "GRADIENT"
|
|
2393
|
+
}
|
|
2394
|
+
/** @enumType */
|
|
2395
|
+
type CardDataBackgroundTypeWithLiterals = CardDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
2345
2396
|
interface BackgroundImage {
|
|
2346
2397
|
/** Background image. */
|
|
2347
2398
|
media?: V1Media;
|
|
2348
|
-
/**
|
|
2399
|
+
/**
|
|
2400
|
+
* Deprecated: use `overlay` instead. Legacy image opacity (0–100) that dimmed the image to reveal the `background` color behind it.
|
|
2401
|
+
* @deprecated
|
|
2402
|
+
*/
|
|
2349
2403
|
opacity?: number | null;
|
|
2350
2404
|
/** Background image scaling. */
|
|
2351
2405
|
scaling?: ScalingWithLiterals;
|
|
2352
2406
|
/** Position of background. Defaults to `CENTER`. */
|
|
2353
2407
|
position?: ImagePositionPositionWithLiterals;
|
|
2408
|
+
/** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`). */
|
|
2409
|
+
overlay?: CardDataBackground;
|
|
2410
|
+
/** Blur radius in pixels applied to the image layer. `0` (default) leaves the image unblurred; blur is independent of any color overlay and the two stack. */
|
|
2411
|
+
blur?: number | null;
|
|
2354
2412
|
}
|
|
2355
2413
|
interface TocData {
|
|
2356
2414
|
/** Heading levels included in the table of contents. Default: [1, 2, 3, 4, 5, 6]. */
|
|
@@ -3466,6 +3524,11 @@ interface Sorting {
|
|
|
3466
3524
|
fieldName?: string;
|
|
3467
3525
|
/** Sort order. */
|
|
3468
3526
|
order?: SortOrderWithLiterals;
|
|
3527
|
+
/**
|
|
3528
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
3529
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
3530
|
+
*/
|
|
3531
|
+
origin?: AddressLocation;
|
|
3469
3532
|
}
|
|
3470
3533
|
declare enum SortOrder {
|
|
3471
3534
|
ASC = "ASC",
|
|
@@ -3473,6 +3536,12 @@ declare enum SortOrder {
|
|
|
3473
3536
|
}
|
|
3474
3537
|
/** @enumType */
|
|
3475
3538
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
3539
|
+
interface AddressLocation {
|
|
3540
|
+
/** Address latitude. */
|
|
3541
|
+
latitude?: number | null;
|
|
3542
|
+
/** Address longitude. */
|
|
3543
|
+
longitude?: number | null;
|
|
3544
|
+
}
|
|
3476
3545
|
interface Paging {
|
|
3477
3546
|
/**
|
|
3478
3547
|
* Number of items to load.
|
|
@@ -3556,79 +3625,6 @@ interface DraftPostCount {
|
|
|
3556
3625
|
/** Number of posts. */
|
|
3557
3626
|
postCount?: number;
|
|
3558
3627
|
}
|
|
3559
|
-
interface TranslateDraftRequest {
|
|
3560
|
-
/**
|
|
3561
|
-
* Source post or draft ID
|
|
3562
|
-
* @format GUID
|
|
3563
|
-
*/
|
|
3564
|
-
postId?: string;
|
|
3565
|
-
/**
|
|
3566
|
-
* Translation language
|
|
3567
|
-
* @format LANGUAGE_TAG
|
|
3568
|
-
*/
|
|
3569
|
-
language?: string;
|
|
3570
|
-
/**
|
|
3571
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
3572
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
3573
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3574
|
-
* @maxSize 10
|
|
3575
|
-
*/
|
|
3576
|
-
fieldsets?: FieldWithLiterals[];
|
|
3577
|
-
}
|
|
3578
|
-
interface TranslateDraftResponse {
|
|
3579
|
-
/** Draft post. */
|
|
3580
|
-
draftPost?: DraftPost;
|
|
3581
|
-
}
|
|
3582
|
-
interface IsDraftPostAutoTranslatableRequest {
|
|
3583
|
-
/**
|
|
3584
|
-
* Source post or draft ID.
|
|
3585
|
-
* @format GUID
|
|
3586
|
-
*/
|
|
3587
|
-
draftPostId?: string;
|
|
3588
|
-
}
|
|
3589
|
-
interface IsDraftPostAutoTranslatableResponse {
|
|
3590
|
-
/**
|
|
3591
|
-
* Source draft post ID.
|
|
3592
|
-
* @format GUID
|
|
3593
|
-
*/
|
|
3594
|
-
draftPostId?: string;
|
|
3595
|
-
/** Indicates if enough machine translation credits are available for the draft post translation. */
|
|
3596
|
-
translatable?: boolean;
|
|
3597
|
-
/** Draft post title word count. */
|
|
3598
|
-
titleWordCount?: number;
|
|
3599
|
-
/** Draft post content word count. */
|
|
3600
|
-
contentWordCount?: number;
|
|
3601
|
-
/** Word credits available for auto translation. */
|
|
3602
|
-
availableAutoTranslateWords?: number;
|
|
3603
|
-
/** Word credits available after auto translation would be done. */
|
|
3604
|
-
availableAutoTranslateWordsAfter?: number;
|
|
3605
|
-
/** Content text character count. */
|
|
3606
|
-
contentTextCharacterCount?: number;
|
|
3607
|
-
}
|
|
3608
|
-
interface UpdateDraftPostLanguageRequest {
|
|
3609
|
-
/**
|
|
3610
|
-
* Source draft post ID
|
|
3611
|
-
* @format GUID
|
|
3612
|
-
*/
|
|
3613
|
-
postId?: string;
|
|
3614
|
-
/**
|
|
3615
|
-
* New language to replace to
|
|
3616
|
-
* @minLength 2
|
|
3617
|
-
* @format LANGUAGE_TAG
|
|
3618
|
-
*/
|
|
3619
|
-
language?: string;
|
|
3620
|
-
/**
|
|
3621
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
3622
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
3623
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3624
|
-
* @maxSize 10
|
|
3625
|
-
*/
|
|
3626
|
-
fieldsets?: FieldWithLiterals[];
|
|
3627
|
-
}
|
|
3628
|
-
interface UpdateDraftPostLanguageResponse {
|
|
3629
|
-
/** Draft post */
|
|
3630
|
-
draftPost?: DraftPost;
|
|
3631
|
-
}
|
|
3632
3628
|
interface BulkRevertToUnpublishedRequest {
|
|
3633
3629
|
/**
|
|
3634
3630
|
* Source post IDs.
|
|
@@ -3740,6 +3736,79 @@ interface MarkPostAsInModerationResponse {
|
|
|
3740
3736
|
/** Updated post draft. */
|
|
3741
3737
|
draftPost?: DraftPost;
|
|
3742
3738
|
}
|
|
3739
|
+
interface TranslateDraftRequest {
|
|
3740
|
+
/**
|
|
3741
|
+
* Source post or draft ID
|
|
3742
|
+
* @format GUID
|
|
3743
|
+
*/
|
|
3744
|
+
postId?: string;
|
|
3745
|
+
/**
|
|
3746
|
+
* Translation language
|
|
3747
|
+
* @format LANGUAGE_TAG
|
|
3748
|
+
*/
|
|
3749
|
+
language?: string;
|
|
3750
|
+
/**
|
|
3751
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
3752
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
3753
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3754
|
+
* @maxSize 10
|
|
3755
|
+
*/
|
|
3756
|
+
fieldsets?: FieldWithLiterals[];
|
|
3757
|
+
}
|
|
3758
|
+
interface TranslateDraftResponse {
|
|
3759
|
+
/** Draft post. */
|
|
3760
|
+
draftPost?: DraftPost;
|
|
3761
|
+
}
|
|
3762
|
+
interface IsDraftPostAutoTranslatableRequest {
|
|
3763
|
+
/**
|
|
3764
|
+
* Source post or draft ID.
|
|
3765
|
+
* @format GUID
|
|
3766
|
+
*/
|
|
3767
|
+
draftPostId?: string;
|
|
3768
|
+
}
|
|
3769
|
+
interface IsDraftPostAutoTranslatableResponse {
|
|
3770
|
+
/**
|
|
3771
|
+
* Source draft post ID.
|
|
3772
|
+
* @format GUID
|
|
3773
|
+
*/
|
|
3774
|
+
draftPostId?: string;
|
|
3775
|
+
/** Indicates if enough machine translation credits are available for the draft post translation. */
|
|
3776
|
+
translatable?: boolean;
|
|
3777
|
+
/** Draft post title word count. */
|
|
3778
|
+
titleWordCount?: number;
|
|
3779
|
+
/** Draft post content word count. */
|
|
3780
|
+
contentWordCount?: number;
|
|
3781
|
+
/** Word credits available for auto translation. */
|
|
3782
|
+
availableAutoTranslateWords?: number;
|
|
3783
|
+
/** Word credits available after auto translation would be done. */
|
|
3784
|
+
availableAutoTranslateWordsAfter?: number;
|
|
3785
|
+
/** Content text character count. */
|
|
3786
|
+
contentTextCharacterCount?: number;
|
|
3787
|
+
}
|
|
3788
|
+
interface UpdateDraftPostLanguageRequest {
|
|
3789
|
+
/**
|
|
3790
|
+
* Source draft post ID
|
|
3791
|
+
* @format GUID
|
|
3792
|
+
*/
|
|
3793
|
+
postId?: string;
|
|
3794
|
+
/**
|
|
3795
|
+
* New language to replace to
|
|
3796
|
+
* @minLength 2
|
|
3797
|
+
* @format LANGUAGE_TAG
|
|
3798
|
+
*/
|
|
3799
|
+
language?: string;
|
|
3800
|
+
/**
|
|
3801
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
3802
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
3803
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3804
|
+
* @maxSize 10
|
|
3805
|
+
*/
|
|
3806
|
+
fieldsets?: FieldWithLiterals[];
|
|
3807
|
+
}
|
|
3808
|
+
interface UpdateDraftPostLanguageResponse {
|
|
3809
|
+
/** Draft post */
|
|
3810
|
+
draftPost?: DraftPost;
|
|
3811
|
+
}
|
|
3743
3812
|
interface BaseEventMetadata {
|
|
3744
3813
|
/**
|
|
3745
3814
|
* App instance ID.
|
|
@@ -4511,6 +4580,11 @@ type DraftPostQuery = {
|
|
|
4511
4580
|
Sort order.
|
|
4512
4581
|
*/
|
|
4513
4582
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
4583
|
+
/**
|
|
4584
|
+
Origin point for geo-distance sorting on a GEO field
|
|
4585
|
+
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
4586
|
+
*/
|
|
4587
|
+
origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
|
|
4514
4588
|
}[];
|
|
4515
4589
|
};
|
|
4516
4590
|
declare const utils: {
|
|
@@ -4535,4 +4609,4 @@ declare const utils: {
|
|
|
4535
4609
|
*/
|
|
4536
4610
|
declare function publishDraftPost(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`, 2>>;
|
|
4537
4611
|
|
|
4538
|
-
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, 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 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 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 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, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, 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 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 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 SeoSchema, type Settings, type ShapeData, type ShapeDataStyles, 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 };
|
|
4612
|
+
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, 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 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, 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 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 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 SeoSchema, type Settings, type ShapeData, type ShapeDataStyles, 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 };
|