@wix/auto_sdk_blog_categories 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +21 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +21 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +286 -1
- package/build/cjs/meta.js +48 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +21 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +21 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +286 -1
- package/build/es/meta.mjs +45 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +21 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +21 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +286 -1
- package/build/internal/cjs/meta.js +48 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +21 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +21 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +286 -1
- package/build/internal/es/meta.mjs +45 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/es/meta.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/blog-v3-category-categories.http.ts","../../src/blog-v3-category-categories.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/bulk/category',\n destPath: '/v3/bulk/category',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/bulk/categories',\n destPath: '/v3/bulk/categories',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v3/categories',\n destPath: '/v3/categories',\n },\n {\n srcPath: '/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/category-service-api-proxy',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_blog_categories';\n\n/** Creates a category. */\nexport function createCategory(payload: object): RequestOptionsFactory<any> {\n function __createCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.CreateCategory',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCategory;\n}\n\n/** Updates a category. */\nexport function updateCategory(payload: object): RequestOptionsFactory<any> {\n function __updateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.UpdateCategory',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n {\n protoPath: '/v3/categories/{category.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCategory;\n}\n\n/** Gets a category with the specified ID. */\nexport function getCategory(payload: object): RequestOptionsFactory<any> {\n function __getCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/{categoryId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCategory;\n}\n\n/**\n * Gets a category with the specified slug.\n *\n * The slug is at the end of the URL of a specific category.\n * For example, if a category's URL is `https://example.com/blog/categories/famous-cats`, the slug is `famous-cats`.\n * The slug is a case-sensitive string that is derived from the category's label, unless specified otherwise.\n */\nexport function getCategoryBySlug(payload: object): RequestOptionsFactory<any> {\n function __getCategoryBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/slugs/{slug}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCategoryBySlug;\n}\n\n/**\n * Retrieves a list of up to 100 categories per request.\n *\n * If you pass a language filter to the method, it returns a list of up to 100 categories in the requested language.\n *\n * The categoies are displayed in order of their `displayPosition`, starting with `0`. The `displayPosition` is the position in which the categories\n * are displayed in the Category Menu page. By default, categories get added to the bottom of the Category Menu page with a `displayPosition` of `-1`.\n *\n * List Categories runs with these defaults, which you can override:\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * List Categories is sorted by `displayPosition` in descending order. This cannot be overridden.\n */\nexport function listCategories(payload: object): RequestOptionsFactory<any> {\n function __listCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'categories.updatedDate' },\n { path: 'categories.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'categories.coverImage.focalPoint.x' },\n { path: 'categories.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCategories;\n}\n\n/**\n * Creates a query to retrieve a list of categories.\n *\n *\n * The Query Categories method builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending) object.\n *\n * The response contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/find) method.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` methods to the query. `CategoriesQueryBuilder` methods enable you to sort, filter, and control the results that Query Categories returns. Any methods chained to the Query Categories method are applied in the order that they are called.\n *\n * Query Categories runs with these `CategoriesQueryBuilder` defaults, which you can override.\n * - [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/limit)\n * - [`ascending(displayPosition)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending)\n *\n * The following `CategoriesQueryBuilder` methods are supported for Query Categories. For a full description of the `Categories` object, see the response for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-result/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).\n */\nexport function queryCategories(payload: object): RequestOptionsFactory<any> {\n function __queryCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'categories.updatedDate' },\n { path: 'categories.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'categories.coverImage.focalPoint.x' },\n { path: 'categories.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryCategories;\n}\n\n/** Deletes a category. */\nexport function deleteCategory(payload: object): RequestOptionsFactory<any> {\n function __deleteCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.DeleteCategory',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/{categoryId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCategory;\n}\n","import * as ambassadorWixBlogV3Category from './blog-v3-category-categories.http.js';\nimport * as ambassadorWixBlogV3CategoryTypes from './blog-v3-category-categories.types.js';\nimport * as ambassadorWixBlogV3CategoryUniversalTypes from './blog-v3-category-categories.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 createCategory(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3CategoryUniversalTypes.CreateCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.CreateCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.CreateCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.CreateCategoryResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.createCategory(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/categories',\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 updateCategory(): __PublicMethodMetaInfo<\n 'PATCH',\n { categoryId: string },\n ambassadorWixBlogV3CategoryUniversalTypes.UpdateCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.UpdateCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.UpdateCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.UpdateCategoryResponse\n> {\n const payload = { category: { id: ':categoryId' } } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.updateCategory(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v3/categories/{category.id}',\n pathParams: { categoryId: 'categoryId' },\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 getCategory(): __PublicMethodMetaInfo<\n 'GET',\n { categoryId: string },\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.GetCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.GetCategoryResponse\n> {\n const payload = { categoryId: ':categoryId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.getCategory(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/categories/{categoryId}',\n pathParams: { categoryId: 'categoryId' },\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 getCategoryBySlug(): __PublicMethodMetaInfo<\n 'GET',\n { slug: string },\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryBySlugRequest,\n ambassadorWixBlogV3CategoryTypes.GetCategoryBySlugRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryBySlugResponse,\n ambassadorWixBlogV3CategoryTypes.GetCategoryBySlugResponse\n> {\n const payload = { slug: ':slug' } as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Category.getCategoryBySlug(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/categories/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 listCategories(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3CategoryUniversalTypes.ListCategoriesRequest,\n ambassadorWixBlogV3CategoryTypes.ListCategoriesRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.ListCategoriesResponse,\n ambassadorWixBlogV3CategoryTypes.ListCategoriesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.listCategories(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/categories',\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 queryCategories(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3CategoryUniversalTypes.QueryCategoriesRequest,\n ambassadorWixBlogV3CategoryTypes.QueryCategoriesRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.QueryCategoriesResponse,\n ambassadorWixBlogV3CategoryTypes.QueryCategoriesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Category.queryCategories(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/categories/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 deleteCategory(): __PublicMethodMetaInfo<\n 'DELETE',\n { categoryId: string },\n ambassadorWixBlogV3CategoryUniversalTypes.DeleteCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.DeleteCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.DeleteCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.DeleteCategoryResponse\n> {\n const payload = { categoryId: ':categoryId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.deleteCategory(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v3/categories/{categoryId}',\n pathParams: { categoryId: 'categoryId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any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A,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwB,gBAAgB,OAAO;AAErD,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,YAAY,cAAc;AAE5C,QAAM,oBAAgD,eAAe,OAAO;AAE5E,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,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","createCategory","updateCategory","getCategory","getCategoryBySlug","listCategories","queryCategories","deleteCategory"]}
|
1
|
+
{"version":3,"sources":["../../src/blog-v3-category-categories.http.ts","../../src/blog-v3-category-categories.types.ts","../../src/blog-v3-category-categories.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/bulk/category',\n destPath: '/v3/bulk/category',\n },\n {\n srcPath: '/_api/communities-blog-node-api/v3/bulk/categories',\n destPath: '/v3/bulk/categories',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'social-blog._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n _: [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/blog/v3/categories',\n destPath: '/v3/categories',\n },\n {\n srcPath: '/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/communities-blog-node-api/v3/categories',\n destPath: '/v3/categories',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/category-service-api-proxy',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_blog_categories';\n\n/** Creates a category. */\nexport function createCategory(payload: object): RequestOptionsFactory<any> {\n function __createCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.CreateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCategory;\n}\n\n/** Updates a category. */\nexport function updateCategory(payload: object): RequestOptionsFactory<any> {\n function __updateCategory({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.UpdateCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n {\n protoPath: '/v3/categories/{category.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCategory;\n}\n\n/** Gets a category with the specified ID. */\nexport function getCategory(payload: object): RequestOptionsFactory<any> {\n function __getCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/{categoryId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCategory;\n}\n\n/**\n * Gets a category with the specified slug.\n *\n * The slug is at the end of the URL of a specific category.\n * For example, if a category's URL is `https://example.com/blog/categories/famous-cats`, the slug is `famous-cats`.\n * The slug is a case-sensitive string that is derived from the category's label, unless specified otherwise.\n */\nexport function getCategoryBySlug(payload: object): RequestOptionsFactory<any> {\n function __getCategoryBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/slugs/{slug}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'category.updatedDate' },\n { path: 'category.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'category.coverImage.focalPoint.x' },\n { path: 'category.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCategoryBySlug;\n}\n\n/**\n * Retrieves a list of up to 100 categories per request.\n *\n * If you pass a language filter to the method, it returns a list of up to 100 categories in the requested language.\n *\n * The categoies are displayed in order of their `displayPosition`, starting with `0`. The `displayPosition` is the position in which the categories\n * are displayed in the Category Menu page. By default, categories get added to the bottom of the Category Menu page with a `displayPosition` of `-1`.\n *\n * List Categories runs with these defaults, which you can override:\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * List Categories is sorted by `displayPosition` in descending order. This cannot be overridden.\n */\nexport function listCategories(payload: object): RequestOptionsFactory<any> {\n function __listCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'categories.updatedDate' },\n { path: 'categories.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'categories.coverImage.focalPoint.x' },\n { path: 'categories.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCategories;\n}\n\n/**\n * Creates a query to retrieve a list of categories.\n *\n *\n * The Query Categories method builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending) object.\n *\n * The response contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/find) method.\n *\n * You can refine the query by chaining `CategoriesQueryBuilder` methods to the query. `CategoriesQueryBuilder` methods enable you to sort, filter, and control the results that Query Categories returns. Any methods chained to the Query Categories method are applied in the order that they are called.\n *\n * Query Categories runs with these `CategoriesQueryBuilder` defaults, which you can override.\n * - [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/limit)\n * - [`ascending(displayPosition)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending)\n *\n * The following `CategoriesQueryBuilder` methods are supported for Query Categories. For a full description of the `Categories` object, see the response for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-result/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).\n */\nexport function queryCategories(payload: object): RequestOptionsFactory<any> {\n function __queryCategories({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'categories.updatedDate' },\n { path: 'categories.coverImage.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'categories.coverImage.focalPoint.x' },\n { path: 'categories.coverImage.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryCategories;\n}\n\n/** Deletes a category. */\nexport function deleteCategory(payload: object): RequestOptionsFactory<any> {\n function __deleteCategory({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.blog.v3.category',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.npm.communities.platformized.blog.v3.CategoryService.DeleteCategory',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(\n { protoPath: '/v3/categories/{categoryId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCategory;\n}\n","export interface Category {\n /**\n * Category ID.\n * @immutable\n * @maxLength 38\n */\n id?: string;\n /**\n * Category label. Displayed in the Category Menu.\n * @maxLength 35\n */\n label?: string;\n /**\n * Number of posts in the category.\n * @readonly\n */\n postCount?: number;\n /**\n * The `url` of the page that lists every post with the specified category.\n * @readonly\n */\n url?: PageUrl;\n /**\n * Category description.\n * @maxLength 500\n */\n description?: string | null;\n /**\n * Category title.\n * @maxLength 200\n * @deprecated Category title.\n * @targetRemovalDate 2025-07-16\n */\n title?: string;\n /**\n * Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu).\n * Categories are displayed in ascending order. Categories with a position of `-1` appear at the end of the sequence.\n *\n * Default: `-1`\n */\n displayPosition?: number | null;\n /**\n * ID of the category's translations. All translations of a single category share the same `translationId`.\n * @format GUID\n */\n translationId?: string | null;\n /**\n * Category language.\n *\n * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * @immutable\n */\n language?: string | null;\n /**\n * Part of a category's URL that refers to a specific category. For example, the slug of `https:/example.com/blog/category/famous-cats` is `famous-cats`.\n * @maxLength 100\n */\n slug?: string;\n /** SEO data. */\n seoData?: SeoSchema;\n /** Category cover image. */\n coverImage?: Image;\n /**\n * Date and time the Category was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n}\n\nexport interface PageUrl {\n /** The base URL. For premium sites, this is the domain. For free sites, this is the site URL. For example, `mysite.wixsite.com/mysite`. */\n base?: string;\n /** The relative path for the page within the site. For example, `/product-page/a-product`. */\n path?: string;\n}\n\n/**\n * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.\n * The search engines use this information for ranking purposes, or to display snippets in the search results.\n * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.\n */\nexport interface SeoSchema {\n /** SEO tag information. */\n tags?: Tag[];\n /** SEO general settings. */\n settings?: Settings;\n}\n\nexport interface Keyword {\n /** Keyword value. */\n term?: string;\n /** Whether the keyword is the main focus keyword. */\n isMain?: boolean;\n /**\n * The source that added the keyword terms to the SEO settings.\n * @maxLength 1000\n */\n origin?: string | null;\n}\n\nexport interface Tag {\n /**\n * SEO tag type.\n *\n *\n * Supported values: `title`, `meta`, `script`, `link`.\n */\n type?: string;\n /**\n * A `{\"key\": \"value\"}` pair object where each SEO tag property (`\"name\"`, `\"content\"`, `\"rel\"`, `\"href\"`) contains a value.\n * For example: `{\"name\": \"description\", \"content\": \"the description itself\"}`.\n */\n props?: Record<string, any> | null;\n /** SEO tag metadata. For example, `{\"height\": 300, \"width\": 240}`. */\n meta?: Record<string, any> | null;\n /** SEO tag inner content. For example, `<title> inner content </title>`. */\n children?: string;\n /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */\n custom?: boolean;\n /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */\n disabled?: boolean;\n}\n\nexport interface Settings {\n /**\n * Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n *\n *\n * Default: `false` (automatical redirect is enabled).\n */\n preventAutoRedirect?: boolean;\n /**\n * User-selected keyword terms for a specific page.\n * @maxSize 5\n */\n keywords?: Keyword[];\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface CategoryTranslation {\n /**\n * Category ID.\n * @format GUID\n */\n id?: string;\n /**\n * Label displayed in the categories menu on the site.\n * @maxLength 100\n */\n label?: string | null;\n /**\n * Language of the category.\n * @format LANGUAGE_TAG\n */\n language?: string | null;\n /** URL of this category page. */\n url?: PageUrl;\n}\n\nexport interface InitialCategoriesCopied {\n /** Number of categories copied. */\n count?: number;\n}\n\nexport interface CreateCategoryRequest {\n /** Category info. */\n category: Category;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n}\n\nexport enum Field {\n UNKNOWN = 'UNKNOWN',\n /** Includes category URL. */\n URL = 'URL',\n /** Includes SEO data. */\n SEO = 'SEO',\n}\n\n/** @enumType */\nexport type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'SEO';\n\nexport interface CreateCategoryResponse {\n /** Category info. */\n category?: Category;\n}\n\nexport interface BulkCreateCategoriesRequest {\n /**\n * Categories to create.\n * @minSize 1\n * @maxSize 50\n */\n categories?: Category[];\n /** Whether to return the full created category entities in the response. */\n returnFullEntity?: boolean;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n}\n\nexport interface BulkCreateCategoriesResponse {\n /** Categories created by bulk action. */\n results?: BulkCategoryResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCategoryResult {\n /** Bulk actions metadata for category. */\n itemMetadata?: ItemMetadata;\n /** Optional created category. */\n item?: Category;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateCategoriesRequest {\n /**\n * Categories to update.\n * @minSize 1\n * @maxSize 100\n */\n categories?: MaskedCategory[];\n /** Whether to return the full created category entities in the response. */\n returnFullEntity?: boolean;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n}\n\nexport interface MaskedCategory {\n /** Category */\n category?: Category;\n /** Field mask of fields to update. */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdateCategoriesResponse {\n /** Categories updated by bulk action. */\n results?: BulkCategoryResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface UpdateCategoryRequest {\n /** Category info. */\n category: Category;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n}\n\nexport interface UpdateCategoryResponse {\n /** Category info. */\n category?: Category;\n}\n\nexport interface GetCategoriesCountByLanguageRequest {}\n\nexport interface GetCategoriesCountByLanguageResponse {\n /** The language and it's count. */\n categoriesLanguageCount?: CategoryLanguageCount[];\n}\n\nexport interface CategoryLanguageCount {\n /**\n * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * @format LANGUAGE_TAG\n */\n languageCode?: string | null;\n /** The count of Categories for the language. */\n categoryCount?: number | null;\n}\n\nexport interface GetCategoryRequest {\n /**\n * Category ID.\n * @minLength 1\n * @maxLength 38\n */\n categoryId: string;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n}\n\nexport interface GetCategoryResponse {\n /** Category info. */\n category?: Category;\n}\n\nexport interface GetCategoryBySlugRequest {\n /**\n * Slug of the category to retrieve.\n * @minLength 1\n * @maxLength 100\n */\n slug: string;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n /**\n * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * Language of the category to retrieve.\n * @format LANGUAGE_TAG\n */\n language?: string | null;\n}\n\nexport interface GetCategoryBySlugResponse {\n /** Category info. */\n category?: Category;\n}\n\nexport interface ListCategoriesRequest {\n /** Pagination options. */\n paging?: BlogPaging;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n /**\n * Language filter.\n *\n * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * Pass a language to only receive categories that are in that language.\n * If omitted, categories in all languages are returned.\n * @format LANGUAGE_TAG\n */\n language?: string | null;\n}\n\nexport interface BlogPaging {\n /**\n * Number of items to skip in the current sort order.\n *\n *\n * Default: `0`\n */\n offset?: number;\n /**\n * Number of items to return.\n *\n *\n * Default:`50`\n * @min 1\n * @max 100\n */\n limit?: number;\n /**\n * Pointer to the next or previous page in the list of results.\n * @maxLength 2000\n */\n cursor?: string | null;\n}\n\nexport interface ListCategoriesResponse {\n /** List of categories. */\n categories?: Category[];\n /** Details on the paged set of results returned. */\n metaData?: MetaData;\n}\n\nexport interface MetaData {\n /** Number of items returned in this response. */\n count?: number;\n /** Requested offset. */\n offset?: number;\n /** Total number of items that match the query. */\n total?: number;\n /**\n * Pointer to the next or previous page in the list of results.\n * @maxLength 2000\n */\n cursor?: string | null;\n}\n\nexport interface QueryCategoriesRequest {\n /** Query options. */\n query?: PlatformQuery;\n /**\n * List of additional category fields to include in the response. By default\n * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.\n *\n * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to\n * retrieve the url field in the response in addition to the category’s base fields.\n * @maxSize 10\n */\n fieldsets?: FieldWithLiterals[];\n}\n\nexport interface PlatformQuery extends PlatformQueryPagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 3\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface PlatformQueryPagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 2000\n */\n cursor?: string | null;\n}\n\nexport interface QueryCategoriesResponse {\n /** List of categories. */\n categories?: Category[];\n /** Details on the paged set of results returned. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 2000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 2000\n */\n prev?: string | null;\n}\n\nexport interface BulkDeleteCategoryRequest {\n /**\n * Category IDs.\n * @minSize 1\n * @maxSize 100\n * @maxLength 38\n */\n categoryIds?: string[];\n /** Should delete bypassing the trash-bin. */\n permanent?: boolean;\n}\n\nexport interface BulkDeleteCategoryResponse {}\n\nexport interface DeleteCategoryRequest {\n /**\n * Category ID.\n * @minLength 1\n * @maxLength 38\n */\n categoryId: string;\n}\n\nexport interface DeleteCategoryResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixBlogV3Category from './blog-v3-category-categories.http.js';\nimport * as ambassadorWixBlogV3CategoryTypes from './blog-v3-category-categories.types.js';\nimport * as ambassadorWixBlogV3CategoryUniversalTypes from './blog-v3-category-categories.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 createCategory(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3CategoryUniversalTypes.CreateCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.CreateCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.CreateCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.CreateCategoryResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.createCategory(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/categories',\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 updateCategory(): __PublicMethodMetaInfo<\n 'PATCH',\n { categoryId: string },\n ambassadorWixBlogV3CategoryUniversalTypes.UpdateCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.UpdateCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.UpdateCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.UpdateCategoryResponse\n> {\n const payload = { category: { id: ':categoryId' } } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.updateCategory(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v3/categories/{category.id}',\n pathParams: { categoryId: 'categoryId' },\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 getCategory(): __PublicMethodMetaInfo<\n 'GET',\n { categoryId: string },\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.GetCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.GetCategoryResponse\n> {\n const payload = { categoryId: ':categoryId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.getCategory(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/categories/{categoryId}',\n pathParams: { categoryId: 'categoryId' },\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 getCategoryBySlug(): __PublicMethodMetaInfo<\n 'GET',\n { slug: string },\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryBySlugRequest,\n ambassadorWixBlogV3CategoryTypes.GetCategoryBySlugRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.GetCategoryBySlugResponse,\n ambassadorWixBlogV3CategoryTypes.GetCategoryBySlugResponse\n> {\n const payload = { slug: ':slug' } as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Category.getCategoryBySlug(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/categories/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 listCategories(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixBlogV3CategoryUniversalTypes.ListCategoriesRequest,\n ambassadorWixBlogV3CategoryTypes.ListCategoriesRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.ListCategoriesResponse,\n ambassadorWixBlogV3CategoryTypes.ListCategoriesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.listCategories(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/categories',\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 queryCategories(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixBlogV3CategoryUniversalTypes.QueryCategoriesRequest,\n ambassadorWixBlogV3CategoryTypes.QueryCategoriesRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.QueryCategoriesResponse,\n ambassadorWixBlogV3CategoryTypes.QueryCategoriesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixBlogV3Category.queryCategories(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/categories/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 deleteCategory(): __PublicMethodMetaInfo<\n 'DELETE',\n { categoryId: string },\n ambassadorWixBlogV3CategoryUniversalTypes.DeleteCategoryRequest,\n ambassadorWixBlogV3CategoryTypes.DeleteCategoryRequest,\n ambassadorWixBlogV3CategoryUniversalTypes.DeleteCategoryResponse,\n ambassadorWixBlogV3CategoryTypes.DeleteCategoryResponse\n> {\n const payload = { categoryId: ':categoryId' } as any;\n\n const getRequestOptions = ambassadorWixBlogV3Category.deleteCategory(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v3/categories/{categoryId}',\n pathParams: { categoryId: 'categoryId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Category as CategoryOriginal,\n PageUrl as PageUrlOriginal,\n SeoSchema as SeoSchemaOriginal,\n Keyword as KeywordOriginal,\n Tag as TagOriginal,\n Settings as SettingsOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n CategoryTranslation as CategoryTranslationOriginal,\n InitialCategoriesCopied as InitialCategoriesCopiedOriginal,\n CreateCategoryRequest as CreateCategoryRequestOriginal,\n Field as FieldOriginal,\n FieldWithLiterals as FieldWithLiteralsOriginal,\n CreateCategoryResponse as CreateCategoryResponseOriginal,\n BulkCreateCategoriesRequest as BulkCreateCategoriesRequestOriginal,\n BulkCreateCategoriesResponse as BulkCreateCategoriesResponseOriginal,\n BulkCategoryResult as BulkCategoryResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n BulkUpdateCategoriesRequest as BulkUpdateCategoriesRequestOriginal,\n MaskedCategory as MaskedCategoryOriginal,\n BulkUpdateCategoriesResponse as BulkUpdateCategoriesResponseOriginal,\n UpdateCategoryRequest as UpdateCategoryRequestOriginal,\n UpdateCategoryResponse as UpdateCategoryResponseOriginal,\n GetCategoriesCountByLanguageRequest as GetCategoriesCountByLanguageRequestOriginal,\n GetCategoriesCountByLanguageResponse as GetCategoriesCountByLanguageResponseOriginal,\n CategoryLanguageCount as CategoryLanguageCountOriginal,\n GetCategoryRequest as GetCategoryRequestOriginal,\n GetCategoryResponse as GetCategoryResponseOriginal,\n GetCategoryBySlugRequest as GetCategoryBySlugRequestOriginal,\n GetCategoryBySlugResponse as GetCategoryBySlugResponseOriginal,\n ListCategoriesRequest as ListCategoriesRequestOriginal,\n BlogPaging as BlogPagingOriginal,\n ListCategoriesResponse as ListCategoriesResponseOriginal,\n MetaData as MetaDataOriginal,\n QueryCategoriesRequest as QueryCategoriesRequestOriginal,\n PlatformQuery as PlatformQueryOriginal,\n PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryCategoriesResponse as QueryCategoriesResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n BulkDeleteCategoryRequest as BulkDeleteCategoryRequestOriginal,\n BulkDeleteCategoryResponse as BulkDeleteCategoryResponseOriginal,\n DeleteCategoryRequest as DeleteCategoryRequestOriginal,\n DeleteCategoryResponse as DeleteCategoryResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './blog-v3-category-categories.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;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,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IAC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BAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,kBAOd;AACA,QAAM,UAAU,EAAE,YAAY,cAAc;AAE5C,QAAM,oBAAgD,eAAe,OAAO;AAE5E,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,YAAY,aAAa;AAAA,IACvC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Field","SortOrder","WebhookIdentityType","createCategory","updateCategory","getCategory","getCategoryBySlug","listCategories","queryCategories","deleteCategory"]}
|
@@ -195,6 +195,9 @@ function createCategory(payload) {
|
|
195
195
|
method: "POST",
|
196
196
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.CreateCategory",
|
197
197
|
packageName: PACKAGE_NAME,
|
198
|
+
migrationOptions: {
|
199
|
+
optInTransformResponse: true
|
200
|
+
},
|
198
201
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
199
202
|
{ protoPath: "/v3/categories", data: serializedData, host }
|
200
203
|
),
|
@@ -247,6 +250,9 @@ function updateCategory(payload) {
|
|
247
250
|
method: "PATCH",
|
248
251
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.UpdateCategory",
|
249
252
|
packageName: PACKAGE_NAME,
|
253
|
+
migrationOptions: {
|
254
|
+
optInTransformResponse: true
|
255
|
+
},
|
250
256
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
251
257
|
{
|
252
258
|
protoPath: "/v3/categories/{category.id}",
|
@@ -283,6 +289,9 @@ function getCategory(payload) {
|
|
283
289
|
method: "GET",
|
284
290
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory",
|
285
291
|
packageName: PACKAGE_NAME,
|
292
|
+
migrationOptions: {
|
293
|
+
optInTransformResponse: true
|
294
|
+
},
|
286
295
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
287
296
|
{ protoPath: "/v3/categories/{categoryId}", data: payload, host }
|
288
297
|
),
|
@@ -315,6 +324,9 @@ function getCategoryBySlug(payload) {
|
|
315
324
|
method: "GET",
|
316
325
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug",
|
317
326
|
packageName: PACKAGE_NAME,
|
327
|
+
migrationOptions: {
|
328
|
+
optInTransformResponse: true
|
329
|
+
},
|
318
330
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
319
331
|
{ protoPath: "/v3/categories/slugs/{slug}", data: payload, host }
|
320
332
|
),
|
@@ -347,6 +359,9 @@ function listCategories(payload) {
|
|
347
359
|
method: "GET",
|
348
360
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories",
|
349
361
|
packageName: PACKAGE_NAME,
|
362
|
+
migrationOptions: {
|
363
|
+
optInTransformResponse: true
|
364
|
+
},
|
350
365
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
351
366
|
{ protoPath: "/v3/categories", data: payload, host }
|
352
367
|
),
|
@@ -379,6 +394,9 @@ function queryCategories(payload) {
|
|
379
394
|
method: "POST",
|
380
395
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories",
|
381
396
|
packageName: PACKAGE_NAME,
|
397
|
+
migrationOptions: {
|
398
|
+
optInTransformResponse: true
|
399
|
+
},
|
382
400
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
383
401
|
{ protoPath: "/v3/categories/query", data: payload, host }
|
384
402
|
),
|
@@ -411,6 +429,9 @@ function deleteCategory(payload) {
|
|
411
429
|
method: "DELETE",
|
412
430
|
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.CategoryService.DeleteCategory",
|
413
431
|
packageName: PACKAGE_NAME,
|
432
|
+
migrationOptions: {
|
433
|
+
optInTransformResponse: true
|
434
|
+
},
|
414
435
|
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(
|
415
436
|
{ protoPath: "/v3/categories/{categoryId}", data: payload, host }
|
416
437
|
),
|