@wix/auto_sdk_blog_draft-posts 1.0.13 → 1.0.15
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.context.d.ts +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.meta.d.ts +12 -12
- package/build/cjs/src/blog-v3-draft-draft-posts.meta.js.map +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.public.d.ts +13 -13
- package/build/cjs/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/cjs/src/blog-v3-draft-draft-posts.types.d.ts +0 -434
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +41 -409
- package/build/cjs/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.context.d.ts +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.meta.d.ts +12 -12
- package/build/es/src/blog-v3-draft-draft-posts.meta.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.public.d.ts +13 -13
- package/build/es/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/es/src/blog-v3-draft-draft-posts.types.d.ts +0 -434
- package/build/es/src/blog-v3-draft-draft-posts.universal.d.ts +41 -409
- package/build/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.d.ts +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.d.ts +12 -12
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.d.ts +13 -13
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.d.ts +0 -434
- package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.d.ts +41 -409
- 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.context.d.ts +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.meta.d.ts +12 -12
- package/build/internal/es/src/blog-v3-draft-draft-posts.meta.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.d.ts +13 -13
- package/build/internal/es/src/blog-v3-draft-draft-posts.public.js.map +1 -1
- package/build/internal/es/src/blog-v3-draft-draft-posts.types.d.ts +0 -434
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.d.ts +41 -409
- package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface DraftPost {
|
|
2
3
|
/**
|
|
3
4
|
* Draft post ID.
|
|
@@ -2977,404 +2978,6 @@ export interface MarkPostAsInModerationResponse {
|
|
|
2977
2978
|
/** Updated post draft. */
|
|
2978
2979
|
draftPost?: DraftPost;
|
|
2979
2980
|
}
|
|
2980
|
-
interface CoverMediaNonNullableFields {
|
|
2981
|
-
image: string;
|
|
2982
|
-
video: string;
|
|
2983
|
-
enabled: boolean;
|
|
2984
|
-
displayed: boolean;
|
|
2985
|
-
custom: boolean;
|
|
2986
|
-
}
|
|
2987
|
-
interface PluginContainerDataWidthNonNullableFields {
|
|
2988
|
-
size: WidthType;
|
|
2989
|
-
}
|
|
2990
|
-
interface PluginContainerDataNonNullableFields {
|
|
2991
|
-
width?: PluginContainerDataWidthNonNullableFields;
|
|
2992
|
-
alignment: PluginContainerDataAlignment;
|
|
2993
|
-
}
|
|
2994
|
-
interface LinkNonNullableFields {
|
|
2995
|
-
url: string;
|
|
2996
|
-
anchor: string;
|
|
2997
|
-
target: Target;
|
|
2998
|
-
}
|
|
2999
|
-
interface ButtonDataNonNullableFields {
|
|
3000
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3001
|
-
type: ButtonDataType;
|
|
3002
|
-
link?: LinkNonNullableFields;
|
|
3003
|
-
}
|
|
3004
|
-
interface TextStyleNonNullableFields {
|
|
3005
|
-
textAlignment: TextAlignment;
|
|
3006
|
-
}
|
|
3007
|
-
interface CodeBlockDataNonNullableFields {
|
|
3008
|
-
textStyle?: TextStyleNonNullableFields;
|
|
3009
|
-
}
|
|
3010
|
-
interface DividerDataNonNullableFields {
|
|
3011
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3012
|
-
lineStyle: LineStyle;
|
|
3013
|
-
width: Width;
|
|
3014
|
-
alignment: Alignment;
|
|
3015
|
-
}
|
|
3016
|
-
interface PDFSettingsNonNullableFields {
|
|
3017
|
-
viewMode: ViewMode;
|
|
3018
|
-
}
|
|
3019
|
-
interface FileDataNonNullableFields {
|
|
3020
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3021
|
-
pdfSettings?: PDFSettingsNonNullableFields;
|
|
3022
|
-
}
|
|
3023
|
-
interface ImageNonNullableFields {
|
|
3024
|
-
link?: LinkNonNullableFields;
|
|
3025
|
-
}
|
|
3026
|
-
interface ItemNonNullableFields {
|
|
3027
|
-
image?: ImageNonNullableFields;
|
|
3028
|
-
}
|
|
3029
|
-
interface LayoutNonNullableFields {
|
|
3030
|
-
type: LayoutType;
|
|
3031
|
-
orientation: Orientation;
|
|
3032
|
-
}
|
|
3033
|
-
interface ItemStyleNonNullableFields {
|
|
3034
|
-
crop: Crop;
|
|
3035
|
-
}
|
|
3036
|
-
interface ThumbnailsNonNullableFields {
|
|
3037
|
-
placement: ThumbnailsAlignment;
|
|
3038
|
-
}
|
|
3039
|
-
interface GalleryOptionsNonNullableFields {
|
|
3040
|
-
layout?: LayoutNonNullableFields;
|
|
3041
|
-
item?: ItemStyleNonNullableFields;
|
|
3042
|
-
thumbnails?: ThumbnailsNonNullableFields;
|
|
3043
|
-
}
|
|
3044
|
-
interface GalleryDataNonNullableFields {
|
|
3045
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3046
|
-
items: ItemNonNullableFields[];
|
|
3047
|
-
options?: GalleryOptionsNonNullableFields;
|
|
3048
|
-
}
|
|
3049
|
-
interface GIFDataNonNullableFields {
|
|
3050
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3051
|
-
height: number;
|
|
3052
|
-
width: number;
|
|
3053
|
-
gifType: GIFType;
|
|
3054
|
-
}
|
|
3055
|
-
interface HeadingDataNonNullableFields {
|
|
3056
|
-
level: number;
|
|
3057
|
-
textStyle?: TextStyleNonNullableFields;
|
|
3058
|
-
}
|
|
3059
|
-
interface HTMLDataNonNullableFields {
|
|
3060
|
-
url: string;
|
|
3061
|
-
html: string;
|
|
3062
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3063
|
-
source: Source;
|
|
3064
|
-
}
|
|
3065
|
-
interface ImageDataNonNullableFields {
|
|
3066
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3067
|
-
link?: LinkNonNullableFields;
|
|
3068
|
-
}
|
|
3069
|
-
interface LinkPreviewDataStylesNonNullableFields {
|
|
3070
|
-
thumbnailPosition: Position;
|
|
3071
|
-
}
|
|
3072
|
-
interface LinkPreviewDataNonNullableFields {
|
|
3073
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3074
|
-
link?: LinkNonNullableFields;
|
|
3075
|
-
styles?: LinkPreviewDataStylesNonNullableFields;
|
|
3076
|
-
}
|
|
3077
|
-
interface MapSettingsNonNullableFields {
|
|
3078
|
-
mapType: MapType;
|
|
3079
|
-
}
|
|
3080
|
-
interface MapDataNonNullableFields {
|
|
3081
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3082
|
-
mapSettings?: MapSettingsNonNullableFields;
|
|
3083
|
-
}
|
|
3084
|
-
interface ParagraphDataNonNullableFields {
|
|
3085
|
-
textStyle?: TextStyleNonNullableFields;
|
|
3086
|
-
}
|
|
3087
|
-
interface PermissionsNonNullableFields {
|
|
3088
|
-
view: ViewRole;
|
|
3089
|
-
vote: VoteRole;
|
|
3090
|
-
}
|
|
3091
|
-
interface PollSettingsNonNullableFields {
|
|
3092
|
-
permissions?: PermissionsNonNullableFields;
|
|
3093
|
-
}
|
|
3094
|
-
interface PollNonNullableFields {
|
|
3095
|
-
settings?: PollSettingsNonNullableFields;
|
|
3096
|
-
}
|
|
3097
|
-
interface PollLayoutNonNullableFields {
|
|
3098
|
-
type: PollLayoutType;
|
|
3099
|
-
direction: PollLayoutDirection;
|
|
3100
|
-
}
|
|
3101
|
-
interface PollDataLayoutNonNullableFields {
|
|
3102
|
-
poll?: PollLayoutNonNullableFields;
|
|
3103
|
-
}
|
|
3104
|
-
interface BackgroundNonNullableFields {
|
|
3105
|
-
type: BackgroundType;
|
|
3106
|
-
}
|
|
3107
|
-
interface PollDesignNonNullableFields {
|
|
3108
|
-
background?: BackgroundNonNullableFields;
|
|
3109
|
-
}
|
|
3110
|
-
interface DesignNonNullableFields {
|
|
3111
|
-
poll?: PollDesignNonNullableFields;
|
|
3112
|
-
}
|
|
3113
|
-
interface PollDataNonNullableFields {
|
|
3114
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3115
|
-
poll?: PollNonNullableFields;
|
|
3116
|
-
layout?: PollDataLayoutNonNullableFields;
|
|
3117
|
-
design?: DesignNonNullableFields;
|
|
3118
|
-
}
|
|
3119
|
-
interface AnchorDataNonNullableFields {
|
|
3120
|
-
anchor: string;
|
|
3121
|
-
}
|
|
3122
|
-
interface LinkDataNonNullableFields {
|
|
3123
|
-
link?: LinkNonNullableFields;
|
|
3124
|
-
}
|
|
3125
|
-
interface MentionDataNonNullableFields {
|
|
3126
|
-
name: string;
|
|
3127
|
-
slug: string;
|
|
3128
|
-
}
|
|
3129
|
-
interface FontSizeDataNonNullableFields {
|
|
3130
|
-
unit: FontType;
|
|
3131
|
-
}
|
|
3132
|
-
interface DecorationNonNullableFields {
|
|
3133
|
-
anchorData?: AnchorDataNonNullableFields;
|
|
3134
|
-
linkData?: LinkDataNonNullableFields;
|
|
3135
|
-
mentionData?: MentionDataNonNullableFields;
|
|
3136
|
-
fontSizeData?: FontSizeDataNonNullableFields;
|
|
3137
|
-
type: DecorationType;
|
|
3138
|
-
}
|
|
3139
|
-
interface TextDataNonNullableFields {
|
|
3140
|
-
text: string;
|
|
3141
|
-
decorations: DecorationNonNullableFields[];
|
|
3142
|
-
}
|
|
3143
|
-
interface AppEmbedDataNonNullableFields {
|
|
3144
|
-
type: AppType;
|
|
3145
|
-
}
|
|
3146
|
-
interface VideoDataNonNullableFields {
|
|
3147
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3148
|
-
}
|
|
3149
|
-
interface EmbedDataNonNullableFields {
|
|
3150
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3151
|
-
}
|
|
3152
|
-
interface CollapsibleListDataNonNullableFields {
|
|
3153
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3154
|
-
initialExpandedItems: InitialExpandedItems;
|
|
3155
|
-
direction: Direction;
|
|
3156
|
-
}
|
|
3157
|
-
interface DimensionsNonNullableFields {
|
|
3158
|
-
colsWidthRatio: number[];
|
|
3159
|
-
rowsHeight: number[];
|
|
3160
|
-
colsMinWidth: number[];
|
|
3161
|
-
}
|
|
3162
|
-
interface TableDataNonNullableFields {
|
|
3163
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3164
|
-
dimensions?: DimensionsNonNullableFields;
|
|
3165
|
-
}
|
|
3166
|
-
interface CellStyleNonNullableFields {
|
|
3167
|
-
verticalAlignment: VerticalAlignment;
|
|
3168
|
-
}
|
|
3169
|
-
interface TableCellDataNonNullableFields {
|
|
3170
|
-
cellStyle?: CellStyleNonNullableFields;
|
|
3171
|
-
}
|
|
3172
|
-
interface AudioDataNonNullableFields {
|
|
3173
|
-
containerData?: PluginContainerDataNonNullableFields;
|
|
3174
|
-
}
|
|
3175
|
-
interface OrderedListDataNonNullableFields {
|
|
3176
|
-
indentation: number;
|
|
3177
|
-
}
|
|
3178
|
-
interface BulletedListDataNonNullableFields {
|
|
3179
|
-
indentation: number;
|
|
3180
|
-
}
|
|
3181
|
-
interface BlockquoteDataNonNullableFields {
|
|
3182
|
-
indentation: number;
|
|
3183
|
-
}
|
|
3184
|
-
interface CaptionDataNonNullableFields {
|
|
3185
|
-
textStyle?: TextStyleNonNullableFields;
|
|
3186
|
-
}
|
|
3187
|
-
interface NodeNonNullableFields {
|
|
3188
|
-
buttonData?: ButtonDataNonNullableFields;
|
|
3189
|
-
codeBlockData?: CodeBlockDataNonNullableFields;
|
|
3190
|
-
dividerData?: DividerDataNonNullableFields;
|
|
3191
|
-
fileData?: FileDataNonNullableFields;
|
|
3192
|
-
galleryData?: GalleryDataNonNullableFields;
|
|
3193
|
-
gifData?: GIFDataNonNullableFields;
|
|
3194
|
-
headingData?: HeadingDataNonNullableFields;
|
|
3195
|
-
htmlData?: HTMLDataNonNullableFields;
|
|
3196
|
-
imageData?: ImageDataNonNullableFields;
|
|
3197
|
-
linkPreviewData?: LinkPreviewDataNonNullableFields;
|
|
3198
|
-
mapData?: MapDataNonNullableFields;
|
|
3199
|
-
paragraphData?: ParagraphDataNonNullableFields;
|
|
3200
|
-
pollData?: PollDataNonNullableFields;
|
|
3201
|
-
textData?: TextDataNonNullableFields;
|
|
3202
|
-
appEmbedData?: AppEmbedDataNonNullableFields;
|
|
3203
|
-
videoData?: VideoDataNonNullableFields;
|
|
3204
|
-
embedData?: EmbedDataNonNullableFields;
|
|
3205
|
-
collapsibleListData?: CollapsibleListDataNonNullableFields;
|
|
3206
|
-
tableData?: TableDataNonNullableFields;
|
|
3207
|
-
tableCellData?: TableCellDataNonNullableFields;
|
|
3208
|
-
audioData?: AudioDataNonNullableFields;
|
|
3209
|
-
orderedListData?: OrderedListDataNonNullableFields;
|
|
3210
|
-
bulletedListData?: BulletedListDataNonNullableFields;
|
|
3211
|
-
blockquoteData?: BlockquoteDataNonNullableFields;
|
|
3212
|
-
captionData?: CaptionDataNonNullableFields;
|
|
3213
|
-
type: NodeType;
|
|
3214
|
-
_id: string;
|
|
3215
|
-
nodes: NodeNonNullableFields[];
|
|
3216
|
-
}
|
|
3217
|
-
interface MetadataNonNullableFields {
|
|
3218
|
-
version: number;
|
|
3219
|
-
}
|
|
3220
|
-
interface TextNodeStyleNonNullableFields {
|
|
3221
|
-
decorations: DecorationNonNullableFields[];
|
|
3222
|
-
}
|
|
3223
|
-
interface DocumentStyleNonNullableFields {
|
|
3224
|
-
headerOne?: TextNodeStyleNonNullableFields;
|
|
3225
|
-
headerTwo?: TextNodeStyleNonNullableFields;
|
|
3226
|
-
headerThree?: TextNodeStyleNonNullableFields;
|
|
3227
|
-
headerFour?: TextNodeStyleNonNullableFields;
|
|
3228
|
-
headerFive?: TextNodeStyleNonNullableFields;
|
|
3229
|
-
headerSix?: TextNodeStyleNonNullableFields;
|
|
3230
|
-
paragraph?: TextNodeStyleNonNullableFields;
|
|
3231
|
-
blockquote?: TextNodeStyleNonNullableFields;
|
|
3232
|
-
codeBlock?: TextNodeStyleNonNullableFields;
|
|
3233
|
-
}
|
|
3234
|
-
interface RichContentNonNullableFields {
|
|
3235
|
-
nodes: NodeNonNullableFields[];
|
|
3236
|
-
metadata?: MetadataNonNullableFields;
|
|
3237
|
-
documentStyle?: DocumentStyleNonNullableFields;
|
|
3238
|
-
}
|
|
3239
|
-
interface ModerationDetailsNonNullableFields {
|
|
3240
|
-
submittedBy: string;
|
|
3241
|
-
status: ModerationStatusStatus;
|
|
3242
|
-
}
|
|
3243
|
-
interface TagNonNullableFields {
|
|
3244
|
-
type: string;
|
|
3245
|
-
children: string;
|
|
3246
|
-
custom: boolean;
|
|
3247
|
-
disabled: boolean;
|
|
3248
|
-
}
|
|
3249
|
-
interface KeywordNonNullableFields {
|
|
3250
|
-
term: string;
|
|
3251
|
-
isMain: boolean;
|
|
3252
|
-
}
|
|
3253
|
-
interface SettingsNonNullableFields {
|
|
3254
|
-
preventAutoRedirect: boolean;
|
|
3255
|
-
keywords: KeywordNonNullableFields[];
|
|
3256
|
-
}
|
|
3257
|
-
interface SeoSchemaNonNullableFields {
|
|
3258
|
-
tags: TagNonNullableFields[];
|
|
3259
|
-
settings?: SettingsNonNullableFields;
|
|
3260
|
-
}
|
|
3261
|
-
interface WixMediaNonNullableFields {
|
|
3262
|
-
image: string;
|
|
3263
|
-
videoV2: string;
|
|
3264
|
-
}
|
|
3265
|
-
interface EmbedThumbnailNonNullableFields {
|
|
3266
|
-
url: string;
|
|
3267
|
-
width: number;
|
|
3268
|
-
height: number;
|
|
3269
|
-
}
|
|
3270
|
-
interface EmbedVideoNonNullableFields {
|
|
3271
|
-
url: string;
|
|
3272
|
-
width: number;
|
|
3273
|
-
height: number;
|
|
3274
|
-
}
|
|
3275
|
-
interface EmbedMediaNonNullableFields {
|
|
3276
|
-
thumbnail?: EmbedThumbnailNonNullableFields;
|
|
3277
|
-
video?: EmbedVideoNonNullableFields;
|
|
3278
|
-
}
|
|
3279
|
-
interface MediaNonNullableFields {
|
|
3280
|
-
wixMedia?: WixMediaNonNullableFields;
|
|
3281
|
-
embedMedia?: EmbedMediaNonNullableFields;
|
|
3282
|
-
displayed: boolean;
|
|
3283
|
-
custom: boolean;
|
|
3284
|
-
}
|
|
3285
|
-
interface DraftPostTranslationNonNullableFields {
|
|
3286
|
-
_id: string;
|
|
3287
|
-
status: Status;
|
|
3288
|
-
seoData?: SeoSchemaNonNullableFields;
|
|
3289
|
-
url: string;
|
|
3290
|
-
}
|
|
3291
|
-
interface DraftPostNonNullableFields {
|
|
3292
|
-
_id: string;
|
|
3293
|
-
title: string;
|
|
3294
|
-
categoryIds: string[];
|
|
3295
|
-
coverMedia?: CoverMediaNonNullableFields;
|
|
3296
|
-
hashtags: string[];
|
|
3297
|
-
minutesToRead: number;
|
|
3298
|
-
heroImage: string;
|
|
3299
|
-
tagIds: string[];
|
|
3300
|
-
relatedPostIds: string[];
|
|
3301
|
-
pricingPlanIds: string[];
|
|
3302
|
-
changeOrigin: Origin;
|
|
3303
|
-
richContent?: RichContentNonNullableFields;
|
|
3304
|
-
status: Status;
|
|
3305
|
-
moderationDetails?: ModerationDetailsNonNullableFields;
|
|
3306
|
-
hasUnpublishedChanges: boolean;
|
|
3307
|
-
seoData?: SeoSchemaNonNullableFields;
|
|
3308
|
-
slugs: string[];
|
|
3309
|
-
url: string;
|
|
3310
|
-
media?: MediaNonNullableFields;
|
|
3311
|
-
translations: DraftPostTranslationNonNullableFields[];
|
|
3312
|
-
}
|
|
3313
|
-
export interface CreateDraftPostResponseNonNullableFields {
|
|
3314
|
-
draftPost?: DraftPostNonNullableFields;
|
|
3315
|
-
}
|
|
3316
|
-
interface ApplicationErrorNonNullableFields {
|
|
3317
|
-
code: string;
|
|
3318
|
-
description: string;
|
|
3319
|
-
}
|
|
3320
|
-
interface ItemMetadataNonNullableFields {
|
|
3321
|
-
originalIndex: number;
|
|
3322
|
-
success: boolean;
|
|
3323
|
-
error?: ApplicationErrorNonNullableFields;
|
|
3324
|
-
}
|
|
3325
|
-
interface BulkDraftPostResultNonNullableFields {
|
|
3326
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
3327
|
-
item?: DraftPostNonNullableFields;
|
|
3328
|
-
}
|
|
3329
|
-
interface BulkActionMetadataNonNullableFields {
|
|
3330
|
-
totalSuccesses: number;
|
|
3331
|
-
totalFailures: number;
|
|
3332
|
-
undetailedFailures: number;
|
|
3333
|
-
}
|
|
3334
|
-
export interface BulkCreateDraftPostsResponseNonNullableFields {
|
|
3335
|
-
results: BulkDraftPostResultNonNullableFields[];
|
|
3336
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
3337
|
-
}
|
|
3338
|
-
export interface BulkUpdateDraftPostsResponseNonNullableFields {
|
|
3339
|
-
results: BulkDraftPostResultNonNullableFields[];
|
|
3340
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
3341
|
-
}
|
|
3342
|
-
interface MetaDataNonNullableFields {
|
|
3343
|
-
count: number;
|
|
3344
|
-
offset: number;
|
|
3345
|
-
total: number;
|
|
3346
|
-
}
|
|
3347
|
-
export interface ListDeletedDraftPostsResponseNonNullableFields {
|
|
3348
|
-
draftPosts: DraftPostNonNullableFields[];
|
|
3349
|
-
metaData?: MetaDataNonNullableFields;
|
|
3350
|
-
}
|
|
3351
|
-
export interface GetDraftPostResponseNonNullableFields {
|
|
3352
|
-
draftPost?: DraftPostNonNullableFields;
|
|
3353
|
-
}
|
|
3354
|
-
export interface UpdateDraftPostResponseNonNullableFields {
|
|
3355
|
-
draftPost?: DraftPostNonNullableFields;
|
|
3356
|
-
}
|
|
3357
|
-
export interface BulkDeleteDraftPostsResponseNonNullableFields {
|
|
3358
|
-
results: BulkDraftPostResultNonNullableFields[];
|
|
3359
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
3360
|
-
}
|
|
3361
|
-
export interface ListDraftPostsResponseNonNullableFields {
|
|
3362
|
-
draftPosts: DraftPostNonNullableFields[];
|
|
3363
|
-
metaData?: MetaDataNonNullableFields;
|
|
3364
|
-
}
|
|
3365
|
-
export interface GetDeletedDraftPostResponseNonNullableFields {
|
|
3366
|
-
draftPost?: DraftPostNonNullableFields;
|
|
3367
|
-
}
|
|
3368
|
-
export interface RestoreFromTrashBinResponseNonNullableFields {
|
|
3369
|
-
draftPost?: DraftPostNonNullableFields;
|
|
3370
|
-
}
|
|
3371
|
-
export interface QueryDraftPostsResponseNonNullableFields {
|
|
3372
|
-
draftPosts: DraftPostNonNullableFields[];
|
|
3373
|
-
metaData?: MetaDataNonNullableFields;
|
|
3374
|
-
}
|
|
3375
|
-
export interface PublishDraftPostResponseNonNullableFields {
|
|
3376
|
-
postId: string;
|
|
3377
|
-
}
|
|
3378
2981
|
export interface BaseEventMetadata {
|
|
3379
2982
|
/**
|
|
3380
2983
|
* App instance ID.
|
|
@@ -3499,6 +3102,7 @@ export interface DraftUpdatedEnvelope {
|
|
|
3499
3102
|
* @slug updated
|
|
3500
3103
|
*/
|
|
3501
3104
|
export declare function onDraftUpdated(handler: (event: DraftUpdatedEnvelope) => void | Promise<void>): void;
|
|
3105
|
+
type DraftNonNullablePaths = `_id` | `title` | `categoryIds` | `hashtags` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `richContent.nodes` | `richContent.nodes.${number}.buttonData.containerData.width.size` | `richContent.nodes.${number}.buttonData.containerData.alignment` | `richContent.nodes.${number}.buttonData.type` | `richContent.nodes.${number}.buttonData.link.url` | `richContent.nodes.${number}.buttonData.link.anchor` | `richContent.nodes.${number}.buttonData.link.target` | `richContent.nodes.${number}.codeBlockData.textStyle.textAlignment` | `richContent.nodes.${number}.dividerData.lineStyle` | `richContent.nodes.${number}.dividerData.width` | `richContent.nodes.${number}.dividerData.alignment` | `richContent.nodes.${number}.fileData.pdfSettings.viewMode` | `richContent.nodes.${number}.galleryData.items` | `richContent.nodes.${number}.galleryData.options.layout.type` | `richContent.nodes.${number}.galleryData.options.layout.orientation` | `richContent.nodes.${number}.galleryData.options.item.crop` | `richContent.nodes.${number}.galleryData.options.thumbnails.placement` | `richContent.nodes.${number}.gifData.height` | `richContent.nodes.${number}.gifData.width` | `richContent.nodes.${number}.gifData.gifType` | `richContent.nodes.${number}.headingData.level` | `richContent.nodes.${number}.htmlData.url` | `richContent.nodes.${number}.htmlData.html` | `richContent.nodes.${number}.htmlData.source` | `richContent.nodes.${number}.linkPreviewData.styles.thumbnailPosition` | `richContent.nodes.${number}.mapData.mapSettings.mapType` | `richContent.nodes.${number}.pollData.poll.options` | `richContent.nodes.${number}.pollData.poll.settings.permissions.view` | `richContent.nodes.${number}.pollData.poll.settings.permissions.vote` | `richContent.nodes.${number}.pollData.layout.poll.type` | `richContent.nodes.${number}.pollData.layout.poll.direction` | `richContent.nodes.${number}.pollData.design.poll.background.type` | `richContent.nodes.${number}.textData.text` | `richContent.nodes.${number}.textData.decorations` | `richContent.nodes.${number}.textData.decorations.${number}.anchorData.anchor` | `richContent.nodes.${number}.textData.decorations.${number}.mentionData.name` | `richContent.nodes.${number}.textData.decorations.${number}.mentionData.slug` | `richContent.nodes.${number}.textData.decorations.${number}.fontSizeData.unit` | `richContent.nodes.${number}.textData.decorations.${number}.type` | `richContent.nodes.${number}.appEmbedData.type` | `richContent.nodes.${number}.collapsibleListData.initialExpandedItems` | `richContent.nodes.${number}.collapsibleListData.direction` | `richContent.nodes.${number}.tableData.dimensions.colsWidthRatio` | `richContent.nodes.${number}.tableData.dimensions.rowsHeight` | `richContent.nodes.${number}.tableData.dimensions.colsMinWidth` | `richContent.nodes.${number}.tableCellData.cellStyle.verticalAlignment` | `richContent.nodes.${number}.orderedListData.indentation` | `richContent.nodes.${number}.bulletedListData.indentation` | `richContent.nodes.${number}.blockquoteData.indentation` | `richContent.nodes.${number}.type` | `richContent.nodes.${number}._id` | `richContent.nodes.${number}.nodes` | `richContent.metadata.version` | `richContent.documentStyle.headerOne.decorations` | `status` | `moderationDetails.submittedBy` | `moderationDetails.status` | `hasUnpublishedChanges` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom`;
|
|
3502
3106
|
/**
|
|
3503
3107
|
* Creates a draft post.
|
|
3504
3108
|
*
|
|
@@ -3520,7 +3124,9 @@ export declare function onDraftUpdated(handler: (event: DraftUpdatedEnvelope) =>
|
|
|
3520
3124
|
* @applicableIdentity APP
|
|
3521
3125
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.CreateDraftPost
|
|
3522
3126
|
*/
|
|
3523
|
-
export declare function createDraftPost(draftPost: DraftPost, options?: CreateDraftPostOptions): Promise<CreateDraftPostResponse
|
|
3127
|
+
export declare function createDraftPost(draftPost: NonNullablePaths<DraftPost, `title`>, options?: CreateDraftPostOptions): Promise<NonNullablePaths<CreateDraftPostResponse, {
|
|
3128
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
3129
|
+
}[DraftNonNullablePaths]>>;
|
|
3524
3130
|
export interface CreateDraftPostOptions {
|
|
3525
3131
|
/**
|
|
3526
3132
|
* Whether the draft post should be published on creation.
|
|
@@ -3549,7 +3155,9 @@ export interface CreateDraftPostOptions {
|
|
|
3549
3155
|
* @applicableIdentity APP
|
|
3550
3156
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkCreateDraftPosts
|
|
3551
3157
|
*/
|
|
3552
|
-
export declare function bulkCreateDraftPosts(draftPosts: DraftPost[], options?: BulkCreateDraftPostsOptions): Promise<BulkCreateDraftPostsResponse
|
|
3158
|
+
export declare function bulkCreateDraftPosts(draftPosts: NonNullablePaths<DraftPost, `title`>[], options?: BulkCreateDraftPostsOptions): Promise<NonNullablePaths<BulkCreateDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
3159
|
+
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
3160
|
+
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
3553
3161
|
export interface BulkCreateDraftPostsOptions {
|
|
3554
3162
|
/** Whether the draft post should be published after creation. */
|
|
3555
3163
|
publish?: boolean;
|
|
@@ -3575,7 +3183,9 @@ export interface BulkCreateDraftPostsOptions {
|
|
|
3575
3183
|
* @applicableIdentity APP
|
|
3576
3184
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkUpdateDraftPosts
|
|
3577
3185
|
*/
|
|
3578
|
-
export declare function bulkUpdateDraftPosts(options?: BulkUpdateDraftPostsOptions): Promise<BulkUpdateDraftPostsResponse
|
|
3186
|
+
export declare function bulkUpdateDraftPosts(options?: NonNullablePaths<BulkUpdateDraftPostsOptions, `draftPosts.${number}.draftPost` | `draftPosts.${number}.draftPost._id`>): Promise<NonNullablePaths<BulkUpdateDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
3187
|
+
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
3188
|
+
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
3579
3189
|
export interface BulkUpdateDraftPostsOptions {
|
|
3580
3190
|
/**
|
|
3581
3191
|
* Draft posts to update.
|
|
@@ -3616,7 +3226,9 @@ export interface BulkUpdateDraftPostsOptions {
|
|
|
3616
3226
|
* @applicableIdentity APP
|
|
3617
3227
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDeletedDraftPosts
|
|
3618
3228
|
*/
|
|
3619
|
-
export declare function listDeletedDraftPosts(options?: ListDeletedDraftPostsOptions): Promise<ListDeletedDraftPostsResponse
|
|
3229
|
+
export declare function listDeletedDraftPosts(options?: ListDeletedDraftPostsOptions): Promise<NonNullablePaths<ListDeletedDraftPostsResponse, {
|
|
3230
|
+
[P in DraftNonNullablePaths]: `draftPosts.${number}.${P}`;
|
|
3231
|
+
}[DraftNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
|
3620
3232
|
export interface ListDeletedDraftPostsOptions {
|
|
3621
3233
|
/**
|
|
3622
3234
|
* Language filter.
|
|
@@ -3660,7 +3272,9 @@ export interface ListDeletedDraftPostsOptions {
|
|
|
3660
3272
|
* @applicableIdentity APP
|
|
3661
3273
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDraftPost
|
|
3662
3274
|
*/
|
|
3663
|
-
export declare function getDraftPost(draftPostId: string, options?: GetDraftPostOptions): Promise<GetDraftPostResponse
|
|
3275
|
+
export declare function getDraftPost(draftPostId: string, options?: GetDraftPostOptions): Promise<NonNullablePaths<GetDraftPostResponse, {
|
|
3276
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
3277
|
+
}[DraftNonNullablePaths]>>;
|
|
3664
3278
|
export interface GetDraftPostOptions {
|
|
3665
3279
|
/**
|
|
3666
3280
|
* List of additional draft post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -3684,7 +3298,9 @@ export interface GetDraftPostOptions {
|
|
|
3684
3298
|
* @applicableIdentity APP
|
|
3685
3299
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.UpdateDraftPost
|
|
3686
3300
|
*/
|
|
3687
|
-
export declare function updateDraftPost(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions): Promise<UpdateDraftPostResponse
|
|
3301
|
+
export declare function updateDraftPost(_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions): Promise<NonNullablePaths<UpdateDraftPostResponse, {
|
|
3302
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
3303
|
+
}[DraftNonNullablePaths]>>;
|
|
3688
3304
|
export interface UpdateDraftPost {
|
|
3689
3305
|
/**
|
|
3690
3306
|
* Draft post ID.
|
|
@@ -3887,7 +3503,9 @@ export declare function removeFromTrashBin(draftPostId: string): Promise<void>;
|
|
|
3887
3503
|
* @applicableIdentity APP
|
|
3888
3504
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkDeleteDraftPosts
|
|
3889
3505
|
*/
|
|
3890
|
-
export declare function bulkDeleteDraftPosts(postIds: string[], options?: BulkDeleteDraftPostsOptions): Promise<BulkDeleteDraftPostsResponse
|
|
3506
|
+
export declare function bulkDeleteDraftPosts(postIds: string[], options?: BulkDeleteDraftPostsOptions): Promise<NonNullablePaths<BulkDeleteDraftPostsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
3507
|
+
[P in DraftNonNullablePaths]: `results.${number}.item.${P}`;
|
|
3508
|
+
}[DraftNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
3891
3509
|
export interface BulkDeleteDraftPostsOptions {
|
|
3892
3510
|
/** Should delete bypassing the trash-bin. */
|
|
3893
3511
|
permanent?: boolean;
|
|
@@ -3907,7 +3525,9 @@ export interface BulkDeleteDraftPostsOptions {
|
|
|
3907
3525
|
* @applicableIdentity APP
|
|
3908
3526
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDraftPosts
|
|
3909
3527
|
*/
|
|
3910
|
-
export declare function listDraftPosts(options?: ListDraftPostsOptions): Promise<ListDraftPostsResponse
|
|
3528
|
+
export declare function listDraftPosts(options?: ListDraftPostsOptions): Promise<NonNullablePaths<ListDraftPostsResponse, {
|
|
3529
|
+
[P in DraftNonNullablePaths]: `draftPosts.${number}.${P}`;
|
|
3530
|
+
}[DraftNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
|
3911
3531
|
export interface ListDraftPostsOptions {
|
|
3912
3532
|
/**
|
|
3913
3533
|
* Draft post status filter.
|
|
@@ -3950,7 +3570,9 @@ export interface ListDraftPostsOptions {
|
|
|
3950
3570
|
* @applicableIdentity APP
|
|
3951
3571
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDeletedDraftPost
|
|
3952
3572
|
*/
|
|
3953
|
-
export declare function getDeletedDraftPost(draftPostId: string): Promise<GetDeletedDraftPostResponse
|
|
3573
|
+
export declare function getDeletedDraftPost(draftPostId: string): Promise<NonNullablePaths<GetDeletedDraftPostResponse, {
|
|
3574
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
3575
|
+
}[DraftNonNullablePaths]>>;
|
|
3954
3576
|
/**
|
|
3955
3577
|
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
3956
3578
|
* @param draftPostId - Draft post ID.
|
|
@@ -3962,7 +3584,9 @@ export declare function getDeletedDraftPost(draftPostId: string): Promise<GetDel
|
|
|
3962
3584
|
* @applicableIdentity APP
|
|
3963
3585
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RestoreFromTrashBin
|
|
3964
3586
|
*/
|
|
3965
|
-
export declare function restoreFromTrashBin(draftPostId: string): Promise<RestoreFromTrashBinResponse
|
|
3587
|
+
export declare function restoreFromTrashBin(draftPostId: string): Promise<NonNullablePaths<RestoreFromTrashBinResponse, {
|
|
3588
|
+
[P in DraftNonNullablePaths]: `draftPost.${P}`;
|
|
3589
|
+
}[DraftNonNullablePaths]>>;
|
|
3966
3590
|
/**
|
|
3967
3591
|
* Creates a query to retrieve a list of up to 100 draft posts.
|
|
3968
3592
|
*
|
|
@@ -4038,6 +3662,14 @@ export interface DraftPostsQueryBuilder {
|
|
|
4038
3662
|
* @param string - String to compare against. Case-insensitive.
|
|
4039
3663
|
*/
|
|
4040
3664
|
startsWith: (propertyName: 'title' | 'excerpt', value: string) => DraftPostsQueryBuilder;
|
|
3665
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
3666
|
+
* @param values - List of values to compare against.
|
|
3667
|
+
*/
|
|
3668
|
+
hasSome: (propertyName: 'categoryIds' | 'hashtags' | 'tagIds' | 'pricingPlanIds', value: any[]) => DraftPostsQueryBuilder;
|
|
3669
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
3670
|
+
* @param values - List of values to compare against.
|
|
3671
|
+
*/
|
|
3672
|
+
hasAll: (propertyName: 'categoryIds' | 'hashtags' | 'tagIds' | 'pricingPlanIds', value: any[]) => DraftPostsQueryBuilder;
|
|
4041
3673
|
in: (propertyName: '_id' | 'title' | 'excerpt' | 'minutesToRead' | 'translationId' | 'language' | 'status' | 'editedDate' | 'scheduledPublishDate', value: any) => DraftPostsQueryBuilder;
|
|
4042
3674
|
exists: (propertyName: 'title' | 'excerpt' | 'translationId' | 'language', value: boolean) => DraftPostsQueryBuilder;
|
|
4043
3675
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
@@ -4065,5 +3697,5 @@ export interface DraftPostsQueryBuilder {
|
|
|
4065
3697
|
* @applicableIdentity APP
|
|
4066
3698
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.PublishDraftPost
|
|
4067
3699
|
*/
|
|
4068
|
-
export declare function publishDraftPost(draftPostId: string): Promise<PublishDraftPostResponse
|
|
3700
|
+
export declare function publishDraftPost(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`>>;
|
|
4069
3701
|
export {};
|