@wix/auto_sdk_blog_draft-posts 1.0.82 → 1.0.83

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.
@@ -3514,79 +3514,6 @@ interface DraftPostCount {
3514
3514
  /** Number of posts. */
3515
3515
  postCount?: number;
3516
3516
  }
3517
- interface TranslateDraftRequest {
3518
- /**
3519
- * Source post or draft ID
3520
- * @format GUID
3521
- */
3522
- postId?: string;
3523
- /**
3524
- * Translation language
3525
- * @format LANGUAGE_TAG
3526
- */
3527
- language?: string;
3528
- /**
3529
- * List of draft post fields to be included if entities are present in the response.
3530
- * Base fieldset, which is default, will return all core draft post properties.
3531
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3532
- * @maxSize 10
3533
- */
3534
- fieldsets?: FieldWithLiterals[];
3535
- }
3536
- interface TranslateDraftResponse {
3537
- /** Draft post. */
3538
- draftPost?: DraftPost;
3539
- }
3540
- interface IsDraftPostAutoTranslatableRequest {
3541
- /**
3542
- * Source post or draft ID.
3543
- * @format GUID
3544
- */
3545
- draftPostId?: string;
3546
- }
3547
- interface IsDraftPostAutoTranslatableResponse {
3548
- /**
3549
- * Source draft post ID.
3550
- * @format GUID
3551
- */
3552
- draftPostId?: string;
3553
- /** Indicates if enough machine translation credits are available for the draft post translation. */
3554
- translatable?: boolean;
3555
- /** Draft post title word count. */
3556
- titleWordCount?: number;
3557
- /** Draft post content word count. */
3558
- contentWordCount?: number;
3559
- /** Word credits available for auto translation. */
3560
- availableAutoTranslateWords?: number;
3561
- /** Word credits available after auto translation would be done. */
3562
- availableAutoTranslateWordsAfter?: number;
3563
- /** Content text character count. */
3564
- contentTextCharacterCount?: number;
3565
- }
3566
- interface UpdateDraftPostLanguageRequest {
3567
- /**
3568
- * Source draft post ID
3569
- * @format GUID
3570
- */
3571
- postId?: string;
3572
- /**
3573
- * New language to replace to
3574
- * @minLength 2
3575
- * @format LANGUAGE_TAG
3576
- */
3577
- language?: string;
3578
- /**
3579
- * List of draft post fields to be included if entities are present in the response.
3580
- * Base fieldset, which is default, will return all core draft post properties.
3581
- * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3582
- * @maxSize 10
3583
- */
3584
- fieldsets?: FieldWithLiterals[];
3585
- }
3586
- interface UpdateDraftPostLanguageResponse {
3587
- /** Draft post */
3588
- draftPost?: DraftPost;
3589
- }
3590
3517
  interface BulkRevertToUnpublishedRequest {
3591
3518
  /**
3592
3519
  * Source post IDs.
@@ -3698,6 +3625,79 @@ interface MarkPostAsInModerationResponse {
3698
3625
  /** Updated post draft. */
3699
3626
  draftPost?: DraftPost;
3700
3627
  }
3628
+ interface TranslateDraftRequest {
3629
+ /**
3630
+ * Source post or draft ID
3631
+ * @format GUID
3632
+ */
3633
+ postId?: string;
3634
+ /**
3635
+ * Translation language
3636
+ * @format LANGUAGE_TAG
3637
+ */
3638
+ language?: string;
3639
+ /**
3640
+ * List of draft post fields to be included if entities are present in the response.
3641
+ * Base fieldset, which is default, will return all core draft post properties.
3642
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3643
+ * @maxSize 10
3644
+ */
3645
+ fieldsets?: FieldWithLiterals[];
3646
+ }
3647
+ interface TranslateDraftResponse {
3648
+ /** Draft post. */
3649
+ draftPost?: DraftPost;
3650
+ }
3651
+ interface IsDraftPostAutoTranslatableRequest {
3652
+ /**
3653
+ * Source post or draft ID.
3654
+ * @format GUID
3655
+ */
3656
+ draftPostId?: string;
3657
+ }
3658
+ interface IsDraftPostAutoTranslatableResponse {
3659
+ /**
3660
+ * Source draft post ID.
3661
+ * @format GUID
3662
+ */
3663
+ draftPostId?: string;
3664
+ /** Indicates if enough machine translation credits are available for the draft post translation. */
3665
+ translatable?: boolean;
3666
+ /** Draft post title word count. */
3667
+ titleWordCount?: number;
3668
+ /** Draft post content word count. */
3669
+ contentWordCount?: number;
3670
+ /** Word credits available for auto translation. */
3671
+ availableAutoTranslateWords?: number;
3672
+ /** Word credits available after auto translation would be done. */
3673
+ availableAutoTranslateWordsAfter?: number;
3674
+ /** Content text character count. */
3675
+ contentTextCharacterCount?: number;
3676
+ }
3677
+ interface UpdateDraftPostLanguageRequest {
3678
+ /**
3679
+ * Source draft post ID
3680
+ * @format GUID
3681
+ */
3682
+ postId?: string;
3683
+ /**
3684
+ * New language to replace to
3685
+ * @minLength 2
3686
+ * @format LANGUAGE_TAG
3687
+ */
3688
+ language?: string;
3689
+ /**
3690
+ * List of draft post fields to be included if entities are present in the response.
3691
+ * Base fieldset, which is default, will return all core draft post properties.
3692
+ * Example: When URL fieldset is selected, returned draft post will have a set of base properties and draft post preview url.
3693
+ * @maxSize 10
3694
+ */
3695
+ fieldsets?: FieldWithLiterals[];
3696
+ }
3697
+ interface UpdateDraftPostLanguageResponse {
3698
+ /** Draft post */
3699
+ draftPost?: DraftPost;
3700
+ }
3701
3701
 
3702
3702
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3703
3703
  getUrl: (context: any) => string;