@wix/auto_sdk_blog_draft-posts 1.0.98 → 1.0.100
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/cjs/schemas.js +1331 -1316
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +13 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +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/es/schemas.mjs +1331 -1316
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +301 -301
- package/build/internal/cjs/meta.d.ts +321 -321
- package/build/internal/es/index.typings.d.mts +301 -301
- package/build/internal/es/meta.d.mts +321 -321
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -5392
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -4756
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -4159
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -2886
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -5278
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -4644
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -4046
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -2822
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -3332,6 +3332,10 @@ interface DraftPostTranslation {
|
|
|
3332
3332
|
/** Post URL. */
|
|
3333
3333
|
url?: string;
|
|
3334
3334
|
}
|
|
3335
|
+
interface InitialDraftPostsCopied {
|
|
3336
|
+
/** Number of draft posts copied. */
|
|
3337
|
+
count?: number;
|
|
3338
|
+
}
|
|
3335
3339
|
interface DraftCategoriesUpdated {
|
|
3336
3340
|
/**
|
|
3337
3341
|
* Draft post ID.
|
|
@@ -3370,200 +3374,6 @@ interface DraftTagsUpdated {
|
|
|
3370
3374
|
*/
|
|
3371
3375
|
previousTags?: string[];
|
|
3372
3376
|
}
|
|
3373
|
-
interface GetDraftPostTotalsRequest {
|
|
3374
|
-
/**
|
|
3375
|
-
* Group results by fields (defaults to grouping by status).
|
|
3376
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3377
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3378
|
-
* @maxSize 10
|
|
3379
|
-
*/
|
|
3380
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3381
|
-
/**
|
|
3382
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3383
|
-
* @format LANGUAGE_TAG
|
|
3384
|
-
*/
|
|
3385
|
-
language?: string | null;
|
|
3386
|
-
}
|
|
3387
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3388
|
-
/** Groups results by status. */
|
|
3389
|
-
STATUS = "STATUS",
|
|
3390
|
-
/** Groups results by language. */
|
|
3391
|
-
LANGUAGE = "LANGUAGE"
|
|
3392
|
-
}
|
|
3393
|
-
/** @enumType */
|
|
3394
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3395
|
-
interface GetDraftPostTotalsResponse {
|
|
3396
|
-
/** Draft post totals. */
|
|
3397
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3398
|
-
}
|
|
3399
|
-
interface TotalDraftPosts {
|
|
3400
|
-
/** Draft post totals in that group. */
|
|
3401
|
-
total?: number;
|
|
3402
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3403
|
-
status?: StatusWithLiterals;
|
|
3404
|
-
/**
|
|
3405
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3406
|
-
* @format LANGUAGE_TAG
|
|
3407
|
-
*/
|
|
3408
|
-
language?: string | null;
|
|
3409
|
-
}
|
|
3410
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3411
|
-
createdEvent?: EntityCreatedEvent;
|
|
3412
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3413
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3414
|
-
actionEvent?: ActionEvent;
|
|
3415
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3416
|
-
_id?: string;
|
|
3417
|
-
/**
|
|
3418
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3419
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3420
|
-
*/
|
|
3421
|
-
entityFqdn?: string;
|
|
3422
|
-
/**
|
|
3423
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3424
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3425
|
-
*/
|
|
3426
|
-
slug?: string;
|
|
3427
|
-
/** ID of the entity associated with the event. */
|
|
3428
|
-
entityId?: string;
|
|
3429
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3430
|
-
eventTime?: Date | null;
|
|
3431
|
-
/**
|
|
3432
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3433
|
-
* (for example, GDPR).
|
|
3434
|
-
*/
|
|
3435
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3436
|
-
/** If present, indicates the action that triggered the event. */
|
|
3437
|
-
originatedFrom?: string | null;
|
|
3438
|
-
/**
|
|
3439
|
-
* 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.
|
|
3440
|
-
* 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.
|
|
3441
|
-
*/
|
|
3442
|
-
entityEventSequence?: string | null;
|
|
3443
|
-
}
|
|
3444
|
-
/** @oneof */
|
|
3445
|
-
interface DomainEventBodyOneOf {
|
|
3446
|
-
createdEvent?: EntityCreatedEvent;
|
|
3447
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3448
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3449
|
-
actionEvent?: ActionEvent;
|
|
3450
|
-
}
|
|
3451
|
-
interface EntityCreatedEvent {
|
|
3452
|
-
entity?: string;
|
|
3453
|
-
}
|
|
3454
|
-
interface RestoreInfo {
|
|
3455
|
-
deletedDate?: Date | null;
|
|
3456
|
-
}
|
|
3457
|
-
interface EntityUpdatedEvent {
|
|
3458
|
-
/**
|
|
3459
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3460
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3461
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3462
|
-
*/
|
|
3463
|
-
currentEntity?: string;
|
|
3464
|
-
}
|
|
3465
|
-
interface EntityDeletedEvent {
|
|
3466
|
-
/** Entity that was deleted. */
|
|
3467
|
-
deletedEntity?: string | null;
|
|
3468
|
-
}
|
|
3469
|
-
interface ActionEvent {
|
|
3470
|
-
body?: string;
|
|
3471
|
-
}
|
|
3472
|
-
interface MessageEnvelope {
|
|
3473
|
-
/**
|
|
3474
|
-
* App instance ID.
|
|
3475
|
-
* @format GUID
|
|
3476
|
-
*/
|
|
3477
|
-
instanceId?: string | null;
|
|
3478
|
-
/**
|
|
3479
|
-
* Event type.
|
|
3480
|
-
* @maxLength 150
|
|
3481
|
-
*/
|
|
3482
|
-
eventType?: string;
|
|
3483
|
-
/** The identification type and identity data. */
|
|
3484
|
-
identity?: IdentificationData;
|
|
3485
|
-
/** Stringify payload. */
|
|
3486
|
-
data?: string;
|
|
3487
|
-
/** Details related to the account */
|
|
3488
|
-
accountInfo?: AccountInfo;
|
|
3489
|
-
}
|
|
3490
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3491
|
-
/**
|
|
3492
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3493
|
-
* @format GUID
|
|
3494
|
-
*/
|
|
3495
|
-
anonymousVisitorId?: string;
|
|
3496
|
-
/**
|
|
3497
|
-
* ID of a site visitor that has logged in to the site.
|
|
3498
|
-
* @format GUID
|
|
3499
|
-
*/
|
|
3500
|
-
memberId?: string;
|
|
3501
|
-
/**
|
|
3502
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3503
|
-
* @format GUID
|
|
3504
|
-
*/
|
|
3505
|
-
wixUserId?: string;
|
|
3506
|
-
/**
|
|
3507
|
-
* ID of an app.
|
|
3508
|
-
* @format GUID
|
|
3509
|
-
*/
|
|
3510
|
-
appId?: string;
|
|
3511
|
-
/** @readonly */
|
|
3512
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3513
|
-
}
|
|
3514
|
-
/** @oneof */
|
|
3515
|
-
interface IdentificationDataIdOneOf {
|
|
3516
|
-
/**
|
|
3517
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3518
|
-
* @format GUID
|
|
3519
|
-
*/
|
|
3520
|
-
anonymousVisitorId?: string;
|
|
3521
|
-
/**
|
|
3522
|
-
* ID of a site visitor that has logged in to the site.
|
|
3523
|
-
* @format GUID
|
|
3524
|
-
*/
|
|
3525
|
-
memberId?: string;
|
|
3526
|
-
/**
|
|
3527
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3528
|
-
* @format GUID
|
|
3529
|
-
*/
|
|
3530
|
-
wixUserId?: string;
|
|
3531
|
-
/**
|
|
3532
|
-
* ID of an app.
|
|
3533
|
-
* @format GUID
|
|
3534
|
-
*/
|
|
3535
|
-
appId?: string;
|
|
3536
|
-
}
|
|
3537
|
-
declare enum WebhookIdentityType {
|
|
3538
|
-
UNKNOWN = "UNKNOWN",
|
|
3539
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3540
|
-
MEMBER = "MEMBER",
|
|
3541
|
-
WIX_USER = "WIX_USER",
|
|
3542
|
-
APP = "APP"
|
|
3543
|
-
}
|
|
3544
|
-
/** @enumType */
|
|
3545
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3546
|
-
interface AccountInfo {
|
|
3547
|
-
/**
|
|
3548
|
-
* ID of the Wix account associated with the event.
|
|
3549
|
-
* @format GUID
|
|
3550
|
-
*/
|
|
3551
|
-
accountId?: string | null;
|
|
3552
|
-
/**
|
|
3553
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3554
|
-
* @format GUID
|
|
3555
|
-
*/
|
|
3556
|
-
parentAccountId?: string | null;
|
|
3557
|
-
/**
|
|
3558
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3559
|
-
* @format GUID
|
|
3560
|
-
*/
|
|
3561
|
-
siteId?: string | null;
|
|
3562
|
-
}
|
|
3563
|
-
interface InitialDraftPostsCopied {
|
|
3564
|
-
/** Number of draft posts copied. */
|
|
3565
|
-
count?: number;
|
|
3566
|
-
}
|
|
3567
3377
|
interface CreateDraftPostRequest {
|
|
3568
3378
|
/** Draft post to create. */
|
|
3569
3379
|
draftPost: DraftPost;
|
|
@@ -4213,152 +4023,195 @@ interface DraftPostCount {
|
|
|
4213
4023
|
/** Number of posts. */
|
|
4214
4024
|
postCount?: number;
|
|
4215
4025
|
}
|
|
4216
|
-
interface
|
|
4026
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4027
|
+
createdEvent?: EntityCreatedEvent;
|
|
4028
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4029
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4030
|
+
actionEvent?: ActionEvent;
|
|
4031
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
4032
|
+
_id?: string;
|
|
4217
4033
|
/**
|
|
4218
|
-
*
|
|
4219
|
-
*
|
|
4220
|
-
* @maxSize 100
|
|
4221
|
-
* @format GUID
|
|
4034
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
4035
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4222
4036
|
*/
|
|
4223
|
-
|
|
4224
|
-
/** Should full draft post be returned. */
|
|
4225
|
-
returnFullEntity?: boolean;
|
|
4226
|
-
}
|
|
4227
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4228
|
-
/** Bulk action results. */
|
|
4229
|
-
results?: BulkDraftPostResult[];
|
|
4230
|
-
/** Bulk action metadata. */
|
|
4231
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4232
|
-
}
|
|
4233
|
-
interface BulkRejectDraftPostRequest {
|
|
4037
|
+
entityFqdn?: string;
|
|
4234
4038
|
/**
|
|
4235
|
-
*
|
|
4236
|
-
*
|
|
4237
|
-
* @maxSize 100
|
|
4238
|
-
* @format GUID
|
|
4039
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
4040
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4239
4041
|
*/
|
|
4240
|
-
|
|
4241
|
-
/**
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
/** Bulk action results. */
|
|
4246
|
-
results?: BulkDraftPostResult[];
|
|
4247
|
-
/** Bulk action metadata. */
|
|
4248
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4249
|
-
}
|
|
4250
|
-
interface RevertToUnpublishedRequest {
|
|
4042
|
+
slug?: string;
|
|
4043
|
+
/** ID of the entity associated with the event. */
|
|
4044
|
+
entityId?: string;
|
|
4045
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
4046
|
+
eventTime?: Date | null;
|
|
4251
4047
|
/**
|
|
4252
|
-
*
|
|
4253
|
-
*
|
|
4048
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
4049
|
+
* (for example, GDPR).
|
|
4254
4050
|
*/
|
|
4255
|
-
|
|
4051
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
4052
|
+
/** If present, indicates the action that triggered the event. */
|
|
4053
|
+
originatedFrom?: string | null;
|
|
4256
4054
|
/**
|
|
4257
|
-
*
|
|
4258
|
-
*
|
|
4259
|
-
* @maxSize 10
|
|
4260
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4261
|
-
* @replacedBy fieldsets
|
|
4262
|
-
* @targetRemovalDate 2024-06-30
|
|
4055
|
+
* 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.
|
|
4056
|
+
* 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.
|
|
4263
4057
|
*/
|
|
4264
|
-
|
|
4058
|
+
entityEventSequence?: string | null;
|
|
4059
|
+
}
|
|
4060
|
+
/** @oneof */
|
|
4061
|
+
interface DomainEventBodyOneOf {
|
|
4062
|
+
createdEvent?: EntityCreatedEvent;
|
|
4063
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4064
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4065
|
+
actionEvent?: ActionEvent;
|
|
4066
|
+
}
|
|
4067
|
+
interface EntityCreatedEvent {
|
|
4068
|
+
entity?: string;
|
|
4069
|
+
}
|
|
4070
|
+
interface RestoreInfo {
|
|
4071
|
+
deletedDate?: Date | null;
|
|
4072
|
+
}
|
|
4073
|
+
interface EntityUpdatedEvent {
|
|
4265
4074
|
/**
|
|
4266
|
-
*
|
|
4267
|
-
*
|
|
4268
|
-
*
|
|
4269
|
-
* @maxSize 10
|
|
4075
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4076
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4077
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4270
4078
|
*/
|
|
4271
|
-
|
|
4079
|
+
currentEntity?: string;
|
|
4272
4080
|
}
|
|
4273
|
-
interface
|
|
4274
|
-
/**
|
|
4275
|
-
|
|
4081
|
+
interface EntityDeletedEvent {
|
|
4082
|
+
/** Entity that was deleted. */
|
|
4083
|
+
deletedEntity?: string | null;
|
|
4276
4084
|
}
|
|
4277
|
-
interface
|
|
4085
|
+
interface ActionEvent {
|
|
4086
|
+
body?: string;
|
|
4087
|
+
}
|
|
4088
|
+
interface MessageEnvelope {
|
|
4278
4089
|
/**
|
|
4279
|
-
*
|
|
4090
|
+
* App instance ID.
|
|
4280
4091
|
* @format GUID
|
|
4281
4092
|
*/
|
|
4282
|
-
|
|
4093
|
+
instanceId?: string | null;
|
|
4283
4094
|
/**
|
|
4284
|
-
*
|
|
4285
|
-
* @
|
|
4286
|
-
* @maxSize 10
|
|
4287
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4288
|
-
* @replacedBy fieldsets
|
|
4289
|
-
* @targetRemovalDate 2024-06-30
|
|
4095
|
+
* Event type.
|
|
4096
|
+
* @maxLength 150
|
|
4290
4097
|
*/
|
|
4291
|
-
|
|
4098
|
+
eventType?: string;
|
|
4099
|
+
/** The identification type and identity data. */
|
|
4100
|
+
identity?: IdentificationData;
|
|
4101
|
+
/** Stringify payload. */
|
|
4102
|
+
data?: string;
|
|
4103
|
+
/** Details related to the account */
|
|
4104
|
+
accountInfo?: AccountInfo;
|
|
4105
|
+
}
|
|
4106
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4292
4107
|
/**
|
|
4293
|
-
*
|
|
4294
|
-
*
|
|
4295
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4296
|
-
* @maxSize 10
|
|
4108
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4109
|
+
* @format GUID
|
|
4297
4110
|
*/
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4111
|
+
anonymousVisitorId?: string;
|
|
4112
|
+
/**
|
|
4113
|
+
* ID of a site visitor that has logged in to the site.
|
|
4114
|
+
* @format GUID
|
|
4115
|
+
*/
|
|
4116
|
+
memberId?: string;
|
|
4117
|
+
/**
|
|
4118
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4119
|
+
* @format GUID
|
|
4120
|
+
*/
|
|
4121
|
+
wixUserId?: string;
|
|
4122
|
+
/**
|
|
4123
|
+
* ID of an app.
|
|
4124
|
+
* @format GUID
|
|
4125
|
+
*/
|
|
4126
|
+
appId?: string;
|
|
4127
|
+
/** @readonly */
|
|
4128
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4303
4129
|
}
|
|
4304
|
-
|
|
4130
|
+
/** @oneof */
|
|
4131
|
+
interface IdentificationDataIdOneOf {
|
|
4305
4132
|
/**
|
|
4306
|
-
*
|
|
4133
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4307
4134
|
* @format GUID
|
|
4308
4135
|
*/
|
|
4309
|
-
|
|
4136
|
+
anonymousVisitorId?: string;
|
|
4310
4137
|
/**
|
|
4311
|
-
*
|
|
4312
|
-
* @
|
|
4138
|
+
* ID of a site visitor that has logged in to the site.
|
|
4139
|
+
* @format GUID
|
|
4313
4140
|
*/
|
|
4314
|
-
|
|
4141
|
+
memberId?: string;
|
|
4315
4142
|
/**
|
|
4316
|
-
*
|
|
4317
|
-
* @
|
|
4318
|
-
* @maxSize 10
|
|
4319
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4320
|
-
* @replacedBy fieldsets
|
|
4321
|
-
* @targetRemovalDate 2024-06-30
|
|
4143
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4144
|
+
* @format GUID
|
|
4322
4145
|
*/
|
|
4323
|
-
|
|
4146
|
+
wixUserId?: string;
|
|
4324
4147
|
/**
|
|
4325
|
-
*
|
|
4326
|
-
*
|
|
4327
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4328
|
-
* @maxSize 10
|
|
4148
|
+
* ID of an app.
|
|
4149
|
+
* @format GUID
|
|
4329
4150
|
*/
|
|
4330
|
-
|
|
4151
|
+
appId?: string;
|
|
4331
4152
|
}
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4153
|
+
declare enum WebhookIdentityType {
|
|
4154
|
+
UNKNOWN = "UNKNOWN",
|
|
4155
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4156
|
+
MEMBER = "MEMBER",
|
|
4157
|
+
WIX_USER = "WIX_USER",
|
|
4158
|
+
APP = "APP"
|
|
4335
4159
|
}
|
|
4336
|
-
|
|
4160
|
+
/** @enumType */
|
|
4161
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4162
|
+
interface AccountInfo {
|
|
4337
4163
|
/**
|
|
4338
|
-
*
|
|
4339
|
-
* @
|
|
4164
|
+
* ID of the Wix account associated with the event.
|
|
4165
|
+
* @format GUID
|
|
4340
4166
|
*/
|
|
4341
|
-
|
|
4167
|
+
accountId?: string | null;
|
|
4342
4168
|
/**
|
|
4343
|
-
*
|
|
4344
|
-
* @
|
|
4345
|
-
* @maxSize 10
|
|
4346
|
-
* @deprecated List of draft post fields to be included in the response.
|
|
4347
|
-
* @replacedBy fieldsets
|
|
4348
|
-
* @targetRemovalDate 2024-06-30
|
|
4169
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4170
|
+
* @format GUID
|
|
4349
4171
|
*/
|
|
4350
|
-
|
|
4172
|
+
parentAccountId?: string | null;
|
|
4351
4173
|
/**
|
|
4352
|
-
*
|
|
4353
|
-
*
|
|
4354
|
-
|
|
4174
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4175
|
+
* @format GUID
|
|
4176
|
+
*/
|
|
4177
|
+
siteId?: string | null;
|
|
4178
|
+
}
|
|
4179
|
+
interface GetDraftPostTotalsRequest {
|
|
4180
|
+
/**
|
|
4181
|
+
* Group results by fields (defaults to grouping by status).
|
|
4182
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4183
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4355
4184
|
* @maxSize 10
|
|
4356
4185
|
*/
|
|
4357
|
-
|
|
4186
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4187
|
+
/**
|
|
4188
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4189
|
+
* @format LANGUAGE_TAG
|
|
4190
|
+
*/
|
|
4191
|
+
language?: string | null;
|
|
4358
4192
|
}
|
|
4359
|
-
|
|
4360
|
-
/**
|
|
4361
|
-
|
|
4193
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4194
|
+
/** Groups results by status. */
|
|
4195
|
+
STATUS = "STATUS",
|
|
4196
|
+
/** Groups results by language. */
|
|
4197
|
+
LANGUAGE = "LANGUAGE"
|
|
4198
|
+
}
|
|
4199
|
+
/** @enumType */
|
|
4200
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4201
|
+
interface GetDraftPostTotalsResponse {
|
|
4202
|
+
/** Draft post totals. */
|
|
4203
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4204
|
+
}
|
|
4205
|
+
interface TotalDraftPosts {
|
|
4206
|
+
/** Draft post totals in that group. */
|
|
4207
|
+
total?: number;
|
|
4208
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4209
|
+
status?: StatusWithLiterals;
|
|
4210
|
+
/**
|
|
4211
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4212
|
+
* @format LANGUAGE_TAG
|
|
4213
|
+
*/
|
|
4214
|
+
language?: string | null;
|
|
4362
4215
|
}
|
|
4363
4216
|
interface TranslateDraftRequest {
|
|
4364
4217
|
/**
|
|
@@ -4438,6 +4291,153 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4438
4291
|
/** Draft post */
|
|
4439
4292
|
draftPost?: DraftPost;
|
|
4440
4293
|
}
|
|
4294
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4295
|
+
/**
|
|
4296
|
+
* Source post IDs.
|
|
4297
|
+
* @minSize 1
|
|
4298
|
+
* @maxSize 100
|
|
4299
|
+
* @format GUID
|
|
4300
|
+
*/
|
|
4301
|
+
postIds?: string[];
|
|
4302
|
+
/** Should full draft post be returned. */
|
|
4303
|
+
returnFullEntity?: boolean;
|
|
4304
|
+
}
|
|
4305
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4306
|
+
/** Bulk action results. */
|
|
4307
|
+
results?: BulkDraftPostResult[];
|
|
4308
|
+
/** Bulk action metadata. */
|
|
4309
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4310
|
+
}
|
|
4311
|
+
interface BulkRejectDraftPostRequest {
|
|
4312
|
+
/**
|
|
4313
|
+
* Source post IDs.
|
|
4314
|
+
* @minSize 1
|
|
4315
|
+
* @maxSize 100
|
|
4316
|
+
* @format GUID
|
|
4317
|
+
*/
|
|
4318
|
+
postIds?: string[];
|
|
4319
|
+
/** Should full draft post be returned. */
|
|
4320
|
+
returnFullEntity?: boolean;
|
|
4321
|
+
}
|
|
4322
|
+
interface BulkRejectDraftPostResponse {
|
|
4323
|
+
/** Bulk action results. */
|
|
4324
|
+
results?: BulkDraftPostResult[];
|
|
4325
|
+
/** Bulk action metadata. */
|
|
4326
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4327
|
+
}
|
|
4328
|
+
interface RevertToUnpublishedRequest {
|
|
4329
|
+
/**
|
|
4330
|
+
* Source post ID.
|
|
4331
|
+
* @format GUID
|
|
4332
|
+
*/
|
|
4333
|
+
postId?: string;
|
|
4334
|
+
/**
|
|
4335
|
+
* List of draft post fields to be included in the response.
|
|
4336
|
+
* @internal
|
|
4337
|
+
* @maxSize 10
|
|
4338
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4339
|
+
* @replacedBy fieldsets
|
|
4340
|
+
* @targetRemovalDate 2024-06-30
|
|
4341
|
+
*/
|
|
4342
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4343
|
+
/**
|
|
4344
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4345
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4346
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4347
|
+
* @maxSize 10
|
|
4348
|
+
*/
|
|
4349
|
+
fieldsets?: FieldWithLiterals[];
|
|
4350
|
+
}
|
|
4351
|
+
interface RevertToUnpublishedResponse {
|
|
4352
|
+
/** Updated post draft. */
|
|
4353
|
+
draftPost?: DraftPost;
|
|
4354
|
+
}
|
|
4355
|
+
interface RejectDraftPostRequest {
|
|
4356
|
+
/**
|
|
4357
|
+
* Source post ID.
|
|
4358
|
+
* @format GUID
|
|
4359
|
+
*/
|
|
4360
|
+
postId?: string;
|
|
4361
|
+
/**
|
|
4362
|
+
* List of draft post fields to be included in the response.
|
|
4363
|
+
* @internal
|
|
4364
|
+
* @maxSize 10
|
|
4365
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4366
|
+
* @replacedBy fieldsets
|
|
4367
|
+
* @targetRemovalDate 2024-06-30
|
|
4368
|
+
*/
|
|
4369
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4370
|
+
/**
|
|
4371
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4372
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4373
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4374
|
+
* @maxSize 10
|
|
4375
|
+
*/
|
|
4376
|
+
fieldsets?: FieldWithLiterals[];
|
|
4377
|
+
}
|
|
4378
|
+
interface RejectDraftPostResponse {
|
|
4379
|
+
/** Draft post. */
|
|
4380
|
+
draftPost?: DraftPost;
|
|
4381
|
+
}
|
|
4382
|
+
interface ApproveDraftPostRequest {
|
|
4383
|
+
/**
|
|
4384
|
+
* Source post ID.
|
|
4385
|
+
* @format GUID
|
|
4386
|
+
*/
|
|
4387
|
+
postId?: string;
|
|
4388
|
+
/**
|
|
4389
|
+
* Scheduled publish date if should be not immediately published.
|
|
4390
|
+
* @maxLength 24
|
|
4391
|
+
*/
|
|
4392
|
+
scheduledPublishDate?: string | null;
|
|
4393
|
+
/**
|
|
4394
|
+
* List of draft post fields to be included in the response.
|
|
4395
|
+
* @internal
|
|
4396
|
+
* @maxSize 10
|
|
4397
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4398
|
+
* @replacedBy fieldsets
|
|
4399
|
+
* @targetRemovalDate 2024-06-30
|
|
4400
|
+
*/
|
|
4401
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4402
|
+
/**
|
|
4403
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4404
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4405
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4406
|
+
* @maxSize 10
|
|
4407
|
+
*/
|
|
4408
|
+
fieldsets?: FieldWithLiterals[];
|
|
4409
|
+
}
|
|
4410
|
+
interface ApproveDraftPostResponse {
|
|
4411
|
+
/** Updated post draft. */
|
|
4412
|
+
draftPost?: DraftPost;
|
|
4413
|
+
}
|
|
4414
|
+
interface MarkPostAsInModerationRequest {
|
|
4415
|
+
/**
|
|
4416
|
+
* Source post ID.
|
|
4417
|
+
* @maxLength 38
|
|
4418
|
+
*/
|
|
4419
|
+
postId?: string;
|
|
4420
|
+
/**
|
|
4421
|
+
* List of draft post fields to be included in the response.
|
|
4422
|
+
* @internal
|
|
4423
|
+
* @maxSize 10
|
|
4424
|
+
* @deprecated List of draft post fields to be included in the response.
|
|
4425
|
+
* @replacedBy fieldsets
|
|
4426
|
+
* @targetRemovalDate 2024-06-30
|
|
4427
|
+
*/
|
|
4428
|
+
fieldsToInclude?: FieldWithLiterals[];
|
|
4429
|
+
/**
|
|
4430
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4431
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4432
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4433
|
+
* @maxSize 10
|
|
4434
|
+
*/
|
|
4435
|
+
fieldsets?: FieldWithLiterals[];
|
|
4436
|
+
}
|
|
4437
|
+
interface MarkPostAsInModerationResponse {
|
|
4438
|
+
/** Updated post draft. */
|
|
4439
|
+
draftPost?: DraftPost;
|
|
4440
|
+
}
|
|
4441
4441
|
interface BaseEventMetadata {
|
|
4442
4442
|
/**
|
|
4443
4443
|
* App instance ID.
|