@wix/auto_sdk_blog_posts 1.0.63 → 1.0.65

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 +31 -24
  2. package/build/cjs/index.js +52 -10
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +131 -22
  5. package/build/cjs/index.typings.js +42 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +103 -1
  8. package/build/cjs/meta.js +37 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +31 -24
  11. package/build/es/index.mjs +48 -10
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +131 -22
  14. package/build/es/index.typings.mjs +38 -5
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +103 -1
  17. package/build/es/meta.mjs +33 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +31 -24
  20. package/build/internal/cjs/index.js +52 -10
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +131 -22
  23. package/build/internal/cjs/index.typings.js +42 -5
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +103 -1
  26. package/build/internal/cjs/meta.js +37 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +31 -24
  29. package/build/internal/es/index.mjs +48 -10
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +131 -22
  32. package/build/internal/es/index.typings.mjs +38 -5
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +103 -1
  35. package/build/internal/es/meta.mjs +33 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1847,6 +1847,108 @@ interface BlockquoteData {
1847
1847
  interface CaptionData {
1848
1848
  textStyle?: TextStyle;
1849
1849
  }
1850
+ interface LayoutData {
1851
+ /**
1852
+ * Background color as a hexadecimal value.
1853
+ * @format COLOR_HEX
1854
+ */
1855
+ backgroundColor?: string | null;
1856
+ /** Background image. */
1857
+ backgroundImage?: BackgroundImage;
1858
+ /**
1859
+ * Border color as a hexadecimal value.
1860
+ * @format COLOR_HEX
1861
+ */
1862
+ borderColor?: string | null;
1863
+ /** Border width in pixels. */
1864
+ borderWidth?: number | null;
1865
+ /** Border */
1866
+ borderRadius?: number | null;
1867
+ /**
1868
+ * Backdrop color as a hexadecimal value.
1869
+ * @format COLOR_HEX
1870
+ */
1871
+ backdropColor?: string | null;
1872
+ /** Backdrop image.radius in pixels. */
1873
+ backdropImage?: BackgroundImage;
1874
+ /** Backdrop top padding. */
1875
+ backdropPaddingTop?: number | null;
1876
+ /** Backdrop bottom padding */
1877
+ backdropPaddingBottom?: number | null;
1878
+ /** Horizontal and vertical gap between columns */
1879
+ gap?: number | null;
1880
+ /**
1881
+ * Padding in pixels for cells. Follows CSS order: top, right, bottom, left
1882
+ * @maxSize 4
1883
+ */
1884
+ cellPadding?: number[];
1885
+ /** Vertical alignment for the cell's items. */
1886
+ cellVerticalAlignment?: VerticalAlignmentAlignmentWithLiterals;
1887
+ /** Responsiveness behaviour of columns when responsiveness applies. Either stacks or wrappers. */
1888
+ responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;
1889
+ /** Size in pixels when responsiveness_behaviour applies */
1890
+ responsivenessBreakpoint?: number | null;
1891
+ }
1892
+ declare enum Scaling {
1893
+ /** Auto image scaling */
1894
+ AUTO = "AUTO",
1895
+ /** Contain image scaling */
1896
+ CONTAIN = "CONTAIN",
1897
+ /** Cover image scaling */
1898
+ COVER = "COVER"
1899
+ }
1900
+ /** @enumType */
1901
+ type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';
1902
+ declare enum ImagePosition {
1903
+ /** Image positioned at the center */
1904
+ CENTER = "CENTER",
1905
+ /** Image positioned on the left */
1906
+ CENTER_LEFT = "CENTER_LEFT",
1907
+ /** Image positioned on the right */
1908
+ CENTER_RIGHT = "CENTER_RIGHT",
1909
+ /** Image positioned at the center top */
1910
+ TOP = "TOP",
1911
+ /** Image positioned at the top left */
1912
+ TOP_LEFT = "TOP_LEFT",
1913
+ /** Image positioned at the top right */
1914
+ TOP_RIGHT = "TOP_RIGHT",
1915
+ /** Image positioned at the center bottom */
1916
+ BOTTOM = "BOTTOM",
1917
+ /** Image positioned at the bottom left */
1918
+ BOTTOM_LEFT = "BOTTOM_LEFT",
1919
+ /** Image positioned at the bottom right */
1920
+ BOTTOM_RIGHT = "BOTTOM_RIGHT"
1921
+ }
1922
+ /** @enumType */
1923
+ type ImagePositionWithLiterals = ImagePosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
1924
+ interface BackgroundImage {
1925
+ /** Background image. */
1926
+ media?: V1Media;
1927
+ /** Background image opacity. */
1928
+ opacity?: number | null;
1929
+ /** Background image scaling. */
1930
+ scaling?: ScalingWithLiterals;
1931
+ /** Position of background. Defaults to `CENTER`. */
1932
+ position?: ImagePositionWithLiterals;
1933
+ }
1934
+ declare enum VerticalAlignmentAlignment {
1935
+ /** Top alignment */
1936
+ TOP = "TOP",
1937
+ /** Middle alignment */
1938
+ MIDDLE = "MIDDLE",
1939
+ /** Bottom alignment */
1940
+ BOTTOM = "BOTTOM"
1941
+ }
1942
+ /** @enumType */
1943
+ type VerticalAlignmentAlignmentWithLiterals = VerticalAlignmentAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
1944
+ declare enum ResponsivenessBehaviour {
1945
+ /** Stacking of columns */
1946
+ STACK = "STACK",
1947
+ /** Wrapping of columns */
1948
+ WRAP = "WRAP"
1949
+ }
1950
+ /** @enumType */
1951
+ type ResponsivenessBehaviourWithLiterals = ResponsivenessBehaviour | 'STACK' | 'WRAP';
1850
1952
  interface LayoutCellData {
1851
1953
  /** Size of the cell in 12 columns grid. */
1852
1954
  colSpan?: number | null;
@@ -3595,13 +3697,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
3595
3697
  /**
3596
3698
  * Retrieves the number of published posts per month within a specified time range.
3597
3699
  *
3598
- * The time range is set using the `rangeStart` and `months` properties.
3599
- * The time range always starts on the 1st day of the month set in `rangeStart` and
3600
- * includes the number of `months` following `rangeStart`.
3601
- * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3602
- * 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.
3603
- * > 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.
3700
+ *
3701
+ * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3702
+ *
3703
+ * 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.
3704
+ *
3705
+ * >**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.
3604
3706
  * @public
3707
+ * @param options - Options specifying time frame, sort, and filter.
3605
3708
  * @permissionId BLOG.READ-PUBLICATION
3606
3709
  * @applicableIdentity APP
3607
3710
  * @returns Get Blog Post Count Stats response
@@ -3642,6 +3745,7 @@ interface QueryPostCountStatsOptions {
3642
3745
  /**
3643
3746
  * Retrieves the total amount of published posts of the blog.
3644
3747
  * @public
3748
+ * @param options - Language Options.
3645
3749
  * @permissionId BLOG.READ-PUBLICATION
3646
3750
  * @applicableIdentity APP
3647
3751
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -3662,12 +3766,12 @@ interface GetTotalPostsOptions {
3662
3766
  * @param postId - Post ID.
3663
3767
  * @public
3664
3768
  * @requiredField postId
3769
+ * @param options - Options specifying which fields to return.
3665
3770
  * @permissionId BLOG.READ-PUBLICATION
3666
3771
  * @applicableIdentity APP
3667
- * @returns Retrieved post info.
3668
3772
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
3669
3773
  */
3670
- declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<Post, `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `coverMedia.enabled` | `coverMedia.displayed` | `coverMedia.custom` | `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>>;
3774
+ declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.coverMedia.enabled` | `post.coverMedia.displayed` | `post.coverMedia.custom` | `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>>;
3671
3775
  interface GetPostOptions {
3672
3776
  /**
3673
3777
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -3687,6 +3791,7 @@ interface GetPostOptions {
3687
3791
  * @param slug - Slug of the post to retrieve.
3688
3792
  * @public
3689
3793
  * @requiredField slug
3794
+ * @param options - Options specifying which fields to return.
3690
3795
  * @permissionId BLOG.READ-PUBLICATION
3691
3796
  * @applicableIdentity APP
3692
3797
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -3714,6 +3819,7 @@ interface GetPostBySlugOptions {
3714
3819
  * - `paging.limit` is `50`.
3715
3820
  * - `paging.offset` is `0`.
3716
3821
  * @public
3822
+ * @param options - Sort, filter, and paging options.
3717
3823
  * @permissionId BLOG.READ-PUBLICATION
3718
3824
  * @applicableIdentity APP
3719
3825
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -3784,23 +3890,26 @@ interface ListPostsOptions {
3784
3890
  fieldsets?: PostFieldFieldWithLiterals[];
3785
3891
  }
3786
3892
  /**
3787
- * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
3893
+ * Creates a query to retrieve a list of posts.
3788
3894
  *
3789
- * Query Posts runs with these defaults, which you can override:
3790
- * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3791
- * - `paging.limit` is `50`.
3792
- * - `paging.offset` is `0`.
3793
3895
  *
3794
- * For field support for filters and sorting, see
3795
- * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3896
+ * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
3897
+ *
3898
+ * The returned object contains the query definition which is typically used to run the query using the `find()` function.
3899
+ *
3900
+ * You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
3901
+ *
3902
+ * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
3903
+ * + `limit(50)`
3904
+ * + `descending('firstPublishedDate')`
3905
+ *
3906
+ * Note that the default limit is `'50'`, but the max limit is `'100'`.
3907
+ *
3908
+ * To learn how to query posts, refer to the table below.
3796
3909
  *
3797
- * To learn about working with _Query_ endpoints, see
3798
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3799
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
3800
- * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3801
- * For a detailed list of supported filters and sortable fields, see
3802
- * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3910
+ * The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult`.
3803
3911
  * @public
3912
+ * @param options - Options specifying which fields to return.
3804
3913
  * @permissionId BLOG.READ-PUBLICATION
3805
3914
  * @applicableIdentity APP
3806
3915
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
@@ -3890,4 +3999,4 @@ interface PostsQueryBuilder {
3890
3999
  */
3891
4000
  declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
3892
4001
 
3893
- export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BulkGetPostReactionsRequest, type BulkGetPostReactionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type Category, type CategoryTranslation, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type ConvertDraftJsToRichContentRequest, type ConvertDraftJsToRichContentResponse, type ConvertRichContentToDraftJsRequest, type ConvertRichContentToDraftJsResponse, type CoverMedia, type CoverMediaMediaOneOf, type CreateDraftPostFromTemplateRequest, type CreateDraftPostFromTemplateResponse, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type DraftPost, type DraftPostTranslation, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetPostBySlugOptions, type GetPostBySlugRequest, type GetPostBySlugResponse, type GetPostMetricsRequest, type GetPostMetricsResponse, type GetPostOptions, type GetPostRequest, type GetPostResponse, GetPostTemplatesSort, type GetPostTemplatesSortWithLiterals, GetPostsSort, type GetPostsSortWithLiterals, type GetTemplateRequest, type GetTemplateResponse, type GetTotalLikesPerMemberRequest, type GetTotalLikesPerMemberResponse, type GetTotalPostsOptions, type GetTotalPostsRequest, type GetTotalPostsResponse, type GetTotalPublicationsRequest, type GetTotalPublicationsResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InitialPostsCopied, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, type LikePostRequest, type LikePostResponse, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDemoPostsRequest, type ListDemoPostsResponse, type ListPostsArchiveRequest, type ListPostsArchiveResponse, type ListPostsOptions, type ListPostsRequest, type ListPostsResponse, type ListTemplatesRequest, type ListTemplatesResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type Metrics, type ModerationDetails, ModerationStatusStatus, type ModerationStatusStatusWithLiterals, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type OldBlogMigratedEvent, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type PeriodPostCount, type PeriodPublicationsCount, type Permissions, type PinPostRequest, type PinPostResponse, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Post, type PostCategoriesUpdated, type PostCountInfo, type PostCountersUpdated, type PostCountersUpdatedInitiatorOneOf, type PostCreatedEnvelope, type PostDeletedEnvelope, PostFieldField, type PostFieldFieldWithLiterals, type PostLiked, type PostLikedEnvelope, type PostLikedInitiatorOneOf, type PostOwnerChanged, type PostTagsUpdated, type PostTranslation, type PostUnliked, type PostUnlikedEnvelope, type PostUnlikedInitiatorOneOf, type PostUpdatedEnvelope, type PostsQueryBuilder, type PostsQueryResult, type PricingData, type QueryPostCountStatsOptions, type QueryPostCountStatsRequest, type QueryPostCountStatsResponse, type QueryPostsOptions, type QueryPostsRequest, type QueryPostsResponse, type QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, type QueryPublicationsCountStatsRequestOrderWithLiterals, type QueryPublicationsCountStatsResponse, type Reactions, type Rel, Resizing, type ResizingWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, type ScheduledPostPublished, type SeoSchema, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, type ViewPostRequest, type ViewPostResponse, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
4002
+ export { type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BulkGetPostReactionsRequest, type BulkGetPostReactionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type Category, type CategoryTranslation, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type ConvertDraftJsToRichContentRequest, type ConvertDraftJsToRichContentResponse, type ConvertRichContentToDraftJsRequest, type ConvertRichContentToDraftJsResponse, type CoverMedia, type CoverMediaMediaOneOf, type CreateDraftPostFromTemplateRequest, type CreateDraftPostFromTemplateResponse, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type DraftPost, type DraftPostTranslation, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetPostBySlugOptions, type GetPostBySlugRequest, type GetPostBySlugResponse, type GetPostMetricsRequest, type GetPostMetricsResponse, type GetPostOptions, type GetPostRequest, type GetPostResponse, GetPostTemplatesSort, type GetPostTemplatesSortWithLiterals, GetPostsSort, type GetPostsSortWithLiterals, type GetTemplateRequest, type GetTemplateResponse, type GetTotalLikesPerMemberRequest, type GetTotalLikesPerMemberResponse, type GetTotalPostsOptions, type GetTotalPostsRequest, type GetTotalPostsResponse, type GetTotalPublicationsRequest, type GetTotalPublicationsResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InitialPostsCopied, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, type LikePostRequest, type LikePostResponse, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDemoPostsRequest, type ListDemoPostsResponse, type ListPostsArchiveRequest, type ListPostsArchiveResponse, type ListPostsOptions, type ListPostsRequest, type ListPostsResponse, type ListTemplatesRequest, type ListTemplatesResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type Metrics, type ModerationDetails, ModerationStatusStatus, type ModerationStatusStatusWithLiterals, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type OldBlogMigratedEvent, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type PeriodPostCount, type PeriodPublicationsCount, type Permissions, type PinPostRequest, type PinPostResponse, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Post, type PostCategoriesUpdated, type PostCountInfo, type PostCountersUpdated, type PostCountersUpdatedInitiatorOneOf, type PostCreatedEnvelope, type PostDeletedEnvelope, PostFieldField, type PostFieldFieldWithLiterals, type PostLiked, type PostLikedEnvelope, type PostLikedInitiatorOneOf, type PostOwnerChanged, type PostTagsUpdated, type PostTranslation, type PostUnliked, type PostUnlikedEnvelope, type PostUnlikedInitiatorOneOf, type PostUpdatedEnvelope, type PostsQueryBuilder, type PostsQueryResult, type PricingData, type QueryPostCountStatsOptions, type QueryPostCountStatsRequest, type QueryPostCountStatsResponse, type QueryPostsOptions, type QueryPostsRequest, type QueryPostsResponse, type QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, type QueryPublicationsCountStatsRequestOrderWithLiterals, type QueryPublicationsCountStatsResponse, type Reactions, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type ScheduledPostPublished, type SeoSchema, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, type ViewPostRequest, type ViewPostResponse, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
@@ -34,6 +34,7 @@ __export(index_typings_exports, {
34
34
  GIFType: () => GIFType,
35
35
  GetPostTemplatesSort: () => GetPostTemplatesSort,
36
36
  GetPostsSort: () => GetPostsSort,
37
+ ImagePosition: () => ImagePosition,
37
38
  InitialExpandedItems: () => InitialExpandedItems,
38
39
  Layout: () => Layout,
39
40
  LayoutType: () => LayoutType,
@@ -53,6 +54,8 @@ __export(index_typings_exports, {
53
54
  PostFieldField: () => PostFieldField,
54
55
  QueryPublicationsCountStatsRequestOrder: () => QueryPublicationsCountStatsRequestOrder,
55
56
  Resizing: () => Resizing,
57
+ ResponsivenessBehaviour: () => ResponsivenessBehaviour,
58
+ Scaling: () => Scaling,
56
59
  SortOrder: () => SortOrder,
57
60
  Source: () => Source,
58
61
  Status: () => Status,
@@ -62,6 +65,7 @@ __export(index_typings_exports, {
62
65
  ThumbnailsAlignment: () => ThumbnailsAlignment,
63
66
  Type: () => Type,
64
67
  VerticalAlignment: () => VerticalAlignment,
68
+ VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
65
69
  ViewMode: () => ViewMode,
66
70
  ViewRole: () => ViewRole,
67
71
  VoteRole: () => VoteRole,
@@ -1200,6 +1204,35 @@ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1200
1204
  NullValue2["NULL_VALUE"] = "NULL_VALUE";
1201
1205
  return NullValue2;
1202
1206
  })(NullValue || {});
1207
+ var Scaling = /* @__PURE__ */ ((Scaling2) => {
1208
+ Scaling2["AUTO"] = "AUTO";
1209
+ Scaling2["CONTAIN"] = "CONTAIN";
1210
+ Scaling2["COVER"] = "COVER";
1211
+ return Scaling2;
1212
+ })(Scaling || {});
1213
+ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1214
+ ImagePosition2["CENTER"] = "CENTER";
1215
+ ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
1216
+ ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1217
+ ImagePosition2["TOP"] = "TOP";
1218
+ ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
1219
+ ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
1220
+ ImagePosition2["BOTTOM"] = "BOTTOM";
1221
+ ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1222
+ ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1223
+ return ImagePosition2;
1224
+ })(ImagePosition || {});
1225
+ var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
1226
+ VerticalAlignmentAlignment2["TOP"] = "TOP";
1227
+ VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
1228
+ VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
1229
+ return VerticalAlignmentAlignment2;
1230
+ })(VerticalAlignmentAlignment || {});
1231
+ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
1232
+ ResponsivenessBehaviour2["STACK"] = "STACK";
1233
+ ResponsivenessBehaviour2["WRAP"] = "WRAP";
1234
+ return ResponsivenessBehaviour2;
1235
+ })(ResponsivenessBehaviour || {});
1203
1236
  var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
1204
1237
  ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
1205
1238
  ModerationStatusStatus2["APPROVED"] = "APPROVED";
@@ -1411,8 +1444,8 @@ async function getPost2(postId, options) {
1411
1444
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1412
1445
  }
1413
1446
  ]),
1414
- ["post.richContent"]
1415
- )?.post;
1447
+ ["post.richContent", "post.rich_content"]
1448
+ );
1416
1449
  } catch (err) {
1417
1450
  const transformedError = (0, import_transform_error.transformError)(
1418
1451
  err,
@@ -1464,7 +1497,7 @@ async function getPostBySlug2(slug, options) {
1464
1497
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1465
1498
  }
1466
1499
  ]),
1467
- ["post.richContent"]
1500
+ ["post.richContent", "post.rich_content"]
1468
1501
  );
1469
1502
  } catch (err) {
1470
1503
  const transformedError = (0, import_transform_error.transformError)(
@@ -1528,7 +1561,7 @@ async function listPosts2(options) {
1528
1561
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1529
1562
  }
1530
1563
  ]),
1531
- ["posts.richContent"]
1564
+ ["posts.richContent", "posts.rich_content"]
1532
1565
  );
1533
1566
  } catch (err) {
1534
1567
  const transformedError = (0, import_transform_error.transformError)(
@@ -1603,7 +1636,7 @@ function queryPosts2(options) {
1603
1636
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1604
1637
  }
1605
1638
  ]),
1606
- ["posts.richContent"]
1639
+ ["posts.richContent", "posts.rich_content"]
1607
1640
  );
1608
1641
  return {
1609
1642
  items: transformedData?.posts,
@@ -1661,6 +1694,7 @@ async function getPostMetrics2(postId) {
1661
1694
  GIFType,
1662
1695
  GetPostTemplatesSort,
1663
1696
  GetPostsSort,
1697
+ ImagePosition,
1664
1698
  InitialExpandedItems,
1665
1699
  Layout,
1666
1700
  LayoutType,
@@ -1680,6 +1714,8 @@ async function getPostMetrics2(postId) {
1680
1714
  PostFieldField,
1681
1715
  QueryPublicationsCountStatsRequestOrder,
1682
1716
  Resizing,
1717
+ ResponsivenessBehaviour,
1718
+ Scaling,
1683
1719
  SortOrder,
1684
1720
  Source,
1685
1721
  Status,
@@ -1689,6 +1725,7 @@ async function getPostMetrics2(postId) {
1689
1725
  ThumbnailsAlignment,
1690
1726
  Type,
1691
1727
  VerticalAlignment,
1728
+ VerticalAlignmentAlignment,
1692
1729
  ViewMode,
1693
1730
  ViewRole,
1694
1731
  VoteRole,