@wix/auto_sdk_blog_posts 1.0.157 → 1.0.159
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 +11 -15
- package/build/cjs/index.js +23 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +49 -35
- package/build/cjs/index.typings.js +18 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -4
- package/build/cjs/meta.js +12 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +82 -84
- package/build/cjs/schemas.js +147 -153
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -15
- package/build/es/index.mjs +22 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +49 -35
- package/build/es/index.typings.mjs +17 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -4
- package/build/es/meta.mjs +11 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +82 -84
- package/build/es/schemas.mjs +147 -153
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -15
- package/build/internal/cjs/index.js +23 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +49 -35
- package/build/internal/cjs/index.typings.js +18 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +30 -4
- package/build/internal/cjs/meta.js +12 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +82 -84
- package/build/internal/cjs/schemas.js +147 -153
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -15
- package/build/internal/es/index.mjs +22 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +49 -35
- package/build/internal/es/index.typings.mjs +17 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +30 -4
- package/build/internal/es/meta.mjs +11 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +82 -84
- package/build/internal/es/schemas.mjs +147 -153
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1463,6 +1463,8 @@ interface Decoration extends DecorationDataOneOf {
|
|
|
1463
1463
|
subscriptData?: boolean | null;
|
|
1464
1464
|
/** Data for a font family decoration. */
|
|
1465
1465
|
fontFamilyData?: FontFamilyData;
|
|
1466
|
+
/** Data for a hand-drawn sketch annotation decoration. */
|
|
1467
|
+
sketchData?: SketchData;
|
|
1466
1468
|
/** The type of decoration to apply. */
|
|
1467
1469
|
type?: DecorationTypeWithLiterals;
|
|
1468
1470
|
}
|
|
@@ -1494,6 +1496,8 @@ interface DecorationDataOneOf {
|
|
|
1494
1496
|
subscriptData?: boolean | null;
|
|
1495
1497
|
/** Data for a font family decoration. */
|
|
1496
1498
|
fontFamilyData?: FontFamilyData;
|
|
1499
|
+
/** Data for a hand-drawn sketch annotation decoration. */
|
|
1500
|
+
sketchData?: SketchData;
|
|
1497
1501
|
}
|
|
1498
1502
|
declare enum DecorationType {
|
|
1499
1503
|
BOLD = "BOLD",
|
|
@@ -1509,10 +1513,11 @@ declare enum DecorationType {
|
|
|
1509
1513
|
STRIKETHROUGH = "STRIKETHROUGH",
|
|
1510
1514
|
SUPERSCRIPT = "SUPERSCRIPT",
|
|
1511
1515
|
SUBSCRIPT = "SUBSCRIPT",
|
|
1512
|
-
FONT_FAMILY = "FONT_FAMILY"
|
|
1516
|
+
FONT_FAMILY = "FONT_FAMILY",
|
|
1517
|
+
SKETCH = "SKETCH"
|
|
1513
1518
|
}
|
|
1514
1519
|
/** @enumType */
|
|
1515
|
-
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY';
|
|
1520
|
+
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY' | 'SKETCH';
|
|
1516
1521
|
interface AnchorData {
|
|
1517
1522
|
/** The target node's ID. */
|
|
1518
1523
|
anchor?: string;
|
|
@@ -1555,6 +1560,27 @@ interface FontFamilyData {
|
|
|
1555
1560
|
/** @maxLength 1000 */
|
|
1556
1561
|
value?: string | null;
|
|
1557
1562
|
}
|
|
1563
|
+
interface SketchData {
|
|
1564
|
+
/** The sketch annotation variant to draw over the text. */
|
|
1565
|
+
variant?: VariantWithLiterals;
|
|
1566
|
+
/**
|
|
1567
|
+
* Annotation color. Defaults to the theme action color.
|
|
1568
|
+
* @maxLength 19
|
|
1569
|
+
*/
|
|
1570
|
+
color?: string | null;
|
|
1571
|
+
/** Whether the annotation animates on first paint. Defaults to `true`. */
|
|
1572
|
+
animate?: boolean | null;
|
|
1573
|
+
}
|
|
1574
|
+
declare enum Variant {
|
|
1575
|
+
UNDERLINE = "UNDERLINE",
|
|
1576
|
+
BOX = "BOX",
|
|
1577
|
+
CIRCLE = "CIRCLE",
|
|
1578
|
+
HIGHLIGHT = "HIGHLIGHT",
|
|
1579
|
+
STRIKETHROUGH = "STRIKETHROUGH",
|
|
1580
|
+
CROSSED_OFF = "CROSSED_OFF"
|
|
1581
|
+
}
|
|
1582
|
+
/** @enumType */
|
|
1583
|
+
type VariantWithLiterals = Variant | 'UNDERLINE' | 'BOX' | 'CIRCLE' | 'HIGHLIGHT' | 'STRIKETHROUGH' | 'CROSSED_OFF';
|
|
1558
1584
|
interface AppEmbedData extends AppEmbedDataAppDataOneOf {
|
|
1559
1585
|
/** Data for embedded Wix Bookings content. */
|
|
1560
1586
|
bookingData?: BookingData;
|
|
@@ -3248,7 +3274,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
3248
3274
|
/** If present, indicates the action that triggered the event. */
|
|
3249
3275
|
originatedFrom?: string | null;
|
|
3250
3276
|
/**
|
|
3251
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
3277
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
3252
3278
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
3253
3279
|
*/
|
|
3254
3280
|
entityEventSequence?: string | null;
|
|
@@ -4206,7 +4232,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
4206
4232
|
/** If present, indicates the action that triggered the event. */
|
|
4207
4233
|
originatedFrom?: string | null;
|
|
4208
4234
|
/**
|
|
4209
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01
|
|
4235
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
4210
4236
|
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
4211
4237
|
*/
|
|
4212
4238
|
entityEventSequence?: string | null;
|
|
@@ -4312,14 +4338,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4312
4338
|
/**
|
|
4313
4339
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4314
4340
|
*
|
|
4315
|
-
*
|
|
4316
|
-
* The
|
|
4317
|
-
*
|
|
4318
|
-
*
|
|
4319
|
-
*
|
|
4320
|
-
*
|
|
4341
|
+
* The time range is set using the `rangeStart` and `months` properties.
|
|
4342
|
+
* The time range always starts on the 1st day of the month set in `rangeStart` and
|
|
4343
|
+
* includes the number of `months` following `rangeStart`.
|
|
4344
|
+
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4345
|
+
* the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range always ends on the last day of the month.
|
|
4346
|
+
* > Note: If there are no published posts in a month within the time range, 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.
|
|
4321
4347
|
* @public
|
|
4322
|
-
* @param options - Options specifying time frame, sort, and filter.
|
|
4323
4348
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4324
4349
|
* @applicableIdentity APP
|
|
4325
4350
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4360,7 +4385,6 @@ interface QueryPostCountStatsOptions {
|
|
|
4360
4385
|
/**
|
|
4361
4386
|
* Retrieves the total amount of published posts of the blog.
|
|
4362
4387
|
* @public
|
|
4363
|
-
* @param options - Language Options.
|
|
4364
4388
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4365
4389
|
* @applicableIdentity APP
|
|
4366
4390
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4381,12 +4405,12 @@ interface GetTotalPostsOptions {
|
|
|
4381
4405
|
* @param postId - Post ID.
|
|
4382
4406
|
* @public
|
|
4383
4407
|
* @requiredField postId
|
|
4384
|
-
* @param options - Options specifying which fields to return.
|
|
4385
4408
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4386
4409
|
* @applicableIdentity APP
|
|
4410
|
+
* @returns Retrieved post info.
|
|
4387
4411
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4388
4412
|
*/
|
|
4389
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4413
|
+
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<Post, `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`, 6>>;
|
|
4390
4414
|
interface GetPostOptions {
|
|
4391
4415
|
/**
|
|
4392
4416
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4406,7 +4430,6 @@ interface GetPostOptions {
|
|
|
4406
4430
|
* @param slug - Slug of the post to retrieve.
|
|
4407
4431
|
* @public
|
|
4408
4432
|
* @requiredField slug
|
|
4409
|
-
* @param options - Options specifying which fields to return.
|
|
4410
4433
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4411
4434
|
* @applicableIdentity APP
|
|
4412
4435
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4434,7 +4457,6 @@ interface GetPostBySlugOptions {
|
|
|
4434
4457
|
* - `paging.limit` is `50`.
|
|
4435
4458
|
* - `paging.offset` is `0`.
|
|
4436
4459
|
* @public
|
|
4437
|
-
* @param options - Sort, filter, and paging options.
|
|
4438
4460
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4439
4461
|
* @applicableIdentity APP
|
|
4440
4462
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4505,26 +4527,18 @@ interface ListPostsOptions {
|
|
|
4505
4527
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4506
4528
|
}
|
|
4507
4529
|
/**
|
|
4508
|
-
*
|
|
4509
|
-
*
|
|
4510
|
-
*
|
|
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.
|
|
4530
|
+
* Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
|
|
4516
4531
|
*
|
|
4517
|
-
*
|
|
4518
|
-
*
|
|
4519
|
-
*
|
|
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.
|
|
4532
|
+
* Query Posts runs with these defaults, which you can override:
|
|
4533
|
+
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4534
|
+
* - `paging.limit` is `50`.
|
|
4535
|
+
* - `paging.offset` is `0`.
|
|
4524
4536
|
*
|
|
4525
|
-
*
|
|
4537
|
+
* To learn about working with _Query_ endpoints, see
|
|
4538
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
4539
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
|
4540
|
+
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
4526
4541
|
* @public
|
|
4527
|
-
* @param options - Options specifying which fields to return.
|
|
4528
4542
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4529
4543
|
* @applicableIdentity APP
|
|
4530
4544
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4774,7 +4788,7 @@ declare const utils: {
|
|
|
4774
4788
|
query: {
|
|
4775
4789
|
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Post, PostQuerySpec, PostQuery>;
|
|
4776
4790
|
Filter: _wix_sdk_types.FilterFactory<Post, PostQuerySpec>;
|
|
4777
|
-
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>;
|
|
4791
|
+
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>;
|
|
4778
4792
|
};
|
|
4779
4793
|
};
|
|
4780
4794
|
/**
|
|
@@ -4790,4 +4804,4 @@ declare const utils: {
|
|
|
4790
4804
|
*/
|
|
4791
4805
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
4792
4806
|
|
|
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 };
|
|
4807
|
+
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 SketchData, type SmartBlockCellData, type SmartBlockData, SmartBlockDataType, type SmartBlockDataTypeWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TocData, Type, type TypeWithLiterals, type UnlikePostRequest, type UnlikePostResponse, type UnpinPostRequest, type UnpinPostResponse, type V1Media, Variant, type VariantWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, type ViewPostRequest, type ViewPostResponse, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts, typedQueryPosts, utils };
|
|
@@ -78,6 +78,7 @@ __export(index_typings_exports, {
|
|
|
78
78
|
TextAlignment: () => TextAlignment,
|
|
79
79
|
ThumbnailsAlignment: () => ThumbnailsAlignment,
|
|
80
80
|
Type: () => Type,
|
|
81
|
+
Variant: () => Variant,
|
|
81
82
|
VerticalAlignment: () => VerticalAlignment,
|
|
82
83
|
VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
|
|
83
84
|
ViewMode: () => ViewMode,
|
|
@@ -1263,6 +1264,7 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
|
|
1263
1264
|
DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
1264
1265
|
DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
|
|
1265
1266
|
DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
|
|
1267
|
+
DecorationType2["SKETCH"] = "SKETCH";
|
|
1266
1268
|
return DecorationType2;
|
|
1267
1269
|
})(DecorationType || {});
|
|
1268
1270
|
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
@@ -1270,6 +1272,15 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
|
1270
1272
|
FontType2["EM"] = "EM";
|
|
1271
1273
|
return FontType2;
|
|
1272
1274
|
})(FontType || {});
|
|
1275
|
+
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
1276
|
+
Variant2["UNDERLINE"] = "UNDERLINE";
|
|
1277
|
+
Variant2["BOX"] = "BOX";
|
|
1278
|
+
Variant2["CIRCLE"] = "CIRCLE";
|
|
1279
|
+
Variant2["HIGHLIGHT"] = "HIGHLIGHT";
|
|
1280
|
+
Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
1281
|
+
Variant2["CROSSED_OFF"] = "CROSSED_OFF";
|
|
1282
|
+
return Variant2;
|
|
1283
|
+
})(Variant || {});
|
|
1273
1284
|
var Position = /* @__PURE__ */ ((Position2) => {
|
|
1274
1285
|
Position2["START"] = "START";
|
|
1275
1286
|
Position2["END"] = "END";
|
|
@@ -1665,8 +1676,8 @@ async function getPost2(postId, options) {
|
|
|
1665
1676
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1666
1677
|
}
|
|
1667
1678
|
]),
|
|
1668
|
-
["post.richContent"
|
|
1669
|
-
);
|
|
1679
|
+
["post.richContent"]
|
|
1680
|
+
)?.post;
|
|
1670
1681
|
} catch (err) {
|
|
1671
1682
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1672
1683
|
err,
|
|
@@ -1713,7 +1724,7 @@ async function getPostBySlug2(slug, options) {
|
|
|
1713
1724
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
|
1714
1725
|
}
|
|
1715
1726
|
]),
|
|
1716
|
-
["post.richContent"
|
|
1727
|
+
["post.richContent"]
|
|
1717
1728
|
);
|
|
1718
1729
|
} catch (err) {
|
|
1719
1730
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1772,7 +1783,7 @@ async function listPosts2(options) {
|
|
|
1772
1783
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1773
1784
|
}
|
|
1774
1785
|
]),
|
|
1775
|
-
["posts.richContent"
|
|
1786
|
+
["posts.richContent"]
|
|
1776
1787
|
);
|
|
1777
1788
|
} catch (err) {
|
|
1778
1789
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1842,7 +1853,7 @@ function queryPosts2(options) {
|
|
|
1842
1853
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1843
1854
|
}
|
|
1844
1855
|
]),
|
|
1845
|
-
["posts.richContent"
|
|
1856
|
+
["posts.richContent"]
|
|
1846
1857
|
);
|
|
1847
1858
|
return {
|
|
1848
1859
|
items: transformedData?.posts,
|
|
@@ -1890,7 +1901,7 @@ async function typedQueryPosts(query, options) {
|
|
|
1890
1901
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
|
1891
1902
|
}
|
|
1892
1903
|
]),
|
|
1893
|
-
["posts.richContent"
|
|
1904
|
+
["posts.richContent"]
|
|
1894
1905
|
);
|
|
1895
1906
|
} catch (err) {
|
|
1896
1907
|
const transformedError = (0, import_transform_error.transformError)(
|
|
@@ -1994,6 +2005,7 @@ async function getPostMetrics2(postId) {
|
|
|
1994
2005
|
TextAlignment,
|
|
1995
2006
|
ThumbnailsAlignment,
|
|
1996
2007
|
Type,
|
|
2008
|
+
Variant,
|
|
1997
2009
|
VerticalAlignment,
|
|
1998
2010
|
VerticalAlignmentAlignment,
|
|
1999
2011
|
ViewMode,
|