@wix/auto_sdk_blog_posts 1.0.121 → 1.0.123
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 +4 -4
- package/build/cjs/index.js +75 -74
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +352 -144
- package/build/cjs/index.typings.js +51 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +215 -145
- package/build/cjs/meta.js +43 -29
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +72 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +352 -144
- package/build/es/index.typings.mjs +48 -55
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +215 -145
- package/build/es/meta.mjs +43 -29
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +75 -74
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +353 -145
- package/build/internal/cjs/index.typings.js +51 -55
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +215 -145
- package/build/internal/cjs/meta.js +43 -29
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs +72 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +353 -145
- package/build/internal/es/index.typings.mjs +48 -55
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +215 -145
- package/build/internal/es/meta.mjs +43 -29
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -211,6 +211,10 @@ function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opt
|
|
|
211
211
|
{
|
|
212
212
|
srcPath: "/_api/communities-blog-node-api",
|
|
213
213
|
destPath: ""
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
srcPath: "/_api/communities-blog-node-api/v3/multilingual",
|
|
217
|
+
destPath: "/v3/multilingual"
|
|
214
218
|
}
|
|
215
219
|
],
|
|
216
220
|
"social-blog._base_domain_": [
|
|
@@ -329,8 +333,6 @@ function getPost(payload) {
|
|
|
329
333
|
paths: [
|
|
330
334
|
{ path: "post.firstPublishedDate" },
|
|
331
335
|
{ path: "post.lastPublishedDate" },
|
|
332
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
333
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
334
336
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
335
337
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
336
338
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -354,10 +356,6 @@ function getPost(payload) {
|
|
|
354
356
|
{
|
|
355
357
|
transformFn: transformRESTFloatToSDKFloat,
|
|
356
358
|
paths: [
|
|
357
|
-
{ path: "post.coverMedia.image.focalPoint.x" },
|
|
358
|
-
{ path: "post.coverMedia.image.focalPoint.y" },
|
|
359
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
|
360
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
|
361
359
|
{ path: "post.heroImage.focalPoint.x" },
|
|
362
360
|
{ path: "post.heroImage.focalPoint.y" },
|
|
363
361
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -395,7 +393,14 @@ function getPost(payload) {
|
|
|
395
393
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
396
394
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
397
395
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
398
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
396
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
397
|
+
{
|
|
398
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
402
|
+
},
|
|
403
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
399
404
|
]
|
|
400
405
|
}
|
|
401
406
|
])
|
|
@@ -426,8 +431,6 @@ function getPostBySlug(payload) {
|
|
|
426
431
|
paths: [
|
|
427
432
|
{ path: "post.firstPublishedDate" },
|
|
428
433
|
{ path: "post.lastPublishedDate" },
|
|
429
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
430
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
431
434
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
432
435
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
433
436
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -451,10 +454,6 @@ function getPostBySlug(payload) {
|
|
|
451
454
|
{
|
|
452
455
|
transformFn: transformRESTFloatToSDKFloat,
|
|
453
456
|
paths: [
|
|
454
|
-
{ path: "post.coverMedia.image.focalPoint.x" },
|
|
455
|
-
{ path: "post.coverMedia.image.focalPoint.y" },
|
|
456
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
|
457
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
|
458
457
|
{ path: "post.heroImage.focalPoint.x" },
|
|
459
458
|
{ path: "post.heroImage.focalPoint.y" },
|
|
460
459
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -492,7 +491,14 @@ function getPostBySlug(payload) {
|
|
|
492
491
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
493
492
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
494
493
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
495
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
494
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
495
|
+
{
|
|
496
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
500
|
+
},
|
|
501
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
496
502
|
]
|
|
497
503
|
}
|
|
498
504
|
])
|
|
@@ -523,8 +529,6 @@ function listPosts(payload) {
|
|
|
523
529
|
paths: [
|
|
524
530
|
{ path: "posts.firstPublishedDate" },
|
|
525
531
|
{ path: "posts.lastPublishedDate" },
|
|
526
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
527
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
528
532
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
529
533
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
530
534
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -550,10 +554,6 @@ function listPosts(payload) {
|
|
|
550
554
|
{
|
|
551
555
|
transformFn: transformRESTFloatToSDKFloat,
|
|
552
556
|
paths: [
|
|
553
|
-
{ path: "posts.coverMedia.image.focalPoint.x" },
|
|
554
|
-
{ path: "posts.coverMedia.image.focalPoint.y" },
|
|
555
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
|
556
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
|
557
557
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
558
558
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
559
559
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -593,7 +593,14 @@ function listPosts(payload) {
|
|
|
593
593
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
594
594
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
595
595
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
596
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
596
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
597
|
+
{
|
|
598
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
602
|
+
},
|
|
603
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
597
604
|
]
|
|
598
605
|
}
|
|
599
606
|
])
|
|
@@ -624,8 +631,6 @@ function queryPosts(payload) {
|
|
|
624
631
|
paths: [
|
|
625
632
|
{ path: "posts.firstPublishedDate" },
|
|
626
633
|
{ path: "posts.lastPublishedDate" },
|
|
627
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
628
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
629
634
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
630
635
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
631
636
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -651,10 +656,6 @@ function queryPosts(payload) {
|
|
|
651
656
|
{
|
|
652
657
|
transformFn: transformRESTFloatToSDKFloat,
|
|
653
658
|
paths: [
|
|
654
|
-
{ path: "posts.coverMedia.image.focalPoint.x" },
|
|
655
|
-
{ path: "posts.coverMedia.image.focalPoint.y" },
|
|
656
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
|
657
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
|
658
659
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
659
660
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
660
661
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -694,7 +695,14 @@ function queryPosts(payload) {
|
|
|
694
695
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
695
696
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
696
697
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
697
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
698
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
699
|
+
{
|
|
700
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
704
|
+
},
|
|
705
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
698
706
|
]
|
|
699
707
|
}
|
|
700
708
|
])
|
|
@@ -734,9 +742,9 @@ function getPostMetrics(payload) {
|
|
|
734
742
|
// src/blog-v3-post-posts.universal.ts
|
|
735
743
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
736
744
|
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
737
|
-
import { transformRESTVideoToSDKVideo } from "@wix/sdk-runtime/transformations/video";
|
|
738
745
|
import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
|
|
739
746
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
747
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
740
748
|
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
741
749
|
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
|
742
750
|
NodeType2["TEXT"] = "TEXT";
|
|
@@ -771,6 +779,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
771
779
|
NodeType2["CAPTION"] = "CAPTION";
|
|
772
780
|
NodeType2["LAYOUT"] = "LAYOUT";
|
|
773
781
|
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
782
|
+
NodeType2["SHAPE"] = "SHAPE";
|
|
774
783
|
return NodeType2;
|
|
775
784
|
})(NodeType || {});
|
|
776
785
|
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
|
@@ -863,13 +872,14 @@ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
|
|
|
863
872
|
return ThumbnailsAlignment2;
|
|
864
873
|
})(ThumbnailsAlignment || {});
|
|
865
874
|
var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
|
866
|
-
GIFType2["
|
|
875
|
+
GIFType2["NORMAL"] = "NORMAL";
|
|
867
876
|
GIFType2["STICKER"] = "STICKER";
|
|
868
877
|
return GIFType2;
|
|
869
878
|
})(GIFType || {});
|
|
870
879
|
var Source = /* @__PURE__ */ ((Source2) => {
|
|
871
880
|
Source2["HTML"] = "HTML";
|
|
872
881
|
Source2["ADSENSE"] = "ADSENSE";
|
|
882
|
+
Source2["AI"] = "AI";
|
|
873
883
|
return Source2;
|
|
874
884
|
})(Source || {});
|
|
875
885
|
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
@@ -924,6 +934,10 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
924
934
|
DecorationType2["COLOR"] = "COLOR";
|
|
925
935
|
DecorationType2["FONT_SIZE"] = "FONT_SIZE";
|
|
926
936
|
DecorationType2["EXTERNAL"] = "EXTERNAL";
|
|
937
|
+
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
938
|
+
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
939
|
+
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
940
|
+
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
927
941
|
return DecorationType2;
|
|
928
942
|
})(DecorationType || {});
|
|
929
943
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1227,14 +1241,9 @@ async function getPost2(postId, options) {
|
|
|
1227
1241
|
transformFn: transformRESTImageToSDKImage,
|
|
1228
1242
|
paths: [
|
|
1229
1243
|
{ path: "post.heroImage" },
|
|
1230
|
-
{ path: "post.coverMedia.image" },
|
|
1231
1244
|
{ path: "post.media.wixMedia.image" }
|
|
1232
1245
|
]
|
|
1233
1246
|
},
|
|
1234
|
-
{
|
|
1235
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1236
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1237
|
-
},
|
|
1238
1247
|
{
|
|
1239
1248
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1240
1249
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1280,14 +1289,9 @@ async function getPostBySlug2(slug, options) {
|
|
|
1280
1289
|
transformFn: transformRESTImageToSDKImage,
|
|
1281
1290
|
paths: [
|
|
1282
1291
|
{ path: "post.heroImage" },
|
|
1283
|
-
{ path: "post.coverMedia.image" },
|
|
1284
1292
|
{ path: "post.media.wixMedia.image" }
|
|
1285
1293
|
]
|
|
1286
1294
|
},
|
|
1287
|
-
{
|
|
1288
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1289
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1290
|
-
},
|
|
1291
1295
|
{
|
|
1292
1296
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1293
1297
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1344,14 +1348,9 @@ async function listPosts2(options) {
|
|
|
1344
1348
|
transformFn: transformRESTImageToSDKImage,
|
|
1345
1349
|
paths: [
|
|
1346
1350
|
{ path: "posts.heroImage" },
|
|
1347
|
-
{ path: "posts.coverMedia.image" },
|
|
1348
1351
|
{ path: "posts.media.wixMedia.image" }
|
|
1349
1352
|
]
|
|
1350
1353
|
},
|
|
1351
|
-
{
|
|
1352
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1353
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1354
|
-
},
|
|
1355
1354
|
{
|
|
1356
1355
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1357
1356
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1419,14 +1418,9 @@ function queryPosts2(options) {
|
|
|
1419
1418
|
transformFn: transformRESTImageToSDKImage,
|
|
1420
1419
|
paths: [
|
|
1421
1420
|
{ path: "posts.heroImage" },
|
|
1422
|
-
{ path: "posts.coverMedia.image" },
|
|
1423
1421
|
{ path: "posts.media.wixMedia.image" }
|
|
1424
1422
|
]
|
|
1425
1423
|
},
|
|
1426
|
-
{
|
|
1427
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1428
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1429
|
-
},
|
|
1430
1424
|
{
|
|
1431
1425
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1432
1426
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1472,14 +1466,9 @@ async function typedQueryPosts(query, options) {
|
|
|
1472
1466
|
transformFn: transformRESTImageToSDKImage,
|
|
1473
1467
|
paths: [
|
|
1474
1468
|
{ path: "posts.heroImage" },
|
|
1475
|
-
{ path: "posts.coverMedia.image" },
|
|
1476
1469
|
{ path: "posts.media.wixMedia.image" }
|
|
1477
1470
|
]
|
|
1478
1471
|
},
|
|
1479
|
-
{
|
|
1480
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1481
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1482
|
-
},
|
|
1483
1472
|
{
|
|
1484
1473
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1485
1474
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1501,6 +1490,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1501
1490
|
throw transformedError;
|
|
1502
1491
|
}
|
|
1503
1492
|
}
|
|
1493
|
+
var { QueryBuilder, Filter, Sort } = createQueryUtils();
|
|
1504
1494
|
async function getPostMetrics2(postId) {
|
|
1505
1495
|
const { httpClient, sideEffects } = arguments[1];
|
|
1506
1496
|
const payload = renameKeysFromSDKRequestToRESTRequest({ postId }, []);
|
|
@@ -1536,6 +1526,7 @@ export {
|
|
|
1536
1526
|
Direction,
|
|
1537
1527
|
DividerDataAlignment,
|
|
1538
1528
|
Field,
|
|
1529
|
+
Filter,
|
|
1539
1530
|
FontType,
|
|
1540
1531
|
GIFType,
|
|
1541
1532
|
GetPostTemplatesSort,
|
|
@@ -1558,10 +1549,12 @@ export {
|
|
|
1558
1549
|
PollLayoutType,
|
|
1559
1550
|
Position,
|
|
1560
1551
|
PostFieldField,
|
|
1552
|
+
QueryBuilder,
|
|
1561
1553
|
QueryPublicationsCountStatsRequestOrder,
|
|
1562
1554
|
Resizing,
|
|
1563
1555
|
ResponsivenessBehaviour,
|
|
1564
1556
|
Scaling,
|
|
1557
|
+
Sort,
|
|
1565
1558
|
SortOrder,
|
|
1566
1559
|
Source,
|
|
1567
1560
|
Status,
|