@wix/auto_sdk_blog_posts 1.0.41 → 1.0.43

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.
@@ -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 *\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,\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EpE,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 * 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,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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,42 +1,37 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, GetPostResponse, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, QueryPostsOptions, PostsQueryBuilder, GetPostMetricsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AspectRatio, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonStyles, CaptionData, CardStyles, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostMetricsRequest, GetPostRequest, GetPostTemplatesSort, GetPostsSort, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LikePostRequest, LikePostResponse, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, Placement, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Post, PostCategoriesUpdated, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, RestoreInfo, RibbonStyles, RichContent, ScheduledPostPublished, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, StylesBorder, StylesPosition, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewPostRequest, ViewPostResponse, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia } from './index.typings.mjs';
2
+ import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, Post, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, QueryPostsOptions, PostsQueryBuilder, GetPostMetricsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope } from './index.typings.mjs';
3
+ export { ActionEvent, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetPostBySlugRequest, GetPostMetricsRequest, GetPostRequest, GetPostResponse, GetPostTemplatesSort, GetPostTemplatesSortWithLiterals, GetPostsSort, GetPostsSortWithLiterals, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsRequest, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LikePostRequest, LikePostResponse, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsRequest, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, ModerationStatusStatusWithLiterals, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PostCategoriesUpdated, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostFieldField, PostFieldFieldWithLiterals, PostLiked, PostLikedInitiatorOneOf, PostOwnerChanged, PostTagsUpdated, PostTranslation, PostUnliked, PostUnlikedInitiatorOneOf, PostsQueryResult, PricingData, QueryPostCountStatsRequest, QueryPostsRequest, QueryPostsResponse, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsRequestOrderWithLiterals, QueryPublicationsCountStatsResponse, Reactions, Rel, Resizing, ResizingWithLiterals, RestoreInfo, RibbonStyles, RichContent, ScheduledPostPublished, SeoSchema, Settings, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewPostRequest, ViewPostResponse, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia } from './index.typings.mjs';
4
4
 
5
- type PostNonNullablePaths = `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `coverMedia.enabled` | `coverMedia.displayed` | `coverMedia.custom` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`;
6
5
  declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
7
6
  interface QueryPostCountStatsSignature {
8
7
  /**
9
8
  * Retrieves the number of published posts per month within a specified time range.
10
9
  *
11
- *
12
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
13
- *
14
- * 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.
15
- *
16
- * >**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.
17
- * @param - Options specifying time frame, sort, and filter.
10
+ * The time range is set using the `rangeStart` and `months` properties.
11
+ * The time range always starts on the 1st day of the month set in `rangeStart` and
12
+ * includes the number of `months` following `rangeStart`.
13
+ * For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`,
14
+ * 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.
15
+ * > 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.
18
16
  * @returns Get Blog Post Count Stats response
19
17
  */
20
- (options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`>>;
18
+ (options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`, 4>>;
21
19
  }
22
20
  declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature;
23
21
  interface GetTotalPostsSignature {
24
22
  /**
25
23
  * Retrieves the total amount of published posts of the blog.
26
- * @param - Language Options.
27
24
  */
28
- (options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`>>;
25
+ (options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`, 2>>;
29
26
  }
30
27
  declare function getPost$1(httpClient: HttpClient): GetPostSignature;
31
28
  interface GetPostSignature {
32
29
  /**
33
30
  * Retrieves a post by the specified ID.
34
31
  * @param - Post ID.
35
- * @param - Options specifying which fields to return.
32
+ * @returns Retrieved post info.
36
33
  */
37
- (postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, {
38
- [P in PostNonNullablePaths]: `post.${P}`;
39
- }[PostNonNullablePaths]>>;
34
+ (postId: string, options?: GetPostOptions): Promise<NonNullablePaths<Post, `_id` | `title` | `excerpt` | `slug` | `featured` | `pinned` | `categoryIds` | `coverMedia.enabled` | `coverMedia.displayed` | `coverMedia.custom` | `memberId` | `hashtags` | `commentingEnabled` | `minutesToRead` | `tagIds` | `relatedPostIds` | `pricingPlanIds` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain` | `preview` | `moderationDetails.submittedBy` | `moderationDetails.status` | `media.embedMedia.thumbnail.url` | `media.embedMedia.thumbnail.width` | `media.embedMedia.thumbnail.height` | `media.embedMedia.video.url` | `media.embedMedia.video.width` | `media.embedMedia.video.height` | `media.displayed` | `media.custom` | `hasUnpublishedChanges`, 6>>;
40
35
  }
41
36
  declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
42
37
  interface GetPostBySlugSignature {
@@ -48,11 +43,8 @@ interface GetPostBySlugSignature {
48
43
  * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
49
44
  * unless specified otherwise.
50
45
  * @param - Slug of the post to retrieve.
51
- * @param - Options specifying which fields to return.
52
46
  */
53
- (slug: string, options?: GetPostBySlugOptions): Promise<NonNullablePaths<GetPostBySlugResponse, {
54
- [P in PostNonNullablePaths]: `post.${P}`;
55
- }[PostNonNullablePaths]>>;
47
+ (slug: string, options?: GetPostBySlugOptions): Promise<NonNullablePaths<GetPostBySlugResponse, `post._id` | `post.title` | `post.excerpt` | `post.slug` | `post.featured` | `post.pinned` | `post.categoryIds` | `post.coverMedia.enabled` | `post.coverMedia.displayed` | `post.coverMedia.custom` | `post.memberId` | `post.hashtags` | `post.commentingEnabled` | `post.minutesToRead` | `post.tagIds` | `post.relatedPostIds` | `post.pricingPlanIds` | `post.seoData.tags` | `post.seoData.tags.${number}.type` | `post.seoData.tags.${number}.children` | `post.seoData.tags.${number}.custom` | `post.seoData.tags.${number}.disabled` | `post.seoData.settings.preventAutoRedirect` | `post.seoData.settings.keywords` | `post.seoData.settings.keywords.${number}.term` | `post.seoData.settings.keywords.${number}.isMain` | `post.preview` | `post.moderationDetails.submittedBy` | `post.moderationDetails.status` | `post.media.embedMedia.thumbnail.url` | `post.media.embedMedia.thumbnail.width` | `post.media.embedMedia.thumbnail.height` | `post.media.embedMedia.video.url` | `post.media.embedMedia.video.width` | `post.media.embedMedia.video.height` | `post.media.displayed` | `post.media.custom` | `post.hasUnpublishedChanges`, 7>>;
56
48
  }
57
49
  declare function listPosts$1(httpClient: HttpClient): ListPostsSignature;
58
50
  interface ListPostsSignature {
@@ -63,34 +55,28 @@ interface ListPostsSignature {
63
55
  * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
64
56
  * - `paging.limit` is `50`.
65
57
  * - `paging.offset` is `0`.
66
- * @param - Sort, filter, and paging options.
67
58
  */
68
- (options?: ListPostsOptions): Promise<NonNullablePaths<ListPostsResponse, {
69
- [P in PostNonNullablePaths]: `posts.${number}.${P}`;
70
- }[PostNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
59
+ (options?: ListPostsOptions): Promise<NonNullablePaths<ListPostsResponse, `posts` | `posts.${number}._id` | `posts.${number}.title` | `posts.${number}.excerpt` | `posts.${number}.slug` | `posts.${number}.featured` | `posts.${number}.pinned` | `posts.${number}.coverMedia.enabled` | `posts.${number}.coverMedia.displayed` | `posts.${number}.coverMedia.custom` | `posts.${number}.memberId` | `posts.${number}.commentingEnabled` | `posts.${number}.minutesToRead` | `posts.${number}.seoData.settings.preventAutoRedirect` | `posts.${number}.preview` | `posts.${number}.moderationDetails.submittedBy` | `posts.${number}.moderationDetails.status` | `posts.${number}.media.displayed` | `posts.${number}.media.custom` | `posts.${number}.hasUnpublishedChanges` | `metaData.count` | `metaData.offset` | `metaData.total`, 6>>;
71
60
  }
72
61
  declare function queryPosts$1(httpClient: HttpClient): QueryPostsSignature;
73
62
  interface QueryPostsSignature {
74
63
  /**
75
- * Creates a query to retrieve a list of posts.
76
- *
77
- *
78
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
79
- *
80
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
64
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
81
65
  *
82
- * 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.
83
- *
84
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
85
- * + `limit(50)`
86
- * + `descending('firstPublishedDate')`
87
- *
88
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
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`.
89
70
  *
90
- * To learn how to query posts, refer to the table below.
71
+ * For field support for filters and sorting, see
72
+ * [Field Support for Filtering and Sorting](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/filter-and-sort).
91
73
  *
92
- * 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`.
93
- * @param - Options specifying which fields to return.
74
+ * To learn about working with _Query_ endpoints, see
75
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
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).
94
80
  */
95
81
  (options?: QueryPostsOptions): PostsQueryBuilder;
96
82
  }
@@ -102,7 +88,7 @@ interface GetPostMetricsSignature {
102
88
  * A post's metrics include the comments, likes, and views the post receives.
103
89
  * @param - Post ID to retrieve metrics for.
104
90
  */
105
- (postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`>>;
91
+ (postId: string): Promise<NonNullablePaths<GetPostMetricsResponse, `metrics.comments` | `metrics.likes` | `metrics.views`, 3>>;
106
92
  }
107
93
  declare const onPostCreated$1: EventDefinition<PostCreatedEnvelope, "wix.blog.v3.post_created">;
108
94
  declare const onPostDeleted$1: EventDefinition<PostDeletedEnvelope, "wix.blog.v3.post_deleted">;
@@ -138,4 +124,4 @@ declare const onPostUnliked: BuildEventDefinition<typeof onPostUnliked$1>;
138
124
  */
139
125
  declare const onPostUpdated: BuildEventDefinition<typeof onPostUpdated$1>;
140
126
 
141
- 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 };
127
+ export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, Post, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
@@ -1325,8 +1325,8 @@ async function getPost2(postId, options) {
1325
1325
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1326
1326
  }
1327
1327
  ]),
1328
- ["post.richContent", "post.rich_content"]
1329
- );
1328
+ ["post.richContent"]
1329
+ )?.post;
1330
1330
  } catch (err) {
1331
1331
  const transformedError = sdkTransformError(
1332
1332
  err,
@@ -1378,7 +1378,7 @@ async function getPostBySlug2(slug, options) {
1378
1378
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1379
1379
  }
1380
1380
  ]),
1381
- ["post.richContent", "post.rich_content"]
1381
+ ["post.richContent"]
1382
1382
  );
1383
1383
  } catch (err) {
1384
1384
  const transformedError = sdkTransformError(
@@ -1438,7 +1438,7 @@ async function listPosts2(options) {
1438
1438
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1439
1439
  }
1440
1440
  ]),
1441
- ["posts.richContent", "posts.rich_content"]
1441
+ ["posts.richContent"]
1442
1442
  );
1443
1443
  } catch (err) {
1444
1444
  const transformedError = sdkTransformError(
@@ -1513,7 +1513,7 @@ function queryPosts2(options) {
1513
1513
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1514
1514
  }
1515
1515
  ]),
1516
- ["posts.richContent", "posts.rich_content"]
1516
+ ["posts.richContent"]
1517
1517
  );
1518
1518
  return {
1519
1519
  items: transformedData?.posts,
@@ -1680,8 +1680,7 @@ var onPostCreated = EventDefinition(
1680
1680
  transformFn: transformRESTVideoV2ToSDKVideoV22,
1681
1681
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1682
1682
  }
1683
- ]),
1684
- ["entity.rich_content"]
1683
+ ])
1685
1684
  )
1686
1685
  )();
1687
1686
  var onPostDeleted = EventDefinition(
@@ -1756,8 +1755,7 @@ var onPostDeleted = EventDefinition(
1756
1755
  transformFn: transformRESTVideoV2ToSDKVideoV22,
1757
1756
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1758
1757
  }
1759
- ]),
1760
- ["entity.rich_content"]
1758
+ ])
1761
1759
  )
1762
1760
  )();
1763
1761
  var onPostLiked = EventDefinition(
@@ -1769,8 +1767,7 @@ var onPostLiked = EventDefinition(
1769
1767
  transformFn: transformRESTTimestampToSDKTimestamp2,
1770
1768
  paths: [{ path: "metadata.eventTime" }]
1771
1769
  }
1772
- ]),
1773
- ["entity.rich_content"]
1770
+ ])
1774
1771
  )
1775
1772
  )();
1776
1773
  var onPostUnliked = EventDefinition(
@@ -1782,8 +1779,7 @@ var onPostUnliked = EventDefinition(
1782
1779
  transformFn: transformRESTTimestampToSDKTimestamp2,
1783
1780
  paths: [{ path: "metadata.eventTime" }]
1784
1781
  }
1785
- ]),
1786
- ["entity.rich_content"]
1782
+ ])
1787
1783
  )
1788
1784
  )();
1789
1785
  var onPostUpdated = EventDefinition(
@@ -1858,8 +1854,7 @@ var onPostUpdated = EventDefinition(
1858
1854
  transformFn: transformRESTVideoV2ToSDKVideoV22,
1859
1855
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1860
1856
  }
1861
- ]),
1862
- ["entity.rich_content"]
1857
+ ])
1863
1858
  )
1864
1859
  )();
1865
1860