@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;
@@ -194,11 +183,7 @@ export interface CoverMedia extends CoverMediaMediaOneOf {
194
183
  enabled?: boolean;
195
184
  /** Whether cover media is displayed. */
196
185
  displayed?: boolean;
197
- /**
198
- * Whether the cover media is custom.
199
- *
200
- * `false` if the cover media is the first image or video in the post. `true` if set to some other image or video.
201
- */
186
+ /** Whether cover media is custom. If `false` the cover image is set to the first media item that appears in the content. */
202
187
  custom?: boolean;
203
188
  /**
204
189
  * Media alternative text.
@@ -1673,11 +1658,11 @@ export interface TextNodeStyle {
1673
1658
  }
1674
1659
  export interface ModerationDetails {
1675
1660
  /**
1676
- * Member ID of the person who submitted the post.
1661
+ * Member ID of the person submitting the draft post for review.
1677
1662
  * @format GUID
1678
1663
  */
1679
1664
  submittedBy?: string;
1680
- /** Date and time the post was submitted for moderation. */
1665
+ /** Date the post was submitted for review. */
1681
1666
  submittedDate?: Date | null;
1682
1667
  /** Status indicating whether the submission was approved or rejected by the moderator. */
1683
1668
  status?: ModerationStatusStatus;
@@ -1686,7 +1671,7 @@ export interface ModerationDetails {
1686
1671
  * @format GUID
1687
1672
  */
1688
1673
  moderatedBy?: string | null;
1689
- /** Date and time the post was approved or rejected by a moderator. */
1674
+ /** Date the post was approved or rejected. */
1690
1675
  moderationDate?: Date | null;
1691
1676
  }
1692
1677
  export declare enum ModerationStatusStatus {
@@ -1701,11 +1686,7 @@ export interface Media extends MediaMediaOneOf {
1701
1686
  embedMedia?: EmbedMedia;
1702
1687
  /** Whether cover media is displayed. */
1703
1688
  displayed?: boolean;
1704
- /**
1705
- * Whether the cover media is custom.
1706
- *
1707
- * `false` if the cover media is the first image or video in the post. `true` if set to some other image or video.
1708
- */
1689
+ /** Whether custom cover media has been specified. If `false`, the first media item in the post's content serves as cover media. */
1709
1690
  custom?: boolean;
1710
1691
  /**
1711
1692
  * Media alternative text.
@@ -1890,8 +1871,8 @@ export interface QueryPostCountStatsRequest {
1890
1871
  /**
1891
1872
  * Language filter.
1892
1873
  *
1893
- *
1894
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
1874
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1875
+ * Pass a language to only receive the period post count for that specified language.
1895
1876
  * @format LANGUAGE_TAG
1896
1877
  */
1897
1878
  language?: string | null;
@@ -1911,7 +1892,7 @@ export declare enum Order {
1911
1892
  }
1912
1893
  /** Get Blog Post Count Stats response */
1913
1894
  export interface QueryPostCountStatsResponse {
1914
- /** List of posts in specified order. */
1895
+ /** List of published post counts by month. */
1915
1896
  stats?: PeriodPostCount[];
1916
1897
  }
1917
1898
  /** Post count for a specific time period */
@@ -1937,8 +1918,8 @@ export interface GetTotalPostsRequest {
1937
1918
  /**
1938
1919
  * Language filter.
1939
1920
  *
1940
- *
1941
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
1921
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
1922
+ * Pass a language to receive the total amount of posts in that specified language.
1942
1923
  * @format LANGUAGE_TAG
1943
1924
  */
1944
1925
  language?: string | null;
@@ -2146,11 +2127,7 @@ export interface ListTemplatesResponse {
2146
2127
  export interface MetaData {
2147
2128
  /** Number of items returned in this response. */
2148
2129
  count?: number;
2149
- /**
2150
- * Number of items skipped in the current sort order.
2151
- *
2152
- *
2153
- */
2130
+ /** Requested offset. */
2154
2131
  offset?: number;
2155
2132
  /** Total number of items that match the query. */
2156
2133
  total?: number;
@@ -2644,7 +2621,9 @@ export interface GetPostRequest {
2644
2621
  */
2645
2622
  postId: string;
2646
2623
  /**
2647
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2624
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2625
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2626
+ * only the post’s base fields are returned.
2648
2627
  * @maxSize 20
2649
2628
  */
2650
2629
  fieldsets?: PostFieldField[];
@@ -2678,7 +2657,9 @@ export interface GetPostBySlugRequest {
2678
2657
  */
2679
2658
  slug: string;
2680
2659
  /**
2681
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2660
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2661
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2662
+ * only the post’s base fields are returned.
2682
2663
  * @maxSize 20
2683
2664
  */
2684
2665
  fieldsets?: PostFieldField[];
@@ -2721,15 +2702,20 @@ export interface ListPostsRequest {
2721
2702
  * @maxLength 38
2722
2703
  */
2723
2704
  tagIds?: string[];
2724
- /** Sort order by descending view count, ascending or descending publish date, or default to descending by publish date with pinned posts first. */
2705
+ /**
2706
+ * Sorting options.
2707
+ *
2708
+ * Default: `FEED`
2709
+ */
2725
2710
  sort?: GetPostsSort;
2726
2711
  /** Pagination options. */
2727
2712
  paging?: BlogPaging;
2728
2713
  /**
2729
2714
  * Language filter.
2730
2715
  *
2731
- *
2732
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
2716
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2717
+ * Pass a language to only receive posts that are in that language.
2718
+ * If omitted, posts in all languages are returned.
2733
2719
  * @format LANGUAGE_TAG
2734
2720
  */
2735
2721
  language?: string | null;
@@ -2739,7 +2725,9 @@ export interface ListPostsRequest {
2739
2725
  */
2740
2726
  memberId?: string | null;
2741
2727
  /**
2742
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2728
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2729
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2730
+ * only the post’s base fields are returned.
2743
2731
  * @maxSize 20
2744
2732
  */
2745
2733
  fieldsets?: PostFieldField[];
@@ -2770,7 +2758,9 @@ export interface QueryPostsRequest {
2770
2758
  /** Query options. */
2771
2759
  query?: PlatformQuery;
2772
2760
  /**
2773
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
2761
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
2762
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
2763
+ * only the post’s base fields are returned.
2774
2764
  * @maxSize 20
2775
2765
  */
2776
2766
  fieldsets?: PostFieldField[];
@@ -3501,7 +3491,7 @@ interface PostTranslationNonNullableFields {
3501
3491
  seoData?: SeoSchemaNonNullableFields;
3502
3492
  url: string;
3503
3493
  }
3504
- interface PostNonNullableFields {
3494
+ export interface PostNonNullableFields {
3505
3495
  _id: string;
3506
3496
  title: string;
3507
3497
  excerpt: string;
@@ -3704,15 +3694,14 @@ export declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => v
3704
3694
  /**
3705
3695
  * Retrieves the number of published posts per month within a specified time range.
3706
3696
  *
3707
- *
3708
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3709
- *
3710
- * 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.
3711
- *
3712
- * >**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.
3697
+ * The time range is set using the `rangeStart` and `months` properties.
3698
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3699
+ * includes the number of `months` following `rangeStart`.
3700
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3701
+ * 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.
3702
+ * > 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.
3713
3703
  * @public
3714
3704
  * @documentationMaturity preview
3715
- * @param options - Options specifying time frame, sort, and filter.
3716
3705
  * @permissionId BLOG.READ-PUBLICATION
3717
3706
  * @permissionScope Read Blog
3718
3707
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3722,7 +3711,7 @@ export declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => v
3722
3711
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3723
3712
  * @applicableIdentity APP
3724
3713
  * @applicableIdentity VISITOR
3725
- * @returns Fulfilled - Post count stats.
3714
+ * @returns Get Blog Post Count Stats response
3726
3715
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats
3727
3716
  */
3728
3717
  export declare function queryPostCountStats(options?: QueryPostCountStatsOptions): Promise<QueryPostCountStatsResponse & QueryPostCountStatsResponseNonNullableFields>;
@@ -3730,10 +3719,12 @@ export interface QueryPostCountStatsOptions {
3730
3719
  /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3731
3720
  rangeStart?: Date | null;
3732
3721
  /**
3733
- * Sort order.
3734
- * Use `'ASC'` for ascending order or `'DESC'` for descending order.
3722
+ * Order of returned results.
3735
3723
  *
3736
- * Default: `ASC`
3724
+ * - `OLDEST`: posts by date in ascending order.
3725
+ * - `NEWEST`: posts by date in descending order.
3726
+ *
3727
+ * Default: `OLDEST`
3737
3728
  */
3738
3729
  order?: Order;
3739
3730
  /** Number of months to include in response. */
@@ -3741,8 +3732,8 @@ export interface QueryPostCountStatsOptions {
3741
3732
  /**
3742
3733
  * Language filter.
3743
3734
  *
3744
- *
3745
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
3735
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3736
+ * Pass a language to only receive the period post count for that specified language.
3746
3737
  * @format LANGUAGE_TAG
3747
3738
  */
3748
3739
  language?: string | null;
@@ -3756,16 +3747,9 @@ export interface QueryPostCountStatsOptions {
3756
3747
  timeZone?: string | null;
3757
3748
  }
3758
3749
  /**
3759
- * Gets the total amount of published posts on the blog.
3760
- *
3761
- *
3762
- * The `getTotalPosts()` function returns a Promise that resolves to the total amount of published posts on your blog's site.
3763
- *
3764
- *
3765
- * You can use the `language` option to filter posts for a specified language.
3750
+ * Retrieves the total amount of published posts of the blog.
3766
3751
  * @public
3767
3752
  * @documentationMaturity preview
3768
- * @param options - Language Options.
3769
3753
  * @permissionId BLOG.READ-PUBLICATION
3770
3754
  * @permissionScope Read Blog
3771
3755
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3775,7 +3759,6 @@ export interface QueryPostCountStatsOptions {
3775
3759
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3776
3760
  * @applicableIdentity APP
3777
3761
  * @applicableIdentity VISITOR
3778
- * @returns Fulfilled - Total number of posts.
3779
3762
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
3780
3763
  */
3781
3764
  export declare function getTotalPosts(options?: GetTotalPostsOptions): Promise<GetTotalPostsResponse & GetTotalPostsResponseNonNullableFields>;
@@ -3783,22 +3766,17 @@ export interface GetTotalPostsOptions {
3783
3766
  /**
3784
3767
  * Language filter.
3785
3768
  *
3786
- *
3787
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
3769
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3770
+ * Pass a language to receive the total amount of posts in that specified language.
3788
3771
  * @format LANGUAGE_TAG
3789
3772
  */
3790
3773
  language?: string | null;
3791
3774
  }
3792
3775
  /**
3793
- * Gets a post by the specified ID.
3794
- *
3795
- *
3796
- * The `getPost()` function returns a Promise that resolves to a post whose ID matches the given ID.
3797
- *
3776
+ * Retrieves a post by the specified ID.
3798
3777
  * @param postId - Post ID.
3799
3778
  * @public
3800
3779
  * @requiredField postId
3801
- * @param options - Options specifying which fields to return.
3802
3780
  * @permissionId BLOG.READ-PUBLICATION
3803
3781
  * @permissionScope Read Blog
3804
3782
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3808,30 +3786,29 @@ export interface GetTotalPostsOptions {
3808
3786
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3809
3787
  * @applicableIdentity APP
3810
3788
  * @applicableIdentity VISITOR
3811
- * @returns Fulfilled - The requested post.
3789
+ * @returns Retrieved post info.
3812
3790
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
3813
3791
  */
3814
- export declare function getPost(postId: string, options?: GetPostOptions): Promise<GetPostResponse & GetPostResponseNonNullableFields>;
3792
+ export declare function getPost(postId: string, options?: GetPostOptions): Promise<Post & PostNonNullableFields>;
3815
3793
  export interface GetPostOptions {
3816
3794
  /**
3817
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3795
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3796
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3797
+ * only the post’s base fields are returned.
3818
3798
  * @maxSize 20
3819
3799
  */
3820
3800
  fieldsets?: PostFieldField[];
3821
3801
  }
3822
3802
  /**
3823
- * Gets a post by the provided slug.
3824
- *
3825
- *
3826
- * The `getPostBySlug()` function returns a Promise that resolves to a post whose slug matches the given slug.
3803
+ * Retrieves a post with the provided slug.
3827
3804
  *
3828
- * 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.
3805
+ * The slug is the end of a post's URL that refers to a specific post.
3806
+ * For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,
3807
+ * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
3808
+ * unless specified otherwise.
3809
+ * @param slug - Slug of the post to retrieve.
3829
3810
  * @public
3830
3811
  * @requiredField slug
3831
- * @param options - Options specifying which fields to return.
3832
- * @param slug - Slug of the post to retrieve.
3833
- *
3834
- * 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.
3835
3812
  * @permissionId BLOG.READ-PUBLICATION
3836
3813
  * @permissionScope Read Blog
3837
3814
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3841,28 +3818,26 @@ export interface GetPostOptions {
3841
3818
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3842
3819
  * @applicableIdentity APP
3843
3820
  * @applicableIdentity VISITOR
3844
- * @returns Fulfilled - The requested post.
3845
3821
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
3846
3822
  */
3847
3823
  export declare function getPostBySlug(slug: string, options?: GetPostBySlugOptions): Promise<GetPostBySlugResponse & GetPostBySlugResponseNonNullableFields>;
3848
3824
  export interface GetPostBySlugOptions {
3849
3825
  /**
3850
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3826
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3827
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3828
+ * only the post’s base fields are returned.
3851
3829
  * @maxSize 20
3852
3830
  */
3853
3831
  fieldsets?: PostFieldField[];
3854
3832
  }
3855
3833
  /**
3856
- * Retrieves a list of published posts.
3857
- *
3858
- *
3859
- * The `listPosts()` function returns a Promise that resolves to a list of up to 100 published posts.
3834
+ * Retrieves a list of up to 100 published posts per request.
3860
3835
  *
3861
- * 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.
3862
- *
3863
- * By default, the list is sorted by `firstPublishedDate` in descending order, and the amount of posts returned is 50.
3836
+ * List Posts runs with these defaults, which you can override:
3837
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3838
+ * - `paging.limit` is `50`.
3839
+ * - `paging.offset` is `0`.
3864
3840
  * @public
3865
- * @param options - Sort, filter, and paging options.
3866
3841
  * @permissionId BLOG.READ-PUBLICATION
3867
3842
  * @permissionScope Read Blog
3868
3843
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
@@ -3872,52 +3847,47 @@ export interface GetPostBySlugOptions {
3872
3847
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
3873
3848
  * @applicableIdentity APP
3874
3849
  * @applicableIdentity VISITOR
3875
- * @returns Fulfilled - List of retrieved posts.
3876
3850
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
3877
3851
  */
3878
3852
  export declare function listPosts(options?: ListPostsOptions): Promise<ListPostsResponse & ListPostsResponseNonNullableFields>;
3879
3853
  export interface ListPostsOptions {
3880
- /** Featured filter. Whether to return only featured posts. */
3881
- featured?: boolean;
3882
3854
  /**
3883
- * List of hashtags to filter for.
3855
+ * Whether to return only featured posts.
3884
3856
  *
3857
+ * Default: `false`
3858
+ */
3859
+ featured?: boolean;
3860
+ /**
3861
+ * Hashtag filter.
3885
3862
  *
3886
- * Default: All hashtags
3863
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3864
+ * If omitted, all posts with or without hashtags are returned.
3887
3865
  * @maxSize 100
3888
3866
  * @maxLength 100
3889
3867
  */
3890
3868
  hashtags?: string[];
3891
3869
  /**
3892
- * List of category IDs to filter for.
3893
- *
3870
+ * Category filter.
3894
3871
  *
3895
- * Default: All categories
3872
+ * Pass an array of category IDs to return only posts with any of the provided categories.
3873
+ * If omitted, all posts with or without associated categories are returned.
3896
3874
  * @maxSize 50
3897
3875
  * @maxLength 38
3898
3876
  */
3899
3877
  categoryIds?: string[];
3900
3878
  /**
3901
- * List of [tag IDs](https://www.wix.com/velo/reference/wix-blog-backend/tags) to filter for.
3902
- *
3879
+ * Tag filter.
3903
3880
  *
3904
- * Default: All tags
3881
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
3882
+ * If omitted, all posts with or without tags are returned.
3905
3883
  * @maxSize 50
3906
3884
  * @maxLength 38
3907
3885
  */
3908
3886
  tagIds?: string[];
3909
3887
  /**
3910
- * Sort order.
3911
- *
3912
- * Sort by one of the following:
3913
- * - `'VIEW_COUNT'` descending view count
3914
- * - `'LIKE_COUNT'` descending like count
3915
- * - `'PUBLISHED_DATE_ASC'` ascending published date
3916
- * - `'PUBLISHED_DATE_DESC'` descending published date
3917
- * - `'TITLE_ASC'` ascending title
3918
- * - `'TITLE_DESC'` descending title
3888
+ * Sorting options.
3919
3889
  *
3920
- * Default: `'PUBLISHED_DATE_DESC'`
3890
+ * Default: `FEED`
3921
3891
  */
3922
3892
  sort?: GetPostsSort;
3923
3893
  /** Pagination options. */
@@ -3925,46 +3895,43 @@ export interface ListPostsOptions {
3925
3895
  /**
3926
3896
  * Language filter.
3927
3897
  *
3928
- *
3929
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
3898
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3899
+ * Pass a language to only receive posts that are in that language.
3900
+ * If omitted, posts in all languages are returned.
3930
3901
  * @format LANGUAGE_TAG
3931
3902
  */
3932
3903
  language?: string | null;
3933
3904
  /**
3934
- * Member ID to filter for.
3935
- *
3936
- *
3937
- * Default: All members
3905
+ * Post owner's member ID.
3938
3906
  * @format GUID
3939
3907
  */
3940
3908
  memberId?: string | null;
3941
3909
  /**
3942
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3910
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3911
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3912
+ * only the post’s base fields are returned.
3943
3913
  * @maxSize 20
3944
3914
  */
3945
3915
  fieldsets?: PostFieldField[];
3946
3916
  }
3947
3917
  /**
3948
- * Creates a query to retrieve a list of posts.
3949
- *
3950
- *
3951
- * 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.
3952
- *
3953
- * 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.
3918
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
3954
3919
  *
3955
- * 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.
3920
+ * Query Posts runs with these defaults, which you can override:
3921
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3922
+ * - `paging.limit` is `50`.
3923
+ * - `paging.offset` is `0`.
3956
3924
  *
3957
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
3958
- * + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
3959
- * + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
3925
+ * For field support for filters and sorting, see
3926
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3960
3927
  *
3961
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
3962
- *
3963
- * To learn how to query posts, refer to the table below.
3964
- *
3965
- * 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).
3928
+ * To learn about working with _Query_ endpoints, see
3929
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3930
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
3931
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3932
+ * For a detailed list of supported filters and sortable fields, see
3933
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3966
3934
  * @public
3967
- * @param options - Options specifying which fields to return.
3968
3935
  * @permissionScope Read Blog
3969
3936
  * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
3970
3937
  * @permissionScope Manage Blog
@@ -3979,7 +3946,9 @@ export interface ListPostsOptions {
3979
3946
  export declare function queryPosts(options?: QueryPostsOptions): PostsQueryBuilder;
3980
3947
  export interface QueryPostsOptions {
3981
3948
  /**
3982
- * List of post fields to be included in the response. By default, any fields not passed are not returned.
3949
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3950
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3951
+ * only the post’s base fields are returned.
3983
3952
  * @maxSize 20
3984
3953
  */
3985
3954
  fieldsets?: PostFieldField[] | undefined;
@@ -4047,10 +4016,7 @@ export interface PostsQueryBuilder {
4047
4016
  find: () => Promise<PostsQueryResult>;
4048
4017
  }
4049
4018
  /**
4050
- * Gets a specified post's metrics.
4051
- *
4052
- *
4053
- * The `getPostMetrics()` function returns a Promise that resolves to the specified post's metrics.
4019
+ * Retrieves a post's metrics.
4054
4020
  *
4055
4021
  * A post's metrics include the comments, likes, and views the post receives.
4056
4022
  * @param postId - Post ID to retrieve metrics for.
@@ -4065,7 +4031,6 @@ export interface PostsQueryBuilder {
4065
4031
  * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
4066
4032
  * @applicableIdentity APP
4067
4033
  * @applicableIdentity VISITOR
4068
- * @returns Fulfilled - Post metrics.
4069
4034
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics
4070
4035
  */
4071
4036
  export declare function getPostMetrics(postId: string): Promise<GetPostMetricsResponse & GetPostMetricsResponseNonNullableFields>;