@wix/auto_sdk_blog_draft-posts 1.0.125 → 1.0.126
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
|
@@ -3345,10 +3345,6 @@ interface DraftPostTranslation {
|
|
|
3345
3345
|
/** Post URL. */
|
|
3346
3346
|
url?: string;
|
|
3347
3347
|
}
|
|
3348
|
-
interface InitialDraftPostsCopied {
|
|
3349
|
-
/** Number of draft posts copied. */
|
|
3350
|
-
count?: number;
|
|
3351
|
-
}
|
|
3352
3348
|
interface DraftCategoriesUpdated {
|
|
3353
3349
|
/**
|
|
3354
3350
|
* Draft post ID.
|
|
@@ -3387,6 +3383,200 @@ interface DraftTagsUpdated {
|
|
|
3387
3383
|
*/
|
|
3388
3384
|
previousTags?: string[];
|
|
3389
3385
|
}
|
|
3386
|
+
interface GetDraftPostTotalsRequest {
|
|
3387
|
+
/**
|
|
3388
|
+
* Group results by fields (defaults to grouping by status).
|
|
3389
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3390
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3391
|
+
* @maxSize 10
|
|
3392
|
+
*/
|
|
3393
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3394
|
+
/**
|
|
3395
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3396
|
+
* @format LANGUAGE_TAG
|
|
3397
|
+
*/
|
|
3398
|
+
language?: string | null;
|
|
3399
|
+
}
|
|
3400
|
+
declare enum TotalDraftPostsGroupingField {
|
|
3401
|
+
/** Groups results by status. */
|
|
3402
|
+
STATUS = "STATUS",
|
|
3403
|
+
/** Groups results by language. */
|
|
3404
|
+
LANGUAGE = "LANGUAGE"
|
|
3405
|
+
}
|
|
3406
|
+
/** @enumType */
|
|
3407
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3408
|
+
interface GetDraftPostTotalsResponse {
|
|
3409
|
+
/** Draft post totals. */
|
|
3410
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
3411
|
+
}
|
|
3412
|
+
interface TotalDraftPosts {
|
|
3413
|
+
/** Draft post totals in that group. */
|
|
3414
|
+
total?: number;
|
|
3415
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3416
|
+
status?: StatusWithLiterals;
|
|
3417
|
+
/**
|
|
3418
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3419
|
+
* @format LANGUAGE_TAG
|
|
3420
|
+
*/
|
|
3421
|
+
language?: string | null;
|
|
3422
|
+
}
|
|
3423
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3424
|
+
createdEvent?: EntityCreatedEvent;
|
|
3425
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3426
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3427
|
+
actionEvent?: ActionEvent;
|
|
3428
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3429
|
+
_id?: string;
|
|
3430
|
+
/**
|
|
3431
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3432
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3433
|
+
*/
|
|
3434
|
+
entityFqdn?: string;
|
|
3435
|
+
/**
|
|
3436
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3437
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3438
|
+
*/
|
|
3439
|
+
slug?: string;
|
|
3440
|
+
/** ID of the entity associated with the event. */
|
|
3441
|
+
entityId?: string;
|
|
3442
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3443
|
+
eventTime?: Date | null;
|
|
3444
|
+
/**
|
|
3445
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3446
|
+
* (for example, GDPR).
|
|
3447
|
+
*/
|
|
3448
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3449
|
+
/** If present, indicates the action that triggered the event. */
|
|
3450
|
+
originatedFrom?: string | null;
|
|
3451
|
+
/**
|
|
3452
|
+
* 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.
|
|
3453
|
+
* 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.
|
|
3454
|
+
*/
|
|
3455
|
+
entityEventSequence?: string | null;
|
|
3456
|
+
}
|
|
3457
|
+
/** @oneof */
|
|
3458
|
+
interface DomainEventBodyOneOf {
|
|
3459
|
+
createdEvent?: EntityCreatedEvent;
|
|
3460
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3461
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3462
|
+
actionEvent?: ActionEvent;
|
|
3463
|
+
}
|
|
3464
|
+
interface EntityCreatedEvent {
|
|
3465
|
+
entity?: string;
|
|
3466
|
+
}
|
|
3467
|
+
interface RestoreInfo {
|
|
3468
|
+
deletedDate?: Date | null;
|
|
3469
|
+
}
|
|
3470
|
+
interface EntityUpdatedEvent {
|
|
3471
|
+
/**
|
|
3472
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3473
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3474
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3475
|
+
*/
|
|
3476
|
+
currentEntity?: string;
|
|
3477
|
+
}
|
|
3478
|
+
interface EntityDeletedEvent {
|
|
3479
|
+
/** Entity that was deleted. */
|
|
3480
|
+
deletedEntity?: string | null;
|
|
3481
|
+
}
|
|
3482
|
+
interface ActionEvent {
|
|
3483
|
+
body?: string;
|
|
3484
|
+
}
|
|
3485
|
+
interface MessageEnvelope {
|
|
3486
|
+
/**
|
|
3487
|
+
* App instance ID.
|
|
3488
|
+
* @format GUID
|
|
3489
|
+
*/
|
|
3490
|
+
instanceId?: string | null;
|
|
3491
|
+
/**
|
|
3492
|
+
* Event type.
|
|
3493
|
+
* @maxLength 150
|
|
3494
|
+
*/
|
|
3495
|
+
eventType?: string;
|
|
3496
|
+
/** The identification type and identity data. */
|
|
3497
|
+
identity?: IdentificationData;
|
|
3498
|
+
/** Stringify payload. */
|
|
3499
|
+
data?: string;
|
|
3500
|
+
/** Details related to the account */
|
|
3501
|
+
accountInfo?: AccountInfo;
|
|
3502
|
+
}
|
|
3503
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3504
|
+
/**
|
|
3505
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3506
|
+
* @format GUID
|
|
3507
|
+
*/
|
|
3508
|
+
anonymousVisitorId?: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* ID of a site visitor that has logged in to the site.
|
|
3511
|
+
* @format GUID
|
|
3512
|
+
*/
|
|
3513
|
+
memberId?: string;
|
|
3514
|
+
/**
|
|
3515
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3516
|
+
* @format GUID
|
|
3517
|
+
*/
|
|
3518
|
+
wixUserId?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* ID of an app.
|
|
3521
|
+
* @format GUID
|
|
3522
|
+
*/
|
|
3523
|
+
appId?: string;
|
|
3524
|
+
/** @readonly */
|
|
3525
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3526
|
+
}
|
|
3527
|
+
/** @oneof */
|
|
3528
|
+
interface IdentificationDataIdOneOf {
|
|
3529
|
+
/**
|
|
3530
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3531
|
+
* @format GUID
|
|
3532
|
+
*/
|
|
3533
|
+
anonymousVisitorId?: string;
|
|
3534
|
+
/**
|
|
3535
|
+
* ID of a site visitor that has logged in to the site.
|
|
3536
|
+
* @format GUID
|
|
3537
|
+
*/
|
|
3538
|
+
memberId?: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3541
|
+
* @format GUID
|
|
3542
|
+
*/
|
|
3543
|
+
wixUserId?: string;
|
|
3544
|
+
/**
|
|
3545
|
+
* ID of an app.
|
|
3546
|
+
* @format GUID
|
|
3547
|
+
*/
|
|
3548
|
+
appId?: string;
|
|
3549
|
+
}
|
|
3550
|
+
declare enum WebhookIdentityType {
|
|
3551
|
+
UNKNOWN = "UNKNOWN",
|
|
3552
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3553
|
+
MEMBER = "MEMBER",
|
|
3554
|
+
WIX_USER = "WIX_USER",
|
|
3555
|
+
APP = "APP"
|
|
3556
|
+
}
|
|
3557
|
+
/** @enumType */
|
|
3558
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3559
|
+
interface AccountInfo {
|
|
3560
|
+
/**
|
|
3561
|
+
* ID of the Wix account associated with the event.
|
|
3562
|
+
* @format GUID
|
|
3563
|
+
*/
|
|
3564
|
+
accountId?: string | null;
|
|
3565
|
+
/**
|
|
3566
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3567
|
+
* @format GUID
|
|
3568
|
+
*/
|
|
3569
|
+
parentAccountId?: string | null;
|
|
3570
|
+
/**
|
|
3571
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3572
|
+
* @format GUID
|
|
3573
|
+
*/
|
|
3574
|
+
siteId?: string | null;
|
|
3575
|
+
}
|
|
3576
|
+
interface InitialDraftPostsCopied {
|
|
3577
|
+
/** Number of draft posts copied. */
|
|
3578
|
+
count?: number;
|
|
3579
|
+
}
|
|
3390
3580
|
interface CreateDraftPostRequest {
|
|
3391
3581
|
/** Draft post to create. */
|
|
3392
3582
|
draftPost: DraftPost;
|
|
@@ -3967,195 +4157,116 @@ interface DraftPostCount {
|
|
|
3967
4157
|
/** Number of posts. */
|
|
3968
4158
|
postCount?: number;
|
|
3969
4159
|
}
|
|
3970
|
-
interface
|
|
3971
|
-
createdEvent?: EntityCreatedEvent;
|
|
3972
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3973
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3974
|
-
actionEvent?: ActionEvent;
|
|
3975
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3976
|
-
_id?: string;
|
|
4160
|
+
interface BulkRevertToUnpublishedRequest {
|
|
3977
4161
|
/**
|
|
3978
|
-
*
|
|
3979
|
-
*
|
|
4162
|
+
* Source post IDs.
|
|
4163
|
+
* @minSize 1
|
|
4164
|
+
* @maxSize 100
|
|
4165
|
+
* @format GUID
|
|
3980
4166
|
*/
|
|
3981
|
-
|
|
4167
|
+
postIds?: string[];
|
|
4168
|
+
/** Should full draft post be returned. */
|
|
4169
|
+
returnFullEntity?: boolean;
|
|
4170
|
+
}
|
|
4171
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4172
|
+
/** Bulk action results. */
|
|
4173
|
+
results?: BulkDraftPostResult[];
|
|
4174
|
+
/** Bulk action metadata. */
|
|
4175
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4176
|
+
}
|
|
4177
|
+
interface BulkRejectDraftPostRequest {
|
|
3982
4178
|
/**
|
|
3983
|
-
*
|
|
3984
|
-
*
|
|
4179
|
+
* Source post IDs.
|
|
4180
|
+
* @minSize 1
|
|
4181
|
+
* @maxSize 100
|
|
4182
|
+
* @format GUID
|
|
3985
4183
|
*/
|
|
3986
|
-
|
|
3987
|
-
/**
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
4184
|
+
postIds?: string[];
|
|
4185
|
+
/** Should full draft post be returned. */
|
|
4186
|
+
returnFullEntity?: boolean;
|
|
4187
|
+
}
|
|
4188
|
+
interface BulkRejectDraftPostResponse {
|
|
4189
|
+
/** Bulk action results. */
|
|
4190
|
+
results?: BulkDraftPostResult[];
|
|
4191
|
+
/** Bulk action metadata. */
|
|
4192
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4193
|
+
}
|
|
4194
|
+
interface RevertToUnpublishedRequest {
|
|
3991
4195
|
/**
|
|
3992
|
-
*
|
|
3993
|
-
*
|
|
4196
|
+
* Source post ID.
|
|
4197
|
+
* @format GUID
|
|
3994
4198
|
*/
|
|
3995
|
-
|
|
3996
|
-
/** If present, indicates the action that triggered the event. */
|
|
3997
|
-
originatedFrom?: string | null;
|
|
4199
|
+
postId?: string;
|
|
3998
4200
|
/**
|
|
3999
|
-
*
|
|
4000
|
-
*
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
}
|
|
4004
|
-
/** @oneof */
|
|
4005
|
-
interface DomainEventBodyOneOf {
|
|
4006
|
-
createdEvent?: EntityCreatedEvent;
|
|
4007
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4008
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4009
|
-
actionEvent?: ActionEvent;
|
|
4010
|
-
}
|
|
4011
|
-
interface EntityCreatedEvent {
|
|
4012
|
-
entity?: string;
|
|
4013
|
-
}
|
|
4014
|
-
interface RestoreInfo {
|
|
4015
|
-
deletedDate?: Date | null;
|
|
4016
|
-
}
|
|
4017
|
-
interface EntityUpdatedEvent {
|
|
4018
|
-
/**
|
|
4019
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4020
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4021
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4201
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4202
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4203
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4204
|
+
* @maxSize 10
|
|
4022
4205
|
*/
|
|
4023
|
-
|
|
4024
|
-
}
|
|
4025
|
-
interface EntityDeletedEvent {
|
|
4026
|
-
/** Entity that was deleted. */
|
|
4027
|
-
deletedEntity?: string | null;
|
|
4206
|
+
fieldsets?: FieldWithLiterals[];
|
|
4028
4207
|
}
|
|
4029
|
-
interface
|
|
4030
|
-
|
|
4208
|
+
interface RevertToUnpublishedResponse {
|
|
4209
|
+
/** Updated post draft. */
|
|
4210
|
+
draftPost?: DraftPost;
|
|
4031
4211
|
}
|
|
4032
|
-
interface
|
|
4212
|
+
interface RejectDraftPostRequest {
|
|
4033
4213
|
/**
|
|
4034
|
-
*
|
|
4214
|
+
* Source post ID.
|
|
4035
4215
|
* @format GUID
|
|
4036
4216
|
*/
|
|
4037
|
-
|
|
4217
|
+
postId?: string;
|
|
4038
4218
|
/**
|
|
4039
|
-
*
|
|
4040
|
-
*
|
|
4219
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4220
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4221
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4222
|
+
* @maxSize 10
|
|
4041
4223
|
*/
|
|
4042
|
-
|
|
4043
|
-
/** The identification type and identity data. */
|
|
4044
|
-
identity?: IdentificationData;
|
|
4045
|
-
/** Stringify payload. */
|
|
4046
|
-
data?: string;
|
|
4047
|
-
/** Details related to the account */
|
|
4048
|
-
accountInfo?: AccountInfo;
|
|
4224
|
+
fieldsets?: FieldWithLiterals[];
|
|
4049
4225
|
}
|
|
4050
|
-
interface
|
|
4051
|
-
/**
|
|
4052
|
-
|
|
4053
|
-
* @format GUID
|
|
4054
|
-
*/
|
|
4055
|
-
anonymousVisitorId?: string;
|
|
4056
|
-
/**
|
|
4057
|
-
* ID of a site visitor that has logged in to the site.
|
|
4058
|
-
* @format GUID
|
|
4059
|
-
*/
|
|
4060
|
-
memberId?: string;
|
|
4061
|
-
/**
|
|
4062
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
4063
|
-
* @format GUID
|
|
4064
|
-
*/
|
|
4065
|
-
wixUserId?: string;
|
|
4066
|
-
/**
|
|
4067
|
-
* ID of an app.
|
|
4068
|
-
* @format GUID
|
|
4069
|
-
*/
|
|
4070
|
-
appId?: string;
|
|
4071
|
-
/** @readonly */
|
|
4072
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4226
|
+
interface RejectDraftPostResponse {
|
|
4227
|
+
/** Draft post. */
|
|
4228
|
+
draftPost?: DraftPost;
|
|
4073
4229
|
}
|
|
4074
|
-
|
|
4075
|
-
interface IdentificationDataIdOneOf {
|
|
4076
|
-
/**
|
|
4077
|
-
* ID of a site visitor that has not logged in to the site.
|
|
4078
|
-
* @format GUID
|
|
4079
|
-
*/
|
|
4080
|
-
anonymousVisitorId?: string;
|
|
4230
|
+
interface ApproveDraftPostRequest {
|
|
4081
4231
|
/**
|
|
4082
|
-
*
|
|
4232
|
+
* Source post ID.
|
|
4083
4233
|
* @format GUID
|
|
4084
4234
|
*/
|
|
4085
|
-
|
|
4235
|
+
postId?: string;
|
|
4086
4236
|
/**
|
|
4087
|
-
*
|
|
4088
|
-
* @
|
|
4237
|
+
* Scheduled publish date if should be not immediately published.
|
|
4238
|
+
* @maxLength 24
|
|
4089
4239
|
*/
|
|
4090
|
-
|
|
4240
|
+
scheduledPublishDate?: string | null;
|
|
4091
4241
|
/**
|
|
4092
|
-
*
|
|
4093
|
-
*
|
|
4242
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4243
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4244
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4245
|
+
* @maxSize 10
|
|
4094
4246
|
*/
|
|
4095
|
-
|
|
4247
|
+
fieldsets?: FieldWithLiterals[];
|
|
4096
4248
|
}
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
MEMBER = "MEMBER",
|
|
4101
|
-
WIX_USER = "WIX_USER",
|
|
4102
|
-
APP = "APP"
|
|
4249
|
+
interface ApproveDraftPostResponse {
|
|
4250
|
+
/** Updated post draft. */
|
|
4251
|
+
draftPost?: DraftPost;
|
|
4103
4252
|
}
|
|
4104
|
-
|
|
4105
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4106
|
-
interface AccountInfo {
|
|
4107
|
-
/**
|
|
4108
|
-
* ID of the Wix account associated with the event.
|
|
4109
|
-
* @format GUID
|
|
4110
|
-
*/
|
|
4111
|
-
accountId?: string | null;
|
|
4112
|
-
/**
|
|
4113
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4114
|
-
* @format GUID
|
|
4115
|
-
*/
|
|
4116
|
-
parentAccountId?: string | null;
|
|
4253
|
+
interface MarkPostAsInModerationRequest {
|
|
4117
4254
|
/**
|
|
4118
|
-
*
|
|
4119
|
-
* @
|
|
4255
|
+
* Source post ID.
|
|
4256
|
+
* @maxLength 38
|
|
4120
4257
|
*/
|
|
4121
|
-
|
|
4122
|
-
}
|
|
4123
|
-
interface GetDraftPostTotalsRequest {
|
|
4258
|
+
postId?: string;
|
|
4124
4259
|
/**
|
|
4125
|
-
*
|
|
4126
|
-
*
|
|
4127
|
-
*
|
|
4260
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4261
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4262
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4128
4263
|
* @maxSize 10
|
|
4129
4264
|
*/
|
|
4130
|
-
|
|
4131
|
-
/**
|
|
4132
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4133
|
-
* @format LANGUAGE_TAG
|
|
4134
|
-
*/
|
|
4135
|
-
language?: string | null;
|
|
4136
|
-
}
|
|
4137
|
-
declare enum TotalDraftPostsGroupingField {
|
|
4138
|
-
/** Groups results by status. */
|
|
4139
|
-
STATUS = "STATUS",
|
|
4140
|
-
/** Groups results by language. */
|
|
4141
|
-
LANGUAGE = "LANGUAGE"
|
|
4142
|
-
}
|
|
4143
|
-
/** @enumType */
|
|
4144
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4145
|
-
interface GetDraftPostTotalsResponse {
|
|
4146
|
-
/** Draft post totals. */
|
|
4147
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
4265
|
+
fieldsets?: FieldWithLiterals[];
|
|
4148
4266
|
}
|
|
4149
|
-
interface
|
|
4150
|
-
/**
|
|
4151
|
-
|
|
4152
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4153
|
-
status?: StatusWithLiterals;
|
|
4154
|
-
/**
|
|
4155
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4156
|
-
* @format LANGUAGE_TAG
|
|
4157
|
-
*/
|
|
4158
|
-
language?: string | null;
|
|
4267
|
+
interface MarkPostAsInModerationResponse {
|
|
4268
|
+
/** Updated post draft. */
|
|
4269
|
+
draftPost?: DraftPost;
|
|
4159
4270
|
}
|
|
4160
4271
|
interface TranslateDraftRequest {
|
|
4161
4272
|
/**
|
|
@@ -4242,117 +4353,6 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4242
4353
|
/** Updated draft post. */
|
|
4243
4354
|
draftPost?: DraftPost;
|
|
4244
4355
|
}
|
|
4245
|
-
interface BulkRevertToUnpublishedRequest {
|
|
4246
|
-
/**
|
|
4247
|
-
* Source post IDs.
|
|
4248
|
-
* @minSize 1
|
|
4249
|
-
* @maxSize 100
|
|
4250
|
-
* @format GUID
|
|
4251
|
-
*/
|
|
4252
|
-
postIds?: string[];
|
|
4253
|
-
/** Should full draft post be returned. */
|
|
4254
|
-
returnFullEntity?: boolean;
|
|
4255
|
-
}
|
|
4256
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4257
|
-
/** Bulk action results. */
|
|
4258
|
-
results?: BulkDraftPostResult[];
|
|
4259
|
-
/** Bulk action metadata. */
|
|
4260
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4261
|
-
}
|
|
4262
|
-
interface BulkRejectDraftPostRequest {
|
|
4263
|
-
/**
|
|
4264
|
-
* Source post IDs.
|
|
4265
|
-
* @minSize 1
|
|
4266
|
-
* @maxSize 100
|
|
4267
|
-
* @format GUID
|
|
4268
|
-
*/
|
|
4269
|
-
postIds?: string[];
|
|
4270
|
-
/** Should full draft post be returned. */
|
|
4271
|
-
returnFullEntity?: boolean;
|
|
4272
|
-
}
|
|
4273
|
-
interface BulkRejectDraftPostResponse {
|
|
4274
|
-
/** Bulk action results. */
|
|
4275
|
-
results?: BulkDraftPostResult[];
|
|
4276
|
-
/** Bulk action metadata. */
|
|
4277
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4278
|
-
}
|
|
4279
|
-
interface RevertToUnpublishedRequest {
|
|
4280
|
-
/**
|
|
4281
|
-
* Source post ID.
|
|
4282
|
-
* @format GUID
|
|
4283
|
-
*/
|
|
4284
|
-
postId?: string;
|
|
4285
|
-
/**
|
|
4286
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4287
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4288
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4289
|
-
* @maxSize 10
|
|
4290
|
-
*/
|
|
4291
|
-
fieldsets?: FieldWithLiterals[];
|
|
4292
|
-
}
|
|
4293
|
-
interface RevertToUnpublishedResponse {
|
|
4294
|
-
/** Updated post draft. */
|
|
4295
|
-
draftPost?: DraftPost;
|
|
4296
|
-
}
|
|
4297
|
-
interface RejectDraftPostRequest {
|
|
4298
|
-
/**
|
|
4299
|
-
* Source post ID.
|
|
4300
|
-
* @format GUID
|
|
4301
|
-
*/
|
|
4302
|
-
postId?: string;
|
|
4303
|
-
/**
|
|
4304
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4305
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4306
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4307
|
-
* @maxSize 10
|
|
4308
|
-
*/
|
|
4309
|
-
fieldsets?: FieldWithLiterals[];
|
|
4310
|
-
}
|
|
4311
|
-
interface RejectDraftPostResponse {
|
|
4312
|
-
/** Draft post. */
|
|
4313
|
-
draftPost?: DraftPost;
|
|
4314
|
-
}
|
|
4315
|
-
interface ApproveDraftPostRequest {
|
|
4316
|
-
/**
|
|
4317
|
-
* Source post ID.
|
|
4318
|
-
* @format GUID
|
|
4319
|
-
*/
|
|
4320
|
-
postId?: string;
|
|
4321
|
-
/**
|
|
4322
|
-
* Scheduled publish date if should be not immediately published.
|
|
4323
|
-
* @maxLength 24
|
|
4324
|
-
*/
|
|
4325
|
-
scheduledPublishDate?: string | null;
|
|
4326
|
-
/**
|
|
4327
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4328
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4329
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4330
|
-
* @maxSize 10
|
|
4331
|
-
*/
|
|
4332
|
-
fieldsets?: FieldWithLiterals[];
|
|
4333
|
-
}
|
|
4334
|
-
interface ApproveDraftPostResponse {
|
|
4335
|
-
/** Updated post draft. */
|
|
4336
|
-
draftPost?: DraftPost;
|
|
4337
|
-
}
|
|
4338
|
-
interface MarkPostAsInModerationRequest {
|
|
4339
|
-
/**
|
|
4340
|
-
* Source post ID.
|
|
4341
|
-
* @maxLength 38
|
|
4342
|
-
*/
|
|
4343
|
-
postId?: string;
|
|
4344
|
-
/**
|
|
4345
|
-
* List of draft post fields to be included if entities are present in the response.
|
|
4346
|
-
* Base fieldset, which is default, will return all core draft post properties.
|
|
4347
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4348
|
-
* @maxSize 10
|
|
4349
|
-
*/
|
|
4350
|
-
fieldsets?: FieldWithLiterals[];
|
|
4351
|
-
}
|
|
4352
|
-
interface MarkPostAsInModerationResponse {
|
|
4353
|
-
/** Updated post draft. */
|
|
4354
|
-
draftPost?: DraftPost;
|
|
4355
|
-
}
|
|
4356
4356
|
interface BaseEventMetadata {
|
|
4357
4357
|
/**
|
|
4358
4358
|
* App instance ID.
|
|
@@ -2898,6 +2898,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
2898
2898
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
2899
2899
|
return ModerationStatusStatus2;
|
|
2900
2900
|
})(ModerationStatusStatus || {});
|
|
2901
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2902
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2903
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2904
|
+
return TotalDraftPostsGroupingField2;
|
|
2905
|
+
})(TotalDraftPostsGroupingField || {});
|
|
2906
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2907
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2908
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2909
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2910
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2911
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
2912
|
+
return WebhookIdentityType2;
|
|
2913
|
+
})(WebhookIdentityType || {});
|
|
2901
2914
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
2902
2915
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
2903
2916
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -2937,19 +2950,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
2937
2950
|
SortOrder2["DESC"] = "DESC";
|
|
2938
2951
|
return SortOrder2;
|
|
2939
2952
|
})(SortOrder || {});
|
|
2940
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2941
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2942
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2943
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2944
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2945
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
2946
|
-
return WebhookIdentityType2;
|
|
2947
|
-
})(WebhookIdentityType || {});
|
|
2948
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2949
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2950
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2951
|
-
return TotalDraftPostsGroupingField2;
|
|
2952
|
-
})(TotalDraftPostsGroupingField || {});
|
|
2953
2953
|
async function createDraftPost2(draftPost, options) {
|
|
2954
2954
|
const { httpClient, sideEffects } = arguments[2];
|
|
2955
2955
|
const payload = (0, import_transform_paths2.transformPaths)(
|