@wix/auto_sdk_blog_draft-posts 1.0.112 → 1.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3414,6 +3414,10 @@ interface DraftPostTranslation {
3414
3414
  /** Post URL. */
3415
3415
  url?: string;
3416
3416
  }
3417
+ interface InitialDraftPostsCopied {
3418
+ /** Number of draft posts copied. */
3419
+ count?: number;
3420
+ }
3417
3421
  interface DraftCategoriesUpdated {
3418
3422
  /**
3419
3423
  * Draft post ID.
@@ -3452,200 +3456,6 @@ interface DraftTagsUpdated {
3452
3456
  */
3453
3457
  previousTags?: string[];
3454
3458
  }
3455
- interface GetDraftPostTotalsRequest {
3456
- /**
3457
- * Group results by fields (defaults to grouping by status).
3458
- * If, for example, grouping by language is passed, language values in response will be filled.
3459
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3460
- * @maxSize 10
3461
- */
3462
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3463
- /**
3464
- * Optional language filter by provided language code. Useful in multilingual context.
3465
- * @format LANGUAGE_TAG
3466
- */
3467
- language?: string | null;
3468
- }
3469
- declare enum TotalDraftPostsGroupingField {
3470
- /** Groups results by status. */
3471
- STATUS = "STATUS",
3472
- /** Groups results by language. */
3473
- LANGUAGE = "LANGUAGE"
3474
- }
3475
- /** @enumType */
3476
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3477
- interface GetDraftPostTotalsResponse {
3478
- /** Draft post totals. */
3479
- totalDraftPosts?: TotalDraftPosts[];
3480
- }
3481
- interface TotalDraftPosts {
3482
- /** Draft post totals in that group. */
3483
- total?: number;
3484
- /** Draft post status (only has value when grouping by status, otherwise null). */
3485
- status?: StatusWithLiterals;
3486
- /**
3487
- * Draft post language code (only has value when grouping by language, otherwise null).
3488
- * @format LANGUAGE_TAG
3489
- */
3490
- language?: string | null;
3491
- }
3492
- interface DomainEvent extends DomainEventBodyOneOf {
3493
- createdEvent?: EntityCreatedEvent;
3494
- updatedEvent?: EntityUpdatedEvent;
3495
- deletedEvent?: EntityDeletedEvent;
3496
- actionEvent?: ActionEvent;
3497
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3498
- _id?: string;
3499
- /**
3500
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3501
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3502
- */
3503
- entityFqdn?: string;
3504
- /**
3505
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3506
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3507
- */
3508
- slug?: string;
3509
- /** ID of the entity associated with the event. */
3510
- entityId?: string;
3511
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3512
- eventTime?: Date | null;
3513
- /**
3514
- * Whether the event was triggered as a result of a privacy regulation application
3515
- * (for example, GDPR).
3516
- */
3517
- triggeredByAnonymizeRequest?: boolean | null;
3518
- /** If present, indicates the action that triggered the event. */
3519
- originatedFrom?: string | null;
3520
- /**
3521
- * 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.
3522
- * 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.
3523
- */
3524
- entityEventSequence?: string | null;
3525
- }
3526
- /** @oneof */
3527
- interface DomainEventBodyOneOf {
3528
- createdEvent?: EntityCreatedEvent;
3529
- updatedEvent?: EntityUpdatedEvent;
3530
- deletedEvent?: EntityDeletedEvent;
3531
- actionEvent?: ActionEvent;
3532
- }
3533
- interface EntityCreatedEvent {
3534
- entity?: string;
3535
- }
3536
- interface RestoreInfo {
3537
- deletedDate?: Date | null;
3538
- }
3539
- interface EntityUpdatedEvent {
3540
- /**
3541
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3542
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3543
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3544
- */
3545
- currentEntity?: string;
3546
- }
3547
- interface EntityDeletedEvent {
3548
- /** Entity that was deleted. */
3549
- deletedEntity?: string | null;
3550
- }
3551
- interface ActionEvent {
3552
- body?: string;
3553
- }
3554
- interface MessageEnvelope {
3555
- /**
3556
- * App instance ID.
3557
- * @format GUID
3558
- */
3559
- instanceId?: string | null;
3560
- /**
3561
- * Event type.
3562
- * @maxLength 150
3563
- */
3564
- eventType?: string;
3565
- /** The identification type and identity data. */
3566
- identity?: IdentificationData;
3567
- /** Stringify payload. */
3568
- data?: string;
3569
- /** Details related to the account */
3570
- accountInfo?: AccountInfo;
3571
- }
3572
- interface IdentificationData extends IdentificationDataIdOneOf {
3573
- /**
3574
- * ID of a site visitor that has not logged in to the site.
3575
- * @format GUID
3576
- */
3577
- anonymousVisitorId?: string;
3578
- /**
3579
- * ID of a site visitor that has logged in to the site.
3580
- * @format GUID
3581
- */
3582
- memberId?: string;
3583
- /**
3584
- * ID of a Wix user (site owner, contributor, etc.).
3585
- * @format GUID
3586
- */
3587
- wixUserId?: string;
3588
- /**
3589
- * ID of an app.
3590
- * @format GUID
3591
- */
3592
- appId?: string;
3593
- /** @readonly */
3594
- identityType?: WebhookIdentityTypeWithLiterals;
3595
- }
3596
- /** @oneof */
3597
- interface IdentificationDataIdOneOf {
3598
- /**
3599
- * ID of a site visitor that has not logged in to the site.
3600
- * @format GUID
3601
- */
3602
- anonymousVisitorId?: string;
3603
- /**
3604
- * ID of a site visitor that has logged in to the site.
3605
- * @format GUID
3606
- */
3607
- memberId?: string;
3608
- /**
3609
- * ID of a Wix user (site owner, contributor, etc.).
3610
- * @format GUID
3611
- */
3612
- wixUserId?: string;
3613
- /**
3614
- * ID of an app.
3615
- * @format GUID
3616
- */
3617
- appId?: string;
3618
- }
3619
- declare enum WebhookIdentityType {
3620
- UNKNOWN = "UNKNOWN",
3621
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3622
- MEMBER = "MEMBER",
3623
- WIX_USER = "WIX_USER",
3624
- APP = "APP"
3625
- }
3626
- /** @enumType */
3627
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3628
- interface AccountInfo {
3629
- /**
3630
- * ID of the Wix account associated with the event.
3631
- * @format GUID
3632
- */
3633
- accountId?: string | null;
3634
- /**
3635
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3636
- * @format GUID
3637
- */
3638
- parentAccountId?: string | null;
3639
- /**
3640
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3641
- * @format GUID
3642
- */
3643
- siteId?: string | null;
3644
- }
3645
- interface InitialDraftPostsCopied {
3646
- /** Number of draft posts copied. */
3647
- count?: number;
3648
- }
3649
3459
  interface CreateDraftPostRequest {
3650
3460
  /** Draft post to create. */
3651
3461
  draftPost: DraftPost;
@@ -4295,152 +4105,195 @@ interface DraftPostCount {
4295
4105
  /** Number of posts. */
4296
4106
  postCount?: number;
4297
4107
  }
4298
- interface BulkRevertToUnpublishedRequest {
4108
+ interface DomainEvent extends DomainEventBodyOneOf {
4109
+ createdEvent?: EntityCreatedEvent;
4110
+ updatedEvent?: EntityUpdatedEvent;
4111
+ deletedEvent?: EntityDeletedEvent;
4112
+ actionEvent?: ActionEvent;
4113
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4114
+ _id?: string;
4299
4115
  /**
4300
- * Source post IDs.
4301
- * @minSize 1
4302
- * @maxSize 100
4303
- * @format GUID
4116
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4117
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4304
4118
  */
4305
- postIds?: string[];
4306
- /** Should full draft post be returned. */
4307
- returnFullEntity?: boolean;
4308
- }
4309
- interface BulkRevertToUnpublishedResponse {
4310
- /** Bulk action results. */
4311
- results?: BulkDraftPostResult[];
4312
- /** Bulk action metadata. */
4313
- bulkActionMetadata?: BulkActionMetadata;
4314
- }
4315
- interface BulkRejectDraftPostRequest {
4119
+ entityFqdn?: string;
4316
4120
  /**
4317
- * Source post IDs.
4318
- * @minSize 1
4319
- * @maxSize 100
4320
- * @format GUID
4121
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
4122
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4321
4123
  */
4322
- postIds?: string[];
4323
- /** Should full draft post be returned. */
4324
- returnFullEntity?: boolean;
4325
- }
4326
- interface BulkRejectDraftPostResponse {
4327
- /** Bulk action results. */
4328
- results?: BulkDraftPostResult[];
4329
- /** Bulk action metadata. */
4330
- bulkActionMetadata?: BulkActionMetadata;
4331
- }
4332
- interface RevertToUnpublishedRequest {
4124
+ slug?: string;
4125
+ /** ID of the entity associated with the event. */
4126
+ entityId?: string;
4127
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4128
+ eventTime?: Date | null;
4333
4129
  /**
4334
- * Source post ID.
4335
- * @format GUID
4130
+ * Whether the event was triggered as a result of a privacy regulation application
4131
+ * (for example, GDPR).
4336
4132
  */
4337
- postId?: string;
4133
+ triggeredByAnonymizeRequest?: boolean | null;
4134
+ /** If present, indicates the action that triggered the event. */
4135
+ originatedFrom?: string | null;
4338
4136
  /**
4339
- * List of draft post fields to be included in the response.
4340
- * @internal
4341
- * @maxSize 10
4342
- * @deprecated List of draft post fields to be included in the response.
4343
- * @replacedBy fieldsets
4344
- * @targetRemovalDate 2024-06-30
4137
+ * 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.
4138
+ * 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.
4345
4139
  */
4346
- fieldsToInclude?: FieldWithLiterals[];
4140
+ entityEventSequence?: string | null;
4141
+ }
4142
+ /** @oneof */
4143
+ interface DomainEventBodyOneOf {
4144
+ createdEvent?: EntityCreatedEvent;
4145
+ updatedEvent?: EntityUpdatedEvent;
4146
+ deletedEvent?: EntityDeletedEvent;
4147
+ actionEvent?: ActionEvent;
4148
+ }
4149
+ interface EntityCreatedEvent {
4150
+ entity?: string;
4151
+ }
4152
+ interface RestoreInfo {
4153
+ deletedDate?: Date | null;
4154
+ }
4155
+ interface EntityUpdatedEvent {
4347
4156
  /**
4348
- * List of draft post fields to be included if entities are present in the response.
4349
- * Base fieldset, which is default, will return all core draft post properties.
4350
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4351
- * @maxSize 10
4157
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4158
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4159
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4352
4160
  */
4353
- fieldsets?: FieldWithLiterals[];
4161
+ currentEntity?: string;
4354
4162
  }
4355
- interface RevertToUnpublishedResponse {
4356
- /** Updated post draft. */
4357
- draftPost?: DraftPost;
4163
+ interface EntityDeletedEvent {
4164
+ /** Entity that was deleted. */
4165
+ deletedEntity?: string | null;
4358
4166
  }
4359
- interface RejectDraftPostRequest {
4167
+ interface ActionEvent {
4168
+ body?: string;
4169
+ }
4170
+ interface MessageEnvelope {
4360
4171
  /**
4361
- * Source post ID.
4172
+ * App instance ID.
4362
4173
  * @format GUID
4363
4174
  */
4364
- postId?: string;
4175
+ instanceId?: string | null;
4365
4176
  /**
4366
- * List of draft post fields to be included in the response.
4367
- * @internal
4368
- * @maxSize 10
4369
- * @deprecated List of draft post fields to be included in the response.
4370
- * @replacedBy fieldsets
4371
- * @targetRemovalDate 2024-06-30
4177
+ * Event type.
4178
+ * @maxLength 150
4372
4179
  */
4373
- fieldsToInclude?: FieldWithLiterals[];
4180
+ eventType?: string;
4181
+ /** The identification type and identity data. */
4182
+ identity?: IdentificationData;
4183
+ /** Stringify payload. */
4184
+ data?: string;
4185
+ /** Details related to the account */
4186
+ accountInfo?: AccountInfo;
4187
+ }
4188
+ interface IdentificationData extends IdentificationDataIdOneOf {
4374
4189
  /**
4375
- * List of draft post fields to be included if entities are present in the response.
4376
- * Base fieldset, which is default, will return all core draft post properties.
4377
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4378
- * @maxSize 10
4190
+ * ID of a site visitor that has not logged in to the site.
4191
+ * @format GUID
4379
4192
  */
4380
- fieldsets?: FieldWithLiterals[];
4381
- }
4382
- interface RejectDraftPostResponse {
4383
- /** Draft post. */
4384
- draftPost?: DraftPost;
4193
+ anonymousVisitorId?: string;
4194
+ /**
4195
+ * ID of a site visitor that has logged in to the site.
4196
+ * @format GUID
4197
+ */
4198
+ memberId?: string;
4199
+ /**
4200
+ * ID of a Wix user (site owner, contributor, etc.).
4201
+ * @format GUID
4202
+ */
4203
+ wixUserId?: string;
4204
+ /**
4205
+ * ID of an app.
4206
+ * @format GUID
4207
+ */
4208
+ appId?: string;
4209
+ /** @readonly */
4210
+ identityType?: WebhookIdentityTypeWithLiterals;
4385
4211
  }
4386
- interface ApproveDraftPostRequest {
4212
+ /** @oneof */
4213
+ interface IdentificationDataIdOneOf {
4387
4214
  /**
4388
- * Source post ID.
4215
+ * ID of a site visitor that has not logged in to the site.
4389
4216
  * @format GUID
4390
4217
  */
4391
- postId?: string;
4218
+ anonymousVisitorId?: string;
4392
4219
  /**
4393
- * Scheduled publish date if should be not immediately published.
4394
- * @maxLength 24
4220
+ * ID of a site visitor that has logged in to the site.
4221
+ * @format GUID
4395
4222
  */
4396
- scheduledPublishDate?: string | null;
4223
+ memberId?: string;
4397
4224
  /**
4398
- * List of draft post fields to be included in the response.
4399
- * @internal
4400
- * @maxSize 10
4401
- * @deprecated List of draft post fields to be included in the response.
4402
- * @replacedBy fieldsets
4403
- * @targetRemovalDate 2024-06-30
4225
+ * ID of a Wix user (site owner, contributor, etc.).
4226
+ * @format GUID
4404
4227
  */
4405
- fieldsToInclude?: FieldWithLiterals[];
4228
+ wixUserId?: string;
4406
4229
  /**
4407
- * List of draft post fields to be included if entities are present in the response.
4408
- * Base fieldset, which is default, will return all core draft post properties.
4409
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4410
- * @maxSize 10
4230
+ * ID of an app.
4231
+ * @format GUID
4411
4232
  */
4412
- fieldsets?: FieldWithLiterals[];
4233
+ appId?: string;
4413
4234
  }
4414
- interface ApproveDraftPostResponse {
4415
- /** Updated post draft. */
4416
- draftPost?: DraftPost;
4235
+ declare enum WebhookIdentityType {
4236
+ UNKNOWN = "UNKNOWN",
4237
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4238
+ MEMBER = "MEMBER",
4239
+ WIX_USER = "WIX_USER",
4240
+ APP = "APP"
4417
4241
  }
4418
- interface MarkPostAsInModerationRequest {
4242
+ /** @enumType */
4243
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4244
+ interface AccountInfo {
4419
4245
  /**
4420
- * Source post ID.
4421
- * @maxLength 38
4246
+ * ID of the Wix account associated with the event.
4247
+ * @format GUID
4422
4248
  */
4423
- postId?: string;
4249
+ accountId?: string | null;
4424
4250
  /**
4425
- * List of draft post fields to be included in the response.
4426
- * @internal
4427
- * @maxSize 10
4428
- * @deprecated List of draft post fields to be included in the response.
4429
- * @replacedBy fieldsets
4430
- * @targetRemovalDate 2024-06-30
4251
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
4252
+ * @format GUID
4431
4253
  */
4432
- fieldsToInclude?: FieldWithLiterals[];
4254
+ parentAccountId?: string | null;
4433
4255
  /**
4434
- * List of draft post fields to be included if entities are present in the response.
4435
- * Base fieldset, which is default, will return all core draft post properties.
4436
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4256
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4257
+ * @format GUID
4258
+ */
4259
+ siteId?: string | null;
4260
+ }
4261
+ interface GetDraftPostTotalsRequest {
4262
+ /**
4263
+ * Group results by fields (defaults to grouping by status).
4264
+ * If, for example, grouping by language is passed, language values in response will be filled.
4265
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4437
4266
  * @maxSize 10
4438
4267
  */
4439
- fieldsets?: FieldWithLiterals[];
4268
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4269
+ /**
4270
+ * Optional language filter by provided language code. Useful in multilingual context.
4271
+ * @format LANGUAGE_TAG
4272
+ */
4273
+ language?: string | null;
4440
4274
  }
4441
- interface MarkPostAsInModerationResponse {
4442
- /** Updated post draft. */
4443
- draftPost?: DraftPost;
4275
+ declare enum TotalDraftPostsGroupingField {
4276
+ /** Groups results by status. */
4277
+ STATUS = "STATUS",
4278
+ /** Groups results by language. */
4279
+ LANGUAGE = "LANGUAGE"
4280
+ }
4281
+ /** @enumType */
4282
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4283
+ interface GetDraftPostTotalsResponse {
4284
+ /** Draft post totals. */
4285
+ totalDraftPosts?: TotalDraftPosts[];
4286
+ }
4287
+ interface TotalDraftPosts {
4288
+ /** Draft post totals in that group. */
4289
+ total?: number;
4290
+ /** Draft post status (only has value when grouping by status, otherwise null). */
4291
+ status?: StatusWithLiterals;
4292
+ /**
4293
+ * Draft post language code (only has value when grouping by language, otherwise null).
4294
+ * @format LANGUAGE_TAG
4295
+ */
4296
+ language?: string | null;
4444
4297
  }
4445
4298
  interface TranslateDraftRequest {
4446
4299
  /**
@@ -4534,6 +4387,153 @@ interface UpdateDraftPostLanguageResponse {
4534
4387
  /** Updated draft post. */
4535
4388
  draftPost?: DraftPost;
4536
4389
  }
4390
+ interface BulkRevertToUnpublishedRequest {
4391
+ /**
4392
+ * Source post IDs.
4393
+ * @minSize 1
4394
+ * @maxSize 100
4395
+ * @format GUID
4396
+ */
4397
+ postIds?: string[];
4398
+ /** Should full draft post be returned. */
4399
+ returnFullEntity?: boolean;
4400
+ }
4401
+ interface BulkRevertToUnpublishedResponse {
4402
+ /** Bulk action results. */
4403
+ results?: BulkDraftPostResult[];
4404
+ /** Bulk action metadata. */
4405
+ bulkActionMetadata?: BulkActionMetadata;
4406
+ }
4407
+ interface BulkRejectDraftPostRequest {
4408
+ /**
4409
+ * Source post IDs.
4410
+ * @minSize 1
4411
+ * @maxSize 100
4412
+ * @format GUID
4413
+ */
4414
+ postIds?: string[];
4415
+ /** Should full draft post be returned. */
4416
+ returnFullEntity?: boolean;
4417
+ }
4418
+ interface BulkRejectDraftPostResponse {
4419
+ /** Bulk action results. */
4420
+ results?: BulkDraftPostResult[];
4421
+ /** Bulk action metadata. */
4422
+ bulkActionMetadata?: BulkActionMetadata;
4423
+ }
4424
+ interface RevertToUnpublishedRequest {
4425
+ /**
4426
+ * Source post ID.
4427
+ * @format GUID
4428
+ */
4429
+ postId?: string;
4430
+ /**
4431
+ * List of draft post fields to be included in the response.
4432
+ * @internal
4433
+ * @maxSize 10
4434
+ * @deprecated List of draft post fields to be included in the response.
4435
+ * @replacedBy fieldsets
4436
+ * @targetRemovalDate 2024-06-30
4437
+ */
4438
+ fieldsToInclude?: FieldWithLiterals[];
4439
+ /**
4440
+ * List of draft post fields to be included if entities are present in the response.
4441
+ * Base fieldset, which is default, will return all core draft post properties.
4442
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4443
+ * @maxSize 10
4444
+ */
4445
+ fieldsets?: FieldWithLiterals[];
4446
+ }
4447
+ interface RevertToUnpublishedResponse {
4448
+ /** Updated post draft. */
4449
+ draftPost?: DraftPost;
4450
+ }
4451
+ interface RejectDraftPostRequest {
4452
+ /**
4453
+ * Source post ID.
4454
+ * @format GUID
4455
+ */
4456
+ postId?: string;
4457
+ /**
4458
+ * List of draft post fields to be included in the response.
4459
+ * @internal
4460
+ * @maxSize 10
4461
+ * @deprecated List of draft post fields to be included in the response.
4462
+ * @replacedBy fieldsets
4463
+ * @targetRemovalDate 2024-06-30
4464
+ */
4465
+ fieldsToInclude?: FieldWithLiterals[];
4466
+ /**
4467
+ * List of draft post fields to be included if entities are present in the response.
4468
+ * Base fieldset, which is default, will return all core draft post properties.
4469
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4470
+ * @maxSize 10
4471
+ */
4472
+ fieldsets?: FieldWithLiterals[];
4473
+ }
4474
+ interface RejectDraftPostResponse {
4475
+ /** Draft post. */
4476
+ draftPost?: DraftPost;
4477
+ }
4478
+ interface ApproveDraftPostRequest {
4479
+ /**
4480
+ * Source post ID.
4481
+ * @format GUID
4482
+ */
4483
+ postId?: string;
4484
+ /**
4485
+ * Scheduled publish date if should be not immediately published.
4486
+ * @maxLength 24
4487
+ */
4488
+ scheduledPublishDate?: string | null;
4489
+ /**
4490
+ * List of draft post fields to be included in the response.
4491
+ * @internal
4492
+ * @maxSize 10
4493
+ * @deprecated List of draft post fields to be included in the response.
4494
+ * @replacedBy fieldsets
4495
+ * @targetRemovalDate 2024-06-30
4496
+ */
4497
+ fieldsToInclude?: FieldWithLiterals[];
4498
+ /**
4499
+ * List of draft post fields to be included if entities are present in the response.
4500
+ * Base fieldset, which is default, will return all core draft post properties.
4501
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4502
+ * @maxSize 10
4503
+ */
4504
+ fieldsets?: FieldWithLiterals[];
4505
+ }
4506
+ interface ApproveDraftPostResponse {
4507
+ /** Updated post draft. */
4508
+ draftPost?: DraftPost;
4509
+ }
4510
+ interface MarkPostAsInModerationRequest {
4511
+ /**
4512
+ * Source post ID.
4513
+ * @maxLength 38
4514
+ */
4515
+ postId?: string;
4516
+ /**
4517
+ * List of draft post fields to be included in the response.
4518
+ * @internal
4519
+ * @maxSize 10
4520
+ * @deprecated List of draft post fields to be included in the response.
4521
+ * @replacedBy fieldsets
4522
+ * @targetRemovalDate 2024-06-30
4523
+ */
4524
+ fieldsToInclude?: FieldWithLiterals[];
4525
+ /**
4526
+ * List of draft post fields to be included if entities are present in the response.
4527
+ * Base fieldset, which is default, will return all core draft post properties.
4528
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4529
+ * @maxSize 10
4530
+ */
4531
+ fieldsets?: FieldWithLiterals[];
4532
+ }
4533
+ interface MarkPostAsInModerationResponse {
4534
+ /** Updated post draft. */
4535
+ draftPost?: DraftPost;
4536
+ }
4537
4537
  interface BaseEventMetadata {
4538
4538
  /**
4539
4539
  * App instance ID.