@wix/auto_sdk_blog_posts 1.0.121 → 1.0.122
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 +71 -74
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +230 -143
- package/build/cjs/index.typings.js +47 -55
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +215 -145
- package/build/cjs/meta.js +39 -29
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +68 -74
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +230 -143
- package/build/es/index.typings.mjs +44 -55
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +215 -145
- package/build/es/meta.mjs +39 -29
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js +71 -74
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +231 -144
- package/build/internal/cjs/index.typings.js +47 -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 +39 -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 +68 -74
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +231 -144
- package/build/internal/es/index.typings.mjs +44 -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 +39 -29
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -329,8 +329,6 @@ function getPost(payload) {
|
|
|
329
329
|
paths: [
|
|
330
330
|
{ path: "post.firstPublishedDate" },
|
|
331
331
|
{ path: "post.lastPublishedDate" },
|
|
332
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
333
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
334
332
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
335
333
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
336
334
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -354,10 +352,6 @@ function getPost(payload) {
|
|
|
354
352
|
{
|
|
355
353
|
transformFn: transformRESTFloatToSDKFloat,
|
|
356
354
|
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
355
|
{ path: "post.heroImage.focalPoint.x" },
|
|
362
356
|
{ path: "post.heroImage.focalPoint.y" },
|
|
363
357
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -395,7 +389,14 @@ function getPost(payload) {
|
|
|
395
389
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
396
390
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
397
391
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
398
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
392
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
393
|
+
{
|
|
394
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
398
|
+
},
|
|
399
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
399
400
|
]
|
|
400
401
|
}
|
|
401
402
|
])
|
|
@@ -426,8 +427,6 @@ function getPostBySlug(payload) {
|
|
|
426
427
|
paths: [
|
|
427
428
|
{ path: "post.firstPublishedDate" },
|
|
428
429
|
{ path: "post.lastPublishedDate" },
|
|
429
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
|
430
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
431
430
|
{ path: "post.heroImage.urlExpirationDate" },
|
|
432
431
|
{ path: "post.richContent.metadata.createdTimestamp" },
|
|
433
432
|
{ path: "post.richContent.metadata.updatedTimestamp" },
|
|
@@ -451,10 +450,6 @@ function getPostBySlug(payload) {
|
|
|
451
450
|
{
|
|
452
451
|
transformFn: transformRESTFloatToSDKFloat,
|
|
453
452
|
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
453
|
{ path: "post.heroImage.focalPoint.x" },
|
|
459
454
|
{ path: "post.heroImage.focalPoint.y" },
|
|
460
455
|
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
|
@@ -492,7 +487,14 @@ function getPostBySlug(payload) {
|
|
|
492
487
|
{ path: "post.richContent.nodes.videoData.video.duration" },
|
|
493
488
|
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
|
494
489
|
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
|
495
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
|
490
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" },
|
|
491
|
+
{
|
|
492
|
+
path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
496
|
+
},
|
|
497
|
+
{ path: "post.richContent.nodes.shapeData.shape.duration" }
|
|
496
498
|
]
|
|
497
499
|
}
|
|
498
500
|
])
|
|
@@ -523,8 +525,6 @@ function listPosts(payload) {
|
|
|
523
525
|
paths: [
|
|
524
526
|
{ path: "posts.firstPublishedDate" },
|
|
525
527
|
{ path: "posts.lastPublishedDate" },
|
|
526
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
527
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
528
528
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
529
529
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
530
530
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -550,10 +550,6 @@ function listPosts(payload) {
|
|
|
550
550
|
{
|
|
551
551
|
transformFn: transformRESTFloatToSDKFloat,
|
|
552
552
|
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
553
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
558
554
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
559
555
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -593,7 +589,14 @@ function listPosts(payload) {
|
|
|
593
589
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
594
590
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
595
591
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
596
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
592
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
593
|
+
{
|
|
594
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
598
|
+
},
|
|
599
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
597
600
|
]
|
|
598
601
|
}
|
|
599
602
|
])
|
|
@@ -624,8 +627,6 @@ function queryPosts(payload) {
|
|
|
624
627
|
paths: [
|
|
625
628
|
{ path: "posts.firstPublishedDate" },
|
|
626
629
|
{ path: "posts.lastPublishedDate" },
|
|
627
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
|
628
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
|
629
630
|
{ path: "posts.heroImage.urlExpirationDate" },
|
|
630
631
|
{ path: "posts.richContent.metadata.createdTimestamp" },
|
|
631
632
|
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
|
@@ -651,10 +652,6 @@ function queryPosts(payload) {
|
|
|
651
652
|
{
|
|
652
653
|
transformFn: transformRESTFloatToSDKFloat,
|
|
653
654
|
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
655
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
659
656
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
660
657
|
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
|
@@ -694,7 +691,14 @@ function queryPosts(payload) {
|
|
|
694
691
|
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
|
695
692
|
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
|
696
693
|
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
|
697
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
|
694
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" },
|
|
695
|
+
{
|
|
696
|
+
path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
|
|
700
|
+
},
|
|
701
|
+
{ path: "posts.richContent.nodes.shapeData.shape.duration" }
|
|
698
702
|
]
|
|
699
703
|
}
|
|
700
704
|
])
|
|
@@ -734,9 +738,9 @@ function getPostMetrics(payload) {
|
|
|
734
738
|
// src/blog-v3-post-posts.universal.ts
|
|
735
739
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
736
740
|
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
737
|
-
import { transformRESTVideoToSDKVideo } from "@wix/sdk-runtime/transformations/video";
|
|
738
741
|
import { transformRESTPageURLToSDKPageURL } from "@wix/sdk-runtime/transformations/page-url";
|
|
739
742
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
743
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
740
744
|
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
741
745
|
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
|
742
746
|
NodeType2["TEXT"] = "TEXT";
|
|
@@ -771,6 +775,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
771
775
|
NodeType2["CAPTION"] = "CAPTION";
|
|
772
776
|
NodeType2["LAYOUT"] = "LAYOUT";
|
|
773
777
|
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
778
|
+
NodeType2["SHAPE"] = "SHAPE";
|
|
774
779
|
return NodeType2;
|
|
775
780
|
})(NodeType || {});
|
|
776
781
|
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
|
@@ -863,13 +868,14 @@ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
|
|
|
863
868
|
return ThumbnailsAlignment2;
|
|
864
869
|
})(ThumbnailsAlignment || {});
|
|
865
870
|
var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
|
866
|
-
GIFType2["
|
|
871
|
+
GIFType2["NORMAL"] = "NORMAL";
|
|
867
872
|
GIFType2["STICKER"] = "STICKER";
|
|
868
873
|
return GIFType2;
|
|
869
874
|
})(GIFType || {});
|
|
870
875
|
var Source = /* @__PURE__ */ ((Source2) => {
|
|
871
876
|
Source2["HTML"] = "HTML";
|
|
872
877
|
Source2["ADSENSE"] = "ADSENSE";
|
|
878
|
+
Source2["AI"] = "AI";
|
|
873
879
|
return Source2;
|
|
874
880
|
})(Source || {});
|
|
875
881
|
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
@@ -924,6 +930,10 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
924
930
|
DecorationType2["COLOR"] = "COLOR";
|
|
925
931
|
DecorationType2["FONT_SIZE"] = "FONT_SIZE";
|
|
926
932
|
DecorationType2["EXTERNAL"] = "EXTERNAL";
|
|
933
|
+
DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
934
|
+
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
935
|
+
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
936
|
+
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
927
937
|
return DecorationType2;
|
|
928
938
|
})(DecorationType || {});
|
|
929
939
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1227,14 +1237,9 @@ async function getPost2(postId, options) {
|
|
|
1227
1237
|
transformFn: transformRESTImageToSDKImage,
|
|
1228
1238
|
paths: [
|
|
1229
1239
|
{ path: "post.heroImage" },
|
|
1230
|
-
{ path: "post.coverMedia.image" },
|
|
1231
1240
|
{ path: "post.media.wixMedia.image" }
|
|
1232
1241
|
]
|
|
1233
1242
|
},
|
|
1234
|
-
{
|
|
1235
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1236
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1237
|
-
},
|
|
1238
1243
|
{
|
|
1239
1244
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1240
1245
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1280,14 +1285,9 @@ async function getPostBySlug2(slug, options) {
|
|
|
1280
1285
|
transformFn: transformRESTImageToSDKImage,
|
|
1281
1286
|
paths: [
|
|
1282
1287
|
{ path: "post.heroImage" },
|
|
1283
|
-
{ path: "post.coverMedia.image" },
|
|
1284
1288
|
{ path: "post.media.wixMedia.image" }
|
|
1285
1289
|
]
|
|
1286
1290
|
},
|
|
1287
|
-
{
|
|
1288
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1289
|
-
paths: [{ path: "post.coverMedia.video" }]
|
|
1290
|
-
},
|
|
1291
1291
|
{
|
|
1292
1292
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1293
1293
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
@@ -1344,14 +1344,9 @@ async function listPosts2(options) {
|
|
|
1344
1344
|
transformFn: transformRESTImageToSDKImage,
|
|
1345
1345
|
paths: [
|
|
1346
1346
|
{ path: "posts.heroImage" },
|
|
1347
|
-
{ path: "posts.coverMedia.image" },
|
|
1348
1347
|
{ path: "posts.media.wixMedia.image" }
|
|
1349
1348
|
]
|
|
1350
1349
|
},
|
|
1351
|
-
{
|
|
1352
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1353
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1354
|
-
},
|
|
1355
1350
|
{
|
|
1356
1351
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1357
1352
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1419,14 +1414,9 @@ function queryPosts2(options) {
|
|
|
1419
1414
|
transformFn: transformRESTImageToSDKImage,
|
|
1420
1415
|
paths: [
|
|
1421
1416
|
{ path: "posts.heroImage" },
|
|
1422
|
-
{ path: "posts.coverMedia.image" },
|
|
1423
1417
|
{ path: "posts.media.wixMedia.image" }
|
|
1424
1418
|
]
|
|
1425
1419
|
},
|
|
1426
|
-
{
|
|
1427
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1428
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1429
|
-
},
|
|
1430
1420
|
{
|
|
1431
1421
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1432
1422
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1472,14 +1462,9 @@ async function typedQueryPosts(query, options) {
|
|
|
1472
1462
|
transformFn: transformRESTImageToSDKImage,
|
|
1473
1463
|
paths: [
|
|
1474
1464
|
{ path: "posts.heroImage" },
|
|
1475
|
-
{ path: "posts.coverMedia.image" },
|
|
1476
1465
|
{ path: "posts.media.wixMedia.image" }
|
|
1477
1466
|
]
|
|
1478
1467
|
},
|
|
1479
|
-
{
|
|
1480
|
-
transformFn: transformRESTVideoToSDKVideo,
|
|
1481
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
|
1482
|
-
},
|
|
1483
1468
|
{
|
|
1484
1469
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1485
1470
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
@@ -1501,6 +1486,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1501
1486
|
throw transformedError;
|
|
1502
1487
|
}
|
|
1503
1488
|
}
|
|
1489
|
+
var { QueryBuilder, Filter, Sort } = createQueryUtils();
|
|
1504
1490
|
async function getPostMetrics2(postId) {
|
|
1505
1491
|
const { httpClient, sideEffects } = arguments[1];
|
|
1506
1492
|
const payload = renameKeysFromSDKRequestToRESTRequest({ postId }, []);
|
|
@@ -1536,6 +1522,7 @@ export {
|
|
|
1536
1522
|
Direction,
|
|
1537
1523
|
DividerDataAlignment,
|
|
1538
1524
|
Field,
|
|
1525
|
+
Filter,
|
|
1539
1526
|
FontType,
|
|
1540
1527
|
GIFType,
|
|
1541
1528
|
GetPostTemplatesSort,
|
|
@@ -1558,10 +1545,12 @@ export {
|
|
|
1558
1545
|
PollLayoutType,
|
|
1559
1546
|
Position,
|
|
1560
1547
|
PostFieldField,
|
|
1548
|
+
QueryBuilder,
|
|
1561
1549
|
QueryPublicationsCountStatsRequestOrder,
|
|
1562
1550
|
Resizing,
|
|
1563
1551
|
ResponsivenessBehaviour,
|
|
1564
1552
|
Scaling,
|
|
1553
|
+
Sort,
|
|
1565
1554
|
SortOrder,
|
|
1566
1555
|
Source,
|
|
1567
1556
|
Status,
|