@wix/auto_sdk_blog_draft-posts 1.0.90 → 1.0.92
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 +18 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +58 -5
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +58 -5
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +17 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +58 -5
- package/build/es/index.typings.mjs +17 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +58 -5
- package/build/es/meta.mjs +17 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +379 -5
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +414 -5
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +17 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +379 -5
- package/build/internal/es/index.typings.mjs +17 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +414 -5
- package/build/internal/es/meta.mjs +17 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -82,6 +82,25 @@ interface DraftPost {
|
|
|
82
82
|
* @format LANGUAGE_TAG
|
|
83
83
|
*/
|
|
84
84
|
language?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Reserved for internal use.
|
|
87
|
+
* @internal
|
|
88
|
+
* @readonly
|
|
89
|
+
*/
|
|
90
|
+
changeOrigin?: OriginWithLiterals;
|
|
91
|
+
/**
|
|
92
|
+
* Reserved for internal use.
|
|
93
|
+
* @internal
|
|
94
|
+
* @readonly
|
|
95
|
+
* @maxLength 24
|
|
96
|
+
*/
|
|
97
|
+
contentId?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Reserved for internal use.
|
|
100
|
+
* @internal
|
|
101
|
+
* @format GUID
|
|
102
|
+
*/
|
|
103
|
+
editingSessionId?: string | null;
|
|
85
104
|
/**
|
|
86
105
|
* Draft Post rich content.
|
|
87
106
|
*
|
|
@@ -97,6 +116,13 @@ interface DraftPost {
|
|
|
97
116
|
status?: StatusWithLiterals;
|
|
98
117
|
/** Details of the draft post in review. Only relevant to posts submitted by guest writers. */
|
|
99
118
|
moderationDetails?: ModerationDetails;
|
|
119
|
+
/**
|
|
120
|
+
* Reserved for internal use.
|
|
121
|
+
* @internal
|
|
122
|
+
* @readonly
|
|
123
|
+
* @format GUID
|
|
124
|
+
*/
|
|
125
|
+
mostRecentContributorId?: string | null;
|
|
100
126
|
/**
|
|
101
127
|
* Indicates if there are changes made to the draft post that have not yet been published.
|
|
102
128
|
* @readonly
|
|
@@ -112,10 +138,23 @@ interface DraftPost {
|
|
|
112
138
|
* @readonly
|
|
113
139
|
*/
|
|
114
140
|
scheduledPublishDate?: Date | null;
|
|
141
|
+
/**
|
|
142
|
+
* Reserved for internal use.
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
content?: Record<string, any> | null;
|
|
115
146
|
/** Date the post was first published. */
|
|
116
147
|
firstPublishedDate?: Date | null;
|
|
117
148
|
/** SEO data. */
|
|
118
149
|
seoData?: SeoSchema;
|
|
150
|
+
/**
|
|
151
|
+
* Reserved for internal use.
|
|
152
|
+
* @internal
|
|
153
|
+
* @readonly
|
|
154
|
+
* @maxSize 5000
|
|
155
|
+
* @maxLength 100
|
|
156
|
+
*/
|
|
157
|
+
slugs?: string[];
|
|
119
158
|
/**
|
|
120
159
|
* Draft post URL preview. What the URL will look like once the post is published.
|
|
121
160
|
* @readonly
|
|
@@ -135,6 +174,32 @@ interface DraftPost {
|
|
|
135
174
|
media?: Media;
|
|
136
175
|
/** Number of paragraphs to display in a paid content preview for non-paying users. */
|
|
137
176
|
previewTextParagraph?: number | null;
|
|
177
|
+
/**
|
|
178
|
+
* List of the post's translated posts.
|
|
179
|
+
* @internal
|
|
180
|
+
* @readonly
|
|
181
|
+
* @maxSize 1000
|
|
182
|
+
*/
|
|
183
|
+
translations?: DraftPostTranslation[];
|
|
184
|
+
/**
|
|
185
|
+
* Reserved for internal use, not included in base response.
|
|
186
|
+
* @internal
|
|
187
|
+
* @format GUID
|
|
188
|
+
*/
|
|
189
|
+
originPostId?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* Reserved for internal use, not included in base response.
|
|
192
|
+
* @internal
|
|
193
|
+
* @format GUID
|
|
194
|
+
*/
|
|
195
|
+
originPostInstanceId?: string | null;
|
|
196
|
+
/**
|
|
197
|
+
* Reserved for internal use.
|
|
198
|
+
* @internal
|
|
199
|
+
* @readonly
|
|
200
|
+
* @maxLength 24
|
|
201
|
+
*/
|
|
202
|
+
internalId?: string | null;
|
|
138
203
|
}
|
|
139
204
|
interface FocalPoint {
|
|
140
205
|
/** X-coordinate of the focal point. */
|
|
@@ -726,17 +791,27 @@ interface Rel {
|
|
|
726
791
|
interface Animation {
|
|
727
792
|
/** Animation kind. */
|
|
728
793
|
type?: AnimationTypeWithLiterals;
|
|
729
|
-
/** Entrance animation, played once when the node first enters the viewport. */
|
|
794
|
+
/** Entrance animation, played once when the node first enters the viewport (VIEW). */
|
|
730
795
|
entrance?: EntranceAnimation;
|
|
731
|
-
/** Looping animation, repeated indefinitely while the node is on the page. When combined with entrance, the loop starts after the entrance finishes. */
|
|
796
|
+
/** Looping animation, repeated indefinitely while the node is on the page. When combined with entrance, the loop starts after the entrance finishes (VIEW). */
|
|
732
797
|
loop?: LoopAnimation;
|
|
798
|
+
/**
|
|
799
|
+
* POINTER carries its fields directly on the union member in the JTD wall, hence
|
|
800
|
+
* flat fields here (ts-proto camelCase must equal the JTD property names). A future
|
|
801
|
+
* SCROLL variant will contend for the `effect` JSON name — resolve when it lands.
|
|
802
|
+
*/
|
|
803
|
+
effect?: PointerEffect;
|
|
804
|
+
/** How quickly the node settles toward the pointer, in milliseconds (POINTER). */
|
|
805
|
+
transitionDuration?: number | null;
|
|
733
806
|
}
|
|
734
807
|
declare enum AnimationType {
|
|
735
808
|
/** Animations that play while the node is in view. */
|
|
736
|
-
VIEW = "VIEW"
|
|
809
|
+
VIEW = "VIEW",
|
|
810
|
+
/** Animations driven by the visitor's mouse position. */
|
|
811
|
+
POINTER = "POINTER"
|
|
737
812
|
}
|
|
738
813
|
/** @enumType */
|
|
739
|
-
type AnimationTypeWithLiterals = AnimationType | 'VIEW';
|
|
814
|
+
type AnimationTypeWithLiterals = AnimationType | 'VIEW' | 'POINTER';
|
|
740
815
|
interface EntranceAnimation {
|
|
741
816
|
/** The entrance effect to play. */
|
|
742
817
|
effect?: EntranceEffect;
|
|
@@ -856,6 +931,49 @@ declare enum LoopEffectType {
|
|
|
856
931
|
}
|
|
857
932
|
/** @enumType */
|
|
858
933
|
type LoopEffectTypeWithLiterals = LoopEffectType | 'BOUNCE' | 'BREATHE' | 'CROSS' | 'FLASH' | 'FLIP' | 'FOLD' | 'JELLO' | 'POKE' | 'PULSE' | 'RUBBER' | 'SPIN' | 'SWING' | 'WIGGLE';
|
|
934
|
+
interface PointerEffect {
|
|
935
|
+
/** The mouse effect type. */
|
|
936
|
+
type?: PointerEffectTypeWithLiterals;
|
|
937
|
+
/** Reacts away from the pointer instead of toward it. */
|
|
938
|
+
inverted?: boolean | null;
|
|
939
|
+
/**
|
|
940
|
+
* One field, two value spaces (the effect type says which): the axis the movement is constrained to — HORIZONTAL, VERTICAL, or BOTH (AIRY, SCALE, SKEW, TRACK, TRACK_3D) — or the edge/center axis the node swivels around — TOP, BOTTOM, LEFT, RIGHT, CENTER_HORIZONTAL, or CENTER_VERTICAL (SWIVEL). Only the effects that expose one accept it.
|
|
941
|
+
* @maxLength 20
|
|
942
|
+
*/
|
|
943
|
+
axis?: string | null;
|
|
944
|
+
/**
|
|
945
|
+
* Whether the node grows or shrinks as the pointer nears: UP or DOWN (SCALE).
|
|
946
|
+
* @maxLength 8
|
|
947
|
+
*/
|
|
948
|
+
direction?: string | null;
|
|
949
|
+
/**
|
|
950
|
+
* Motion style: GENTLE, MODERATE, or INTENSE.
|
|
951
|
+
* @maxLength 100
|
|
952
|
+
*/
|
|
953
|
+
easing?: string | null;
|
|
954
|
+
}
|
|
955
|
+
declare enum PointerEffectType {
|
|
956
|
+
/** Drifts loosely after the pointer with a light rotation. */
|
|
957
|
+
AIRY = "AIRY",
|
|
958
|
+
/** Squashes and stretches toward the pointer. */
|
|
959
|
+
BLOB = "BLOB",
|
|
960
|
+
/** Shifts after the pointer while blurring. */
|
|
961
|
+
BLUR = "BLUR",
|
|
962
|
+
/** Scales as the pointer approaches. */
|
|
963
|
+
SCALE = "SCALE",
|
|
964
|
+
/** Skews toward the pointer. */
|
|
965
|
+
SKEW = "SKEW",
|
|
966
|
+
/** Rotates around a pivot edge or axis, following the pointer. */
|
|
967
|
+
SWIVEL = "SWIVEL",
|
|
968
|
+
/** Tilts in 3D perspective toward the pointer. */
|
|
969
|
+
TILT_3D = "TILT_3D",
|
|
970
|
+
/** Follows the pointer's position. */
|
|
971
|
+
TRACK = "TRACK",
|
|
972
|
+
/** Follows the pointer with a 3D depth motion. */
|
|
973
|
+
TRACK_3D = "TRACK_3D"
|
|
974
|
+
}
|
|
975
|
+
/** @enumType */
|
|
976
|
+
type PointerEffectTypeWithLiterals = PointerEffectType | 'AIRY' | 'BLOB' | 'BLUR' | 'SCALE' | 'SKEW' | 'SWIVEL' | 'TILT_3D' | 'TRACK' | 'TRACK_3D';
|
|
859
977
|
interface CodeBlockData {
|
|
860
978
|
/** Styling for the code block's text. */
|
|
861
979
|
textStyle?: TextStyle;
|
|
@@ -2824,6 +2942,13 @@ declare enum Status {
|
|
|
2824
2942
|
SCHEDULED = "SCHEDULED",
|
|
2825
2943
|
/** Status indicating the draft post is deleted. */
|
|
2826
2944
|
DELETED = "DELETED",
|
|
2945
|
+
/**
|
|
2946
|
+
* Deprecated. Use `IN_REVIEW` instead. Status indicating the draft post is in review.
|
|
2947
|
+
* Target removal date 2024-06-30
|
|
2948
|
+
* Reserved for internal use.
|
|
2949
|
+
* @internal
|
|
2950
|
+
*/
|
|
2951
|
+
IN_MODERATION = "IN_MODERATION",
|
|
2827
2952
|
/** Status indicating the draft post is in review. */
|
|
2828
2953
|
IN_REVIEW = "IN_REVIEW"
|
|
2829
2954
|
}
|
|
@@ -2948,8 +3073,68 @@ interface VideoResolution {
|
|
|
2948
3073
|
height?: number;
|
|
2949
3074
|
/** Video width. */
|
|
2950
3075
|
width?: number;
|
|
3076
|
+
/**
|
|
3077
|
+
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
3078
|
+
* @internal
|
|
3079
|
+
* @deprecated
|
|
3080
|
+
*/
|
|
3081
|
+
poster?: string;
|
|
2951
3082
|
/** Video format for example, mp4, hls. */
|
|
2952
3083
|
format?: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
3086
|
+
* @internal
|
|
3087
|
+
* @deprecated
|
|
3088
|
+
*/
|
|
3089
|
+
urlExpirationDate?: Date | null;
|
|
3090
|
+
/**
|
|
3091
|
+
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
3092
|
+
* @internal
|
|
3093
|
+
* @format DECIMAL_VALUE
|
|
3094
|
+
* @deprecated
|
|
3095
|
+
*/
|
|
3096
|
+
sizeInBytes?: string | null;
|
|
3097
|
+
/**
|
|
3098
|
+
* Video quality. For example: 480p, 720p.
|
|
3099
|
+
* @internal
|
|
3100
|
+
*/
|
|
3101
|
+
quality?: string | null;
|
|
3102
|
+
/**
|
|
3103
|
+
* Video filename.
|
|
3104
|
+
* @internal
|
|
3105
|
+
*/
|
|
3106
|
+
filename?: string | null;
|
|
3107
|
+
/**
|
|
3108
|
+
* Video duration in seconds.
|
|
3109
|
+
* @internal
|
|
3110
|
+
* @readonly
|
|
3111
|
+
* @deprecated Video duration in seconds.
|
|
3112
|
+
* @replacedBy duration_in_milliseconds
|
|
3113
|
+
* @targetRemovalDate 2024-08-01
|
|
3114
|
+
*/
|
|
3115
|
+
durationInSeconds?: number | null;
|
|
3116
|
+
/**
|
|
3117
|
+
* Video duration in milliseconds.
|
|
3118
|
+
* @internal
|
|
3119
|
+
* @readonly
|
|
3120
|
+
*/
|
|
3121
|
+
durationInMilliseconds?: number | null;
|
|
3122
|
+
/**
|
|
3123
|
+
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
3124
|
+
* In order to access private assets, make a request to:
|
|
3125
|
+
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
3126
|
+
* @internal
|
|
3127
|
+
* @readonly
|
|
3128
|
+
*/
|
|
3129
|
+
private?: boolean | null;
|
|
3130
|
+
/**
|
|
3131
|
+
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
3132
|
+
* Can be used to request a download for the specific video resolution.
|
|
3133
|
+
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
3134
|
+
* @internal
|
|
3135
|
+
* @readonly
|
|
3136
|
+
*/
|
|
3137
|
+
assetKey?: string | null;
|
|
2953
3138
|
}
|
|
2954
3139
|
interface EmbedMedia {
|
|
2955
3140
|
/** Thumbnail details. */
|
|
@@ -3053,6 +3238,11 @@ interface CreateDraftPostRequest {
|
|
|
3053
3238
|
* Default: `false`
|
|
3054
3239
|
*/
|
|
3055
3240
|
publish?: boolean;
|
|
3241
|
+
/**
|
|
3242
|
+
* Save type.
|
|
3243
|
+
* @internal
|
|
3244
|
+
*/
|
|
3245
|
+
saveType?: TypeWithLiterals;
|
|
3056
3246
|
/**
|
|
3057
3247
|
* List of additional draft post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
3058
3248
|
* the response in addition to the draft post's base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
@@ -3081,10 +3271,21 @@ declare enum Field {
|
|
|
3081
3271
|
UNKNOWN = "UNKNOWN",
|
|
3082
3272
|
/** Includes draft post preview URL. */
|
|
3083
3273
|
URL = "URL",
|
|
3274
|
+
/**
|
|
3275
|
+
* Includes internal id field.
|
|
3276
|
+
* Reserved for internal use.
|
|
3277
|
+
* @internal
|
|
3278
|
+
*/
|
|
3279
|
+
INTERNAL_ID = "INTERNAL_ID",
|
|
3084
3280
|
/** Includes content field. */
|
|
3085
3281
|
CONTENT = "CONTENT",
|
|
3086
3282
|
/** Includes rich content field. */
|
|
3087
3283
|
RICH_CONTENT = "RICH_CONTENT",
|
|
3284
|
+
/**
|
|
3285
|
+
* Includes draft post translations when present.
|
|
3286
|
+
* @internal
|
|
3287
|
+
*/
|
|
3288
|
+
TRANSLATIONS = "TRANSLATIONS",
|
|
3088
3289
|
/** If the user has not set excerpt, returns the one autogenerated from content. */
|
|
3089
3290
|
GENERATED_EXCERPT = "GENERATED_EXCERPT"
|
|
3090
3291
|
}
|
|
@@ -3103,6 +3304,11 @@ interface BulkCreateDraftPostsRequest {
|
|
|
3103
3304
|
draftPosts: DraftPost[];
|
|
3104
3305
|
/** Whether the draft post should be published after creation. */
|
|
3105
3306
|
publish?: boolean;
|
|
3307
|
+
/**
|
|
3308
|
+
* Save type.
|
|
3309
|
+
* @internal
|
|
3310
|
+
*/
|
|
3311
|
+
saveType?: TypeWithLiterals;
|
|
3106
3312
|
/** Whether to return the full created draft post entities in the response. */
|
|
3107
3313
|
returnFullEntity?: boolean;
|
|
3108
3314
|
/**
|
|
@@ -3166,6 +3372,11 @@ interface BulkUpdateDraftPostsRequest {
|
|
|
3166
3372
|
action?: ActionWithLiterals;
|
|
3167
3373
|
/** Posts' scheduled publish date when `action` is set to `UPDATE_SCHEDULE`. */
|
|
3168
3374
|
scheduledPublishDate?: Date | null;
|
|
3375
|
+
/**
|
|
3376
|
+
* Save type.
|
|
3377
|
+
* @internal
|
|
3378
|
+
*/
|
|
3379
|
+
saveType?: TypeWithLiterals;
|
|
3169
3380
|
/** Whether to return the full updated draft post entities in the response. */
|
|
3170
3381
|
returnFullEntity?: boolean;
|
|
3171
3382
|
/**
|
|
@@ -3207,6 +3418,18 @@ interface BulkUpdateDraftPostsResponse {
|
|
|
3207
3418
|
bulkActionMetadata?: BulkActionMetadata;
|
|
3208
3419
|
}
|
|
3209
3420
|
interface DraftPostOwnerChanged {
|
|
3421
|
+
/**
|
|
3422
|
+
* Member ID of the draft post's owner before the change.
|
|
3423
|
+
* @internal
|
|
3424
|
+
* @format GUID
|
|
3425
|
+
*/
|
|
3426
|
+
oldMemberId?: string;
|
|
3427
|
+
/**
|
|
3428
|
+
* Member ID of the draft post's owner after the change.
|
|
3429
|
+
* @internal
|
|
3430
|
+
* @format GUID
|
|
3431
|
+
*/
|
|
3432
|
+
newMemberId?: string;
|
|
3210
3433
|
}
|
|
3211
3434
|
interface ListDeletedDraftPostsRequest {
|
|
3212
3435
|
/**
|
|
@@ -3287,6 +3510,13 @@ interface PagingMetadataV2 {
|
|
|
3287
3510
|
tooManyToCount?: boolean | null;
|
|
3288
3511
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
3289
3512
|
cursors?: Cursors;
|
|
3513
|
+
/**
|
|
3514
|
+
* Indicates if there are more results after the current page.
|
|
3515
|
+
* If `true`, another page of results can be retrieved.
|
|
3516
|
+
* If `false`, this is the last page.
|
|
3517
|
+
* @internal
|
|
3518
|
+
*/
|
|
3519
|
+
hasNext?: boolean | null;
|
|
3290
3520
|
}
|
|
3291
3521
|
interface Cursors {
|
|
3292
3522
|
/**
|
|
@@ -3343,6 +3573,16 @@ interface UpdateDraftPostContentResponse {
|
|
|
3343
3573
|
interface UpdateDraftPostRequest {
|
|
3344
3574
|
/** Draft post to update. */
|
|
3345
3575
|
draftPost: DraftPost;
|
|
3576
|
+
/**
|
|
3577
|
+
* Field mask of fields to update.
|
|
3578
|
+
* @internal
|
|
3579
|
+
*/
|
|
3580
|
+
fieldMask?: string[];
|
|
3581
|
+
/**
|
|
3582
|
+
* Save type.
|
|
3583
|
+
* @internal
|
|
3584
|
+
*/
|
|
3585
|
+
saveType?: TypeWithLiterals;
|
|
3346
3586
|
/**
|
|
3347
3587
|
* Action to perform on the post.
|
|
3348
3588
|
*
|
|
@@ -3523,6 +3763,20 @@ interface Sorting {
|
|
|
3523
3763
|
fieldName?: string;
|
|
3524
3764
|
/** Sort order. */
|
|
3525
3765
|
order?: SortOrderWithLiterals;
|
|
3766
|
+
/**
|
|
3767
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
3768
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
3769
|
+
*
|
|
3770
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
3771
|
+
*
|
|
3772
|
+
* Example:
|
|
3773
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
3774
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
3775
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
3776
|
+
* @internal
|
|
3777
|
+
* @maxSize 10
|
|
3778
|
+
*/
|
|
3779
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
3526
3780
|
/**
|
|
3527
3781
|
* Origin point for geo-distance sorting on a GEO field
|
|
3528
3782
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -3832,6 +4086,11 @@ interface TranslateDraftRequest {
|
|
|
3832
4086
|
* @maxSize 10
|
|
3833
4087
|
*/
|
|
3834
4088
|
fieldsets?: FieldWithLiterals[];
|
|
4089
|
+
/**
|
|
4090
|
+
* Performs automatic translation of the title and the content of the draft post to the target language.
|
|
4091
|
+
* @internal
|
|
4092
|
+
*/
|
|
4093
|
+
useAutoTranslation?: boolean;
|
|
3835
4094
|
}
|
|
3836
4095
|
interface TranslateDraftResponse {
|
|
3837
4096
|
/** Draft post. */
|
|
@@ -3927,6 +4186,15 @@ interface RevertToUnpublishedRequest {
|
|
|
3927
4186
|
* @format GUID
|
|
3928
4187
|
*/
|
|
3929
4188
|
postId?: string;
|
|
4189
|
+
/**
|
|
4190
|
+
* List of draft post fields to be included in the response.
|
|
4191
|
+
* @internal
|
|
4192
|
+
* @maxSize 10
|
|
4193
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4194
|
+
* @replacedBy fieldsets
|
|
4195
|
+
* @targetRemovalDate 2024-06-30
|
|
4196
|
+
*/
|
|
4197
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
3930
4198
|
/**
|
|
3931
4199
|
* List of draft post fields to be included if entities are present in the response.
|
|
3932
4200
|
* Base fieldset, which is default, will return all core draft post properties.
|
|
@@ -3945,6 +4213,15 @@ interface RejectDraftPostRequest {
|
|
|
3945
4213
|
* @format GUID
|
|
3946
4214
|
*/
|
|
3947
4215
|
postId?: string;
|
|
4216
|
+
/**
|
|
4217
|
+
* List of draft post fields to be included in the response.
|
|
4218
|
+
* @internal
|
|
4219
|
+
* @maxSize 10
|
|
4220
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4221
|
+
* @replacedBy fieldsets
|
|
4222
|
+
* @targetRemovalDate 2024-06-30
|
|
4223
|
+
*/
|
|
4224
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
3948
4225
|
/**
|
|
3949
4226
|
* List of draft post fields to be included if entities are present in the response.
|
|
3950
4227
|
* Base fieldset, which is default, will return all core draft post properties.
|
|
@@ -3968,6 +4245,15 @@ interface ApproveDraftPostRequest {
|
|
|
3968
4245
|
* @maxLength 24
|
|
3969
4246
|
*/
|
|
3970
4247
|
scheduledPublishDate?: string | null;
|
|
4248
|
+
/**
|
|
4249
|
+
* List of draft post fields to be included in the response.
|
|
4250
|
+
* @internal
|
|
4251
|
+
* @maxSize 10
|
|
4252
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4253
|
+
* @replacedBy fieldsets
|
|
4254
|
+
* @targetRemovalDate 2024-06-30
|
|
4255
|
+
*/
|
|
4256
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
3971
4257
|
/**
|
|
3972
4258
|
* List of draft post fields to be included if entities are present in the response.
|
|
3973
4259
|
* Base fieldset, which is default, will return all core draft post properties.
|
|
@@ -3986,6 +4272,15 @@ interface MarkPostAsInModerationRequest {
|
|
|
3986
4272
|
* @maxLength 38
|
|
3987
4273
|
*/
|
|
3988
4274
|
postId?: string;
|
|
4275
|
+
/**
|
|
4276
|
+
* List of draft post fields to be included in the response.
|
|
4277
|
+
* @internal
|
|
4278
|
+
* @maxSize 10
|
|
4279
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4280
|
+
* @replacedBy fieldsets
|
|
4281
|
+
* @targetRemovalDate 2024-06-30
|
|
4282
|
+
*/
|
|
4283
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
3989
4284
|
/**
|
|
3990
4285
|
* List of draft post fields to be included if entities are present in the response.
|
|
3991
4286
|
* Base fieldset, which is default, will return all core draft post properties.
|
|
@@ -4380,6 +4675,25 @@ interface UpdateDraftPost {
|
|
|
4380
4675
|
* @format LANGUAGE_TAG
|
|
4381
4676
|
*/
|
|
4382
4677
|
language?: string | null;
|
|
4678
|
+
/**
|
|
4679
|
+
* Reserved for internal use.
|
|
4680
|
+
* @internal
|
|
4681
|
+
* @readonly
|
|
4682
|
+
*/
|
|
4683
|
+
changeOrigin?: OriginWithLiterals;
|
|
4684
|
+
/**
|
|
4685
|
+
* Reserved for internal use.
|
|
4686
|
+
* @internal
|
|
4687
|
+
* @readonly
|
|
4688
|
+
* @maxLength 24
|
|
4689
|
+
*/
|
|
4690
|
+
contentId?: string | null;
|
|
4691
|
+
/**
|
|
4692
|
+
* Reserved for internal use.
|
|
4693
|
+
* @internal
|
|
4694
|
+
* @format GUID
|
|
4695
|
+
*/
|
|
4696
|
+
editingSessionId?: string | null;
|
|
4383
4697
|
/**
|
|
4384
4698
|
* Draft Post rich content.
|
|
4385
4699
|
*
|
|
@@ -4395,6 +4709,13 @@ interface UpdateDraftPost {
|
|
|
4395
4709
|
status?: StatusWithLiterals;
|
|
4396
4710
|
/** Details of the draft post in review. Only relevant to posts submitted by guest writers. */
|
|
4397
4711
|
moderationDetails?: ModerationDetails;
|
|
4712
|
+
/**
|
|
4713
|
+
* Reserved for internal use.
|
|
4714
|
+
* @internal
|
|
4715
|
+
* @readonly
|
|
4716
|
+
* @format GUID
|
|
4717
|
+
*/
|
|
4718
|
+
mostRecentContributorId?: string | null;
|
|
4398
4719
|
/**
|
|
4399
4720
|
* Indicates if there are changes made to the draft post that have not yet been published.
|
|
4400
4721
|
* @readonly
|
|
@@ -4410,10 +4731,23 @@ interface UpdateDraftPost {
|
|
|
4410
4731
|
* @readonly
|
|
4411
4732
|
*/
|
|
4412
4733
|
scheduledPublishDate?: Date | null;
|
|
4734
|
+
/**
|
|
4735
|
+
* Reserved for internal use.
|
|
4736
|
+
* @internal
|
|
4737
|
+
*/
|
|
4738
|
+
content?: Record<string, any> | null;
|
|
4413
4739
|
/** Date the post was first published. */
|
|
4414
4740
|
firstPublishedDate?: Date | null;
|
|
4415
4741
|
/** SEO data. */
|
|
4416
4742
|
seoData?: SeoSchema;
|
|
4743
|
+
/**
|
|
4744
|
+
* Reserved for internal use.
|
|
4745
|
+
* @internal
|
|
4746
|
+
* @readonly
|
|
4747
|
+
* @maxSize 5000
|
|
4748
|
+
* @maxLength 100
|
|
4749
|
+
*/
|
|
4750
|
+
slugs?: string[];
|
|
4417
4751
|
/**
|
|
4418
4752
|
* Draft post URL preview. What the URL will look like once the post is published.
|
|
4419
4753
|
* @readonly
|
|
@@ -4433,6 +4767,32 @@ interface UpdateDraftPost {
|
|
|
4433
4767
|
media?: Media;
|
|
4434
4768
|
/** Number of paragraphs to display in a paid content preview for non-paying users. */
|
|
4435
4769
|
previewTextParagraph?: number | null;
|
|
4770
|
+
/**
|
|
4771
|
+
* List of the post's translated posts.
|
|
4772
|
+
* @internal
|
|
4773
|
+
* @readonly
|
|
4774
|
+
* @maxSize 1000
|
|
4775
|
+
*/
|
|
4776
|
+
translations?: DraftPostTranslation[];
|
|
4777
|
+
/**
|
|
4778
|
+
* Reserved for internal use, not included in base response.
|
|
4779
|
+
* @internal
|
|
4780
|
+
* @format GUID
|
|
4781
|
+
*/
|
|
4782
|
+
originPostId?: string | null;
|
|
4783
|
+
/**
|
|
4784
|
+
* Reserved for internal use, not included in base response.
|
|
4785
|
+
* @internal
|
|
4786
|
+
* @format GUID
|
|
4787
|
+
*/
|
|
4788
|
+
originPostInstanceId?: string | null;
|
|
4789
|
+
/**
|
|
4790
|
+
* Reserved for internal use.
|
|
4791
|
+
* @internal
|
|
4792
|
+
* @readonly
|
|
4793
|
+
* @maxLength 24
|
|
4794
|
+
*/
|
|
4795
|
+
internalId?: string | null;
|
|
4436
4796
|
}
|
|
4437
4797
|
interface UpdateDraftPostOptions {
|
|
4438
4798
|
/**
|
|
@@ -4770,6 +5130,20 @@ type DraftPostQuery = {
|
|
|
4770
5130
|
*/
|
|
4771
5131
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
4772
5132
|
/**
|
|
5133
|
+
When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
5134
|
+
a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
5135
|
+
|
|
5136
|
+
If multiple filters are provided, they are combined with AND operator.
|
|
5137
|
+
|
|
5138
|
+
Example:
|
|
5139
|
+
Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
5140
|
+
and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
5141
|
+
{ fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
5142
|
+
@internal: undefined,
|
|
5143
|
+
@maxSize: 10
|
|
5144
|
+
*/
|
|
5145
|
+
selectItemsBy?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['selectItemsBy'] | null;
|
|
5146
|
+
/**
|
|
4773
5147
|
Origin point for geo-distance sorting on a GEO field
|
|
4774
5148
|
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
4775
5149
|
*/
|
|
@@ -4798,4 +5172,4 @@ declare const utils: {
|
|
|
4798
5172
|
*/
|
|
4799
5173
|
declare function publishDraftPost(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`, 2>>;
|
|
4800
5174
|
|
|
4801
|
-
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, 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 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 };
|
|
5175
|
+
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, 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 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 };
|
|
@@ -64,6 +64,7 @@ __export(index_typings_exports, {
|
|
|
64
64
|
Origin: () => Origin,
|
|
65
65
|
Placement: () => Placement,
|
|
66
66
|
PluginContainerDataAlignment: () => PluginContainerDataAlignment,
|
|
67
|
+
PointerEffectType: () => PointerEffectType,
|
|
67
68
|
PollDesignBackgroundType: () => PollDesignBackgroundType,
|
|
68
69
|
PollLayoutDirection: () => PollLayoutDirection,
|
|
69
70
|
PollLayoutType: () => PollLayoutType,
|
|
@@ -3328,6 +3329,7 @@ var Target = /* @__PURE__ */ ((Target2) => {
|
|
|
3328
3329
|
})(Target || {});
|
|
3329
3330
|
var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
|
|
3330
3331
|
AnimationType2["VIEW"] = "VIEW";
|
|
3332
|
+
AnimationType2["POINTER"] = "POINTER";
|
|
3331
3333
|
return AnimationType2;
|
|
3332
3334
|
})(AnimationType || {});
|
|
3333
3335
|
var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
|
|
@@ -3367,6 +3369,18 @@ var LoopEffectType = /* @__PURE__ */ ((LoopEffectType2) => {
|
|
|
3367
3369
|
LoopEffectType2["WIGGLE"] = "WIGGLE";
|
|
3368
3370
|
return LoopEffectType2;
|
|
3369
3371
|
})(LoopEffectType || {});
|
|
3372
|
+
var PointerEffectType = /* @__PURE__ */ ((PointerEffectType2) => {
|
|
3373
|
+
PointerEffectType2["AIRY"] = "AIRY";
|
|
3374
|
+
PointerEffectType2["BLOB"] = "BLOB";
|
|
3375
|
+
PointerEffectType2["BLUR"] = "BLUR";
|
|
3376
|
+
PointerEffectType2["SCALE"] = "SCALE";
|
|
3377
|
+
PointerEffectType2["SKEW"] = "SKEW";
|
|
3378
|
+
PointerEffectType2["SWIVEL"] = "SWIVEL";
|
|
3379
|
+
PointerEffectType2["TILT_3D"] = "TILT_3D";
|
|
3380
|
+
PointerEffectType2["TRACK"] = "TRACK";
|
|
3381
|
+
PointerEffectType2["TRACK_3D"] = "TRACK_3D";
|
|
3382
|
+
return PointerEffectType2;
|
|
3383
|
+
})(PointerEffectType || {});
|
|
3370
3384
|
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
3371
3385
|
TextAlignment2["AUTO"] = "AUTO";
|
|
3372
3386
|
TextAlignment2["LEFT"] = "LEFT";
|
|
@@ -3716,6 +3730,7 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3716
3730
|
Status2["UNPUBLISHED"] = "UNPUBLISHED";
|
|
3717
3731
|
Status2["SCHEDULED"] = "SCHEDULED";
|
|
3718
3732
|
Status2["DELETED"] = "DELETED";
|
|
3733
|
+
Status2["IN_MODERATION"] = "IN_MODERATION";
|
|
3719
3734
|
Status2["IN_REVIEW"] = "IN_REVIEW";
|
|
3720
3735
|
return Status2;
|
|
3721
3736
|
})(Status || {});
|
|
@@ -3737,8 +3752,10 @@ var Type = /* @__PURE__ */ ((Type2) => {
|
|
|
3737
3752
|
var Field = /* @__PURE__ */ ((Field2) => {
|
|
3738
3753
|
Field2["UNKNOWN"] = "UNKNOWN";
|
|
3739
3754
|
Field2["URL"] = "URL";
|
|
3755
|
+
Field2["INTERNAL_ID"] = "INTERNAL_ID";
|
|
3740
3756
|
Field2["CONTENT"] = "CONTENT";
|
|
3741
3757
|
Field2["RICH_CONTENT"] = "RICH_CONTENT";
|
|
3758
|
+
Field2["TRANSLATIONS"] = "TRANSLATIONS";
|
|
3742
3759
|
Field2["GENERATED_EXCERPT"] = "GENERATED_EXCERPT";
|
|
3743
3760
|
return Field2;
|
|
3744
3761
|
})(Field || {});
|
|
@@ -4657,6 +4674,7 @@ async function publishDraftPost2(draftPostId) {
|
|
|
4657
4674
|
Origin,
|
|
4658
4675
|
Placement,
|
|
4659
4676
|
PluginContainerDataAlignment,
|
|
4677
|
+
PointerEffectType,
|
|
4660
4678
|
PollDesignBackgroundType,
|
|
4661
4679
|
PollLayoutDirection,
|
|
4662
4680
|
PollLayoutType,
|