@wix/auto_sdk_blog_draft-posts 1.0.112 → 1.0.113
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 +272 -272
- package/build/cjs/index.typings.js +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +274 -274
- package/build/cjs/meta.js +13 -13
- package/build/cjs/meta.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 +272 -272
- package/build/es/index.typings.mjs +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +274 -274
- package/build/es/meta.mjs +13 -13
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +301 -301
- package/build/internal/cjs/meta.d.ts +335 -335
- package/build/internal/es/index.typings.d.mts +301 -301
- package/build/internal/es/meta.d.mts +335 -335
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -3326,6 +3326,10 @@ interface DraftPostTranslation {
|
|
|
3326
3326
|
/** Post URL. */
|
|
3327
3327
|
url?: PageUrl;
|
|
3328
3328
|
}
|
|
3329
|
+
interface InitialDraftPostsCopied {
|
|
3330
|
+
/** Number of draft posts copied. */
|
|
3331
|
+
count?: number;
|
|
3332
|
+
}
|
|
3329
3333
|
interface DraftCategoriesUpdated {
|
|
3330
3334
|
/**
|
|
3331
3335
|
* Draft post ID.
|
|
@@ -3364,202 +3368,6 @@ interface DraftTagsUpdated {
|
|
|
3364
3368
|
*/
|
|
3365
3369
|
previousTags?: string[];
|
|
3366
3370
|
}
|
|
3367
|
-
interface GetDraftPostTotalsRequest {
|
|
3368
|
-
/**
|
|
3369
|
-
* Group results by fields (defaults to grouping by status).
|
|
3370
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3371
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3372
|
-
* @maxSize 10
|
|
3373
|
-
*/
|
|
3374
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3375
|
-
/**
|
|
3376
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3377
|
-
* @format LANGUAGE_TAG
|
|
3378
|
-
*/
|
|
3379
|
-
language?: string | null;
|
|
3380
|
-
}
|
|
3381
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3382
|
-
/** Groups results by status. */
|
|
3383
|
-
STATUS = "STATUS",
|
|
3384
|
-
/** Groups results by language. */
|
|
3385
|
-
LANGUAGE = "LANGUAGE"
|
|
3386
|
-
}
|
|
3387
|
-
/** @enumType */
|
|
3388
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3389
|
-
interface GetDraftPostTotalsResponse {
|
|
3390
|
-
/** Draft post totals. */
|
|
3391
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3392
|
-
}
|
|
3393
|
-
interface TotalDraftPosts {
|
|
3394
|
-
/** Draft post totals in that group. */
|
|
3395
|
-
total?: number;
|
|
3396
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3397
|
-
status?: StatusWithLiterals;
|
|
3398
|
-
/**
|
|
3399
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3400
|
-
* @format LANGUAGE_TAG
|
|
3401
|
-
*/
|
|
3402
|
-
language?: string | null;
|
|
3403
|
-
}
|
|
3404
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3405
|
-
createdEvent?: EntityCreatedEvent;
|
|
3406
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3407
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3408
|
-
actionEvent?: ActionEvent;
|
|
3409
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3410
|
-
id?: string;
|
|
3411
|
-
/**
|
|
3412
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3413
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3414
|
-
*/
|
|
3415
|
-
entityFqdn?: string;
|
|
3416
|
-
/**
|
|
3417
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3418
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3419
|
-
*/
|
|
3420
|
-
slug?: string;
|
|
3421
|
-
/** ID of the entity associated with the event. */
|
|
3422
|
-
entityId?: string;
|
|
3423
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3424
|
-
eventTime?: Date | null;
|
|
3425
|
-
/**
|
|
3426
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3427
|
-
* (for example, GDPR).
|
|
3428
|
-
*/
|
|
3429
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3430
|
-
/** If present, indicates the action that triggered the event. */
|
|
3431
|
-
originatedFrom?: string | null;
|
|
3432
|
-
/**
|
|
3433
|
-
* 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.
|
|
3434
|
-
* 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.
|
|
3435
|
-
*/
|
|
3436
|
-
entityEventSequence?: string | null;
|
|
3437
|
-
}
|
|
3438
|
-
/** @oneof */
|
|
3439
|
-
interface DomainEventBodyOneOf {
|
|
3440
|
-
createdEvent?: EntityCreatedEvent;
|
|
3441
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3442
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3443
|
-
actionEvent?: ActionEvent;
|
|
3444
|
-
}
|
|
3445
|
-
interface EntityCreatedEvent {
|
|
3446
|
-
entityAsJson?: string;
|
|
3447
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3448
|
-
restoreInfo?: RestoreInfo;
|
|
3449
|
-
}
|
|
3450
|
-
interface RestoreInfo {
|
|
3451
|
-
deletedDate?: Date | null;
|
|
3452
|
-
}
|
|
3453
|
-
interface EntityUpdatedEvent {
|
|
3454
|
-
/**
|
|
3455
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3456
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3457
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3458
|
-
*/
|
|
3459
|
-
currentEntityAsJson?: string;
|
|
3460
|
-
}
|
|
3461
|
-
interface EntityDeletedEvent {
|
|
3462
|
-
/** Entity that was deleted. */
|
|
3463
|
-
deletedEntityAsJson?: string | null;
|
|
3464
|
-
}
|
|
3465
|
-
interface ActionEvent {
|
|
3466
|
-
bodyAsJson?: string;
|
|
3467
|
-
}
|
|
3468
|
-
interface MessageEnvelope {
|
|
3469
|
-
/**
|
|
3470
|
-
* App instance ID.
|
|
3471
|
-
* @format GUID
|
|
3472
|
-
*/
|
|
3473
|
-
instanceId?: string | null;
|
|
3474
|
-
/**
|
|
3475
|
-
* Event type.
|
|
3476
|
-
* @maxLength 150
|
|
3477
|
-
*/
|
|
3478
|
-
eventType?: string;
|
|
3479
|
-
/** The identification type and identity data. */
|
|
3480
|
-
identity?: IdentificationData;
|
|
3481
|
-
/** Stringify payload. */
|
|
3482
|
-
data?: string;
|
|
3483
|
-
/** Details related to the account */
|
|
3484
|
-
accountInfo?: AccountInfo;
|
|
3485
|
-
}
|
|
3486
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3487
|
-
/**
|
|
3488
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3489
|
-
* @format GUID
|
|
3490
|
-
*/
|
|
3491
|
-
anonymousVisitorId?: string;
|
|
3492
|
-
/**
|
|
3493
|
-
* ID of a site visitor that has logged in to the site.
|
|
3494
|
-
* @format GUID
|
|
3495
|
-
*/
|
|
3496
|
-
memberId?: string;
|
|
3497
|
-
/**
|
|
3498
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3499
|
-
* @format GUID
|
|
3500
|
-
*/
|
|
3501
|
-
wixUserId?: string;
|
|
3502
|
-
/**
|
|
3503
|
-
* ID of an app.
|
|
3504
|
-
* @format GUID
|
|
3505
|
-
*/
|
|
3506
|
-
appId?: string;
|
|
3507
|
-
/** @readonly */
|
|
3508
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3509
|
-
}
|
|
3510
|
-
/** @oneof */
|
|
3511
|
-
interface IdentificationDataIdOneOf {
|
|
3512
|
-
/**
|
|
3513
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3514
|
-
* @format GUID
|
|
3515
|
-
*/
|
|
3516
|
-
anonymousVisitorId?: string;
|
|
3517
|
-
/**
|
|
3518
|
-
* ID of a site visitor that has logged in to the site.
|
|
3519
|
-
* @format GUID
|
|
3520
|
-
*/
|
|
3521
|
-
memberId?: string;
|
|
3522
|
-
/**
|
|
3523
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3524
|
-
* @format GUID
|
|
3525
|
-
*/
|
|
3526
|
-
wixUserId?: string;
|
|
3527
|
-
/**
|
|
3528
|
-
* ID of an app.
|
|
3529
|
-
* @format GUID
|
|
3530
|
-
*/
|
|
3531
|
-
appId?: string;
|
|
3532
|
-
}
|
|
3533
|
-
declare enum WebhookIdentityType {
|
|
3534
|
-
UNKNOWN = "UNKNOWN",
|
|
3535
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3536
|
-
MEMBER = "MEMBER",
|
|
3537
|
-
WIX_USER = "WIX_USER",
|
|
3538
|
-
APP = "APP"
|
|
3539
|
-
}
|
|
3540
|
-
/** @enumType */
|
|
3541
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3542
|
-
interface AccountInfo {
|
|
3543
|
-
/**
|
|
3544
|
-
* ID of the Wix account associated with the event.
|
|
3545
|
-
* @format GUID
|
|
3546
|
-
*/
|
|
3547
|
-
accountId?: string | null;
|
|
3548
|
-
/**
|
|
3549
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3550
|
-
* @format GUID
|
|
3551
|
-
*/
|
|
3552
|
-
parentAccountId?: string | null;
|
|
3553
|
-
/**
|
|
3554
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3555
|
-
* @format GUID
|
|
3556
|
-
*/
|
|
3557
|
-
siteId?: string | null;
|
|
3558
|
-
}
|
|
3559
|
-
interface InitialDraftPostsCopied {
|
|
3560
|
-
/** Number of draft posts copied. */
|
|
3561
|
-
count?: number;
|
|
3562
|
-
}
|
|
3563
3371
|
interface CreateDraftPostRequest {
|
|
3564
3372
|
/** Draft post to create. */
|
|
3565
3373
|
draftPost: DraftPost;
|
|
@@ -4140,116 +3948,197 @@ interface DraftPostCount {
|
|
|
4140
3948
|
/** Number of posts. */
|
|
4141
3949
|
postCount?: number;
|
|
4142
3950
|
}
|
|
4143
|
-
interface
|
|
3951
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3952
|
+
createdEvent?: EntityCreatedEvent;
|
|
3953
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3954
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3955
|
+
actionEvent?: ActionEvent;
|
|
3956
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3957
|
+
id?: string;
|
|
4144
3958
|
/**
|
|
4145
|
-
*
|
|
4146
|
-
*
|
|
4147
|
-
* @maxSize 100
|
|
4148
|
-
* @format GUID
|
|
3959
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3960
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4149
3961
|
*/
|
|
4150
|
-
|
|
4151
|
-
/** Should full draft post be returned. */
|
|
4152
|
-
returnFullEntity?: boolean;
|
|
4153
|
-
}
|
|
4154
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4155
|
-
/** Bulk action results. */
|
|
4156
|
-
results?: BulkDraftPostResult[];
|
|
4157
|
-
/** Bulk action metadata. */
|
|
4158
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4159
|
-
}
|
|
4160
|
-
interface BulkRejectDraftPostRequest {
|
|
3962
|
+
entityFqdn?: string;
|
|
4161
3963
|
/**
|
|
4162
|
-
*
|
|
4163
|
-
*
|
|
4164
|
-
* @maxSize 100
|
|
4165
|
-
* @format GUID
|
|
3964
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3965
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4166
3966
|
*/
|
|
4167
|
-
|
|
4168
|
-
/**
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
/** Bulk action results. */
|
|
4173
|
-
results?: BulkDraftPostResult[];
|
|
4174
|
-
/** Bulk action metadata. */
|
|
4175
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4176
|
-
}
|
|
4177
|
-
interface RevertToUnpublishedRequest {
|
|
3967
|
+
slug?: string;
|
|
3968
|
+
/** ID of the entity associated with the event. */
|
|
3969
|
+
entityId?: string;
|
|
3970
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3971
|
+
eventTime?: Date | null;
|
|
4178
3972
|
/**
|
|
4179
|
-
*
|
|
4180
|
-
*
|
|
3973
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3974
|
+
* (for example, GDPR).
|
|
4181
3975
|
*/
|
|
4182
|
-
|
|
3976
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3977
|
+
/** If present, indicates the action that triggered the event. */
|
|
3978
|
+
originatedFrom?: string | null;
|
|
4183
3979
|
/**
|
|
4184
|
-
*
|
|
4185
|
-
*
|
|
4186
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4187
|
-
* @maxSize 10
|
|
3980
|
+
* 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.
|
|
3981
|
+
* 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.
|
|
4188
3982
|
*/
|
|
4189
|
-
|
|
3983
|
+
entityEventSequence?: string | null;
|
|
4190
3984
|
}
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
3985
|
+
/** @oneof */
|
|
3986
|
+
interface DomainEventBodyOneOf {
|
|
3987
|
+
createdEvent?: EntityCreatedEvent;
|
|
3988
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3989
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3990
|
+
actionEvent?: ActionEvent;
|
|
4194
3991
|
}
|
|
4195
|
-
interface
|
|
3992
|
+
interface EntityCreatedEvent {
|
|
3993
|
+
entityAsJson?: string;
|
|
3994
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3995
|
+
restoreInfo?: RestoreInfo;
|
|
3996
|
+
}
|
|
3997
|
+
interface RestoreInfo {
|
|
3998
|
+
deletedDate?: Date | null;
|
|
3999
|
+
}
|
|
4000
|
+
interface EntityUpdatedEvent {
|
|
4196
4001
|
/**
|
|
4197
|
-
*
|
|
4002
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4003
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4004
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4005
|
+
*/
|
|
4006
|
+
currentEntityAsJson?: string;
|
|
4007
|
+
}
|
|
4008
|
+
interface EntityDeletedEvent {
|
|
4009
|
+
/** Entity that was deleted. */
|
|
4010
|
+
deletedEntityAsJson?: string | null;
|
|
4011
|
+
}
|
|
4012
|
+
interface ActionEvent {
|
|
4013
|
+
bodyAsJson?: string;
|
|
4014
|
+
}
|
|
4015
|
+
interface MessageEnvelope {
|
|
4016
|
+
/**
|
|
4017
|
+
* App instance ID.
|
|
4198
4018
|
* @format GUID
|
|
4199
4019
|
*/
|
|
4200
|
-
|
|
4020
|
+
instanceId?: string | null;
|
|
4201
4021
|
/**
|
|
4202
|
-
*
|
|
4203
|
-
*
|
|
4204
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4205
|
-
* @maxSize 10
|
|
4022
|
+
* Event type.
|
|
4023
|
+
* @maxLength 150
|
|
4206
4024
|
*/
|
|
4207
|
-
|
|
4025
|
+
eventType?: string;
|
|
4026
|
+
/** The identification type and identity data. */
|
|
4027
|
+
identity?: IdentificationData;
|
|
4028
|
+
/** Stringify payload. */
|
|
4029
|
+
data?: string;
|
|
4030
|
+
/** Details related to the account */
|
|
4031
|
+
accountInfo?: AccountInfo;
|
|
4208
4032
|
}
|
|
4209
|
-
interface
|
|
4210
|
-
/**
|
|
4211
|
-
|
|
4033
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4034
|
+
/**
|
|
4035
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4036
|
+
* @format GUID
|
|
4037
|
+
*/
|
|
4038
|
+
anonymousVisitorId?: string;
|
|
4039
|
+
/**
|
|
4040
|
+
* ID of a site visitor that has logged in to the site.
|
|
4041
|
+
* @format GUID
|
|
4042
|
+
*/
|
|
4043
|
+
memberId?: string;
|
|
4044
|
+
/**
|
|
4045
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4046
|
+
* @format GUID
|
|
4047
|
+
*/
|
|
4048
|
+
wixUserId?: string;
|
|
4049
|
+
/**
|
|
4050
|
+
* ID of an app.
|
|
4051
|
+
* @format GUID
|
|
4052
|
+
*/
|
|
4053
|
+
appId?: string;
|
|
4054
|
+
/** @readonly */
|
|
4055
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4212
4056
|
}
|
|
4213
|
-
|
|
4057
|
+
/** @oneof */
|
|
4058
|
+
interface IdentificationDataIdOneOf {
|
|
4214
4059
|
/**
|
|
4215
|
-
*
|
|
4060
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4216
4061
|
* @format GUID
|
|
4217
4062
|
*/
|
|
4218
|
-
|
|
4063
|
+
anonymousVisitorId?: string;
|
|
4219
4064
|
/**
|
|
4220
|
-
*
|
|
4221
|
-
* @
|
|
4065
|
+
* ID of a site visitor that has logged in to the site.
|
|
4066
|
+
* @format GUID
|
|
4222
4067
|
*/
|
|
4223
|
-
|
|
4068
|
+
memberId?: string;
|
|
4224
4069
|
/**
|
|
4225
|
-
*
|
|
4226
|
-
*
|
|
4227
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4228
|
-
* @maxSize 10
|
|
4070
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4071
|
+
* @format GUID
|
|
4229
4072
|
*/
|
|
4230
|
-
|
|
4073
|
+
wixUserId?: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* ID of an app.
|
|
4076
|
+
* @format GUID
|
|
4077
|
+
*/
|
|
4078
|
+
appId?: string;
|
|
4231
4079
|
}
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4080
|
+
declare enum WebhookIdentityType {
|
|
4081
|
+
UNKNOWN = "UNKNOWN",
|
|
4082
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4083
|
+
MEMBER = "MEMBER",
|
|
4084
|
+
WIX_USER = "WIX_USER",
|
|
4085
|
+
APP = "APP"
|
|
4235
4086
|
}
|
|
4236
|
-
|
|
4087
|
+
/** @enumType */
|
|
4088
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4089
|
+
interface AccountInfo {
|
|
4237
4090
|
/**
|
|
4238
|
-
*
|
|
4239
|
-
* @
|
|
4091
|
+
* ID of the Wix account associated with the event.
|
|
4092
|
+
* @format GUID
|
|
4240
4093
|
*/
|
|
4241
|
-
|
|
4094
|
+
accountId?: string | null;
|
|
4242
4095
|
/**
|
|
4243
|
-
*
|
|
4244
|
-
*
|
|
4245
|
-
|
|
4096
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4097
|
+
* @format GUID
|
|
4098
|
+
*/
|
|
4099
|
+
parentAccountId?: string | null;
|
|
4100
|
+
/**
|
|
4101
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4102
|
+
* @format GUID
|
|
4103
|
+
*/
|
|
4104
|
+
siteId?: string | null;
|
|
4105
|
+
}
|
|
4106
|
+
interface GetDraftPostTotalsRequest {
|
|
4107
|
+
/**
|
|
4108
|
+
* Group results by fields (defaults to grouping by status).
|
|
4109
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4110
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4246
4111
|
* @maxSize 10
|
|
4247
4112
|
*/
|
|
4248
|
-
|
|
4113
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4114
|
+
/**
|
|
4115
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4116
|
+
* @format LANGUAGE_TAG
|
|
4117
|
+
*/
|
|
4118
|
+
language?: string | null;
|
|
4249
4119
|
}
|
|
4250
|
-
|
|
4251
|
-
/**
|
|
4252
|
-
|
|
4120
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4121
|
+
/** Groups results by status. */
|
|
4122
|
+
STATUS = "STATUS",
|
|
4123
|
+
/** Groups results by language. */
|
|
4124
|
+
LANGUAGE = "LANGUAGE"
|
|
4125
|
+
}
|
|
4126
|
+
/** @enumType */
|
|
4127
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4128
|
+
interface GetDraftPostTotalsResponse {
|
|
4129
|
+
/** Draft post totals. */
|
|
4130
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4131
|
+
}
|
|
4132
|
+
interface TotalDraftPosts {
|
|
4133
|
+
/** Draft post totals in that group. */
|
|
4134
|
+
total?: number;
|
|
4135
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4136
|
+
status?: StatusWithLiterals;
|
|
4137
|
+
/**
|
|
4138
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4139
|
+
* @format LANGUAGE_TAG
|
|
4140
|
+
*/
|
|
4141
|
+
language?: string | null;
|
|
4253
4142
|
}
|
|
4254
4143
|
interface TranslateDraftRequest {
|
|
4255
4144
|
/**
|
|
@@ -4336,6 +4225,117 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4336
4225
|
/** Updated draft post. */
|
|
4337
4226
|
draftPost?: DraftPost;
|
|
4338
4227
|
}
|
|
4228
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4229
|
+
/**
|
|
4230
|
+
* Source post IDs.
|
|
4231
|
+
* @minSize 1
|
|
4232
|
+
* @maxSize 100
|
|
4233
|
+
* @format GUID
|
|
4234
|
+
*/
|
|
4235
|
+
postIds?: string[];
|
|
4236
|
+
/** Should full draft post be returned. */
|
|
4237
|
+
returnFullEntity?: boolean;
|
|
4238
|
+
}
|
|
4239
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4240
|
+
/** Bulk action results. */
|
|
4241
|
+
results?: BulkDraftPostResult[];
|
|
4242
|
+
/** Bulk action metadata. */
|
|
4243
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4244
|
+
}
|
|
4245
|
+
interface BulkRejectDraftPostRequest {
|
|
4246
|
+
/**
|
|
4247
|
+
* Source post IDs.
|
|
4248
|
+
* @minSize 1
|
|
4249
|
+
* @maxSize 100
|
|
4250
|
+
* @format GUID
|
|
4251
|
+
*/
|
|
4252
|
+
postIds?: string[];
|
|
4253
|
+
/** Should full draft post be returned. */
|
|
4254
|
+
returnFullEntity?: boolean;
|
|
4255
|
+
}
|
|
4256
|
+
interface BulkRejectDraftPostResponse {
|
|
4257
|
+
/** Bulk action results. */
|
|
4258
|
+
results?: BulkDraftPostResult[];
|
|
4259
|
+
/** Bulk action metadata. */
|
|
4260
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4261
|
+
}
|
|
4262
|
+
interface RevertToUnpublishedRequest {
|
|
4263
|
+
/**
|
|
4264
|
+
* Source post ID.
|
|
4265
|
+
* @format GUID
|
|
4266
|
+
*/
|
|
4267
|
+
postId?: string;
|
|
4268
|
+
/**
|
|
4269
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4270
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4271
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4272
|
+
* @maxSize 10
|
|
4273
|
+
*/
|
|
4274
|
+
fieldsets?: FieldWithLiterals[];
|
|
4275
|
+
}
|
|
4276
|
+
interface RevertToUnpublishedResponse {
|
|
4277
|
+
/** Updated post draft. */
|
|
4278
|
+
draftPost?: DraftPost;
|
|
4279
|
+
}
|
|
4280
|
+
interface RejectDraftPostRequest {
|
|
4281
|
+
/**
|
|
4282
|
+
* Source post ID.
|
|
4283
|
+
* @format GUID
|
|
4284
|
+
*/
|
|
4285
|
+
postId?: string;
|
|
4286
|
+
/**
|
|
4287
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4288
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4289
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4290
|
+
* @maxSize 10
|
|
4291
|
+
*/
|
|
4292
|
+
fieldsets?: FieldWithLiterals[];
|
|
4293
|
+
}
|
|
4294
|
+
interface RejectDraftPostResponse {
|
|
4295
|
+
/** Draft post. */
|
|
4296
|
+
draftPost?: DraftPost;
|
|
4297
|
+
}
|
|
4298
|
+
interface ApproveDraftPostRequest {
|
|
4299
|
+
/**
|
|
4300
|
+
* Source post ID.
|
|
4301
|
+
* @format GUID
|
|
4302
|
+
*/
|
|
4303
|
+
postId?: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* Scheduled publish date if should be not immediately published.
|
|
4306
|
+
* @maxLength 24
|
|
4307
|
+
*/
|
|
4308
|
+
scheduledPublishDate?: string | null;
|
|
4309
|
+
/**
|
|
4310
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4311
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4312
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4313
|
+
* @maxSize 10
|
|
4314
|
+
*/
|
|
4315
|
+
fieldsets?: FieldWithLiterals[];
|
|
4316
|
+
}
|
|
4317
|
+
interface ApproveDraftPostResponse {
|
|
4318
|
+
/** Updated post draft. */
|
|
4319
|
+
draftPost?: DraftPost;
|
|
4320
|
+
}
|
|
4321
|
+
interface MarkPostAsInModerationRequest {
|
|
4322
|
+
/**
|
|
4323
|
+
* Source post ID.
|
|
4324
|
+
* @maxLength 38
|
|
4325
|
+
*/
|
|
4326
|
+
postId?: string;
|
|
4327
|
+
/**
|
|
4328
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4329
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4330
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4331
|
+
* @maxSize 10
|
|
4332
|
+
*/
|
|
4333
|
+
fieldsets?: FieldWithLiterals[];
|
|
4334
|
+
}
|
|
4335
|
+
interface MarkPostAsInModerationResponse {
|
|
4336
|
+
/** Updated post draft. */
|
|
4337
|
+
draftPost?: DraftPost;
|
|
4338
|
+
}
|
|
4339
4339
|
|
|
4340
4340
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4341
4341
|
getUrl: (context: any) => string;
|
package/build/es/meta.mjs
CHANGED
|
@@ -2725,19 +2725,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
2725
2725
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
2726
2726
|
return ModerationStatusStatus2;
|
|
2727
2727
|
})(ModerationStatusStatus || {});
|
|
2728
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2729
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2730
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2731
|
-
return TotalDraftPostsGroupingField2;
|
|
2732
|
-
})(TotalDraftPostsGroupingField || {});
|
|
2733
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2734
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2735
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2736
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2737
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2738
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
2739
|
-
return WebhookIdentityType2;
|
|
2740
|
-
})(WebhookIdentityType || {});
|
|
2741
2728
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
2742
2729
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
2743
2730
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -2777,6 +2764,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
2777
2764
|
SortOrder2["DESC"] = "DESC";
|
|
2778
2765
|
return SortOrder2;
|
|
2779
2766
|
})(SortOrder || {});
|
|
2767
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2768
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2769
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2770
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2771
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2772
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
2773
|
+
return WebhookIdentityType2;
|
|
2774
|
+
})(WebhookIdentityType || {});
|
|
2775
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2776
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2777
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2778
|
+
return TotalDraftPostsGroupingField2;
|
|
2779
|
+
})(TotalDraftPostsGroupingField || {});
|
|
2780
2780
|
|
|
2781
2781
|
// src/blog-v3-draft-draft-posts.meta.ts
|
|
2782
2782
|
function createDraftPost2() {
|