@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.
- package/build/cjs/index.d.ts +15 -11
- package/build/cjs/index.js +98 -45
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +380 -209
- package/build/cjs/index.typings.js +84 -36
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +346 -192
- package/build/cjs/meta.js +78 -30
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +86 -84
- package/build/cjs/schemas.js +153 -147
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +15 -11
- package/build/es/index.mjs +86 -36
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +380 -209
- package/build/es/index.typings.mjs +76 -31
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +346 -192
- package/build/es/meta.mjs +70 -25
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +86 -84
- package/build/es/schemas.mjs +153 -147
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -11
- package/build/internal/cjs/index.js +98 -45
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +380 -209
- package/build/internal/cjs/index.typings.js +84 -36
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +346 -192
- package/build/internal/cjs/meta.js +78 -30
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +86 -84
- package/build/internal/cjs/schemas.js +153 -147
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -11
- package/build/internal/es/index.mjs +86 -36
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +380 -209
- package/build/internal/es/index.typings.mjs +76 -31
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +346 -192
- package/build/internal/es/meta.mjs +70 -25
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +86 -84
- package/build/internal/es/schemas.mjs +153 -147
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -28,12 +28,14 @@ __export(index_typings_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_typings_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,
|
|
@@ -104,6 +107,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
104
107
|
// src/blog-v3-post-posts.http.ts
|
|
105
108
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
106
109
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
110
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
107
111
|
var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
|
|
108
112
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
109
113
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
@@ -449,7 +453,7 @@ function getPost(payload) {
|
|
|
449
453
|
paths: [{ path: "post.richContentCompressed" }]
|
|
450
454
|
},
|
|
451
455
|
{
|
|
452
|
-
transformFn:
|
|
456
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
453
457
|
paths: [
|
|
454
458
|
{ path: "post.heroImage.focalPoint.x" },
|
|
455
459
|
{ path: "post.heroImage.focalPoint.y" },
|
|
@@ -631,7 +635,7 @@ function getPostBySlug(payload) {
|
|
|
631
635
|
paths: [{ path: "post.richContentCompressed" }]
|
|
632
636
|
},
|
|
633
637
|
{
|
|
634
|
-
transformFn:
|
|
638
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
635
639
|
paths: [
|
|
636
640
|
{ path: "post.heroImage.focalPoint.x" },
|
|
637
641
|
{ path: "post.heroImage.focalPoint.y" },
|
|
@@ -815,7 +819,7 @@ function listPosts(payload) {
|
|
|
815
819
|
paths: [{ path: "posts.richContentCompressed" }]
|
|
816
820
|
},
|
|
817
821
|
{
|
|
818
|
-
transformFn:
|
|
822
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
819
823
|
paths: [
|
|
820
824
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
821
825
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
@@ -958,6 +962,17 @@ function listPosts(payload) {
|
|
|
958
962
|
}
|
|
959
963
|
function queryPosts(payload) {
|
|
960
964
|
function __queryPosts({ host }) {
|
|
965
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
966
|
+
{
|
|
967
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
968
|
+
paths: [
|
|
969
|
+
{ path: "sort.origin.latitude" },
|
|
970
|
+
{ path: "sort.origin.longitude" },
|
|
971
|
+
{ path: "query.sort.origin.latitude" },
|
|
972
|
+
{ path: "query.sort.origin.longitude" }
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
]);
|
|
961
976
|
const metadata = {
|
|
962
977
|
entityFqdn: "wix.blog.v3.post",
|
|
963
978
|
method: "POST",
|
|
@@ -968,10 +983,10 @@ function queryPosts(payload) {
|
|
|
968
983
|
},
|
|
969
984
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
|
970
985
|
protoPath: "/v3/posts/query",
|
|
971
|
-
data:
|
|
986
|
+
data: serializedData,
|
|
972
987
|
host
|
|
973
988
|
}),
|
|
974
|
-
data:
|
|
989
|
+
data: serializedData,
|
|
975
990
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
976
991
|
{
|
|
977
992
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1001,7 +1016,7 @@ function queryPosts(payload) {
|
|
|
1001
1016
|
paths: [{ path: "posts.richContentCompressed" }]
|
|
1002
1017
|
},
|
|
1003
1018
|
{
|
|
1004
|
-
transformFn:
|
|
1019
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1005
1020
|
paths: [
|
|
1006
1021
|
{ path: "posts.heroImage.focalPoint.x" },
|
|
1007
1022
|
{ path: "posts.heroImage.focalPoint.y" },
|
|
@@ -1160,7 +1175,7 @@ function getPostMetrics(payload) {
|
|
|
1160
1175
|
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
1161
1176
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1162
1177
|
{
|
|
1163
|
-
transformFn:
|
|
1178
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1164
1179
|
paths: [{ path: "metrics.averageRating" }]
|
|
1165
1180
|
}
|
|
1166
1181
|
])
|
|
@@ -1253,6 +1268,31 @@ var Target = /* @__PURE__ */ ((Target2) => {
|
|
|
1253
1268
|
Target2["TOP"] = "TOP";
|
|
1254
1269
|
return Target2;
|
|
1255
1270
|
})(Target || {});
|
|
1271
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
1272
|
+
Type2["VIEW"] = "VIEW";
|
|
1273
|
+
return Type2;
|
|
1274
|
+
})(Type || {});
|
|
1275
|
+
var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
|
|
1276
|
+
EntranceEffectType2["FADE"] = "FADE";
|
|
1277
|
+
EntranceEffectType2["ARC"] = "ARC";
|
|
1278
|
+
EntranceEffectType2["BLUR"] = "BLUR";
|
|
1279
|
+
EntranceEffectType2["BOUNCE"] = "BOUNCE";
|
|
1280
|
+
EntranceEffectType2["DROP"] = "DROP";
|
|
1281
|
+
EntranceEffectType2["EXPAND"] = "EXPAND";
|
|
1282
|
+
EntranceEffectType2["FLIP"] = "FLIP";
|
|
1283
|
+
EntranceEffectType2["FLOAT"] = "FLOAT";
|
|
1284
|
+
EntranceEffectType2["FOLD"] = "FOLD";
|
|
1285
|
+
EntranceEffectType2["GLIDE"] = "GLIDE";
|
|
1286
|
+
EntranceEffectType2["REVEAL"] = "REVEAL";
|
|
1287
|
+
EntranceEffectType2["SHAPE"] = "SHAPE";
|
|
1288
|
+
EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
|
|
1289
|
+
EntranceEffectType2["SLIDE"] = "SLIDE";
|
|
1290
|
+
EntranceEffectType2["SPIN"] = "SPIN";
|
|
1291
|
+
EntranceEffectType2["TILT"] = "TILT";
|
|
1292
|
+
EntranceEffectType2["TURN"] = "TURN";
|
|
1293
|
+
EntranceEffectType2["WINK"] = "WINK";
|
|
1294
|
+
return EntranceEffectType2;
|
|
1295
|
+
})(EntranceEffectType || {});
|
|
1256
1296
|
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
1257
1297
|
TextAlignment2["AUTO"] = "AUTO";
|
|
1258
1298
|
TextAlignment2["LEFT"] = "LEFT";
|
|
@@ -1261,6 +1301,11 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
1261
1301
|
TextAlignment2["JUSTIFY"] = "JUSTIFY";
|
|
1262
1302
|
return TextAlignment2;
|
|
1263
1303
|
})(TextAlignment || {});
|
|
1304
|
+
var LineCap = /* @__PURE__ */ ((LineCap2) => {
|
|
1305
|
+
LineCap2["SQUARE"] = "SQUARE";
|
|
1306
|
+
LineCap2["ROUND"] = "ROUND";
|
|
1307
|
+
return LineCap2;
|
|
1308
|
+
})(LineCap || {});
|
|
1264
1309
|
var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
|
|
1265
1310
|
LineStyle2["SINGLE"] = "SINGLE";
|
|
1266
1311
|
LineStyle2["DOUBLE"] = "DOUBLE";
|
|
@@ -1423,11 +1468,11 @@ var Placement = /* @__PURE__ */ ((Placement2) => {
|
|
|
1423
1468
|
Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
|
|
1424
1469
|
return Placement2;
|
|
1425
1470
|
})(Placement || {});
|
|
1426
|
-
var
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
return
|
|
1430
|
-
})(
|
|
1471
|
+
var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
|
|
1472
|
+
CardStylesType2["CONTAINED"] = "CONTAINED";
|
|
1473
|
+
CardStylesType2["FRAMELESS"] = "FRAMELESS";
|
|
1474
|
+
return CardStylesType2;
|
|
1475
|
+
})(CardStylesType || {});
|
|
1431
1476
|
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
|
1432
1477
|
Alignment2["START"] = "START";
|
|
1433
1478
|
Alignment2["CENTER"] = "CENTER";
|
|
@@ -1617,14 +1662,16 @@ var Order = /* @__PURE__ */ ((Order2) => {
|
|
|
1617
1662
|
Order2["NEWEST"] = "NEWEST";
|
|
1618
1663
|
return Order2;
|
|
1619
1664
|
})(Order || {});
|
|
1620
|
-
var
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1665
|
+
var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
|
|
1666
|
+
GetPostsSort2["FEED"] = "FEED";
|
|
1667
|
+
GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
|
1668
|
+
GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
|
1669
|
+
GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1670
|
+
GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1671
|
+
GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
|
|
1672
|
+
GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
|
|
1673
|
+
return GetPostsSort2;
|
|
1674
|
+
})(GetPostsSort || {});
|
|
1628
1675
|
var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
1629
1676
|
PostFieldField2["UNKNOWN"] = "UNKNOWN";
|
|
1630
1677
|
PostFieldField2["URL"] = "URL";
|
|
@@ -1636,16 +1683,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
|
1636
1683
|
PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
|
|
1637
1684
|
return PostFieldField2;
|
|
1638
1685
|
})(PostFieldField || {});
|
|
1639
|
-
var
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
return GetPostsSort2;
|
|
1648
|
-
})(GetPostsSort || {});
|
|
1686
|
+
var Field = /* @__PURE__ */ ((Field2) => {
|
|
1687
|
+
Field2["UNKNOWN"] = "UNKNOWN";
|
|
1688
|
+
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
|
1689
|
+
Field2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1690
|
+
Field2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1691
|
+
Field2["RATING_COUNT"] = "RATING_COUNT";
|
|
1692
|
+
return Field2;
|
|
1693
|
+
})(Field || {});
|
|
1649
1694
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1650
1695
|
SortOrder2["ASC"] = "ASC";
|
|
1651
1696
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -1744,8 +1789,8 @@ async function getPost2(postId, options) {
|
|
|
1744
1789
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1745
1790
|
}
|
|
1746
1791
|
]),
|
|
1747
|
-
["post.richContent"]
|
|
1748
|
-
)
|
|
1792
|
+
["post.richContent", "post.rich_content"]
|
|
1793
|
+
);
|
|
1749
1794
|
} catch (err) {
|
|
1750
1795
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1751
1796
|
err,
|
|
@@ -1792,7 +1837,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1792
1837
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1793
1838
|
}
|
|
1794
1839
|
]),
|
|
1795
|
-
["post.richContent"]
|
|
1840
|
+
["post.richContent", "post.rich_content"]
|
|
1796
1841
|
);
|
|
1797
1842
|
} catch (err) {
|
|
1798
1843
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1851,7 +1896,7 @@ async function listPosts2(options) {
|
|
|
1851
1896
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1852
1897
|
}
|
|
1853
1898
|
]),
|
|
1854
|
-
["posts.richContent"]
|
|
1899
|
+
["posts.richContent", "posts.rich_content"]
|
|
1855
1900
|
);
|
|
1856
1901
|
} catch (err) {
|
|
1857
1902
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1921,7 +1966,7 @@ function queryPosts2(options) {
|
|
|
1921
1966
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1922
1967
|
}
|
|
1923
1968
|
]),
|
|
1924
|
-
["posts.richContent"]
|
|
1969
|
+
["posts.richContent", "posts.rich_content"]
|
|
1925
1970
|
);
|
|
1926
1971
|
return {
|
|
1927
1972
|
items: transformedData?.posts,
|
|
@@ -1969,7 +2014,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1969
2014
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1970
2015
|
}
|
|
1971
2016
|
]),
|
|
1972
|
-
["posts.richContent"]
|
|
2017
|
+
["posts.richContent", "posts.rich_content"]
|
|
1973
2018
|
);
|
|
1974
2019
|
} catch (err) {
|
|
1975
2020
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -2023,12 +2068,14 @@ async function getPostMetrics2(postId) {
|
|
|
2023
2068
|
BannerPosition,
|
|
2024
2069
|
ButtonDataType,
|
|
2025
2070
|
CardDataBackgroundType,
|
|
2071
|
+
CardStylesType,
|
|
2026
2072
|
ColumnSize,
|
|
2027
2073
|
Crop,
|
|
2028
2074
|
DecorationType,
|
|
2029
2075
|
DesignTarget,
|
|
2030
2076
|
Direction,
|
|
2031
2077
|
DividerDataAlignment,
|
|
2078
|
+
EntranceEffectType,
|
|
2032
2079
|
Field,
|
|
2033
2080
|
FontType,
|
|
2034
2081
|
GIFType,
|
|
@@ -2042,6 +2089,7 @@ async function getPostMetrics2(postId) {
|
|
|
2042
2089
|
Layout,
|
|
2043
2090
|
LayoutDataBackgroundType,
|
|
2044
2091
|
LayoutType,
|
|
2092
|
+
LineCap,
|
|
2045
2093
|
LineStyle,
|
|
2046
2094
|
ListStyle,
|
|
2047
2095
|
MapType,
|