@wix/auto_sdk_blog_posts 1.0.33 → 1.0.34
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/{blog-v3-post-posts.universal-hTPKKRYx.d.ts → blog-v3-post-posts.universal-DQPJ111E.d.ts} +1 -1
- package/build/cjs/index.d.ts +31 -24
- package/build/cjs/index.js +15 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{blog-v3-post-posts.universal-hTPKKRYx.d.mts → blog-v3-post-posts.universal-DQPJ111E.d.mts} +1 -1
- package/build/es/index.d.mts +31 -24
- package/build/es/index.mjs +15 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{blog-v3-post-posts.universal-D8MomLjA.d.ts → blog-v3-post-posts.universal-rJw2G2He.d.ts} +1 -1
- package/build/internal/cjs/index.d.ts +31 -24
- package/build/internal/cjs/index.js +15 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{blog-v3-post-posts.universal-D8MomLjA.d.mts → blog-v3-post-posts.universal-rJw2G2He.d.mts} +1 -1
- package/build/internal/es/index.d.mts +31 -24
- package/build/internal/es/index.mjs +15 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { bX as QueryPostCountStatsRequest$1, a as QueryPostCountStatsResponse$1, b$ as GetTotalPostsRequest$1, b as GetTotalPostsResponse$1, cw as GetPostRequest$1, d as GetPostResponse$1, cx as GetPostBySlugRequest$1, f as GetPostBySlugResponse$1, cy as ListPostsRequest$1, g as ListPostsResponse$1, cz as QueryPostsRequest$1, cF as QueryPostsResponse$1, cI as GetPostMetricsRequest$1, i as GetPostMetricsResponse$1 } from './blog-v3-post-posts.universal-DQPJ111E.js';
|
2
2
|
|
3
3
|
interface Post {
|
4
4
|
/**
|
package/build/cjs/meta.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/blog-v3-post-posts.http.ts","../../src/blog-v3-post-posts.meta.ts"],"sourcesContent":["export * from './src/blog-v3-post-posts.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/blogs/this',\n destPath: '/_api/blogs/this',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/categories',\n destPath: '/_api/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/site-properties',\n destPath: '/_api/site-properties',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/posts/content',\n destPath: '/_api/posts/content',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/blog/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/_api/v3/posts',\n destPath: '/v3/posts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/blogs/this',\n destPath: '/_api/blogs/this',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/categories',\n destPath: '/_api/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/site-properties',\n destPath: '/_api/site-properties',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/posts/content',\n destPath: '/_api/posts/content',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/blog/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/_api/v3/posts',\n destPath: '/v3/posts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_blog_posts';\n\n/**\n * Retrieves the number of published posts per month within a specified time range.\n *\n * The time range is set using the `rangeStart` and `months` properties.\n * The time range always starts on the 1st day of the month set in `rangeStart` and\n * includes the number of `months` following `rangeStart`.\n * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,\n * 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.\n * > 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.\n */\nexport function queryPostCountStats(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPostCountStats({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'rangeStart' }, { path: 'rangeEnd' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({\n protoPath: '/v2/stats/post/count',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'stats.periodStart' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPostCountStats;\n}\n\n/** Retrieves the total amount of published posts of the blog. */\nexport function getTotalPosts(payload: object): RequestOptionsFactory<any> {\n function __getTotalPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({\n protoPath: '/v2/stats/posts/total',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getTotalPosts;\n}\n\n/** Retrieves a post by the specified ID. */\nexport function getPost(payload: object): RequestOptionsFactory<any> {\n function __getPost({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/{postId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'post.firstPublishedDate' },\n { path: 'post.lastPublishedDate' },\n { path: 'post.coverMedia.image.urlExpirationDate' },\n { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'post.heroImage.urlExpirationDate' },\n { path: 'post.richContent.metadata.createdTimestamp' },\n { path: 'post.richContent.metadata.updatedTimestamp' },\n { path: 'post.moderationDetails.submittedDate' },\n { path: 'post.moderationDetails.moderationDate' },\n { path: 'post.media.wixMedia.image.urlExpirationDate' },\n { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'post.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'post.coverMedia.image.focalPoint.x' },\n { path: 'post.coverMedia.image.focalPoint.y' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'post.heroImage.focalPoint.x' },\n { path: 'post.heroImage.focalPoint.y' },\n { path: 'post.media.wixMedia.image.focalPoint.x' },\n { path: 'post.media.wixMedia.image.focalPoint.y' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'post.metrics.averageRating' },\n {\n path: 'post.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'post.richContent.nodes.galleryData.options.item.ratio' },\n { path: 'post.richContent.nodes.imageData.image.duration' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'post.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'post.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'post.richContent.nodes.appEmbedData.image.duration' },\n { path: 'post.richContent.nodes.videoData.video.duration' },\n { path: 'post.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'post.richContent.nodes.audioData.audio.duration' },\n { path: 'post.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPost;\n}\n\n/**\n * Retrieves a post with the provided slug.\n *\n * The slug is the end of a post's URL that refers to a specific post.\n * For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,\n * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,\n * unless specified otherwise.\n */\nexport function getPostBySlug(payload: object): RequestOptionsFactory<any> {\n function __getPostBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/slugs/{slug}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'post.firstPublishedDate' },\n { path: 'post.lastPublishedDate' },\n { path: 'post.coverMedia.image.urlExpirationDate' },\n { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'post.heroImage.urlExpirationDate' },\n { path: 'post.richContent.metadata.createdTimestamp' },\n { path: 'post.richContent.metadata.updatedTimestamp' },\n { path: 'post.moderationDetails.submittedDate' },\n { path: 'post.moderationDetails.moderationDate' },\n { path: 'post.media.wixMedia.image.urlExpirationDate' },\n { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'post.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'post.coverMedia.image.focalPoint.x' },\n { path: 'post.coverMedia.image.focalPoint.y' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'post.heroImage.focalPoint.x' },\n { path: 'post.heroImage.focalPoint.y' },\n { path: 'post.media.wixMedia.image.focalPoint.x' },\n { path: 'post.media.wixMedia.image.focalPoint.y' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'post.metrics.averageRating' },\n {\n path: 'post.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'post.richContent.nodes.galleryData.options.item.ratio' },\n { path: 'post.richContent.nodes.imageData.image.duration' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'post.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'post.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'post.richContent.nodes.appEmbedData.image.duration' },\n { path: 'post.richContent.nodes.videoData.video.duration' },\n { path: 'post.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'post.richContent.nodes.audioData.audio.duration' },\n { path: 'post.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPostBySlug;\n}\n\n/**\n * Retrieves a list of up to 100 published posts per request.\n *\n * List Posts runs with these defaults, which you can override:\n * - `firstPublishedDate` is sorted in descending order, with pinned posts first.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n */\nexport function listPosts(payload: object): RequestOptionsFactory<any> {\n function __listPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'posts.firstPublishedDate' },\n { path: 'posts.lastPublishedDate' },\n { path: 'posts.coverMedia.image.urlExpirationDate' },\n { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'posts.heroImage.urlExpirationDate' },\n { path: 'posts.richContent.metadata.createdTimestamp' },\n { path: 'posts.richContent.metadata.updatedTimestamp' },\n { path: 'posts.moderationDetails.submittedDate' },\n { path: 'posts.moderationDetails.moderationDate' },\n { path: 'posts.media.wixMedia.image.urlExpirationDate' },\n { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'posts.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'posts.coverMedia.image.focalPoint.x' },\n { path: 'posts.coverMedia.image.focalPoint.y' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'posts.heroImage.focalPoint.x' },\n { path: 'posts.heroImage.focalPoint.y' },\n { path: 'posts.media.wixMedia.image.focalPoint.x' },\n { path: 'posts.media.wixMedia.image.focalPoint.y' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'posts.metrics.averageRating' },\n {\n path: 'posts.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.options.item.ratio',\n },\n { path: 'posts.richContent.nodes.imageData.image.duration' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'posts.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'posts.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'posts.richContent.nodes.appEmbedData.image.duration' },\n { path: 'posts.richContent.nodes.videoData.video.duration' },\n { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'posts.richContent.nodes.audioData.audio.duration' },\n { path: 'posts.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPosts;\n}\n\n/**\n * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.\n *\n * Query Posts runs with these defaults, which you can override:\n * - `firstPublishedDate` is sorted in descending order, with pinned posts first.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * For field support for filters and sorting, see\n * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),\n * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and\n * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).\n * For a detailed list of supported filters and sortable fields, see\n * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).\n */\nexport function queryPosts(payload: object): RequestOptionsFactory<any> {\n function __queryPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'posts.firstPublishedDate' },\n { path: 'posts.lastPublishedDate' },\n { path: 'posts.coverMedia.image.urlExpirationDate' },\n { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'posts.heroImage.urlExpirationDate' },\n { path: 'posts.richContent.metadata.createdTimestamp' },\n { path: 'posts.richContent.metadata.updatedTimestamp' },\n { path: 'posts.moderationDetails.submittedDate' },\n { path: 'posts.moderationDetails.moderationDate' },\n { path: 'posts.media.wixMedia.image.urlExpirationDate' },\n { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'posts.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'posts.coverMedia.image.focalPoint.x' },\n { path: 'posts.coverMedia.image.focalPoint.y' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'posts.heroImage.focalPoint.x' },\n { path: 'posts.heroImage.focalPoint.y' },\n { path: 'posts.media.wixMedia.image.focalPoint.x' },\n { path: 'posts.media.wixMedia.image.focalPoint.y' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'posts.metrics.averageRating' },\n {\n path: 'posts.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.options.item.ratio',\n },\n { path: 'posts.richContent.nodes.imageData.image.duration' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'posts.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'posts.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'posts.richContent.nodes.appEmbedData.image.duration' },\n { path: 'posts.richContent.nodes.videoData.video.duration' },\n { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'posts.richContent.nodes.audioData.audio.duration' },\n { path: 'posts.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPosts;\n}\n\n/**\n * Retrieves a post's metrics.\n *\n * A post's metrics include the comments, likes, and views the post receives.\n */\nexport function getPostMetrics(payload: object): RequestOptionsFactory<any> {\n function __getPostMetrics({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/{postId}/metrics',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'metrics.averageRating' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPostMetrics;\n}\n","import * as ambassadorWixBlogV3Post from './blog-v3-post-posts.http.js';\nimport * as ambassadorWixBlogV3PostTypes from './blog-v3-post-posts.types.js';\nimport * as ambassadorWixBlogV3PostUniversalTypes from './blog-v3-post-posts.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryPostCountStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.QueryPostCountStatsRequest,\n ambassadorWixBlogV3PostTypes.QueryPostCountStatsRequest,\n ambassadorWixBlogV3PostUniversalTypes.QueryPostCountStatsResponse,\n ambassadorWixBlogV3PostTypes.QueryPostCountStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Post.queryPostCountStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/stats/post/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTotalPosts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.GetTotalPostsRequest,\n ambassadorWixBlogV3PostTypes.GetTotalPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetTotalPostsResponse,\n ambassadorWixBlogV3PostTypes.GetTotalPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getTotalPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/stats/posts/total',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPost(): __PublicMethodMetaInfo<\n 'GET',\n { postId: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostRequest,\n ambassadorWixBlogV3PostTypes.GetPostRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostResponse,\n ambassadorWixBlogV3PostTypes.GetPostResponse\n> {\n const payload = { postId: ':postId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPost(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/{postId}',\n pathParams: { postId: 'postId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPostBySlug(): __PublicMethodMetaInfo<\n 'GET',\n { slug: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostBySlugRequest,\n ambassadorWixBlogV3PostTypes.GetPostBySlugRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostBySlugResponse,\n ambassadorWixBlogV3PostTypes.GetPostBySlugResponse\n> {\n const payload = { slug: ':slug' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPostBySlug(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/slugs/{slug}',\n pathParams: { slug: 'slug' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPosts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.ListPostsRequest,\n ambassadorWixBlogV3PostTypes.ListPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.ListPostsResponse,\n ambassadorWixBlogV3PostTypes.ListPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.listPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPosts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3PostUniversalTypes.QueryPostsRequest,\n ambassadorWixBlogV3PostTypes.QueryPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.QueryPostsResponse,\n ambassadorWixBlogV3PostTypes.QueryPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.queryPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/posts/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPostMetrics(): __PublicMethodMetaInfo<\n 'GET',\n { postId: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostMetricsRequest,\n ambassadorWixBlogV3PostTypes.GetPostMetricsRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostMetricsResponse,\n ambassadorWixBlogV3PostTypes.GetPostMetricsResponse\n> {\n const payload = { postId: ':postId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPostMetrics(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/{postId}/metrics',\n pathParams: { postId: 'postId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,iBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,kBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;A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C1B;AACF;AAEO,SAASC,cAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAA4C,WAAW,OAAO;AAEpE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBAA4C,eAAe,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getPost","getPostBySlug","getPostMetrics","getTotalPosts","listPosts","queryPostCountStats","queryPosts","import_timestamp","import_rest_modules","payload","queryPostCountStats","getTotalPosts","getPost","getPostBySlug","listPosts","queryPosts","getPostMetrics"]}
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/blog-v3-post-posts.http.ts","../../src/blog-v3-post-posts.meta.ts"],"sourcesContent":["export * from './src/blog-v3-post-posts.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/blogs/this',\n destPath: '/_api/blogs/this',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/categories',\n destPath: '/_api/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/site-properties',\n destPath: '/_api/site-properties',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/posts/content',\n destPath: '/_api/posts/content',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/blog/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/_api/v3/posts',\n destPath: '/v3/posts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/blogs/this',\n destPath: '/_api/blogs/this',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/categories',\n destPath: '/_api/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/site-properties',\n destPath: '/_api/site-properties',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/posts/content',\n destPath: '/_api/posts/content',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/blog/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/_api/v3/posts',\n destPath: '/v3/posts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_blog_posts';\n\n/**\n * Retrieves the number of published posts per month within a specified time range.\n *\n *\n * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.\n *\n * 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.\n *\n * >**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.\n */\nexport function queryPostCountStats(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPostCountStats({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'rangeStart' }, { path: 'rangeEnd' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({\n protoPath: '/v2/stats/post/count',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'stats.periodStart' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPostCountStats;\n}\n\n/** Retrieves the total amount of published posts of the blog. */\nexport function getTotalPosts(payload: object): RequestOptionsFactory<any> {\n function __getTotalPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({\n protoPath: '/v2/stats/posts/total',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getTotalPosts;\n}\n\n/** Retrieves a post by the specified ID. */\nexport function getPost(payload: object): RequestOptionsFactory<any> {\n function __getPost({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/{postId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'post.firstPublishedDate' },\n { path: 'post.lastPublishedDate' },\n { path: 'post.coverMedia.image.urlExpirationDate' },\n { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'post.heroImage.urlExpirationDate' },\n { path: 'post.richContent.metadata.createdTimestamp' },\n { path: 'post.richContent.metadata.updatedTimestamp' },\n { path: 'post.moderationDetails.submittedDate' },\n { path: 'post.moderationDetails.moderationDate' },\n { path: 'post.media.wixMedia.image.urlExpirationDate' },\n { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'post.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'post.coverMedia.image.focalPoint.x' },\n { path: 'post.coverMedia.image.focalPoint.y' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'post.heroImage.focalPoint.x' },\n { path: 'post.heroImage.focalPoint.y' },\n { path: 'post.media.wixMedia.image.focalPoint.x' },\n { path: 'post.media.wixMedia.image.focalPoint.y' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'post.metrics.averageRating' },\n {\n path: 'post.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'post.richContent.nodes.galleryData.options.item.ratio' },\n { path: 'post.richContent.nodes.imageData.image.duration' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'post.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'post.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'post.richContent.nodes.appEmbedData.image.duration' },\n { path: 'post.richContent.nodes.videoData.video.duration' },\n { path: 'post.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'post.richContent.nodes.audioData.audio.duration' },\n { path: 'post.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPost;\n}\n\n/**\n * Retrieves a post with the provided slug.\n *\n * The slug is the end of a post's URL that refers to a specific post.\n * For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,\n * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,\n * unless specified otherwise.\n */\nexport function getPostBySlug(payload: object): RequestOptionsFactory<any> {\n function __getPostBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/slugs/{slug}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'post.firstPublishedDate' },\n { path: 'post.lastPublishedDate' },\n { path: 'post.coverMedia.image.urlExpirationDate' },\n { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'post.heroImage.urlExpirationDate' },\n { path: 'post.richContent.metadata.createdTimestamp' },\n { path: 'post.richContent.metadata.updatedTimestamp' },\n { path: 'post.moderationDetails.submittedDate' },\n { path: 'post.moderationDetails.moderationDate' },\n { path: 'post.media.wixMedia.image.urlExpirationDate' },\n { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'post.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'post.coverMedia.image.focalPoint.x' },\n { path: 'post.coverMedia.image.focalPoint.y' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'post.heroImage.focalPoint.x' },\n { path: 'post.heroImage.focalPoint.y' },\n { path: 'post.media.wixMedia.image.focalPoint.x' },\n { path: 'post.media.wixMedia.image.focalPoint.y' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'post.metrics.averageRating' },\n {\n path: 'post.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'post.richContent.nodes.galleryData.options.item.ratio' },\n { path: 'post.richContent.nodes.imageData.image.duration' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'post.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'post.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'post.richContent.nodes.appEmbedData.image.duration' },\n { path: 'post.richContent.nodes.videoData.video.duration' },\n { path: 'post.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'post.richContent.nodes.audioData.audio.duration' },\n { path: 'post.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPostBySlug;\n}\n\n/**\n * Retrieves a list of up to 100 published posts per request.\n *\n * List Posts runs with these defaults, which you can override:\n * - `firstPublishedDate` is sorted in descending order, with pinned posts first.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n */\nexport function listPosts(payload: object): RequestOptionsFactory<any> {\n function __listPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'posts.firstPublishedDate' },\n { path: 'posts.lastPublishedDate' },\n { path: 'posts.coverMedia.image.urlExpirationDate' },\n { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'posts.heroImage.urlExpirationDate' },\n { path: 'posts.richContent.metadata.createdTimestamp' },\n { path: 'posts.richContent.metadata.updatedTimestamp' },\n { path: 'posts.moderationDetails.submittedDate' },\n { path: 'posts.moderationDetails.moderationDate' },\n { path: 'posts.media.wixMedia.image.urlExpirationDate' },\n { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'posts.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'posts.coverMedia.image.focalPoint.x' },\n { path: 'posts.coverMedia.image.focalPoint.y' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'posts.heroImage.focalPoint.x' },\n { path: 'posts.heroImage.focalPoint.y' },\n { path: 'posts.media.wixMedia.image.focalPoint.x' },\n { path: 'posts.media.wixMedia.image.focalPoint.y' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'posts.metrics.averageRating' },\n {\n path: 'posts.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.options.item.ratio',\n },\n { path: 'posts.richContent.nodes.imageData.image.duration' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'posts.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'posts.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'posts.richContent.nodes.appEmbedData.image.duration' },\n { path: 'posts.richContent.nodes.videoData.video.duration' },\n { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'posts.richContent.nodes.audioData.audio.duration' },\n { path: 'posts.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPosts;\n}\n\n/**\n * Creates a query to retrieve a list of posts.\n *\n *\n * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.\n *\n * The returned object contains the query definition which is typically used to run the query using the `find()` function.\n *\n * 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.\n *\n * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:\n * + `limit(50)`\n * + `descending('firstPublishedDate')`\n *\n * Note that the default limit is `'50'`, but the max limit is `'100'`.\n *\n * To learn how to query posts, refer to the table below.\n *\n * 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`.\n */\nexport function queryPosts(payload: object): RequestOptionsFactory<any> {\n function __queryPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'posts.firstPublishedDate' },\n { path: 'posts.lastPublishedDate' },\n { path: 'posts.coverMedia.image.urlExpirationDate' },\n { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'posts.heroImage.urlExpirationDate' },\n { path: 'posts.richContent.metadata.createdTimestamp' },\n { path: 'posts.richContent.metadata.updatedTimestamp' },\n { path: 'posts.moderationDetails.submittedDate' },\n { path: 'posts.moderationDetails.moderationDate' },\n { path: 'posts.media.wixMedia.image.urlExpirationDate' },\n { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'posts.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'posts.coverMedia.image.focalPoint.x' },\n { path: 'posts.coverMedia.image.focalPoint.y' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'posts.heroImage.focalPoint.x' },\n { path: 'posts.heroImage.focalPoint.y' },\n { path: 'posts.media.wixMedia.image.focalPoint.x' },\n { path: 'posts.media.wixMedia.image.focalPoint.y' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'posts.metrics.averageRating' },\n {\n path: 'posts.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.options.item.ratio',\n },\n { path: 'posts.richContent.nodes.imageData.image.duration' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'posts.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'posts.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'posts.richContent.nodes.appEmbedData.image.duration' },\n { path: 'posts.richContent.nodes.videoData.video.duration' },\n { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'posts.richContent.nodes.audioData.audio.duration' },\n { path: 'posts.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPosts;\n}\n\n/**\n * Retrieves a post's metrics.\n *\n * A post's metrics include the comments, likes, and views the post receives.\n */\nexport function getPostMetrics(payload: object): RequestOptionsFactory<any> {\n function __getPostMetrics({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/{postId}/metrics',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'metrics.averageRating' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPostMetrics;\n}\n","import * as ambassadorWixBlogV3Post from './blog-v3-post-posts.http.js';\nimport * as ambassadorWixBlogV3PostTypes from './blog-v3-post-posts.types.js';\nimport * as ambassadorWixBlogV3PostUniversalTypes from './blog-v3-post-posts.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryPostCountStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.QueryPostCountStatsRequest,\n ambassadorWixBlogV3PostTypes.QueryPostCountStatsRequest,\n ambassadorWixBlogV3PostUniversalTypes.QueryPostCountStatsResponse,\n ambassadorWixBlogV3PostTypes.QueryPostCountStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Post.queryPostCountStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/stats/post/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTotalPosts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.GetTotalPostsRequest,\n ambassadorWixBlogV3PostTypes.GetTotalPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetTotalPostsResponse,\n ambassadorWixBlogV3PostTypes.GetTotalPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getTotalPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/stats/posts/total',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPost(): __PublicMethodMetaInfo<\n 'GET',\n { postId: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostRequest,\n ambassadorWixBlogV3PostTypes.GetPostRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostResponse,\n ambassadorWixBlogV3PostTypes.GetPostResponse\n> {\n const payload = { postId: ':postId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPost(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/{postId}',\n pathParams: { postId: 'postId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPostBySlug(): __PublicMethodMetaInfo<\n 'GET',\n { slug: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostBySlugRequest,\n ambassadorWixBlogV3PostTypes.GetPostBySlugRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostBySlugResponse,\n ambassadorWixBlogV3PostTypes.GetPostBySlugResponse\n> {\n const payload = { slug: ':slug' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPostBySlug(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/slugs/{slug}',\n pathParams: { slug: 'slug' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPosts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.ListPostsRequest,\n ambassadorWixBlogV3PostTypes.ListPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.ListPostsResponse,\n ambassadorWixBlogV3PostTypes.ListPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.listPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPosts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3PostUniversalTypes.QueryPostsRequest,\n ambassadorWixBlogV3PostTypes.QueryPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.QueryPostsResponse,\n ambassadorWixBlogV3PostTypes.QueryPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.queryPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/posts/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPostMetrics(): __PublicMethodMetaInfo<\n 'GET',\n { postId: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostMetricsRequest,\n ambassadorWixBlogV3PostTypes.GetPostMetricsRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostMetricsResponse,\n ambassadorWixBlogV3PostTypes.GetPostMetricsResponse\n> {\n const payload = { postId: ':postId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPostMetrics(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/{postId}/metrics',\n pathParams: { postId: 'postId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,iBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,kBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,iEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,I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ACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["getPost","getPostBySlug","getPostMetrics","getTotalPosts","listPosts","queryPostCountStats","queryPosts","import_timestamp","import_rest_modules","payload","queryPostCountStats","getTotalPosts","getPost","getPostBySlug","listPosts","queryPosts","getPostMetrics"]}
|
@@ -3509,4 +3509,4 @@ interface PostsQueryBuilder {
|
|
3509
3509
|
find: () => Promise<PostsQueryResult>;
|
3510
3510
|
}
|
3511
3511
|
|
3512
|
-
export { Origin as $, Alignment as A, PollLayoutDirection as B, Crop as C, BackgroundType as D, DecorationType as E, FontType as F, type GetTotalPostsOptions as G, AppType as H, InitialExpandedItems as I, Direction as J, VerticalAlignment as K, type ListPostsOptions as L, MapType as M, NodeType as N, Orientation as O, type
|
3512
|
+
export { Origin as $, Alignment as A, PollLayoutDirection as B, Crop as C, BackgroundType as D, DecorationType as E, FontType as F, type GetTotalPostsOptions as G, AppType as H, InitialExpandedItems as I, Direction as J, VerticalAlignment as K, type ListPostsOptions as L, MapType as M, NodeType as N, Orientation as O, type PostsQueryBuilder as P, type QueryPostCountStatsOptions as Q, NullValue as R, Source as S, Type as T, ModerationStatusStatus as U, ViewMode as V, WidthType as W, QueryPublicationsCountStatsRequestOrder as X, Order as Y, WebhookIdentityType as Z, GetPostTemplatesSort as _, type QueryPostCountStatsResponse as a, type Option as a$, Status as a0, Field as a1, PostFieldField as a2, GetPostsSort as a3, SortOrder as a4, type Post as a5, type CoverMedia as a6, type CoverMediaMediaOneOf as a7, type FocalPoint as a8, type PostCountInfo as a9, type FileSourceDataOneOf as aA, type PDFSettings as aB, type GalleryData as aC, type V1Media as aD, type Image as aE, type Video as aF, type Item as aG, type ItemDataOneOf as aH, type GalleryOptions as aI, type Layout as aJ, type ItemStyle as aK, type Thumbnails as aL, type GIFData as aM, type GIF as aN, type HeadingData as aO, type HTMLData as aP, type HTMLDataDataOneOf as aQ, type ImageData as aR, type StylesBorder as aS, type ImageDataStyles as aT, type LinkPreviewData as aU, type LinkPreviewDataStyles as aV, type MapData as aW, type MapSettings as aX, type ParagraphData as aY, type PollData as aZ, type Permissions as a_, type Metrics as aa, type SeoSchema as ab, type Keyword as ac, type Tag as ad, type Settings as ae, type RichContent as af, type Node as ag, type NodeDataOneOf as ah, type NodeStyle as ai, type ButtonData as aj, type Border as ak, type Colors as al, type PluginContainerData as am, type PluginContainerDataWidth as an, type PluginContainerDataWidthDataOneOf as ao, type Spoiler as ap, type Height as aq, type Styles as ar, type Link as as, type LinkDataOneOf as at, type Rel as au, type CodeBlockData as av, type TextStyle as aw, type DividerData as ax, type FileData as ay, type FileSource as az, type GetTotalPostsResponse as b, type GetTotalPostsRequest as b$, type PollSettings as b0, type PollLayout as b1, type OptionLayout as b2, type Gradient as b3, type Background as b4, type BackgroundBackgroundOneOf as b5, type PollDesign as b6, type OptionDesign as b7, type Poll as b8, type PollDataLayout as b9, type OrderedListData as bA, type BulletedListData as bB, type BlockquoteData as bC, type CaptionData as bD, type LayoutCellData as bE, type Metadata as bF, type DocumentStyle as bG, type TextNodeStyle as bH, type ModerationDetails as bI, type Media as bJ, type MediaMediaOneOf as bK, type WixMedia as bL, type VideoResolution as bM, type EmbedMedia as bN, type EmbedThumbnail as bO, type EmbedVideo as bP, type PostTranslation as bQ, type PostCategoriesUpdated as bR, type PostTagsUpdated as bS, type ScheduledPostPublished as bT, type QueryPublicationsCountStatsRequest as bU, type QueryPublicationsCountStatsResponse as bV, type PeriodPublicationsCount as bW, type QueryPostCountStatsRequest as bX, type PeriodPostCount as bY, type GetTotalPublicationsRequest as bZ, type GetTotalPublicationsResponse as b_, type Design as ba, type TextData as bb, type Decoration as bc, type DecorationDataOneOf as bd, type AnchorData as be, type ColorData as bf, type LinkData as bg, type MentionData as bh, type FontSizeData as bi, type SpoilerData as bj, type AppEmbedData as bk, type AppEmbedDataAppDataOneOf as bl, type BookingData as bm, type EventData as bn, type VideoData as bo, type PlaybackOptions as bp, type EmbedData as bq, type Oembed as br, type CollapsibleListData as bs, type TableData as bt, type Dimensions as bu, type TableCellData as bv, type CellStyle as bw, type BorderColors as bx, type ListValue as by, type AudioData as bz, type GetPostOptions as c, type ListDemoPostsResponse as c$, type DomainEvent as c0, type DomainEventBodyOneOf as c1, type EntityCreatedEvent as c2, type RestoreInfo as c3, type EntityUpdatedEvent as c4, type EntityDeletedEvent as c5, type ActionEvent as c6, type MessageEnvelope as c7, type IdentificationData as c8, type IdentificationDataIdOneOf as c9, type Sorting as cA, type PlatformQuery as cB, type PlatformQueryPagingMethodOneOf as cC, type Paging as cD, type CursorPaging as cE, type QueryPostsResponse as cF, type PagingMetadataV2 as cG, type Cursors as cH, type GetPostMetricsRequest as cI, type BulkGetPostMetricsRequest as cJ, type BulkGetPostMetricsResponse as cK, type ViewPostRequest as cL, type ViewPostResponse as cM, type LikePostRequest as cN, type LikePostResponse as cO, type UnlikePostRequest as cP, type UnlikePostResponse as cQ, type PinPostRequest as cR, type PinPostResponse as cS, type UnpinPostRequest as cT, type UnpinPostResponse as cU, type ListPostsArchiveRequest as cV, type ListPostsArchiveResponse as cW, type BulkGetPostReactionsRequest as cX, type BulkGetPostReactionsResponse as cY, type Reactions as cZ, type ListDemoPostsRequest as c_, type ListTemplatesRequest as ca, type BlogPaging as cb, type ListTemplatesResponse as cc, type MetaData as cd, type Category as ce, type CategoryTranslation as cf, type GetTemplateRequest as cg, type GetTemplateResponse as ch, type CreateDraftPostFromTemplateRequest as ci, type CreateDraftPostFromTemplateResponse as cj, type DraftPost as ck, type DraftPostTranslation as cl, type GetTotalLikesPerMemberRequest as cm, type GetTotalLikesPerMemberResponse as cn, type PostLiked as co, type PostLikedInitiatorOneOf as cp, type PostUnliked as cq, type PostUnlikedInitiatorOneOf as cr, type PostCountersUpdated as cs, type PostCountersUpdatedInitiatorOneOf as ct, type PostOwnerChanged as cu, type InitialPostsCopied as cv, type GetPostRequest as cw, type GetPostBySlugRequest as cx, type ListPostsRequest as cy, type QueryPostsRequest as cz, type GetPostResponse as d, type ConvertDraftJsToRichContentRequest as d0, type ConvertDraftJsToRichContentResponse as d1, type ConvertRichContentToDraftJsRequest as d2, type ConvertRichContentToDraftJsResponse as d3, type OldBlogMigratedEvent as d4, type BaseEventMetadata as d5, type EventMetadata as d6, type PostsQueryResult as d7, type GetPostBySlugOptions as e, type GetPostBySlugResponse as f, type ListPostsResponse as g, type QueryPostsOptions as h, type GetPostMetricsResponse as i, type PostCreatedEnvelope as j, type PostDeletedEnvelope as k, type PostLikedEnvelope as l, type PostUnlikedEnvelope as m, type PostUpdatedEnvelope as n, PluginContainerDataAlignment as o, Target as p, TextAlignment as q, LineStyle as r, Width as s, LayoutType as t, ThumbnailsAlignment as u, GIFType as v, Position as w, ViewRole as x, VoteRole as y, PollLayoutType as z };
|
package/build/es/index.d.mts
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
2
|
-
import { Q as QueryPostCountStatsOptions, a as QueryPostCountStatsResponse, G as GetTotalPostsOptions, b as GetTotalPostsResponse, c as GetPostOptions,
|
3
|
-
export {
|
2
|
+
import { Q as QueryPostCountStatsOptions, a as QueryPostCountStatsResponse, G as GetTotalPostsOptions, b as GetTotalPostsResponse, c as GetPostOptions, d as GetPostResponse, e as GetPostBySlugOptions, f as GetPostBySlugResponse, L as ListPostsOptions, g as ListPostsResponse, h as QueryPostsOptions, P as PostsQueryBuilder, i as GetPostMetricsResponse, j as PostCreatedEnvelope, k as PostDeletedEnvelope, l as PostLikedEnvelope, m as PostUnlikedEnvelope, n as PostUpdatedEnvelope } from './blog-v3-post-posts.universal-DQPJ111E.mjs';
|
3
|
+
export { c6 as ActionEvent, A as Alignment, be as AnchorData, bk as AppEmbedData, bl as AppEmbedDataAppDataOneOf, H as AppType, bz as AudioData, b4 as Background, b5 as BackgroundBackgroundOneOf, D as BackgroundType, d5 as BaseEventMetadata, bC as BlockquoteData, cb as BlogPaging, bm as BookingData, ak as Border, bx as BorderColors, cJ as BulkGetPostMetricsRequest, cK as BulkGetPostMetricsResponse, cX as BulkGetPostReactionsRequest, cY as BulkGetPostReactionsResponse, bB as BulletedListData, aj as ButtonData, bD as CaptionData, ce as Category, cf as CategoryTranslation, bw as CellStyle, av as CodeBlockData, bs as CollapsibleListData, bf as ColorData, al as Colors, d0 as ConvertDraftJsToRichContentRequest, d1 as ConvertDraftJsToRichContentResponse, d2 as ConvertRichContentToDraftJsRequest, d3 as ConvertRichContentToDraftJsResponse, a6 as CoverMedia, a7 as CoverMediaMediaOneOf, ci as CreateDraftPostFromTemplateRequest, cj as CreateDraftPostFromTemplateResponse, C as Crop, cE as CursorPaging, cH as Cursors, bc as Decoration, bd as DecorationDataOneOf, E as DecorationType, ba as Design, bu as Dimensions, J as Direction, ax as DividerData, bG as DocumentStyle, c0 as DomainEvent, c1 as DomainEventBodyOneOf, ck as DraftPost, cl as DraftPostTranslation, bq as EmbedData, bN as EmbedMedia, bO as EmbedThumbnail, bP as EmbedVideo, c2 as EntityCreatedEvent, c5 as EntityDeletedEvent, c4 as EntityUpdatedEvent, bn as EventData, d6 as EventMetadata, a1 as Field, ay as FileData, az as FileSource, aA as FileSourceDataOneOf, a8 as FocalPoint, bi as FontSizeData, F as FontType, aN as GIF, aM as GIFData, v as GIFType, aC as GalleryData, aI as GalleryOptions, cx as GetPostBySlugRequest, cI as GetPostMetricsRequest, cw as GetPostRequest, _ as GetPostTemplatesSort, a3 as GetPostsSort, cg as GetTemplateRequest, ch as GetTemplateResponse, cm as GetTotalLikesPerMemberRequest, cn as GetTotalLikesPerMemberResponse, b$ as GetTotalPostsRequest, bZ as GetTotalPublicationsRequest, b_ as GetTotalPublicationsResponse, b3 as Gradient, aP as HTMLData, aQ as HTMLDataDataOneOf, aO as HeadingData, aq as Height, c8 as IdentificationData, c9 as IdentificationDataIdOneOf, aE as Image, aR as ImageData, aT as ImageDataStyles, I as InitialExpandedItems, cv as InitialPostsCopied, aG as Item, aH as ItemDataOneOf, aK as ItemStyle, ac as Keyword, aJ as Layout, bE as LayoutCellData, t as LayoutType, cN as LikePostRequest, cO as LikePostResponse, r as LineStyle, as as Link, bg as LinkData, at as LinkDataOneOf, aU as LinkPreviewData, aV as LinkPreviewDataStyles, c_ as ListDemoPostsRequest, c$ as ListDemoPostsResponse, cV as ListPostsArchiveRequest, cW as ListPostsArchiveResponse, cy as ListPostsRequest, ca as ListTemplatesRequest, cc as ListTemplatesResponse, by as ListValue, aW as MapData, aX as MapSettings, M as MapType, bJ as Media, bK as MediaMediaOneOf, bh as MentionData, c7 as MessageEnvelope, cd as MetaData, bF as Metadata, aa as Metrics, bI as ModerationDetails, U as ModerationStatusStatus, ag as Node, ah as NodeDataOneOf, ai as NodeStyle, N as NodeType, R as NullValue, br as Oembed, d4 as OldBlogMigratedEvent, a$ as Option, b7 as OptionDesign, b2 as OptionLayout, Y as Order, bA as OrderedListData, O as Orientation, $ as Origin, aB as PDFSettings, cD as Paging, cG as PagingMetadataV2, aY as ParagraphData, bY as PeriodPostCount, bW as PeriodPublicationsCount, a_ as Permissions, cR as PinPostRequest, cS as PinPostResponse, cB as PlatformQuery, cC as PlatformQueryPagingMethodOneOf, bp as PlaybackOptions, am as PluginContainerData, o as PluginContainerDataAlignment, an as PluginContainerDataWidth, ao as PluginContainerDataWidthDataOneOf, b8 as Poll, aZ as PollData, b9 as PollDataLayout, b6 as PollDesign, b1 as PollLayout, B as PollLayoutDirection, z as PollLayoutType, b0 as PollSettings, w as Position, a5 as Post, bR as PostCategoriesUpdated, a9 as PostCountInfo, cs as PostCountersUpdated, ct as PostCountersUpdatedInitiatorOneOf, a2 as PostFieldField, co as PostLiked, cp as PostLikedInitiatorOneOf, cu as PostOwnerChanged, bS as PostTagsUpdated, bQ as PostTranslation, cq as PostUnliked, cr as PostUnlikedInitiatorOneOf, d7 as PostsQueryResult, bX as QueryPostCountStatsRequest, cz as QueryPostsRequest, cF as QueryPostsResponse, bU as QueryPublicationsCountStatsRequest, X as QueryPublicationsCountStatsRequestOrder, bV as QueryPublicationsCountStatsResponse, cZ as Reactions, au as Rel, c3 as RestoreInfo, af as RichContent, bT as ScheduledPostPublished, ab as SeoSchema, ae as Settings, a4 as SortOrder, cA as Sorting, S as Source, ap as Spoiler, bj as SpoilerData, a0 as Status, ar as Styles, aS as StylesBorder, bv as TableCellData, bt as TableData, ad as Tag, p as Target, q as TextAlignment, bb as TextData, bH as TextNodeStyle, aw as TextStyle, aL as Thumbnails, u as ThumbnailsAlignment, T as Type, cP as UnlikePostRequest, cQ as UnlikePostResponse, cT as UnpinPostRequest, cU as UnpinPostResponse, aD as V1Media, K as VerticalAlignment, aF as Video, bo as VideoData, bM as VideoResolution, V as ViewMode, cL as ViewPostRequest, cM as ViewPostResponse, x as ViewRole, y as VoteRole, Z as WebhookIdentityType, s as Width, W as WidthType, bL as WixMedia } from './blog-v3-post-posts.universal-DQPJ111E.mjs';
|
4
4
|
|
5
5
|
declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
|
6
6
|
interface QueryPostCountStatsSignature {
|
7
7
|
/**
|
8
8
|
* Retrieves the number of published posts per month within a specified time range.
|
9
9
|
*
|
10
|
-
*
|
11
|
-
* The
|
12
|
-
*
|
13
|
-
* For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
|
14
|
-
*
|
15
|
-
*
|
10
|
+
*
|
11
|
+
* The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
|
12
|
+
*
|
13
|
+
* 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.
|
14
|
+
*
|
15
|
+
* >**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.
|
16
|
+
* @param - Options specifying time frame, sort, and filter.
|
16
17
|
* @returns Get Blog Post Count Stats response
|
17
18
|
*/
|
18
19
|
(options?: QueryPostCountStatsOptions | undefined): Promise<QueryPostCountStatsResponse>;
|
@@ -21,6 +22,7 @@ declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature
|
|
21
22
|
interface GetTotalPostsSignature {
|
22
23
|
/**
|
23
24
|
* Retrieves the total amount of published posts of the blog.
|
25
|
+
* @param - Language Options.
|
24
26
|
*/
|
25
27
|
(options?: GetTotalPostsOptions | undefined): Promise<GetTotalPostsResponse>;
|
26
28
|
}
|
@@ -29,9 +31,9 @@ interface GetPostSignature {
|
|
29
31
|
/**
|
30
32
|
* Retrieves a post by the specified ID.
|
31
33
|
* @param - Post ID.
|
32
|
-
* @
|
34
|
+
* @param - Options specifying which fields to return.
|
33
35
|
*/
|
34
|
-
(postId: string, options?: GetPostOptions | undefined): Promise<
|
36
|
+
(postId: string, options?: GetPostOptions | undefined): Promise<GetPostResponse>;
|
35
37
|
}
|
36
38
|
declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
|
37
39
|
interface GetPostBySlugSignature {
|
@@ -43,6 +45,7 @@ interface GetPostBySlugSignature {
|
|
43
45
|
* the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
|
44
46
|
* unless specified otherwise.
|
45
47
|
* @param - Slug of the post to retrieve.
|
48
|
+
* @param - Options specifying which fields to return.
|
46
49
|
*/
|
47
50
|
(slug: string, options?: GetPostBySlugOptions | undefined): Promise<GetPostBySlugResponse>;
|
48
51
|
}
|
@@ -55,28 +58,32 @@ interface ListPostsSignature {
|
|
55
58
|
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
56
59
|
* - `paging.limit` is `50`.
|
57
60
|
* - `paging.offset` is `0`.
|
61
|
+
* @param - Sort, filter, and paging options.
|
58
62
|
*/
|
59
63
|
(options?: ListPostsOptions | undefined): Promise<ListPostsResponse>;
|
60
64
|
}
|
61
65
|
declare function queryPosts$1(httpClient: HttpClient): QueryPostsSignature;
|
62
66
|
interface QueryPostsSignature {
|
63
67
|
/**
|
64
|
-
*
|
68
|
+
* Creates a query to retrieve a list of posts.
|
65
69
|
*
|
66
|
-
* Query Posts runs with these defaults, which you can override:
|
67
|
-
* - `firstPublishedDate` is sorted in descending order, with pinned posts first.
|
68
|
-
* - `paging.limit` is `50`.
|
69
|
-
* - `paging.offset` is `0`.
|
70
70
|
*
|
71
|
-
*
|
72
|
-
*
|
71
|
+
* The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
|
72
|
+
*
|
73
|
+
* The returned object contains the query definition which is typically used to run the query using the `find()` function.
|
74
|
+
*
|
75
|
+
* 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.
|
76
|
+
*
|
77
|
+
* `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
|
78
|
+
* + `limit(50)`
|
79
|
+
* + `descending('firstPublishedDate')`
|
80
|
+
*
|
81
|
+
* Note that the default limit is `'50'`, but the max limit is `'100'`.
|
82
|
+
*
|
83
|
+
* To learn how to query posts, refer to the table below.
|
73
84
|
*
|
74
|
-
*
|
75
|
-
*
|
76
|
-
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging), and
|
77
|
-
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
78
|
-
* For a detailed list of supported filters and sortable fields, see
|
79
|
-
* [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
|
85
|
+
* 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`.
|
86
|
+
* @param - Options specifying which fields to return.
|
80
87
|
*/
|
81
88
|
(options?: QueryPostsOptions | undefined): PostsQueryBuilder;
|
82
89
|
}
|
@@ -124,4 +131,4 @@ declare const onPostUnliked: BuildEventDefinition<typeof onPostUnliked$1>;
|
|
124
131
|
*/
|
125
132
|
declare const onPostUpdated: BuildEventDefinition<typeof onPostUpdated$1>;
|
126
133
|
|
127
|
-
export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse,
|
134
|
+
export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetPostResponse, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
|
package/build/es/index.mjs
CHANGED
@@ -1288,8 +1288,8 @@ async function getPost2(postId, options) {
|
|
1288
1288
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
1289
1289
|
}
|
1290
1290
|
]),
|
1291
|
-
["post.richContent"]
|
1292
|
-
)
|
1291
|
+
["post.richContent", "post.rich_content"]
|
1292
|
+
);
|
1293
1293
|
} catch (err) {
|
1294
1294
|
const transformedError = sdkTransformError(
|
1295
1295
|
err,
|
@@ -1341,7 +1341,7 @@ async function getPostBySlug2(slug, options) {
|
|
1341
1341
|
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
1342
1342
|
}
|
1343
1343
|
]),
|
1344
|
-
["post.richContent"]
|
1344
|
+
["post.richContent", "post.rich_content"]
|
1345
1345
|
);
|
1346
1346
|
} catch (err) {
|
1347
1347
|
const transformedError = sdkTransformError(
|
@@ -1401,7 +1401,7 @@ async function listPosts2(options) {
|
|
1401
1401
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
1402
1402
|
}
|
1403
1403
|
]),
|
1404
|
-
["posts.richContent"]
|
1404
|
+
["posts.richContent", "posts.rich_content"]
|
1405
1405
|
);
|
1406
1406
|
} catch (err) {
|
1407
1407
|
const transformedError = sdkTransformError(
|
@@ -1476,7 +1476,7 @@ function queryPosts2(options) {
|
|
1476
1476
|
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
1477
1477
|
}
|
1478
1478
|
]),
|
1479
|
-
["posts.richContent"]
|
1479
|
+
["posts.richContent", "posts.rich_content"]
|
1480
1480
|
);
|
1481
1481
|
return {
|
1482
1482
|
items: transformedData?.posts,
|
@@ -1643,7 +1643,8 @@ var onPostCreated = EventDefinition(
|
|
1643
1643
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
1644
1644
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
1645
1645
|
}
|
1646
|
-
])
|
1646
|
+
]),
|
1647
|
+
["entity.rich_content"]
|
1647
1648
|
)
|
1648
1649
|
)();
|
1649
1650
|
var onPostDeleted = EventDefinition(
|
@@ -1718,7 +1719,8 @@ var onPostDeleted = EventDefinition(
|
|
1718
1719
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
1719
1720
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
1720
1721
|
}
|
1721
|
-
])
|
1722
|
+
]),
|
1723
|
+
["entity.rich_content"]
|
1722
1724
|
)
|
1723
1725
|
)();
|
1724
1726
|
var onPostLiked = EventDefinition(
|
@@ -1730,7 +1732,8 @@ var onPostLiked = EventDefinition(
|
|
1730
1732
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
1731
1733
|
paths: [{ path: "metadata.eventTime" }]
|
1732
1734
|
}
|
1733
|
-
])
|
1735
|
+
]),
|
1736
|
+
["entity.rich_content"]
|
1734
1737
|
)
|
1735
1738
|
)();
|
1736
1739
|
var onPostUnliked = EventDefinition(
|
@@ -1742,7 +1745,8 @@ var onPostUnliked = EventDefinition(
|
|
1742
1745
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
1743
1746
|
paths: [{ path: "metadata.eventTime" }]
|
1744
1747
|
}
|
1745
|
-
])
|
1748
|
+
]),
|
1749
|
+
["entity.rich_content"]
|
1746
1750
|
)
|
1747
1751
|
)();
|
1748
1752
|
var onPostUpdated = EventDefinition(
|
@@ -1817,7 +1821,8 @@ var onPostUpdated = EventDefinition(
|
|
1817
1821
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
1818
1822
|
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
1819
1823
|
}
|
1820
|
-
])
|
1824
|
+
]),
|
1825
|
+
["entity.rich_content"]
|
1821
1826
|
)
|
1822
1827
|
)();
|
1823
1828
|
|