@wix/blog_categories
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -6,34 +6,3 @@ import { HttpClient } from '@wix/sdk-types'; | ||
}; | ||
export declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<import("./blog-v3-category-categories.universal").Category & { | ||
_id: string; | ||
label: string; | ||
postCount: number; | ||
url: string; | ||
title: string; | ||
coverMedia?: { | ||
image: string; | ||
video: string; | ||
enabled: boolean; | ||
displayed: boolean; | ||
custom: boolean; | ||
} | undefined; | ||
oldRank: number; | ||
slug: string; | ||
seoData?: { | ||
tags: { | ||
type: string; | ||
children: string; | ||
custom: boolean; | ||
disabled: boolean; | ||
}[]; | ||
settings?: { | ||
preventAutoRedirect: boolean; | ||
keywords: { | ||
term: string; | ||
isMain: boolean; | ||
}[]; | ||
} | undefined; | ||
} | undefined; | ||
coverImage: string; | ||
}>; | ||
export declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<import("./blog-v3-category-categories.universal").GetCategoryResponse & import("./blog-v3-category-categories.universal").GetCategoryResponseNonNullableFields>; | ||
export declare function getCategoryBySlug(httpClient: HttpClient): (slug: string, options?: GetCategoryBySlugOptions) => Promise<import("./blog-v3-category-categories.universal").GetCategoryBySlugResponse & import("./blog-v3-category-categories.universal").GetCategoryBySlugResponseNonNullableFields>; | ||
@@ -40,0 +9,0 @@ export declare function listCategories(httpClient: HttpClient): (options?: ListCategoriesOptions) => Promise<import("./blog-v3-category-categories.universal").ListCategoriesResponse & import("./blog-v3-category-categories.universal").ListCategoriesResponseNonNullableFields>; |
@@ -760,5 +760,4 @@ import { EventDefinition } from '@wix/sdk-types'; | ||
* @applicableIdentity VISITOR | ||
* @returns Category info. | ||
*/ | ||
export declare function getCategory(categoryId: string, options?: GetCategoryOptions): Promise<Category & NonNullable<GetCategoryResponseNonNullableFields>['category']>; | ||
export declare function getCategory(categoryId: string, options?: GetCategoryOptions): Promise<GetCategoryResponse & GetCategoryResponseNonNullableFields>; | ||
export interface GetCategoryOptions { | ||
@@ -765,0 +764,0 @@ /** @internal */ |
@@ -100,3 +100,2 @@ "use strict"; | ||
* @applicableIdentity VISITOR | ||
* @returns Category info. | ||
*/ | ||
@@ -135,3 +134,3 @@ async function getCategory(categoryId, options) { | ||
}, | ||
]))?.category; | ||
])); | ||
} | ||
@@ -138,0 +137,0 @@ catch (err) { |
@@ -6,34 +6,3 @@ import { HttpClient } from '@wix/sdk-types'; | ||
}; | ||
export declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<import("./blog-v3-category-categories.universal").Category & { | ||
_id: string; | ||
label: string; | ||
postCount: number; | ||
url: string; | ||
title: string; | ||
coverMedia?: { | ||
image: string; | ||
video: string; | ||
enabled: boolean; | ||
displayed: boolean; | ||
custom: boolean; | ||
} | undefined; | ||
oldRank: number; | ||
slug: string; | ||
seoData?: { | ||
tags: { | ||
type: string; | ||
children: string; | ||
custom: boolean; | ||
disabled: boolean; | ||
}[]; | ||
settings?: { | ||
preventAutoRedirect: boolean; | ||
keywords: { | ||
term: string; | ||
isMain: boolean; | ||
}[]; | ||
} | undefined; | ||
} | undefined; | ||
coverImage: string; | ||
}>; | ||
export declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<import("./blog-v3-category-categories.universal").GetCategoryResponse & import("./blog-v3-category-categories.universal").GetCategoryResponseNonNullableFields>; | ||
export declare function getCategoryBySlug(httpClient: HttpClient): (slug: string, options?: GetCategoryBySlugOptions) => Promise<import("./blog-v3-category-categories.universal").GetCategoryBySlugResponse & import("./blog-v3-category-categories.universal").GetCategoryBySlugResponseNonNullableFields>; | ||
@@ -40,0 +9,0 @@ export declare function listCategories(httpClient: HttpClient): (options?: ListCategoriesOptions) => Promise<import("./blog-v3-category-categories.universal").ListCategoriesResponse & import("./blog-v3-category-categories.universal").ListCategoriesResponseNonNullableFields>; |
@@ -760,5 +760,4 @@ import { EventDefinition } from '@wix/sdk-types'; | ||
* @applicableIdentity VISITOR | ||
* @returns Category info. | ||
*/ | ||
export declare function getCategory(categoryId: string, options?: GetCategoryOptions): Promise<Category & NonNullable<GetCategoryResponseNonNullableFields>['category']>; | ||
export declare function getCategory(categoryId: string, options?: GetCategoryOptions): Promise<GetCategoryResponse & GetCategoryResponseNonNullableFields>; | ||
export interface GetCategoryOptions { | ||
@@ -765,0 +764,0 @@ /** @internal */ |
@@ -74,3 +74,2 @@ import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo'; | ||
* @applicableIdentity VISITOR | ||
* @returns Category info. | ||
*/ | ||
@@ -109,3 +108,3 @@ export async function getCategory(categoryId, options) { | ||
}, | ||
]))?.category; | ||
])); | ||
} | ||
@@ -112,0 +111,0 @@ catch (err) { |
{ | ||
"name": "@wix/blog_categories", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"publishConfig": { | ||
@@ -42,3 +42,3 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"falconPackageHash": "79302de80bf27034a02ba7ce40a273c16e2c8a8e81ee0bb03cfdd084" | ||
"falconPackageHash": "d0895aa1edfb148f7bd91721ef50ede1cc3ddf6ee0c43016384408c0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
266877
5847