@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +4 -4
  2. package/build/cjs/index.js +71 -74
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +230 -143
  5. package/build/cjs/index.typings.js +47 -55
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +215 -145
  8. package/build/cjs/meta.js +39 -29
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +4 -4
  11. package/build/es/index.mjs +68 -74
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +230 -143
  14. package/build/es/index.typings.mjs +44 -55
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +215 -145
  17. package/build/es/meta.mjs +39 -29
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +4 -4
  20. package/build/internal/cjs/index.js +71 -74
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +231 -144
  23. package/build/internal/cjs/index.typings.js +47 -55
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +215 -145
  26. package/build/internal/cjs/meta.js +39 -29
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +4 -4
  29. package/build/internal/es/index.mjs +68 -74
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +231 -144
  32. package/build/internal/es/index.typings.mjs +44 -55
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +215 -145
  35. package/build/internal/es/meta.mjs +39 -29
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -31,6 +31,7 @@ __export(index_typings_exports, {
31
31
  Direction: () => Direction,
32
32
  DividerDataAlignment: () => DividerDataAlignment,
33
33
  Field: () => Field,
34
+ Filter: () => Filter,
34
35
  FontType: () => FontType,
35
36
  GIFType: () => GIFType,
36
37
  GetPostTemplatesSort: () => GetPostTemplatesSort,
@@ -53,10 +54,12 @@ __export(index_typings_exports, {
53
54
  PollLayoutType: () => PollLayoutType,
54
55
  Position: () => Position,
55
56
  PostFieldField: () => PostFieldField,
57
+ QueryBuilder: () => QueryBuilder,
56
58
  QueryPublicationsCountStatsRequestOrder: () => QueryPublicationsCountStatsRequestOrder,
57
59
  Resizing: () => Resizing,
58
60
  ResponsivenessBehaviour: () => ResponsivenessBehaviour,
59
61
  Scaling: () => Scaling,
62
+ Sort: () => Sort,
60
63
  SortOrder: () => SortOrder,
61
64
  Source: () => Source,
62
65
  Status: () => Status,
@@ -412,8 +415,6 @@ function getPost(payload) {
412
415
  paths: [
413
416
  { path: "post.firstPublishedDate" },
414
417
  { path: "post.lastPublishedDate" },
415
- { path: "post.coverMedia.image.urlExpirationDate" },
416
- { path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
417
418
  { path: "post.heroImage.urlExpirationDate" },
418
419
  { path: "post.richContent.metadata.createdTimestamp" },
419
420
  { path: "post.richContent.metadata.updatedTimestamp" },
@@ -437,10 +438,6 @@ function getPost(payload) {
437
438
  {
438
439
  transformFn: import_float.transformRESTFloatToSDKFloat,
439
440
  paths: [
440
- { path: "post.coverMedia.image.focalPoint.x" },
441
- { path: "post.coverMedia.image.focalPoint.y" },
442
- { path: "post.coverMedia.video.thumbnail.focalPoint.x" },
443
- { path: "post.coverMedia.video.thumbnail.focalPoint.y" },
444
441
  { path: "post.heroImage.focalPoint.x" },
445
442
  { path: "post.heroImage.focalPoint.y" },
446
443
  { path: "post.media.wixMedia.image.focalPoint.x" },
@@ -478,7 +475,14 @@ function getPost(payload) {
478
475
  { path: "post.richContent.nodes.videoData.video.duration" },
479
476
  { path: "post.richContent.nodes.videoData.thumbnail.duration" },
480
477
  { path: "post.richContent.nodes.audioData.audio.duration" },
481
- { path: "post.richContent.nodes.audioData.coverImage.duration" }
478
+ { path: "post.richContent.nodes.audioData.coverImage.duration" },
479
+ {
480
+ path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
481
+ },
482
+ {
483
+ path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
484
+ },
485
+ { path: "post.richContent.nodes.shapeData.shape.duration" }
482
486
  ]
483
487
  }
484
488
  ])
@@ -509,8 +513,6 @@ function getPostBySlug(payload) {
509
513
  paths: [
510
514
  { path: "post.firstPublishedDate" },
511
515
  { path: "post.lastPublishedDate" },
512
- { path: "post.coverMedia.image.urlExpirationDate" },
513
- { path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
514
516
  { path: "post.heroImage.urlExpirationDate" },
515
517
  { path: "post.richContent.metadata.createdTimestamp" },
516
518
  { path: "post.richContent.metadata.updatedTimestamp" },
@@ -534,10 +536,6 @@ function getPostBySlug(payload) {
534
536
  {
535
537
  transformFn: import_float.transformRESTFloatToSDKFloat,
536
538
  paths: [
537
- { path: "post.coverMedia.image.focalPoint.x" },
538
- { path: "post.coverMedia.image.focalPoint.y" },
539
- { path: "post.coverMedia.video.thumbnail.focalPoint.x" },
540
- { path: "post.coverMedia.video.thumbnail.focalPoint.y" },
541
539
  { path: "post.heroImage.focalPoint.x" },
542
540
  { path: "post.heroImage.focalPoint.y" },
543
541
  { path: "post.media.wixMedia.image.focalPoint.x" },
@@ -575,7 +573,14 @@ function getPostBySlug(payload) {
575
573
  { path: "post.richContent.nodes.videoData.video.duration" },
576
574
  { path: "post.richContent.nodes.videoData.thumbnail.duration" },
577
575
  { path: "post.richContent.nodes.audioData.audio.duration" },
578
- { path: "post.richContent.nodes.audioData.coverImage.duration" }
576
+ { path: "post.richContent.nodes.audioData.coverImage.duration" },
577
+ {
578
+ path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
579
+ },
580
+ {
581
+ path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
582
+ },
583
+ { path: "post.richContent.nodes.shapeData.shape.duration" }
579
584
  ]
580
585
  }
581
586
  ])
@@ -606,8 +611,6 @@ function listPosts(payload) {
606
611
  paths: [
607
612
  { path: "posts.firstPublishedDate" },
608
613
  { path: "posts.lastPublishedDate" },
609
- { path: "posts.coverMedia.image.urlExpirationDate" },
610
- { path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
611
614
  { path: "posts.heroImage.urlExpirationDate" },
612
615
  { path: "posts.richContent.metadata.createdTimestamp" },
613
616
  { path: "posts.richContent.metadata.updatedTimestamp" },
@@ -633,10 +636,6 @@ function listPosts(payload) {
633
636
  {
634
637
  transformFn: import_float.transformRESTFloatToSDKFloat,
635
638
  paths: [
636
- { path: "posts.coverMedia.image.focalPoint.x" },
637
- { path: "posts.coverMedia.image.focalPoint.y" },
638
- { path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
639
- { path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
640
639
  { path: "posts.heroImage.focalPoint.x" },
641
640
  { path: "posts.heroImage.focalPoint.y" },
642
641
  { path: "posts.media.wixMedia.image.focalPoint.x" },
@@ -676,7 +675,14 @@ function listPosts(payload) {
676
675
  { path: "posts.richContent.nodes.videoData.video.duration" },
677
676
  { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
678
677
  { path: "posts.richContent.nodes.audioData.audio.duration" },
679
- { path: "posts.richContent.nodes.audioData.coverImage.duration" }
678
+ { path: "posts.richContent.nodes.audioData.coverImage.duration" },
679
+ {
680
+ path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
681
+ },
682
+ {
683
+ path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
684
+ },
685
+ { path: "posts.richContent.nodes.shapeData.shape.duration" }
680
686
  ]
681
687
  }
682
688
  ])
@@ -707,8 +713,6 @@ function queryPosts(payload) {
707
713
  paths: [
708
714
  { path: "posts.firstPublishedDate" },
709
715
  { path: "posts.lastPublishedDate" },
710
- { path: "posts.coverMedia.image.urlExpirationDate" },
711
- { path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
712
716
  { path: "posts.heroImage.urlExpirationDate" },
713
717
  { path: "posts.richContent.metadata.createdTimestamp" },
714
718
  { path: "posts.richContent.metadata.updatedTimestamp" },
@@ -734,10 +738,6 @@ function queryPosts(payload) {
734
738
  {
735
739
  transformFn: import_float.transformRESTFloatToSDKFloat,
736
740
  paths: [
737
- { path: "posts.coverMedia.image.focalPoint.x" },
738
- { path: "posts.coverMedia.image.focalPoint.y" },
739
- { path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
740
- { path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
741
741
  { path: "posts.heroImage.focalPoint.x" },
742
742
  { path: "posts.heroImage.focalPoint.y" },
743
743
  { path: "posts.media.wixMedia.image.focalPoint.x" },
@@ -777,7 +777,14 @@ function queryPosts(payload) {
777
777
  { path: "posts.richContent.nodes.videoData.video.duration" },
778
778
  { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
779
779
  { path: "posts.richContent.nodes.audioData.audio.duration" },
780
- { path: "posts.richContent.nodes.audioData.coverImage.duration" }
780
+ { path: "posts.richContent.nodes.audioData.coverImage.duration" },
781
+ {
782
+ path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
783
+ },
784
+ {
785
+ path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
786
+ },
787
+ { path: "posts.richContent.nodes.shapeData.shape.duration" }
781
788
  ]
782
789
  }
783
790
  ])
@@ -817,9 +824,9 @@ function getPostMetrics(payload) {
817
824
  // src/blog-v3-post-posts.universal.ts
818
825
  var import_image = require("@wix/sdk-runtime/transformations/image");
819
826
  var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
820
- var import_video = require("@wix/sdk-runtime/transformations/video");
821
827
  var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
822
828
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
829
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
823
830
  var NodeType = /* @__PURE__ */ ((NodeType2) => {
824
831
  NodeType2["PARAGRAPH"] = "PARAGRAPH";
825
832
  NodeType2["TEXT"] = "TEXT";
@@ -854,6 +861,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
854
861
  NodeType2["CAPTION"] = "CAPTION";
855
862
  NodeType2["LAYOUT"] = "LAYOUT";
856
863
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
864
+ NodeType2["SHAPE"] = "SHAPE";
857
865
  return NodeType2;
858
866
  })(NodeType || {});
859
867
  var WidthType = /* @__PURE__ */ ((WidthType2) => {
@@ -946,13 +954,14 @@ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
946
954
  return ThumbnailsAlignment2;
947
955
  })(ThumbnailsAlignment || {});
948
956
  var GIFType = /* @__PURE__ */ ((GIFType2) => {
949
- GIFType2["GIF"] = "GIF";
957
+ GIFType2["NORMAL"] = "NORMAL";
950
958
  GIFType2["STICKER"] = "STICKER";
951
959
  return GIFType2;
952
960
  })(GIFType || {});
953
961
  var Source = /* @__PURE__ */ ((Source2) => {
954
962
  Source2["HTML"] = "HTML";
955
963
  Source2["ADSENSE"] = "ADSENSE";
964
+ Source2["AI"] = "AI";
956
965
  return Source2;
957
966
  })(Source || {});
958
967
  var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
@@ -1007,6 +1016,10 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1007
1016
  DecorationType2["COLOR"] = "COLOR";
1008
1017
  DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1009
1018
  DecorationType2["EXTERNAL"] = "EXTERNAL";
1019
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1020
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1021
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1022
+ DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
1010
1023
  return DecorationType2;
1011
1024
  })(DecorationType || {});
1012
1025
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -1310,14 +1323,9 @@ async function getPost2(postId, options) {
1310
1323
  transformFn: import_image.transformRESTImageToSDKImage,
1311
1324
  paths: [
1312
1325
  { path: "post.heroImage" },
1313
- { path: "post.coverMedia.image" },
1314
1326
  { path: "post.media.wixMedia.image" }
1315
1327
  ]
1316
1328
  },
1317
- {
1318
- transformFn: import_video.transformRESTVideoToSDKVideo,
1319
- paths: [{ path: "post.coverMedia.video" }]
1320
- },
1321
1329
  {
1322
1330
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1323
1331
  paths: [{ path: "post.media.wixMedia.videoV2" }]
@@ -1363,14 +1371,9 @@ async function getPostBySlug2(slug, options) {
1363
1371
  transformFn: import_image.transformRESTImageToSDKImage,
1364
1372
  paths: [
1365
1373
  { path: "post.heroImage" },
1366
- { path: "post.coverMedia.image" },
1367
1374
  { path: "post.media.wixMedia.image" }
1368
1375
  ]
1369
1376
  },
1370
- {
1371
- transformFn: import_video.transformRESTVideoToSDKVideo,
1372
- paths: [{ path: "post.coverMedia.video" }]
1373
- },
1374
1377
  {
1375
1378
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1376
1379
  paths: [{ path: "post.media.wixMedia.videoV2" }]
@@ -1427,14 +1430,9 @@ async function listPosts2(options) {
1427
1430
  transformFn: import_image.transformRESTImageToSDKImage,
1428
1431
  paths: [
1429
1432
  { path: "posts.heroImage" },
1430
- { path: "posts.coverMedia.image" },
1431
1433
  { path: "posts.media.wixMedia.image" }
1432
1434
  ]
1433
1435
  },
1434
- {
1435
- transformFn: import_video.transformRESTVideoToSDKVideo,
1436
- paths: [{ path: "posts.coverMedia.video" }]
1437
- },
1438
1436
  {
1439
1437
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1440
1438
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
@@ -1502,14 +1500,9 @@ function queryPosts2(options) {
1502
1500
  transformFn: import_image.transformRESTImageToSDKImage,
1503
1501
  paths: [
1504
1502
  { path: "posts.heroImage" },
1505
- { path: "posts.coverMedia.image" },
1506
1503
  { path: "posts.media.wixMedia.image" }
1507
1504
  ]
1508
1505
  },
1509
- {
1510
- transformFn: import_video.transformRESTVideoToSDKVideo,
1511
- paths: [{ path: "posts.coverMedia.video" }]
1512
- },
1513
1506
  {
1514
1507
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1515
1508
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
@@ -1555,14 +1548,9 @@ async function typedQueryPosts(query, options) {
1555
1548
  transformFn: import_image.transformRESTImageToSDKImage,
1556
1549
  paths: [
1557
1550
  { path: "posts.heroImage" },
1558
- { path: "posts.coverMedia.image" },
1559
1551
  { path: "posts.media.wixMedia.image" }
1560
1552
  ]
1561
1553
  },
1562
- {
1563
- transformFn: import_video.transformRESTVideoToSDKVideo,
1564
- paths: [{ path: "posts.coverMedia.video" }]
1565
- },
1566
1554
  {
1567
1555
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1568
1556
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
@@ -1584,6 +1572,7 @@ async function typedQueryPosts(query, options) {
1584
1572
  throw transformedError;
1585
1573
  }
1586
1574
  }
1575
+ var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
1587
1576
  async function getPostMetrics2(postId) {
1588
1577
  const { httpClient, sideEffects } = arguments[1];
1589
1578
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
@@ -1620,6 +1609,7 @@ async function getPostMetrics2(postId) {
1620
1609
  Direction,
1621
1610
  DividerDataAlignment,
1622
1611
  Field,
1612
+ Filter,
1623
1613
  FontType,
1624
1614
  GIFType,
1625
1615
  GetPostTemplatesSort,
@@ -1642,10 +1632,12 @@ async function getPostMetrics2(postId) {
1642
1632
  PollLayoutType,
1643
1633
  Position,
1644
1634
  PostFieldField,
1635
+ QueryBuilder,
1645
1636
  QueryPublicationsCountStatsRequestOrder,
1646
1637
  Resizing,
1647
1638
  ResponsivenessBehaviour,
1648
1639
  Scaling,
1640
+ Sort,
1649
1641
  SortOrder,
1650
1642
  Source,
1651
1643
  Status,