@wix/auto_sdk_blog_draft-posts 1.0.109 → 1.0.110
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
|
@@ -3407,6 +3407,10 @@ interface DraftPostTranslation {
|
|
|
3407
3407
|
/** Post URL. */
|
|
3408
3408
|
url?: string;
|
|
3409
3409
|
}
|
|
3410
|
+
interface InitialDraftPostsCopied {
|
|
3411
|
+
/** Number of draft posts copied. */
|
|
3412
|
+
count?: number;
|
|
3413
|
+
}
|
|
3410
3414
|
interface DraftCategoriesUpdated {
|
|
3411
3415
|
/**
|
|
3412
3416
|
* Draft post ID.
|
|
@@ -3445,200 +3449,6 @@ interface DraftTagsUpdated {
|
|
|
3445
3449
|
*/
|
|
3446
3450
|
previousTags?: string[];
|
|
3447
3451
|
}
|
|
3448
|
-
interface GetDraftPostTotalsRequest {
|
|
3449
|
-
/**
|
|
3450
|
-
* Group results by fields (defaults to grouping by status).
|
|
3451
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3452
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3453
|
-
* @maxSize 10
|
|
3454
|
-
*/
|
|
3455
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3456
|
-
/**
|
|
3457
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3458
|
-
* @format LANGUAGE_TAG
|
|
3459
|
-
*/
|
|
3460
|
-
language?: string | null;
|
|
3461
|
-
}
|
|
3462
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3463
|
-
/** Groups results by status. */
|
|
3464
|
-
STATUS = "STATUS",
|
|
3465
|
-
/** Groups results by language. */
|
|
3466
|
-
LANGUAGE = "LANGUAGE"
|
|
3467
|
-
}
|
|
3468
|
-
/** @enumType */
|
|
3469
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3470
|
-
interface GetDraftPostTotalsResponse {
|
|
3471
|
-
/** Draft post totals. */
|
|
3472
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3473
|
-
}
|
|
3474
|
-
interface TotalDraftPosts {
|
|
3475
|
-
/** Draft post totals in that group. */
|
|
3476
|
-
total?: number;
|
|
3477
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3478
|
-
status?: StatusWithLiterals;
|
|
3479
|
-
/**
|
|
3480
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3481
|
-
* @format LANGUAGE_TAG
|
|
3482
|
-
*/
|
|
3483
|
-
language?: string | null;
|
|
3484
|
-
}
|
|
3485
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3486
|
-
createdEvent?: EntityCreatedEvent;
|
|
3487
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3488
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3489
|
-
actionEvent?: ActionEvent;
|
|
3490
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3491
|
-
_id?: string;
|
|
3492
|
-
/**
|
|
3493
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3494
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3495
|
-
*/
|
|
3496
|
-
entityFqdn?: string;
|
|
3497
|
-
/**
|
|
3498
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3499
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3500
|
-
*/
|
|
3501
|
-
slug?: string;
|
|
3502
|
-
/** ID of the entity associated with the event. */
|
|
3503
|
-
entityId?: string;
|
|
3504
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3505
|
-
eventTime?: Date | null;
|
|
3506
|
-
/**
|
|
3507
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3508
|
-
* (for example, GDPR).
|
|
3509
|
-
*/
|
|
3510
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3511
|
-
/** If present, indicates the action that triggered the event. */
|
|
3512
|
-
originatedFrom?: string | null;
|
|
3513
|
-
/**
|
|
3514
|
-
* 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.
|
|
3515
|
-
* 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.
|
|
3516
|
-
*/
|
|
3517
|
-
entityEventSequence?: string | null;
|
|
3518
|
-
}
|
|
3519
|
-
/** @oneof */
|
|
3520
|
-
interface DomainEventBodyOneOf {
|
|
3521
|
-
createdEvent?: EntityCreatedEvent;
|
|
3522
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3523
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3524
|
-
actionEvent?: ActionEvent;
|
|
3525
|
-
}
|
|
3526
|
-
interface EntityCreatedEvent {
|
|
3527
|
-
entity?: string;
|
|
3528
|
-
}
|
|
3529
|
-
interface RestoreInfo {
|
|
3530
|
-
deletedDate?: Date | null;
|
|
3531
|
-
}
|
|
3532
|
-
interface EntityUpdatedEvent {
|
|
3533
|
-
/**
|
|
3534
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3535
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3536
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3537
|
-
*/
|
|
3538
|
-
currentEntity?: string;
|
|
3539
|
-
}
|
|
3540
|
-
interface EntityDeletedEvent {
|
|
3541
|
-
/** Entity that was deleted. */
|
|
3542
|
-
deletedEntity?: string | null;
|
|
3543
|
-
}
|
|
3544
|
-
interface ActionEvent {
|
|
3545
|
-
body?: string;
|
|
3546
|
-
}
|
|
3547
|
-
interface MessageEnvelope {
|
|
3548
|
-
/**
|
|
3549
|
-
* App instance ID.
|
|
3550
|
-
* @format GUID
|
|
3551
|
-
*/
|
|
3552
|
-
instanceId?: string | null;
|
|
3553
|
-
/**
|
|
3554
|
-
* Event type.
|
|
3555
|
-
* @maxLength 150
|
|
3556
|
-
*/
|
|
3557
|
-
eventType?: string;
|
|
3558
|
-
/** The identification type and identity data. */
|
|
3559
|
-
identity?: IdentificationData;
|
|
3560
|
-
/** Stringify payload. */
|
|
3561
|
-
data?: string;
|
|
3562
|
-
/** Details related to the account */
|
|
3563
|
-
accountInfo?: AccountInfo;
|
|
3564
|
-
}
|
|
3565
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3566
|
-
/**
|
|
3567
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3568
|
-
* @format GUID
|
|
3569
|
-
*/
|
|
3570
|
-
anonymousVisitorId?: string;
|
|
3571
|
-
/**
|
|
3572
|
-
* ID of a site visitor that has logged in to the site.
|
|
3573
|
-
* @format GUID
|
|
3574
|
-
*/
|
|
3575
|
-
memberId?: string;
|
|
3576
|
-
/**
|
|
3577
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3578
|
-
* @format GUID
|
|
3579
|
-
*/
|
|
3580
|
-
wixUserId?: string;
|
|
3581
|
-
/**
|
|
3582
|
-
* ID of an app.
|
|
3583
|
-
* @format GUID
|
|
3584
|
-
*/
|
|
3585
|
-
appId?: string;
|
|
3586
|
-
/** @readonly */
|
|
3587
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3588
|
-
}
|
|
3589
|
-
/** @oneof */
|
|
3590
|
-
interface IdentificationDataIdOneOf {
|
|
3591
|
-
/**
|
|
3592
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3593
|
-
* @format GUID
|
|
3594
|
-
*/
|
|
3595
|
-
anonymousVisitorId?: string;
|
|
3596
|
-
/**
|
|
3597
|
-
* ID of a site visitor that has logged in to the site.
|
|
3598
|
-
* @format GUID
|
|
3599
|
-
*/
|
|
3600
|
-
memberId?: string;
|
|
3601
|
-
/**
|
|
3602
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3603
|
-
* @format GUID
|
|
3604
|
-
*/
|
|
3605
|
-
wixUserId?: string;
|
|
3606
|
-
/**
|
|
3607
|
-
* ID of an app.
|
|
3608
|
-
* @format GUID
|
|
3609
|
-
*/
|
|
3610
|
-
appId?: string;
|
|
3611
|
-
}
|
|
3612
|
-
declare enum WebhookIdentityType {
|
|
3613
|
-
UNKNOWN = "UNKNOWN",
|
|
3614
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3615
|
-
MEMBER = "MEMBER",
|
|
3616
|
-
WIX_USER = "WIX_USER",
|
|
3617
|
-
APP = "APP"
|
|
3618
|
-
}
|
|
3619
|
-
/** @enumType */
|
|
3620
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3621
|
-
interface AccountInfo {
|
|
3622
|
-
/**
|
|
3623
|
-
* ID of the Wix account associated with the event.
|
|
3624
|
-
* @format GUID
|
|
3625
|
-
*/
|
|
3626
|
-
accountId?: string | null;
|
|
3627
|
-
/**
|
|
3628
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3629
|
-
* @format GUID
|
|
3630
|
-
*/
|
|
3631
|
-
parentAccountId?: string | null;
|
|
3632
|
-
/**
|
|
3633
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3634
|
-
* @format GUID
|
|
3635
|
-
*/
|
|
3636
|
-
siteId?: string | null;
|
|
3637
|
-
}
|
|
3638
|
-
interface InitialDraftPostsCopied {
|
|
3639
|
-
/** Number of draft posts copied. */
|
|
3640
|
-
count?: number;
|
|
3641
|
-
}
|
|
3642
3452
|
interface CreateDraftPostRequest {
|
|
3643
3453
|
/** Draft post to create. */
|
|
3644
3454
|
draftPost: DraftPost;
|
|
@@ -4288,152 +4098,195 @@ interface DraftPostCount {
|
|
|
4288
4098
|
/** Number of posts. */
|
|
4289
4099
|
postCount?: number;
|
|
4290
4100
|
}
|
|
4291
|
-
interface
|
|
4101
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4102
|
+
createdEvent?: EntityCreatedEvent;
|
|
4103
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4104
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4105
|
+
actionEvent?: ActionEvent;
|
|
4106
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
4107
|
+
_id?: string;
|
|
4292
4108
|
/**
|
|
4293
|
-
*
|
|
4294
|
-
*
|
|
4295
|
-
* @maxSize 100
|
|
4296
|
-
* @format GUID
|
|
4109
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
4110
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4297
4111
|
*/
|
|
4298
|
-
|
|
4299
|
-
/** Should full draft post be returned. */
|
|
4300
|
-
returnFullEntity?: boolean;
|
|
4301
|
-
}
|
|
4302
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4303
|
-
/** Bulk action results. */
|
|
4304
|
-
results?: BulkDraftPostResult[];
|
|
4305
|
-
/** Bulk action metadata. */
|
|
4306
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4307
|
-
}
|
|
4308
|
-
interface BulkRejectDraftPostRequest {
|
|
4112
|
+
entityFqdn?: string;
|
|
4309
4113
|
/**
|
|
4310
|
-
*
|
|
4311
|
-
*
|
|
4312
|
-
* @maxSize 100
|
|
4313
|
-
* @format GUID
|
|
4114
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
4115
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4314
4116
|
*/
|
|
4315
|
-
|
|
4316
|
-
/**
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
/** Bulk action results. */
|
|
4321
|
-
results?: BulkDraftPostResult[];
|
|
4322
|
-
/** Bulk action metadata. */
|
|
4323
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4324
|
-
}
|
|
4325
|
-
interface RevertToUnpublishedRequest {
|
|
4117
|
+
slug?: string;
|
|
4118
|
+
/** ID of the entity associated with the event. */
|
|
4119
|
+
entityId?: string;
|
|
4120
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
4121
|
+
eventTime?: Date | null;
|
|
4326
4122
|
/**
|
|
4327
|
-
*
|
|
4328
|
-
*
|
|
4123
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
4124
|
+
* (for example, GDPR).
|
|
4329
4125
|
*/
|
|
4330
|
-
|
|
4126
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
4127
|
+
/** If present, indicates the action that triggered the event. */
|
|
4128
|
+
originatedFrom?: string | null;
|
|
4331
4129
|
/**
|
|
4332
|
-
*
|
|
4333
|
-
*
|
|
4334
|
-
* @maxSize 10
|
|
4335
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4336
|
-
* @replacedBy fieldsets
|
|
4337
|
-
* @targetRemovalDate 2024-06-30
|
|
4130
|
+
* 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.
|
|
4131
|
+
* 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.
|
|
4338
4132
|
*/
|
|
4339
|
-
|
|
4133
|
+
entityEventSequence?: string | null;
|
|
4134
|
+
}
|
|
4135
|
+
/** @oneof */
|
|
4136
|
+
interface DomainEventBodyOneOf {
|
|
4137
|
+
createdEvent?: EntityCreatedEvent;
|
|
4138
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4139
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4140
|
+
actionEvent?: ActionEvent;
|
|
4141
|
+
}
|
|
4142
|
+
interface EntityCreatedEvent {
|
|
4143
|
+
entity?: string;
|
|
4144
|
+
}
|
|
4145
|
+
interface RestoreInfo {
|
|
4146
|
+
deletedDate?: Date | null;
|
|
4147
|
+
}
|
|
4148
|
+
interface EntityUpdatedEvent {
|
|
4340
4149
|
/**
|
|
4341
|
-
*
|
|
4342
|
-
*
|
|
4343
|
-
*
|
|
4344
|
-
* @maxSize 10
|
|
4150
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4151
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4152
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4345
4153
|
*/
|
|
4346
|
-
|
|
4154
|
+
currentEntity?: string;
|
|
4347
4155
|
}
|
|
4348
|
-
interface
|
|
4349
|
-
/**
|
|
4350
|
-
|
|
4156
|
+
interface EntityDeletedEvent {
|
|
4157
|
+
/** Entity that was deleted. */
|
|
4158
|
+
deletedEntity?: string | null;
|
|
4351
4159
|
}
|
|
4352
|
-
interface
|
|
4160
|
+
interface ActionEvent {
|
|
4161
|
+
body?: string;
|
|
4162
|
+
}
|
|
4163
|
+
interface MessageEnvelope {
|
|
4353
4164
|
/**
|
|
4354
|
-
*
|
|
4165
|
+
* App instance ID.
|
|
4355
4166
|
* @format GUID
|
|
4356
4167
|
*/
|
|
4357
|
-
|
|
4168
|
+
instanceId?: string | null;
|
|
4358
4169
|
/**
|
|
4359
|
-
*
|
|
4360
|
-
* @
|
|
4361
|
-
* @maxSize 10
|
|
4362
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4363
|
-
* @replacedBy fieldsets
|
|
4364
|
-
* @targetRemovalDate 2024-06-30
|
|
4170
|
+
* Event type.
|
|
4171
|
+
* @maxLength 150
|
|
4365
4172
|
*/
|
|
4366
|
-
|
|
4173
|
+
eventType?: string;
|
|
4174
|
+
/** The identification type and identity data. */
|
|
4175
|
+
identity?: IdentificationData;
|
|
4176
|
+
/** Stringify payload. */
|
|
4177
|
+
data?: string;
|
|
4178
|
+
/** Details related to the account */
|
|
4179
|
+
accountInfo?: AccountInfo;
|
|
4180
|
+
}
|
|
4181
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4367
4182
|
/**
|
|
4368
|
-
*
|
|
4369
|
-
*
|
|
4370
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4371
|
-
* @maxSize 10
|
|
4183
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4184
|
+
* @format GUID
|
|
4372
4185
|
*/
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4186
|
+
anonymousVisitorId?: string;
|
|
4187
|
+
/**
|
|
4188
|
+
* ID of a site visitor that has logged in to the site.
|
|
4189
|
+
* @format GUID
|
|
4190
|
+
*/
|
|
4191
|
+
memberId?: string;
|
|
4192
|
+
/**
|
|
4193
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4194
|
+
* @format GUID
|
|
4195
|
+
*/
|
|
4196
|
+
wixUserId?: string;
|
|
4197
|
+
/**
|
|
4198
|
+
* ID of an app.
|
|
4199
|
+
* @format GUID
|
|
4200
|
+
*/
|
|
4201
|
+
appId?: string;
|
|
4202
|
+
/** @readonly */
|
|
4203
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4378
4204
|
}
|
|
4379
|
-
|
|
4205
|
+
/** @oneof */
|
|
4206
|
+
interface IdentificationDataIdOneOf {
|
|
4380
4207
|
/**
|
|
4381
|
-
*
|
|
4208
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4382
4209
|
* @format GUID
|
|
4383
4210
|
*/
|
|
4384
|
-
|
|
4211
|
+
anonymousVisitorId?: string;
|
|
4385
4212
|
/**
|
|
4386
|
-
*
|
|
4387
|
-
* @
|
|
4213
|
+
* ID of a site visitor that has logged in to the site.
|
|
4214
|
+
* @format GUID
|
|
4388
4215
|
*/
|
|
4389
|
-
|
|
4216
|
+
memberId?: string;
|
|
4390
4217
|
/**
|
|
4391
|
-
*
|
|
4392
|
-
* @
|
|
4393
|
-
* @maxSize 10
|
|
4394
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4395
|
-
* @replacedBy fieldsets
|
|
4396
|
-
* @targetRemovalDate 2024-06-30
|
|
4218
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4219
|
+
* @format GUID
|
|
4397
4220
|
*/
|
|
4398
|
-
|
|
4221
|
+
wixUserId?: string;
|
|
4399
4222
|
/**
|
|
4400
|
-
*
|
|
4401
|
-
*
|
|
4402
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4403
|
-
* @maxSize 10
|
|
4223
|
+
* ID of an app.
|
|
4224
|
+
* @format GUID
|
|
4404
4225
|
*/
|
|
4405
|
-
|
|
4226
|
+
appId?: string;
|
|
4406
4227
|
}
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4228
|
+
declare enum WebhookIdentityType {
|
|
4229
|
+
UNKNOWN = "UNKNOWN",
|
|
4230
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4231
|
+
MEMBER = "MEMBER",
|
|
4232
|
+
WIX_USER = "WIX_USER",
|
|
4233
|
+
APP = "APP"
|
|
4410
4234
|
}
|
|
4411
|
-
|
|
4235
|
+
/** @enumType */
|
|
4236
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4237
|
+
interface AccountInfo {
|
|
4412
4238
|
/**
|
|
4413
|
-
*
|
|
4414
|
-
* @
|
|
4239
|
+
* ID of the Wix account associated with the event.
|
|
4240
|
+
* @format GUID
|
|
4415
4241
|
*/
|
|
4416
|
-
|
|
4242
|
+
accountId?: string | null;
|
|
4417
4243
|
/**
|
|
4418
|
-
*
|
|
4419
|
-
* @
|
|
4420
|
-
* @maxSize 10
|
|
4421
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4422
|
-
* @replacedBy fieldsets
|
|
4423
|
-
* @targetRemovalDate 2024-06-30
|
|
4244
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4245
|
+
* @format GUID
|
|
4424
4246
|
*/
|
|
4425
|
-
|
|
4247
|
+
parentAccountId?: string | null;
|
|
4426
4248
|
/**
|
|
4427
|
-
*
|
|
4428
|
-
*
|
|
4429
|
-
|
|
4249
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4250
|
+
* @format GUID
|
|
4251
|
+
*/
|
|
4252
|
+
siteId?: string | null;
|
|
4253
|
+
}
|
|
4254
|
+
interface GetDraftPostTotalsRequest {
|
|
4255
|
+
/**
|
|
4256
|
+
* Group results by fields (defaults to grouping by status).
|
|
4257
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4258
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4430
4259
|
* @maxSize 10
|
|
4431
4260
|
*/
|
|
4432
|
-
|
|
4261
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4262
|
+
/**
|
|
4263
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4264
|
+
* @format LANGUAGE_TAG
|
|
4265
|
+
*/
|
|
4266
|
+
language?: string | null;
|
|
4433
4267
|
}
|
|
4434
|
-
|
|
4435
|
-
/**
|
|
4436
|
-
|
|
4268
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4269
|
+
/** Groups results by status. */
|
|
4270
|
+
STATUS = "STATUS",
|
|
4271
|
+
/** Groups results by language. */
|
|
4272
|
+
LANGUAGE = "LANGUAGE"
|
|
4273
|
+
}
|
|
4274
|
+
/** @enumType */
|
|
4275
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4276
|
+
interface GetDraftPostTotalsResponse {
|
|
4277
|
+
/** Draft post totals. */
|
|
4278
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4279
|
+
}
|
|
4280
|
+
interface TotalDraftPosts {
|
|
4281
|
+
/** Draft post totals in that group. */
|
|
4282
|
+
total?: number;
|
|
4283
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4284
|
+
status?: StatusWithLiterals;
|
|
4285
|
+
/**
|
|
4286
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4287
|
+
* @format LANGUAGE_TAG
|
|
4288
|
+
*/
|
|
4289
|
+
language?: string | null;
|
|
4437
4290
|
}
|
|
4438
4291
|
interface TranslateDraftRequest {
|
|
4439
4292
|
/**
|
|
@@ -4527,6 +4380,153 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4527
4380
|
/** Updated draft post. */
|
|
4528
4381
|
draftPost?: DraftPost;
|
|
4529
4382
|
}
|
|
4383
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4384
|
+
/**
|
|
4385
|
+
* Source post IDs.
|
|
4386
|
+
* @minSize 1
|
|
4387
|
+
* @maxSize 100
|
|
4388
|
+
* @format GUID
|
|
4389
|
+
*/
|
|
4390
|
+
postIds?: string[];
|
|
4391
|
+
/** Should full draft post be returned. */
|
|
4392
|
+
returnFullEntity?: boolean;
|
|
4393
|
+
}
|
|
4394
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4395
|
+
/** Bulk action results. */
|
|
4396
|
+
results?: BulkDraftPostResult[];
|
|
4397
|
+
/** Bulk action metadata. */
|
|
4398
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4399
|
+
}
|
|
4400
|
+
interface BulkRejectDraftPostRequest {
|
|
4401
|
+
/**
|
|
4402
|
+
* Source post IDs.
|
|
4403
|
+
* @minSize 1
|
|
4404
|
+
* @maxSize 100
|
|
4405
|
+
* @format GUID
|
|
4406
|
+
*/
|
|
4407
|
+
postIds?: string[];
|
|
4408
|
+
/** Should full draft post be returned. */
|
|
4409
|
+
returnFullEntity?: boolean;
|
|
4410
|
+
}
|
|
4411
|
+
interface BulkRejectDraftPostResponse {
|
|
4412
|
+
/** Bulk action results. */
|
|
4413
|
+
results?: BulkDraftPostResult[];
|
|
4414
|
+
/** Bulk action metadata. */
|
|
4415
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4416
|
+
}
|
|
4417
|
+
interface RevertToUnpublishedRequest {
|
|
4418
|
+
/**
|
|
4419
|
+
* Source post ID.
|
|
4420
|
+
* @format GUID
|
|
4421
|
+
*/
|
|
4422
|
+
postId?: string;
|
|
4423
|
+
/**
|
|
4424
|
+
* List of draft post fields to be included in the response.
|
|
4425
|
+
* @internal
|
|
4426
|
+
* @maxSize 10
|
|
4427
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4428
|
+
* @replacedBy fieldsets
|
|
4429
|
+
* @targetRemovalDate 2024-06-30
|
|
4430
|
+
*/
|
|
4431
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4432
|
+
/**
|
|
4433
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4434
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4435
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4436
|
+
* @maxSize 10
|
|
4437
|
+
*/
|
|
4438
|
+
fieldsets?: FieldWithLiterals[];
|
|
4439
|
+
}
|
|
4440
|
+
interface RevertToUnpublishedResponse {
|
|
4441
|
+
/** Updated post draft. */
|
|
4442
|
+
draftPost?: DraftPost;
|
|
4443
|
+
}
|
|
4444
|
+
interface RejectDraftPostRequest {
|
|
4445
|
+
/**
|
|
4446
|
+
* Source post ID.
|
|
4447
|
+
* @format GUID
|
|
4448
|
+
*/
|
|
4449
|
+
postId?: string;
|
|
4450
|
+
/**
|
|
4451
|
+
* List of draft post fields to be included in the response.
|
|
4452
|
+
* @internal
|
|
4453
|
+
* @maxSize 10
|
|
4454
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4455
|
+
* @replacedBy fieldsets
|
|
4456
|
+
* @targetRemovalDate 2024-06-30
|
|
4457
|
+
*/
|
|
4458
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4459
|
+
/**
|
|
4460
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4461
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4462
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4463
|
+
* @maxSize 10
|
|
4464
|
+
*/
|
|
4465
|
+
fieldsets?: FieldWithLiterals[];
|
|
4466
|
+
}
|
|
4467
|
+
interface RejectDraftPostResponse {
|
|
4468
|
+
/** Draft post. */
|
|
4469
|
+
draftPost?: DraftPost;
|
|
4470
|
+
}
|
|
4471
|
+
interface ApproveDraftPostRequest {
|
|
4472
|
+
/**
|
|
4473
|
+
* Source post ID.
|
|
4474
|
+
* @format GUID
|
|
4475
|
+
*/
|
|
4476
|
+
postId?: string;
|
|
4477
|
+
/**
|
|
4478
|
+
* Scheduled publish date if should be not immediately published.
|
|
4479
|
+
* @maxLength 24
|
|
4480
|
+
*/
|
|
4481
|
+
scheduledPublishDate?: string | null;
|
|
4482
|
+
/**
|
|
4483
|
+
* List of draft post fields to be included in the response.
|
|
4484
|
+
* @internal
|
|
4485
|
+
* @maxSize 10
|
|
4486
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4487
|
+
* @replacedBy fieldsets
|
|
4488
|
+
* @targetRemovalDate 2024-06-30
|
|
4489
|
+
*/
|
|
4490
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4491
|
+
/**
|
|
4492
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4493
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4494
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4495
|
+
* @maxSize 10
|
|
4496
|
+
*/
|
|
4497
|
+
fieldsets?: FieldWithLiterals[];
|
|
4498
|
+
}
|
|
4499
|
+
interface ApproveDraftPostResponse {
|
|
4500
|
+
/** Updated post draft. */
|
|
4501
|
+
draftPost?: DraftPost;
|
|
4502
|
+
}
|
|
4503
|
+
interface MarkPostAsInModerationRequest {
|
|
4504
|
+
/**
|
|
4505
|
+
* Source post ID.
|
|
4506
|
+
* @maxLength 38
|
|
4507
|
+
*/
|
|
4508
|
+
postId?: string;
|
|
4509
|
+
/**
|
|
4510
|
+
* List of draft post fields to be included in the response.
|
|
4511
|
+
* @internal
|
|
4512
|
+
* @maxSize 10
|
|
4513
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4514
|
+
* @replacedBy fieldsets
|
|
4515
|
+
* @targetRemovalDate 2024-06-30
|
|
4516
|
+
*/
|
|
4517
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4518
|
+
/**
|
|
4519
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4520
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4521
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4522
|
+
* @maxSize 10
|
|
4523
|
+
*/
|
|
4524
|
+
fieldsets?: FieldWithLiterals[];
|
|
4525
|
+
}
|
|
4526
|
+
interface MarkPostAsInModerationResponse {
|
|
4527
|
+
/** Updated post draft. */
|
|
4528
|
+
draftPost?: DraftPost;
|
|
4529
|
+
}
|
|
4530
4530
|
interface BaseEventMetadata {
|
|
4531
4531
|
/**
|
|
4532
4532
|
* App instance ID.
|