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