@wix/auto_sdk_blog_draft-posts 1.0.92 → 1.0.93

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.
Files changed (41) hide show
  1. package/build/cjs/index.js +13 -13
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +281 -273
  4. package/build/cjs/index.typings.js +13 -13
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +283 -275
  7. package/build/cjs/meta.js +13 -13
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +15 -15
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.mjs +13 -13
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +281 -273
  14. package/build/es/index.typings.mjs +13 -13
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +283 -275
  17. package/build/es/meta.mjs +13 -13
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +15 -15
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.js +13 -13
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +310 -302
  24. package/build/internal/cjs/index.typings.js +13 -13
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +326 -318
  27. package/build/internal/cjs/meta.js +13 -13
  28. package/build/internal/cjs/meta.js.map +1 -1
  29. package/build/internal/cjs/schemas.js +15 -15
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.mjs +13 -13
  32. package/build/internal/es/index.mjs.map +1 -1
  33. package/build/internal/es/index.typings.d.mts +310 -302
  34. package/build/internal/es/index.typings.mjs +13 -13
  35. package/build/internal/es/index.typings.mjs.map +1 -1
  36. package/build/internal/es/meta.d.mts +326 -318
  37. package/build/internal/es/meta.mjs +13 -13
  38. package/build/internal/es/meta.mjs.map +1 -1
  39. package/build/internal/es/schemas.mjs +15 -15
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -3018,7 +3018,15 @@ interface Tag {
3018
3018
  meta?: Record<string, any> | null;
3019
3019
  /** SEO tag inner content. For example, `<title> inner content </title>`. */
3020
3020
  children?: string;
3021
- /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */
3021
+ /**
3022
+ * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).
3023
+ *
3024
+ * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
3025
+ * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
3026
+ * or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For
3027
+ * those pages `false` therefore does not mean "not a custom tag" — it means this API could not tell.
3028
+ * Pass `seoData` explicitly to resolve against a known set of tags.
3029
+ */
3022
3030
  custom?: boolean;
3023
3031
  /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
3024
3032
  disabled?: boolean;
@@ -3187,10 +3195,6 @@ interface DraftPostTranslation {
3187
3195
  /** Post URL. */
3188
3196
  url?: string;
3189
3197
  }
3190
- interface InitialDraftPostsCopied {
3191
- /** Number of draft posts copied. */
3192
- count?: number;
3193
- }
3194
3198
  interface DraftCategoriesUpdated {
3195
3199
  /**
3196
3200
  * Draft post ID.
@@ -3229,6 +3233,200 @@ interface DraftTagsUpdated {
3229
3233
  */
3230
3234
  previousTags?: string[];
3231
3235
  }
3236
+ interface GetDraftPostTotalsRequest {
3237
+ /**
3238
+ * Group results by fields (defaults to grouping by status).
3239
+ * If, for example, grouping by language is passed, language values in response will be filled.
3240
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3241
+ * @maxSize 10
3242
+ */
3243
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3244
+ /**
3245
+ * Optional language filter by provided language code. Useful in multilingual context.
3246
+ * @format LANGUAGE_TAG
3247
+ */
3248
+ language?: string | null;
3249
+ }
3250
+ declare enum TotalDraftPostsGroupingField {
3251
+ /** Groups results by status. */
3252
+ STATUS = "STATUS",
3253
+ /** Groups results by language. */
3254
+ LANGUAGE = "LANGUAGE"
3255
+ }
3256
+ /** @enumType */
3257
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3258
+ interface GetDraftPostTotalsResponse {
3259
+ /** Draft post totals. */
3260
+ totalDraftPosts?: TotalDraftPosts[];
3261
+ }
3262
+ interface TotalDraftPosts {
3263
+ /** Draft post totals in that group. */
3264
+ total?: number;
3265
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3266
+ status?: StatusWithLiterals;
3267
+ /**
3268
+ * Draft post language code (only has value when grouping by language, otherwise null).
3269
+ * @format LANGUAGE_TAG
3270
+ */
3271
+ language?: string | null;
3272
+ }
3273
+ interface DomainEvent extends DomainEventBodyOneOf {
3274
+ createdEvent?: EntityCreatedEvent;
3275
+ updatedEvent?: EntityUpdatedEvent;
3276
+ deletedEvent?: EntityDeletedEvent;
3277
+ actionEvent?: ActionEvent;
3278
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3279
+ _id?: string;
3280
+ /**
3281
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3282
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3283
+ */
3284
+ entityFqdn?: string;
3285
+ /**
3286
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3287
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3288
+ */
3289
+ slug?: string;
3290
+ /** ID of the entity associated with the event. */
3291
+ entityId?: string;
3292
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3293
+ eventTime?: Date | null;
3294
+ /**
3295
+ * Whether the event was triggered as a result of a privacy regulation application
3296
+ * (for example, GDPR).
3297
+ */
3298
+ triggeredByAnonymizeRequest?: boolean | null;
3299
+ /** If present, indicates the action that triggered the event. */
3300
+ originatedFrom?: string | null;
3301
+ /**
3302
+ * 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.
3303
+ * 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.
3304
+ */
3305
+ entityEventSequence?: string | null;
3306
+ }
3307
+ /** @oneof */
3308
+ interface DomainEventBodyOneOf {
3309
+ createdEvent?: EntityCreatedEvent;
3310
+ updatedEvent?: EntityUpdatedEvent;
3311
+ deletedEvent?: EntityDeletedEvent;
3312
+ actionEvent?: ActionEvent;
3313
+ }
3314
+ interface EntityCreatedEvent {
3315
+ entity?: string;
3316
+ }
3317
+ interface RestoreInfo {
3318
+ deletedDate?: Date | null;
3319
+ }
3320
+ interface EntityUpdatedEvent {
3321
+ /**
3322
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3323
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3324
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3325
+ */
3326
+ currentEntity?: string;
3327
+ }
3328
+ interface EntityDeletedEvent {
3329
+ /** Entity that was deleted. */
3330
+ deletedEntity?: string | null;
3331
+ }
3332
+ interface ActionEvent {
3333
+ body?: string;
3334
+ }
3335
+ interface MessageEnvelope {
3336
+ /**
3337
+ * App instance ID.
3338
+ * @format GUID
3339
+ */
3340
+ instanceId?: string | null;
3341
+ /**
3342
+ * Event type.
3343
+ * @maxLength 150
3344
+ */
3345
+ eventType?: string;
3346
+ /** The identification type and identity data. */
3347
+ identity?: IdentificationData;
3348
+ /** Stringify payload. */
3349
+ data?: string;
3350
+ /** Details related to the account */
3351
+ accountInfo?: AccountInfo;
3352
+ }
3353
+ interface IdentificationData extends IdentificationDataIdOneOf {
3354
+ /**
3355
+ * ID of a site visitor that has not logged in to the site.
3356
+ * @format GUID
3357
+ */
3358
+ anonymousVisitorId?: string;
3359
+ /**
3360
+ * ID of a site visitor that has logged in to the site.
3361
+ * @format GUID
3362
+ */
3363
+ memberId?: string;
3364
+ /**
3365
+ * ID of a Wix user (site owner, contributor, etc.).
3366
+ * @format GUID
3367
+ */
3368
+ wixUserId?: string;
3369
+ /**
3370
+ * ID of an app.
3371
+ * @format GUID
3372
+ */
3373
+ appId?: string;
3374
+ /** @readonly */
3375
+ identityType?: WebhookIdentityTypeWithLiterals;
3376
+ }
3377
+ /** @oneof */
3378
+ interface IdentificationDataIdOneOf {
3379
+ /**
3380
+ * ID of a site visitor that has not logged in to the site.
3381
+ * @format GUID
3382
+ */
3383
+ anonymousVisitorId?: string;
3384
+ /**
3385
+ * ID of a site visitor that has logged in to the site.
3386
+ * @format GUID
3387
+ */
3388
+ memberId?: string;
3389
+ /**
3390
+ * ID of a Wix user (site owner, contributor, etc.).
3391
+ * @format GUID
3392
+ */
3393
+ wixUserId?: string;
3394
+ /**
3395
+ * ID of an app.
3396
+ * @format GUID
3397
+ */
3398
+ appId?: string;
3399
+ }
3400
+ declare enum WebhookIdentityType {
3401
+ UNKNOWN = "UNKNOWN",
3402
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3403
+ MEMBER = "MEMBER",
3404
+ WIX_USER = "WIX_USER",
3405
+ APP = "APP"
3406
+ }
3407
+ /** @enumType */
3408
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3409
+ interface AccountInfo {
3410
+ /**
3411
+ * ID of the Wix account associated with the event.
3412
+ * @format GUID
3413
+ */
3414
+ accountId?: string | null;
3415
+ /**
3416
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3417
+ * @format GUID
3418
+ */
3419
+ parentAccountId?: string | null;
3420
+ /**
3421
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3422
+ * @format GUID
3423
+ */
3424
+ siteId?: string | null;
3425
+ }
3426
+ interface InitialDraftPostsCopied {
3427
+ /** Number of draft posts copied. */
3428
+ count?: number;
3429
+ }
3232
3430
  interface CreateDraftPostRequest {
3233
3431
  /** Draft post to create. */
3234
3432
  draftPost: DraftPost;
@@ -3878,195 +4076,152 @@ interface DraftPostCount {
3878
4076
  /** Number of posts. */
3879
4077
  postCount?: number;
3880
4078
  }
3881
- interface DomainEvent extends DomainEventBodyOneOf {
3882
- createdEvent?: EntityCreatedEvent;
3883
- updatedEvent?: EntityUpdatedEvent;
3884
- deletedEvent?: EntityDeletedEvent;
3885
- actionEvent?: ActionEvent;
3886
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3887
- _id?: string;
4079
+ interface BulkRevertToUnpublishedRequest {
3888
4080
  /**
3889
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3890
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4081
+ * Source post IDs.
4082
+ * @minSize 1
4083
+ * @maxSize 100
4084
+ * @format GUID
3891
4085
  */
3892
- entityFqdn?: string;
4086
+ postIds?: string[];
4087
+ /** Should full draft post be returned. */
4088
+ returnFullEntity?: boolean;
4089
+ }
4090
+ interface BulkRevertToUnpublishedResponse {
4091
+ /** Bulk action results. */
4092
+ results?: BulkDraftPostResult[];
4093
+ /** Bulk action metadata. */
4094
+ bulkActionMetadata?: BulkActionMetadata;
4095
+ }
4096
+ interface BulkRejectDraftPostRequest {
3893
4097
  /**
3894
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3895
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4098
+ * Source post IDs.
4099
+ * @minSize 1
4100
+ * @maxSize 100
4101
+ * @format GUID
3896
4102
  */
3897
- slug?: string;
3898
- /** ID of the entity associated with the event. */
3899
- entityId?: string;
3900
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3901
- eventTime?: Date | null;
4103
+ postIds?: string[];
4104
+ /** Should full draft post be returned. */
4105
+ returnFullEntity?: boolean;
4106
+ }
4107
+ interface BulkRejectDraftPostResponse {
4108
+ /** Bulk action results. */
4109
+ results?: BulkDraftPostResult[];
4110
+ /** Bulk action metadata. */
4111
+ bulkActionMetadata?: BulkActionMetadata;
4112
+ }
4113
+ interface RevertToUnpublishedRequest {
3902
4114
  /**
3903
- * Whether the event was triggered as a result of a privacy regulation application
3904
- * (for example, GDPR).
4115
+ * Source post ID.
4116
+ * @format GUID
3905
4117
  */
3906
- triggeredByAnonymizeRequest?: boolean | null;
3907
- /** If present, indicates the action that triggered the event. */
3908
- originatedFrom?: string | null;
4118
+ postId?: string;
3909
4119
  /**
3910
- * 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.
3911
- * 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.
4120
+ * List of draft post fields to be included in the response.
4121
+ * @internal
4122
+ * @maxSize 10
4123
+ * @deprecated List of draft post fields to be included in the response.
4124
+ * @replacedBy fieldsets
4125
+ * @targetRemovalDate 2024-06-30
3912
4126
  */
3913
- entityEventSequence?: string | null;
3914
- }
3915
- /** @oneof */
3916
- interface DomainEventBodyOneOf {
3917
- createdEvent?: EntityCreatedEvent;
3918
- updatedEvent?: EntityUpdatedEvent;
3919
- deletedEvent?: EntityDeletedEvent;
3920
- actionEvent?: ActionEvent;
3921
- }
3922
- interface EntityCreatedEvent {
3923
- entity?: string;
3924
- }
3925
- interface RestoreInfo {
3926
- deletedDate?: Date | null;
3927
- }
3928
- interface EntityUpdatedEvent {
4127
+ fieldsToInclude?: FieldWithLiterals[];
3929
4128
  /**
3930
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3931
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3932
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4129
+ * List of draft post fields to be included if entities are present in the response.
4130
+ * Base fieldset, which is default, will return all core draft post properties.
4131
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4132
+ * @maxSize 10
3933
4133
  */
3934
- currentEntity?: string;
3935
- }
3936
- interface EntityDeletedEvent {
3937
- /** Entity that was deleted. */
3938
- deletedEntity?: string | null;
3939
- }
3940
- interface ActionEvent {
3941
- body?: string;
4134
+ fieldsets?: FieldWithLiterals[];
3942
4135
  }
3943
- interface MessageEnvelope {
3944
- /**
3945
- * App instance ID.
3946
- * @format GUID
3947
- */
3948
- instanceId?: string | null;
3949
- /**
3950
- * Event type.
3951
- * @maxLength 150
3952
- */
3953
- eventType?: string;
3954
- /** The identification type and identity data. */
3955
- identity?: IdentificationData;
3956
- /** Stringify payload. */
3957
- data?: string;
3958
- /** Details related to the account */
3959
- accountInfo?: AccountInfo;
4136
+ interface RevertToUnpublishedResponse {
4137
+ /** Updated post draft. */
4138
+ draftPost?: DraftPost;
3960
4139
  }
3961
- interface IdentificationData extends IdentificationDataIdOneOf {
3962
- /**
3963
- * ID of a site visitor that has not logged in to the site.
3964
- * @format GUID
3965
- */
3966
- anonymousVisitorId?: string;
4140
+ interface RejectDraftPostRequest {
3967
4141
  /**
3968
- * ID of a site visitor that has logged in to the site.
4142
+ * Source post ID.
3969
4143
  * @format GUID
3970
4144
  */
3971
- memberId?: string;
4145
+ postId?: string;
3972
4146
  /**
3973
- * ID of a Wix user (site owner, contributor, etc.).
3974
- * @format GUID
4147
+ * List of draft post fields to be included in the response.
4148
+ * @internal
4149
+ * @maxSize 10
4150
+ * @deprecated List of draft post fields to be included in the response.
4151
+ * @replacedBy fieldsets
4152
+ * @targetRemovalDate 2024-06-30
3975
4153
  */
3976
- wixUserId?: string;
4154
+ fieldsToInclude?: FieldWithLiterals[];
3977
4155
  /**
3978
- * ID of an app.
3979
- * @format GUID
4156
+ * List of draft post fields to be included if entities are present in the response.
4157
+ * Base fieldset, which is default, will return all core draft post properties.
4158
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4159
+ * @maxSize 10
3980
4160
  */
3981
- appId?: string;
3982
- /** @readonly */
3983
- identityType?: WebhookIdentityTypeWithLiterals;
4161
+ fieldsets?: FieldWithLiterals[];
3984
4162
  }
3985
- /** @oneof */
3986
- interface IdentificationDataIdOneOf {
4163
+ interface RejectDraftPostResponse {
4164
+ /** Draft post. */
4165
+ draftPost?: DraftPost;
4166
+ }
4167
+ interface ApproveDraftPostRequest {
3987
4168
  /**
3988
- * ID of a site visitor that has not logged in to the site.
4169
+ * Source post ID.
3989
4170
  * @format GUID
3990
4171
  */
3991
- anonymousVisitorId?: string;
4172
+ postId?: string;
3992
4173
  /**
3993
- * ID of a site visitor that has logged in to the site.
3994
- * @format GUID
4174
+ * Scheduled publish date if should be not immediately published.
4175
+ * @maxLength 24
3995
4176
  */
3996
- memberId?: string;
4177
+ scheduledPublishDate?: string | null;
3997
4178
  /**
3998
- * ID of a Wix user (site owner, contributor, etc.).
3999
- * @format GUID
4179
+ * List of draft post fields to be included in the response.
4180
+ * @internal
4181
+ * @maxSize 10
4182
+ * @deprecated List of draft post fields to be included in the response.
4183
+ * @replacedBy fieldsets
4184
+ * @targetRemovalDate 2024-06-30
4000
4185
  */
4001
- wixUserId?: string;
4186
+ fieldsToInclude?: FieldWithLiterals[];
4002
4187
  /**
4003
- * ID of an app.
4004
- * @format GUID
4188
+ * List of draft post fields to be included if entities are present in the response.
4189
+ * Base fieldset, which is default, will return all core draft post properties.
4190
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4191
+ * @maxSize 10
4005
4192
  */
4006
- appId?: string;
4193
+ fieldsets?: FieldWithLiterals[];
4007
4194
  }
4008
- declare enum WebhookIdentityType {
4009
- UNKNOWN = "UNKNOWN",
4010
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4011
- MEMBER = "MEMBER",
4012
- WIX_USER = "WIX_USER",
4013
- APP = "APP"
4195
+ interface ApproveDraftPostResponse {
4196
+ /** Updated post draft. */
4197
+ draftPost?: DraftPost;
4014
4198
  }
4015
- /** @enumType */
4016
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4017
- interface AccountInfo {
4018
- /**
4019
- * ID of the Wix account associated with the event.
4020
- * @format GUID
4021
- */
4022
- accountId?: string | null;
4023
- /**
4024
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
4025
- * @format GUID
4026
- */
4027
- parentAccountId?: string | null;
4199
+ interface MarkPostAsInModerationRequest {
4028
4200
  /**
4029
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4030
- * @format GUID
4201
+ * Source post ID.
4202
+ * @maxLength 38
4031
4203
  */
4032
- siteId?: string | null;
4033
- }
4034
- interface GetDraftPostTotalsRequest {
4204
+ postId?: string;
4035
4205
  /**
4036
- * Group results by fields (defaults to grouping by status).
4037
- * If, for example, grouping by language is passed, language values in response will be filled.
4038
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4206
+ * List of draft post fields to be included in the response.
4207
+ * @internal
4039
4208
  * @maxSize 10
4209
+ * @deprecated List of draft post fields to be included in the response.
4210
+ * @replacedBy fieldsets
4211
+ * @targetRemovalDate 2024-06-30
4040
4212
  */
4041
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4213
+ fieldsToInclude?: FieldWithLiterals[];
4042
4214
  /**
4043
- * Optional language filter by provided language code. Useful in multilingual context.
4044
- * @format LANGUAGE_TAG
4215
+ * List of draft post fields to be included if entities are present in the response.
4216
+ * Base fieldset, which is default, will return all core draft post properties.
4217
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4218
+ * @maxSize 10
4045
4219
  */
4046
- language?: string | null;
4047
- }
4048
- declare enum TotalDraftPostsGroupingField {
4049
- /** Groups results by status. */
4050
- STATUS = "STATUS",
4051
- /** Groups results by language. */
4052
- LANGUAGE = "LANGUAGE"
4053
- }
4054
- /** @enumType */
4055
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4056
- interface GetDraftPostTotalsResponse {
4057
- /** Draft post totals. */
4058
- totalDraftPosts?: TotalDraftPosts[];
4220
+ fieldsets?: FieldWithLiterals[];
4059
4221
  }
4060
- interface TotalDraftPosts {
4061
- /** Draft post totals in that group. */
4062
- total?: number;
4063
- /** Draft post status (only has value when grouping by status, otherwise null). */
4064
- status?: StatusWithLiterals;
4065
- /**
4066
- * Draft post language code (only has value when grouping by language, otherwise null).
4067
- * @format LANGUAGE_TAG
4068
- */
4069
- language?: string | null;
4222
+ interface MarkPostAsInModerationResponse {
4223
+ /** Updated post draft. */
4224
+ draftPost?: DraftPost;
4070
4225
  }
4071
4226
  interface TranslateDraftRequest {
4072
4227
  /**
@@ -4146,153 +4301,6 @@ interface UpdateDraftPostLanguageResponse {
4146
4301
  /** Draft post */
4147
4302
  draftPost?: DraftPost;
4148
4303
  }
4149
- interface BulkRevertToUnpublishedRequest {
4150
- /**
4151
- * Source post IDs.
4152
- * @minSize 1
4153
- * @maxSize 100
4154
- * @format GUID
4155
- */
4156
- postIds?: string[];
4157
- /** Should full draft post be returned. */
4158
- returnFullEntity?: boolean;
4159
- }
4160
- interface BulkRevertToUnpublishedResponse {
4161
- /** Bulk action results. */
4162
- results?: BulkDraftPostResult[];
4163
- /** Bulk action metadata. */
4164
- bulkActionMetadata?: BulkActionMetadata;
4165
- }
4166
- interface BulkRejectDraftPostRequest {
4167
- /**
4168
- * Source post IDs.
4169
- * @minSize 1
4170
- * @maxSize 100
4171
- * @format GUID
4172
- */
4173
- postIds?: string[];
4174
- /** Should full draft post be returned. */
4175
- returnFullEntity?: boolean;
4176
- }
4177
- interface BulkRejectDraftPostResponse {
4178
- /** Bulk action results. */
4179
- results?: BulkDraftPostResult[];
4180
- /** Bulk action metadata. */
4181
- bulkActionMetadata?: BulkActionMetadata;
4182
- }
4183
- interface RevertToUnpublishedRequest {
4184
- /**
4185
- * Source post ID.
4186
- * @format GUID
4187
- */
4188
- postId?: string;
4189
- /**
4190
- * List of draft post fields to be included in the response.
4191
- * @internal
4192
- * @maxSize 10
4193
- * @deprecated List of draft post fields to be included in the response.
4194
- * @replacedBy fieldsets
4195
- * @targetRemovalDate 2024-06-30
4196
- */
4197
- fieldsToInclude?: FieldWithLiterals[];
4198
- /**
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
4203
- */
4204
- fieldsets?: FieldWithLiterals[];
4205
- }
4206
- interface RevertToUnpublishedResponse {
4207
- /** Updated post draft. */
4208
- draftPost?: DraftPost;
4209
- }
4210
- interface RejectDraftPostRequest {
4211
- /**
4212
- * Source post ID.
4213
- * @format GUID
4214
- */
4215
- postId?: string;
4216
- /**
4217
- * List of draft post fields to be included in the response.
4218
- * @internal
4219
- * @maxSize 10
4220
- * @deprecated List of draft post fields to be included in the response.
4221
- * @replacedBy fieldsets
4222
- * @targetRemovalDate 2024-06-30
4223
- */
4224
- fieldsToInclude?: FieldWithLiterals[];
4225
- /**
4226
- * List of draft post fields to be included if entities are present in the response.
4227
- * Base fieldset, which is default, will return all core draft post properties.
4228
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4229
- * @maxSize 10
4230
- */
4231
- fieldsets?: FieldWithLiterals[];
4232
- }
4233
- interface RejectDraftPostResponse {
4234
- /** Draft post. */
4235
- draftPost?: DraftPost;
4236
- }
4237
- interface ApproveDraftPostRequest {
4238
- /**
4239
- * Source post ID.
4240
- * @format GUID
4241
- */
4242
- postId?: string;
4243
- /**
4244
- * Scheduled publish date if should be not immediately published.
4245
- * @maxLength 24
4246
- */
4247
- scheduledPublishDate?: string | null;
4248
- /**
4249
- * List of draft post fields to be included in the response.
4250
- * @internal
4251
- * @maxSize 10
4252
- * @deprecated List of draft post fields to be included in the response.
4253
- * @replacedBy fieldsets
4254
- * @targetRemovalDate 2024-06-30
4255
- */
4256
- fieldsToInclude?: FieldWithLiterals[];
4257
- /**
4258
- * List of draft post fields to be included if entities are present in the response.
4259
- * Base fieldset, which is default, will return all core draft post properties.
4260
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4261
- * @maxSize 10
4262
- */
4263
- fieldsets?: FieldWithLiterals[];
4264
- }
4265
- interface ApproveDraftPostResponse {
4266
- /** Updated post draft. */
4267
- draftPost?: DraftPost;
4268
- }
4269
- interface MarkPostAsInModerationRequest {
4270
- /**
4271
- * Source post ID.
4272
- * @maxLength 38
4273
- */
4274
- postId?: string;
4275
- /**
4276
- * List of draft post fields to be included in the response.
4277
- * @internal
4278
- * @maxSize 10
4279
- * @deprecated List of draft post fields to be included in the response.
4280
- * @replacedBy fieldsets
4281
- * @targetRemovalDate 2024-06-30
4282
- */
4283
- fieldsToInclude?: FieldWithLiterals[];
4284
- /**
4285
- * List of draft post fields to be included if entities are present in the response.
4286
- * Base fieldset, which is default, will return all core draft post properties.
4287
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4288
- * @maxSize 10
4289
- */
4290
- fieldsets?: FieldWithLiterals[];
4291
- }
4292
- interface MarkPostAsInModerationResponse {
4293
- /** Updated post draft. */
4294
- draftPost?: DraftPost;
4295
- }
4296
4304
  interface BaseEventMetadata {
4297
4305
  /**
4298
4306
  * App instance ID.