@wix/auto_sdk_blog_posts 1.0.9 → 1.0.11

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 (41) hide show
  1. package/build/cjs/src/blog-v3-post-posts.context.d.ts +1 -1
  2. package/build/cjs/src/blog-v3-post-posts.http.d.ts +35 -56
  3. package/build/cjs/src/blog-v3-post-posts.http.js +32 -53
  4. package/build/cjs/src/blog-v3-post-posts.http.js.map +1 -1
  5. package/build/cjs/src/blog-v3-post-posts.public.d.ts +40 -69
  6. package/build/cjs/src/blog-v3-post-posts.public.js +5 -5
  7. package/build/cjs/src/blog-v3-post-posts.public.js.map +1 -1
  8. package/build/cjs/src/blog-v3-post-posts.universal.d.ts +123 -158
  9. package/build/cjs/src/blog-v3-post-posts.universal.js +60 -78
  10. package/build/cjs/src/blog-v3-post-posts.universal.js.map +1 -1
  11. package/build/es/src/blog-v3-post-posts.context.d.ts +1 -1
  12. package/build/es/src/blog-v3-post-posts.http.d.ts +35 -56
  13. package/build/es/src/blog-v3-post-posts.http.js +32 -53
  14. package/build/es/src/blog-v3-post-posts.http.js.map +1 -1
  15. package/build/es/src/blog-v3-post-posts.public.d.ts +40 -69
  16. package/build/es/src/blog-v3-post-posts.public.js +5 -5
  17. package/build/es/src/blog-v3-post-posts.public.js.map +1 -1
  18. package/build/es/src/blog-v3-post-posts.universal.d.ts +123 -158
  19. package/build/es/src/blog-v3-post-posts.universal.js +60 -78
  20. package/build/es/src/blog-v3-post-posts.universal.js.map +1 -1
  21. package/build/internal/cjs/src/blog-v3-post-posts.context.d.ts +1 -1
  22. package/build/internal/cjs/src/blog-v3-post-posts.http.d.ts +35 -56
  23. package/build/internal/cjs/src/blog-v3-post-posts.http.js +32 -53
  24. package/build/internal/cjs/src/blog-v3-post-posts.http.js.map +1 -1
  25. package/build/internal/cjs/src/blog-v3-post-posts.public.d.ts +40 -69
  26. package/build/internal/cjs/src/blog-v3-post-posts.public.js +5 -5
  27. package/build/internal/cjs/src/blog-v3-post-posts.public.js.map +1 -1
  28. package/build/internal/cjs/src/blog-v3-post-posts.universal.d.ts +123 -158
  29. package/build/internal/cjs/src/blog-v3-post-posts.universal.js +60 -78
  30. package/build/internal/cjs/src/blog-v3-post-posts.universal.js.map +1 -1
  31. package/build/internal/es/src/blog-v3-post-posts.context.d.ts +1 -1
  32. package/build/internal/es/src/blog-v3-post-posts.http.d.ts +35 -56
  33. package/build/internal/es/src/blog-v3-post-posts.http.js +32 -53
  34. package/build/internal/es/src/blog-v3-post-posts.http.js.map +1 -1
  35. package/build/internal/es/src/blog-v3-post-posts.public.d.ts +40 -69
  36. package/build/internal/es/src/blog-v3-post-posts.public.js +5 -5
  37. package/build/internal/es/src/blog-v3-post-posts.public.js.map +1 -1
  38. package/build/internal/es/src/blog-v3-post-posts.universal.d.ts +123 -158
  39. package/build/internal/es/src/blog-v3-post-posts.universal.js +60 -78
  40. package/build/internal/es/src/blog-v3-post-posts.universal.js.map +1 -1
  41. package/package.json +2 -2
@@ -34,11 +34,7 @@ export interface Post {
34
34
  /** Post URL. */
35
35
  url?: string;
36
36
  /**
37
- * Part of a post's URL that refers to a specific post.
38
- *
39
- *
40
- * For example, `'https:/example.com/posts/my-post-slug'`.
41
- *
37
+ * Post slug. For example, `'post-slug'`.
42
38
  * @maxLength 100
43
39
  */
44
40
  slug?: string;
@@ -47,22 +43,23 @@ export interface Post {
47
43
  /** Whether the post is pinned. If `true`, the post is placed at the top of the post list. */
48
44
  pinned?: boolean;
49
45
  /**
50
- * [Category IDs](https://www.wix.com/velo/reference/wix-blog-backend/categories) of the post.
51
- *
46
+ * [Category IDs](https://dev.wix.com/docs/rest/business-solutions/blog/category/introduction) of the post.
52
47
  * @maxSize 10
53
48
  * @format GUID
54
49
  */
55
50
  categoryIds?: string[];
56
51
  /**
57
- * Reserved for internal use.
52
+ * __Deprecated.__ Use `media` instead.
53
+ * This property will be removed on June 30, 2023.
54
+ *
55
+ * Post cover media.
58
56
  * @deprecated
59
57
  * @replacedBy media
60
58
  * @targetRemovalDate 2024-06-30
61
59
  */
62
60
  coverMedia?: CoverMedia;
63
61
  /**
64
- * Post owner's [member ID](https://www.wix.com/velo/reference/wix-members-backend).
65
- *
62
+ * Post owner's [member ID](https://dev.wix.com/api/rest/members).
66
63
  * @format GUID
67
64
  */
68
65
  memberId?: string;
@@ -75,13 +72,12 @@ export interface Post {
75
72
  hashtags?: string[];
76
73
  /** Whether commenting on the post is enabled. */
77
74
  commentingEnabled?: boolean;
78
- /** Estimated reading time. */
75
+ /** Estimated reading time (calculated automatically). */
79
76
  minutesToRead?: number;
80
- /** Image placed at the top of the blog page. Only displays on mobile devices. */
77
+ /** Image placed at the top of the blog page. */
81
78
  heroImage?: string;
82
79
  /**
83
- * IDs of [tags](https://www.wix.com/velo/reference/wix-blog-backend/tags) the post is tagged with.
84
- *
80
+ * IDs of [tags](https://dev.wix.com/docs/rest/business-solutions/blog/tags) the post is tagged with.
85
81
  * @readonly
86
82
  * @maxSize 30
87
83
  * @format GUID
@@ -95,17 +91,14 @@ export interface Post {
95
91
  */
96
92
  relatedPostIds?: string[];
97
93
  /**
98
- * Pricing plan IDs.
99
- *
100
- *
101
- * If a post is assigned to a specific pricing plan.
94
+ * [Pricing plan IDs](https://dev.wix.com/api/rest/wix-pricing-plans). Only relevant if a post is assigned to a specific pricing plan.
102
95
  * @readonly
103
96
  * @maxSize 100
104
97
  * @format GUID
105
98
  */
106
99
  pricingPlanIds?: string[];
107
100
  /**
108
- * ID of the post's translations when [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-translating-your-blog) is installed on a site. All translations of a single post will share the same `translationId`.
101
+ * ID of the translations of this post. All translations of a single post share the same `translationId`.
109
102
  * @format GUID
110
103
  */
111
104
  translationId?: string | null;
@@ -125,8 +118,7 @@ export interface Post {
125
118
  */
126
119
  content?: string | null;
127
120
  /**
128
- * Post owner's [contact ID](https://www.wix.com/velo/reference/wix-crm-backend/contacts).
129
- *
121
+ * Post owner's [contact ID](https://dev.wix.com/api/rest/contacts).
130
122
  * @format GUID
131
123
  */
132
124
  contactId?: string | null;
@@ -157,10 +149,7 @@ export interface Post {
157
149
  */
158
150
  mostRecentContributorId?: string | null;
159
151
  /**
160
- * Post moderation details.
161
- *
162
- *
163
- * Only relevant to posts submitted by [guest writers](https://support.wix.com/en/article/wix-blog-moderating-blog-posts-from-your-guest-writers). Guest writers have the ability to write posts but not publish them. These posts can be rejected or approved for publishing by a blog editor or site owner.
152
+ * Post moderation details. Only relevant to posts submitted by [guest writers](https://support.wix.com/en/article/wix-blog-moderating-blog-posts-from-your-guest-writers).
164
153
  * @readonly
165
154
  */
166
155
  moderationDetails?: ModerationDetails;
@@ -201,11 +190,7 @@ export interface CoverMedia extends CoverMediaMediaOneOf {
201
190
  enabled?: boolean;
202
191
  /** Whether cover media is displayed. */
203
192
  displayed?: boolean;
204
- /**
205
- * Whether the cover media is custom.
206
- *
207
- * `false` if the cover media is the first image or video in the post. `true` if set to some other image or video.
208
- */
193
+ /** Whether cover media is custom. If `false` the cover image is set to the first media item that appears in the content. */
209
194
  custom?: boolean;
210
195
  /**
211
196
  * Media alternative text.
@@ -1680,11 +1665,11 @@ export interface TextNodeStyle {
1680
1665
  }
1681
1666
  export interface ModerationDetails {
1682
1667
  /**
1683
- * Member ID of the person who submitted the post.
1668
+ * Member ID of the person submitting the draft post for review.
1684
1669
  * @format GUID
1685
1670
  */
1686
1671
  submittedBy?: string;
1687
- /** Date and time the post was submitted for moderation. */
1672
+ /** Date the post was submitted for review. */
1688
1673
  submittedDate?: Date | null;
1689
1674
  /** Status indicating whether the submission was approved or rejected by the moderator. */
1690
1675
  status?: ModerationStatusStatus;
@@ -1693,7 +1678,7 @@ export interface ModerationDetails {
1693
1678
  * @format GUID
1694
1679
  */
1695
1680
  moderatedBy?: string | null;
1696
- /** Date and time the post was approved or rejected by a moderator. */
1681
+ /** Date the post was approved or rejected. */
1697
1682
  moderationDate?: Date | null;
1698
1683
  }
1699
1684
  export declare enum ModerationStatusStatus {
@@ -1708,11 +1693,7 @@ export interface Media extends MediaMediaOneOf {
1708
1693
  embedMedia?: EmbedMedia;
1709
1694
  /** Whether cover media is displayed. */
1710
1695
  displayed?: boolean;
1711
- /**
1712
- * Whether the cover media is custom.
1713
- *
1714
- * `false` if the cover media is the first image or video in the post. `true` if set to some other image or video.
1715
- */
1696
+ /** Whether custom cover media has been specified. If `false`, the first media item in the post's content serves as cover media. */
1716
1697
  custom?: boolean;
1717
1698
  /**
1718
1699
  * Media alternative text.
@@ -1897,8 +1878,8 @@ export interface QueryPostCountStatsRequest {
1897
1878
  /**
1898
1879
  * Language filter.
1899
1880
  *
1900
- *
1901
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
1881
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1882
+ * Pass a language to only receive the period post count for that specified language.
1902
1883
  * @format LANGUAGE_TAG
1903
1884
  */
1904
1885
  language?: string | null;
@@ -1918,7 +1899,7 @@ export declare enum Order {
1918
1899
  }
1919
1900
  /** Get Blog Post Count Stats response */
1920
1901
  export interface QueryPostCountStatsResponse {
1921
- /** List of posts in specified order. */
1902
+ /** List of published post counts by month. */
1922
1903
  stats?: PeriodPostCount[];
1923
1904
  }
1924
1905
  /** Post count for a specific time period */
@@ -1944,8 +1925,8 @@ export interface GetTotalPostsRequest {
1944
1925
  /**
1945
1926
  * Language filter.
1946
1927
  *
1947
- *
1948
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
1928
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1929
+ * Pass a language to receive the total amount of posts in that specified language.
1949
1930
  * @format LANGUAGE_TAG
1950
1931
  */
1951
1932
  language?: string | null;
@@ -2153,11 +2134,7 @@ export interface ListTemplatesResponse {
2153
2134
  export interface MetaData {
2154
2135
  /** Number of items returned in this response. */
2155
2136
  count?: number;
2156
- /**
2157
- * Number of items skipped in the current sort order.
2158
- *
2159
- *
2160
- */
2137
+ /** Requested offset. */
2161
2138
  offset?: number;
2162
2139
  /** Total number of items that match the query. */
2163
2140
  total?: number;
@@ -2651,7 +2628,9 @@ export interface GetPostRequest {
2651
2628
  */
2652
2629
  postId: string;
2653
2630
  /**
2654
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2631
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2632
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2633
+ * only the post’s base fields are returned.
2655
2634
  * @maxSize 20
2656
2635
  */
2657
2636
  fieldsets?: PostFieldField[];
@@ -2685,7 +2664,9 @@ export interface GetPostBySlugRequest {
2685
2664
  */
2686
2665
  slug: string;
2687
2666
  /**
2688
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2667
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2668
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2669
+ * only the post’s base fields are returned.
2689
2670
  * @maxSize 20
2690
2671
  */
2691
2672
  fieldsets?: PostFieldField[];
@@ -2728,15 +2709,20 @@ export interface ListPostsRequest {
2728
2709
  * @maxLength 38
2729
2710
  */
2730
2711
  tagIds?: string[];
2731
- /** Sort order by descending view count, ascending or descending publish date, or default to descending by publish date with pinned posts first. */
2712
+ /**
2713
+ * Sorting options.
2714
+ *
2715
+ * Default: `FEED`
2716
+ */
2732
2717
  sort?: GetPostsSort;
2733
2718
  /** Pagination options. */
2734
2719
  paging?: BlogPaging;
2735
2720
  /**
2736
2721
  * Language filter.
2737
2722
  *
2738
- *
2739
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
2723
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2724
+ * Pass a language to only receive posts that are in that language.
2725
+ * If omitted, posts in all languages are returned.
2740
2726
  * @format LANGUAGE_TAG
2741
2727
  */
2742
2728
  language?: string | null;
@@ -2746,7 +2732,9 @@ export interface ListPostsRequest {
2746
2732
  */
2747
2733
  memberId?: string | null;
2748
2734
  /**
2749
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2735
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2736
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2737
+ * only the post’s base fields are returned.
2750
2738
  * @maxSize 20
2751
2739
  */
2752
2740
  fieldsets?: PostFieldField[];
@@ -2777,7 +2765,9 @@ export interface QueryPostsRequest {
2777
2765
  /** Query options. */
2778
2766
  query?: PlatformQuery;
2779
2767
  /**
2780
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2768
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2769
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2770
+ * only the post’s base fields are returned.
2781
2771
  * @maxSize 20
2782
2772
  */
2783
2773
  fieldsets?: PostFieldField[];
@@ -3508,7 +3498,7 @@ interface PostTranslationNonNullableFields {
3508
3498
  seoData?: SeoSchemaNonNullableFields;
3509
3499
  url: string;
3510
3500
  }
3511
- interface PostNonNullableFields {
3501
+ export interface PostNonNullableFields {
3512
3502
  _id: string;
3513
3503
  title: string;
3514
3504
  excerpt: string;
@@ -3711,15 +3701,14 @@ export declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => v
3711
3701
  /**
3712
3702
  * Retrieves the number of published posts per month within a specified time range.
3713
3703
  *
3714
- *
3715
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3716
- *
3717
- * 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.
3718
- *
3719
- * >**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.
3704
+ * The time range is set using the `rangeStart` and `months` properties.
3705
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3706
+ * includes the number of `months` following `rangeStart`.
3707
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3708
+ * 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.
3709
+ * > 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.
3720
3710
  * @public
3721
3711
  * @documentationMaturity preview
3722
- * @param options - Options specifying time frame, sort, and filter.
3723
3712
  * @permissionId BLOG.READ-PUBLICATION
3724
3713
  * @permissionScope Read Blog
3725
3714
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3729,7 +3718,7 @@ export declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => v
3729
3718
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3730
3719
  * @applicableIdentity APP
3731
3720
  * @applicableIdentity VISITOR
3732
- * @returns Fulfilled - Post count stats.
3721
+ * @returns Get Blog Post Count Stats response
3733
3722
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats
3734
3723
  */
3735
3724
  export declare function queryPostCountStats(options?: QueryPostCountStatsOptions): Promise<QueryPostCountStatsResponse & QueryPostCountStatsResponseNonNullableFields>;
@@ -3737,10 +3726,12 @@ export interface QueryPostCountStatsOptions {
3737
3726
  /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3738
3727
  rangeStart?: Date | null;
3739
3728
  /**
3740
- * Sort order.
3741
- * Use `'ASC'` for ascending order or `'DESC'` for descending order.
3729
+ * Order of returned results.
3742
3730
  *
3743
- * Default: `ASC`
3731
+ * - `OLDEST`: posts by date in ascending order.
3732
+ * - `NEWEST`: posts by date in descending order.
3733
+ *
3734
+ * Default: `OLDEST`
3744
3735
  */
3745
3736
  order?: Order;
3746
3737
  /** Number of months to include in response. */
@@ -3748,8 +3739,8 @@ export interface QueryPostCountStatsOptions {
3748
3739
  /**
3749
3740
  * Language filter.
3750
3741
  *
3751
- *
3752
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
3742
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3743
+ * Pass a language to only receive the period post count for that specified language.
3753
3744
  * @format LANGUAGE_TAG
3754
3745
  */
3755
3746
  language?: string | null;
@@ -3763,16 +3754,9 @@ export interface QueryPostCountStatsOptions {
3763
3754
  timeZone?: string | null;
3764
3755
  }
3765
3756
  /**
3766
- * Gets the total amount of published posts on the blog.
3767
- *
3768
- *
3769
- * The `getTotalPosts()` function returns a Promise that resolves to the total amount of published posts on your blog's site.
3770
- *
3771
- *
3772
- * You can use the `language` option to filter posts for a specified language.
3757
+ * Retrieves the total amount of published posts of the blog.
3773
3758
  * @public
3774
3759
  * @documentationMaturity preview
3775
- * @param options - Language Options.
3776
3760
  * @permissionId BLOG.READ-PUBLICATION
3777
3761
  * @permissionScope Read Blog
3778
3762
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3782,7 +3766,6 @@ export interface QueryPostCountStatsOptions {
3782
3766
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3783
3767
  * @applicableIdentity APP
3784
3768
  * @applicableIdentity VISITOR
3785
- * @returns Fulfilled - Total number of posts.
3786
3769
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
3787
3770
  */
3788
3771
  export declare function getTotalPosts(options?: GetTotalPostsOptions): Promise<GetTotalPostsResponse & GetTotalPostsResponseNonNullableFields>;
@@ -3790,22 +3773,17 @@ export interface GetTotalPostsOptions {
3790
3773
  /**
3791
3774
  * Language filter.
3792
3775
  *
3793
- *
3794
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
3776
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3777
+ * Pass a language to receive the total amount of posts in that specified language.
3795
3778
  * @format LANGUAGE_TAG
3796
3779
  */
3797
3780
  language?: string | null;
3798
3781
  }
3799
3782
  /**
3800
- * Gets a post by the specified ID.
3801
- *
3802
- *
3803
- * The `getPost()` function returns a Promise that resolves to a post whose ID matches the given ID.
3804
- *
3783
+ * Retrieves a post by the specified ID.
3805
3784
  * @param postId - Post ID.
3806
3785
  * @public
3807
3786
  * @requiredField postId
3808
- * @param options - Options specifying which fields to return.
3809
3787
  * @permissionId BLOG.READ-PUBLICATION
3810
3788
  * @permissionScope Read Blog
3811
3789
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3815,30 +3793,29 @@ export interface GetTotalPostsOptions {
3815
3793
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3816
3794
  * @applicableIdentity APP
3817
3795
  * @applicableIdentity VISITOR
3818
- * @returns Fulfilled - The requested post.
3796
+ * @returns Retrieved post info.
3819
3797
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
3820
3798
  */
3821
- export declare function getPost(postId: string, options?: GetPostOptions): Promise<GetPostResponse & GetPostResponseNonNullableFields>;
3799
+ export declare function getPost(postId: string, options?: GetPostOptions): Promise<Post & PostNonNullableFields>;
3822
3800
  export interface GetPostOptions {
3823
3801
  /**
3824
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3802
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3803
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3804
+ * only the post’s base fields are returned.
3825
3805
  * @maxSize 20
3826
3806
  */
3827
3807
  fieldsets?: PostFieldField[];
3828
3808
  }
3829
3809
  /**
3830
- * Gets a post by the provided slug.
3831
- *
3832
- *
3833
- * The `getPostBySlug()` function returns a Promise that resolves to a post whose slug matches the given slug.
3810
+ * Retrieves a post with the provided slug.
3834
3811
  *
3835
- * The `slug` is the end of a post's URL that refers to a specific post. For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`, the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title, unless specified otherwise.
3812
+ * The slug is the end of a post's URL that refers to a specific post.
3813
+ * For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,
3814
+ * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
3815
+ * unless specified otherwise.
3816
+ * @param slug - Slug of the post to retrieve.
3836
3817
  * @public
3837
3818
  * @requiredField slug
3838
- * @param options - Options specifying which fields to return.
3839
- * @param slug - Slug of the post to retrieve.
3840
- *
3841
- * The end of a post's URL, for example, `https:/example.com/blog/post/my-post-slug`. Case sensitive and generally based on the post title if not specified.
3842
3819
  * @permissionId BLOG.READ-PUBLICATION
3843
3820
  * @permissionScope Read Blog
3844
3821
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3848,28 +3825,26 @@ export interface GetPostOptions {
3848
3825
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3849
3826
  * @applicableIdentity APP
3850
3827
  * @applicableIdentity VISITOR
3851
- * @returns Fulfilled - The requested post.
3852
3828
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
3853
3829
  */
3854
3830
  export declare function getPostBySlug(slug: string, options?: GetPostBySlugOptions): Promise<GetPostBySlugResponse & GetPostBySlugResponseNonNullableFields>;
3855
3831
  export interface GetPostBySlugOptions {
3856
3832
  /**
3857
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3833
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3834
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3835
+ * only the post’s base fields are returned.
3858
3836
  * @maxSize 20
3859
3837
  */
3860
3838
  fieldsets?: PostFieldField[];
3861
3839
  }
3862
3840
  /**
3863
- * Retrieves a list of published posts.
3864
- *
3865
- *
3866
- * The `listPosts()` function returns a Promise that resolves to a list of up to 100 published posts.
3841
+ * Retrieves a list of up to 100 published posts per request.
3867
3842
  *
3868
- * Using the `options` parameter, you can filter your list of posts, set the amount of posts to be returned, and sort your list in a specified order.
3869
- *
3870
- * By default, the list is sorted by `firstPublishedDate` in descending order, and the amount of posts returned is 50.
3843
+ * List Posts runs with these defaults, which you can override:
3844
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3845
+ * - `paging.limit` is `50`.
3846
+ * - `paging.offset` is `0`.
3871
3847
  * @public
3872
- * @param options - Sort, filter, and paging options.
3873
3848
  * @permissionId BLOG.READ-PUBLICATION
3874
3849
  * @permissionScope Read Blog
3875
3850
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3879,52 +3854,47 @@ export interface GetPostBySlugOptions {
3879
3854
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3880
3855
  * @applicableIdentity APP
3881
3856
  * @applicableIdentity VISITOR
3882
- * @returns Fulfilled - List of retrieved posts.
3883
3857
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
3884
3858
  */
3885
3859
  export declare function listPosts(options?: ListPostsOptions): Promise<ListPostsResponse & ListPostsResponseNonNullableFields>;
3886
3860
  export interface ListPostsOptions {
3887
- /** Featured filter. Whether to return only featured posts. */
3888
- featured?: boolean;
3889
3861
  /**
3890
- * List of hashtags to filter for.
3862
+ * Whether to return only featured posts.
3891
3863
  *
3864
+ * Default: `false`
3865
+ */
3866
+ featured?: boolean;
3867
+ /**
3868
+ * Hashtag filter.
3892
3869
  *
3893
- * Default: All hashtags
3870
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3871
+ * If omitted, all posts with or without hashtags are returned.
3894
3872
  * @maxSize 100
3895
3873
  * @maxLength 100
3896
3874
  */
3897
3875
  hashtags?: string[];
3898
3876
  /**
3899
- * List of category IDs to filter for.
3900
- *
3877
+ * Category filter.
3901
3878
  *
3902
- * Default: All categories
3879
+ * Pass an array of category IDs to return only posts with any of the provided categories.
3880
+ * If omitted, all posts with or without associated categories are returned.
3903
3881
  * @maxSize 50
3904
3882
  * @maxLength 38
3905
3883
  */
3906
3884
  categoryIds?: string[];
3907
3885
  /**
3908
- * List of [tag IDs](https://www.wix.com/velo/reference/wix-blog-backend/tags) to filter for.
3909
- *
3886
+ * Tag filter.
3910
3887
  *
3911
- * Default: All tags
3888
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
3889
+ * If omitted, all posts with or without tags are returned.
3912
3890
  * @maxSize 50
3913
3891
  * @maxLength 38
3914
3892
  */
3915
3893
  tagIds?: string[];
3916
3894
  /**
3917
- * Sort order.
3918
- *
3919
- * Sort by one of the following:
3920
- * - `'VIEW_COUNT'` descending view count
3921
- * - `'LIKE_COUNT'` descending like count
3922
- * - `'PUBLISHED_DATE_ASC'` ascending published date
3923
- * - `'PUBLISHED_DATE_DESC'` descending published date
3924
- * - `'TITLE_ASC'` ascending title
3925
- * - `'TITLE_DESC'` descending title
3895
+ * Sorting options.
3926
3896
  *
3927
- * Default: `'PUBLISHED_DATE_DESC'`
3897
+ * Default: `FEED`
3928
3898
  */
3929
3899
  sort?: GetPostsSort;
3930
3900
  /** Pagination options. */
@@ -3932,46 +3902,43 @@ export interface ListPostsOptions {
3932
3902
  /**
3933
3903
  * Language filter.
3934
3904
  *
3935
- *
3936
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
3905
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3906
+ * Pass a language to only receive posts that are in that language.
3907
+ * If omitted, posts in all languages are returned.
3937
3908
  * @format LANGUAGE_TAG
3938
3909
  */
3939
3910
  language?: string | null;
3940
3911
  /**
3941
- * Member ID to filter for.
3942
- *
3943
- *
3944
- * Default: All members
3912
+ * Post owner's member ID.
3945
3913
  * @format GUID
3946
3914
  */
3947
3915
  memberId?: string | null;
3948
3916
  /**
3949
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3917
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3918
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3919
+ * only the post’s base fields are returned.
3950
3920
  * @maxSize 20
3951
3921
  */
3952
3922
  fieldsets?: PostFieldField[];
3953
3923
  }
3954
3924
  /**
3955
- * Creates a query to retrieve a list of posts.
3956
- *
3957
- *
3958
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder) object.
3959
- *
3960
- * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/find) function.
3925
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
3961
3926
  *
3962
- * 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.
3927
+ * Query Posts runs with these defaults, which you can override:
3928
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3929
+ * - `paging.limit` is `50`.
3930
+ * - `paging.offset` is `0`.
3963
3931
  *
3964
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
3965
- * + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
3966
- * + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
3932
+ * For field support for filters and sorting, see
3933
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3967
3934
  *
3968
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
3969
- *
3970
- * To learn how to query posts, refer to the table below.
3971
- *
3972
- * 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`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult/items) property in [`PostsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult).
3935
+ * To learn about working with _Query_ endpoints, see
3936
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3937
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
3938
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3939
+ * For a detailed list of supported filters and sortable fields, see
3940
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3973
3941
  * @public
3974
- * @param options - Options specifying which fields to return.
3975
3942
  * @permissionScope Read Blog
3976
3943
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3977
3944
  * @permissionScope Manage Blog
@@ -3986,7 +3953,9 @@ export interface ListPostsOptions {
3986
3953
  export declare function queryPosts(options?: QueryPostsOptions): PostsQueryBuilder;
3987
3954
  export interface QueryPostsOptions {
3988
3955
  /**
3989
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3956
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3957
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3958
+ * only the post’s base fields are returned.
3990
3959
  * @maxSize 20
3991
3960
  */
3992
3961
  fieldsets?: PostFieldField[] | undefined;
@@ -4054,10 +4023,7 @@ export interface PostsQueryBuilder {
4054
4023
  find: () => Promise<PostsQueryResult>;
4055
4024
  }
4056
4025
  /**
4057
- * Gets a specified post's metrics.
4058
- *
4059
- *
4060
- * The `getPostMetrics()` function returns a Promise that resolves to the specified post's metrics.
4026
+ * Retrieves a post's metrics.
4061
4027
  *
4062
4028
  * A post's metrics include the comments, likes, and views the post receives.
4063
4029
  * @param postId - Post ID to retrieve metrics for.
@@ -4072,7 +4038,6 @@ export interface PostsQueryBuilder {
4072
4038
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
4073
4039
  * @applicableIdentity APP
4074
4040
  * @applicableIdentity VISITOR
4075
- * @returns Fulfilled - Post metrics.
4076
4041
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics
4077
4042
  */
4078
4043
  export declare function getPostMetrics(postId: string): Promise<GetPostMetricsResponse & GetPostMetricsResponseNonNullableFields>;