@wix/auto_sdk_blog_posts 1.0.140 → 1.0.141

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 (37) hide show
  1. package/build/cjs/index.d.ts +11 -15
  2. package/build/cjs/index.js +73 -43
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +576 -533
  5. package/build/cjs/index.typings.js +59 -30
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +413 -358
  8. package/build/cjs/meta.js +53 -24
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +11 -15
  11. package/build/es/index.mjs +71 -43
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +576 -533
  14. package/build/es/index.typings.mjs +57 -30
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +413 -358
  17. package/build/es/meta.mjs +51 -24
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +11 -15
  20. package/build/internal/cjs/index.js +73 -43
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +576 -533
  23. package/build/internal/cjs/index.typings.js +59 -30
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +413 -358
  26. package/build/internal/cjs/meta.js +53 -24
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +11 -15
  29. package/build/internal/es/index.mjs +71 -43
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +576 -533
  32. package/build/internal/es/index.typings.mjs +57 -30
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +413 -358
  35. package/build/internal/es/meta.mjs +51 -24
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -1,19 +1,18 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
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, BannerOrigin, BannerOriginWithLiterals, 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, CodeBlockData, CollapsibleListData, ColorData, Colors, 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, 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, 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, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, 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, 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, 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, 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, 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, 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, CodeBlockData, CollapsibleListData, ColorData, Colors, 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, 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, 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';
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
- *
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.
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.
17
16
  * @returns Get Blog Post Count Stats response
18
17
  */
19
18
  (options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`, 4>>;
@@ -22,7 +21,6 @@ declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature
22
21
  interface GetTotalPostsSignature {
23
22
  /**
24
23
  * Retrieves the total amount of published posts of the blog.
25
- * @param - Language Options.
26
24
  */
27
25
  (options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`, 2>>;
28
26
  }
@@ -31,9 +29,9 @@ interface GetPostSignature {
31
29
  /**
32
30
  * Retrieves a post by the specified ID.
33
31
  * @param - Post ID.
34
- * @param - Options specifying which fields to return.
32
+ * @returns Retrieved post info.
35
33
  */
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>>;
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>>;
37
35
  }
38
36
  declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
39
37
  interface GetPostBySlugSignature {
@@ -45,7 +43,6 @@ interface GetPostBySlugSignature {
45
43
  * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
46
44
  * unless specified otherwise.
47
45
  * @param - Slug of the post to retrieve.
48
- * @param - Options specifying which fields to return.
49
46
  */
50
47
  (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>>;
51
48
  }
@@ -58,7 +55,6 @@ interface ListPostsSignature {
58
55
  * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
59
56
  * - `paging.limit` is `50`.
60
57
  * - `paging.offset` is `0`.
61
- * @param - Sort, filter, and paging options.
62
58
  */
63
59
  (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>>;
64
60
  }
@@ -106,4 +102,4 @@ declare const onPostDeleted: BuildEventDefinition<typeof onPostDeleted$1> & type
106
102
  */
107
103
  declare const onPostUpdated: BuildEventDefinition<typeof onPostUpdated$1> & typeof onPostUpdated$1;
108
104
 
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 };
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 };
@@ -42,11 +42,13 @@ __export(index_exports, {
42
42
  ImagePosition: () => ImagePosition,
43
43
  ImagePositionPosition: () => ImagePositionPosition,
44
44
  ImageScalingScaling: () => ImageScalingScaling,
45
+ Indentation: () => Indentation,
45
46
  InitialExpandedItems: () => InitialExpandedItems,
46
47
  Layout: () => Layout,
47
48
  LayoutDataBackgroundType: () => LayoutDataBackgroundType,
48
49
  LayoutType: () => LayoutType,
49
50
  LineStyle: () => LineStyle,
51
+ ListStyle: () => ListStyle,
50
52
  MapType: () => MapType,
51
53
  ModerationStatusStatus: () => ModerationStatusStatus,
52
54
  NodeType: () => NodeType,
@@ -555,7 +557,9 @@ function getPost(payload) {
555
557
  },
556
558
  {
557
559
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
558
- }
560
+ },
561
+ { path: "post.richContent.nodes.tocData.fontSize" },
562
+ { path: "post.richContent.nodes.tocData.itemSpacing" }
559
563
  ]
560
564
  }
561
565
  ])
@@ -701,7 +705,9 @@ function getPostBySlug(payload) {
701
705
  },
702
706
  {
703
707
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
704
- }
708
+ },
709
+ { path: "post.richContent.nodes.tocData.fontSize" },
710
+ { path: "post.richContent.nodes.tocData.itemSpacing" }
705
711
  ]
706
712
  }
707
713
  ])
@@ -851,7 +857,9 @@ function listPosts(payload) {
851
857
  },
852
858
  {
853
859
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
854
- }
860
+ },
861
+ { path: "posts.richContent.nodes.tocData.fontSize" },
862
+ { path: "posts.richContent.nodes.tocData.itemSpacing" }
855
863
  ]
856
864
  }
857
865
  ])
@@ -1001,7 +1009,9 @@ function queryPosts(payload) {
1001
1009
  },
1002
1010
  {
1003
1011
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1004
- }
1012
+ },
1013
+ { path: "posts.richContent.nodes.tocData.fontSize" },
1014
+ { path: "posts.richContent.nodes.tocData.itemSpacing" }
1005
1015
  ]
1006
1016
  }
1007
1017
  ])
@@ -1080,6 +1090,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
1080
1090
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
1081
1091
  NodeType2["SHAPE"] = "SHAPE";
1082
1092
  NodeType2["CARD"] = "CARD";
1093
+ NodeType2["TOC"] = "TOC";
1083
1094
  return NodeType2;
1084
1095
  })(NodeType || {});
1085
1096
  var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
@@ -1190,6 +1201,7 @@ var Source = /* @__PURE__ */ ((Source2) => {
1190
1201
  Source2["HTML"] = "HTML";
1191
1202
  Source2["ADSENSE"] = "ADSENSE";
1192
1203
  Source2["AI"] = "AI";
1204
+ Source2["AI_WIDGET"] = "AI_WIDGET";
1193
1205
  return Source2;
1194
1206
  })(Source || {});
1195
1207
  var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
@@ -1391,32 +1403,27 @@ var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
1391
1403
  CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
1392
1404
  return CardDataBackgroundType2;
1393
1405
  })(CardDataBackgroundType || {});
1406
+ var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
1407
+ ListStyle2["PLAIN"] = "PLAIN";
1408
+ ListStyle2["NUMBERED"] = "NUMBERED";
1409
+ ListStyle2["LETTERS"] = "LETTERS";
1410
+ ListStyle2["ROMAN"] = "ROMAN";
1411
+ ListStyle2["BULLETED"] = "BULLETED";
1412
+ ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
1413
+ ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
1414
+ return ListStyle2;
1415
+ })(ListStyle || {});
1416
+ var Indentation = /* @__PURE__ */ ((Indentation2) => {
1417
+ Indentation2["NESTED"] = "NESTED";
1418
+ Indentation2["FLAT"] = "FLAT";
1419
+ return Indentation2;
1420
+ })(Indentation || {});
1394
1421
  var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
1395
1422
  ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
1396
1423
  ModerationStatusStatus2["APPROVED"] = "APPROVED";
1397
1424
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
1398
1425
  return ModerationStatusStatus2;
1399
1426
  })(ModerationStatusStatus || {});
1400
- var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1401
- QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1402
- QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1403
- QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1404
- return QueryPublicationsCountStatsRequestOrder2;
1405
- })(QueryPublicationsCountStatsRequestOrder || {});
1406
- var Order = /* @__PURE__ */ ((Order2) => {
1407
- Order2["UNKNOWN"] = "UNKNOWN";
1408
- Order2["OLDEST"] = "OLDEST";
1409
- Order2["NEWEST"] = "NEWEST";
1410
- return Order2;
1411
- })(Order || {});
1412
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1413
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1414
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1415
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1416
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1417
- WebhookIdentityType2["APP"] = "APP";
1418
- return WebhookIdentityType2;
1419
- })(WebhookIdentityType || {});
1420
1427
  var GetPostTemplatesSort = /* @__PURE__ */ ((GetPostTemplatesSort2) => {
1421
1428
  GetPostTemplatesSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1422
1429
  GetPostTemplatesSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
@@ -1470,6 +1477,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
1470
1477
  Status2["IN_REVIEW"] = "IN_REVIEW";
1471
1478
  return Status2;
1472
1479
  })(Status || {});
1480
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1481
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1482
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1483
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1484
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1485
+ WebhookIdentityType2["APP"] = "APP";
1486
+ return WebhookIdentityType2;
1487
+ })(WebhookIdentityType || {});
1488
+ var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1489
+ QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1490
+ QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1491
+ QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1492
+ return QueryPublicationsCountStatsRequestOrder2;
1493
+ })(QueryPublicationsCountStatsRequestOrder || {});
1494
+ var Order = /* @__PURE__ */ ((Order2) => {
1495
+ Order2["UNKNOWN"] = "UNKNOWN";
1496
+ Order2["OLDEST"] = "OLDEST";
1497
+ Order2["NEWEST"] = "NEWEST";
1498
+ return Order2;
1499
+ })(Order || {});
1473
1500
  var Field = /* @__PURE__ */ ((Field2) => {
1474
1501
  Field2["UNKNOWN"] = "UNKNOWN";
1475
1502
  Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
@@ -1597,8 +1624,8 @@ async function getPost2(postId, options) {
1597
1624
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1598
1625
  }
1599
1626
  ]),
1600
- ["post.richContent", "post.rich_content"]
1601
- );
1627
+ ["post.richContent"]
1628
+ )?.post;
1602
1629
  } catch (err) {
1603
1630
  const transformedError = (0, import_transform_error.transformError)(
1604
1631
  err,
@@ -1645,7 +1672,7 @@ async function getPostBySlug2(slug, options) {
1645
1672
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1646
1673
  }
1647
1674
  ]),
1648
- ["post.richContent", "post.rich_content"]
1675
+ ["post.richContent"]
1649
1676
  );
1650
1677
  } catch (err) {
1651
1678
  const transformedError = (0, import_transform_error.transformError)(
@@ -1704,7 +1731,7 @@ async function listPosts2(options) {
1704
1731
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1705
1732
  }
1706
1733
  ]),
1707
- ["posts.richContent", "posts.rich_content"]
1734
+ ["posts.richContent"]
1708
1735
  );
1709
1736
  } catch (err) {
1710
1737
  const transformedError = (0, import_transform_error.transformError)(
@@ -1774,7 +1801,7 @@ function queryPosts2(options) {
1774
1801
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1775
1802
  }
1776
1803
  ]),
1777
- ["posts.richContent", "posts.rich_content"]
1804
+ ["posts.richContent"]
1778
1805
  );
1779
1806
  return {
1780
1807
  items: transformedData?.posts,
@@ -1822,7 +1849,7 @@ async function typedQueryPosts(query, options) {
1822
1849
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1823
1850
  }
1824
1851
  ]),
1825
- ["posts.richContent", "posts.rich_content"]
1852
+ ["posts.richContent"]
1826
1853
  );
1827
1854
  } catch (err) {
1828
1855
  const transformedError = (0, import_transform_error.transformError)(
@@ -1936,8 +1963,7 @@ var onPostLiked = (0, import_sdk_types.EventDefinition)(
1936
1963
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1937
1964
  paths: [{ path: "metadata.eventTime" }]
1938
1965
  }
1939
- ]),
1940
- ["entity.rich_content"]
1966
+ ])
1941
1967
  )
1942
1968
  )();
1943
1969
  var onPostUnliked = (0, import_sdk_types.EventDefinition)(
@@ -1949,8 +1975,7 @@ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
1949
1975
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1950
1976
  paths: [{ path: "metadata.eventTime" }]
1951
1977
  }
1952
- ]),
1953
- ["entity.rich_content"]
1978
+ ])
1954
1979
  )
1955
1980
  )();
1956
1981
  var onPostCreated = (0, import_sdk_types.EventDefinition)(
@@ -2068,15 +2093,16 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
2068
2093
  },
2069
2094
  {
2070
2095
  path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
2071
- }
2096
+ },
2097
+ { path: "entity.richContent.nodes.tocData.fontSize" },
2098
+ { path: "entity.richContent.nodes.tocData.itemSpacing" }
2072
2099
  ]
2073
2100
  },
2074
2101
  {
2075
2102
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2076
2103
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2077
2104
  }
2078
- ]),
2079
- ["entity.rich_content"]
2105
+ ])
2080
2106
  )
2081
2107
  )();
2082
2108
  var onPostDeleted = (0, import_sdk_types.EventDefinition)(
@@ -2194,15 +2220,16 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
2194
2220
  },
2195
2221
  {
2196
2222
  path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
2197
- }
2223
+ },
2224
+ { path: "entity.richContent.nodes.tocData.fontSize" },
2225
+ { path: "entity.richContent.nodes.tocData.itemSpacing" }
2198
2226
  ]
2199
2227
  },
2200
2228
  {
2201
2229
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2202
2230
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2203
2231
  }
2204
- ]),
2205
- ["entity.rich_content"]
2232
+ ])
2206
2233
  )
2207
2234
  )();
2208
2235
  var onPostUpdated = (0, import_sdk_types.EventDefinition)(
@@ -2320,15 +2347,16 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
2320
2347
  },
2321
2348
  {
2322
2349
  path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
2323
- }
2350
+ },
2351
+ { path: "entity.richContent.nodes.tocData.fontSize" },
2352
+ { path: "entity.richContent.nodes.tocData.itemSpacing" }
2324
2353
  ]
2325
2354
  },
2326
2355
  {
2327
2356
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2328
2357
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2329
2358
  }
2330
- ]),
2331
- ["entity.rich_content"]
2359
+ ])
2332
2360
  )
2333
2361
  )();
2334
2362
 
@@ -2383,11 +2411,13 @@ var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPo
2383
2411
  ImagePosition,
2384
2412
  ImagePositionPosition,
2385
2413
  ImageScalingScaling,
2414
+ Indentation,
2386
2415
  InitialExpandedItems,
2387
2416
  Layout,
2388
2417
  LayoutDataBackgroundType,
2389
2418
  LayoutType,
2390
2419
  LineStyle,
2420
+ ListStyle,
2391
2421
  MapType,
2392
2422
  ModerationStatusStatus,
2393
2423
  NodeType,