@wix/auto_sdk_blog_draft-posts 1.0.120 → 1.0.121
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
|
@@ -3477,10 +3477,6 @@ interface DraftPostTranslation {
|
|
|
3477
3477
|
/** Post URL. */
|
|
3478
3478
|
url?: string;
|
|
3479
3479
|
}
|
|
3480
|
-
interface InitialDraftPostsCopied {
|
|
3481
|
-
/** Number of draft posts copied. */
|
|
3482
|
-
count?: number;
|
|
3483
|
-
}
|
|
3484
3480
|
interface DraftCategoriesUpdated {
|
|
3485
3481
|
/**
|
|
3486
3482
|
* Draft post ID.
|
|
@@ -3519,6 +3515,200 @@ interface DraftTagsUpdated {
|
|
|
3519
3515
|
*/
|
|
3520
3516
|
previousTags?: string[];
|
|
3521
3517
|
}
|
|
3518
|
+
interface GetDraftPostTotalsRequest {
|
|
3519
|
+
/**
|
|
3520
|
+
* Group results by fields (defaults to grouping by status).
|
|
3521
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3522
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3523
|
+
* @maxSize 10
|
|
3524
|
+
*/
|
|
3525
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3526
|
+
/**
|
|
3527
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3528
|
+
* @format LANGUAGE_TAG
|
|
3529
|
+
*/
|
|
3530
|
+
language?: string | null;
|
|
3531
|
+
}
|
|
3532
|
+
declare enum TotalDraftPostsGroupingField {
|
|
3533
|
+
/** Groups results by status. */
|
|
3534
|
+
STATUS = "STATUS",
|
|
3535
|
+
/** Groups results by language. */
|
|
3536
|
+
LANGUAGE = "LANGUAGE"
|
|
3537
|
+
}
|
|
3538
|
+
/** @enumType */
|
|
3539
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3540
|
+
interface GetDraftPostTotalsResponse {
|
|
3541
|
+
/** Draft post totals. */
|
|
3542
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
3543
|
+
}
|
|
3544
|
+
interface TotalDraftPosts {
|
|
3545
|
+
/** Draft post totals in that group. */
|
|
3546
|
+
total?: number;
|
|
3547
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3548
|
+
status?: StatusWithLiterals;
|
|
3549
|
+
/**
|
|
3550
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3551
|
+
* @format LANGUAGE_TAG
|
|
3552
|
+
*/
|
|
3553
|
+
language?: string | null;
|
|
3554
|
+
}
|
|
3555
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3556
|
+
createdEvent?: EntityCreatedEvent;
|
|
3557
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3558
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3559
|
+
actionEvent?: ActionEvent;
|
|
3560
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3561
|
+
_id?: string;
|
|
3562
|
+
/**
|
|
3563
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3564
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3565
|
+
*/
|
|
3566
|
+
entityFqdn?: string;
|
|
3567
|
+
/**
|
|
3568
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3569
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3570
|
+
*/
|
|
3571
|
+
slug?: string;
|
|
3572
|
+
/** ID of the entity associated with the event. */
|
|
3573
|
+
entityId?: string;
|
|
3574
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3575
|
+
eventTime?: Date | null;
|
|
3576
|
+
/**
|
|
3577
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3578
|
+
* (for example, GDPR).
|
|
3579
|
+
*/
|
|
3580
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3581
|
+
/** If present, indicates the action that triggered the event. */
|
|
3582
|
+
originatedFrom?: string | null;
|
|
3583
|
+
/**
|
|
3584
|
+
* 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.
|
|
3585
|
+
* 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.
|
|
3586
|
+
*/
|
|
3587
|
+
entityEventSequence?: string | null;
|
|
3588
|
+
}
|
|
3589
|
+
/** @oneof */
|
|
3590
|
+
interface DomainEventBodyOneOf {
|
|
3591
|
+
createdEvent?: EntityCreatedEvent;
|
|
3592
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3593
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3594
|
+
actionEvent?: ActionEvent;
|
|
3595
|
+
}
|
|
3596
|
+
interface EntityCreatedEvent {
|
|
3597
|
+
entity?: string;
|
|
3598
|
+
}
|
|
3599
|
+
interface RestoreInfo {
|
|
3600
|
+
deletedDate?: Date | null;
|
|
3601
|
+
}
|
|
3602
|
+
interface EntityUpdatedEvent {
|
|
3603
|
+
/**
|
|
3604
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3605
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3606
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3607
|
+
*/
|
|
3608
|
+
currentEntity?: string;
|
|
3609
|
+
}
|
|
3610
|
+
interface EntityDeletedEvent {
|
|
3611
|
+
/** Entity that was deleted. */
|
|
3612
|
+
deletedEntity?: string | null;
|
|
3613
|
+
}
|
|
3614
|
+
interface ActionEvent {
|
|
3615
|
+
body?: string;
|
|
3616
|
+
}
|
|
3617
|
+
interface MessageEnvelope {
|
|
3618
|
+
/**
|
|
3619
|
+
* App instance ID.
|
|
3620
|
+
* @format GUID
|
|
3621
|
+
*/
|
|
3622
|
+
instanceId?: string | null;
|
|
3623
|
+
/**
|
|
3624
|
+
* Event type.
|
|
3625
|
+
* @maxLength 150
|
|
3626
|
+
*/
|
|
3627
|
+
eventType?: string;
|
|
3628
|
+
/** The identification type and identity data. */
|
|
3629
|
+
identity?: IdentificationData;
|
|
3630
|
+
/** Stringify payload. */
|
|
3631
|
+
data?: string;
|
|
3632
|
+
/** Details related to the account */
|
|
3633
|
+
accountInfo?: AccountInfo;
|
|
3634
|
+
}
|
|
3635
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3636
|
+
/**
|
|
3637
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3638
|
+
* @format GUID
|
|
3639
|
+
*/
|
|
3640
|
+
anonymousVisitorId?: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* ID of a site visitor that has logged in to the site.
|
|
3643
|
+
* @format GUID
|
|
3644
|
+
*/
|
|
3645
|
+
memberId?: string;
|
|
3646
|
+
/**
|
|
3647
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3648
|
+
* @format GUID
|
|
3649
|
+
*/
|
|
3650
|
+
wixUserId?: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* ID of an app.
|
|
3653
|
+
* @format GUID
|
|
3654
|
+
*/
|
|
3655
|
+
appId?: string;
|
|
3656
|
+
/** @readonly */
|
|
3657
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3658
|
+
}
|
|
3659
|
+
/** @oneof */
|
|
3660
|
+
interface IdentificationDataIdOneOf {
|
|
3661
|
+
/**
|
|
3662
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3663
|
+
* @format GUID
|
|
3664
|
+
*/
|
|
3665
|
+
anonymousVisitorId?: string;
|
|
3666
|
+
/**
|
|
3667
|
+
* ID of a site visitor that has logged in to the site.
|
|
3668
|
+
* @format GUID
|
|
3669
|
+
*/
|
|
3670
|
+
memberId?: string;
|
|
3671
|
+
/**
|
|
3672
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3673
|
+
* @format GUID
|
|
3674
|
+
*/
|
|
3675
|
+
wixUserId?: string;
|
|
3676
|
+
/**
|
|
3677
|
+
* ID of an app.
|
|
3678
|
+
* @format GUID
|
|
3679
|
+
*/
|
|
3680
|
+
appId?: string;
|
|
3681
|
+
}
|
|
3682
|
+
declare enum WebhookIdentityType {
|
|
3683
|
+
UNKNOWN = "UNKNOWN",
|
|
3684
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3685
|
+
MEMBER = "MEMBER",
|
|
3686
|
+
WIX_USER = "WIX_USER",
|
|
3687
|
+
APP = "APP"
|
|
3688
|
+
}
|
|
3689
|
+
/** @enumType */
|
|
3690
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3691
|
+
interface AccountInfo {
|
|
3692
|
+
/**
|
|
3693
|
+
* ID of the Wix account associated with the event.
|
|
3694
|
+
* @format GUID
|
|
3695
|
+
*/
|
|
3696
|
+
accountId?: string | null;
|
|
3697
|
+
/**
|
|
3698
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3699
|
+
* @format GUID
|
|
3700
|
+
*/
|
|
3701
|
+
parentAccountId?: string | null;
|
|
3702
|
+
/**
|
|
3703
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3704
|
+
* @format GUID
|
|
3705
|
+
*/
|
|
3706
|
+
siteId?: string | null;
|
|
3707
|
+
}
|
|
3708
|
+
interface InitialDraftPostsCopied {
|
|
3709
|
+
/** Number of draft posts copied. */
|
|
3710
|
+
count?: number;
|
|
3711
|
+
}
|
|
3522
3712
|
interface CreateDraftPostRequest {
|
|
3523
3713
|
/** Draft post to create. */
|
|
3524
3714
|
draftPost: DraftPost;
|
|
@@ -4168,195 +4358,152 @@ interface DraftPostCount {
|
|
|
4168
4358
|
/** Number of posts. */
|
|
4169
4359
|
postCount?: number;
|
|
4170
4360
|
}
|
|
4171
|
-
interface
|
|
4172
|
-
createdEvent?: EntityCreatedEvent;
|
|
4173
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4174
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4175
|
-
actionEvent?: ActionEvent;
|
|
4176
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
4177
|
-
_id?: string;
|
|
4361
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4178
4362
|
/**
|
|
4179
|
-
*
|
|
4180
|
-
*
|
|
4363
|
+
* Source post IDs.
|
|
4364
|
+
* @minSize 1
|
|
4365
|
+
* @maxSize 100
|
|
4366
|
+
* @format GUID
|
|
4181
4367
|
*/
|
|
4182
|
-
|
|
4368
|
+
postIds?: string[];
|
|
4369
|
+
/** Should full draft post be returned. */
|
|
4370
|
+
returnFullEntity?: boolean;
|
|
4371
|
+
}
|
|
4372
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4373
|
+
/** Bulk action results. */
|
|
4374
|
+
results?: BulkDraftPostResult[];
|
|
4375
|
+
/** Bulk action metadata. */
|
|
4376
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4377
|
+
}
|
|
4378
|
+
interface BulkRejectDraftPostRequest {
|
|
4183
4379
|
/**
|
|
4184
|
-
*
|
|
4185
|
-
*
|
|
4380
|
+
* Source post IDs.
|
|
4381
|
+
* @minSize 1
|
|
4382
|
+
* @maxSize 100
|
|
4383
|
+
* @format GUID
|
|
4186
4384
|
*/
|
|
4187
|
-
|
|
4188
|
-
/**
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4385
|
+
postIds?: string[];
|
|
4386
|
+
/** Should full draft post be returned. */
|
|
4387
|
+
returnFullEntity?: boolean;
|
|
4388
|
+
}
|
|
4389
|
+
interface BulkRejectDraftPostResponse {
|
|
4390
|
+
/** Bulk action results. */
|
|
4391
|
+
results?: BulkDraftPostResult[];
|
|
4392
|
+
/** Bulk action metadata. */
|
|
4393
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4394
|
+
}
|
|
4395
|
+
interface RevertToUnpublishedRequest {
|
|
4192
4396
|
/**
|
|
4193
|
-
*
|
|
4194
|
-
*
|
|
4397
|
+
* Source post ID.
|
|
4398
|
+
* @format GUID
|
|
4195
4399
|
*/
|
|
4196
|
-
|
|
4197
|
-
/** If present, indicates the action that triggered the event. */
|
|
4198
|
-
originatedFrom?: string | null;
|
|
4400
|
+
postId?: string;
|
|
4199
4401
|
/**
|
|
4200
|
-
*
|
|
4201
|
-
*
|
|
4402
|
+
* List of draft post fields to be included in the response.
|
|
4403
|
+
* @internal
|
|
4404
|
+
* @maxSize 10
|
|
4405
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4406
|
+
* @replacedBy fieldsets
|
|
4407
|
+
* @targetRemovalDate 2024-06-30
|
|
4202
4408
|
*/
|
|
4203
|
-
|
|
4204
|
-
}
|
|
4205
|
-
/** @oneof */
|
|
4206
|
-
interface DomainEventBodyOneOf {
|
|
4207
|
-
createdEvent?: EntityCreatedEvent;
|
|
4208
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4209
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4210
|
-
actionEvent?: ActionEvent;
|
|
4211
|
-
}
|
|
4212
|
-
interface EntityCreatedEvent {
|
|
4213
|
-
entity?: string;
|
|
4214
|
-
}
|
|
4215
|
-
interface RestoreInfo {
|
|
4216
|
-
deletedDate?: Date | null;
|
|
4217
|
-
}
|
|
4218
|
-
interface EntityUpdatedEvent {
|
|
4409
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4219
4410
|
/**
|
|
4220
|
-
*
|
|
4221
|
-
*
|
|
4222
|
-
*
|
|
4411
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4412
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4413
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4414
|
+
* @maxSize 10
|
|
4223
4415
|
*/
|
|
4224
|
-
|
|
4225
|
-
}
|
|
4226
|
-
interface EntityDeletedEvent {
|
|
4227
|
-
/** Entity that was deleted. */
|
|
4228
|
-
deletedEntity?: string | null;
|
|
4229
|
-
}
|
|
4230
|
-
interface ActionEvent {
|
|
4231
|
-
body?: string;
|
|
4416
|
+
fieldsets?: FieldWithLiterals[];
|
|
4232
4417
|
}
|
|
4233
|
-
interface
|
|
4234
|
-
/**
|
|
4235
|
-
|
|
4236
|
-
* @format GUID
|
|
4237
|
-
*/
|
|
4238
|
-
instanceId?: string | null;
|
|
4239
|
-
/**
|
|
4240
|
-
* Event type.
|
|
4241
|
-
* @maxLength 150
|
|
4242
|
-
*/
|
|
4243
|
-
eventType?: string;
|
|
4244
|
-
/** The identification type and identity data. */
|
|
4245
|
-
identity?: IdentificationData;
|
|
4246
|
-
/** Stringify payload. */
|
|
4247
|
-
data?: string;
|
|
4248
|
-
/** Details related to the account */
|
|
4249
|
-
accountInfo?: AccountInfo;
|
|
4418
|
+
interface RevertToUnpublishedResponse {
|
|
4419
|
+
/** Updated post draft. */
|
|
4420
|
+
draftPost?: DraftPost;
|
|
4250
4421
|
}
|
|
4251
|
-
interface
|
|
4252
|
-
/**
|
|
4253
|
-
* ID of a site visitor that has not logged in to the site.
|
|
4254
|
-
* @format GUID
|
|
4255
|
-
*/
|
|
4256
|
-
anonymousVisitorId?: string;
|
|
4422
|
+
interface RejectDraftPostRequest {
|
|
4257
4423
|
/**
|
|
4258
|
-
*
|
|
4424
|
+
* Source post ID.
|
|
4259
4425
|
* @format GUID
|
|
4260
4426
|
*/
|
|
4261
|
-
|
|
4427
|
+
postId?: string;
|
|
4262
4428
|
/**
|
|
4263
|
-
*
|
|
4264
|
-
* @
|
|
4429
|
+
* List of draft post fields to be included in the response.
|
|
4430
|
+
* @internal
|
|
4431
|
+
* @maxSize 10
|
|
4432
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4433
|
+
* @replacedBy fieldsets
|
|
4434
|
+
* @targetRemovalDate 2024-06-30
|
|
4265
4435
|
*/
|
|
4266
|
-
|
|
4436
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4267
4437
|
/**
|
|
4268
|
-
*
|
|
4269
|
-
*
|
|
4438
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4439
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4440
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4441
|
+
* @maxSize 10
|
|
4270
4442
|
*/
|
|
4271
|
-
|
|
4272
|
-
/** @readonly */
|
|
4273
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4443
|
+
fieldsets?: FieldWithLiterals[];
|
|
4274
4444
|
}
|
|
4275
|
-
|
|
4276
|
-
|
|
4445
|
+
interface RejectDraftPostResponse {
|
|
4446
|
+
/** Draft post. */
|
|
4447
|
+
draftPost?: DraftPost;
|
|
4448
|
+
}
|
|
4449
|
+
interface ApproveDraftPostRequest {
|
|
4277
4450
|
/**
|
|
4278
|
-
*
|
|
4451
|
+
* Source post ID.
|
|
4279
4452
|
* @format GUID
|
|
4280
4453
|
*/
|
|
4281
|
-
|
|
4454
|
+
postId?: string;
|
|
4282
4455
|
/**
|
|
4283
|
-
*
|
|
4284
|
-
* @
|
|
4456
|
+
* Scheduled publish date if should be not immediately published.
|
|
4457
|
+
* @maxLength 24
|
|
4285
4458
|
*/
|
|
4286
|
-
|
|
4459
|
+
scheduledPublishDate?: string | null;
|
|
4287
4460
|
/**
|
|
4288
|
-
*
|
|
4289
|
-
* @
|
|
4461
|
+
* List of draft post fields to be included in the response.
|
|
4462
|
+
* @internal
|
|
4463
|
+
* @maxSize 10
|
|
4464
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4465
|
+
* @replacedBy fieldsets
|
|
4466
|
+
* @targetRemovalDate 2024-06-30
|
|
4290
4467
|
*/
|
|
4291
|
-
|
|
4468
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4292
4469
|
/**
|
|
4293
|
-
*
|
|
4294
|
-
*
|
|
4470
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4471
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4472
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4473
|
+
* @maxSize 10
|
|
4295
4474
|
*/
|
|
4296
|
-
|
|
4475
|
+
fieldsets?: FieldWithLiterals[];
|
|
4297
4476
|
}
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
MEMBER = "MEMBER",
|
|
4302
|
-
WIX_USER = "WIX_USER",
|
|
4303
|
-
APP = "APP"
|
|
4477
|
+
interface ApproveDraftPostResponse {
|
|
4478
|
+
/** Updated post draft. */
|
|
4479
|
+
draftPost?: DraftPost;
|
|
4304
4480
|
}
|
|
4305
|
-
|
|
4306
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4307
|
-
interface AccountInfo {
|
|
4308
|
-
/**
|
|
4309
|
-
* ID of the Wix account associated with the event.
|
|
4310
|
-
* @format GUID
|
|
4311
|
-
*/
|
|
4312
|
-
accountId?: string | null;
|
|
4313
|
-
/**
|
|
4314
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4315
|
-
* @format GUID
|
|
4316
|
-
*/
|
|
4317
|
-
parentAccountId?: string | null;
|
|
4481
|
+
interface MarkPostAsInModerationRequest {
|
|
4318
4482
|
/**
|
|
4319
|
-
*
|
|
4320
|
-
* @
|
|
4483
|
+
* Source post ID.
|
|
4484
|
+
* @maxLength 38
|
|
4321
4485
|
*/
|
|
4322
|
-
|
|
4323
|
-
}
|
|
4324
|
-
interface GetDraftPostTotalsRequest {
|
|
4486
|
+
postId?: string;
|
|
4325
4487
|
/**
|
|
4326
|
-
*
|
|
4327
|
-
*
|
|
4328
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4488
|
+
* List of draft post fields to be included in the response.
|
|
4489
|
+
* @internal
|
|
4329
4490
|
* @maxSize 10
|
|
4491
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4492
|
+
* @replacedBy fieldsets
|
|
4493
|
+
* @targetRemovalDate 2024-06-30
|
|
4330
4494
|
*/
|
|
4331
|
-
|
|
4495
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4332
4496
|
/**
|
|
4333
|
-
*
|
|
4334
|
-
*
|
|
4497
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4498
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4499
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4500
|
+
* @maxSize 10
|
|
4335
4501
|
*/
|
|
4336
|
-
|
|
4337
|
-
}
|
|
4338
|
-
declare enum TotalDraftPostsGroupingField {
|
|
4339
|
-
/** Groups results by status. */
|
|
4340
|
-
STATUS = "STATUS",
|
|
4341
|
-
/** Groups results by language. */
|
|
4342
|
-
LANGUAGE = "LANGUAGE"
|
|
4343
|
-
}
|
|
4344
|
-
/** @enumType */
|
|
4345
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4346
|
-
interface GetDraftPostTotalsResponse {
|
|
4347
|
-
/** Draft post totals. */
|
|
4348
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
4502
|
+
fieldsets?: FieldWithLiterals[];
|
|
4349
4503
|
}
|
|
4350
|
-
interface
|
|
4351
|
-
/**
|
|
4352
|
-
|
|
4353
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4354
|
-
status?: StatusWithLiterals;
|
|
4355
|
-
/**
|
|
4356
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4357
|
-
* @format LANGUAGE_TAG
|
|
4358
|
-
*/
|
|
4359
|
-
language?: string | null;
|
|
4504
|
+
interface MarkPostAsInModerationResponse {
|
|
4505
|
+
/** Updated post draft. */
|
|
4506
|
+
draftPost?: DraftPost;
|
|
4360
4507
|
}
|
|
4361
4508
|
interface TranslateDraftRequest {
|
|
4362
4509
|
/**
|
|
@@ -4450,153 +4597,6 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4450
4597
|
/** Updated draft post. */
|
|
4451
4598
|
draftPost?: DraftPost;
|
|
4452
4599
|
}
|
|
4453
|
-
interface BulkRevertToUnpublishedRequest {
|
|
4454
|
-
/**
|
|
4455
|
-
* Source post IDs.
|
|
4456
|
-
* @minSize 1
|
|
4457
|
-
* @maxSize 100
|
|
4458
|
-
* @format GUID
|
|
4459
|
-
*/
|
|
4460
|
-
postIds?: string[];
|
|
4461
|
-
/** Should full draft post be returned. */
|
|
4462
|
-
returnFullEntity?: boolean;
|
|
4463
|
-
}
|
|
4464
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4465
|
-
/** Bulk action results. */
|
|
4466
|
-
results?: BulkDraftPostResult[];
|
|
4467
|
-
/** Bulk action metadata. */
|
|
4468
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4469
|
-
}
|
|
4470
|
-
interface BulkRejectDraftPostRequest {
|
|
4471
|
-
/**
|
|
4472
|
-
* Source post IDs.
|
|
4473
|
-
* @minSize 1
|
|
4474
|
-
* @maxSize 100
|
|
4475
|
-
* @format GUID
|
|
4476
|
-
*/
|
|
4477
|
-
postIds?: string[];
|
|
4478
|
-
/** Should full draft post be returned. */
|
|
4479
|
-
returnFullEntity?: boolean;
|
|
4480
|
-
}
|
|
4481
|
-
interface BulkRejectDraftPostResponse {
|
|
4482
|
-
/** Bulk action results. */
|
|
4483
|
-
results?: BulkDraftPostResult[];
|
|
4484
|
-
/** Bulk action metadata. */
|
|
4485
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4486
|
-
}
|
|
4487
|
-
interface RevertToUnpublishedRequest {
|
|
4488
|
-
/**
|
|
4489
|
-
* Source post ID.
|
|
4490
|
-
* @format GUID
|
|
4491
|
-
*/
|
|
4492
|
-
postId?: string;
|
|
4493
|
-
/**
|
|
4494
|
-
* List of draft post fields to be included in the response.
|
|
4495
|
-
* @internal
|
|
4496
|
-
* @maxSize 10
|
|
4497
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4498
|
-
* @replacedBy fieldsets
|
|
4499
|
-
* @targetRemovalDate 2024-06-30
|
|
4500
|
-
*/
|
|
4501
|
-
fieldsToInclude?: FieldWithLiterals[];
|
|
4502
|
-
/**
|
|
4503
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4504
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4505
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4506
|
-
* @maxSize 10
|
|
4507
|
-
*/
|
|
4508
|
-
fieldsets?: FieldWithLiterals[];
|
|
4509
|
-
}
|
|
4510
|
-
interface RevertToUnpublishedResponse {
|
|
4511
|
-
/** Updated post draft. */
|
|
4512
|
-
draftPost?: DraftPost;
|
|
4513
|
-
}
|
|
4514
|
-
interface RejectDraftPostRequest {
|
|
4515
|
-
/**
|
|
4516
|
-
* Source post ID.
|
|
4517
|
-
* @format GUID
|
|
4518
|
-
*/
|
|
4519
|
-
postId?: string;
|
|
4520
|
-
/**
|
|
4521
|
-
* List of draft post fields to be included in the response.
|
|
4522
|
-
* @internal
|
|
4523
|
-
* @maxSize 10
|
|
4524
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4525
|
-
* @replacedBy fieldsets
|
|
4526
|
-
* @targetRemovalDate 2024-06-30
|
|
4527
|
-
*/
|
|
4528
|
-
fieldsToInclude?: FieldWithLiterals[];
|
|
4529
|
-
/**
|
|
4530
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4531
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4532
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4533
|
-
* @maxSize 10
|
|
4534
|
-
*/
|
|
4535
|
-
fieldsets?: FieldWithLiterals[];
|
|
4536
|
-
}
|
|
4537
|
-
interface RejectDraftPostResponse {
|
|
4538
|
-
/** Draft post. */
|
|
4539
|
-
draftPost?: DraftPost;
|
|
4540
|
-
}
|
|
4541
|
-
interface ApproveDraftPostRequest {
|
|
4542
|
-
/**
|
|
4543
|
-
* Source post ID.
|
|
4544
|
-
* @format GUID
|
|
4545
|
-
*/
|
|
4546
|
-
postId?: string;
|
|
4547
|
-
/**
|
|
4548
|
-
* Scheduled publish date if should be not immediately published.
|
|
4549
|
-
* @maxLength 24
|
|
4550
|
-
*/
|
|
4551
|
-
scheduledPublishDate?: string | null;
|
|
4552
|
-
/**
|
|
4553
|
-
* List of draft post fields to be included in the response.
|
|
4554
|
-
* @internal
|
|
4555
|
-
* @maxSize 10
|
|
4556
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4557
|
-
* @replacedBy fieldsets
|
|
4558
|
-
* @targetRemovalDate 2024-06-30
|
|
4559
|
-
*/
|
|
4560
|
-
fieldsToInclude?: FieldWithLiterals[];
|
|
4561
|
-
/**
|
|
4562
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4563
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4564
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4565
|
-
* @maxSize 10
|
|
4566
|
-
*/
|
|
4567
|
-
fieldsets?: FieldWithLiterals[];
|
|
4568
|
-
}
|
|
4569
|
-
interface ApproveDraftPostResponse {
|
|
4570
|
-
/** Updated post draft. */
|
|
4571
|
-
draftPost?: DraftPost;
|
|
4572
|
-
}
|
|
4573
|
-
interface MarkPostAsInModerationRequest {
|
|
4574
|
-
/**
|
|
4575
|
-
* Source post ID.
|
|
4576
|
-
* @maxLength 38
|
|
4577
|
-
*/
|
|
4578
|
-
postId?: string;
|
|
4579
|
-
/**
|
|
4580
|
-
* List of draft post fields to be included in the response.
|
|
4581
|
-
* @internal
|
|
4582
|
-
* @maxSize 10
|
|
4583
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4584
|
-
* @replacedBy fieldsets
|
|
4585
|
-
* @targetRemovalDate 2024-06-30
|
|
4586
|
-
*/
|
|
4587
|
-
fieldsToInclude?: FieldWithLiterals[];
|
|
4588
|
-
/**
|
|
4589
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4590
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4591
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4592
|
-
* @maxSize 10
|
|
4593
|
-
*/
|
|
4594
|
-
fieldsets?: FieldWithLiterals[];
|
|
4595
|
-
}
|
|
4596
|
-
interface MarkPostAsInModerationResponse {
|
|
4597
|
-
/** Updated post draft. */
|
|
4598
|
-
draftPost?: DraftPost;
|
|
4599
|
-
}
|
|
4600
4600
|
interface BaseEventMetadata {
|
|
4601
4601
|
/**
|
|
4602
4602
|
* App instance ID.
|