@wix/auto_sdk_blog_posts 1.0.66 → 1.0.68

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 +24 -31
  2. package/build/cjs/index.js +48 -195
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +124 -29
  5. package/build/cjs/index.typings.js +43 -185
  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 +38 -180
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +24 -31
  11. package/build/es/index.mjs +44 -195
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +124 -29
  14. package/build/es/index.typings.mjs +39 -185
  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 +34 -180
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +24 -31
  20. package/build/internal/cjs/index.js +48 -195
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +124 -29
  23. package/build/internal/cjs/index.typings.js +43 -185
  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 +38 -180
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +24 -31
  29. package/build/internal/es/index.mjs +44 -195
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +124 -29
  32. package/build/internal/es/index.typings.mjs +39 -185
  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 +34 -180
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1840,6 +1840,108 @@ interface BlockquoteData {
1840
1840
  interface CaptionData {
1841
1841
  textStyle?: TextStyle;
1842
1842
  }
1843
+ interface LayoutData {
1844
+ /**
1845
+ * Background color as a hexadecimal value.
1846
+ * @format COLOR_HEX
1847
+ */
1848
+ backgroundColor?: string | null;
1849
+ /** Background image. */
1850
+ backgroundImage?: BackgroundImage;
1851
+ /**
1852
+ * Border color as a hexadecimal value.
1853
+ * @format COLOR_HEX
1854
+ */
1855
+ borderColor?: string | null;
1856
+ /** Border width in pixels. */
1857
+ borderWidth?: number | null;
1858
+ /** Border */
1859
+ borderRadius?: number | null;
1860
+ /**
1861
+ * Backdrop color as a hexadecimal value.
1862
+ * @format COLOR_HEX
1863
+ */
1864
+ backdropColor?: string | null;
1865
+ /** Backdrop image.radius in pixels. */
1866
+ backdropImage?: BackgroundImage;
1867
+ /** Backdrop top padding. */
1868
+ backdropPaddingTop?: number | null;
1869
+ /** Backdrop bottom padding */
1870
+ backdropPaddingBottom?: number | null;
1871
+ /** Horizontal and vertical gap between columns */
1872
+ gap?: number | null;
1873
+ /**
1874
+ * Padding in pixels for cells. Follows CSS order: top, right, bottom, left
1875
+ * @maxSize 4
1876
+ */
1877
+ cellPadding?: number[];
1878
+ /** Vertical alignment for the cell's items. */
1879
+ cellVerticalAlignment?: VerticalAlignmentAlignmentWithLiterals;
1880
+ /** Responsiveness behaviour of columns when responsiveness applies. Either stacks or wrappers. */
1881
+ responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;
1882
+ /** Size in pixels when responsiveness_behaviour applies */
1883
+ responsivenessBreakpoint?: number | null;
1884
+ }
1885
+ declare enum Scaling {
1886
+ /** Auto image scaling */
1887
+ AUTO = "AUTO",
1888
+ /** Contain image scaling */
1889
+ CONTAIN = "CONTAIN",
1890
+ /** Cover image scaling */
1891
+ COVER = "COVER"
1892
+ }
1893
+ /** @enumType */
1894
+ type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';
1895
+ declare enum ImagePosition {
1896
+ /** Image positioned at the center */
1897
+ CENTER = "CENTER",
1898
+ /** Image positioned on the left */
1899
+ CENTER_LEFT = "CENTER_LEFT",
1900
+ /** Image positioned on the right */
1901
+ CENTER_RIGHT = "CENTER_RIGHT",
1902
+ /** Image positioned at the center top */
1903
+ TOP = "TOP",
1904
+ /** Image positioned at the top left */
1905
+ TOP_LEFT = "TOP_LEFT",
1906
+ /** Image positioned at the top right */
1907
+ TOP_RIGHT = "TOP_RIGHT",
1908
+ /** Image positioned at the center bottom */
1909
+ BOTTOM = "BOTTOM",
1910
+ /** Image positioned at the bottom left */
1911
+ BOTTOM_LEFT = "BOTTOM_LEFT",
1912
+ /** Image positioned at the bottom right */
1913
+ BOTTOM_RIGHT = "BOTTOM_RIGHT"
1914
+ }
1915
+ /** @enumType */
1916
+ type ImagePositionWithLiterals = ImagePosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
1917
+ interface BackgroundImage {
1918
+ /** Background image. */
1919
+ media?: V1Media;
1920
+ /** Background image opacity. */
1921
+ opacity?: number | null;
1922
+ /** Background image scaling. */
1923
+ scaling?: ScalingWithLiterals;
1924
+ /** Position of background. Defaults to `CENTER`. */
1925
+ position?: ImagePositionWithLiterals;
1926
+ }
1927
+ declare enum VerticalAlignmentAlignment {
1928
+ /** Top alignment */
1929
+ TOP = "TOP",
1930
+ /** Middle alignment */
1931
+ MIDDLE = "MIDDLE",
1932
+ /** Bottom alignment */
1933
+ BOTTOM = "BOTTOM"
1934
+ }
1935
+ /** @enumType */
1936
+ type VerticalAlignmentAlignmentWithLiterals = VerticalAlignmentAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
1937
+ declare enum ResponsivenessBehaviour {
1938
+ /** Stacking of columns */
1939
+ STACK = "STACK",
1940
+ /** Wrapping of columns */
1941
+ WRAP = "WRAP"
1942
+ }
1943
+ /** @enumType */
1944
+ type ResponsivenessBehaviourWithLiterals = ResponsivenessBehaviour | 'STACK' | 'WRAP';
1843
1945
  interface LayoutCellData {
1844
1946
  /** Size of the cell in 12 columns grid. */
1845
1947
  colSpan?: number | null;
@@ -3588,14 +3690,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
3588
3690
  /**
3589
3691
  * Retrieves the number of published posts per month within a specified time range.
3590
3692
  *
3591
- *
3592
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
3593
- *
3594
- * 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.
3595
- *
3596
- * >**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.
3693
+ * The time range is set using the `rangeStart` and `months` properties.
3694
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
3695
+ * includes the number of `months` following `rangeStart`.
3696
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
3697
+ * 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.
3698
+ * > 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.
3597
3699
  * @public
3598
- * @param options - Options specifying time frame, sort, and filter.
3599
3700
  * @permissionId BLOG.READ-PUBLICATION
3600
3701
  * @applicableIdentity APP
3601
3702
  * @returns Get Blog Post Count Stats response
@@ -3636,7 +3737,6 @@ interface QueryPostCountStatsOptions {
3636
3737
  /**
3637
3738
  * Retrieves the total amount of published posts of the blog.
3638
3739
  * @public
3639
- * @param options - Language Options.
3640
3740
  * @permissionId BLOG.READ-PUBLICATION
3641
3741
  * @applicableIdentity APP
3642
3742
  * @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
@@ -3657,12 +3757,12 @@ interface GetTotalPostsOptions {
3657
3757
  * @param postId - Post ID.
3658
3758
  * @public
3659
3759
  * @requiredField postId
3660
- * @param options - Options specifying which fields to return.
3661
3760
  * @permissionId BLOG.READ-PUBLICATION
3662
3761
  * @applicableIdentity APP
3762
+ * @returns Retrieved post info.
3663
3763
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
3664
3764
  */
3665
- 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>>;
3765
+ 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>>;
3666
3766
  interface GetPostOptions {
3667
3767
  /**
3668
3768
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
@@ -3682,7 +3782,6 @@ interface GetPostOptions {
3682
3782
  * @param slug - Slug of the post to retrieve.
3683
3783
  * @public
3684
3784
  * @requiredField slug
3685
- * @param options - Options specifying which fields to return.
3686
3785
  * @permissionId BLOG.READ-PUBLICATION
3687
3786
  * @applicableIdentity APP
3688
3787
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
@@ -3710,7 +3809,6 @@ interface GetPostBySlugOptions {
3710
3809
  * - `paging.limit` is `50`.
3711
3810
  * - `paging.offset` is `0`.
3712
3811
  * @public
3713
- * @param options - Sort, filter, and paging options.
3714
3812
  * @permissionId BLOG.READ-PUBLICATION
3715
3813
  * @applicableIdentity APP
3716
3814
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
@@ -3781,26 +3879,23 @@ interface ListPostsOptions {
3781
3879
  fieldsets?: PostFieldFieldWithLiterals[];
3782
3880
  }
3783
3881
  /**
3784
- * Creates a query to retrieve a list of posts.
3785
- *
3786
- *
3787
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
3788
- *
3789
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
3882
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
3790
3883
  *
3791
- * 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.
3792
- *
3793
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
3794
- * + `limit(50)`
3795
- * + `descending('firstPublishedDate')`
3796
- *
3797
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
3884
+ * Query Posts runs with these defaults, which you can override:
3885
+ * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
3886
+ * - `paging.limit` is `50`.
3887
+ * - `paging.offset` is `0`.
3798
3888
  *
3799
- * To learn how to query posts, refer to the table below.
3889
+ * For field support for filters and sorting, see
3890
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3800
3891
  *
3801
- * 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`.
3892
+ * To learn about working with _Query_ endpoints, see
3893
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3894
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
3895
+ * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3896
+ * For a detailed list of supported filters and sortable fields, see
3897
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
3802
3898
  * @public
3803
- * @param options - Options specifying which fields to return.
3804
3899
  * @permissionId BLOG.READ-PUBLICATION
3805
3900
  * @applicableIdentity APP
3806
3901
  * @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
@@ -3890,4 +3985,4 @@ interface PostsQueryBuilder {
3890
3985
  */
3891
3986
  declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
3892
3987
 
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 };
3988
+ 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,
@@ -92,186 +96,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
92
96
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
93
97
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
94
98
  function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
95
- const domainToMappings = {
96
- "api._api_base_domain_": [
97
- {
98
- srcPath: "/communities-blog-node-api",
99
- destPath: ""
100
- }
101
- ],
102
- "www._base_domain_": [
103
- {
104
- srcPath: "/_api/communities-blog-node-api",
105
- destPath: ""
106
- },
107
- {
108
- srcPath: "/_api/communities-blog-node-api/v3/posts",
109
- destPath: "/v3/posts"
110
- },
111
- {
112
- srcPath: "/_api/communities-blog-node-api/v2/stats",
113
- destPath: "/v2/stats"
114
- }
115
- ],
116
- "apps._base_domain_": [
117
- {
118
- srcPath: "/_api/communities-blog-node-api",
119
- destPath: ""
120
- },
121
- {
122
- srcPath: "/_api/communities-blog-node-api/v3/posts",
123
- destPath: "/v3/posts"
124
- },
125
- {
126
- srcPath: "/_api/communities-blog-node-api/v2/stats",
127
- destPath: "/v2/stats"
128
- }
129
- ],
130
- _: [
131
- {
132
- srcPath: "/_api/communities-blog-node-api",
133
- destPath: ""
134
- },
135
- {
136
- srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
137
- destPath: "/_api/blogs/this"
138
- },
139
- {
140
- srcPath: "/_api/communities-blog-node-api/_api/categories",
141
- destPath: "/_api/categories"
142
- },
143
- {
144
- srcPath: "/_api/communities-blog-node-api/_api/site-properties",
145
- destPath: "/_api/site-properties"
146
- },
147
- {
148
- srcPath: "/_api/communities-blog-node-api/_api/posts/content",
149
- destPath: "/_api/posts/content"
150
- },
151
- {
152
- srcPath: "/_api/communities-blog-node-api/v3/posts",
153
- destPath: "/v3/posts"
154
- },
155
- {
156
- srcPath: "/_api/communities-blog-node-api/v2/stats",
157
- destPath: "/v2/stats"
158
- }
159
- ],
160
- "editor._base_domain_": [
161
- {
162
- srcPath: "/_api/communities-blog-node-api",
163
- destPath: ""
164
- }
165
- ],
166
- "blocks._base_domain_": [
167
- {
168
- srcPath: "/_api/communities-blog-node-api",
169
- destPath: ""
170
- }
171
- ],
172
- "create.editorx": [
173
- {
174
- srcPath: "/_api/communities-blog-node-api",
175
- destPath: ""
176
- }
177
- ],
178
- "*.dev.wix-code.com": [
179
- {
180
- srcPath: "/_api/communities-blog-node-api",
181
- destPath: ""
182
- }
183
- ],
184
- "*.pub.wix-code.com": [
185
- {
186
- srcPath: "/_api/communities-blog-node-api",
187
- destPath: ""
188
- }
189
- ],
190
- "bo._base_domain_": [
191
- {
192
- srcPath: "/_api/communities-blog-node-api",
193
- destPath: ""
194
- },
195
- {
196
- srcPath: "/_api/communities-blog-node-api",
197
- destPath: ""
198
- }
199
- ],
200
- "wixbo.ai": [
201
- {
202
- srcPath: "/_api/communities-blog-node-api",
203
- destPath: ""
204
- },
205
- {
206
- srcPath: "/_api/communities-blog-node-api",
207
- destPath: ""
208
- }
209
- ],
210
- "wix-bo.com": [
211
- {
212
- srcPath: "/_api/communities-blog-node-api",
213
- destPath: ""
214
- },
215
- {
216
- srcPath: "/_api/communities-blog-node-api",
217
- destPath: ""
218
- }
219
- ],
220
- "manage._base_domain_": [
221
- {
222
- srcPath: "/_api/communities-blog-node-api",
223
- destPath: ""
224
- }
225
- ],
226
- "social-blog._base_domain_": [
227
- {
228
- srcPath: "/_api/communities-blog-node-api",
229
- destPath: ""
230
- }
231
- ],
232
- "editor.wixapps.net": [
233
- {
234
- srcPath: "/_api/communities-blog-node-api",
235
- destPath: ""
236
- }
237
- ],
238
- "dev._base_domain_": [
239
- {
240
- srcPath: "/_api/communities-blog-node-api",
241
- destPath: ""
242
- }
243
- ],
244
- "www.wixapis.com": [
245
- {
246
- srcPath: "/blog/v2",
247
- destPath: "/v2"
248
- },
249
- {
250
- srcPath: "/blog/v3",
251
- destPath: "/v3"
252
- },
253
- {
254
- srcPath: "/v2/stats",
255
- destPath: "/v2/stats"
256
- },
257
- {
258
- srcPath: "/v3/posts",
259
- destPath: "/v3/posts"
260
- },
261
- {
262
- srcPath: "/blog/v3/posts",
263
- destPath: "/v3/posts"
264
- },
265
- {
266
- srcPath: "/blog/v2/stats",
267
- destPath: "/v2/stats"
268
- },
269
- {
270
- srcPath: "/_api/v3/posts",
271
- destPath: "/v3/posts"
272
- }
273
- ]
274
- };
99
+ const domainToMappings = {};
275
100
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
276
101
  }
277
102
  function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opts) {
@@ -1200,6 +1025,35 @@ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1200
1025
  NullValue2["NULL_VALUE"] = "NULL_VALUE";
1201
1026
  return NullValue2;
1202
1027
  })(NullValue || {});
1028
+ var Scaling = /* @__PURE__ */ ((Scaling2) => {
1029
+ Scaling2["AUTO"] = "AUTO";
1030
+ Scaling2["CONTAIN"] = "CONTAIN";
1031
+ Scaling2["COVER"] = "COVER";
1032
+ return Scaling2;
1033
+ })(Scaling || {});
1034
+ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1035
+ ImagePosition2["CENTER"] = "CENTER";
1036
+ ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
1037
+ ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1038
+ ImagePosition2["TOP"] = "TOP";
1039
+ ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
1040
+ ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
1041
+ ImagePosition2["BOTTOM"] = "BOTTOM";
1042
+ ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1043
+ ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1044
+ return ImagePosition2;
1045
+ })(ImagePosition || {});
1046
+ var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
1047
+ VerticalAlignmentAlignment2["TOP"] = "TOP";
1048
+ VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
1049
+ VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
1050
+ return VerticalAlignmentAlignment2;
1051
+ })(VerticalAlignmentAlignment || {});
1052
+ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
1053
+ ResponsivenessBehaviour2["STACK"] = "STACK";
1054
+ ResponsivenessBehaviour2["WRAP"] = "WRAP";
1055
+ return ResponsivenessBehaviour2;
1056
+ })(ResponsivenessBehaviour || {});
1203
1057
  var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
1204
1058
  ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
1205
1059
  ModerationStatusStatus2["APPROVED"] = "APPROVED";
@@ -1411,8 +1265,8 @@ async function getPost2(postId, options) {
1411
1265
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1412
1266
  }
1413
1267
  ]),
1414
- ["post.richContent", "post.rich_content"]
1415
- );
1268
+ ["post.richContent"]
1269
+ )?.post;
1416
1270
  } catch (err) {
1417
1271
  const transformedError = (0, import_transform_error.transformError)(
1418
1272
  err,
@@ -1464,7 +1318,7 @@ async function getPostBySlug2(slug, options) {
1464
1318
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1465
1319
  }
1466
1320
  ]),
1467
- ["post.richContent", "post.rich_content"]
1321
+ ["post.richContent"]
1468
1322
  );
1469
1323
  } catch (err) {
1470
1324
  const transformedError = (0, import_transform_error.transformError)(
@@ -1528,7 +1382,7 @@ async function listPosts2(options) {
1528
1382
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1529
1383
  }
1530
1384
  ]),
1531
- ["posts.richContent", "posts.rich_content"]
1385
+ ["posts.richContent"]
1532
1386
  );
1533
1387
  } catch (err) {
1534
1388
  const transformedError = (0, import_transform_error.transformError)(
@@ -1603,7 +1457,7 @@ function queryPosts2(options) {
1603
1457
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1604
1458
  }
1605
1459
  ]),
1606
- ["posts.richContent", "posts.rich_content"]
1460
+ ["posts.richContent"]
1607
1461
  );
1608
1462
  return {
1609
1463
  items: transformedData?.posts,
@@ -1661,6 +1515,7 @@ async function getPostMetrics2(postId) {
1661
1515
  GIFType,
1662
1516
  GetPostTemplatesSort,
1663
1517
  GetPostsSort,
1518
+ ImagePosition,
1664
1519
  InitialExpandedItems,
1665
1520
  Layout,
1666
1521
  LayoutType,
@@ -1680,6 +1535,8 @@ async function getPostMetrics2(postId) {
1680
1535
  PostFieldField,
1681
1536
  QueryPublicationsCountStatsRequestOrder,
1682
1537
  Resizing,
1538
+ ResponsivenessBehaviour,
1539
+ Scaling,
1683
1540
  SortOrder,
1684
1541
  Source,
1685
1542
  Status,
@@ -1689,6 +1546,7 @@ async function getPostMetrics2(postId) {
1689
1546
  ThumbnailsAlignment,
1690
1547
  Type,
1691
1548
  VerticalAlignment,
1549
+ VerticalAlignmentAlignment,
1692
1550
  ViewMode,
1693
1551
  ViewRole,
1694
1552
  VoteRole,