@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
@@ -508,7 +508,7 @@ type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';
508
508
  interface Stop {
509
509
  /**
510
510
  * Stop color as hex value.
511
- * @format COLOR_HEX
511
+ * @maxLength 19
512
512
  */
513
513
  color?: string | null;
514
514
  /** Stop position (0-1). */
@@ -549,7 +549,7 @@ interface Background {
549
549
  type?: BackgroundTypeWithLiterals;
550
550
  /**
551
551
  * Background color as a hexadecimal value.
552
- * @format COLOR_HEX
552
+ * @maxLength 19
553
553
  */
554
554
  color?: string | null;
555
555
  /** Gradient configuration. */
@@ -656,33 +656,33 @@ interface Styles {
656
656
  borderRadius?: number | null;
657
657
  /**
658
658
  * Border color as a hexadecimal value.
659
- * @format COLOR_HEX
659
+ * @maxLength 19
660
660
  */
661
661
  borderColor?: string | null;
662
662
  /**
663
663
  * Border color as a hexadecimal value (hover state).
664
- * @format COLOR_HEX
664
+ * @maxLength 19
665
665
  */
666
666
  borderColorHover?: string | null;
667
667
  /**
668
668
  * Text color as a hexadecimal value.
669
- * @format COLOR_HEX
669
+ * @maxLength 19
670
670
  */
671
671
  textColor?: string | null;
672
672
  /**
673
673
  * Text color as a hexadecimal value (hover state).
674
- * @format COLOR_HEX
674
+ * @maxLength 19
675
675
  */
676
676
  textColorHover?: string | null;
677
677
  /**
678
678
  * Deprecated: Use `background` instead.
679
- * @format COLOR_HEX
679
+ * @maxLength 19
680
680
  * @deprecated
681
681
  */
682
682
  backgroundColor?: string | null;
683
683
  /**
684
684
  * Deprecated: Use `backgroundHover` instead.
685
- * @format COLOR_HEX
685
+ * @maxLength 19
686
686
  * @deprecated
687
687
  */
688
688
  backgroundColorHover?: string | null;
@@ -1134,7 +1134,7 @@ interface StylesBorder {
1134
1134
  width?: number | null;
1135
1135
  /**
1136
1136
  * Border color as a hexadecimal value.
1137
- * @format COLOR_HEX
1137
+ * @maxLength 19
1138
1138
  */
1139
1139
  color?: string | null;
1140
1140
  /** Border radius in pixels. */
@@ -1175,22 +1175,22 @@ type StylesPositionWithLiterals = StylesPosition | 'START' | 'END' | 'TOP' | 'HI
1175
1175
  interface LinkPreviewDataStyles {
1176
1176
  /**
1177
1177
  * Background color as a hexadecimal value.
1178
- * @format COLOR_HEX
1178
+ * @maxLength 19
1179
1179
  */
1180
1180
  backgroundColor?: string | null;
1181
1181
  /**
1182
1182
  * Title color as a hexadecimal value.
1183
- * @format COLOR_HEX
1183
+ * @maxLength 19
1184
1184
  */
1185
1185
  titleColor?: string | null;
1186
1186
  /**
1187
1187
  * Subtitle color as a hexadecimal value.
1188
- * @format COLOR_HEX
1188
+ * @maxLength 19
1189
1189
  */
1190
1190
  subtitleColor?: string | null;
1191
1191
  /**
1192
1192
  * Link color as a hexadecimal value.
1193
- * @format COLOR_HEX
1193
+ * @maxLength 19
1194
1194
  */
1195
1195
  linkColor?: string | null;
1196
1196
  /** Border width in pixels. */
@@ -1199,7 +1199,7 @@ interface LinkPreviewDataStyles {
1199
1199
  borderRadius?: number | null;
1200
1200
  /**
1201
1201
  * Border color as a hexadecimal value.
1202
- * @format COLOR_HEX
1202
+ * @maxLength 19
1203
1203
  */
1204
1204
  borderColor?: string | null;
1205
1205
  /** Position of thumbnail. Defaults to `START`. */
@@ -1350,19 +1350,19 @@ interface BackgroundGradient {
1350
1350
  angle?: number | null;
1351
1351
  /**
1352
1352
  * The start color as a hexademical value.
1353
- * @format COLOR_HEX
1353
+ * @maxLength 19
1354
1354
  */
1355
1355
  startColor?: string | null;
1356
1356
  /**
1357
1357
  * The end color as a hexademical value.
1358
- * @format COLOR_HEX
1358
+ * @maxLength 19
1359
1359
  */
1360
1360
  lastColor?: string | null;
1361
1361
  }
1362
1362
  interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
1363
1363
  /**
1364
1364
  * The background color as a hexademical value.
1365
- * @format COLOR_HEX
1365
+ * @maxLength 19
1366
1366
  */
1367
1367
  color?: string | null;
1368
1368
  /** An image to use for the background. */
@@ -1376,7 +1376,7 @@ interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
1376
1376
  interface PollDesignBackgroundBackgroundOneOf {
1377
1377
  /**
1378
1378
  * The background color as a hexademical value.
1379
- * @format COLOR_HEX
1379
+ * @maxLength 19
1380
1380
  */
1381
1381
  color?: string | null;
1382
1382
  /** An image to use for the background. */
@@ -1690,32 +1690,32 @@ interface ButtonStyles {
1690
1690
  borderRadius?: number | null;
1691
1691
  /**
1692
1692
  * Border color as a hexadecimal value.
1693
- * @format COLOR_HEX
1693
+ * @maxLength 19
1694
1694
  */
1695
1695
  borderColor?: string | null;
1696
1696
  /**
1697
1697
  * Text color as a hexadecimal value.
1698
- * @format COLOR_HEX
1698
+ * @maxLength 19
1699
1699
  */
1700
1700
  textColor?: string | null;
1701
1701
  /**
1702
1702
  * Background color as a hexadecimal value.
1703
- * @format COLOR_HEX
1703
+ * @maxLength 19
1704
1704
  */
1705
1705
  backgroundColor?: string | null;
1706
1706
  /**
1707
1707
  * Border color as a hexadecimal value (hover state).
1708
- * @format COLOR_HEX
1708
+ * @maxLength 19
1709
1709
  */
1710
1710
  borderColorHover?: string | null;
1711
1711
  /**
1712
1712
  * Text color as a hexadecimal value (hover state).
1713
- * @format COLOR_HEX
1713
+ * @maxLength 19
1714
1714
  */
1715
1715
  textColorHover?: string | null;
1716
1716
  /**
1717
1717
  * Background color as a hexadecimal value (hover state).
1718
- * @format COLOR_HEX
1718
+ * @maxLength 19
1719
1719
  */
1720
1720
  backgroundColorHover?: string | null;
1721
1721
  /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
@@ -1732,7 +1732,7 @@ interface ImageStyles {
1732
1732
  resizing?: ResizingWithLiterals;
1733
1733
  /**
1734
1734
  * Image border color as a hexadecimal value.
1735
- * @format COLOR_HEX
1735
+ * @maxLength 19
1736
1736
  */
1737
1737
  borderColor?: string | null;
1738
1738
  /** Image border width in pixels. */
@@ -1745,17 +1745,17 @@ interface RibbonStyles {
1745
1745
  ribbonText?: string | null;
1746
1746
  /**
1747
1747
  * Ribbon background color as a hexadecimal value.
1748
- * @format COLOR_HEX
1748
+ * @maxLength 19
1749
1749
  */
1750
1750
  backgroundColor?: string | null;
1751
1751
  /**
1752
1752
  * Ribbon text color as a hexadecimal value.
1753
- * @format COLOR_HEX
1753
+ * @maxLength 19
1754
1754
  */
1755
1755
  textColor?: string | null;
1756
1756
  /**
1757
1757
  * Ribbon border color as a hexadecimal value.
1758
- * @format COLOR_HEX
1758
+ * @maxLength 19
1759
1759
  */
1760
1760
  borderColor?: string | null;
1761
1761
  /** Ribbon border width in pixels. */
@@ -1768,12 +1768,12 @@ interface RibbonStyles {
1768
1768
  interface CardStyles {
1769
1769
  /**
1770
1770
  * Card background color as a hexadecimal value.
1771
- * @format COLOR_HEX
1771
+ * @maxLength 19
1772
1772
  */
1773
1773
  backgroundColor?: string | null;
1774
1774
  /**
1775
1775
  * Card border color as a hexadecimal value.
1776
- * @format COLOR_HEX
1776
+ * @maxLength 19
1777
1777
  */
1778
1778
  borderColor?: string | null;
1779
1779
  /** Card border width in pixels. */
@@ -1788,12 +1788,12 @@ interface CardStyles {
1788
1788
  titlePriceLayout?: LayoutWithLiterals;
1789
1789
  /**
1790
1790
  * Title text color as a hexadecimal value.
1791
- * @format COLOR_HEX
1791
+ * @maxLength 19
1792
1792
  */
1793
1793
  titleColor?: string | null;
1794
1794
  /**
1795
1795
  * Text color as a hexadecimal value.
1796
- * @format COLOR_HEX
1796
+ * @maxLength 19
1797
1797
  */
1798
1798
  textColor?: string | null;
1799
1799
  }
@@ -1975,29 +1975,29 @@ interface CellStyle {
1975
1975
  verticalAlignment?: VerticalAlignmentWithLiterals;
1976
1976
  /**
1977
1977
  * Cell background color as a hexadecimal value.
1978
- * @format COLOR_HEX
1978
+ * @maxLength 19
1979
1979
  */
1980
1980
  backgroundColor?: string | null;
1981
1981
  }
1982
1982
  interface BorderColors {
1983
1983
  /**
1984
1984
  * Left border color as a hexadecimal value.
1985
- * @format COLOR_HEX
1985
+ * @maxLength 19
1986
1986
  */
1987
1987
  left?: string | null;
1988
1988
  /**
1989
1989
  * Right border color as a hexadecimal value.
1990
- * @format COLOR_HEX
1990
+ * @maxLength 19
1991
1991
  */
1992
1992
  right?: string | null;
1993
1993
  /**
1994
1994
  * Top border color as a hexadecimal value.
1995
- * @format COLOR_HEX
1995
+ * @maxLength 19
1996
1996
  */
1997
1997
  top?: string | null;
1998
1998
  /**
1999
1999
  * Bottom border color as a hexadecimal value.
2000
- * @format COLOR_HEX
2000
+ * @maxLength 19
2001
2001
  */
2002
2002
  bottom?: string | null;
2003
2003
  }
@@ -2072,7 +2072,7 @@ interface CaptionData {
2072
2072
  interface LayoutData {
2073
2073
  /**
2074
2074
  * Deprecated: Use `background` instead.
2075
- * @format COLOR_HEX
2075
+ * @maxLength 19
2076
2076
  * @deprecated
2077
2077
  */
2078
2078
  backgroundColor?: string | null;
@@ -2080,7 +2080,7 @@ interface LayoutData {
2080
2080
  backgroundImage?: LayoutDataBackgroundImage;
2081
2081
  /**
2082
2082
  * Border color as a hexadecimal value.
2083
- * @format COLOR_HEX
2083
+ * @maxLength 19
2084
2084
  */
2085
2085
  borderColor?: string | null;
2086
2086
  /** Border width in pixels. */
@@ -2089,7 +2089,7 @@ interface LayoutData {
2089
2089
  borderRadius?: number | null;
2090
2090
  /**
2091
2091
  * Deprecated: Use `backdrop` instead.
2092
- * @format COLOR_HEX
2092
+ * @maxLength 19
2093
2093
  * @deprecated
2094
2094
  */
2095
2095
  backdropColor?: string | null;
@@ -2227,7 +2227,7 @@ interface LayoutDataBackground {
2227
2227
  type?: LayoutDataBackgroundTypeWithLiterals;
2228
2228
  /**
2229
2229
  * Background color as a hexadecimal value.
2230
- * @format COLOR_HEX
2230
+ * @maxLength 19
2231
2231
  */
2232
2232
  color?: string | null;
2233
2233
  /** Gradient configuration. */
@@ -2239,7 +2239,7 @@ interface Backdrop {
2239
2239
  type?: BackdropTypeWithLiterals;
2240
2240
  /**
2241
2241
  * Backdrop color as a hexadecimal value.
2242
- * @format COLOR_HEX
2242
+ * @maxLength 19
2243
2243
  */
2244
2244
  color?: string | null;
2245
2245
  /** Gradient configuration. */
@@ -2260,7 +2260,7 @@ interface ShapeData {
2260
2260
  interface ShapeDataStyles {
2261
2261
  /**
2262
2262
  * Shape fill color as a hexadecimal value.
2263
- * @format COLOR_HEX
2263
+ * @maxLength 19
2264
2264
  */
2265
2265
  color?: string | null;
2266
2266
  /** Map of original color keys to their new color values. */
@@ -2319,7 +2319,7 @@ interface CardDataBackground {
2319
2319
  type?: CardDataBackgroundTypeWithLiterals;
2320
2320
  /**
2321
2321
  * Background color as a hexadecimal value.
2322
- * @format COLOR_HEX
2322
+ * @maxLength 19
2323
2323
  */
2324
2324
  color?: string | null;
2325
2325
  /** Gradient configuration. */
@@ -2346,7 +2346,7 @@ interface TocData {
2346
2346
  itemSpacing?: number | null;
2347
2347
  /**
2348
2348
  * Optional override for the text color.
2349
- * @format COLOR_HEX
2349
+ * @maxLength 19
2350
2350
  */
2351
2351
  color?: string | null;
2352
2352
  /** Indentation style. Default: NESTED. */
@@ -2388,7 +2388,10 @@ interface SmartBlockData {
2388
2388
  orientation?: string | null;
2389
2389
  /** Column size controlling cells per row. */
2390
2390
  columnSize?: ColumnSizeWithLiterals;
2391
- /** Border color (for SOLID_JOINED_BOXES variant). */
2391
+ /**
2392
+ * Border color (for SOLID_JOINED_BOXES variant).
2393
+ * @maxLength 19
2394
+ */
2392
2395
  borderColor?: string | null;
2393
2396
  /** Border width in pixels (for SOLID_JOINED_BOXES variant). */
2394
2397
  borderWidth?: number | null;
@@ -2447,7 +2450,10 @@ interface SmartBlockCellData {
2447
2450
  label?: string | null;
2448
2451
  /** Shape file details. */
2449
2452
  shape?: V1Media;
2450
- /** Border color of the cell. */
2453
+ /**
2454
+ * Border color of the cell.
2455
+ * @maxLength 19
2456
+ */
2451
2457
  borderColor?: string | null;
2452
2458
  /** Border width in pixels. */
2453
2459
  borderWidth?: number | null;
@@ -2455,11 +2461,20 @@ interface SmartBlockCellData {
2455
2461
  borderRadius?: number | null;
2456
2462
  /** The type of the parent smart block (must match parent). */
2457
2463
  type?: SmartBlockDataTypeWithLiterals;
2458
- /** Accent color for non-background variants (e.g., line, bullet, label color). */
2464
+ /**
2465
+ * Accent color for non-background variants (e.g., line, bullet, label color).
2466
+ * @maxLength 19
2467
+ */
2459
2468
  accentColor?: string | null;
2460
- /** Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES). */
2469
+ /**
2470
+ * Background color for background-based variants (SOLID_BOXES, SOLID_BOXES_ALTERNATING, SOLID_JOINED_BOXES).
2471
+ * @maxLength 19
2472
+ */
2461
2473
  backgroundColor?: string | null;
2462
- /** Shape fill color as a hexadecimal value. */
2474
+ /**
2475
+ * Shape fill color as a hexadecimal value.
2476
+ * @maxLength 19
2477
+ */
2463
2478
  shapeColor?: string | null;
2464
2479
  }
2465
2480
  interface Metadata {
@@ -4250,14 +4265,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
4250
4265
  /**
4251
4266
  * Retrieves the number of published posts per month within a specified time range.
4252
4267
  *
4253
- *
4254
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
4255
- *
4256
- * 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.
4257
- *
4258
- * >**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.
4268
+ * The time range is set using the `rangeStart` and `months` properties.
4269
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
4270
+ * includes the number of `months` following `rangeStart`.
4271
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
4272
+ * 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.
4273
+ * > 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.
4259
4274
  * @public
4260
- * @param options - Options specifying time frame, sort, and filter.
4261
4275
  * @permissionId BLOG.READ-PUBLICATION
4262
4276
  * @applicableIdentity APP
4263
4277
  * @returns Get Blog Post Count Stats response
@@ -4298,7 +4312,6 @@ interface QueryPostCountStatsOptions {
4298
4312
  /**
4299
4313
  * Retrieves the total amount of published posts of the blog.
4300
4314
  * @public
4301
- * @param options - Language Options.
4302
4315
  * @permissionId BLOG.READ-PUBLICATION
4303
4316
  * @applicableIdentity APP
4304
4317
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -4319,12 +4332,12 @@ interface GetTotalPostsOptions {
4319
4332
  * @param postId - Post ID.
4320
4333
  * @public
4321
4334
  * @requiredField postId
4322
- * @param options - Options specifying which fields to return.
4323
4335
  * @permissionId BLOG.READ-PUBLICATION
4324
4336
  * @applicableIdentity APP
4337
+ * @returns Retrieved post info.
4325
4338
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
4326
4339
  */
4327
- 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>>;
4340
+ 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>>;
4328
4341
  interface GetPostOptions {
4329
4342
  /**
4330
4343
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -4344,7 +4357,6 @@ interface GetPostOptions {
4344
4357
  * @param slug - Slug of the post to retrieve.
4345
4358
  * @public
4346
4359
  * @requiredField slug
4347
- * @param options - Options specifying which fields to return.
4348
4360
  * @permissionId BLOG.READ-PUBLICATION
4349
4361
  * @applicableIdentity APP
4350
4362
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -4372,7 +4384,6 @@ interface GetPostBySlugOptions {
4372
4384
  * - `paging.limit` is `50`.
4373
4385
  * - `paging.offset` is `0`.
4374
4386
  * @public
4375
- * @param options - Sort, filter, and paging options.
4376
4387
  * @permissionId BLOG.READ-PUBLICATION
4377
4388
  * @applicableIdentity APP
4378
4389
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -4443,26 +4454,18 @@ interface ListPostsOptions {
4443
4454
  fieldsets?: PostFieldFieldWithLiterals[];
4444
4455
  }
4445
4456
  /**
4446
- * Creates a query to retrieve a list of posts.
4447
- *
4448
- *
4449
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
4450
- *
4451
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
4452
- *
4453
- * 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.
4457
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
4454
4458
  *
4455
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
4456
- * + `limit(50)`
4457
- * + `descending('firstPublishedDate')`
4458
- *
4459
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
4460
- *
4461
- * To learn how to query posts, refer to the table below.
4459
+ * Query Posts runs with these defaults, which you can override:
4460
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
4461
+ * - `paging.limit` is `50`.
4462
+ * - `paging.offset` is `0`.
4462
4463
  *
4463
- * 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`.
4464
+ * To learn about working with _Query_ endpoints, see
4465
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4466
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
4467
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4464
4468
  * @public
4465
- * @param options - Options specifying which fields to return.
4466
4469
  * @permissionId BLOG.READ-PUBLICATION
4467
4470
  * @applicableIdentity APP
4468
4471
  * @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)(