@wix/auto_sdk_blog_posts 1.0.193 → 1.0.194
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 +15 -11
- package/build/cjs/index.js +17 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +45 -26
- package/build/cjs/index.typings.js +7 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -9
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +15 -11
- package/build/es/index.mjs +17 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +45 -26
- package/build/es/index.typings.mjs +7 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -9
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -11
- package/build/internal/cjs/index.typings.d.ts +45 -26
- package/build/internal/cjs/meta.d.ts +16 -9
- package/build/internal/es/index.d.mts +15 -11
- package/build/internal/es/index.typings.d.mts +45 -26
- package/build/internal/es/meta.d.mts +16 -9
- package/package.json +2 -2
|
@@ -2502,7 +2502,7 @@ interface LayoutData {
|
|
|
2502
2502
|
containerData?: PluginContainerData;
|
|
2503
2503
|
/** Defines where selected design propertied applies to */
|
|
2504
2504
|
designTarget?: DesignTargetWithLiterals;
|
|
2505
|
-
/**
|
|
2505
|
+
/** Where this layout sits: an edge banner, or the paywall cut. One field, so the two can never be combined. */
|
|
2506
2506
|
banner?: Banner;
|
|
2507
2507
|
/** Background styling (color or gradient). */
|
|
2508
2508
|
background?: LayoutDataBackground;
|
|
@@ -2577,13 +2577,15 @@ declare enum Origin {
|
|
|
2577
2577
|
/** @enumType */
|
|
2578
2578
|
type OriginWithLiterals = Origin | 'IMAGE' | 'LAYOUT';
|
|
2579
2579
|
declare enum BannerPosition {
|
|
2580
|
-
/** Attached to the top edge (banner) */
|
|
2580
|
+
/** Attached to the top edge (banner). The default, so a banner written before this field existed decodes as TOP. */
|
|
2581
2581
|
TOP = "TOP",
|
|
2582
|
-
/** Attached to the bottom edge (footer) */
|
|
2583
|
-
BOTTOM = "BOTTOM"
|
|
2582
|
+
/** Attached to the bottom edge (footer). */
|
|
2583
|
+
BOTTOM = "BOTTOM",
|
|
2584
|
+
/** The cut between free and paid content, not an edge banner. `origin` carries no meaning for it. */
|
|
2585
|
+
PAYWALL = "PAYWALL"
|
|
2584
2586
|
}
|
|
2585
2587
|
/** @enumType */
|
|
2586
|
-
type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM';
|
|
2588
|
+
type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM' | 'PAYWALL';
|
|
2587
2589
|
/** How the stacked layers fade relative to the base shape. Named for a bottom divider; top dividers render mirrored, so the visual fade flips. */
|
|
2588
2590
|
declare enum LayerEffect {
|
|
2589
2591
|
/** Shape keeps its height, a solid filler bar pushes it away from the edge */
|
|
@@ -2711,12 +2713,17 @@ declare enum DesignTarget {
|
|
|
2711
2713
|
}
|
|
2712
2714
|
/** @enumType */
|
|
2713
2715
|
type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
|
|
2714
|
-
interface Banner {
|
|
2715
|
-
/** Origin of the banner */
|
|
2716
|
+
interface Banner extends BannerOriginPresenceOneOf {
|
|
2717
|
+
/** Origin of the banner. Edge positions only. */
|
|
2716
2718
|
origin?: OriginWithLiterals;
|
|
2717
|
-
/**
|
|
2719
|
+
/** Where the layout sits: an edge, or the paywall cut. */
|
|
2718
2720
|
position?: BannerPositionWithLiterals;
|
|
2719
2721
|
}
|
|
2722
|
+
/** @oneof */
|
|
2723
|
+
interface BannerOriginPresenceOneOf {
|
|
2724
|
+
/** Origin of the banner. Edge positions only. */
|
|
2725
|
+
origin?: OriginWithLiterals;
|
|
2726
|
+
}
|
|
2720
2727
|
/** Backdrop styling (color or gradient) */
|
|
2721
2728
|
interface Backdrop {
|
|
2722
2729
|
/** Backdrop type. */
|
|
@@ -4456,13 +4463,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4456
4463
|
/**
|
|
4457
4464
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4458
4465
|
*
|
|
4459
|
-
*
|
|
4460
|
-
* The
|
|
4461
|
-
*
|
|
4462
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4463
|
-
*
|
|
4464
|
-
*
|
|
4466
|
+
*
|
|
4467
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
4468
|
+
*
|
|
4469
|
+
* 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.
|
|
4470
|
+
*
|
|
4471
|
+
* >**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.
|
|
4465
4472
|
* @public
|
|
4473
|
+
* @param options - Options specifying time frame, sort, and filter.
|
|
4466
4474
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4467
4475
|
* @applicableIdentity APP
|
|
4468
4476
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4503,6 +4511,7 @@ interface QueryPostCountStatsOptions {
|
|
|
4503
4511
|
/**
|
|
4504
4512
|
* Retrieves the total amount of published posts of the blog.
|
|
4505
4513
|
* @public
|
|
4514
|
+
* @param options - Language Options.
|
|
4506
4515
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4507
4516
|
* @applicableIdentity APP
|
|
4508
4517
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4523,12 +4532,12 @@ interface GetTotalPostsOptions {
|
|
|
4523
4532
|
* @param postId - Post ID.
|
|
4524
4533
|
* @public
|
|
4525
4534
|
* @requiredField postId
|
|
4535
|
+
* @param options - Options specifying which fields to return.
|
|
4526
4536
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4527
4537
|
* @applicableIdentity APP
|
|
4528
|
-
* @returns Retrieved post info.
|
|
4529
4538
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4530
4539
|
*/
|
|
4531
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4540
|
+
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.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`, 5>>;
|
|
4532
4541
|
interface GetPostOptions {
|
|
4533
4542
|
/**
|
|
4534
4543
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4548,6 +4557,7 @@ interface GetPostOptions {
|
|
|
4548
4557
|
* @param slug - Slug of the post to retrieve.
|
|
4549
4558
|
* @public
|
|
4550
4559
|
* @requiredField slug
|
|
4560
|
+
* @param options - Options specifying which fields to return.
|
|
4551
4561
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4552
4562
|
* @applicableIdentity APP
|
|
4553
4563
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4575,6 +4585,7 @@ interface GetPostBySlugOptions {
|
|
|
4575
4585
|
* - `paging.limit` is `50`.
|
|
4576
4586
|
* - `paging.offset` is `0`.
|
|
4577
4587
|
* @public
|
|
4588
|
+
* @param options - Sort, filter, and paging options.
|
|
4578
4589
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4579
4590
|
* @applicableIdentity APP
|
|
4580
4591
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4645,18 +4656,26 @@ interface ListPostsOptions {
|
|
|
4645
4656
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4646
4657
|
}
|
|
4647
4658
|
/**
|
|
4648
|
-
*
|
|
4659
|
+
* Creates a query to retrieve a list of posts.
|
|
4649
4660
|
*
|
|
4650
|
-
* Query Posts runs with these defaults, which you can override:
|
|
4651
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4652
|
-
* - `paging.limit` is `50`.
|
|
4653
|
-
* - `paging.offset` is `0`.
|
|
4654
4661
|
*
|
|
4655
|
-
*
|
|
4656
|
-
*
|
|
4657
|
-
*
|
|
4658
|
-
*
|
|
4662
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
4663
|
+
*
|
|
4664
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
4665
|
+
*
|
|
4666
|
+
* 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.
|
|
4667
|
+
*
|
|
4668
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
|
4669
|
+
* + `limit(50)`
|
|
4670
|
+
* + `descending('firstPublishedDate')`
|
|
4671
|
+
*
|
|
4672
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
4673
|
+
*
|
|
4674
|
+
* To learn how to query posts, refer to the table below.
|
|
4675
|
+
*
|
|
4676
|
+
* 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`.
|
|
4659
4677
|
* @public
|
|
4678
|
+
* @param options - Options specifying which fields to return.
|
|
4660
4679
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4661
4680
|
* @applicableIdentity APP
|
|
4662
4681
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4939,4 +4958,4 @@ declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPos
|
|
|
4939
4958
|
*/
|
|
4940
4959
|
declare function viewPost(postId: string): Promise<NonNullablePaths<ViewPostResponse, `views`, 0>>;
|
|
4941
4960
|
|
|
4942
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeletePostsRequest, type BulkDeletePostsResponse, type BulkGetPostReactionsRequest, type BulkGetPostReactionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorDataBackground, ColorDataBackgroundType, type ColorDataBackgroundTypeWithLiterals, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeletePostRequest, type DeletePostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, 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 GetPostCountPerMonthRequest, type GetPostCountPerMonthResponse, type GetPostCountsRequest, type GetPostCountsResponse, type GetPostMetricsRequest, type GetPostMetricsResponse, type GetPostOptions, type GetPostRequest, type GetPostResponse, GetPostsSort, type GetPostsSortWithLiterals, type GetTotalLikesPerMemberRequest, type GetTotalLikesPerMemberResponse, type GetTotalPostsOptions, type GetTotalPostsRequest, type GetTotalPostsResponse, type GetTotalPublicationsRequest, type GetTotalPublicationsResponse, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InitialPostsCopied, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, type LikePostRequest, type LikePostResponse, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDemoPostsRequest, type ListDemoPostsResponse, type ListItemNodeData, type ListPostsArchiveRequest, type ListPostsArchiveResponse, type ListPostsOptions, type ListPostsRequest, type ListPostsResponse, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type Metrics, type ModerationDetails, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, 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 PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Post, type PostCategoriesUpdated, type PostCount, type PostCountInfo, type PostCountPerMonth, type PostCountersUpdated, type PostCountersUpdatedInitiatorOneOf, type PostCreatedEnvelope, type PostDeletedEnvelope, PostFieldField, type PostFieldFieldWithLiterals, type PostLiked, type PostLikedEnvelope, type PostLikedInitiatorOneOf, type PostOwnerChanged, type PostQuery, type PostQuerySpec, 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 SectionDivider, type SeoSchema, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SlotData, type SlotDesign, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, 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 TocData, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, Variant, type VariantWithLiterals, 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, typedQueryPosts, utils, viewPost };
|
|
4961
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, Alignment, type AlignmentWithLiterals, type AnchorData, type Animation, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, type BannerOriginPresenceOneOf, BannerPosition, type BannerPositionWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeletePostsRequest, type BulkDeletePostsResponse, type BulkGetPostReactionsRequest, type BulkGetPostReactionsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckboxListData, type CodeBlockData, type CollapsibleListData, type ColorData, type ColorDataBackground, ColorDataBackgroundType, type ColorDataBackgroundTypeWithLiterals, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeletePostRequest, type DeletePostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DividerDataStyles, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntranceAnimation, type EntranceEffect, EntranceEffectType, type EntranceEffectTypeWithLiterals, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, 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 GetPostCountPerMonthRequest, type GetPostCountPerMonthResponse, type GetPostCountsRequest, type GetPostCountsResponse, type GetPostMetricsRequest, type GetPostMetricsResponse, type GetPostOptions, type GetPostRequest, type GetPostResponse, GetPostsSort, type GetPostsSortWithLiterals, type GetTotalLikesPerMemberRequest, type GetTotalLikesPerMemberResponse, type GetTotalPostsOptions, type GetTotalPostsRequest, type GetTotalPostsResponse, type GetTotalPublicationsRequest, type GetTotalPublicationsResponse, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataCrop, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, Indentation, type IndentationWithLiterals, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InitialPostsCopied, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, LayerEffect, type LayerEffectWithLiterals, type Layers, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, type LikePostRequest, type LikePostResponse, LineCap, type LineCapWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDemoPostsRequest, type ListDemoPostsResponse, type ListItemNodeData, type ListPostsArchiveRequest, type ListPostsArchiveResponse, type ListPostsOptions, type ListPostsRequest, type ListPostsResponse, ListStyle, type ListStyleWithLiterals, type ListValue, type LoopAnimation, type LoopEffect, LoopEffectType, type LoopEffectTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type Metrics, type ModerationDetails, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, 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 PointerEffect, PointerEffectType, type PointerEffectTypeWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Post, type PostCategoriesUpdated, type PostCount, type PostCountInfo, type PostCountPerMonth, type PostCountersUpdated, type PostCountersUpdatedInitiatorOneOf, type PostCreatedEnvelope, type PostDeletedEnvelope, PostFieldField, type PostFieldFieldWithLiterals, type PostLiked, type PostLikedEnvelope, type PostLikedInitiatorOneOf, type PostOwnerChanged, type PostQuery, type PostQuerySpec, 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 SectionDivider, type SeoSchema, type Settings, Shape, type ShapeData, type ShapeDataStyles, type ShapeWithLiterals, type SketchData, type SlotData, type SlotDesign, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, 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 TocData, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, Variant, type VariantWithLiterals, 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, typedQueryPosts, utils, viewPost };
|
|
@@ -1620,6 +1620,7 @@ var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
|
1620
1620
|
var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
|
|
1621
1621
|
BannerPosition2["TOP"] = "TOP";
|
|
1622
1622
|
BannerPosition2["BOTTOM"] = "BOTTOM";
|
|
1623
|
+
BannerPosition2["PAYWALL"] = "PAYWALL";
|
|
1623
1624
|
return BannerPosition2;
|
|
1624
1625
|
})(BannerPosition || {});
|
|
1625
1626
|
var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
|
|
@@ -1910,8 +1911,8 @@ async function getPost2(postId, options) {
|
|
|
1910
1911
|
paths: TRANSFORM_PATHS_22
|
|
1911
1912
|
}
|
|
1912
1913
|
]),
|
|
1913
|
-
["post.richContent"]
|
|
1914
|
-
)
|
|
1914
|
+
["post.richContent", "post.rich_content"]
|
|
1915
|
+
);
|
|
1915
1916
|
} catch (err) {
|
|
1916
1917
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1917
1918
|
err,
|
|
@@ -1955,7 +1956,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1955
1956
|
paths: TRANSFORM_PATHS_22
|
|
1956
1957
|
}
|
|
1957
1958
|
]),
|
|
1958
|
-
["post.richContent"]
|
|
1959
|
+
["post.richContent", "post.rich_content"]
|
|
1959
1960
|
);
|
|
1960
1961
|
} catch (err) {
|
|
1961
1962
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -2011,7 +2012,7 @@ async function listPosts2(options) {
|
|
|
2011
2012
|
paths: TRANSFORM_PATHS_52
|
|
2012
2013
|
}
|
|
2013
2014
|
]),
|
|
2014
|
-
["posts.richContent"]
|
|
2015
|
+
["posts.richContent", "posts.rich_content"]
|
|
2015
2016
|
);
|
|
2016
2017
|
} catch (err) {
|
|
2017
2018
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -2078,7 +2079,7 @@ function queryPosts2(options) {
|
|
|
2078
2079
|
paths: TRANSFORM_PATHS_52
|
|
2079
2080
|
}
|
|
2080
2081
|
]),
|
|
2081
|
-
["posts.richContent"]
|
|
2082
|
+
["posts.richContent", "posts.rich_content"]
|
|
2082
2083
|
);
|
|
2083
2084
|
return {
|
|
2084
2085
|
items: transformedData?.posts,
|
|
@@ -2123,7 +2124,7 @@ async function typedQueryPosts(query, options) {
|
|
|
2123
2124
|
paths: TRANSFORM_PATHS_52
|
|
2124
2125
|
}
|
|
2125
2126
|
]),
|
|
2126
|
-
["posts.richContent"]
|
|
2127
|
+
["posts.richContent", "posts.rich_content"]
|
|
2127
2128
|
);
|
|
2128
2129
|
} catch (err) {
|
|
2129
2130
|
const transformedError = (0, import_transform_error.transformError)(
|