@wix/auto_sdk_blog_posts 1.0.158 → 1.0.160

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 +15 -11
  2. package/build/cjs/index.js +43 -85
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +185 -539
  5. package/build/cjs/index.typings.js +33 -80
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +154 -520
  8. package/build/cjs/meta.js +27 -74
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +86 -84
  11. package/build/cjs/schemas.js +153 -147
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +15 -11
  14. package/build/es/index.mjs +42 -82
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +185 -539
  17. package/build/es/index.typings.mjs +32 -77
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +154 -520
  20. package/build/es/meta.mjs +26 -71
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +86 -84
  23. package/build/es/schemas.mjs +153 -147
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +15 -11
  26. package/build/internal/cjs/index.js +43 -85
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +185 -539
  29. package/build/internal/cjs/index.typings.js +33 -80
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +154 -520
  32. package/build/internal/cjs/meta.js +27 -74
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +86 -84
  35. package/build/internal/cjs/schemas.js +153 -147
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +15 -11
  38. package/build/internal/es/index.mjs +42 -82
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +185 -539
  41. package/build/internal/es/index.typings.mjs +32 -77
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +154 -520
  44. package/build/internal/es/meta.mjs +26 -71
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +86 -84
  47. package/build/internal/es/schemas.mjs +153 -147
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,18 +1,19 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, Post, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, GetPostMetricsResponse, PostLikedEnvelope, PostUnlikedEnvelope, PostCreatedEnvelope, PostDeletedEnvelope, PostUpdatedEnvelope, PostQuery, QueryPostsOptions, typedQueryPosts, PostsQueryBuilder } from './index.typings.js';
3
- export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerOrigin, BannerOriginWithLiterals, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, Category, CategoryTranslation, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePostRequest, DeletePostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostCountPerMonthRequest, GetPostCountPerMonthResponse, GetPostCountsRequest, GetPostCountsResponse, GetPostMetricsRequest, GetPostRequest, GetPostResponse, GetPostTemplatesSort, GetPostTemplatesSortWithLiterals, GetPostsSort, GetPostsSortWithLiterals, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListItemNodeData, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListStyle, ListStyleWithLiterals, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, ModerationStatusStatusWithLiterals, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PostCategoriesUpdated, PostCount, PostCountInfo, PostCountPerMonth, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostQuerySpec, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, ScheduledPostPublished, SeoSchema, Settings, ShapeData, ShapeDataStyles, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia, utils } from './index.typings.js';
2
+ import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, GetPostResponse, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, GetPostMetricsResponse, PostLikedEnvelope, PostUnlikedEnvelope, PostCreatedEnvelope, PostDeletedEnvelope, PostUpdatedEnvelope, PostQuery, QueryPostsOptions, typedQueryPosts, PostsQueryBuilder } from './index.typings.js';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkDeletePostsRequest, BulkDeletePostsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeletePostRequest, DeletePostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostCountPerMonthRequest, GetPostCountPerMonthResponse, GetPostCountsRequest, GetPostCountsResponse, GetPostMetricsRequest, GetPostRequest, GetPostsSort, GetPostsSortWithLiterals, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListItemNodeData, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListStyle, ListStyleWithLiterals, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, Post, PostCategoriesUpdated, PostCount, PostCountInfo, PostCountPerMonth, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostQuerySpec, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, ScheduledPostPublished, SeoSchema, Settings, ShapeData, ShapeDataStyles, SketchData, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, Variant, VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia, utils } from './index.typings.js';
4
4
 
5
5
  declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
6
6
  interface QueryPostCountStatsSignature {
7
7
  /**
8
8
  * Retrieves the number of published posts per month within a specified time range.
9
9
  *
10
- * The time range is set using the `rangeStart` and `months` properties.
11
- * The time range always starts on the 1st day of the month set in `rangeStart` and
12
- * includes the number of `months` following `rangeStart`.
13
- * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
14
- * 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.
15
- * > 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.
10
+ *
11
+ * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
12
+ *
13
+ * 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.
14
+ *
15
+ * >**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.
16
+ * @param - Options specifying time frame, sort, and filter.
16
17
  * @returns Get Blog Post Count Stats response
17
18
  */
18
19
  (options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`, 4>>;
@@ -21,6 +22,7 @@ declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature
21
22
  interface GetTotalPostsSignature {
22
23
  /**
23
24
  * Retrieves the total amount of published posts of the blog.
25
+ * @param - Language Options.
24
26
  */
25
27
  (options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`, 2>>;
26
28
  }
@@ -29,9 +31,9 @@ interface GetPostSignature {
29
31
  /**
30
32
  * Retrieves a post by the specified ID.
31
33
  * @param - Post ID.
32
- * @returns Retrieved post info.
34
+ * @param - Options specifying which fields to return.
33
35
  */
34
- (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>>;
36
+ (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>>;
35
37
  }
36
38
  declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
37
39
  interface GetPostBySlugSignature {
@@ -43,6 +45,7 @@ interface GetPostBySlugSignature {
43
45
  * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
44
46
  * unless specified otherwise.
45
47
  * @param - Slug of the post to retrieve.
48
+ * @param - Options specifying which fields to return.
46
49
  */
47
50
  (slug: string, options?: GetPostBySlugOptions): Promise<NonNullablePaths<GetPostBySlugResponse, `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>>;
48
51
  }
@@ -55,6 +58,7 @@ interface ListPostsSignature {
55
58
  * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
56
59
  * - `paging.limit` is `50`.
57
60
  * - `paging.offset` is `0`.
61
+ * @param - Sort, filter, and paging options.
58
62
  */
59
63
  (options?: ListPostsOptions): Promise<NonNullablePaths<ListPostsResponse, `posts` | `posts.${number}._id` | `posts.${number}.title` | `posts.${number}.excerpt` | `posts.${number}.slug` | `posts.${number}.featured` | `posts.${number}.pinned` | `posts.${number}.memberId` | `posts.${number}.commentingEnabled` | `posts.${number}.minutesToRead` | `posts.${number}.seoData.settings.preventAutoRedirect` | `posts.${number}.preview` | `posts.${number}.moderationDetails.submittedBy` | `posts.${number}.moderationDetails.status` | `posts.${number}.media.displayed` | `posts.${number}.media.custom` | `posts.${number}.hasUnpublishedChanges` | `metaData.count` | `metaData.offset` | `metaData.total`, 6>>;
60
64
  }
@@ -102,4 +106,4 @@ declare const onPostDeleted: BuildEventDefinition<typeof onPostDeleted$1> & type
102
106
  */
103
107
  declare const onPostUpdated: BuildEventDefinition<typeof onPostUpdated$1> & typeof onPostUpdated$1;
104
108
 
105
- export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, Post, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostQuery, PostUnlikedEnvelope, PostUpdatedEnvelope, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
109
+ export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetPostResponse, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostQuery, PostUnlikedEnvelope, PostUpdatedEnvelope, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
@@ -25,7 +25,6 @@ __export(index_exports, {
25
25
  AspectRatio: () => AspectRatio,
26
26
  BackdropType: () => BackdropType,
27
27
  BackgroundType: () => BackgroundType,
28
- BannerOrigin: () => BannerOrigin,
29
28
  BannerPosition: () => BannerPosition,
30
29
  ButtonDataType: () => ButtonDataType,
31
30
  CardDataBackgroundType: () => CardDataBackgroundType,
@@ -38,7 +37,6 @@ __export(index_exports, {
38
37
  Field: () => Field,
39
38
  FontType: () => FontType,
40
39
  GIFType: () => GIFType,
41
- GetPostTemplatesSort: () => GetPostTemplatesSort,
42
40
  GetPostsSort: () => GetPostsSort,
43
41
  GradientType: () => GradientType,
44
42
  ImagePosition: () => ImagePosition,
@@ -52,7 +50,6 @@ __export(index_exports, {
52
50
  LineStyle: () => LineStyle,
53
51
  ListStyle: () => ListStyle,
54
52
  MapType: () => MapType,
55
- ModerationStatusStatus: () => ModerationStatusStatus,
56
53
  NodeType: () => NodeType,
57
54
  NullValue: () => NullValue,
58
55
  Order: () => Order,
@@ -78,6 +75,7 @@ __export(index_exports, {
78
75
  TextAlignment: () => TextAlignment,
79
76
  ThumbnailsAlignment: () => ThumbnailsAlignment,
80
77
  Type: () => Type,
78
+ Variant: () => Variant,
81
79
  VerticalAlignment: () => VerticalAlignment,
82
80
  VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
83
81
  ViewMode: () => ViewMode,
@@ -1278,6 +1276,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1278
1276
  DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1279
1277
  DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1280
1278
  DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
1279
+ DecorationType2["SKETCH"] = "SKETCH";
1281
1280
  return DecorationType2;
1282
1281
  })(DecorationType || {});
1283
1282
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -1285,6 +1284,15 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
1285
1284
  FontType2["EM"] = "EM";
1286
1285
  return FontType2;
1287
1286
  })(FontType || {});
1287
+ var Variant = /* @__PURE__ */ ((Variant2) => {
1288
+ Variant2["UNDERLINE"] = "UNDERLINE";
1289
+ Variant2["BOX"] = "BOX";
1290
+ Variant2["CIRCLE"] = "CIRCLE";
1291
+ Variant2["HIGHLIGHT"] = "HIGHLIGHT";
1292
+ Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
1293
+ Variant2["CROSSED_OFF"] = "CROSSED_OFF";
1294
+ return Variant2;
1295
+ })(Variant || {});
1288
1296
  var Position = /* @__PURE__ */ ((Position2) => {
1289
1297
  Position2["START"] = "START";
1290
1298
  Position2["END"] = "END";
@@ -1367,11 +1375,11 @@ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1367
1375
  ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1368
1376
  return ImagePosition2;
1369
1377
  })(ImagePosition || {});
1370
- var BannerOrigin = /* @__PURE__ */ ((BannerOrigin2) => {
1371
- BannerOrigin2["IMAGE"] = "IMAGE";
1372
- BannerOrigin2["LAYOUT"] = "LAYOUT";
1373
- return BannerOrigin2;
1374
- })(BannerOrigin || {});
1378
+ var Origin = /* @__PURE__ */ ((Origin2) => {
1379
+ Origin2["IMAGE"] = "IMAGE";
1380
+ Origin2["LAYOUT"] = "LAYOUT";
1381
+ return Origin2;
1382
+ })(Origin || {});
1375
1383
  var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1376
1384
  BannerPosition2["TOP"] = "TOP";
1377
1385
  BannerPosition2["BOTTOM"] = "BOTTOM";
@@ -1474,73 +1482,12 @@ var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
1474
1482
  ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
1475
1483
  return ColumnSize2;
1476
1484
  })(ColumnSize || {});
1477
- var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
1478
- ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
1479
- ModerationStatusStatus2["APPROVED"] = "APPROVED";
1480
- ModerationStatusStatus2["REJECTED"] = "REJECTED";
1481
- return ModerationStatusStatus2;
1482
- })(ModerationStatusStatus || {});
1483
- var GetPostTemplatesSort = /* @__PURE__ */ ((GetPostTemplatesSort2) => {
1484
- GetPostTemplatesSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1485
- GetPostTemplatesSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1486
- return GetPostTemplatesSort2;
1487
- })(GetPostTemplatesSort || {});
1488
- var Origin = /* @__PURE__ */ ((Origin2) => {
1489
- Origin2["UNKNOWN"] = "UNKNOWN";
1490
- Origin2["ADMIN"] = "ADMIN";
1491
- Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
1492
- Origin2["AUTO_SAVE"] = "AUTO_SAVE";
1493
- Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
1494
- Origin2["IMPORT"] = "IMPORT";
1495
- Origin2["IMPORT_BULK"] = "IMPORT_BULK";
1496
- Origin2["IMPORT_HTML"] = "IMPORT_HTML";
1497
- Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
1498
- Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
1499
- Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
1500
- Origin2["MIGRATION"] = "MIGRATION";
1501
- Origin2["MODERATION"] = "MODERATION";
1502
- Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
1503
- Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
1504
- Origin2["PROVISION"] = "PROVISION";
1505
- Origin2["PUBLISH"] = "PUBLISH";
1506
- Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
1507
- Origin2["REBLOG"] = "REBLOG";
1508
- Origin2["RESTORE"] = "RESTORE";
1509
- Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
1510
- Origin2["TRANSLATION"] = "TRANSLATION";
1511
- Origin2["UNPUBLISH"] = "UNPUBLISH";
1512
- Origin2["UNSCHEDULE"] = "UNSCHEDULE";
1513
- Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
1514
- Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
1515
- Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
1516
- Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
1517
- Origin2["SCHEDULE"] = "SCHEDULE";
1518
- Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
1519
- Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
1520
- Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
1521
- Origin2["DELETE_TAG"] = "DELETE_TAG";
1522
- Origin2["PIN"] = "PIN";
1523
- Origin2["UNPIN"] = "UNPIN";
1524
- Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
1525
- return Origin2;
1526
- })(Origin || {});
1527
1485
  var Status = /* @__PURE__ */ ((Status2) => {
1528
1486
  Status2["UNKNOWN"] = "UNKNOWN";
1529
- Status2["PUBLISHED"] = "PUBLISHED";
1530
- Status2["UNPUBLISHED"] = "UNPUBLISHED";
1531
- Status2["SCHEDULED"] = "SCHEDULED";
1532
- Status2["DELETED"] = "DELETED";
1533
- Status2["IN_REVIEW"] = "IN_REVIEW";
1487
+ Status2["APPROVED"] = "APPROVED";
1488
+ Status2["REJECTED"] = "REJECTED";
1534
1489
  return Status2;
1535
1490
  })(Status || {});
1536
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1537
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1538
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1539
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1540
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1541
- WebhookIdentityType2["APP"] = "APP";
1542
- return WebhookIdentityType2;
1543
- })(WebhookIdentityType || {});
1544
1491
  var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1545
1492
  QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1546
1493
  QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
@@ -1553,6 +1500,14 @@ var Order = /* @__PURE__ */ ((Order2) => {
1553
1500
  Order2["NEWEST"] = "NEWEST";
1554
1501
  return Order2;
1555
1502
  })(Order || {});
1503
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1504
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1505
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1506
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1507
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1508
+ WebhookIdentityType2["APP"] = "APP";
1509
+ return WebhookIdentityType2;
1510
+ })(WebhookIdentityType || {});
1556
1511
  var Field = /* @__PURE__ */ ((Field2) => {
1557
1512
  Field2["UNKNOWN"] = "UNKNOWN";
1558
1513
  Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
@@ -1680,8 +1635,8 @@ async function getPost2(postId, options) {
1680
1635
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1681
1636
  }
1682
1637
  ]),
1683
- ["post.richContent"]
1684
- )?.post;
1638
+ ["post.richContent", "post.rich_content"]
1639
+ );
1685
1640
  } catch (err) {
1686
1641
  const transformedError = (0, import_transform_error.transformError)(
1687
1642
  err,
@@ -1728,7 +1683,7 @@ async function getPostBySlug2(slug, options) {
1728
1683
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1729
1684
  }
1730
1685
  ]),
1731
- ["post.richContent"]
1686
+ ["post.richContent", "post.rich_content"]
1732
1687
  );
1733
1688
  } catch (err) {
1734
1689
  const transformedError = (0, import_transform_error.transformError)(
@@ -1787,7 +1742,7 @@ async function listPosts2(options) {
1787
1742
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1788
1743
  }
1789
1744
  ]),
1790
- ["posts.richContent"]
1745
+ ["posts.richContent", "posts.rich_content"]
1791
1746
  );
1792
1747
  } catch (err) {
1793
1748
  const transformedError = (0, import_transform_error.transformError)(
@@ -1857,7 +1812,7 @@ function queryPosts2(options) {
1857
1812
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1858
1813
  }
1859
1814
  ]),
1860
- ["posts.richContent"]
1815
+ ["posts.richContent", "posts.rich_content"]
1861
1816
  );
1862
1817
  return {
1863
1818
  items: transformedData?.posts,
@@ -1905,7 +1860,7 @@ async function typedQueryPosts(query, options) {
1905
1860
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1906
1861
  }
1907
1862
  ]),
1908
- ["posts.richContent"]
1863
+ ["posts.richContent", "posts.rich_content"]
1909
1864
  );
1910
1865
  } catch (err) {
1911
1866
  const transformedError = (0, import_transform_error.transformError)(
@@ -2019,7 +1974,8 @@ var onPostLiked = (0, import_sdk_types.EventDefinition)(
2019
1974
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2020
1975
  paths: [{ path: "metadata.eventTime" }]
2021
1976
  }
2022
- ])
1977
+ ]),
1978
+ ["entity.rich_content"]
2023
1979
  )
2024
1980
  )();
2025
1981
  var onPostUnliked = (0, import_sdk_types.EventDefinition)(
@@ -2031,7 +1987,8 @@ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
2031
1987
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2032
1988
  paths: [{ path: "metadata.eventTime" }]
2033
1989
  }
2034
- ])
1990
+ ]),
1991
+ ["entity.rich_content"]
2035
1992
  )
2036
1993
  )();
2037
1994
  var onPostCreated = (0, import_sdk_types.EventDefinition)(
@@ -2161,7 +2118,8 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
2161
2118
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2162
2119
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2163
2120
  }
2164
- ])
2121
+ ]),
2122
+ ["entity.rich_content"]
2165
2123
  )
2166
2124
  )();
2167
2125
  var onPostDeleted = (0, import_sdk_types.EventDefinition)(
@@ -2291,7 +2249,8 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
2291
2249
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2292
2250
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2293
2251
  }
2294
- ])
2252
+ ]),
2253
+ ["entity.rich_content"]
2295
2254
  )
2296
2255
  )();
2297
2256
  var onPostUpdated = (0, import_sdk_types.EventDefinition)(
@@ -2421,7 +2380,8 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
2421
2380
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2422
2381
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2423
2382
  }
2424
- ])
2383
+ ]),
2384
+ ["entity.rich_content"]
2425
2385
  )
2426
2386
  )();
2427
2387
 
@@ -2459,7 +2419,6 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2459
2419
  AspectRatio,
2460
2420
  BackdropType,
2461
2421
  BackgroundType,
2462
- BannerOrigin,
2463
2422
  BannerPosition,
2464
2423
  ButtonDataType,
2465
2424
  CardDataBackgroundType,
@@ -2472,7 +2431,6 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2472
2431
  Field,
2473
2432
  FontType,
2474
2433
  GIFType,
2475
- GetPostTemplatesSort,
2476
2434
  GetPostsSort,
2477
2435
  GradientType,
2478
2436
  ImagePosition,
@@ -2486,7 +2444,6 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2486
2444
  LineStyle,
2487
2445
  ListStyle,
2488
2446
  MapType,
2489
- ModerationStatusStatus,
2490
2447
  NodeType,
2491
2448
  NullValue,
2492
2449
  Order,
@@ -2512,6 +2469,7 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2512
2469
  TextAlignment,
2513
2470
  ThumbnailsAlignment,
2514
2471
  Type,
2472
+ Variant,
2515
2473
  VerticalAlignment,
2516
2474
  VerticalAlignmentAlignment,
2517
2475
  ViewMode,