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:
@@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user