@wix/auto_sdk_blog_posts 1.0.164 → 1.0.166

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 +98 -45
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +380 -209
  5. package/build/cjs/index.typings.js +84 -36
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +346 -192
  8. package/build/cjs/meta.js +78 -30
  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 +86 -36
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +380 -209
  17. package/build/es/index.typings.mjs +76 -31
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +346 -192
  20. package/build/es/meta.mjs +70 -25
  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 +98 -45
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +380 -209
  29. package/build/internal/cjs/index.typings.js +84 -36
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +346 -192
  32. package/build/internal/cjs/meta.js +78 -30
  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 +86 -36
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +380 -209
  41. package/build/internal/es/index.typings.mjs +76 -31
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +346 -192
  44. package/build/internal/es/meta.mjs +70 -25
  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
@@ -28,12 +28,14 @@ __export(index_exports, {
28
28
  BannerPosition: () => BannerPosition,
29
29
  ButtonDataType: () => ButtonDataType,
30
30
  CardDataBackgroundType: () => CardDataBackgroundType,
31
+ CardStylesType: () => CardStylesType,
31
32
  ColumnSize: () => ColumnSize,
32
33
  Crop: () => Crop,
33
34
  DecorationType: () => DecorationType,
34
35
  DesignTarget: () => DesignTarget,
35
36
  Direction: () => Direction,
36
37
  DividerDataAlignment: () => DividerDataAlignment,
38
+ EntranceEffectType: () => EntranceEffectType,
37
39
  Field: () => Field,
38
40
  FontType: () => FontType,
39
41
  GIFType: () => GIFType,
@@ -47,6 +49,7 @@ __export(index_exports, {
47
49
  Layout: () => Layout,
48
50
  LayoutDataBackgroundType: () => LayoutDataBackgroundType,
49
51
  LayoutType: () => LayoutType,
52
+ LineCap: () => LineCap,
50
53
  LineStyle: () => LineStyle,
51
54
  ListStyle: () => ListStyle,
52
55
  MapType: () => MapType,
@@ -103,7 +106,7 @@ module.exports = __toCommonJS(index_exports);
103
106
  // src/blog-v3-post-posts.public.ts
104
107
  var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
105
108
  var import_bytes2 = require("@wix/sdk-runtime/transformations/bytes");
106
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
109
+ var import_float3 = require("@wix/sdk-runtime/transformations/float");
107
110
  var import_image2 = require("@wix/sdk-runtime/transformations/image");
108
111
  var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
109
112
  var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
@@ -119,6 +122,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
119
122
  // src/blog-v3-post-posts.http.ts
120
123
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
121
124
  var import_float = require("@wix/sdk-runtime/transformations/float");
125
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
122
126
  var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
123
127
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
124
128
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
@@ -464,7 +468,7 @@ function getPost(payload) {
464
468
  paths: [{ path: "post.richContentCompressed" }]
465
469
  },
466
470
  {
467
- transformFn: import_float.transformRESTFloatToSDKFloat,
471
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
468
472
  paths: [
469
473
  { path: "post.heroImage.focalPoint.x" },
470
474
  { path: "post.heroImage.focalPoint.y" },
@@ -646,7 +650,7 @@ function getPostBySlug(payload) {
646
650
  paths: [{ path: "post.richContentCompressed" }]
647
651
  },
648
652
  {
649
- transformFn: import_float.transformRESTFloatToSDKFloat,
653
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
650
654
  paths: [
651
655
  { path: "post.heroImage.focalPoint.x" },
652
656
  { path: "post.heroImage.focalPoint.y" },
@@ -830,7 +834,7 @@ function listPosts(payload) {
830
834
  paths: [{ path: "posts.richContentCompressed" }]
831
835
  },
832
836
  {
833
- transformFn: import_float.transformRESTFloatToSDKFloat,
837
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
834
838
  paths: [
835
839
  { path: "posts.heroImage.focalPoint.x" },
836
840
  { path: "posts.heroImage.focalPoint.y" },
@@ -973,6 +977,17 @@ function listPosts(payload) {
973
977
  }
974
978
  function queryPosts(payload) {
975
979
  function __queryPosts({ host }) {
980
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
981
+ {
982
+ transformFn: import_float.transformSDKFloatToRESTFloat,
983
+ paths: [
984
+ { path: "sort.origin.latitude" },
985
+ { path: "sort.origin.longitude" },
986
+ { path: "query.sort.origin.latitude" },
987
+ { path: "query.sort.origin.longitude" }
988
+ ]
989
+ }
990
+ ]);
976
991
  const metadata = {
977
992
  entityFqdn: "wix.blog.v3.post",
978
993
  method: "POST",
@@ -983,10 +998,10 @@ function queryPosts(payload) {
983
998
  },
984
999
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
985
1000
  protoPath: "/v3/posts/query",
986
- data: payload,
1001
+ data: serializedData,
987
1002
  host
988
1003
  }),
989
- data: payload,
1004
+ data: serializedData,
990
1005
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
991
1006
  {
992
1007
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -1016,7 +1031,7 @@ function queryPosts(payload) {
1016
1031
  paths: [{ path: "posts.richContentCompressed" }]
1017
1032
  },
1018
1033
  {
1019
- transformFn: import_float.transformRESTFloatToSDKFloat,
1034
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1020
1035
  paths: [
1021
1036
  { path: "posts.heroImage.focalPoint.x" },
1022
1037
  { path: "posts.heroImage.focalPoint.y" },
@@ -1175,7 +1190,7 @@ function getPostMetrics(payload) {
1175
1190
  params: (0, import_rest_modules.toURLSearchParams)(payload),
1176
1191
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1177
1192
  {
1178
- transformFn: import_float.transformRESTFloatToSDKFloat,
1193
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1179
1194
  paths: [{ path: "metrics.averageRating" }]
1180
1195
  }
1181
1196
  ])
@@ -1268,6 +1283,31 @@ var Target = /* @__PURE__ */ ((Target2) => {
1268
1283
  Target2["TOP"] = "TOP";
1269
1284
  return Target2;
1270
1285
  })(Target || {});
1286
+ var Type = /* @__PURE__ */ ((Type2) => {
1287
+ Type2["VIEW"] = "VIEW";
1288
+ return Type2;
1289
+ })(Type || {});
1290
+ var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
1291
+ EntranceEffectType2["FADE"] = "FADE";
1292
+ EntranceEffectType2["ARC"] = "ARC";
1293
+ EntranceEffectType2["BLUR"] = "BLUR";
1294
+ EntranceEffectType2["BOUNCE"] = "BOUNCE";
1295
+ EntranceEffectType2["DROP"] = "DROP";
1296
+ EntranceEffectType2["EXPAND"] = "EXPAND";
1297
+ EntranceEffectType2["FLIP"] = "FLIP";
1298
+ EntranceEffectType2["FLOAT"] = "FLOAT";
1299
+ EntranceEffectType2["FOLD"] = "FOLD";
1300
+ EntranceEffectType2["GLIDE"] = "GLIDE";
1301
+ EntranceEffectType2["REVEAL"] = "REVEAL";
1302
+ EntranceEffectType2["SHAPE"] = "SHAPE";
1303
+ EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
1304
+ EntranceEffectType2["SLIDE"] = "SLIDE";
1305
+ EntranceEffectType2["SPIN"] = "SPIN";
1306
+ EntranceEffectType2["TILT"] = "TILT";
1307
+ EntranceEffectType2["TURN"] = "TURN";
1308
+ EntranceEffectType2["WINK"] = "WINK";
1309
+ return EntranceEffectType2;
1310
+ })(EntranceEffectType || {});
1271
1311
  var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
1272
1312
  TextAlignment2["AUTO"] = "AUTO";
1273
1313
  TextAlignment2["LEFT"] = "LEFT";
@@ -1276,6 +1316,11 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
1276
1316
  TextAlignment2["JUSTIFY"] = "JUSTIFY";
1277
1317
  return TextAlignment2;
1278
1318
  })(TextAlignment || {});
1319
+ var LineCap = /* @__PURE__ */ ((LineCap2) => {
1320
+ LineCap2["SQUARE"] = "SQUARE";
1321
+ LineCap2["ROUND"] = "ROUND";
1322
+ return LineCap2;
1323
+ })(LineCap || {});
1279
1324
  var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
1280
1325
  LineStyle2["SINGLE"] = "SINGLE";
1281
1326
  LineStyle2["DOUBLE"] = "DOUBLE";
@@ -1438,11 +1483,11 @@ var Placement = /* @__PURE__ */ ((Placement2) => {
1438
1483
  Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1439
1484
  return Placement2;
1440
1485
  })(Placement || {});
1441
- var Type = /* @__PURE__ */ ((Type2) => {
1442
- Type2["CONTAINED"] = "CONTAINED";
1443
- Type2["FRAMELESS"] = "FRAMELESS";
1444
- return Type2;
1445
- })(Type || {});
1486
+ var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
1487
+ CardStylesType2["CONTAINED"] = "CONTAINED";
1488
+ CardStylesType2["FRAMELESS"] = "FRAMELESS";
1489
+ return CardStylesType2;
1490
+ })(CardStylesType || {});
1446
1491
  var Alignment = /* @__PURE__ */ ((Alignment2) => {
1447
1492
  Alignment2["START"] = "START";
1448
1493
  Alignment2["CENTER"] = "CENTER";
@@ -1632,14 +1677,16 @@ var Order = /* @__PURE__ */ ((Order2) => {
1632
1677
  Order2["NEWEST"] = "NEWEST";
1633
1678
  return Order2;
1634
1679
  })(Order || {});
1635
- var Field = /* @__PURE__ */ ((Field2) => {
1636
- Field2["UNKNOWN"] = "UNKNOWN";
1637
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1638
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1639
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1640
- Field2["RATING_COUNT"] = "RATING_COUNT";
1641
- return Field2;
1642
- })(Field || {});
1680
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1681
+ GetPostsSort2["FEED"] = "FEED";
1682
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1683
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1684
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1685
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1686
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1687
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1688
+ return GetPostsSort2;
1689
+ })(GetPostsSort || {});
1643
1690
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1644
1691
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
1645
1692
  PostFieldField2["URL"] = "URL";
@@ -1651,16 +1698,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1651
1698
  PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
1652
1699
  return PostFieldField2;
1653
1700
  })(PostFieldField || {});
1654
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1655
- GetPostsSort2["FEED"] = "FEED";
1656
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1657
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1658
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1659
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1660
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1661
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1662
- return GetPostsSort2;
1663
- })(GetPostsSort || {});
1701
+ var Field = /* @__PURE__ */ ((Field2) => {
1702
+ Field2["UNKNOWN"] = "UNKNOWN";
1703
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1704
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1705
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1706
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1707
+ return Field2;
1708
+ })(Field || {});
1664
1709
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1665
1710
  SortOrder2["ASC"] = "ASC";
1666
1711
  SortOrder2["DESC"] = "DESC";
@@ -1759,8 +1804,8 @@ async function getPost2(postId, options) {
1759
1804
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1760
1805
  }
1761
1806
  ]),
1762
- ["post.richContent"]
1763
- )?.post;
1807
+ ["post.richContent", "post.rich_content"]
1808
+ );
1764
1809
  } catch (err) {
1765
1810
  const transformedError = (0, import_transform_error.transformError)(
1766
1811
  err,
@@ -1807,7 +1852,7 @@ async function getPostBySlug2(slug, options) {
1807
1852
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1808
1853
  }
1809
1854
  ]),
1810
- ["post.richContent"]
1855
+ ["post.richContent", "post.rich_content"]
1811
1856
  );
1812
1857
  } catch (err) {
1813
1858
  const transformedError = (0, import_transform_error.transformError)(
@@ -1866,7 +1911,7 @@ async function listPosts2(options) {
1866
1911
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1867
1912
  }
1868
1913
  ]),
1869
- ["posts.richContent"]
1914
+ ["posts.richContent", "posts.rich_content"]
1870
1915
  );
1871
1916
  } catch (err) {
1872
1917
  const transformedError = (0, import_transform_error.transformError)(
@@ -1936,7 +1981,7 @@ function queryPosts2(options) {
1936
1981
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1937
1982
  }
1938
1983
  ]),
1939
- ["posts.richContent"]
1984
+ ["posts.richContent", "posts.rich_content"]
1940
1985
  );
1941
1986
  return {
1942
1987
  items: transformedData?.posts,
@@ -1984,7 +2029,7 @@ async function typedQueryPosts(query, options) {
1984
2029
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1985
2030
  }
1986
2031
  ]),
1987
- ["posts.richContent"]
2032
+ ["posts.richContent", "posts.rich_content"]
1988
2033
  );
1989
2034
  } catch (err) {
1990
2035
  const transformedError = (0, import_transform_error.transformError)(
@@ -2098,7 +2143,8 @@ var onPostLiked = (0, import_sdk_types.EventDefinition)(
2098
2143
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2099
2144
  paths: [{ path: "metadata.eventTime" }]
2100
2145
  }
2101
- ])
2146
+ ]),
2147
+ ["entity.rich_content"]
2102
2148
  )
2103
2149
  )();
2104
2150
  var onPostUnliked = (0, import_sdk_types.EventDefinition)(
@@ -2110,7 +2156,8 @@ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
2110
2156
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2111
2157
  paths: [{ path: "metadata.eventTime" }]
2112
2158
  }
2113
- ])
2159
+ ]),
2160
+ ["entity.rich_content"]
2114
2161
  )
2115
2162
  )();
2116
2163
  var onPostCreated = (0, import_sdk_types.EventDefinition)(
@@ -2146,7 +2193,7 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
2146
2193
  paths: [{ path: "entity.richContentCompressed" }]
2147
2194
  },
2148
2195
  {
2149
- transformFn: import_float2.transformRESTFloatToSDKFloat,
2196
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2150
2197
  paths: [
2151
2198
  { path: "entity.metrics.averageRating" },
2152
2199
  {
@@ -2271,7 +2318,8 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
2271
2318
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2272
2319
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2273
2320
  }
2274
- ])
2321
+ ]),
2322
+ ["entity.rich_content"]
2275
2323
  )
2276
2324
  )();
2277
2325
  var onPostDeleted = (0, import_sdk_types.EventDefinition)(
@@ -2307,7 +2355,7 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
2307
2355
  paths: [{ path: "entity.richContentCompressed" }]
2308
2356
  },
2309
2357
  {
2310
- transformFn: import_float2.transformRESTFloatToSDKFloat,
2358
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2311
2359
  paths: [
2312
2360
  { path: "entity.metrics.averageRating" },
2313
2361
  {
@@ -2432,7 +2480,8 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
2432
2480
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2433
2481
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2434
2482
  }
2435
- ])
2483
+ ]),
2484
+ ["entity.rich_content"]
2436
2485
  )
2437
2486
  )();
2438
2487
  var onPostUpdated = (0, import_sdk_types.EventDefinition)(
@@ -2468,7 +2517,7 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
2468
2517
  paths: [{ path: "entity.richContentCompressed" }]
2469
2518
  },
2470
2519
  {
2471
- transformFn: import_float2.transformRESTFloatToSDKFloat,
2520
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2472
2521
  paths: [
2473
2522
  { path: "entity.metrics.averageRating" },
2474
2523
  {
@@ -2593,7 +2642,8 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
2593
2642
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2594
2643
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2595
2644
  }
2596
- ])
2645
+ ]),
2646
+ ["entity.rich_content"]
2597
2647
  )
2598
2648
  )();
2599
2649
 
@@ -2634,12 +2684,14 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2634
2684
  BannerPosition,
2635
2685
  ButtonDataType,
2636
2686
  CardDataBackgroundType,
2687
+ CardStylesType,
2637
2688
  ColumnSize,
2638
2689
  Crop,
2639
2690
  DecorationType,
2640
2691
  DesignTarget,
2641
2692
  Direction,
2642
2693
  DividerDataAlignment,
2694
+ EntranceEffectType,
2643
2695
  Field,
2644
2696
  FontType,
2645
2697
  GIFType,
@@ -2653,6 +2705,7 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2653
2705
  Layout,
2654
2706
  LayoutDataBackgroundType,
2655
2707
  LayoutType,
2708
+ LineCap,
2656
2709
  LineStyle,
2657
2710
  ListStyle,
2658
2711
  MapType,