@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
|
@@ -2123,7 +2123,7 @@ interface LayoutData {
|
|
|
2123
2123
|
containerData?: PluginContainerData;
|
|
2124
2124
|
/** Defines where selected design propertied applies to */
|
|
2125
2125
|
designTarget?: DesignTargetWithLiterals;
|
|
2126
|
-
/** Banner configuration. When present, this layout is
|
|
2126
|
+
/** Banner configuration. When present, this layout is attached to a document edge (top or bottom). */
|
|
2127
2127
|
banner?: Banner;
|
|
2128
2128
|
/** Background styling (color or gradient). */
|
|
2129
2129
|
background?: LayoutDataBackground;
|
|
@@ -2170,6 +2170,14 @@ declare enum BannerOrigin {
|
|
|
2170
2170
|
}
|
|
2171
2171
|
/** @enumType */
|
|
2172
2172
|
type BannerOriginWithLiterals = BannerOrigin | 'IMAGE' | 'LAYOUT';
|
|
2173
|
+
declare enum BannerPosition {
|
|
2174
|
+
/** Attached to the top edge (banner) */
|
|
2175
|
+
TOP = "TOP",
|
|
2176
|
+
/** Attached to the bottom edge (footer) */
|
|
2177
|
+
BOTTOM = "BOTTOM"
|
|
2178
|
+
}
|
|
2179
|
+
/** @enumType */
|
|
2180
|
+
type BannerPositionWithLiterals = BannerPosition | 'TOP' | 'BOTTOM';
|
|
2173
2181
|
/** Background type */
|
|
2174
2182
|
declare enum LayoutDataBackgroundType {
|
|
2175
2183
|
/** Solid color background */
|
|
@@ -2227,6 +2235,8 @@ type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
|
|
|
2227
2235
|
interface Banner {
|
|
2228
2236
|
/** Origin of the banner */
|
|
2229
2237
|
origin?: BannerOriginWithLiterals;
|
|
2238
|
+
/** Position of the banner */
|
|
2239
|
+
position?: BannerPositionWithLiterals;
|
|
2230
2240
|
}
|
|
2231
2241
|
/** Background styling (color or gradient) */
|
|
2232
2242
|
interface LayoutDataBackground {
|
|
@@ -4272,13 +4282,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4272
4282
|
/**
|
|
4273
4283
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4274
4284
|
*
|
|
4275
|
-
*
|
|
4276
|
-
* The
|
|
4277
|
-
*
|
|
4278
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4279
|
-
*
|
|
4280
|
-
*
|
|
4285
|
+
*
|
|
4286
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
4287
|
+
*
|
|
4288
|
+
* 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.
|
|
4289
|
+
*
|
|
4290
|
+
* >**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.
|
|
4281
4291
|
* @public
|
|
4292
|
+
* @param options - Options specifying time frame, sort, and filter.
|
|
4282
4293
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4283
4294
|
* @applicableIdentity APP
|
|
4284
4295
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4319,6 +4330,7 @@ interface QueryPostCountStatsOptions {
|
|
|
4319
4330
|
/**
|
|
4320
4331
|
* Retrieves the total amount of published posts of the blog.
|
|
4321
4332
|
* @public
|
|
4333
|
+
* @param options - Language Options.
|
|
4322
4334
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4323
4335
|
* @applicableIdentity APP
|
|
4324
4336
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4339,12 +4351,12 @@ interface GetTotalPostsOptions {
|
|
|
4339
4351
|
* @param postId - Post ID.
|
|
4340
4352
|
* @public
|
|
4341
4353
|
* @requiredField postId
|
|
4354
|
+
* @param options - Options specifying which fields to return.
|
|
4342
4355
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4343
4356
|
* @applicableIdentity APP
|
|
4344
|
-
* @returns Retrieved post info.
|
|
4345
4357
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4346
4358
|
*/
|
|
4347
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4359
|
+
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>>;
|
|
4348
4360
|
interface GetPostOptions {
|
|
4349
4361
|
/**
|
|
4350
4362
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4364,6 +4376,7 @@ interface GetPostOptions {
|
|
|
4364
4376
|
* @param slug - Slug of the post to retrieve.
|
|
4365
4377
|
* @public
|
|
4366
4378
|
* @requiredField slug
|
|
4379
|
+
* @param options - Options specifying which fields to return.
|
|
4367
4380
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4368
4381
|
* @applicableIdentity APP
|
|
4369
4382
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4391,6 +4404,7 @@ interface GetPostBySlugOptions {
|
|
|
4391
4404
|
* - `paging.limit` is `50`.
|
|
4392
4405
|
* - `paging.offset` is `0`.
|
|
4393
4406
|
* @public
|
|
4407
|
+
* @param options - Sort, filter, and paging options.
|
|
4394
4408
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4395
4409
|
* @applicableIdentity APP
|
|
4396
4410
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4461,18 +4475,26 @@ interface ListPostsOptions {
|
|
|
4461
4475
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4462
4476
|
}
|
|
4463
4477
|
/**
|
|
4464
|
-
*
|
|
4478
|
+
* Creates a query to retrieve a list of posts.
|
|
4465
4479
|
*
|
|
4466
|
-
* Query Posts runs with these defaults, which you can override:
|
|
4467
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4468
|
-
* - `paging.limit` is `50`.
|
|
4469
|
-
* - `paging.offset` is `0`.
|
|
4470
4480
|
*
|
|
4471
|
-
*
|
|
4472
|
-
*
|
|
4473
|
-
*
|
|
4474
|
-
*
|
|
4481
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
4482
|
+
*
|
|
4483
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
4484
|
+
*
|
|
4485
|
+
* 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.
|
|
4486
|
+
*
|
|
4487
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
|
4488
|
+
* + `limit(50)`
|
|
4489
|
+
* + `descending('firstPublishedDate')`
|
|
4490
|
+
*
|
|
4491
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
4492
|
+
*
|
|
4493
|
+
* To learn how to query posts, refer to the table below.
|
|
4494
|
+
*
|
|
4495
|
+
* 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`.
|
|
4475
4496
|
* @public
|
|
4497
|
+
* @param options - Options specifying which fields to return.
|
|
4476
4498
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4477
4499
|
* @applicableIdentity APP
|
|
4478
4500
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4738,4 +4760,4 @@ declare const utils: {
|
|
|
4738
4760
|
*/
|
|
4739
4761
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
4740
4762
|
|
|
4741
|
-
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 };
|
|
4763
|
+
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,
|