@wix/auto_sdk_blog_draft-posts 1.0.20 → 1.0.21
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/src/blog-v3-draft-draft-posts.types.d.ts +139 -59
- package/build/cjs/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +153 -73
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.types.d.ts +139 -59
- package/build/es/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.universal.d.ts +153 -73
- package/build/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.d.ts +139 -59
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +153 -73
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.d.ts +139 -59
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.d.ts +153 -73
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -91,7 +91,7 @@ export interface DraftPost {
|
|
|
91
91
|
* Status of the draft post.
|
|
92
92
|
* @readonly
|
|
93
93
|
*/
|
|
94
|
-
status?:
|
|
94
|
+
status?: StatusWithLiterals;
|
|
95
95
|
/** Details of the draft post in review. Only relevant to posts submitted by guest writers. */
|
|
96
96
|
moderationDetails?: ModerationDetails;
|
|
97
97
|
/**
|
|
@@ -295,6 +295,8 @@ export declare enum Origin {
|
|
|
295
295
|
/** Saved automatically by AI tool. */
|
|
296
296
|
AI_AUTO_SAVE = "AI_AUTO_SAVE"
|
|
297
297
|
}
|
|
298
|
+
/** @enumType */
|
|
299
|
+
export type OriginWithLiterals = Origin | 'UNKNOWN' | 'ADMIN' | 'ADD_CATEGORIES' | 'AUTO_SAVE' | 'COPY_TEMPLATE' | 'IMPORT' | 'IMPORT_BULK' | 'IMPORT_HTML' | 'IMPORT_PATCH' | 'LANGUAGE_CHANGE' | 'MANUAL_SAVE' | 'MIGRATION' | 'MODERATION' | 'MOVE_TO_TRASH' | 'PRICING_PLANS_CHANGE' | 'PROVISION' | 'PUBLISH' | 'REASSIGN_OWNER' | 'REBLOG' | 'RESTORE' | 'REVERT_TO_DRAFT' | 'TRANSLATION' | 'UNPUBLISH' | 'UNSCHEDULE' | 'NEW_EDIT_SESSION' | 'SCHEDULING_SERVICE_SCHEDULE' | 'SCHEDULING_SERVICE_UNSCHEDULE' | 'SCHEDULING_SERVICE_PUBLISH' | 'SCHEDULE' | 'REMOVE_FROM_MODERATION' | 'REJECT_FROM_MODERATION' | 'APPROVE_IN_MODERATION' | 'DELETE_TAG' | 'PIN' | 'UNPIN' | 'AI_AUTO_SAVE';
|
|
298
300
|
export interface RichContent {
|
|
299
301
|
/** Node objects representing a rich content document. */
|
|
300
302
|
nodes?: Node[];
|
|
@@ -359,7 +361,7 @@ export interface Node extends NodeDataOneOf {
|
|
|
359
361
|
/** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
|
|
360
362
|
layoutCellData?: LayoutCellData;
|
|
361
363
|
/** 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. */
|
|
362
|
-
type?:
|
|
364
|
+
type?: NodeTypeWithLiterals;
|
|
363
365
|
/** Node ID. */
|
|
364
366
|
id?: string;
|
|
365
367
|
/** A list of child nodes. */
|
|
@@ -460,6 +462,8 @@ export declare enum NodeType {
|
|
|
460
462
|
LAYOUT = "LAYOUT",
|
|
461
463
|
LAYOUT_CELL = "LAYOUT_CELL"
|
|
462
464
|
}
|
|
465
|
+
/** @enumType */
|
|
466
|
+
export 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';
|
|
463
467
|
export interface NodeStyle {
|
|
464
468
|
/** The top padding value in pixels. */
|
|
465
469
|
paddingTop?: string | null;
|
|
@@ -472,7 +476,7 @@ export interface ButtonData {
|
|
|
472
476
|
/** Styling for the button's container. */
|
|
473
477
|
containerData?: PluginContainerData;
|
|
474
478
|
/** The button type. */
|
|
475
|
-
type?:
|
|
479
|
+
type?: ButtonDataTypeWithLiterals;
|
|
476
480
|
/** Styling for the button. */
|
|
477
481
|
styles?: Styles;
|
|
478
482
|
/** The text to display on the button. */
|
|
@@ -513,7 +517,7 @@ export interface PluginContainerData {
|
|
|
513
517
|
/** The width of the node when it's displayed. */
|
|
514
518
|
width?: PluginContainerDataWidth;
|
|
515
519
|
/** The node's alignment within its container. */
|
|
516
|
-
alignment?:
|
|
520
|
+
alignment?: PluginContainerDataAlignmentWithLiterals;
|
|
517
521
|
/** Spoiler cover settings for the node. */
|
|
518
522
|
spoiler?: Spoiler;
|
|
519
523
|
/** The height of the node when it's displayed. */
|
|
@@ -531,6 +535,8 @@ export declare enum WidthType {
|
|
|
531
535
|
/** coast-to-coast display */
|
|
532
536
|
FULL_WIDTH = "FULL_WIDTH"
|
|
533
537
|
}
|
|
538
|
+
/** @enumType */
|
|
539
|
+
export type WidthTypeWithLiterals = WidthType | 'CONTENT' | 'SMALL' | 'ORIGINAL' | 'FULL_WIDTH';
|
|
534
540
|
export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
|
|
535
541
|
/**
|
|
536
542
|
* One of the following predefined width options:
|
|
@@ -539,7 +545,7 @@ export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOn
|
|
|
539
545
|
* `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
|
|
540
546
|
* `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
|
|
541
547
|
*/
|
|
542
|
-
size?:
|
|
548
|
+
size?: WidthTypeWithLiterals;
|
|
543
549
|
/** A custom width value in pixels. */
|
|
544
550
|
custom?: string | null;
|
|
545
551
|
}
|
|
@@ -552,7 +558,7 @@ export interface PluginContainerDataWidthDataOneOf {
|
|
|
552
558
|
* `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
|
|
553
559
|
* `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
|
|
554
560
|
*/
|
|
555
|
-
size?:
|
|
561
|
+
size?: WidthTypeWithLiterals;
|
|
556
562
|
/** A custom width value in pixels. */
|
|
557
563
|
custom?: string | null;
|
|
558
564
|
}
|
|
@@ -564,6 +570,8 @@ export declare enum PluginContainerDataAlignment {
|
|
|
564
570
|
/** Right Alignment */
|
|
565
571
|
RIGHT = "RIGHT"
|
|
566
572
|
}
|
|
573
|
+
/** @enumType */
|
|
574
|
+
export type PluginContainerDataAlignmentWithLiterals = PluginContainerDataAlignment | 'CENTER' | 'LEFT' | 'RIGHT';
|
|
567
575
|
export interface Spoiler {
|
|
568
576
|
/** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
|
|
569
577
|
enabled?: boolean | null;
|
|
@@ -582,6 +590,8 @@ export declare enum ButtonDataType {
|
|
|
582
590
|
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
583
591
|
ACTION = "ACTION"
|
|
584
592
|
}
|
|
593
|
+
/** @enumType */
|
|
594
|
+
export type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';
|
|
585
595
|
export interface Styles {
|
|
586
596
|
/**
|
|
587
597
|
* Deprecated: Use `borderWidth` and `borderRadius` instead.
|
|
@@ -647,7 +657,7 @@ export interface Link extends LinkDataOneOf {
|
|
|
647
657
|
* `PARENT` - Opens the linked document in the link's parent frame.
|
|
648
658
|
* `TOP` - Opens the linked document in the full body of the link's browser tab or window.
|
|
649
659
|
*/
|
|
650
|
-
target?:
|
|
660
|
+
target?: TargetWithLiterals;
|
|
651
661
|
/** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
|
|
652
662
|
rel?: Rel;
|
|
653
663
|
/** A serialized object used for a custom or external link panel. */
|
|
@@ -670,6 +680,8 @@ export declare enum Target {
|
|
|
670
680
|
/** Opens the linked document in the full body of the window */
|
|
671
681
|
TOP = "TOP"
|
|
672
682
|
}
|
|
683
|
+
/** @enumType */
|
|
684
|
+
export type TargetWithLiterals = Target | 'SELF' | 'BLANK' | 'PARENT' | 'TOP';
|
|
673
685
|
export interface Rel {
|
|
674
686
|
/** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
|
|
675
687
|
nofollow?: boolean | null;
|
|
@@ -686,7 +698,7 @@ export interface CodeBlockData {
|
|
|
686
698
|
}
|
|
687
699
|
export interface TextStyle {
|
|
688
700
|
/** Text alignment. Defaults to `AUTO`. */
|
|
689
|
-
textAlignment?:
|
|
701
|
+
textAlignment?: TextAlignmentWithLiterals;
|
|
690
702
|
/** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
|
|
691
703
|
lineHeight?: string | null;
|
|
692
704
|
}
|
|
@@ -702,15 +714,17 @@ export declare enum TextAlignment {
|
|
|
702
714
|
/** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
|
|
703
715
|
JUSTIFY = "JUSTIFY"
|
|
704
716
|
}
|
|
717
|
+
/** @enumType */
|
|
718
|
+
export type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
|
|
705
719
|
export interface DividerData {
|
|
706
720
|
/** Styling for the divider's container. */
|
|
707
721
|
containerData?: PluginContainerData;
|
|
708
722
|
/** Divider line style. */
|
|
709
|
-
lineStyle?:
|
|
723
|
+
lineStyle?: LineStyleWithLiterals;
|
|
710
724
|
/** Divider width. */
|
|
711
|
-
width?:
|
|
725
|
+
width?: WidthWithLiterals;
|
|
712
726
|
/** Divider alignment. */
|
|
713
|
-
alignment?:
|
|
727
|
+
alignment?: AlignmentWithLiterals;
|
|
714
728
|
}
|
|
715
729
|
export declare enum LineStyle {
|
|
716
730
|
/** Single Line */
|
|
@@ -722,6 +736,8 @@ export declare enum LineStyle {
|
|
|
722
736
|
/** Dotted Line */
|
|
723
737
|
DOTTED = "DOTTED"
|
|
724
738
|
}
|
|
739
|
+
/** @enumType */
|
|
740
|
+
export type LineStyleWithLiterals = LineStyle | 'SINGLE' | 'DOUBLE' | 'DASHED' | 'DOTTED';
|
|
725
741
|
export declare enum Width {
|
|
726
742
|
/** Large line */
|
|
727
743
|
LARGE = "LARGE",
|
|
@@ -730,6 +746,8 @@ export declare enum Width {
|
|
|
730
746
|
/** Small line */
|
|
731
747
|
SMALL = "SMALL"
|
|
732
748
|
}
|
|
749
|
+
/** @enumType */
|
|
750
|
+
export type WidthWithLiterals = Width | 'LARGE' | 'MEDIUM' | 'SMALL';
|
|
733
751
|
export declare enum Alignment {
|
|
734
752
|
/** Center alignment */
|
|
735
753
|
CENTER = "CENTER",
|
|
@@ -738,6 +756,8 @@ export declare enum Alignment {
|
|
|
738
756
|
/** Right alignment */
|
|
739
757
|
RIGHT = "RIGHT"
|
|
740
758
|
}
|
|
759
|
+
/** @enumType */
|
|
760
|
+
export type AlignmentWithLiterals = Alignment | 'CENTER' | 'LEFT' | 'RIGHT';
|
|
741
761
|
export interface FileData {
|
|
742
762
|
/** Styling for the file's container. */
|
|
743
763
|
containerData?: PluginContainerData;
|
|
@@ -769,6 +789,8 @@ export declare enum ViewMode {
|
|
|
769
789
|
/** Mini PDF view */
|
|
770
790
|
MINI = "MINI"
|
|
771
791
|
}
|
|
792
|
+
/** @enumType */
|
|
793
|
+
export type ViewModeWithLiterals = ViewMode | 'NONE' | 'FULL' | 'MINI';
|
|
772
794
|
export interface FileSource extends FileSourceDataOneOf {
|
|
773
795
|
/** The absolute URL for the file's source. */
|
|
774
796
|
url?: string | null;
|
|
@@ -801,7 +823,7 @@ export interface PDFSettings {
|
|
|
801
823
|
* `FULL` : A full page view of the PDF is displayed.
|
|
802
824
|
* `MINI` : A mini view of the PDF is displayed.
|
|
803
825
|
*/
|
|
804
|
-
viewMode?:
|
|
826
|
+
viewMode?: ViewModeWithLiterals;
|
|
805
827
|
/** Sets whether the PDF download button is disabled. Defaults to `false`. */
|
|
806
828
|
disableDownload?: boolean | null;
|
|
807
829
|
/** Sets whether the PDF print button is disabled. Defaults to `false`. */
|
|
@@ -888,18 +910,24 @@ export declare enum LayoutType {
|
|
|
888
910
|
/** Fullsize images type */
|
|
889
911
|
FULLSIZE = "FULLSIZE"
|
|
890
912
|
}
|
|
913
|
+
/** @enumType */
|
|
914
|
+
export type LayoutTypeWithLiterals = LayoutType | 'COLLAGE' | 'MASONRY' | 'GRID' | 'THUMBNAIL' | 'SLIDER' | 'SLIDESHOW' | 'PANORAMA' | 'COLUMN' | 'MAGIC' | 'FULLSIZE';
|
|
891
915
|
export declare enum Orientation {
|
|
892
916
|
/** Rows Orientation */
|
|
893
917
|
ROWS = "ROWS",
|
|
894
918
|
/** Columns Orientation */
|
|
895
919
|
COLUMNS = "COLUMNS"
|
|
896
920
|
}
|
|
921
|
+
/** @enumType */
|
|
922
|
+
export type OrientationWithLiterals = Orientation | 'ROWS' | 'COLUMNS';
|
|
897
923
|
export declare enum Crop {
|
|
898
924
|
/** Crop to fill */
|
|
899
925
|
FILL = "FILL",
|
|
900
926
|
/** Crop to fit */
|
|
901
927
|
FIT = "FIT"
|
|
902
928
|
}
|
|
929
|
+
/** @enumType */
|
|
930
|
+
export type CropWithLiterals = Crop | 'FILL' | 'FIT';
|
|
903
931
|
export declare enum ThumbnailsAlignment {
|
|
904
932
|
/** Top alignment */
|
|
905
933
|
TOP = "TOP",
|
|
@@ -912,13 +940,15 @@ export declare enum ThumbnailsAlignment {
|
|
|
912
940
|
/** No thumbnail */
|
|
913
941
|
NONE = "NONE"
|
|
914
942
|
}
|
|
943
|
+
/** @enumType */
|
|
944
|
+
export type ThumbnailsAlignmentWithLiterals = ThumbnailsAlignment | 'TOP' | 'RIGHT' | 'BOTTOM' | 'LEFT' | 'NONE';
|
|
915
945
|
export interface Layout {
|
|
916
946
|
/** Gallery layout type. */
|
|
917
|
-
type?:
|
|
947
|
+
type?: LayoutTypeWithLiterals;
|
|
918
948
|
/** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
|
|
919
949
|
horizontalScroll?: boolean | null;
|
|
920
950
|
/** Gallery orientation. */
|
|
921
|
-
orientation?:
|
|
951
|
+
orientation?: OrientationWithLiterals;
|
|
922
952
|
/** The number of columns to display on full size screens. */
|
|
923
953
|
numberOfColumns?: number | null;
|
|
924
954
|
/** The number of columns to display on mobile screens. */
|
|
@@ -930,13 +960,13 @@ export interface ItemStyle {
|
|
|
930
960
|
/** Item ratio */
|
|
931
961
|
ratio?: number | null;
|
|
932
962
|
/** Sets how item images are cropped. */
|
|
933
|
-
crop?:
|
|
963
|
+
crop?: CropWithLiterals;
|
|
934
964
|
/** The spacing between items in pixels. */
|
|
935
965
|
spacing?: number | null;
|
|
936
966
|
}
|
|
937
967
|
export interface Thumbnails {
|
|
938
968
|
/** Thumbnail alignment. */
|
|
939
|
-
placement?:
|
|
969
|
+
placement?: ThumbnailsAlignmentWithLiterals;
|
|
940
970
|
/** Spacing between thumbnails in pixels. */
|
|
941
971
|
spacing?: number | null;
|
|
942
972
|
}
|
|
@@ -952,7 +982,7 @@ export interface GIFData {
|
|
|
952
982
|
/** Width in pixels. */
|
|
953
983
|
width?: number;
|
|
954
984
|
/** Type of GIF (Sticker or NORMAL). Defaults to `NORMAL`. */
|
|
955
|
-
gifType?:
|
|
985
|
+
gifType?: GIFTypeWithLiterals;
|
|
956
986
|
}
|
|
957
987
|
export interface GIF {
|
|
958
988
|
/**
|
|
@@ -975,6 +1005,8 @@ export declare enum GIFType {
|
|
|
975
1005
|
NORMAL = "NORMAL",
|
|
976
1006
|
STICKER = "STICKER"
|
|
977
1007
|
}
|
|
1008
|
+
/** @enumType */
|
|
1009
|
+
export type GIFTypeWithLiterals = GIFType | 'NORMAL' | 'STICKER';
|
|
978
1010
|
export interface HeadingData {
|
|
979
1011
|
/** Heading level from 1-6. */
|
|
980
1012
|
level?: number;
|
|
@@ -996,7 +1028,7 @@ export interface HTMLData extends HTMLDataDataOneOf {
|
|
|
996
1028
|
/** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
|
|
997
1029
|
containerData?: PluginContainerData;
|
|
998
1030
|
/** The type of HTML code. */
|
|
999
|
-
source?:
|
|
1031
|
+
source?: SourceWithLiterals;
|
|
1000
1032
|
/** If container height is aligned with its content height. Defaults to `true`. */
|
|
1001
1033
|
autoHeight?: boolean | null;
|
|
1002
1034
|
}
|
|
@@ -1016,6 +1048,8 @@ export declare enum Source {
|
|
|
1016
1048
|
HTML = "HTML",
|
|
1017
1049
|
ADSENSE = "ADSENSE"
|
|
1018
1050
|
}
|
|
1051
|
+
/** @enumType */
|
|
1052
|
+
export type SourceWithLiterals = Source | 'HTML' | 'ADSENSE';
|
|
1019
1053
|
export interface ImageData {
|
|
1020
1054
|
/** Styling for the image's container. */
|
|
1021
1055
|
containerData?: PluginContainerData;
|
|
@@ -1080,6 +1114,8 @@ export declare enum Position {
|
|
|
1080
1114
|
/** Thumbnail hidden and not displayed */
|
|
1081
1115
|
HIDDEN = "HIDDEN"
|
|
1082
1116
|
}
|
|
1117
|
+
/** @enumType */
|
|
1118
|
+
export type PositionWithLiterals = Position | 'START' | 'END' | 'TOP' | 'HIDDEN';
|
|
1083
1119
|
export interface LinkPreviewDataStyles {
|
|
1084
1120
|
/**
|
|
1085
1121
|
* Background color as a hexadecimal value.
|
|
@@ -1111,7 +1147,7 @@ export interface LinkPreviewDataStyles {
|
|
|
1111
1147
|
*/
|
|
1112
1148
|
borderColor?: string | null;
|
|
1113
1149
|
/** Position of thumbnail. Defaults to `START`. */
|
|
1114
|
-
thumbnailPosition?:
|
|
1150
|
+
thumbnailPosition?: PositionWithLiterals;
|
|
1115
1151
|
}
|
|
1116
1152
|
export interface MapData {
|
|
1117
1153
|
/** Styling for the map's container. */
|
|
@@ -1141,7 +1177,7 @@ export interface MapSettings {
|
|
|
1141
1177
|
/** Initial zoom value. */
|
|
1142
1178
|
initialZoom?: number | null;
|
|
1143
1179
|
/** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
|
|
1144
|
-
mapType?:
|
|
1180
|
+
mapType?: MapTypeWithLiterals;
|
|
1145
1181
|
}
|
|
1146
1182
|
export declare enum MapType {
|
|
1147
1183
|
/** Roadmap map type */
|
|
@@ -1153,6 +1189,8 @@ export declare enum MapType {
|
|
|
1153
1189
|
/** Terrain map type */
|
|
1154
1190
|
TERRAIN = "TERRAIN"
|
|
1155
1191
|
}
|
|
1192
|
+
/** @enumType */
|
|
1193
|
+
export type MapTypeWithLiterals = MapType | 'ROADMAP' | 'SATELITE' | 'HYBRID' | 'TERRAIN';
|
|
1156
1194
|
export interface ParagraphData {
|
|
1157
1195
|
/** Styling for the paragraph text. */
|
|
1158
1196
|
textStyle?: TextStyle;
|
|
@@ -1179,17 +1217,21 @@ export declare enum ViewRole {
|
|
|
1179
1217
|
/** Anyone can see the results, even if one didn't vote */
|
|
1180
1218
|
EVERYONE = "EVERYONE"
|
|
1181
1219
|
}
|
|
1220
|
+
/** @enumType */
|
|
1221
|
+
export type ViewRoleWithLiterals = ViewRole | 'CREATOR' | 'VOTERS' | 'EVERYONE';
|
|
1182
1222
|
export declare enum VoteRole {
|
|
1183
1223
|
/** Logged in member */
|
|
1184
1224
|
SITE_MEMBERS = "SITE_MEMBERS",
|
|
1185
1225
|
/** Anyone */
|
|
1186
1226
|
ALL = "ALL"
|
|
1187
1227
|
}
|
|
1228
|
+
/** @enumType */
|
|
1229
|
+
export type VoteRoleWithLiterals = VoteRole | 'SITE_MEMBERS' | 'ALL';
|
|
1188
1230
|
export interface Permissions {
|
|
1189
1231
|
/** Sets who can view the poll results. */
|
|
1190
|
-
view?:
|
|
1232
|
+
view?: ViewRoleWithLiterals;
|
|
1191
1233
|
/** Sets who can vote. */
|
|
1192
|
-
vote?:
|
|
1234
|
+
vote?: VoteRoleWithLiterals;
|
|
1193
1235
|
/** Sets whether one voter can vote multiple times. Defaults to `false`. */
|
|
1194
1236
|
allowMultipleVotes?: boolean | null;
|
|
1195
1237
|
}
|
|
@@ -1215,17 +1257,21 @@ export declare enum PollLayoutType {
|
|
|
1215
1257
|
/** Grid */
|
|
1216
1258
|
GRID = "GRID"
|
|
1217
1259
|
}
|
|
1260
|
+
/** @enumType */
|
|
1261
|
+
export type PollLayoutTypeWithLiterals = PollLayoutType | 'LIST' | 'GRID';
|
|
1218
1262
|
export declare enum PollLayoutDirection {
|
|
1219
1263
|
/** Left-to-right */
|
|
1220
1264
|
LTR = "LTR",
|
|
1221
1265
|
/** Right-to-left */
|
|
1222
1266
|
RTL = "RTL"
|
|
1223
1267
|
}
|
|
1268
|
+
/** @enumType */
|
|
1269
|
+
export type PollLayoutDirectionWithLiterals = PollLayoutDirection | 'LTR' | 'RTL';
|
|
1224
1270
|
export interface PollLayout {
|
|
1225
1271
|
/** The layout for displaying the voting options. */
|
|
1226
|
-
type?:
|
|
1272
|
+
type?: PollLayoutTypeWithLiterals;
|
|
1227
1273
|
/** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
|
|
1228
|
-
direction?:
|
|
1274
|
+
direction?: PollLayoutDirectionWithLiterals;
|
|
1229
1275
|
/** Sets whether to display the main poll image. Defaults to `false`. */
|
|
1230
1276
|
enableImage?: boolean | null;
|
|
1231
1277
|
}
|
|
@@ -1241,6 +1287,8 @@ export declare enum BackgroundType {
|
|
|
1241
1287
|
/** Gradiant background type */
|
|
1242
1288
|
GRADIENT = "GRADIENT"
|
|
1243
1289
|
}
|
|
1290
|
+
/** @enumType */
|
|
1291
|
+
export type BackgroundTypeWithLiterals = BackgroundType | 'COLOR' | 'IMAGE' | 'GRADIENT';
|
|
1244
1292
|
export interface Gradient {
|
|
1245
1293
|
/** The gradient angle in degrees. */
|
|
1246
1294
|
angle?: number | null;
|
|
@@ -1266,7 +1314,7 @@ export interface Background extends BackgroundBackgroundOneOf {
|
|
|
1266
1314
|
/** Details for a gradient background. */
|
|
1267
1315
|
gradient?: Gradient;
|
|
1268
1316
|
/** Background type. For each option, include the relevant details. */
|
|
1269
|
-
type?:
|
|
1317
|
+
type?: BackgroundTypeWithLiterals;
|
|
1270
1318
|
}
|
|
1271
1319
|
/** @oneof */
|
|
1272
1320
|
export interface BackgroundBackgroundOneOf {
|
|
@@ -1345,7 +1393,7 @@ export interface Decoration extends DecorationDataOneOf {
|
|
|
1345
1393
|
/** Data for a strikethrough decoration. Defaults to `true`. */
|
|
1346
1394
|
strikethroughData?: boolean | null;
|
|
1347
1395
|
/** The type of decoration to apply. */
|
|
1348
|
-
type?:
|
|
1396
|
+
type?: DecorationTypeWithLiterals;
|
|
1349
1397
|
}
|
|
1350
1398
|
/** @oneof */
|
|
1351
1399
|
export interface DecorationDataOneOf {
|
|
@@ -1383,6 +1431,8 @@ export declare enum DecorationType {
|
|
|
1383
1431
|
EXTERNAL = "EXTERNAL",
|
|
1384
1432
|
STRIKETHROUGH = "STRIKETHROUGH"
|
|
1385
1433
|
}
|
|
1434
|
+
/** @enumType */
|
|
1435
|
+
export type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH';
|
|
1386
1436
|
export interface AnchorData {
|
|
1387
1437
|
/** The target node's ID. */
|
|
1388
1438
|
anchor?: string;
|
|
@@ -1407,7 +1457,7 @@ export interface MentionData {
|
|
|
1407
1457
|
}
|
|
1408
1458
|
export interface FontSizeData {
|
|
1409
1459
|
/** The units used for the font size. */
|
|
1410
|
-
unit?:
|
|
1460
|
+
unit?: FontTypeWithLiterals;
|
|
1411
1461
|
/** Font size value. */
|
|
1412
1462
|
value?: number | null;
|
|
1413
1463
|
}
|
|
@@ -1415,6 +1465,8 @@ export declare enum FontType {
|
|
|
1415
1465
|
PX = "PX",
|
|
1416
1466
|
EM = "EM"
|
|
1417
1467
|
}
|
|
1468
|
+
/** @enumType */
|
|
1469
|
+
export type FontTypeWithLiterals = FontType | 'PX' | 'EM';
|
|
1418
1470
|
export interface SpoilerData {
|
|
1419
1471
|
/** Spoiler ID. */
|
|
1420
1472
|
id?: string | null;
|
|
@@ -1425,7 +1477,7 @@ export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
|
|
|
1425
1477
|
/** Data for embedded Wix Events content. */
|
|
1426
1478
|
eventData?: EventData;
|
|
1427
1479
|
/** The type of Wix App content being embedded. */
|
|
1428
|
-
type?:
|
|
1480
|
+
type?: AppTypeWithLiterals;
|
|
1429
1481
|
/** The ID of the embedded content. */
|
|
1430
1482
|
itemId?: string | null;
|
|
1431
1483
|
/** The name of the embedded content. */
|
|
@@ -1452,6 +1504,8 @@ export declare enum AppType {
|
|
|
1452
1504
|
EVENT = "EVENT",
|
|
1453
1505
|
BOOKING = "BOOKING"
|
|
1454
1506
|
}
|
|
1507
|
+
/** @enumType */
|
|
1508
|
+
export type AppTypeWithLiterals = AppType | 'PRODUCT' | 'EVENT' | 'BOOKING';
|
|
1455
1509
|
export interface BookingData {
|
|
1456
1510
|
/** Booking duration in minutes. */
|
|
1457
1511
|
durations?: string | null;
|
|
@@ -1530,9 +1584,9 @@ export interface CollapsibleListData {
|
|
|
1530
1584
|
/** If `true`, only one item can be expanded at a time. Defaults to `false`. */
|
|
1531
1585
|
expandOnlyOne?: boolean | null;
|
|
1532
1586
|
/** Sets which items are expanded when the page loads. */
|
|
1533
|
-
initialExpandedItems?:
|
|
1587
|
+
initialExpandedItems?: InitialExpandedItemsWithLiterals;
|
|
1534
1588
|
/** The direction of the text in the list. Either left-to-right or right-to-left. */
|
|
1535
|
-
direction?:
|
|
1589
|
+
direction?: DirectionWithLiterals;
|
|
1536
1590
|
/** If `true`, The collapsible item will appear in search results as an FAQ. */
|
|
1537
1591
|
isQapageData?: boolean | null;
|
|
1538
1592
|
}
|
|
@@ -1544,12 +1598,16 @@ export declare enum InitialExpandedItems {
|
|
|
1544
1598
|
/** All items collapsed initally */
|
|
1545
1599
|
NONE = "NONE"
|
|
1546
1600
|
}
|
|
1601
|
+
/** @enumType */
|
|
1602
|
+
export type InitialExpandedItemsWithLiterals = InitialExpandedItems | 'FIRST' | 'ALL' | 'NONE';
|
|
1547
1603
|
export declare enum Direction {
|
|
1548
1604
|
/** Left-to-right */
|
|
1549
1605
|
LTR = "LTR",
|
|
1550
1606
|
/** Right-to-left */
|
|
1551
1607
|
RTL = "RTL"
|
|
1552
1608
|
}
|
|
1609
|
+
/** @enumType */
|
|
1610
|
+
export type DirectionWithLiterals = Direction | 'LTR' | 'RTL';
|
|
1553
1611
|
export interface TableData {
|
|
1554
1612
|
/** Styling for the table's container. */
|
|
1555
1613
|
containerData?: PluginContainerData;
|
|
@@ -1587,9 +1645,11 @@ export declare enum VerticalAlignment {
|
|
|
1587
1645
|
/** Bottom alignment */
|
|
1588
1646
|
BOTTOM = "BOTTOM"
|
|
1589
1647
|
}
|
|
1648
|
+
/** @enumType */
|
|
1649
|
+
export type VerticalAlignmentWithLiterals = VerticalAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
1590
1650
|
export interface CellStyle {
|
|
1591
1651
|
/** Vertical alignment for the cell's text. */
|
|
1592
|
-
verticalAlignment?:
|
|
1652
|
+
verticalAlignment?: VerticalAlignmentWithLiterals;
|
|
1593
1653
|
/**
|
|
1594
1654
|
* Cell background color as a hexadecimal value.
|
|
1595
1655
|
* @format COLOR_HEX
|
|
@@ -1628,6 +1688,8 @@ export declare enum NullValue {
|
|
|
1628
1688
|
/** Null value. */
|
|
1629
1689
|
NULL_VALUE = "NULL_VALUE"
|
|
1630
1690
|
}
|
|
1691
|
+
/** @enumType */
|
|
1692
|
+
export type NullValueWithLiterals = NullValue | 'NULL_VALUE';
|
|
1631
1693
|
/**
|
|
1632
1694
|
* `ListValue` is a wrapper around a repeated field of values.
|
|
1633
1695
|
*
|
|
@@ -1736,6 +1798,8 @@ export declare enum Status {
|
|
|
1736
1798
|
/** Status indicating the draft post is in review. */
|
|
1737
1799
|
IN_REVIEW = "IN_REVIEW"
|
|
1738
1800
|
}
|
|
1801
|
+
/** @enumType */
|
|
1802
|
+
export type StatusWithLiterals = Status | 'UNKNOWN' | 'PUBLISHED' | 'UNPUBLISHED' | 'SCHEDULED' | 'DELETED' | 'IN_REVIEW';
|
|
1739
1803
|
export interface ModerationDetails {
|
|
1740
1804
|
/**
|
|
1741
1805
|
* Member ID of the person submitting the draft post for review.
|
|
@@ -1745,7 +1809,7 @@ export interface ModerationDetails {
|
|
|
1745
1809
|
/** Date the post was submitted for review. */
|
|
1746
1810
|
submittedDate?: Date | null;
|
|
1747
1811
|
/** Status indicating whether the submission was approved or rejected by the moderator. */
|
|
1748
|
-
status?:
|
|
1812
|
+
status?: ModerationStatusStatusWithLiterals;
|
|
1749
1813
|
/**
|
|
1750
1814
|
* Member ID of the person who approved or rejected the post.
|
|
1751
1815
|
* @format GUID
|
|
@@ -1759,6 +1823,8 @@ export declare enum ModerationStatusStatus {
|
|
|
1759
1823
|
APPROVED = "APPROVED",
|
|
1760
1824
|
REJECTED = "REJECTED"
|
|
1761
1825
|
}
|
|
1826
|
+
/** @enumType */
|
|
1827
|
+
export type ModerationStatusStatusWithLiterals = ModerationStatusStatus | 'UNKNOWN' | 'APPROVED' | 'REJECTED';
|
|
1762
1828
|
/**
|
|
1763
1829
|
* The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
|
|
1764
1830
|
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
@@ -1912,7 +1978,7 @@ export interface DraftPostTranslation {
|
|
|
1912
1978
|
*/
|
|
1913
1979
|
id?: string;
|
|
1914
1980
|
/** Post status. */
|
|
1915
|
-
status?:
|
|
1981
|
+
status?: StatusWithLiterals;
|
|
1916
1982
|
/**
|
|
1917
1983
|
* Language the post is written in.
|
|
1918
1984
|
* @format LANGUAGE_TAG
|
|
@@ -1973,7 +2039,7 @@ export interface GetDraftPostTotalsRequest {
|
|
|
1973
2039
|
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
1974
2040
|
* @maxSize 10
|
|
1975
2041
|
*/
|
|
1976
|
-
groupBy?:
|
|
2042
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
1977
2043
|
/**
|
|
1978
2044
|
* Optional language filter by provided language code. Useful in multilingual context.
|
|
1979
2045
|
* @format LANGUAGE_TAG
|
|
@@ -1986,6 +2052,8 @@ export declare enum TotalDraftPostsGroupingField {
|
|
|
1986
2052
|
/** Groups results by language. */
|
|
1987
2053
|
LANGUAGE = "LANGUAGE"
|
|
1988
2054
|
}
|
|
2055
|
+
/** @enumType */
|
|
2056
|
+
export type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
1989
2057
|
export interface GetDraftPostTotalsResponse {
|
|
1990
2058
|
/** Draft post totals. */
|
|
1991
2059
|
totalDraftPosts?: TotalDraftPosts[];
|
|
@@ -1994,7 +2062,7 @@ export interface TotalDraftPosts {
|
|
|
1994
2062
|
/** Draft post totals in that group. */
|
|
1995
2063
|
total?: number;
|
|
1996
2064
|
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
1997
|
-
status?:
|
|
2065
|
+
status?: StatusWithLiterals;
|
|
1998
2066
|
/**
|
|
1999
2067
|
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
2000
2068
|
* @format LANGUAGE_TAG
|
|
@@ -2103,7 +2171,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
2103
2171
|
*/
|
|
2104
2172
|
appId?: string;
|
|
2105
2173
|
/** @readonly */
|
|
2106
|
-
identityType?:
|
|
2174
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
2107
2175
|
}
|
|
2108
2176
|
/** @oneof */
|
|
2109
2177
|
export interface IdentificationDataIdOneOf {
|
|
@@ -2135,6 +2203,8 @@ export declare enum WebhookIdentityType {
|
|
|
2135
2203
|
WIX_USER = "WIX_USER",
|
|
2136
2204
|
APP = "APP"
|
|
2137
2205
|
}
|
|
2206
|
+
/** @enumType */
|
|
2207
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
2138
2208
|
export interface InitialDraftPostsCopied {
|
|
2139
2209
|
/** Number of draft posts copied. */
|
|
2140
2210
|
count?: number;
|
|
@@ -2154,7 +2224,7 @@ export interface CreateDraftPostRequest {
|
|
|
2154
2224
|
* only the draft post's base fields are returned.
|
|
2155
2225
|
* @maxSize 10
|
|
2156
2226
|
*/
|
|
2157
|
-
fieldsets?:
|
|
2227
|
+
fieldsets?: FieldWithLiterals[];
|
|
2158
2228
|
}
|
|
2159
2229
|
export declare enum Type {
|
|
2160
2230
|
UNKNOWN = "UNKNOWN",
|
|
@@ -2169,6 +2239,8 @@ export declare enum Type {
|
|
|
2169
2239
|
/** Triggered by autosave when post created by AI tool. */
|
|
2170
2240
|
AI_AUTO_SAVE = "AI_AUTO_SAVE"
|
|
2171
2241
|
}
|
|
2242
|
+
/** @enumType */
|
|
2243
|
+
export type TypeWithLiterals = Type | 'UNKNOWN' | 'MANUAL' | 'AUTO_SAVE' | 'PROVISIONING' | 'IMPORT' | 'AI_AUTO_SAVE';
|
|
2172
2244
|
export declare enum Field {
|
|
2173
2245
|
/** Unknown field. */
|
|
2174
2246
|
UNKNOWN = "UNKNOWN",
|
|
@@ -2181,6 +2253,8 @@ export declare enum Field {
|
|
|
2181
2253
|
/** If the user has not set excerpt, returns the one autogenerated from content. */
|
|
2182
2254
|
GENERATED_EXCERPT = "GENERATED_EXCERPT"
|
|
2183
2255
|
}
|
|
2256
|
+
/** @enumType */
|
|
2257
|
+
export type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'CONTENT' | 'RICH_CONTENT' | 'GENERATED_EXCERPT';
|
|
2184
2258
|
export interface CreateDraftPostResponse {
|
|
2185
2259
|
/** Created draft post info. */
|
|
2186
2260
|
draftPost?: DraftPost;
|
|
@@ -2202,7 +2276,7 @@ export interface BulkCreateDraftPostsRequest {
|
|
|
2202
2276
|
* For example, when `URL` fieldset is selected, returned draft post will include the set of base properties and the draft post's preview url.
|
|
2203
2277
|
* @maxSize 10
|
|
2204
2278
|
*/
|
|
2205
|
-
fieldsets?:
|
|
2279
|
+
fieldsets?: FieldWithLiterals[];
|
|
2206
2280
|
}
|
|
2207
2281
|
export interface BulkCreateDraftPostsResponse {
|
|
2208
2282
|
/** Draft posts created by bulk action. */
|
|
@@ -2254,7 +2328,7 @@ export interface BulkUpdateDraftPostsRequest {
|
|
|
2254
2328
|
*
|
|
2255
2329
|
* Default: `UPDATE`
|
|
2256
2330
|
*/
|
|
2257
|
-
action?:
|
|
2331
|
+
action?: ActionWithLiterals;
|
|
2258
2332
|
/** Posts' scheduled publish date when `action` is set to `UPDATE_SCHEDULE`. */
|
|
2259
2333
|
scheduledPublishDate?: Date | null;
|
|
2260
2334
|
/** Whether to return the full updated draft post entities in the response. */
|
|
@@ -2265,7 +2339,7 @@ export interface BulkUpdateDraftPostsRequest {
|
|
|
2265
2339
|
* only the draft post's base fields are returned.
|
|
2266
2340
|
* @maxSize 10
|
|
2267
2341
|
*/
|
|
2268
|
-
fieldsets?:
|
|
2342
|
+
fieldsets?: FieldWithLiterals[];
|
|
2269
2343
|
}
|
|
2270
2344
|
export interface MaskedDraftPosts {
|
|
2271
2345
|
/** Draft post */
|
|
@@ -2289,6 +2363,8 @@ export declare enum Action {
|
|
|
2289
2363
|
/** Update a post that's already been published. This creates and updates a draft version of the post. The original post is still published. */
|
|
2290
2364
|
UPDATE_PUBLICATION = "UPDATE_PUBLICATION"
|
|
2291
2365
|
}
|
|
2366
|
+
/** @enumType */
|
|
2367
|
+
export type ActionWithLiterals = Action | 'UPDATE' | 'UPDATE_PUBLISH' | 'UPDATE_SCHEDULE' | 'UPDATE_REVERT_TO_DRAFT' | 'UPDATE_CANCEL_SCHEDULE' | 'UPDATE_REJECT' | 'UPDATE_PUBLICATION';
|
|
2292
2368
|
export interface BulkUpdateDraftPostsResponse {
|
|
2293
2369
|
/** Draft posts updated by bulk action. */
|
|
2294
2370
|
results?: BulkDraftPostResult[];
|
|
@@ -2311,7 +2387,7 @@ export interface ListDeletedDraftPostsRequest {
|
|
|
2311
2387
|
*
|
|
2312
2388
|
* Default: `EDITING_DATE_DESCENDING`
|
|
2313
2389
|
*/
|
|
2314
|
-
sort?:
|
|
2390
|
+
sort?: GetDraftPostsSortWithLiterals;
|
|
2315
2391
|
/** Pagination options. */
|
|
2316
2392
|
paging?: BlogPaging;
|
|
2317
2393
|
/**
|
|
@@ -2320,7 +2396,7 @@ export interface ListDeletedDraftPostsRequest {
|
|
|
2320
2396
|
* only the draft post's base fields are returned.
|
|
2321
2397
|
* @maxSize 10
|
|
2322
2398
|
*/
|
|
2323
|
-
fieldsets?:
|
|
2399
|
+
fieldsets?: FieldWithLiterals[];
|
|
2324
2400
|
/**
|
|
2325
2401
|
* Draft post ids.
|
|
2326
2402
|
* @maxSize 100
|
|
@@ -2334,6 +2410,8 @@ export declare enum GetDraftPostsSort {
|
|
|
2334
2410
|
/** Sort by `editedDate` in ascending order. */
|
|
2335
2411
|
EDITING_DATE_ASC = "EDITING_DATE_ASC"
|
|
2336
2412
|
}
|
|
2413
|
+
/** @enumType */
|
|
2414
|
+
export type GetDraftPostsSortWithLiterals = GetDraftPostsSort | 'EDITING_DATE_DESC' | 'EDITING_DATE_ASC';
|
|
2337
2415
|
export interface BlogPaging {
|
|
2338
2416
|
/**
|
|
2339
2417
|
* Number of items to skip in the current sort order.
|
|
@@ -2425,7 +2503,7 @@ export interface GetDraftPostRequest {
|
|
|
2425
2503
|
* only the draft post's base fields are returned.
|
|
2426
2504
|
* @maxSize 10
|
|
2427
2505
|
*/
|
|
2428
|
-
fieldsets?:
|
|
2506
|
+
fieldsets?: FieldWithLiterals[];
|
|
2429
2507
|
}
|
|
2430
2508
|
export interface GetDraftPostResponse {
|
|
2431
2509
|
/** Draft post info. */
|
|
@@ -2445,14 +2523,14 @@ export interface UpdateDraftPostContentRequest extends UpdateDraftPostContentReq
|
|
|
2445
2523
|
*/
|
|
2446
2524
|
draftPostId?: string;
|
|
2447
2525
|
/** Change origin. */
|
|
2448
|
-
changeOrigin?:
|
|
2526
|
+
changeOrigin?: OriginWithLiterals;
|
|
2449
2527
|
/**
|
|
2450
2528
|
* List of draft post fields to be included if entities are present in the response.
|
|
2451
2529
|
* Base fieldset, which is default, will return all core draft post properties.
|
|
2452
2530
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
2453
2531
|
* @maxSize 10
|
|
2454
2532
|
*/
|
|
2455
|
-
fieldsets?:
|
|
2533
|
+
fieldsets?: FieldWithLiterals[];
|
|
2456
2534
|
}
|
|
2457
2535
|
/** @oneof */
|
|
2458
2536
|
export interface UpdateDraftPostContentRequestDraftContentOneOf {
|
|
@@ -2476,7 +2554,7 @@ export interface UpdateDraftPostRequest {
|
|
|
2476
2554
|
*
|
|
2477
2555
|
* Default: `UPDATE`
|
|
2478
2556
|
*/
|
|
2479
|
-
action?:
|
|
2557
|
+
action?: ActionWithLiterals;
|
|
2480
2558
|
/** Post publish schedule date if `action` is set to `UPDATE_SCHEDULE`. */
|
|
2481
2559
|
scheduledPublishDate?: Date | null;
|
|
2482
2560
|
/**
|
|
@@ -2485,7 +2563,7 @@ export interface UpdateDraftPostRequest {
|
|
|
2485
2563
|
* only the draft post's base fields are returned.
|
|
2486
2564
|
* @maxSize 10
|
|
2487
2565
|
*/
|
|
2488
|
-
fieldsets?:
|
|
2566
|
+
fieldsets?: FieldWithLiterals[];
|
|
2489
2567
|
}
|
|
2490
2568
|
export interface UpdateDraftPostResponse {
|
|
2491
2569
|
/** Updated draft post info. */
|
|
@@ -2538,7 +2616,7 @@ export interface ListDraftPostsRequest {
|
|
|
2538
2616
|
*
|
|
2539
2617
|
* If omitted, draft posts with all statuses are returned.
|
|
2540
2618
|
*/
|
|
2541
|
-
status?:
|
|
2619
|
+
status?: StatusWithLiterals;
|
|
2542
2620
|
/**
|
|
2543
2621
|
* Language filter.
|
|
2544
2622
|
*
|
|
@@ -2552,7 +2630,7 @@ export interface ListDraftPostsRequest {
|
|
|
2552
2630
|
*
|
|
2553
2631
|
* Default: `EDITING_DATE_DESCENDING`
|
|
2554
2632
|
*/
|
|
2555
|
-
sort?:
|
|
2633
|
+
sort?: GetDraftPostsSortWithLiterals;
|
|
2556
2634
|
/** Pagination options. */
|
|
2557
2635
|
paging?: BlogPaging;
|
|
2558
2636
|
/**
|
|
@@ -2561,7 +2639,7 @@ export interface ListDraftPostsRequest {
|
|
|
2561
2639
|
* only the draft post's base fields are returned.
|
|
2562
2640
|
* @maxSize 10
|
|
2563
2641
|
*/
|
|
2564
|
-
fieldsets?:
|
|
2642
|
+
fieldsets?: FieldWithLiterals[];
|
|
2565
2643
|
}
|
|
2566
2644
|
export interface ListDraftPostsResponse {
|
|
2567
2645
|
/** List of draft posts. */
|
|
@@ -2598,7 +2676,7 @@ export interface QueryDraftPostsRequest {
|
|
|
2598
2676
|
* only the draft post's base fields are returned.
|
|
2599
2677
|
* @maxSize 10
|
|
2600
2678
|
*/
|
|
2601
|
-
fieldsets?:
|
|
2679
|
+
fieldsets?: FieldWithLiterals[];
|
|
2602
2680
|
/** Query options. */
|
|
2603
2681
|
query?: PlatformQuery;
|
|
2604
2682
|
}
|
|
@@ -2609,12 +2687,14 @@ export interface Sorting {
|
|
|
2609
2687
|
*/
|
|
2610
2688
|
fieldName?: string;
|
|
2611
2689
|
/** Sort order. */
|
|
2612
|
-
order?:
|
|
2690
|
+
order?: SortOrderWithLiterals;
|
|
2613
2691
|
}
|
|
2614
2692
|
export declare enum SortOrder {
|
|
2615
2693
|
ASC = "ASC",
|
|
2616
2694
|
DESC = "DESC"
|
|
2617
2695
|
}
|
|
2696
|
+
/** @enumType */
|
|
2697
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
2618
2698
|
export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
|
2619
2699
|
/** Paging options to limit and skip the number of items. */
|
|
2620
2700
|
paging?: Paging;
|
|
@@ -2819,7 +2899,7 @@ export interface TranslateDraftRequest {
|
|
|
2819
2899
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
2820
2900
|
* @maxSize 10
|
|
2821
2901
|
*/
|
|
2822
|
-
fieldsets?:
|
|
2902
|
+
fieldsets?: FieldWithLiterals[];
|
|
2823
2903
|
}
|
|
2824
2904
|
export interface TranslateDraftResponse {
|
|
2825
2905
|
/** Draft post. */
|
|
@@ -2869,7 +2949,7 @@ export interface UpdateDraftPostLanguageRequest {
|
|
|
2869
2949
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
2870
2950
|
* @maxSize 10
|
|
2871
2951
|
*/
|
|
2872
|
-
fieldsets?:
|
|
2952
|
+
fieldsets?: FieldWithLiterals[];
|
|
2873
2953
|
}
|
|
2874
2954
|
export interface UpdateDraftPostLanguageResponse {
|
|
2875
2955
|
/** Draft post */
|
|
@@ -2895,7 +2975,7 @@ export interface BulkUpdateDraftPostLanguageRequest {
|
|
|
2895
2975
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
2896
2976
|
* @maxSize 10
|
|
2897
2977
|
*/
|
|
2898
|
-
fieldsets?:
|
|
2978
|
+
fieldsets?: FieldWithLiterals[];
|
|
2899
2979
|
}
|
|
2900
2980
|
export interface BulkUpdateDraftPostLanguageResponse {
|
|
2901
2981
|
/** Bulk action results */
|
|
@@ -2974,7 +3054,7 @@ export interface RevertToUnpublishedRequest {
|
|
|
2974
3054
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
2975
3055
|
* @maxSize 10
|
|
2976
3056
|
*/
|
|
2977
|
-
fieldsets?:
|
|
3057
|
+
fieldsets?: FieldWithLiterals[];
|
|
2978
3058
|
}
|
|
2979
3059
|
export interface RevertToUnpublishedResponse {
|
|
2980
3060
|
/** Updated post draft. */
|
|
@@ -2992,7 +3072,7 @@ export interface RejectDraftPostRequest {
|
|
|
2992
3072
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
2993
3073
|
* @maxSize 10
|
|
2994
3074
|
*/
|
|
2995
|
-
fieldsets?:
|
|
3075
|
+
fieldsets?: FieldWithLiterals[];
|
|
2996
3076
|
}
|
|
2997
3077
|
export interface RejectDraftPostResponse {
|
|
2998
3078
|
/** Draft post. */
|
|
@@ -3015,7 +3095,7 @@ export interface ApproveDraftPostRequest {
|
|
|
3015
3095
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3016
3096
|
* @maxSize 10
|
|
3017
3097
|
*/
|
|
3018
|
-
fieldsets?:
|
|
3098
|
+
fieldsets?: FieldWithLiterals[];
|
|
3019
3099
|
}
|
|
3020
3100
|
export interface ApproveDraftPostResponse {
|
|
3021
3101
|
/** Updated post draft. */
|
|
@@ -3033,7 +3113,7 @@ export interface MarkPostAsInModerationRequest {
|
|
|
3033
3113
|
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3034
3114
|
* @maxSize 10
|
|
3035
3115
|
*/
|
|
3036
|
-
fieldsets?:
|
|
3116
|
+
fieldsets?: FieldWithLiterals[];
|
|
3037
3117
|
}
|
|
3038
3118
|
export interface MarkPostAsInModerationResponse {
|
|
3039
3119
|
/** Updated post draft. */
|