@wix/auto_sdk_blog_draft-posts 1.0.98 → 1.0.100

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 +272 -272
  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 +274 -274
  7. package/build/cjs/meta.js +13 -13
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.js +1331 -1316
  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 +272 -272
  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 +274 -274
  17. package/build/es/meta.mjs +13 -13
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/es/schemas.mjs +1331 -1316
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +301 -301
  22. package/build/internal/cjs/meta.d.ts +321 -321
  23. package/build/internal/es/index.typings.d.mts +301 -301
  24. package/build/internal/es/meta.d.mts +321 -321
  25. package/package.json +2 -2
  26. package/build/internal/cjs/index.js +0 -5392
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -4756
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -4159
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/cjs/schemas.js +0 -2886
  33. package/build/internal/cjs/schemas.js.map +0 -1
  34. package/build/internal/es/index.mjs +0 -5278
  35. package/build/internal/es/index.mjs.map +0 -1
  36. package/build/internal/es/index.typings.mjs +0 -4644
  37. package/build/internal/es/index.typings.mjs.map +0 -1
  38. package/build/internal/es/meta.mjs +0 -4046
  39. package/build/internal/es/meta.mjs.map +0 -1
  40. package/build/internal/es/schemas.mjs +0 -2822
  41. package/build/internal/es/schemas.mjs.map +0 -1
@@ -3448,6 +3448,10 @@ interface DraftPostTranslation {
3448
3448
  /** Post URL. */
3449
3449
  url?: PageUrl;
3450
3450
  }
3451
+ interface InitialDraftPostsCopied {
3452
+ /** Number of draft posts copied. */
3453
+ count?: number;
3454
+ }
3451
3455
  interface DraftCategoriesUpdated {
3452
3456
  /**
3453
3457
  * Draft post ID.
@@ -3486,244 +3490,6 @@ interface DraftTagsUpdated {
3486
3490
  */
3487
3491
  previousTags?: string[];
3488
3492
  }
3489
- interface GetDraftPostTotalsRequest {
3490
- /**
3491
- * Group results by fields (defaults to grouping by status).
3492
- * If, for example, grouping by language is passed, language values in response will be filled.
3493
- * If, for example, grouping by language is not passed, null values will be filled in language field in response.
3494
- * @maxSize 10
3495
- */
3496
- groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
3497
- /**
3498
- * Optional language filter by provided language code. Useful in multilingual context.
3499
- * @format LANGUAGE_TAG
3500
- */
3501
- language?: string | null;
3502
- }
3503
- declare enum TotalDraftPostsGroupingField {
3504
- /** Groups results by status. */
3505
- STATUS = "STATUS",
3506
- /** Groups results by language. */
3507
- LANGUAGE = "LANGUAGE"
3508
- }
3509
- /** @enumType */
3510
- type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
3511
- interface GetDraftPostTotalsResponse {
3512
- /** Draft post totals. */
3513
- totalDraftPosts?: TotalDraftPosts[];
3514
- }
3515
- interface TotalDraftPosts {
3516
- /** Draft post totals in that group. */
3517
- total?: number;
3518
- /** Draft post status (only has value when grouping by status, otherwise null). */
3519
- status?: StatusWithLiterals;
3520
- /**
3521
- * Draft post language code (only has value when grouping by language, otherwise null).
3522
- * @format LANGUAGE_TAG
3523
- */
3524
- language?: string | null;
3525
- }
3526
- interface DomainEvent extends DomainEventBodyOneOf {
3527
- createdEvent?: EntityCreatedEvent;
3528
- updatedEvent?: EntityUpdatedEvent;
3529
- deletedEvent?: EntityDeletedEvent;
3530
- actionEvent?: ActionEvent;
3531
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3532
- id?: string;
3533
- /**
3534
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3535
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3536
- */
3537
- entityFqdn?: string;
3538
- /**
3539
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
3540
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3541
- */
3542
- slug?: string;
3543
- /** ID of the entity associated with the event. */
3544
- entityId?: string;
3545
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3546
- eventTime?: Date | null;
3547
- /**
3548
- * Whether the event was triggered as a result of a privacy regulation application
3549
- * (for example, GDPR).
3550
- */
3551
- triggeredByAnonymizeRequest?: boolean | null;
3552
- /** If present, indicates the action that triggered the event. */
3553
- originatedFrom?: string | null;
3554
- /**
3555
- * 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.
3556
- * 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.
3557
- */
3558
- entityEventSequence?: string | null;
3559
- }
3560
- /** @oneof */
3561
- interface DomainEventBodyOneOf {
3562
- createdEvent?: EntityCreatedEvent;
3563
- updatedEvent?: EntityUpdatedEvent;
3564
- deletedEvent?: EntityDeletedEvent;
3565
- actionEvent?: ActionEvent;
3566
- }
3567
- interface EntityCreatedEvent {
3568
- entityAsJson?: string;
3569
- /**
3570
- * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
3571
- * @internal
3572
- */
3573
- triggeredByUndelete?: boolean | null;
3574
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
3575
- restoreInfo?: RestoreInfo;
3576
- /**
3577
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3578
- * @internal
3579
- */
3580
- additionalMetadataAsJson?: string | null;
3581
- }
3582
- interface RestoreInfo {
3583
- deletedDate?: Date | null;
3584
- }
3585
- interface EntityUpdatedEvent {
3586
- /**
3587
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
3588
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
3589
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
3590
- */
3591
- currentEntityAsJson?: string;
3592
- /**
3593
- * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
3594
- * wont populate it / have any reference to it in the API.
3595
- * 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,
3596
- * the developer should send only the new (current) entity.
3597
- * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
3598
- * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
3599
- * @internal
3600
- * @deprecated
3601
- */
3602
- previousEntityAsJson?: string | null;
3603
- /**
3604
- * Map of fully qualified field paths to their previous values for fields that changed.
3605
- * 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)
3606
- * @internal
3607
- */
3608
- modifiedFields?: Record<string, any>;
3609
- /**
3610
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3611
- * @internal
3612
- */
3613
- additionalMetadataAsJson?: string | null;
3614
- }
3615
- interface EntityDeletedEvent {
3616
- /**
3617
- * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
3618
- * @internal
3619
- */
3620
- movedToTrash?: boolean | null;
3621
- /** Entity that was deleted. */
3622
- deletedEntityAsJson?: string | null;
3623
- /**
3624
- * Optional domain-specific metadata defined by the API owner, encoded as JSON.
3625
- * @internal
3626
- */
3627
- additionalMetadataAsJson?: string | null;
3628
- }
3629
- interface ActionEvent {
3630
- bodyAsJson?: string;
3631
- }
3632
- interface MessageEnvelope {
3633
- /**
3634
- * App instance ID.
3635
- * @format GUID
3636
- */
3637
- instanceId?: string | null;
3638
- /**
3639
- * Event type.
3640
- * @maxLength 150
3641
- */
3642
- eventType?: string;
3643
- /** The identification type and identity data. */
3644
- identity?: IdentificationData;
3645
- /** Stringify payload. */
3646
- data?: string;
3647
- /** Details related to the account */
3648
- accountInfo?: AccountInfo;
3649
- }
3650
- interface IdentificationData extends IdentificationDataIdOneOf {
3651
- /**
3652
- * ID of a site visitor that has not logged in to the site.
3653
- * @format GUID
3654
- */
3655
- anonymousVisitorId?: string;
3656
- /**
3657
- * ID of a site visitor that has logged in to the site.
3658
- * @format GUID
3659
- */
3660
- memberId?: string;
3661
- /**
3662
- * ID of a Wix user (site owner, contributor, etc.).
3663
- * @format GUID
3664
- */
3665
- wixUserId?: string;
3666
- /**
3667
- * ID of an app.
3668
- * @format GUID
3669
- */
3670
- appId?: string;
3671
- /** @readonly */
3672
- identityType?: WebhookIdentityTypeWithLiterals;
3673
- }
3674
- /** @oneof */
3675
- interface IdentificationDataIdOneOf {
3676
- /**
3677
- * ID of a site visitor that has not logged in to the site.
3678
- * @format GUID
3679
- */
3680
- anonymousVisitorId?: string;
3681
- /**
3682
- * ID of a site visitor that has logged in to the site.
3683
- * @format GUID
3684
- */
3685
- memberId?: string;
3686
- /**
3687
- * ID of a Wix user (site owner, contributor, etc.).
3688
- * @format GUID
3689
- */
3690
- wixUserId?: string;
3691
- /**
3692
- * ID of an app.
3693
- * @format GUID
3694
- */
3695
- appId?: string;
3696
- }
3697
- declare enum WebhookIdentityType {
3698
- UNKNOWN = "UNKNOWN",
3699
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3700
- MEMBER = "MEMBER",
3701
- WIX_USER = "WIX_USER",
3702
- APP = "APP"
3703
- }
3704
- /** @enumType */
3705
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3706
- interface AccountInfo {
3707
- /**
3708
- * ID of the Wix account associated with the event.
3709
- * @format GUID
3710
- */
3711
- accountId?: string | null;
3712
- /**
3713
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
3714
- * @format GUID
3715
- */
3716
- parentAccountId?: string | null;
3717
- /**
3718
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
3719
- * @format GUID
3720
- */
3721
- siteId?: string | null;
3722
- }
3723
- interface InitialDraftPostsCopied {
3724
- /** Number of draft posts copied. */
3725
- count?: number;
3726
- }
3727
3493
  interface CreateDraftPostRequest {
3728
3494
  /** Draft post to create. */
3729
3495
  draftPost: DraftPost;
@@ -4373,12 +4139,324 @@ interface DraftPostCount {
4373
4139
  /** Number of posts. */
4374
4140
  postCount?: number;
4375
4141
  }
4376
- interface BulkRevertToUnpublishedRequest {
4142
+ interface DomainEvent extends DomainEventBodyOneOf {
4143
+ createdEvent?: EntityCreatedEvent;
4144
+ updatedEvent?: EntityUpdatedEvent;
4145
+ deletedEvent?: EntityDeletedEvent;
4146
+ actionEvent?: ActionEvent;
4147
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
4148
+ id?: string;
4377
4149
  /**
4378
- * Source post IDs.
4379
- * @minSize 1
4380
- * @maxSize 100
4381
- * @format GUID
4150
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
4151
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
4152
+ */
4153
+ entityFqdn?: string;
4154
+ /**
4155
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
4156
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
4157
+ */
4158
+ slug?: string;
4159
+ /** ID of the entity associated with the event. */
4160
+ entityId?: string;
4161
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
4162
+ eventTime?: Date | null;
4163
+ /**
4164
+ * Whether the event was triggered as a result of a privacy regulation application
4165
+ * (for example, GDPR).
4166
+ */
4167
+ triggeredByAnonymizeRequest?: boolean | null;
4168
+ /** If present, indicates the action that triggered the event. */
4169
+ originatedFrom?: string | null;
4170
+ /**
4171
+ * 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.
4172
+ * 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.
4173
+ */
4174
+ entityEventSequence?: string | null;
4175
+ }
4176
+ /** @oneof */
4177
+ interface DomainEventBodyOneOf {
4178
+ createdEvent?: EntityCreatedEvent;
4179
+ updatedEvent?: EntityUpdatedEvent;
4180
+ deletedEvent?: EntityDeletedEvent;
4181
+ actionEvent?: ActionEvent;
4182
+ }
4183
+ interface EntityCreatedEvent {
4184
+ entityAsJson?: string;
4185
+ /**
4186
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
4187
+ * @internal
4188
+ */
4189
+ triggeredByUndelete?: boolean | null;
4190
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
4191
+ restoreInfo?: RestoreInfo;
4192
+ /**
4193
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4194
+ * @internal
4195
+ */
4196
+ additionalMetadataAsJson?: string | null;
4197
+ }
4198
+ interface RestoreInfo {
4199
+ deletedDate?: Date | null;
4200
+ }
4201
+ interface EntityUpdatedEvent {
4202
+ /**
4203
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
4204
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
4205
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
4206
+ */
4207
+ currentEntityAsJson?: string;
4208
+ /**
4209
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
4210
+ * wont populate it / have any reference to it in the API.
4211
+ * 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,
4212
+ * the developer should send only the new (current) entity.
4213
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
4214
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
4215
+ * @internal
4216
+ * @deprecated
4217
+ */
4218
+ previousEntityAsJson?: string | null;
4219
+ /**
4220
+ * Map of fully qualified field paths to their previous values for fields that changed.
4221
+ * 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)
4222
+ * @internal
4223
+ */
4224
+ modifiedFields?: Record<string, any>;
4225
+ /**
4226
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4227
+ * @internal
4228
+ */
4229
+ additionalMetadataAsJson?: string | null;
4230
+ }
4231
+ interface EntityDeletedEvent {
4232
+ /**
4233
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
4234
+ * @internal
4235
+ */
4236
+ movedToTrash?: boolean | null;
4237
+ /** Entity that was deleted. */
4238
+ deletedEntityAsJson?: string | null;
4239
+ /**
4240
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
4241
+ * @internal
4242
+ */
4243
+ additionalMetadataAsJson?: string | null;
4244
+ }
4245
+ interface ActionEvent {
4246
+ bodyAsJson?: string;
4247
+ }
4248
+ interface MessageEnvelope {
4249
+ /**
4250
+ * App instance ID.
4251
+ * @format GUID
4252
+ */
4253
+ instanceId?: string | null;
4254
+ /**
4255
+ * Event type.
4256
+ * @maxLength 150
4257
+ */
4258
+ eventType?: string;
4259
+ /** The identification type and identity data. */
4260
+ identity?: IdentificationData;
4261
+ /** Stringify payload. */
4262
+ data?: string;
4263
+ /** Details related to the account */
4264
+ accountInfo?: AccountInfo;
4265
+ }
4266
+ interface IdentificationData extends IdentificationDataIdOneOf {
4267
+ /**
4268
+ * ID of a site visitor that has not logged in to the site.
4269
+ * @format GUID
4270
+ */
4271
+ anonymousVisitorId?: string;
4272
+ /**
4273
+ * ID of a site visitor that has logged in to the site.
4274
+ * @format GUID
4275
+ */
4276
+ memberId?: string;
4277
+ /**
4278
+ * ID of a Wix user (site owner, contributor, etc.).
4279
+ * @format GUID
4280
+ */
4281
+ wixUserId?: string;
4282
+ /**
4283
+ * ID of an app.
4284
+ * @format GUID
4285
+ */
4286
+ appId?: string;
4287
+ /** @readonly */
4288
+ identityType?: WebhookIdentityTypeWithLiterals;
4289
+ }
4290
+ /** @oneof */
4291
+ interface IdentificationDataIdOneOf {
4292
+ /**
4293
+ * ID of a site visitor that has not logged in to the site.
4294
+ * @format GUID
4295
+ */
4296
+ anonymousVisitorId?: string;
4297
+ /**
4298
+ * ID of a site visitor that has logged in to the site.
4299
+ * @format GUID
4300
+ */
4301
+ memberId?: string;
4302
+ /**
4303
+ * ID of a Wix user (site owner, contributor, etc.).
4304
+ * @format GUID
4305
+ */
4306
+ wixUserId?: string;
4307
+ /**
4308
+ * ID of an app.
4309
+ * @format GUID
4310
+ */
4311
+ appId?: string;
4312
+ }
4313
+ declare enum WebhookIdentityType {
4314
+ UNKNOWN = "UNKNOWN",
4315
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
4316
+ MEMBER = "MEMBER",
4317
+ WIX_USER = "WIX_USER",
4318
+ APP = "APP"
4319
+ }
4320
+ /** @enumType */
4321
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
4322
+ interface AccountInfo {
4323
+ /**
4324
+ * ID of the Wix account associated with the event.
4325
+ * @format GUID
4326
+ */
4327
+ accountId?: string | null;
4328
+ /**
4329
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
4330
+ * @format GUID
4331
+ */
4332
+ parentAccountId?: string | null;
4333
+ /**
4334
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
4335
+ * @format GUID
4336
+ */
4337
+ siteId?: string | null;
4338
+ }
4339
+ interface GetDraftPostTotalsRequest {
4340
+ /**
4341
+ * Group results by fields (defaults to grouping by status).
4342
+ * If, for example, grouping by language is passed, language values in response will be filled.
4343
+ * If, for example, grouping by language is not passed, null values will be filled in language field in response.
4344
+ * @maxSize 10
4345
+ */
4346
+ groupBy?: TotalDraftPostsGroupingFieldWithLiterals[];
4347
+ /**
4348
+ * Optional language filter by provided language code. Useful in multilingual context.
4349
+ * @format LANGUAGE_TAG
4350
+ */
4351
+ language?: string | null;
4352
+ }
4353
+ declare enum TotalDraftPostsGroupingField {
4354
+ /** Groups results by status. */
4355
+ STATUS = "STATUS",
4356
+ /** Groups results by language. */
4357
+ LANGUAGE = "LANGUAGE"
4358
+ }
4359
+ /** @enumType */
4360
+ type TotalDraftPostsGroupingFieldWithLiterals = TotalDraftPostsGroupingField | 'STATUS' | 'LANGUAGE';
4361
+ interface GetDraftPostTotalsResponse {
4362
+ /** Draft post totals. */
4363
+ totalDraftPosts?: TotalDraftPosts[];
4364
+ }
4365
+ interface TotalDraftPosts {
4366
+ /** Draft post totals in that group. */
4367
+ total?: number;
4368
+ /** Draft post status (only has value when grouping by status, otherwise null). */
4369
+ status?: StatusWithLiterals;
4370
+ /**
4371
+ * Draft post language code (only has value when grouping by language, otherwise null).
4372
+ * @format LANGUAGE_TAG
4373
+ */
4374
+ language?: string | null;
4375
+ }
4376
+ interface TranslateDraftRequest {
4377
+ /**
4378
+ * Source post or draft ID
4379
+ * @format GUID
4380
+ */
4381
+ postId?: string;
4382
+ /**
4383
+ * Translation language
4384
+ * @format LANGUAGE_TAG
4385
+ */
4386
+ language?: string;
4387
+ /**
4388
+ * List of draft post fields to be included if entities are present in the response.
4389
+ * Base fieldset, which is default, will return all core draft post properties.
4390
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4391
+ * @maxSize 10
4392
+ */
4393
+ fieldsets?: FieldWithLiterals[];
4394
+ /**
4395
+ * Performs automatic translation of the title and the content of the draft post to the target language.
4396
+ * @internal
4397
+ */
4398
+ useAutoTranslation?: boolean;
4399
+ }
4400
+ interface TranslateDraftResponse {
4401
+ /** Draft post. */
4402
+ draftPost?: DraftPost;
4403
+ }
4404
+ interface IsDraftPostAutoTranslatableRequest {
4405
+ /**
4406
+ * Source post or draft ID.
4407
+ * @format GUID
4408
+ */
4409
+ draftPostId?: string;
4410
+ }
4411
+ interface IsDraftPostAutoTranslatableResponse {
4412
+ /**
4413
+ * Source draft post ID.
4414
+ * @format GUID
4415
+ */
4416
+ draftPostId?: string;
4417
+ /** Indicates if enough machine translation credits are available for the draft post translation. */
4418
+ translatable?: boolean;
4419
+ /** Draft post title word count. */
4420
+ titleWordCount?: number;
4421
+ /** Draft post content word count. */
4422
+ contentWordCount?: number;
4423
+ /** Word credits available for auto translation. */
4424
+ availableAutoTranslateWords?: number;
4425
+ /** Word credits available after auto translation would be done. */
4426
+ availableAutoTranslateWordsAfter?: number;
4427
+ /** Content text character count. */
4428
+ contentTextCharacterCount?: number;
4429
+ }
4430
+ interface UpdateDraftPostLanguageRequest {
4431
+ /**
4432
+ * Source draft post ID
4433
+ * @format GUID
4434
+ */
4435
+ postId?: string;
4436
+ /**
4437
+ * New language to replace to
4438
+ * @minLength 2
4439
+ * @format LANGUAGE_TAG
4440
+ */
4441
+ language?: string;
4442
+ /**
4443
+ * List of draft post fields to be included if entities are present in the response.
4444
+ * Base fieldset, which is default, will return all core draft post properties.
4445
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4446
+ * @maxSize 10
4447
+ */
4448
+ fieldsets?: FieldWithLiterals[];
4449
+ }
4450
+ interface UpdateDraftPostLanguageResponse {
4451
+ /** Draft post */
4452
+ draftPost?: DraftPost;
4453
+ }
4454
+ interface BulkRevertToUnpublishedRequest {
4455
+ /**
4456
+ * Source post IDs.
4457
+ * @minSize 1
4458
+ * @maxSize 100
4459
+ * @format GUID
4382
4460
  */
4383
4461
  postIds?: string[];
4384
4462
  /** Should full draft post be returned. */
@@ -4520,84 +4598,6 @@ interface MarkPostAsInModerationResponse {
4520
4598
  /** Updated post draft. */
4521
4599
  draftPost?: DraftPost;
4522
4600
  }
4523
- interface TranslateDraftRequest {
4524
- /**
4525
- * Source post or draft ID
4526
- * @format GUID
4527
- */
4528
- postId?: string;
4529
- /**
4530
- * Translation language
4531
- * @format LANGUAGE_TAG
4532
- */
4533
- language?: string;
4534
- /**
4535
- * List of draft post fields to be included if entities are present in the response.
4536
- * Base fieldset, which is default, will return all core draft post properties.
4537
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4538
- * @maxSize 10
4539
- */
4540
- fieldsets?: FieldWithLiterals[];
4541
- /**
4542
- * Performs automatic translation of the title and the content of the draft post to the target language.
4543
- * @internal
4544
- */
4545
- useAutoTranslation?: boolean;
4546
- }
4547
- interface TranslateDraftResponse {
4548
- /** Draft post. */
4549
- draftPost?: DraftPost;
4550
- }
4551
- interface IsDraftPostAutoTranslatableRequest {
4552
- /**
4553
- * Source post or draft ID.
4554
- * @format GUID
4555
- */
4556
- draftPostId?: string;
4557
- }
4558
- interface IsDraftPostAutoTranslatableResponse {
4559
- /**
4560
- * Source draft post ID.
4561
- * @format GUID
4562
- */
4563
- draftPostId?: string;
4564
- /** Indicates if enough machine translation credits are available for the draft post translation. */
4565
- translatable?: boolean;
4566
- /** Draft post title word count. */
4567
- titleWordCount?: number;
4568
- /** Draft post content word count. */
4569
- contentWordCount?: number;
4570
- /** Word credits available for auto translation. */
4571
- availableAutoTranslateWords?: number;
4572
- /** Word credits available after auto translation would be done. */
4573
- availableAutoTranslateWordsAfter?: number;
4574
- /** Content text character count. */
4575
- contentTextCharacterCount?: number;
4576
- }
4577
- interface UpdateDraftPostLanguageRequest {
4578
- /**
4579
- * Source draft post ID
4580
- * @format GUID
4581
- */
4582
- postId?: string;
4583
- /**
4584
- * New language to replace to
4585
- * @minLength 2
4586
- * @format LANGUAGE_TAG
4587
- */
4588
- language?: string;
4589
- /**
4590
- * List of draft post fields to be included if entities are present in the response.
4591
- * Base fieldset, which is default, will return all core draft post properties.
4592
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
4593
- * @maxSize 10
4594
- */
4595
- fieldsets?: FieldWithLiterals[];
4596
- }
4597
- interface UpdateDraftPostLanguageResponse {
4598
- /** Draft post */
4599
- draftPost?: DraftPost;
4600
- }
4601
4601
 
4602
4602
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4603
4603
  getUrl: (context: any) => string;