@wix/auto_sdk_blog_draft-posts 1.0.122 → 1.0.123
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 +3 -3
package/build/es/meta.d.mts
CHANGED
|
@@ -3389,6 +3389,10 @@ interface DraftPostTranslation {
|
|
|
3389
3389
|
/** Post URL. */
|
|
3390
3390
|
url?: PageUrl;
|
|
3391
3391
|
}
|
|
3392
|
+
interface InitialDraftPostsCopied {
|
|
3393
|
+
/** Number of draft posts copied. */
|
|
3394
|
+
count?: number;
|
|
3395
|
+
}
|
|
3392
3396
|
interface DraftCategoriesUpdated {
|
|
3393
3397
|
/**
|
|
3394
3398
|
* Draft post ID.
|
|
@@ -3427,202 +3431,6 @@ interface DraftTagsUpdated {
|
|
|
3427
3431
|
*/
|
|
3428
3432
|
previousTags?: string[];
|
|
3429
3433
|
}
|
|
3430
|
-
interface GetDraftPostTotalsRequest {
|
|
3431
|
-
/**
|
|
3432
|
-
* Group results by fields (defaults to grouping by status).
|
|
3433
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3434
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3435
|
-
* @maxSize 10
|
|
3436
|
-
*/
|
|
3437
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3438
|
-
/**
|
|
3439
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3440
|
-
* @format LANGUAGE_TAG
|
|
3441
|
-
*/
|
|
3442
|
-
language?: string | null;
|
|
3443
|
-
}
|
|
3444
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3445
|
-
/** Groups results by status. */
|
|
3446
|
-
STATUS = "STATUS",
|
|
3447
|
-
/** Groups results by language. */
|
|
3448
|
-
LANGUAGE = "LANGUAGE"
|
|
3449
|
-
}
|
|
3450
|
-
/** @enumType */
|
|
3451
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3452
|
-
interface GetDraftPostTotalsResponse {
|
|
3453
|
-
/** Draft post totals. */
|
|
3454
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3455
|
-
}
|
|
3456
|
-
interface TotalDraftPosts {
|
|
3457
|
-
/** Draft post totals in that group. */
|
|
3458
|
-
total?: number;
|
|
3459
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3460
|
-
status?: StatusWithLiterals;
|
|
3461
|
-
/**
|
|
3462
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3463
|
-
* @format LANGUAGE_TAG
|
|
3464
|
-
*/
|
|
3465
|
-
language?: string | null;
|
|
3466
|
-
}
|
|
3467
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3468
|
-
createdEvent?: EntityCreatedEvent;
|
|
3469
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3470
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3471
|
-
actionEvent?: ActionEvent;
|
|
3472
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3473
|
-
id?: string;
|
|
3474
|
-
/**
|
|
3475
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3476
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3477
|
-
*/
|
|
3478
|
-
entityFqdn?: string;
|
|
3479
|
-
/**
|
|
3480
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3481
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3482
|
-
*/
|
|
3483
|
-
slug?: string;
|
|
3484
|
-
/** ID of the entity associated with the event. */
|
|
3485
|
-
entityId?: string;
|
|
3486
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3487
|
-
eventTime?: Date | null;
|
|
3488
|
-
/**
|
|
3489
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3490
|
-
* (for example, GDPR).
|
|
3491
|
-
*/
|
|
3492
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3493
|
-
/** If present, indicates the action that triggered the event. */
|
|
3494
|
-
originatedFrom?: string | null;
|
|
3495
|
-
/**
|
|
3496
|
-
* 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.
|
|
3497
|
-
* 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.
|
|
3498
|
-
*/
|
|
3499
|
-
entityEventSequence?: string | null;
|
|
3500
|
-
}
|
|
3501
|
-
/** @oneof */
|
|
3502
|
-
interface DomainEventBodyOneOf {
|
|
3503
|
-
createdEvent?: EntityCreatedEvent;
|
|
3504
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3505
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3506
|
-
actionEvent?: ActionEvent;
|
|
3507
|
-
}
|
|
3508
|
-
interface EntityCreatedEvent {
|
|
3509
|
-
entityAsJson?: string;
|
|
3510
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3511
|
-
restoreInfo?: RestoreInfo;
|
|
3512
|
-
}
|
|
3513
|
-
interface RestoreInfo {
|
|
3514
|
-
deletedDate?: Date | null;
|
|
3515
|
-
}
|
|
3516
|
-
interface EntityUpdatedEvent {
|
|
3517
|
-
/**
|
|
3518
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3519
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3520
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3521
|
-
*/
|
|
3522
|
-
currentEntityAsJson?: string;
|
|
3523
|
-
}
|
|
3524
|
-
interface EntityDeletedEvent {
|
|
3525
|
-
/** Entity that was deleted. */
|
|
3526
|
-
deletedEntityAsJson?: string | null;
|
|
3527
|
-
}
|
|
3528
|
-
interface ActionEvent {
|
|
3529
|
-
bodyAsJson?: string;
|
|
3530
|
-
}
|
|
3531
|
-
interface MessageEnvelope {
|
|
3532
|
-
/**
|
|
3533
|
-
* App instance ID.
|
|
3534
|
-
* @format GUID
|
|
3535
|
-
*/
|
|
3536
|
-
instanceId?: string | null;
|
|
3537
|
-
/**
|
|
3538
|
-
* Event type.
|
|
3539
|
-
* @maxLength 150
|
|
3540
|
-
*/
|
|
3541
|
-
eventType?: string;
|
|
3542
|
-
/** The identification type and identity data. */
|
|
3543
|
-
identity?: IdentificationData;
|
|
3544
|
-
/** Stringify payload. */
|
|
3545
|
-
data?: string;
|
|
3546
|
-
/** Details related to the account */
|
|
3547
|
-
accountInfo?: AccountInfo;
|
|
3548
|
-
}
|
|
3549
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3550
|
-
/**
|
|
3551
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3552
|
-
* @format GUID
|
|
3553
|
-
*/
|
|
3554
|
-
anonymousVisitorId?: string;
|
|
3555
|
-
/**
|
|
3556
|
-
* ID of a site visitor that has logged in to the site.
|
|
3557
|
-
* @format GUID
|
|
3558
|
-
*/
|
|
3559
|
-
memberId?: string;
|
|
3560
|
-
/**
|
|
3561
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3562
|
-
* @format GUID
|
|
3563
|
-
*/
|
|
3564
|
-
wixUserId?: string;
|
|
3565
|
-
/**
|
|
3566
|
-
* ID of an app.
|
|
3567
|
-
* @format GUID
|
|
3568
|
-
*/
|
|
3569
|
-
appId?: string;
|
|
3570
|
-
/** @readonly */
|
|
3571
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3572
|
-
}
|
|
3573
|
-
/** @oneof */
|
|
3574
|
-
interface IdentificationDataIdOneOf {
|
|
3575
|
-
/**
|
|
3576
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3577
|
-
* @format GUID
|
|
3578
|
-
*/
|
|
3579
|
-
anonymousVisitorId?: string;
|
|
3580
|
-
/**
|
|
3581
|
-
* ID of a site visitor that has logged in to the site.
|
|
3582
|
-
* @format GUID
|
|
3583
|
-
*/
|
|
3584
|
-
memberId?: string;
|
|
3585
|
-
/**
|
|
3586
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3587
|
-
* @format GUID
|
|
3588
|
-
*/
|
|
3589
|
-
wixUserId?: string;
|
|
3590
|
-
/**
|
|
3591
|
-
* ID of an app.
|
|
3592
|
-
* @format GUID
|
|
3593
|
-
*/
|
|
3594
|
-
appId?: string;
|
|
3595
|
-
}
|
|
3596
|
-
declare enum WebhookIdentityType {
|
|
3597
|
-
UNKNOWN = "UNKNOWN",
|
|
3598
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3599
|
-
MEMBER = "MEMBER",
|
|
3600
|
-
WIX_USER = "WIX_USER",
|
|
3601
|
-
APP = "APP"
|
|
3602
|
-
}
|
|
3603
|
-
/** @enumType */
|
|
3604
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3605
|
-
interface AccountInfo {
|
|
3606
|
-
/**
|
|
3607
|
-
* ID of the Wix account associated with the event.
|
|
3608
|
-
* @format GUID
|
|
3609
|
-
*/
|
|
3610
|
-
accountId?: string | null;
|
|
3611
|
-
/**
|
|
3612
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3613
|
-
* @format GUID
|
|
3614
|
-
*/
|
|
3615
|
-
parentAccountId?: string | null;
|
|
3616
|
-
/**
|
|
3617
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3618
|
-
* @format GUID
|
|
3619
|
-
*/
|
|
3620
|
-
siteId?: string | null;
|
|
3621
|
-
}
|
|
3622
|
-
interface InitialDraftPostsCopied {
|
|
3623
|
-
/** Number of draft posts copied. */
|
|
3624
|
-
count?: number;
|
|
3625
|
-
}
|
|
3626
3434
|
interface CreateDraftPostRequest {
|
|
3627
3435
|
/** Draft post to create. */
|
|
3628
3436
|
draftPost: DraftPost;
|
|
@@ -4203,116 +4011,197 @@ interface DraftPostCount {
|
|
|
4203
4011
|
/** Number of posts. */
|
|
4204
4012
|
postCount?: number;
|
|
4205
4013
|
}
|
|
4206
|
-
interface
|
|
4014
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4015
|
+
createdEvent?: EntityCreatedEvent;
|
|
4016
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4017
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4018
|
+
actionEvent?: ActionEvent;
|
|
4019
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
4020
|
+
id?: string;
|
|
4207
4021
|
/**
|
|
4208
|
-
*
|
|
4209
|
-
*
|
|
4210
|
-
* @maxSize 100
|
|
4211
|
-
* @format GUID
|
|
4022
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
4023
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4212
4024
|
*/
|
|
4213
|
-
|
|
4214
|
-
/** Should full draft post be returned. */
|
|
4215
|
-
returnFullEntity?: boolean;
|
|
4216
|
-
}
|
|
4217
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4218
|
-
/** Bulk action results. */
|
|
4219
|
-
results?: BulkDraftPostResult[];
|
|
4220
|
-
/** Bulk action metadata. */
|
|
4221
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4222
|
-
}
|
|
4223
|
-
interface BulkRejectDraftPostRequest {
|
|
4025
|
+
entityFqdn?: string;
|
|
4224
4026
|
/**
|
|
4225
|
-
*
|
|
4226
|
-
*
|
|
4227
|
-
* @maxSize 100
|
|
4228
|
-
* @format GUID
|
|
4027
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
4028
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4229
4029
|
*/
|
|
4230
|
-
|
|
4231
|
-
/**
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
/** Bulk action results. */
|
|
4236
|
-
results?: BulkDraftPostResult[];
|
|
4237
|
-
/** Bulk action metadata. */
|
|
4238
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4239
|
-
}
|
|
4240
|
-
interface RevertToUnpublishedRequest {
|
|
4030
|
+
slug?: string;
|
|
4031
|
+
/** ID of the entity associated with the event. */
|
|
4032
|
+
entityId?: string;
|
|
4033
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
4034
|
+
eventTime?: Date | null;
|
|
4241
4035
|
/**
|
|
4242
|
-
*
|
|
4243
|
-
*
|
|
4036
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
4037
|
+
* (for example, GDPR).
|
|
4244
4038
|
*/
|
|
4245
|
-
|
|
4039
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
4040
|
+
/** If present, indicates the action that triggered the event. */
|
|
4041
|
+
originatedFrom?: string | null;
|
|
4246
4042
|
/**
|
|
4247
|
-
*
|
|
4248
|
-
*
|
|
4249
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4250
|
-
* @maxSize 10
|
|
4043
|
+
* 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.
|
|
4044
|
+
* 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.
|
|
4251
4045
|
*/
|
|
4252
|
-
|
|
4046
|
+
entityEventSequence?: string | null;
|
|
4253
4047
|
}
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4048
|
+
/** @oneof */
|
|
4049
|
+
interface DomainEventBodyOneOf {
|
|
4050
|
+
createdEvent?: EntityCreatedEvent;
|
|
4051
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4052
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4053
|
+
actionEvent?: ActionEvent;
|
|
4257
4054
|
}
|
|
4258
|
-
interface
|
|
4055
|
+
interface EntityCreatedEvent {
|
|
4056
|
+
entityAsJson?: string;
|
|
4057
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
4058
|
+
restoreInfo?: RestoreInfo;
|
|
4059
|
+
}
|
|
4060
|
+
interface RestoreInfo {
|
|
4061
|
+
deletedDate?: Date | null;
|
|
4062
|
+
}
|
|
4063
|
+
interface EntityUpdatedEvent {
|
|
4259
4064
|
/**
|
|
4260
|
-
*
|
|
4065
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4066
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4067
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4068
|
+
*/
|
|
4069
|
+
currentEntityAsJson?: string;
|
|
4070
|
+
}
|
|
4071
|
+
interface EntityDeletedEvent {
|
|
4072
|
+
/** Entity that was deleted. */
|
|
4073
|
+
deletedEntityAsJson?: string | null;
|
|
4074
|
+
}
|
|
4075
|
+
interface ActionEvent {
|
|
4076
|
+
bodyAsJson?: string;
|
|
4077
|
+
}
|
|
4078
|
+
interface MessageEnvelope {
|
|
4079
|
+
/**
|
|
4080
|
+
* App instance ID.
|
|
4261
4081
|
* @format GUID
|
|
4262
4082
|
*/
|
|
4263
|
-
|
|
4083
|
+
instanceId?: string | null;
|
|
4264
4084
|
/**
|
|
4265
|
-
*
|
|
4266
|
-
*
|
|
4267
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4268
|
-
* @maxSize 10
|
|
4085
|
+
* Event type.
|
|
4086
|
+
* @maxLength 150
|
|
4269
4087
|
*/
|
|
4270
|
-
|
|
4088
|
+
eventType?: string;
|
|
4089
|
+
/** The identification type and identity data. */
|
|
4090
|
+
identity?: IdentificationData;
|
|
4091
|
+
/** Stringify payload. */
|
|
4092
|
+
data?: string;
|
|
4093
|
+
/** Details related to the account */
|
|
4094
|
+
accountInfo?: AccountInfo;
|
|
4271
4095
|
}
|
|
4272
|
-
interface
|
|
4273
|
-
/**
|
|
4274
|
-
|
|
4096
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4097
|
+
/**
|
|
4098
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4099
|
+
* @format GUID
|
|
4100
|
+
*/
|
|
4101
|
+
anonymousVisitorId?: string;
|
|
4102
|
+
/**
|
|
4103
|
+
* ID of a site visitor that has logged in to the site.
|
|
4104
|
+
* @format GUID
|
|
4105
|
+
*/
|
|
4106
|
+
memberId?: string;
|
|
4107
|
+
/**
|
|
4108
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4109
|
+
* @format GUID
|
|
4110
|
+
*/
|
|
4111
|
+
wixUserId?: string;
|
|
4112
|
+
/**
|
|
4113
|
+
* ID of an app.
|
|
4114
|
+
* @format GUID
|
|
4115
|
+
*/
|
|
4116
|
+
appId?: string;
|
|
4117
|
+
/** @readonly */
|
|
4118
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4275
4119
|
}
|
|
4276
|
-
|
|
4120
|
+
/** @oneof */
|
|
4121
|
+
interface IdentificationDataIdOneOf {
|
|
4277
4122
|
/**
|
|
4278
|
-
*
|
|
4123
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4279
4124
|
* @format GUID
|
|
4280
4125
|
*/
|
|
4281
|
-
|
|
4126
|
+
anonymousVisitorId?: string;
|
|
4282
4127
|
/**
|
|
4283
|
-
*
|
|
4284
|
-
* @
|
|
4128
|
+
* ID of a site visitor that has logged in to the site.
|
|
4129
|
+
* @format GUID
|
|
4285
4130
|
*/
|
|
4286
|
-
|
|
4131
|
+
memberId?: string;
|
|
4287
4132
|
/**
|
|
4288
|
-
*
|
|
4289
|
-
*
|
|
4290
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4291
|
-
* @maxSize 10
|
|
4133
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4134
|
+
* @format GUID
|
|
4292
4135
|
*/
|
|
4293
|
-
|
|
4136
|
+
wixUserId?: string;
|
|
4137
|
+
/**
|
|
4138
|
+
* ID of an app.
|
|
4139
|
+
* @format GUID
|
|
4140
|
+
*/
|
|
4141
|
+
appId?: string;
|
|
4294
4142
|
}
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4143
|
+
declare enum WebhookIdentityType {
|
|
4144
|
+
UNKNOWN = "UNKNOWN",
|
|
4145
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4146
|
+
MEMBER = "MEMBER",
|
|
4147
|
+
WIX_USER = "WIX_USER",
|
|
4148
|
+
APP = "APP"
|
|
4298
4149
|
}
|
|
4299
|
-
|
|
4150
|
+
/** @enumType */
|
|
4151
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4152
|
+
interface AccountInfo {
|
|
4300
4153
|
/**
|
|
4301
|
-
*
|
|
4302
|
-
* @
|
|
4154
|
+
* ID of the Wix account associated with the event.
|
|
4155
|
+
* @format GUID
|
|
4303
4156
|
*/
|
|
4304
|
-
|
|
4157
|
+
accountId?: string | null;
|
|
4305
4158
|
/**
|
|
4306
|
-
*
|
|
4307
|
-
*
|
|
4308
|
-
|
|
4159
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4160
|
+
* @format GUID
|
|
4161
|
+
*/
|
|
4162
|
+
parentAccountId?: string | null;
|
|
4163
|
+
/**
|
|
4164
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4165
|
+
* @format GUID
|
|
4166
|
+
*/
|
|
4167
|
+
siteId?: string | null;
|
|
4168
|
+
}
|
|
4169
|
+
interface GetDraftPostTotalsRequest {
|
|
4170
|
+
/**
|
|
4171
|
+
* Group results by fields (defaults to grouping by status).
|
|
4172
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4173
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4309
4174
|
* @maxSize 10
|
|
4310
4175
|
*/
|
|
4311
|
-
|
|
4176
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4177
|
+
/**
|
|
4178
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4179
|
+
* @format LANGUAGE_TAG
|
|
4180
|
+
*/
|
|
4181
|
+
language?: string | null;
|
|
4312
4182
|
}
|
|
4313
|
-
|
|
4314
|
-
/**
|
|
4315
|
-
|
|
4183
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4184
|
+
/** Groups results by status. */
|
|
4185
|
+
STATUS = "STATUS",
|
|
4186
|
+
/** Groups results by language. */
|
|
4187
|
+
LANGUAGE = "LANGUAGE"
|
|
4188
|
+
}
|
|
4189
|
+
/** @enumType */
|
|
4190
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4191
|
+
interface GetDraftPostTotalsResponse {
|
|
4192
|
+
/** Draft post totals. */
|
|
4193
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4194
|
+
}
|
|
4195
|
+
interface TotalDraftPosts {
|
|
4196
|
+
/** Draft post totals in that group. */
|
|
4197
|
+
total?: number;
|
|
4198
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4199
|
+
status?: StatusWithLiterals;
|
|
4200
|
+
/**
|
|
4201
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4202
|
+
* @format LANGUAGE_TAG
|
|
4203
|
+
*/
|
|
4204
|
+
language?: string | null;
|
|
4316
4205
|
}
|
|
4317
4206
|
interface TranslateDraftRequest {
|
|
4318
4207
|
/**
|
|
@@ -4399,6 +4288,117 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4399
4288
|
/** Updated draft post. */
|
|
4400
4289
|
draftPost?: DraftPost;
|
|
4401
4290
|
}
|
|
4291
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4292
|
+
/**
|
|
4293
|
+
* Source post IDs.
|
|
4294
|
+
* @minSize 1
|
|
4295
|
+
* @maxSize 100
|
|
4296
|
+
* @format GUID
|
|
4297
|
+
*/
|
|
4298
|
+
postIds?: string[];
|
|
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 {
|
|
4309
|
+
/**
|
|
4310
|
+
* Source post IDs.
|
|
4311
|
+
* @minSize 1
|
|
4312
|
+
* @maxSize 100
|
|
4313
|
+
* @format GUID
|
|
4314
|
+
*/
|
|
4315
|
+
postIds?: string[];
|
|
4316
|
+
/** Should full draft post be returned. */
|
|
4317
|
+
returnFullEntity?: boolean;
|
|
4318
|
+
}
|
|
4319
|
+
interface BulkRejectDraftPostResponse {
|
|
4320
|
+
/** Bulk action results. */
|
|
4321
|
+
results?: BulkDraftPostResult[];
|
|
4322
|
+
/** Bulk action metadata. */
|
|
4323
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4324
|
+
}
|
|
4325
|
+
interface RevertToUnpublishedRequest {
|
|
4326
|
+
/**
|
|
4327
|
+
* Source post ID.
|
|
4328
|
+
* @format GUID
|
|
4329
|
+
*/
|
|
4330
|
+
postId?: string;
|
|
4331
|
+
/**
|
|
4332
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4333
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4334
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4335
|
+
* @maxSize 10
|
|
4336
|
+
*/
|
|
4337
|
+
fieldsets?: FieldWithLiterals[];
|
|
4338
|
+
}
|
|
4339
|
+
interface RevertToUnpublishedResponse {
|
|
4340
|
+
/** Updated post draft. */
|
|
4341
|
+
draftPost?: DraftPost;
|
|
4342
|
+
}
|
|
4343
|
+
interface RejectDraftPostRequest {
|
|
4344
|
+
/**
|
|
4345
|
+
* Source post ID.
|
|
4346
|
+
* @format GUID
|
|
4347
|
+
*/
|
|
4348
|
+
postId?: string;
|
|
4349
|
+
/**
|
|
4350
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4351
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4352
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4353
|
+
* @maxSize 10
|
|
4354
|
+
*/
|
|
4355
|
+
fieldsets?: FieldWithLiterals[];
|
|
4356
|
+
}
|
|
4357
|
+
interface RejectDraftPostResponse {
|
|
4358
|
+
/** Draft post. */
|
|
4359
|
+
draftPost?: DraftPost;
|
|
4360
|
+
}
|
|
4361
|
+
interface ApproveDraftPostRequest {
|
|
4362
|
+
/**
|
|
4363
|
+
* Source post ID.
|
|
4364
|
+
* @format GUID
|
|
4365
|
+
*/
|
|
4366
|
+
postId?: string;
|
|
4367
|
+
/**
|
|
4368
|
+
* Scheduled publish date if should be not immediately published.
|
|
4369
|
+
* @maxLength 24
|
|
4370
|
+
*/
|
|
4371
|
+
scheduledPublishDate?: string | null;
|
|
4372
|
+
/**
|
|
4373
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4374
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4375
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4376
|
+
* @maxSize 10
|
|
4377
|
+
*/
|
|
4378
|
+
fieldsets?: FieldWithLiterals[];
|
|
4379
|
+
}
|
|
4380
|
+
interface ApproveDraftPostResponse {
|
|
4381
|
+
/** Updated post draft. */
|
|
4382
|
+
draftPost?: DraftPost;
|
|
4383
|
+
}
|
|
4384
|
+
interface MarkPostAsInModerationRequest {
|
|
4385
|
+
/**
|
|
4386
|
+
* Source post ID.
|
|
4387
|
+
* @maxLength 38
|
|
4388
|
+
*/
|
|
4389
|
+
postId?: string;
|
|
4390
|
+
/**
|
|
4391
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4392
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4393
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4394
|
+
* @maxSize 10
|
|
4395
|
+
*/
|
|
4396
|
+
fieldsets?: FieldWithLiterals[];
|
|
4397
|
+
}
|
|
4398
|
+
interface MarkPostAsInModerationResponse {
|
|
4399
|
+
/** Updated post draft. */
|
|
4400
|
+
draftPost?: DraftPost;
|
|
4401
|
+
}
|
|
4402
4402
|
|
|
4403
4403
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4404
4404
|
getUrl: (context: any) => string;
|
package/build/es/meta.mjs
CHANGED
|
@@ -2730,19 +2730,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
2730
2730
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
2731
2731
|
return ModerationStatusStatus2;
|
|
2732
2732
|
})(ModerationStatusStatus || {});
|
|
2733
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2734
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2735
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2736
|
-
return TotalDraftPostsGroupingField2;
|
|
2737
|
-
})(TotalDraftPostsGroupingField || {});
|
|
2738
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2739
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2740
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2741
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2742
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2743
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
2744
|
-
return WebhookIdentityType2;
|
|
2745
|
-
})(WebhookIdentityType || {});
|
|
2746
2733
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
2747
2734
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
2748
2735
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -2782,6 +2769,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
2782
2769
|
SortOrder2["DESC"] = "DESC";
|
|
2783
2770
|
return SortOrder2;
|
|
2784
2771
|
})(SortOrder || {});
|
|
2772
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2773
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2774
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2775
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2776
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2777
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
2778
|
+
return WebhookIdentityType2;
|
|
2779
|
+
})(WebhookIdentityType || {});
|
|
2780
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2781
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2782
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2783
|
+
return TotalDraftPostsGroupingField2;
|
|
2784
|
+
})(TotalDraftPostsGroupingField || {});
|
|
2785
2785
|
|
|
2786
2786
|
// src/blog-v3-draft-draft-posts.meta.ts
|
|
2787
2787
|
function createDraftPost2() {
|