@wix/auto_sdk_blog_draft-posts 1.0.122 → 1.0.123

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.
@@ -3345,6 +3345,10 @@ interface DraftPostTranslation {
3345
3345
  /** Post URL. */
3346
3346
  url?: string;
3347
3347
  }
3348
+ interface InitialDraftPostsCopied {
3349
+ /** Number of draft posts copied. */
3350
+ count?: number;
3351
+ }
3348
3352
  interface DraftCategoriesUpdated {
3349
3353
  /**
3350
3354
  * Draft post ID.
@@ -3383,200 +3387,6 @@ interface DraftTagsUpdated {
3383
3387
  */
3384
3388
  previousTags?: string[];
3385
3389
  }
3386
- interface GetDraftPostTotalsRequest {
3387
- /**
3388
- * Group results by fields (defaults to grouping by status).
3389
- * If, for example, grouping by language is passed, language values in response will be filled.
3390
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3391
- * @maxSize 10
3392
- */
3393
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3394
- /**
3395
- * Optional language filter by provided language code. Useful in multilingual context.
3396
- * @format LANGUAGE_TAG
3397
- */
3398
- language?: string | null;
3399
- }
3400
- declare enum TotalDraftPostsGroupingField {
3401
- /** Groups results by status. */
3402
- STATUS = "STATUS",
3403
- /** Groups results by language. */
3404
- LANGUAGE = "LANGUAGE"
3405
- }
3406
- /** @enumType */
3407
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3408
- interface GetDraftPostTotalsResponse {
3409
- /** Draft post totals. */
3410
- totalDraftPosts?: TotalDraftPosts[];
3411
- }
3412
- interface TotalDraftPosts {
3413
- /** Draft post totals in that group. */
3414
- total?: number;
3415
- /** Draft post status (only has value when grouping by status, otherwise null). */
3416
- status?: StatusWithLiterals;
3417
- /**
3418
- * Draft post language code (only has value when grouping by language, otherwise null).
3419
- * @format LANGUAGE_TAG
3420
- */
3421
- language?: string | null;
3422
- }
3423
- interface DomainEvent extends DomainEventBodyOneOf {
3424
- createdEvent?: EntityCreatedEvent;
3425
- updatedEvent?: EntityUpdatedEvent;
3426
- deletedEvent?: EntityDeletedEvent;
3427
- actionEvent?: ActionEvent;
3428
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3429
- _id?: string;
3430
- /**
3431
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3432
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3433
- */
3434
- entityFqdn?: string;
3435
- /**
3436
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3437
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3438
- */
3439
- slug?: string;
3440
- /** ID of the entity associated with the event. */
3441
- entityId?: string;
3442
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3443
- eventTime?: Date | null;
3444
- /**
3445
- * Whether the event was triggered as a result of a privacy regulation application
3446
- * (for example, GDPR).
3447
- */
3448
- triggeredByAnonymizeRequest?: boolean | null;
3449
- /** If present, indicates the action that triggered the event. */
3450
- originatedFrom?: string | null;
3451
- /**
3452
- * 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.
3453
- * 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.
3454
- */
3455
- entityEventSequence?: string | null;
3456
- }
3457
- /** @oneof */
3458
- interface DomainEventBodyOneOf {
3459
- createdEvent?: EntityCreatedEvent;
3460
- updatedEvent?: EntityUpdatedEvent;
3461
- deletedEvent?: EntityDeletedEvent;
3462
- actionEvent?: ActionEvent;
3463
- }
3464
- interface EntityCreatedEvent {
3465
- entity?: string;
3466
- }
3467
- interface RestoreInfo {
3468
- deletedDate?: Date | null;
3469
- }
3470
- interface EntityUpdatedEvent {
3471
- /**
3472
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3473
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3474
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3475
- */
3476
- currentEntity?: string;
3477
- }
3478
- interface EntityDeletedEvent {
3479
- /** Entity that was deleted. */
3480
- deletedEntity?: string | null;
3481
- }
3482
- interface ActionEvent {
3483
- body?: string;
3484
- }
3485
- interface MessageEnvelope {
3486
- /**
3487
- * App instance ID.
3488
- * @format GUID
3489
- */
3490
- instanceId?: string | null;
3491
- /**
3492
- * Event type.
3493
- * @maxLength 150
3494
- */
3495
- eventType?: string;
3496
- /** The identification type and identity data. */
3497
- identity?: IdentificationData;
3498
- /** Stringify payload. */
3499
- data?: string;
3500
- /** Details related to the account */
3501
- accountInfo?: AccountInfo;
3502
- }
3503
- interface IdentificationData extends IdentificationDataIdOneOf {
3504
- /**
3505
- * ID of a site visitor that has not logged in to the site.
3506
- * @format GUID
3507
- */
3508
- anonymousVisitorId?: string;
3509
- /**
3510
- * ID of a site visitor that has logged in to the site.
3511
- * @format GUID
3512
- */
3513
- memberId?: string;
3514
- /**
3515
- * ID of a Wix user (site owner, contributor, etc.).
3516
- * @format GUID
3517
- */
3518
- wixUserId?: string;
3519
- /**
3520
- * ID of an app.
3521
- * @format GUID
3522
- */
3523
- appId?: string;
3524
- /** @readonly */
3525
- identityType?: WebhookIdentityTypeWithLiterals;
3526
- }
3527
- /** @oneof */
3528
- interface IdentificationDataIdOneOf {
3529
- /**
3530
- * ID of a site visitor that has not logged in to the site.
3531
- * @format GUID
3532
- */
3533
- anonymousVisitorId?: string;
3534
- /**
3535
- * ID of a site visitor that has logged in to the site.
3536
- * @format GUID
3537
- */
3538
- memberId?: string;
3539
- /**
3540
- * ID of a Wix user (site owner, contributor, etc.).
3541
- * @format GUID
3542
- */
3543
- wixUserId?: string;
3544
- /**
3545
- * ID of an app.
3546
- * @format GUID
3547
- */
3548
- appId?: string;
3549
- }
3550
- declare enum WebhookIdentityType {
3551
- UNKNOWN = "UNKNOWN",
3552
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3553
- MEMBER = "MEMBER",
3554
- WIX_USER = "WIX_USER",
3555
- APP = "APP"
3556
- }
3557
- /** @enumType */
3558
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3559
- interface AccountInfo {
3560
- /**
3561
- * ID of the Wix account associated with the event.
3562
- * @format GUID
3563
- */
3564
- accountId?: string | null;
3565
- /**
3566
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3567
- * @format GUID
3568
- */
3569
- parentAccountId?: string | null;
3570
- /**
3571
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3572
- * @format GUID
3573
- */
3574
- siteId?: string | null;
3575
- }
3576
- interface InitialDraftPostsCopied {
3577
- /** Number of draft posts copied. */
3578
- count?: number;
3579
- }
3580
3390
  interface CreateDraftPostRequest {
3581
3391
  /** Draft post to create. */
3582
3392
  draftPost: DraftPost;
@@ -4157,116 +3967,195 @@ interface DraftPostCount {
4157
3967
  /** Number of posts. */
4158
3968
  postCount?: number;
4159
3969
  }
4160
- interface BulkRevertToUnpublishedRequest {
3970
+ interface DomainEvent extends DomainEventBodyOneOf {
3971
+ createdEvent?: EntityCreatedEvent;
3972
+ updatedEvent?: EntityUpdatedEvent;
3973
+ deletedEvent?: EntityDeletedEvent;
3974
+ actionEvent?: ActionEvent;
3975
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3976
+ _id?: string;
4161
3977
  /**
4162
- * Source post IDs.
4163
- * @minSize 1
4164
- * @maxSize 100
4165
- * @format GUID
3978
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3979
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4166
3980
  */
4167
- postIds?: string[];
4168
- /** Should full draft post be returned. */
4169
- returnFullEntity?: boolean;
4170
- }
4171
- interface BulkRevertToUnpublishedResponse {
4172
- /** Bulk action results. */
4173
- results?: BulkDraftPostResult[];
4174
- /** Bulk action metadata. */
4175
- bulkActionMetadata?: BulkActionMetadata;
4176
- }
4177
- interface BulkRejectDraftPostRequest {
3981
+ entityFqdn?: string;
4178
3982
  /**
4179
- * Source post IDs.
4180
- * @minSize 1
4181
- * @maxSize 100
4182
- * @format GUID
3983
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3984
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4183
3985
  */
4184
- postIds?: string[];
4185
- /** Should full draft post be returned. */
4186
- returnFullEntity?: boolean;
4187
- }
4188
- interface BulkRejectDraftPostResponse {
4189
- /** Bulk action results. */
4190
- results?: BulkDraftPostResult[];
4191
- /** Bulk action metadata. */
4192
- bulkActionMetadata?: BulkActionMetadata;
4193
- }
4194
- interface RevertToUnpublishedRequest {
3986
+ slug?: string;
3987
+ /** ID of the entity associated with the event. */
3988
+ entityId?: string;
3989
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3990
+ eventTime?: Date | null;
4195
3991
  /**
4196
- * Source post ID.
4197
- * @format GUID
3992
+ * Whether the event was triggered as a result of a privacy regulation application
3993
+ * (for example, GDPR).
4198
3994
  */
4199
- postId?: string;
3995
+ triggeredByAnonymizeRequest?: boolean | null;
3996
+ /** If present, indicates the action that triggered the event. */
3997
+ originatedFrom?: string | null;
4200
3998
  /**
4201
- * List of draft post fields to be included if entities are present in the response.
4202
- * Base fieldset, which is default, will return all core draft post properties.
4203
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4204
- * @maxSize 10
3999
+ * 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.
4000
+ * 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.
4205
4001
  */
4206
- fieldsets?: FieldWithLiterals[];
4002
+ entityEventSequence?: string | null;
4207
4003
  }
4208
- interface RevertToUnpublishedResponse {
4209
- /** Updated post draft. */
4210
- draftPost?: DraftPost;
4004
+ /** @oneof */
4005
+ interface DomainEventBodyOneOf {
4006
+ createdEvent?: EntityCreatedEvent;
4007
+ updatedEvent?: EntityUpdatedEvent;
4008
+ deletedEvent?: EntityDeletedEvent;
4009
+ actionEvent?: ActionEvent;
4211
4010
  }
4212
- interface RejectDraftPostRequest {
4011
+ interface EntityCreatedEvent {
4012
+ entity?: string;
4013
+ }
4014
+ interface RestoreInfo {
4015
+ deletedDate?: Date | null;
4016
+ }
4017
+ interface EntityUpdatedEvent {
4213
4018
  /**
4214
- * Source post ID.
4019
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4020
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4021
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4022
+ */
4023
+ currentEntity?: string;
4024
+ }
4025
+ interface EntityDeletedEvent {
4026
+ /** Entity that was deleted. */
4027
+ deletedEntity?: string | null;
4028
+ }
4029
+ interface ActionEvent {
4030
+ body?: string;
4031
+ }
4032
+ interface MessageEnvelope {
4033
+ /**
4034
+ * App instance ID.
4215
4035
  * @format GUID
4216
4036
  */
4217
- postId?: string;
4037
+ instanceId?: string | null;
4218
4038
  /**
4219
- * List of draft post fields to be included if entities are present in the response.
4220
- * Base fieldset, which is default, will return all core draft post properties.
4221
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4222
- * @maxSize 10
4039
+ * Event type.
4040
+ * @maxLength 150
4223
4041
  */
4224
- fieldsets?: FieldWithLiterals[];
4042
+ eventType?: string;
4043
+ /** The identification type and identity data. */
4044
+ identity?: IdentificationData;
4045
+ /** Stringify payload. */
4046
+ data?: string;
4047
+ /** Details related to the account */
4048
+ accountInfo?: AccountInfo;
4225
4049
  }
4226
- interface RejectDraftPostResponse {
4227
- /** Draft post. */
4228
- draftPost?: DraftPost;
4050
+ interface IdentificationData extends IdentificationDataIdOneOf {
4051
+ /**
4052
+ * ID of a site visitor that has not logged in to the site.
4053
+ * @format GUID
4054
+ */
4055
+ anonymousVisitorId?: string;
4056
+ /**
4057
+ * ID of a site visitor that has logged in to the site.
4058
+ * @format GUID
4059
+ */
4060
+ memberId?: string;
4061
+ /**
4062
+ * ID of a Wix user (site owner, contributor, etc.).
4063
+ * @format GUID
4064
+ */
4065
+ wixUserId?: string;
4066
+ /**
4067
+ * ID of an app.
4068
+ * @format GUID
4069
+ */
4070
+ appId?: string;
4071
+ /** @readonly */
4072
+ identityType?: WebhookIdentityTypeWithLiterals;
4229
4073
  }
4230
- interface ApproveDraftPostRequest {
4074
+ /** @oneof */
4075
+ interface IdentificationDataIdOneOf {
4231
4076
  /**
4232
- * Source post ID.
4077
+ * ID of a site visitor that has not logged in to the site.
4233
4078
  * @format GUID
4234
4079
  */
4235
- postId?: string;
4080
+ anonymousVisitorId?: string;
4236
4081
  /**
4237
- * Scheduled publish date if should be not immediately published.
4238
- * @maxLength 24
4082
+ * ID of a site visitor that has logged in to the site.
4083
+ * @format GUID
4239
4084
  */
4240
- scheduledPublishDate?: string | null;
4085
+ memberId?: string;
4241
4086
  /**
4242
- * List of draft post fields to be included if entities are present in the response.
4243
- * Base fieldset, which is default, will return all core draft post properties.
4244
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4245
- * @maxSize 10
4087
+ * ID of a Wix user (site owner, contributor, etc.).
4088
+ * @format GUID
4246
4089
  */
4247
- fieldsets?: FieldWithLiterals[];
4090
+ wixUserId?: string;
4091
+ /**
4092
+ * ID of an app.
4093
+ * @format GUID
4094
+ */
4095
+ appId?: string;
4248
4096
  }
4249
- interface ApproveDraftPostResponse {
4250
- /** Updated post draft. */
4251
- draftPost?: DraftPost;
4097
+ declare enum WebhookIdentityType {
4098
+ UNKNOWN = "UNKNOWN",
4099
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4100
+ MEMBER = "MEMBER",
4101
+ WIX_USER = "WIX_USER",
4102
+ APP = "APP"
4252
4103
  }
4253
- interface MarkPostAsInModerationRequest {
4104
+ /** @enumType */
4105
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4106
+ interface AccountInfo {
4254
4107
  /**
4255
- * Source post ID.
4256
- * @maxLength 38
4108
+ * ID of the Wix account associated with the event.
4109
+ * @format GUID
4257
4110
  */
4258
- postId?: string;
4111
+ accountId?: string | null;
4259
4112
  /**
4260
- * List of draft post fields to be included if entities are present in the response.
4261
- * Base fieldset, which is default, will return all core draft post properties.
4262
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4113
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
4114
+ * @format GUID
4115
+ */
4116
+ parentAccountId?: string | null;
4117
+ /**
4118
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4119
+ * @format GUID
4120
+ */
4121
+ siteId?: string | null;
4122
+ }
4123
+ interface GetDraftPostTotalsRequest {
4124
+ /**
4125
+ * Group results by fields (defaults to grouping by status).
4126
+ * If, for example, grouping by language is passed, language values in response will be filled.
4127
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4263
4128
  * @maxSize 10
4264
4129
  */
4265
- fieldsets?: FieldWithLiterals[];
4130
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4131
+ /**
4132
+ * Optional language filter by provided language code. Useful in multilingual context.
4133
+ * @format LANGUAGE_TAG
4134
+ */
4135
+ language?: string | null;
4266
4136
  }
4267
- interface MarkPostAsInModerationResponse {
4268
- /** Updated post draft. */
4269
- draftPost?: DraftPost;
4137
+ declare enum TotalDraftPostsGroupingField {
4138
+ /** Groups results by status. */
4139
+ STATUS = "STATUS",
4140
+ /** Groups results by language. */
4141
+ LANGUAGE = "LANGUAGE"
4142
+ }
4143
+ /** @enumType */
4144
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4145
+ interface GetDraftPostTotalsResponse {
4146
+ /** Draft post totals. */
4147
+ totalDraftPosts?: TotalDraftPosts[];
4148
+ }
4149
+ interface TotalDraftPosts {
4150
+ /** Draft post totals in that group. */
4151
+ total?: number;
4152
+ /** Draft post status (only has value when grouping by status, otherwise null). */
4153
+ status?: StatusWithLiterals;
4154
+ /**
4155
+ * Draft post language code (only has value when grouping by language, otherwise null).
4156
+ * @format LANGUAGE_TAG
4157
+ */
4158
+ language?: string | null;
4270
4159
  }
4271
4160
  interface TranslateDraftRequest {
4272
4161
  /**
@@ -4353,6 +4242,117 @@ interface UpdateDraftPostLanguageResponse {
4353
4242
  /** Updated draft post. */
4354
4243
  draftPost?: DraftPost;
4355
4244
  }
4245
+ interface BulkRevertToUnpublishedRequest {
4246
+ /**
4247
+ * Source post IDs.
4248
+ * @minSize 1
4249
+ * @maxSize 100
4250
+ * @format GUID
4251
+ */
4252
+ postIds?: string[];
4253
+ /** Should full draft post be returned. */
4254
+ returnFullEntity?: boolean;
4255
+ }
4256
+ interface BulkRevertToUnpublishedResponse {
4257
+ /** Bulk action results. */
4258
+ results?: BulkDraftPostResult[];
4259
+ /** Bulk action metadata. */
4260
+ bulkActionMetadata?: BulkActionMetadata;
4261
+ }
4262
+ interface BulkRejectDraftPostRequest {
4263
+ /**
4264
+ * Source post IDs.
4265
+ * @minSize 1
4266
+ * @maxSize 100
4267
+ * @format GUID
4268
+ */
4269
+ postIds?: string[];
4270
+ /** Should full draft post be returned. */
4271
+ returnFullEntity?: boolean;
4272
+ }
4273
+ interface BulkRejectDraftPostResponse {
4274
+ /** Bulk action results. */
4275
+ results?: BulkDraftPostResult[];
4276
+ /** Bulk action metadata. */
4277
+ bulkActionMetadata?: BulkActionMetadata;
4278
+ }
4279
+ interface RevertToUnpublishedRequest {
4280
+ /**
4281
+ * Source post ID.
4282
+ * @format GUID
4283
+ */
4284
+ postId?: string;
4285
+ /**
4286
+ * List of draft post fields to be included if entities are present in the response.
4287
+ * Base fieldset, which is default, will return all core draft post properties.
4288
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4289
+ * @maxSize 10
4290
+ */
4291
+ fieldsets?: FieldWithLiterals[];
4292
+ }
4293
+ interface RevertToUnpublishedResponse {
4294
+ /** Updated post draft. */
4295
+ draftPost?: DraftPost;
4296
+ }
4297
+ interface RejectDraftPostRequest {
4298
+ /**
4299
+ * Source post ID.
4300
+ * @format GUID
4301
+ */
4302
+ postId?: string;
4303
+ /**
4304
+ * List of draft post fields to be included if entities are present in the response.
4305
+ * Base fieldset, which is default, will return all core draft post properties.
4306
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4307
+ * @maxSize 10
4308
+ */
4309
+ fieldsets?: FieldWithLiterals[];
4310
+ }
4311
+ interface RejectDraftPostResponse {
4312
+ /** Draft post. */
4313
+ draftPost?: DraftPost;
4314
+ }
4315
+ interface ApproveDraftPostRequest {
4316
+ /**
4317
+ * Source post ID.
4318
+ * @format GUID
4319
+ */
4320
+ postId?: string;
4321
+ /**
4322
+ * Scheduled publish date if should be not immediately published.
4323
+ * @maxLength 24
4324
+ */
4325
+ scheduledPublishDate?: string | null;
4326
+ /**
4327
+ * List of draft post fields to be included if entities are present in the response.
4328
+ * Base fieldset, which is default, will return all core draft post properties.
4329
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4330
+ * @maxSize 10
4331
+ */
4332
+ fieldsets?: FieldWithLiterals[];
4333
+ }
4334
+ interface ApproveDraftPostResponse {
4335
+ /** Updated post draft. */
4336
+ draftPost?: DraftPost;
4337
+ }
4338
+ interface MarkPostAsInModerationRequest {
4339
+ /**
4340
+ * Source post ID.
4341
+ * @maxLength 38
4342
+ */
4343
+ postId?: string;
4344
+ /**
4345
+ * List of draft post fields to be included if entities are present in the response.
4346
+ * Base fieldset, which is default, will return all core draft post properties.
4347
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4348
+ * @maxSize 10
4349
+ */
4350
+ fieldsets?: FieldWithLiterals[];
4351
+ }
4352
+ interface MarkPostAsInModerationResponse {
4353
+ /** Updated post draft. */
4354
+ draftPost?: DraftPost;
4355
+ }
4356
4356
  interface BaseEventMetadata {
4357
4357
  /**
4358
4358
  * App instance ID.
@@ -2898,19 +2898,6 @@ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
2898
2898
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
2899
2899
  return ModerationStatusStatus2;
2900
2900
  })(ModerationStatusStatus || {});
2901
- var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2902
- TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2903
- TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2904
- return TotalDraftPostsGroupingField2;
2905
- })(TotalDraftPostsGroupingField || {});
2906
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2907
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2908
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2909
- WebhookIdentityType2["MEMBER"] = "MEMBER";
2910
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2911
- WebhookIdentityType2["APP"] = "APP";
2912
- return WebhookIdentityType2;
2913
- })(WebhookIdentityType || {});
2914
2901
  var Type = /* @__PURE__ */ ((Type2) => {
2915
2902
  Type2["UNKNOWN"] = "UNKNOWN";
2916
2903
  Type2["MANUAL"] = "MANUAL";
@@ -2950,6 +2937,19 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2950
2937
  SortOrder2["DESC"] = "DESC";
2951
2938
  return SortOrder2;
2952
2939
  })(SortOrder || {});
2940
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2941
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2942
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2943
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
2944
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2945
+ WebhookIdentityType2["APP"] = "APP";
2946
+ return WebhookIdentityType2;
2947
+ })(WebhookIdentityType || {});
2948
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2949
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2950
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2951
+ return TotalDraftPostsGroupingField2;
2952
+ })(TotalDraftPostsGroupingField || {});
2953
2953
  async function createDraftPost2(draftPost, options) {
2954
2954
  const { httpClient, sideEffects } = arguments[2];
2955
2955
  const payload = (0, import_transform_paths2.transformPaths)(