@wix/auto_sdk_blog_posts 1.0.140 → 1.0.141

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 +11 -15
  2. package/build/cjs/index.js +73 -43
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +576 -533
  5. package/build/cjs/index.typings.js +59 -30
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +413 -358
  8. package/build/cjs/meta.js +53 -24
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +11 -15
  11. package/build/es/index.mjs +71 -43
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +576 -533
  14. package/build/es/index.typings.mjs +57 -30
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +413 -358
  17. package/build/es/meta.mjs +51 -24
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +11 -15
  20. package/build/internal/cjs/index.js +73 -43
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +576 -533
  23. package/build/internal/cjs/index.typings.js +59 -30
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +413 -358
  26. package/build/internal/cjs/meta.js +53 -24
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +11 -15
  29. package/build/internal/es/index.mjs +71 -43
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +576 -533
  32. package/build/internal/es/index.typings.mjs +57 -30
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +413 -358
  35. package/build/internal/es/meta.mjs +51 -24
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -42,11 +42,13 @@ __export(index_typings_exports, {
42
42
  ImagePosition: () => ImagePosition,
43
43
  ImagePositionPosition: () => ImagePositionPosition,
44
44
  ImageScalingScaling: () => ImageScalingScaling,
45
+ Indentation: () => Indentation,
45
46
  InitialExpandedItems: () => InitialExpandedItems,
46
47
  Layout: () => Layout,
47
48
  LayoutDataBackgroundType: () => LayoutDataBackgroundType,
48
49
  LayoutType: () => LayoutType,
49
50
  LineStyle: () => LineStyle,
51
+ ListStyle: () => ListStyle,
50
52
  MapType: () => MapType,
51
53
  ModerationStatusStatus: () => ModerationStatusStatus,
52
54
  NodeType: () => NodeType,
@@ -540,7 +542,9 @@ function getPost(payload) {
540
542
  },
541
543
  {
542
544
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
543
- }
545
+ },
546
+ { path: "post.richContent.nodes.tocData.fontSize" },
547
+ { path: "post.richContent.nodes.tocData.itemSpacing" }
544
548
  ]
545
549
  }
546
550
  ])
@@ -686,7 +690,9 @@ function getPostBySlug(payload) {
686
690
  },
687
691
  {
688
692
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
689
- }
693
+ },
694
+ { path: "post.richContent.nodes.tocData.fontSize" },
695
+ { path: "post.richContent.nodes.tocData.itemSpacing" }
690
696
  ]
691
697
  }
692
698
  ])
@@ -836,7 +842,9 @@ function listPosts(payload) {
836
842
  },
837
843
  {
838
844
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
839
- }
845
+ },
846
+ { path: "posts.richContent.nodes.tocData.fontSize" },
847
+ { path: "posts.richContent.nodes.tocData.itemSpacing" }
840
848
  ]
841
849
  }
842
850
  ])
@@ -986,7 +994,9 @@ function queryPosts(payload) {
986
994
  },
987
995
  {
988
996
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
989
- }
997
+ },
998
+ { path: "posts.richContent.nodes.tocData.fontSize" },
999
+ { path: "posts.richContent.nodes.tocData.itemSpacing" }
990
1000
  ]
991
1001
  }
992
1002
  ])
@@ -1065,6 +1075,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
1065
1075
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
1066
1076
  NodeType2["SHAPE"] = "SHAPE";
1067
1077
  NodeType2["CARD"] = "CARD";
1078
+ NodeType2["TOC"] = "TOC";
1068
1079
  return NodeType2;
1069
1080
  })(NodeType || {});
1070
1081
  var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
@@ -1175,6 +1186,7 @@ var Source = /* @__PURE__ */ ((Source2) => {
1175
1186
  Source2["HTML"] = "HTML";
1176
1187
  Source2["ADSENSE"] = "ADSENSE";
1177
1188
  Source2["AI"] = "AI";
1189
+ Source2["AI_WIDGET"] = "AI_WIDGET";
1178
1190
  return Source2;
1179
1191
  })(Source || {});
1180
1192
  var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
@@ -1376,32 +1388,27 @@ var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
1376
1388
  CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
1377
1389
  return CardDataBackgroundType2;
1378
1390
  })(CardDataBackgroundType || {});
1391
+ var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
1392
+ ListStyle2["PLAIN"] = "PLAIN";
1393
+ ListStyle2["NUMBERED"] = "NUMBERED";
1394
+ ListStyle2["LETTERS"] = "LETTERS";
1395
+ ListStyle2["ROMAN"] = "ROMAN";
1396
+ ListStyle2["BULLETED"] = "BULLETED";
1397
+ ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
1398
+ ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
1399
+ return ListStyle2;
1400
+ })(ListStyle || {});
1401
+ var Indentation = /* @__PURE__ */ ((Indentation2) => {
1402
+ Indentation2["NESTED"] = "NESTED";
1403
+ Indentation2["FLAT"] = "FLAT";
1404
+ return Indentation2;
1405
+ })(Indentation || {});
1379
1406
  var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
1380
1407
  ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
1381
1408
  ModerationStatusStatus2["APPROVED"] = "APPROVED";
1382
1409
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
1383
1410
  return ModerationStatusStatus2;
1384
1411
  })(ModerationStatusStatus || {});
1385
- var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1386
- QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1387
- QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1388
- QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1389
- return QueryPublicationsCountStatsRequestOrder2;
1390
- })(QueryPublicationsCountStatsRequestOrder || {});
1391
- var Order = /* @__PURE__ */ ((Order2) => {
1392
- Order2["UNKNOWN"] = "UNKNOWN";
1393
- Order2["OLDEST"] = "OLDEST";
1394
- Order2["NEWEST"] = "NEWEST";
1395
- return Order2;
1396
- })(Order || {});
1397
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1398
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1399
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1400
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1401
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1402
- WebhookIdentityType2["APP"] = "APP";
1403
- return WebhookIdentityType2;
1404
- })(WebhookIdentityType || {});
1405
1412
  var GetPostTemplatesSort = /* @__PURE__ */ ((GetPostTemplatesSort2) => {
1406
1413
  GetPostTemplatesSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1407
1414
  GetPostTemplatesSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
@@ -1455,6 +1462,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
1455
1462
  Status2["IN_REVIEW"] = "IN_REVIEW";
1456
1463
  return Status2;
1457
1464
  })(Status || {});
1465
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1466
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1467
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1468
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1469
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1470
+ WebhookIdentityType2["APP"] = "APP";
1471
+ return WebhookIdentityType2;
1472
+ })(WebhookIdentityType || {});
1473
+ var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1474
+ QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1475
+ QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1476
+ QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1477
+ return QueryPublicationsCountStatsRequestOrder2;
1478
+ })(QueryPublicationsCountStatsRequestOrder || {});
1479
+ var Order = /* @__PURE__ */ ((Order2) => {
1480
+ Order2["UNKNOWN"] = "UNKNOWN";
1481
+ Order2["OLDEST"] = "OLDEST";
1482
+ Order2["NEWEST"] = "NEWEST";
1483
+ return Order2;
1484
+ })(Order || {});
1458
1485
  var Field = /* @__PURE__ */ ((Field2) => {
1459
1486
  Field2["UNKNOWN"] = "UNKNOWN";
1460
1487
  Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
@@ -1582,8 +1609,8 @@ async function getPost2(postId, options) {
1582
1609
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1583
1610
  }
1584
1611
  ]),
1585
- ["post.richContent", "post.rich_content"]
1586
- );
1612
+ ["post.richContent"]
1613
+ )?.post;
1587
1614
  } catch (err) {
1588
1615
  const transformedError = (0, import_transform_error.transformError)(
1589
1616
  err,
@@ -1630,7 +1657,7 @@ async function getPostBySlug2(slug, options) {
1630
1657
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1631
1658
  }
1632
1659
  ]),
1633
- ["post.richContent", "post.rich_content"]
1660
+ ["post.richContent"]
1634
1661
  );
1635
1662
  } catch (err) {
1636
1663
  const transformedError = (0, import_transform_error.transformError)(
@@ -1689,7 +1716,7 @@ async function listPosts2(options) {
1689
1716
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1690
1717
  }
1691
1718
  ]),
1692
- ["posts.richContent", "posts.rich_content"]
1719
+ ["posts.richContent"]
1693
1720
  );
1694
1721
  } catch (err) {
1695
1722
  const transformedError = (0, import_transform_error.transformError)(
@@ -1759,7 +1786,7 @@ function queryPosts2(options) {
1759
1786
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1760
1787
  }
1761
1788
  ]),
1762
- ["posts.richContent", "posts.rich_content"]
1789
+ ["posts.richContent"]
1763
1790
  );
1764
1791
  return {
1765
1792
  items: transformedData?.posts,
@@ -1807,7 +1834,7 @@ async function typedQueryPosts(query, options) {
1807
1834
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1808
1835
  }
1809
1836
  ]),
1810
- ["posts.richContent", "posts.rich_content"]
1837
+ ["posts.richContent"]
1811
1838
  );
1812
1839
  } catch (err) {
1813
1840
  const transformedError = (0, import_transform_error.transformError)(
@@ -1875,11 +1902,13 @@ async function getPostMetrics2(postId) {
1875
1902
  ImagePosition,
1876
1903
  ImagePositionPosition,
1877
1904
  ImageScalingScaling,
1905
+ Indentation,
1878
1906
  InitialExpandedItems,
1879
1907
  Layout,
1880
1908
  LayoutDataBackgroundType,
1881
1909
  LayoutType,
1882
1910
  LineStyle,
1911
+ ListStyle,
1883
1912
  MapType,
1884
1913
  ModerationStatusStatus,
1885
1914
  NodeType,