@wix/auto_sdk_blog_posts 1.0.193 → 1.0.195

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.
@@ -2502,7 +2502,7 @@ interface LayoutData {
2502
2502
  containerData?: PluginContainerData;
2503
2503
  /** Defines where selected design propertied applies to */
2504
2504
  designTarget?: DesignTargetWithLiterals;
2505
- /** Banner configuration. When present, this layout is attached to a document edge (top or bottom). */
2505
+ /** Where this layout sits: an edge banner, or the paywall cut. One field, so the two can never be combined. */
2506
2506
  banner?: Banner;
2507
2507
  /** Background styling (color or gradient). */
2508
2508
  background?: LayoutDataBackground;
@@ -2577,13 +2577,15 @@ declare enum Origin {
2577
2577
  /** @enumType */
2578
2578
  type OriginWithLiterals = Origin | 'IMAGE' | 'LAYOUT';
2579
2579
  declare enum BannerPosition {
2580
- /** Attached to the top edge (banner) */
2580
+ /** Attached to the top edge (banner). The default, so a banner written before this field existed decodes as TOP. */
2581
2581
  TOP = "TOP",
2582
- /** Attached to the bottom edge (footer) */
2583
- BOTTOM = "BOTTOM"
2582
+ /** Attached to the bottom edge (footer). */
2583
+ BOTTOM = "BOTTOM",
2584
+ /** The cut between free and paid content, not an edge banner. `origin` carries no meaning for it. */
2585
+ PAYWALL = "PAYWALL"
2584
2586
  }
2585
2587
  /** @enumType */
2586
- type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM';
2588
+ type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM' | 'PAYWALL';
2587
2589
  /** How the stacked layers fade relative to the base shape. Named for a bottom divider; top dividers render mirrored, so the visual fade flips. */
2588
2590
  declare enum LayerEffect {
2589
2591
  /** Shape keeps its height, a solid filler bar pushes it away from the edge */
@@ -2711,12 +2713,17 @@ declare enum DesignTarget {
2711
2713
  }
2712
2714
  /** @enumType */
2713
2715
  type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
2714
- interface Banner {
2715
- /** Origin of the banner */
2716
+ interface Banner extends BannerOriginPresenceOneOf {
2717
+ /** Origin of the banner. Edge positions only. */
2716
2718
  origin?: OriginWithLiterals;
2717
- /** Position of the banner */
2719
+ /** Where the layout sits: an edge, or the paywall cut. */
2718
2720
  position?: BannerPositionWithLiterals;
2719
2721
  }
2722
+ /** @oneof */
2723
+ interface BannerOriginPresenceOneOf {
2724
+ /** Origin of the banner. Edge positions only. */
2725
+ origin?: OriginWithLiterals;
2726
+ }
2720
2727
  /** Backdrop styling (color or gradient) */
2721
2728
  interface Backdrop {
2722
2729
  /** Backdrop type. */
@@ -3618,172 +3625,6 @@ interface GetTotalPostsResponse {
3618
3625
  /** Total amount of published posts. */
3619
3626
  total?: number;
3620
3627
  }
3621
- interface ListDemoPostsRequest {
3622
- /**
3623
- * Whether to return only featured posts.
3624
- *
3625
- * Default: `false`
3626
- */
3627
- featured?: boolean;
3628
- /**
3629
- * Hashtag filter.
3630
- *
3631
- * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3632
- * If omitted, all posts with or without hashtags are returned.
3633
- * @maxSize 100
3634
- * @maxLength 100
3635
- */
3636
- hashtags?: string[];
3637
- /**
3638
- * Category filter.
3639
- *
3640
- * Pass an array of category IDs to return only posts with any of the provided categories.
3641
- * If omitted, all posts with or without associated categories are returned.
3642
- * @maxSize 50
3643
- * @format GUID
3644
- */
3645
- categoryIds?: string[];
3646
- /**
3647
- * Tag filter.
3648
- *
3649
- * Pass an array of tag IDs to return only posts with any of the provided tags.
3650
- * If omitted, all posts with or without tags are returned.
3651
- * @maxSize 50
3652
- * @format GUID
3653
- */
3654
- tagIds?: string[];
3655
- /**
3656
- * Sorting options.
3657
- *
3658
- * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3659
- * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3660
- * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3661
- * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3662
- * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3663
- * - `TITLE_ASC`: Ordered by `title` in ascending order.
3664
- * - `TITLE_DESC`: Ordered by `title` in descending order.
3665
- * - `RATING`: reserved for internal use.
3666
- *
3667
- * Default: `FEED`
3668
- */
3669
- sort?: GetPostsSortWithLiterals;
3670
- /** Pagination options. */
3671
- paging?: BlogPaging;
3672
- /**
3673
- * __Deprecated.__ Use `fieldsets` instead.
3674
- * This parameter will be removed on June 30, 2023.
3675
- *
3676
- * List of post fields to be included in the response.
3677
- * @maxSize 20
3678
- * @deprecated __Deprecated.__ Use `fieldsets` instead.
3679
- * This parameter will be removed on June 30, 2023.
3680
- *
3681
- * List of post fields to be included in the response.
3682
- * @replacedBy fieldsets
3683
- * @targetRemovalDate 2024-06-30
3684
- */
3685
- fieldsToInclude?: PostFieldFieldWithLiterals[];
3686
- /**
3687
- * Language filter.
3688
- *
3689
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3690
- * Pass a language to only receive posts that are in that language.
3691
- * If omitted, posts in all languages are returned.
3692
- * @format LANGUAGE_TAG
3693
- */
3694
- language?: string | null;
3695
- /**
3696
- * Post owner's member ID.
3697
- * @format GUID
3698
- */
3699
- memberId?: string | null;
3700
- /**
3701
- * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3702
- * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3703
- * only the post’s base fields are returned.
3704
- * @maxSize 20
3705
- */
3706
- fieldsets?: PostFieldFieldWithLiterals[];
3707
- }
3708
- declare enum GetPostsSort {
3709
- /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3710
- FEED = "FEED",
3711
- /** Ordered by `firstPublishedDate` in ascending order. */
3712
- PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3713
- /** Ordered by `firstPublishedDate` in descending order. */
3714
- PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3715
- /** Ordered by total number of views in descending order. */
3716
- VIEW_COUNT = "VIEW_COUNT",
3717
- /** Ordered by total number of likes in descending order. */
3718
- LIKE_COUNT = "LIKE_COUNT",
3719
- /** Ordered by `title` in ascending order. */
3720
- TITLE_ASC = "TITLE_ASC",
3721
- /** Ordered by `title` in descending order. */
3722
- TITLE_DESC = "TITLE_DESC"
3723
- }
3724
- /** @enumType */
3725
- type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3726
- interface BlogPaging {
3727
- /**
3728
- * Number of items to skip in the current sort order.
3729
- *
3730
- *
3731
- * Default: `0`
3732
- */
3733
- offset?: number;
3734
- /**
3735
- * Number of items to return.
3736
- *
3737
- *
3738
- * Default:`50`
3739
- * @min 1
3740
- * @max 100
3741
- */
3742
- limit?: number;
3743
- /**
3744
- * Pointer to the next or previous page in the list of results.
3745
- * @maxLength 2000
3746
- */
3747
- cursor?: string | null;
3748
- }
3749
- declare enum PostFieldField {
3750
- UNKNOWN = "UNKNOWN",
3751
- /** Includes post URL when present. */
3752
- URL = "URL",
3753
- /** Includes post content text string when present. */
3754
- CONTENT_TEXT = "CONTENT_TEXT",
3755
- /** Includes post metrics when present. */
3756
- METRICS = "METRICS",
3757
- /** Includes SEO data. */
3758
- SEO = "SEO",
3759
- /** Includes post owner's contact ID. */
3760
- CONTACT_ID = "CONTACT_ID",
3761
- /** Includes post rich content. */
3762
- RICH_CONTENT = "RICH_CONTENT",
3763
- /** Includes post reference ID field. */
3764
- REFERENCE_ID = "REFERENCE_ID"
3765
- }
3766
- /** @enumType */
3767
- type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3768
- interface ListDemoPostsResponse {
3769
- /** List of posts. */
3770
- posts?: Post[];
3771
- /** Details on the paged set of results returned. */
3772
- metaData?: MetaData;
3773
- }
3774
- interface MetaData {
3775
- /** Number of items returned in this response. */
3776
- count?: number;
3777
- /** Requested offset. */
3778
- offset?: number;
3779
- /** Total number of items that match the query. */
3780
- total?: number;
3781
- /**
3782
- * Pointer to the next or previous page in the list of results.
3783
- * @maxLength 2000
3784
- */
3785
- cursor?: string | null;
3786
- }
3787
3628
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
3788
3629
  /**
3789
3630
  * Member ID of person who triggered the counter update
@@ -3853,6 +3694,25 @@ interface GetPostRequest {
3853
3694
  */
3854
3695
  fieldsets?: PostFieldFieldWithLiterals[];
3855
3696
  }
3697
+ declare enum PostFieldField {
3698
+ UNKNOWN = "UNKNOWN",
3699
+ /** Includes post URL when present. */
3700
+ URL = "URL",
3701
+ /** Includes post content text string when present. */
3702
+ CONTENT_TEXT = "CONTENT_TEXT",
3703
+ /** Includes post metrics when present. */
3704
+ METRICS = "METRICS",
3705
+ /** Includes SEO data. */
3706
+ SEO = "SEO",
3707
+ /** Includes post owner's contact ID. */
3708
+ CONTACT_ID = "CONTACT_ID",
3709
+ /** Includes post rich content. */
3710
+ RICH_CONTENT = "RICH_CONTENT",
3711
+ /** Includes post reference ID field. */
3712
+ REFERENCE_ID = "REFERENCE_ID"
3713
+ }
3714
+ /** @enumType */
3715
+ type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3856
3716
  interface GetPostResponse {
3857
3717
  /** Retrieved post info. */
3858
3718
  post?: Post;
@@ -3945,12 +3805,66 @@ interface ListPostsRequest {
3945
3805
  */
3946
3806
  fieldsets?: PostFieldFieldWithLiterals[];
3947
3807
  }
3808
+ declare enum GetPostsSort {
3809
+ /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3810
+ FEED = "FEED",
3811
+ /** Ordered by `firstPublishedDate` in ascending order. */
3812
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3813
+ /** Ordered by `firstPublishedDate` in descending order. */
3814
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3815
+ /** Ordered by total number of views in descending order. */
3816
+ VIEW_COUNT = "VIEW_COUNT",
3817
+ /** Ordered by total number of likes in descending order. */
3818
+ LIKE_COUNT = "LIKE_COUNT",
3819
+ /** Ordered by `title` in ascending order. */
3820
+ TITLE_ASC = "TITLE_ASC",
3821
+ /** Ordered by `title` in descending order. */
3822
+ TITLE_DESC = "TITLE_DESC"
3823
+ }
3824
+ /** @enumType */
3825
+ type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3826
+ interface BlogPaging {
3827
+ /**
3828
+ * Number of items to skip in the current sort order.
3829
+ *
3830
+ *
3831
+ * Default: `0`
3832
+ */
3833
+ offset?: number;
3834
+ /**
3835
+ * Number of items to return.
3836
+ *
3837
+ *
3838
+ * Default:`50`
3839
+ * @min 1
3840
+ * @max 100
3841
+ */
3842
+ limit?: number;
3843
+ /**
3844
+ * Pointer to the next or previous page in the list of results.
3845
+ * @maxLength 2000
3846
+ */
3847
+ cursor?: string | null;
3848
+ }
3948
3849
  interface ListPostsResponse {
3949
3850
  /** List of retrieved posts. */
3950
3851
  posts?: Post[];
3951
3852
  /** Details on the paged set of results returned. */
3952
3853
  metaData?: MetaData;
3953
3854
  }
3855
+ interface MetaData {
3856
+ /** Number of items returned in this response. */
3857
+ count?: number;
3858
+ /** Requested offset. */
3859
+ offset?: number;
3860
+ /** Total number of items that match the query. */
3861
+ total?: number;
3862
+ /**
3863
+ * Pointer to the next or previous page in the list of results.
3864
+ * @maxLength 2000
3865
+ */
3866
+ cursor?: string | null;
3867
+ }
3954
3868
  interface QueryPostsRequest {
3955
3869
  /** Query options. */
3956
3870
  query?: PlatformQuery;
@@ -4309,6 +4223,99 @@ interface PostCount {
4309
4223
  /** Number of posts. */
4310
4224
  postCount?: number;
4311
4225
  }
4226
+ interface ListDemoPostsRequest {
4227
+ /**
4228
+ * Whether to return only featured posts.
4229
+ *
4230
+ * Default: `false`
4231
+ */
4232
+ featured?: boolean;
4233
+ /**
4234
+ * Hashtag filter.
4235
+ *
4236
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
4237
+ * If omitted, all posts with or without hashtags are returned.
4238
+ * @maxSize 100
4239
+ * @maxLength 100
4240
+ */
4241
+ hashtags?: string[];
4242
+ /**
4243
+ * Category filter.
4244
+ *
4245
+ * Pass an array of category IDs to return only posts with any of the provided categories.
4246
+ * If omitted, all posts with or without associated categories are returned.
4247
+ * @maxSize 50
4248
+ * @format GUID
4249
+ */
4250
+ categoryIds?: string[];
4251
+ /**
4252
+ * Tag filter.
4253
+ *
4254
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
4255
+ * If omitted, all posts with or without tags are returned.
4256
+ * @maxSize 50
4257
+ * @format GUID
4258
+ */
4259
+ tagIds?: string[];
4260
+ /**
4261
+ * Sorting options.
4262
+ *
4263
+ * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
4264
+ * - `VIEW_COUNT`: Ordered by total number of views in descending order.
4265
+ * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
4266
+ * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
4267
+ * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
4268
+ * - `TITLE_ASC`: Ordered by `title` in ascending order.
4269
+ * - `TITLE_DESC`: Ordered by `title` in descending order.
4270
+ * - `RATING`: reserved for internal use.
4271
+ *
4272
+ * Default: `FEED`
4273
+ */
4274
+ sort?: GetPostsSortWithLiterals;
4275
+ /** Pagination options. */
4276
+ paging?: BlogPaging;
4277
+ /**
4278
+ * __Deprecated.__ Use `fieldsets` instead.
4279
+ * This parameter will be removed on June 30, 2023.
4280
+ *
4281
+ * List of post fields to be included in the response.
4282
+ * @maxSize 20
4283
+ * @deprecated __Deprecated.__ Use `fieldsets` instead.
4284
+ * This parameter will be removed on June 30, 2023.
4285
+ *
4286
+ * List of post fields to be included in the response.
4287
+ * @replacedBy fieldsets
4288
+ * @targetRemovalDate 2024-06-30
4289
+ */
4290
+ fieldsToInclude?: PostFieldFieldWithLiterals[];
4291
+ /**
4292
+ * Language filter.
4293
+ *
4294
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4295
+ * Pass a language to only receive posts that are in that language.
4296
+ * If omitted, posts in all languages are returned.
4297
+ * @format LANGUAGE_TAG
4298
+ */
4299
+ language?: string | null;
4300
+ /**
4301
+ * Post owner's member ID.
4302
+ * @format GUID
4303
+ */
4304
+ memberId?: string | null;
4305
+ /**
4306
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
4307
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
4308
+ * only the post’s base fields are returned.
4309
+ * @maxSize 20
4310
+ */
4311
+ fieldsets?: PostFieldFieldWithLiterals[];
4312
+ }
4313
+ interface ListDemoPostsResponse {
4314
+ /** List of posts. */
4315
+ posts?: Post[];
4316
+ /** Details on the paged set of results returned. */
4317
+ metaData?: MetaData;
4318
+ }
4312
4319
  interface BaseEventMetadata {
4313
4320
  /**
4314
4321
  * App instance ID.
@@ -4456,13 +4463,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
4456
4463
  /**
4457
4464
  * Retrieves the number of published posts per month within a specified time range.
4458
4465
  *
4459
- * The time range is set using the `rangeStart` and `months` properties.
4460
- * The time range always starts on the 1st day of the month set in `rangeStart` and
4461
- * includes the number of `months` following `rangeStart`.
4462
- * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
4463
- * 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.
4464
- * > 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.
4466
+ *
4467
+ * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
4468
+ *
4469
+ * 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.
4470
+ *
4471
+ * >**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.
4465
4472
  * @public
4473
+ * @param options - Options specifying time frame, sort, and filter.
4466
4474
  * @permissionId BLOG.READ-PUBLICATION
4467
4475
  * @applicableIdentity APP
4468
4476
  * @returns Get Blog Post Count Stats response
@@ -4503,6 +4511,7 @@ interface QueryPostCountStatsOptions {
4503
4511
  /**
4504
4512
  * Retrieves the total amount of published posts of the blog.
4505
4513
  * @public
4514
+ * @param options - Language Options.
4506
4515
  * @permissionId BLOG.READ-PUBLICATION
4507
4516
  * @applicableIdentity APP
4508
4517
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -4523,12 +4532,12 @@ interface GetTotalPostsOptions {
4523
4532
  * @param postId - Post ID.
4524
4533
  * @public
4525
4534
  * @requiredField postId
4535
+ * @param options - Options specifying which fields to return.
4526
4536
  * @permissionId BLOG.READ-PUBLICATION
4527
4537
  * @applicableIdentity APP
4528
- * @returns Retrieved post info.
4529
4538
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
4530
4539
  */
4531
- 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`, 4>>;
4540
+ 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`, 5>>;
4532
4541
  interface GetPostOptions {
4533
4542
  /**
4534
4543
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -4548,6 +4557,7 @@ interface GetPostOptions {
4548
4557
  * @param slug - Slug of the post to retrieve.
4549
4558
  * @public
4550
4559
  * @requiredField slug
4560
+ * @param options - Options specifying which fields to return.
4551
4561
  * @permissionId BLOG.READ-PUBLICATION
4552
4562
  * @applicableIdentity APP
4553
4563
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -4575,6 +4585,7 @@ interface GetPostBySlugOptions {
4575
4585
  * - `paging.limit` is `50`.
4576
4586
  * - `paging.offset` is `0`.
4577
4587
  * @public
4588
+ * @param options - Sort, filter, and paging options.
4578
4589
  * @permissionId BLOG.READ-PUBLICATION
4579
4590
  * @applicableIdentity APP
4580
4591
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -4645,18 +4656,26 @@ interface ListPostsOptions {
4645
4656
  fieldsets?: PostFieldFieldWithLiterals[];
4646
4657
  }
4647
4658
  /**
4648
- * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
4659
+ * Creates a query to retrieve a list of posts.
4649
4660
  *
4650
- * Query Posts runs with these defaults, which you can override:
4651
- * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
4652
- * - `paging.limit` is `50`.
4653
- * - `paging.offset` is `0`.
4654
4661
  *
4655
- * To learn about working with _Query_ endpoints, see
4656
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4657
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
4658
- * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4662
+ * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
4663
+ *
4664
+ * The returned object contains the query definition which is typically used to run the query using the `find()` function.
4665
+ *
4666
+ * 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.
4667
+ *
4668
+ * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
4669
+ * + `limit(50)`
4670
+ * + `descending('firstPublishedDate')`
4671
+ *
4672
+ * Note that the default limit is `'50'`, but the max limit is `'100'`.
4673
+ *
4674
+ * To learn how to query posts, refer to the table below.
4675
+ *
4676
+ * 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`.
4659
4677
  * @public
4678
+ * @param options - Options specifying which fields to return.
4660
4679
  * @permissionId BLOG.READ-PUBLICATION
4661
4680
  * @applicableIdentity APP
4662
4681
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
@@ -4939,4 +4958,4 @@ declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPos
4939
4958
  */
4940
4959
  declare function viewPost(postId: string): Promise<NonNullablePaths<ViewPostResponse, `views`, 0>>;
4941
4960
 
4942
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeletePostsRequest, type BulkDeletePostsResponse, type BulkGetPostReactionsRequest, type BulkGetPostReactionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorDataBackground, ColorDataBackgroundType, type ColorDataBackgroundTypeWithLiterals, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeletePostRequest, type DeletePostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetPostBySlugOptions, type GetPostBySlugRequest, type GetPostBySlugResponse, type GetPostCountPerMonthRequest, type GetPostCountPerMonthResponse, type GetPostCountsRequest, type GetPostCountsResponse, type GetPostMetricsRequest, type GetPostMetricsResponse, type GetPostOptions, type GetPostRequest, type GetPostResponse, GetPostsSort, type GetPostsSortWithLiterals, type GetTotalLikesPerMemberRequest, type GetTotalLikesPerMemberResponse, type GetTotalPostsOptions, type GetTotalPostsRequest, type GetTotalPostsResponse, type GetTotalPublicationsRequest, type GetTotalPublicationsResponse, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InitialPostsCopied, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, type LikePostRequest, type LikePostResponse, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDemoPostsRequest, type ListDemoPostsResponse, type ListItemNodeData, type ListPostsArchiveRequest, type ListPostsArchiveResponse, type ListPostsOptions, type ListPostsRequest, type ListPostsResponse, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type Metrics, type ModerationDetails, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type PeriodPostCount, type PeriodPublicationsCount, type Permissions, type PinPostRequest, type PinPostResponse, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Post, type PostCategoriesUpdated, type PostCount, type PostCountInfo, type PostCountPerMonth, type PostCountersUpdated, type PostCountersUpdatedInitiatorOneOf, type PostCreatedEnvelope, type PostDeletedEnvelope, PostFieldField, type PostFieldFieldWithLiterals, type PostLiked, type PostLikedEnvelope, type PostLikedInitiatorOneOf, type PostOwnerChanged, type PostQuery, type PostQuerySpec, type PostTagsUpdated, type PostTranslation, type PostUnliked, type PostUnlikedEnvelope, type PostUnlikedInitiatorOneOf, type PostUpdatedEnvelope, type PostsQueryBuilder, type PostsQueryResult, type PricingData, type QueryPostCountStatsOptions, type QueryPostCountStatsRequest, type QueryPostCountStatsResponse, type QueryPostsOptions, type QueryPostsRequest, type QueryPostsResponse, type QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, type QueryPublicationsCountStatsRequestOrderWithLiterals, type QueryPublicationsCountStatsResponse, type Reactions, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type ScheduledPostPublished, type SectionDivider, type SeoSchema, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SlotData, type SlotDesign, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TocData, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, Variant, type VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, type ViewPostRequest, type ViewPostResponse, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts, typedQueryPosts, utils, viewPost };
4961
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, type BannerOriginPresenceOneOf, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeletePostsRequest, type BulkDeletePostsResponse, type BulkGetPostReactionsRequest, type BulkGetPostReactionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorDataBackground, ColorDataBackgroundType, type ColorDataBackgroundTypeWithLiterals, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeletePostRequest, type DeletePostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetPostBySlugOptions, type GetPostBySlugRequest, type GetPostBySlugResponse, type GetPostCountPerMonthRequest, type GetPostCountPerMonthResponse, type GetPostCountsRequest, type GetPostCountsResponse, type GetPostMetricsRequest, type GetPostMetricsResponse, type GetPostOptions, type GetPostRequest, type GetPostResponse, GetPostsSort, type GetPostsSortWithLiterals, type GetTotalLikesPerMemberRequest, type GetTotalLikesPerMemberResponse, type GetTotalPostsOptions, type GetTotalPostsRequest, type GetTotalPostsResponse, type GetTotalPublicationsRequest, type GetTotalPublicationsResponse, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InitialPostsCopied, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, type LikePostRequest, type LikePostResponse, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDemoPostsRequest, type ListDemoPostsResponse, type ListItemNodeData, type ListPostsArchiveRequest, type ListPostsArchiveResponse, type ListPostsOptions, type ListPostsRequest, type ListPostsResponse, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type Metrics, type ModerationDetails, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type PeriodPostCount, type PeriodPublicationsCount, type Permissions, type PinPostRequest, type PinPostResponse, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Post, type PostCategoriesUpdated, type PostCount, type PostCountInfo, type PostCountPerMonth, type PostCountersUpdated, type PostCountersUpdatedInitiatorOneOf, type PostCreatedEnvelope, type PostDeletedEnvelope, PostFieldField, type PostFieldFieldWithLiterals, type PostLiked, type PostLikedEnvelope, type PostLikedInitiatorOneOf, type PostOwnerChanged, type PostQuery, type PostQuerySpec, type PostTagsUpdated, type PostTranslation, type PostUnliked, type PostUnlikedEnvelope, type PostUnlikedInitiatorOneOf, type PostUpdatedEnvelope, type PostsQueryBuilder, type PostsQueryResult, type PricingData, type QueryPostCountStatsOptions, type QueryPostCountStatsRequest, type QueryPostCountStatsResponse, type QueryPostsOptions, type QueryPostsRequest, type QueryPostsResponse, type QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, type QueryPublicationsCountStatsRequestOrderWithLiterals, type QueryPublicationsCountStatsResponse, type Reactions, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type ScheduledPostPublished, type SectionDivider, type SeoSchema, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SlotData, type SlotDesign, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TocData, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, Variant, type VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, type ViewPostRequest, type ViewPostResponse, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts, typedQueryPosts, utils, viewPost };
@@ -1620,6 +1620,7 @@ var Origin = /* @__PURE__ */ ((Origin2) => {
1620
1620
  var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1621
1621
  BannerPosition2["TOP"] = "TOP";
1622
1622
  BannerPosition2["BOTTOM"] = "BOTTOM";
1623
+ BannerPosition2["PAYWALL"] = "PAYWALL";
1623
1624
  return BannerPosition2;
1624
1625
  })(BannerPosition || {});
1625
1626
  var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
@@ -1773,17 +1774,14 @@ var Order = /* @__PURE__ */ ((Order2) => {
1773
1774
  Order2["NEWEST"] = "NEWEST";
1774
1775
  return Order2;
1775
1776
  })(Order || {});
1776
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1777
- GetPostsSort2["FEED"] = "FEED";
1778
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1779
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1780
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1781
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1782
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1783
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1784
- GetPostsSort2["RATING"] = "RATING";
1785
- return GetPostsSort2;
1786
- })(GetPostsSort || {});
1777
+ var Field = /* @__PURE__ */ ((Field2) => {
1778
+ Field2["UNKNOWN"] = "UNKNOWN";
1779
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1780
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1781
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1782
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1783
+ return Field2;
1784
+ })(Field || {});
1787
1785
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1788
1786
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
1789
1787
  PostFieldField2["COUNTERS"] = "COUNTERS";
@@ -1807,14 +1805,17 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1807
1805
  PostFieldField2["IMAGE"] = "IMAGE";
1808
1806
  return PostFieldField2;
1809
1807
  })(PostFieldField || {});
1810
- var Field = /* @__PURE__ */ ((Field2) => {
1811
- Field2["UNKNOWN"] = "UNKNOWN";
1812
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1813
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1814
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1815
- Field2["RATING_COUNT"] = "RATING_COUNT";
1816
- return Field2;
1817
- })(Field || {});
1808
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1809
+ GetPostsSort2["FEED"] = "FEED";
1810
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1811
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1812
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1813
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1814
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1815
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1816
+ GetPostsSort2["RATING"] = "RATING";
1817
+ return GetPostsSort2;
1818
+ })(GetPostsSort || {});
1818
1819
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1819
1820
  SortOrder2["ASC"] = "ASC";
1820
1821
  SortOrder2["DESC"] = "DESC";
@@ -1910,8 +1911,8 @@ async function getPost2(postId, options) {
1910
1911
  paths: TRANSFORM_PATHS_22
1911
1912
  }
1912
1913
  ]),
1913
- ["post.richContent"]
1914
- )?.post;
1914
+ ["post.richContent", "post.rich_content"]
1915
+ );
1915
1916
  } catch (err) {
1916
1917
  const transformedError = (0, import_transform_error.transformError)(
1917
1918
  err,
@@ -1955,7 +1956,7 @@ async function getPostBySlug2(slug, options) {
1955
1956
  paths: TRANSFORM_PATHS_22
1956
1957
  }
1957
1958
  ]),
1958
- ["post.richContent"]
1959
+ ["post.richContent", "post.rich_content"]
1959
1960
  );
1960
1961
  } catch (err) {
1961
1962
  const transformedError = (0, import_transform_error.transformError)(
@@ -2011,7 +2012,7 @@ async function listPosts2(options) {
2011
2012
  paths: TRANSFORM_PATHS_52
2012
2013
  }
2013
2014
  ]),
2014
- ["posts.richContent"]
2015
+ ["posts.richContent", "posts.rich_content"]
2015
2016
  );
2016
2017
  } catch (err) {
2017
2018
  const transformedError = (0, import_transform_error.transformError)(
@@ -2078,7 +2079,7 @@ function queryPosts2(options) {
2078
2079
  paths: TRANSFORM_PATHS_52
2079
2080
  }
2080
2081
  ]),
2081
- ["posts.richContent"]
2082
+ ["posts.richContent", "posts.rich_content"]
2082
2083
  );
2083
2084
  return {
2084
2085
  items: transformedData?.posts,
@@ -2123,7 +2124,7 @@ async function typedQueryPosts(query, options) {
2123
2124
  paths: TRANSFORM_PATHS_52
2124
2125
  }
2125
2126
  ]),
2126
- ["posts.richContent"]
2127
+ ["posts.richContent", "posts.rich_content"]
2127
2128
  );
2128
2129
  } catch (err) {
2129
2130
  const transformedError = (0, import_transform_error.transformError)(