@wix/auto_sdk_blog_draft-posts 1.0.100 → 1.0.101
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 +321 -321
- package/build/internal/es/index.typings.d.mts +301 -301
- package/build/internal/es/meta.d.mts +321 -321
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -1771
- package/build/cjs/schemas.js +0 -2901
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -1771
- package/build/es/schemas.mjs +0 -2837
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -1771
- package/build/internal/es/schemas.d.mts +0 -1771
- package/schemas/package.json +0 -3
package/build/es/meta.d.mts
CHANGED
|
@@ -3244,10 +3244,6 @@ 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
|
-
}
|
|
3251
3247
|
interface DraftCategoriesUpdated {
|
|
3252
3248
|
/**
|
|
3253
3249
|
* Draft post ID.
|
|
@@ -3286,6 +3282,202 @@ interface DraftTagsUpdated {
|
|
|
3286
3282
|
*/
|
|
3287
3283
|
previousTags?: string[];
|
|
3288
3284
|
}
|
|
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
|
+
}
|
|
3289
3481
|
interface CreateDraftPostRequest {
|
|
3290
3482
|
/** Draft post to create. */
|
|
3291
3483
|
draftPost: DraftPost;
|
|
@@ -3866,197 +4058,116 @@ interface DraftPostCount {
|
|
|
3866
4058
|
/** Number of posts. */
|
|
3867
4059
|
postCount?: number;
|
|
3868
4060
|
}
|
|
3869
|
-
interface
|
|
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;
|
|
4061
|
+
interface BulkRevertToUnpublishedRequest {
|
|
3876
4062
|
/**
|
|
3877
|
-
*
|
|
3878
|
-
*
|
|
4063
|
+
* Source post IDs.
|
|
4064
|
+
* @minSize 1
|
|
4065
|
+
* @maxSize 100
|
|
4066
|
+
* @format GUID
|
|
3879
4067
|
*/
|
|
3880
|
-
|
|
4068
|
+
postIds?: string[];
|
|
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 {
|
|
3881
4079
|
/**
|
|
3882
|
-
*
|
|
3883
|
-
*
|
|
4080
|
+
* Source post IDs.
|
|
4081
|
+
* @minSize 1
|
|
4082
|
+
* @maxSize 100
|
|
4083
|
+
* @format GUID
|
|
3884
4084
|
*/
|
|
3885
|
-
|
|
3886
|
-
/**
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
4085
|
+
postIds?: string[];
|
|
4086
|
+
/** Should full draft post be returned. */
|
|
4087
|
+
returnFullEntity?: boolean;
|
|
4088
|
+
}
|
|
4089
|
+
interface BulkRejectDraftPostResponse {
|
|
4090
|
+
/** Bulk action results. */
|
|
4091
|
+
results?: BulkDraftPostResult[];
|
|
4092
|
+
/** Bulk action metadata. */
|
|
4093
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
4094
|
+
}
|
|
4095
|
+
interface RevertToUnpublishedRequest {
|
|
3890
4096
|
/**
|
|
3891
|
-
*
|
|
3892
|
-
*
|
|
4097
|
+
* Source post ID.
|
|
4098
|
+
* @format GUID
|
|
3893
4099
|
*/
|
|
3894
|
-
|
|
3895
|
-
/** If present, indicates the action that triggered the event. */
|
|
3896
|
-
originatedFrom?: string | null;
|
|
4100
|
+
postId?: string;
|
|
3897
4101
|
/**
|
|
3898
|
-
*
|
|
3899
|
-
*
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
}
|
|
3903
|
-
/** @oneof */
|
|
3904
|
-
interface DomainEventBodyOneOf {
|
|
3905
|
-
createdEvent?: EntityCreatedEvent;
|
|
3906
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3907
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3908
|
-
actionEvent?: ActionEvent;
|
|
3909
|
-
}
|
|
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 {
|
|
3919
|
-
/**
|
|
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.
|
|
4102
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4103
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
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
|
|
3923
4106
|
*/
|
|
3924
|
-
|
|
3925
|
-
}
|
|
3926
|
-
interface EntityDeletedEvent {
|
|
3927
|
-
/** Entity that was deleted. */
|
|
3928
|
-
deletedEntityAsJson?: string | null;
|
|
4107
|
+
fieldsets?: FieldWithLiterals[];
|
|
3929
4108
|
}
|
|
3930
|
-
interface
|
|
3931
|
-
|
|
4109
|
+
interface RevertToUnpublishedResponse {
|
|
4110
|
+
/** Updated post draft. */
|
|
4111
|
+
draftPost?: DraftPost;
|
|
3932
4112
|
}
|
|
3933
|
-
interface
|
|
4113
|
+
interface RejectDraftPostRequest {
|
|
3934
4114
|
/**
|
|
3935
|
-
*
|
|
4115
|
+
* Source post ID.
|
|
3936
4116
|
* @format GUID
|
|
3937
4117
|
*/
|
|
3938
|
-
|
|
4118
|
+
postId?: string;
|
|
3939
4119
|
/**
|
|
3940
|
-
*
|
|
3941
|
-
*
|
|
4120
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4121
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
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
|
|
3942
4124
|
*/
|
|
3943
|
-
|
|
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;
|
|
4125
|
+
fieldsets?: FieldWithLiterals[];
|
|
3950
4126
|
}
|
|
3951
|
-
interface
|
|
3952
|
-
/**
|
|
3953
|
-
|
|
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;
|
|
4127
|
+
interface RejectDraftPostResponse {
|
|
4128
|
+
/** Draft post. */
|
|
4129
|
+
draftPost?: DraftPost;
|
|
3974
4130
|
}
|
|
3975
|
-
|
|
3976
|
-
interface IdentificationDataIdOneOf {
|
|
3977
|
-
/**
|
|
3978
|
-
* ID of a site visitor that has not logged in to the site.
|
|
3979
|
-
* @format GUID
|
|
3980
|
-
*/
|
|
3981
|
-
anonymousVisitorId?: string;
|
|
4131
|
+
interface ApproveDraftPostRequest {
|
|
3982
4132
|
/**
|
|
3983
|
-
*
|
|
4133
|
+
* Source post ID.
|
|
3984
4134
|
* @format GUID
|
|
3985
4135
|
*/
|
|
3986
|
-
|
|
4136
|
+
postId?: string;
|
|
3987
4137
|
/**
|
|
3988
|
-
*
|
|
3989
|
-
* @
|
|
4138
|
+
* Scheduled publish date if should be not immediately published.
|
|
4139
|
+
* @maxLength 24
|
|
3990
4140
|
*/
|
|
3991
|
-
|
|
4141
|
+
scheduledPublishDate?: string | null;
|
|
3992
4142
|
/**
|
|
3993
|
-
*
|
|
3994
|
-
*
|
|
4143
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4144
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
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
|
|
3995
4147
|
*/
|
|
3996
|
-
|
|
4148
|
+
fieldsets?: FieldWithLiterals[];
|
|
3997
4149
|
}
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
MEMBER = "MEMBER",
|
|
4002
|
-
WIX_USER = "WIX_USER",
|
|
4003
|
-
APP = "APP"
|
|
4150
|
+
interface ApproveDraftPostResponse {
|
|
4151
|
+
/** Updated post draft. */
|
|
4152
|
+
draftPost?: DraftPost;
|
|
4004
4153
|
}
|
|
4005
|
-
|
|
4006
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
4007
|
-
interface AccountInfo {
|
|
4008
|
-
/**
|
|
4009
|
-
* ID of the Wix account associated with the event.
|
|
4010
|
-
* @format GUID
|
|
4011
|
-
*/
|
|
4012
|
-
accountId?: string | null;
|
|
4013
|
-
/**
|
|
4014
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
4015
|
-
* @format GUID
|
|
4016
|
-
*/
|
|
4017
|
-
parentAccountId?: string | null;
|
|
4154
|
+
interface MarkPostAsInModerationRequest {
|
|
4018
4155
|
/**
|
|
4019
|
-
*
|
|
4020
|
-
* @
|
|
4156
|
+
* Source post ID.
|
|
4157
|
+
* @maxLength 38
|
|
4021
4158
|
*/
|
|
4022
|
-
|
|
4023
|
-
}
|
|
4024
|
-
interface GetDraftPostTotalsRequest {
|
|
4159
|
+
postId?: string;
|
|
4025
4160
|
/**
|
|
4026
|
-
*
|
|
4027
|
-
*
|
|
4028
|
-
*
|
|
4161
|
+
* List of draft post fields to be included if entities are present in the response.
|
|
4162
|
+
* Base fieldset, which is default, will return all core draft post properties.
|
|
4163
|
+
* Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
|
|
4029
4164
|
* @maxSize 10
|
|
4030
4165
|
*/
|
|
4031
|
-
|
|
4032
|
-
/**
|
|
4033
|
-
* Optional language filter by provided language code. Useful in multilingual context.
|
|
4034
|
-
* @format LANGUAGE_TAG
|
|
4035
|
-
*/
|
|
4036
|
-
language?: string | null;
|
|
4037
|
-
}
|
|
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[];
|
|
4166
|
+
fieldsets?: FieldWithLiterals[];
|
|
4049
4167
|
}
|
|
4050
|
-
interface
|
|
4051
|
-
/**
|
|
4052
|
-
|
|
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;
|
|
4168
|
+
interface MarkPostAsInModerationResponse {
|
|
4169
|
+
/** Updated post draft. */
|
|
4170
|
+
draftPost?: DraftPost;
|
|
4060
4171
|
}
|
|
4061
4172
|
interface TranslateDraftRequest {
|
|
4062
4173
|
/**
|
|
@@ -4131,117 +4242,6 @@ interface UpdateDraftPostLanguageResponse {
|
|
|
4131
4242
|
/** Draft post */
|
|
4132
4243
|
draftPost?: DraftPost;
|
|
4133
4244
|
}
|
|
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/es/meta.mjs
CHANGED
|
@@ -3648,6 +3648,19 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
|
3648
3648
|
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
|
3649
3649
|
return ModerationStatusStatus2;
|
|
3650
3650
|
})(ModerationStatusStatus || {});
|
|
3651
|
+
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
3652
|
+
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
3653
|
+
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
3654
|
+
return TotalDraftPostsGroupingField2;
|
|
3655
|
+
})(TotalDraftPostsGroupingField || {});
|
|
3656
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3657
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3658
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3659
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3660
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3661
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
3662
|
+
return WebhookIdentityType2;
|
|
3663
|
+
})(WebhookIdentityType || {});
|
|
3651
3664
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
3652
3665
|
Type2["UNKNOWN"] = "UNKNOWN";
|
|
3653
3666
|
Type2["MANUAL"] = "MANUAL";
|
|
@@ -3687,19 +3700,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3687
3700
|
SortOrder2["DESC"] = "DESC";
|
|
3688
3701
|
return SortOrder2;
|
|
3689
3702
|
})(SortOrder || {});
|
|
3690
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3691
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3692
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3693
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3694
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3695
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
3696
|
-
return WebhookIdentityType2;
|
|
3697
|
-
})(WebhookIdentityType || {});
|
|
3698
|
-
var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
|
|
3699
|
-
TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
|
|
3700
|
-
TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
|
|
3701
|
-
return TotalDraftPostsGroupingField2;
|
|
3702
|
-
})(TotalDraftPostsGroupingField || {});
|
|
3703
3703
|
|
|
3704
3704
|
// src/blog-v3-draft-draft-posts.meta.ts
|
|
3705
3705
|
function createDraftPost2() {
|