@wix/auto_sdk_blog_draft-posts 1.0.98 → 1.0.100
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/cjs/schemas.js +1331 -1316
- package/build/cjs/schemas.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/es/schemas.mjs +1331 -1316
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +301 -301
- package/build/internal/cjs/meta.d.ts +321 -321
- package/build/internal/es/index.typings.d.mts +301 -301
- package/build/internal/es/meta.d.mts +321 -321
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -5392
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -4756
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -4159
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -2886
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -5278
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -4644
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -4046
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -2822
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/meta.d.ts
CHANGED
|
@@ -3244,6 +3244,10 @@ interface DraftPostTranslation {
|
|
|
3244
3244
|
/** Post URL. */
|
|
3245
3245
|
url?: PageUrl;
|
|
3246
3246
|
}
|
|
3247
|
+
interface InitialDraftPostsCopied {
|
|
3248
|
+
/** Number of draft posts copied. */
|
|
3249
|
+
count?: number;
|
|
3250
|
+
}
|
|
3247
3251
|
interface DraftCategoriesUpdated {
|
|
3248
3252
|
/**
|
|
3249
3253
|
* Draft post ID.
|
|
@@ -3282,202 +3286,6 @@ interface DraftTagsUpdated {
|
|
|
3282
3286
|
*/
|
|
3283
3287
|
previousTags?: string[];
|
|
3284
3288
|
}
|
|
3285
|
-
interface GetDraftPostTotalsRequest {
|
|
3286
|
-
/**
|
|
3287
|
-
* Group results by fields (defaults to grouping by status).
|
|
3288
|
-
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
3289
|
-
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
3290
|
-
* @maxSize 10
|
|
3291
|
-
*/
|
|
3292
|
-
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
3293
|
-
/**
|
|
3294
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
3295
|
-
* @format LANGUAGE_TAG
|
|
3296
|
-
*/
|
|
3297
|
-
language?: string | null;
|
|
3298
|
-
}
|
|
3299
|
-
declare enum TotalDraftPostsGroupingField {
|
|
3300
|
-
/** Groups results by status. */
|
|
3301
|
-
STATUS = "STATUS",
|
|
3302
|
-
/** Groups results by language. */
|
|
3303
|
-
LANGUAGE = "LANGUAGE"
|
|
3304
|
-
}
|
|
3305
|
-
/** @enumType */
|
|
3306
|
-
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
3307
|
-
interface GetDraftPostTotalsResponse {
|
|
3308
|
-
/** Draft post totals. */
|
|
3309
|
-
totalDraftPosts?: TotalDraftPosts[];
|
|
3310
|
-
}
|
|
3311
|
-
interface TotalDraftPosts {
|
|
3312
|
-
/** Draft post totals in that group. */
|
|
3313
|
-
total?: number;
|
|
3314
|
-
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
3315
|
-
status?: StatusWithLiterals;
|
|
3316
|
-
/**
|
|
3317
|
-
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
3318
|
-
* @format LANGUAGE_TAG
|
|
3319
|
-
*/
|
|
3320
|
-
language?: string | null;
|
|
3321
|
-
}
|
|
3322
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3323
|
-
createdEvent?: EntityCreatedEvent;
|
|
3324
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3325
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3326
|
-
actionEvent?: ActionEvent;
|
|
3327
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3328
|
-
id?: string;
|
|
3329
|
-
/**
|
|
3330
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3331
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
3332
|
-
*/
|
|
3333
|
-
entityFqdn?: string;
|
|
3334
|
-
/**
|
|
3335
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3336
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
3337
|
-
*/
|
|
3338
|
-
slug?: string;
|
|
3339
|
-
/** ID of the entity associated with the event. */
|
|
3340
|
-
entityId?: string;
|
|
3341
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3342
|
-
eventTime?: Date | null;
|
|
3343
|
-
/**
|
|
3344
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
3345
|
-
* (for example, GDPR).
|
|
3346
|
-
*/
|
|
3347
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
3348
|
-
/** If present, indicates the action that triggered the event. */
|
|
3349
|
-
originatedFrom?: string | null;
|
|
3350
|
-
/**
|
|
3351
|
-
* 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.
|
|
3352
|
-
* 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.
|
|
3353
|
-
*/
|
|
3354
|
-
entityEventSequence?: string | null;
|
|
3355
|
-
}
|
|
3356
|
-
/** @oneof */
|
|
3357
|
-
interface DomainEventBodyOneOf {
|
|
3358
|
-
createdEvent?: EntityCreatedEvent;
|
|
3359
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3360
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3361
|
-
actionEvent?: ActionEvent;
|
|
3362
|
-
}
|
|
3363
|
-
interface EntityCreatedEvent {
|
|
3364
|
-
entityAsJson?: string;
|
|
3365
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3366
|
-
restoreInfo?: RestoreInfo;
|
|
3367
|
-
}
|
|
3368
|
-
interface RestoreInfo {
|
|
3369
|
-
deletedDate?: Date | null;
|
|
3370
|
-
}
|
|
3371
|
-
interface EntityUpdatedEvent {
|
|
3372
|
-
/**
|
|
3373
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3374
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3375
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3376
|
-
*/
|
|
3377
|
-
currentEntityAsJson?: string;
|
|
3378
|
-
}
|
|
3379
|
-
interface EntityDeletedEvent {
|
|
3380
|
-
/** Entity that was deleted. */
|
|
3381
|
-
deletedEntityAsJson?: string | null;
|
|
3382
|
-
}
|
|
3383
|
-
interface ActionEvent {
|
|
3384
|
-
bodyAsJson?: string;
|
|
3385
|
-
}
|
|
3386
|
-
interface MessageEnvelope {
|
|
3387
|
-
/**
|
|
3388
|
-
* App instance ID.
|
|
3389
|
-
* @format GUID
|
|
3390
|
-
*/
|
|
3391
|
-
instanceId?: string | null;
|
|
3392
|
-
/**
|
|
3393
|
-
* Event type.
|
|
3394
|
-
* @maxLength 150
|
|
3395
|
-
*/
|
|
3396
|
-
eventType?: string;
|
|
3397
|
-
/** The identification type and identity data. */
|
|
3398
|
-
identity?: IdentificationData;
|
|
3399
|
-
/** Stringify payload. */
|
|
3400
|
-
data?: string;
|
|
3401
|
-
/** Details related to the account */
|
|
3402
|
-
accountInfo?: AccountInfo;
|
|
3403
|
-
}
|
|
3404
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3405
|
-
/**
|
|
3406
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3407
|
-
* @format GUID
|
|
3408
|
-
*/
|
|
3409
|
-
anonymousVisitorId?: string;
|
|
3410
|
-
/**
|
|
3411
|
-
* ID of a site visitor that has logged in to the site.
|
|
3412
|
-
* @format GUID
|
|
3413
|
-
*/
|
|
3414
|
-
memberId?: string;
|
|
3415
|
-
/**
|
|
3416
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3417
|
-
* @format GUID
|
|
3418
|
-
*/
|
|
3419
|
-
wixUserId?: string;
|
|
3420
|
-
/**
|
|
3421
|
-
* ID of an app.
|
|
3422
|
-
* @format GUID
|
|
3423
|
-
*/
|
|
3424
|
-
appId?: string;
|
|
3425
|
-
/** @readonly */
|
|
3426
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
3427
|
-
}
|
|
3428
|
-
/** @oneof */
|
|
3429
|
-
interface IdentificationDataIdOneOf {
|
|
3430
|
-
/**
|
|
3431
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3432
|
-
* @format GUID
|
|
3433
|
-
*/
|
|
3434
|
-
anonymousVisitorId?: string;
|
|
3435
|
-
/**
|
|
3436
|
-
* ID of a site visitor that has logged in to the site.
|
|
3437
|
-
* @format GUID
|
|
3438
|
-
*/
|
|
3439
|
-
memberId?: string;
|
|
3440
|
-
/**
|
|
3441
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
3442
|
-
* @format GUID
|
|
3443
|
-
*/
|
|
3444
|
-
wixUserId?: string;
|
|
3445
|
-
/**
|
|
3446
|
-
* ID of an app.
|
|
3447
|
-
* @format GUID
|
|
3448
|
-
*/
|
|
3449
|
-
appId?: string;
|
|
3450
|
-
}
|
|
3451
|
-
declare enum WebhookIdentityType {
|
|
3452
|
-
UNKNOWN = "UNKNOWN",
|
|
3453
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3454
|
-
MEMBER = "MEMBER",
|
|
3455
|
-
WIX_USER = "WIX_USER",
|
|
3456
|
-
APP = "APP"
|
|
3457
|
-
}
|
|
3458
|
-
/** @enumType */
|
|
3459
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3460
|
-
interface AccountInfo {
|
|
3461
|
-
/**
|
|
3462
|
-
* ID of the Wix account associated with the event.
|
|
3463
|
-
* @format GUID
|
|
3464
|
-
*/
|
|
3465
|
-
accountId?: string | null;
|
|
3466
|
-
/**
|
|
3467
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
3468
|
-
* @format GUID
|
|
3469
|
-
*/
|
|
3470
|
-
parentAccountId?: string | null;
|
|
3471
|
-
/**
|
|
3472
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
3473
|
-
* @format GUID
|
|
3474
|
-
*/
|
|
3475
|
-
siteId?: string | null;
|
|
3476
|
-
}
|
|
3477
|
-
interface InitialDraftPostsCopied {
|
|
3478
|
-
/** Number of draft posts copied. */
|
|
3479
|
-
count?: number;
|
|
3480
|
-
}
|
|
3481
3289
|
interface CreateDraftPostRequest {
|
|
3482
3290
|
/** Draft post to create. */
|
|
3483
3291
|
draftPost: DraftPost;
|
|
@@ -4058,116 +3866,197 @@ interface DraftPostCount {
|
|
|
4058
3866
|
/** Number of posts. */
|
|
4059
3867
|
postCount?: number;
|
|
4060
3868
|
}
|
|
4061
|
-
interface
|
|
3869
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3870
|
+
createdEvent?: EntityCreatedEvent;
|
|
3871
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3872
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3873
|
+
actionEvent?: ActionEvent;
|
|
3874
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
3875
|
+
id?: string;
|
|
4062
3876
|
/**
|
|
4063
|
-
*
|
|
4064
|
-
*
|
|
4065
|
-
* @maxSize 100
|
|
4066
|
-
* @format GUID
|
|
3877
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
3878
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
4067
3879
|
*/
|
|
4068
|
-
|
|
4069
|
-
/** Should full draft post be returned. */
|
|
4070
|
-
returnFullEntity?: boolean;
|
|
4071
|
-
}
|
|
4072
|
-
interface BulkRevertToUnpublishedResponse {
|
|
4073
|
-
/** Bulk action results. */
|
|
4074
|
-
results?: BulkDraftPostResult[];
|
|
4075
|
-
/** Bulk action metadata. */
|
|
4076
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4077
|
-
}
|
|
4078
|
-
interface BulkRejectDraftPostRequest {
|
|
3880
|
+
entityFqdn?: string;
|
|
4079
3881
|
/**
|
|
4080
|
-
*
|
|
4081
|
-
*
|
|
4082
|
-
* @maxSize 100
|
|
4083
|
-
* @format GUID
|
|
3882
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
3883
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
4084
3884
|
*/
|
|
4085
|
-
|
|
4086
|
-
/**
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
/** Bulk action results. */
|
|
4091
|
-
results?: BulkDraftPostResult[];
|
|
4092
|
-
/** Bulk action metadata. */
|
|
4093
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
4094
|
-
}
|
|
4095
|
-
interface RevertToUnpublishedRequest {
|
|
3885
|
+
slug?: string;
|
|
3886
|
+
/** ID of the entity associated with the event. */
|
|
3887
|
+
entityId?: string;
|
|
3888
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
3889
|
+
eventTime?: Date | null;
|
|
4096
3890
|
/**
|
|
4097
|
-
*
|
|
4098
|
-
*
|
|
3891
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3892
|
+
* (for example, GDPR).
|
|
4099
3893
|
*/
|
|
4100
|
-
|
|
3894
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3895
|
+
/** If present, indicates the action that triggered the event. */
|
|
3896
|
+
originatedFrom?: string | null;
|
|
4101
3897
|
/**
|
|
4102
|
-
*
|
|
4103
|
-
*
|
|
4104
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4105
|
-
* @maxSize 10
|
|
3898
|
+
* 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.
|
|
3899
|
+
* 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.
|
|
4106
3900
|
*/
|
|
4107
|
-
|
|
3901
|
+
entityEventSequence?: string | null;
|
|
4108
3902
|
}
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
3903
|
+
/** @oneof */
|
|
3904
|
+
interface DomainEventBodyOneOf {
|
|
3905
|
+
createdEvent?: EntityCreatedEvent;
|
|
3906
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3907
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3908
|
+
actionEvent?: ActionEvent;
|
|
4112
3909
|
}
|
|
4113
|
-
interface
|
|
3910
|
+
interface EntityCreatedEvent {
|
|
3911
|
+
entityAsJson?: string;
|
|
3912
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
3913
|
+
restoreInfo?: RestoreInfo;
|
|
3914
|
+
}
|
|
3915
|
+
interface RestoreInfo {
|
|
3916
|
+
deletedDate?: Date | null;
|
|
3917
|
+
}
|
|
3918
|
+
interface EntityUpdatedEvent {
|
|
4114
3919
|
/**
|
|
4115
|
-
*
|
|
3920
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3921
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3922
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3923
|
+
*/
|
|
3924
|
+
currentEntityAsJson?: string;
|
|
3925
|
+
}
|
|
3926
|
+
interface EntityDeletedEvent {
|
|
3927
|
+
/** Entity that was deleted. */
|
|
3928
|
+
deletedEntityAsJson?: string | null;
|
|
3929
|
+
}
|
|
3930
|
+
interface ActionEvent {
|
|
3931
|
+
bodyAsJson?: string;
|
|
3932
|
+
}
|
|
3933
|
+
interface MessageEnvelope {
|
|
3934
|
+
/**
|
|
3935
|
+
* App instance ID.
|
|
4116
3936
|
* @format GUID
|
|
4117
3937
|
*/
|
|
4118
|
-
|
|
3938
|
+
instanceId?: string | null;
|
|
4119
3939
|
/**
|
|
4120
|
-
*
|
|
4121
|
-
*
|
|
4122
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4123
|
-
* @maxSize 10
|
|
3940
|
+
* Event type.
|
|
3941
|
+
* @maxLength 150
|
|
4124
3942
|
*/
|
|
4125
|
-
|
|
3943
|
+
eventType?: string;
|
|
3944
|
+
/** The identification type and identity data. */
|
|
3945
|
+
identity?: IdentificationData;
|
|
3946
|
+
/** Stringify payload. */
|
|
3947
|
+
data?: string;
|
|
3948
|
+
/** Details related to the account */
|
|
3949
|
+
accountInfo?: AccountInfo;
|
|
4126
3950
|
}
|
|
4127
|
-
interface
|
|
4128
|
-
/**
|
|
4129
|
-
|
|
3951
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3952
|
+
/**
|
|
3953
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3954
|
+
* @format GUID
|
|
3955
|
+
*/
|
|
3956
|
+
anonymousVisitorId?: string;
|
|
3957
|
+
/**
|
|
3958
|
+
* ID of a site visitor that has logged in to the site.
|
|
3959
|
+
* @format GUID
|
|
3960
|
+
*/
|
|
3961
|
+
memberId?: string;
|
|
3962
|
+
/**
|
|
3963
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3964
|
+
* @format GUID
|
|
3965
|
+
*/
|
|
3966
|
+
wixUserId?: string;
|
|
3967
|
+
/**
|
|
3968
|
+
* ID of an app.
|
|
3969
|
+
* @format GUID
|
|
3970
|
+
*/
|
|
3971
|
+
appId?: string;
|
|
3972
|
+
/** @readonly */
|
|
3973
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
4130
3974
|
}
|
|
4131
|
-
|
|
3975
|
+
/** @oneof */
|
|
3976
|
+
interface IdentificationDataIdOneOf {
|
|
4132
3977
|
/**
|
|
4133
|
-
*
|
|
3978
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4134
3979
|
* @format GUID
|
|
4135
3980
|
*/
|
|
4136
|
-
|
|
3981
|
+
anonymousVisitorId?: string;
|
|
4137
3982
|
/**
|
|
4138
|
-
*
|
|
4139
|
-
* @
|
|
3983
|
+
* ID of a site visitor that has logged in to the site.
|
|
3984
|
+
* @format GUID
|
|
4140
3985
|
*/
|
|
4141
|
-
|
|
3986
|
+
memberId?: string;
|
|
4142
3987
|
/**
|
|
4143
|
-
*
|
|
4144
|
-
*
|
|
4145
|
-
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4146
|
-
* @maxSize 10
|
|
3988
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3989
|
+
* @format GUID
|
|
4147
3990
|
*/
|
|
4148
|
-
|
|
3991
|
+
wixUserId?: string;
|
|
3992
|
+
/**
|
|
3993
|
+
* ID of an app.
|
|
3994
|
+
* @format GUID
|
|
3995
|
+
*/
|
|
3996
|
+
appId?: string;
|
|
4149
3997
|
}
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
3998
|
+
declare enum WebhookIdentityType {
|
|
3999
|
+
UNKNOWN = "UNKNOWN",
|
|
4000
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4001
|
+
MEMBER = "MEMBER",
|
|
4002
|
+
WIX_USER = "WIX_USER",
|
|
4003
|
+
APP = "APP"
|
|
4153
4004
|
}
|
|
4154
|
-
|
|
4005
|
+
/** @enumType */
|
|
4006
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4007
|
+
interface AccountInfo {
|
|
4155
4008
|
/**
|
|
4156
|
-
*
|
|
4157
|
-
* @
|
|
4009
|
+
* ID of the Wix account associated with the event.
|
|
4010
|
+
* @format GUID
|
|
4158
4011
|
*/
|
|
4159
|
-
|
|
4012
|
+
accountId?: string | null;
|
|
4160
4013
|
/**
|
|
4161
|
-
*
|
|
4162
|
-
*
|
|
4163
|
-
|
|
4014
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4015
|
+
* @format GUID
|
|
4016
|
+
*/
|
|
4017
|
+
parentAccountId?: string | null;
|
|
4018
|
+
/**
|
|
4019
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
4020
|
+
* @format GUID
|
|
4021
|
+
*/
|
|
4022
|
+
siteId?: string | null;
|
|
4023
|
+
}
|
|
4024
|
+
interface GetDraftPostTotalsRequest {
|
|
4025
|
+
/**
|
|
4026
|
+
* Group results by fields (defaults to grouping by status).
|
|
4027
|
+
* If, for example, grouping by language is passed, language values in response will be filled.
|
|
4028
|
+
* If, for example, grouping by language is not passed, null values will be filled in language field in response.
|
|
4164
4029
|
* @maxSize 10
|
|
4165
4030
|
*/
|
|
4166
|
-
|
|
4031
|
+
groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
|
|
4032
|
+
/**
|
|
4033
|
+
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4034
|
+
* @format LANGUAGE_TAG
|
|
4035
|
+
*/
|
|
4036
|
+
language?: string | null;
|
|
4167
4037
|
}
|
|
4168
|
-
|
|
4169
|
-
/**
|
|
4170
|
-
|
|
4038
|
+
declare enum TotalDraftPostsGroupingField {
|
|
4039
|
+
/** Groups results by status. */
|
|
4040
|
+
STATUS = "STATUS",
|
|
4041
|
+
/** Groups results by language. */
|
|
4042
|
+
LANGUAGE = "LANGUAGE"
|
|
4043
|
+
}
|
|
4044
|
+
/** @enumType */
|
|
4045
|
+
type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
|
|
4046
|
+
interface GetDraftPostTotalsResponse {
|
|
4047
|
+
/** Draft post totals. */
|
|
4048
|
+
totalDraftPosts?: TotalDraftPosts[];
|
|
4049
|
+
}
|
|
4050
|
+
interface TotalDraftPosts {
|
|
4051
|
+
/** Draft post totals in that group. */
|
|
4052
|
+
total?: number;
|
|
4053
|
+
/** Draft post status (only has value when grouping by status, otherwise null). */
|
|
4054
|
+
status?: StatusWithLiterals;
|
|
4055
|
+
/**
|
|
4056
|
+
* Draft post language code (only has value when grouping by language, otherwise null).
|
|
4057
|
+
* @format LANGUAGE_TAG
|
|
4058
|
+
*/
|
|
4059
|
+
language?: string | null;
|
|
4171
4060
|
}
|
|
4172
4061
|
interface TranslateDraftRequest {
|
|
4173
4062
|
/**
|
|
@@ -4242,6 +4131,117 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4242
4131
|
/** Draft post */
|
|
4243
4132
|
draftPost?: DraftPost;
|
|
4244
4133
|
}
|
|
4134
|
+
interface BulkRevertToUnpublishedRequest {
|
|
4135
|
+
/**
|
|
4136
|
+
* Source post IDs.
|
|
4137
|
+
* @minSize 1
|
|
4138
|
+
* @maxSize 100
|
|
4139
|
+
* @format GUID
|
|
4140
|
+
*/
|
|
4141
|
+
postIds?: string[];
|
|
4142
|
+
/** Should full draft post be returned. */
|
|
4143
|
+
returnFullEntity?: boolean;
|
|
4144
|
+
}
|
|
4145
|
+
interface BulkRevertToUnpublishedResponse {
|
|
4146
|
+
/** Bulk action results. */
|
|
4147
|
+
results?: BulkDraftPostResult[];
|
|
4148
|
+
/** Bulk action metadata. */
|
|
4149
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4150
|
+
}
|
|
4151
|
+
interface BulkRejectDraftPostRequest {
|
|
4152
|
+
/**
|
|
4153
|
+
* Source post IDs.
|
|
4154
|
+
* @minSize 1
|
|
4155
|
+
* @maxSize 100
|
|
4156
|
+
* @format GUID
|
|
4157
|
+
*/
|
|
4158
|
+
postIds?: string[];
|
|
4159
|
+
/** Should full draft post be returned. */
|
|
4160
|
+
returnFullEntity?: boolean;
|
|
4161
|
+
}
|
|
4162
|
+
interface BulkRejectDraftPostResponse {
|
|
4163
|
+
/** Bulk action results. */
|
|
4164
|
+
results?: BulkDraftPostResult[];
|
|
4165
|
+
/** Bulk action metadata. */
|
|
4166
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4167
|
+
}
|
|
4168
|
+
interface RevertToUnpublishedRequest {
|
|
4169
|
+
/**
|
|
4170
|
+
* Source post ID.
|
|
4171
|
+
* @format GUID
|
|
4172
|
+
*/
|
|
4173
|
+
postId?: string;
|
|
4174
|
+
/**
|
|
4175
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4176
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4177
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4178
|
+
* @maxSize 10
|
|
4179
|
+
*/
|
|
4180
|
+
fieldsets?: FieldWithLiterals[];
|
|
4181
|
+
}
|
|
4182
|
+
interface RevertToUnpublishedResponse {
|
|
4183
|
+
/** Updated post draft. */
|
|
4184
|
+
draftPost?: DraftPost;
|
|
4185
|
+
}
|
|
4186
|
+
interface RejectDraftPostRequest {
|
|
4187
|
+
/**
|
|
4188
|
+
* Source post ID.
|
|
4189
|
+
* @format GUID
|
|
4190
|
+
*/
|
|
4191
|
+
postId?: string;
|
|
4192
|
+
/**
|
|
4193
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4194
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4195
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4196
|
+
* @maxSize 10
|
|
4197
|
+
*/
|
|
4198
|
+
fieldsets?: FieldWithLiterals[];
|
|
4199
|
+
}
|
|
4200
|
+
interface RejectDraftPostResponse {
|
|
4201
|
+
/** Draft post. */
|
|
4202
|
+
draftPost?: DraftPost;
|
|
4203
|
+
}
|
|
4204
|
+
interface ApproveDraftPostRequest {
|
|
4205
|
+
/**
|
|
4206
|
+
* Source post ID.
|
|
4207
|
+
* @format GUID
|
|
4208
|
+
*/
|
|
4209
|
+
postId?: string;
|
|
4210
|
+
/**
|
|
4211
|
+
* Scheduled publish date if should be not immediately published.
|
|
4212
|
+
* @maxLength 24
|
|
4213
|
+
*/
|
|
4214
|
+
scheduledPublishDate?: string | null;
|
|
4215
|
+
/**
|
|
4216
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4217
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4218
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4219
|
+
* @maxSize 10
|
|
4220
|
+
*/
|
|
4221
|
+
fieldsets?: FieldWithLiterals[];
|
|
4222
|
+
}
|
|
4223
|
+
interface ApproveDraftPostResponse {
|
|
4224
|
+
/** Updated post draft. */
|
|
4225
|
+
draftPost?: DraftPost;
|
|
4226
|
+
}
|
|
4227
|
+
interface MarkPostAsInModerationRequest {
|
|
4228
|
+
/**
|
|
4229
|
+
* Source post ID.
|
|
4230
|
+
* @maxLength 38
|
|
4231
|
+
*/
|
|
4232
|
+
postId?: string;
|
|
4233
|
+
/**
|
|
4234
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4235
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4236
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4237
|
+
* @maxSize 10
|
|
4238
|
+
*/
|
|
4239
|
+
fieldsets?: FieldWithLiterals[];
|
|
4240
|
+
}
|
|
4241
|
+
interface MarkPostAsInModerationResponse {
|
|
4242
|
+
/** Updated post draft. */
|
|
4243
|
+
draftPost?: DraftPost;
|
|
4244
|
+
}
|
|
4245
4245
|
|
|
4246
4246
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4247
4247
|
getUrl: (context: any) => string;
|
package/build/cjs/meta.js
CHANGED
|
@@ -3760,19 +3760,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
3760
3760
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
3761
3761
|
return ModerationStatusStatus2;
|
|
3762
3762
|
})(ModerationStatusStatus || {});
|
|
3763
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
3764
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
3765
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
3766
|
-
return TotalDraftPostsGroupingField2;
|
|
3767
|
-
})(TotalDraftPostsGroupingField || {});
|
|
3768
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3769
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3770
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3771
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3772
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3773
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
3774
|
-
return WebhookIdentityType2;
|
|
3775
|
-
})(WebhookIdentityType || {});
|
|
3776
3763
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
3777
3764
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
3778
3765
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -3812,6 +3799,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3812
3799
|
SortOrder2["DESC"] = "DESC";
|
|
3813
3800
|
return SortOrder2;
|
|
3814
3801
|
})(SortOrder || {});
|
|
3802
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3803
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3804
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3805
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3806
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3807
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
3808
|
+
return WebhookIdentityType2;
|
|
3809
|
+
})(WebhookIdentityType || {});
|
|
3810
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
3811
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
3812
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
3813
|
+
return TotalDraftPostsGroupingField2;
|
|
3814
|
+
})(TotalDraftPostsGroupingField || {});
|
|
3815
3815
|
|
|
3816
3816
|
// src/blog-v3-draft-draft-posts.meta.ts
|
|
3817
3817
|
function createDraftPost2() {
|