@wix/auto_sdk_blog_draft-posts 1.0.117 → 1.0.119
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 +18 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +285 -283
- package/build/cjs/index.typings.js +18 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +287 -285
- package/build/cjs/meta.js +18 -18
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +18 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +285 -283
- package/build/es/index.typings.mjs +18 -18
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +287 -285
- package/build/es/meta.mjs +18 -18
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +314 -312
- package/build/internal/cjs/meta.d.ts +743 -741
- package/build/internal/es/index.typings.d.mts +314 -312
- package/build/internal/es/meta.d.mts +743 -741
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -951,6 +951,8 @@ interface TextStyle {
|
|
|
951
951
|
textAlignment?: TextAlignmentWithLiterals;
|
|
952
952
|
/** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
|
|
953
953
|
lineHeight?: string | null;
|
|
954
|
+
/** Font size of an empty block: it sizes the empty line, its list marker and the text typed into it. Ignored on a block with text, which is sized by its text's `FONT_SIZE` decorations. */
|
|
955
|
+
fontSize?: FontSizeData;
|
|
954
956
|
}
|
|
955
957
|
declare enum TextAlignment {
|
|
956
958
|
/** browser default, eqivalent to `initial` */
|
|
@@ -966,6 +968,18 @@ declare enum TextAlignment {
|
|
|
966
968
|
}
|
|
967
969
|
/** @enumType */
|
|
968
970
|
type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
|
|
971
|
+
interface FontSizeData {
|
|
972
|
+
/** The units used for the font size. */
|
|
973
|
+
unit?: FontTypeWithLiterals;
|
|
974
|
+
/** Font size value. */
|
|
975
|
+
value?: number | null;
|
|
976
|
+
}
|
|
977
|
+
declare enum FontType {
|
|
978
|
+
PX = "PX",
|
|
979
|
+
EM = "EM"
|
|
980
|
+
}
|
|
981
|
+
/** @enumType */
|
|
982
|
+
type FontTypeWithLiterals = FontType | 'PX' | 'EM';
|
|
969
983
|
interface DividerData {
|
|
970
984
|
/** Styling for the divider's container. */
|
|
971
985
|
containerData?: PluginContainerData;
|
|
@@ -1830,18 +1844,6 @@ interface MentionData {
|
|
|
1830
1844
|
/** The kind of entity the mention refers to. Any value is accepted, and it's usually used to mark a mention as a group mention (for example, `group`). When empty, the mention refers to a member. */
|
|
1831
1845
|
type?: string | null;
|
|
1832
1846
|
}
|
|
1833
|
-
interface FontSizeData {
|
|
1834
|
-
/** The units used for the font size. */
|
|
1835
|
-
unit?: FontTypeWithLiterals;
|
|
1836
|
-
/** Font size value. */
|
|
1837
|
-
value?: number | null;
|
|
1838
|
-
}
|
|
1839
|
-
declare enum FontType {
|
|
1840
|
-
PX = "PX",
|
|
1841
|
-
EM = "EM"
|
|
1842
|
-
}
|
|
1843
|
-
/** @enumType */
|
|
1844
|
-
type FontTypeWithLiterals = FontType | 'PX' | 'EM';
|
|
1845
1847
|
interface SpoilerData {
|
|
1846
1848
|
/** Spoiler ID. */
|
|
1847
1849
|
id?: string | null;
|
|
@@ -3326,10 +3328,6 @@ interface DraftPostTranslation {
|
|
|
3326
3328
|
/** Post URL. */
|
|
3327
3329
|
url?: PageUrl;
|
|
3328
3330
|
}
|
|
3329
|
-
interface InitialDraftPostsCopied {
|
|
3330
|
-
/** Number of draft posts copied. */
|
|
3331
|
-
count?: number;
|
|
3332
|
-
}
|
|
3333
3331
|
interface DraftCategoriesUpdated {
|
|
3334
3332
|
/**
|
|
3335
3333
|
* Draft post ID.
|
|
@@ -3368,6 +3366,202 @@ interface DraftTagsUpdated {
|
|
|
3368
3366
|
*/
|
|
3369
3367
|
previousTags?: string[];
|
|
3370
3368
|
}
|
|
3369
|
+
interface GetDraftPostTotalsRequest {
|
|
3370
|
+
/**
|
|
3371
|
+
* Group results by fields (defaults to grouping by status).
|
|
3372
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3373
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3374
|
+
* @maxSize 10
|
|
3375
|
+
*/
|
|
3376
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3377
|
+
/**
|
|
3378
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3379
|
+
* @format LANGUAGE_TAG
|
|
3380
|
+
*/
|
|
3381
|
+
language?: string | null;
|
|
3382
|
+
}
|
|
3383
|
+
declare enum TotalDraftPostsGroupingField {
|
|
3384
|
+
/** Groups results by status. */
|
|
3385
|
+
STATUS = "STATUS",
|
|
3386
|
+
/** Groups results by language. */
|
|
3387
|
+
LANGUAGE = "LANGUAGE"
|
|
3388
|
+
}
|
|
3389
|
+
/** @enumType */
|
|
3390
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3391
|
+
interface GetDraftPostTotalsResponse {
|
|
3392
|
+
/** Draft post totals. */
|
|
3393
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
3394
|
+
}
|
|
3395
|
+
interface TotalDraftPosts {
|
|
3396
|
+
/** Draft post totals in that group. */
|
|
3397
|
+
total?: number;
|
|
3398
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3399
|
+
status?: StatusWithLiterals;
|
|
3400
|
+
/**
|
|
3401
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3402
|
+
* @format LANGUAGE_TAG
|
|
3403
|
+
*/
|
|
3404
|
+
language?: string | null;
|
|
3405
|
+
}
|
|
3406
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3407
|
+
createdEvent?: EntityCreatedEvent;
|
|
3408
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3409
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3410
|
+
actionEvent?: ActionEvent;
|
|
3411
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3412
|
+
id?: string;
|
|
3413
|
+
/**
|
|
3414
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3415
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3416
|
+
*/
|
|
3417
|
+
entityFqdn?: string;
|
|
3418
|
+
/**
|
|
3419
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3420
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3421
|
+
*/
|
|
3422
|
+
slug?: string;
|
|
3423
|
+
/** ID of the entity associated with the event. */
|
|
3424
|
+
entityId?: string;
|
|
3425
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3426
|
+
eventTime?: Date | null;
|
|
3427
|
+
/**
|
|
3428
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3429
|
+
* (for example, GDPR).
|
|
3430
|
+
*/
|
|
3431
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3432
|
+
/** If present, indicates the action that triggered the event. */
|
|
3433
|
+
originatedFrom?: string | null;
|
|
3434
|
+
/**
|
|
3435
|
+
* 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.
|
|
3436
|
+
* 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.
|
|
3437
|
+
*/
|
|
3438
|
+
entityEventSequence?: string | null;
|
|
3439
|
+
}
|
|
3440
|
+
/** @oneof */
|
|
3441
|
+
interface DomainEventBodyOneOf {
|
|
3442
|
+
createdEvent?: EntityCreatedEvent;
|
|
3443
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3444
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3445
|
+
actionEvent?: ActionEvent;
|
|
3446
|
+
}
|
|
3447
|
+
interface EntityCreatedEvent {
|
|
3448
|
+
entityAsJson?: string;
|
|
3449
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3450
|
+
restoreInfo?: RestoreInfo;
|
|
3451
|
+
}
|
|
3452
|
+
interface RestoreInfo {
|
|
3453
|
+
deletedDate?: Date | null;
|
|
3454
|
+
}
|
|
3455
|
+
interface EntityUpdatedEvent {
|
|
3456
|
+
/**
|
|
3457
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3458
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3459
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3460
|
+
*/
|
|
3461
|
+
currentEntityAsJson?: string;
|
|
3462
|
+
}
|
|
3463
|
+
interface EntityDeletedEvent {
|
|
3464
|
+
/** Entity that was deleted. */
|
|
3465
|
+
deletedEntityAsJson?: string | null;
|
|
3466
|
+
}
|
|
3467
|
+
interface ActionEvent {
|
|
3468
|
+
bodyAsJson?: string;
|
|
3469
|
+
}
|
|
3470
|
+
interface MessageEnvelope {
|
|
3471
|
+
/**
|
|
3472
|
+
* App instance ID.
|
|
3473
|
+
* @format GUID
|
|
3474
|
+
*/
|
|
3475
|
+
instanceId?: string | null;
|
|
3476
|
+
/**
|
|
3477
|
+
* Event type.
|
|
3478
|
+
* @maxLength 150
|
|
3479
|
+
*/
|
|
3480
|
+
eventType?: string;
|
|
3481
|
+
/** The identification type and identity data. */
|
|
3482
|
+
identity?: IdentificationData;
|
|
3483
|
+
/** Stringify payload. */
|
|
3484
|
+
data?: string;
|
|
3485
|
+
/** Details related to the account */
|
|
3486
|
+
accountInfo?: AccountInfo;
|
|
3487
|
+
}
|
|
3488
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3489
|
+
/**
|
|
3490
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3491
|
+
* @format GUID
|
|
3492
|
+
*/
|
|
3493
|
+
anonymousVisitorId?: string;
|
|
3494
|
+
/**
|
|
3495
|
+
* ID of a site visitor that has logged in to the site.
|
|
3496
|
+
* @format GUID
|
|
3497
|
+
*/
|
|
3498
|
+
memberId?: string;
|
|
3499
|
+
/**
|
|
3500
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3501
|
+
* @format GUID
|
|
3502
|
+
*/
|
|
3503
|
+
wixUserId?: string;
|
|
3504
|
+
/**
|
|
3505
|
+
* ID of an app.
|
|
3506
|
+
* @format GUID
|
|
3507
|
+
*/
|
|
3508
|
+
appId?: string;
|
|
3509
|
+
/** @readonly */
|
|
3510
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3511
|
+
}
|
|
3512
|
+
/** @oneof */
|
|
3513
|
+
interface IdentificationDataIdOneOf {
|
|
3514
|
+
/**
|
|
3515
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3516
|
+
* @format GUID
|
|
3517
|
+
*/
|
|
3518
|
+
anonymousVisitorId?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* ID of a site visitor that has logged in to the site.
|
|
3521
|
+
* @format GUID
|
|
3522
|
+
*/
|
|
3523
|
+
memberId?: string;
|
|
3524
|
+
/**
|
|
3525
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3526
|
+
* @format GUID
|
|
3527
|
+
*/
|
|
3528
|
+
wixUserId?: string;
|
|
3529
|
+
/**
|
|
3530
|
+
* ID of an app.
|
|
3531
|
+
* @format GUID
|
|
3532
|
+
*/
|
|
3533
|
+
appId?: string;
|
|
3534
|
+
}
|
|
3535
|
+
declare enum WebhookIdentityType {
|
|
3536
|
+
UNKNOWN = "UNKNOWN",
|
|
3537
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3538
|
+
MEMBER = "MEMBER",
|
|
3539
|
+
WIX_USER = "WIX_USER",
|
|
3540
|
+
APP = "APP"
|
|
3541
|
+
}
|
|
3542
|
+
/** @enumType */
|
|
3543
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3544
|
+
interface AccountInfo {
|
|
3545
|
+
/**
|
|
3546
|
+
* ID of the Wix account associated with the event.
|
|
3547
|
+
* @format GUID
|
|
3548
|
+
*/
|
|
3549
|
+
accountId?: string | null;
|
|
3550
|
+
/**
|
|
3551
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3552
|
+
* @format GUID
|
|
3553
|
+
*/
|
|
3554
|
+
parentAccountId?: string | null;
|
|
3555
|
+
/**
|
|
3556
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3557
|
+
* @format GUID
|
|
3558
|
+
*/
|
|
3559
|
+
siteId?: string | null;
|
|
3560
|
+
}
|
|
3561
|
+
interface InitialDraftPostsCopied {
|
|
3562
|
+
/** Number of draft posts copied. */
|
|
3563
|
+
count?: number;
|
|
3564
|
+
}
|
|
3371
3565
|
interface CreateDraftPostRequest {
|
|
3372
3566
|
/** Draft post to create. */
|
|
3373
3567
|
draftPost: DraftPost;
|
|
@@ -3948,197 +4142,116 @@ interface DraftPostCount {
|
|
|
3948
4142
|
/** Number of posts. */
|
|
3949
4143
|
postCount?: number;
|
|
3950
4144
|
}
|
|
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;
|
|
4145
|
+
interface BulkRevertToUnpublishedRequest {
|
|
3958
4146
|
/**
|
|
3959
|
-
*
|
|
3960
|
-
*
|
|
4147
|
+
* Source post IDs.
|
|
4148
|
+
* @minSize 1
|
|
4149
|
+
* @maxSize 100
|
|
4150
|
+
* @format GUID
|
|
3961
4151
|
*/
|
|
3962
|
-
|
|
4152
|
+
postIds?: string[];
|
|
4153
|
+
/** Should full draft post be returned. */
|
|
4154
|
+
returnFullEntity?: boolean;
|
|
4155
|
+
}
|
|
4156
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4157
|
+
/** Bulk action results. */
|
|
4158
|
+
results?: BulkDraftPostResult[];
|
|
4159
|
+
/** Bulk action metadata. */
|
|
4160
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4161
|
+
}
|
|
4162
|
+
interface BulkRejectDraftPostRequest {
|
|
3963
4163
|
/**
|
|
3964
|
-
*
|
|
3965
|
-
*
|
|
4164
|
+
* Source post IDs.
|
|
4165
|
+
* @minSize 1
|
|
4166
|
+
* @maxSize 100
|
|
4167
|
+
* @format GUID
|
|
3966
4168
|
*/
|
|
3967
|
-
|
|
3968
|
-
/**
|
|
3969
|
-
|
|
3970
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3971
|
-
eventTime?: Date | null;
|
|
3972
|
-
/**
|
|
3973
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3974
|
-
* (for example, GDPR).
|
|
3975
|
-
*/
|
|
3976
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3977
|
-
/** If present, indicates the action that triggered the event. */
|
|
3978
|
-
originatedFrom?: string | null;
|
|
3979
|
-
/**
|
|
3980
|
-
* 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.
|
|
3981
|
-
* 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.
|
|
3982
|
-
*/
|
|
3983
|
-
entityEventSequence?: string | null;
|
|
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.
|
|
4005
|
-
*/
|
|
4006
|
-
currentEntityAsJson?: string;
|
|
4007
|
-
}
|
|
4008
|
-
interface EntityDeletedEvent {
|
|
4009
|
-
/** Entity that was deleted. */
|
|
4010
|
-
deletedEntityAsJson?: string | null;
|
|
4169
|
+
postIds?: string[];
|
|
4170
|
+
/** Should full draft post be returned. */
|
|
4171
|
+
returnFullEntity?: boolean;
|
|
4011
4172
|
}
|
|
4012
|
-
interface
|
|
4013
|
-
|
|
4173
|
+
interface BulkRejectDraftPostResponse {
|
|
4174
|
+
/** Bulk action results. */
|
|
4175
|
+
results?: BulkDraftPostResult[];
|
|
4176
|
+
/** Bulk action metadata. */
|
|
4177
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4014
4178
|
}
|
|
4015
|
-
interface
|
|
4179
|
+
interface RevertToUnpublishedRequest {
|
|
4016
4180
|
/**
|
|
4017
|
-
*
|
|
4181
|
+
* Source post ID.
|
|
4018
4182
|
* @format GUID
|
|
4019
4183
|
*/
|
|
4020
|
-
|
|
4184
|
+
postId?: string;
|
|
4021
4185
|
/**
|
|
4022
|
-
*
|
|
4023
|
-
*
|
|
4186
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4187
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4188
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4189
|
+
* @maxSize 10
|
|
4024
4190
|
*/
|
|
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;
|
|
4191
|
+
fieldsets?: FieldWithLiterals[];
|
|
4032
4192
|
}
|
|
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;
|
|
4193
|
+
interface RevertToUnpublishedResponse {
|
|
4194
|
+
/** Updated post draft. */
|
|
4195
|
+
draftPost?: DraftPost;
|
|
4056
4196
|
}
|
|
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;
|
|
4064
|
-
/**
|
|
4065
|
-
* ID of a site visitor that has logged in to the site.
|
|
4066
|
-
* @format GUID
|
|
4067
|
-
*/
|
|
4068
|
-
memberId?: string;
|
|
4197
|
+
interface RejectDraftPostRequest {
|
|
4069
4198
|
/**
|
|
4070
|
-
*
|
|
4199
|
+
* Source post ID.
|
|
4071
4200
|
* @format GUID
|
|
4072
4201
|
*/
|
|
4073
|
-
|
|
4202
|
+
postId?: string;
|
|
4074
4203
|
/**
|
|
4075
|
-
*
|
|
4076
|
-
*
|
|
4204
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4205
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4206
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4207
|
+
* @maxSize 10
|
|
4077
4208
|
*/
|
|
4078
|
-
|
|
4209
|
+
fieldsets?: FieldWithLiterals[];
|
|
4079
4210
|
}
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
MEMBER = "MEMBER",
|
|
4084
|
-
WIX_USER = "WIX_USER",
|
|
4085
|
-
APP = "APP"
|
|
4211
|
+
interface RejectDraftPostResponse {
|
|
4212
|
+
/** Draft post. */
|
|
4213
|
+
draftPost?: DraftPost;
|
|
4086
4214
|
}
|
|
4087
|
-
|
|
4088
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4089
|
-
interface AccountInfo {
|
|
4215
|
+
interface ApproveDraftPostRequest {
|
|
4090
4216
|
/**
|
|
4091
|
-
*
|
|
4217
|
+
* Source post ID.
|
|
4092
4218
|
* @format GUID
|
|
4093
4219
|
*/
|
|
4094
|
-
|
|
4220
|
+
postId?: string;
|
|
4095
4221
|
/**
|
|
4096
|
-
*
|
|
4097
|
-
* @
|
|
4222
|
+
* Scheduled publish date if should be not immediately published.
|
|
4223
|
+
* @maxLength 24
|
|
4098
4224
|
*/
|
|
4099
|
-
|
|
4225
|
+
scheduledPublishDate?: string | null;
|
|
4100
4226
|
/**
|
|
4101
|
-
*
|
|
4102
|
-
*
|
|
4227
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4228
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4229
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4230
|
+
* @maxSize 10
|
|
4103
4231
|
*/
|
|
4104
|
-
|
|
4232
|
+
fieldsets?: FieldWithLiterals[];
|
|
4105
4233
|
}
|
|
4106
|
-
interface
|
|
4234
|
+
interface ApproveDraftPostResponse {
|
|
4235
|
+
/** Updated post draft. */
|
|
4236
|
+
draftPost?: DraftPost;
|
|
4237
|
+
}
|
|
4238
|
+
interface MarkPostAsInModerationRequest {
|
|
4107
4239
|
/**
|
|
4108
|
-
*
|
|
4109
|
-
*
|
|
4110
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4111
|
-
* @maxSize 10
|
|
4240
|
+
* Source post ID.
|
|
4241
|
+
* @maxLength 38
|
|
4112
4242
|
*/
|
|
4113
|
-
|
|
4243
|
+
postId?: string;
|
|
4114
4244
|
/**
|
|
4115
|
-
*
|
|
4116
|
-
*
|
|
4245
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4246
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4247
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4248
|
+
* @maxSize 10
|
|
4117
4249
|
*/
|
|
4118
|
-
|
|
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[];
|
|
4250
|
+
fieldsets?: FieldWithLiterals[];
|
|
4131
4251
|
}
|
|
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;
|
|
4252
|
+
interface MarkPostAsInModerationResponse {
|
|
4253
|
+
/** Updated post draft. */
|
|
4254
|
+
draftPost?: DraftPost;
|
|
4142
4255
|
}
|
|
4143
4256
|
interface TranslateDraftRequest {
|
|
4144
4257
|
/**
|
|
@@ -4225,117 +4338,6 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4225
4338
|
/** Updated draft post. */
|
|
4226
4339
|
draftPost?: DraftPost;
|
|
4227
4340
|
}
|
|
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
4341
|
|
|
4340
4342
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4341
4343
|
getUrl: (context: any) => string;
|