@wix/auto_sdk_blog_draft-posts 1.0.106 → 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.
@@ -25,6 +25,165 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
25
25
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
26
26
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
27
27
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
28
+ function resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(opts) {
29
+ const domainToMappings = {
30
+ "api._api_base_domain_": [
31
+ {
32
+ srcPath: "/communities-blog-node-api",
33
+ destPath: ""
34
+ }
35
+ ],
36
+ "www._base_domain_": [
37
+ {
38
+ srcPath: "/_api/communities-blog-node-api",
39
+ destPath: ""
40
+ },
41
+ {
42
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
43
+ destPath: "/v2/stats"
44
+ }
45
+ ],
46
+ "apps._base_domain_": [
47
+ {
48
+ srcPath: "/_api/communities-blog-node-api",
49
+ destPath: ""
50
+ },
51
+ {
52
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
53
+ destPath: "/v2/stats"
54
+ }
55
+ ],
56
+ _: [
57
+ {
58
+ srcPath: "/_api/communities-blog-node-api",
59
+ destPath: ""
60
+ },
61
+ {
62
+ srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
63
+ destPath: "/_api/blogs/this"
64
+ },
65
+ {
66
+ srcPath: "/_api/communities-blog-node-api/_api/categories",
67
+ destPath: "/_api/categories"
68
+ },
69
+ {
70
+ srcPath: "/_api/communities-blog-node-api/_api/site-properties",
71
+ destPath: "/_api/site-properties"
72
+ },
73
+ {
74
+ srcPath: "/_api/communities-blog-node-api/_api/posts/content",
75
+ destPath: "/_api/posts/content"
76
+ },
77
+ {
78
+ srcPath: "/_api/communities-blog-node-api/v2/stats",
79
+ destPath: "/v2/stats"
80
+ }
81
+ ],
82
+ "editor._base_domain_": [
83
+ {
84
+ srcPath: "/_api/communities-blog-node-api",
85
+ destPath: ""
86
+ }
87
+ ],
88
+ "blocks._base_domain_": [
89
+ {
90
+ srcPath: "/_api/communities-blog-node-api",
91
+ destPath: ""
92
+ }
93
+ ],
94
+ "create.editorx": [
95
+ {
96
+ srcPath: "/_api/communities-blog-node-api",
97
+ destPath: ""
98
+ }
99
+ ],
100
+ "*.dev.wix-code.com": [
101
+ {
102
+ srcPath: "/_api/communities-blog-node-api",
103
+ destPath: ""
104
+ }
105
+ ],
106
+ "*.pub.wix-code.com": [
107
+ {
108
+ srcPath: "/_api/communities-blog-node-api",
109
+ destPath: ""
110
+ }
111
+ ],
112
+ "bo._base_domain_": [
113
+ {
114
+ srcPath: "/_api/communities-blog-node-api",
115
+ destPath: ""
116
+ },
117
+ {
118
+ srcPath: "/_api/communities-blog-node-api",
119
+ destPath: ""
120
+ }
121
+ ],
122
+ "wixbo.ai": [
123
+ {
124
+ srcPath: "/_api/communities-blog-node-api",
125
+ destPath: ""
126
+ },
127
+ {
128
+ srcPath: "/_api/communities-blog-node-api",
129
+ destPath: ""
130
+ }
131
+ ],
132
+ "wix-bo.com": [
133
+ {
134
+ srcPath: "/_api/communities-blog-node-api",
135
+ destPath: ""
136
+ },
137
+ {
138
+ srcPath: "/_api/communities-blog-node-api",
139
+ destPath: ""
140
+ }
141
+ ],
142
+ "manage._base_domain_": [
143
+ {
144
+ srcPath: "/_api/communities-blog-node-api",
145
+ destPath: ""
146
+ }
147
+ ],
148
+ "social-blog._base_domain_": [
149
+ {
150
+ srcPath: "/_api/communities-blog-node-api",
151
+ destPath: ""
152
+ }
153
+ ],
154
+ "editor.wixapps.net": [
155
+ {
156
+ srcPath: "/_api/communities-blog-node-api",
157
+ destPath: ""
158
+ }
159
+ ],
160
+ "dev._base_domain_": [
161
+ {
162
+ srcPath: "/_api/communities-blog-node-api",
163
+ destPath: ""
164
+ }
165
+ ],
166
+ "www.wixapis.com": [
167
+ {
168
+ srcPath: "/blog/v2",
169
+ destPath: "/v2"
170
+ },
171
+ {
172
+ srcPath: "/blog/v3",
173
+ destPath: "/v3"
174
+ },
175
+ {
176
+ srcPath: "/v2/stats",
177
+ destPath: "/v2/stats"
178
+ },
179
+ {
180
+ srcPath: "/blog/v2/stats",
181
+ destPath: "/v2/stats"
182
+ }
183
+ ]
184
+ };
185
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
186
+ }
28
187
  function resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(opts) {
29
188
  const domainToMappings = {
30
189
  _api_base_domain_: [
@@ -3106,147 +3265,529 @@ function publishDraftPost(payload) {
3106
3265
  }
3107
3266
  return __publishDraftPost;
3108
3267
  }
3109
-
3110
- // src/blog-v3-draft-draft-posts.universal.ts
3111
- import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
3112
- import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
3113
- import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
3114
- import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
3115
- import { transformSDKPageURLToRESTPageURL } from "@wix/sdk-runtime/transformations/page-url";
3116
- import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
3117
- import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
3118
- import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
3119
- var Origin = /* @__PURE__ */ ((Origin2) => {
3120
- Origin2["UNKNOWN"] = "UNKNOWN";
3121
- Origin2["ADMIN"] = "ADMIN";
3122
- Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
3123
- Origin2["AUTO_SAVE"] = "AUTO_SAVE";
3124
- Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
3125
- Origin2["IMPORT"] = "IMPORT";
3126
- Origin2["IMPORT_BULK"] = "IMPORT_BULK";
3127
- Origin2["IMPORT_HTML"] = "IMPORT_HTML";
3128
- Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
3129
- Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
3130
- Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
3131
- Origin2["MIGRATION"] = "MIGRATION";
3132
- Origin2["MODERATION"] = "MODERATION";
3133
- Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
3134
- Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
3135
- Origin2["PROVISION"] = "PROVISION";
3136
- Origin2["PUBLISH"] = "PUBLISH";
3137
- Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
3138
- Origin2["REBLOG"] = "REBLOG";
3139
- Origin2["RESTORE"] = "RESTORE";
3140
- Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
3141
- Origin2["TRANSLATION"] = "TRANSLATION";
3142
- Origin2["UNPUBLISH"] = "UNPUBLISH";
3143
- Origin2["UNSCHEDULE"] = "UNSCHEDULE";
3144
- Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
3145
- Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
3146
- Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
3147
- Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
3148
- Origin2["SCHEDULE"] = "SCHEDULE";
3149
- Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
3150
- Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
3151
- Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
3152
- Origin2["DELETE_TAG"] = "DELETE_TAG";
3153
- Origin2["PIN"] = "PIN";
3154
- Origin2["UNPIN"] = "UNPIN";
3155
- Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
3156
- return Origin2;
3157
- })(Origin || {});
3158
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
3159
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
3160
- NodeType2["TEXT"] = "TEXT";
3161
- NodeType2["HEADING"] = "HEADING";
3162
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
3163
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
3164
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
3165
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
3166
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
3167
- NodeType2["VIDEO"] = "VIDEO";
3168
- NodeType2["DIVIDER"] = "DIVIDER";
3169
- NodeType2["FILE"] = "FILE";
3170
- NodeType2["GALLERY"] = "GALLERY";
3171
- NodeType2["GIF"] = "GIF";
3172
- NodeType2["HTML"] = "HTML";
3173
- NodeType2["IMAGE"] = "IMAGE";
3174
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
3175
- NodeType2["MAP"] = "MAP";
3176
- NodeType2["POLL"] = "POLL";
3177
- NodeType2["APP_EMBED"] = "APP_EMBED";
3178
- NodeType2["BUTTON"] = "BUTTON";
3179
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
3180
- NodeType2["TABLE"] = "TABLE";
3181
- NodeType2["EMBED"] = "EMBED";
3182
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
3183
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
3184
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
3185
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
3186
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
3187
- NodeType2["EXTERNAL"] = "EXTERNAL";
3188
- NodeType2["AUDIO"] = "AUDIO";
3189
- NodeType2["CAPTION"] = "CAPTION";
3190
- NodeType2["LAYOUT"] = "LAYOUT";
3191
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
3192
- NodeType2["SHAPE"] = "SHAPE";
3193
- NodeType2["CARD"] = "CARD";
3194
- NodeType2["TOC"] = "TOC";
3195
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
3196
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
3197
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
3198
- return NodeType2;
3199
- })(NodeType || {});
3200
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
3201
- BackgroundType2["COLOR"] = "COLOR";
3202
- BackgroundType2["GRADIENT"] = "GRADIENT";
3203
- return BackgroundType2;
3204
- })(BackgroundType || {});
3205
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
3206
- GradientType2["LINEAR"] = "LINEAR";
3207
- GradientType2["RADIAL"] = "RADIAL";
3208
- return GradientType2;
3209
- })(GradientType || {});
3210
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
3211
- WidthType2["CONTENT"] = "CONTENT";
3212
- WidthType2["SMALL"] = "SMALL";
3213
- WidthType2["ORIGINAL"] = "ORIGINAL";
3214
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
3215
- return WidthType2;
3216
- })(WidthType || {});
3217
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
3218
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
3219
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
3220
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
3221
- return PluginContainerDataAlignment2;
3222
- })(PluginContainerDataAlignment || {});
3223
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
3224
- ButtonDataType2["LINK"] = "LINK";
3225
- ButtonDataType2["ACTION"] = "ACTION";
3226
- return ButtonDataType2;
3227
- })(ButtonDataType || {});
3228
- var Target = /* @__PURE__ */ ((Target2) => {
3229
- Target2["SELF"] = "SELF";
3230
- Target2["BLANK"] = "BLANK";
3231
- Target2["PARENT"] = "PARENT";
3232
- Target2["TOP"] = "TOP";
3233
- return Target2;
3234
- })(Target || {});
3235
- var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
3236
- AnimationType2["VIEW"] = "VIEW";
3237
- AnimationType2["POINTER"] = "POINTER";
3238
- return AnimationType2;
3239
- })(AnimationType || {});
3240
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
3241
- EntranceEffectType2["FADE"] = "FADE";
3242
- EntranceEffectType2["ARC"] = "ARC";
3243
- EntranceEffectType2["BLUR"] = "BLUR";
3244
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
3245
- EntranceEffectType2["DROP"] = "DROP";
3246
- EntranceEffectType2["EXPAND"] = "EXPAND";
3247
- EntranceEffectType2["FLIP"] = "FLIP";
3248
- EntranceEffectType2["FLOAT"] = "FLOAT";
3249
- EntranceEffectType2["FOLD"] = "FOLD";
3268
+ function translateDraft(payload) {
3269
+ function __translateDraft({ host }) {
3270
+ const metadata = {
3271
+ entityFqdn: "wix.blog.v3.draft",
3272
+ method: "POST",
3273
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.TranslateDraft",
3274
+ packageName: PACKAGE_NAME,
3275
+ migrationOptions: {
3276
+ optInTransformResponse: true
3277
+ },
3278
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
3279
+ { protoPath: "/v3/multilingual/draft/{postId}", data: payload, host }
3280
+ ),
3281
+ data: payload,
3282
+ transformResponse: (payload2) => transformPaths(payload2, [
3283
+ {
3284
+ transformFn: transformRESTTimestampToSDKTimestamp,
3285
+ paths: [
3286
+ { path: "draftPost.editedDate" },
3287
+ { path: "draftPost.scheduledPublishDate" },
3288
+ { path: "draftPost.firstPublishedDate" },
3289
+ { path: "draftPost.createdDate" },
3290
+ { path: "draftPost.heroImage.urlExpirationDate" },
3291
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
3292
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
3293
+ { path: "draftPost.moderationDetails.submittedDate" },
3294
+ { path: "draftPost.moderationDetails.moderationDate" },
3295
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
3296
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
3297
+ {
3298
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
3299
+ },
3300
+ {
3301
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
3302
+ },
3303
+ {
3304
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
3305
+ }
3306
+ ]
3307
+ },
3308
+ {
3309
+ transformFn: transformRESTFloatToSDKFloat,
3310
+ paths: [
3311
+ { path: "draftPost.heroImage.focalPoint.x" },
3312
+ { path: "draftPost.heroImage.focalPoint.y" },
3313
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
3314
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
3315
+ {
3316
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
3317
+ },
3318
+ {
3319
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
3320
+ },
3321
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
3322
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
3323
+ {
3324
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
3325
+ },
3326
+ {
3327
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
3328
+ },
3329
+ {
3330
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
3331
+ },
3332
+ {
3333
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
3334
+ },
3335
+ {
3336
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
3337
+ },
3338
+ {
3339
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
3340
+ },
3341
+ {
3342
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
3343
+ },
3344
+ {
3345
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
3346
+ },
3347
+ {
3348
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
3349
+ },
3350
+ {
3351
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
3352
+ },
3353
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
3354
+ { path: "draftPost.richContent.nodes.imageData.crop.x" },
3355
+ { path: "draftPost.richContent.nodes.imageData.crop.y" },
3356
+ { path: "draftPost.richContent.nodes.imageData.crop.width" },
3357
+ { path: "draftPost.richContent.nodes.imageData.crop.height" },
3358
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
3359
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
3360
+ {
3361
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
3362
+ },
3363
+ {
3364
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
3365
+ },
3366
+ {
3367
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
3368
+ },
3369
+ {
3370
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
3371
+ },
3372
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
3373
+ {
3374
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
3375
+ },
3376
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
3377
+ {
3378
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
3379
+ },
3380
+ {
3381
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
3382
+ },
3383
+ {
3384
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3385
+ },
3386
+ {
3387
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3388
+ },
3389
+ {
3390
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3391
+ },
3392
+ {
3393
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
3394
+ },
3395
+ {
3396
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3397
+ },
3398
+ {
3399
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3400
+ },
3401
+ {
3402
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3403
+ },
3404
+ {
3405
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
3406
+ },
3407
+ {
3408
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
3409
+ },
3410
+ {
3411
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
3412
+ },
3413
+ {
3414
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
3415
+ },
3416
+ {
3417
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
3418
+ },
3419
+ {
3420
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3421
+ },
3422
+ { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
3423
+ {
3424
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
3425
+ },
3426
+ {
3427
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
3428
+ },
3429
+ {
3430
+ path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
3431
+ },
3432
+ {
3433
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
3434
+ },
3435
+ {
3436
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3437
+ },
3438
+ {
3439
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3440
+ },
3441
+ {
3442
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3443
+ },
3444
+ { path: "draftPost.richContent.nodes.tocData.fontSize" },
3445
+ { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
3446
+ {
3447
+ path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
3448
+ }
3449
+ ]
3450
+ }
3451
+ ])
3452
+ };
3453
+ return metadata;
3454
+ }
3455
+ return __translateDraft;
3456
+ }
3457
+ function updateDraftPostLanguage(payload) {
3458
+ function __updateDraftPostLanguage({ host }) {
3459
+ const metadata = {
3460
+ entityFqdn: "wix.blog.v3.draft",
3461
+ method: "POST",
3462
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.UpdateDraftPostLanguage",
3463
+ packageName: PACKAGE_NAME,
3464
+ migrationOptions: {
3465
+ optInTransformResponse: true
3466
+ },
3467
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
3468
+ {
3469
+ protoPath: "/v3/multilingual/update-draft-post-language/{postId}",
3470
+ data: payload,
3471
+ host
3472
+ }
3473
+ ),
3474
+ data: payload,
3475
+ transformResponse: (payload2) => transformPaths(payload2, [
3476
+ {
3477
+ transformFn: transformRESTTimestampToSDKTimestamp,
3478
+ paths: [
3479
+ { path: "draftPost.editedDate" },
3480
+ { path: "draftPost.scheduledPublishDate" },
3481
+ { path: "draftPost.firstPublishedDate" },
3482
+ { path: "draftPost.createdDate" },
3483
+ { path: "draftPost.heroImage.urlExpirationDate" },
3484
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
3485
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
3486
+ { path: "draftPost.moderationDetails.submittedDate" },
3487
+ { path: "draftPost.moderationDetails.moderationDate" },
3488
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
3489
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
3490
+ {
3491
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
3492
+ },
3493
+ {
3494
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
3495
+ },
3496
+ {
3497
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
3498
+ }
3499
+ ]
3500
+ },
3501
+ {
3502
+ transformFn: transformRESTFloatToSDKFloat,
3503
+ paths: [
3504
+ { path: "draftPost.heroImage.focalPoint.x" },
3505
+ { path: "draftPost.heroImage.focalPoint.y" },
3506
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
3507
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
3508
+ {
3509
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
3510
+ },
3511
+ {
3512
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
3513
+ },
3514
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
3515
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
3516
+ {
3517
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
3518
+ },
3519
+ {
3520
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
3521
+ },
3522
+ {
3523
+ path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
3524
+ },
3525
+ {
3526
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
3527
+ },
3528
+ {
3529
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
3530
+ },
3531
+ {
3532
+ path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
3533
+ },
3534
+ {
3535
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
3536
+ },
3537
+ {
3538
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
3539
+ },
3540
+ {
3541
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
3542
+ },
3543
+ {
3544
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
3545
+ },
3546
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
3547
+ { path: "draftPost.richContent.nodes.imageData.crop.x" },
3548
+ { path: "draftPost.richContent.nodes.imageData.crop.y" },
3549
+ { path: "draftPost.richContent.nodes.imageData.crop.width" },
3550
+ { path: "draftPost.richContent.nodes.imageData.crop.height" },
3551
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
3552
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
3553
+ {
3554
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
3555
+ },
3556
+ {
3557
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
3558
+ },
3559
+ {
3560
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
3561
+ },
3562
+ {
3563
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
3564
+ },
3565
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
3566
+ {
3567
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
3568
+ },
3569
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
3570
+ {
3571
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
3572
+ },
3573
+ {
3574
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
3575
+ },
3576
+ {
3577
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
3578
+ },
3579
+ {
3580
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
3581
+ },
3582
+ {
3583
+ path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
3584
+ },
3585
+ {
3586
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
3587
+ },
3588
+ {
3589
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
3590
+ },
3591
+ {
3592
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
3593
+ },
3594
+ {
3595
+ path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
3596
+ },
3597
+ {
3598
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
3599
+ },
3600
+ {
3601
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
3602
+ },
3603
+ {
3604
+ path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
3605
+ },
3606
+ {
3607
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
3608
+ },
3609
+ {
3610
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
3611
+ },
3612
+ {
3613
+ path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
3614
+ },
3615
+ { path: "draftPost.richContent.nodes.shapeData.shape.duration" },
3616
+ {
3617
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
3618
+ },
3619
+ {
3620
+ path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
3621
+ },
3622
+ {
3623
+ path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
3624
+ },
3625
+ {
3626
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
3627
+ },
3628
+ {
3629
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
3630
+ },
3631
+ {
3632
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
3633
+ },
3634
+ {
3635
+ path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
3636
+ },
3637
+ { path: "draftPost.richContent.nodes.tocData.fontSize" },
3638
+ { path: "draftPost.richContent.nodes.tocData.itemSpacing" },
3639
+ {
3640
+ path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
3641
+ }
3642
+ ]
3643
+ }
3644
+ ])
3645
+ };
3646
+ return metadata;
3647
+ }
3648
+ return __updateDraftPostLanguage;
3649
+ }
3650
+
3651
+ // src/blog-v3-draft-draft-posts.universal.ts
3652
+ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
3653
+ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
3654
+ import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
3655
+ import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
3656
+ import { transformSDKPageURLToRESTPageURL } from "@wix/sdk-runtime/transformations/page-url";
3657
+ import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
3658
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
3659
+ import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
3660
+ var Origin = /* @__PURE__ */ ((Origin2) => {
3661
+ Origin2["UNKNOWN"] = "UNKNOWN";
3662
+ Origin2["ADMIN"] = "ADMIN";
3663
+ Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
3664
+ Origin2["AUTO_SAVE"] = "AUTO_SAVE";
3665
+ Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
3666
+ Origin2["IMPORT"] = "IMPORT";
3667
+ Origin2["IMPORT_BULK"] = "IMPORT_BULK";
3668
+ Origin2["IMPORT_HTML"] = "IMPORT_HTML";
3669
+ Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
3670
+ Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
3671
+ Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
3672
+ Origin2["MIGRATION"] = "MIGRATION";
3673
+ Origin2["MODERATION"] = "MODERATION";
3674
+ Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
3675
+ Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
3676
+ Origin2["PROVISION"] = "PROVISION";
3677
+ Origin2["PUBLISH"] = "PUBLISH";
3678
+ Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
3679
+ Origin2["REBLOG"] = "REBLOG";
3680
+ Origin2["RESTORE"] = "RESTORE";
3681
+ Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
3682
+ Origin2["TRANSLATION"] = "TRANSLATION";
3683
+ Origin2["UNPUBLISH"] = "UNPUBLISH";
3684
+ Origin2["UNSCHEDULE"] = "UNSCHEDULE";
3685
+ Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
3686
+ Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
3687
+ Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
3688
+ Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
3689
+ Origin2["SCHEDULE"] = "SCHEDULE";
3690
+ Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
3691
+ Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
3692
+ Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
3693
+ Origin2["DELETE_TAG"] = "DELETE_TAG";
3694
+ Origin2["PIN"] = "PIN";
3695
+ Origin2["UNPIN"] = "UNPIN";
3696
+ Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
3697
+ return Origin2;
3698
+ })(Origin || {});
3699
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
3700
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
3701
+ NodeType2["TEXT"] = "TEXT";
3702
+ NodeType2["HEADING"] = "HEADING";
3703
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
3704
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
3705
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
3706
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
3707
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
3708
+ NodeType2["VIDEO"] = "VIDEO";
3709
+ NodeType2["DIVIDER"] = "DIVIDER";
3710
+ NodeType2["FILE"] = "FILE";
3711
+ NodeType2["GALLERY"] = "GALLERY";
3712
+ NodeType2["GIF"] = "GIF";
3713
+ NodeType2["HTML"] = "HTML";
3714
+ NodeType2["IMAGE"] = "IMAGE";
3715
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
3716
+ NodeType2["MAP"] = "MAP";
3717
+ NodeType2["POLL"] = "POLL";
3718
+ NodeType2["APP_EMBED"] = "APP_EMBED";
3719
+ NodeType2["BUTTON"] = "BUTTON";
3720
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
3721
+ NodeType2["TABLE"] = "TABLE";
3722
+ NodeType2["EMBED"] = "EMBED";
3723
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
3724
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
3725
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
3726
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
3727
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
3728
+ NodeType2["EXTERNAL"] = "EXTERNAL";
3729
+ NodeType2["AUDIO"] = "AUDIO";
3730
+ NodeType2["CAPTION"] = "CAPTION";
3731
+ NodeType2["LAYOUT"] = "LAYOUT";
3732
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
3733
+ NodeType2["SHAPE"] = "SHAPE";
3734
+ NodeType2["CARD"] = "CARD";
3735
+ NodeType2["TOC"] = "TOC";
3736
+ NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
3737
+ NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
3738
+ NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
3739
+ return NodeType2;
3740
+ })(NodeType || {});
3741
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
3742
+ BackgroundType2["COLOR"] = "COLOR";
3743
+ BackgroundType2["GRADIENT"] = "GRADIENT";
3744
+ return BackgroundType2;
3745
+ })(BackgroundType || {});
3746
+ var GradientType = /* @__PURE__ */ ((GradientType2) => {
3747
+ GradientType2["LINEAR"] = "LINEAR";
3748
+ GradientType2["RADIAL"] = "RADIAL";
3749
+ return GradientType2;
3750
+ })(GradientType || {});
3751
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
3752
+ WidthType2["CONTENT"] = "CONTENT";
3753
+ WidthType2["SMALL"] = "SMALL";
3754
+ WidthType2["ORIGINAL"] = "ORIGINAL";
3755
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
3756
+ return WidthType2;
3757
+ })(WidthType || {});
3758
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
3759
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
3760
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
3761
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
3762
+ return PluginContainerDataAlignment2;
3763
+ })(PluginContainerDataAlignment || {});
3764
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
3765
+ ButtonDataType2["LINK"] = "LINK";
3766
+ ButtonDataType2["ACTION"] = "ACTION";
3767
+ return ButtonDataType2;
3768
+ })(ButtonDataType || {});
3769
+ var Target = /* @__PURE__ */ ((Target2) => {
3770
+ Target2["SELF"] = "SELF";
3771
+ Target2["BLANK"] = "BLANK";
3772
+ Target2["PARENT"] = "PARENT";
3773
+ Target2["TOP"] = "TOP";
3774
+ return Target2;
3775
+ })(Target || {});
3776
+ var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
3777
+ AnimationType2["VIEW"] = "VIEW";
3778
+ AnimationType2["POINTER"] = "POINTER";
3779
+ return AnimationType2;
3780
+ })(AnimationType || {});
3781
+ var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
3782
+ EntranceEffectType2["FADE"] = "FADE";
3783
+ EntranceEffectType2["ARC"] = "ARC";
3784
+ EntranceEffectType2["BLUR"] = "BLUR";
3785
+ EntranceEffectType2["BOUNCE"] = "BOUNCE";
3786
+ EntranceEffectType2["DROP"] = "DROP";
3787
+ EntranceEffectType2["EXPAND"] = "EXPAND";
3788
+ EntranceEffectType2["FLIP"] = "FLIP";
3789
+ EntranceEffectType2["FLOAT"] = "FLOAT";
3790
+ EntranceEffectType2["FOLD"] = "FOLD";
3250
3791
  EntranceEffectType2["GLIDE"] = "GLIDE";
3251
3792
  EntranceEffectType2["REVEAL"] = "REVEAL";
3252
3793
  EntranceEffectType2["SHAPE"] = "SHAPE";
@@ -4564,6 +5105,110 @@ async function publishDraftPost2(draftPostId) {
4564
5105
  throw transformedError;
4565
5106
  }
4566
5107
  }
5108
+ async function translateDraft2(postId, language, options) {
5109
+ const { httpClient, sideEffects } = arguments[3];
5110
+ const payload = renameKeysFromSDKRequestToRESTRequest(
5111
+ { postId, language, fieldsets: options?.fieldsets },
5112
+ []
5113
+ );
5114
+ const reqOpts = translateDraft(payload);
5115
+ sideEffects?.onSiteCall?.();
5116
+ try {
5117
+ const result = await httpClient.request(reqOpts);
5118
+ sideEffects?.onSuccess?.(result);
5119
+ return renameKeysFromRESTResponseToSDKResponse(
5120
+ transformPaths2(result.data, [
5121
+ {
5122
+ transformFn: transformRESTImageToSDKImage,
5123
+ paths: [
5124
+ { path: "draftPost.heroImage" },
5125
+ { path: "draftPost.media.wixMedia.image" }
5126
+ ]
5127
+ },
5128
+ {
5129
+ transformFn: transformRESTPageURLToSDKPageURL,
5130
+ paths: [
5131
+ { path: "draftPost.url" },
5132
+ { path: "draftPost.translations.url" }
5133
+ ]
5134
+ },
5135
+ {
5136
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
5137
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
5138
+ }
5139
+ ]),
5140
+ ["draftPost.richContent"]
5141
+ );
5142
+ } catch (err) {
5143
+ const transformedError = sdkTransformError(
5144
+ err,
5145
+ {
5146
+ spreadPathsToArguments: {},
5147
+ explicitPathsToArguments: {
5148
+ postId: "$[0]",
5149
+ language: "$[1]",
5150
+ fieldsets: "$[2].fieldsets"
5151
+ },
5152
+ singleArgumentUnchanged: false
5153
+ },
5154
+ ["postId", "language", "options"]
5155
+ );
5156
+ sideEffects?.onError?.(err);
5157
+ throw transformedError;
5158
+ }
5159
+ }
5160
+ async function updateDraftPostLanguage2(postId, language, options) {
5161
+ const { httpClient, sideEffects } = arguments[3];
5162
+ const payload = renameKeysFromSDKRequestToRESTRequest(
5163
+ { postId, language, fieldsets: options?.fieldsets },
5164
+ []
5165
+ );
5166
+ const reqOpts = updateDraftPostLanguage(payload);
5167
+ sideEffects?.onSiteCall?.();
5168
+ try {
5169
+ const result = await httpClient.request(reqOpts);
5170
+ sideEffects?.onSuccess?.(result);
5171
+ return renameKeysFromRESTResponseToSDKResponse(
5172
+ transformPaths2(result.data, [
5173
+ {
5174
+ transformFn: transformRESTImageToSDKImage,
5175
+ paths: [
5176
+ { path: "draftPost.heroImage" },
5177
+ { path: "draftPost.media.wixMedia.image" }
5178
+ ]
5179
+ },
5180
+ {
5181
+ transformFn: transformRESTPageURLToSDKPageURL,
5182
+ paths: [
5183
+ { path: "draftPost.url" },
5184
+ { path: "draftPost.translations.url" }
5185
+ ]
5186
+ },
5187
+ {
5188
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
5189
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
5190
+ }
5191
+ ]),
5192
+ ["draftPost.richContent"]
5193
+ );
5194
+ } catch (err) {
5195
+ const transformedError = sdkTransformError(
5196
+ err,
5197
+ {
5198
+ spreadPathsToArguments: {},
5199
+ explicitPathsToArguments: {
5200
+ postId: "$[0]",
5201
+ language: "$[1]",
5202
+ fieldsets: "$[2].fieldsets"
5203
+ },
5204
+ singleArgumentUnchanged: false
5205
+ },
5206
+ ["postId", "language", "options"]
5207
+ );
5208
+ sideEffects?.onError?.(err);
5209
+ throw transformedError;
5210
+ }
5211
+ }
4567
5212
 
4568
5213
  // src/blog-v3-draft-draft-posts.public.ts
4569
5214
  function createDraftPost3(httpClient) {
@@ -4679,6 +5324,24 @@ function publishDraftPost3(httpClient) {
4679
5324
  { httpClient }
4680
5325
  );
4681
5326
  }
5327
+ function translateDraft3(httpClient) {
5328
+ return (postId, language, options) => translateDraft2(
5329
+ postId,
5330
+ language,
5331
+ options,
5332
+ // @ts-ignore
5333
+ { httpClient }
5334
+ );
5335
+ }
5336
+ function updateDraftPostLanguage3(httpClient) {
5337
+ return (postId, language, options) => updateDraftPostLanguage2(
5338
+ postId,
5339
+ language,
5340
+ options,
5341
+ // @ts-ignore
5342
+ { httpClient }
5343
+ );
5344
+ }
4682
5345
  var onDraftCreated = /* @__PURE__ */ EventDefinition(
4683
5346
  "wix.blog.v3.draft_created",
4684
5347
  true,
@@ -5182,6 +5845,8 @@ var listDraftPosts4 = /* @__PURE__ */ createRESTModule(listDraftPosts3);
5182
5845
  var getDeletedDraftPost4 = /* @__PURE__ */ createRESTModule(getDeletedDraftPost3);
5183
5846
  var restoreFromTrashBin4 = /* @__PURE__ */ createRESTModule(restoreFromTrashBin3);
5184
5847
  var publishDraftPost4 = /* @__PURE__ */ createRESTModule(publishDraftPost3);
5848
+ var translateDraft4 = /* @__PURE__ */ createRESTModule(translateDraft3);
5849
+ var updateDraftPostLanguage4 = /* @__PURE__ */ createRESTModule(updateDraftPostLanguage3);
5185
5850
  var queryDraftPosts4 = /* @__PURE__ */ createRESTModule(customQueryDraftPosts);
5186
5851
  var onDraftCreated2 = /* @__PURE__ */ createEventModule(onDraftCreated);
5187
5852
  var onDraftDeleted2 = /* @__PURE__ */ createEventModule(onDraftDeleted);
@@ -5276,7 +5941,9 @@ export {
5276
5941
  queryDraftPosts4 as queryDraftPosts,
5277
5942
  removeFromTrashBin4 as removeFromTrashBin,
5278
5943
  restoreFromTrashBin4 as restoreFromTrashBin,
5944
+ translateDraft4 as translateDraft,
5279
5945
  updateDraftPost4 as updateDraftPost,
5946
+ updateDraftPostLanguage4 as updateDraftPostLanguage,
5280
5947
  utils
5281
5948
  };
5282
5949
  //# sourceMappingURL=index.mjs.map