@wix/auto_sdk_blog_draft-posts 1.0.109 → 1.0.110

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