@wix/auto_sdk_blog_posts 1.0.156 → 1.0.157
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 +21 -11
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +62 -23
- package/build/cjs/index.typings.js +11 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +32 -5
- package/build/cjs/meta.js +5 -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 +21 -11
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +62 -23
- package/build/es/index.typings.mjs +11 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +32 -5
- package/build/es/meta.mjs +5 -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 +21 -11
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +62 -23
- package/build/internal/cjs/index.typings.js +11 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +32 -5
- package/build/internal/cjs/meta.js +5 -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 +21 -11
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +62 -23
- package/build/internal/es/index.typings.mjs +11 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +32 -5
- package/build/internal/es/meta.mjs +5 -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
|
@@ -324,6 +324,10 @@ interface Node extends NodeDataOneOf {
|
|
|
324
324
|
smartBlockData?: SmartBlockData;
|
|
325
325
|
/** Data for a smart block cell node. */
|
|
326
326
|
smartBlockCellData?: SmartBlockCellData;
|
|
327
|
+
/** Data for a checkbox list node. */
|
|
328
|
+
checkboxListData?: CheckboxListData;
|
|
329
|
+
/** Data for a list item node. */
|
|
330
|
+
listItemData?: ListItemNodeData;
|
|
327
331
|
/** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */
|
|
328
332
|
type?: NodeTypeWithLiterals;
|
|
329
333
|
/** Node ID. */
|
|
@@ -401,6 +405,10 @@ interface NodeDataOneOf {
|
|
|
401
405
|
smartBlockData?: SmartBlockData;
|
|
402
406
|
/** Data for a smart block cell node. */
|
|
403
407
|
smartBlockCellData?: SmartBlockCellData;
|
|
408
|
+
/** Data for a checkbox list node. */
|
|
409
|
+
checkboxListData?: CheckboxListData;
|
|
410
|
+
/** Data for a list item node. */
|
|
411
|
+
listItemData?: ListItemNodeData;
|
|
404
412
|
}
|
|
405
413
|
declare enum NodeType {
|
|
406
414
|
PARAGRAPH = "PARAGRAPH",
|
|
@@ -441,10 +449,11 @@ declare enum NodeType {
|
|
|
441
449
|
CARD = "CARD",
|
|
442
450
|
TOC = "TOC",
|
|
443
451
|
SMART_BLOCK = "SMART_BLOCK",
|
|
444
|
-
SMART_BLOCK_CELL = "SMART_BLOCK_CELL"
|
|
452
|
+
SMART_BLOCK_CELL = "SMART_BLOCK_CELL",
|
|
453
|
+
CHECKBOX_LIST = "CHECKBOX_LIST"
|
|
445
454
|
}
|
|
446
455
|
/** @enumType */
|
|
447
|
-
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE' | 'CARD' | 'TOC' | 'SMART_BLOCK' | 'SMART_BLOCK_CELL';
|
|
456
|
+
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE' | 'CARD' | 'TOC' | 'SMART_BLOCK' | 'SMART_BLOCK_CELL' | 'CHECKBOX_LIST';
|
|
448
457
|
interface NodeStyle {
|
|
449
458
|
/** The top padding value in pixels. */
|
|
450
459
|
paddingTop?: string | null;
|
|
@@ -2447,10 +2456,18 @@ declare enum SmartBlockDataType {
|
|
|
2447
2456
|
/** Star rating display with stars and a numeric value per cell. */
|
|
2448
2457
|
STAR_RATING = "STAR_RATING",
|
|
2449
2458
|
/** Outlined boxes with decorative quote glyphs at the top-left and bottom-right corners. */
|
|
2450
|
-
QUOTE_BOXES = "QUOTE_BOXES"
|
|
2459
|
+
QUOTE_BOXES = "QUOTE_BOXES",
|
|
2460
|
+
/** Donut/ring with numbered annular-sector segments; cell text labels sit outside the ring. */
|
|
2461
|
+
CIRCLE = "CIRCLE",
|
|
2462
|
+
/** Hierarchical pyramid where each cell renders as a horizontal slice (apex at top, base at bottom) with the cell number or shape centered inside; text content sits beside (desktop) or below (mobile) the pyramid. */
|
|
2463
|
+
PYRAMID = "PYRAMID",
|
|
2464
|
+
/** Cells render a horizontal bar whose width scales with cell index, creating a staircase pattern; bar carries the cell number or a custom shape. */
|
|
2465
|
+
STAIRCASE = "STAIRCASE",
|
|
2466
|
+
/** Hierarchical funnel where each cell renders as a horizontal slice (wide at top, narrowing toward the bottom) with the cell number or shape centered inside; text content sits beside (desktop) or below (mobile) the funnel. */
|
|
2467
|
+
VERTICAL_FUNNEL = "VERTICAL_FUNNEL"
|
|
2451
2468
|
}
|
|
2452
2469
|
/** @enumType */
|
|
2453
|
-
type SmartBlockDataTypeWithLiterals = SmartBlockDataType | 'SOLID_BOXES' | 'NUMBERED_BOXES' | 'STATS' | 'CIRCLE_STATS' | 'SOLID_BOXES_ALTERNATING' | 'SOLID_JOINED_BOXES' | 'SIDE_LINE_TEXT' | 'TOP_LINE_TEXT' | 'OUTLINE_BOXES_WITH_TOP_CIRCLE' | 'BIG_BULLETS' | 'SMALL_BULLETS' | 'ARROW_BULLETS' | 'PROCESS_STEPS' | 'BAR_STATS' | 'TIMELINE' | 'MINIMAL_TIMELINE' | 'PILLS' | 'STAR_RATING' | 'QUOTE_BOXES';
|
|
2470
|
+
type SmartBlockDataTypeWithLiterals = SmartBlockDataType | 'SOLID_BOXES' | 'NUMBERED_BOXES' | 'STATS' | 'CIRCLE_STATS' | 'SOLID_BOXES_ALTERNATING' | 'SOLID_JOINED_BOXES' | 'SIDE_LINE_TEXT' | 'TOP_LINE_TEXT' | 'OUTLINE_BOXES_WITH_TOP_CIRCLE' | 'BIG_BULLETS' | 'SMALL_BULLETS' | 'ARROW_BULLETS' | 'PROCESS_STEPS' | 'BAR_STATS' | 'TIMELINE' | 'MINIMAL_TIMELINE' | 'PILLS' | 'STAR_RATING' | 'QUOTE_BOXES' | 'CIRCLE' | 'PYRAMID' | 'STAIRCASE' | 'VERTICAL_FUNNEL';
|
|
2454
2471
|
/** Column size controlling how many cells appear per row. */
|
|
2455
2472
|
declare enum ColumnSize {
|
|
2456
2473
|
/** Up to 4 cells in a row. */
|
|
@@ -2497,6 +2514,16 @@ interface SmartBlockCellData {
|
|
|
2497
2514
|
*/
|
|
2498
2515
|
shapeColor?: string | null;
|
|
2499
2516
|
}
|
|
2517
|
+
interface CheckboxListData {
|
|
2518
|
+
/** Indentation level from 0-4. */
|
|
2519
|
+
indentation?: number;
|
|
2520
|
+
/** Offset level from 0-4. */
|
|
2521
|
+
offset?: number | null;
|
|
2522
|
+
}
|
|
2523
|
+
interface ListItemNodeData {
|
|
2524
|
+
/** Checkbox list item state. Defaults to `false`. */
|
|
2525
|
+
checked?: boolean | null;
|
|
2526
|
+
}
|
|
2500
2527
|
interface Metadata {
|
|
2501
2528
|
/** Schema version. */
|
|
2502
2529
|
version?: number;
|
|
@@ -4285,13 +4312,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4285
4312
|
/**
|
|
4286
4313
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4287
4314
|
*
|
|
4288
|
-
*
|
|
4289
|
-
* The
|
|
4290
|
-
*
|
|
4291
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4292
|
-
*
|
|
4293
|
-
*
|
|
4315
|
+
*
|
|
4316
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
4317
|
+
*
|
|
4318
|
+
* 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.
|
|
4319
|
+
*
|
|
4320
|
+
* >**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.
|
|
4294
4321
|
* @public
|
|
4322
|
+
* @param options - Options specifying time frame, sort, and filter.
|
|
4295
4323
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4296
4324
|
* @applicableIdentity APP
|
|
4297
4325
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4332,6 +4360,7 @@ interface QueryPostCountStatsOptions {
|
|
|
4332
4360
|
/**
|
|
4333
4361
|
* Retrieves the total amount of published posts of the blog.
|
|
4334
4362
|
* @public
|
|
4363
|
+
* @param options - Language Options.
|
|
4335
4364
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4336
4365
|
* @applicableIdentity APP
|
|
4337
4366
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4352,12 +4381,12 @@ interface GetTotalPostsOptions {
|
|
|
4352
4381
|
* @param postId - Post ID.
|
|
4353
4382
|
* @public
|
|
4354
4383
|
* @requiredField postId
|
|
4384
|
+
* @param options - Options specifying which fields to return.
|
|
4355
4385
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4356
4386
|
* @applicableIdentity APP
|
|
4357
|
-
* @returns Retrieved post info.
|
|
4358
4387
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4359
4388
|
*/
|
|
4360
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4389
|
+
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>>;
|
|
4361
4390
|
interface GetPostOptions {
|
|
4362
4391
|
/**
|
|
4363
4392
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4377,6 +4406,7 @@ interface GetPostOptions {
|
|
|
4377
4406
|
* @param slug - Slug of the post to retrieve.
|
|
4378
4407
|
* @public
|
|
4379
4408
|
* @requiredField slug
|
|
4409
|
+
* @param options - Options specifying which fields to return.
|
|
4380
4410
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4381
4411
|
* @applicableIdentity APP
|
|
4382
4412
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4404,6 +4434,7 @@ interface GetPostBySlugOptions {
|
|
|
4404
4434
|
* - `paging.limit` is `50`.
|
|
4405
4435
|
* - `paging.offset` is `0`.
|
|
4406
4436
|
* @public
|
|
4437
|
+
* @param options - Sort, filter, and paging options.
|
|
4407
4438
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4408
4439
|
* @applicableIdentity APP
|
|
4409
4440
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4474,18 +4505,26 @@ interface ListPostsOptions {
|
|
|
4474
4505
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4475
4506
|
}
|
|
4476
4507
|
/**
|
|
4477
|
-
*
|
|
4508
|
+
* Creates a query to retrieve a list of posts.
|
|
4478
4509
|
*
|
|
4479
|
-
* Query Posts runs with these defaults, which you can override:
|
|
4480
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4481
|
-
* - `paging.limit` is `50`.
|
|
4482
|
-
* - `paging.offset` is `0`.
|
|
4483
4510
|
*
|
|
4484
|
-
*
|
|
4485
|
-
*
|
|
4486
|
-
*
|
|
4487
|
-
*
|
|
4511
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
4512
|
+
*
|
|
4513
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
4514
|
+
*
|
|
4515
|
+
* 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.
|
|
4516
|
+
*
|
|
4517
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
|
4518
|
+
* + `limit(50)`
|
|
4519
|
+
* + `descending('firstPublishedDate')`
|
|
4520
|
+
*
|
|
4521
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
4522
|
+
*
|
|
4523
|
+
* To learn how to query posts, refer to the table below.
|
|
4524
|
+
*
|
|
4525
|
+
* 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`.
|
|
4488
4526
|
* @public
|
|
4527
|
+
* @param options - Options specifying which fields to return.
|
|
4489
4528
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4490
4529
|
* @applicableIdentity APP
|
|
4491
4530
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4735,7 +4774,7 @@ declare const utils: {
|
|
|
4735
4774
|
query: {
|
|
4736
4775
|
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Post, PostQuerySpec, PostQuery>;
|
|
4737
4776
|
Filter: _wix_sdk_types.FilterFactory<Post, PostQuerySpec>;
|
|
4738
|
-
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>;
|
|
4777
|
+
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>; /** Data for a color decoration. */
|
|
4739
4778
|
};
|
|
4740
4779
|
};
|
|
4741
4780
|
/**
|
|
@@ -4751,4 +4790,4 @@ declare const utils: {
|
|
|
4751
4790
|
*/
|
|
4752
4791
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
4753
4792
|
|
|
4754
|
-
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 };
|
|
4793
|
+
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 CheckboxListData, 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 ListItemNodeData, 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 };
|
|
@@ -1093,6 +1093,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
1093
1093
|
NodeType2["TOC"] = "TOC";
|
|
1094
1094
|
NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
|
|
1095
1095
|
NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
|
|
1096
|
+
NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
|
|
1096
1097
|
return NodeType2;
|
|
1097
1098
|
})(NodeType || {});
|
|
1098
1099
|
var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
|
|
@@ -1445,6 +1446,10 @@ var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
|
|
|
1445
1446
|
SmartBlockDataType2["PILLS"] = "PILLS";
|
|
1446
1447
|
SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
|
|
1447
1448
|
SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
|
|
1449
|
+
SmartBlockDataType2["CIRCLE"] = "CIRCLE";
|
|
1450
|
+
SmartBlockDataType2["PYRAMID"] = "PYRAMID";
|
|
1451
|
+
SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
|
|
1452
|
+
SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
|
|
1448
1453
|
return SmartBlockDataType2;
|
|
1449
1454
|
})(SmartBlockDataType || {});
|
|
1450
1455
|
var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
|
|
@@ -1660,8 +1665,8 @@ async function getPost2(postId, options) {
|
|
|
1660
1665
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1661
1666
|
}
|
|
1662
1667
|
]),
|
|
1663
|
-
["post.richContent"]
|
|
1664
|
-
)
|
|
1668
|
+
["post.richContent", "post.rich_content"]
|
|
1669
|
+
);
|
|
1665
1670
|
} catch (err) {
|
|
1666
1671
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1667
1672
|
err,
|
|
@@ -1708,7 +1713,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1708
1713
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1709
1714
|
}
|
|
1710
1715
|
]),
|
|
1711
|
-
["post.richContent"]
|
|
1716
|
+
["post.richContent", "post.rich_content"]
|
|
1712
1717
|
);
|
|
1713
1718
|
} catch (err) {
|
|
1714
1719
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1767,7 +1772,7 @@ async function listPosts2(options) {
|
|
|
1767
1772
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1768
1773
|
}
|
|
1769
1774
|
]),
|
|
1770
|
-
["posts.richContent"]
|
|
1775
|
+
["posts.richContent", "posts.rich_content"]
|
|
1771
1776
|
);
|
|
1772
1777
|
} catch (err) {
|
|
1773
1778
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1837,7 +1842,7 @@ function queryPosts2(options) {
|
|
|
1837
1842
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1838
1843
|
}
|
|
1839
1844
|
]),
|
|
1840
|
-
["posts.richContent"]
|
|
1845
|
+
["posts.richContent", "posts.rich_content"]
|
|
1841
1846
|
);
|
|
1842
1847
|
return {
|
|
1843
1848
|
items: transformedData?.posts,
|
|
@@ -1885,7 +1890,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1885
1890
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1886
1891
|
}
|
|
1887
1892
|
]),
|
|
1888
|
-
["posts.richContent"]
|
|
1893
|
+
["posts.richContent", "posts.rich_content"]
|
|
1889
1894
|
);
|
|
1890
1895
|
} catch (err) {
|
|
1891
1896
|
const transformedError = (0, import_transform_error.transformError)(
|