@wix/auto_sdk_blog_draft-posts 1.0.105 → 1.0.107

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.
package/build/cjs/meta.js CHANGED
@@ -106,7 +106,9 @@ __export(meta_exports, {
106
106
  queryDraftPosts: () => queryDraftPosts2,
107
107
  removeFromTrashBin: () => removeFromTrashBin2,
108
108
  restoreFromTrashBin: () => restoreFromTrashBin2,
109
- updateDraftPost: () => updateDraftPost2
109
+ translateDraft: () => translateDraft2,
110
+ updateDraftPost: () => updateDraftPost2,
111
+ updateDraftPostLanguage: () => updateDraftPostLanguage2
110
112
  });
111
113
  module.exports = __toCommonJS(meta_exports);
112
114
 
@@ -119,6 +121,165 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
119
121
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
120
122
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
121
123
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
124
+ function resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(opts) {
125
+ const domainToMappings = {
126
+ "api._api_base_domain_": [
127
+ {
128
+ srcPath: "/communities-blog-node-api",
129
+ destPath: ""
130
+ }
131
+ ],
132
+ "www._base_domain_": [
133
+ {
134
+ srcPath: "/_api/communities-blog-node-api",
135
+ destPath: ""
136
+ },
137
+ {
138
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
139
+ destPath: "/v2/stats"
140
+ }
141
+ ],
142
+ "apps._base_domain_": [
143
+ {
144
+ srcPath: "/_api/communities-blog-node-api",
145
+ destPath: ""
146
+ },
147
+ {
148
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
149
+ destPath: "/v2/stats"
150
+ }
151
+ ],
152
+ _: [
153
+ {
154
+ srcPath: "/_api/communities-blog-node-api",
155
+ destPath: ""
156
+ },
157
+ {
158
+ srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
159
+ destPath: "/_api/blogs/this"
160
+ },
161
+ {
162
+ srcPath: "/_api/communities-blog-node-api/_api/categories",
163
+ destPath: "/_api/categories"
164
+ },
165
+ {
166
+ srcPath: "/_api/communities-blog-node-api/_api/site-properties",
167
+ destPath: "/_api/site-properties"
168
+ },
169
+ {
170
+ srcPath: "/_api/communities-blog-node-api/_api/posts/content",
171
+ destPath: "/_api/posts/content"
172
+ },
173
+ {
174
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
175
+ destPath: "/v2/stats"
176
+ }
177
+ ],
178
+ "editor._base_domain_": [
179
+ {
180
+ srcPath: "/_api/communities-blog-node-api",
181
+ destPath: ""
182
+ }
183
+ ],
184
+ "blocks._base_domain_": [
185
+ {
186
+ srcPath: "/_api/communities-blog-node-api",
187
+ destPath: ""
188
+ }
189
+ ],
190
+ "create.editorx": [
191
+ {
192
+ srcPath: "/_api/communities-blog-node-api",
193
+ destPath: ""
194
+ }
195
+ ],
196
+ "*.dev.wix-code.com": [
197
+ {
198
+ srcPath: "/_api/communities-blog-node-api",
199
+ destPath: ""
200
+ }
201
+ ],
202
+ "*.pub.wix-code.com": [
203
+ {
204
+ srcPath: "/_api/communities-blog-node-api",
205
+ destPath: ""
206
+ }
207
+ ],
208
+ "bo._base_domain_": [
209
+ {
210
+ srcPath: "/_api/communities-blog-node-api",
211
+ destPath: ""
212
+ },
213
+ {
214
+ srcPath: "/_api/communities-blog-node-api",
215
+ destPath: ""
216
+ }
217
+ ],
218
+ "wixbo.ai": [
219
+ {
220
+ srcPath: "/_api/communities-blog-node-api",
221
+ destPath: ""
222
+ },
223
+ {
224
+ srcPath: "/_api/communities-blog-node-api",
225
+ destPath: ""
226
+ }
227
+ ],
228
+ "wix-bo.com": [
229
+ {
230
+ srcPath: "/_api/communities-blog-node-api",
231
+ destPath: ""
232
+ },
233
+ {
234
+ srcPath: "/_api/communities-blog-node-api",
235
+ destPath: ""
236
+ }
237
+ ],
238
+ "manage._base_domain_": [
239
+ {
240
+ srcPath: "/_api/communities-blog-node-api",
241
+ destPath: ""
242
+ }
243
+ ],
244
+ "social-blog._base_domain_": [
245
+ {
246
+ srcPath: "/_api/communities-blog-node-api",
247
+ destPath: ""
248
+ }
249
+ ],
250
+ "editor.wixapps.net": [
251
+ {
252
+ srcPath: "/_api/communities-blog-node-api",
253
+ destPath: ""
254
+ }
255
+ ],
256
+ "dev._base_domain_": [
257
+ {
258
+ srcPath: "/_api/communities-blog-node-api",
259
+ destPath: ""
260
+ }
261
+ ],
262
+ "www.wixapis.com": [
263
+ {
264
+ srcPath: "/blog/v2",
265
+ destPath: "/v2"
266
+ },
267
+ {
268
+ srcPath: "/blog/v3",
269
+ destPath: "/v3"
270
+ },
271
+ {
272
+ srcPath: "/v2/stats",
273
+ destPath: "/v2/stats"
274
+ },
275
+ {
276
+ srcPath: "/blog/v2/stats",
277
+ destPath: "/v2/stats"
278
+ }
279
+ ]
280
+ };
281
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
282
+ }
122
283
  function resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(opts) {
123
284
  const domainToMappings = {
124
285
  _api_base_domain_: [
@@ -3200,6 +3361,388 @@ function publishDraftPost(payload) {
3200
3361
  }
3201
3362
  return __publishDraftPost;
3202
3363
  }
3364
+ function translateDraft(payload) {
3365
+ function __translateDraft({ host }) {
3366
+ const metadata = {
3367
+ entityFqdn: "wix.blog.v3.draft",
3368
+ method: "POST",
3369
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.TranslateDraft",
3370
+ packageName: PACKAGE_NAME,
3371
+ migrationOptions: {
3372
+ optInTransformResponse: true
3373
+ },
3374
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
3375
+ { protoPath: "/v3/multilingual/draft/{postId}", data: payload, host }
3376
+ ),
3377
+ data: payload,
3378
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
3379
+ {
3380
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
3381
+ paths: [
3382
+ { path: "draftPost.editedDate" },
3383
+ { path: "draftPost.scheduledPublishDate" },
3384
+ { path: "draftPost.firstPublishedDate" },
3385
+ { path: "draftPost.createdDate" },
3386
+ { path: "draftPost.heroImage.urlExpirationDate" },
3387
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
3388
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
3389
+ { path: "draftPost.moderationDetails.submittedDate" },
3390
+ { path: "draftPost.moderationDetails.moderationDate" },
3391
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
3392
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
3393
+ {
3394
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
3395
+ },
3396
+ {
3397
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
3398
+ },
3399
+ {
3400
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
3401
+ }
3402
+ ]
3403
+ },
3404
+ {
3405
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
3406
+ paths: [
3407
+ { path: "draftPost.heroImage.focalPoint.x" },
3408
+ { path: "draftPost.heroImage.focalPoint.y" },
3409
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
3410
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
3411
+ {
3412
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
3413
+ },
3414
+ {
3415
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
3416
+ },
3417
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
3418
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
3419
+ {
3420
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
3421
+ },
3422
+ {
3423
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
3424
+ },
3425
+ {
3426
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
3427
+ },
3428
+ {
3429
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
3430
+ },
3431
+ {
3432
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
3433
+ },
3434
+ {
3435
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
3436
+ },
3437
+ {
3438
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
3439
+ },
3440
+ {
3441
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
3442
+ },
3443
+ {
3444
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
3445
+ },
3446
+ {
3447
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
3448
+ },
3449
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
3450
+ { path: "draftPost.richContent.nodes.imageData.crop.x" },
3451
+ { path: "draftPost.richContent.nodes.imageData.crop.y" },
3452
+ { path: "draftPost.richContent.nodes.imageData.crop.width" },
3453
+ { path: "draftPost.richContent.nodes.imageData.crop.height" },
3454
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
3455
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
3456
+ {
3457
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
3458
+ },
3459
+ {
3460
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
3461
+ },
3462
+ {
3463
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
3464
+ },
3465
+ {
3466
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
3467
+ },
3468
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
3469
+ {
3470
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
3471
+ },
3472
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
3473
+ {
3474
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
3475
+ },
3476
+ {
3477
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
3478
+ },
3479
+ {
3480
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3481
+ },
3482
+ {
3483
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3484
+ },
3485
+ {
3486
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3487
+ },
3488
+ {
3489
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
3490
+ },
3491
+ {
3492
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3493
+ },
3494
+ {
3495
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3496
+ },
3497
+ {
3498
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3499
+ },
3500
+ {
3501
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
3502
+ },
3503
+ {
3504
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
3505
+ },
3506
+ {
3507
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
3508
+ },
3509
+ {
3510
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
3511
+ },
3512
+ {
3513
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
3514
+ },
3515
+ {
3516
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3517
+ },
3518
+ { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
3519
+ {
3520
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
3521
+ },
3522
+ {
3523
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
3524
+ },
3525
+ {
3526
+ path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
3527
+ },
3528
+ {
3529
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
3530
+ },
3531
+ {
3532
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3533
+ },
3534
+ {
3535
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3536
+ },
3537
+ {
3538
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3539
+ },
3540
+ { path: "draftPost.richContent.nodes.tocData.fontSize" },
3541
+ { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
3542
+ {
3543
+ path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
3544
+ }
3545
+ ]
3546
+ }
3547
+ ])
3548
+ };
3549
+ return metadata;
3550
+ }
3551
+ return __translateDraft;
3552
+ }
3553
+ function updateDraftPostLanguage(payload) {
3554
+ function __updateDraftPostLanguage({ host }) {
3555
+ const metadata = {
3556
+ entityFqdn: "wix.blog.v3.draft",
3557
+ method: "POST",
3558
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.UpdateDraftPostLanguage",
3559
+ packageName: PACKAGE_NAME,
3560
+ migrationOptions: {
3561
+ optInTransformResponse: true
3562
+ },
3563
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
3564
+ {
3565
+ protoPath: "/v3/multilingual/update-draft-post-language/{postId}",
3566
+ data: payload,
3567
+ host
3568
+ }
3569
+ ),
3570
+ data: payload,
3571
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
3572
+ {
3573
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
3574
+ paths: [
3575
+ { path: "draftPost.editedDate" },
3576
+ { path: "draftPost.scheduledPublishDate" },
3577
+ { path: "draftPost.firstPublishedDate" },
3578
+ { path: "draftPost.createdDate" },
3579
+ { path: "draftPost.heroImage.urlExpirationDate" },
3580
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
3581
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
3582
+ { path: "draftPost.moderationDetails.submittedDate" },
3583
+ { path: "draftPost.moderationDetails.moderationDate" },
3584
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
3585
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
3586
+ {
3587
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
3588
+ },
3589
+ {
3590
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
3591
+ },
3592
+ {
3593
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
3594
+ }
3595
+ ]
3596
+ },
3597
+ {
3598
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
3599
+ paths: [
3600
+ { path: "draftPost.heroImage.focalPoint.x" },
3601
+ { path: "draftPost.heroImage.focalPoint.y" },
3602
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
3603
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
3604
+ {
3605
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
3606
+ },
3607
+ {
3608
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
3609
+ },
3610
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
3611
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
3612
+ {
3613
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
3614
+ },
3615
+ {
3616
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
3617
+ },
3618
+ {
3619
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
3620
+ },
3621
+ {
3622
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
3623
+ },
3624
+ {
3625
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
3626
+ },
3627
+ {
3628
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
3629
+ },
3630
+ {
3631
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
3632
+ },
3633
+ {
3634
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
3635
+ },
3636
+ {
3637
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
3638
+ },
3639
+ {
3640
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
3641
+ },
3642
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
3643
+ { path: "draftPost.richContent.nodes.imageData.crop.x" },
3644
+ { path: "draftPost.richContent.nodes.imageData.crop.y" },
3645
+ { path: "draftPost.richContent.nodes.imageData.crop.width" },
3646
+ { path: "draftPost.richContent.nodes.imageData.crop.height" },
3647
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
3648
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
3649
+ {
3650
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
3651
+ },
3652
+ {
3653
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
3654
+ },
3655
+ {
3656
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
3657
+ },
3658
+ {
3659
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
3660
+ },
3661
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
3662
+ {
3663
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
3664
+ },
3665
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
3666
+ {
3667
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
3668
+ },
3669
+ {
3670
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
3671
+ },
3672
+ {
3673
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3674
+ },
3675
+ {
3676
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3677
+ },
3678
+ {
3679
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3680
+ },
3681
+ {
3682
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
3683
+ },
3684
+ {
3685
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3686
+ },
3687
+ {
3688
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3689
+ },
3690
+ {
3691
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3692
+ },
3693
+ {
3694
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
3695
+ },
3696
+ {
3697
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
3698
+ },
3699
+ {
3700
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
3701
+ },
3702
+ {
3703
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
3704
+ },
3705
+ {
3706
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
3707
+ },
3708
+ {
3709
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3710
+ },
3711
+ { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
3712
+ {
3713
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
3714
+ },
3715
+ {
3716
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
3717
+ },
3718
+ {
3719
+ path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
3720
+ },
3721
+ {
3722
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
3723
+ },
3724
+ {
3725
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3726
+ },
3727
+ {
3728
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3729
+ },
3730
+ {
3731
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3732
+ },
3733
+ { path: "draftPost.richContent.nodes.tocData.fontSize" },
3734
+ { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
3735
+ {
3736
+ path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
3737
+ }
3738
+ ]
3739
+ }
3740
+ ])
3741
+ };
3742
+ return metadata;
3743
+ }
3744
+ return __updateDraftPostLanguage;
3745
+ }
3203
3746
 
3204
3747
  // src/blog-v3-draft-draft-posts.types.ts
3205
3748
  var Origin = /* @__PURE__ */ ((Origin2) => {
@@ -4070,6 +4613,42 @@ function publishDraftPost2() {
4070
4613
  __originalResponseType: null
4071
4614
  };
4072
4615
  }
4616
+ function translateDraft2() {
4617
+ const payload = { postId: ":postId" };
4618
+ const getRequestOptions = translateDraft(payload);
4619
+ const getUrl = (context) => {
4620
+ const { url } = getRequestOptions(context);
4621
+ return url;
4622
+ };
4623
+ return {
4624
+ getUrl,
4625
+ httpMethod: "POST",
4626
+ path: "/v3/multilingual/draft/{postId}",
4627
+ pathParams: { postId: "postId" },
4628
+ __requestType: null,
4629
+ __originalRequestType: null,
4630
+ __responseType: null,
4631
+ __originalResponseType: null
4632
+ };
4633
+ }
4634
+ function updateDraftPostLanguage2() {
4635
+ const payload = { postId: ":postId" };
4636
+ const getRequestOptions = updateDraftPostLanguage(payload);
4637
+ const getUrl = (context) => {
4638
+ const { url } = getRequestOptions(context);
4639
+ return url;
4640
+ };
4641
+ return {
4642
+ getUrl,
4643
+ httpMethod: "POST",
4644
+ path: "/v3/multilingual/update-draft-post-language/{postId}",
4645
+ pathParams: { postId: "postId" },
4646
+ __requestType: null,
4647
+ __originalRequestType: null,
4648
+ __responseType: null,
4649
+ __originalResponseType: null
4650
+ };
4651
+ }
4073
4652
  // Annotate the CommonJS export names for ESM import in node:
4074
4653
  0 && (module.exports = {
4075
4654
  ActionOriginal,
@@ -4158,6 +4737,8 @@ function publishDraftPost2() {
4158
4737
  queryDraftPosts,
4159
4738
  removeFromTrashBin,
4160
4739
  restoreFromTrashBin,
4161
- updateDraftPost
4740
+ translateDraft,
4741
+ updateDraftPost,
4742
+ updateDraftPostLanguage
4162
4743
  });
4163
4744
  //# sourceMappingURL=meta.js.map