@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.
@@ -106,8 +106,10 @@ __export(index_typings_exports, {
106
106
  queryDraftPosts: () => queryDraftPosts2,
107
107
  removeFromTrashBin: () => removeFromTrashBin2,
108
108
  restoreFromTrashBin: () => restoreFromTrashBin2,
109
+ translateDraft: () => translateDraft2,
109
110
  typedQueryDraftPosts: () => typedQueryDraftPosts,
110
111
  updateDraftPost: () => updateDraftPost2,
112
+ updateDraftPostLanguage: () => updateDraftPostLanguage2,
111
113
  utils: () => utils
112
114
  });
113
115
  module.exports = __toCommonJS(index_typings_exports);
@@ -126,6 +128,165 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
126
128
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
127
129
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
128
130
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
131
+ function resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(opts) {
132
+ const domainToMappings = {
133
+ "api._api_base_domain_": [
134
+ {
135
+ srcPath: "/communities-blog-node-api",
136
+ destPath: ""
137
+ }
138
+ ],
139
+ "www._base_domain_": [
140
+ {
141
+ srcPath: "/_api/communities-blog-node-api",
142
+ destPath: ""
143
+ },
144
+ {
145
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
146
+ destPath: "/v2/stats"
147
+ }
148
+ ],
149
+ "apps._base_domain_": [
150
+ {
151
+ srcPath: "/_api/communities-blog-node-api",
152
+ destPath: ""
153
+ },
154
+ {
155
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
156
+ destPath: "/v2/stats"
157
+ }
158
+ ],
159
+ _: [
160
+ {
161
+ srcPath: "/_api/communities-blog-node-api",
162
+ destPath: ""
163
+ },
164
+ {
165
+ srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
166
+ destPath: "/_api/blogs/this"
167
+ },
168
+ {
169
+ srcPath: "/_api/communities-blog-node-api/_api/categories",
170
+ destPath: "/_api/categories"
171
+ },
172
+ {
173
+ srcPath: "/_api/communities-blog-node-api/_api/site-properties",
174
+ destPath: "/_api/site-properties"
175
+ },
176
+ {
177
+ srcPath: "/_api/communities-blog-node-api/_api/posts/content",
178
+ destPath: "/_api/posts/content"
179
+ },
180
+ {
181
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
182
+ destPath: "/v2/stats"
183
+ }
184
+ ],
185
+ "editor._base_domain_": [
186
+ {
187
+ srcPath: "/_api/communities-blog-node-api",
188
+ destPath: ""
189
+ }
190
+ ],
191
+ "blocks._base_domain_": [
192
+ {
193
+ srcPath: "/_api/communities-blog-node-api",
194
+ destPath: ""
195
+ }
196
+ ],
197
+ "create.editorx": [
198
+ {
199
+ srcPath: "/_api/communities-blog-node-api",
200
+ destPath: ""
201
+ }
202
+ ],
203
+ "*.dev.wix-code.com": [
204
+ {
205
+ srcPath: "/_api/communities-blog-node-api",
206
+ destPath: ""
207
+ }
208
+ ],
209
+ "*.pub.wix-code.com": [
210
+ {
211
+ srcPath: "/_api/communities-blog-node-api",
212
+ destPath: ""
213
+ }
214
+ ],
215
+ "bo._base_domain_": [
216
+ {
217
+ srcPath: "/_api/communities-blog-node-api",
218
+ destPath: ""
219
+ },
220
+ {
221
+ srcPath: "/_api/communities-blog-node-api",
222
+ destPath: ""
223
+ }
224
+ ],
225
+ "wixbo.ai": [
226
+ {
227
+ srcPath: "/_api/communities-blog-node-api",
228
+ destPath: ""
229
+ },
230
+ {
231
+ srcPath: "/_api/communities-blog-node-api",
232
+ destPath: ""
233
+ }
234
+ ],
235
+ "wix-bo.com": [
236
+ {
237
+ srcPath: "/_api/communities-blog-node-api",
238
+ destPath: ""
239
+ },
240
+ {
241
+ srcPath: "/_api/communities-blog-node-api",
242
+ destPath: ""
243
+ }
244
+ ],
245
+ "manage._base_domain_": [
246
+ {
247
+ srcPath: "/_api/communities-blog-node-api",
248
+ destPath: ""
249
+ }
250
+ ],
251
+ "social-blog._base_domain_": [
252
+ {
253
+ srcPath: "/_api/communities-blog-node-api",
254
+ destPath: ""
255
+ }
256
+ ],
257
+ "editor.wixapps.net": [
258
+ {
259
+ srcPath: "/_api/communities-blog-node-api",
260
+ destPath: ""
261
+ }
262
+ ],
263
+ "dev._base_domain_": [
264
+ {
265
+ srcPath: "/_api/communities-blog-node-api",
266
+ destPath: ""
267
+ }
268
+ ],
269
+ "www.wixapis.com": [
270
+ {
271
+ srcPath: "/blog/v2",
272
+ destPath: "/v2"
273
+ },
274
+ {
275
+ srcPath: "/blog/v3",
276
+ destPath: "/v3"
277
+ },
278
+ {
279
+ srcPath: "/v2/stats",
280
+ destPath: "/v2/stats"
281
+ },
282
+ {
283
+ srcPath: "/blog/v2/stats",
284
+ destPath: "/v2/stats"
285
+ }
286
+ ]
287
+ };
288
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
289
+ }
129
290
  function resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(opts) {
130
291
  const domainToMappings = {
131
292
  _api_base_domain_: [
@@ -3207,147 +3368,529 @@ function publishDraftPost(payload) {
3207
3368
  }
3208
3369
  return __publishDraftPost;
3209
3370
  }
3210
-
3211
- // src/blog-v3-draft-draft-posts.universal.ts
3212
- var import_image = require("@wix/sdk-runtime/transformations/image");
3213
- var import_image2 = require("@wix/sdk-runtime/transformations/image");
3214
- var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
3215
- var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
3216
- var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
3217
- var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
3218
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
3219
- var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
3220
- var Origin = /* @__PURE__ */ ((Origin2) => {
3221
- Origin2["UNKNOWN"] = "UNKNOWN";
3222
- Origin2["ADMIN"] = "ADMIN";
3223
- Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
3224
- Origin2["AUTO_SAVE"] = "AUTO_SAVE";
3225
- Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
3226
- Origin2["IMPORT"] = "IMPORT";
3227
- Origin2["IMPORT_BULK"] = "IMPORT_BULK";
3228
- Origin2["IMPORT_HTML"] = "IMPORT_HTML";
3229
- Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
3230
- Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
3231
- Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
3232
- Origin2["MIGRATION"] = "MIGRATION";
3233
- Origin2["MODERATION"] = "MODERATION";
3234
- Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
3235
- Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
3236
- Origin2["PROVISION"] = "PROVISION";
3237
- Origin2["PUBLISH"] = "PUBLISH";
3238
- Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
3239
- Origin2["REBLOG"] = "REBLOG";
3240
- Origin2["RESTORE"] = "RESTORE";
3241
- Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
3242
- Origin2["TRANSLATION"] = "TRANSLATION";
3243
- Origin2["UNPUBLISH"] = "UNPUBLISH";
3244
- Origin2["UNSCHEDULE"] = "UNSCHEDULE";
3245
- Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
3246
- Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
3247
- Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
3248
- Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
3249
- Origin2["SCHEDULE"] = "SCHEDULE";
3250
- Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
3251
- Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
3252
- Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
3253
- Origin2["DELETE_TAG"] = "DELETE_TAG";
3254
- Origin2["PIN"] = "PIN";
3255
- Origin2["UNPIN"] = "UNPIN";
3256
- Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
3257
- return Origin2;
3258
- })(Origin || {});
3259
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
3260
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
3261
- NodeType2["TEXT"] = "TEXT";
3262
- NodeType2["HEADING"] = "HEADING";
3263
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
3264
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
3265
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
3266
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
3267
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
3268
- NodeType2["VIDEO"] = "VIDEO";
3269
- NodeType2["DIVIDER"] = "DIVIDER";
3270
- NodeType2["FILE"] = "FILE";
3271
- NodeType2["GALLERY"] = "GALLERY";
3272
- NodeType2["GIF"] = "GIF";
3273
- NodeType2["HTML"] = "HTML";
3274
- NodeType2["IMAGE"] = "IMAGE";
3275
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
3276
- NodeType2["MAP"] = "MAP";
3277
- NodeType2["POLL"] = "POLL";
3278
- NodeType2["APP_EMBED"] = "APP_EMBED";
3279
- NodeType2["BUTTON"] = "BUTTON";
3280
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
3281
- NodeType2["TABLE"] = "TABLE";
3282
- NodeType2["EMBED"] = "EMBED";
3283
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
3284
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
3285
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
3286
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
3287
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
3288
- NodeType2["EXTERNAL"] = "EXTERNAL";
3289
- NodeType2["AUDIO"] = "AUDIO";
3290
- NodeType2["CAPTION"] = "CAPTION";
3291
- NodeType2["LAYOUT"] = "LAYOUT";
3292
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
3293
- NodeType2["SHAPE"] = "SHAPE";
3294
- NodeType2["CARD"] = "CARD";
3295
- NodeType2["TOC"] = "TOC";
3296
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
3297
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
3298
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
3299
- return NodeType2;
3300
- })(NodeType || {});
3301
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
3302
- BackgroundType2["COLOR"] = "COLOR";
3303
- BackgroundType2["GRADIENT"] = "GRADIENT";
3304
- return BackgroundType2;
3305
- })(BackgroundType || {});
3306
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
3307
- GradientType2["LINEAR"] = "LINEAR";
3308
- GradientType2["RADIAL"] = "RADIAL";
3309
- return GradientType2;
3310
- })(GradientType || {});
3311
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
3312
- WidthType2["CONTENT"] = "CONTENT";
3313
- WidthType2["SMALL"] = "SMALL";
3314
- WidthType2["ORIGINAL"] = "ORIGINAL";
3315
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
3316
- return WidthType2;
3317
- })(WidthType || {});
3318
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
3319
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
3320
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
3321
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
3322
- return PluginContainerDataAlignment2;
3323
- })(PluginContainerDataAlignment || {});
3324
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
3325
- ButtonDataType2["LINK"] = "LINK";
3326
- ButtonDataType2["ACTION"] = "ACTION";
3327
- return ButtonDataType2;
3328
- })(ButtonDataType || {});
3329
- var Target = /* @__PURE__ */ ((Target2) => {
3330
- Target2["SELF"] = "SELF";
3331
- Target2["BLANK"] = "BLANK";
3332
- Target2["PARENT"] = "PARENT";
3333
- Target2["TOP"] = "TOP";
3334
- return Target2;
3335
- })(Target || {});
3336
- var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
3337
- AnimationType2["VIEW"] = "VIEW";
3338
- AnimationType2["POINTER"] = "POINTER";
3339
- return AnimationType2;
3340
- })(AnimationType || {});
3341
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
3342
- EntranceEffectType2["FADE"] = "FADE";
3343
- EntranceEffectType2["ARC"] = "ARC";
3344
- EntranceEffectType2["BLUR"] = "BLUR";
3345
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
3346
- EntranceEffectType2["DROP"] = "DROP";
3347
- EntranceEffectType2["EXPAND"] = "EXPAND";
3348
- EntranceEffectType2["FLIP"] = "FLIP";
3349
- EntranceEffectType2["FLOAT"] = "FLOAT";
3350
- EntranceEffectType2["FOLD"] = "FOLD";
3371
+ function translateDraft(payload) {
3372
+ function __translateDraft({ host }) {
3373
+ const metadata = {
3374
+ entityFqdn: "wix.blog.v3.draft",
3375
+ method: "POST",
3376
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.TranslateDraft",
3377
+ packageName: PACKAGE_NAME,
3378
+ migrationOptions: {
3379
+ optInTransformResponse: true
3380
+ },
3381
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
3382
+ { protoPath: "/v3/multilingual/draft/{postId}", data: payload, host }
3383
+ ),
3384
+ data: payload,
3385
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
3386
+ {
3387
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
3388
+ paths: [
3389
+ { path: "draftPost.editedDate" },
3390
+ { path: "draftPost.scheduledPublishDate" },
3391
+ { path: "draftPost.firstPublishedDate" },
3392
+ { path: "draftPost.createdDate" },
3393
+ { path: "draftPost.heroImage.urlExpirationDate" },
3394
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
3395
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
3396
+ { path: "draftPost.moderationDetails.submittedDate" },
3397
+ { path: "draftPost.moderationDetails.moderationDate" },
3398
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
3399
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
3400
+ {
3401
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
3402
+ },
3403
+ {
3404
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
3405
+ },
3406
+ {
3407
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
3408
+ }
3409
+ ]
3410
+ },
3411
+ {
3412
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
3413
+ paths: [
3414
+ { path: "draftPost.heroImage.focalPoint.x" },
3415
+ { path: "draftPost.heroImage.focalPoint.y" },
3416
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
3417
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
3418
+ {
3419
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
3420
+ },
3421
+ {
3422
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
3423
+ },
3424
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
3425
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
3426
+ {
3427
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
3428
+ },
3429
+ {
3430
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
3431
+ },
3432
+ {
3433
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
3434
+ },
3435
+ {
3436
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
3437
+ },
3438
+ {
3439
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
3440
+ },
3441
+ {
3442
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
3443
+ },
3444
+ {
3445
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
3446
+ },
3447
+ {
3448
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
3449
+ },
3450
+ {
3451
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
3452
+ },
3453
+ {
3454
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
3455
+ },
3456
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
3457
+ { path: "draftPost.richContent.nodes.imageData.crop.x" },
3458
+ { path: "draftPost.richContent.nodes.imageData.crop.y" },
3459
+ { path: "draftPost.richContent.nodes.imageData.crop.width" },
3460
+ { path: "draftPost.richContent.nodes.imageData.crop.height" },
3461
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
3462
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
3463
+ {
3464
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
3465
+ },
3466
+ {
3467
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
3468
+ },
3469
+ {
3470
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
3471
+ },
3472
+ {
3473
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
3474
+ },
3475
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
3476
+ {
3477
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
3478
+ },
3479
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
3480
+ {
3481
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
3482
+ },
3483
+ {
3484
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
3485
+ },
3486
+ {
3487
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3488
+ },
3489
+ {
3490
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3491
+ },
3492
+ {
3493
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3494
+ },
3495
+ {
3496
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
3497
+ },
3498
+ {
3499
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3500
+ },
3501
+ {
3502
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3503
+ },
3504
+ {
3505
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3506
+ },
3507
+ {
3508
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
3509
+ },
3510
+ {
3511
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
3512
+ },
3513
+ {
3514
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
3515
+ },
3516
+ {
3517
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
3518
+ },
3519
+ {
3520
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
3521
+ },
3522
+ {
3523
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3524
+ },
3525
+ { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
3526
+ {
3527
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
3528
+ },
3529
+ {
3530
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
3531
+ },
3532
+ {
3533
+ path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
3534
+ },
3535
+ {
3536
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
3537
+ },
3538
+ {
3539
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3540
+ },
3541
+ {
3542
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3543
+ },
3544
+ {
3545
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3546
+ },
3547
+ { path: "draftPost.richContent.nodes.tocData.fontSize" },
3548
+ { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
3549
+ {
3550
+ path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
3551
+ }
3552
+ ]
3553
+ }
3554
+ ])
3555
+ };
3556
+ return metadata;
3557
+ }
3558
+ return __translateDraft;
3559
+ }
3560
+ function updateDraftPostLanguage(payload) {
3561
+ function __updateDraftPostLanguage({ host }) {
3562
+ const metadata = {
3563
+ entityFqdn: "wix.blog.v3.draft",
3564
+ method: "POST",
3565
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.UpdateDraftPostLanguage",
3566
+ packageName: PACKAGE_NAME,
3567
+ migrationOptions: {
3568
+ optInTransformResponse: true
3569
+ },
3570
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
3571
+ {
3572
+ protoPath: "/v3/multilingual/update-draft-post-language/{postId}",
3573
+ data: payload,
3574
+ host
3575
+ }
3576
+ ),
3577
+ data: payload,
3578
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
3579
+ {
3580
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
3581
+ paths: [
3582
+ { path: "draftPost.editedDate" },
3583
+ { path: "draftPost.scheduledPublishDate" },
3584
+ { path: "draftPost.firstPublishedDate" },
3585
+ { path: "draftPost.createdDate" },
3586
+ { path: "draftPost.heroImage.urlExpirationDate" },
3587
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
3588
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
3589
+ { path: "draftPost.moderationDetails.submittedDate" },
3590
+ { path: "draftPost.moderationDetails.moderationDate" },
3591
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
3592
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
3593
+ {
3594
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
3595
+ },
3596
+ {
3597
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
3598
+ },
3599
+ {
3600
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
3601
+ }
3602
+ ]
3603
+ },
3604
+ {
3605
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
3606
+ paths: [
3607
+ { path: "draftPost.heroImage.focalPoint.x" },
3608
+ { path: "draftPost.heroImage.focalPoint.y" },
3609
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
3610
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
3611
+ {
3612
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
3613
+ },
3614
+ {
3615
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
3616
+ },
3617
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
3618
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
3619
+ {
3620
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
3621
+ },
3622
+ {
3623
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
3624
+ },
3625
+ {
3626
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
3627
+ },
3628
+ {
3629
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
3630
+ },
3631
+ {
3632
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
3633
+ },
3634
+ {
3635
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
3636
+ },
3637
+ {
3638
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
3639
+ },
3640
+ {
3641
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
3642
+ },
3643
+ {
3644
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
3645
+ },
3646
+ {
3647
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
3648
+ },
3649
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
3650
+ { path: "draftPost.richContent.nodes.imageData.crop.x" },
3651
+ { path: "draftPost.richContent.nodes.imageData.crop.y" },
3652
+ { path: "draftPost.richContent.nodes.imageData.crop.width" },
3653
+ { path: "draftPost.richContent.nodes.imageData.crop.height" },
3654
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
3655
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
3656
+ {
3657
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
3658
+ },
3659
+ {
3660
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
3661
+ },
3662
+ {
3663
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
3664
+ },
3665
+ {
3666
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
3667
+ },
3668
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
3669
+ {
3670
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
3671
+ },
3672
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
3673
+ {
3674
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
3675
+ },
3676
+ {
3677
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
3678
+ },
3679
+ {
3680
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3681
+ },
3682
+ {
3683
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3684
+ },
3685
+ {
3686
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3687
+ },
3688
+ {
3689
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
3690
+ },
3691
+ {
3692
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3693
+ },
3694
+ {
3695
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3696
+ },
3697
+ {
3698
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3699
+ },
3700
+ {
3701
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
3702
+ },
3703
+ {
3704
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
3705
+ },
3706
+ {
3707
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
3708
+ },
3709
+ {
3710
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
3711
+ },
3712
+ {
3713
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
3714
+ },
3715
+ {
3716
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3717
+ },
3718
+ { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
3719
+ {
3720
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
3721
+ },
3722
+ {
3723
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
3724
+ },
3725
+ {
3726
+ path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
3727
+ },
3728
+ {
3729
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
3730
+ },
3731
+ {
3732
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3733
+ },
3734
+ {
3735
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3736
+ },
3737
+ {
3738
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3739
+ },
3740
+ { path: "draftPost.richContent.nodes.tocData.fontSize" },
3741
+ { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
3742
+ {
3743
+ path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
3744
+ }
3745
+ ]
3746
+ }
3747
+ ])
3748
+ };
3749
+ return metadata;
3750
+ }
3751
+ return __updateDraftPostLanguage;
3752
+ }
3753
+
3754
+ // src/blog-v3-draft-draft-posts.universal.ts
3755
+ var import_image = require("@wix/sdk-runtime/transformations/image");
3756
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
3757
+ var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
3758
+ var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
3759
+ var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
3760
+ var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
3761
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
3762
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
3763
+ var Origin = /* @__PURE__ */ ((Origin2) => {
3764
+ Origin2["UNKNOWN"] = "UNKNOWN";
3765
+ Origin2["ADMIN"] = "ADMIN";
3766
+ Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
3767
+ Origin2["AUTO_SAVE"] = "AUTO_SAVE";
3768
+ Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
3769
+ Origin2["IMPORT"] = "IMPORT";
3770
+ Origin2["IMPORT_BULK"] = "IMPORT_BULK";
3771
+ Origin2["IMPORT_HTML"] = "IMPORT_HTML";
3772
+ Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
3773
+ Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
3774
+ Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
3775
+ Origin2["MIGRATION"] = "MIGRATION";
3776
+ Origin2["MODERATION"] = "MODERATION";
3777
+ Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
3778
+ Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
3779
+ Origin2["PROVISION"] = "PROVISION";
3780
+ Origin2["PUBLISH"] = "PUBLISH";
3781
+ Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
3782
+ Origin2["REBLOG"] = "REBLOG";
3783
+ Origin2["RESTORE"] = "RESTORE";
3784
+ Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
3785
+ Origin2["TRANSLATION"] = "TRANSLATION";
3786
+ Origin2["UNPUBLISH"] = "UNPUBLISH";
3787
+ Origin2["UNSCHEDULE"] = "UNSCHEDULE";
3788
+ Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
3789
+ Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
3790
+ Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
3791
+ Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
3792
+ Origin2["SCHEDULE"] = "SCHEDULE";
3793
+ Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
3794
+ Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
3795
+ Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
3796
+ Origin2["DELETE_TAG"] = "DELETE_TAG";
3797
+ Origin2["PIN"] = "PIN";
3798
+ Origin2["UNPIN"] = "UNPIN";
3799
+ Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
3800
+ return Origin2;
3801
+ })(Origin || {});
3802
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
3803
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
3804
+ NodeType2["TEXT"] = "TEXT";
3805
+ NodeType2["HEADING"] = "HEADING";
3806
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
3807
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
3808
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
3809
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
3810
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
3811
+ NodeType2["VIDEO"] = "VIDEO";
3812
+ NodeType2["DIVIDER"] = "DIVIDER";
3813
+ NodeType2["FILE"] = "FILE";
3814
+ NodeType2["GALLERY"] = "GALLERY";
3815
+ NodeType2["GIF"] = "GIF";
3816
+ NodeType2["HTML"] = "HTML";
3817
+ NodeType2["IMAGE"] = "IMAGE";
3818
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
3819
+ NodeType2["MAP"] = "MAP";
3820
+ NodeType2["POLL"] = "POLL";
3821
+ NodeType2["APP_EMBED"] = "APP_EMBED";
3822
+ NodeType2["BUTTON"] = "BUTTON";
3823
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
3824
+ NodeType2["TABLE"] = "TABLE";
3825
+ NodeType2["EMBED"] = "EMBED";
3826
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
3827
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
3828
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
3829
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
3830
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
3831
+ NodeType2["EXTERNAL"] = "EXTERNAL";
3832
+ NodeType2["AUDIO"] = "AUDIO";
3833
+ NodeType2["CAPTION"] = "CAPTION";
3834
+ NodeType2["LAYOUT"] = "LAYOUT";
3835
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
3836
+ NodeType2["SHAPE"] = "SHAPE";
3837
+ NodeType2["CARD"] = "CARD";
3838
+ NodeType2["TOC"] = "TOC";
3839
+ NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
3840
+ NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
3841
+ NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
3842
+ return NodeType2;
3843
+ })(NodeType || {});
3844
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
3845
+ BackgroundType2["COLOR"] = "COLOR";
3846
+ BackgroundType2["GRADIENT"] = "GRADIENT";
3847
+ return BackgroundType2;
3848
+ })(BackgroundType || {});
3849
+ var GradientType = /* @__PURE__ */ ((GradientType2) => {
3850
+ GradientType2["LINEAR"] = "LINEAR";
3851
+ GradientType2["RADIAL"] = "RADIAL";
3852
+ return GradientType2;
3853
+ })(GradientType || {});
3854
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
3855
+ WidthType2["CONTENT"] = "CONTENT";
3856
+ WidthType2["SMALL"] = "SMALL";
3857
+ WidthType2["ORIGINAL"] = "ORIGINAL";
3858
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
3859
+ return WidthType2;
3860
+ })(WidthType || {});
3861
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
3862
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
3863
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
3864
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
3865
+ return PluginContainerDataAlignment2;
3866
+ })(PluginContainerDataAlignment || {});
3867
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
3868
+ ButtonDataType2["LINK"] = "LINK";
3869
+ ButtonDataType2["ACTION"] = "ACTION";
3870
+ return ButtonDataType2;
3871
+ })(ButtonDataType || {});
3872
+ var Target = /* @__PURE__ */ ((Target2) => {
3873
+ Target2["SELF"] = "SELF";
3874
+ Target2["BLANK"] = "BLANK";
3875
+ Target2["PARENT"] = "PARENT";
3876
+ Target2["TOP"] = "TOP";
3877
+ return Target2;
3878
+ })(Target || {});
3879
+ var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
3880
+ AnimationType2["VIEW"] = "VIEW";
3881
+ AnimationType2["POINTER"] = "POINTER";
3882
+ return AnimationType2;
3883
+ })(AnimationType || {});
3884
+ var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
3885
+ EntranceEffectType2["FADE"] = "FADE";
3886
+ EntranceEffectType2["ARC"] = "ARC";
3887
+ EntranceEffectType2["BLUR"] = "BLUR";
3888
+ EntranceEffectType2["BOUNCE"] = "BOUNCE";
3889
+ EntranceEffectType2["DROP"] = "DROP";
3890
+ EntranceEffectType2["EXPAND"] = "EXPAND";
3891
+ EntranceEffectType2["FLIP"] = "FLIP";
3892
+ EntranceEffectType2["FLOAT"] = "FLOAT";
3893
+ EntranceEffectType2["FOLD"] = "FOLD";
3351
3894
  EntranceEffectType2["GLIDE"] = "GLIDE";
3352
3895
  EntranceEffectType2["REVEAL"] = "REVEAL";
3353
3896
  EntranceEffectType2["SHAPE"] = "SHAPE";
@@ -4665,6 +5208,110 @@ async function publishDraftPost2(draftPostId) {
4665
5208
  throw transformedError;
4666
5209
  }
4667
5210
  }
5211
+ async function translateDraft2(postId, language, options) {
5212
+ const { httpClient, sideEffects } = arguments[3];
5213
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
5214
+ { postId, language, fieldsets: options?.fieldsets },
5215
+ []
5216
+ );
5217
+ const reqOpts = translateDraft(payload);
5218
+ sideEffects?.onSiteCall?.();
5219
+ try {
5220
+ const result = await httpClient.request(reqOpts);
5221
+ sideEffects?.onSuccess?.(result);
5222
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
5223
+ (0, import_transform_paths2.transformPaths)(result.data, [
5224
+ {
5225
+ transformFn: import_image2.transformRESTImageToSDKImage,
5226
+ paths: [
5227
+ { path: "draftPost.heroImage" },
5228
+ { path: "draftPost.media.wixMedia.image" }
5229
+ ]
5230
+ },
5231
+ {
5232
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
5233
+ paths: [
5234
+ { path: "draftPost.url" },
5235
+ { path: "draftPost.translations.url" }
5236
+ ]
5237
+ },
5238
+ {
5239
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
5240
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
5241
+ }
5242
+ ]),
5243
+ ["draftPost.richContent"]
5244
+ );
5245
+ } catch (err) {
5246
+ const transformedError = (0, import_transform_error.transformError)(
5247
+ err,
5248
+ {
5249
+ spreadPathsToArguments: {},
5250
+ explicitPathsToArguments: {
5251
+ postId: "$[0]",
5252
+ language: "$[1]",
5253
+ fieldsets: "$[2].fieldsets"
5254
+ },
5255
+ singleArgumentUnchanged: false
5256
+ },
5257
+ ["postId", "language", "options"]
5258
+ );
5259
+ sideEffects?.onError?.(err);
5260
+ throw transformedError;
5261
+ }
5262
+ }
5263
+ async function updateDraftPostLanguage2(postId, language, options) {
5264
+ const { httpClient, sideEffects } = arguments[3];
5265
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
5266
+ { postId, language, fieldsets: options?.fieldsets },
5267
+ []
5268
+ );
5269
+ const reqOpts = updateDraftPostLanguage(payload);
5270
+ sideEffects?.onSiteCall?.();
5271
+ try {
5272
+ const result = await httpClient.request(reqOpts);
5273
+ sideEffects?.onSuccess?.(result);
5274
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
5275
+ (0, import_transform_paths2.transformPaths)(result.data, [
5276
+ {
5277
+ transformFn: import_image2.transformRESTImageToSDKImage,
5278
+ paths: [
5279
+ { path: "draftPost.heroImage" },
5280
+ { path: "draftPost.media.wixMedia.image" }
5281
+ ]
5282
+ },
5283
+ {
5284
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
5285
+ paths: [
5286
+ { path: "draftPost.url" },
5287
+ { path: "draftPost.translations.url" }
5288
+ ]
5289
+ },
5290
+ {
5291
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
5292
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
5293
+ }
5294
+ ]),
5295
+ ["draftPost.richContent"]
5296
+ );
5297
+ } catch (err) {
5298
+ const transformedError = (0, import_transform_error.transformError)(
5299
+ err,
5300
+ {
5301
+ spreadPathsToArguments: {},
5302
+ explicitPathsToArguments: {
5303
+ postId: "$[0]",
5304
+ language: "$[1]",
5305
+ fieldsets: "$[2].fieldsets"
5306
+ },
5307
+ singleArgumentUnchanged: false
5308
+ },
5309
+ ["postId", "language", "options"]
5310
+ );
5311
+ sideEffects?.onError?.(err);
5312
+ throw transformedError;
5313
+ }
5314
+ }
4668
5315
  // Annotate the CommonJS export names for ESM import in node:
4669
5316
  0 && (module.exports = {
4670
5317
  Action,
@@ -4753,8 +5400,10 @@ async function publishDraftPost2(draftPostId) {
4753
5400
  queryDraftPosts,
4754
5401
  removeFromTrashBin,
4755
5402
  restoreFromTrashBin,
5403
+ translateDraft,
4756
5404
  typedQueryDraftPosts,
4757
5405
  updateDraftPost,
5406
+ updateDraftPostLanguage,
4758
5407
  utils
4759
5408
  });
4760
5409
  //# sourceMappingURL=index.typings.js.map