@medusajs/product 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -0
- package/dist/initialize/index.d.ts +4 -0
- package/dist/initialize/index.js +11 -0
- package/dist/loaders/connection.d.ts +4 -0
- package/dist/loaders/connection.js +56 -0
- package/dist/loaders/container.d.ts +4 -0
- package/dist/loaders/container.js +76 -0
- package/dist/loaders/index.d.ts +2 -0
- package/dist/loaders/index.js +18 -0
- package/dist/migrations/Migration20230609132805.d.ts +4 -0
- package/dist/migrations/Migration20230609132805.js +42 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +18 -0
- package/dist/models/product-category.d.ts +20 -0
- package/dist/models/product-category.js +123 -0
- package/dist/models/product-collection.d.ts +9 -0
- package/dist/models/product-collection.js +55 -0
- package/dist/models/product-option-value.d.ts +12 -0
- package/dist/models/product-option-value.js +59 -0
- package/dist/models/product-option.d.ts +14 -0
- package/dist/models/product-option.js +68 -0
- package/dist/models/product-tag.d.ts +11 -0
- package/dist/models/product-tag.js +55 -0
- package/dist/models/product-type.d.ts +8 -0
- package/dist/models/product-type.js +44 -0
- package/dist/models/product-variant.d.ts +34 -0
- package/dist/models/product-variant.js +162 -0
- package/dist/models/product.d.ts +43 -0
- package/dist/models/product.js +177 -0
- package/dist/module-definition.d.ts +2 -0
- package/dist/module-definition.js +44 -0
- package/dist/repositories/index.d.ts +5 -0
- package/dist/repositories/index.js +13 -0
- package/dist/repositories/product-category.d.ts +16 -0
- package/dist/repositories/product-category.js +86 -0
- package/dist/repositories/product-collection.d.ts +15 -0
- package/dist/repositories/product-collection.js +46 -0
- package/dist/repositories/product-tag.d.ts +15 -0
- package/dist/repositories/product-tag.js +46 -0
- package/dist/repositories/product-variant.d.ts +15 -0
- package/dist/repositories/product-variant.js +46 -0
- package/dist/repositories/product.d.ts +21 -0
- package/dist/repositories/product.js +72 -0
- package/dist/scripts/bin/run-migration-down.d.ts +2 -0
- package/dist/scripts/bin/run-migration-down.js +31 -0
- package/dist/scripts/bin/run-migration-up.d.ts +2 -0
- package/dist/scripts/bin/run-migration-up.js +31 -0
- package/dist/scripts/bin/run-seed.d.ts +2 -0
- package/dist/scripts/bin/run-seed.js +37 -0
- package/dist/scripts/index.d.ts +2 -0
- package/dist/scripts/index.js +18 -0
- package/dist/scripts/migration-down.d.ts +10 -0
- package/dist/scripts/migration-down.js +51 -0
- package/dist/scripts/migration-up.d.ts +10 -0
- package/dist/scripts/migration-up.js +51 -0
- package/dist/scripts/seed.d.ts +5 -0
- package/dist/scripts/seed.js +87 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.js +18 -0
- package/dist/services/product-category.d.ts +11 -0
- package/dist/services/product-category.js +18 -0
- package/dist/services/product-collection.d.ts +11 -0
- package/dist/services/product-collection.js +17 -0
- package/dist/services/product-module-service.d.ts +25 -0
- package/dist/services/product-module-service.js +36 -0
- package/dist/services/product-tag.d.ts +11 -0
- package/dist/services/product-tag.js +16 -0
- package/dist/services/product-variant.d.ts +11 -0
- package/dist/services/product-variant.js +13 -0
- package/dist/services/product.d.ts +15 -0
- package/dist/services/product.js +43 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.js +2 -0
- package/dist/utils/create-connection.d.ts +3 -0
- package/dist/utils/create-connection.js +35 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/load-database-config.d.ts +7 -0
- package/dist/utils/load-database-config.js +59 -0
- package/dist/utils/query/index.d.ts +6 -0
- package/dist/utils/query/index.js +35 -0
- package/package.json +62 -0
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@medusajs/product",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Medusa Product module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"bin": {
|
|
11
|
+
"medusa-product-migrations-down": "dist/scripts/bin/run-migration-down.js",
|
|
12
|
+
"medusa-product-migrations-up": "dist/scripts/bin/run-migration-up.js",
|
|
13
|
+
"medusa-product-seed": "dist/scripts/bin/run-seed.js"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/medusajs/medusa",
|
|
18
|
+
"directory": "packages/product"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"author": "Medusa",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"watch": "tsc --build --watch",
|
|
27
|
+
"watch:test": "tsc --build tsconfig.spec.json --watch",
|
|
28
|
+
"prepare": "cross-env NODE_ENV=production yarn run build",
|
|
29
|
+
"build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json",
|
|
30
|
+
"test": "jest --runInBand --forceExit -- src/**/__tests__/**/*.ts",
|
|
31
|
+
"test:integration": "jest --runInBand --forceExit -- integration-tests/**/__tests__/**/*.ts",
|
|
32
|
+
"migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate",
|
|
33
|
+
"migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial",
|
|
34
|
+
"migration:create": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create",
|
|
35
|
+
"migration:up": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:up",
|
|
36
|
+
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@mikro-orm/cli": "5.7.4",
|
|
40
|
+
"@mikro-orm/migrations": "5.7.4",
|
|
41
|
+
"cross-env": "^5.2.1",
|
|
42
|
+
"jest": "^25.5.4",
|
|
43
|
+
"medusa-test-utils": "^1.1.40",
|
|
44
|
+
"pg-god": "^1.0.12",
|
|
45
|
+
"rimraf": "^5.0.0",
|
|
46
|
+
"ts-jest": "^25.5.1",
|
|
47
|
+
"ts-node": "^10.9.1",
|
|
48
|
+
"tsc-alias": "^1.8.6",
|
|
49
|
+
"typescript": "^4.4.4"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@medusajs/modules-sdk": "^1.8.3",
|
|
53
|
+
"@medusajs/types": "*",
|
|
54
|
+
"@medusajs/utils": "^1.8.2",
|
|
55
|
+
"@mikro-orm/core": "5.7.4",
|
|
56
|
+
"@mikro-orm/migrations": "5.7.4",
|
|
57
|
+
"@mikro-orm/postgresql": "5.7.4",
|
|
58
|
+
"awilix": "^8.0.0",
|
|
59
|
+
"dotenv": "^16.1.4",
|
|
60
|
+
"lodash": "^4.17.21"
|
|
61
|
+
}
|
|
62
|
+
}
|