@medusajs/product 2.0.5-snapshot-20241112130534 → 2.0.5-snapshot-20241120130614
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/joiner-config.d.ts.map +1 -1
- package/dist/joiner-config.js +1 -0
- package/dist/joiner-config.js.map +1 -1
- package/dist/repositories/product-category.d.ts +6 -3
- package/dist/repositories/product-category.d.ts.map +1 -1
- package/dist/repositories/product-category.js +29 -6
- package/dist/repositories/product-category.js.map +1 -1
- package/package.json +4 -5
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,uOA2BvB,CAAA"}
|
package/dist/joiner-config.js
CHANGED
@@ -14,6 +14,7 @@ exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.PRODUCT,
|
|
14
14
|
_models_1.Product,
|
15
15
|
_models_1.ProductVariant,
|
16
16
|
_models_1.ProductOption,
|
17
|
+
_models_1.ProductOptionValue,
|
17
18
|
_models_1.ProductType,
|
18
19
|
product_image_1.default,
|
19
20
|
_models_1.ProductTag,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAuE;AACvE,
|
1
|
+
{"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAuE;AACvE,qCASgB;AAChB,2EAAiD;AACjD,sDAA4C;AAE/B,QAAA,YAAY,GAAG,IAAA,0BAAkB,EAAC,eAAO,CAAC,OAAO,EAAE;IAC9D,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE;QACN,iBAAO;QACP,wBAAc;QACd,uBAAa;QACb,4BAAkB;QAClB,qBAAW;QACX,uBAAY;QACZ,oBAAU;QACV,2BAAiB;QACjB,yBAAe;KAChB;IACD,YAAY,EAAE;QACZ,wEAAwE;QACxE,UAAU,EAAE,gBAAgB;KAC7B;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;IAC7B,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE,UAAU,CAAC;YACpE,MAAM,EAAE,gBAAgB;YACxB,IAAI,EAAE;gBACJ,YAAY,EAAE,iBAAiB;aAChC;SACF;KACF;CACF,CAAC,CAAA"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Context, DAL, ProductCategoryTransformOptions, ProductTypes } from "@medusajs/framework/types";
|
2
2
|
import { DALUtils } from "@medusajs/framework/utils";
|
3
|
+
import { EntityDTO } from "@mikro-orm/core";
|
3
4
|
import { SqlEntityManager } from "@mikro-orm/postgresql";
|
4
5
|
import { ProductCategory } from "../models";
|
5
6
|
import { UpdateCategoryInput } from "../types";
|
@@ -943,7 +944,9 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
|
|
943
944
|
buildProductCategoriesWithTree(include: {
|
944
945
|
descendants?: boolean;
|
945
946
|
ancestors?: boolean;
|
946
|
-
}, productCategories: ProductCategory[], findOptions?: DAL.FindOptions<ProductCategory
|
947
|
+
}, productCategories: ProductCategory[], findOptions?: DAL.FindOptions<ProductCategory> & {
|
948
|
+
serialize?: boolean;
|
949
|
+
}, context?: Context): Promise<ProductCategory[]>;
|
947
950
|
findAndCount(findOptions?: DAL.FindOptions<ProductCategory>, transformOptions?: ProductCategoryTransformOptions, context?: Context): Promise<[ProductCategory[], number]>;
|
948
951
|
delete(ids: string[], context?: Context): Promise<void>;
|
949
952
|
softDelete(ids: string[], context?: Context): Promise<[ProductCategory[], Record<string, unknown[]>]>;
|
@@ -952,10 +955,10 @@ export declare class ProductCategoryRepository extends DALUtils.MikroOrmBaseTree
|
|
952
955
|
create(data: ProductTypes.CreateProductCategoryDTO[], context?: Context): Promise<ProductCategory[]>;
|
953
956
|
update(data: UpdateCategoryInput[], context?: Context): Promise<ProductCategory[]>;
|
954
957
|
protected rerankSiblingsAfterDeletion(manager: SqlEntityManager, removedSibling: Partial<ProductCategory>): Promise<void>;
|
955
|
-
protected rerankSiblingsAfterCreation(manager: SqlEntityManager, addedSibling: Partial<ProductCategory
|
958
|
+
protected rerankSiblingsAfterCreation(manager: SqlEntityManager, addedSibling: Partial<EntityDTO<ProductCategory>>): Promise<void>;
|
956
959
|
protected rerankAllSiblings(manager: SqlEntityManager, originalSibling: Partial<ProductCategory> & {
|
957
960
|
rank: number;
|
958
|
-
}, updatedSibling: Partial<ProductCategory
|
961
|
+
}, updatedSibling: Partial<EntityDTO<ProductCategory>> & {
|
959
962
|
rank: number;
|
960
963
|
}): Promise<void>;
|
961
964
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/repositories/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,+BAA+B,EAC/B,YAAY,EACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,QAAQ,EAA0B,MAAM,2BAA2B,CAAA;
|
1
|
+
{"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/repositories/product-category.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,+BAA+B,EAC/B,YAAY,EACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,QAAQ,EAA0B,MAAM,2BAA2B,CAAA;AAC5E,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAG5C,qBAAa,yBAA0B,SAAQ,QAAQ,CAAC,0BAA0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I,CAAC;IAgC/D,MAAM,CACV,IAAI,EAAE,YAAY,CAAC,wBAAwB,EAAE,EAC7C,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,eAAe,EAAE,CAAC;IAmDvB,MAAM,CACV,IAAI,EAAE,mBAAmB,EAAE,EAC3B,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,eAAe,EAAE,CAAC;cA4Jb,2BAA2B,CACzC,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC;cAe1B,2BAA2B,CACzC,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;cAenC,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAC5D,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;CAwCzE"}
|
@@ -65,14 +65,17 @@ class ProductCategoryRepository extends utils_1.DALUtils.MikroOrmBaseTreeReposit
|
|
65
65
|
return sortedCategories;
|
66
66
|
}
|
67
67
|
async buildProductCategoriesWithTree(include, productCategories, findOptions = { where: {} }, context = {}) {
|
68
|
+
const { serialize = true } = findOptions;
|
69
|
+
delete findOptions.serialize;
|
68
70
|
const manager = super.getActiveManager(context);
|
69
71
|
// We dont want to get the relations as we will fetch all the categories and build the tree manually
|
70
|
-
let relationIndex = findOptions.options?.populate?.indexOf("parent_category");
|
72
|
+
let relationIndex = findOptions.options?.populate?.indexOf("parent_category") ?? -1;
|
71
73
|
const shouldPopulateParent = relationIndex !== -1;
|
72
74
|
if (shouldPopulateParent && include.ancestors) {
|
73
75
|
findOptions.options.populate.splice(relationIndex, 1);
|
74
76
|
}
|
75
|
-
relationIndex =
|
77
|
+
relationIndex =
|
78
|
+
findOptions.options?.populate?.indexOf("category_children") ?? -1;
|
76
79
|
const shouldPopulateChildren = relationIndex !== -1;
|
77
80
|
if (shouldPopulateChildren && include.descendants) {
|
78
81
|
findOptions.options.populate.splice(relationIndex, 1);
|
@@ -101,7 +104,9 @@ class ProductCategoryRepository extends utils_1.DALUtils.MikroOrmBaseTreeReposit
|
|
101
104
|
delete where.id;
|
102
105
|
delete where.mpath;
|
103
106
|
delete where.parent_category_id;
|
104
|
-
const categoriesInTree =
|
107
|
+
const categoriesInTree = serialize
|
108
|
+
? await this.serialize(await manager.find(_models_1.ProductCategory, where, options))
|
109
|
+
: await manager.find(_models_1.ProductCategory, where, options);
|
105
110
|
const categoriesById = new Map(categoriesInTree.map((cat) => [cat.id, cat]));
|
106
111
|
categoriesInTree.forEach((cat) => {
|
107
112
|
if (cat.parent_category_id && include.ancestors) {
|
@@ -231,9 +236,9 @@ class ProductCategoryRepository extends utils_1.DALUtils.MikroOrmBaseTreeReposit
|
|
231
236
|
const manager = super.getActiveManager(context);
|
232
237
|
const categories = await Promise.all(data.map(async (entry, i) => {
|
233
238
|
const categoryData = { ...entry };
|
234
|
-
|
239
|
+
let productCategory = (await manager.findOne(_models_1.ProductCategory, {
|
235
240
|
id: categoryData.id,
|
236
|
-
});
|
241
|
+
}));
|
237
242
|
if (!productCategory) {
|
238
243
|
throw new utils_1.MedusaError(utils_1.MedusaError.Types.NOT_FOUND, `ProductCategory with id: ${categoryData.id} was not found`);
|
239
244
|
}
|
@@ -256,11 +261,29 @@ class ProductCategoryRepository extends utils_1.DALUtils.MikroOrmBaseTreeReposit
|
|
256
261
|
categoryData.mpath = "";
|
257
262
|
}
|
258
263
|
else {
|
264
|
+
productCategory = (await this.buildProductCategoriesWithTree({
|
265
|
+
descendants: true,
|
266
|
+
}, [productCategory], {
|
267
|
+
where: { id: productCategory.id },
|
268
|
+
serialize: false,
|
269
|
+
}, context))[0];
|
259
270
|
const newParentCategory = await manager.findOne(_models_1.ProductCategory, categoryData.parent_category_id);
|
260
271
|
if (!newParentCategory) {
|
261
272
|
throw new utils_1.MedusaError(utils_1.MedusaError.Types.INVALID_ARGUMENT, `Parent category with id: '${categoryData.parent_category_id}' does not exist`);
|
262
273
|
}
|
263
|
-
categoryData.
|
274
|
+
const categoryDataChildren = categoryData.category_children?.flatMap((child) => child.category_children ?? []);
|
275
|
+
const categoryDataChildrenMap = new Map(categoryDataChildren?.map((child) => [child.id, child]));
|
276
|
+
function updateMpathRecursively(category, newBaseMpath) {
|
277
|
+
const newMpath = `${newBaseMpath}.${category.id}`;
|
278
|
+
category.mpath = newMpath;
|
279
|
+
for (let child of category.category_children) {
|
280
|
+
child = manager.getReference(_models_1.ProductCategory, child.id);
|
281
|
+
manager.assign(child, categoryDataChildrenMap.get(child.id) ?? {});
|
282
|
+
updateMpathRecursively(child, newMpath);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
updateMpathRecursively(productCategory, newParentCategory.mpath);
|
286
|
+
// categoryData.mpath = `${newParentCategory.mpath}.${productCategory.id}`
|
264
287
|
}
|
265
288
|
// Rerank the siblings in the new parent
|
266
289
|
const siblingsCount = await manager.count(_models_1.ProductCategory, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product-category.js","sourceRoot":"","sources":["../../src/repositories/product-category.ts"],"names":[],"mappings":";;;AAMA,qDAA4E;AAC5E,0CAIwB;AAExB,qCAAyC;AAGzC,mCAAmC;AACnC,MAAa,yBAA0B,SAAQ,gBAAQ,CAAC,0BAA2C;IACjG,gBAAgB,CACd,cAAgD,EAAE,KAAK,EAAE,EAAE,EAAE,EAC7D,gBAAiD,EAAE;QAEnD,MAAM,YAAY,GAAG,EAAE,GAAG,WAAW,EAAE,CAAA;QACvC,YAAY,CAAC,OAAO,KAAK;YACvB,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SACzB,CAAA;QAED,MAAM,MAAM,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,KAAK,EAAE,CAAC,CAAA;QACnD,MAAM,QAAQ,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C,OAAO,CAAC,eAAe,CAAC,CAAA;QAClC,CAAC;IACH,CAAC;CACF;AAnnBD,8DAmnBC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/product",
|
3
|
-
"version": "2.0.5-snapshot-
|
3
|
+
"version": "2.0.5-snapshot-20241120130614",
|
4
4
|
"description": "Medusa Product module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -30,15 +30,14 @@
|
|
30
30
|
"build": "rimraf dist && tsc --build && npm run resolve:aliases",
|
31
31
|
"test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts",
|
32
32
|
"test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts",
|
33
|
-
"migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:generate",
|
34
33
|
"migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial",
|
35
34
|
"migration:create": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create",
|
36
35
|
"migration:up": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm migration:up",
|
37
36
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
|
38
37
|
},
|
39
38
|
"devDependencies": {
|
40
|
-
"@medusajs/framework": "2.0.5-snapshot-
|
41
|
-
"@medusajs/test-utils": "2.0.5-snapshot-
|
39
|
+
"@medusajs/framework": "2.0.5-snapshot-20241120130614",
|
40
|
+
"@medusajs/test-utils": "2.0.5-snapshot-20241120130614",
|
42
41
|
"@mikro-orm/cli": "5.9.7",
|
43
42
|
"@mikro-orm/core": "5.9.7",
|
44
43
|
"@mikro-orm/migrations": "5.9.7",
|
@@ -52,7 +51,7 @@
|
|
52
51
|
"typescript": "^5.6.2"
|
53
52
|
},
|
54
53
|
"peerDependencies": {
|
55
|
-
"@medusajs/framework": "2.0.5-snapshot-
|
54
|
+
"@medusajs/framework": "2.0.5-snapshot-20241120130614",
|
56
55
|
"@mikro-orm/core": "5.9.7",
|
57
56
|
"@mikro-orm/migrations": "5.9.7",
|
58
57
|
"@mikro-orm/postgresql": "5.9.7",
|