@wix/auto_sdk_blog_draft-posts 1.0.109 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +13 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +272 -272
- package/build/cjs/index.typings.js +13 -13
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +274 -274
- package/build/cjs/meta.js +13 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +13 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +272 -272
- package/build/es/index.typings.mjs +13 -13
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +274 -274
- package/build/es/meta.mjs +13 -13
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +301 -301
- package/build/internal/cjs/meta.d.ts +335 -335
- package/build/internal/es/index.typings.d.mts +301 -301
- package/build/internal/es/meta.d.mts +335 -335
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -3319,6 +3319,10 @@ interface DraftPostTranslation {
|
|
|
3319
3319
|
/** Post URL. */
|
|
3320
3320
|
url?: PageUrl;
|
|
3321
3321
|
}
|
|
3322
|
+
interface InitialDraftPostsCopied {
|
|
3323
|
+
/** Number of draft posts copied. */
|
|
3324
|
+
count?: number;
|
|
3325
|
+
}
|
|
3322
3326
|
interface DraftCategoriesUpdated {
|
|
3323
3327
|
/**
|
|
3324
3328
|
* Draft post ID.
|
|
@@ -3357,202 +3361,6 @@ interface DraftTagsUpdated {
|
|
|
3357
3361
|
*/
|
|
3358
3362
|
previousTags?: string[];
|
|
3359
3363
|
}
|
|
3360
|
-
interface GetDraftPostTotalsRequest {
|
|
3361
|
-
/**
|
|
3362
|
-
* Group results by fields (defaults to grouping by status).
|
|
3363
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3364
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3365
|
-
* @maxSize 10
|
|
3366
|
-
*/
|
|
3367
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3368
|
-
/**
|
|
3369
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3370
|
-
* @format LANGUAGE_TAG
|
|
3371
|
-
*/
|
|
3372
|
-
language?: string | null;
|
|
3373
|
-
}
|
|
3374
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3375
|
-
/** Groups results by status. */
|
|
3376
|
-
STATUS = "STATUS",
|
|
3377
|
-
/** Groups results by language. */
|
|
3378
|
-
LANGUAGE = "LANGUAGE"
|
|
3379
|
-
}
|
|
3380
|
-
/** @enumType */
|
|
3381
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3382
|
-
interface GetDraftPostTotalsResponse {
|
|
3383
|
-
/** Draft post totals. */
|
|
3384
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3385
|
-
}
|
|
3386
|
-
interface TotalDraftPosts {
|
|
3387
|
-
/** Draft post totals in that group. */
|
|
3388
|
-
total?: number;
|
|
3389
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3390
|
-
status?: StatusWithLiterals;
|
|
3391
|
-
/**
|
|
3392
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3393
|
-
* @format LANGUAGE_TAG
|
|
3394
|
-
*/
|
|
3395
|
-
language?: string | null;
|
|
3396
|
-
}
|
|
3397
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3398
|
-
createdEvent?: EntityCreatedEvent;
|
|
3399
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3400
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3401
|
-
actionEvent?: ActionEvent;
|
|
3402
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3403
|
-
id?: string;
|
|
3404
|
-
/**
|
|
3405
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3406
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3407
|
-
*/
|
|
3408
|
-
entityFqdn?: string;
|
|
3409
|
-
/**
|
|
3410
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3411
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3412
|
-
*/
|
|
3413
|
-
slug?: string;
|
|
3414
|
-
/** ID of the entity associated with the event. */
|
|
3415
|
-
entityId?: string;
|
|
3416
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3417
|
-
eventTime?: Date | null;
|
|
3418
|
-
/**
|
|
3419
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3420
|
-
* (for example, GDPR).
|
|
3421
|
-
*/
|
|
3422
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3423
|
-
/** If present, indicates the action that triggered the event. */
|
|
3424
|
-
originatedFrom?: string | null;
|
|
3425
|
-
/**
|
|
3426
|
-
* 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.
|
|
3427
|
-
* 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.
|
|
3428
|
-
*/
|
|
3429
|
-
entityEventSequence?: string | null;
|
|
3430
|
-
}
|
|
3431
|
-
/** @oneof */
|
|
3432
|
-
interface DomainEventBodyOneOf {
|
|
3433
|
-
createdEvent?: EntityCreatedEvent;
|
|
3434
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3435
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3436
|
-
actionEvent?: ActionEvent;
|
|
3437
|
-
}
|
|
3438
|
-
interface EntityCreatedEvent {
|
|
3439
|
-
entityAsJson?: string;
|
|
3440
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3441
|
-
restoreInfo?: RestoreInfo;
|
|
3442
|
-
}
|
|
3443
|
-
interface RestoreInfo {
|
|
3444
|
-
deletedDate?: Date | null;
|
|
3445
|
-
}
|
|
3446
|
-
interface EntityUpdatedEvent {
|
|
3447
|
-
/**
|
|
3448
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3449
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3450
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3451
|
-
*/
|
|
3452
|
-
currentEntityAsJson?: string;
|
|
3453
|
-
}
|
|
3454
|
-
interface EntityDeletedEvent {
|
|
3455
|
-
/** Entity that was deleted. */
|
|
3456
|
-
deletedEntityAsJson?: string | null;
|
|
3457
|
-
}
|
|
3458
|
-
interface ActionEvent {
|
|
3459
|
-
bodyAsJson?: string;
|
|
3460
|
-
}
|
|
3461
|
-
interface MessageEnvelope {
|
|
3462
|
-
/**
|
|
3463
|
-
* App instance ID.
|
|
3464
|
-
* @format GUID
|
|
3465
|
-
*/
|
|
3466
|
-
instanceId?: string | null;
|
|
3467
|
-
/**
|
|
3468
|
-
* Event type.
|
|
3469
|
-
* @maxLength 150
|
|
3470
|
-
*/
|
|
3471
|
-
eventType?: string;
|
|
3472
|
-
/** The identification type and identity data. */
|
|
3473
|
-
identity?: IdentificationData;
|
|
3474
|
-
/** Stringify payload. */
|
|
3475
|
-
data?: string;
|
|
3476
|
-
/** Details related to the account */
|
|
3477
|
-
accountInfo?: AccountInfo;
|
|
3478
|
-
}
|
|
3479
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3480
|
-
/**
|
|
3481
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3482
|
-
* @format GUID
|
|
3483
|
-
*/
|
|
3484
|
-
anonymousVisitorId?: string;
|
|
3485
|
-
/**
|
|
3486
|
-
* ID of a site visitor that has logged in to the site.
|
|
3487
|
-
* @format GUID
|
|
3488
|
-
*/
|
|
3489
|
-
memberId?: string;
|
|
3490
|
-
/**
|
|
3491
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3492
|
-
* @format GUID
|
|
3493
|
-
*/
|
|
3494
|
-
wixUserId?: string;
|
|
3495
|
-
/**
|
|
3496
|
-
* ID of an app.
|
|
3497
|
-
* @format GUID
|
|
3498
|
-
*/
|
|
3499
|
-
appId?: string;
|
|
3500
|
-
/** @readonly */
|
|
3501
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3502
|
-
}
|
|
3503
|
-
/** @oneof */
|
|
3504
|
-
interface IdentificationDataIdOneOf {
|
|
3505
|
-
/**
|
|
3506
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3507
|
-
* @format GUID
|
|
3508
|
-
*/
|
|
3509
|
-
anonymousVisitorId?: string;
|
|
3510
|
-
/**
|
|
3511
|
-
* ID of a site visitor that has logged in to the site.
|
|
3512
|
-
* @format GUID
|
|
3513
|
-
*/
|
|
3514
|
-
memberId?: string;
|
|
3515
|
-
/**
|
|
3516
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3517
|
-
* @format GUID
|
|
3518
|
-
*/
|
|
3519
|
-
wixUserId?: string;
|
|
3520
|
-
/**
|
|
3521
|
-
* ID of an app.
|
|
3522
|
-
* @format GUID
|
|
3523
|
-
*/
|
|
3524
|
-
appId?: string;
|
|
3525
|
-
}
|
|
3526
|
-
declare enum WebhookIdentityType {
|
|
3527
|
-
UNKNOWN = "UNKNOWN",
|
|
3528
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3529
|
-
MEMBER = "MEMBER",
|
|
3530
|
-
WIX_USER = "WIX_USER",
|
|
3531
|
-
APP = "APP"
|
|
3532
|
-
}
|
|
3533
|
-
/** @enumType */
|
|
3534
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3535
|
-
interface AccountInfo {
|
|
3536
|
-
/**
|
|
3537
|
-
* ID of the Wix account associated with the event.
|
|
3538
|
-
* @format GUID
|
|
3539
|
-
*/
|
|
3540
|
-
accountId?: string | null;
|
|
3541
|
-
/**
|
|
3542
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3543
|
-
* @format GUID
|
|
3544
|
-
*/
|
|
3545
|
-
parentAccountId?: string | null;
|
|
3546
|
-
/**
|
|
3547
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3548
|
-
* @format GUID
|
|
3549
|
-
*/
|
|
3550
|
-
siteId?: string | null;
|
|
3551
|
-
}
|
|
3552
|
-
interface InitialDraftPostsCopied {
|
|
3553
|
-
/** Number of draft posts copied. */
|
|
3554
|
-
count?: number;
|
|
3555
|
-
}
|
|
3556
3364
|
interface CreateDraftPostRequest {
|
|
3557
3365
|
/** Draft post to create. */
|
|
3558
3366
|
draftPost: DraftPost;
|
|
@@ -4133,116 +3941,197 @@ interface DraftPostCount {
|
|
|
4133
3941
|
/** Number of posts. */
|
|
4134
3942
|
postCount?: number;
|
|
4135
3943
|
}
|
|
4136
|
-
interface
|
|
3944
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3945
|
+
createdEvent?: EntityCreatedEvent;
|
|
3946
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3947
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3948
|
+
actionEvent?: ActionEvent;
|
|
3949
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3950
|
+
id?: string;
|
|
4137
3951
|
/**
|
|
4138
|
-
*
|
|
4139
|
-
*
|
|
4140
|
-
* @maxSize 100
|
|
4141
|
-
* @format GUID
|
|
3952
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3953
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4142
3954
|
*/
|
|
4143
|
-
|
|
4144
|
-
/** Should full draft post be returned. */
|
|
4145
|
-
returnFullEntity?: boolean;
|
|
4146
|
-
}
|
|
4147
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4148
|
-
/** Bulk action results. */
|
|
4149
|
-
results?: BulkDraftPostResult[];
|
|
4150
|
-
/** Bulk action metadata. */
|
|
4151
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4152
|
-
}
|
|
4153
|
-
interface BulkRejectDraftPostRequest {
|
|
3955
|
+
entityFqdn?: string;
|
|
4154
3956
|
/**
|
|
4155
|
-
*
|
|
4156
|
-
*
|
|
4157
|
-
* @maxSize 100
|
|
4158
|
-
* @format GUID
|
|
3957
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3958
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4159
3959
|
*/
|
|
4160
|
-
|
|
4161
|
-
/**
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
/** Bulk action results. */
|
|
4166
|
-
results?: BulkDraftPostResult[];
|
|
4167
|
-
/** Bulk action metadata. */
|
|
4168
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4169
|
-
}
|
|
4170
|
-
interface RevertToUnpublishedRequest {
|
|
3960
|
+
slug?: string;
|
|
3961
|
+
/** ID of the entity associated with the event. */
|
|
3962
|
+
entityId?: string;
|
|
3963
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3964
|
+
eventTime?: Date | null;
|
|
4171
3965
|
/**
|
|
4172
|
-
*
|
|
4173
|
-
*
|
|
3966
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3967
|
+
* (for example, GDPR).
|
|
4174
3968
|
*/
|
|
4175
|
-
|
|
3969
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3970
|
+
/** If present, indicates the action that triggered the event. */
|
|
3971
|
+
originatedFrom?: string | null;
|
|
4176
3972
|
/**
|
|
4177
|
-
*
|
|
4178
|
-
*
|
|
4179
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4180
|
-
* @maxSize 10
|
|
3973
|
+
* 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.
|
|
3974
|
+
* 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.
|
|
4181
3975
|
*/
|
|
4182
|
-
|
|
3976
|
+
entityEventSequence?: string | null;
|
|
4183
3977
|
}
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
3978
|
+
/** @oneof */
|
|
3979
|
+
interface DomainEventBodyOneOf {
|
|
3980
|
+
createdEvent?: EntityCreatedEvent;
|
|
3981
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3982
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3983
|
+
actionEvent?: ActionEvent;
|
|
4187
3984
|
}
|
|
4188
|
-
interface
|
|
3985
|
+
interface EntityCreatedEvent {
|
|
3986
|
+
entityAsJson?: string;
|
|
3987
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3988
|
+
restoreInfo?: RestoreInfo;
|
|
3989
|
+
}
|
|
3990
|
+
interface RestoreInfo {
|
|
3991
|
+
deletedDate?: Date | null;
|
|
3992
|
+
}
|
|
3993
|
+
interface EntityUpdatedEvent {
|
|
4189
3994
|
/**
|
|
4190
|
-
*
|
|
3995
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3996
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3997
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3998
|
+
*/
|
|
3999
|
+
currentEntityAsJson?: string;
|
|
4000
|
+
}
|
|
4001
|
+
interface EntityDeletedEvent {
|
|
4002
|
+
/** Entity that was deleted. */
|
|
4003
|
+
deletedEntityAsJson?: string | null;
|
|
4004
|
+
}
|
|
4005
|
+
interface ActionEvent {
|
|
4006
|
+
bodyAsJson?: string;
|
|
4007
|
+
}
|
|
4008
|
+
interface MessageEnvelope {
|
|
4009
|
+
/**
|
|
4010
|
+
* App instance ID.
|
|
4191
4011
|
* @format GUID
|
|
4192
4012
|
*/
|
|
4193
|
-
|
|
4013
|
+
instanceId?: string | null;
|
|
4194
4014
|
/**
|
|
4195
|
-
*
|
|
4196
|
-
*
|
|
4197
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4198
|
-
* @maxSize 10
|
|
4015
|
+
* Event type.
|
|
4016
|
+
* @maxLength 150
|
|
4199
4017
|
*/
|
|
4200
|
-
|
|
4018
|
+
eventType?: string;
|
|
4019
|
+
/** The identification type and identity data. */
|
|
4020
|
+
identity?: IdentificationData;
|
|
4021
|
+
/** Stringify payload. */
|
|
4022
|
+
data?: string;
|
|
4023
|
+
/** Details related to the account */
|
|
4024
|
+
accountInfo?: AccountInfo;
|
|
4201
4025
|
}
|
|
4202
|
-
interface
|
|
4203
|
-
/**
|
|
4204
|
-
|
|
4026
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4027
|
+
/**
|
|
4028
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4029
|
+
* @format GUID
|
|
4030
|
+
*/
|
|
4031
|
+
anonymousVisitorId?: string;
|
|
4032
|
+
/**
|
|
4033
|
+
* ID of a site visitor that has logged in to the site.
|
|
4034
|
+
* @format GUID
|
|
4035
|
+
*/
|
|
4036
|
+
memberId?: string;
|
|
4037
|
+
/**
|
|
4038
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4039
|
+
* @format GUID
|
|
4040
|
+
*/
|
|
4041
|
+
wixUserId?: string;
|
|
4042
|
+
/**
|
|
4043
|
+
* ID of an app.
|
|
4044
|
+
* @format GUID
|
|
4045
|
+
*/
|
|
4046
|
+
appId?: string;
|
|
4047
|
+
/** @readonly */
|
|
4048
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4205
4049
|
}
|
|
4206
|
-
|
|
4050
|
+
/** @oneof */
|
|
4051
|
+
interface IdentificationDataIdOneOf {
|
|
4207
4052
|
/**
|
|
4208
|
-
*
|
|
4053
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4209
4054
|
* @format GUID
|
|
4210
4055
|
*/
|
|
4211
|
-
|
|
4056
|
+
anonymousVisitorId?: string;
|
|
4212
4057
|
/**
|
|
4213
|
-
*
|
|
4214
|
-
* @
|
|
4058
|
+
* ID of a site visitor that has logged in to the site.
|
|
4059
|
+
* @format GUID
|
|
4215
4060
|
*/
|
|
4216
|
-
|
|
4061
|
+
memberId?: string;
|
|
4217
4062
|
/**
|
|
4218
|
-
*
|
|
4219
|
-
*
|
|
4220
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4221
|
-
* @maxSize 10
|
|
4063
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4064
|
+
* @format GUID
|
|
4222
4065
|
*/
|
|
4223
|
-
|
|
4066
|
+
wixUserId?: string;
|
|
4067
|
+
/**
|
|
4068
|
+
* ID of an app.
|
|
4069
|
+
* @format GUID
|
|
4070
|
+
*/
|
|
4071
|
+
appId?: string;
|
|
4224
4072
|
}
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4073
|
+
declare enum WebhookIdentityType {
|
|
4074
|
+
UNKNOWN = "UNKNOWN",
|
|
4075
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4076
|
+
MEMBER = "MEMBER",
|
|
4077
|
+
WIX_USER = "WIX_USER",
|
|
4078
|
+
APP = "APP"
|
|
4228
4079
|
}
|
|
4229
|
-
|
|
4080
|
+
/** @enumType */
|
|
4081
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4082
|
+
interface AccountInfo {
|
|
4230
4083
|
/**
|
|
4231
|
-
*
|
|
4232
|
-
* @
|
|
4084
|
+
* ID of the Wix account associated with the event.
|
|
4085
|
+
* @format GUID
|
|
4233
4086
|
*/
|
|
4234
|
-
|
|
4087
|
+
accountId?: string | null;
|
|
4235
4088
|
/**
|
|
4236
|
-
*
|
|
4237
|
-
*
|
|
4238
|
-
|
|
4089
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4090
|
+
* @format GUID
|
|
4091
|
+
*/
|
|
4092
|
+
parentAccountId?: string | null;
|
|
4093
|
+
/**
|
|
4094
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4095
|
+
* @format GUID
|
|
4096
|
+
*/
|
|
4097
|
+
siteId?: string | null;
|
|
4098
|
+
}
|
|
4099
|
+
interface GetDraftPostTotalsRequest {
|
|
4100
|
+
/**
|
|
4101
|
+
* Group results by fields (defaults to grouping by status).
|
|
4102
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4103
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4239
4104
|
* @maxSize 10
|
|
4240
4105
|
*/
|
|
4241
|
-
|
|
4106
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4107
|
+
/**
|
|
4108
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4109
|
+
* @format LANGUAGE_TAG
|
|
4110
|
+
*/
|
|
4111
|
+
language?: string | null;
|
|
4242
4112
|
}
|
|
4243
|
-
|
|
4244
|
-
/**
|
|
4245
|
-
|
|
4113
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4114
|
+
/** Groups results by status. */
|
|
4115
|
+
STATUS = "STATUS",
|
|
4116
|
+
/** Groups results by language. */
|
|
4117
|
+
LANGUAGE = "LANGUAGE"
|
|
4118
|
+
}
|
|
4119
|
+
/** @enumType */
|
|
4120
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4121
|
+
interface GetDraftPostTotalsResponse {
|
|
4122
|
+
/** Draft post totals. */
|
|
4123
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4124
|
+
}
|
|
4125
|
+
interface TotalDraftPosts {
|
|
4126
|
+
/** Draft post totals in that group. */
|
|
4127
|
+
total?: number;
|
|
4128
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4129
|
+
status?: StatusWithLiterals;
|
|
4130
|
+
/**
|
|
4131
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4132
|
+
* @format LANGUAGE_TAG
|
|
4133
|
+
*/
|
|
4134
|
+
language?: string | null;
|
|
4246
4135
|
}
|
|
4247
4136
|
interface TranslateDraftRequest {
|
|
4248
4137
|
/**
|
|
@@ -4329,6 +4218,117 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4329
4218
|
/** Updated draft post. */
|
|
4330
4219
|
draftPost?: DraftPost;
|
|
4331
4220
|
}
|
|
4221
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4222
|
+
/**
|
|
4223
|
+
* Source post IDs.
|
|
4224
|
+
* @minSize 1
|
|
4225
|
+
* @maxSize 100
|
|
4226
|
+
* @format GUID
|
|
4227
|
+
*/
|
|
4228
|
+
postIds?: string[];
|
|
4229
|
+
/** Should full draft post be returned. */
|
|
4230
|
+
returnFullEntity?: boolean;
|
|
4231
|
+
}
|
|
4232
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4233
|
+
/** Bulk action results. */
|
|
4234
|
+
results?: BulkDraftPostResult[];
|
|
4235
|
+
/** Bulk action metadata. */
|
|
4236
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4237
|
+
}
|
|
4238
|
+
interface BulkRejectDraftPostRequest {
|
|
4239
|
+
/**
|
|
4240
|
+
* Source post IDs.
|
|
4241
|
+
* @minSize 1
|
|
4242
|
+
* @maxSize 100
|
|
4243
|
+
* @format GUID
|
|
4244
|
+
*/
|
|
4245
|
+
postIds?: string[];
|
|
4246
|
+
/** Should full draft post be returned. */
|
|
4247
|
+
returnFullEntity?: boolean;
|
|
4248
|
+
}
|
|
4249
|
+
interface BulkRejectDraftPostResponse {
|
|
4250
|
+
/** Bulk action results. */
|
|
4251
|
+
results?: BulkDraftPostResult[];
|
|
4252
|
+
/** Bulk action metadata. */
|
|
4253
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4254
|
+
}
|
|
4255
|
+
interface RevertToUnpublishedRequest {
|
|
4256
|
+
/**
|
|
4257
|
+
* Source post ID.
|
|
4258
|
+
* @format GUID
|
|
4259
|
+
*/
|
|
4260
|
+
postId?: string;
|
|
4261
|
+
/**
|
|
4262
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4263
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4264
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4265
|
+
* @maxSize 10
|
|
4266
|
+
*/
|
|
4267
|
+
fieldsets?: FieldWithLiterals[];
|
|
4268
|
+
}
|
|
4269
|
+
interface RevertToUnpublishedResponse {
|
|
4270
|
+
/** Updated post draft. */
|
|
4271
|
+
draftPost?: DraftPost;
|
|
4272
|
+
}
|
|
4273
|
+
interface RejectDraftPostRequest {
|
|
4274
|
+
/**
|
|
4275
|
+
* Source post ID.
|
|
4276
|
+
* @format GUID
|
|
4277
|
+
*/
|
|
4278
|
+
postId?: string;
|
|
4279
|
+
/**
|
|
4280
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4281
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4282
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4283
|
+
* @maxSize 10
|
|
4284
|
+
*/
|
|
4285
|
+
fieldsets?: FieldWithLiterals[];
|
|
4286
|
+
}
|
|
4287
|
+
interface RejectDraftPostResponse {
|
|
4288
|
+
/** Draft post. */
|
|
4289
|
+
draftPost?: DraftPost;
|
|
4290
|
+
}
|
|
4291
|
+
interface ApproveDraftPostRequest {
|
|
4292
|
+
/**
|
|
4293
|
+
* Source post ID.
|
|
4294
|
+
* @format GUID
|
|
4295
|
+
*/
|
|
4296
|
+
postId?: string;
|
|
4297
|
+
/**
|
|
4298
|
+
* Scheduled publish date if should be not immediately published.
|
|
4299
|
+
* @maxLength 24
|
|
4300
|
+
*/
|
|
4301
|
+
scheduledPublishDate?: string | null;
|
|
4302
|
+
/**
|
|
4303
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4304
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4305
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4306
|
+
* @maxSize 10
|
|
4307
|
+
*/
|
|
4308
|
+
fieldsets?: FieldWithLiterals[];
|
|
4309
|
+
}
|
|
4310
|
+
interface ApproveDraftPostResponse {
|
|
4311
|
+
/** Updated post draft. */
|
|
4312
|
+
draftPost?: DraftPost;
|
|
4313
|
+
}
|
|
4314
|
+
interface MarkPostAsInModerationRequest {
|
|
4315
|
+
/**
|
|
4316
|
+
* Source post ID.
|
|
4317
|
+
* @maxLength 38
|
|
4318
|
+
*/
|
|
4319
|
+
postId?: string;
|
|
4320
|
+
/**
|
|
4321
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4322
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4323
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4324
|
+
* @maxSize 10
|
|
4325
|
+
*/
|
|
4326
|
+
fieldsets?: FieldWithLiterals[];
|
|
4327
|
+
}
|
|
4328
|
+
interface MarkPostAsInModerationResponse {
|
|
4329
|
+
/** Updated post draft. */
|
|
4330
|
+
draftPost?: DraftPost;
|
|
4331
|
+
}
|
|
4332
4332
|
|
|
4333
4333
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4334
4334
|
getUrl: (context: any) => string;
|
package/build/cjs/meta.js
CHANGED
|
@@ -2839,19 +2839,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
2839
2839
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
2840
2840
|
return ModerationStatusStatus2;
|
|
2841
2841
|
})(ModerationStatusStatus || {});
|
|
2842
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2843
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2844
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2845
|
-
return TotalDraftPostsGroupingField2;
|
|
2846
|
-
})(TotalDraftPostsGroupingField || {});
|
|
2847
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2848
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2849
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2850
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2851
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2852
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
2853
|
-
return WebhookIdentityType2;
|
|
2854
|
-
})(WebhookIdentityType || {});
|
|
2855
2842
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
2856
2843
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
2857
2844
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -2891,6 +2878,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
2891
2878
|
SortOrder2["DESC"] = "DESC";
|
|
2892
2879
|
return SortOrder2;
|
|
2893
2880
|
})(SortOrder || {});
|
|
2881
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2882
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2883
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2884
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2885
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2886
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
2887
|
+
return WebhookIdentityType2;
|
|
2888
|
+
})(WebhookIdentityType || {});
|
|
2889
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2890
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2891
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2892
|
+
return TotalDraftPostsGroupingField2;
|
|
2893
|
+
})(TotalDraftPostsGroupingField || {});
|
|
2894
2894
|
|
|
2895
2895
|
// src/blog-v3-draft-draft-posts.meta.ts
|
|
2896
2896
|
function createDraftPost2() {
|