@wix/auto_sdk_blog_draft-posts 1.0.110 → 1.0.111

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