@wix/auto_sdk_blog_posts 1.0.44 → 1.0.45

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":["../../src/blog-v3-post-posts.http.ts","../../src/blog-v3-post-posts.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/blogs/this',\n destPath: '/_api/blogs/this',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/categories',\n destPath: '/_api/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/site-properties',\n destPath: '/_api/site-properties',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/posts/content',\n destPath: '/_api/posts/content',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/blog/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/_api/v3/posts',\n destPath: '/v3/posts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/blogs/this',\n destPath: '/_api/blogs/this',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/categories',\n destPath: '/_api/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/site-properties',\n destPath: '/_api/site-properties',\n },\n {\n srcPath: '/_api/communities-blog-node-api/_api/posts/content',\n destPath: '/_api/posts/content',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v2/stats',\n destPath: '/v2/stats',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/blog/v3',\n destPath: '/v3',\n },\n {\n srcPath: '/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v3/posts',\n destPath: '/v3/posts',\n },\n {\n srcPath: '/blog/v2/stats',\n destPath: '/v2/stats',\n },\n {\n srcPath: '/_api/v3/posts',\n destPath: '/v3/posts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_blog_posts';\n\n/**\n * Retrieves the number of published posts per month within a specified time range.\n *\n *\n * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.\n *\n * You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.\n *\n * >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.\n */\nexport function queryPostCountStats(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPostCountStats({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'rangeStart' }, { path: 'rangeEnd' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({\n protoPath: '/v2/stats/post/count',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'stats.periodStart' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPostCountStats;\n}\n\n/** Retrieves the total amount of published posts of the blog. */\nexport function getTotalPosts(payload: object): RequestOptionsFactory<any> {\n function __getTotalPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({\n protoPath: '/v2/stats/posts/total',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getTotalPosts;\n}\n\n/** Retrieves a post by the specified ID. */\nexport function getPost(payload: object): RequestOptionsFactory<any> {\n function __getPost({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/{postId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'post.firstPublishedDate' },\n { path: 'post.lastPublishedDate' },\n { path: 'post.coverMedia.image.urlExpirationDate' },\n { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'post.heroImage.urlExpirationDate' },\n { path: 'post.richContent.metadata.createdTimestamp' },\n { path: 'post.richContent.metadata.updatedTimestamp' },\n { path: 'post.moderationDetails.submittedDate' },\n { path: 'post.moderationDetails.moderationDate' },\n { path: 'post.media.wixMedia.image.urlExpirationDate' },\n { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'post.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'post.coverMedia.image.focalPoint.x' },\n { path: 'post.coverMedia.image.focalPoint.y' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'post.heroImage.focalPoint.x' },\n { path: 'post.heroImage.focalPoint.y' },\n { path: 'post.media.wixMedia.image.focalPoint.x' },\n { path: 'post.media.wixMedia.image.focalPoint.y' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'post.metrics.averageRating' },\n {\n path: 'post.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'post.richContent.nodes.galleryData.options.item.ratio' },\n { path: 'post.richContent.nodes.imageData.image.duration' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'post.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'post.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'post.richContent.nodes.appEmbedData.image.duration' },\n { path: 'post.richContent.nodes.videoData.video.duration' },\n { path: 'post.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'post.richContent.nodes.audioData.audio.duration' },\n { path: 'post.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPost;\n}\n\n/**\n * Retrieves a post with the provided slug.\n *\n * The slug is the end of a post's URL that refers to a specific post.\n * For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`,\n * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,\n * unless specified otherwise.\n */\nexport function getPostBySlug(payload: object): RequestOptionsFactory<any> {\n function __getPostBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/slugs/{slug}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'post.firstPublishedDate' },\n { path: 'post.lastPublishedDate' },\n { path: 'post.coverMedia.image.urlExpirationDate' },\n { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'post.heroImage.urlExpirationDate' },\n { path: 'post.richContent.metadata.createdTimestamp' },\n { path: 'post.richContent.metadata.updatedTimestamp' },\n { path: 'post.moderationDetails.submittedDate' },\n { path: 'post.moderationDetails.moderationDate' },\n { path: 'post.media.wixMedia.image.urlExpirationDate' },\n { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'post.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'post.coverMedia.image.focalPoint.x' },\n { path: 'post.coverMedia.image.focalPoint.y' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'post.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'post.heroImage.focalPoint.x' },\n { path: 'post.heroImage.focalPoint.y' },\n { path: 'post.media.wixMedia.image.focalPoint.x' },\n { path: 'post.media.wixMedia.image.focalPoint.y' },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'post.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'post.metrics.averageRating' },\n {\n path: 'post.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n { path: 'post.richContent.nodes.galleryData.options.item.ratio' },\n { path: 'post.richContent.nodes.imageData.image.duration' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'post.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'post.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'post.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'post.richContent.nodes.appEmbedData.image.duration' },\n { path: 'post.richContent.nodes.videoData.video.duration' },\n { path: 'post.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'post.richContent.nodes.audioData.audio.duration' },\n { path: 'post.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPostBySlug;\n}\n\n/**\n * Retrieves a list of up to 100 published posts per request.\n *\n * List Posts runs with these defaults, which you can override:\n * - `firstPublishedDate` is sorted in descending order, with pinned posts first.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n */\nexport function listPosts(payload: object): RequestOptionsFactory<any> {\n function __listPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'posts.firstPublishedDate' },\n { path: 'posts.lastPublishedDate' },\n { path: 'posts.coverMedia.image.urlExpirationDate' },\n { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'posts.heroImage.urlExpirationDate' },\n { path: 'posts.richContent.metadata.createdTimestamp' },\n { path: 'posts.richContent.metadata.updatedTimestamp' },\n { path: 'posts.moderationDetails.submittedDate' },\n { path: 'posts.moderationDetails.moderationDate' },\n { path: 'posts.media.wixMedia.image.urlExpirationDate' },\n { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'posts.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'posts.coverMedia.image.focalPoint.x' },\n { path: 'posts.coverMedia.image.focalPoint.y' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'posts.heroImage.focalPoint.x' },\n { path: 'posts.heroImage.focalPoint.y' },\n { path: 'posts.media.wixMedia.image.focalPoint.x' },\n { path: 'posts.media.wixMedia.image.focalPoint.y' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'posts.metrics.averageRating' },\n {\n path: 'posts.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.options.item.ratio',\n },\n { path: 'posts.richContent.nodes.imageData.image.duration' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'posts.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'posts.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'posts.richContent.nodes.appEmbedData.image.duration' },\n { path: 'posts.richContent.nodes.videoData.video.duration' },\n { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'posts.richContent.nodes.audioData.audio.duration' },\n { path: 'posts.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPosts;\n}\n\n/**\n * Creates a query to retrieve a list of posts.\n *\n *\n * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.\n *\n * The returned object contains the query definition which is typically used to run the query using the `find()` function.\n *\n * You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.\n *\n * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:\n * + `limit(50)`\n * + `descending('firstPublishedDate')`\n *\n * Note that the default limit is `'50'`, but the max limit is `'100'`.\n *\n * To learn how to query posts, refer to the table below.\n *\n * The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult`.\n */\nexport function queryPosts(payload: object): RequestOptionsFactory<any> {\n function __queryPosts({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'posts.firstPublishedDate' },\n { path: 'posts.lastPublishedDate' },\n { path: 'posts.coverMedia.image.urlExpirationDate' },\n { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },\n { path: 'posts.heroImage.urlExpirationDate' },\n { path: 'posts.richContent.metadata.createdTimestamp' },\n { path: 'posts.richContent.metadata.updatedTimestamp' },\n { path: 'posts.moderationDetails.submittedDate' },\n { path: 'posts.moderationDetails.moderationDate' },\n { path: 'posts.media.wixMedia.image.urlExpirationDate' },\n { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'posts.richContentCompressed' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'posts.coverMedia.image.focalPoint.x' },\n { path: 'posts.coverMedia.image.focalPoint.y' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.x' },\n { path: 'posts.coverMedia.video.thumbnail.focalPoint.y' },\n { path: 'posts.heroImage.focalPoint.x' },\n { path: 'posts.heroImage.focalPoint.y' },\n { path: 'posts.media.wixMedia.image.focalPoint.x' },\n { path: 'posts.media.wixMedia.image.focalPoint.y' },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x',\n },\n {\n path: 'posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y',\n },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.x' },\n { path: 'posts.media.wixMedia.videoV2.posters.focalPoint.y' },\n { path: 'posts.metrics.averageRating' },\n {\n path: 'posts.richContent.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'posts.richContent.nodes.galleryData.options.item.ratio',\n },\n { path: 'posts.richContent.nodes.imageData.image.duration' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },\n { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },\n { path: 'posts.richContent.nodes.pollData.poll.image.duration' },\n {\n path: 'posts.richContent.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',\n },\n { path: 'posts.richContent.nodes.appEmbedData.image.duration' },\n { path: 'posts.richContent.nodes.videoData.video.duration' },\n { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },\n { path: 'posts.richContent.nodes.audioData.audio.duration' },\n { path: 'posts.richContent.nodes.audioData.coverImage.duration' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPosts;\n}\n\n/**\n * Retrieves a post's metrics.\n *\n * A post's metrics include the comments, likes, and views the post receives.\n */\nexport function getPostMetrics(payload: object): RequestOptionsFactory<any> {\n function __getPostMetrics({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.post',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({\n protoPath: '/v3/posts/{postId}/metrics',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'metrics.averageRating' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPostMetrics;\n}\n","import * as ambassadorWixBlogV3Post from './blog-v3-post-posts.http.js';\nimport * as ambassadorWixBlogV3PostTypes from './blog-v3-post-posts.types.js';\nimport * as ambassadorWixBlogV3PostUniversalTypes from './blog-v3-post-posts.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryPostCountStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.QueryPostCountStatsRequest,\n ambassadorWixBlogV3PostTypes.QueryPostCountStatsRequest,\n ambassadorWixBlogV3PostUniversalTypes.QueryPostCountStatsResponse,\n ambassadorWixBlogV3PostTypes.QueryPostCountStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Post.queryPostCountStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/stats/post/count',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getTotalPosts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.GetTotalPostsRequest,\n ambassadorWixBlogV3PostTypes.GetTotalPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetTotalPostsResponse,\n ambassadorWixBlogV3PostTypes.GetTotalPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getTotalPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/stats/posts/total',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPost(): __PublicMethodMetaInfo<\n 'GET',\n { postId: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostRequest,\n ambassadorWixBlogV3PostTypes.GetPostRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostResponse,\n ambassadorWixBlogV3PostTypes.GetPostResponse\n> {\n const payload = { postId: ':postId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPost(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/{postId}',\n pathParams: { postId: 'postId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPostBySlug(): __PublicMethodMetaInfo<\n 'GET',\n { slug: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostBySlugRequest,\n ambassadorWixBlogV3PostTypes.GetPostBySlugRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostBySlugResponse,\n ambassadorWixBlogV3PostTypes.GetPostBySlugResponse\n> {\n const payload = { slug: ':slug' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPostBySlug(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/slugs/{slug}',\n pathParams: { slug: 'slug' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPosts(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3PostUniversalTypes.ListPostsRequest,\n ambassadorWixBlogV3PostTypes.ListPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.ListPostsResponse,\n ambassadorWixBlogV3PostTypes.ListPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.listPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPosts(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3PostUniversalTypes.QueryPostsRequest,\n ambassadorWixBlogV3PostTypes.QueryPostsRequest,\n ambassadorWixBlogV3PostUniversalTypes.QueryPostsResponse,\n ambassadorWixBlogV3PostTypes.QueryPostsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.queryPosts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/posts/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPostMetrics(): __PublicMethodMetaInfo<\n 'GET',\n { postId: string },\n ambassadorWixBlogV3PostUniversalTypes.GetPostMetricsRequest,\n ambassadorWixBlogV3PostTypes.GetPostMetricsRequest,\n ambassadorWixBlogV3PostUniversalTypes.GetPostMetricsResponse,\n ambassadorWixBlogV3PostTypes.GetPostMetricsResponse\n> {\n const payload = { postId: ':postId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Post.getPostMetrics(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v3/posts/{postId}/metrics',\n pathParams: { postId: 'postId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SA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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":["payload","queryPostCountStats","getTotalPosts","getPost","getPostBySlug","listPosts","queryPosts","getPostMetrics"]}
1
+ {"version":3,"sources":["../../src/blog-v3-post-posts.http.ts","../../src/blog-v3-post-posts.meta.ts"],"sourcesContent":["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,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAA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,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,cAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAA4C,WAAW,OAAO;AAEpE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBAA4C,eAAe,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","queryPostCountStats","getTotalPosts","getPost","getPostBySlug","listPosts","queryPosts","getPostMetrics"]}
@@ -1,19 +1,18 @@
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.js';
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, 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, Post, 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.js';
2
+ import { QueryPostCountStatsOptions, QueryPostCountStatsResponse, GetTotalPostsOptions, GetTotalPostsResponse, GetPostOptions, Post, GetPostBySlugOptions, GetPostBySlugResponse, ListPostsOptions, ListPostsResponse, QueryPostsOptions, PostsQueryBuilder, GetPostMetricsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope } from './index.typings.js';
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.js';
4
4
 
5
5
  declare function queryPostCountStats$1(httpClient: HttpClient): QueryPostCountStatsSignature;
6
6
  interface QueryPostCountStatsSignature {
7
7
  /**
8
8
  * Retrieves the number of published posts per month within a specified time range.
9
9
  *
10
- *
11
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
12
- *
13
- * You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.
14
- *
15
- * >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
16
- * @param - Options specifying time frame, sort, and filter.
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.
17
16
  * @returns Get Blog Post Count Stats response
18
17
  */
19
18
  (options?: QueryPostCountStatsOptions): Promise<NonNullablePaths<QueryPostCountStatsResponse, `stats` | `stats.${number}.postCount`, 4>>;
@@ -22,7 +21,6 @@ declare function getTotalPosts$1(httpClient: HttpClient): GetTotalPostsSignature
22
21
  interface GetTotalPostsSignature {
23
22
  /**
24
23
  * Retrieves the total amount of published posts of the blog.
25
- * @param - Language Options.
26
24
  */
27
25
  (options?: GetTotalPostsOptions): Promise<NonNullablePaths<GetTotalPostsResponse, `total`, 2>>;
28
26
  }
@@ -31,9 +29,9 @@ interface GetPostSignature {
31
29
  /**
32
30
  * Retrieves a post by the specified ID.
33
31
  * @param - Post ID.
34
- * @param - Options specifying which fields to return.
32
+ * @returns Retrieved post info.
35
33
  */
36
- (postId: string, options?: GetPostOptions): Promise<NonNullablePaths<GetPostResponse, `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>>;
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>>;
37
35
  }
38
36
  declare function getPostBySlug$1(httpClient: HttpClient): GetPostBySlugSignature;
39
37
  interface GetPostBySlugSignature {
@@ -45,7 +43,6 @@ interface GetPostBySlugSignature {
45
43
  * the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title,
46
44
  * unless specified otherwise.
47
45
  * @param - Slug of the post to retrieve.
48
- * @param - Options specifying which fields to return.
49
46
  */
50
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>>;
51
48
  }
@@ -58,32 +55,28 @@ interface ListPostsSignature {
58
55
  * - `firstPublishedDate` is sorted in descending order, with pinned posts first.
59
56
  * - `paging.limit` is `50`.
60
57
  * - `paging.offset` is `0`.
61
- * @param - Sort, filter, and paging options.
62
58
  */
63
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>>;
64
60
  }
65
61
  declare function queryPosts$1(httpClient: HttpClient): QueryPostsSignature;
66
62
  interface QueryPostsSignature {
67
63
  /**
68
- * Creates a query to retrieve a list of posts.
69
- *
70
- *
71
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a `PostsQueryBuilder` object.
72
- *
73
- * The returned object contains the query definition which is typically used to run the query using the `find()` function.
64
+ * Retrieves a list of up to 100 posts, given the provided paging, filtering, and sorting.
74
65
  *
75
- * You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
76
- *
77
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that you can override:
78
- * + `limit(50)`
79
- * + `descending('firstPublishedDate')`
80
- *
81
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
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`.
82
70
  *
83
- * 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).
84
73
  *
85
- * The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the `items` property in `PostsQueryResult`.
86
- * @param - Options specifying which fields to return.
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).
87
80
  */
88
81
  (options?: QueryPostsOptions): PostsQueryBuilder;
89
82
  }
@@ -131,4 +124,4 @@ declare const onPostUnliked: BuildEventDefinition<typeof onPostUnliked$1>;
131
124
  */
132
125
  declare const onPostUpdated: BuildEventDefinition<typeof onPostUpdated$1>;
133
126
 
134
- export { GetPostBySlugOptions, GetPostBySlugResponse, GetPostMetricsResponse, GetPostOptions, GetPostResponse, GetTotalPostsOptions, GetTotalPostsResponse, ListPostsOptions, ListPostsResponse, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope, PostsQueryBuilder, QueryPostCountStatsOptions, QueryPostCountStatsResponse, QueryPostsOptions, getPost, getPostBySlug, getPostMetrics, getTotalPosts, listPosts, onPostCreated, onPostDeleted, onPostLiked, onPostUnliked, onPostUpdated, queryPostCountStats, queryPosts };
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 };
@@ -1407,8 +1407,8 @@ async function getPost2(postId, options) {
1407
1407
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1408
1408
  }
1409
1409
  ]),
1410
- ["post.richContent", "post.rich_content"]
1411
- );
1410
+ ["post.richContent"]
1411
+ )?.post;
1412
1412
  } catch (err) {
1413
1413
  const transformedError = (0, import_transform_error.transformError)(
1414
1414
  err,
@@ -1460,7 +1460,7 @@ async function getPostBySlug2(slug, options) {
1460
1460
  paths: [{ path: "post.media.wixMedia.videoV2" }]
1461
1461
  }
1462
1462
  ]),
1463
- ["post.richContent", "post.rich_content"]
1463
+ ["post.richContent"]
1464
1464
  );
1465
1465
  } catch (err) {
1466
1466
  const transformedError = (0, import_transform_error.transformError)(
@@ -1520,7 +1520,7 @@ async function listPosts2(options) {
1520
1520
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1521
1521
  }
1522
1522
  ]),
1523
- ["posts.richContent", "posts.rich_content"]
1523
+ ["posts.richContent"]
1524
1524
  );
1525
1525
  } catch (err) {
1526
1526
  const transformedError = (0, import_transform_error.transformError)(
@@ -1595,7 +1595,7 @@ function queryPosts2(options) {
1595
1595
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
1596
1596
  }
1597
1597
  ]),
1598
- ["posts.richContent", "posts.rich_content"]
1598
+ ["posts.richContent"]
1599
1599
  );
1600
1600
  return {
1601
1601
  items: transformedData?.posts,
@@ -1762,8 +1762,7 @@ var onPostCreated = (0, import_sdk_types.EventDefinition)(
1762
1762
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
1763
1763
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1764
1764
  }
1765
- ]),
1766
- ["entity.rich_content"]
1765
+ ])
1767
1766
  )
1768
1767
  )();
1769
1768
  var onPostDeleted = (0, import_sdk_types.EventDefinition)(
@@ -1838,8 +1837,7 @@ var onPostDeleted = (0, import_sdk_types.EventDefinition)(
1838
1837
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
1839
1838
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1840
1839
  }
1841
- ]),
1842
- ["entity.rich_content"]
1840
+ ])
1843
1841
  )
1844
1842
  )();
1845
1843
  var onPostLiked = (0, import_sdk_types.EventDefinition)(
@@ -1851,8 +1849,7 @@ var onPostLiked = (0, import_sdk_types.EventDefinition)(
1851
1849
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1852
1850
  paths: [{ path: "metadata.eventTime" }]
1853
1851
  }
1854
- ]),
1855
- ["entity.rich_content"]
1852
+ ])
1856
1853
  )
1857
1854
  )();
1858
1855
  var onPostUnliked = (0, import_sdk_types.EventDefinition)(
@@ -1864,8 +1861,7 @@ var onPostUnliked = (0, import_sdk_types.EventDefinition)(
1864
1861
  transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1865
1862
  paths: [{ path: "metadata.eventTime" }]
1866
1863
  }
1867
- ]),
1868
- ["entity.rich_content"]
1864
+ ])
1869
1865
  )
1870
1866
  )();
1871
1867
  var onPostUpdated = (0, import_sdk_types.EventDefinition)(
@@ -1940,8 +1936,7 @@ var onPostUpdated = (0, import_sdk_types.EventDefinition)(
1940
1936
  transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
1941
1937
  paths: [{ path: "entity.media.wixMedia.videoV2" }]
1942
1938
  }
1943
- ]),
1944
- ["entity.rich_content"]
1939
+ ])
1945
1940
  )
1946
1941
  )();
1947
1942