@wix/auto_sdk_blog_posts 1.0.150 → 1.0.151
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 +11 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +82 -79
- package/build/cjs/index.typings.js +6 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +65 -50
- 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 +11 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +82 -79
- package/build/es/index.typings.mjs +6 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +65 -50
- 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 +11 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +82 -79
- package/build/internal/cjs/index.typings.js +6 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +65 -50
- 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 +11 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +82 -79
- package/build/internal/es/index.typings.mjs +6 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +65 -50
- 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 +2 -2
|
@@ -515,7 +515,7 @@ type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';
|
|
|
515
515
|
interface Stop {
|
|
516
516
|
/**
|
|
517
517
|
* Stop color as hex value.
|
|
518
|
-
* @
|
|
518
|
+
* @maxLength 19
|
|
519
519
|
*/
|
|
520
520
|
color?: string | null;
|
|
521
521
|
/** Stop position (0-1). */
|
|
@@ -556,7 +556,7 @@ interface Background {
|
|
|
556
556
|
type?: BackgroundTypeWithLiterals;
|
|
557
557
|
/**
|
|
558
558
|
* Background color as a hexadecimal value.
|
|
559
|
-
* @
|
|
559
|
+
* @maxLength 19
|
|
560
560
|
*/
|
|
561
561
|
color?: string | null;
|
|
562
562
|
/** Gradient configuration. */
|
|
@@ -663,33 +663,33 @@ interface Styles {
|
|
|
663
663
|
borderRadius?: number | null;
|
|
664
664
|
/**
|
|
665
665
|
* Border color as a hexadecimal value.
|
|
666
|
-
* @
|
|
666
|
+
* @maxLength 19
|
|
667
667
|
*/
|
|
668
668
|
borderColor?: string | null;
|
|
669
669
|
/**
|
|
670
670
|
* Border color as a hexadecimal value (hover state).
|
|
671
|
-
* @
|
|
671
|
+
* @maxLength 19
|
|
672
672
|
*/
|
|
673
673
|
borderColorHover?: string | null;
|
|
674
674
|
/**
|
|
675
675
|
* Text color as a hexadecimal value.
|
|
676
|
-
* @
|
|
676
|
+
* @maxLength 19
|
|
677
677
|
*/
|
|
678
678
|
textColor?: string | null;
|
|
679
679
|
/**
|
|
680
680
|
* Text color as a hexadecimal value (hover state).
|
|
681
|
-
* @
|
|
681
|
+
* @maxLength 19
|
|
682
682
|
*/
|
|
683
683
|
textColorHover?: string | null;
|
|
684
684
|
/**
|
|
685
685
|
* Deprecated: Use `background` instead.
|
|
686
|
-
* @
|
|
686
|
+
* @maxLength 19
|
|
687
687
|
* @deprecated
|
|
688
688
|
*/
|
|
689
689
|
backgroundColor?: string | null;
|
|
690
690
|
/**
|
|
691
691
|
* Deprecated: Use `backgroundHover` instead.
|
|
692
|
-
* @
|
|
692
|
+
* @maxLength 19
|
|
693
693
|
* @deprecated
|
|
694
694
|
*/
|
|
695
695
|
backgroundColorHover?: string | null;
|
|
@@ -1141,7 +1141,7 @@ interface StylesBorder {
|
|
|
1141
1141
|
width?: number | null;
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Border color as a hexadecimal value.
|
|
1144
|
-
* @
|
|
1144
|
+
* @maxLength 19
|
|
1145
1145
|
*/
|
|
1146
1146
|
color?: string | null;
|
|
1147
1147
|
/** Border radius in pixels. */
|
|
@@ -1182,22 +1182,22 @@ type StylesPositionWithLiterals = StylesPosition | 'START' | 'END' | 'TOP' | 'HI
|
|
|
1182
1182
|
interface LinkPreviewDataStyles {
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Background color as a hexadecimal value.
|
|
1185
|
-
* @
|
|
1185
|
+
* @maxLength 19
|
|
1186
1186
|
*/
|
|
1187
1187
|
backgroundColor?: string | null;
|
|
1188
1188
|
/**
|
|
1189
1189
|
* Title color as a hexadecimal value.
|
|
1190
|
-
* @
|
|
1190
|
+
* @maxLength 19
|
|
1191
1191
|
*/
|
|
1192
1192
|
titleColor?: string | null;
|
|
1193
1193
|
/**
|
|
1194
1194
|
* Subtitle color as a hexadecimal value.
|
|
1195
|
-
* @
|
|
1195
|
+
* @maxLength 19
|
|
1196
1196
|
*/
|
|
1197
1197
|
subtitleColor?: string | null;
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Link color as a hexadecimal value.
|
|
1200
|
-
* @
|
|
1200
|
+
* @maxLength 19
|
|
1201
1201
|
*/
|
|
1202
1202
|
linkColor?: string | null;
|
|
1203
1203
|
/** Border width in pixels. */
|
|
@@ -1206,7 +1206,7 @@ interface LinkPreviewDataStyles {
|
|
|
1206
1206
|
borderRadius?: number | null;
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Border color as a hexadecimal value.
|
|
1209
|
-
* @
|
|
1209
|
+
* @maxLength 19
|
|
1210
1210
|
*/
|
|
1211
1211
|
borderColor?: string | null;
|
|
1212
1212
|
/** Position of thumbnail. Defaults to `START`. */
|
|
@@ -1357,19 +1357,19 @@ interface BackgroundGradient {
|
|
|
1357
1357
|
angle?: number | null;
|
|
1358
1358
|
/**
|
|
1359
1359
|
* The start color as a hexademical value.
|
|
1360
|
-
* @
|
|
1360
|
+
* @maxLength 19
|
|
1361
1361
|
*/
|
|
1362
1362
|
startColor?: string | null;
|
|
1363
1363
|
/**
|
|
1364
1364
|
* The end color as a hexademical value.
|
|
1365
|
-
* @
|
|
1365
|
+
* @maxLength 19
|
|
1366
1366
|
*/
|
|
1367
1367
|
lastColor?: string | null;
|
|
1368
1368
|
}
|
|
1369
1369
|
interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
|
|
1370
1370
|
/**
|
|
1371
1371
|
* The background color as a hexademical value.
|
|
1372
|
-
* @
|
|
1372
|
+
* @maxLength 19
|
|
1373
1373
|
*/
|
|
1374
1374
|
color?: string | null;
|
|
1375
1375
|
/** An image to use for the background. */
|
|
@@ -1383,7 +1383,7 @@ interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
|
|
|
1383
1383
|
interface PollDesignBackgroundBackgroundOneOf {
|
|
1384
1384
|
/**
|
|
1385
1385
|
* The background color as a hexademical value.
|
|
1386
|
-
* @
|
|
1386
|
+
* @maxLength 19
|
|
1387
1387
|
*/
|
|
1388
1388
|
color?: string | null;
|
|
1389
1389
|
/** An image to use for the background. */
|
|
@@ -1697,32 +1697,32 @@ interface ButtonStyles {
|
|
|
1697
1697
|
borderRadius?: number | null;
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Border color as a hexadecimal value.
|
|
1700
|
-
* @
|
|
1700
|
+
* @maxLength 19
|
|
1701
1701
|
*/
|
|
1702
1702
|
borderColor?: string | null;
|
|
1703
1703
|
/**
|
|
1704
1704
|
* Text color as a hexadecimal value.
|
|
1705
|
-
* @
|
|
1705
|
+
* @maxLength 19
|
|
1706
1706
|
*/
|
|
1707
1707
|
textColor?: string | null;
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Background color as a hexadecimal value.
|
|
1710
|
-
* @
|
|
1710
|
+
* @maxLength 19
|
|
1711
1711
|
*/
|
|
1712
1712
|
backgroundColor?: string | null;
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Border color as a hexadecimal value (hover state).
|
|
1715
|
-
* @
|
|
1715
|
+
* @maxLength 19
|
|
1716
1716
|
*/
|
|
1717
1717
|
borderColorHover?: string | null;
|
|
1718
1718
|
/**
|
|
1719
1719
|
* Text color as a hexadecimal value (hover state).
|
|
1720
|
-
* @
|
|
1720
|
+
* @maxLength 19
|
|
1721
1721
|
*/
|
|
1722
1722
|
textColorHover?: string | null;
|
|
1723
1723
|
/**
|
|
1724
1724
|
* Background color as a hexadecimal value (hover state).
|
|
1725
|
-
* @
|
|
1725
|
+
* @maxLength 19
|
|
1726
1726
|
*/
|
|
1727
1727
|
backgroundColorHover?: string | null;
|
|
1728
1728
|
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
|
|
@@ -1739,7 +1739,7 @@ interface ImageStyles {
|
|
|
1739
1739
|
resizing?: ResizingWithLiterals;
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Image border color as a hexadecimal value.
|
|
1742
|
-
* @
|
|
1742
|
+
* @maxLength 19
|
|
1743
1743
|
*/
|
|
1744
1744
|
borderColor?: string | null;
|
|
1745
1745
|
/** Image border width in pixels. */
|
|
@@ -1752,17 +1752,17 @@ interface RibbonStyles {
|
|
|
1752
1752
|
ribbonText?: string | null;
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Ribbon background color as a hexadecimal value.
|
|
1755
|
-
* @
|
|
1755
|
+
* @maxLength 19
|
|
1756
1756
|
*/
|
|
1757
1757
|
backgroundColor?: string | null;
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Ribbon text color as a hexadecimal value.
|
|
1760
|
-
* @
|
|
1760
|
+
* @maxLength 19
|
|
1761
1761
|
*/
|
|
1762
1762
|
textColor?: string | null;
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Ribbon border color as a hexadecimal value.
|
|
1765
|
-
* @
|
|
1765
|
+
* @maxLength 19
|
|
1766
1766
|
*/
|
|
1767
1767
|
borderColor?: string | null;
|
|
1768
1768
|
/** Ribbon border width in pixels. */
|
|
@@ -1775,12 +1775,12 @@ interface RibbonStyles {
|
|
|
1775
1775
|
interface CardStyles {
|
|
1776
1776
|
/**
|
|
1777
1777
|
* Card background color as a hexadecimal value.
|
|
1778
|
-
* @
|
|
1778
|
+
* @maxLength 19
|
|
1779
1779
|
*/
|
|
1780
1780
|
backgroundColor?: string | null;
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Card border color as a hexadecimal value.
|
|
1783
|
-
* @
|
|
1783
|
+
* @maxLength 19
|
|
1784
1784
|
*/
|
|
1785
1785
|
borderColor?: string | null;
|
|
1786
1786
|
/** Card border width in pixels. */
|
|
@@ -1795,12 +1795,12 @@ interface CardStyles {
|
|
|
1795
1795
|
titlePriceLayout?: LayoutWithLiterals;
|
|
1796
1796
|
/**
|
|
1797
1797
|
* Title text color as a hexadecimal value.
|
|
1798
|
-
* @
|
|
1798
|
+
* @maxLength 19
|
|
1799
1799
|
*/
|
|
1800
1800
|
titleColor?: string | null;
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Text color as a hexadecimal value.
|
|
1803
|
-
* @
|
|
1803
|
+
* @maxLength 19
|
|
1804
1804
|
*/
|
|
1805
1805
|
textColor?: string | null;
|
|
1806
1806
|
}
|
|
@@ -1982,29 +1982,29 @@ interface CellStyle {
|
|
|
1982
1982
|
verticalAlignment?: VerticalAlignmentWithLiterals;
|
|
1983
1983
|
/**
|
|
1984
1984
|
* Cell background color as a hexadecimal value.
|
|
1985
|
-
* @
|
|
1985
|
+
* @maxLength 19
|
|
1986
1986
|
*/
|
|
1987
1987
|
backgroundColor?: string | null;
|
|
1988
1988
|
}
|
|
1989
1989
|
interface BorderColors {
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Left border color as a hexadecimal value.
|
|
1992
|
-
* @
|
|
1992
|
+
* @maxLength 19
|
|
1993
1993
|
*/
|
|
1994
1994
|
left?: string | null;
|
|
1995
1995
|
/**
|
|
1996
1996
|
* Right border color as a hexadecimal value.
|
|
1997
|
-
* @
|
|
1997
|
+
* @maxLength 19
|
|
1998
1998
|
*/
|
|
1999
1999
|
right?: string | null;
|
|
2000
2000
|
/**
|
|
2001
2001
|
* Top border color as a hexadecimal value.
|
|
2002
|
-
* @
|
|
2002
|
+
* @maxLength 19
|
|
2003
2003
|
*/
|
|
2004
2004
|
top?: string | null;
|
|
2005
2005
|
/**
|
|
2006
2006
|
* Bottom border color as a hexadecimal value.
|
|
2007
|
-
* @
|
|
2007
|
+
* @maxLength 19
|
|
2008
2008
|
*/
|
|
2009
2009
|
bottom?: string | null;
|
|
2010
2010
|
}
|
|
@@ -2079,7 +2079,7 @@ interface CaptionData {
|
|
|
2079
2079
|
interface LayoutData {
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Deprecated: Use `background` instead.
|
|
2082
|
-
* @
|
|
2082
|
+
* @maxLength 19
|
|
2083
2083
|
* @deprecated
|
|
2084
2084
|
*/
|
|
2085
2085
|
backgroundColor?: string | null;
|
|
@@ -2087,7 +2087,7 @@ interface LayoutData {
|
|
|
2087
2087
|
backgroundImage?: LayoutDataBackgroundImage;
|
|
2088
2088
|
/**
|
|
2089
2089
|
* Border color as a hexadecimal value.
|
|
2090
|
-
* @
|
|
2090
|
+
* @maxLength 19
|
|
2091
2091
|
*/
|
|
2092
2092
|
borderColor?: string | null;
|
|
2093
2093
|
/** Border width in pixels. */
|
|
@@ -2096,7 +2096,7 @@ interface LayoutData {
|
|
|
2096
2096
|
borderRadius?: number | null;
|
|
2097
2097
|
/**
|
|
2098
2098
|
* Deprecated: Use `backdrop` instead.
|
|
2099
|
-
* @
|
|
2099
|
+
* @maxLength 19
|
|
2100
2100
|
* @deprecated
|
|
2101
2101
|
*/
|
|
2102
2102
|
backdropColor?: string | null;
|
|
@@ -2234,7 +2234,7 @@ interface LayoutDataBackground {
|
|
|
2234
2234
|
type?: LayoutDataBackgroundTypeWithLiterals;
|
|
2235
2235
|
/**
|
|
2236
2236
|
* Background color as a hexadecimal value.
|
|
2237
|
-
* @
|
|
2237
|
+
* @maxLength 19
|
|
2238
2238
|
*/
|
|
2239
2239
|
color?: string | null;
|
|
2240
2240
|
/** Gradient configuration. */
|
|
@@ -2246,7 +2246,7 @@ interface Backdrop {
|
|
|
2246
2246
|
type?: BackdropTypeWithLiterals;
|
|
2247
2247
|
/**
|
|
2248
2248
|
* Backdrop color as a hexadecimal value.
|
|
2249
|
-
* @
|
|
2249
|
+
* @maxLength 19
|
|
2250
2250
|
*/
|
|
2251
2251
|
color?: string | null;
|
|
2252
2252
|
/** Gradient configuration. */
|
|
@@ -2267,7 +2267,7 @@ interface ShapeData {
|
|
|
2267
2267
|
interface ShapeDataStyles {
|
|
2268
2268
|
/**
|
|
2269
2269
|
* Shape fill color as a hexadecimal value.
|
|
2270
|
-
* @
|
|
2270
|
+
* @maxLength 19
|
|
2271
2271
|
*/
|
|
2272
2272
|
color?: string | null;
|
|
2273
2273
|
/** Map of original color keys to their new color values. */
|
|
@@ -2326,7 +2326,7 @@ interface CardDataBackground {
|
|
|
2326
2326
|
type?: CardDataBackgroundTypeWithLiterals;
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Background color as a hexadecimal value.
|
|
2329
|
-
* @
|
|
2329
|
+
* @maxLength 19
|
|
2330
2330
|
*/
|
|
2331
2331
|
color?: string | null;
|
|
2332
2332
|
/** Gradient configuration. */
|
|
@@ -2353,7 +2353,7 @@ interface TocData {
|
|
|
2353
2353
|
itemSpacing?: number | null;
|
|
2354
2354
|
/**
|
|
2355
2355
|
* Optional override for the text color.
|
|
2356
|
-
* @
|
|
2356
|
+
* @maxLength 19
|
|
2357
2357
|
*/
|
|
2358
2358
|
color?: string | null;
|
|
2359
2359
|
/** Indentation style. Default: NESTED. */
|
|
@@ -2395,7 +2395,10 @@ interface SmartBlockData {
|
|
|
2395
2395
|
orientation?: string | null;
|
|
2396
2396
|
/** Column size controlling cells per row. */
|
|
2397
2397
|
columnSize?: ColumnSizeWithLiterals;
|
|
2398
|
-
/**
|
|
2398
|
+
/**
|
|
2399
|
+
* Border color (for SOLID_JOINED_BOXES variant).
|
|
2400
|
+
* @maxLength 19
|
|
2401
|
+
*/
|
|
2399
2402
|
borderColor?: string | null;
|
|
2400
2403
|
/** Border width in pixels (for SOLID_JOINED_BOXES variant). */
|
|
2401
2404
|
borderWidth?: number | null;
|
|
@@ -2454,7 +2457,10 @@ interface SmartBlockCellData {
|
|
|
2454
2457
|
label?: string | null;
|
|
2455
2458
|
/** Shape file details. */
|
|
2456
2459
|
shape?: V1Media;
|
|
2457
|
-
/**
|
|
2460
|
+
/**
|
|
2461
|
+
* Border color of the cell.
|
|
2462
|
+
* @maxLength 19
|
|
2463
|
+
*/
|
|
2458
2464
|
borderColor?: string | null;
|
|
2459
2465
|
/** Border width in pixels. */
|
|
2460
2466
|
borderWidth?: number | null;
|
|
@@ -2462,11 +2468,20 @@ interface SmartBlockCellData {
|
|
|
2462
2468
|
borderRadius?: number | null;
|
|
2463
2469
|
/** The type of the parent smart block (must match parent). */
|
|
2464
2470
|
type?: SmartBlockDataTypeWithLiterals;
|
|
2465
|
-
/**
|
|
2471
|
+
/**
|
|
2472
|
+
* Accent color for non-background variants (e.g., line, bullet, label color).
|
|
2473
|
+
* @maxLength 19
|
|
2474
|
+
*/
|
|
2466
2475
|
accentColor?: string | null;
|
|
2467
|
-
/**
|
|
2476
|
+
/**
|
|
2477
|
+
* Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES).
|
|
2478
|
+
* @maxLength 19
|
|
2479
|
+
*/
|
|
2468
2480
|
backgroundColor?: string | null;
|
|
2469
|
-
/**
|
|
2481
|
+
/**
|
|
2482
|
+
* Shape fill color as a hexadecimal value.
|
|
2483
|
+
* @maxLength 19
|
|
2484
|
+
*/
|
|
2470
2485
|
shapeColor?: string | null;
|
|
2471
2486
|
}
|
|
2472
2487
|
interface Metadata {
|
|
@@ -4257,14 +4272,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4257
4272
|
/**
|
|
4258
4273
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4259
4274
|
*
|
|
4260
|
-
*
|
|
4261
|
-
* The
|
|
4262
|
-
*
|
|
4263
|
-
*
|
|
4264
|
-
*
|
|
4265
|
-
*
|
|
4275
|
+
* The time range is set using the `rangeStart` and `months` properties.
|
|
4276
|
+
* The time range always starts on the 1st day of the month set in `rangeStart` and
|
|
4277
|
+
* includes the number of `months` following `rangeStart`.
|
|
4278
|
+
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4279
|
+
* the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range always ends on the last day of the month.
|
|
4280
|
+
* > Note: If there are no published posts in a month within the time range, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
|
|
4266
4281
|
* @public
|
|
4267
|
-
* @param options - Options specifying time frame, sort, and filter.
|
|
4268
4282
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4269
4283
|
* @applicableIdentity APP
|
|
4270
4284
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4305,7 +4319,6 @@ interface QueryPostCountStatsOptions {
|
|
|
4305
4319
|
/**
|
|
4306
4320
|
* Retrieves the total amount of published posts of the blog.
|
|
4307
4321
|
* @public
|
|
4308
|
-
* @param options - Language Options.
|
|
4309
4322
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4310
4323
|
* @applicableIdentity APP
|
|
4311
4324
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4326,12 +4339,12 @@ interface GetTotalPostsOptions {
|
|
|
4326
4339
|
* @param postId - Post ID.
|
|
4327
4340
|
* @public
|
|
4328
4341
|
* @requiredField postId
|
|
4329
|
-
* @param options - Options specifying which fields to return.
|
|
4330
4342
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4331
4343
|
* @applicableIdentity APP
|
|
4344
|
+
* @returns Retrieved post info.
|
|
4332
4345
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4333
4346
|
*/
|
|
4334
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4347
|
+
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<Post, `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`, 6>>;
|
|
4335
4348
|
interface GetPostOptions {
|
|
4336
4349
|
/**
|
|
4337
4350
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4351,7 +4364,6 @@ interface GetPostOptions {
|
|
|
4351
4364
|
* @param slug - Slug of the post to retrieve.
|
|
4352
4365
|
* @public
|
|
4353
4366
|
* @requiredField slug
|
|
4354
|
-
* @param options - Options specifying which fields to return.
|
|
4355
4367
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4356
4368
|
* @applicableIdentity APP
|
|
4357
4369
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4379,7 +4391,6 @@ interface GetPostBySlugOptions {
|
|
|
4379
4391
|
* - `paging.limit` is `50`.
|
|
4380
4392
|
* - `paging.offset` is `0`.
|
|
4381
4393
|
* @public
|
|
4382
|
-
* @param options - Sort, filter, and paging options.
|
|
4383
4394
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4384
4395
|
* @applicableIdentity APP
|
|
4385
4396
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4450,26 +4461,18 @@ interface ListPostsOptions {
|
|
|
4450
4461
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4451
4462
|
}
|
|
4452
4463
|
/**
|
|
4453
|
-
*
|
|
4454
|
-
*
|
|
4455
|
-
*
|
|
4456
|
-
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
4457
|
-
*
|
|
4458
|
-
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
4459
|
-
*
|
|
4460
|
-
* You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
|
|
4464
|
+
* Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
|
|
4461
4465
|
*
|
|
4462
|
-
*
|
|
4463
|
-
*
|
|
4464
|
-
*
|
|
4465
|
-
*
|
|
4466
|
-
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
4467
|
-
*
|
|
4468
|
-
* To learn how to query posts, refer to the table below.
|
|
4466
|
+
* Query Posts runs with these defaults, which you can override:
|
|
4467
|
+
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4468
|
+
* - `paging.limit` is `50`.
|
|
4469
|
+
* - `paging.offset` is `0`.
|
|
4469
4470
|
*
|
|
4470
|
-
*
|
|
4471
|
+
* To learn about working with _Query_ endpoints, see
|
|
4472
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
4473
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
|
4474
|
+
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
4471
4475
|
* @public
|
|
4472
|
-
* @param options - Options specifying which fields to return.
|
|
4473
4476
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4474
4477
|
* @applicableIdentity APP
|
|
4475
4478
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -1553,8 +1553,8 @@ async function getPost2(postId, options) {
|
|
|
1553
1553
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1554
1554
|
}
|
|
1555
1555
|
]),
|
|
1556
|
-
["post.richContent"
|
|
1557
|
-
);
|
|
1556
|
+
["post.richContent"]
|
|
1557
|
+
)?.post;
|
|
1558
1558
|
} catch (err) {
|
|
1559
1559
|
const transformedError = sdkTransformError(
|
|
1560
1560
|
err,
|
|
@@ -1601,7 +1601,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1601
1601
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1602
1602
|
}
|
|
1603
1603
|
]),
|
|
1604
|
-
["post.richContent"
|
|
1604
|
+
["post.richContent"]
|
|
1605
1605
|
);
|
|
1606
1606
|
} catch (err) {
|
|
1607
1607
|
const transformedError = sdkTransformError(
|
|
@@ -1660,7 +1660,7 @@ async function listPosts2(options) {
|
|
|
1660
1660
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1661
1661
|
}
|
|
1662
1662
|
]),
|
|
1663
|
-
["posts.richContent"
|
|
1663
|
+
["posts.richContent"]
|
|
1664
1664
|
);
|
|
1665
1665
|
} catch (err) {
|
|
1666
1666
|
const transformedError = sdkTransformError(
|
|
@@ -1730,7 +1730,7 @@ function queryPosts2(options) {
|
|
|
1730
1730
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1731
1731
|
}
|
|
1732
1732
|
]),
|
|
1733
|
-
["posts.richContent"
|
|
1733
|
+
["posts.richContent"]
|
|
1734
1734
|
);
|
|
1735
1735
|
return {
|
|
1736
1736
|
items: transformedData?.posts,
|
|
@@ -1778,7 +1778,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1778
1778
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1779
1779
|
}
|
|
1780
1780
|
]),
|
|
1781
|
-
["posts.richContent"
|
|
1781
|
+
["posts.richContent"]
|
|
1782
1782
|
);
|
|
1783
1783
|
} catch (err) {
|
|
1784
1784
|
const transformedError = sdkTransformError(
|