@wix/auto_sdk_blog_draft-posts 1.0.100 → 1.0.101

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.
@@ -3332,10 +3332,6 @@ interface DraftPostTranslation {
3332
3332
  /** Post URL. */
3333
3333
  url?: string;
3334
3334
  }
3335
- interface InitialDraftPostsCopied {
3336
- /** Number of draft posts copied. */
3337
- count?: number;
3338
- }
3339
3335
  interface DraftCategoriesUpdated {
3340
3336
  /**
3341
3337
  * Draft post ID.
@@ -3374,6 +3370,200 @@ interface DraftTagsUpdated {
3374
3370
  */
3375
3371
  previousTags?: string[];
3376
3372
  }
3373
+ interface GetDraftPostTotalsRequest {
3374
+ /**
3375
+ * Group results by fields (defaults to grouping by status).
3376
+ * If, for example, grouping by language is passed, language values in response will be filled.
3377
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3378
+ * @maxSize 10
3379
+ */
3380
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3381
+ /**
3382
+ * Optional language filter by provided language code. Useful in multilingual context.
3383
+ * @format LANGUAGE_TAG
3384
+ */
3385
+ language?: string | null;
3386
+ }
3387
+ declare enum TotalDraftPostsGroupingField {
3388
+ /** Groups results by status. */
3389
+ STATUS = "STATUS",
3390
+ /** Groups results by language. */
3391
+ LANGUAGE = "LANGUAGE"
3392
+ }
3393
+ /** @enumType */
3394
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3395
+ interface GetDraftPostTotalsResponse {
3396
+ /** Draft post totals. */
3397
+ totalDraftPosts?: TotalDraftPosts[];
3398
+ }
3399
+ interface TotalDraftPosts {
3400
+ /** Draft post totals in that group. */
3401
+ total?: number;
3402
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3403
+ status?: StatusWithLiterals;
3404
+ /**
3405
+ * Draft post language code (only has value when grouping by language, otherwise null).
3406
+ * @format LANGUAGE_TAG
3407
+ */
3408
+ language?: string | null;
3409
+ }
3410
+ interface DomainEvent extends DomainEventBodyOneOf {
3411
+ createdEvent?: EntityCreatedEvent;
3412
+ updatedEvent?: EntityUpdatedEvent;
3413
+ deletedEvent?: EntityDeletedEvent;
3414
+ actionEvent?: ActionEvent;
3415
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3416
+ _id?: string;
3417
+ /**
3418
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3419
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3420
+ */
3421
+ entityFqdn?: string;
3422
+ /**
3423
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3424
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3425
+ */
3426
+ slug?: string;
3427
+ /** ID of the entity associated with the event. */
3428
+ entityId?: string;
3429
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3430
+ eventTime?: Date | null;
3431
+ /**
3432
+ * Whether the event was triggered as a result of a privacy regulation application
3433
+ * (for example, GDPR).
3434
+ */
3435
+ triggeredByAnonymizeRequest?: boolean | null;
3436
+ /** If present, indicates the action that triggered the event. */
3437
+ originatedFrom?: string | null;
3438
+ /**
3439
+ * 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.
3440
+ * 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.
3441
+ */
3442
+ entityEventSequence?: string | null;
3443
+ }
3444
+ /** @oneof */
3445
+ interface DomainEventBodyOneOf {
3446
+ createdEvent?: EntityCreatedEvent;
3447
+ updatedEvent?: EntityUpdatedEvent;
3448
+ deletedEvent?: EntityDeletedEvent;
3449
+ actionEvent?: ActionEvent;
3450
+ }
3451
+ interface EntityCreatedEvent {
3452
+ entity?: string;
3453
+ }
3454
+ interface RestoreInfo {
3455
+ deletedDate?: Date | null;
3456
+ }
3457
+ interface EntityUpdatedEvent {
3458
+ /**
3459
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3460
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3461
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3462
+ */
3463
+ currentEntity?: string;
3464
+ }
3465
+ interface EntityDeletedEvent {
3466
+ /** Entity that was deleted. */
3467
+ deletedEntity?: string | null;
3468
+ }
3469
+ interface ActionEvent {
3470
+ body?: string;
3471
+ }
3472
+ interface MessageEnvelope {
3473
+ /**
3474
+ * App instance ID.
3475
+ * @format GUID
3476
+ */
3477
+ instanceId?: string | null;
3478
+ /**
3479
+ * Event type.
3480
+ * @maxLength 150
3481
+ */
3482
+ eventType?: string;
3483
+ /** The identification type and identity data. */
3484
+ identity?: IdentificationData;
3485
+ /** Stringify payload. */
3486
+ data?: string;
3487
+ /** Details related to the account */
3488
+ accountInfo?: AccountInfo;
3489
+ }
3490
+ interface IdentificationData extends IdentificationDataIdOneOf {
3491
+ /**
3492
+ * ID of a site visitor that has not logged in to the site.
3493
+ * @format GUID
3494
+ */
3495
+ anonymousVisitorId?: string;
3496
+ /**
3497
+ * ID of a site visitor that has logged in to the site.
3498
+ * @format GUID
3499
+ */
3500
+ memberId?: string;
3501
+ /**
3502
+ * ID of a Wix user (site owner, contributor, etc.).
3503
+ * @format GUID
3504
+ */
3505
+ wixUserId?: string;
3506
+ /**
3507
+ * ID of an app.
3508
+ * @format GUID
3509
+ */
3510
+ appId?: string;
3511
+ /** @readonly */
3512
+ identityType?: WebhookIdentityTypeWithLiterals;
3513
+ }
3514
+ /** @oneof */
3515
+ interface IdentificationDataIdOneOf {
3516
+ /**
3517
+ * ID of a site visitor that has not logged in to the site.
3518
+ * @format GUID
3519
+ */
3520
+ anonymousVisitorId?: string;
3521
+ /**
3522
+ * ID of a site visitor that has logged in to the site.
3523
+ * @format GUID
3524
+ */
3525
+ memberId?: string;
3526
+ /**
3527
+ * ID of a Wix user (site owner, contributor, etc.).
3528
+ * @format GUID
3529
+ */
3530
+ wixUserId?: string;
3531
+ /**
3532
+ * ID of an app.
3533
+ * @format GUID
3534
+ */
3535
+ appId?: string;
3536
+ }
3537
+ declare enum WebhookIdentityType {
3538
+ UNKNOWN = "UNKNOWN",
3539
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3540
+ MEMBER = "MEMBER",
3541
+ WIX_USER = "WIX_USER",
3542
+ APP = "APP"
3543
+ }
3544
+ /** @enumType */
3545
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3546
+ interface AccountInfo {
3547
+ /**
3548
+ * ID of the Wix account associated with the event.
3549
+ * @format GUID
3550
+ */
3551
+ accountId?: string | null;
3552
+ /**
3553
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3554
+ * @format GUID
3555
+ */
3556
+ parentAccountId?: string | null;
3557
+ /**
3558
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3559
+ * @format GUID
3560
+ */
3561
+ siteId?: string | null;
3562
+ }
3563
+ interface InitialDraftPostsCopied {
3564
+ /** Number of draft posts copied. */
3565
+ count?: number;
3566
+ }
3377
3567
  interface CreateDraftPostRequest {
3378
3568
  /** Draft post to create. */
3379
3569
  draftPost: DraftPost;
@@ -4023,195 +4213,152 @@ interface DraftPostCount {
4023
4213
  /** Number of posts. */
4024
4214
  postCount?: number;
4025
4215
  }
4026
- interface DomainEvent extends DomainEventBodyOneOf {
4027
- createdEvent?: EntityCreatedEvent;
4028
- updatedEvent?: EntityUpdatedEvent;
4029
- deletedEvent?: EntityDeletedEvent;
4030
- actionEvent?: ActionEvent;
4031
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4032
- _id?: string;
4216
+ interface BulkRevertToUnpublishedRequest {
4033
4217
  /**
4034
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4035
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4218
+ * Source post IDs.
4219
+ * @minSize 1
4220
+ * @maxSize 100
4221
+ * @format GUID
4036
4222
  */
4037
- entityFqdn?: string;
4223
+ postIds?: string[];
4224
+ /** Should full draft post be returned. */
4225
+ returnFullEntity?: boolean;
4226
+ }
4227
+ interface BulkRevertToUnpublishedResponse {
4228
+ /** Bulk action results. */
4229
+ results?: BulkDraftPostResult[];
4230
+ /** Bulk action metadata. */
4231
+ bulkActionMetadata?: BulkActionMetadata;
4232
+ }
4233
+ interface BulkRejectDraftPostRequest {
4038
4234
  /**
4039
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
4040
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4235
+ * Source post IDs.
4236
+ * @minSize 1
4237
+ * @maxSize 100
4238
+ * @format GUID
4041
4239
  */
4042
- slug?: string;
4043
- /** ID of the entity associated with the event. */
4044
- entityId?: string;
4045
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4046
- eventTime?: Date | null;
4240
+ postIds?: string[];
4241
+ /** Should full draft post be returned. */
4242
+ returnFullEntity?: boolean;
4243
+ }
4244
+ interface BulkRejectDraftPostResponse {
4245
+ /** Bulk action results. */
4246
+ results?: BulkDraftPostResult[];
4247
+ /** Bulk action metadata. */
4248
+ bulkActionMetadata?: BulkActionMetadata;
4249
+ }
4250
+ interface RevertToUnpublishedRequest {
4047
4251
  /**
4048
- * Whether the event was triggered as a result of a privacy regulation application
4049
- * (for example, GDPR).
4252
+ * Source post ID.
4253
+ * @format GUID
4050
4254
  */
4051
- triggeredByAnonymizeRequest?: boolean | null;
4052
- /** If present, indicates the action that triggered the event. */
4053
- originatedFrom?: string | null;
4255
+ postId?: string;
4054
4256
  /**
4055
- * 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.
4056
- * 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.
4257
+ * List of draft post fields to be included in the response.
4258
+ * @internal
4259
+ * @maxSize 10
4260
+ * @deprecated List of draft post fields to be included in the response.
4261
+ * @replacedBy fieldsets
4262
+ * @targetRemovalDate 2024-06-30
4057
4263
  */
4058
- entityEventSequence?: string | null;
4059
- }
4060
- /** @oneof */
4061
- interface DomainEventBodyOneOf {
4062
- createdEvent?: EntityCreatedEvent;
4063
- updatedEvent?: EntityUpdatedEvent;
4064
- deletedEvent?: EntityDeletedEvent;
4065
- actionEvent?: ActionEvent;
4066
- }
4067
- interface EntityCreatedEvent {
4068
- entity?: string;
4069
- }
4070
- interface RestoreInfo {
4071
- deletedDate?: Date | null;
4072
- }
4073
- interface EntityUpdatedEvent {
4264
+ fieldsToInclude?: FieldWithLiterals[];
4074
4265
  /**
4075
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4076
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4077
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4266
+ * List of draft post fields to be included if entities are present in the response.
4267
+ * Base fieldset, which is default, will return all core draft post properties.
4268
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4269
+ * @maxSize 10
4078
4270
  */
4079
- currentEntity?: string;
4080
- }
4081
- interface EntityDeletedEvent {
4082
- /** Entity that was deleted. */
4083
- deletedEntity?: string | null;
4084
- }
4085
- interface ActionEvent {
4086
- body?: string;
4271
+ fieldsets?: FieldWithLiterals[];
4087
4272
  }
4088
- interface MessageEnvelope {
4089
- /**
4090
- * App instance ID.
4091
- * @format GUID
4092
- */
4093
- instanceId?: string | null;
4094
- /**
4095
- * Event type.
4096
- * @maxLength 150
4097
- */
4098
- eventType?: string;
4099
- /** The identification type and identity data. */
4100
- identity?: IdentificationData;
4101
- /** Stringify payload. */
4102
- data?: string;
4103
- /** Details related to the account */
4104
- accountInfo?: AccountInfo;
4273
+ interface RevertToUnpublishedResponse {
4274
+ /** Updated post draft. */
4275
+ draftPost?: DraftPost;
4105
4276
  }
4106
- interface IdentificationData extends IdentificationDataIdOneOf {
4107
- /**
4108
- * ID of a site visitor that has not logged in to the site.
4109
- * @format GUID
4110
- */
4111
- anonymousVisitorId?: string;
4277
+ interface RejectDraftPostRequest {
4112
4278
  /**
4113
- * ID of a site visitor that has logged in to the site.
4279
+ * Source post ID.
4114
4280
  * @format GUID
4115
4281
  */
4116
- memberId?: string;
4282
+ postId?: string;
4117
4283
  /**
4118
- * ID of a Wix user (site owner, contributor, etc.).
4119
- * @format GUID
4284
+ * List of draft post fields to be included in the response.
4285
+ * @internal
4286
+ * @maxSize 10
4287
+ * @deprecated List of draft post fields to be included in the response.
4288
+ * @replacedBy fieldsets
4289
+ * @targetRemovalDate 2024-06-30
4120
4290
  */
4121
- wixUserId?: string;
4291
+ fieldsToInclude?: FieldWithLiterals[];
4122
4292
  /**
4123
- * ID of an app.
4124
- * @format GUID
4293
+ * List of draft post fields to be included if entities are present in the response.
4294
+ * Base fieldset, which is default, will return all core draft post properties.
4295
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4296
+ * @maxSize 10
4125
4297
  */
4126
- appId?: string;
4127
- /** @readonly */
4128
- identityType?: WebhookIdentityTypeWithLiterals;
4298
+ fieldsets?: FieldWithLiterals[];
4129
4299
  }
4130
- /** @oneof */
4131
- interface IdentificationDataIdOneOf {
4300
+ interface RejectDraftPostResponse {
4301
+ /** Draft post. */
4302
+ draftPost?: DraftPost;
4303
+ }
4304
+ interface ApproveDraftPostRequest {
4132
4305
  /**
4133
- * ID of a site visitor that has not logged in to the site.
4306
+ * Source post ID.
4134
4307
  * @format GUID
4135
4308
  */
4136
- anonymousVisitorId?: string;
4309
+ postId?: string;
4137
4310
  /**
4138
- * ID of a site visitor that has logged in to the site.
4139
- * @format GUID
4311
+ * Scheduled publish date if should be not immediately published.
4312
+ * @maxLength 24
4140
4313
  */
4141
- memberId?: string;
4314
+ scheduledPublishDate?: string | null;
4142
4315
  /**
4143
- * ID of a Wix user (site owner, contributor, etc.).
4144
- * @format GUID
4316
+ * List of draft post fields to be included in the response.
4317
+ * @internal
4318
+ * @maxSize 10
4319
+ * @deprecated List of draft post fields to be included in the response.
4320
+ * @replacedBy fieldsets
4321
+ * @targetRemovalDate 2024-06-30
4145
4322
  */
4146
- wixUserId?: string;
4323
+ fieldsToInclude?: FieldWithLiterals[];
4147
4324
  /**
4148
- * ID of an app.
4149
- * @format GUID
4325
+ * List of draft post fields to be included if entities are present in the response.
4326
+ * Base fieldset, which is default, will return all core draft post properties.
4327
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4328
+ * @maxSize 10
4150
4329
  */
4151
- appId?: string;
4330
+ fieldsets?: FieldWithLiterals[];
4152
4331
  }
4153
- declare enum WebhookIdentityType {
4154
- UNKNOWN = "UNKNOWN",
4155
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4156
- MEMBER = "MEMBER",
4157
- WIX_USER = "WIX_USER",
4158
- APP = "APP"
4332
+ interface ApproveDraftPostResponse {
4333
+ /** Updated post draft. */
4334
+ draftPost?: DraftPost;
4159
4335
  }
4160
- /** @enumType */
4161
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4162
- interface AccountInfo {
4163
- /**
4164
- * ID of the Wix account associated with the event.
4165
- * @format GUID
4166
- */
4167
- accountId?: string | null;
4168
- /**
4169
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
4170
- * @format GUID
4171
- */
4172
- parentAccountId?: string | null;
4336
+ interface MarkPostAsInModerationRequest {
4173
4337
  /**
4174
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4175
- * @format GUID
4338
+ * Source post ID.
4339
+ * @maxLength 38
4176
4340
  */
4177
- siteId?: string | null;
4178
- }
4179
- interface GetDraftPostTotalsRequest {
4341
+ postId?: string;
4180
4342
  /**
4181
- * Group results by fields (defaults to grouping by status).
4182
- * If, for example, grouping by language is passed, language values in response will be filled.
4183
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4343
+ * List of draft post fields to be included in the response.
4344
+ * @internal
4184
4345
  * @maxSize 10
4346
+ * @deprecated List of draft post fields to be included in the response.
4347
+ * @replacedBy fieldsets
4348
+ * @targetRemovalDate 2024-06-30
4185
4349
  */
4186
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4350
+ fieldsToInclude?: FieldWithLiterals[];
4187
4351
  /**
4188
- * Optional language filter by provided language code. Useful in multilingual context.
4189
- * @format LANGUAGE_TAG
4352
+ * List of draft post fields to be included if entities are present in the response.
4353
+ * Base fieldset, which is default, will return all core draft post properties.
4354
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4355
+ * @maxSize 10
4190
4356
  */
4191
- language?: string | null;
4192
- }
4193
- declare enum TotalDraftPostsGroupingField {
4194
- /** Groups results by status. */
4195
- STATUS = "STATUS",
4196
- /** Groups results by language. */
4197
- LANGUAGE = "LANGUAGE"
4198
- }
4199
- /** @enumType */
4200
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4201
- interface GetDraftPostTotalsResponse {
4202
- /** Draft post totals. */
4203
- totalDraftPosts?: TotalDraftPosts[];
4357
+ fieldsets?: FieldWithLiterals[];
4204
4358
  }
4205
- interface TotalDraftPosts {
4206
- /** Draft post totals in that group. */
4207
- total?: number;
4208
- /** Draft post status (only has value when grouping by status, otherwise null). */
4209
- status?: StatusWithLiterals;
4210
- /**
4211
- * Draft post language code (only has value when grouping by language, otherwise null).
4212
- * @format LANGUAGE_TAG
4213
- */
4214
- language?: string | null;
4359
+ interface MarkPostAsInModerationResponse {
4360
+ /** Updated post draft. */
4361
+ draftPost?: DraftPost;
4215
4362
  }
4216
4363
  interface TranslateDraftRequest {
4217
4364
  /**
@@ -4291,153 +4438,6 @@ interface UpdateDraftPostLanguageResponse {
4291
4438
  /** Draft post */
4292
4439
  draftPost?: DraftPost;
4293
4440
  }
4294
- interface BulkRevertToUnpublishedRequest {
4295
- /**
4296
- * Source post IDs.
4297
- * @minSize 1
4298
- * @maxSize 100
4299
- * @format GUID
4300
- */
4301
- postIds?: string[];
4302
- /** Should full draft post be returned. */
4303
- returnFullEntity?: boolean;
4304
- }
4305
- interface BulkRevertToUnpublishedResponse {
4306
- /** Bulk action results. */
4307
- results?: BulkDraftPostResult[];
4308
- /** Bulk action metadata. */
4309
- bulkActionMetadata?: BulkActionMetadata;
4310
- }
4311
- interface BulkRejectDraftPostRequest {
4312
- /**
4313
- * Source post IDs.
4314
- * @minSize 1
4315
- * @maxSize 100
4316
- * @format GUID
4317
- */
4318
- postIds?: string[];
4319
- /** Should full draft post be returned. */
4320
- returnFullEntity?: boolean;
4321
- }
4322
- interface BulkRejectDraftPostResponse {
4323
- /** Bulk action results. */
4324
- results?: BulkDraftPostResult[];
4325
- /** Bulk action metadata. */
4326
- bulkActionMetadata?: BulkActionMetadata;
4327
- }
4328
- interface RevertToUnpublishedRequest {
4329
- /**
4330
- * Source post ID.
4331
- * @format GUID
4332
- */
4333
- postId?: string;
4334
- /**
4335
- * List of draft post fields to be included in the response.
4336
- * @internal
4337
- * @maxSize 10
4338
- * @deprecated List of draft post fields to be included in the response.
4339
- * @replacedBy fieldsets
4340
- * @targetRemovalDate 2024-06-30
4341
- */
4342
- fieldsToInclude?: FieldWithLiterals[];
4343
- /**
4344
- * List of draft post fields to be included if entities are present in the response.
4345
- * Base fieldset, which is default, will return all core draft post properties.
4346
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4347
- * @maxSize 10
4348
- */
4349
- fieldsets?: FieldWithLiterals[];
4350
- }
4351
- interface RevertToUnpublishedResponse {
4352
- /** Updated post draft. */
4353
- draftPost?: DraftPost;
4354
- }
4355
- interface RejectDraftPostRequest {
4356
- /**
4357
- * Source post ID.
4358
- * @format GUID
4359
- */
4360
- postId?: string;
4361
- /**
4362
- * List of draft post fields to be included in the response.
4363
- * @internal
4364
- * @maxSize 10
4365
- * @deprecated List of draft post fields to be included in the response.
4366
- * @replacedBy fieldsets
4367
- * @targetRemovalDate 2024-06-30
4368
- */
4369
- fieldsToInclude?: FieldWithLiterals[];
4370
- /**
4371
- * List of draft post fields to be included if entities are present in the response.
4372
- * Base fieldset, which is default, will return all core draft post properties.
4373
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4374
- * @maxSize 10
4375
- */
4376
- fieldsets?: FieldWithLiterals[];
4377
- }
4378
- interface RejectDraftPostResponse {
4379
- /** Draft post. */
4380
- draftPost?: DraftPost;
4381
- }
4382
- interface ApproveDraftPostRequest {
4383
- /**
4384
- * Source post ID.
4385
- * @format GUID
4386
- */
4387
- postId?: string;
4388
- /**
4389
- * Scheduled publish date if should be not immediately published.
4390
- * @maxLength 24
4391
- */
4392
- scheduledPublishDate?: string | null;
4393
- /**
4394
- * List of draft post fields to be included in the response.
4395
- * @internal
4396
- * @maxSize 10
4397
- * @deprecated List of draft post fields to be included in the response.
4398
- * @replacedBy fieldsets
4399
- * @targetRemovalDate 2024-06-30
4400
- */
4401
- fieldsToInclude?: FieldWithLiterals[];
4402
- /**
4403
- * List of draft post fields to be included if entities are present in the response.
4404
- * Base fieldset, which is default, will return all core draft post properties.
4405
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4406
- * @maxSize 10
4407
- */
4408
- fieldsets?: FieldWithLiterals[];
4409
- }
4410
- interface ApproveDraftPostResponse {
4411
- /** Updated post draft. */
4412
- draftPost?: DraftPost;
4413
- }
4414
- interface MarkPostAsInModerationRequest {
4415
- /**
4416
- * Source post ID.
4417
- * @maxLength 38
4418
- */
4419
- postId?: string;
4420
- /**
4421
- * List of draft post fields to be included in the response.
4422
- * @internal
4423
- * @maxSize 10
4424
- * @deprecated List of draft post fields to be included in the response.
4425
- * @replacedBy fieldsets
4426
- * @targetRemovalDate 2024-06-30
4427
- */
4428
- fieldsToInclude?: FieldWithLiterals[];
4429
- /**
4430
- * List of draft post fields to be included if entities are present in the response.
4431
- * Base fieldset, which is default, will return all core draft post properties.
4432
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4433
- * @maxSize 10
4434
- */
4435
- fieldsets?: FieldWithLiterals[];
4436
- }
4437
- interface MarkPostAsInModerationResponse {
4438
- /** Updated post draft. */
4439
- draftPost?: DraftPost;
4440
- }
4441
4441
  interface BaseEventMetadata {
4442
4442
  /**
4443
4443
  * App instance ID.