@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.mjs';
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.mjs';
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.mjs';
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.mjs';
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 };
@@ -459,7 +459,9 @@ function getPost(payload) {
459
459
  },
460
460
  {
461
461
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
462
- }
462
+ },
463
+ { path: "post.richContent.nodes.tocData.fontSize" },
464
+ { path: "post.richContent.nodes.tocData.itemSpacing" }
463
465
  ]
464
466
  }
465
467
  ])
@@ -605,7 +607,9 @@ function getPostBySlug(payload) {
605
607
  },
606
608
  {
607
609
  path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
608
- }
610
+ },
611
+ { path: "post.richContent.nodes.tocData.fontSize" },
612
+ { path: "post.richContent.nodes.tocData.itemSpacing" }
609
613
  ]
610
614
  }
611
615
  ])
@@ -755,7 +759,9 @@ function listPosts(payload) {
755
759
  },
756
760
  {
757
761
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
758
- }
762
+ },
763
+ { path: "posts.richContent.nodes.tocData.fontSize" },
764
+ { path: "posts.richContent.nodes.tocData.itemSpacing" }
759
765
  ]
760
766
  }
761
767
  ])
@@ -905,7 +911,9 @@ function queryPosts(payload) {
905
911
  },
906
912
  {
907
913
  path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
908
- }
914
+ },
915
+ { path: "posts.richContent.nodes.tocData.fontSize" },
916
+ { path: "posts.richContent.nodes.tocData.itemSpacing" }
909
917
  ]
910
918
  }
911
919
  ])
@@ -984,6 +992,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
984
992
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
985
993
  NodeType2["SHAPE"] = "SHAPE";
986
994
  NodeType2["CARD"] = "CARD";
995
+ NodeType2["TOC"] = "TOC";
987
996
  return NodeType2;
988
997
  })(NodeType || {});
989
998
  var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
@@ -1094,6 +1103,7 @@ var Source = /* @__PURE__ */ ((Source2) => {
1094
1103
  Source2["HTML"] = "HTML";
1095
1104
  Source2["ADSENSE"] = "ADSENSE";
1096
1105
  Source2["AI"] = "AI";
1106
+ Source2["AI_WIDGET"] = "AI_WIDGET";
1097
1107
  return Source2;
1098
1108
  })(Source || {});
1099
1109
  var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
@@ -1295,32 +1305,27 @@ var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
1295
1305
  CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
1296
1306
  return CardDataBackgroundType2;
1297
1307
  })(CardDataBackgroundType || {});
1308
+ var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
1309
+ ListStyle2["PLAIN"] = "PLAIN";
1310
+ ListStyle2["NUMBERED"] = "NUMBERED";
1311
+ ListStyle2["LETTERS"] = "LETTERS";
1312
+ ListStyle2["ROMAN"] = "ROMAN";
1313
+ ListStyle2["BULLETED"] = "BULLETED";
1314
+ ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
1315
+ ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
1316
+ return ListStyle2;
1317
+ })(ListStyle || {});
1318
+ var Indentation = /* @__PURE__ */ ((Indentation2) => {
1319
+ Indentation2["NESTED"] = "NESTED";
1320
+ Indentation2["FLAT"] = "FLAT";
1321
+ return Indentation2;
1322
+ })(Indentation || {});
1298
1323
  var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
1299
1324
  ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
1300
1325
  ModerationStatusStatus2["APPROVED"] = "APPROVED";
1301
1326
  ModerationStatusStatus2["REJECTED"] = "REJECTED";
1302
1327
  return ModerationStatusStatus2;
1303
1328
  })(ModerationStatusStatus || {});
1304
- var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1305
- QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1306
- QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1307
- QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1308
- return QueryPublicationsCountStatsRequestOrder2;
1309
- })(QueryPublicationsCountStatsRequestOrder || {});
1310
- var Order = /* @__PURE__ */ ((Order2) => {
1311
- Order2["UNKNOWN"] = "UNKNOWN";
1312
- Order2["OLDEST"] = "OLDEST";
1313
- Order2["NEWEST"] = "NEWEST";
1314
- return Order2;
1315
- })(Order || {});
1316
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1317
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1318
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1319
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1320
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1321
- WebhookIdentityType2["APP"] = "APP";
1322
- return WebhookIdentityType2;
1323
- })(WebhookIdentityType || {});
1324
1329
  var GetPostTemplatesSort = /* @__PURE__ */ ((GetPostTemplatesSort2) => {
1325
1330
  GetPostTemplatesSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1326
1331
  GetPostTemplatesSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
@@ -1374,6 +1379,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
1374
1379
  Status2["IN_REVIEW"] = "IN_REVIEW";
1375
1380
  return Status2;
1376
1381
  })(Status || {});
1382
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1383
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1384
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1385
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1386
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1387
+ WebhookIdentityType2["APP"] = "APP";
1388
+ return WebhookIdentityType2;
1389
+ })(WebhookIdentityType || {});
1390
+ var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
1391
+ QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
1392
+ QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
1393
+ QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
1394
+ return QueryPublicationsCountStatsRequestOrder2;
1395
+ })(QueryPublicationsCountStatsRequestOrder || {});
1396
+ var Order = /* @__PURE__ */ ((Order2) => {
1397
+ Order2["UNKNOWN"] = "UNKNOWN";
1398
+ Order2["OLDEST"] = "OLDEST";
1399
+ Order2["NEWEST"] = "NEWEST";
1400
+ return Order2;
1401
+ })(Order || {});
1377
1402
  var Field = /* @__PURE__ */ ((Field2) => {
1378
1403
  Field2["UNKNOWN"] = "UNKNOWN";
1379
1404
  Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
@@ -1501,8 +1526,8 @@ async function getPost2(postId, options) {
1501
1526
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1502
1527
  }
1503
1528
  ]),
1504
- ["post.richContent", "post.rich_content"]
1505
- );
1529
+ ["post.richContent"]
1530
+ )?.post;
1506
1531
  } catch (err) {
1507
1532
  const transformedError = sdkTransformError(
1508
1533
  err,
@@ -1549,7 +1574,7 @@ async function getPostBySlug2(slug, options) {
1549
1574
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1550
1575
  }
1551
1576
  ]),
1552
- ["post.richContent", "post.rich_content"]
1577
+ ["post.richContent"]
1553
1578
  );
1554
1579
  } catch (err) {
1555
1580
  const transformedError = sdkTransformError(
@@ -1608,7 +1633,7 @@ async function listPosts2(options) {
1608
1633
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1609
1634
  }
1610
1635
  ]),
1611
- ["posts.richContent", "posts.rich_content"]
1636
+ ["posts.richContent"]
1612
1637
  );
1613
1638
  } catch (err) {
1614
1639
  const transformedError = sdkTransformError(
@@ -1678,7 +1703,7 @@ function queryPosts2(options) {
1678
1703
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1679
1704
  }
1680
1705
  ]),
1681
- ["posts.richContent", "posts.rich_content"]
1706
+ ["posts.richContent"]
1682
1707
  );
1683
1708
  return {
1684
1709
  items: transformedData?.posts,
@@ -1726,7 +1751,7 @@ async function typedQueryPosts(query, options) {
1726
1751
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1727
1752
  }
1728
1753
  ]),
1729
- ["posts.richContent", "posts.rich_content"]
1754
+ ["posts.richContent"]
1730
1755
  );
1731
1756
  } catch (err) {
1732
1757
  const transformedError = sdkTransformError(
@@ -1840,8 +1865,7 @@ var onPostLiked = EventDefinition(
1840
1865
  transformFn: transformRESTTimestampToSDKTimestamp2,
1841
1866
  paths: [{ path: "metadata.eventTime" }]
1842
1867
  }
1843
- ]),
1844
- ["entity.rich_content"]
1868
+ ])
1845
1869
  )
1846
1870
  )();
1847
1871
  var onPostUnliked = EventDefinition(
@@ -1853,8 +1877,7 @@ var onPostUnliked = EventDefinition(
1853
1877
  transformFn: transformRESTTimestampToSDKTimestamp2,
1854
1878
  paths: [{ path: "metadata.eventTime" }]
1855
1879
  }
1856
- ]),
1857
- ["entity.rich_content"]
1880
+ ])
1858
1881
  )
1859
1882
  )();
1860
1883
  var onPostCreated = EventDefinition(
@@ -1972,15 +1995,16 @@ var onPostCreated = EventDefinition(
1972
1995
  },
1973
1996
  {
1974
1997
  path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
1975
- }
1998
+ },
1999
+ { path: "entity.richContent.nodes.tocData.fontSize" },
2000
+ { path: "entity.richContent.nodes.tocData.itemSpacing" }
1976
2001
  ]
1977
2002
  },
1978
2003
  {
1979
2004
  transformFn: transformRESTVideoV2ToSDKVideoV22,
1980
2005
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1981
2006
  }
1982
- ]),
1983
- ["entity.rich_content"]
2007
+ ])
1984
2008
  )
1985
2009
  )();
1986
2010
  var onPostDeleted = EventDefinition(
@@ -2098,15 +2122,16 @@ var onPostDeleted = EventDefinition(
2098
2122
  },
2099
2123
  {
2100
2124
  path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
2101
- }
2125
+ },
2126
+ { path: "entity.richContent.nodes.tocData.fontSize" },
2127
+ { path: "entity.richContent.nodes.tocData.itemSpacing" }
2102
2128
  ]
2103
2129
  },
2104
2130
  {
2105
2131
  transformFn: transformRESTVideoV2ToSDKVideoV22,
2106
2132
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2107
2133
  }
2108
- ]),
2109
- ["entity.rich_content"]
2134
+ ])
2110
2135
  )
2111
2136
  )();
2112
2137
  var onPostUpdated = EventDefinition(
@@ -2224,15 +2249,16 @@ var onPostUpdated = EventDefinition(
2224
2249
  },
2225
2250
  {
2226
2251
  path: "entity.richContent.nodes.cardData.backgroundImage.media.duration"
2227
- }
2252
+ },
2253
+ { path: "entity.richContent.nodes.tocData.fontSize" },
2254
+ { path: "entity.richContent.nodes.tocData.itemSpacing" }
2228
2255
  ]
2229
2256
  },
2230
2257
  {
2231
2258
  transformFn: transformRESTVideoV2ToSDKVideoV22,
2232
2259
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
2233
2260
  }
2234
- ]),
2235
- ["entity.rich_content"]
2261
+ ])
2236
2262
  )
2237
2263
  )();
2238
2264
 
@@ -2286,11 +2312,13 @@ export {
2286
2312
  ImagePosition,
2287
2313
  ImagePositionPosition,
2288
2314
  ImageScalingScaling,
2315
+ Indentation,
2289
2316
  InitialExpandedItems,
2290
2317
  Layout,
2291
2318
  LayoutDataBackgroundType,
2292
2319
  LayoutType,
2293
2320
  LineStyle,
2321
+ ListStyle,
2294
2322
  MapType,
2295
2323
  ModerationStatusStatus,
2296
2324
  NodeType,