@wix/auto_sdk_blog_draft-posts 1.0.117 → 1.0.119

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.
@@ -928,6 +928,8 @@ interface TextStyle {
928
928
  textAlignment?: TextAlignmentWithLiterals;
929
929
  /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
930
930
  lineHeight?: string | null;
931
+ /** Font size of an empty block: it sizes the empty line, its list marker and the text typed into it. Ignored on a block with text, which is sized by its text's `FONT_SIZE` decorations. */
932
+ fontSize?: FontSizeData;
931
933
  }
932
934
  declare enum TextAlignment {
933
935
  /** browser default, eqivalent to `initial` */
@@ -943,6 +945,18 @@ declare enum TextAlignment {
943
945
  }
944
946
  /** @enumType */
945
947
  type TextAlignmentWithLiterals = TextAlignment | 'AUTO' | 'LEFT' | 'RIGHT' | 'CENTER' | 'JUSTIFY';
948
+ interface FontSizeData {
949
+ /** The units used for the font size. */
950
+ unit?: FontTypeWithLiterals;
951
+ /** Font size value. */
952
+ value?: number | null;
953
+ }
954
+ declare enum FontType {
955
+ PX = "PX",
956
+ EM = "EM"
957
+ }
958
+ /** @enumType */
959
+ type FontTypeWithLiterals = FontType | 'PX' | 'EM';
946
960
  interface DividerData {
947
961
  /** Styling for the divider's container. */
948
962
  containerData?: PluginContainerData;
@@ -1807,18 +1821,6 @@ interface MentionData {
1807
1821
  /** The kind of entity the mention refers to. Any value is accepted, and it's usually used to mark a mention as a group mention (for example, `group`). When empty, the mention refers to a member. */
1808
1822
  type?: string | null;
1809
1823
  }
1810
- interface FontSizeData {
1811
- /** The units used for the font size. */
1812
- unit?: FontTypeWithLiterals;
1813
- /** Font size value. */
1814
- value?: number | null;
1815
- }
1816
- declare enum FontType {
1817
- PX = "PX",
1818
- EM = "EM"
1819
- }
1820
- /** @enumType */
1821
- type FontTypeWithLiterals = FontType | 'PX' | 'EM';
1822
1824
  interface SpoilerData {
1823
1825
  /** Spoiler ID. */
1824
1826
  id?: string | null;
@@ -3282,10 +3284,6 @@ interface DraftPostTranslation {
3282
3284
  /** Post URL. */
3283
3285
  url?: string;
3284
3286
  }
3285
- interface InitialDraftPostsCopied {
3286
- /** Number of draft posts copied. */
3287
- count?: number;
3288
- }
3289
3287
  interface DraftCategoriesUpdated {
3290
3288
  /**
3291
3289
  * Draft post ID.
@@ -3324,6 +3322,200 @@ interface DraftTagsUpdated {
3324
3322
  */
3325
3323
  previousTags?: string[];
3326
3324
  }
3325
+ interface GetDraftPostTotalsRequest {
3326
+ /**
3327
+ * Group results by fields (defaults to grouping by status).
3328
+ * If, for example, grouping by language is passed, language values in response will be filled.
3329
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3330
+ * @maxSize 10
3331
+ */
3332
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3333
+ /**
3334
+ * Optional language filter by provided language code. Useful in multilingual context.
3335
+ * @format LANGUAGE_TAG
3336
+ */
3337
+ language?: string | null;
3338
+ }
3339
+ declare enum TotalDraftPostsGroupingField {
3340
+ /** Groups results by status. */
3341
+ STATUS = "STATUS",
3342
+ /** Groups results by language. */
3343
+ LANGUAGE = "LANGUAGE"
3344
+ }
3345
+ /** @enumType */
3346
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3347
+ interface GetDraftPostTotalsResponse {
3348
+ /** Draft post totals. */
3349
+ totalDraftPosts?: TotalDraftPosts[];
3350
+ }
3351
+ interface TotalDraftPosts {
3352
+ /** Draft post totals in that group. */
3353
+ total?: number;
3354
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3355
+ status?: StatusWithLiterals;
3356
+ /**
3357
+ * Draft post language code (only has value when grouping by language, otherwise null).
3358
+ * @format LANGUAGE_TAG
3359
+ */
3360
+ language?: string | null;
3361
+ }
3362
+ interface DomainEvent extends DomainEventBodyOneOf {
3363
+ createdEvent?: EntityCreatedEvent;
3364
+ updatedEvent?: EntityUpdatedEvent;
3365
+ deletedEvent?: EntityDeletedEvent;
3366
+ actionEvent?: ActionEvent;
3367
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3368
+ _id?: string;
3369
+ /**
3370
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3371
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3372
+ */
3373
+ entityFqdn?: string;
3374
+ /**
3375
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3376
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3377
+ */
3378
+ slug?: string;
3379
+ /** ID of the entity associated with the event. */
3380
+ entityId?: string;
3381
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3382
+ eventTime?: Date | null;
3383
+ /**
3384
+ * Whether the event was triggered as a result of a privacy regulation application
3385
+ * (for example, GDPR).
3386
+ */
3387
+ triggeredByAnonymizeRequest?: boolean | null;
3388
+ /** If present, indicates the action that triggered the event. */
3389
+ originatedFrom?: string | null;
3390
+ /**
3391
+ * 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.
3392
+ * 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.
3393
+ */
3394
+ entityEventSequence?: string | null;
3395
+ }
3396
+ /** @oneof */
3397
+ interface DomainEventBodyOneOf {
3398
+ createdEvent?: EntityCreatedEvent;
3399
+ updatedEvent?: EntityUpdatedEvent;
3400
+ deletedEvent?: EntityDeletedEvent;
3401
+ actionEvent?: ActionEvent;
3402
+ }
3403
+ interface EntityCreatedEvent {
3404
+ entity?: string;
3405
+ }
3406
+ interface RestoreInfo {
3407
+ deletedDate?: Date | null;
3408
+ }
3409
+ interface EntityUpdatedEvent {
3410
+ /**
3411
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3412
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3413
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3414
+ */
3415
+ currentEntity?: string;
3416
+ }
3417
+ interface EntityDeletedEvent {
3418
+ /** Entity that was deleted. */
3419
+ deletedEntity?: string | null;
3420
+ }
3421
+ interface ActionEvent {
3422
+ body?: string;
3423
+ }
3424
+ interface MessageEnvelope {
3425
+ /**
3426
+ * App instance ID.
3427
+ * @format GUID
3428
+ */
3429
+ instanceId?: string | null;
3430
+ /**
3431
+ * Event type.
3432
+ * @maxLength 150
3433
+ */
3434
+ eventType?: string;
3435
+ /** The identification type and identity data. */
3436
+ identity?: IdentificationData;
3437
+ /** Stringify payload. */
3438
+ data?: string;
3439
+ /** Details related to the account */
3440
+ accountInfo?: AccountInfo;
3441
+ }
3442
+ interface IdentificationData extends IdentificationDataIdOneOf {
3443
+ /**
3444
+ * ID of a site visitor that has not logged in to the site.
3445
+ * @format GUID
3446
+ */
3447
+ anonymousVisitorId?: string;
3448
+ /**
3449
+ * ID of a site visitor that has logged in to the site.
3450
+ * @format GUID
3451
+ */
3452
+ memberId?: string;
3453
+ /**
3454
+ * ID of a Wix user (site owner, contributor, etc.).
3455
+ * @format GUID
3456
+ */
3457
+ wixUserId?: string;
3458
+ /**
3459
+ * ID of an app.
3460
+ * @format GUID
3461
+ */
3462
+ appId?: string;
3463
+ /** @readonly */
3464
+ identityType?: WebhookIdentityTypeWithLiterals;
3465
+ }
3466
+ /** @oneof */
3467
+ interface IdentificationDataIdOneOf {
3468
+ /**
3469
+ * ID of a site visitor that has not logged in to the site.
3470
+ * @format GUID
3471
+ */
3472
+ anonymousVisitorId?: string;
3473
+ /**
3474
+ * ID of a site visitor that has logged in to the site.
3475
+ * @format GUID
3476
+ */
3477
+ memberId?: string;
3478
+ /**
3479
+ * ID of a Wix user (site owner, contributor, etc.).
3480
+ * @format GUID
3481
+ */
3482
+ wixUserId?: string;
3483
+ /**
3484
+ * ID of an app.
3485
+ * @format GUID
3486
+ */
3487
+ appId?: string;
3488
+ }
3489
+ declare enum WebhookIdentityType {
3490
+ UNKNOWN = "UNKNOWN",
3491
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3492
+ MEMBER = "MEMBER",
3493
+ WIX_USER = "WIX_USER",
3494
+ APP = "APP"
3495
+ }
3496
+ /** @enumType */
3497
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3498
+ interface AccountInfo {
3499
+ /**
3500
+ * ID of the Wix account associated with the event.
3501
+ * @format GUID
3502
+ */
3503
+ accountId?: string | null;
3504
+ /**
3505
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3506
+ * @format GUID
3507
+ */
3508
+ parentAccountId?: string | null;
3509
+ /**
3510
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3511
+ * @format GUID
3512
+ */
3513
+ siteId?: string | null;
3514
+ }
3515
+ interface InitialDraftPostsCopied {
3516
+ /** Number of draft posts copied. */
3517
+ count?: number;
3518
+ }
3327
3519
  interface CreateDraftPostRequest {
3328
3520
  /** Draft post to create. */
3329
3521
  draftPost: DraftPost;
@@ -3904,195 +4096,116 @@ interface DraftPostCount {
3904
4096
  /** Number of posts. */
3905
4097
  postCount?: number;
3906
4098
  }
3907
- interface DomainEvent extends DomainEventBodyOneOf {
3908
- createdEvent?: EntityCreatedEvent;
3909
- updatedEvent?: EntityUpdatedEvent;
3910
- deletedEvent?: EntityDeletedEvent;
3911
- actionEvent?: ActionEvent;
3912
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3913
- _id?: string;
4099
+ interface BulkRevertToUnpublishedRequest {
3914
4100
  /**
3915
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3916
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4101
+ * Source post IDs.
4102
+ * @minSize 1
4103
+ * @maxSize 100
4104
+ * @format GUID
3917
4105
  */
3918
- entityFqdn?: string;
4106
+ postIds?: string[];
4107
+ /** Should full draft post be returned. */
4108
+ returnFullEntity?: boolean;
4109
+ }
4110
+ interface BulkRevertToUnpublishedResponse {
4111
+ /** Bulk action results. */
4112
+ results?: BulkDraftPostResult[];
4113
+ /** Bulk action metadata. */
4114
+ bulkActionMetadata?: BulkActionMetadata;
4115
+ }
4116
+ interface BulkRejectDraftPostRequest {
3919
4117
  /**
3920
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3921
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4118
+ * Source post IDs.
4119
+ * @minSize 1
4120
+ * @maxSize 100
4121
+ * @format GUID
3922
4122
  */
3923
- slug?: string;
3924
- /** ID of the entity associated with the event. */
3925
- entityId?: string;
3926
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3927
- eventTime?: Date | null;
3928
- /**
3929
- * Whether the event was triggered as a result of a privacy regulation application
3930
- * (for example, GDPR).
3931
- */
3932
- triggeredByAnonymizeRequest?: boolean | null;
3933
- /** If present, indicates the action that triggered the event. */
3934
- originatedFrom?: string | null;
3935
- /**
3936
- * 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.
3937
- * 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.
3938
- */
3939
- entityEventSequence?: string | null;
3940
- }
3941
- /** @oneof */
3942
- interface DomainEventBodyOneOf {
3943
- createdEvent?: EntityCreatedEvent;
3944
- updatedEvent?: EntityUpdatedEvent;
3945
- deletedEvent?: EntityDeletedEvent;
3946
- actionEvent?: ActionEvent;
3947
- }
3948
- interface EntityCreatedEvent {
3949
- entity?: string;
3950
- }
3951
- interface RestoreInfo {
3952
- deletedDate?: Date | null;
3953
- }
3954
- interface EntityUpdatedEvent {
3955
- /**
3956
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3957
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3958
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3959
- */
3960
- currentEntity?: string;
3961
- }
3962
- interface EntityDeletedEvent {
3963
- /** Entity that was deleted. */
3964
- deletedEntity?: string | null;
4123
+ postIds?: string[];
4124
+ /** Should full draft post be returned. */
4125
+ returnFullEntity?: boolean;
3965
4126
  }
3966
- interface ActionEvent {
3967
- body?: string;
4127
+ interface BulkRejectDraftPostResponse {
4128
+ /** Bulk action results. */
4129
+ results?: BulkDraftPostResult[];
4130
+ /** Bulk action metadata. */
4131
+ bulkActionMetadata?: BulkActionMetadata;
3968
4132
  }
3969
- interface MessageEnvelope {
4133
+ interface RevertToUnpublishedRequest {
3970
4134
  /**
3971
- * App instance ID.
4135
+ * Source post ID.
3972
4136
  * @format GUID
3973
4137
  */
3974
- instanceId?: string | null;
4138
+ postId?: string;
3975
4139
  /**
3976
- * Event type.
3977
- * @maxLength 150
4140
+ * List of draft post fields to be included if entities are present in the response.
4141
+ * Base fieldset, which is default, will return all core draft post properties.
4142
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4143
+ * @maxSize 10
3978
4144
  */
3979
- eventType?: string;
3980
- /** The identification type and identity data. */
3981
- identity?: IdentificationData;
3982
- /** Stringify payload. */
3983
- data?: string;
3984
- /** Details related to the account */
3985
- accountInfo?: AccountInfo;
4145
+ fieldsets?: FieldWithLiterals[];
3986
4146
  }
3987
- interface IdentificationData extends IdentificationDataIdOneOf {
3988
- /**
3989
- * ID of a site visitor that has not logged in to the site.
3990
- * @format GUID
3991
- */
3992
- anonymousVisitorId?: string;
3993
- /**
3994
- * ID of a site visitor that has logged in to the site.
3995
- * @format GUID
3996
- */
3997
- memberId?: string;
3998
- /**
3999
- * ID of a Wix user (site owner, contributor, etc.).
4000
- * @format GUID
4001
- */
4002
- wixUserId?: string;
4003
- /**
4004
- * ID of an app.
4005
- * @format GUID
4006
- */
4007
- appId?: string;
4008
- /** @readonly */
4009
- identityType?: WebhookIdentityTypeWithLiterals;
4147
+ interface RevertToUnpublishedResponse {
4148
+ /** Updated post draft. */
4149
+ draftPost?: DraftPost;
4010
4150
  }
4011
- /** @oneof */
4012
- interface IdentificationDataIdOneOf {
4013
- /**
4014
- * ID of a site visitor that has not logged in to the site.
4015
- * @format GUID
4016
- */
4017
- anonymousVisitorId?: string;
4018
- /**
4019
- * ID of a site visitor that has logged in to the site.
4020
- * @format GUID
4021
- */
4022
- memberId?: string;
4151
+ interface RejectDraftPostRequest {
4023
4152
  /**
4024
- * ID of a Wix user (site owner, contributor, etc.).
4153
+ * Source post ID.
4025
4154
  * @format GUID
4026
4155
  */
4027
- wixUserId?: string;
4156
+ postId?: string;
4028
4157
  /**
4029
- * ID of an app.
4030
- * @format GUID
4158
+ * List of draft post fields to be included if entities are present in the response.
4159
+ * Base fieldset, which is default, will return all core draft post properties.
4160
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4161
+ * @maxSize 10
4031
4162
  */
4032
- appId?: string;
4163
+ fieldsets?: FieldWithLiterals[];
4033
4164
  }
4034
- declare enum WebhookIdentityType {
4035
- UNKNOWN = "UNKNOWN",
4036
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4037
- MEMBER = "MEMBER",
4038
- WIX_USER = "WIX_USER",
4039
- APP = "APP"
4165
+ interface RejectDraftPostResponse {
4166
+ /** Draft post. */
4167
+ draftPost?: DraftPost;
4040
4168
  }
4041
- /** @enumType */
4042
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4043
- interface AccountInfo {
4169
+ interface ApproveDraftPostRequest {
4044
4170
  /**
4045
- * ID of the Wix account associated with the event.
4171
+ * Source post ID.
4046
4172
  * @format GUID
4047
4173
  */
4048
- accountId?: string | null;
4174
+ postId?: string;
4049
4175
  /**
4050
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
4051
- * @format GUID
4176
+ * Scheduled publish date if should be not immediately published.
4177
+ * @maxLength 24
4052
4178
  */
4053
- parentAccountId?: string | null;
4179
+ scheduledPublishDate?: string | null;
4054
4180
  /**
4055
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4056
- * @format GUID
4181
+ * List of draft post fields to be included if entities are present in the response.
4182
+ * Base fieldset, which is default, will return all core draft post properties.
4183
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4184
+ * @maxSize 10
4057
4185
  */
4058
- siteId?: string | null;
4186
+ fieldsets?: FieldWithLiterals[];
4059
4187
  }
4060
- interface GetDraftPostTotalsRequest {
4188
+ interface ApproveDraftPostResponse {
4189
+ /** Updated post draft. */
4190
+ draftPost?: DraftPost;
4191
+ }
4192
+ interface MarkPostAsInModerationRequest {
4061
4193
  /**
4062
- * Group results by fields (defaults to grouping by status).
4063
- * If, for example, grouping by language is passed, language values in response will be filled.
4064
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4065
- * @maxSize 10
4194
+ * Source post ID.
4195
+ * @maxLength 38
4066
4196
  */
4067
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4197
+ postId?: string;
4068
4198
  /**
4069
- * Optional language filter by provided language code. Useful in multilingual context.
4070
- * @format LANGUAGE_TAG
4199
+ * List of draft post fields to be included if entities are present in the response.
4200
+ * Base fieldset, which is default, will return all core draft post properties.
4201
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4202
+ * @maxSize 10
4071
4203
  */
4072
- language?: string | null;
4073
- }
4074
- declare enum TotalDraftPostsGroupingField {
4075
- /** Groups results by status. */
4076
- STATUS = "STATUS",
4077
- /** Groups results by language. */
4078
- LANGUAGE = "LANGUAGE"
4079
- }
4080
- /** @enumType */
4081
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4082
- interface GetDraftPostTotalsResponse {
4083
- /** Draft post totals. */
4084
- totalDraftPosts?: TotalDraftPosts[];
4204
+ fieldsets?: FieldWithLiterals[];
4085
4205
  }
4086
- interface TotalDraftPosts {
4087
- /** Draft post totals in that group. */
4088
- total?: number;
4089
- /** Draft post status (only has value when grouping by status, otherwise null). */
4090
- status?: StatusWithLiterals;
4091
- /**
4092
- * Draft post language code (only has value when grouping by language, otherwise null).
4093
- * @format LANGUAGE_TAG
4094
- */
4095
- language?: string | null;
4206
+ interface MarkPostAsInModerationResponse {
4207
+ /** Updated post draft. */
4208
+ draftPost?: DraftPost;
4096
4209
  }
4097
4210
  interface TranslateDraftRequest {
4098
4211
  /**
@@ -4179,117 +4292,6 @@ interface UpdateDraftPostLanguageResponse {
4179
4292
  /** Updated draft post. */
4180
4293
  draftPost?: DraftPost;
4181
4294
  }
4182
- interface BulkRevertToUnpublishedRequest {
4183
- /**
4184
- * Source post IDs.
4185
- * @minSize 1
4186
- * @maxSize 100
4187
- * @format GUID
4188
- */
4189
- postIds?: string[];
4190
- /** Should full draft post be returned. */
4191
- returnFullEntity?: boolean;
4192
- }
4193
- interface BulkRevertToUnpublishedResponse {
4194
- /** Bulk action results. */
4195
- results?: BulkDraftPostResult[];
4196
- /** Bulk action metadata. */
4197
- bulkActionMetadata?: BulkActionMetadata;
4198
- }
4199
- interface BulkRejectDraftPostRequest {
4200
- /**
4201
- * Source post IDs.
4202
- * @minSize 1
4203
- * @maxSize 100
4204
- * @format GUID
4205
- */
4206
- postIds?: string[];
4207
- /** Should full draft post be returned. */
4208
- returnFullEntity?: boolean;
4209
- }
4210
- interface BulkRejectDraftPostResponse {
4211
- /** Bulk action results. */
4212
- results?: BulkDraftPostResult[];
4213
- /** Bulk action metadata. */
4214
- bulkActionMetadata?: BulkActionMetadata;
4215
- }
4216
- interface RevertToUnpublishedRequest {
4217
- /**
4218
- * Source post ID.
4219
- * @format GUID
4220
- */
4221
- postId?: string;
4222
- /**
4223
- * List of draft post fields to be included if entities are present in the response.
4224
- * Base fieldset, which is default, will return all core draft post properties.
4225
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4226
- * @maxSize 10
4227
- */
4228
- fieldsets?: FieldWithLiterals[];
4229
- }
4230
- interface RevertToUnpublishedResponse {
4231
- /** Updated post draft. */
4232
- draftPost?: DraftPost;
4233
- }
4234
- interface RejectDraftPostRequest {
4235
- /**
4236
- * Source post ID.
4237
- * @format GUID
4238
- */
4239
- postId?: string;
4240
- /**
4241
- * List of draft post fields to be included if entities are present in the response.
4242
- * Base fieldset, which is default, will return all core draft post properties.
4243
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4244
- * @maxSize 10
4245
- */
4246
- fieldsets?: FieldWithLiterals[];
4247
- }
4248
- interface RejectDraftPostResponse {
4249
- /** Draft post. */
4250
- draftPost?: DraftPost;
4251
- }
4252
- interface ApproveDraftPostRequest {
4253
- /**
4254
- * Source post ID.
4255
- * @format GUID
4256
- */
4257
- postId?: string;
4258
- /**
4259
- * Scheduled publish date if should be not immediately published.
4260
- * @maxLength 24
4261
- */
4262
- scheduledPublishDate?: string | null;
4263
- /**
4264
- * List of draft post fields to be included if entities are present in the response.
4265
- * Base fieldset, which is default, will return all core draft post properties.
4266
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4267
- * @maxSize 10
4268
- */
4269
- fieldsets?: FieldWithLiterals[];
4270
- }
4271
- interface ApproveDraftPostResponse {
4272
- /** Updated post draft. */
4273
- draftPost?: DraftPost;
4274
- }
4275
- interface MarkPostAsInModerationRequest {
4276
- /**
4277
- * Source post ID.
4278
- * @maxLength 38
4279
- */
4280
- postId?: string;
4281
- /**
4282
- * List of draft post fields to be included if entities are present in the response.
4283
- * Base fieldset, which is default, will return all core draft post properties.
4284
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4285
- * @maxSize 10
4286
- */
4287
- fieldsets?: FieldWithLiterals[];
4288
- }
4289
- interface MarkPostAsInModerationResponse {
4290
- /** Updated post draft. */
4291
- draftPost?: DraftPost;
4292
- }
4293
4295
  interface BaseEventMetadata {
4294
4296
  /**
4295
4297
  * App instance ID.