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:
Riqwan Thamir
2023-04-08 18:29:12 +02:00
committed by GitHub
parent 74c54a134d
commit d533caa4c2
14 changed files with 107 additions and 2 deletions
@@ -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",