@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
@@ -3059,7 +3059,15 @@ interface Tag {
3059
3059
  meta?: Record<string, any> | null;
3060
3060
  /** SEO tag inner content. For example, `<title> inner content </title>`. */
3061
3061
  children?: string;
3062
- /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */
3062
+ /**
3063
+ * Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).
3064
+ *
3065
+ * Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
3066
+ * only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
3067
+ * or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For
3068
+ * those pages `false` therefore does not mean "not a custom tag" — it means this API could not tell.
3069
+ * Pass `seoData` explicitly to resolve against a known set of tags.
3070
+ */
3063
3071
  custom?: boolean;
3064
3072
  /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
3065
3073
  disabled?: boolean;
@@ -3303,10 +3311,6 @@ interface DraftPostTranslation {
3303
3311
  /** Post URL. */
3304
3312
  url?: PageUrl;
3305
3313
  }
3306
- interface InitialDraftPostsCopied {
3307
- /** Number of draft posts copied. */
3308
- count?: number;
3309
- }
3310
3314
  interface DraftCategoriesUpdated {
3311
3315
  /**
3312
3316
  * Draft post ID.
@@ -3345,6 +3349,244 @@ interface DraftTagsUpdated {
3345
3349
  */
3346
3350
  previousTags?: string[];
3347
3351
  }
3352
+ interface GetDraftPostTotalsRequest {
3353
+ /**
3354
+ * Group results by fields (defaults to grouping by status).
3355
+ * If, for example, grouping by language is passed, language values in response will be filled.
3356
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3357
+ * @maxSize 10
3358
+ */
3359
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3360
+ /**
3361
+ * Optional language filter by provided language code. Useful in multilingual context.
3362
+ * @format LANGUAGE_TAG
3363
+ */
3364
+ language?: string | null;
3365
+ }
3366
+ declare enum TotalDraftPostsGroupingField {
3367
+ /** Groups results by status. */
3368
+ STATUS = "STATUS",
3369
+ /** Groups results by language. */
3370
+ LANGUAGE = "LANGUAGE"
3371
+ }
3372
+ /** @enumType */
3373
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3374
+ interface GetDraftPostTotalsResponse {
3375
+ /** Draft post totals. */
3376
+ totalDraftPosts?: TotalDraftPosts[];
3377
+ }
3378
+ interface TotalDraftPosts {
3379
+ /** Draft post totals in that group. */
3380
+ total?: number;
3381
+ /** Draft post status (only has value when grouping by status, otherwise null). */
3382
+ status?: StatusWithLiterals;
3383
+ /**
3384
+ * Draft post language code (only has value when grouping by language, otherwise null).
3385
+ * @format LANGUAGE_TAG
3386
+ */
3387
+ language?: string | null;
3388
+ }
3389
+ interface DomainEvent extends DomainEventBodyOneOf {
3390
+ createdEvent?: EntityCreatedEvent;
3391
+ updatedEvent?: EntityUpdatedEvent;
3392
+ deletedEvent?: EntityDeletedEvent;
3393
+ actionEvent?: ActionEvent;
3394
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3395
+ id?: string;
3396
+ /**
3397
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3398
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3399
+ */
3400
+ entityFqdn?: string;
3401
+ /**
3402
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3403
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3404
+ */
3405
+ slug?: string;
3406
+ /** ID of the entity associated with the event. */
3407
+ entityId?: string;
3408
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3409
+ eventTime?: Date | null;
3410
+ /**
3411
+ * Whether the event was triggered as a result of a privacy regulation application
3412
+ * (for example, GDPR).
3413
+ */
3414
+ triggeredByAnonymizeRequest?: boolean | null;
3415
+ /** If present, indicates the action that triggered the event. */
3416
+ originatedFrom?: string | null;
3417
+ /**
3418
+ * 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.
3419
+ * 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.
3420
+ */
3421
+ entityEventSequence?: string | null;
3422
+ }
3423
+ /** @oneof */
3424
+ interface DomainEventBodyOneOf {
3425
+ createdEvent?: EntityCreatedEvent;
3426
+ updatedEvent?: EntityUpdatedEvent;
3427
+ deletedEvent?: EntityDeletedEvent;
3428
+ actionEvent?: ActionEvent;
3429
+ }
3430
+ interface EntityCreatedEvent {
3431
+ entityAsJson?: string;
3432
+ /**
3433
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
3434
+ * @internal
3435
+ */
3436
+ triggeredByUndelete?: boolean | null;
3437
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3438
+ restoreInfo?: RestoreInfo;
3439
+ /**
3440
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3441
+ * @internal
3442
+ */
3443
+ additionalMetadataAsJson?: string | null;
3444
+ }
3445
+ interface RestoreInfo {
3446
+ deletedDate?: Date | null;
3447
+ }
3448
+ interface EntityUpdatedEvent {
3449
+ /**
3450
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3451
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3452
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3453
+ */
3454
+ currentEntityAsJson?: string;
3455
+ /**
3456
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
3457
+ * wont populate it / have any reference to it in the API.
3458
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
3459
+ * the developer should send only the new (current) entity.
3460
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
3461
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
3462
+ * @internal
3463
+ * @deprecated
3464
+ */
3465
+ previousEntityAsJson?: string | null;
3466
+ /**
3467
+ * Map of fully qualified field paths to their previous values for fields that changed.
3468
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
3469
+ * @internal
3470
+ */
3471
+ modifiedFields?: Record<string, any>;
3472
+ /**
3473
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3474
+ * @internal
3475
+ */
3476
+ additionalMetadataAsJson?: string | null;
3477
+ }
3478
+ interface EntityDeletedEvent {
3479
+ /**
3480
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
3481
+ * @internal
3482
+ */
3483
+ movedToTrash?: boolean | null;
3484
+ /** Entity that was deleted. */
3485
+ deletedEntityAsJson?: string | null;
3486
+ /**
3487
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3488
+ * @internal
3489
+ */
3490
+ additionalMetadataAsJson?: string | null;
3491
+ }
3492
+ interface ActionEvent {
3493
+ bodyAsJson?: string;
3494
+ }
3495
+ interface MessageEnvelope {
3496
+ /**
3497
+ * App instance ID.
3498
+ * @format GUID
3499
+ */
3500
+ instanceId?: string | null;
3501
+ /**
3502
+ * Event type.
3503
+ * @maxLength 150
3504
+ */
3505
+ eventType?: string;
3506
+ /** The identification type and identity data. */
3507
+ identity?: IdentificationData;
3508
+ /** Stringify payload. */
3509
+ data?: string;
3510
+ /** Details related to the account */
3511
+ accountInfo?: AccountInfo;
3512
+ }
3513
+ interface IdentificationData extends IdentificationDataIdOneOf {
3514
+ /**
3515
+ * ID of a site visitor that has not logged in to the site.
3516
+ * @format GUID
3517
+ */
3518
+ anonymousVisitorId?: string;
3519
+ /**
3520
+ * ID of a site visitor that has logged in to the site.
3521
+ * @format GUID
3522
+ */
3523
+ memberId?: string;
3524
+ /**
3525
+ * ID of a Wix user (site owner, contributor, etc.).
3526
+ * @format GUID
3527
+ */
3528
+ wixUserId?: string;
3529
+ /**
3530
+ * ID of an app.
3531
+ * @format GUID
3532
+ */
3533
+ appId?: string;
3534
+ /** @readonly */
3535
+ identityType?: WebhookIdentityTypeWithLiterals;
3536
+ }
3537
+ /** @oneof */
3538
+ interface IdentificationDataIdOneOf {
3539
+ /**
3540
+ * ID of a site visitor that has not logged in to the site.
3541
+ * @format GUID
3542
+ */
3543
+ anonymousVisitorId?: string;
3544
+ /**
3545
+ * ID of a site visitor that has logged in to the site.
3546
+ * @format GUID
3547
+ */
3548
+ memberId?: string;
3549
+ /**
3550
+ * ID of a Wix user (site owner, contributor, etc.).
3551
+ * @format GUID
3552
+ */
3553
+ wixUserId?: string;
3554
+ /**
3555
+ * ID of an app.
3556
+ * @format GUID
3557
+ */
3558
+ appId?: string;
3559
+ }
3560
+ declare enum WebhookIdentityType {
3561
+ UNKNOWN = "UNKNOWN",
3562
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3563
+ MEMBER = "MEMBER",
3564
+ WIX_USER = "WIX_USER",
3565
+ APP = "APP"
3566
+ }
3567
+ /** @enumType */
3568
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3569
+ interface AccountInfo {
3570
+ /**
3571
+ * ID of the Wix account associated with the event.
3572
+ * @format GUID
3573
+ */
3574
+ accountId?: string | null;
3575
+ /**
3576
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
3577
+ * @format GUID
3578
+ */
3579
+ parentAccountId?: string | null;
3580
+ /**
3581
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3582
+ * @format GUID
3583
+ */
3584
+ siteId?: string | null;
3585
+ }
3586
+ interface InitialDraftPostsCopied {
3587
+ /** Number of draft posts copied. */
3588
+ count?: number;
3589
+ }
3348
3590
  interface CreateDraftPostRequest {
3349
3591
  /** Draft post to create. */
3350
3592
  draftPost: DraftPost;
@@ -3994,319 +4236,7 @@ interface DraftPostCount {
3994
4236
  /** Number of posts. */
3995
4237
  postCount?: number;
3996
4238
  }
3997
- interface DomainEvent extends DomainEventBodyOneOf {
3998
- createdEvent?: EntityCreatedEvent;
3999
- updatedEvent?: EntityUpdatedEvent;
4000
- deletedEvent?: EntityDeletedEvent;
4001
- actionEvent?: ActionEvent;
4002
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4003
- id?: string;
4004
- /**
4005
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4006
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4007
- */
4008
- entityFqdn?: string;
4009
- /**
4010
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
4011
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4012
- */
4013
- slug?: string;
4014
- /** ID of the entity associated with the event. */
4015
- entityId?: string;
4016
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4017
- eventTime?: Date | null;
4018
- /**
4019
- * Whether the event was triggered as a result of a privacy regulation application
4020
- * (for example, GDPR).
4021
- */
4022
- triggeredByAnonymizeRequest?: boolean | null;
4023
- /** If present, indicates the action that triggered the event. */
4024
- originatedFrom?: string | null;
4025
- /**
4026
- * 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.
4027
- * 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.
4028
- */
4029
- entityEventSequence?: string | null;
4030
- }
4031
- /** @oneof */
4032
- interface DomainEventBodyOneOf {
4033
- createdEvent?: EntityCreatedEvent;
4034
- updatedEvent?: EntityUpdatedEvent;
4035
- deletedEvent?: EntityDeletedEvent;
4036
- actionEvent?: ActionEvent;
4037
- }
4038
- interface EntityCreatedEvent {
4039
- entityAsJson?: string;
4040
- /**
4041
- * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
4042
- * @internal
4043
- */
4044
- triggeredByUndelete?: boolean | null;
4045
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
4046
- restoreInfo?: RestoreInfo;
4047
- /**
4048
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4049
- * @internal
4050
- */
4051
- additionalMetadataAsJson?: string | null;
4052
- }
4053
- interface RestoreInfo {
4054
- deletedDate?: Date | null;
4055
- }
4056
- interface EntityUpdatedEvent {
4057
- /**
4058
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4059
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4060
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4061
- */
4062
- currentEntityAsJson?: string;
4063
- /**
4064
- * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
4065
- * wont populate it / have any reference to it in the API.
4066
- * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
4067
- * the developer should send only the new (current) entity.
4068
- * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
4069
- * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
4070
- * @internal
4071
- * @deprecated
4072
- */
4073
- previousEntityAsJson?: string | null;
4074
- /**
4075
- * Map of fully qualified field paths to their previous values for fields that changed.
4076
- * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
4077
- * @internal
4078
- */
4079
- modifiedFields?: Record<string, any>;
4080
- /**
4081
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4082
- * @internal
4083
- */
4084
- additionalMetadataAsJson?: string | null;
4085
- }
4086
- interface EntityDeletedEvent {
4087
- /**
4088
- * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
4089
- * @internal
4090
- */
4091
- movedToTrash?: boolean | null;
4092
- /** Entity that was deleted. */
4093
- deletedEntityAsJson?: string | null;
4094
- /**
4095
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4096
- * @internal
4097
- */
4098
- additionalMetadataAsJson?: string | null;
4099
- }
4100
- interface ActionEvent {
4101
- bodyAsJson?: string;
4102
- }
4103
- interface MessageEnvelope {
4104
- /**
4105
- * App instance ID.
4106
- * @format GUID
4107
- */
4108
- instanceId?: string | null;
4109
- /**
4110
- * Event type.
4111
- * @maxLength 150
4112
- */
4113
- eventType?: string;
4114
- /** The identification type and identity data. */
4115
- identity?: IdentificationData;
4116
- /** Stringify payload. */
4117
- data?: string;
4118
- /** Details related to the account */
4119
- accountInfo?: AccountInfo;
4120
- }
4121
- interface IdentificationData extends IdentificationDataIdOneOf {
4122
- /**
4123
- * ID of a site visitor that has not logged in to the site.
4124
- * @format GUID
4125
- */
4126
- anonymousVisitorId?: string;
4127
- /**
4128
- * ID of a site visitor that has logged in to the site.
4129
- * @format GUID
4130
- */
4131
- memberId?: string;
4132
- /**
4133
- * ID of a Wix user (site owner, contributor, etc.).
4134
- * @format GUID
4135
- */
4136
- wixUserId?: string;
4137
- /**
4138
- * ID of an app.
4139
- * @format GUID
4140
- */
4141
- appId?: string;
4142
- /** @readonly */
4143
- identityType?: WebhookIdentityTypeWithLiterals;
4144
- }
4145
- /** @oneof */
4146
- interface IdentificationDataIdOneOf {
4147
- /**
4148
- * ID of a site visitor that has not logged in to the site.
4149
- * @format GUID
4150
- */
4151
- anonymousVisitorId?: string;
4152
- /**
4153
- * ID of a site visitor that has logged in to the site.
4154
- * @format GUID
4155
- */
4156
- memberId?: string;
4157
- /**
4158
- * ID of a Wix user (site owner, contributor, etc.).
4159
- * @format GUID
4160
- */
4161
- wixUserId?: string;
4162
- /**
4163
- * ID of an app.
4164
- * @format GUID
4165
- */
4166
- appId?: string;
4167
- }
4168
- declare enum WebhookIdentityType {
4169
- UNKNOWN = "UNKNOWN",
4170
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4171
- MEMBER = "MEMBER",
4172
- WIX_USER = "WIX_USER",
4173
- APP = "APP"
4174
- }
4175
- /** @enumType */
4176
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4177
- interface AccountInfo {
4178
- /**
4179
- * ID of the Wix account associated with the event.
4180
- * @format GUID
4181
- */
4182
- accountId?: string | null;
4183
- /**
4184
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
4185
- * @format GUID
4186
- */
4187
- parentAccountId?: string | null;
4188
- /**
4189
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4190
- * @format GUID
4191
- */
4192
- siteId?: string | null;
4193
- }
4194
- interface GetDraftPostTotalsRequest {
4195
- /**
4196
- * Group results by fields (defaults to grouping by status).
4197
- * If, for example, grouping by language is passed, language values in response will be filled.
4198
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4199
- * @maxSize 10
4200
- */
4201
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4202
- /**
4203
- * Optional language filter by provided language code. Useful in multilingual context.
4204
- * @format LANGUAGE_TAG
4205
- */
4206
- language?: string | null;
4207
- }
4208
- declare enum TotalDraftPostsGroupingField {
4209
- /** Groups results by status. */
4210
- STATUS = "STATUS",
4211
- /** Groups results by language. */
4212
- LANGUAGE = "LANGUAGE"
4213
- }
4214
- /** @enumType */
4215
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4216
- interface GetDraftPostTotalsResponse {
4217
- /** Draft post totals. */
4218
- totalDraftPosts?: TotalDraftPosts[];
4219
- }
4220
- interface TotalDraftPosts {
4221
- /** Draft post totals in that group. */
4222
- total?: number;
4223
- /** Draft post status (only has value when grouping by status, otherwise null). */
4224
- status?: StatusWithLiterals;
4225
- /**
4226
- * Draft post language code (only has value when grouping by language, otherwise null).
4227
- * @format LANGUAGE_TAG
4228
- */
4229
- language?: string | null;
4230
- }
4231
- interface TranslateDraftRequest {
4232
- /**
4233
- * Source post or draft ID
4234
- * @format GUID
4235
- */
4236
- postId?: string;
4237
- /**
4238
- * Translation language
4239
- * @format LANGUAGE_TAG
4240
- */
4241
- language?: string;
4242
- /**
4243
- * List of draft post fields to be included if entities are present in the response.
4244
- * Base fieldset, which is default, will return all core draft post properties.
4245
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4246
- * @maxSize 10
4247
- */
4248
- fieldsets?: FieldWithLiterals[];
4249
- /**
4250
- * Performs automatic translation of the title and the content of the draft post to the target language.
4251
- * @internal
4252
- */
4253
- useAutoTranslation?: boolean;
4254
- }
4255
- interface TranslateDraftResponse {
4256
- /** Draft post. */
4257
- draftPost?: DraftPost;
4258
- }
4259
- interface IsDraftPostAutoTranslatableRequest {
4260
- /**
4261
- * Source post or draft ID.
4262
- * @format GUID
4263
- */
4264
- draftPostId?: string;
4265
- }
4266
- interface IsDraftPostAutoTranslatableResponse {
4267
- /**
4268
- * Source draft post ID.
4269
- * @format GUID
4270
- */
4271
- draftPostId?: string;
4272
- /** Indicates if enough machine translation credits are available for the draft post translation. */
4273
- translatable?: boolean;
4274
- /** Draft post title word count. */
4275
- titleWordCount?: number;
4276
- /** Draft post content word count. */
4277
- contentWordCount?: number;
4278
- /** Word credits available for auto translation. */
4279
- availableAutoTranslateWords?: number;
4280
- /** Word credits available after auto translation would be done. */
4281
- availableAutoTranslateWordsAfter?: number;
4282
- /** Content text character count. */
4283
- contentTextCharacterCount?: number;
4284
- }
4285
- interface UpdateDraftPostLanguageRequest {
4286
- /**
4287
- * Source draft post ID
4288
- * @format GUID
4289
- */
4290
- postId?: string;
4291
- /**
4292
- * New language to replace to
4293
- * @minLength 2
4294
- * @format LANGUAGE_TAG
4295
- */
4296
- language?: string;
4297
- /**
4298
- * List of draft post fields to be included if entities are present in the response.
4299
- * Base fieldset, which is default, will return all core draft post properties.
4300
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4301
- * @maxSize 10
4302
- */
4303
- fieldsets?: FieldWithLiterals[];
4304
- }
4305
- interface UpdateDraftPostLanguageResponse {
4306
- /** Draft post */
4307
- draftPost?: DraftPost;
4308
- }
4309
- interface BulkRevertToUnpublishedRequest {
4239
+ interface BulkRevertToUnpublishedRequest {
4310
4240
  /**
4311
4241
  * Source post IDs.
4312
4242
  * @minSize 1
@@ -4453,6 +4383,84 @@ interface MarkPostAsInModerationResponse {
4453
4383
  /** Updated post draft. */
4454
4384
  draftPost?: DraftPost;
4455
4385
  }
4386
+ interface TranslateDraftRequest {
4387
+ /**
4388
+ * Source post or draft ID
4389
+ * @format GUID
4390
+ */
4391
+ postId?: string;
4392
+ /**
4393
+ * Translation language
4394
+ * @format LANGUAGE_TAG
4395
+ */
4396
+ language?: string;
4397
+ /**
4398
+ * List of draft post fields to be included if entities are present in the response.
4399
+ * Base fieldset, which is default, will return all core draft post properties.
4400
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4401
+ * @maxSize 10
4402
+ */
4403
+ fieldsets?: FieldWithLiterals[];
4404
+ /**
4405
+ * Performs automatic translation of the title and the content of the draft post to the target language.
4406
+ * @internal
4407
+ */
4408
+ useAutoTranslation?: boolean;
4409
+ }
4410
+ interface TranslateDraftResponse {
4411
+ /** Draft post. */
4412
+ draftPost?: DraftPost;
4413
+ }
4414
+ interface IsDraftPostAutoTranslatableRequest {
4415
+ /**
4416
+ * Source post or draft ID.
4417
+ * @format GUID
4418
+ */
4419
+ draftPostId?: string;
4420
+ }
4421
+ interface IsDraftPostAutoTranslatableResponse {
4422
+ /**
4423
+ * Source draft post ID.
4424
+ * @format GUID
4425
+ */
4426
+ draftPostId?: string;
4427
+ /** Indicates if enough machine translation credits are available for the draft post translation. */
4428
+ translatable?: boolean;
4429
+ /** Draft post title word count. */
4430
+ titleWordCount?: number;
4431
+ /** Draft post content word count. */
4432
+ contentWordCount?: number;
4433
+ /** Word credits available for auto translation. */
4434
+ availableAutoTranslateWords?: number;
4435
+ /** Word credits available after auto translation would be done. */
4436
+ availableAutoTranslateWordsAfter?: number;
4437
+ /** Content text character count. */
4438
+ contentTextCharacterCount?: number;
4439
+ }
4440
+ interface UpdateDraftPostLanguageRequest {
4441
+ /**
4442
+ * Source draft post ID
4443
+ * @format GUID
4444
+ */
4445
+ postId?: string;
4446
+ /**
4447
+ * New language to replace to
4448
+ * @minLength 2
4449
+ * @format LANGUAGE_TAG
4450
+ */
4451
+ language?: string;
4452
+ /**
4453
+ * List of draft post fields to be included if entities are present in the response.
4454
+ * Base fieldset, which is default, will return all core draft post properties.
4455
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4456
+ * @maxSize 10
4457
+ */
4458
+ fieldsets?: FieldWithLiterals[];
4459
+ }
4460
+ interface UpdateDraftPostLanguageResponse {
4461
+ /** Draft post */
4462
+ draftPost?: DraftPost;
4463
+ }
4456
4464
 
4457
4465
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4458
4466
  getUrl: (context: any) => string;