feat(medusa, admin-ui): add description field to product categories (#3768)
* feat(medusa): add description field to product categories * chore: set nullable to false * chore: added UI for description * chore: added codegen files
This commit is contained in:
@@ -103,6 +103,9 @@ export default async (req: Request, res: Response) => {
|
||||
* name:
|
||||
* type: string
|
||||
* description: The name to identify the Product Category by.
|
||||
* description:
|
||||
* type: string
|
||||
* description: An optional text field to describe the Product Category by.
|
||||
* handle:
|
||||
* type: string
|
||||
* description: An optional handle to be used in slugs, if none is provided we will kebab-case the title.
|
||||
|
||||
@@ -141,6 +141,7 @@ export const allowedAdminProductCategoryRelations = [
|
||||
export const defaultProductCategoryFields = [
|
||||
"id",
|
||||
"name",
|
||||
"description",
|
||||
"handle",
|
||||
"is_active",
|
||||
"is_internal",
|
||||
|
||||
@@ -103,6 +103,9 @@ export default async (req: Request, res: Response) => {
|
||||
* name:
|
||||
* type: string
|
||||
* description: The name to identify the Product Category by.
|
||||
* description:
|
||||
* type: string
|
||||
* description: An optional text field to describe the Product Category by.
|
||||
* handle:
|
||||
* type: string
|
||||
* description: A handle to be used in slugs.
|
||||
|
||||
@@ -54,6 +54,7 @@ export const defaultStoreCategoryScope = {
|
||||
export const defaultStoreProductCategoryFields = [
|
||||
"id",
|
||||
"name",
|
||||
"description",
|
||||
"handle",
|
||||
"parent_category_id",
|
||||
"created_at",
|
||||
@@ -64,6 +65,7 @@ export const defaultStoreProductCategoryFields = [
|
||||
export const allowedStoreProductCategoryFields = [
|
||||
"id",
|
||||
"name",
|
||||
"description",
|
||||
"handle",
|
||||
"parent_category_id",
|
||||
"created_at",
|
||||
|
||||
Reference in New Issue
Block a user