@wix/auto_sdk_blog_draft-posts 1.0.122 → 1.0.124

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.
@@ -3483,6 +3483,10 @@ interface DraftPostTranslation {
3483
3483
  /** Post URL. */
3484
3484
  url?: string;
3485
3485
  }
3486
+ interface InitialDraftPostsCopied {
3487
+ /** Number of draft posts copied. */
3488
+ count?: number;
3489
+ }
3486
3490
  interface DraftCategoriesUpdated {
3487
3491
  /**
3488
3492
  * Draft post ID.
@@ -3521,200 +3525,6 @@ interface DraftTagsUpdated {
3521
3525
  */
3522
3526
  previousTags?: string[];
3523
3527
  }
3524
- interface GetDraftPostTotalsRequest {
3525
- /**
3526
- * Group results by fields (defaults to grouping by status).
3527
- * If, for example, grouping by language is passed, language values in response will be filled.
3528
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3529
- * @maxSize 10
3530
- */
3531
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3532
- /**
3533
- * Optional language filter by provided language code. Useful in multilingual context.
3534
- * @format LANGUAGE_TAG
3535
- */
3536
- language?: string | null;
3537
- }
3538
- declare enum TotalDraftPostsGroupingField {
3539
- /** Groups results by status. */
3540
- STATUS = "STATUS",
3541
- /** Groups results by language. */
3542
- LANGUAGE = "LANGUAGE"
3543
- }
3544
- /** @enumType */
3545
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3546
- interface GetDraftPostTotalsResponse {
3547
- /** Draft post totals. */
3548
- totalDraftPosts?: TotalDraftPosts[];
3549
- }
3550
- interface TotalDraftPosts {
3551
- /** Draft post totals in that group. */
3552
- total?: number;
3553
- /** Draft post status (only has value when grouping by status, otherwise null). */
3554
- status?: StatusWithLiterals;
3555
- /**
3556
- * Draft post language code (only has value when grouping by language, otherwise null).
3557
- * @format LANGUAGE_TAG
3558
- */
3559
- language?: string | null;
3560
- }
3561
- interface DomainEvent extends DomainEventBodyOneOf {
3562
- createdEvent?: EntityCreatedEvent;
3563
- updatedEvent?: EntityUpdatedEvent;
3564
- deletedEvent?: EntityDeletedEvent;
3565
- actionEvent?: ActionEvent;
3566
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3567
- _id?: string;
3568
- /**
3569
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3570
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3571
- */
3572
- entityFqdn?: string;
3573
- /**
3574
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3575
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3576
- */
3577
- slug?: string;
3578
- /** ID of the entity associated with the event. */
3579
- entityId?: string;
3580
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3581
- eventTime?: Date | null;
3582
- /**
3583
- * Whether the event was triggered as a result of a privacy regulation application
3584
- * (for example, GDPR).
3585
- */
3586
- triggeredByAnonymizeRequest?: boolean | null;
3587
- /** If present, indicates the action that triggered the event. */
3588
- originatedFrom?: string | null;
3589
- /**
3590
- * 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.
3591
- * 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.
3592
- */
3593
- entityEventSequence?: string | null;
3594
- }
3595
- /** @oneof */
3596
- interface DomainEventBodyOneOf {
3597
- createdEvent?: EntityCreatedEvent;
3598
- updatedEvent?: EntityUpdatedEvent;
3599
- deletedEvent?: EntityDeletedEvent;
3600
- actionEvent?: ActionEvent;
3601
- }
3602
- interface EntityCreatedEvent {
3603
- entity?: string;
3604
- }
3605
- interface RestoreInfo {
3606
- deletedDate?: Date | null;
3607
- }
3608
- interface EntityUpdatedEvent {
3609
- /**
3610
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3611
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3612
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3613
- */
3614
- currentEntity?: string;
3615
- }
3616
- interface EntityDeletedEvent {
3617
- /** Entity that was deleted. */
3618
- deletedEntity?: string | null;
3619
- }
3620
- interface ActionEvent {
3621
- body?: string;
3622
- }
3623
- interface MessageEnvelope {
3624
- /**
3625
- * App instance ID.
3626
- * @format GUID
3627
- */
3628
- instanceId?: string | null;
3629
- /**
3630
- * Event type.
3631
- * @maxLength 150
3632
- */
3633
- eventType?: string;
3634
- /** The identification type and identity data. */
3635
- identity?: IdentificationData;
3636
- /** Stringify payload. */
3637
- data?: string;
3638
- /** Details related to the account */
3639
- accountInfo?: AccountInfo;
3640
- }
3641
- interface IdentificationData extends IdentificationDataIdOneOf {
3642
- /**
3643
- * ID of a site visitor that has not logged in to the site.
3644
- * @format GUID
3645
- */
3646
- anonymousVisitorId?: string;
3647
- /**
3648
- * ID of a site visitor that has logged in to the site.
3649
- * @format GUID
3650
- */
3651
- memberId?: string;
3652
- /**
3653
- * ID of a Wix user (site owner, contributor, etc.).
3654
- * @format GUID
3655
- */
3656
- wixUserId?: string;
3657
- /**
3658
- * ID of an app.
3659
- * @format GUID
3660
- */
3661
- appId?: string;
3662
- /** @readonly */
3663
- identityType?: WebhookIdentityTypeWithLiterals;
3664
- }
3665
- /** @oneof */
3666
- interface IdentificationDataIdOneOf {
3667
- /**
3668
- * ID of a site visitor that has not logged in to the site.
3669
- * @format GUID
3670
- */
3671
- anonymousVisitorId?: string;
3672
- /**
3673
- * ID of a site visitor that has logged in to the site.
3674
- * @format GUID
3675
- */
3676
- memberId?: string;
3677
- /**
3678
- * ID of a Wix user (site owner, contributor, etc.).
3679
- * @format GUID
3680
- */
3681
- wixUserId?: string;
3682
- /**
3683
- * ID of an app.
3684
- * @format GUID
3685
- */
3686
- appId?: string;
3687
- }
3688
- declare enum WebhookIdentityType {
3689
- UNKNOWN = "UNKNOWN",
3690
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3691
- MEMBER = "MEMBER",
3692
- WIX_USER = "WIX_USER",
3693
- APP = "APP"
3694
- }
3695
- /** @enumType */
3696
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3697
- interface AccountInfo {
3698
- /**
3699
- * ID of the Wix account associated with the event.
3700
- * @format GUID
3701
- */
3702
- accountId?: string | null;
3703
- /**
3704
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3705
- * @format GUID
3706
- */
3707
- parentAccountId?: string | null;
3708
- /**
3709
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3710
- * @format GUID
3711
- */
3712
- siteId?: string | null;
3713
- }
3714
- interface InitialDraftPostsCopied {
3715
- /** Number of draft posts copied. */
3716
- count?: number;
3717
- }
3718
3528
  interface CreateDraftPostRequest {
3719
3529
  /** Draft post to create. */
3720
3530
  draftPost: DraftPost;
@@ -4364,152 +4174,195 @@ interface DraftPostCount {
4364
4174
  /** Number of posts. */
4365
4175
  postCount?: number;
4366
4176
  }
4367
- interface BulkRevertToUnpublishedRequest {
4177
+ interface DomainEvent extends DomainEventBodyOneOf {
4178
+ createdEvent?: EntityCreatedEvent;
4179
+ updatedEvent?: EntityUpdatedEvent;
4180
+ deletedEvent?: EntityDeletedEvent;
4181
+ actionEvent?: ActionEvent;
4182
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4183
+ _id?: string;
4368
4184
  /**
4369
- * Source post IDs.
4370
- * @minSize 1
4371
- * @maxSize 100
4372
- * @format GUID
4185
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4186
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4373
4187
  */
4374
- postIds?: string[];
4375
- /** Should full draft post be returned. */
4376
- returnFullEntity?: boolean;
4377
- }
4378
- interface BulkRevertToUnpublishedResponse {
4379
- /** Bulk action results. */
4380
- results?: BulkDraftPostResult[];
4381
- /** Bulk action metadata. */
4382
- bulkActionMetadata?: BulkActionMetadata;
4383
- }
4384
- interface BulkRejectDraftPostRequest {
4188
+ entityFqdn?: string;
4385
4189
  /**
4386
- * Source post IDs.
4387
- * @minSize 1
4388
- * @maxSize 100
4389
- * @format GUID
4190
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
4191
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4390
4192
  */
4391
- postIds?: string[];
4392
- /** Should full draft post be returned. */
4393
- returnFullEntity?: boolean;
4394
- }
4395
- interface BulkRejectDraftPostResponse {
4396
- /** Bulk action results. */
4397
- results?: BulkDraftPostResult[];
4398
- /** Bulk action metadata. */
4399
- bulkActionMetadata?: BulkActionMetadata;
4400
- }
4401
- interface RevertToUnpublishedRequest {
4193
+ slug?: string;
4194
+ /** ID of the entity associated with the event. */
4195
+ entityId?: string;
4196
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4197
+ eventTime?: Date | null;
4402
4198
  /**
4403
- * Source post ID.
4404
- * @format GUID
4199
+ * Whether the event was triggered as a result of a privacy regulation application
4200
+ * (for example, GDPR).
4405
4201
  */
4406
- postId?: string;
4202
+ triggeredByAnonymizeRequest?: boolean | null;
4203
+ /** If present, indicates the action that triggered the event. */
4204
+ originatedFrom?: string | null;
4407
4205
  /**
4408
- * List of draft post fields to be included in the response.
4409
- * @internal
4410
- * @maxSize 10
4411
- * @deprecated List of draft post fields to be included in the response.
4412
- * @replacedBy fieldsets
4413
- * @targetRemovalDate 2024-06-30
4206
+ * 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.
4207
+ * 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.
4414
4208
  */
4415
- fieldsToInclude?: FieldWithLiterals[];
4209
+ entityEventSequence?: string | null;
4210
+ }
4211
+ /** @oneof */
4212
+ interface DomainEventBodyOneOf {
4213
+ createdEvent?: EntityCreatedEvent;
4214
+ updatedEvent?: EntityUpdatedEvent;
4215
+ deletedEvent?: EntityDeletedEvent;
4216
+ actionEvent?: ActionEvent;
4217
+ }
4218
+ interface EntityCreatedEvent {
4219
+ entity?: string;
4220
+ }
4221
+ interface RestoreInfo {
4222
+ deletedDate?: Date | null;
4223
+ }
4224
+ interface EntityUpdatedEvent {
4416
4225
  /**
4417
- * List of draft post fields to be included if entities are present in the response.
4418
- * Base fieldset, which is default, will return all core draft post properties.
4419
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4420
- * @maxSize 10
4226
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4227
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4228
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4421
4229
  */
4422
- fieldsets?: FieldWithLiterals[];
4230
+ currentEntity?: string;
4423
4231
  }
4424
- interface RevertToUnpublishedResponse {
4425
- /** Updated post draft. */
4426
- draftPost?: DraftPost;
4232
+ interface EntityDeletedEvent {
4233
+ /** Entity that was deleted. */
4234
+ deletedEntity?: string | null;
4427
4235
  }
4428
- interface RejectDraftPostRequest {
4236
+ interface ActionEvent {
4237
+ body?: string;
4238
+ }
4239
+ interface MessageEnvelope {
4429
4240
  /**
4430
- * Source post ID.
4241
+ * App instance ID.
4431
4242
  * @format GUID
4432
4243
  */
4433
- postId?: string;
4244
+ instanceId?: string | null;
4434
4245
  /**
4435
- * List of draft post fields to be included in the response.
4436
- * @internal
4437
- * @maxSize 10
4438
- * @deprecated List of draft post fields to be included in the response.
4439
- * @replacedBy fieldsets
4440
- * @targetRemovalDate 2024-06-30
4246
+ * Event type.
4247
+ * @maxLength 150
4441
4248
  */
4442
- fieldsToInclude?: FieldWithLiterals[];
4249
+ eventType?: string;
4250
+ /** The identification type and identity data. */
4251
+ identity?: IdentificationData;
4252
+ /** Stringify payload. */
4253
+ data?: string;
4254
+ /** Details related to the account */
4255
+ accountInfo?: AccountInfo;
4256
+ }
4257
+ interface IdentificationData extends IdentificationDataIdOneOf {
4443
4258
  /**
4444
- * List of draft post fields to be included if entities are present in the response.
4445
- * Base fieldset, which is default, will return all core draft post properties.
4446
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4447
- * @maxSize 10
4259
+ * ID of a site visitor that has not logged in to the site.
4260
+ * @format GUID
4448
4261
  */
4449
- fieldsets?: FieldWithLiterals[];
4450
- }
4451
- interface RejectDraftPostResponse {
4452
- /** Draft post. */
4453
- draftPost?: DraftPost;
4262
+ anonymousVisitorId?: string;
4263
+ /**
4264
+ * ID of a site visitor that has logged in to the site.
4265
+ * @format GUID
4266
+ */
4267
+ memberId?: string;
4268
+ /**
4269
+ * ID of a Wix user (site owner, contributor, etc.).
4270
+ * @format GUID
4271
+ */
4272
+ wixUserId?: string;
4273
+ /**
4274
+ * ID of an app.
4275
+ * @format GUID
4276
+ */
4277
+ appId?: string;
4278
+ /** @readonly */
4279
+ identityType?: WebhookIdentityTypeWithLiterals;
4454
4280
  }
4455
- interface ApproveDraftPostRequest {
4281
+ /** @oneof */
4282
+ interface IdentificationDataIdOneOf {
4456
4283
  /**
4457
- * Source post ID.
4284
+ * ID of a site visitor that has not logged in to the site.
4458
4285
  * @format GUID
4459
4286
  */
4460
- postId?: string;
4287
+ anonymousVisitorId?: string;
4461
4288
  /**
4462
- * Scheduled publish date if should be not immediately published.
4463
- * @maxLength 24
4289
+ * ID of a site visitor that has logged in to the site.
4290
+ * @format GUID
4464
4291
  */
4465
- scheduledPublishDate?: string | null;
4292
+ memberId?: string;
4466
4293
  /**
4467
- * List of draft post fields to be included in the response.
4468
- * @internal
4469
- * @maxSize 10
4470
- * @deprecated List of draft post fields to be included in the response.
4471
- * @replacedBy fieldsets
4472
- * @targetRemovalDate 2024-06-30
4294
+ * ID of a Wix user (site owner, contributor, etc.).
4295
+ * @format GUID
4473
4296
  */
4474
- fieldsToInclude?: FieldWithLiterals[];
4297
+ wixUserId?: string;
4475
4298
  /**
4476
- * List of draft post fields to be included if entities are present in the response.
4477
- * Base fieldset, which is default, will return all core draft post properties.
4478
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4479
- * @maxSize 10
4299
+ * ID of an app.
4300
+ * @format GUID
4480
4301
  */
4481
- fieldsets?: FieldWithLiterals[];
4302
+ appId?: string;
4482
4303
  }
4483
- interface ApproveDraftPostResponse {
4484
- /** Updated post draft. */
4485
- draftPost?: DraftPost;
4304
+ declare enum WebhookIdentityType {
4305
+ UNKNOWN = "UNKNOWN",
4306
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4307
+ MEMBER = "MEMBER",
4308
+ WIX_USER = "WIX_USER",
4309
+ APP = "APP"
4486
4310
  }
4487
- interface MarkPostAsInModerationRequest {
4311
+ /** @enumType */
4312
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4313
+ interface AccountInfo {
4488
4314
  /**
4489
- * Source post ID.
4490
- * @maxLength 38
4315
+ * ID of the Wix account associated with the event.
4316
+ * @format GUID
4491
4317
  */
4492
- postId?: string;
4318
+ accountId?: string | null;
4493
4319
  /**
4494
- * List of draft post fields to be included in the response.
4495
- * @internal
4496
- * @maxSize 10
4497
- * @deprecated List of draft post fields to be included in the response.
4498
- * @replacedBy fieldsets
4499
- * @targetRemovalDate 2024-06-30
4320
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
4321
+ * @format GUID
4500
4322
  */
4501
- fieldsToInclude?: FieldWithLiterals[];
4323
+ parentAccountId?: string | null;
4502
4324
  /**
4503
- * List of draft post fields to be included if entities are present in the response.
4504
- * Base fieldset, which is default, will return all core draft post properties.
4505
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4325
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4326
+ * @format GUID
4327
+ */
4328
+ siteId?: string | null;
4329
+ }
4330
+ interface GetDraftPostTotalsRequest {
4331
+ /**
4332
+ * Group results by fields (defaults to grouping by status).
4333
+ * If, for example, grouping by language is passed, language values in response will be filled.
4334
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4506
4335
  * @maxSize 10
4507
4336
  */
4508
- fieldsets?: FieldWithLiterals[];
4337
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4338
+ /**
4339
+ * Optional language filter by provided language code. Useful in multilingual context.
4340
+ * @format LANGUAGE_TAG
4341
+ */
4342
+ language?: string | null;
4509
4343
  }
4510
- interface MarkPostAsInModerationResponse {
4511
- /** Updated post draft. */
4512
- draftPost?: DraftPost;
4344
+ declare enum TotalDraftPostsGroupingField {
4345
+ /** Groups results by status. */
4346
+ STATUS = "STATUS",
4347
+ /** Groups results by language. */
4348
+ LANGUAGE = "LANGUAGE"
4349
+ }
4350
+ /** @enumType */
4351
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4352
+ interface GetDraftPostTotalsResponse {
4353
+ /** Draft post totals. */
4354
+ totalDraftPosts?: TotalDraftPosts[];
4355
+ }
4356
+ interface TotalDraftPosts {
4357
+ /** Draft post totals in that group. */
4358
+ total?: number;
4359
+ /** Draft post status (only has value when grouping by status, otherwise null). */
4360
+ status?: StatusWithLiterals;
4361
+ /**
4362
+ * Draft post language code (only has value when grouping by language, otherwise null).
4363
+ * @format LANGUAGE_TAG
4364
+ */
4365
+ language?: string | null;
4513
4366
  }
4514
4367
  interface TranslateDraftRequest {
4515
4368
  /**
@@ -4603,6 +4456,153 @@ interface UpdateDraftPostLanguageResponse {
4603
4456
  /** Updated draft post. */
4604
4457
  draftPost?: DraftPost;
4605
4458
  }
4459
+ interface BulkRevertToUnpublishedRequest {
4460
+ /**
4461
+ * Source post IDs.
4462
+ * @minSize 1
4463
+ * @maxSize 100
4464
+ * @format GUID
4465
+ */
4466
+ postIds?: string[];
4467
+ /** Should full draft post be returned. */
4468
+ returnFullEntity?: boolean;
4469
+ }
4470
+ interface BulkRevertToUnpublishedResponse {
4471
+ /** Bulk action results. */
4472
+ results?: BulkDraftPostResult[];
4473
+ /** Bulk action metadata. */
4474
+ bulkActionMetadata?: BulkActionMetadata;
4475
+ }
4476
+ interface BulkRejectDraftPostRequest {
4477
+ /**
4478
+ * Source post IDs.
4479
+ * @minSize 1
4480
+ * @maxSize 100
4481
+ * @format GUID
4482
+ */
4483
+ postIds?: string[];
4484
+ /** Should full draft post be returned. */
4485
+ returnFullEntity?: boolean;
4486
+ }
4487
+ interface BulkRejectDraftPostResponse {
4488
+ /** Bulk action results. */
4489
+ results?: BulkDraftPostResult[];
4490
+ /** Bulk action metadata. */
4491
+ bulkActionMetadata?: BulkActionMetadata;
4492
+ }
4493
+ interface RevertToUnpublishedRequest {
4494
+ /**
4495
+ * Source post ID.
4496
+ * @format GUID
4497
+ */
4498
+ postId?: string;
4499
+ /**
4500
+ * List of draft post fields to be included in the response.
4501
+ * @internal
4502
+ * @maxSize 10
4503
+ * @deprecated List of draft post fields to be included in the response.
4504
+ * @replacedBy fieldsets
4505
+ * @targetRemovalDate 2024-06-30
4506
+ */
4507
+ fieldsToInclude?: FieldWithLiterals[];
4508
+ /**
4509
+ * List of draft post fields to be included if entities are present in the response.
4510
+ * Base fieldset, which is default, will return all core draft post properties.
4511
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4512
+ * @maxSize 10
4513
+ */
4514
+ fieldsets?: FieldWithLiterals[];
4515
+ }
4516
+ interface RevertToUnpublishedResponse {
4517
+ /** Updated post draft. */
4518
+ draftPost?: DraftPost;
4519
+ }
4520
+ interface RejectDraftPostRequest {
4521
+ /**
4522
+ * Source post ID.
4523
+ * @format GUID
4524
+ */
4525
+ postId?: string;
4526
+ /**
4527
+ * List of draft post fields to be included in the response.
4528
+ * @internal
4529
+ * @maxSize 10
4530
+ * @deprecated List of draft post fields to be included in the response.
4531
+ * @replacedBy fieldsets
4532
+ * @targetRemovalDate 2024-06-30
4533
+ */
4534
+ fieldsToInclude?: FieldWithLiterals[];
4535
+ /**
4536
+ * List of draft post fields to be included if entities are present in the response.
4537
+ * Base fieldset, which is default, will return all core draft post properties.
4538
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4539
+ * @maxSize 10
4540
+ */
4541
+ fieldsets?: FieldWithLiterals[];
4542
+ }
4543
+ interface RejectDraftPostResponse {
4544
+ /** Draft post. */
4545
+ draftPost?: DraftPost;
4546
+ }
4547
+ interface ApproveDraftPostRequest {
4548
+ /**
4549
+ * Source post ID.
4550
+ * @format GUID
4551
+ */
4552
+ postId?: string;
4553
+ /**
4554
+ * Scheduled publish date if should be not immediately published.
4555
+ * @maxLength 24
4556
+ */
4557
+ scheduledPublishDate?: string | null;
4558
+ /**
4559
+ * List of draft post fields to be included in the response.
4560
+ * @internal
4561
+ * @maxSize 10
4562
+ * @deprecated List of draft post fields to be included in the response.
4563
+ * @replacedBy fieldsets
4564
+ * @targetRemovalDate 2024-06-30
4565
+ */
4566
+ fieldsToInclude?: FieldWithLiterals[];
4567
+ /**
4568
+ * List of draft post fields to be included if entities are present in the response.
4569
+ * Base fieldset, which is default, will return all core draft post properties.
4570
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4571
+ * @maxSize 10
4572
+ */
4573
+ fieldsets?: FieldWithLiterals[];
4574
+ }
4575
+ interface ApproveDraftPostResponse {
4576
+ /** Updated post draft. */
4577
+ draftPost?: DraftPost;
4578
+ }
4579
+ interface MarkPostAsInModerationRequest {
4580
+ /**
4581
+ * Source post ID.
4582
+ * @maxLength 38
4583
+ */
4584
+ postId?: string;
4585
+ /**
4586
+ * List of draft post fields to be included in the response.
4587
+ * @internal
4588
+ * @maxSize 10
4589
+ * @deprecated List of draft post fields to be included in the response.
4590
+ * @replacedBy fieldsets
4591
+ * @targetRemovalDate 2024-06-30
4592
+ */
4593
+ fieldsToInclude?: FieldWithLiterals[];
4594
+ /**
4595
+ * List of draft post fields to be included if entities are present in the response.
4596
+ * Base fieldset, which is default, will return all core draft post properties.
4597
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4598
+ * @maxSize 10
4599
+ */
4600
+ fieldsets?: FieldWithLiterals[];
4601
+ }
4602
+ interface MarkPostAsInModerationResponse {
4603
+ /** Updated post draft. */
4604
+ draftPost?: DraftPost;
4605
+ }
4606
4606
  interface BaseEventMetadata {
4607
4607
  /**
4608
4608
  * App instance ID.