@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.
Files changed (45) hide show
  1. package/build/cjs/index.d.ts +11 -15
  2. package/build/cjs/index.js +11 -16
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +82 -79
  5. package/build/cjs/index.typings.js +6 -6
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +65 -50
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +82 -84
  10. package/build/cjs/schemas.js +147 -153
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +11 -15
  13. package/build/es/index.mjs +11 -16
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +82 -79
  16. package/build/es/index.typings.mjs +6 -6
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +65 -50
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +82 -84
  21. package/build/es/schemas.mjs +147 -153
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.d.ts +11 -15
  24. package/build/internal/cjs/index.js +11 -16
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +82 -79
  27. package/build/internal/cjs/index.typings.js +6 -6
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +65 -50
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +82 -84
  32. package/build/internal/cjs/schemas.js +147 -153
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.d.mts +11 -15
  35. package/build/internal/es/index.mjs +11 -16
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +82 -79
  38. package/build/internal/es/index.typings.mjs +6 -6
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +65 -50
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +82 -84
  43. package/build/internal/es/schemas.mjs +147 -153
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. 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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
666
+ * @maxLength 19
667
667
  */
668
668
  borderColor?: string | null;
669
669
  /**
670
670
  * Border color as a hexadecimal value (hover state).
671
- * @format COLOR_HEX
671
+ * @maxLength 19
672
672
  */
673
673
  borderColorHover?: string | null;
674
674
  /**
675
675
  * Text color as a hexadecimal value.
676
- * @format COLOR_HEX
676
+ * @maxLength 19
677
677
  */
678
678
  textColor?: string | null;
679
679
  /**
680
680
  * Text color as a hexadecimal value (hover state).
681
- * @format COLOR_HEX
681
+ * @maxLength 19
682
682
  */
683
683
  textColorHover?: string | null;
684
684
  /**
685
685
  * Deprecated: Use `background` instead.
686
- * @format COLOR_HEX
686
+ * @maxLength 19
687
687
  * @deprecated
688
688
  */
689
689
  backgroundColor?: string | null;
690
690
  /**
691
691
  * Deprecated: Use `backgroundHover` instead.
692
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1185
+ * @maxLength 19
1186
1186
  */
1187
1187
  backgroundColor?: string | null;
1188
1188
  /**
1189
1189
  * Title color as a hexadecimal value.
1190
- * @format COLOR_HEX
1190
+ * @maxLength 19
1191
1191
  */
1192
1192
  titleColor?: string | null;
1193
1193
  /**
1194
1194
  * Subtitle color as a hexadecimal value.
1195
- * @format COLOR_HEX
1195
+ * @maxLength 19
1196
1196
  */
1197
1197
  subtitleColor?: string | null;
1198
1198
  /**
1199
1199
  * Link color as a hexadecimal value.
1200
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1360
+ * @maxLength 19
1361
1361
  */
1362
1362
  startColor?: string | null;
1363
1363
  /**
1364
1364
  * The end color as a hexademical value.
1365
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1700
+ * @maxLength 19
1701
1701
  */
1702
1702
  borderColor?: string | null;
1703
1703
  /**
1704
1704
  * Text color as a hexadecimal value.
1705
- * @format COLOR_HEX
1705
+ * @maxLength 19
1706
1706
  */
1707
1707
  textColor?: string | null;
1708
1708
  /**
1709
1709
  * Background color as a hexadecimal value.
1710
- * @format COLOR_HEX
1710
+ * @maxLength 19
1711
1711
  */
1712
1712
  backgroundColor?: string | null;
1713
1713
  /**
1714
1714
  * Border color as a hexadecimal value (hover state).
1715
- * @format COLOR_HEX
1715
+ * @maxLength 19
1716
1716
  */
1717
1717
  borderColorHover?: string | null;
1718
1718
  /**
1719
1719
  * Text color as a hexadecimal value (hover state).
1720
- * @format COLOR_HEX
1720
+ * @maxLength 19
1721
1721
  */
1722
1722
  textColorHover?: string | null;
1723
1723
  /**
1724
1724
  * Background color as a hexadecimal value (hover state).
1725
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1755
+ * @maxLength 19
1756
1756
  */
1757
1757
  backgroundColor?: string | null;
1758
1758
  /**
1759
1759
  * Ribbon text color as a hexadecimal value.
1760
- * @format COLOR_HEX
1760
+ * @maxLength 19
1761
1761
  */
1762
1762
  textColor?: string | null;
1763
1763
  /**
1764
1764
  * Ribbon border color as a hexadecimal value.
1765
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1778
+ * @maxLength 19
1779
1779
  */
1780
1780
  backgroundColor?: string | null;
1781
1781
  /**
1782
1782
  * Card border color as a hexadecimal value.
1783
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1798
+ * @maxLength 19
1799
1799
  */
1800
1800
  titleColor?: string | null;
1801
1801
  /**
1802
1802
  * Text color as a hexadecimal value.
1803
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
1992
+ * @maxLength 19
1993
1993
  */
1994
1994
  left?: string | null;
1995
1995
  /**
1996
1996
  * Right border color as a hexadecimal value.
1997
- * @format COLOR_HEX
1997
+ * @maxLength 19
1998
1998
  */
1999
1999
  right?: string | null;
2000
2000
  /**
2001
2001
  * Top border color as a hexadecimal value.
2002
- * @format COLOR_HEX
2002
+ * @maxLength 19
2003
2003
  */
2004
2004
  top?: string | null;
2005
2005
  /**
2006
2006
  * Bottom border color as a hexadecimal value.
2007
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- * @format COLOR_HEX
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
- /** Border color (for SOLID_JOINED_BOXES variant). */
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
- /** Border color of the cell. */
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
- /** Accent color for non-background variants (e.g., line, bullet, label color). */
2471
+ /**
2472
+ * Accent color for non-background variants (e.g., line, bullet, label color).
2473
+ * @maxLength 19
2474
+ */
2466
2475
  accentColor?: string | null;
2467
- /** Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES). */
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
- /** Shape fill color as a hexadecimal value. */
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 `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
4262
- *
4263
- * You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.
4264
- *
4265
- * >**Note:** If there are no published posts in a specific month, 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.
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<GetPostResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.memberId` | `post.hashtags` | `post.commentingEnabled` | `post.minutesToRead` | `post.tagIds` | `post.relatedPostIds` | `post.pricingPlanIds` | `post.seoData.tags` | `post.seoData.tags.${number}.type` | `post.seoData.tags.${number}.children` | `post.seoData.tags.${number}.custom` | `post.seoData.tags.${number}.disabled` | `post.seoData.settings.preventAutoRedirect` | `post.seoData.settings.keywords` | `post.seoData.settings.keywords.${number}.term` | `post.seoData.settings.keywords.${number}.isMain` | `post.preview` | `post.moderationDetails.submittedBy` | `post.moderationDetails.status` | `post.media.embedMedia.thumbnail.url` | `post.media.embedMedia.thumbnail.width` | `post.media.embedMedia.thumbnail.height` | `post.media.embedMedia.video.url` | `post.media.embedMedia.video.width` | `post.media.embedMedia.video.height` | `post.media.displayed` | `post.media.custom` | `post.hasUnpublishedChanges`, 7>>;
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
- * Creates a query to retrieve a list of posts.
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
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
4463
- * + `limit(50)`
4464
- * + `descending('firstPublishedDate')`
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
- * The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult`.
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
@@ -1649,8 +1649,8 @@ async function getPost2(postId, options) {
1649
1649
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1650
1650
  }
1651
1651
  ]),
1652
- ["post.richContent", "post.rich_content"]
1653
- );
1652
+ ["post.richContent"]
1653
+ )?.post;
1654
1654
  } catch (err) {
1655
1655
  const transformedError = (0, import_transform_error.transformError)(
1656
1656
  err,
@@ -1697,7 +1697,7 @@ async function getPostBySlug2(slug, options) {
1697
1697
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1698
1698
  }
1699
1699
  ]),
1700
- ["post.richContent", "post.rich_content"]
1700
+ ["post.richContent"]
1701
1701
  );
1702
1702
  } catch (err) {
1703
1703
  const transformedError = (0, import_transform_error.transformError)(
@@ -1756,7 +1756,7 @@ async function listPosts2(options) {
1756
1756
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1757
1757
  }
1758
1758
  ]),
1759
- ["posts.richContent", "posts.rich_content"]
1759
+ ["posts.richContent"]
1760
1760
  );
1761
1761
  } catch (err) {
1762
1762
  const transformedError = (0, import_transform_error.transformError)(
@@ -1826,7 +1826,7 @@ function queryPosts2(options) {
1826
1826
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1827
1827
  }
1828
1828
  ]),
1829
- ["posts.richContent", "posts.rich_content"]
1829
+ ["posts.richContent"]
1830
1830
  );
1831
1831
  return {
1832
1832
  items: transformedData?.posts,
@@ -1874,7 +1874,7 @@ async function typedQueryPosts(query, options) {
1874
1874
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1875
1875
  }
1876
1876
  ]),
1877
- ["posts.richContent", "posts.rich_content"]
1877
+ ["posts.richContent"]
1878
1878
  );
1879
1879
  } catch (err) {
1880
1880
  const transformedError = (0, import_transform_error.transformError)(