@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
@@ -2850,124 +2850,15 @@ interface PostUnlikedInitiatorOneOf {
2850
2850
  */
2851
2851
  anonymousVisitorId?: string | null;
2852
2852
  }
2853
- /** Get Blog Publications Count Stats request */
2854
- interface QueryPublicationsCountStatsRequest {
2855
- /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2856
- rangeStart?: Date | null;
2857
- /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2858
- rangeEnd?: Date | null;
2859
- /** Order of the returned results. */
2860
- order?: QueryPublicationsCountStatsRequestOrderWithLiterals;
2861
- /** Number of months to include in the response. */
2862
- months?: number;
2863
- /**
2864
- * Language filter
2865
- *
2866
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2867
- * @format LANGUAGE_TAG
2868
- */
2869
- language?: string | null;
2870
- /**
2871
- * Timezone of the client.
2872
- * @minLength 3
2873
- * @maxLength 100
2874
- */
2875
- timeZone?: string | null;
2876
- }
2877
- declare enum QueryPublicationsCountStatsRequestOrder {
2878
- UNKNOWN = "UNKNOWN",
2879
- OLDEST = "OLDEST",
2880
- NEWEST = "NEWEST"
2881
- }
2882
- /** @enumType */
2883
- type QueryPublicationsCountStatsRequestOrderWithLiterals = QueryPublicationsCountStatsRequestOrder | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
2884
- /** Get Blog Publications Count Stats response */
2885
- interface QueryPublicationsCountStatsResponse {
2886
- /** Chronologically ordered list of publications. */
2887
- stats?: PeriodPublicationsCount[];
2888
- }
2889
- /** Publications count for a specific time period */
2890
- interface PeriodPublicationsCount {
2891
- /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2892
- periodStart?: Date | null;
2893
- /** Number of posts published during this month. */
2894
- publicationsCount?: number;
2895
- }
2896
- /** Get Blog Post Count Stats request */
2897
- interface QueryPostCountStatsRequest {
2898
- /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2899
- rangeStart?: Date | null;
2900
- /**
2901
- * Order of returned results.
2902
- *
2903
- * - `OLDEST`: posts by date in ascending order.
2904
- * - `NEWEST`: posts by date in descending order.
2905
- *
2906
- * Default: `OLDEST`
2907
- */
2908
- order?: OrderWithLiterals;
2909
- /** Number of months to include in response. */
2910
- months?: number;
2911
- /**
2912
- * Language filter.
2913
- *
2914
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2915
- * Pass a language to only receive the period post count for that specified language.
2916
- * @format LANGUAGE_TAG
2917
- */
2918
- language?: string | null;
2919
- /**
2920
- * Time zone to use when calculating the start of the month.
2921
- *
2922
- * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
2923
- * @minLength 3
2924
- * @maxLength 100
2925
- */
2926
- timeZone?: string | null;
2927
- }
2928
- declare enum Order {
2929
- UNKNOWN = "UNKNOWN",
2930
- OLDEST = "OLDEST",
2931
- NEWEST = "NEWEST"
2932
- }
2933
- /** @enumType */
2934
- type OrderWithLiterals = Order | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
2935
- /** Get Blog Post Count Stats response */
2936
- interface QueryPostCountStatsResponse {
2937
- /** List of published post counts by month. */
2938
- stats?: PeriodPostCount[];
2939
- }
2940
- /** Post count for a specific time period */
2941
- interface PeriodPostCount {
2942
- /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
2943
- periodStart?: Date | null;
2944
- /** Number of posts published during this month. */
2945
- postCount?: number;
2946
- }
2947
- interface GetTotalPublicationsRequest {
2948
- /**
2949
- * Language filter
2950
- * @minLength 2
2951
- * @format LANGUAGE_TAG
2952
- */
2953
- language?: string | null;
2954
- }
2955
- interface GetTotalPublicationsResponse {
2956
- /** Total amount of publications. */
2957
- total?: number;
2958
- }
2959
- interface GetTotalPostsRequest {
2853
+ interface GetTotalLikesPerMemberRequest {
2960
2854
  /**
2961
- * Language filter.
2962
- *
2963
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
2964
- * Pass a language to receive the total amount of posts in that specified language.
2965
- * @format LANGUAGE_TAG
2855
+ * Member ID.
2856
+ * @format GUID
2966
2857
  */
2967
- language?: string | null;
2858
+ memberId?: string;
2968
2859
  }
2969
- interface GetTotalPostsResponse {
2970
- /** Total amount of published posts. */
2860
+ interface GetTotalLikesPerMemberResponse {
2861
+ /** The total number of likes of the member. */
2971
2862
  total?: number;
2972
2863
  }
2973
2864
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -3123,15 +3014,124 @@ interface AccountInfo {
3123
3014
  */
3124
3015
  siteId?: string | null;
3125
3016
  }
3126
- interface GetTotalLikesPerMemberRequest {
3017
+ /** Get Blog Publications Count Stats request */
3018
+ interface QueryPublicationsCountStatsRequest {
3019
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3020
+ rangeStart?: Date | null;
3021
+ /** Non-inclusive end of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3022
+ rangeEnd?: Date | null;
3023
+ /** Order of the returned results. */
3024
+ order?: QueryPublicationsCountStatsRequestOrderWithLiterals;
3025
+ /** Number of months to include in the response. */
3026
+ months?: number;
3127
3027
  /**
3128
- * Member ID.
3129
- * @format GUID
3028
+ * Language filter
3029
+ *
3030
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3031
+ * @format LANGUAGE_TAG
3130
3032
  */
3131
- memberId?: string;
3033
+ language?: string | null;
3034
+ /**
3035
+ * Timezone of the client.
3036
+ * @minLength 3
3037
+ * @maxLength 100
3038
+ */
3039
+ timeZone?: string | null;
3132
3040
  }
3133
- interface GetTotalLikesPerMemberResponse {
3134
- /** The total number of likes of the member. */
3041
+ declare enum QueryPublicationsCountStatsRequestOrder {
3042
+ UNKNOWN = "UNKNOWN",
3043
+ OLDEST = "OLDEST",
3044
+ NEWEST = "NEWEST"
3045
+ }
3046
+ /** @enumType */
3047
+ type QueryPublicationsCountStatsRequestOrderWithLiterals = QueryPublicationsCountStatsRequestOrder | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3048
+ /** Get Blog Publications Count Stats response */
3049
+ interface QueryPublicationsCountStatsResponse {
3050
+ /** Chronologically ordered list of publications. */
3051
+ stats?: PeriodPublicationsCount[];
3052
+ }
3053
+ /** Publications count for a specific time period */
3054
+ interface PeriodPublicationsCount {
3055
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3056
+ periodStart?: Date | null;
3057
+ /** Number of posts published during this month. */
3058
+ publicationsCount?: number;
3059
+ }
3060
+ /** Get Blog Post Count Stats request */
3061
+ interface QueryPostCountStatsRequest {
3062
+ /** Start of time range to return, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3063
+ rangeStart?: Date | null;
3064
+ /**
3065
+ * Order of returned results.
3066
+ *
3067
+ * - `OLDEST`: posts by date in ascending order.
3068
+ * - `NEWEST`: posts by date in descending order.
3069
+ *
3070
+ * Default: `OLDEST`
3071
+ */
3072
+ order?: OrderWithLiterals;
3073
+ /** Number of months to include in response. */
3074
+ months?: number;
3075
+ /**
3076
+ * Language filter.
3077
+ *
3078
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3079
+ * Pass a language to only receive the period post count for that specified language.
3080
+ * @format LANGUAGE_TAG
3081
+ */
3082
+ language?: string | null;
3083
+ /**
3084
+ * Time zone to use when calculating the start of the month.
3085
+ *
3086
+ * [UTC timezone offset](https://en.wikipedia.org/wiki/List_of_UTC_offsets) format. For example, New York time zone is `-05`.
3087
+ * @minLength 3
3088
+ * @maxLength 100
3089
+ */
3090
+ timeZone?: string | null;
3091
+ }
3092
+ declare enum Order {
3093
+ UNKNOWN = "UNKNOWN",
3094
+ OLDEST = "OLDEST",
3095
+ NEWEST = "NEWEST"
3096
+ }
3097
+ /** @enumType */
3098
+ type OrderWithLiterals = Order | 'UNKNOWN' | 'OLDEST' | 'NEWEST';
3099
+ /** Get Blog Post Count Stats response */
3100
+ interface QueryPostCountStatsResponse {
3101
+ /** List of published post counts by month. */
3102
+ stats?: PeriodPostCount[];
3103
+ }
3104
+ /** Post count for a specific time period */
3105
+ interface PeriodPostCount {
3106
+ /** Start of time range in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time format. */
3107
+ periodStart?: Date | null;
3108
+ /** Number of posts published during this month. */
3109
+ postCount?: number;
3110
+ }
3111
+ interface GetTotalPublicationsRequest {
3112
+ /**
3113
+ * Language filter
3114
+ * @minLength 2
3115
+ * @format LANGUAGE_TAG
3116
+ */
3117
+ language?: string | null;
3118
+ }
3119
+ interface GetTotalPublicationsResponse {
3120
+ /** Total amount of publications. */
3121
+ total?: number;
3122
+ }
3123
+ interface GetTotalPostsRequest {
3124
+ /**
3125
+ * Language filter.
3126
+ *
3127
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3128
+ * Pass a language to receive the total amount of posts in that specified language.
3129
+ * @format LANGUAGE_TAG
3130
+ */
3131
+ language?: string | null;
3132
+ }
3133
+ interface GetTotalPostsResponse {
3134
+ /** Total amount of published posts. */
3135
3135
  total?: number;
3136
3136
  }
3137
3137
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
@@ -3979,14 +3979,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
3979
3979
  /**
3980
3980
  * Retrieves the number of published posts per month within a specified time range.
3981
3981
  *
3982
- *
3983
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3984
- *
3985
- * 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.
3986
- *
3987
- * >**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.
3982
+ * The time range is set using the `rangeStart` and `months` properties.
3983
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3984
+ * includes the number of `months` following `rangeStart`.
3985
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3986
+ * 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.
3987
+ * > 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.
3988
3988
  * @public
3989
- * @param options - Options specifying time frame, sort, and filter.
3990
3989
  * @permissionId BLOG.READ-PUBLICATION
3991
3990
  * @applicableIdentity APP
3992
3991
  * @returns Get Blog Post Count Stats response
@@ -4027,7 +4026,6 @@ interface QueryPostCountStatsOptions {
4027
4026
  /**
4028
4027
  * Retrieves the total amount of published posts of the blog.
4029
4028
  * @public
4030
- * @param options - Language Options.
4031
4029
  * @permissionId BLOG.READ-PUBLICATION
4032
4030
  * @applicableIdentity APP
4033
4031
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -4048,12 +4046,12 @@ interface GetTotalPostsOptions {
4048
4046
  * @param postId - Post ID.
4049
4047
  * @public
4050
4048
  * @requiredField postId
4051
- * @param options - Options specifying which fields to return.
4052
4049
  * @permissionId BLOG.READ-PUBLICATION
4053
4050
  * @applicableIdentity APP
4051
+ * @returns Retrieved post info.
4054
4052
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
4055
4053
  */
4056
- 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>>;
4054
+ 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>>;
4057
4055
  interface GetPostOptions {
4058
4056
  /**
4059
4057
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -4073,7 +4071,6 @@ interface GetPostOptions {
4073
4071
  * @param slug - Slug of the post to retrieve.
4074
4072
  * @public
4075
4073
  * @requiredField slug
4076
- * @param options - Options specifying which fields to return.
4077
4074
  * @permissionId BLOG.READ-PUBLICATION
4078
4075
  * @applicableIdentity APP
4079
4076
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -4101,7 +4098,6 @@ interface GetPostBySlugOptions {
4101
4098
  * - `paging.limit` is `50`.
4102
4099
  * - `paging.offset` is `0`.
4103
4100
  * @public
4104
- * @param options - Sort, filter, and paging options.
4105
4101
  * @permissionId BLOG.READ-PUBLICATION
4106
4102
  * @applicableIdentity APP
4107
4103
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -4172,26 +4168,18 @@ interface ListPostsOptions {
4172
4168
  fieldsets?: PostFieldFieldWithLiterals[];
4173
4169
  }
4174
4170
  /**
4175
- * Creates a query to retrieve a list of posts.
4176
- *
4177
- *
4178
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
4171
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
4179
4172
  *
4180
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
4181
- *
4182
- * 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.
4183
- *
4184
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
4185
- * + `limit(50)`
4186
- * + `descending('firstPublishedDate')`
4187
- *
4188
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
4189
- *
4190
- * To learn how to query posts, refer to the table below.
4173
+ * Query Posts runs with these defaults, which you can override:
4174
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
4175
+ * - `paging.limit` is `50`.
4176
+ * - `paging.offset` is `0`.
4191
4177
  *
4192
- * 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`.
4178
+ * To learn about working with _Query_ endpoints, see
4179
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4180
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
4181
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4193
4182
  * @public
4194
- * @param options - Options specifying which fields to return.
4195
4183
  * @permissionId BLOG.READ-PUBLICATION
4196
4184
  * @applicableIdentity APP
4197
4185
  * @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)(