@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
|
@@ -331,6 +331,10 @@ interface Node extends NodeDataOneOf {
|
|
|
331
331
|
smartBlockData?: SmartBlockData;
|
|
332
332
|
/** Data for a smart block cell node. */
|
|
333
333
|
smartBlockCellData?: SmartBlockCellData;
|
|
334
|
+
/** Data for a checkbox list node. */
|
|
335
|
+
checkboxListData?: CheckboxListData;
|
|
336
|
+
/** Data for a list item node. */
|
|
337
|
+
listItemData?: ListItemNodeData;
|
|
334
338
|
/** 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. */
|
|
335
339
|
type?: NodeTypeWithLiterals;
|
|
336
340
|
/** Node ID. */
|
|
@@ -408,6 +412,10 @@ interface NodeDataOneOf {
|
|
|
408
412
|
smartBlockData?: SmartBlockData;
|
|
409
413
|
/** Data for a smart block cell node. */
|
|
410
414
|
smartBlockCellData?: SmartBlockCellData;
|
|
415
|
+
/** Data for a checkbox list node. */
|
|
416
|
+
checkboxListData?: CheckboxListData;
|
|
417
|
+
/** Data for a list item node. */
|
|
418
|
+
listItemData?: ListItemNodeData;
|
|
411
419
|
}
|
|
412
420
|
declare enum NodeType {
|
|
413
421
|
PARAGRAPH = "PARAGRAPH",
|
|
@@ -448,10 +456,11 @@ declare enum NodeType {
|
|
|
448
456
|
CARD = "CARD",
|
|
449
457
|
TOC = "TOC",
|
|
450
458
|
SMART_BLOCK = "SMART_BLOCK",
|
|
451
|
-
SMART_BLOCK_CELL = "SMART_BLOCK_CELL"
|
|
459
|
+
SMART_BLOCK_CELL = "SMART_BLOCK_CELL",
|
|
460
|
+
CHECKBOX_LIST = "CHECKBOX_LIST"
|
|
452
461
|
}
|
|
453
462
|
/** @enumType */
|
|
454
|
-
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';
|
|
463
|
+
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';
|
|
455
464
|
interface NodeStyle {
|
|
456
465
|
/** The top padding value in pixels. */
|
|
457
466
|
paddingTop?: string | null;
|
|
@@ -2454,10 +2463,18 @@ declare enum SmartBlockDataType {
|
|
|
2454
2463
|
/** Star rating display with stars and a numeric value per cell. */
|
|
2455
2464
|
STAR_RATING = "STAR_RATING",
|
|
2456
2465
|
/** Outlined boxes with decorative quote glyphs at the top-left and bottom-right corners. */
|
|
2457
|
-
QUOTE_BOXES = "QUOTE_BOXES"
|
|
2466
|
+
QUOTE_BOXES = "QUOTE_BOXES",
|
|
2467
|
+
/** Donut/ring with numbered annular-sector segments; cell text labels sit outside the ring. */
|
|
2468
|
+
CIRCLE = "CIRCLE",
|
|
2469
|
+
/** 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. */
|
|
2470
|
+
PYRAMID = "PYRAMID",
|
|
2471
|
+
/** Cells render a horizontal bar whose width scales with cell index, creating a staircase pattern; bar carries the cell number or a custom shape. */
|
|
2472
|
+
STAIRCASE = "STAIRCASE",
|
|
2473
|
+
/** 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. */
|
|
2474
|
+
VERTICAL_FUNNEL = "VERTICAL_FUNNEL"
|
|
2458
2475
|
}
|
|
2459
2476
|
/** @enumType */
|
|
2460
|
-
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';
|
|
2477
|
+
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';
|
|
2461
2478
|
/** Column size controlling how many cells appear per row. */
|
|
2462
2479
|
declare enum ColumnSize {
|
|
2463
2480
|
/** Up to 4 cells in a row. */
|
|
@@ -2504,6 +2521,16 @@ interface SmartBlockCellData {
|
|
|
2504
2521
|
*/
|
|
2505
2522
|
shapeColor?: string | null;
|
|
2506
2523
|
}
|
|
2524
|
+
interface CheckboxListData {
|
|
2525
|
+
/** Indentation level from 0-4. */
|
|
2526
|
+
indentation?: number;
|
|
2527
|
+
/** Offset level from 0-4. */
|
|
2528
|
+
offset?: number | null;
|
|
2529
|
+
}
|
|
2530
|
+
interface ListItemNodeData {
|
|
2531
|
+
/** Checkbox list item state. Defaults to `false`. */
|
|
2532
|
+
checked?: boolean | null;
|
|
2533
|
+
}
|
|
2507
2534
|
interface Metadata {
|
|
2508
2535
|
/** Schema version. */
|
|
2509
2536
|
version?: number;
|
|
@@ -4292,13 +4319,14 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4292
4319
|
/**
|
|
4293
4320
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4294
4321
|
*
|
|
4295
|
-
*
|
|
4296
|
-
* The
|
|
4297
|
-
*
|
|
4298
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4299
|
-
*
|
|
4300
|
-
*
|
|
4322
|
+
*
|
|
4323
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
|
4324
|
+
*
|
|
4325
|
+
* 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.
|
|
4326
|
+
*
|
|
4327
|
+
* >**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.
|
|
4301
4328
|
* @public
|
|
4329
|
+
* @param options - Options specifying time frame, sort, and filter.
|
|
4302
4330
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4303
4331
|
* @applicableIdentity APP
|
|
4304
4332
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4339,6 +4367,7 @@ interface QueryPostCountStatsOptions {
|
|
|
4339
4367
|
/**
|
|
4340
4368
|
* Retrieves the total amount of published posts of the blog.
|
|
4341
4369
|
* @public
|
|
4370
|
+
* @param options - Language Options.
|
|
4342
4371
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4343
4372
|
* @applicableIdentity APP
|
|
4344
4373
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4359,12 +4388,12 @@ interface GetTotalPostsOptions {
|
|
|
4359
4388
|
* @param postId - Post ID.
|
|
4360
4389
|
* @public
|
|
4361
4390
|
* @requiredField postId
|
|
4391
|
+
* @param options - Options specifying which fields to return.
|
|
4362
4392
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4363
4393
|
* @applicableIdentity APP
|
|
4364
|
-
* @returns Retrieved post info.
|
|
4365
4394
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4366
4395
|
*/
|
|
4367
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4396
|
+
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>>;
|
|
4368
4397
|
interface GetPostOptions {
|
|
4369
4398
|
/**
|
|
4370
4399
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4384,6 +4413,7 @@ interface GetPostOptions {
|
|
|
4384
4413
|
* @param slug - Slug of the post to retrieve.
|
|
4385
4414
|
* @public
|
|
4386
4415
|
* @requiredField slug
|
|
4416
|
+
* @param options - Options specifying which fields to return.
|
|
4387
4417
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4388
4418
|
* @applicableIdentity APP
|
|
4389
4419
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4411,6 +4441,7 @@ interface GetPostBySlugOptions {
|
|
|
4411
4441
|
* - `paging.limit` is `50`.
|
|
4412
4442
|
* - `paging.offset` is `0`.
|
|
4413
4443
|
* @public
|
|
4444
|
+
* @param options - Sort, filter, and paging options.
|
|
4414
4445
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4415
4446
|
* @applicableIdentity APP
|
|
4416
4447
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4481,18 +4512,26 @@ interface ListPostsOptions {
|
|
|
4481
4512
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4482
4513
|
}
|
|
4483
4514
|
/**
|
|
4484
|
-
*
|
|
4515
|
+
* Creates a query to retrieve a list of posts.
|
|
4485
4516
|
*
|
|
4486
|
-
* Query Posts runs with these defaults, which you can override:
|
|
4487
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4488
|
-
* - `paging.limit` is `50`.
|
|
4489
|
-
* - `paging.offset` is `0`.
|
|
4490
4517
|
*
|
|
4491
|
-
*
|
|
4492
|
-
*
|
|
4493
|
-
*
|
|
4494
|
-
*
|
|
4518
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
|
4519
|
+
*
|
|
4520
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
|
4521
|
+
*
|
|
4522
|
+
* 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.
|
|
4523
|
+
*
|
|
4524
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
|
4525
|
+
* + `limit(50)`
|
|
4526
|
+
* + `descending('firstPublishedDate')`
|
|
4527
|
+
*
|
|
4528
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
|
4529
|
+
*
|
|
4530
|
+
* To learn how to query posts, refer to the table below.
|
|
4531
|
+
*
|
|
4532
|
+
* 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`.
|
|
4495
4533
|
* @public
|
|
4534
|
+
* @param options - Options specifying which fields to return.
|
|
4496
4535
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4497
4536
|
* @applicableIdentity APP
|
|
4498
4537
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4742,7 +4781,7 @@ declare const utils: {
|
|
|
4742
4781
|
query: {
|
|
4743
4782
|
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Post, PostQuerySpec, PostQuery>;
|
|
4744
4783
|
Filter: _wix_sdk_types.FilterFactory<Post, PostQuerySpec>;
|
|
4745
|
-
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>;
|
|
4784
|
+
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>; /** Data for a color decoration. */
|
|
4746
4785
|
};
|
|
4747
4786
|
};
|
|
4748
4787
|
/**
|
|
@@ -4758,4 +4797,4 @@ declare const utils: {
|
|
|
4758
4797
|
*/
|
|
4759
4798
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
4760
4799
|
|
|
4761
|
-
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 };
|
|
4800
|
+
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 };
|
|
@@ -996,6 +996,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
996
996
|
NodeType2["TOC"] = "TOC";
|
|
997
997
|
NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
|
|
998
998
|
NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
|
|
999
|
+
NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
|
|
999
1000
|
return NodeType2;
|
|
1000
1001
|
})(NodeType || {});
|
|
1001
1002
|
var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
|
|
@@ -1348,6 +1349,10 @@ var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
|
|
|
1348
1349
|
SmartBlockDataType2["PILLS"] = "PILLS";
|
|
1349
1350
|
SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
|
|
1350
1351
|
SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
|
|
1352
|
+
SmartBlockDataType2["CIRCLE"] = "CIRCLE";
|
|
1353
|
+
SmartBlockDataType2["PYRAMID"] = "PYRAMID";
|
|
1354
|
+
SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
|
|
1355
|
+
SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
|
|
1351
1356
|
return SmartBlockDataType2;
|
|
1352
1357
|
})(SmartBlockDataType || {});
|
|
1353
1358
|
var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
|
|
@@ -1563,8 +1568,8 @@ async function getPost2(postId, options) {
|
|
|
1563
1568
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1564
1569
|
}
|
|
1565
1570
|
]),
|
|
1566
|
-
["post.richContent"]
|
|
1567
|
-
)
|
|
1571
|
+
["post.richContent", "post.rich_content"]
|
|
1572
|
+
);
|
|
1568
1573
|
} catch (err) {
|
|
1569
1574
|
const transformedError = sdkTransformError(
|
|
1570
1575
|
err,
|
|
@@ -1611,7 +1616,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1611
1616
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1612
1617
|
}
|
|
1613
1618
|
]),
|
|
1614
|
-
["post.richContent"]
|
|
1619
|
+
["post.richContent", "post.rich_content"]
|
|
1615
1620
|
);
|
|
1616
1621
|
} catch (err) {
|
|
1617
1622
|
const transformedError = sdkTransformError(
|
|
@@ -1670,7 +1675,7 @@ async function listPosts2(options) {
|
|
|
1670
1675
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1671
1676
|
}
|
|
1672
1677
|
]),
|
|
1673
|
-
["posts.richContent"]
|
|
1678
|
+
["posts.richContent", "posts.rich_content"]
|
|
1674
1679
|
);
|
|
1675
1680
|
} catch (err) {
|
|
1676
1681
|
const transformedError = sdkTransformError(
|
|
@@ -1740,7 +1745,7 @@ function queryPosts2(options) {
|
|
|
1740
1745
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1741
1746
|
}
|
|
1742
1747
|
]),
|
|
1743
|
-
["posts.richContent"]
|
|
1748
|
+
["posts.richContent", "posts.rich_content"]
|
|
1744
1749
|
);
|
|
1745
1750
|
return {
|
|
1746
1751
|
items: transformedData?.posts,
|
|
@@ -1788,7 +1793,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1788
1793
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1789
1794
|
}
|
|
1790
1795
|
]),
|
|
1791
|
-
["posts.richContent"]
|
|
1796
|
+
["posts.richContent", "posts.rich_content"]
|
|
1792
1797
|
);
|
|
1793
1798
|
} catch (err) {
|
|
1794
1799
|
const transformedError = sdkTransformError(
|