@wix/auto_sdk_blog_posts 1.0.151 → 1.0.152
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 +23 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +41 -19
- package/build/cjs/index.typings.js +13 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +12 -2
- package/build/cjs/meta.js +7 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +84 -82
- package/build/cjs/schemas.js +153 -147
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +15 -11
- package/build/es/index.mjs +22 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +41 -19
- package/build/es/index.typings.mjs +12 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +12 -2
- package/build/es/meta.mjs +6 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +84 -82
- package/build/es/schemas.mjs +153 -147
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -11
- package/build/internal/cjs/index.js +23 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +41 -19
- package/build/internal/cjs/index.typings.js +13 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +12 -2
- package/build/internal/cjs/meta.js +7 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +84 -82
- package/build/internal/cjs/schemas.js +153 -147
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -11
- package/build/internal/es/index.mjs +22 -11
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +41 -19
- package/build/internal/es/index.typings.mjs +12 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +12 -2
- package/build/internal/es/meta.mjs +6 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +84 -82
- package/build/internal/es/schemas.mjs +153 -147
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2116,7 +2116,7 @@ interface LayoutData {
|
|
|
2116
2116
|
containerData?: PluginContainerData;
|
|
2117
2117
|
/** Defines where selected design propertied applies to */
|
|
2118
2118
|
designTarget?: DesignTargetWithLiterals;
|
|
2119
|
-
/** Banner configuration. When present, this layout is
|
|
2119
|
+
/** Banner configuration. When present, this layout is attached to a document edge (top or bottom). */
|
|
2120
2120
|
banner?: Banner;
|
|
2121
2121
|
/** Background styling (color or gradient). */
|
|
2122
2122
|
background?: LayoutDataBackground;
|
|
@@ -2163,6 +2163,14 @@ declare enum BannerOrigin {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
/** @enumType */
|
|
2165
2165
|
type BannerOriginWithLiterals = BannerOrigin | 'IMAGE' | 'LAYOUT';
|
|
2166
|
+
declare enum BannerPosition {
|
|
2167
|
+
/** Attached to the top edge (banner) */
|
|
2168
|
+
TOP = "TOP",
|
|
2169
|
+
/** Attached to the bottom edge (footer) */
|
|
2170
|
+
BOTTOM = "BOTTOM"
|
|
2171
|
+
}
|
|
2172
|
+
/** @enumType */
|
|
2173
|
+
type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM';
|
|
2166
2174
|
/** Background type */
|
|
2167
2175
|
declare enum LayoutDataBackgroundType {
|
|
2168
2176
|
/** Solid color background */
|
|
@@ -2220,6 +2228,8 @@ type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
|
|
|
2220
2228
|
interface Banner {
|
|
2221
2229
|
/** Origin of the banner */
|
|
2222
2230
|
origin?: BannerOriginWithLiterals;
|
|
2231
|
+
/** Position of the banner */
|
|
2232
|
+
position?: BannerPositionWithLiterals;
|
|
2223
2233
|
}
|
|
2224
2234
|
/** Background styling (color or gradient) */
|
|
2225
2235
|
interface LayoutDataBackground {
|
|
@@ -4265,13 +4275,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4265
4275
|
/**
|
|
4266
4276
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4267
4277
|
*
|
|
4268
|
-
*
|
|
4269
|
-
* The
|
|
4270
|
-
*
|
|
4271
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4272
|
-
*
|
|
4273
|
-
*
|
|
4278
|
+
*
|
|
4279
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
4280
|
+
*
|
|
4281
|
+
* 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.
|
|
4282
|
+
*
|
|
4283
|
+
* >**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.
|
|
4274
4284
|
* @public
|
|
4285
|
+
* @param options - Options specifying time frame, sort, and filter.
|
|
4275
4286
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4276
4287
|
* @applicableIdentity APP
|
|
4277
4288
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4312,6 +4323,7 @@ interface QueryPostCountStatsOptions {
|
|
|
4312
4323
|
/**
|
|
4313
4324
|
* Retrieves the total amount of published posts of the blog.
|
|
4314
4325
|
* @public
|
|
4326
|
+
* @param options - Language Options.
|
|
4315
4327
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4316
4328
|
* @applicableIdentity APP
|
|
4317
4329
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4332,12 +4344,12 @@ interface GetTotalPostsOptions {
|
|
|
4332
4344
|
* @param postId - Post ID.
|
|
4333
4345
|
* @public
|
|
4334
4346
|
* @requiredField postId
|
|
4347
|
+
* @param options - Options specifying which fields to return.
|
|
4335
4348
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4336
4349
|
* @applicableIdentity APP
|
|
4337
|
-
* @returns Retrieved post info.
|
|
4338
4350
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4339
4351
|
*/
|
|
4340
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4352
|
+
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`, 7>>;
|
|
4341
4353
|
interface GetPostOptions {
|
|
4342
4354
|
/**
|
|
4343
4355
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4357,6 +4369,7 @@ interface GetPostOptions {
|
|
|
4357
4369
|
* @param slug - Slug of the post to retrieve.
|
|
4358
4370
|
* @public
|
|
4359
4371
|
* @requiredField slug
|
|
4372
|
+
* @param options - Options specifying which fields to return.
|
|
4360
4373
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4361
4374
|
* @applicableIdentity APP
|
|
4362
4375
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4384,6 +4397,7 @@ interface GetPostBySlugOptions {
|
|
|
4384
4397
|
* - `paging.limit` is `50`.
|
|
4385
4398
|
* - `paging.offset` is `0`.
|
|
4386
4399
|
* @public
|
|
4400
|
+
* @param options - Sort, filter, and paging options.
|
|
4387
4401
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4388
4402
|
* @applicableIdentity APP
|
|
4389
4403
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4454,18 +4468,26 @@ interface ListPostsOptions {
|
|
|
4454
4468
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4455
4469
|
}
|
|
4456
4470
|
/**
|
|
4457
|
-
*
|
|
4471
|
+
* Creates a query to retrieve a list of posts.
|
|
4458
4472
|
*
|
|
4459
|
-
* Query Posts runs with these defaults, which you can override:
|
|
4460
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4461
|
-
* - `paging.limit` is `50`.
|
|
4462
|
-
* - `paging.offset` is `0`.
|
|
4463
4473
|
*
|
|
4464
|
-
*
|
|
4465
|
-
*
|
|
4466
|
-
*
|
|
4467
|
-
*
|
|
4474
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
4475
|
+
*
|
|
4476
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
4477
|
+
*
|
|
4478
|
+
* 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.
|
|
4479
|
+
*
|
|
4480
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
|
4481
|
+
* + `limit(50)`
|
|
4482
|
+
* + `descending('firstPublishedDate')`
|
|
4483
|
+
*
|
|
4484
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
4485
|
+
*
|
|
4486
|
+
* To learn how to query posts, refer to the table below.
|
|
4487
|
+
*
|
|
4488
|
+
* 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`.
|
|
4468
4489
|
* @public
|
|
4490
|
+
* @param options - Options specifying which fields to return.
|
|
4469
4491
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4470
4492
|
* @applicableIdentity APP
|
|
4471
4493
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4731,4 +4753,4 @@ declare const utils: {
|
|
|
4731
4753
|
*/
|
|
4732
4754
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
4733
4755
|
|
|
4734
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, 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, BannerOrigin, type BannerOriginWithLiterals, 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, type Category, type CategoryTranslation, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, type ConvertDraftJsToRichContentRequest, type ConvertDraftJsToRichContentResponse, type ConvertRichContentToDraftJsRequest, type ConvertRichContentToDraftJsResponse, type CreateDraftPostFromTemplateRequest, type CreateDraftPostFromTemplateResponse, 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 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 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, 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, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, 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, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, 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, ListStyle, type ListStyleWithLiterals, 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 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 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 SeoSchema, type Settings, type ShapeData, type ShapeDataStyles, 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, 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 };
|
|
4756
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, Alignment, type AlignmentWithLiterals, type AnchorData, 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, BannerOrigin, type BannerOriginWithLiterals, 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, type Category, type CategoryTranslation, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, ColumnSize, type ColumnSizeWithLiterals, type CommonQueryWithEntityContext, type ConvertDraftJsToRichContentRequest, type ConvertDraftJsToRichContentResponse, type ConvertRichContentToDraftJsRequest, type ConvertRichContentToDraftJsResponse, type CreateDraftPostFromTemplateRequest, type CreateDraftPostFromTemplateResponse, 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 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 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, 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, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, 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, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, 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, ListStyle, type ListStyleWithLiterals, 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 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 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 SeoSchema, type Settings, type ShapeData, type ShapeDataStyles, 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, 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 };
|
|
@@ -1259,6 +1259,11 @@ var BannerOrigin = /* @__PURE__ */ ((BannerOrigin2) => {
|
|
|
1259
1259
|
BannerOrigin2["LAYOUT"] = "LAYOUT";
|
|
1260
1260
|
return BannerOrigin2;
|
|
1261
1261
|
})(BannerOrigin || {});
|
|
1262
|
+
var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
|
|
1263
|
+
BannerPosition2["TOP"] = "TOP";
|
|
1264
|
+
BannerPosition2["BOTTOM"] = "BOTTOM";
|
|
1265
|
+
return BannerPosition2;
|
|
1266
|
+
})(BannerPosition || {});
|
|
1262
1267
|
var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
|
|
1263
1268
|
LayoutDataBackgroundType2["COLOR"] = "COLOR";
|
|
1264
1269
|
LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
|
|
@@ -1553,8 +1558,8 @@ async function getPost2(postId, options) {
|
|
|
1553
1558
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1554
1559
|
}
|
|
1555
1560
|
]),
|
|
1556
|
-
["post.richContent"]
|
|
1557
|
-
)
|
|
1561
|
+
["post.richContent", "post.rich_content"]
|
|
1562
|
+
);
|
|
1558
1563
|
} catch (err) {
|
|
1559
1564
|
const transformedError = sdkTransformError(
|
|
1560
1565
|
err,
|
|
@@ -1601,7 +1606,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1601
1606
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1602
1607
|
}
|
|
1603
1608
|
]),
|
|
1604
|
-
["post.richContent"]
|
|
1609
|
+
["post.richContent", "post.rich_content"]
|
|
1605
1610
|
);
|
|
1606
1611
|
} catch (err) {
|
|
1607
1612
|
const transformedError = sdkTransformError(
|
|
@@ -1660,7 +1665,7 @@ async function listPosts2(options) {
|
|
|
1660
1665
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1661
1666
|
}
|
|
1662
1667
|
]),
|
|
1663
|
-
["posts.richContent"]
|
|
1668
|
+
["posts.richContent", "posts.rich_content"]
|
|
1664
1669
|
);
|
|
1665
1670
|
} catch (err) {
|
|
1666
1671
|
const transformedError = sdkTransformError(
|
|
@@ -1730,7 +1735,7 @@ function queryPosts2(options) {
|
|
|
1730
1735
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1731
1736
|
}
|
|
1732
1737
|
]),
|
|
1733
|
-
["posts.richContent"]
|
|
1738
|
+
["posts.richContent", "posts.rich_content"]
|
|
1734
1739
|
);
|
|
1735
1740
|
return {
|
|
1736
1741
|
items: transformedData?.posts,
|
|
@@ -1778,7 +1783,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1778
1783
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1779
1784
|
}
|
|
1780
1785
|
]),
|
|
1781
|
-
["posts.richContent"]
|
|
1786
|
+
["posts.richContent", "posts.rich_content"]
|
|
1782
1787
|
);
|
|
1783
1788
|
} catch (err) {
|
|
1784
1789
|
const transformedError = sdkTransformError(
|
|
@@ -1829,6 +1834,7 @@ export {
|
|
|
1829
1834
|
BackdropType,
|
|
1830
1835
|
BackgroundType,
|
|
1831
1836
|
BannerOrigin,
|
|
1837
|
+
BannerPosition,
|
|
1832
1838
|
ButtonDataType,
|
|
1833
1839
|
CardDataBackgroundType,
|
|
1834
1840
|
ColumnSize,
|