@wix/auto_sdk_blog_posts 1.0.163 → 1.0.164

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 (49) hide show
  1. package/build/cjs/index.d.ts +11 -15
  2. package/build/cjs/index.js +19 -24
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +138 -150
  5. package/build/cjs/index.typings.js +14 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +121 -121
  8. package/build/cjs/meta.js +8 -8
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +82 -84
  11. package/build/cjs/schemas.js +147 -153
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +11 -15
  14. package/build/es/index.mjs +19 -24
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +138 -150
  17. package/build/es/index.typings.mjs +14 -14
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +121 -121
  20. package/build/es/meta.mjs +8 -8
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +82 -84
  23. package/build/es/schemas.mjs +147 -153
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +11 -15
  26. package/build/internal/cjs/index.js +19 -24
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +138 -150
  29. package/build/internal/cjs/index.typings.js +14 -14
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +121 -121
  32. package/build/internal/cjs/meta.js +8 -8
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +82 -84
  35. package/build/internal/cjs/schemas.js +147 -153
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +11 -15
  38. package/build/internal/es/index.mjs +19 -24
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +138 -150
  41. package/build/internal/es/index.typings.mjs +14 -14
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +121 -121
  44. package/build/internal/es/meta.mjs +8 -8
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +82 -84
  47. package/build/internal/es/schemas.mjs +147 -153
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -2843,124 +2843,15 @@ interface PostUnlikedInitiatorOneOf {
2843
2843
  */
2844
2844
  anonymousVisitorId?: string | null;
2845
2845
  }
2846
- /** Get Blog Publications Count Stats request */
2847
- interface QueryPublicationsCountStatsRequest {
2848
- /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2849
- rangeStart?: Date | null;
2850
- /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2851
- rangeEnd?: Date | null;
2852
- /** Order of the returned results. */
2853
- order?: QueryPublicationsCountStatsRequestOrderWithLiterals;
2854
- /** Number of months to include in the response. */
2855
- months?: number;
2856
- /**
2857
- * Language filter
2858
- *
2859
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2860
- * @format LANGUAGE_TAG
2861
- */
2862
- language?: string | null;
2863
- /**
2864
- * Timezone of the client.
2865
- * @minLength 3
2866
- * @maxLength 100
2867
- */
2868
- timeZone?: string | null;
2869
- }
2870
- declare enum QueryPublicationsCountStatsRequestOrder {
2871
- UNKNOWN = "UNKNOWN",
2872
- OLDEST = "OLDEST",
2873
- NEWEST = "NEWEST"
2874
- }
2875
- /** @enumType */
2876
- type QueryPublicationsCountStatsRequestOrderWithLiterals = QueryPublicationsCountStatsRequestOrder | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
2877
- /** Get Blog Publications Count Stats response */
2878
- interface QueryPublicationsCountStatsResponse {
2879
- /** Chronologically ordered list of publications. */
2880
- stats?: PeriodPublicationsCount[];
2881
- }
2882
- /** Publications count for a specific time period */
2883
- interface PeriodPublicationsCount {
2884
- /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2885
- periodStart?: Date | null;
2886
- /** Number of posts published during this month. */
2887
- publicationsCount?: number;
2888
- }
2889
- /** Get Blog Post Count Stats request */
2890
- interface QueryPostCountStatsRequest {
2891
- /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2892
- rangeStart?: Date | null;
2893
- /**
2894
- * Order of returned results.
2895
- *
2896
- * - `OLDEST`: posts by date in ascending order.
2897
- * - `NEWEST`: posts by date in descending order.
2898
- *
2899
- * Default: `OLDEST`
2900
- */
2901
- order?: OrderWithLiterals;
2902
- /** Number of months to include in response. */
2903
- months?: number;
2904
- /**
2905
- * Language filter.
2906
- *
2907
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2908
- * Pass a language to only receive the period post count for that specified language.
2909
- * @format LANGUAGE_TAG
2910
- */
2911
- language?: string | null;
2912
- /**
2913
- * Time zone to use when calculating the start of the month.
2914
- *
2915
- * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
2916
- * @minLength 3
2917
- * @maxLength 100
2918
- */
2919
- timeZone?: string | null;
2920
- }
2921
- declare enum Order {
2922
- UNKNOWN = "UNKNOWN",
2923
- OLDEST = "OLDEST",
2924
- NEWEST = "NEWEST"
2925
- }
2926
- /** @enumType */
2927
- type OrderWithLiterals = Order | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
2928
- /** Get Blog Post Count Stats response */
2929
- interface QueryPostCountStatsResponse {
2930
- /** List of published post counts by month. */
2931
- stats?: PeriodPostCount[];
2932
- }
2933
- /** Post count for a specific time period */
2934
- interface PeriodPostCount {
2935
- /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2936
- periodStart?: Date | null;
2937
- /** Number of posts published during this month. */
2938
- postCount?: number;
2939
- }
2940
- interface GetTotalPublicationsRequest {
2941
- /**
2942
- * Language filter
2943
- * @minLength 2
2944
- * @format LANGUAGE_TAG
2945
- */
2946
- language?: string | null;
2947
- }
2948
- interface GetTotalPublicationsResponse {
2949
- /** Total amount of publications. */
2950
- total?: number;
2951
- }
2952
- interface GetTotalPostsRequest {
2846
+ interface GetTotalLikesPerMemberRequest {
2953
2847
  /**
2954
- * Language filter.
2955
- *
2956
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2957
- * Pass a language to receive the total amount of posts in that specified language.
2958
- * @format LANGUAGE_TAG
2848
+ * Member ID.
2849
+ * @format GUID
2959
2850
  */
2960
- language?: string | null;
2851
+ memberId?: string;
2961
2852
  }
2962
- interface GetTotalPostsResponse {
2963
- /** Total amount of published posts. */
2853
+ interface GetTotalLikesPerMemberResponse {
2854
+ /** The total number of likes of the member. */
2964
2855
  total?: number;
2965
2856
  }
2966
2857
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -3116,15 +3007,124 @@ interface AccountInfo {
3116
3007
  */
3117
3008
  siteId?: string | null;
3118
3009
  }
3119
- interface GetTotalLikesPerMemberRequest {
3010
+ /** Get Blog Publications Count Stats request */
3011
+ interface QueryPublicationsCountStatsRequest {
3012
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3013
+ rangeStart?: Date | null;
3014
+ /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3015
+ rangeEnd?: Date | null;
3016
+ /** Order of the returned results. */
3017
+ order?: QueryPublicationsCountStatsRequestOrderWithLiterals;
3018
+ /** Number of months to include in the response. */
3019
+ months?: number;
3120
3020
  /**
3121
- * Member ID.
3122
- * @format GUID
3021
+ * Language filter
3022
+ *
3023
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3024
+ * @format LANGUAGE_TAG
3123
3025
  */
3124
- memberId?: string;
3026
+ language?: string | null;
3027
+ /**
3028
+ * Timezone of the client.
3029
+ * @minLength 3
3030
+ * @maxLength 100
3031
+ */
3032
+ timeZone?: string | null;
3125
3033
  }
3126
- interface GetTotalLikesPerMemberResponse {
3127
- /** The total number of likes of the member. */
3034
+ declare enum QueryPublicationsCountStatsRequestOrder {
3035
+ UNKNOWN = "UNKNOWN",
3036
+ OLDEST = "OLDEST",
3037
+ NEWEST = "NEWEST"
3038
+ }
3039
+ /** @enumType */
3040
+ type QueryPublicationsCountStatsRequestOrderWithLiterals = QueryPublicationsCountStatsRequestOrder | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3041
+ /** Get Blog Publications Count Stats response */
3042
+ interface QueryPublicationsCountStatsResponse {
3043
+ /** Chronologically ordered list of publications. */
3044
+ stats?: PeriodPublicationsCount[];
3045
+ }
3046
+ /** Publications count for a specific time period */
3047
+ interface PeriodPublicationsCount {
3048
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3049
+ periodStart?: Date | null;
3050
+ /** Number of posts published during this month. */
3051
+ publicationsCount?: number;
3052
+ }
3053
+ /** Get Blog Post Count Stats request */
3054
+ interface QueryPostCountStatsRequest {
3055
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3056
+ rangeStart?: Date | null;
3057
+ /**
3058
+ * Order of returned results.
3059
+ *
3060
+ * - `OLDEST`: posts by date in ascending order.
3061
+ * - `NEWEST`: posts by date in descending order.
3062
+ *
3063
+ * Default: `OLDEST`
3064
+ */
3065
+ order?: OrderWithLiterals;
3066
+ /** Number of months to include in response. */
3067
+ months?: number;
3068
+ /**
3069
+ * Language filter.
3070
+ *
3071
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3072
+ * Pass a language to only receive the period post count for that specified language.
3073
+ * @format LANGUAGE_TAG
3074
+ */
3075
+ language?: string | null;
3076
+ /**
3077
+ * Time zone to use when calculating the start of the month.
3078
+ *
3079
+ * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
3080
+ * @minLength 3
3081
+ * @maxLength 100
3082
+ */
3083
+ timeZone?: string | null;
3084
+ }
3085
+ declare enum Order {
3086
+ UNKNOWN = "UNKNOWN",
3087
+ OLDEST = "OLDEST",
3088
+ NEWEST = "NEWEST"
3089
+ }
3090
+ /** @enumType */
3091
+ type OrderWithLiterals = Order | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3092
+ /** Get Blog Post Count Stats response */
3093
+ interface QueryPostCountStatsResponse {
3094
+ /** List of published post counts by month. */
3095
+ stats?: PeriodPostCount[];
3096
+ }
3097
+ /** Post count for a specific time period */
3098
+ interface PeriodPostCount {
3099
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3100
+ periodStart?: Date | null;
3101
+ /** Number of posts published during this month. */
3102
+ postCount?: number;
3103
+ }
3104
+ interface GetTotalPublicationsRequest {
3105
+ /**
3106
+ * Language filter
3107
+ * @minLength 2
3108
+ * @format LANGUAGE_TAG
3109
+ */
3110
+ language?: string | null;
3111
+ }
3112
+ interface GetTotalPublicationsResponse {
3113
+ /** Total amount of publications. */
3114
+ total?: number;
3115
+ }
3116
+ interface GetTotalPostsRequest {
3117
+ /**
3118
+ * Language filter.
3119
+ *
3120
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3121
+ * Pass a language to receive the total amount of posts in that specified language.
3122
+ * @format LANGUAGE_TAG
3123
+ */
3124
+ language?: string | null;
3125
+ }
3126
+ interface GetTotalPostsResponse {
3127
+ /** Total amount of published posts. */
3128
3128
  total?: number;
3129
3129
  }
3130
3130
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
@@ -3972,14 +3972,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
3972
3972
  /**
3973
3973
  * Retrieves the number of published posts per month within a specified time range.
3974
3974
  *
3975
- *
3976
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3977
- *
3978
- * 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.
3979
- *
3980
- * >**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.
3975
+ * The time range is set using the `rangeStart` and `months` properties.
3976
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3977
+ * includes the number of `months` following `rangeStart`.
3978
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3979
+ * 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.
3980
+ * > 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.
3981
3981
  * @public
3982
- * @param options - Options specifying time frame, sort, and filter.
3983
3982
  * @permissionId BLOG.READ-PUBLICATION
3984
3983
  * @applicableIdentity APP
3985
3984
  * @returns Get Blog Post Count Stats response
@@ -4020,7 +4019,6 @@ interface QueryPostCountStatsOptions {
4020
4019
  /**
4021
4020
  * Retrieves the total amount of published posts of the blog.
4022
4021
  * @public
4023
- * @param options - Language Options.
4024
4022
  * @permissionId BLOG.READ-PUBLICATION
4025
4023
  * @applicableIdentity APP
4026
4024
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -4041,12 +4039,12 @@ interface GetTotalPostsOptions {
4041
4039
  * @param postId - Post ID.
4042
4040
  * @public
4043
4041
  * @requiredField postId
4044
- * @param options - Options specifying which fields to return.
4045
4042
  * @permissionId BLOG.READ-PUBLICATION
4046
4043
  * @applicableIdentity APP
4044
+ * @returns Retrieved post info.
4047
4045
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
4048
4046
  */
4049
- declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.memberId` | `post.hashtags` | `post.commentingEnabled` | `post.minutesToRead` | `post.tagIds` | `post.relatedPostIds` | `post.pricingPlanIds` | `post.seoData.tags` | `post.seoData.tags.${number}.type` | `post.seoData.tags.${number}.children` | `post.seoData.tags.${number}.custom` | `post.seoData.tags.${number}.disabled` | `post.seoData.settings.preventAutoRedirect` | `post.seoData.settings.keywords` | `post.seoData.settings.keywords.${number}.term` | `post.seoData.settings.keywords.${number}.isMain` | `post.preview` | `post.moderationDetails.submittedBy` | `post.moderationDetails.status` | `post.media.embedMedia.thumbnail.url` | `post.media.embedMedia.thumbnail.width` | `post.media.embedMedia.thumbnail.height` | `post.media.embedMedia.video.url` | `post.media.embedMedia.video.width` | `post.media.embedMedia.video.height` | `post.media.displayed` | `post.media.custom` | `post.hasUnpublishedChanges`, 7>>;
4047
+ declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<Post, `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`, 6>>;
4050
4048
  interface GetPostOptions {
4051
4049
  /**
4052
4050
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -4066,7 +4064,6 @@ interface GetPostOptions {
4066
4064
  * @param slug - Slug of the post to retrieve.
4067
4065
  * @public
4068
4066
  * @requiredField slug
4069
- * @param options - Options specifying which fields to return.
4070
4067
  * @permissionId BLOG.READ-PUBLICATION
4071
4068
  * @applicableIdentity APP
4072
4069
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -4094,7 +4091,6 @@ interface GetPostBySlugOptions {
4094
4091
  * - `paging.limit` is `50`.
4095
4092
  * - `paging.offset` is `0`.
4096
4093
  * @public
4097
- * @param options - Sort, filter, and paging options.
4098
4094
  * @permissionId BLOG.READ-PUBLICATION
4099
4095
  * @applicableIdentity APP
4100
4096
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -4165,26 +4161,18 @@ interface ListPostsOptions {
4165
4161
  fieldsets?: PostFieldFieldWithLiterals[];
4166
4162
  }
4167
4163
  /**
4168
- * Creates a query to retrieve a list of posts.
4169
- *
4170
- *
4171
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
4164
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
4172
4165
  *
4173
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
4174
- *
4175
- * 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.
4176
- *
4177
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
4178
- * + `limit(50)`
4179
- * + `descending('firstPublishedDate')`
4180
- *
4181
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
4182
- *
4183
- * To learn how to query posts, refer to the table below.
4166
+ * Query Posts runs with these defaults, which you can override:
4167
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
4168
+ * - `paging.limit` is `50`.
4169
+ * - `paging.offset` is `0`.
4184
4170
  *
4185
- * 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`.
4171
+ * To learn about working with _Query_ endpoints, see
4172
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4173
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
4174
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4186
4175
  * @public
4187
- * @param options - Options specifying which fields to return.
4188
4176
  * @permissionId BLOG.READ-PUBLICATION
4189
4177
  * @applicableIdentity APP
4190
4178
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
@@ -1597,6 +1597,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
1597
1597
  Status2["REJECTED"] = "REJECTED";
1598
1598
  return Status2;
1599
1599
  })(Status || {});
1600
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1601
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1602
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1603
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1604
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1605
+ WebhookIdentityType2["APP"] = "APP";
1606
+ return WebhookIdentityType2;
1607
+ })(WebhookIdentityType || {});
1600
1608
  var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1601
1609
  QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1602
1610
  QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
@@ -1609,14 +1617,6 @@ var Order = /* @__PURE__ */ ((Order2) => {
1609
1617
  Order2["NEWEST"] = "NEWEST";
1610
1618
  return Order2;
1611
1619
  })(Order || {});
1612
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1613
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1614
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1615
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1616
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1617
- WebhookIdentityType2["APP"] = "APP";
1618
- return WebhookIdentityType2;
1619
- })(WebhookIdentityType || {});
1620
1620
  var Field = /* @__PURE__ */ ((Field2) => {
1621
1621
  Field2["UNKNOWN"] = "UNKNOWN";
1622
1622
  Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
@@ -1744,8 +1744,8 @@ async function getPost2(postId, options) {
1744
1744
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1745
1745
  }
1746
1746
  ]),
1747
- ["post.richContent", "post.rich_content"]
1748
- );
1747
+ ["post.richContent"]
1748
+ )?.post;
1749
1749
  } catch (err) {
1750
1750
  const transformedError = (0, import_transform_error.transformError)(
1751
1751
  err,
@@ -1792,7 +1792,7 @@ async function getPostBySlug2(slug, options) {
1792
1792
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1793
1793
  }
1794
1794
  ]),
1795
- ["post.richContent", "post.rich_content"]
1795
+ ["post.richContent"]
1796
1796
  );
1797
1797
  } catch (err) {
1798
1798
  const transformedError = (0, import_transform_error.transformError)(
@@ -1851,7 +1851,7 @@ async function listPosts2(options) {
1851
1851
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1852
1852
  }
1853
1853
  ]),
1854
- ["posts.richContent", "posts.rich_content"]
1854
+ ["posts.richContent"]
1855
1855
  );
1856
1856
  } catch (err) {
1857
1857
  const transformedError = (0, import_transform_error.transformError)(
@@ -1921,7 +1921,7 @@ function queryPosts2(options) {
1921
1921
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1922
1922
  }
1923
1923
  ]),
1924
- ["posts.richContent", "posts.rich_content"]
1924
+ ["posts.richContent"]
1925
1925
  );
1926
1926
  return {
1927
1927
  items: transformedData?.posts,
@@ -1969,7 +1969,7 @@ async function typedQueryPosts(query, options) {
1969
1969
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1970
1970
  }
1971
1971
  ]),
1972
- ["posts.richContent", "posts.rich_content"]
1972
+ ["posts.richContent"]
1973
1973
  );
1974
1974
  } catch (err) {
1975
1975
  const transformedError = (0, import_transform_error.transformError)(