@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
|
@@ -1470,6 +1470,8 @@ interface Decoration extends DecorationDataOneOf {
|
|
|
1470
1470
|
subscriptData?: boolean | null;
|
|
1471
1471
|
/** Data for a font family decoration. */
|
|
1472
1472
|
fontFamilyData?: FontFamilyData;
|
|
1473
|
+
/** Data for a hand-drawn sketch annotation decoration. */
|
|
1474
|
+
sketchData?: SketchData;
|
|
1473
1475
|
/** The type of decoration to apply. */
|
|
1474
1476
|
type?: DecorationTypeWithLiterals;
|
|
1475
1477
|
}
|
|
@@ -1501,6 +1503,8 @@ interface DecorationDataOneOf {
|
|
|
1501
1503
|
subscriptData?: boolean | null;
|
|
1502
1504
|
/** Data for a font family decoration. */
|
|
1503
1505
|
fontFamilyData?: FontFamilyData;
|
|
1506
|
+
/** Data for a hand-drawn sketch annotation decoration. */
|
|
1507
|
+
sketchData?: SketchData;
|
|
1504
1508
|
}
|
|
1505
1509
|
declare enum DecorationType {
|
|
1506
1510
|
BOLD = "BOLD",
|
|
@@ -1516,10 +1520,11 @@ declare enum DecorationType {
|
|
|
1516
1520
|
STRIKETHROUGH = "STRIKETHROUGH",
|
|
1517
1521
|
SUPERSCRIPT = "SUPERSCRIPT",
|
|
1518
1522
|
SUBSCRIPT = "SUBSCRIPT",
|
|
1519
|
-
FONT_FAMILY = "FONT_FAMILY"
|
|
1523
|
+
FONT_FAMILY = "FONT_FAMILY",
|
|
1524
|
+
SKETCH = "SKETCH"
|
|
1520
1525
|
}
|
|
1521
1526
|
/** @enumType */
|
|
1522
|
-
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY';
|
|
1527
|
+
type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH' | 'SUPERSCRIPT' | 'SUBSCRIPT' | 'FONT_FAMILY' | 'SKETCH';
|
|
1523
1528
|
interface AnchorData {
|
|
1524
1529
|
/** The target node's ID. */
|
|
1525
1530
|
anchor?: string;
|
|
@@ -1562,6 +1567,27 @@ interface FontFamilyData {
|
|
|
1562
1567
|
/** @maxLength 1000 */
|
|
1563
1568
|
value?: string | null;
|
|
1564
1569
|
}
|
|
1570
|
+
interface SketchData {
|
|
1571
|
+
/** The sketch annotation variant to draw over the text. */
|
|
1572
|
+
variant?: VariantWithLiterals;
|
|
1573
|
+
/**
|
|
1574
|
+
* Annotation color. Defaults to the theme action color.
|
|
1575
|
+
* @maxLength 19
|
|
1576
|
+
*/
|
|
1577
|
+
color?: string | null;
|
|
1578
|
+
/** Whether the annotation animates on first paint. Defaults to `true`. */
|
|
1579
|
+
animate?: boolean | null;
|
|
1580
|
+
}
|
|
1581
|
+
declare enum Variant {
|
|
1582
|
+
UNDERLINE = "UNDERLINE",
|
|
1583
|
+
BOX = "BOX",
|
|
1584
|
+
CIRCLE = "CIRCLE",
|
|
1585
|
+
HIGHLIGHT = "HIGHLIGHT",
|
|
1586
|
+
STRIKETHROUGH = "STRIKETHROUGH",
|
|
1587
|
+
CROSSED_OFF = "CROSSED_OFF"
|
|
1588
|
+
}
|
|
1589
|
+
/** @enumType */
|
|
1590
|
+
type VariantWithLiterals = Variant | 'UNDERLINE' | 'BOX' | 'CIRCLE' | 'HIGHLIGHT' | 'STRIKETHROUGH' | 'CROSSED_OFF';
|
|
1565
1591
|
interface AppEmbedData extends AppEmbedDataAppDataOneOf {
|
|
1566
1592
|
/** Data for embedded Wix Bookings content. */
|
|
1567
1593
|
bookingData?: BookingData;
|
|
@@ -3255,7 +3281,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
3255
3281
|
/** If present, indicates the action that triggered the event. */
|
|
3256
3282
|
originatedFrom?: string | null;
|
|
3257
3283
|
/**
|
|
3258
|
-
* 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
|
|
3284
|
+
* 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.
|
|
3259
3285
|
* 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.
|
|
3260
3286
|
*/
|
|
3261
3287
|
entityEventSequence?: string | null;
|
|
@@ -4213,7 +4239,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
4213
4239
|
/** If present, indicates the action that triggered the event. */
|
|
4214
4240
|
originatedFrom?: string | null;
|
|
4215
4241
|
/**
|
|
4216
|
-
* 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
|
|
4242
|
+
* 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.
|
|
4217
4243
|
* 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.
|
|
4218
4244
|
*/
|
|
4219
4245
|
entityEventSequence?: string | null;
|
|
@@ -4319,14 +4345,13 @@ declare function onPostUpdated(handler: (event: PostUpdatedEnvelope) => void | P
|
|
|
4319
4345
|
/**
|
|
4320
4346
|
* Retrieves the number of published posts per month within a specified time range.
|
|
4321
4347
|
*
|
|
4322
|
-
*
|
|
4323
|
-
* The
|
|
4324
|
-
*
|
|
4325
|
-
*
|
|
4326
|
-
*
|
|
4327
|
-
*
|
|
4348
|
+
* The time range is set using the `rangeStart` and `months` properties.
|
|
4349
|
+
* The time range always starts on the 1st day of the month set in `rangeStart` and
|
|
4350
|
+
* includes the number of `months` following `rangeStart`.
|
|
4351
|
+
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
|
4352
|
+
* 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.
|
|
4353
|
+
* > 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.
|
|
4328
4354
|
* @public
|
|
4329
|
-
* @param options - Options specifying time frame, sort, and filter.
|
|
4330
4355
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4331
4356
|
* @applicableIdentity APP
|
|
4332
4357
|
* @returns Get Blog Post Count Stats response
|
|
@@ -4367,7 +4392,6 @@ interface QueryPostCountStatsOptions {
|
|
|
4367
4392
|
/**
|
|
4368
4393
|
* Retrieves the total amount of published posts of the blog.
|
|
4369
4394
|
* @public
|
|
4370
|
-
* @param options - Language Options.
|
|
4371
4395
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4372
4396
|
* @applicableIdentity APP
|
|
4373
4397
|
* @fqn com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts
|
|
@@ -4388,12 +4412,12 @@ interface GetTotalPostsOptions {
|
|
|
4388
4412
|
* @param postId - Post ID.
|
|
4389
4413
|
* @public
|
|
4390
4414
|
* @requiredField postId
|
|
4391
|
-
* @param options - Options specifying which fields to return.
|
|
4392
4415
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4393
4416
|
* @applicableIdentity APP
|
|
4417
|
+
* @returns Retrieved post info.
|
|
4394
4418
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost
|
|
4395
4419
|
*/
|
|
4396
|
-
declare function getPost(postId: string, options?: GetPostOptions): Promise<NonNullablePaths<
|
|
4420
|
+
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>>;
|
|
4397
4421
|
interface GetPostOptions {
|
|
4398
4422
|
/**
|
|
4399
4423
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
@@ -4413,7 +4437,6 @@ interface GetPostOptions {
|
|
|
4413
4437
|
* @param slug - Slug of the post to retrieve.
|
|
4414
4438
|
* @public
|
|
4415
4439
|
* @requiredField slug
|
|
4416
|
-
* @param options - Options specifying which fields to return.
|
|
4417
4440
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4418
4441
|
* @applicableIdentity APP
|
|
4419
4442
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug
|
|
@@ -4441,7 +4464,6 @@ interface GetPostBySlugOptions {
|
|
|
4441
4464
|
* - `paging.limit` is `50`.
|
|
4442
4465
|
* - `paging.offset` is `0`.
|
|
4443
4466
|
* @public
|
|
4444
|
-
* @param options - Sort, filter, and paging options.
|
|
4445
4467
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4446
4468
|
* @applicableIdentity APP
|
|
4447
4469
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts
|
|
@@ -4512,26 +4534,18 @@ interface ListPostsOptions {
|
|
|
4512
4534
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4513
4535
|
}
|
|
4514
4536
|
/**
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4517
|
-
*
|
|
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.
|
|
4537
|
+
* Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
|
|
4523
4538
|
*
|
|
4524
|
-
*
|
|
4525
|
-
*
|
|
4526
|
-
*
|
|
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.
|
|
4539
|
+
* Query Posts runs with these defaults, which you can override:
|
|
4540
|
+
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
|
4541
|
+
* - `paging.limit` is `50`.
|
|
4542
|
+
* - `paging.offset` is `0`.
|
|
4531
4543
|
*
|
|
4532
|
-
*
|
|
4544
|
+
* To learn about working with _Query_ endpoints, see
|
|
4545
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
4546
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
|
4547
|
+
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
4533
4548
|
* @public
|
|
4534
|
-
* @param options - Options specifying which fields to return.
|
|
4535
4549
|
* @permissionId BLOG.READ-PUBLICATION
|
|
4536
4550
|
* @applicableIdentity APP
|
|
4537
4551
|
* @fqn com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts
|
|
@@ -4781,7 +4795,7 @@ declare const utils: {
|
|
|
4781
4795
|
query: {
|
|
4782
4796
|
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Post, PostQuerySpec, PostQuery>;
|
|
4783
4797
|
Filter: _wix_sdk_types.FilterFactory<Post, PostQuerySpec>;
|
|
4784
|
-
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>;
|
|
4798
|
+
Sort: _wix_sdk_types.SortFactory<PostQuerySpec>;
|
|
4785
4799
|
};
|
|
4786
4800
|
};
|
|
4787
4801
|
/**
|
|
@@ -4797,4 +4811,4 @@ declare const utils: {
|
|
|
4797
4811
|
*/
|
|
4798
4812
|
declare function getPostMetrics(postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
|
|
4799
4813
|
|
|
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 };
|
|
4814
|
+
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,
|