@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.
- package/build/cjs/index.d.ts +24 -31
- package/build/cjs/index.js +48 -195
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +124 -29
- package/build/cjs/index.typings.js +43 -185
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +103 -1
- package/build/cjs/meta.js +38 -180
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +24 -31
- package/build/es/index.mjs +44 -195
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +124 -29
- package/build/es/index.typings.mjs +39 -185
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +103 -1
- package/build/es/meta.mjs +34 -180
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +24 -31
- package/build/internal/cjs/index.js +48 -195
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +124 -29
- package/build/internal/cjs/index.typings.js +43 -185
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +103 -1
- package/build/internal/cjs/meta.js +38 -180
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +24 -31
- package/build/internal/es/index.mjs +44 -195
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +124 -29
- package/build/internal/es/index.typings.mjs +39 -185
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +103 -1
- package/build/internal/es/meta.mjs +34 -180
- package/build/internal/es/meta.mjs.map +1 -1
- 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,14 +3697,13 @@ 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
|
-
*
|
|
3599
|
-
* The
|
|
3600
|
-
*
|
|
3601
|
-
*
|
|
3602
|
-
*
|
|
3603
|
-
*
|
|
3700
|
+
* The time range is set using the `rangeStart` and `months` properties.
|
|
3701
|
+
* The time range always starts on the 1st day of the month set in `rangeStart` and
|
|
3702
|
+
* includes the number of `months` following `rangeStart`.
|
|
3703
|
+
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
3704
|
+
* 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.
|
|
3705
|
+
* > 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.
|
|
3604
3706
|
* @public
|
|
3605
|
-
* @param options - Options specifying time frame, sort, and filter.
|
|
3606
3707
|
* @permissionId BLOG.READ-PUBLICATION
|
|
3607
3708
|
* @applicableIdentity APP
|
|
3608
3709
|
* @returns Get Blog Post Count Stats response
|
|
@@ -3643,7 +3744,6 @@ interface QueryPostCountStatsOptions {
|
|
|
3643
3744
|
/**
|
|
3644
3745
|
* Retrieves the total amount of published posts of the blog.
|
|
3645
3746
|
* @public
|
|
3646
|
-
* @param options - Language Options.
|
|
3647
3747
|
* @permissionId BLOG.READ-PUBLICATION
|
|
3648
3748
|
* @applicableIdentity APP
|
|
3649
3749
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -3664,12 +3764,12 @@ interface GetTotalPostsOptions {
|
|
|
3664
3764
|
* @param postId - Post ID.
|
|
3665
3765
|
* @public
|
|
3666
3766
|
* @requiredField postId
|
|
3667
|
-
* @param options - Options specifying which fields to return.
|
|
3668
3767
|
* @permissionId BLOG.READ-PUBLICATION
|
|
3669
3768
|
* @applicableIdentity APP
|
|
3769
|
+
* @returns Retrieved post info.
|
|
3670
3770
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
3671
3771
|
*/
|
|
3672
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
3772
|
+
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>>;
|
|
3673
3773
|
interface GetPostOptions {
|
|
3674
3774
|
/**
|
|
3675
3775
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -3689,7 +3789,6 @@ interface GetPostOptions {
|
|
|
3689
3789
|
* @param slug - Slug of the post to retrieve.
|
|
3690
3790
|
* @public
|
|
3691
3791
|
* @requiredField slug
|
|
3692
|
-
* @param options - Options specifying which fields to return.
|
|
3693
3792
|
* @permissionId BLOG.READ-PUBLICATION
|
|
3694
3793
|
* @applicableIdentity APP
|
|
3695
3794
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -3717,7 +3816,6 @@ interface GetPostBySlugOptions {
|
|
|
3717
3816
|
* - `paging.limit` is `50`.
|
|
3718
3817
|
* - `paging.offset` is `0`.
|
|
3719
3818
|
* @public
|
|
3720
|
-
* @param options - Sort, filter, and paging options.
|
|
3721
3819
|
* @permissionId BLOG.READ-PUBLICATION
|
|
3722
3820
|
* @applicableIdentity APP
|
|
3723
3821
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -3788,26 +3886,23 @@ interface ListPostsOptions {
|
|
|
3788
3886
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3789
3887
|
}
|
|
3790
3888
|
/**
|
|
3791
|
-
*
|
|
3792
|
-
*
|
|
3793
|
-
*
|
|
3794
|
-
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
3795
|
-
*
|
|
3796
|
-
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
3889
|
+
* Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
|
|
3797
3890
|
*
|
|
3798
|
-
*
|
|
3799
|
-
*
|
|
3800
|
-
* `
|
|
3801
|
-
*
|
|
3802
|
-
* + `descending('firstPublishedDate')`
|
|
3803
|
-
*
|
|
3804
|
-
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
3891
|
+
* Query Posts runs with these defaults, which you can override:
|
|
3892
|
+
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
3893
|
+
* - `paging.limit` is `50`.
|
|
3894
|
+
* - `paging.offset` is `0`.
|
|
3805
3895
|
*
|
|
3806
|
-
*
|
|
3896
|
+
* For field support for filters and sorting, see
|
|
3897
|
+
* [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
|
|
3807
3898
|
*
|
|
3808
|
-
*
|
|
3899
|
+
* To learn about working with _Query_ endpoints, see
|
|
3900
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
3901
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
|
3902
|
+
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
3903
|
+
* For a detailed list of supported filters and sortable fields, see
|
|
3904
|
+
* [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
|
|
3809
3905
|
* @public
|
|
3810
|
-
* @param options - Options specifying which fields to return.
|
|
3811
3906
|
* @permissionId BLOG.READ-PUBLICATION
|
|
3812
3907
|
* @applicableIdentity APP
|
|
3813
3908
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -3897,4 +3992,4 @@ interface PostsQueryBuilder {
|
|
|
3897
3992
|
*/
|
|
3898
3993
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
3899
3994
|
|
|
3900
|
-
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 };
|
|
3995
|
+
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 };
|
|
@@ -15,186 +15,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
17
|
function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
|
|
18
|
-
const domainToMappings = {
|
|
19
|
-
"api._api_base_domain_": [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/communities-blog-node-api",
|
|
22
|
-
destPath: ""
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"www._base_domain_": [
|
|
26
|
-
{
|
|
27
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
28
|
-
destPath: ""
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
|
32
|
-
destPath: "/v3/posts"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
|
36
|
-
destPath: "/v2/stats"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"apps._base_domain_": [
|
|
40
|
-
{
|
|
41
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
42
|
-
destPath: ""
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
|
46
|
-
destPath: "/v3/posts"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
|
50
|
-
destPath: "/v2/stats"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
_: [
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
56
|
-
destPath: ""
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
|
|
60
|
-
destPath: "/_api/blogs/this"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
srcPath: "/_api/communities-blog-node-api/_api/categories",
|
|
64
|
-
destPath: "/_api/categories"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/_api/communities-blog-node-api/_api/site-properties",
|
|
68
|
-
destPath: "/_api/site-properties"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/communities-blog-node-api/_api/posts/content",
|
|
72
|
-
destPath: "/_api/posts/content"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
|
76
|
-
destPath: "/v3/posts"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
|
80
|
-
destPath: "/v2/stats"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"editor._base_domain_": [
|
|
84
|
-
{
|
|
85
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
86
|
-
destPath: ""
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"blocks._base_domain_": [
|
|
90
|
-
{
|
|
91
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
92
|
-
destPath: ""
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"create.editorx": [
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
98
|
-
destPath: ""
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"*.dev.wix-code.com": [
|
|
102
|
-
{
|
|
103
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
104
|
-
destPath: ""
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"*.pub.wix-code.com": [
|
|
108
|
-
{
|
|
109
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
110
|
-
destPath: ""
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"bo._base_domain_": [
|
|
114
|
-
{
|
|
115
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
116
|
-
destPath: ""
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
120
|
-
destPath: ""
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"wixbo.ai": [
|
|
124
|
-
{
|
|
125
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
126
|
-
destPath: ""
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
130
|
-
destPath: ""
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"wix-bo.com": [
|
|
134
|
-
{
|
|
135
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
136
|
-
destPath: ""
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
140
|
-
destPath: ""
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"manage._base_domain_": [
|
|
144
|
-
{
|
|
145
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
146
|
-
destPath: ""
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"social-blog._base_domain_": [
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
152
|
-
destPath: ""
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"editor.wixapps.net": [
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
158
|
-
destPath: ""
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"dev._base_domain_": [
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/_api/communities-blog-node-api",
|
|
164
|
-
destPath: ""
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"www.wixapis.com": [
|
|
168
|
-
{
|
|
169
|
-
srcPath: "/blog/v2",
|
|
170
|
-
destPath: "/v2"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
srcPath: "/blog/v3",
|
|
174
|
-
destPath: "/v3"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
srcPath: "/v2/stats",
|
|
178
|
-
destPath: "/v2/stats"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
srcPath: "/v3/posts",
|
|
182
|
-
destPath: "/v3/posts"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
srcPath: "/blog/v3/posts",
|
|
186
|
-
destPath: "/v3/posts"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
srcPath: "/blog/v2/stats",
|
|
190
|
-
destPath: "/v2/stats"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
srcPath: "/_api/v3/posts",
|
|
194
|
-
destPath: "/v3/posts"
|
|
195
|
-
}
|
|
196
|
-
]
|
|
197
|
-
};
|
|
18
|
+
const domainToMappings = {};
|
|
198
19
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
199
20
|
}
|
|
200
21
|
function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opts) {
|
|
@@ -1123,6 +944,35 @@ var NullValue = /* @__PURE__ */ ((NullValue2) => {
|
|
|
1123
944
|
NullValue2["NULL_VALUE"] = "NULL_VALUE";
|
|
1124
945
|
return NullValue2;
|
|
1125
946
|
})(NullValue || {});
|
|
947
|
+
var Scaling = /* @__PURE__ */ ((Scaling2) => {
|
|
948
|
+
Scaling2["AUTO"] = "AUTO";
|
|
949
|
+
Scaling2["CONTAIN"] = "CONTAIN";
|
|
950
|
+
Scaling2["COVER"] = "COVER";
|
|
951
|
+
return Scaling2;
|
|
952
|
+
})(Scaling || {});
|
|
953
|
+
var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
|
|
954
|
+
ImagePosition2["CENTER"] = "CENTER";
|
|
955
|
+
ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
|
|
956
|
+
ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
957
|
+
ImagePosition2["TOP"] = "TOP";
|
|
958
|
+
ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
|
|
959
|
+
ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
|
|
960
|
+
ImagePosition2["BOTTOM"] = "BOTTOM";
|
|
961
|
+
ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
962
|
+
ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
963
|
+
return ImagePosition2;
|
|
964
|
+
})(ImagePosition || {});
|
|
965
|
+
var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
|
|
966
|
+
VerticalAlignmentAlignment2["TOP"] = "TOP";
|
|
967
|
+
VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
|
|
968
|
+
VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
|
|
969
|
+
return VerticalAlignmentAlignment2;
|
|
970
|
+
})(VerticalAlignmentAlignment || {});
|
|
971
|
+
var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
|
|
972
|
+
ResponsivenessBehaviour2["STACK"] = "STACK";
|
|
973
|
+
ResponsivenessBehaviour2["WRAP"] = "WRAP";
|
|
974
|
+
return ResponsivenessBehaviour2;
|
|
975
|
+
})(ResponsivenessBehaviour || {});
|
|
1126
976
|
var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
|
1127
977
|
ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
|
|
1128
978
|
ModerationStatusStatus2["APPROVED"] = "APPROVED";
|
|
@@ -1334,8 +1184,8 @@ async function getPost2(postId, options) {
|
|
|
1334
1184
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1335
1185
|
}
|
|
1336
1186
|
]),
|
|
1337
|
-
["post.richContent"
|
|
1338
|
-
);
|
|
1187
|
+
["post.richContent"]
|
|
1188
|
+
)?.post;
|
|
1339
1189
|
} catch (err) {
|
|
1340
1190
|
const transformedError = sdkTransformError(
|
|
1341
1191
|
err,
|
|
@@ -1387,7 +1237,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1387
1237
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1388
1238
|
}
|
|
1389
1239
|
]),
|
|
1390
|
-
["post.richContent"
|
|
1240
|
+
["post.richContent"]
|
|
1391
1241
|
);
|
|
1392
1242
|
} catch (err) {
|
|
1393
1243
|
const transformedError = sdkTransformError(
|
|
@@ -1451,7 +1301,7 @@ async function listPosts2(options) {
|
|
|
1451
1301
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1452
1302
|
}
|
|
1453
1303
|
]),
|
|
1454
|
-
["posts.richContent"
|
|
1304
|
+
["posts.richContent"]
|
|
1455
1305
|
);
|
|
1456
1306
|
} catch (err) {
|
|
1457
1307
|
const transformedError = sdkTransformError(
|
|
@@ -1526,7 +1376,7 @@ function queryPosts2(options) {
|
|
|
1526
1376
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1527
1377
|
}
|
|
1528
1378
|
]),
|
|
1529
|
-
["posts.richContent"
|
|
1379
|
+
["posts.richContent"]
|
|
1530
1380
|
);
|
|
1531
1381
|
return {
|
|
1532
1382
|
items: transformedData?.posts,
|
|
@@ -1583,6 +1433,7 @@ export {
|
|
|
1583
1433
|
GIFType,
|
|
1584
1434
|
GetPostTemplatesSort,
|
|
1585
1435
|
GetPostsSort,
|
|
1436
|
+
ImagePosition,
|
|
1586
1437
|
InitialExpandedItems,
|
|
1587
1438
|
Layout,
|
|
1588
1439
|
LayoutType,
|
|
@@ -1602,6 +1453,8 @@ export {
|
|
|
1602
1453
|
PostFieldField,
|
|
1603
1454
|
QueryPublicationsCountStatsRequestOrder,
|
|
1604
1455
|
Resizing,
|
|
1456
|
+
ResponsivenessBehaviour,
|
|
1457
|
+
Scaling,
|
|
1605
1458
|
SortOrder,
|
|
1606
1459
|
Source,
|
|
1607
1460
|
Status,
|
|
@@ -1611,6 +1464,7 @@ export {
|
|
|
1611
1464
|
ThumbnailsAlignment,
|
|
1612
1465
|
Type,
|
|
1613
1466
|
VerticalAlignment,
|
|
1467
|
+
VerticalAlignmentAlignment,
|
|
1614
1468
|
ViewMode,
|
|
1615
1469
|
ViewRole,
|
|
1616
1470
|
VoteRole,
|