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