feat: Revamp of product categories (#7695)

* feat: Normalize the categories interface to match standards

* feat: Revamp the product category implementation

* fix: Adjustments to code and tests around product categories
This commit is contained in:
Stevche Radevski
2024-06-13 09:10:12 +02:00
committed by GitHub
parent fbd8eef18b
commit d862d03de0
35 changed files with 1135 additions and 874 deletions

View File

@@ -241,11 +241,15 @@ export class MikroOrmBaseTreeRepository<
throw new Error("Method not implemented.")
}
create(data: unknown, context?: Context): Promise<T> {
create(data: unknown[], context?: Context): Promise<T[]> {
throw new Error("Method not implemented.")
}
delete(id: string, context?: Context): Promise<void> {
update(data: unknown[], context?: Context): Promise<T[]> {
throw new Error("Method not implemented.")
}
delete(ids: string[], context?: Context): Promise<void> {
throw new Error("Method not implemented.")
}
}

View File

@@ -6,8 +6,16 @@ const eventBaseNames: [
"productVariant",
"productOption",
"productType",
"productTag"
] = ["product", "productVariant", "productOption", "productType", "productTag"]
"productTag",
"productCategory"
] = [
"product",
"productVariant",
"productOption",
"productType",
"productTag",
"productCategory",
]
export const ProductEvents = buildEventNamesFromEntityName(
eventBaseNames,