@wix/auto_sdk_blog_draft-posts 1.0.112 → 1.0.113
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
|
@@ -3282,6 +3282,10 @@ interface DraftPostTranslation {
|
|
|
3282
3282
|
/** Post URL. */
|
|
3283
3283
|
url?: string;
|
|
3284
3284
|
}
|
|
3285
|
+
interface InitialDraftPostsCopied {
|
|
3286
|
+
/** Number of draft posts copied. */
|
|
3287
|
+
count?: number;
|
|
3288
|
+
}
|
|
3285
3289
|
interface DraftCategoriesUpdated {
|
|
3286
3290
|
/**
|
|
3287
3291
|
* Draft post ID.
|
|
@@ -3320,200 +3324,6 @@ interface DraftTagsUpdated {
|
|
|
3320
3324
|
*/
|
|
3321
3325
|
previousTags?: string[];
|
|
3322
3326
|
}
|
|
3323
|
-
interface GetDraftPostTotalsRequest {
|
|
3324
|
-
/**
|
|
3325
|
-
* Group results by fields (defaults to grouping by status).
|
|
3326
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3327
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3328
|
-
* @maxSize 10
|
|
3329
|
-
*/
|
|
3330
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3331
|
-
/**
|
|
3332
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3333
|
-
* @format LANGUAGE_TAG
|
|
3334
|
-
*/
|
|
3335
|
-
language?: string | null;
|
|
3336
|
-
}
|
|
3337
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3338
|
-
/** Groups results by status. */
|
|
3339
|
-
STATUS = "STATUS",
|
|
3340
|
-
/** Groups results by language. */
|
|
3341
|
-
LANGUAGE = "LANGUAGE"
|
|
3342
|
-
}
|
|
3343
|
-
/** @enumType */
|
|
3344
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3345
|
-
interface GetDraftPostTotalsResponse {
|
|
3346
|
-
/** Draft post totals. */
|
|
3347
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3348
|
-
}
|
|
3349
|
-
interface TotalDraftPosts {
|
|
3350
|
-
/** Draft post totals in that group. */
|
|
3351
|
-
total?: number;
|
|
3352
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3353
|
-
status?: StatusWithLiterals;
|
|
3354
|
-
/**
|
|
3355
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3356
|
-
* @format LANGUAGE_TAG
|
|
3357
|
-
*/
|
|
3358
|
-
language?: string | null;
|
|
3359
|
-
}
|
|
3360
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3361
|
-
createdEvent?: EntityCreatedEvent;
|
|
3362
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3363
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3364
|
-
actionEvent?: ActionEvent;
|
|
3365
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3366
|
-
_id?: string;
|
|
3367
|
-
/**
|
|
3368
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3369
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3370
|
-
*/
|
|
3371
|
-
entityFqdn?: string;
|
|
3372
|
-
/**
|
|
3373
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3374
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3375
|
-
*/
|
|
3376
|
-
slug?: string;
|
|
3377
|
-
/** ID of the entity associated with the event. */
|
|
3378
|
-
entityId?: string;
|
|
3379
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3380
|
-
eventTime?: Date | null;
|
|
3381
|
-
/**
|
|
3382
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3383
|
-
* (for example, GDPR).
|
|
3384
|
-
*/
|
|
3385
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3386
|
-
/** If present, indicates the action that triggered the event. */
|
|
3387
|
-
originatedFrom?: string | null;
|
|
3388
|
-
/**
|
|
3389
|
-
* 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.
|
|
3390
|
-
* 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.
|
|
3391
|
-
*/
|
|
3392
|
-
entityEventSequence?: string | null;
|
|
3393
|
-
}
|
|
3394
|
-
/** @oneof */
|
|
3395
|
-
interface DomainEventBodyOneOf {
|
|
3396
|
-
createdEvent?: EntityCreatedEvent;
|
|
3397
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3398
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3399
|
-
actionEvent?: ActionEvent;
|
|
3400
|
-
}
|
|
3401
|
-
interface EntityCreatedEvent {
|
|
3402
|
-
entity?: string;
|
|
3403
|
-
}
|
|
3404
|
-
interface RestoreInfo {
|
|
3405
|
-
deletedDate?: Date | null;
|
|
3406
|
-
}
|
|
3407
|
-
interface EntityUpdatedEvent {
|
|
3408
|
-
/**
|
|
3409
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3410
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3411
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3412
|
-
*/
|
|
3413
|
-
currentEntity?: string;
|
|
3414
|
-
}
|
|
3415
|
-
interface EntityDeletedEvent {
|
|
3416
|
-
/** Entity that was deleted. */
|
|
3417
|
-
deletedEntity?: string | null;
|
|
3418
|
-
}
|
|
3419
|
-
interface ActionEvent {
|
|
3420
|
-
body?: string;
|
|
3421
|
-
}
|
|
3422
|
-
interface MessageEnvelope {
|
|
3423
|
-
/**
|
|
3424
|
-
* App instance ID.
|
|
3425
|
-
* @format GUID
|
|
3426
|
-
*/
|
|
3427
|
-
instanceId?: string | null;
|
|
3428
|
-
/**
|
|
3429
|
-
* Event type.
|
|
3430
|
-
* @maxLength 150
|
|
3431
|
-
*/
|
|
3432
|
-
eventType?: string;
|
|
3433
|
-
/** The identification type and identity data. */
|
|
3434
|
-
identity?: IdentificationData;
|
|
3435
|
-
/** Stringify payload. */
|
|
3436
|
-
data?: string;
|
|
3437
|
-
/** Details related to the account */
|
|
3438
|
-
accountInfo?: AccountInfo;
|
|
3439
|
-
}
|
|
3440
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3441
|
-
/**
|
|
3442
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3443
|
-
* @format GUID
|
|
3444
|
-
*/
|
|
3445
|
-
anonymousVisitorId?: string;
|
|
3446
|
-
/**
|
|
3447
|
-
* ID of a site visitor that has logged in to the site.
|
|
3448
|
-
* @format GUID
|
|
3449
|
-
*/
|
|
3450
|
-
memberId?: string;
|
|
3451
|
-
/**
|
|
3452
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3453
|
-
* @format GUID
|
|
3454
|
-
*/
|
|
3455
|
-
wixUserId?: string;
|
|
3456
|
-
/**
|
|
3457
|
-
* ID of an app.
|
|
3458
|
-
* @format GUID
|
|
3459
|
-
*/
|
|
3460
|
-
appId?: string;
|
|
3461
|
-
/** @readonly */
|
|
3462
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3463
|
-
}
|
|
3464
|
-
/** @oneof */
|
|
3465
|
-
interface IdentificationDataIdOneOf {
|
|
3466
|
-
/**
|
|
3467
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3468
|
-
* @format GUID
|
|
3469
|
-
*/
|
|
3470
|
-
anonymousVisitorId?: string;
|
|
3471
|
-
/**
|
|
3472
|
-
* ID of a site visitor that has logged in to the site.
|
|
3473
|
-
* @format GUID
|
|
3474
|
-
*/
|
|
3475
|
-
memberId?: string;
|
|
3476
|
-
/**
|
|
3477
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3478
|
-
* @format GUID
|
|
3479
|
-
*/
|
|
3480
|
-
wixUserId?: string;
|
|
3481
|
-
/**
|
|
3482
|
-
* ID of an app.
|
|
3483
|
-
* @format GUID
|
|
3484
|
-
*/
|
|
3485
|
-
appId?: string;
|
|
3486
|
-
}
|
|
3487
|
-
declare enum WebhookIdentityType {
|
|
3488
|
-
UNKNOWN = "UNKNOWN",
|
|
3489
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3490
|
-
MEMBER = "MEMBER",
|
|
3491
|
-
WIX_USER = "WIX_USER",
|
|
3492
|
-
APP = "APP"
|
|
3493
|
-
}
|
|
3494
|
-
/** @enumType */
|
|
3495
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3496
|
-
interface AccountInfo {
|
|
3497
|
-
/**
|
|
3498
|
-
* ID of the Wix account associated with the event.
|
|
3499
|
-
* @format GUID
|
|
3500
|
-
*/
|
|
3501
|
-
accountId?: string | null;
|
|
3502
|
-
/**
|
|
3503
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3504
|
-
* @format GUID
|
|
3505
|
-
*/
|
|
3506
|
-
parentAccountId?: string | null;
|
|
3507
|
-
/**
|
|
3508
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3509
|
-
* @format GUID
|
|
3510
|
-
*/
|
|
3511
|
-
siteId?: string | null;
|
|
3512
|
-
}
|
|
3513
|
-
interface InitialDraftPostsCopied {
|
|
3514
|
-
/** Number of draft posts copied. */
|
|
3515
|
-
count?: number;
|
|
3516
|
-
}
|
|
3517
3327
|
interface CreateDraftPostRequest {
|
|
3518
3328
|
/** Draft post to create. */
|
|
3519
3329
|
draftPost: DraftPost;
|
|
@@ -4094,116 +3904,195 @@ interface DraftPostCount {
|
|
|
4094
3904
|
/** Number of posts. */
|
|
4095
3905
|
postCount?: number;
|
|
4096
3906
|
}
|
|
4097
|
-
interface
|
|
3907
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3908
|
+
createdEvent?: EntityCreatedEvent;
|
|
3909
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3910
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3911
|
+
actionEvent?: ActionEvent;
|
|
3912
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3913
|
+
_id?: string;
|
|
4098
3914
|
/**
|
|
4099
|
-
*
|
|
4100
|
-
*
|
|
4101
|
-
* @maxSize 100
|
|
4102
|
-
* @format GUID
|
|
3915
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3916
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4103
3917
|
*/
|
|
4104
|
-
|
|
4105
|
-
/** Should full draft post be returned. */
|
|
4106
|
-
returnFullEntity?: boolean;
|
|
4107
|
-
}
|
|
4108
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4109
|
-
/** Bulk action results. */
|
|
4110
|
-
results?: BulkDraftPostResult[];
|
|
4111
|
-
/** Bulk action metadata. */
|
|
4112
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4113
|
-
}
|
|
4114
|
-
interface BulkRejectDraftPostRequest {
|
|
3918
|
+
entityFqdn?: string;
|
|
4115
3919
|
/**
|
|
4116
|
-
*
|
|
4117
|
-
*
|
|
4118
|
-
* @maxSize 100
|
|
4119
|
-
* @format GUID
|
|
3920
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3921
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4120
3922
|
*/
|
|
4121
|
-
|
|
4122
|
-
/**
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
/** Bulk action results. */
|
|
4127
|
-
results?: BulkDraftPostResult[];
|
|
4128
|
-
/** Bulk action metadata. */
|
|
4129
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4130
|
-
}
|
|
4131
|
-
interface RevertToUnpublishedRequest {
|
|
3923
|
+
slug?: string;
|
|
3924
|
+
/** ID of the entity associated with the event. */
|
|
3925
|
+
entityId?: string;
|
|
3926
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3927
|
+
eventTime?: Date | null;
|
|
4132
3928
|
/**
|
|
4133
|
-
*
|
|
4134
|
-
*
|
|
3929
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3930
|
+
* (for example, GDPR).
|
|
4135
3931
|
*/
|
|
4136
|
-
|
|
3932
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3933
|
+
/** If present, indicates the action that triggered the event. */
|
|
3934
|
+
originatedFrom?: string | null;
|
|
4137
3935
|
/**
|
|
4138
|
-
*
|
|
4139
|
-
*
|
|
4140
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4141
|
-
* @maxSize 10
|
|
3936
|
+
* 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.
|
|
3937
|
+
* 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.
|
|
4142
3938
|
*/
|
|
4143
|
-
|
|
3939
|
+
entityEventSequence?: string | null;
|
|
4144
3940
|
}
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
3941
|
+
/** @oneof */
|
|
3942
|
+
interface DomainEventBodyOneOf {
|
|
3943
|
+
createdEvent?: EntityCreatedEvent;
|
|
3944
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3945
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3946
|
+
actionEvent?: ActionEvent;
|
|
4148
3947
|
}
|
|
4149
|
-
interface
|
|
3948
|
+
interface EntityCreatedEvent {
|
|
3949
|
+
entity?: string;
|
|
3950
|
+
}
|
|
3951
|
+
interface RestoreInfo {
|
|
3952
|
+
deletedDate?: Date | null;
|
|
3953
|
+
}
|
|
3954
|
+
interface EntityUpdatedEvent {
|
|
4150
3955
|
/**
|
|
4151
|
-
*
|
|
3956
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3957
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3958
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3959
|
+
*/
|
|
3960
|
+
currentEntity?: string;
|
|
3961
|
+
}
|
|
3962
|
+
interface EntityDeletedEvent {
|
|
3963
|
+
/** Entity that was deleted. */
|
|
3964
|
+
deletedEntity?: string | null;
|
|
3965
|
+
}
|
|
3966
|
+
interface ActionEvent {
|
|
3967
|
+
body?: string;
|
|
3968
|
+
}
|
|
3969
|
+
interface MessageEnvelope {
|
|
3970
|
+
/**
|
|
3971
|
+
* App instance ID.
|
|
4152
3972
|
* @format GUID
|
|
4153
3973
|
*/
|
|
4154
|
-
|
|
3974
|
+
instanceId?: string | null;
|
|
4155
3975
|
/**
|
|
4156
|
-
*
|
|
4157
|
-
*
|
|
4158
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4159
|
-
* @maxSize 10
|
|
3976
|
+
* Event type.
|
|
3977
|
+
* @maxLength 150
|
|
4160
3978
|
*/
|
|
4161
|
-
|
|
3979
|
+
eventType?: string;
|
|
3980
|
+
/** The identification type and identity data. */
|
|
3981
|
+
identity?: IdentificationData;
|
|
3982
|
+
/** Stringify payload. */
|
|
3983
|
+
data?: string;
|
|
3984
|
+
/** Details related to the account */
|
|
3985
|
+
accountInfo?: AccountInfo;
|
|
4162
3986
|
}
|
|
4163
|
-
interface
|
|
4164
|
-
/**
|
|
4165
|
-
|
|
3987
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3988
|
+
/**
|
|
3989
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3990
|
+
* @format GUID
|
|
3991
|
+
*/
|
|
3992
|
+
anonymousVisitorId?: string;
|
|
3993
|
+
/**
|
|
3994
|
+
* ID of a site visitor that has logged in to the site.
|
|
3995
|
+
* @format GUID
|
|
3996
|
+
*/
|
|
3997
|
+
memberId?: string;
|
|
3998
|
+
/**
|
|
3999
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4000
|
+
* @format GUID
|
|
4001
|
+
*/
|
|
4002
|
+
wixUserId?: string;
|
|
4003
|
+
/**
|
|
4004
|
+
* ID of an app.
|
|
4005
|
+
* @format GUID
|
|
4006
|
+
*/
|
|
4007
|
+
appId?: string;
|
|
4008
|
+
/** @readonly */
|
|
4009
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4166
4010
|
}
|
|
4167
|
-
|
|
4011
|
+
/** @oneof */
|
|
4012
|
+
interface IdentificationDataIdOneOf {
|
|
4168
4013
|
/**
|
|
4169
|
-
*
|
|
4014
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4170
4015
|
* @format GUID
|
|
4171
4016
|
*/
|
|
4172
|
-
|
|
4017
|
+
anonymousVisitorId?: string;
|
|
4173
4018
|
/**
|
|
4174
|
-
*
|
|
4175
|
-
* @
|
|
4019
|
+
* ID of a site visitor that has logged in to the site.
|
|
4020
|
+
* @format GUID
|
|
4176
4021
|
*/
|
|
4177
|
-
|
|
4022
|
+
memberId?: string;
|
|
4178
4023
|
/**
|
|
4179
|
-
*
|
|
4180
|
-
*
|
|
4181
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4182
|
-
* @maxSize 10
|
|
4024
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4025
|
+
* @format GUID
|
|
4183
4026
|
*/
|
|
4184
|
-
|
|
4027
|
+
wixUserId?: string;
|
|
4028
|
+
/**
|
|
4029
|
+
* ID of an app.
|
|
4030
|
+
* @format GUID
|
|
4031
|
+
*/
|
|
4032
|
+
appId?: string;
|
|
4185
4033
|
}
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4034
|
+
declare enum WebhookIdentityType {
|
|
4035
|
+
UNKNOWN = "UNKNOWN",
|
|
4036
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4037
|
+
MEMBER = "MEMBER",
|
|
4038
|
+
WIX_USER = "WIX_USER",
|
|
4039
|
+
APP = "APP"
|
|
4189
4040
|
}
|
|
4190
|
-
|
|
4041
|
+
/** @enumType */
|
|
4042
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4043
|
+
interface AccountInfo {
|
|
4191
4044
|
/**
|
|
4192
|
-
*
|
|
4193
|
-
* @
|
|
4045
|
+
* ID of the Wix account associated with the event.
|
|
4046
|
+
* @format GUID
|
|
4194
4047
|
*/
|
|
4195
|
-
|
|
4048
|
+
accountId?: string | null;
|
|
4196
4049
|
/**
|
|
4197
|
-
*
|
|
4198
|
-
*
|
|
4199
|
-
|
|
4050
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4051
|
+
* @format GUID
|
|
4052
|
+
*/
|
|
4053
|
+
parentAccountId?: string | null;
|
|
4054
|
+
/**
|
|
4055
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4056
|
+
* @format GUID
|
|
4057
|
+
*/
|
|
4058
|
+
siteId?: string | null;
|
|
4059
|
+
}
|
|
4060
|
+
interface GetDraftPostTotalsRequest {
|
|
4061
|
+
/**
|
|
4062
|
+
* Group results by fields (defaults to grouping by status).
|
|
4063
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4064
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4200
4065
|
* @maxSize 10
|
|
4201
4066
|
*/
|
|
4202
|
-
|
|
4067
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4068
|
+
/**
|
|
4069
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4070
|
+
* @format LANGUAGE_TAG
|
|
4071
|
+
*/
|
|
4072
|
+
language?: string | null;
|
|
4203
4073
|
}
|
|
4204
|
-
|
|
4205
|
-
/**
|
|
4206
|
-
|
|
4074
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4075
|
+
/** Groups results by status. */
|
|
4076
|
+
STATUS = "STATUS",
|
|
4077
|
+
/** Groups results by language. */
|
|
4078
|
+
LANGUAGE = "LANGUAGE"
|
|
4079
|
+
}
|
|
4080
|
+
/** @enumType */
|
|
4081
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4082
|
+
interface GetDraftPostTotalsResponse {
|
|
4083
|
+
/** Draft post totals. */
|
|
4084
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4085
|
+
}
|
|
4086
|
+
interface TotalDraftPosts {
|
|
4087
|
+
/** Draft post totals in that group. */
|
|
4088
|
+
total?: number;
|
|
4089
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4090
|
+
status?: StatusWithLiterals;
|
|
4091
|
+
/**
|
|
4092
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4093
|
+
* @format LANGUAGE_TAG
|
|
4094
|
+
*/
|
|
4095
|
+
language?: string | null;
|
|
4207
4096
|
}
|
|
4208
4097
|
interface TranslateDraftRequest {
|
|
4209
4098
|
/**
|
|
@@ -4290,6 +4179,117 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4290
4179
|
/** Updated draft post. */
|
|
4291
4180
|
draftPost?: DraftPost;
|
|
4292
4181
|
}
|
|
4182
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4183
|
+
/**
|
|
4184
|
+
* Source post IDs.
|
|
4185
|
+
* @minSize 1
|
|
4186
|
+
* @maxSize 100
|
|
4187
|
+
* @format GUID
|
|
4188
|
+
*/
|
|
4189
|
+
postIds?: string[];
|
|
4190
|
+
/** Should full draft post be returned. */
|
|
4191
|
+
returnFullEntity?: boolean;
|
|
4192
|
+
}
|
|
4193
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4194
|
+
/** Bulk action results. */
|
|
4195
|
+
results?: BulkDraftPostResult[];
|
|
4196
|
+
/** Bulk action metadata. */
|
|
4197
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4198
|
+
}
|
|
4199
|
+
interface BulkRejectDraftPostRequest {
|
|
4200
|
+
/**
|
|
4201
|
+
* Source post IDs.
|
|
4202
|
+
* @minSize 1
|
|
4203
|
+
* @maxSize 100
|
|
4204
|
+
* @format GUID
|
|
4205
|
+
*/
|
|
4206
|
+
postIds?: string[];
|
|
4207
|
+
/** Should full draft post be returned. */
|
|
4208
|
+
returnFullEntity?: boolean;
|
|
4209
|
+
}
|
|
4210
|
+
interface BulkRejectDraftPostResponse {
|
|
4211
|
+
/** Bulk action results. */
|
|
4212
|
+
results?: BulkDraftPostResult[];
|
|
4213
|
+
/** Bulk action metadata. */
|
|
4214
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4215
|
+
}
|
|
4216
|
+
interface RevertToUnpublishedRequest {
|
|
4217
|
+
/**
|
|
4218
|
+
* Source post ID.
|
|
4219
|
+
* @format GUID
|
|
4220
|
+
*/
|
|
4221
|
+
postId?: string;
|
|
4222
|
+
/**
|
|
4223
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4224
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4225
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4226
|
+
* @maxSize 10
|
|
4227
|
+
*/
|
|
4228
|
+
fieldsets?: FieldWithLiterals[];
|
|
4229
|
+
}
|
|
4230
|
+
interface RevertToUnpublishedResponse {
|
|
4231
|
+
/** Updated post draft. */
|
|
4232
|
+
draftPost?: DraftPost;
|
|
4233
|
+
}
|
|
4234
|
+
interface RejectDraftPostRequest {
|
|
4235
|
+
/**
|
|
4236
|
+
* Source post ID.
|
|
4237
|
+
* @format GUID
|
|
4238
|
+
*/
|
|
4239
|
+
postId?: string;
|
|
4240
|
+
/**
|
|
4241
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4242
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4243
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4244
|
+
* @maxSize 10
|
|
4245
|
+
*/
|
|
4246
|
+
fieldsets?: FieldWithLiterals[];
|
|
4247
|
+
}
|
|
4248
|
+
interface RejectDraftPostResponse {
|
|
4249
|
+
/** Draft post. */
|
|
4250
|
+
draftPost?: DraftPost;
|
|
4251
|
+
}
|
|
4252
|
+
interface ApproveDraftPostRequest {
|
|
4253
|
+
/**
|
|
4254
|
+
* Source post ID.
|
|
4255
|
+
* @format GUID
|
|
4256
|
+
*/
|
|
4257
|
+
postId?: string;
|
|
4258
|
+
/**
|
|
4259
|
+
* Scheduled publish date if should be not immediately published.
|
|
4260
|
+
* @maxLength 24
|
|
4261
|
+
*/
|
|
4262
|
+
scheduledPublishDate?: string | null;
|
|
4263
|
+
/**
|
|
4264
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4265
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4266
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4267
|
+
* @maxSize 10
|
|
4268
|
+
*/
|
|
4269
|
+
fieldsets?: FieldWithLiterals[];
|
|
4270
|
+
}
|
|
4271
|
+
interface ApproveDraftPostResponse {
|
|
4272
|
+
/** Updated post draft. */
|
|
4273
|
+
draftPost?: DraftPost;
|
|
4274
|
+
}
|
|
4275
|
+
interface MarkPostAsInModerationRequest {
|
|
4276
|
+
/**
|
|
4277
|
+
* Source post ID.
|
|
4278
|
+
* @maxLength 38
|
|
4279
|
+
*/
|
|
4280
|
+
postId?: string;
|
|
4281
|
+
/**
|
|
4282
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4283
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4284
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4285
|
+
* @maxSize 10
|
|
4286
|
+
*/
|
|
4287
|
+
fieldsets?: FieldWithLiterals[];
|
|
4288
|
+
}
|
|
4289
|
+
interface MarkPostAsInModerationResponse {
|
|
4290
|
+
/** Updated post draft. */
|
|
4291
|
+
draftPost?: DraftPost;
|
|
4292
|
+
}
|
|
4293
4293
|
interface BaseEventMetadata {
|
|
4294
4294
|
/**
|
|
4295
4295
|
* App instance ID.
|
|
@@ -2779,19 +2779,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
2779
2779
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
2780
2780
|
return ModerationStatusStatus2;
|
|
2781
2781
|
})(ModerationStatusStatus || {});
|
|
2782
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2783
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2784
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2785
|
-
return TotalDraftPostsGroupingField2;
|
|
2786
|
-
})(TotalDraftPostsGroupingField || {});
|
|
2787
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2788
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2789
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2790
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2791
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2792
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
2793
|
-
return WebhookIdentityType2;
|
|
2794
|
-
})(WebhookIdentityType || {});
|
|
2795
2782
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
2796
2783
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
2797
2784
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -2831,6 +2818,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
2831
2818
|
SortOrder2["DESC"] = "DESC";
|
|
2832
2819
|
return SortOrder2;
|
|
2833
2820
|
})(SortOrder || {});
|
|
2821
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
2822
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
2823
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
2824
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
2825
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
2826
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
2827
|
+
return WebhookIdentityType2;
|
|
2828
|
+
})(WebhookIdentityType || {});
|
|
2829
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
2830
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
2831
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
2832
|
+
return TotalDraftPostsGroupingField2;
|
|
2833
|
+
})(TotalDraftPostsGroupingField || {});
|
|
2834
2834
|
async function createDraftPost2(draftPost, options) {
|
|
2835
2835
|
const { httpClient, sideEffects } = arguments[2];
|
|
2836
2836
|
const payload = transformPaths2(
|