@wix/auto_sdk_blog_draft-posts 1.0.92 → 1.0.94
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.js +13 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +288 -273
- package/build/cjs/index.typings.js +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +290 -275
- package/build/cjs/meta.js +13 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +15 -15
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +13 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +288 -273
- package/build/es/index.typings.mjs +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +290 -275
- package/build/es/meta.mjs +13 -13
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +15 -15
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +13 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +317 -302
- package/build/internal/cjs/index.typings.js +13 -13
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +333 -318
- package/build/internal/cjs/meta.js +13 -13
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +15 -15
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +13 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +317 -302
- package/build/internal/es/index.typings.mjs +13 -13
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +333 -318
- package/build/internal/es/meta.mjs +13 -13
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +15 -15
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -2969,7 +2969,22 @@ interface Tag {
|
|
|
2969
2969
|
meta?: Record<string, any> | null;
|
|
2970
2970
|
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
2971
2971
|
children?: string;
|
|
2972
|
-
/**
|
|
2972
|
+
/**
|
|
2973
|
+
* Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
|
|
2974
|
+
* i.e. an entry from the site's Advanced/Custom Tags list.
|
|
2975
|
+
*
|
|
2976
|
+
* This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
|
|
2977
|
+
* (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
|
|
2978
|
+
* default/pattern — standard tags always resolve with `custom: false`, even when their content comes
|
|
2979
|
+
* from a page's manually saved SEO title/description override. Don't use this field to verify whether
|
|
2980
|
+
* a live page reflects a manual per-page SEO edit.
|
|
2981
|
+
*
|
|
2982
|
+
* Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
|
|
2983
|
+
* only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
|
|
2984
|
+
* or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
|
|
2985
|
+
* response entirely — there, `false` means this API could not tell, not that no custom tag exists.
|
|
2986
|
+
* Pass `seoData` explicitly to resolve against a known set of tags.
|
|
2987
|
+
*/
|
|
2973
2988
|
custom?: boolean;
|
|
2974
2989
|
/** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
|
|
2975
2990
|
disabled?: boolean;
|
|
@@ -3099,10 +3114,6 @@ interface DraftPostTranslation {
|
|
|
3099
3114
|
/** Post URL. */
|
|
3100
3115
|
url?: PageUrl;
|
|
3101
3116
|
}
|
|
3102
|
-
interface InitialDraftPostsCopied {
|
|
3103
|
-
/** Number of draft posts copied. */
|
|
3104
|
-
count?: number;
|
|
3105
|
-
}
|
|
3106
3117
|
interface DraftCategoriesUpdated {
|
|
3107
3118
|
/**
|
|
3108
3119
|
* Draft post ID.
|
|
@@ -3141,6 +3152,202 @@ interface DraftTagsUpdated {
|
|
|
3141
3152
|
*/
|
|
3142
3153
|
previousTags?: string[];
|
|
3143
3154
|
}
|
|
3155
|
+
interface GetDraftPostTotalsRequest {
|
|
3156
|
+
/**
|
|
3157
|
+
* Group results by fields (defaults to grouping by status).
|
|
3158
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3159
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3160
|
+
* @maxSize 10
|
|
3161
|
+
*/
|
|
3162
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3163
|
+
/**
|
|
3164
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3165
|
+
* @format LANGUAGE_TAG
|
|
3166
|
+
*/
|
|
3167
|
+
language?: string | null;
|
|
3168
|
+
}
|
|
3169
|
+
declare enum TotalDraftPostsGroupingField {
|
|
3170
|
+
/** Groups results by status. */
|
|
3171
|
+
STATUS = "STATUS",
|
|
3172
|
+
/** Groups results by language. */
|
|
3173
|
+
LANGUAGE = "LANGUAGE"
|
|
3174
|
+
}
|
|
3175
|
+
/** @enumType */
|
|
3176
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3177
|
+
interface GetDraftPostTotalsResponse {
|
|
3178
|
+
/** Draft post totals. */
|
|
3179
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
3180
|
+
}
|
|
3181
|
+
interface TotalDraftPosts {
|
|
3182
|
+
/** Draft post totals in that group. */
|
|
3183
|
+
total?: number;
|
|
3184
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3185
|
+
status?: StatusWithLiterals;
|
|
3186
|
+
/**
|
|
3187
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3188
|
+
* @format LANGUAGE_TAG
|
|
3189
|
+
*/
|
|
3190
|
+
language?: string | null;
|
|
3191
|
+
}
|
|
3192
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3193
|
+
createdEvent?: EntityCreatedEvent;
|
|
3194
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3195
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3196
|
+
actionEvent?: ActionEvent;
|
|
3197
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3198
|
+
id?: string;
|
|
3199
|
+
/**
|
|
3200
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3201
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3202
|
+
*/
|
|
3203
|
+
entityFqdn?: string;
|
|
3204
|
+
/**
|
|
3205
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3206
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3207
|
+
*/
|
|
3208
|
+
slug?: string;
|
|
3209
|
+
/** ID of the entity associated with the event. */
|
|
3210
|
+
entityId?: string;
|
|
3211
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3212
|
+
eventTime?: Date | null;
|
|
3213
|
+
/**
|
|
3214
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3215
|
+
* (for example, GDPR).
|
|
3216
|
+
*/
|
|
3217
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3218
|
+
/** If present, indicates the action that triggered the event. */
|
|
3219
|
+
originatedFrom?: string | null;
|
|
3220
|
+
/**
|
|
3221
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
3222
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
3223
|
+
*/
|
|
3224
|
+
entityEventSequence?: string | null;
|
|
3225
|
+
}
|
|
3226
|
+
/** @oneof */
|
|
3227
|
+
interface DomainEventBodyOneOf {
|
|
3228
|
+
createdEvent?: EntityCreatedEvent;
|
|
3229
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3230
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3231
|
+
actionEvent?: ActionEvent;
|
|
3232
|
+
}
|
|
3233
|
+
interface EntityCreatedEvent {
|
|
3234
|
+
entityAsJson?: string;
|
|
3235
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3236
|
+
restoreInfo?: RestoreInfo;
|
|
3237
|
+
}
|
|
3238
|
+
interface RestoreInfo {
|
|
3239
|
+
deletedDate?: Date | null;
|
|
3240
|
+
}
|
|
3241
|
+
interface EntityUpdatedEvent {
|
|
3242
|
+
/**
|
|
3243
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3244
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3245
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3246
|
+
*/
|
|
3247
|
+
currentEntityAsJson?: string;
|
|
3248
|
+
}
|
|
3249
|
+
interface EntityDeletedEvent {
|
|
3250
|
+
/** Entity that was deleted. */
|
|
3251
|
+
deletedEntityAsJson?: string | null;
|
|
3252
|
+
}
|
|
3253
|
+
interface ActionEvent {
|
|
3254
|
+
bodyAsJson?: string;
|
|
3255
|
+
}
|
|
3256
|
+
interface MessageEnvelope {
|
|
3257
|
+
/**
|
|
3258
|
+
* App instance ID.
|
|
3259
|
+
* @format GUID
|
|
3260
|
+
*/
|
|
3261
|
+
instanceId?: string | null;
|
|
3262
|
+
/**
|
|
3263
|
+
* Event type.
|
|
3264
|
+
* @maxLength 150
|
|
3265
|
+
*/
|
|
3266
|
+
eventType?: string;
|
|
3267
|
+
/** The identification type and identity data. */
|
|
3268
|
+
identity?: IdentificationData;
|
|
3269
|
+
/** Stringify payload. */
|
|
3270
|
+
data?: string;
|
|
3271
|
+
/** Details related to the account */
|
|
3272
|
+
accountInfo?: AccountInfo;
|
|
3273
|
+
}
|
|
3274
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3275
|
+
/**
|
|
3276
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3277
|
+
* @format GUID
|
|
3278
|
+
*/
|
|
3279
|
+
anonymousVisitorId?: string;
|
|
3280
|
+
/**
|
|
3281
|
+
* ID of a site visitor that has logged in to the site.
|
|
3282
|
+
* @format GUID
|
|
3283
|
+
*/
|
|
3284
|
+
memberId?: string;
|
|
3285
|
+
/**
|
|
3286
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3287
|
+
* @format GUID
|
|
3288
|
+
*/
|
|
3289
|
+
wixUserId?: string;
|
|
3290
|
+
/**
|
|
3291
|
+
* ID of an app.
|
|
3292
|
+
* @format GUID
|
|
3293
|
+
*/
|
|
3294
|
+
appId?: string;
|
|
3295
|
+
/** @readonly */
|
|
3296
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3297
|
+
}
|
|
3298
|
+
/** @oneof */
|
|
3299
|
+
interface IdentificationDataIdOneOf {
|
|
3300
|
+
/**
|
|
3301
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3302
|
+
* @format GUID
|
|
3303
|
+
*/
|
|
3304
|
+
anonymousVisitorId?: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* ID of a site visitor that has logged in to the site.
|
|
3307
|
+
* @format GUID
|
|
3308
|
+
*/
|
|
3309
|
+
memberId?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3312
|
+
* @format GUID
|
|
3313
|
+
*/
|
|
3314
|
+
wixUserId?: string;
|
|
3315
|
+
/**
|
|
3316
|
+
* ID of an app.
|
|
3317
|
+
* @format GUID
|
|
3318
|
+
*/
|
|
3319
|
+
appId?: string;
|
|
3320
|
+
}
|
|
3321
|
+
declare enum WebhookIdentityType {
|
|
3322
|
+
UNKNOWN = "UNKNOWN",
|
|
3323
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3324
|
+
MEMBER = "MEMBER",
|
|
3325
|
+
WIX_USER = "WIX_USER",
|
|
3326
|
+
APP = "APP"
|
|
3327
|
+
}
|
|
3328
|
+
/** @enumType */
|
|
3329
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3330
|
+
interface AccountInfo {
|
|
3331
|
+
/**
|
|
3332
|
+
* ID of the Wix account associated with the event.
|
|
3333
|
+
* @format GUID
|
|
3334
|
+
*/
|
|
3335
|
+
accountId?: string | null;
|
|
3336
|
+
/**
|
|
3337
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3338
|
+
* @format GUID
|
|
3339
|
+
*/
|
|
3340
|
+
parentAccountId?: string | null;
|
|
3341
|
+
/**
|
|
3342
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3343
|
+
* @format GUID
|
|
3344
|
+
*/
|
|
3345
|
+
siteId?: string | null;
|
|
3346
|
+
}
|
|
3347
|
+
interface InitialDraftPostsCopied {
|
|
3348
|
+
/** Number of draft posts copied. */
|
|
3349
|
+
count?: number;
|
|
3350
|
+
}
|
|
3144
3351
|
interface CreateDraftPostRequest {
|
|
3145
3352
|
/** Draft post to create. */
|
|
3146
3353
|
draftPost: DraftPost;
|
|
@@ -3721,197 +3928,116 @@ interface DraftPostCount {
|
|
|
3721
3928
|
/** Number of posts. */
|
|
3722
3929
|
postCount?: number;
|
|
3723
3930
|
}
|
|
3724
|
-
interface
|
|
3725
|
-
createdEvent?: EntityCreatedEvent;
|
|
3726
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3727
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3728
|
-
actionEvent?: ActionEvent;
|
|
3729
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3730
|
-
id?: string;
|
|
3931
|
+
interface BulkRevertToUnpublishedRequest {
|
|
3731
3932
|
/**
|
|
3732
|
-
*
|
|
3733
|
-
*
|
|
3933
|
+
* Source post IDs.
|
|
3934
|
+
* @minSize 1
|
|
3935
|
+
* @maxSize 100
|
|
3936
|
+
* @format GUID
|
|
3734
3937
|
*/
|
|
3735
|
-
|
|
3938
|
+
postIds?: string[];
|
|
3939
|
+
/** Should full draft post be returned. */
|
|
3940
|
+
returnFullEntity?: boolean;
|
|
3941
|
+
}
|
|
3942
|
+
interface BulkRevertToUnpublishedResponse {
|
|
3943
|
+
/** Bulk action results. */
|
|
3944
|
+
results?: BulkDraftPostResult[];
|
|
3945
|
+
/** Bulk action metadata. */
|
|
3946
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
3947
|
+
}
|
|
3948
|
+
interface BulkRejectDraftPostRequest {
|
|
3736
3949
|
/**
|
|
3737
|
-
*
|
|
3738
|
-
*
|
|
3950
|
+
* Source post IDs.
|
|
3951
|
+
* @minSize 1
|
|
3952
|
+
* @maxSize 100
|
|
3953
|
+
* @format GUID
|
|
3739
3954
|
*/
|
|
3740
|
-
|
|
3741
|
-
/**
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3955
|
+
postIds?: string[];
|
|
3956
|
+
/** Should full draft post be returned. */
|
|
3957
|
+
returnFullEntity?: boolean;
|
|
3958
|
+
}
|
|
3959
|
+
interface BulkRejectDraftPostResponse {
|
|
3960
|
+
/** Bulk action results. */
|
|
3961
|
+
results?: BulkDraftPostResult[];
|
|
3962
|
+
/** Bulk action metadata. */
|
|
3963
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
3964
|
+
}
|
|
3965
|
+
interface RevertToUnpublishedRequest {
|
|
3745
3966
|
/**
|
|
3746
|
-
*
|
|
3747
|
-
*
|
|
3967
|
+
* Source post ID.
|
|
3968
|
+
* @format GUID
|
|
3748
3969
|
*/
|
|
3749
|
-
|
|
3750
|
-
/** If present, indicates the action that triggered the event. */
|
|
3751
|
-
originatedFrom?: string | null;
|
|
3752
|
-
/**
|
|
3753
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
3754
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
3755
|
-
*/
|
|
3756
|
-
entityEventSequence?: string | null;
|
|
3757
|
-
}
|
|
3758
|
-
/** @oneof */
|
|
3759
|
-
interface DomainEventBodyOneOf {
|
|
3760
|
-
createdEvent?: EntityCreatedEvent;
|
|
3761
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3762
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3763
|
-
actionEvent?: ActionEvent;
|
|
3764
|
-
}
|
|
3765
|
-
interface EntityCreatedEvent {
|
|
3766
|
-
entityAsJson?: string;
|
|
3767
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3768
|
-
restoreInfo?: RestoreInfo;
|
|
3769
|
-
}
|
|
3770
|
-
interface RestoreInfo {
|
|
3771
|
-
deletedDate?: Date | null;
|
|
3772
|
-
}
|
|
3773
|
-
interface EntityUpdatedEvent {
|
|
3970
|
+
postId?: string;
|
|
3774
3971
|
/**
|
|
3775
|
-
*
|
|
3776
|
-
*
|
|
3777
|
-
*
|
|
3972
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
3973
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
3974
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3975
|
+
* @maxSize 10
|
|
3778
3976
|
*/
|
|
3779
|
-
|
|
3780
|
-
}
|
|
3781
|
-
interface EntityDeletedEvent {
|
|
3782
|
-
/** Entity that was deleted. */
|
|
3783
|
-
deletedEntityAsJson?: string | null;
|
|
3977
|
+
fieldsets?: FieldWithLiterals[];
|
|
3784
3978
|
}
|
|
3785
|
-
interface
|
|
3786
|
-
|
|
3979
|
+
interface RevertToUnpublishedResponse {
|
|
3980
|
+
/** Updated post draft. */
|
|
3981
|
+
draftPost?: DraftPost;
|
|
3787
3982
|
}
|
|
3788
|
-
interface
|
|
3983
|
+
interface RejectDraftPostRequest {
|
|
3789
3984
|
/**
|
|
3790
|
-
*
|
|
3985
|
+
* Source post ID.
|
|
3791
3986
|
* @format GUID
|
|
3792
3987
|
*/
|
|
3793
|
-
|
|
3988
|
+
postId?: string;
|
|
3794
3989
|
/**
|
|
3795
|
-
*
|
|
3796
|
-
*
|
|
3990
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
3991
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
3992
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3993
|
+
* @maxSize 10
|
|
3797
3994
|
*/
|
|
3798
|
-
|
|
3799
|
-
/** The identification type and identity data. */
|
|
3800
|
-
identity?: IdentificationData;
|
|
3801
|
-
/** Stringify payload. */
|
|
3802
|
-
data?: string;
|
|
3803
|
-
/** Details related to the account */
|
|
3804
|
-
accountInfo?: AccountInfo;
|
|
3995
|
+
fieldsets?: FieldWithLiterals[];
|
|
3805
3996
|
}
|
|
3806
|
-
interface
|
|
3807
|
-
/**
|
|
3808
|
-
|
|
3809
|
-
* @format GUID
|
|
3810
|
-
*/
|
|
3811
|
-
anonymousVisitorId?: string;
|
|
3812
|
-
/**
|
|
3813
|
-
* ID of a site visitor that has logged in to the site.
|
|
3814
|
-
* @format GUID
|
|
3815
|
-
*/
|
|
3816
|
-
memberId?: string;
|
|
3817
|
-
/**
|
|
3818
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3819
|
-
* @format GUID
|
|
3820
|
-
*/
|
|
3821
|
-
wixUserId?: string;
|
|
3822
|
-
/**
|
|
3823
|
-
* ID of an app.
|
|
3824
|
-
* @format GUID
|
|
3825
|
-
*/
|
|
3826
|
-
appId?: string;
|
|
3827
|
-
/** @readonly */
|
|
3828
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3997
|
+
interface RejectDraftPostResponse {
|
|
3998
|
+
/** Draft post. */
|
|
3999
|
+
draftPost?: DraftPost;
|
|
3829
4000
|
}
|
|
3830
|
-
|
|
3831
|
-
interface IdentificationDataIdOneOf {
|
|
3832
|
-
/**
|
|
3833
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3834
|
-
* @format GUID
|
|
3835
|
-
*/
|
|
3836
|
-
anonymousVisitorId?: string;
|
|
4001
|
+
interface ApproveDraftPostRequest {
|
|
3837
4002
|
/**
|
|
3838
|
-
*
|
|
4003
|
+
* Source post ID.
|
|
3839
4004
|
* @format GUID
|
|
3840
4005
|
*/
|
|
3841
|
-
|
|
4006
|
+
postId?: string;
|
|
3842
4007
|
/**
|
|
3843
|
-
*
|
|
3844
|
-
* @
|
|
4008
|
+
* Scheduled publish date if should be not immediately published.
|
|
4009
|
+
* @maxLength 24
|
|
3845
4010
|
*/
|
|
3846
|
-
|
|
4011
|
+
scheduledPublishDate?: string | null;
|
|
3847
4012
|
/**
|
|
3848
|
-
*
|
|
3849
|
-
*
|
|
4013
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4014
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4015
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4016
|
+
* @maxSize 10
|
|
3850
4017
|
*/
|
|
3851
|
-
|
|
4018
|
+
fieldsets?: FieldWithLiterals[];
|
|
3852
4019
|
}
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
MEMBER = "MEMBER",
|
|
3857
|
-
WIX_USER = "WIX_USER",
|
|
3858
|
-
APP = "APP"
|
|
4020
|
+
interface ApproveDraftPostResponse {
|
|
4021
|
+
/** Updated post draft. */
|
|
4022
|
+
draftPost?: DraftPost;
|
|
3859
4023
|
}
|
|
3860
|
-
|
|
3861
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3862
|
-
interface AccountInfo {
|
|
3863
|
-
/**
|
|
3864
|
-
* ID of the Wix account associated with the event.
|
|
3865
|
-
* @format GUID
|
|
3866
|
-
*/
|
|
3867
|
-
accountId?: string | null;
|
|
3868
|
-
/**
|
|
3869
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3870
|
-
* @format GUID
|
|
3871
|
-
*/
|
|
3872
|
-
parentAccountId?: string | null;
|
|
4024
|
+
interface MarkPostAsInModerationRequest {
|
|
3873
4025
|
/**
|
|
3874
|
-
*
|
|
3875
|
-
* @
|
|
4026
|
+
* Source post ID.
|
|
4027
|
+
* @maxLength 38
|
|
3876
4028
|
*/
|
|
3877
|
-
|
|
3878
|
-
}
|
|
3879
|
-
interface GetDraftPostTotalsRequest {
|
|
4029
|
+
postId?: string;
|
|
3880
4030
|
/**
|
|
3881
|
-
*
|
|
3882
|
-
*
|
|
3883
|
-
*
|
|
4031
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4032
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4033
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
3884
4034
|
* @maxSize 10
|
|
3885
4035
|
*/
|
|
3886
|
-
|
|
3887
|
-
/**
|
|
3888
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3889
|
-
* @format LANGUAGE_TAG
|
|
3890
|
-
*/
|
|
3891
|
-
language?: string | null;
|
|
3892
|
-
}
|
|
3893
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3894
|
-
/** Groups results by status. */
|
|
3895
|
-
STATUS = "STATUS",
|
|
3896
|
-
/** Groups results by language. */
|
|
3897
|
-
LANGUAGE = "LANGUAGE"
|
|
3898
|
-
}
|
|
3899
|
-
/** @enumType */
|
|
3900
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3901
|
-
interface GetDraftPostTotalsResponse {
|
|
3902
|
-
/** Draft post totals. */
|
|
3903
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
4036
|
+
fieldsets?: FieldWithLiterals[];
|
|
3904
4037
|
}
|
|
3905
|
-
interface
|
|
3906
|
-
/**
|
|
3907
|
-
|
|
3908
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3909
|
-
status?: StatusWithLiterals;
|
|
3910
|
-
/**
|
|
3911
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3912
|
-
* @format LANGUAGE_TAG
|
|
3913
|
-
*/
|
|
3914
|
-
language?: string | null;
|
|
4038
|
+
interface MarkPostAsInModerationResponse {
|
|
4039
|
+
/** Updated post draft. */
|
|
4040
|
+
draftPost?: DraftPost;
|
|
3915
4041
|
}
|
|
3916
4042
|
interface TranslateDraftRequest {
|
|
3917
4043
|
/**
|
|
@@ -3986,117 +4112,6 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
3986
4112
|
/** Draft post */
|
|
3987
4113
|
draftPost?: DraftPost;
|
|
3988
4114
|
}
|
|
3989
|
-
interface BulkRevertToUnpublishedRequest {
|
|
3990
|
-
/**
|
|
3991
|
-
* Source post IDs.
|
|
3992
|
-
* @minSize 1
|
|
3993
|
-
* @maxSize 100
|
|
3994
|
-
* @format GUID
|
|
3995
|
-
*/
|
|
3996
|
-
postIds?: string[];
|
|
3997
|
-
/** Should full draft post be returned. */
|
|
3998
|
-
returnFullEntity?: boolean;
|
|
3999
|
-
}
|
|
4000
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4001
|
-
/** Bulk action results. */
|
|
4002
|
-
results?: BulkDraftPostResult[];
|
|
4003
|
-
/** Bulk action metadata. */
|
|
4004
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4005
|
-
}
|
|
4006
|
-
interface BulkRejectDraftPostRequest {
|
|
4007
|
-
/**
|
|
4008
|
-
* Source post IDs.
|
|
4009
|
-
* @minSize 1
|
|
4010
|
-
* @maxSize 100
|
|
4011
|
-
* @format GUID
|
|
4012
|
-
*/
|
|
4013
|
-
postIds?: string[];
|
|
4014
|
-
/** Should full draft post be returned. */
|
|
4015
|
-
returnFullEntity?: boolean;
|
|
4016
|
-
}
|
|
4017
|
-
interface BulkRejectDraftPostResponse {
|
|
4018
|
-
/** Bulk action results. */
|
|
4019
|
-
results?: BulkDraftPostResult[];
|
|
4020
|
-
/** Bulk action metadata. */
|
|
4021
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4022
|
-
}
|
|
4023
|
-
interface RevertToUnpublishedRequest {
|
|
4024
|
-
/**
|
|
4025
|
-
* Source post ID.
|
|
4026
|
-
* @format GUID
|
|
4027
|
-
*/
|
|
4028
|
-
postId?: string;
|
|
4029
|
-
/**
|
|
4030
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4031
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4032
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4033
|
-
* @maxSize 10
|
|
4034
|
-
*/
|
|
4035
|
-
fieldsets?: FieldWithLiterals[];
|
|
4036
|
-
}
|
|
4037
|
-
interface RevertToUnpublishedResponse {
|
|
4038
|
-
/** Updated post draft. */
|
|
4039
|
-
draftPost?: DraftPost;
|
|
4040
|
-
}
|
|
4041
|
-
interface RejectDraftPostRequest {
|
|
4042
|
-
/**
|
|
4043
|
-
* Source post ID.
|
|
4044
|
-
* @format GUID
|
|
4045
|
-
*/
|
|
4046
|
-
postId?: string;
|
|
4047
|
-
/**
|
|
4048
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4049
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4050
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4051
|
-
* @maxSize 10
|
|
4052
|
-
*/
|
|
4053
|
-
fieldsets?: FieldWithLiterals[];
|
|
4054
|
-
}
|
|
4055
|
-
interface RejectDraftPostResponse {
|
|
4056
|
-
/** Draft post. */
|
|
4057
|
-
draftPost?: DraftPost;
|
|
4058
|
-
}
|
|
4059
|
-
interface ApproveDraftPostRequest {
|
|
4060
|
-
/**
|
|
4061
|
-
* Source post ID.
|
|
4062
|
-
* @format GUID
|
|
4063
|
-
*/
|
|
4064
|
-
postId?: string;
|
|
4065
|
-
/**
|
|
4066
|
-
* Scheduled publish date if should be not immediately published.
|
|
4067
|
-
* @maxLength 24
|
|
4068
|
-
*/
|
|
4069
|
-
scheduledPublishDate?: string | null;
|
|
4070
|
-
/**
|
|
4071
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4072
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4073
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4074
|
-
* @maxSize 10
|
|
4075
|
-
*/
|
|
4076
|
-
fieldsets?: FieldWithLiterals[];
|
|
4077
|
-
}
|
|
4078
|
-
interface ApproveDraftPostResponse {
|
|
4079
|
-
/** Updated post draft. */
|
|
4080
|
-
draftPost?: DraftPost;
|
|
4081
|
-
}
|
|
4082
|
-
interface MarkPostAsInModerationRequest {
|
|
4083
|
-
/**
|
|
4084
|
-
* Source post ID.
|
|
4085
|
-
* @maxLength 38
|
|
4086
|
-
*/
|
|
4087
|
-
postId?: string;
|
|
4088
|
-
/**
|
|
4089
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4090
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4091
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4092
|
-
* @maxSize 10
|
|
4093
|
-
*/
|
|
4094
|
-
fieldsets?: FieldWithLiterals[];
|
|
4095
|
-
}
|
|
4096
|
-
interface MarkPostAsInModerationResponse {
|
|
4097
|
-
/** Updated post draft. */
|
|
4098
|
-
draftPost?: DraftPost;
|
|
4099
|
-
}
|
|
4100
4115
|
|
|
4101
4116
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4102
4117
|
getUrl: (context: any) => string;
|
package/build/es/meta.mjs
CHANGED
|
@@ -3615,6 +3615,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
3615
3615
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
3616
3616
|
return ModerationStatusStatus2;
|
|
3617
3617
|
})(ModerationStatusStatus || {});
|
|
3618
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
3619
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
3620
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
3621
|
+
return TotalDraftPostsGroupingField2;
|
|
3622
|
+
})(TotalDraftPostsGroupingField || {});
|
|
3623
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3624
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3625
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3626
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3627
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3628
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
3629
|
+
return WebhookIdentityType2;
|
|
3630
|
+
})(WebhookIdentityType || {});
|
|
3618
3631
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
3619
3632
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
3620
3633
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -3654,19 +3667,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3654
3667
|
SortOrder2["DESC"] = "DESC";
|
|
3655
3668
|
return SortOrder2;
|
|
3656
3669
|
})(SortOrder || {});
|
|
3657
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3658
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3659
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3660
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3661
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3662
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
3663
|
-
return WebhookIdentityType2;
|
|
3664
|
-
})(WebhookIdentityType || {});
|
|
3665
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
3666
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
3667
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
3668
|
-
return TotalDraftPostsGroupingField2;
|
|
3669
|
-
})(TotalDraftPostsGroupingField || {});
|
|
3670
3670
|
|
|
3671
3671
|
// src/blog-v3-draft-draft-posts.meta.ts
|
|
3672
3672
|
function createDraftPost2() {
|