@wix/auto_sdk_blog_posts 1.0.161 → 1.0.162

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 (49) hide show
  1. package/build/cjs/index.d.ts +15 -11
  2. package/build/cjs/index.js +264 -42
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +405 -367
  5. package/build/cjs/index.typings.js +161 -37
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +376 -350
  8. package/build/cjs/meta.js +155 -31
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +86 -84
  11. package/build/cjs/schemas.js +153 -147
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +15 -11
  14. package/build/es/index.mjs +264 -42
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +405 -367
  17. package/build/es/index.typings.mjs +161 -37
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +376 -350
  20. package/build/es/meta.mjs +155 -31
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +86 -84
  23. package/build/es/schemas.mjs +153 -147
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +15 -11
  26. package/build/internal/cjs/index.js +264 -42
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +405 -367
  29. package/build/internal/cjs/index.typings.js +161 -37
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +376 -350
  32. package/build/internal/cjs/meta.js +155 -31
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +86 -84
  35. package/build/internal/cjs/schemas.js +153 -147
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +15 -11
  38. package/build/internal/es/index.mjs +264 -42
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +405 -367
  41. package/build/internal/es/index.typings.mjs +161 -37
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +376 -350
  44. package/build/internal/es/meta.mjs +155 -31
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +86 -84
  47. package/build/internal/es/schemas.mjs +153 -147
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -493,6 +493,10 @@ function getPost(payload) {
493
493
  },
494
494
  { path: "post.richContent.nodes.galleryData.options.item.ratio" },
495
495
  { path: "post.richContent.nodes.imageData.image.duration" },
496
+ { path: "post.richContent.nodes.imageData.crop.x" },
497
+ { path: "post.richContent.nodes.imageData.crop.y" },
498
+ { path: "post.richContent.nodes.imageData.crop.width" },
499
+ { path: "post.richContent.nodes.imageData.crop.height" },
496
500
  { path: "post.richContent.nodes.mapData.mapSettings.lat" },
497
501
  { path: "post.richContent.nodes.mapData.mapSettings.lng" },
498
502
  { path: "post.richContent.nodes.pollData.poll.image.duration" },
@@ -510,9 +514,27 @@ function getPost(payload) {
510
514
  {
511
515
  path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
512
516
  },
517
+ {
518
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
519
+ },
520
+ {
521
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
522
+ },
523
+ {
524
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
525
+ },
513
526
  {
514
527
  path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
515
528
  },
529
+ {
530
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
531
+ },
532
+ {
533
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
534
+ },
535
+ {
536
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
537
+ },
516
538
  {
517
539
  path: "post.richContent.nodes.layoutData.background.gradient.centerX"
518
540
  },
@@ -544,6 +566,15 @@ function getPost(payload) {
544
566
  {
545
567
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
546
568
  },
569
+ {
570
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
571
+ },
572
+ {
573
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
574
+ },
575
+ {
576
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
577
+ },
547
578
  { path: "post.richContent.nodes.tocData.fontSize" },
548
579
  { path: "post.richContent.nodes.tocData.itemSpacing" },
549
580
  {
@@ -644,6 +675,10 @@ function getPostBySlug(payload) {
644
675
  },
645
676
  { path: "post.richContent.nodes.galleryData.options.item.ratio" },
646
677
  { path: "post.richContent.nodes.imageData.image.duration" },
678
+ { path: "post.richContent.nodes.imageData.crop.x" },
679
+ { path: "post.richContent.nodes.imageData.crop.y" },
680
+ { path: "post.richContent.nodes.imageData.crop.width" },
681
+ { path: "post.richContent.nodes.imageData.crop.height" },
647
682
  { path: "post.richContent.nodes.mapData.mapSettings.lat" },
648
683
  { path: "post.richContent.nodes.mapData.mapSettings.lng" },
649
684
  { path: "post.richContent.nodes.pollData.poll.image.duration" },
@@ -661,9 +696,27 @@ function getPostBySlug(payload) {
661
696
  {
662
697
  path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
663
698
  },
699
+ {
700
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
701
+ },
702
+ {
703
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
704
+ },
705
+ {
706
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
707
+ },
664
708
  {
665
709
  path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
666
710
  },
711
+ {
712
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
713
+ },
714
+ {
715
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
716
+ },
717
+ {
718
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
719
+ },
667
720
  {
668
721
  path: "post.richContent.nodes.layoutData.background.gradient.centerX"
669
722
  },
@@ -695,6 +748,15 @@ function getPostBySlug(payload) {
695
748
  {
696
749
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
697
750
  },
751
+ {
752
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
753
+ },
754
+ {
755
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
756
+ },
757
+ {
758
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
759
+ },
698
760
  { path: "post.richContent.nodes.tocData.fontSize" },
699
761
  { path: "post.richContent.nodes.tocData.itemSpacing" },
700
762
  {
@@ -799,6 +861,10 @@ function listPosts(payload) {
799
861
  path: "posts.richContent.nodes.galleryData.options.item.ratio"
800
862
  },
801
863
  { path: "posts.richContent.nodes.imageData.image.duration" },
864
+ { path: "posts.richContent.nodes.imageData.crop.x" },
865
+ { path: "posts.richContent.nodes.imageData.crop.y" },
866
+ { path: "posts.richContent.nodes.imageData.crop.width" },
867
+ { path: "posts.richContent.nodes.imageData.crop.height" },
802
868
  { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
803
869
  { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
804
870
  { path: "posts.richContent.nodes.pollData.poll.image.duration" },
@@ -816,9 +882,27 @@ function listPosts(payload) {
816
882
  {
817
883
  path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
818
884
  },
885
+ {
886
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
887
+ },
888
+ {
889
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
890
+ },
891
+ {
892
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
893
+ },
819
894
  {
820
895
  path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
821
896
  },
897
+ {
898
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
899
+ },
900
+ {
901
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
902
+ },
903
+ {
904
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
905
+ },
822
906
  {
823
907
  path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
824
908
  },
@@ -850,6 +934,15 @@ function listPosts(payload) {
850
934
  {
851
935
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
852
936
  },
937
+ {
938
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
939
+ },
940
+ {
941
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
942
+ },
943
+ {
944
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
945
+ },
853
946
  { path: "posts.richContent.nodes.tocData.fontSize" },
854
947
  { path: "posts.richContent.nodes.tocData.itemSpacing" },
855
948
  {
@@ -954,6 +1047,10 @@ function queryPosts(payload) {
954
1047
  path: "posts.richContent.nodes.galleryData.options.item.ratio"
955
1048
  },
956
1049
  { path: "posts.richContent.nodes.imageData.image.duration" },
1050
+ { path: "posts.richContent.nodes.imageData.crop.x" },
1051
+ { path: "posts.richContent.nodes.imageData.crop.y" },
1052
+ { path: "posts.richContent.nodes.imageData.crop.width" },
1053
+ { path: "posts.richContent.nodes.imageData.crop.height" },
957
1054
  { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
958
1055
  { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
959
1056
  { path: "posts.richContent.nodes.pollData.poll.image.duration" },
@@ -971,9 +1068,27 @@ function queryPosts(payload) {
971
1068
  {
972
1069
  path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
973
1070
  },
1071
+ {
1072
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1073
+ },
1074
+ {
1075
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1076
+ },
1077
+ {
1078
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1079
+ },
974
1080
  {
975
1081
  path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
976
1082
  },
1083
+ {
1084
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1085
+ },
1086
+ {
1087
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1088
+ },
1089
+ {
1090
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1091
+ },
977
1092
  {
978
1093
  path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
979
1094
  },
@@ -1005,6 +1120,15 @@ function queryPosts(payload) {
1005
1120
  {
1006
1121
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1007
1122
  },
1123
+ {
1124
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1125
+ },
1126
+ {
1127
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1128
+ },
1129
+ {
1130
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1131
+ },
1008
1132
  { path: "posts.richContent.nodes.tocData.fontSize" },
1009
1133
  { path: "posts.richContent.nodes.tocData.itemSpacing" },
1010
1134
  {
@@ -1360,6 +1484,11 @@ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1360
1484
  ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1361
1485
  return ImagePosition2;
1362
1486
  })(ImagePosition || {});
1487
+ var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1488
+ LayoutDataBackgroundType2["COLOR"] = "COLOR";
1489
+ LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1490
+ return LayoutDataBackgroundType2;
1491
+ })(LayoutDataBackgroundType || {});
1363
1492
  var Origin = /* @__PURE__ */ ((Origin2) => {
1364
1493
  Origin2["IMAGE"] = "IMAGE";
1365
1494
  Origin2["LAYOUT"] = "LAYOUT";
@@ -1370,11 +1499,6 @@ var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1370
1499
  BannerPosition2["BOTTOM"] = "BOTTOM";
1371
1500
  return BannerPosition2;
1372
1501
  })(BannerPosition || {});
1373
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1374
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
1375
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1376
- return LayoutDataBackgroundType2;
1377
- })(LayoutDataBackgroundType || {});
1378
1502
  var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
1379
1503
  BackdropType2["COLOR"] = "COLOR";
1380
1504
  BackdropType2["GRADIENT"] = "GRADIENT";
@@ -1473,6 +1597,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
1473
1597
  Status2["REJECTED"] = "REJECTED";
1474
1598
  return Status2;
1475
1599
  })(Status || {});
1600
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1601
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1602
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1603
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1604
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1605
+ WebhookIdentityType2["APP"] = "APP";
1606
+ return WebhookIdentityType2;
1607
+ })(WebhookIdentityType || {});
1476
1608
  var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1477
1609
  QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1478
1610
  QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
@@ -1485,22 +1617,16 @@ var Order = /* @__PURE__ */ ((Order2) => {
1485
1617
  Order2["NEWEST"] = "NEWEST";
1486
1618
  return Order2;
1487
1619
  })(Order || {});
1488
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1489
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1490
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1491
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1492
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1493
- WebhookIdentityType2["APP"] = "APP";
1494
- return WebhookIdentityType2;
1495
- })(WebhookIdentityType || {});
1496
- var Field = /* @__PURE__ */ ((Field2) => {
1497
- Field2["UNKNOWN"] = "UNKNOWN";
1498
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1499
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1500
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1501
- Field2["RATING_COUNT"] = "RATING_COUNT";
1502
- return Field2;
1503
- })(Field || {});
1620
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1621
+ GetPostsSort2["FEED"] = "FEED";
1622
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1623
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1624
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1625
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1626
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1627
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1628
+ return GetPostsSort2;
1629
+ })(GetPostsSort || {});
1504
1630
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1505
1631
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
1506
1632
  PostFieldField2["URL"] = "URL";
@@ -1512,16 +1638,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1512
1638
  PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
1513
1639
  return PostFieldField2;
1514
1640
  })(PostFieldField || {});
1515
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1516
- GetPostsSort2["FEED"] = "FEED";
1517
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1518
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1519
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1520
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1521
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1522
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1523
- return GetPostsSort2;
1524
- })(GetPostsSort || {});
1641
+ var Field = /* @__PURE__ */ ((Field2) => {
1642
+ Field2["UNKNOWN"] = "UNKNOWN";
1643
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1644
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1645
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1646
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1647
+ return Field2;
1648
+ })(Field || {});
1525
1649
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1526
1650
  SortOrder2["ASC"] = "ASC";
1527
1651
  SortOrder2["DESC"] = "DESC";
@@ -1620,8 +1744,8 @@ async function getPost2(postId, options) {
1620
1744
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1621
1745
  }
1622
1746
  ]),
1623
- ["post.richContent"]
1624
- )?.post;
1747
+ ["post.richContent", "post.rich_content"]
1748
+ );
1625
1749
  } catch (err) {
1626
1750
  const transformedError = (0, import_transform_error.transformError)(
1627
1751
  err,
@@ -1668,7 +1792,7 @@ async function getPostBySlug2(slug, options) {
1668
1792
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1669
1793
  }
1670
1794
  ]),
1671
- ["post.richContent"]
1795
+ ["post.richContent", "post.rich_content"]
1672
1796
  );
1673
1797
  } catch (err) {
1674
1798
  const transformedError = (0, import_transform_error.transformError)(
@@ -1727,7 +1851,7 @@ async function listPosts2(options) {
1727
1851
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1728
1852
  }
1729
1853
  ]),
1730
- ["posts.richContent"]
1854
+ ["posts.richContent", "posts.rich_content"]
1731
1855
  );
1732
1856
  } catch (err) {
1733
1857
  const transformedError = (0, import_transform_error.transformError)(
@@ -1797,7 +1921,7 @@ function queryPosts2(options) {
1797
1921
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1798
1922
  }
1799
1923
  ]),
1800
- ["posts.richContent"]
1924
+ ["posts.richContent", "posts.rich_content"]
1801
1925
  );
1802
1926
  return {
1803
1927
  items: transformedData?.posts,
@@ -1845,7 +1969,7 @@ async function typedQueryPosts(query, options) {
1845
1969
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1846
1970
  }
1847
1971
  ]),
1848
- ["posts.richContent"]
1972
+ ["posts.richContent", "posts.rich_content"]
1849
1973
  );
1850
1974
  } catch (err) {
1851
1975
  const transformedError = (0, import_transform_error.transformError)(