@wix/auto_sdk_blog_posts 1.0.145 → 1.0.147
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 +11 -15
- package/build/cjs/index.js +69 -23
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +116 -33
- package/build/cjs/index.typings.js +52 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +99 -3
- package/build/cjs/meta.js +46 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +82 -84
- package/build/cjs/schemas.js +147 -153
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -15
- package/build/es/index.mjs +67 -23
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +116 -33
- package/build/es/index.typings.mjs +50 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +99 -3
- package/build/es/meta.mjs +44 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +82 -84
- package/build/es/schemas.mjs +147 -153
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -15
- package/build/internal/cjs/index.js +69 -23
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +116 -33
- package/build/internal/cjs/index.typings.js +52 -10
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +99 -3
- package/build/internal/cjs/meta.js +46 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +82 -84
- package/build/internal/cjs/schemas.js +147 -153
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -15
- package/build/internal/es/index.mjs +67 -23
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +116 -33
- package/build/internal/es/index.typings.mjs +50 -10
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +99 -3
- package/build/internal/es/meta.mjs +44 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +82 -84
- package/build/internal/es/schemas.mjs +147 -153
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/es/index.mjs
CHANGED
|
@@ -461,7 +461,10 @@ function getPost(payload) {
|
|
|
461
461
|
path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
462
462
|
},
|
|
463
463
|
{ path: "post.richContent.nodes.tocData.fontSize" },
|
|
464
|
-
{ path: "post.richContent.nodes.tocData.itemSpacing" }
|
|
464
|
+
{ path: "post.richContent.nodes.tocData.itemSpacing" },
|
|
465
|
+
{
|
|
466
|
+
path: "post.richContent.nodes.smartBlockCellData.shape.duration"
|
|
467
|
+
}
|
|
465
468
|
]
|
|
466
469
|
}
|
|
467
470
|
])
|
|
@@ -609,7 +612,10 @@ function getPostBySlug(payload) {
|
|
|
609
612
|
path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
610
613
|
},
|
|
611
614
|
{ path: "post.richContent.nodes.tocData.fontSize" },
|
|
612
|
-
{ path: "post.richContent.nodes.tocData.itemSpacing" }
|
|
615
|
+
{ path: "post.richContent.nodes.tocData.itemSpacing" },
|
|
616
|
+
{
|
|
617
|
+
path: "post.richContent.nodes.smartBlockCellData.shape.duration"
|
|
618
|
+
}
|
|
613
619
|
]
|
|
614
620
|
}
|
|
615
621
|
])
|
|
@@ -761,7 +767,10 @@ function listPosts(payload) {
|
|
|
761
767
|
path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
762
768
|
},
|
|
763
769
|
{ path: "posts.richContent.nodes.tocData.fontSize" },
|
|
764
|
-
{ path: "posts.richContent.nodes.tocData.itemSpacing" }
|
|
770
|
+
{ path: "posts.richContent.nodes.tocData.itemSpacing" },
|
|
771
|
+
{
|
|
772
|
+
path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
|
|
773
|
+
}
|
|
765
774
|
]
|
|
766
775
|
}
|
|
767
776
|
])
|
|
@@ -913,7 +922,10 @@ function queryPosts(payload) {
|
|
|
913
922
|
path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
914
923
|
},
|
|
915
924
|
{ path: "posts.richContent.nodes.tocData.fontSize" },
|
|
916
|
-
{ path: "posts.richContent.nodes.tocData.itemSpacing" }
|
|
925
|
+
{ path: "posts.richContent.nodes.tocData.itemSpacing" },
|
|
926
|
+
{
|
|
927
|
+
path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
|
|
928
|
+
}
|
|
917
929
|
]
|
|
918
930
|
}
|
|
919
931
|
])
|
|
@@ -993,6 +1005,8 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
993
1005
|
NodeType2["SHAPE"] = "SHAPE";
|
|
994
1006
|
NodeType2["CARD"] = "CARD";
|
|
995
1007
|
NodeType2["TOC"] = "TOC";
|
|
1008
|
+
NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
|
|
1009
|
+
NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
|
|
996
1010
|
return NodeType2;
|
|
997
1011
|
})(NodeType || {});
|
|
998
1012
|
var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
|
|
@@ -1320,6 +1334,30 @@ var Indentation = /* @__PURE__ */ ((Indentation2) => {
|
|
|
1320
1334
|
Indentation2["FLAT"] = "FLAT";
|
|
1321
1335
|
return Indentation2;
|
|
1322
1336
|
})(Indentation || {});
|
|
1337
|
+
var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
|
|
1338
|
+
SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
|
|
1339
|
+
SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
|
|
1340
|
+
SmartBlockDataType2["STATS"] = "STATS";
|
|
1341
|
+
SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
|
|
1342
|
+
SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
|
|
1343
|
+
SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
|
|
1344
|
+
SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
|
|
1345
|
+
SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
|
|
1346
|
+
SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
|
|
1347
|
+
SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
|
|
1348
|
+
SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
|
|
1349
|
+
SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
|
|
1350
|
+
SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
|
|
1351
|
+
SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
|
|
1352
|
+
return SmartBlockDataType2;
|
|
1353
|
+
})(SmartBlockDataType || {});
|
|
1354
|
+
var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
|
|
1355
|
+
ColumnSize2["SMALL"] = "SMALL";
|
|
1356
|
+
ColumnSize2["MEDIUM"] = "MEDIUM";
|
|
1357
|
+
ColumnSize2["LARGE"] = "LARGE";
|
|
1358
|
+
ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
|
|
1359
|
+
return ColumnSize2;
|
|
1360
|
+
})(ColumnSize || {});
|
|
1323
1361
|
var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
1324
1362
|
ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1325
1363
|
ModerationStatusStatus2["APPROVED"] = "APPROVED";
|
|
@@ -1526,8 +1564,8 @@ async function getPost2(postId, options) {
|
|
|
1526
1564
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1527
1565
|
}
|
|
1528
1566
|
]),
|
|
1529
|
-
["post.richContent"
|
|
1530
|
-
);
|
|
1567
|
+
["post.richContent"]
|
|
1568
|
+
)?.post;
|
|
1531
1569
|
} catch (err) {
|
|
1532
1570
|
const transformedError = sdkTransformError(
|
|
1533
1571
|
err,
|
|
@@ -1574,7 +1612,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1574
1612
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1575
1613
|
}
|
|
1576
1614
|
]),
|
|
1577
|
-
["post.richContent"
|
|
1615
|
+
["post.richContent"]
|
|
1578
1616
|
);
|
|
1579
1617
|
} catch (err) {
|
|
1580
1618
|
const transformedError = sdkTransformError(
|
|
@@ -1633,7 +1671,7 @@ async function listPosts2(options) {
|
|
|
1633
1671
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1634
1672
|
}
|
|
1635
1673
|
]),
|
|
1636
|
-
["posts.richContent"
|
|
1674
|
+
["posts.richContent"]
|
|
1637
1675
|
);
|
|
1638
1676
|
} catch (err) {
|
|
1639
1677
|
const transformedError = sdkTransformError(
|
|
@@ -1703,7 +1741,7 @@ function queryPosts2(options) {
|
|
|
1703
1741
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1704
1742
|
}
|
|
1705
1743
|
]),
|
|
1706
|
-
["posts.richContent"
|
|
1744
|
+
["posts.richContent"]
|
|
1707
1745
|
);
|
|
1708
1746
|
return {
|
|
1709
1747
|
items: transformedData?.posts,
|
|
@@ -1751,7 +1789,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1751
1789
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1752
1790
|
}
|
|
1753
1791
|
]),
|
|
1754
|
-
["posts.richContent"
|
|
1792
|
+
["posts.richContent"]
|
|
1755
1793
|
);
|
|
1756
1794
|
} catch (err) {
|
|
1757
1795
|
const transformedError = sdkTransformError(
|
|
@@ -1865,8 +1903,7 @@ var onPostLiked = EventDefinition(
|
|
|
1865
1903
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1866
1904
|
paths: [{ path: "metadata.eventTime" }]
|
|
1867
1905
|
}
|
|
1868
|
-
])
|
|
1869
|
-
["entity.rich_content"]
|
|
1906
|
+
])
|
|
1870
1907
|
)
|
|
1871
1908
|
)();
|
|
1872
1909
|
var onPostUnliked = EventDefinition(
|
|
@@ -1878,8 +1915,7 @@ var onPostUnliked = EventDefinition(
|
|
|
1878
1915
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1879
1916
|
paths: [{ path: "metadata.eventTime" }]
|
|
1880
1917
|
}
|
|
1881
|
-
])
|
|
1882
|
-
["entity.rich_content"]
|
|
1918
|
+
])
|
|
1883
1919
|
)
|
|
1884
1920
|
)();
|
|
1885
1921
|
var onPostCreated = EventDefinition(
|
|
@@ -1999,15 +2035,17 @@ var onPostCreated = EventDefinition(
|
|
|
1999
2035
|
path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
2000
2036
|
},
|
|
2001
2037
|
{ path: "entity.richContent.nodes.tocData.fontSize" },
|
|
2002
|
-
{ path: "entity.richContent.nodes.tocData.itemSpacing" }
|
|
2038
|
+
{ path: "entity.richContent.nodes.tocData.itemSpacing" },
|
|
2039
|
+
{
|
|
2040
|
+
path: "entity.richContent.nodes.smartBlockCellData.shape.duration"
|
|
2041
|
+
}
|
|
2003
2042
|
]
|
|
2004
2043
|
},
|
|
2005
2044
|
{
|
|
2006
2045
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
2007
2046
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2008
2047
|
}
|
|
2009
|
-
])
|
|
2010
|
-
["entity.rich_content"]
|
|
2048
|
+
])
|
|
2011
2049
|
)
|
|
2012
2050
|
)();
|
|
2013
2051
|
var onPostDeleted = EventDefinition(
|
|
@@ -2127,15 +2165,17 @@ var onPostDeleted = EventDefinition(
|
|
|
2127
2165
|
path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
2128
2166
|
},
|
|
2129
2167
|
{ path: "entity.richContent.nodes.tocData.fontSize" },
|
|
2130
|
-
{ path: "entity.richContent.nodes.tocData.itemSpacing" }
|
|
2168
|
+
{ path: "entity.richContent.nodes.tocData.itemSpacing" },
|
|
2169
|
+
{
|
|
2170
|
+
path: "entity.richContent.nodes.smartBlockCellData.shape.duration"
|
|
2171
|
+
}
|
|
2131
2172
|
]
|
|
2132
2173
|
},
|
|
2133
2174
|
{
|
|
2134
2175
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
2135
2176
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2136
2177
|
}
|
|
2137
|
-
])
|
|
2138
|
-
["entity.rich_content"]
|
|
2178
|
+
])
|
|
2139
2179
|
)
|
|
2140
2180
|
)();
|
|
2141
2181
|
var onPostUpdated = EventDefinition(
|
|
@@ -2255,15 +2295,17 @@ var onPostUpdated = EventDefinition(
|
|
|
2255
2295
|
path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
|
|
2256
2296
|
},
|
|
2257
2297
|
{ path: "entity.richContent.nodes.tocData.fontSize" },
|
|
2258
|
-
{ path: "entity.richContent.nodes.tocData.itemSpacing" }
|
|
2298
|
+
{ path: "entity.richContent.nodes.tocData.itemSpacing" },
|
|
2299
|
+
{
|
|
2300
|
+
path: "entity.richContent.nodes.smartBlockCellData.shape.duration"
|
|
2301
|
+
}
|
|
2259
2302
|
]
|
|
2260
2303
|
},
|
|
2261
2304
|
{
|
|
2262
2305
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
2263
2306
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
|
2264
2307
|
}
|
|
2265
|
-
])
|
|
2266
|
-
["entity.rich_content"]
|
|
2308
|
+
])
|
|
2267
2309
|
)
|
|
2268
2310
|
)();
|
|
2269
2311
|
|
|
@@ -2303,6 +2345,7 @@ export {
|
|
|
2303
2345
|
BannerOrigin,
|
|
2304
2346
|
ButtonDataType,
|
|
2305
2347
|
CardDataBackgroundType,
|
|
2348
|
+
ColumnSize,
|
|
2306
2349
|
Crop,
|
|
2307
2350
|
DecorationType,
|
|
2308
2351
|
DesignTarget,
|
|
@@ -2342,6 +2385,7 @@ export {
|
|
|
2342
2385
|
Resizing,
|
|
2343
2386
|
ResponsivenessBehaviour,
|
|
2344
2387
|
Scaling,
|
|
2388
|
+
SmartBlockDataType,
|
|
2345
2389
|
SortOrder,
|
|
2346
2390
|
Source,
|
|
2347
2391
|
Status,
|