@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.
- package/build/cjs/index.d.ts +56 -3
- package/build/cjs/index.js +810 -141
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +122 -25
- package/build/cjs/index.typings.js +790 -141
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -26
- package/build/cjs/meta.js +583 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +56 -3
- package/build/es/index.mjs +808 -141
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +122 -25
- package/build/es/index.typings.mjs +788 -141
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -26
- package/build/es/meta.mjs +580 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +56 -3
- package/build/internal/cjs/index.typings.d.ts +125 -26
- package/build/internal/cjs/meta.d.ts +47 -27
- package/build/internal/es/index.d.mts +56 -3
- package/build/internal/es/index.typings.d.mts +125 -26
- package/build/internal/es/meta.d.mts +47 -27
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -7,6 +7,165 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
7
7
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
8
8
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
9
9
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
function resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(opts) {
|
|
11
|
+
const domainToMappings = {
|
|
12
|
+
"api._api_base_domain_": [
|
|
13
|
+
{
|
|
14
|
+
srcPath: "/communities-blog-node-api",
|
|
15
|
+
destPath: ""
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"www._base_domain_": [
|
|
19
|
+
{
|
|
20
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
21
|
+
destPath: ""
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
|
25
|
+
destPath: "/v2/stats"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"apps._base_domain_": [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
31
|
+
destPath: ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
|
35
|
+
destPath: "/v2/stats"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
_: [
|
|
39
|
+
{
|
|
40
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
41
|
+
destPath: ""
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
|
|
45
|
+
destPath: "/_api/blogs/this"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/communities-blog-node-api/_api/categories",
|
|
49
|
+
destPath: "/_api/categories"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/_api/communities-blog-node-api/_api/site-properties",
|
|
53
|
+
destPath: "/_api/site-properties"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
srcPath: "/_api/communities-blog-node-api/_api/posts/content",
|
|
57
|
+
destPath: "/_api/posts/content"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
|
61
|
+
destPath: "/v2/stats"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"editor._base_domain_": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
67
|
+
destPath: ""
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"blocks._base_domain_": [
|
|
71
|
+
{
|
|
72
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
73
|
+
destPath: ""
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"create.editorx": [
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
79
|
+
destPath: ""
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"*.dev.wix-code.com": [
|
|
83
|
+
{
|
|
84
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
85
|
+
destPath: ""
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"*.pub.wix-code.com": [
|
|
89
|
+
{
|
|
90
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
91
|
+
destPath: ""
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"bo._base_domain_": [
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
97
|
+
destPath: ""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
101
|
+
destPath: ""
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"wixbo.ai": [
|
|
105
|
+
{
|
|
106
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
107
|
+
destPath: ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
111
|
+
destPath: ""
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"wix-bo.com": [
|
|
115
|
+
{
|
|
116
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
117
|
+
destPath: ""
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
121
|
+
destPath: ""
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"manage._base_domain_": [
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
127
|
+
destPath: ""
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"social-blog._base_domain_": [
|
|
131
|
+
{
|
|
132
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
133
|
+
destPath: ""
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"editor.wixapps.net": [
|
|
137
|
+
{
|
|
138
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
139
|
+
destPath: ""
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"dev._base_domain_": [
|
|
143
|
+
{
|
|
144
|
+
srcPath: "/_api/communities-blog-node-api",
|
|
145
|
+
destPath: ""
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"www.wixapis.com": [
|
|
149
|
+
{
|
|
150
|
+
srcPath: "/blog/v2",
|
|
151
|
+
destPath: "/v2"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
srcPath: "/blog/v3",
|
|
155
|
+
destPath: "/v3"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
srcPath: "/v2/stats",
|
|
159
|
+
destPath: "/v2/stats"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
srcPath: "/blog/v2/stats",
|
|
163
|
+
destPath: "/v2/stats"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
};
|
|
167
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
168
|
+
}
|
|
10
169
|
function resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(opts) {
|
|
11
170
|
const domainToMappings = {
|
|
12
171
|
_api_base_domain_: [
|
|
@@ -3088,6 +3247,388 @@ function publishDraftPost(payload) {
|
|
|
3088
3247
|
}
|
|
3089
3248
|
return __publishDraftPost;
|
|
3090
3249
|
}
|
|
3250
|
+
function translateDraft(payload) {
|
|
3251
|
+
function __translateDraft({ host }) {
|
|
3252
|
+
const metadata = {
|
|
3253
|
+
entityFqdn: "wix.blog.v3.draft",
|
|
3254
|
+
method: "POST",
|
|
3255
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.TranslateDraft",
|
|
3256
|
+
packageName: PACKAGE_NAME,
|
|
3257
|
+
migrationOptions: {
|
|
3258
|
+
optInTransformResponse: true
|
|
3259
|
+
},
|
|
3260
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
|
|
3261
|
+
{ protoPath: "/v3/multilingual/draft/{postId}", data: payload, host }
|
|
3262
|
+
),
|
|
3263
|
+
data: payload,
|
|
3264
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
3265
|
+
{
|
|
3266
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
3267
|
+
paths: [
|
|
3268
|
+
{ path: "draftPost.editedDate" },
|
|
3269
|
+
{ path: "draftPost.scheduledPublishDate" },
|
|
3270
|
+
{ path: "draftPost.firstPublishedDate" },
|
|
3271
|
+
{ path: "draftPost.createdDate" },
|
|
3272
|
+
{ path: "draftPost.heroImage.urlExpirationDate" },
|
|
3273
|
+
{ path: "draftPost.richContent.metadata.createdTimestamp" },
|
|
3274
|
+
{ path: "draftPost.richContent.metadata.updatedTimestamp" },
|
|
3275
|
+
{ path: "draftPost.moderationDetails.submittedDate" },
|
|
3276
|
+
{ path: "draftPost.moderationDetails.moderationDate" },
|
|
3277
|
+
{ path: "draftPost.media.wixMedia.image.urlExpirationDate" },
|
|
3278
|
+
{ path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
|
|
3279
|
+
{
|
|
3280
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
|
|
3287
|
+
}
|
|
3288
|
+
]
|
|
3289
|
+
},
|
|
3290
|
+
{
|
|
3291
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
3292
|
+
paths: [
|
|
3293
|
+
{ path: "draftPost.heroImage.focalPoint.x" },
|
|
3294
|
+
{ path: "draftPost.heroImage.focalPoint.y" },
|
|
3295
|
+
{ path: "draftPost.media.wixMedia.image.focalPoint.x" },
|
|
3296
|
+
{ path: "draftPost.media.wixMedia.image.focalPoint.y" },
|
|
3297
|
+
{
|
|
3298
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
|
3302
|
+
},
|
|
3303
|
+
{ path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
|
|
3304
|
+
{ path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
|
|
3305
|
+
{
|
|
3306
|
+
path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
|
|
3334
|
+
},
|
|
3335
|
+
{ path: "draftPost.richContent.nodes.imageData.image.duration" },
|
|
3336
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.x" },
|
|
3337
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.y" },
|
|
3338
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.width" },
|
|
3339
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.height" },
|
|
3340
|
+
{ path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
|
|
3341
|
+
{ path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
|
|
3342
|
+
{
|
|
3343
|
+
path: "draftPost.richContent.nodes.pollData.poll.image.duration"
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
path: "draftPost.richContent.nodes.appEmbedData.image.duration"
|
|
3353
|
+
},
|
|
3354
|
+
{ path: "draftPost.richContent.nodes.videoData.video.duration" },
|
|
3355
|
+
{
|
|
3356
|
+
path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
|
|
3357
|
+
},
|
|
3358
|
+
{ path: "draftPost.richContent.nodes.audioData.audio.duration" },
|
|
3359
|
+
{
|
|
3360
|
+
path: "draftPost.richContent.nodes.audioData.coverImage.duration"
|
|
3361
|
+
},
|
|
3362
|
+
{
|
|
3363
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
3364
|
+
},
|
|
3365
|
+
{
|
|
3366
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
|
|
3367
|
+
},
|
|
3368
|
+
{
|
|
3369
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
|
|
3373
|
+
},
|
|
3374
|
+
{
|
|
3375
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
|
|
3388
|
+
},
|
|
3389
|
+
{
|
|
3390
|
+
path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
|
|
3391
|
+
},
|
|
3392
|
+
{
|
|
3393
|
+
path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
|
|
3394
|
+
},
|
|
3395
|
+
{
|
|
3396
|
+
path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
|
|
3400
|
+
},
|
|
3401
|
+
{
|
|
3402
|
+
path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
|
|
3403
|
+
},
|
|
3404
|
+
{ path: "draftPost.richContent.nodes.shapeData.shape.duration" },
|
|
3405
|
+
{
|
|
3406
|
+
path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
3416
|
+
},
|
|
3417
|
+
{
|
|
3418
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
|
|
3425
|
+
},
|
|
3426
|
+
{ path: "draftPost.richContent.nodes.tocData.fontSize" },
|
|
3427
|
+
{ path: "draftPost.richContent.nodes.tocData.itemSpacing" },
|
|
3428
|
+
{
|
|
3429
|
+
path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
|
|
3430
|
+
}
|
|
3431
|
+
]
|
|
3432
|
+
}
|
|
3433
|
+
])
|
|
3434
|
+
};
|
|
3435
|
+
return metadata;
|
|
3436
|
+
}
|
|
3437
|
+
return __translateDraft;
|
|
3438
|
+
}
|
|
3439
|
+
function updateDraftPostLanguage(payload) {
|
|
3440
|
+
function __updateDraftPostLanguage({ host }) {
|
|
3441
|
+
const metadata = {
|
|
3442
|
+
entityFqdn: "wix.blog.v3.draft",
|
|
3443
|
+
method: "POST",
|
|
3444
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.BlogMultilingualService.UpdateDraftPostLanguage",
|
|
3445
|
+
packageName: PACKAGE_NAME,
|
|
3446
|
+
migrationOptions: {
|
|
3447
|
+
optInTransformResponse: true
|
|
3448
|
+
},
|
|
3449
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3BlogMultilingualServiceUrl(
|
|
3450
|
+
{
|
|
3451
|
+
protoPath: "/v3/multilingual/update-draft-post-language/{postId}",
|
|
3452
|
+
data: payload,
|
|
3453
|
+
host
|
|
3454
|
+
}
|
|
3455
|
+
),
|
|
3456
|
+
data: payload,
|
|
3457
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
3458
|
+
{
|
|
3459
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
3460
|
+
paths: [
|
|
3461
|
+
{ path: "draftPost.editedDate" },
|
|
3462
|
+
{ path: "draftPost.scheduledPublishDate" },
|
|
3463
|
+
{ path: "draftPost.firstPublishedDate" },
|
|
3464
|
+
{ path: "draftPost.createdDate" },
|
|
3465
|
+
{ path: "draftPost.heroImage.urlExpirationDate" },
|
|
3466
|
+
{ path: "draftPost.richContent.metadata.createdTimestamp" },
|
|
3467
|
+
{ path: "draftPost.richContent.metadata.updatedTimestamp" },
|
|
3468
|
+
{ path: "draftPost.moderationDetails.submittedDate" },
|
|
3469
|
+
{ path: "draftPost.moderationDetails.moderationDate" },
|
|
3470
|
+
{ path: "draftPost.media.wixMedia.image.urlExpirationDate" },
|
|
3471
|
+
{ path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
|
|
3472
|
+
{
|
|
3473
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
|
|
3480
|
+
}
|
|
3481
|
+
]
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
3485
|
+
paths: [
|
|
3486
|
+
{ path: "draftPost.heroImage.focalPoint.x" },
|
|
3487
|
+
{ path: "draftPost.heroImage.focalPoint.y" },
|
|
3488
|
+
{ path: "draftPost.media.wixMedia.image.focalPoint.x" },
|
|
3489
|
+
{ path: "draftPost.media.wixMedia.image.focalPoint.y" },
|
|
3490
|
+
{
|
|
3491
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
|
3495
|
+
},
|
|
3496
|
+
{ path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
|
|
3497
|
+
{ path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
|
|
3498
|
+
{
|
|
3499
|
+
path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerX"
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.centerY"
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
path: "draftPost.richContent.nodes.buttonData.styles.background.gradient.stops.position"
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
path: "draftPost.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
|
|
3527
|
+
},
|
|
3528
|
+
{ path: "draftPost.richContent.nodes.imageData.image.duration" },
|
|
3529
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.x" },
|
|
3530
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.y" },
|
|
3531
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.width" },
|
|
3532
|
+
{ path: "draftPost.richContent.nodes.imageData.crop.height" },
|
|
3533
|
+
{ path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
|
|
3534
|
+
{ path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
|
|
3535
|
+
{
|
|
3536
|
+
path: "draftPost.richContent.nodes.pollData.poll.image.duration"
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
path: "draftPost.richContent.nodes.appEmbedData.image.duration"
|
|
3546
|
+
},
|
|
3547
|
+
{ path: "draftPost.richContent.nodes.videoData.video.duration" },
|
|
3548
|
+
{
|
|
3549
|
+
path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
|
|
3550
|
+
},
|
|
3551
|
+
{ path: "draftPost.richContent.nodes.audioData.audio.duration" },
|
|
3552
|
+
{
|
|
3553
|
+
path: "draftPost.richContent.nodes.audioData.coverImage.duration"
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
path: "draftPost.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
3569
|
+
},
|
|
3570
|
+
{
|
|
3571
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
path: "draftPost.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
path: "draftPost.richContent.nodes.layoutData.background.gradient.centerX"
|
|
3581
|
+
},
|
|
3582
|
+
{
|
|
3583
|
+
path: "draftPost.richContent.nodes.layoutData.background.gradient.centerY"
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
path: "draftPost.richContent.nodes.layoutData.background.gradient.stops.position"
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerX"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.centerY"
|
|
3593
|
+
},
|
|
3594
|
+
{
|
|
3595
|
+
path: "draftPost.richContent.nodes.layoutData.backdrop.gradient.stops.position"
|
|
3596
|
+
},
|
|
3597
|
+
{ path: "draftPost.richContent.nodes.shapeData.shape.duration" },
|
|
3598
|
+
{
|
|
3599
|
+
path: "draftPost.richContent.nodes.cardData.background.gradient.centerX"
|
|
3600
|
+
},
|
|
3601
|
+
{
|
|
3602
|
+
path: "draftPost.richContent.nodes.cardData.background.gradient.centerY"
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
path: "draftPost.richContent.nodes.cardData.background.gradient.stops.position"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
path: "draftPost.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
|
|
3618
|
+
},
|
|
3619
|
+
{ path: "draftPost.richContent.nodes.tocData.fontSize" },
|
|
3620
|
+
{ path: "draftPost.richContent.nodes.tocData.itemSpacing" },
|
|
3621
|
+
{
|
|
3622
|
+
path: "draftPost.richContent.nodes.smartBlockCellData.shape.duration"
|
|
3623
|
+
}
|
|
3624
|
+
]
|
|
3625
|
+
}
|
|
3626
|
+
])
|
|
3627
|
+
};
|
|
3628
|
+
return metadata;
|
|
3629
|
+
}
|
|
3630
|
+
return __updateDraftPostLanguage;
|
|
3631
|
+
}
|
|
3091
3632
|
|
|
3092
3633
|
// src/blog-v3-draft-draft-posts.types.ts
|
|
3093
3634
|
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
@@ -3958,6 +4499,42 @@ function publishDraftPost2() {
|
|
|
3958
4499
|
__originalResponseType: null
|
|
3959
4500
|
};
|
|
3960
4501
|
}
|
|
4502
|
+
function translateDraft2() {
|
|
4503
|
+
const payload = { postId: ":postId" };
|
|
4504
|
+
const getRequestOptions = translateDraft(payload);
|
|
4505
|
+
const getUrl = (context) => {
|
|
4506
|
+
const { url } = getRequestOptions(context);
|
|
4507
|
+
return url;
|
|
4508
|
+
};
|
|
4509
|
+
return {
|
|
4510
|
+
getUrl,
|
|
4511
|
+
httpMethod: "POST",
|
|
4512
|
+
path: "/v3/multilingual/draft/{postId}",
|
|
4513
|
+
pathParams: { postId: "postId" },
|
|
4514
|
+
__requestType: null,
|
|
4515
|
+
__originalRequestType: null,
|
|
4516
|
+
__responseType: null,
|
|
4517
|
+
__originalResponseType: null
|
|
4518
|
+
};
|
|
4519
|
+
}
|
|
4520
|
+
function updateDraftPostLanguage2() {
|
|
4521
|
+
const payload = { postId: ":postId" };
|
|
4522
|
+
const getRequestOptions = updateDraftPostLanguage(payload);
|
|
4523
|
+
const getUrl = (context) => {
|
|
4524
|
+
const { url } = getRequestOptions(context);
|
|
4525
|
+
return url;
|
|
4526
|
+
};
|
|
4527
|
+
return {
|
|
4528
|
+
getUrl,
|
|
4529
|
+
httpMethod: "POST",
|
|
4530
|
+
path: "/v3/multilingual/update-draft-post-language/{postId}",
|
|
4531
|
+
pathParams: { postId: "postId" },
|
|
4532
|
+
__requestType: null,
|
|
4533
|
+
__originalRequestType: null,
|
|
4534
|
+
__responseType: null,
|
|
4535
|
+
__originalResponseType: null
|
|
4536
|
+
};
|
|
4537
|
+
}
|
|
3961
4538
|
export {
|
|
3962
4539
|
Action as ActionOriginal,
|
|
3963
4540
|
Alignment as AlignmentOriginal,
|
|
@@ -4045,6 +4622,8 @@ export {
|
|
|
4045
4622
|
queryDraftPosts2 as queryDraftPosts,
|
|
4046
4623
|
removeFromTrashBin2 as removeFromTrashBin,
|
|
4047
4624
|
restoreFromTrashBin2 as restoreFromTrashBin,
|
|
4048
|
-
|
|
4625
|
+
translateDraft2 as translateDraft,
|
|
4626
|
+
updateDraftPost2 as updateDraftPost,
|
|
4627
|
+
updateDraftPostLanguage2 as updateDraftPostLanguage
|
|
4049
4628
|
};
|
|
4050
4629
|
//# sourceMappingURL=meta.mjs.map
|