@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
@@ -398,6 +398,10 @@ function getPost(payload) {
398
398
  },
399
399
  { path: "post.richContent.nodes.galleryData.options.item.ratio" },
400
400
  { path: "post.richContent.nodes.imageData.image.duration" },
401
+ { path: "post.richContent.nodes.imageData.crop.x" },
402
+ { path: "post.richContent.nodes.imageData.crop.y" },
403
+ { path: "post.richContent.nodes.imageData.crop.width" },
404
+ { path: "post.richContent.nodes.imageData.crop.height" },
401
405
  { path: "post.richContent.nodes.mapData.mapSettings.lat" },
402
406
  { path: "post.richContent.nodes.mapData.mapSettings.lng" },
403
407
  { path: "post.richContent.nodes.pollData.poll.image.duration" },
@@ -415,9 +419,27 @@ function getPost(payload) {
415
419
  {
416
420
  path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
417
421
  },
422
+ {
423
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
424
+ },
425
+ {
426
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
427
+ },
428
+ {
429
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
430
+ },
418
431
  {
419
432
  path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
420
433
  },
434
+ {
435
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
436
+ },
437
+ {
438
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
439
+ },
440
+ {
441
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
442
+ },
421
443
  {
422
444
  path: "post.richContent.nodes.layoutData.background.gradient.centerX"
423
445
  },
@@ -449,6 +471,15 @@ function getPost(payload) {
449
471
  {
450
472
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
451
473
  },
474
+ {
475
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
476
+ },
477
+ {
478
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
479
+ },
480
+ {
481
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
482
+ },
452
483
  { path: "post.richContent.nodes.tocData.fontSize" },
453
484
  { path: "post.richContent.nodes.tocData.itemSpacing" },
454
485
  {
@@ -549,6 +580,10 @@ function getPostBySlug(payload) {
549
580
  },
550
581
  { path: "post.richContent.nodes.galleryData.options.item.ratio" },
551
582
  { path: "post.richContent.nodes.imageData.image.duration" },
583
+ { path: "post.richContent.nodes.imageData.crop.x" },
584
+ { path: "post.richContent.nodes.imageData.crop.y" },
585
+ { path: "post.richContent.nodes.imageData.crop.width" },
586
+ { path: "post.richContent.nodes.imageData.crop.height" },
552
587
  { path: "post.richContent.nodes.mapData.mapSettings.lat" },
553
588
  { path: "post.richContent.nodes.mapData.mapSettings.lng" },
554
589
  { path: "post.richContent.nodes.pollData.poll.image.duration" },
@@ -566,9 +601,27 @@ function getPostBySlug(payload) {
566
601
  {
567
602
  path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
568
603
  },
604
+ {
605
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
606
+ },
607
+ {
608
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
609
+ },
610
+ {
611
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
612
+ },
569
613
  {
570
614
  path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
571
615
  },
616
+ {
617
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
618
+ },
619
+ {
620
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
621
+ },
622
+ {
623
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
624
+ },
572
625
  {
573
626
  path: "post.richContent.nodes.layoutData.background.gradient.centerX"
574
627
  },
@@ -600,6 +653,15 @@ function getPostBySlug(payload) {
600
653
  {
601
654
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
602
655
  },
656
+ {
657
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
658
+ },
659
+ {
660
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
661
+ },
662
+ {
663
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
664
+ },
603
665
  { path: "post.richContent.nodes.tocData.fontSize" },
604
666
  { path: "post.richContent.nodes.tocData.itemSpacing" },
605
667
  {
@@ -704,6 +766,10 @@ function listPosts(payload) {
704
766
  path: "posts.richContent.nodes.galleryData.options.item.ratio"
705
767
  },
706
768
  { path: "posts.richContent.nodes.imageData.image.duration" },
769
+ { path: "posts.richContent.nodes.imageData.crop.x" },
770
+ { path: "posts.richContent.nodes.imageData.crop.y" },
771
+ { path: "posts.richContent.nodes.imageData.crop.width" },
772
+ { path: "posts.richContent.nodes.imageData.crop.height" },
707
773
  { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
708
774
  { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
709
775
  { path: "posts.richContent.nodes.pollData.poll.image.duration" },
@@ -721,9 +787,27 @@ function listPosts(payload) {
721
787
  {
722
788
  path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
723
789
  },
790
+ {
791
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
792
+ },
793
+ {
794
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
795
+ },
796
+ {
797
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
798
+ },
724
799
  {
725
800
  path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
726
801
  },
802
+ {
803
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
804
+ },
805
+ {
806
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
807
+ },
808
+ {
809
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
810
+ },
727
811
  {
728
812
  path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
729
813
  },
@@ -755,6 +839,15 @@ function listPosts(payload) {
755
839
  {
756
840
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
757
841
  },
842
+ {
843
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
844
+ },
845
+ {
846
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
847
+ },
848
+ {
849
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
850
+ },
758
851
  { path: "posts.richContent.nodes.tocData.fontSize" },
759
852
  { path: "posts.richContent.nodes.tocData.itemSpacing" },
760
853
  {
@@ -859,6 +952,10 @@ function queryPosts(payload) {
859
952
  path: "posts.richContent.nodes.galleryData.options.item.ratio"
860
953
  },
861
954
  { path: "posts.richContent.nodes.imageData.image.duration" },
955
+ { path: "posts.richContent.nodes.imageData.crop.x" },
956
+ { path: "posts.richContent.nodes.imageData.crop.y" },
957
+ { path: "posts.richContent.nodes.imageData.crop.width" },
958
+ { path: "posts.richContent.nodes.imageData.crop.height" },
862
959
  { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
863
960
  { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
864
961
  { path: "posts.richContent.nodes.pollData.poll.image.duration" },
@@ -876,9 +973,27 @@ function queryPosts(payload) {
876
973
  {
877
974
  path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
878
975
  },
976
+ {
977
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
978
+ },
979
+ {
980
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
981
+ },
982
+ {
983
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
984
+ },
879
985
  {
880
986
  path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
881
987
  },
988
+ {
989
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
990
+ },
991
+ {
992
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
993
+ },
994
+ {
995
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
996
+ },
882
997
  {
883
998
  path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
884
999
  },
@@ -910,6 +1025,15 @@ function queryPosts(payload) {
910
1025
  {
911
1026
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
912
1027
  },
1028
+ {
1029
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1030
+ },
1031
+ {
1032
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1033
+ },
1034
+ {
1035
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1036
+ },
913
1037
  { path: "posts.richContent.nodes.tocData.fontSize" },
914
1038
  { path: "posts.richContent.nodes.tocData.itemSpacing" },
915
1039
  {
@@ -1265,6 +1389,11 @@ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1265
1389
  ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1266
1390
  return ImagePosition2;
1267
1391
  })(ImagePosition || {});
1392
+ var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1393
+ LayoutDataBackgroundType2["COLOR"] = "COLOR";
1394
+ LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1395
+ return LayoutDataBackgroundType2;
1396
+ })(LayoutDataBackgroundType || {});
1268
1397
  var Origin = /* @__PURE__ */ ((Origin2) => {
1269
1398
  Origin2["IMAGE"] = "IMAGE";
1270
1399
  Origin2["LAYOUT"] = "LAYOUT";
@@ -1275,11 +1404,6 @@ var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1275
1404
  BannerPosition2["BOTTOM"] = "BOTTOM";
1276
1405
  return BannerPosition2;
1277
1406
  })(BannerPosition || {});
1278
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1279
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
1280
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1281
- return LayoutDataBackgroundType2;
1282
- })(LayoutDataBackgroundType || {});
1283
1407
  var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
1284
1408
  BackdropType2["COLOR"] = "COLOR";
1285
1409
  BackdropType2["GRADIENT"] = "GRADIENT";
@@ -1378,6 +1502,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
1378
1502
  Status2["REJECTED"] = "REJECTED";
1379
1503
  return Status2;
1380
1504
  })(Status || {});
1505
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1506
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1507
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1508
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1509
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1510
+ WebhookIdentityType2["APP"] = "APP";
1511
+ return WebhookIdentityType2;
1512
+ })(WebhookIdentityType || {});
1381
1513
  var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1382
1514
  QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1383
1515
  QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
@@ -1390,22 +1522,16 @@ var Order = /* @__PURE__ */ ((Order2) => {
1390
1522
  Order2["NEWEST"] = "NEWEST";
1391
1523
  return Order2;
1392
1524
  })(Order || {});
1393
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1394
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1395
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1396
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1397
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1398
- WebhookIdentityType2["APP"] = "APP";
1399
- return WebhookIdentityType2;
1400
- })(WebhookIdentityType || {});
1401
- var Field = /* @__PURE__ */ ((Field2) => {
1402
- Field2["UNKNOWN"] = "UNKNOWN";
1403
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1404
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1405
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1406
- Field2["RATING_COUNT"] = "RATING_COUNT";
1407
- return Field2;
1408
- })(Field || {});
1525
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1526
+ GetPostsSort2["FEED"] = "FEED";
1527
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1528
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1529
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1530
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1531
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1532
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1533
+ return GetPostsSort2;
1534
+ })(GetPostsSort || {});
1409
1535
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1410
1536
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
1411
1537
  PostFieldField2["URL"] = "URL";
@@ -1417,16 +1543,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1417
1543
  PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
1418
1544
  return PostFieldField2;
1419
1545
  })(PostFieldField || {});
1420
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1421
- GetPostsSort2["FEED"] = "FEED";
1422
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1423
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1424
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1425
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1426
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1427
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1428
- return GetPostsSort2;
1429
- })(GetPostsSort || {});
1546
+ var Field = /* @__PURE__ */ ((Field2) => {
1547
+ Field2["UNKNOWN"] = "UNKNOWN";
1548
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1549
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1550
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1551
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1552
+ return Field2;
1553
+ })(Field || {});
1430
1554
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1431
1555
  SortOrder2["ASC"] = "ASC";
1432
1556
  SortOrder2["DESC"] = "DESC";
@@ -1525,8 +1649,8 @@ async function getPost2(postId, options) {
1525
1649
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1526
1650
  }
1527
1651
  ]),
1528
- ["post.richContent"]
1529
- )?.post;
1652
+ ["post.richContent", "post.rich_content"]
1653
+ );
1530
1654
  } catch (err) {
1531
1655
  const transformedError = sdkTransformError(
1532
1656
  err,
@@ -1573,7 +1697,7 @@ async function getPostBySlug2(slug, options) {
1573
1697
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1574
1698
  }
1575
1699
  ]),
1576
- ["post.richContent"]
1700
+ ["post.richContent", "post.rich_content"]
1577
1701
  );
1578
1702
  } catch (err) {
1579
1703
  const transformedError = sdkTransformError(
@@ -1632,7 +1756,7 @@ async function listPosts2(options) {
1632
1756
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1633
1757
  }
1634
1758
  ]),
1635
- ["posts.richContent"]
1759
+ ["posts.richContent", "posts.rich_content"]
1636
1760
  );
1637
1761
  } catch (err) {
1638
1762
  const transformedError = sdkTransformError(
@@ -1702,7 +1826,7 @@ function queryPosts2(options) {
1702
1826
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1703
1827
  }
1704
1828
  ]),
1705
- ["posts.richContent"]
1829
+ ["posts.richContent", "posts.rich_content"]
1706
1830
  );
1707
1831
  return {
1708
1832
  items: transformedData?.posts,
@@ -1750,7 +1874,7 @@ async function typedQueryPosts(query, options) {
1750
1874
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1751
1875
  }
1752
1876
  ]),
1753
- ["posts.richContent"]
1877
+ ["posts.richContent", "posts.rich_content"]
1754
1878
  );
1755
1879
  } catch (err) {
1756
1880
  const transformedError = sdkTransformError(