Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

feat(core): admin seller management API routes and query param fixes (#809)

Viktor Holikc2fc49d18b5a
diff --git a/bun.lock b/bun.lock
index 55c4a381f..24eb9841d 100644
--- a/bun.lock
+++ b/bun.lock
@@ -4,6 +4,9 @@
"workspaces": {
"": {
"name": "mercur",
+ "dependencies": {
+ "@mercurjs/core-plugin": "workspace:*",
+ },
"devDependencies": {
"@eslint/js": "^9.39.2",
"eslint": "^9.39.2",
@@ -18,16 +21,16 @@
"name": "@mercurjs/integration-tests",
"version": "0.0.1",
"dependencies": {
- "@medusajs/draft-order": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
+ "@medusajs/draft-order": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
"@mercurjs/core-plugin": "*",
"jsonwebtoken": "^9.0.2",
"scrypt-kdf": "^2.0.1",
},
"devDependencies": {
- "@medusajs/test-utils": "^2.13.3",
- "@medusajs/types": "2.13.3",
+ "@medusajs/test-utils": "^2.13.4",
+ "@medusajs/types": "2.13.4",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
@@ -38,7 +41,7 @@
},
"packages/admin": {
"name": "@mercurjs/admin",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
@@ -47,9 +50,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "3.4.2",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/client": "2.0.0-canary.97",
"@mercurjs/dashboard-shared": "2.0.0-canary.97",
@@ -81,8 +84,8 @@
"zod": "3.25.76",
},
"devDependencies": {
- "@medusajs/types": "2.13.3",
- "@medusajs/ui-preset": "2.13.3",
+ "@medusajs/types": "2.13.4",
+ "@medusajs/ui-preset": "2.13.4",
"@mercurjs/core-plugin": "workspace:*",
"@mercurjs/dashboard-sdk": "workspace:*",
"@mercurjs/types": "workspace:*",
@@ -98,17 +101,17 @@
},
"packages/cli": {
"name": "@mercurjs/cli",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"bin": {
"mercurjs": "./dist/index.js",
},
"dependencies": {
"@antfu/ni": "^27.0.1",
- "@medusajs/admin-bundler": "2.13.3",
- "@medusajs/admin-shared": "2.13.3",
- "@medusajs/admin-vite-plugin": "2.13.3",
- "@medusajs/dashboard": "2.13.3",
- "@medusajs/framework": "2.13.3",
+ "@medusajs/admin-bundler": "2.13.4",
+ "@medusajs/admin-shared": "2.13.4",
+ "@medusajs/admin-vite-plugin": "2.13.4",
+ "@medusajs/dashboard": "2.13.4",
+ "@medusajs/framework": "2.13.4",
"@mercurjs/dashboard-sdk": "2.0.0-canary.97",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
@@ -153,13 +156,13 @@
},
"packages/client": {
"name": "@mercurjs/client",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
"@tanstack/react-query": "^5.64.2",
"qs": "^6.12.1",
},
"devDependencies": {
- "@medusajs/framework": "^2.13.3",
+ "@medusajs/framework": "^2.13.4",
"@types/qs": "^6.9.18",
"tsup": "^8.5.0",
"typescript": "5.9.3",
@@ -170,15 +173,15 @@
},
"packages/core-plugin": {
"name": "@mercurjs/core-plugin",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"devDependencies": {
- "@medusajs/cli": "^2.13.3",
- "@medusajs/core-flows": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/icons": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
- "@medusajs/test-utils": "^2.13.3",
- "@medusajs/types": "2.13.3",
+ "@medusajs/cli": "^2.13.4",
+ "@medusajs/core-flows": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/icons": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
+ "@medusajs/test-utils": "^2.13.4",
+ "@medusajs/types": "2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/types": "workspace:*",
"@swc/core": "^1.7.28",
@@ -201,17 +204,18 @@
"zod": "3.25.76",
},
"peerDependencies": {
- "@medusajs/admin-sdk": "^2.13.3",
- "@medusajs/cli": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/icons": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
- "@medusajs/test-utils": "^2.13.3",
+ "@medusajs/admin-sdk": "^2.13.4",
+ "@medusajs/cli": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/icons": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
+ "@medusajs/test-utils": "^2.13.4",
+ "express": "^4.21.0",
},
},
"packages/dashboard-sdk": {
"name": "@mercurjs/dashboard-sdk",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
"@babel/parser": "7.25.6",
"@babel/traverse": "7.25.6",
@@ -228,7 +232,7 @@
},
"packages/dashboard-shared": {
"name": "@mercurjs/dashboard-shared",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
@@ -237,9 +241,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "3.4.2",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/client": "2.0.0-canary.97",
"@radix-ui/react-dialog": "1.1.4",
@@ -282,7 +286,7 @@
},
"packages/providers/payout-stripe-connect": {
"name": "@mercurjs/payout-stripe-connect",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
"stripe": "^15.5.0",
},
@@ -300,10 +304,10 @@
"version": "0.0.0",
"dependencies": {
"@hookform/resolvers": "3.4.2",
- "@medusajs/core-flows": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/icons": "2.13.3",
- "@medusajs/medusa": "^2.13.3",
+ "@medusajs/core-flows": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
+ "@medusajs/medusa": "^2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/client": "workspace:*",
"@mercurjs/core-plugin": "workspace:*",
@@ -322,7 +326,7 @@
"zod": "3.25.76",
},
"devDependencies": {
- "@medusajs/cli": "^2.13.3",
+ "@medusajs/cli": "^2.13.4",
"@mercurjs/cli": "workspace:*",
"@mercurjs/types": "workspace:*",
"@types/jsonwebtoken": "^9.0.9",
@@ -335,9 +339,9 @@
},
"packages/types": {
"name": "@mercurjs/types",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
- "@medusajs/types": "2.13.3",
+ "@medusajs/types": "2.13.4",
},
"devDependencies": {
"typescript": "5.9.3",
@@ -345,7 +349,7 @@
},
"packages/vendor": {
"name": "@mercurjs/vendor",
- "version": "2.0.0-canary.101",
+ "version": "2.0.0",
"dependencies": {
"@ariakit/react": "^0.4.15",
"@babel/runtime": "^7.26.10",
@@ -354,9 +358,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "3.4.2",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/client": "2.0.0-canary.97",
"@mercurjs/dashboard-shared": "2.0.0-canary.97",
@@ -388,8 +392,8 @@
"zod": "3.25.76",
},
"devDependencies": {
- "@medusajs/types": "2.13.3",
- "@medusajs/ui-preset": "2.13.3",
+ "@medusajs/types": "2.13.4",
+ "@medusajs/ui-preset": "2.13.4",
"@mercurjs/core-plugin": "workspace:*",
"@mercurjs/dashboard-sdk": "workspace:*",
"@mercurjs/types": "workspace:*",
@@ -855,145 +859,145 @@
"@js-sdsl/ordered-map": ["@js-sdsl/[email protected]", "", {}, "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw=="],
- "@medusajs/admin-bundler": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.13.3", "@medusajs/admin-vite-plugin": "2.13.3", "@medusajs/dashboard": "2.13.3", "@vitejs/plugin-react": "^4.2.1", "autoprefixer": "^10.4.19", "compression": "^1.8.0", "express": "^4.21.0", "get-port": "^5.1.1", "glob": "11.1.0", "outdent": "^0.8.0", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", "vite": "^5.4.21" } }, "sha512-mTKAxXzrmVs3H33PGXqdBUWDXfrcfGHJNfjMkObeUxM2qXpnkCPI7xlT7DNmDZfYT1oVU/+K/ZZm/WHYnUi5Qg=="],
+ "@medusajs/admin-bundler": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.13.4", "@medusajs/admin-vite-plugin": "2.13.4", "@medusajs/dashboard": "2.13.4", "@vitejs/plugin-react": "^4.2.1", "autoprefixer": "^10.4.19", "compression": "^1.8.0", "express": "^4.21.0", "get-port": "^5.1.1", "glob": "11.1.0", "outdent": "^0.8.0", "postcss": "^8.4.38", "tailwindcss": "^3.4.3", "vite": "^5.4.21" } }, "sha512-8i8UX8EoMSn+ndpbeZeuYF5HkGVLM3LeqzZVARUqDJ8MpvrHw5kyKTCGhnaHlZWp4rthWcJA7/ekfIw/BZv4bA=="],
"@medusajs/admin-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/admin-shared": "2.13.3", "zod": "3.25.76" } }, "sha512-XE7R2OLMsoLqnTh6GHxI8wShwv/j02pKxpOPc4/D+Zy133xy2XYfg+d8keI68V6t+HIrGHcIO04nju6psBhegw=="],
- "@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-FLZMxH2pBy8o5XJTifgMTxnY6W8ke1skXr3fX02APjiySCdmegiUnok8u70KGVRQNU7rfPyvApldh9ZffvDNxw=="],
+ "@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-pHfPibjFa8LiUxDUf64hFGXk0Q6jcg/yTpU/b9paOdxHowIUyVoOjubmmplpV8s0YDsacL8UioSFK2Js+vrutQ=="],
- "@medusajs/admin-vite-plugin": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/parser": "7.25.6", "@babel/traverse": "7.25.6", "@babel/types": "7.25.6", "@medusajs/admin-shared": "2.13.3", "chokidar": "^3.5.3", "fdir": "6.1.1", "magic-string": "0.30.5", "outdent": "^0.8.0", "picocolors": "^1.1.0" }, "peerDependencies": { "vite": "^5.4.21" } }, "sha512-Fqj5eSYQERuTyce2xK52ZEi0eqiFKoJtU3WaXe2S5lqe+E/mmRGcFUUKHAEt0Fw8L3lRQq4QRK2C7b/NbUZqRg=="],
+ "@medusajs/admin-vite-plugin": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/parser": "7.25.6", "@babel/traverse": "7.25.6", "@babel/types": "7.25.6", "@medusajs/admin-shared": "2.13.4", "chokidar": "^3.5.3", "fdir": "6.1.1", "magic-string": "0.30.5", "outdent": "^0.8.0", "picocolors": "^1.1.0" }, "peerDependencies": { "vite": "^5.4.21" } }, "sha512-lF6JgVwXySiM+T1vA+xXTfbcgmd7LRn0HcFRhh9Gpse4La6bZle0sHXHRPdePhEzU9DRn1/BsyLGo/h7/L3WZA=="],
- "@medusajs/analytics": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-ffcpUfmH6XT2NMXABrD0gahJirEwEZYSsHwGGSfvf5zfv5f35b34MvSBmGdEsdb2zvHrTPcyp1mKplzGCuxY3g=="],
+ "@medusajs/analytics": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-sJLlEEio+n2KkoSfjemuECPI7F6i0ySAZ3t7VW6sZgk1m4mfq4XoNpMe2qc5pQXJ2p3D0IHRR4k+LAlDDLwIzQ=="],
- "@medusajs/analytics-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-mLK+2QWG/30ByGIJJJDoEeD2YHuWPelF7h7pJQ9HASQ1FFTITneBhCFzzJkwav5/BXL9/4L6Llub+VvnCocjYg=="],
+ "@medusajs/analytics-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-QCddPmhUfdWnkn81+ZeIzEx+q43V5Qaso515ZIqEL7NNabcWwp1Isr3HTeFlBhdPrRilWV145H+yggata2NRhg=="],
- "@medusajs/analytics-posthog": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3", "posthog-node": "^5.11.0" } }, "sha512-q88qX3SyqsRUQZWTtb37dy2GiPgvpjpqCzpS45XV3jbDnh249biyAigCzpUqyMGuO3f6zy1nsF+aUWCKWHJkpg=="],
+ "@medusajs/analytics-posthog": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4", "posthog-node": "^5.11.0" } }, "sha512-r5eTjx3dy0Drr3QWZEMrcmg+Gcx4ivN7nIQ6RvTmhE15/45mF+Cb+UtnGMWIE/EFsK1xXk6VR7utVq0qg2JcwQ=="],
- "@medusajs/api-key": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-hbcqKKsybFc5OD15M6+JwuHIcEsUswPoZVlXuNil8GMpZSADEA/efZDI/jkAxUbLxv+CCGLAx8qTNX1Z0cXrBw=="],
+ "@medusajs/api-key": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-8l3ULeNahJgst96HdLIF0jq+L8rEkfOZUISChLGOeTXXYyLSU8/Wpf4BZwQhECYoN5oDVumA/MSRcqCjcOZhuA=="],
- "@medusajs/auth": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-0WyFbknf9EKFKI8H4hu0Wa7AgUwWGatjEKVbiTviGGV4RDS0GfkHhVLwHN3sdhUG3xhtb1qggNzWumIeaFlz6w=="],
+ "@medusajs/auth": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-kFkqyF+sDJq78RQOJEZ6pP5FyNTAz6+xLYuII0k6Yiv0M9ZwYDZSMixgdAQ4H/CDJeZ3KW7YZr3ppIB9+Y5PYQ=="],
- "@medusajs/auth-emailpass": ["@medusajs/[email protected]", "", { "dependencies": { "scrypt-kdf": "^2.0.1" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-qgLUVifeAxBTNVA6IKfsgSqOFJ9iegxGoj6Ji7Oa2G8QI0DFapiUbVrzXnizXM1CBIqOAkbXchOh/xspXcagyQ=="],
+ "@medusajs/auth-emailpass": ["@medusajs/[email protected]", "", { "dependencies": { "scrypt-kdf": "^2.0.1" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-gTGEoHjwa+rZtJPasHqwHR5T5Wfqx+Ph1YWt+rXrCOwYBaKBzFCY3FmLYM3UFcWi02DebiUNRTJoGOUdkoqqOQ=="],
- "@medusajs/auth-github": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-iKmw8QAzD9eo7/9+zFiG20vXMcHPqN24+ZBlDbUoqONL9yqZuaK9PBd7XRkg1RraUO6bWfyujMKaq/wozp4KOQ=="],
+ "@medusajs/auth-github": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-RPa8Ujg5hGEIs7duqEWWH8GjbHQH2PCSOeSNS6BhV5YER/tea8PPrG7u07ehIlonThsiahwJWJ8JEwJWNQmu5w=="],
- "@medusajs/auth-google": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-CCqib5Cg/zBSSe80fLSYiVy67uLOZb/6fSCD6GaXh01N4encz5u6q0zQnwSi8ki68Q0o3taLF7PRf+AUXH3niA=="],
+ "@medusajs/auth-google": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-k3f1UConY94eKH7ULtGpiWDa/6IHYgSWejnC8zPo2P8jAuyTkbs8bWN7gLBZ2fmTQngFEAIJuNfAeNna2aok+g=="],
- "@medusajs/cache-inmemory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-bHTGOD/IDY5mrGPbRveWLWHtufDvJnsfbuSpzk40o0EwqZ2b3qfvI9e2C84VBQI5OGnBRyP268rqMxmkgeJfjw=="],
+ "@medusajs/cache-inmemory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-SoIf/mNOt5zYsiGeiOd07I51tIOGcdhVfUQjaJ+/LI0U9O+O2CDBXc32vmhfeH2lrLKH7jxjVi+tpzSNpu4PJA=="],
- "@medusajs/cache-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-Qt5rN4+kkOzlf0CSjLacLJ850JCuJlCqz3Nb23v2kZnS/Q2O+/NTicywp2h5fYLeP2rDAryjQC8NELJMVDGwtQ=="],
+ "@medusajs/cache-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-Z41nQKB3tT490bWksRVTvFYEuLfLpusDsX5QZ4YBpoWbBfvJ5p2LmSCw4EXPuRq+HyhhlHTAGccLY1H2/xmhWw=="],
- "@medusajs/caching": ["@medusajs/[email protected]", "", { "dependencies": { "fast-json-stable-stringify": "^2.1.0", "node-cache": "^5.1.2", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3", "awilix": "^8.0.1" } }, "sha512-BZk2gP0srU+AriY/1WzElg7TdEXA+VkzJqC46ivpk12QwjuRObo8DNG7x7lRTz+7VXTIBGh4mDnOJZMNGgdy2Q=="],
+ "@medusajs/caching": ["@medusajs/[email protected]", "", { "dependencies": { "fast-json-stable-stringify": "^2.1.0", "node-cache": "^5.1.2", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4", "awilix": "^8.0.1" } }, "sha512-mHL+zRPSYITd4bKFXVsPLHZHJrFIQyWIVM9c4ML7w2wViZB2oPkJyIutsODu5W2HhtGowJG/qwo8AQxg5R4ujg=="],
- "@medusajs/caching-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-LA6rsjflnf8UgeQGktfk16FFmnCIz72Y/9AJfhYELK0cRM/OhwWmlnkigmIrbL3zyUJM8HwU211SFU97JW+m/A=="],
+ "@medusajs/caching-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1", "xxhash-wasm": "^1.1.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-HCoDMkBNzbQLjAcSS7jRontkATKWcxf7nQ6EMU8tYVQYE/npwSPkjuR6Jpt/q6AeKN2IYTdbHpHStpFvcZ+geg=="],
- "@medusajs/cart": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-sj9dN3+wkNBariw/OthyuH47enEFNlQ6f8iFfV0V6QQevDONghz88p9fxMh7y8gIfEbpHCCnCBeLIeH07In+Jg=="],
+ "@medusajs/cart": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-tmIZBSc+2/IEjDiCO2Hs9aReDyVmKRSuOKE9JJkWwS1ZpVBX8D6y2YGl1IcToVdmlaj5yZJGOmFPC3kaFBnUog=="],
- "@medusajs/cli": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.3", "@medusajs/telemetry": "2.13.3", "@medusajs/utils": "2.13.3", "@types/express": "^4.17.21", "chalk": "^4.1.2", "configstore": "^5.0.1", "dotenv": "^16.4.5", "execa": "^5.1.1", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "fs-extra": "^11.1.1", "glob": "11.1.0", "hosted-git-info": "^4.0.2", "inquirer": "^8.0.0", "is-valid-path": "^0.1.1", "meant": "^1.0.3", "ora": "^5.4.1", "pg-god": "^1.0.12", "prompts": "^2.4.2", "resolve-cwd": "^3.0.0", "stack-trace": "^0.0.10", "ulid": "^2.3.0", "winston": "^3.9.0", "yargs": "^17.7.2" }, "bin": { "medusa": "cli.js" } }, "sha512-KK2whVLrAzkZCU8/czihYCVfsx+RNbgUXRqGKoBnQr5xvqnoskTCl6pKRCI/0mfL2U8OJKCw/L4ggfXWmIYEqA=="],
+ "@medusajs/cli": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/utils": "2.13.4", "@types/express": "^4.17.21", "chalk": "^4.1.2", "configstore": "^5.0.1", "dotenv": "^16.4.5", "execa": "^5.1.1", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "fs-extra": "^11.1.1", "glob": "11.1.0", "hosted-git-info": "^4.0.2", "inquirer": "^8.0.0", "is-valid-path": "^0.1.1", "meant": "^1.0.3", "ora": "^5.4.1", "pg-god": "^1.0.12", "prompts": "^2.4.2", "resolve-cwd": "^3.0.0", "stack-trace": "^0.0.10", "ulid": "^2.3.0", "winston": "^3.9.0", "yargs": "^17.7.2" }, "bin": { "medusa": "cli.js" } }, "sha512-kDtleMJ6YHCkU2VkkOEcZa/t3bKsdzEGfITKEif1dhb5cS9ZJXkHGgFK+zFL7BhNK5P5yL3wuL3mP57lfKtD8w=="],
- "@medusajs/core-flows": ["@medusajs/[email protected]", "", { "dependencies": { "csv-parse": "^5.6.0", "json-2-csv": "^5.5.4" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-eM4bQfBk3NajeuvTrRwyEFFJ9RODr1v40jggLrwei2xgYSAdoTsIzIkPtpqDbPG1jMOF2RvBfOh6/0cH6ZibIA=="],
+ "@medusajs/core-flows": ["@medusajs/[email protected]", "", { "dependencies": { "csv-parse": "^5.6.0", "json-2-csv": "^5.5.4" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-6z4Y+Cyo7tPacimGGTf6UW9PbiewDPgJe91LEsSaDFRMWTme8JoOZg+w05hTwEvyOy5KShipKURyAygG+mFDNQ=="],
- "@medusajs/currency": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-2kJGC7Whzu2xqIFf6Z4+zEJuRe+FgaLFbSfyYRJFn8V6I181OdEQPdUY3Hlntu4kZywHfz/iNBq8lViBqgDIew=="],
+ "@medusajs/currency": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-RGPkXsVPZdwF8cvH5O5R8DdlaOIPZWtfMGWUzJe+8ng6H4RvH+sFIPACz5VWtnv2zrJ3fqHyCHKOjIj0dtQDcg=="],
- "@medusajs/customer": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-5cGbfuSC+qjpxk+xw2l2fKNJ3AJ4RWSoWIH6RoiAUbakd17jvNo05vcUawVZxaGjLz9NkgphLRS7zhrQkCc3aA=="],
+ "@medusajs/customer": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-A+QFsv2t18d74hjARRoxiqXQSFq5aM0Vp3oavmnA5ZwVKU+ltuOV4LfAF8Fb9d66yJ83MMAfpoH6VrrqniaKxA=="],
- "@medusajs/dashboard": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "2.13.3", "@medusajs/icons": "2.13.3", "@medusajs/js-sdk": "2.13.3", "@medusajs/ui": "4.1.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "i18next-http-backend": "2.4.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qs": "^6.12.1", "radix-ui": "1.1.2", "react": "^18.3.1", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-dom": "^18.3.1", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.3", "zod": "3.25.76" } }, "sha512-GlcaO47NJRsY3Wn0DuOYdUWPEz7zS4cumDPNSbe6Okxvb7GzFfvKmADGNIEI2kdf8e2ndaZKzJrihIvuQx7jVQ=="],
+ "@medusajs/dashboard": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "2.13.4", "@medusajs/icons": "2.13.4", "@medusajs/js-sdk": "2.13.4", "@medusajs/ui": "4.1.4", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "i18next-http-backend": "2.4.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qs": "^6.12.1", "radix-ui": "1.1.2", "react": "^18.3.1", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-dom": "^18.3.1", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.3", "zod": "3.25.76" } }, "sha512-lvtUiQ4Y8xln3p6ngOlMDm0K+18U9tgz7Ema5LsRpLr/8dtCJfE1GUBJfcrMkb4yEAXMT97F8ys+9Dml6MdXZA=="],
- "@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-T6478UoYYVuMJG4kK5ooQR/q/mrf4ipziTYKygumiiJVlP+MPJqD3e6xK7bN2rgxUoyaDoVnBWS+fywkEmEx5g=="],
+ "@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-wUfNMFaDU3RjAJRg8mIcE/DC2kH7yMcouzIANVIO4SZj6ydF+4dPmbNl1Ysmletr1FQYlfLnFl+lNbjW2d6Fxg=="],
- "@medusajs/draft-order": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@hookform/resolvers": "3.4.2", "@medusajs/js-sdk": "2.13.3", "@tanstack/react-query": "5.64.2", "@uiw/react-json-view": "^2.0.0-alpha.17", "date-fns": "^3.6.0", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "radix-ui": "1.1.2", "react-hook-form": "7.49.1" }, "peerDependencies": { "@medusajs/admin-sdk": "2.13.3", "@medusajs/cli": "2.13.3", "@medusajs/framework": "2.13.3", "@medusajs/icons": "2.13.3", "@medusajs/test-utils": "2.13.3", "@medusajs/ui": "4.1.3", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "6.30.3" }, "optionalPeers": ["@medusajs/admin-sdk", "@medusajs/cli", "@medusajs/icons", "@medusajs/test-utils", "@medusajs/ui", "react", "react-dom", "react-router-dom"] }, "sha512-hU6x/5nAae2dtuHt92wSXuR8yGYjyL4sBUJiCTj4L65t9Q0H28SDzB+92p1bmmOBnoaOrD0rmDvaLOOcg0zkMQ=="],
+ "@medusajs/draft-order": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@hookform/resolvers": "3.4.2", "@medusajs/js-sdk": "2.13.4", "@tanstack/react-query": "5.64.2", "@uiw/react-json-view": "^2.0.0-alpha.17", "date-fns": "^3.6.0", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "radix-ui": "1.1.2", "react-hook-form": "7.49.1" }, "peerDependencies": { "@medusajs/admin-sdk": "2.13.4", "@medusajs/cli": "2.13.4", "@medusajs/framework": "2.13.4", "@medusajs/icons": "2.13.4", "@medusajs/test-utils": "2.13.4", "@medusajs/ui": "4.1.4", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "6.30.3" }, "optionalPeers": ["@medusajs/admin-sdk", "@medusajs/cli", "@medusajs/icons", "@medusajs/test-utils", "@medusajs/ui", "react", "react-dom", "react-router-dom"] }, "sha512-60K8Kj85GuIGGuitYvkDpdIpIvaU8VbAODmXe16YSrsEwOsjam0PPp8D4jB3bvSjPd+h9Rb91h6+mq52eSJM0g=="],
- "@medusajs/event-bus-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-0W6LaqtZUInI+uwZqVvdRoUitwEIp72RoE59l5xelqTq3Ls5T7dmJLgiBDHmT/W4tJjN8+4k62HURoIOeHYZzQ=="],
+ "@medusajs/event-bus-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-5eqpzoYFPBNauUVKTeY9zVrqbYsG4rHi/dbnPsM7rJNKYwUEhgnVEu0H3hJIEw7jG2RU/Tobh45XTJCEdZMHiQ=="],
- "@medusajs/event-bus-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-uNV4E0sRHaUuSd+UKT4ea3DB5UTfnAkYr/a02LCpcMlxZ2EAM/+T1Gkk/j4sZf8h1VOJqyDqUIF5FQvVQia9yg=="],
+ "@medusajs/event-bus-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-HAbucVuKMcjW9mtwXcVbwkXWAoPakY1mKiOtItyYg/p56AlPgQ1cEfa7ezBwA//Ag6e4lheHepb8VY5jbAQk8w=="],
- "@medusajs/file": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-iNPIYh1SyBPexbi6EV3Kxejx98r2X6SJ9FxlNB2yMCWan53lht5h333c5Z/jroz4Z19waSIJ5kmbfb5IopcaYQ=="],
+ "@medusajs/file": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-zsIgdC5gHsOWRii6xNeDbFgoMcDUXT4MLvEw4LuXzZd02/vI28RtxH3Yn+oiUqepixdQ5aMA/tSsHFD3V6ggOg=="],
- "@medusajs/file-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-nuJxRYWb0M62faM5u9V1CDLh8q+2KM0U/s2V8SbnSJRrAdaBU5MwKHyP/HM4LMAAxb0CxSW/8u2UyinAYvgCUw=="],
+ "@medusajs/file-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-kX0s5W08KlVPQN7OWRMDC9Y0UXiW1HuAMrwnPOWNHmoedWxVzmgE3sWwfvNWwGCuwRJM1GFj4cHrp6mXP7lEXg=="],
- "@medusajs/file-s3": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-s3": "^3.556.0", "@aws-sdk/lib-storage": "^3.556.0", "@aws-sdk/s3-request-presigner": "^3.556.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-o9K5bOY03hjQabUsnmDA0AIaGWT4Dh7X7bFANxO1uAHqdbpHhbBVaObRVx5ySZ3rbWFAVsWGJAEgPPDWW7UkrQ=="],
+ "@medusajs/file-s3": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-s3": "^3.556.0", "@aws-sdk/lib-storage": "^3.556.0", "@aws-sdk/s3-request-presigner": "^3.556.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-aS2uGqwkQvDlBHhbkBtu5mlUOffSJfNk3YfficKF/apFgpWdsD18aerN/T2ZuRv7TP06dJQIMNzfTBKGQ7RKag=="],
- "@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.3", "@medusajs/modules-sdk": "2.13.3", "@medusajs/orchestration": "2.13.3", "@medusajs/telemetry": "2.13.3", "@medusajs/types": "2.13.3", "@medusajs/utils": "2.13.3", "@medusajs/workflows-sdk": "2.13.3", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.3", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-xsgRLGVDAVdhUvlgmCcgkOPubKgukr/5m3D7E6ckjq+2pZpYEz5YmKK72VTCal9NV00xTqE7Pn61KurzytkbwQ=="],
+ "@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/types": "2.13.4", "@medusajs/utils": "2.13.4", "@medusajs/workflows-sdk": "2.13.4", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.4", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-OoamovYj/hkDyDSfj7zyaO48o4uyn+Us0+t789z5G90b5KYuUjx2Y2QX7OXy3pRLv6RbsgnyMfUfY5oi1iNFtQ=="],
- "@medusajs/fulfillment": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-kafOVWzOKkX3ei0hxpsvFy8JUgzq6chlnkv+njPfIbKNHSzoG3s7shHjdcgoXcDEA0TgNw9K+OQdUDnh/9Poaw=="],
+ "@medusajs/fulfillment": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-QwvKcdM4pfnnvUlcEY3E5cEFn6Yv6kiMGOsDildDkVOalFPiW9GfyG2IuZ96u/IAjHeQDgKldTNZCLc2FmpMfQ=="],
- "@medusajs/fulfillment-manual": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-cezQzaZPqXM5BGNa53+5bBH32c7TulM6sYyxF00KG4FoAPbVLXCFXmdkPTwuE6duhF2PymXnm73Sde0gVznm2g=="],
+ "@medusajs/fulfillment-manual": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-FK/gxCnYt1gYn9bX3tQt19H+c8FyIrVUQLxw30h3x7c0JNj5k9rIj9w67aOHYoZlUM7ggVLTSinlsILK7oNfVQ=="],
- "@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1" } }, "sha512-yL4J5hAl8URgYT/rCj1ndTbw1HMTwu1B1CwUtmcXweQqplOnYP6nUr2LrYTH9BkTNeFdLp0uCT8hE+2jtulZnw=="],
+ "@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1" } }, "sha512-oqNE8aAXnZaQ1+mAL2FzSsZIbrf7uxihW5TRaLGF/G+zYylx7OxG93XGX6wCqztuQJJoUrICYaaBilyFRzriXg=="],
- "@medusajs/index": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-yG70QCKIrjCCc23rOt9Py2jK+lZsMFvcd05XB8RHI3gnfNhBUfcpAn97OIIh6+V6NFNSyjPOJyjW4fUcoZ7n3w=="],
+ "@medusajs/index": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-Yj93rDWhOmqAhMLoqUlKu0miWecngTcBHRLI465b0/nJhRxYNYL5JN6AZjyDRHlU0AqJu/X89F4HXNet14AMLg=="],
- "@medusajs/inventory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-wmGWnT75bDZ2Wi8g9rSuI9oqXllq3YKioo9Lrxq/PhdvoQgFJgdfuOVaherWGZPiQupyd9+KChKKVkwjODFLDA=="],
+ "@medusajs/inventory": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-gPy0hvmbJc2Aikf8ksk5aYQgTnWDXACnRt65uGm82O0cMSgrZpAW84BJX6XuC+gYAKhiv9Nsggjx2qJUbtv9sw=="],
- "@medusajs/js-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "fetch-event-stream": "^0.1.5", "qs": "^6.12.1" } }, "sha512-JTXZE8q6kHJvZoat2edGUf7QSDVdOTHSaKQnekFD2cIzO6NRUSK+tRiIk+XQLf7FE9eWUHB/h5v9oQ6i47zhXg=="],
+ "@medusajs/js-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "fetch-event-stream": "^0.1.5", "qs": "^6.12.1" } }, "sha512-OpkGSi0jz5XbywKCGtHhD96zTnE9fVVb+tOuxJWL42cUcdWXOUZ/q4nes7r1bp+JXb67yeDglptd3rdrjtR6cg=="],
- "@medusajs/link-modules": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-aNJfbtSS+FaPhF6AYtpl2FA9lQwwNGk+ZhveKZL121pjlx1ZtVkkmT2LDnE/kBF1Z3QiJ8AgaMYKt/jm3wr5DQ=="],
+ "@medusajs/link-modules": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-7qn9c53TO77oRt/oASiRvIT3/ZAyCJ3/GCRS5ImFDGGJqJ0rVy2FKiT25n6HQq+K+9IFIZaImCMCiwpizcDtPw=="],
- "@medusajs/locking": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-RubXd9I3OeygWThJz7E75RitYN0fw39ogEt0VoW7y0VtZQh4DxojczRgGu6xYCWnIc2EWkcsqusdlkAp/vQ58Q=="],
+ "@medusajs/locking": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-0PV5cqxkzgcft46RVr6ZbKHxisSniWzIU/wtUSIcoHl5cKskvo43DQjEjlOoWAOUz8LJ39k2jg+7lUTWRKrrxg=="],
- "@medusajs/locking-postgres": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-tIYFcOS2KeR/bwy2vJqTxqgN6N7EkNwpicwse4e50k1vN85gXYmNaprjRpDlVy2V1PFRyT17PCP0tyHMMISygw=="],
+ "@medusajs/locking-postgres": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-cgzt9P0GLh9gtQz3sNS3L29VqWpWwxx4PpNSMe5v/XsT+uzb/8QbE/csw1igfZ9N0zlkXeiKyq0gHWkI2VXyTw=="],
- "@medusajs/locking-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-x1+eoRbZu6fAU8WeoQEle/S9uyE5FE7MHIO76Db9Sw58DMrGYCjhfxiNQq5LKTKxTnhAQJtJlKqPKZyq1hibTg=="],
+ "@medusajs/locking-redis": ["@medusajs/[email protected]", "", { "dependencies": { "ioredis": "^5.4.1" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-stId10pl7imEQmC03y9ZAgl1m19YfYXJHINh7Az3gQ+VeATcGbsGGon/gv9ZpXvGXe98s3+D2UL48OFLEDXk2w=="],
- "@medusajs/medusa": ["@medusajs/[email protected]", "", { "dependencies": { "@inquirer/checkbox": "^2.3.11", "@inquirer/input": "^2.2.9", "@medusajs/admin-bundler": "2.13.3", "@medusajs/analytics": "2.13.3", "@medusajs/analytics-local": "2.13.3", "@medusajs/analytics-posthog": "2.13.3", "@medusajs/api-key": "2.13.3", "@medusajs/auth": "2.13.3", "@medusajs/auth-emailpass": "2.13.3", "@medusajs/auth-github": "2.13.3", "@medusajs/auth-google": "2.13.3", "@medusajs/cache-inmemory": "2.13.3", "@medusajs/cache-redis": "2.13.3", "@medusajs/caching": "2.13.3", "@medusajs/caching-redis": "2.13.3", "@medusajs/cart": "2.13.3", "@medusajs/core-flows": "2.13.3", "@medusajs/currency": "2.13.3", "@medusajs/customer": "2.13.3", "@medusajs/draft-order": "2.13.3", "@medusajs/event-bus-local": "2.13.3", "@medusajs/event-bus-redis": "2.13.3", "@medusajs/file": "2.13.3", "@medusajs/file-local": "2.13.3", "@medusajs/file-s3": "2.13.3", "@medusajs/fulfillment": "2.13.3", "@medusajs/fulfillment-manual": "2.13.3", "@medusajs/index": "2.13.3", "@medusajs/inventory": "2.13.3", "@medusajs/link-modules": "2.13.3", "@medusajs/locking": "2.13.3", "@medusajs/locking-postgres": "2.13.3", "@medusajs/locking-redis": "2.13.3", "@medusajs/notification": "2.13.3", "@medusajs/notification-local": "2.13.3", "@medusajs/notification-sendgrid": "2.13.3", "@medusajs/order": "2.13.3", "@medusajs/payment": "2.13.3", "@medusajs/payment-stripe": "2.13.3", "@medusajs/pricing": "2.13.3", "@medusajs/product": "2.13.3", "@medusajs/promotion": "2.13.3", "@medusajs/rbac": "2.13.3", "@medusajs/region": "2.13.3", "@medusajs/sales-channel": "2.13.3", "@medusajs/settings": "2.13.3", "@medusajs/stock-location": "2.13.3", "@medusajs/store": "2.13.3", "@medusajs/tax": "2.13.3", "@medusajs/telemetry": "2.13.3", "@medusajs/translation": "2.13.3", "@medusajs/user": "2.13.3", "@medusajs/workflow-engine-inmemory": "2.13.3", "@medusajs/workflow-engine-redis": "2.13.3", "boxen": "^5.0.1", "chalk": "^4.1.2", "chokidar": "^4.0.3", "compression": "^1.8.0", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "jsonwebtoken": "^9.0.2", "multer": "^2.0.2", "node-schedule": "^2.1.1", "qs": "^6.12.1", "request-ip": "^3.3.0", "slugify": "^1.6.6", "uuid": "^9.0.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3", "@swc/core": "^1.7.28", "posthog-node": "^5.11.0", "react-dom": "^18.3.1", "yalc": "^1.0.0-pre.53" }, "optionalPeers": ["@swc/core", "posthog-node", "react-dom", "yalc"] }, "sha512-MOWiU1+FRKamlCZRESQ8HznBi59XQ90oWhfvXqjoXWbRLXNw+Mrf8GUDYWekpZaP/Qw0ORwv3YLIaRZ7eATwwA=="],
+ "@medusajs/medusa": ["@medusajs/[email protected]", "", { "dependencies": { "@inquirer/checkbox": "^2.3.11", "@inquirer/input": "^2.2.9", "@medusajs/admin-bundler": "2.13.4", "@medusajs/analytics": "2.13.4", "@medusajs/analytics-local": "2.13.4", "@medusajs/analytics-posthog": "2.13.4", "@medusajs/api-key": "2.13.4", "@medusajs/auth": "2.13.4", "@medusajs/auth-emailpass": "2.13.4", "@medusajs/auth-github": "2.13.4", "@medusajs/auth-google": "2.13.4", "@medusajs/cache-inmemory": "2.13.4", "@medusajs/cache-redis": "2.13.4", "@medusajs/caching": "2.13.4", "@medusajs/caching-redis": "2.13.4", "@medusajs/cart": "2.13.4", "@medusajs/core-flows": "2.13.4", "@medusajs/currency": "2.13.4", "@medusajs/customer": "2.13.4", "@medusajs/draft-order": "2.13.4", "@medusajs/event-bus-local": "2.13.4", "@medusajs/event-bus-redis": "2.13.4", "@medusajs/file": "2.13.4", "@medusajs/file-local": "2.13.4", "@medusajs/file-s3": "2.13.4", "@medusajs/fulfillment": "2.13.4", "@medusajs/fulfillment-manual": "2.13.4", "@medusajs/index": "2.13.4", "@medusajs/inventory": "2.13.4", "@medusajs/link-modules": "2.13.4", "@medusajs/locking": "2.13.4", "@medusajs/locking-postgres": "2.13.4", "@medusajs/locking-redis": "2.13.4", "@medusajs/notification": "2.13.4", "@medusajs/notification-local": "2.13.4", "@medusajs/notification-sendgrid": "2.13.4", "@medusajs/order": "2.13.4", "@medusajs/payment": "2.13.4", "@medusajs/payment-stripe": "2.13.4", "@medusajs/pricing": "2.13.4", "@medusajs/product": "2.13.4", "@medusajs/promotion": "2.13.4", "@medusajs/rbac": "2.13.4", "@medusajs/region": "2.13.4", "@medusajs/sales-channel": "2.13.4", "@medusajs/settings": "2.13.4", "@medusajs/stock-location": "2.13.4", "@medusajs/store": "2.13.4", "@medusajs/tax": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/translation": "2.13.4", "@medusajs/user": "2.13.4", "@medusajs/workflow-engine-inmemory": "2.13.4", "@medusajs/workflow-engine-redis": "2.13.4", "boxen": "^5.0.1", "chalk": "^4.1.2", "chokidar": "^4.0.3", "compression": "^1.8.0", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "jsonwebtoken": "^9.0.2", "multer": "^2.0.2", "node-schedule": "^2.1.1", "qs": "^6.12.1", "request-ip": "^3.3.0", "slugify": "^1.6.6", "uuid": "^9.0.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4", "@swc/core": "^1.7.28", "posthog-node": "^5.11.0", "react-dom": "^18.3.1", "yalc": "^1.0.0-pre.53" }, "optionalPeers": ["@swc/core", "posthog-node", "react-dom", "yalc"] }, "sha512-YuGcYp63zijNCyVlVUYTtCHLtMWCJSl0ameHSbJTov4P0PObWT6yT4I4TIx+pwzgrF85T3AxDV6gQzmmDwHupw=="],
- "@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.3", "@medusajs/orchestration": "2.13.3", "@medusajs/utils": "2.13.3" } }, "sha512-yrl8oeHWBLs9MqdhRqNEXR9EIFKE7DzwCJ4AEIDwKaQkJxmw/yh5O/6ypAyXFWAAh83pqJaU+/KDXAbmEnBpYw=="],
+ "@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4" } }, "sha512-QHhlKW0UrYyvwuMaz3Pkgkkb6q02F/M+zS/7gPHiUXaop8EPYaQ+aaT7gun5CkU1VrSm9/Ua52HJdEH9Myz4yw=="],
- "@medusajs/notification": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-ms4gsxeLo79V4kW0Edle9GcwkH1FZFsxheOx8tQTew2rs7LXzweMFXu5+JiP8KcZPlIoKvgc1OuQqiTU3bjPzQ=="],
+ "@medusajs/notification": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-56RmAfsgd5rcLaK3xPpCJ4lnVATCXYumw+QETwOYRNfZgf9MfvbZknG/5OgaqYjAmYFaksO+5jMHZGyG7jP6yA=="],
- "@medusajs/notification-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-61wS0EocLdn9/jUBkrPtnP7Pd83HCGg3VEUAIp6zvxtTQq2Kkf4hvUMo8iVJeWrsg56HHsga8OZEEu+KrMTmuw=="],
+ "@medusajs/notification-local": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-ec92WYFR7jrPVlohilA6kPXuhMB3hjMCcvzyXGuwvlG4sDH2kvGA3KngqBZF4f7IJtDqsUgPzCRtwyVwYbTZng=="],
- "@medusajs/notification-sendgrid": ["@medusajs/[email protected]", "", { "dependencies": { "@sendgrid/mail": "^8.1.6" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-vz/gF3jfvbMmqoXLokoGdYQbhMaIXzkjOapli5h0vCYmdftXy/opqM79LVjEJAwECZ1qvYcF+OvvE4SHDPh5cA=="],
+ "@medusajs/notification-sendgrid": ["@medusajs/[email protected]", "", { "dependencies": { "@sendgrid/mail": "^8.1.6" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-3VGjQy9i2jtcAIvlj1SsyxHDNiAhB0IDuxia+zmmfbhrXdV9or8OQO29dSbOyU8UIHeMfzb1Vmxw4CM5ZypBHg=="],
- "@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.3", "@medusajs/utils": "2.13.3", "ulid": "^2.3.0" } }, "sha512-ghLN+4hQ/dlY+DCSVLkXB9VFH5lCMWQuCGqsYg8t//yM25RiF09CdERs8PpG7Ze0iD+lAB61JC5qtHBswgG9lA=="],
+ "@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-tSBBajULzKbrzU8Fcjxnf7e13n7kVGErZl8avGy1xL1S57nNLk6vrPmft8s/PQA9KpFdWAi8c3GdNwVtm6+7/g=="],
- "@medusajs/order": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-hkcKRPN5brhfMIYJpgUqSdxkVyppGjPUr4TgfDdUmVcchAvuq4X7BTk2D/JupAKp0FRcjD+aXCNA82BJhoBWEg=="],
+ "@medusajs/order": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-Uy9lgGcZQiscLCYoveM16a2spFN7QFYlUx3gf9/R67xfkDku/165OgcRE6jUK8oxtv30tv/XCfWV5c1kSkzmJQ=="],
- "@medusajs/payment": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "19.1.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-8oGTI4L0Jm+kCD1QybvN/RCltRqYOjfeBkSs+UxQdRN3uqSi87iU/NoCLj1K3SjIzKIF8UBuqEeFJn2+fUHeBg=="],
+ "@medusajs/payment": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "19.1.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-gGaFTAqoTdTlQq02NwsYh31lvwtyCQeUvUzmN3Rmp6VX7WRinPm+gndY0l0zjPgjWsdWxu2GQFpwiJg8oznVEQ=="],
- "@medusajs/payment-stripe": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "^15.5.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-AwvAv64NcwC3WaNLjtN9Yli567BBhm1eRoliX2edD8A0+6TChUZ9LVa0HZDsYTm64fKnjGvglSvCnukFwnKnqw=="],
+ "@medusajs/payment-stripe": ["@medusajs/[email protected]", "", { "dependencies": { "stripe": "^15.5.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-5QeocRivdTFrXOv0k+7gWVepCoO+j9kPKeNYAzbk7wOba2rtIuoorzVs1Uvo/78pAN0381Bkp6blN2Eu0OzLXg=="],
- "@medusajs/pricing": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-gkOditxu/sxdQuKISiswV+kvs47BYSrnWsiKSeRJazfCRLZYAH4M61CYkZMiU4cYhf1gxzA8+VvvTZOFsurmpg=="],
+ "@medusajs/pricing": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-ItrCbJCeXndl4I5oq1i2ZsTwkbN0pQ+pkTeB8PJvj4BI61stR2IIMw/M164lkpMrO3E4GnQjHmdVid4qd2/qfQ=="],
- "@medusajs/product": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-5VNVQW53f6AECRfqsqqUFDMZrbjEOTq7shzxZ3oVqCjmlHcpBSsclP7M/aJFQ51pF7Pnkrsh4B+pxjyBq0tf/Q=="],
+ "@medusajs/product": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-toFCqEc+ObULz1s5mmWoaGmfL4oEGyp0qsT0jcqv1yu8iiB6so+npIU9dlYfLLVEPzpzv3J5c69psUBWTRCvrA=="],
- "@medusajs/promotion": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-IGY6eqStXwszrLZw94PxCG4noXspuOax16QamDEGyon4Qn72dLLN3yy0uOznwrVGUMlonifsbECr4kMAKxCR3A=="],
+ "@medusajs/promotion": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-NLqgt5Lxex5ATv5vF1roY7rXpF/SOWGYCmkoi2c8f3sEzGLcb7Qunpisnu7fwNWDpEj+6iX/u2TH/2FEodFttw=="],
- "@medusajs/rbac": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-ZdYaeYPi4a4ZJfVfYjP2VtqZgt1t4UqA7uqEB1qX3Gcxt6nZgmfD34PpZy7r+S6d76cdsD304CETD1VSNJQJnA=="],
+ "@medusajs/rbac": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-zmhJokaqS0t+zNuOMJiEFh4t+y7f3BV1h5rXbvUW5V+2Uzg3WoyG5aDanRWr9JU4/kPyTu6uOxnCuZ/d99fU5Q=="],
- "@medusajs/region": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-AnWh5ETWzXvJAs/QwtyMK0xaOSlcnXPM9eaQzysnHsBiPEq3Tq6x7rnWZtCeFGJ6suF8zct4KX7ML7qjfj58Lw=="],
+ "@medusajs/region": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-GFqP2XTn74mIDJkdK7uEirs+Y4sGO6eCRfAebMVI5erc17U6rjhZ0o56USb5DD79PSPozbhIIW4BV3XmQWDB3g=="],
- "@medusajs/sales-channel": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-EtiXiQVgWChG+D6PZn2ycV9kxCOui7ZUh0hjzPVM1UqI+Bzz71sHyT5HLVgWoyw3mXu1fPcpbisCyeRZisJ4bw=="],
+ "@medusajs/sales-channel": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-TfSEeVMSnPisrH1q4uJNiIHhoRB0WuKBnMAIYKbn+4SRPdHEG9eXEa1w5fkjbZQAGUvjxloBoBGt0hX9nrytsg=="],
- "@medusajs/settings": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-X+07mX/t+3PPt1yztQWj9RGCTNUTwP3ArV75/2DYQUhVjeqdAkfTm2qsMEEpSkdbm7y9g0Ll9ZrkUrcmq5yZKw=="],
+ "@medusajs/settings": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-u7hFxXgWc9i+u+xa1G+J6Sdc8zrt9BI+9/95jnhjJSMY/havGBRX6lwe8L+USlZMC3cZtlm5xOTAosrKZwJGHw=="],
- "@medusajs/stock-location": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-ZY5XqvR+FJ3anEKNv/1TcqFrJMkfcoXsBbyTEPWGBJvVDwZyf2x+85KYvzyuKEDLD5JLstH1S1uFi/dfipXXjw=="],
+ "@medusajs/stock-location": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-5sU8vMnVdBCtViojFPGa6DpReYpyNOc2HoObfZGto84VzCrryvBCHWRAJJD8vi6+vSGoG3KFfnT3no8LdcyAag=="],
- "@medusajs/store": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-g98ogWrDXctrXVIRGf8rqldAHdqcKKhJtKcvrsAr1Sqy7PQduqysqEytlMSlP75zVzFRhXyW1KrGZ3ReLIB4Cw=="],
+ "@medusajs/store": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-ssAP2Ok9ac8wadM0oU980TJd61RktBpdLISt2xJTD/sd/0KDM/JoTGvMO/pDSTzRzA0hYO6D78NR3ls3rAm+pQ=="],
- "@medusajs/tax": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-tdYbT9IR/4gq1sJyaFieCk/tY/iuWUFDkepzvsMLcAQw5Zjdw5m+xSKQoAM55+gzUqZSn4IWXsbwoE2MDFM8IA=="],
+ "@medusajs/tax": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-i0Yd7ncOzIQHofy2N6NFQMkDZF5DZmAmITf8nRyn9hTzUvMurkXVzIgMk6qEY3m24JHaa70Q+ssO4CxR5Sso9w=="],
- "@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-M5D0IHyoDYDGLlBgdaiKMIpBmgkAlbhUT9LIlFskzPh1M3JjSrefWkK57CZt4377h1e8UhOPAHNoCyxlJftztA=="],
+ "@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-EoRFSMt91MFbDfL3A765irZL6MWeixs/npfXHXRtY6CDXL9L6tDhC29JXqFdgSsgW5Qp+qNDVUmoXM1WzF5JaQ=="],
- "@medusajs/test-utils": ["@medusajs/[email protected]", "", { "dependencies": { "@types/express": "^4.17.21", "axios": "^1.13.1", "express": "^4.21.0", "get-port": "^5.1.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/core-flows": "2.13.3", "@medusajs/framework": "2.13.3", "@medusajs/medusa": "2.13.3" }, "optionalPeers": ["@medusajs/core-flows", "@medusajs/medusa"] }, "sha512-Sx5fxdtzkLqa9Tn7uD3nmAXWtTtN2Rur4LSiVyC8/ktAPfxWcRATT4TTnpJzbCdc/8IwARTQu2/r3vrDY5LaRg=="],
+ "@medusajs/test-utils": ["@medusajs/[email protected]", "", { "dependencies": { "@types/express": "^4.17.21", "axios": "^1.13.1", "express": "^4.21.0", "get-port": "^5.1.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/core-flows": "2.13.4", "@medusajs/framework": "2.13.4", "@medusajs/medusa": "2.13.4" }, "optionalPeers": ["@medusajs/core-flows", "@medusajs/medusa"] }, "sha512-j+/TESRzP/DT0RNJyljDmSAODSRK0jGYMb95LH4NKNXr5U7UHWSqQ/12VlMRKAZZL4MDU0zuDeKwXjVNV3/waw=="],
- "@medusajs/translation": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-A+8ZR9IQlGFfUhtwvCnMRON036c8ZRJ2m/X7W2Yrt01pIEH/k6Uvu/+IauzaUSJxBBKFh7cHdZquH+I1h+K9XQ=="],
+ "@medusajs/translation": ["@medusajs/[email protected]", "", { "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-UihO3YYH6fRRMXlFfVlDv5Tw1Kx7MkFBIFtaK74W5brgTYJbD6I1i2mYPtb4lFLEs9eOhyjblwyNIfzburVFBQ=="],
- "@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-MWd4NvpROJ+CvsvTuPxF9RsGKom/KMftYeh19UhB+w+K8OGWTNwfHLLzOvW3sAHhAjTzt+IDxLrxbqGcAcgw/w=="],
+ "@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-tp9jXAwTWC8eN29QcYe9GK78iprJ+K9YnwAfneUdZgn++wHaqnn/gAkrJxRmEiFlB/xgwlDT+49xzbBEqPLTYw=="],
"@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.13.1", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-vNDp6Qer0+vyG9ZoNz94iXQImJkT5gOoSaaX03UzGFxb3Nh+KYD3j86UgHP1lc4ZPbcyr7CpiGYScfv1LaX17w=="],
- "@medusajs/ui-preset": ["@medusajs/[email protected]", "", { "dependencies": { "@tailwindcss/forms": "^0.5.3", "tailwindcss-animate": "^1.0.6" }, "peerDependencies": { "tailwindcss": "^3.4.3" } }, "sha512-x+nHvPecJKHkPFMM1OTmgP/73+iPKNwhC7I2Fmxcy2q+asB8qgAwvJTecKu4kkDkC+R42PQDnFl8/r9xg6HZ+w=="],
+ "@medusajs/ui-preset": ["@medusajs/[email protected]", "", { "dependencies": { "@tailwindcss/forms": "^0.5.3", "tailwindcss-animate": "^1.0.6" }, "peerDependencies": { "tailwindcss": "^3.4.3" } }, "sha512-MnjL9FdmHmsGzkeGG8d22fMom5R9Tk1lyya/tnHQG939W58AkRk3vjND8zsqz6vItsDy046YFAIZBDoCoH0WtQ=="],
- "@medusajs/user": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-YskgJpQ9oRe4mbVVbJTOBswsKhgD4QlH/nNqzXEzRv4kFCP+l8JCseZS7NlHP7r6BxTs50WCXT/sAbbcpeT4Og=="],
+ "@medusajs/user": ["@medusajs/[email protected]", "", { "dependencies": { "jsonwebtoken": "^9.0.2" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-nyuLK63Wf88c6aiwdH5hVyXOfvNyIK5odBi4JjV9SR8jm7sxthChgu99IWK+6dhzaruSpSVt0rz7+AY8zg/qzA=="],
- "@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.3", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-1tRBUxTehkAcJAxFnmlIlHcRIu4JRuir6NuYKX/fITQYB0Gf6a6NV1fu20hS1FfGXClHvh5kDAHR8Dedn+2WiQ=="],
+ "@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.4", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-TxBOePQSVZcY/6KQf7TqXifDZqcxowEK+3g3swubxuXGZHRmVa5cpQOyV0sk8jJeQQVaVh18sl2FsBrB9TygyA=="],
- "@medusajs/workflow-engine-inmemory": ["@medusajs/[email protected]", "", { "dependencies": { "cron-parser": "^4.9.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-sIeD1fffCdLTFhA096r2s4Y2NCPbU+X/F4ec2KcnPXmjtF/ugqALBQ/+J8iWAltNJU/cxkU6QWJ5qyaNZiygew=="],
+ "@medusajs/workflow-engine-inmemory": ["@medusajs/[email protected]", "", { "dependencies": { "cron-parser": "^4.9.0", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-Wz3MGu4hoUjuR/xqmQPOOfCWcslfage/6mYu+P90KiIvii4ezoGwpOzaYiIeALqQJIOmvt5+RmF8WOEeOGQeAA=="],
- "@medusajs/workflow-engine-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.13.3" } }, "sha512-GR5L9+TyoOQ28puCDnnoQoAmsl9ROfgpGP+ehbvCA15B/KLWnmtxKopbpDtrZ6UnfJo/zwEo4zzpli2PdiFxkA=="],
+ "@medusajs/workflow-engine-redis": ["@medusajs/[email protected]", "", { "dependencies": { "bullmq": "5.13.0", "ioredis": "^5.4.1", "ulid": "^2.3.0" }, "peerDependencies": { "@medusajs/framework": "2.13.4" } }, "sha512-/cUUbTU9f+GwZR+o0l7hEKiYLn2SdjsrAElPC+6uJYKTr7wqaGIGSZBRseP2BOIM7wINeZylj7MB9GRn6ojQRA=="],
- "@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.3", "@medusajs/modules-sdk": "2.13.3", "@medusajs/orchestration": "2.13.3", "@medusajs/utils": "2.13.3", "ulid": "^2.3.0" } }, "sha512-OQdekZ4dHbyWwlUd9mqhTnUO1y6bTPIpsbC5dunoRNIV1cqRUqSOwbv+EkVeGanf97z6nJNmrm3T6zLod21a+g=="],
+ "@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-/rX7p6L0RefA3i3ZclrzuZQBWbEsC8VxUIE6LdirZMaImJQhI+/TDyIU5pWQPbcCbPl+chzaPw7KjtXkUpXGig=="],
"@mercurjs/admin": ["@mercurjs/admin@workspace:packages/admin"],
@@ -3515,13 +3519,15 @@
"@jridgewell/remapping/@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
+ "@medusajs/admin-sdk/@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-FLZMxH2pBy8o5XJTifgMTxnY6W8ke1skXr3fX02APjiySCdmegiUnok8u70KGVRQNU7rfPyvApldh9ZffvDNxw=="],
+
"@medusajs/admin-vite-plugin/chokidar": ["[email protected]", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="],
"@medusajs/cli/execa": ["[email protected]", "", { "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.1", "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="],
"@medusajs/cli/ora": ["[email protected]", "", { "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", "cli-cursor": "^3.1.0", "cli-spinners": "^2.5.0", "is-interactive": "^1.0.0", "is-unicode-supported": "^0.1.0", "log-symbols": "^4.1.0", "strip-ansi": "^6.0.0", "wcwidth": "^1.0.1" } }, "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ=="],
- "@medusajs/dashboard/@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.13.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-mvjPFT6yN3I0YElmuSCnbiFnAZ1X4HpVWU46SXKW5PO9raM6Ny/kGDMB3GG2jPGX1Z18CoWAc5rDss8s0deh/g=="],
+ "@medusajs/dashboard/@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.13.4", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-UrXUCsGY3JoRHFfRDzx5hvyH9NI0FlSTkiddeiPLED71lgTqO0MHUrOA7M9cCovM7L8naM3Xn7KY8xPMXDGc5w=="],
"@medusajs/payment/stripe": ["[email protected]", "", { "dependencies": { "qs": "^6.11.0" }, "peerDependencies": { "@types/node": ">=16" }, "optionalPeers": ["@types/node"] }, "sha512-FjgIiE98dMMTNssfdjMvFdD4eZyEzdWAOwPYqzhPRNZeg9ggFWlPXmX1iJKD5pPIwZBaPlC3SayQQkwsPo6/YQ=="],
@@ -3533,20 +3539,10 @@
"@mercurjs/cli/@mercurjs/dashboard-sdk": ["@mercurjs/[email protected]", "", { "dependencies": { "@babel/parser": "7.25.6", "@babel/traverse": "7.25.6", "@babel/types": "7.25.6", "esbuild-register": "^3.6.0" } }, "sha512-Q0W+bOjALdwrwte503rIrEoE0MrMwNe//MtdiGNJAP20jO9VWxTUS0R1bABCT3HHjXP4SDMv3/7C0OcfSVUU2w=="],
- "@mercurjs/client/@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/types": "2.13.4", "@medusajs/utils": "2.13.4", "@medusajs/workflows-sdk": "2.13.4", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.4", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-OoamovYj/hkDyDSfj7zyaO48o4uyn+Us0+t789z5G90b5KYuUjx2Y2QX7OXy3pRLv6RbsgnyMfUfY5oi1iNFtQ=="],
-
- "@mercurjs/core-plugin/@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/types": "2.13.4", "@medusajs/utils": "2.13.4", "@medusajs/workflows-sdk": "2.13.4", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.4", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-OoamovYj/hkDyDSfj7zyaO48o4uyn+Us0+t789z5G90b5KYuUjx2Y2QX7OXy3pRLv6RbsgnyMfUfY5oi1iNFtQ=="],
-
"@mercurjs/dashboard-sdk/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg=="],
"@mercurjs/dashboard-shared/@mercurjs/client": ["@mercurjs/[email protected]", "", { "dependencies": { "@tanstack/react-query": "^5.64.2", "qs": "^6.12.1" }, "peerDependencies": { "typescript": ">=4.8.0" } }, "sha512-K/cFfsuJas2JC7d4aM5MJuYR9O3fgDP1HaNfj25FmAjWvuHpRpDIQTpOBCYuoURftrKOTPzopNvP7zxwue/IXg=="],
- "@mercurjs/integration-tests/@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/types": "2.13.4", "@medusajs/utils": "2.13.4", "@medusajs/workflows-sdk": "2.13.4", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.4", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-OoamovYj/hkDyDSfj7zyaO48o4uyn+Us0+t789z5G90b5KYuUjx2Y2QX7OXy3pRLv6RbsgnyMfUfY5oi1iNFtQ=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/types": "2.13.4", "@medusajs/utils": "2.13.4", "@medusajs/workflows-sdk": "2.13.4", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.4", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-OoamovYj/hkDyDSfj7zyaO48o4uyn+Us0+t789z5G90b5KYuUjx2Y2QX7OXy3pRLv6RbsgnyMfUfY5oi1iNFtQ=="],
-
- "@mercurjs/registry/@medusajs/framework": ["@medusajs/[email protected]", "", { "dependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", "@jercle/yargonaut": "^1.1.5", "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/telemetry": "2.13.4", "@medusajs/types": "2.13.4", "@medusajs/utils": "2.13.4", "@medusajs/workflows-sdk": "2.13.4", "@types/express": "^4.17.21", "chokidar": "^4.0.3", "compression": "^1.8.1", "connect-dynamodb": "^3.0.5", "connect-redis": "5.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", "express": "^4.21.0", "express-session": "^1.17.3", "glob": "11.1.0", "jsonwebtoken": "^9.0.2", "lodash.memoize": "^4.1.2", "morgan": "^1.9.1", "path-to-regexp": "^8.2.0", "tsconfig-paths": "^4.2.0", "zod-validation-error": "3.5.1" }, "peerDependencies": { "@medusajs/cli": "2.13.4", "ioredis": "^5.4.1" }, "optionalPeers": ["ioredis"], "bin": { "medusa-mikro-orm": "dist/mikro-orm-cli/bin.js" } }, "sha512-OoamovYj/hkDyDSfj7zyaO48o4uyn+Us0+t789z5G90b5KYuUjx2Y2QX7OXy3pRLv6RbsgnyMfUfY5oi1iNFtQ=="],
-
"@mercurjs/registry/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg=="],
"@mercurjs/registry/jsonwebtoken": ["[email protected]", "", { "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ=="],
@@ -4141,79 +4137,19 @@
"@medusajs/cli/ora/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
- "@mercurjs/client/@medusajs/framework/@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-wUfNMFaDU3RjAJRg8mIcE/DC2kH7yMcouzIANVIO4SZj6ydF+4dPmbNl1Ysmletr1FQYlfLnFl+lNbjW2d6Fxg=="],
-
- "@mercurjs/client/@medusajs/framework/@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4" } }, "sha512-QHhlKW0UrYyvwuMaz3Pkgkkb6q02F/M+zS/7gPHiUXaop8EPYaQ+aaT7gun5CkU1VrSm9/Ua52HJdEH9Myz4yw=="],
-
- "@mercurjs/client/@medusajs/framework/@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-tSBBajULzKbrzU8Fcjxnf7e13n7kVGErZl8avGy1xL1S57nNLk6vrPmft8s/PQA9KpFdWAi8c3GdNwVtm6+7/g=="],
-
- "@mercurjs/client/@medusajs/framework/@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-EoRFSMt91MFbDfL3A765irZL6MWeixs/npfXHXRtY6CDXL9L6tDhC29JXqFdgSsgW5Qp+qNDVUmoXM1WzF5JaQ=="],
-
- "@mercurjs/client/@medusajs/framework/@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-tp9jXAwTWC8eN29QcYe9GK78iprJ+K9YnwAfneUdZgn++wHaqnn/gAkrJxRmEiFlB/xgwlDT+49xzbBEqPLTYw=="],
-
- "@mercurjs/client/@medusajs/framework/@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.4", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-TxBOePQSVZcY/6KQf7TqXifDZqcxowEK+3g3swubxuXGZHRmVa5cpQOyV0sk8jJeQQVaVh18sl2FsBrB9TygyA=="],
-
- "@mercurjs/client/@medusajs/framework/@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-/rX7p6L0RefA3i3ZclrzuZQBWbEsC8VxUIE6LdirZMaImJQhI+/TDyIU5pWQPbcCbPl+chzaPw7KjtXkUpXGig=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-wUfNMFaDU3RjAJRg8mIcE/DC2kH7yMcouzIANVIO4SZj6ydF+4dPmbNl1Ysmletr1FQYlfLnFl+lNbjW2d6Fxg=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4" } }, "sha512-QHhlKW0UrYyvwuMaz3Pkgkkb6q02F/M+zS/7gPHiUXaop8EPYaQ+aaT7gun5CkU1VrSm9/Ua52HJdEH9Myz4yw=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-tSBBajULzKbrzU8Fcjxnf7e13n7kVGErZl8avGy1xL1S57nNLk6vrPmft8s/PQA9KpFdWAi8c3GdNwVtm6+7/g=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-EoRFSMt91MFbDfL3A765irZL6MWeixs/npfXHXRtY6CDXL9L6tDhC29JXqFdgSsgW5Qp+qNDVUmoXM1WzF5JaQ=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-tp9jXAwTWC8eN29QcYe9GK78iprJ+K9YnwAfneUdZgn++wHaqnn/gAkrJxRmEiFlB/xgwlDT+49xzbBEqPLTYw=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.4", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-TxBOePQSVZcY/6KQf7TqXifDZqcxowEK+3g3swubxuXGZHRmVa5cpQOyV0sk8jJeQQVaVh18sl2FsBrB9TygyA=="],
-
- "@mercurjs/core-plugin/@medusajs/framework/@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-/rX7p6L0RefA3i3ZclrzuZQBWbEsC8VxUIE6LdirZMaImJQhI+/TDyIU5pWQPbcCbPl+chzaPw7KjtXkUpXGig=="],
+ "@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-FLZMxH2pBy8o5XJTifgMTxnY6W8ke1skXr3fX02APjiySCdmegiUnok8u70KGVRQNU7rfPyvApldh9ZffvDNxw=="],
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-wUfNMFaDU3RjAJRg8mIcE/DC2kH7yMcouzIANVIO4SZj6ydF+4dPmbNl1Ysmletr1FQYlfLnFl+lNbjW2d6Fxg=="],
+ "@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/dashboard": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "2.13.3", "@medusajs/icons": "2.13.3", "@medusajs/js-sdk": "2.13.3", "@medusajs/ui": "4.1.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "i18next-http-backend": "2.4.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qs": "^6.12.1", "radix-ui": "1.1.2", "react": "^18.3.1", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-dom": "^18.3.1", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.3", "zod": "3.25.76" } }, "sha512-GlcaO47NJRsY3Wn0DuOYdUWPEz7zS4cumDPNSbe6Okxvb7GzFfvKmADGNIEI2kdf8e2ndaZKzJrihIvuQx7jVQ=="],
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4" } }, "sha512-QHhlKW0UrYyvwuMaz3Pkgkkb6q02F/M+zS/7gPHiUXaop8EPYaQ+aaT7gun5CkU1VrSm9/Ua52HJdEH9Myz4yw=="],
+ "@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1" } }, "sha512-yL4J5hAl8URgYT/rCj1ndTbw1HMTwu1B1CwUtmcXweQqplOnYP6nUr2LrYTH9BkTNeFdLp0uCT8hE+2jtulZnw=="],
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-tSBBajULzKbrzU8Fcjxnf7e13n7kVGErZl8avGy1xL1S57nNLk6vrPmft8s/PQA9KpFdWAi8c3GdNwVtm6+7/g=="],
-
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-EoRFSMt91MFbDfL3A765irZL6MWeixs/npfXHXRtY6CDXL9L6tDhC29JXqFdgSsgW5Qp+qNDVUmoXM1WzF5JaQ=="],
-
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-tp9jXAwTWC8eN29QcYe9GK78iprJ+K9YnwAfneUdZgn++wHaqnn/gAkrJxRmEiFlB/xgwlDT+49xzbBEqPLTYw=="],
-
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.4", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-TxBOePQSVZcY/6KQf7TqXifDZqcxowEK+3g3swubxuXGZHRmVa5cpQOyV0sk8jJeQQVaVh18sl2FsBrB9TygyA=="],
-
- "@mercurjs/integration-tests/@medusajs/framework/@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-/rX7p6L0RefA3i3ZclrzuZQBWbEsC8VxUIE6LdirZMaImJQhI+/TDyIU5pWQPbcCbPl+chzaPw7KjtXkUpXGig=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-wUfNMFaDU3RjAJRg8mIcE/DC2kH7yMcouzIANVIO4SZj6ydF+4dPmbNl1Ysmletr1FQYlfLnFl+lNbjW2d6Fxg=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4" } }, "sha512-QHhlKW0UrYyvwuMaz3Pkgkkb6q02F/M+zS/7gPHiUXaop8EPYaQ+aaT7gun5CkU1VrSm9/Ua52HJdEH9Myz4yw=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-tSBBajULzKbrzU8Fcjxnf7e13n7kVGErZl8avGy1xL1S57nNLk6vrPmft8s/PQA9KpFdWAi8c3GdNwVtm6+7/g=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-EoRFSMt91MFbDfL3A765irZL6MWeixs/npfXHXRtY6CDXL9L6tDhC29JXqFdgSsgW5Qp+qNDVUmoXM1WzF5JaQ=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-tp9jXAwTWC8eN29QcYe9GK78iprJ+K9YnwAfneUdZgn++wHaqnn/gAkrJxRmEiFlB/xgwlDT+49xzbBEqPLTYw=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.4", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-TxBOePQSVZcY/6KQf7TqXifDZqcxowEK+3g3swubxuXGZHRmVa5cpQOyV0sk8jJeQQVaVh18sl2FsBrB9TygyA=="],
-
- "@mercurjs/payout-stripe-connect/@medusajs/framework/@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-/rX7p6L0RefA3i3ZclrzuZQBWbEsC8VxUIE6LdirZMaImJQhI+/TDyIU5pWQPbcCbPl+chzaPw7KjtXkUpXGig=="],
-
- "@mercurjs/registry/@medusajs/framework/@medusajs/deps": ["@medusajs/[email protected]", "", { "dependencies": { "@mikro-orm/cli": "6.4.16", "@mikro-orm/core": "6.4.16", "@mikro-orm/knex": "6.4.16", "@mikro-orm/migrations": "6.4.16", "@mikro-orm/postgresql": "6.4.16", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation-pg": "^0.52.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-node": "^0.200.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "awilix": "^8.0.1", "pg": "^8.16.3", "zod": "3.25.76" } }, "sha512-wUfNMFaDU3RjAJRg8mIcE/DC2kH7yMcouzIANVIO4SZj6ydF+4dPmbNl1Ysmletr1FQYlfLnFl+lNbjW2d6Fxg=="],
-
- "@mercurjs/registry/@medusajs/framework/@medusajs/modules-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4" } }, "sha512-QHhlKW0UrYyvwuMaz3Pkgkkb6q02F/M+zS/7gPHiUXaop8EPYaQ+aaT7gun5CkU1VrSm9/Ua52HJdEH9Myz4yw=="],
-
- "@mercurjs/registry/@medusajs/framework/@medusajs/orchestration": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-tSBBajULzKbrzU8Fcjxnf7e13n7kVGErZl8avGy1xL1S57nNLk6vrPmft8s/PQA9KpFdWAi8c3GdNwVtm6+7/g=="],
-
- "@mercurjs/registry/@medusajs/framework/@medusajs/telemetry": ["@medusajs/[email protected]", "", { "dependencies": { "@babel/runtime": "^7.26.10", "axios": "^1.13.1", "axios-retry": "^3.1.9", "boxen": "^5.0.1", "ci-info": "^3.2.0", "configstore": "^5.0.1", "is-docker": "^2.2.1", "remove-trailing-slash": "^0.1.1", "uuid": "^9.0.0" } }, "sha512-EoRFSMt91MFbDfL3A765irZL6MWeixs/npfXHXRtY6CDXL9L6tDhC29JXqFdgSsgW5Qp+qNDVUmoXM1WzF5JaQ=="],
-
- "@mercurjs/registry/@medusajs/framework/@medusajs/types": ["@medusajs/[email protected]", "", { "dependencies": { "bignumber.js": "^9.1.2" }, "peerDependencies": { "ioredis": "^5.4.1", "vite": "^5.4.21" }, "optionalPeers": ["ioredis", "vite"] }, "sha512-tp9jXAwTWC8eN29QcYe9GK78iprJ+K9YnwAfneUdZgn++wHaqnn/gAkrJxRmEiFlB/xgwlDT+49xzbBEqPLTYw=="],
+ "@mercurjs/registry/jsonwebtoken/jws": ["[email protected]", "", { "dependencies": { "jwa": "^1.4.2", "safe-buffer": "^5.0.1" } }, "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g=="],
- "@mercurjs/registry/@medusajs/framework/@medusajs/utils": ["@medusajs/[email protected]", "", { "dependencies": { "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/typescript": "^4.0.9", "@graphql-tools/merge": "^9.0.7", "@graphql-tools/schema": "^10.0.6", "@medusajs/deps": "2.13.4", "@types/pluralize": "^0.0.33", "bignumber.js": "^9.1.2", "dotenv": "^16.4.5", "dotenv-expand": "^11.0.6", "graphql": "^16.9.0", "jsonwebtoken": "^9.0.2", "pg-connection-string": "^2.7.0", "pluralize": "^8.0.0", "ulid": "^2.3.0" }, "peerDependencies": { "express": "^4.21.0" } }, "sha512-TxBOePQSVZcY/6KQf7TqXifDZqcxowEK+3g3swubxuXGZHRmVa5cpQOyV0sk8jJeQQVaVh18sl2FsBrB9TygyA=="],
+ "@mercurjs/vendor/@mercurjs/dashboard-shared/@medusajs/admin-shared": ["@medusajs/[email protected]", "", {}, "sha512-FLZMxH2pBy8o5XJTifgMTxnY6W8ke1skXr3fX02APjiySCdmegiUnok8u70KGVRQNU7rfPyvApldh9ZffvDNxw=="],
- "@mercurjs/registry/@medusajs/framework/@medusajs/workflows-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "@medusajs/deps": "2.13.4", "@medusajs/modules-sdk": "2.13.4", "@medusajs/orchestration": "2.13.4", "@medusajs/utils": "2.13.4", "ulid": "^2.3.0" } }, "sha512-/rX7p6L0RefA3i3ZclrzuZQBWbEsC8VxUIE6LdirZMaImJQhI+/TDyIU5pWQPbcCbPl+chzaPw7KjtXkUpXGig=="],
+ "@mercurjs/vendor/@mercurjs/dashboard-shared/@medusajs/dashboard": ["@medusajs/[email protected]", "", { "dependencies": { "@ariakit/react": "^0.4.15", "@babel/runtime": "^7.26.10", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/error-message": "^2.0.1", "@hookform/resolvers": "3.4.2", "@medusajs/admin-shared": "2.13.3", "@medusajs/icons": "2.13.3", "@medusajs/js-sdk": "2.13.3", "@medusajs/ui": "4.1.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-query": "5.64.2", "@tanstack/react-table": "8.20.5", "@tanstack/react-virtual": "^3.8.3", "@uiw/react-json-view": "^2.0.0-alpha.17", "cmdk": "^0.2.0", "copy-to-clipboard": "^3.3.3", "date-fns": "^3.6.0", "i18next": "23.7.11", "i18next-browser-languagedetector": "7.2.0", "i18next-http-backend": "2.4.2", "lodash.debounce": "^4.0.8", "lodash.isequal": "^4.5.0", "match-sorter": "^6.3.4", "motion": "^11.15.0", "qs": "^6.12.1", "radix-ui": "1.1.2", "react": "^18.3.1", "react-country-flag": "^3.1.0", "react-currency-input-field": "^3.6.11", "react-dom": "^18.3.1", "react-helmet-async": "^2.0.5", "react-hook-form": "7.49.1", "react-i18next": "13.5.0", "react-jwt": "^1.2.0", "react-router-dom": "6.30.3", "zod": "3.25.76" } }, "sha512-GlcaO47NJRsY3Wn0DuOYdUWPEz7zS4cumDPNSbe6Okxvb7GzFfvKmADGNIEI2kdf8e2ndaZKzJrihIvuQx7jVQ=="],
- "@mercurjs/registry/@medusajs/framework/jsonwebtoken": ["[email protected]", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="],
-
- "@mercurjs/registry/jsonwebtoken/jws": ["[email protected]", "", { "dependencies": { "jwa": "^1.4.2", "safe-buffer": "^5.0.1" } }, "sha512-byiJ0FLRdLdSVSReO/U4E7RoEyOCKnEnEPMjq3HxWtvzLsV08/i5RQKsFVNkCldrCaPr2vDNAOMsfs8T/Hze7g=="],
+ "@mercurjs/vendor/@mercurjs/dashboard-shared/@medusajs/icons": ["@medusajs/[email protected]", "", { "peerDependencies": { "react": "^18.3.1" } }, "sha512-yL4J5hAl8URgYT/rCj1ndTbw1HMTwu1B1CwUtmcXweQqplOnYP6nUr2LrYTH9BkTNeFdLp0uCT8hE+2jtulZnw=="],
"@oclif/errors/fs-extra/jsonfile": ["[email protected]", "", { "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="],
@@ -4587,8 +4523,16 @@
"@medusajs/cli/ora/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+ "@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/dashboard/@medusajs/js-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "fetch-event-stream": "^0.1.5", "qs": "^6.12.1" } }, "sha512-JTXZE8q6kHJvZoat2edGUf7QSDVdOTHSaKQnekFD2cIzO6NRUSK+tRiIk+XQLf7FE9eWUHB/h5v9oQ6i47zhXg=="],
+
+ "@mercurjs/admin/@mercurjs/dashboard-shared/@medusajs/dashboard/@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.13.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-mvjPFT6yN3I0YElmuSCnbiFnAZ1X4HpVWU46SXKW5PO9raM6Ny/kGDMB3GG2jPGX1Z18CoWAc5rDss8s0deh/g=="],
+
"@mercurjs/registry/jsonwebtoken/jws/jwa": ["[email protected]", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw=="],
+ "@mercurjs/vendor/@mercurjs/dashboard-shared/@medusajs/dashboard/@medusajs/js-sdk": ["@medusajs/[email protected]", "", { "dependencies": { "fetch-event-stream": "^0.1.5", "qs": "^6.12.1" } }, "sha512-JTXZE8q6kHJvZoat2edGUf7QSDVdOTHSaKQnekFD2cIzO6NRUSK+tRiIk+XQLf7FE9eWUHB/h5v9oQ6i47zhXg=="],
+
+ "@mercurjs/vendor/@mercurjs/dashboard-shared/@medusajs/dashboard/@medusajs/ui": ["@medusajs/[email protected]", "", { "dependencies": { "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@dnd-kit/utilities": "^3.2.2", "@medusajs/icons": "2.13.3", "@radix-ui/react-dialog": "1.1.4", "@radix-ui/react-dismissable-layer": "1.1.4", "@tanstack/react-table": "8.20.5", "clsx": "^1.2.1", "copy-to-clipboard": "^3.3.3", "cva": "1.0.0-beta.1", "lodash.isequal": "^4.5.0", "prism-react-renderer": "^2.0.6", "prismjs": "^1.30.0", "radix-ui": "1.1.2", "react-aria": "^3.33.1", "react-currency-input-field": "^3.6.11", "react-stately": "^3.31.1", "sonner": "^1.5.0", "tailwind-merge": "^2.2.1" }, "peerDependencies": { "react": "^18.3.1", "react-dom": "^18.3.1" } }, "sha512-mvjPFT6yN3I0YElmuSCnbiFnAZ1X4HpVWU46SXKW5PO9raM6Ny/kGDMB3GG2jPGX1Z18CoWAc5rDss8s0deh/g=="],
+
"@oclif/plugin-help/@oclif/config/@oclif/errors/fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="],
"@oclif/plugin-help/@oclif/config/@oclif/errors/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],
diff --git a/integration-tests/.mercur/_generated/index.ts b/integration-tests/.mercur/_generated/index.ts
new file mode 100644
index 000000000..8cbaf5f08
--- /dev/null
+++ b/integration-tests/.mercur/_generated/index.ts
@@ -0,0 +1,697 @@
+// This file is generated automatically by Mercur CLI
+// Do not edit this file manually
+
+export type Routes = {
+ admin: {
+ apiKeys: typeof import("@medusajs/medusa/api/admin/api-keys/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/api-keys/[id]/route") & {
+ revoke: typeof import("@medusajs/medusa/api/admin/api-keys/[id]/revoke/route");
+ salesChannels: typeof import("@medusajs/medusa/api/admin/api-keys/[id]/sales-channels/route");
+ };
+ };
+ campaigns: typeof import("@medusajs/medusa/api/admin/campaigns/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/campaigns/[id]/route") & {
+ promotions: typeof import("@medusajs/medusa/api/admin/campaigns/[id]/promotions/route");
+ };
+ };
+ claims: typeof import("@medusajs/medusa/api/admin/claims/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/claims/[id]/route") & {
+ cancel: typeof import("@medusajs/medusa/api/admin/claims/[id]/cancel/route");
+ claimItems: typeof import("@medusajs/medusa/api/admin/claims/[id]/claim-items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/claim-items/[action_id]/route");
+ };
+ inbound: {
+ items: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/items/[action_id]/route");
+ };
+ shippingMethod: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/shipping-method/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/inbound/shipping-method/[action_id]/route");
+ };
+ };
+ outbound: {
+ items: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/items/[action_id]/route");
+ };
+ shippingMethod: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/shipping-method/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/claims/[id]/outbound/shipping-method/[action_id]/route");
+ };
+ };
+ request: typeof import("@medusajs/medusa/api/admin/claims/[id]/request/route");
+ };
+ };
+ collections: typeof import("@medusajs/medusa/api/admin/collections/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/collections/[id]/route") & {
+ products: typeof import("@medusajs/medusa/api/admin/collections/[id]/products/route");
+ };
+ };
+ currencies: typeof import("@medusajs/medusa/api/admin/currencies/route") & {
+ $code: typeof import("@medusajs/medusa/api/admin/currencies/[code]/route");
+ };
+ customerGroups: typeof import("@medusajs/medusa/api/admin/customer-groups/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/customer-groups/[id]/route") & {
+ customers: typeof import("@medusajs/medusa/api/admin/customer-groups/[id]/customers/route");
+ };
+ };
+ customers: typeof import("@medusajs/medusa/api/admin/customers/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/customers/[id]/route") & {
+ addresses: typeof import("@medusajs/medusa/api/admin/customers/[id]/addresses/route") & {
+ $addressId: typeof import("@medusajs/medusa/api/admin/customers/[id]/addresses/[address_id]/route");
+ };
+ customerGroups: typeof import("@medusajs/medusa/api/admin/customers/[id]/customer-groups/route");
+ };
+ };
+ draftOrders: typeof import("@medusajs/medusa/api/admin/draft-orders/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/route") & {
+ convertToOrder: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/convert-to-order/route");
+ edit: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/route") & {
+ confirm: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/confirm/route");
+ items: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/items/[action_id]/route");
+ item: {
+ $itemId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/items/item/[item_id]/route");
+ };
+ };
+ promotions: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/promotions/route");
+ request: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/request/route");
+ shippingMethods: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/shipping-methods/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/shipping-methods/[action_id]/route");
+ method: {
+ $methodId: typeof import("@medusajs/medusa/api/admin/draft-orders/[id]/edit/shipping-methods/method/[method_id]/route");
+ };
+ };
+ };
+ };
+ };
+ exchanges: typeof import("@medusajs/medusa/api/admin/exchanges/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/route") & {
+ cancel: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/cancel/route");
+ inbound: {
+ items: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/items/[action_id]/route");
+ };
+ shippingMethod: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/shipping-method/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/inbound/shipping-method/[action_id]/route");
+ };
+ };
+ outbound: {
+ items: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/items/[action_id]/route");
+ };
+ shippingMethod: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/shipping-method/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/outbound/shipping-method/[action_id]/route");
+ };
+ };
+ request: typeof import("@medusajs/medusa/api/admin/exchanges/[id]/request/route");
+ };
+ };
+ featureFlags: typeof import("@medusajs/medusa/api/admin/feature-flags/route");
+ fulfillmentProviders: typeof import("@medusajs/medusa/api/admin/fulfillment-providers/route") & {
+ $id: {
+ options: typeof import("@medusajs/medusa/api/admin/fulfillment-providers/[id]/options/route");
+ };
+ };
+ fulfillmentSets: {
+ $id: typeof import("@medusajs/medusa/api/admin/fulfillment-sets/[id]/route") & {
+ serviceZones: typeof import("@medusajs/medusa/api/admin/fulfillment-sets/[id]/service-zones/route") & {
+ $zoneId: typeof import("@medusajs/medusa/api/admin/fulfillment-sets/[id]/service-zones/[zone_id]/route");
+ };
+ };
+ };
+ fulfillments: typeof import("@medusajs/medusa/api/admin/fulfillments/route") & {
+ $id: {
+ cancel: typeof import("@medusajs/medusa/api/admin/fulfillments/[id]/cancel/route");
+ shipment: typeof import("@medusajs/medusa/api/admin/fulfillments/[id]/shipment/route");
+ };
+ };
+ index: {
+ details: typeof import("@medusajs/medusa/api/admin/index/details/route");
+ sync: typeof import("@medusajs/medusa/api/admin/index/sync/route");
+ };
+ inventoryItems: typeof import("@medusajs/medusa/api/admin/inventory-items/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/route") & {
+ locationLevels: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/location-levels/route") & {
+ $locationId: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/location-levels/[location_id]/route");
+ batch: typeof import("@medusajs/medusa/api/admin/inventory-items/[id]/location-levels/batch/route");
+ };
+ };
+ locationLevels: {
+ batch: typeof import("@medusajs/medusa/api/admin/inventory-items/location-levels/batch/route");
+ };
+ };
+ invites: typeof import("@medusajs/medusa/api/admin/invites/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/invites/[id]/route") & {
+ resend: typeof import("@medusajs/medusa/api/admin/invites/[id]/resend/route");
+ };
+ accept: typeof import("@mercurjs/core-plugin/api/admin/invites/accept/route");
+ };
+ locales: typeof import("@medusajs/medusa/api/admin/locales/route") & {
+ $code: typeof import("@medusajs/medusa/api/admin/locales/[code]/route");
+ };
+ notifications: typeof import("@medusajs/medusa/api/admin/notifications/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/notifications/[id]/route");
+ };
+ orderChanges: {
+ $id: typeof import("@medusajs/medusa/api/admin/order-changes/[id]/route");
+ };
+ orderEdits: typeof import("@medusajs/medusa/api/admin/order-edits/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/route") & {
+ confirm: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/confirm/route");
+ items: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/items/[action_id]/route");
+ item: {
+ $itemId: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/items/item/[item_id]/route");
+ };
+ };
+ request: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/request/route");
+ shippingMethod: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/shipping-method/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/order-edits/[id]/shipping-method/[action_id]/route");
+ };
+ };
+ };
+ orders: typeof import("@mercurjs/core-plugin/api/admin/orders/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/orders/[id]/route") & {
+ archive: typeof import("@medusajs/medusa/api/admin/orders/[id]/archive/route");
+ cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/cancel/route");
+ changes: typeof import("@medusajs/medusa/api/admin/orders/[id]/changes/route");
+ complete: typeof import("@medusajs/medusa/api/admin/orders/[id]/complete/route");
+ creditLines: typeof import("@medusajs/medusa/api/admin/orders/[id]/credit-lines/route");
+ fulfillments: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/route") & {
+ $fulfillmentId: {
+ cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");
+ markAsDelivered: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");
+ shipments: typeof import("@medusajs/medusa/api/admin/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");
+ };
+ };
+ lineItems: typeof import("@medusajs/medusa/api/admin/orders/[id]/line-items/route");
+ preview: typeof import("@medusajs/medusa/api/admin/orders/[id]/preview/route");
+ shippingOptions: typeof import("@medusajs/medusa/api/admin/orders/[id]/shipping-options/route");
+ transfer: typeof import("@medusajs/medusa/api/admin/orders/[id]/transfer/route") & {
+ cancel: typeof import("@medusajs/medusa/api/admin/orders/[id]/transfer/cancel/route");
+ };
+ };
+ export: typeof import("@medusajs/medusa/api/admin/orders/export/route");
+ };
+ paymentCollections: typeof import("@medusajs/medusa/api/admin/payment-collections/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/payment-collections/[id]/route") & {
+ markAsPaid: typeof import("@medusajs/medusa/api/admin/payment-collections/[id]/mark-as-paid/route");
+ };
+ };
+ payments: typeof import("@medusajs/medusa/api/admin/payments/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/payments/[id]/route") & {
+ capture: typeof import("@medusajs/medusa/api/admin/payments/[id]/capture/route");
+ refund: typeof import("@medusajs/medusa/api/admin/payments/[id]/refund/route");
+ };
+ paymentProviders: typeof import("@medusajs/medusa/api/admin/payments/payment-providers/route");
+ };
+ plugins: typeof import("@medusajs/medusa/api/admin/plugins/route");
+ priceLists: typeof import("@medusajs/medusa/api/admin/price-lists/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/route") & {
+ prices: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/prices/route") & {
+ batch: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/prices/batch/route");
+ };
+ products: typeof import("@medusajs/medusa/api/admin/price-lists/[id]/products/route");
+ };
+ };
+ pricePreferences: typeof import("@medusajs/medusa/api/admin/price-preferences/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/price-preferences/[id]/route");
+ };
+ productCategories: typeof import("@medusajs/medusa/api/admin/product-categories/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/product-categories/[id]/route") & {
+ products: typeof import("@medusajs/medusa/api/admin/product-categories/[id]/products/route");
+ };
+ };
+ productTags: typeof import("@medusajs/medusa/api/admin/product-tags/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/product-tags/[id]/route");
+ };
+ productTypes: typeof import("@medusajs/medusa/api/admin/product-types/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/product-types/[id]/route");
+ };
+ productVariants: typeof import("@medusajs/medusa/api/admin/product-variants/route");
+ products: typeof import("@mercurjs/core-plugin/api/admin/products/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/products/[id]/route") & {
+ images: {
+ $imageId: {
+ variants: {
+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/images/[image_id]/variants/batch/route");
+ };
+ };
+ };
+ options: typeof import("@medusajs/medusa/api/admin/products/[id]/options/route") & {
+ $optionId: typeof import("@medusajs/medusa/api/admin/products/[id]/options/[option_id]/route");
+ };
+ variants: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/route") & {
+ $variantId: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/route") & {
+ images: {
+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/images/batch/route");
+ };
+ inventoryItems: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/inventory-items/route") & {
+ $inventoryItemId: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/[variant_id]/inventory-items/[inventory_item_id]/route");
+ };
+ };
+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/batch/route");
+ inventoryItems: {
+ batch: typeof import("@medusajs/medusa/api/admin/products/[id]/variants/inventory-items/batch/route");
+ };
+ };
+ };
+ batch: typeof import("@medusajs/medusa/api/admin/products/batch/route");
+ export: typeof import("@medusajs/medusa/api/admin/products/export/route");
+ import: typeof import("@medusajs/medusa/api/admin/products/import/route") & {
+ $transactionId: {
+ confirm: typeof import("@medusajs/medusa/api/admin/products/import/[transaction_id]/confirm/route");
+ };
+ };
+ imports: typeof import("@medusajs/medusa/api/admin/products/imports/route") & {
+ $transactionId: {
+ confirm: typeof import("@medusajs/medusa/api/admin/products/imports/[transaction_id]/confirm/route");
+ };
+ };
+ };
+ promotions: typeof import("@medusajs/medusa/api/admin/promotions/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/promotions/[id]/route") & {
+ $ruleType: typeof import("@medusajs/medusa/api/admin/promotions/[id]/[rule_type]/route");
+ buyRules: {
+ batch: typeof import("@medusajs/medusa/api/admin/promotions/[id]/buy-rules/batch/route");
+ };
+ rules: {
+ batch: typeof import("@medusajs/medusa/api/admin/promotions/[id]/rules/batch/route");
+ };
+ targetRules: {
+ batch: typeof import("@medusajs/medusa/api/admin/promotions/[id]/target-rules/batch/route");
+ };
+ };
+ ruleAttributeOptions: {
+ $ruleType: typeof import("@medusajs/medusa/api/admin/promotions/rule-attribute-options/[rule_type]/route");
+ };
+ ruleValueOptions: {
+ $ruleType: {
+ $ruleAttributeId: typeof import("@medusajs/medusa/api/admin/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");
+ };
+ };
+ };
+ rbac: {
+ policies: typeof import("@medusajs/medusa/api/admin/rbac/policies/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/rbac/policies/[id]/route");
+ };
+ roles: typeof import("@medusajs/medusa/api/admin/rbac/roles/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/rbac/roles/[id]/route") & {
+ policies: typeof import("@medusajs/medusa/api/admin/rbac/roles/[id]/policies/route") & {
+ $policyId: typeof import("@medusajs/medusa/api/admin/rbac/roles/[id]/policies/[policy_id]/route");
+ };
+ };
+ };
+ };
+ refundReasons: typeof import("@medusajs/medusa/api/admin/refund-reasons/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/refund-reasons/[id]/route");
+ };
+ regions: typeof import("@medusajs/medusa/api/admin/regions/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/regions/[id]/route");
+ };
+ reservations: typeof import("@medusajs/medusa/api/admin/reservations/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/reservations/[id]/route");
+ };
+ returnReasons: typeof import("@medusajs/medusa/api/admin/return-reasons/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/return-reasons/[id]/route");
+ };
+ returns: typeof import("@medusajs/medusa/api/admin/returns/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/returns/[id]/route") & {
+ cancel: typeof import("@medusajs/medusa/api/admin/returns/[id]/cancel/route");
+ dismissItems: typeof import("@medusajs/medusa/api/admin/returns/[id]/dismiss-items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/dismiss-items/[action_id]/route");
+ };
+ receive: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive/route") & {
+ confirm: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive/confirm/route");
+ };
+ receiveItems: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive-items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/receive-items/[action_id]/route");
+ };
+ request: typeof import("@medusajs/medusa/api/admin/returns/[id]/request/route");
+ requestItems: typeof import("@medusajs/medusa/api/admin/returns/[id]/request-items/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/request-items/[action_id]/route");
+ };
+ shippingMethod: typeof import("@medusajs/medusa/api/admin/returns/[id]/shipping-method/route") & {
+ $actionId: typeof import("@medusajs/medusa/api/admin/returns/[id]/shipping-method/[action_id]/route");
+ };
+ };
+ };
+ salesChannels: typeof import("@medusajs/medusa/api/admin/sales-channels/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/sales-channels/[id]/route") & {
+ products: typeof import("@medusajs/medusa/api/admin/sales-channels/[id]/products/route");
+ };
+ };
+ shippingOptionTypes: typeof import("@medusajs/medusa/api/admin/shipping-option-types/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/shipping-option-types/[id]/route");
+ };
+ shippingOptions: typeof import("@medusajs/medusa/api/admin/shipping-options/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/shipping-options/[id]/route") & {
+ rules: {
+ batch: typeof import("@medusajs/medusa/api/admin/shipping-options/[id]/rules/batch/route");
+ };
+ };
+ };
+ shippingProfiles: typeof import("@medusajs/medusa/api/admin/shipping-profiles/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/shipping-profiles/[id]/route");
+ };
+ stockLocations: typeof import("@medusajs/medusa/api/admin/stock-locations/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/route") & {
+ fulfillmentProviders: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/fulfillment-providers/route");
+ fulfillmentSets: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/fulfillment-sets/route");
+ salesChannels: typeof import("@medusajs/medusa/api/admin/stock-locations/[id]/sales-channels/route");
+ };
+ };
+ stores: typeof import("@medusajs/medusa/api/admin/stores/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/stores/[id]/route");
+ };
+ taxProviders: typeof import("@medusajs/medusa/api/admin/tax-providers/route");
+ taxRates: typeof import("@medusajs/medusa/api/admin/tax-rates/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/tax-rates/[id]/route") & {
+ rules: typeof import("@medusajs/medusa/api/admin/tax-rates/[id]/rules/route") & {
+ $ruleId: typeof import("@medusajs/medusa/api/admin/tax-rates/[id]/rules/[rule_id]/route");
+ };
+ };
+ };
+ taxRegions: typeof import("@medusajs/medusa/api/admin/tax-regions/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/tax-regions/[id]/route");
+ };
+ translations: typeof import("@medusajs/medusa/api/admin/translations/route") & {
+ batch: typeof import("@medusajs/medusa/api/admin/translations/batch/route");
+ entities: typeof import("@medusajs/medusa/api/admin/translations/entities/route");
+ settings: typeof import("@medusajs/medusa/api/admin/translations/settings/route") & {
+ batch: typeof import("@medusajs/medusa/api/admin/translations/settings/batch/route");
+ };
+ statistics: typeof import("@medusajs/medusa/api/admin/translations/statistics/route");
+ };
+ uploads: typeof import("@medusajs/medusa/api/admin/uploads/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/uploads/[id]/route");
+ presignedUrls: typeof import("@medusajs/medusa/api/admin/uploads/presigned-urls/route");
+ };
+ users: typeof import("@medusajs/medusa/api/admin/users/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/users/[id]/route");
+ me: typeof import("@medusajs/medusa/api/admin/users/me/route");
+ };
+ views: {
+ $entity: {
+ columns: typeof import("@medusajs/medusa/api/admin/views/[entity]/columns/route");
+ configurations: typeof import("@medusajs/medusa/api/admin/views/[entity]/configurations/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/views/[entity]/configurations/[id]/route");
+ active: typeof import("@medusajs/medusa/api/admin/views/[entity]/configurations/active/route");
+ };
+ };
+ };
+ workflowsExecutions: typeof import("@medusajs/medusa/api/admin/workflows-executions/route") & {
+ $id: typeof import("@medusajs/medusa/api/admin/workflows-executions/[id]/route");
+ $workflowId: {
+ $transactionId: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/[transaction_id]/route") & {
+ $stepId: {
+ subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/[transaction_id]/[step_id]/subscribe/route");
+ };
+ };
+ run: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/run/route");
+ steps: {
+ failure: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/steps/failure/route");
+ success: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/steps/success/route");
+ };
+ subscribe: typeof import("@medusajs/medusa/api/admin/workflows-executions/[workflow_id]/subscribe/route");
+ };
+ };
+ commissionRates: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/route") & {
+ rules: typeof import("@mercurjs/core-plugin/api/admin/commission-rates/[id]/rules/route");
+ };
+ };
+ orderGroups: typeof import("@mercurjs/core-plugin/api/admin/order-groups/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/admin/order-groups/[id]/route");
+ };
+ payouts: typeof import("@mercurjs/core-plugin/api/admin/payouts/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/admin/payouts/[id]/route");
+ };
+ sellers: typeof import("@mercurjs/core-plugin/api/admin/sellers/route") & {
+ invite: typeof import("@mercurjs/core-plugin/api/admin/sellers/invite/route");
+ $id: typeof import("@mercurjs/core-plugin/api/admin/sellers/[id]/route");
+ };
+ };
+ auth: {
+ $actorType: {
+ $authProvider: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/route") & {
+ callback: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/callback/route");
+ register: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/register/route");
+ resetPassword: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/reset-password/route");
+ update: typeof import("@medusajs/medusa/api/auth/[actor_type]/[auth_provider]/update/route");
+ };
+ };
+ session: typeof import("@medusajs/medusa/api/auth/session/route");
+ token: {
+ refresh: typeof import("@medusajs/medusa/api/auth/token/refresh/route");
+ };
+ };
+ store: {
+ carts: typeof import("@medusajs/medusa/api/store/carts/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/carts/[id]/route") & {
+ complete: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/complete/route");
+ customer: typeof import("@medusajs/medusa/api/store/carts/[id]/customer/route");
+ lineItems: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/route") & {
+ $lineId: typeof import("@medusajs/medusa/api/store/carts/[id]/line-items/[line_id]/route");
+ };
+ promotions: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/promotions/route");
+ shippingMethods: typeof import("@mercurjs/core-plugin/api/store/carts/[id]/shipping-methods/route");
+ taxes: typeof import("@medusajs/medusa/api/store/carts/[id]/taxes/route");
+ };
+ };
+ collections: typeof import("@medusajs/medusa/api/store/collections/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/collections/[id]/route");
+ };
+ currencies: typeof import("@medusajs/medusa/api/store/currencies/route") & {
+ $code: typeof import("@medusajs/medusa/api/store/currencies/[code]/route");
+ };
+ customers: typeof import("@medusajs/medusa/api/store/customers/route") & {
+ me: typeof import("@medusajs/medusa/api/store/customers/me/route") & {
+ addresses: typeof import("@medusajs/medusa/api/store/customers/me/addresses/route") & {
+ $addressId: typeof import("@medusajs/medusa/api/store/customers/me/addresses/[address_id]/route");
+ };
+ };
+ };
+ locales: typeof import("@medusajs/medusa/api/store/locales/route");
+ orders: typeof import("@medusajs/medusa/api/store/orders/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/orders/[id]/route") & {
+ transfer: {
+ accept: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/accept/route");
+ cancel: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/cancel/route");
+ decline: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/decline/route");
+ request: typeof import("@medusajs/medusa/api/store/orders/[id]/transfer/request/route");
+ };
+ };
+ };
+ paymentCollections: typeof import("@medusajs/medusa/api/store/payment-collections/route") & {
+ $id: {
+ paymentSessions: typeof import("@medusajs/medusa/api/store/payment-collections/[id]/payment-sessions/route");
+ };
+ };
+ paymentProviders: typeof import("@medusajs/medusa/api/store/payment-providers/route");
+ productCategories: typeof import("@medusajs/medusa/api/store/product-categories/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/product-categories/[id]/route");
+ };
+ productTags: typeof import("@medusajs/medusa/api/store/product-tags/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/product-tags/[id]/route");
+ };
+ productTypes: typeof import("@medusajs/medusa/api/store/product-types/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/product-types/[id]/route");
+ };
+ productVariants: typeof import("@medusajs/medusa/api/store/product-variants/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/product-variants/[id]/route");
+ };
+ products: typeof import("@medusajs/medusa/api/store/products/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/products/[id]/route");
+ };
+ regions: typeof import("@medusajs/medusa/api/store/regions/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/regions/[id]/route");
+ };
+ returnReasons: typeof import("@medusajs/medusa/api/store/return-reasons/route") & {
+ $id: typeof import("@medusajs/medusa/api/store/return-reasons/[id]/route");
+ };
+ returns: typeof import("@medusajs/medusa/api/store/returns/route");
+ shippingOptions: typeof import("@mercurjs/core-plugin/api/store/shipping-options/route") & {
+ $id: {
+ calculate: typeof import("@medusajs/medusa/api/store/shipping-options/[id]/calculate/route");
+ };
+ };
+ orderGroups: typeof import("@mercurjs/core-plugin/api/store/order-groups/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/store/order-groups/[id]/route");
+ };
+ sellers: typeof import("@mercurjs/core-plugin/api/store/sellers/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/store/sellers/[id]/route");
+ };
+ };
+ vendor: {
+ campaigns: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/route") & {
+ promotions: typeof import("@mercurjs/core-plugin/api/vendor/campaigns/[id]/promotions/route");
+ };
+ };
+ collections: typeof import("@mercurjs/core-plugin/api/vendor/collections/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/route") & {
+ products: typeof import("@mercurjs/core-plugin/api/vendor/collections/[id]/products/route");
+ };
+ };
+ currencies: typeof import("@mercurjs/core-plugin/api/vendor/currencies/route") & {
+ $code: typeof import("@mercurjs/core-plugin/api/vendor/currencies/[code]/route");
+ };
+ customers: typeof import("@mercurjs/core-plugin/api/vendor/customers/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/customers/[id]/route");
+ };
+ fulfillmentSets: {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/route") & {
+ serviceZones: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/route") & {
+ $zoneId: typeof import("@mercurjs/core-plugin/api/vendor/fulfillment-sets/[id]/service-zones/[zone_id]/route");
+ };
+ };
+ };
+ inventoryItems: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/route") & {
+ locationLevels: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/route") & {
+ $locationId: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/[location_id]/route");
+ batch: typeof import("@mercurjs/core-plugin/api/vendor/inventory-items/[id]/location-levels/batch/route");
+ };
+ };
+ };
+ orders: typeof import("@mercurjs/core-plugin/api/vendor/orders/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/route") & {
+ cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/cancel/route");
+ changes: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/changes/route");
+ complete: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/complete/route");
+ fulfillments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/route") & {
+ $fulfillmentId: {
+ cancel: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/cancel/route");
+ markAsDelivered: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/mark-as-delivered/route");
+ shipments: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/fulfillments/[fulfillment_id]/shipments/route");
+ };
+ };
+ preview: typeof import("@mercurjs/core-plugin/api/vendor/orders/[id]/preview/route");
+ };
+ };
+ payments: typeof import("@mercurjs/core-plugin/api/vendor/payments/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/route") & {
+ capture: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/capture/route");
+ refund: typeof import("@mercurjs/core-plugin/api/vendor/payments/[id]/refund/route");
+ };
+ paymentProviders: typeof import("@mercurjs/core-plugin/api/vendor/payments/payment-providers/route");
+ };
+ payoutAccounts: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/route") & {
+ onboarding: typeof import("@mercurjs/core-plugin/api/vendor/payout-accounts/[id]/onboarding/route");
+ };
+ };
+ payouts: typeof import("@mercurjs/core-plugin/api/vendor/payouts/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/payouts/[id]/route");
+ };
+ priceLists: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/route") & {
+ products: typeof import("@mercurjs/core-plugin/api/vendor/price-lists/[id]/products/route");
+ };
+ };
+ pricePreferences: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/price-preferences/[id]/route");
+ };
+ productCategories: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/route") & {
+ products: typeof import("@mercurjs/core-plugin/api/vendor/product-categories/[id]/products/route");
+ };
+ };
+ productTags: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/product-tags/[id]/route");
+ };
+ productTypes: typeof import("@mercurjs/core-plugin/api/vendor/product-types/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/product-types/[id]/route");
+ };
+ products: typeof import("@mercurjs/core-plugin/api/vendor/products/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/route") & {
+ options: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/route") & {
+ $optionId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/options/[option_id]/route");
+ };
+ variants: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/route") & {
+ $variantId: typeof import("@mercurjs/core-plugin/api/vendor/products/[id]/variants/[variant_id]/route");
+ };
+ };
+ };
+ promotions: typeof import("@mercurjs/core-plugin/api/vendor/promotions/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/route") & {
+ $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/[rule_type]/route");
+ buyRules: {
+ batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/buy-rules/batch/route");
+ };
+ rules: {
+ batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/rules/batch/route");
+ };
+ targetRules: {
+ batch: typeof import("@mercurjs/core-plugin/api/vendor/promotions/[id]/target-rules/batch/route");
+ };
+ };
+ ruleAttributeOptions: {
+ $ruleType: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-attribute-options/[rule_type]/route");
+ };
+ ruleValueOptions: {
+ $ruleType: {
+ $ruleAttributeId: typeof import("@mercurjs/core-plugin/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route");
+ };
+ };
+ };
+ refundReasons: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/refund-reasons/[id]/route");
+ };
+ regions: typeof import("@mercurjs/core-plugin/api/vendor/regions/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/regions/[id]/route");
+ };
+ returnReasons: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/return-reasons/[id]/route");
+ };
+ returns: typeof import("@mercurjs/core-plugin/api/vendor/returns/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/route") & {
+ cancel: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/cancel/route");
+ dismissItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/route") & {
+ $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/dismiss-items/[action_id]/route");
+ };
+ receive: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/route") & {
+ confirm: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive/confirm/route");
+ };
+ receiveItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/route") & {
+ $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/receive-items/[action_id]/route");
+ };
+ request: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request/route");
+ requestItems: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/route") & {
+ $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/request-items/[action_id]/route");
+ };
+ shippingMethod: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/route") & {
+ $actionId: typeof import("@mercurjs/core-plugin/api/vendor/returns/[id]/shipping-method/[action_id]/route");
+ };
+ };
+ };
+ salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/route") & {
+ products: typeof import("@mercurjs/core-plugin/api/vendor/sales-channels/[id]/products/route");
+ };
+ };
+ sellers: typeof import("@mercurjs/core-plugin/api/vendor/sellers/route") & {
+ me: typeof import("@mercurjs/core-plugin/api/vendor/sellers/me/route");
+ };
+ shippingOptionTypes: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-option-types/[id]/route");
+ };
+ shippingOptions: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/route") & {
+ rules: {
+ batch: typeof import("@mercurjs/core-plugin/api/vendor/shipping-options/[id]/rules/batch/route");
+ };
+ };
+ };
+ shippingProfiles: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/shipping-profiles/[id]/route");
+ };
+ stockLocations: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/route") & {
+ $id: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/route") & {
+ fulfillmentProviders: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-providers/route");
+ fulfillmentSets: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/fulfillment-sets/route");
+ salesChannels: typeof import("@mercurjs/core-plugin/api/vendor/stock-locations/[id]/sales-channels/route");
+ };
+ };
+ uploads: typeof import("@mercurjs/core-plugin/api/vendor/uploads/route");
+ };
+};
diff --git a/integration-tests/helpers/create-seller-user.ts b/integration-tests/helpers/create-seller-user.ts
index fd8233dfc..83ca710aa 100644
--- a/integration-tests/helpers/create-seller-user.ts
+++ b/integration-tests/helpers/create-seller-user.ts
@@ -8,6 +8,7 @@ import {
} from "@medusajs/framework/utils"
import jwt from "jsonwebtoken"
import Scrypt from "scrypt-kdf"
+import { createSellersWorkflow } from "@mercurjs/core-plugin/workflows"
export const vendorHeaders = {
headers: { "x-medusa-access-token": "test_token" },
@@ -22,12 +23,31 @@ export const createSellerUser = async (
const authModule: IAuthModuleService = container.resolve(Modules.AUTH)
- const sellerModule = container.resolve("seller")
+ const { result: sellers } = await createSellersWorkflow(container).run({
+ input: {
+ sellers: [
+ {
+ name,
+ email,
+ currency_code: "usd",
+ member: { email },
+ },
+ ],
+ },
+ })
+
+ const seller = sellers[0]
- const seller = await sellerModule.createSellers({
- name,
- email
+ const query = container.resolve(ContainerRegistrationKeys.QUERY)
+
+ const { data: members } = await query.graph({
+ entity: "member",
+ fields: ["id"],
+ filters: { email },
})
+
+ const member = members[0]
+
const hashConfig = { logN: 15, r: 8, p: 1 }
const passwordHash = await Scrypt.kdf("somepassword", hashConfig)
@@ -42,7 +62,7 @@ export const createSellerUser = async (
},
],
app_metadata: {
- seller_id: seller.id,
+ member_id: member.id,
},
})
@@ -51,8 +71,8 @@ export const createSellerUser = async (
const { jwtSecret, jwtOptions } = projectConfig.http
const token = jwt.sign(
{
- actor_id: seller.id,
- actor_type: "seller",
+ actor_id: member.id,
+ actor_type: "member",
auth_identity_id: authIdentity.id,
},
jwtSecret,
@@ -63,12 +83,14 @@ export const createSellerUser = async (
)
vendorHeaders.headers["authorization"] = `Bearer ${token}`
+ vendorHeaders.headers["x-seller-id"] = seller.id
const headers = {
headers: {
authorization: `Bearer ${token}`,
+ "x-seller-id": seller.id,
},
}
- return { seller, authIdentity, headers }
+ return { seller, member, authIdentity, headers }
}
diff --git a/integration-tests/http/seller/admin/seller.spec.ts b/integration-tests/http/seller/admin/seller.spec.ts
deleted file mode 100644
index a555b9b5d..000000000
--- a/integration-tests/http/seller/admin/seller.spec.ts
+++ /dev/null
@@ -1,281 +0,0 @@
-import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
-import { MedusaContainer } from "@medusajs/framework/types"
-import { adminHeaders, createAdminUser } from "../../../helpers/create-admin-user"
-import { createSellerUser } from "../../../helpers/create-seller-user"
-
-jest.setTimeout(50000)
-
-medusaIntegrationTestRunner({
- testSuite: ({ getContainer, api, dbConnection }) => {
- describe("Admin - Sellers", () => {
- let appContainer: MedusaContainer
- let seller1: any
- let seller2: any
- let seller3: any
-
- beforeAll(async () => {
- appContainer = getContainer()
- })
-
- beforeEach(async () => {
- await createAdminUser(dbConnection, adminHeaders, appContainer)
-
- // Create multiple sellers for testing
- const result1 = await createSellerUser(appContainer, {
- email: "[email protected]",
- name: "Alpha Seller",
- })
- seller1 = result1.seller
-
- const result2 = await createSellerUser(appContainer, {
- email: "[email protected]",
- name: "Beta Seller",
- })
- seller2 = result2.seller
-
- const result3 = await createSellerUser(appContainer, {
- email: "[email protected]",
- name: "Gamma Seller",
- })
- seller3 = result3.seller
- })
-
- describe("GET /admin/sellers", () => {
- it("should list all sellers", async () => {
- const response = await api.get(`/admin/sellers`, adminHeaders)
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toBeDefined()
- expect(Array.isArray(response.data.sellers)).toBe(true)
- expect(response.data.count).toBeGreaterThanOrEqual(3)
- expect(response.data.offset).toBeDefined()
- expect(response.data.limit).toBeDefined()
- })
-
- it("should return sellers with correct fields", async () => {
- const response = await api.get(`/admin/sellers`, adminHeaders)
-
- expect(response.status).toEqual(200)
- const seller = response.data.sellers.find((s: any) => s.id === seller1.id)
-
- expect(seller).toEqual(
- expect.objectContaining({
- id: seller1.id,
- name: "Alpha Seller",
- email: "[email protected]",
- })
- )
- })
-
- it("should filter sellers by id", async () => {
- const response = await api.get(
- `/admin/sellers?id=${seller1.id}`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0].id).toEqual(seller1.id)
- })
-
- it("should filter sellers by multiple ids", async () => {
- const response = await api.get(
- `/admin/sellers?id[]=${seller1.id}&id[]=${seller2.id}`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(2)
- const sellerIds = response.data.sellers.map((s: any) => s.id)
- expect(sellerIds).toContain(seller1.id)
- expect(sellerIds).toContain(seller2.id)
- })
-
- it("should filter sellers by name", async () => {
- const response = await api.get(
- `/admin/sellers?name=Alpha Seller`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0].name).toEqual("Alpha Seller")
- })
-
- it("should filter sellers by email", async () => {
- const response = await api.get(
- `/admin/[email protected]`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0].email).toEqual("[email protected]")
- })
-
- it("should search sellers with q parameter", async () => {
- const response = await api.get(
- `/admin/sellers?q=Beta`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers.length).toBeGreaterThanOrEqual(1)
- const hasBetaSeller = response.data.sellers.some(
- (s: any) => s.name === "Beta Seller"
- )
- expect(hasBetaSeller).toBe(true)
- })
-
- it("should paginate sellers with limit", async () => {
- const response = await api.get(
- `/admin/sellers?limit=2`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers.length).toBeLessThanOrEqual(2)
- expect(response.data.limit).toEqual(2)
- })
-
- it("should paginate sellers with offset", async () => {
- const firstPage = await api.get(
- `/admin/sellers?limit=1&offset=0`,
- adminHeaders
- )
-
- const secondPage = await api.get(
- `/admin/sellers?limit=1&offset=1`,
- adminHeaders
- )
-
- expect(firstPage.status).toEqual(200)
- expect(secondPage.status).toEqual(200)
- expect(firstPage.data.sellers[0].id).not.toEqual(
- secondPage.data.sellers[0].id
- )
- })
-
- it("should select specific fields", async () => {
- const response = await api.get(
- `/admin/sellers?fields=id,name`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers.length).toBeGreaterThan(0)
-
- const seller = response.data.sellers[0]
- expect(seller.id).toBeDefined()
- expect(seller.name).toBeDefined()
- })
-
- it("should return empty array when no sellers match filter", async () => {
- const response = await api.get(
- `/admin/sellers?name=NonExistentSeller`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(0)
- expect(response.data.count).toEqual(0)
- })
- })
-
- describe("GET /admin/sellers/:id", () => {
- it("should get a seller by id", async () => {
- const response = await api.get(
- `/admin/sellers/${seller1.id}`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller).toEqual(
- expect.objectContaining({
- id: seller1.id,
- name: "Alpha Seller",
- email: "[email protected]",
- })
- )
- })
-
- it("should return seller with all default fields", async () => {
- const response = await api.get(
- `/admin/sellers/${seller1.id}`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- const seller = response.data.seller
-
- expect(seller).toHaveProperty("id")
- expect(seller).toHaveProperty("name")
- expect(seller).toHaveProperty("email")
- expect(seller).toHaveProperty("created_at")
- expect(seller).toHaveProperty("updated_at")
- })
-
- it("should return 404 for non-existent seller", async () => {
- const response = await api
- .get(`/admin/sellers/non_existent_id`, adminHeaders)
- .catch((e) => e.response)
-
- expect(response.status).toEqual(404)
- })
-
- it("should select specific fields for a single seller", async () => {
- const response = await api.get(
- `/admin/sellers/${seller1.id}?fields=id,name,email`,
- adminHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller.id).toEqual(seller1.id)
- expect(response.data.seller.name).toEqual("Alpha Seller")
- expect(response.data.seller.email).toEqual("[email protected]")
- })
-
- it("should get different sellers by their ids", async () => {
- const response1 = await api.get(
- `/admin/sellers/${seller1.id}`,
- adminHeaders
- )
- const response2 = await api.get(
- `/admin/sellers/${seller2.id}`,
- adminHeaders
- )
- const response3 = await api.get(
- `/admin/sellers/${seller3.id}`,
- adminHeaders
- )
-
- expect(response1.status).toEqual(200)
- expect(response2.status).toEqual(200)
- expect(response3.status).toEqual(200)
-
- expect(response1.data.seller.name).toEqual("Alpha Seller")
- expect(response2.data.seller.name).toEqual("Beta Seller")
- expect(response3.data.seller.name).toEqual("Gamma Seller")
- })
- })
-
- describe("Admin sellers authorization", () => {
- it("should require authentication for listing sellers", async () => {
- const response = await api
- .get(`/admin/sellers`)
- .catch((e) => e.response)
-
- expect(response.status).toEqual(401)
- })
-
- it("should require authentication for getting a seller", async () => {
- const response = await api
- .get(`/admin/sellers/${seller1.id}`)
- .catch((e) => e.response)
-
- expect(response.status).toEqual(401)
- })
- })
- })
- },
-})
diff --git a/integration-tests/http/seller/store/seller.spec.ts b/integration-tests/http/seller/store/seller.spec.ts
index 08b4f0cd3..384e50313 100644
--- a/integration-tests/http/seller/store/seller.spec.ts
+++ b/integration-tests/http/seller/store/seller.spec.ts
@@ -1,210 +1,401 @@
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import { MedusaContainer } from "@medusajs/framework/types"
-import { generatePublishableKey, generateStoreHeaders } from "../../../helpers/create-admin-user"
+import {
+ adminHeaders,
+ createAdminUser,
+ generatePublishableKey,
+ generateStoreHeaders,
+} from "../../../helpers/create-admin-user"
+import { createSellerUser } from "../../../helpers/create-seller-user"
jest.setTimeout(50000)
medusaIntegrationTestRunner({
- testSuite: ({ getContainer, api }) => {
- describe("Store - Sellers", () => {
- let appContainer: MedusaContainer
- let storeHeaders: any
- let activeSeller1: any
- let activeSeller2: any
- let pendingSeller: any
- let sellerModule: any
-
- beforeAll(async () => {
- appContainer = getContainer()
- })
-
- beforeEach(async () => {
- sellerModule = appContainer.resolve("seller")
-
- // Create active sellers
- activeSeller1 = await sellerModule.createSellers({
- name: "Active Seller One",
- handle: "active-seller-one",
- email: "[email protected]",
- status: "active",
- })
-
- activeSeller2 = await sellerModule.createSellers({
- name: "Active Seller Two",
- handle: "active-seller-two",
- email: "[email protected]",
- status: "active",
- })
-
- // Create pending seller (should not be visible in store)
- pendingSeller = await sellerModule.createSellers({
- name: "Pending Seller",
- handle: "pending-seller",
- email: "[email protected]",
- status: "pending",
- })
-
- const apiKey = await generatePublishableKey(appContainer)
- storeHeaders = generateStoreHeaders({ publishableKey: apiKey })
- })
-
- describe("GET /store/sellers", () => {
- it("should list only active sellers", async () => {
- const response = await api.get(
- `/store/sellers`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(2)
- expect(response.data.sellers).toEqual(
- expect.arrayContaining([
- expect.objectContaining({
- id: activeSeller1.id,
- name: "Active Seller One",
- handle: "active-seller-one",
- }),
- expect.objectContaining({
- id: activeSeller2.id,
- name: "Active Seller Two",
- handle: "active-seller-two",
- }),
- ])
- )
- // Should not include pending seller
- expect(response.data.sellers.map((s: any) => s.id)).not.toContain(pendingSeller.id)
- })
-
- it("should filter sellers by handle", async () => {
- const response = await api.get(
- `/store/sellers?handle=active-seller-one`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0]).toEqual(
- expect.objectContaining({
- id: activeSeller1.id,
- handle: "active-seller-one",
- })
- )
- })
-
- it("should filter sellers by name", async () => {
- const response = await api.get(
- `/store/sellers?name=Active Seller Two`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0]).toEqual(
- expect.objectContaining({
- id: activeSeller2.id,
- name: "Active Seller Two",
- })
- )
- })
-
- it("should filter sellers by id", async () => {
- const response = await api.get(
- `/store/sellers?id=${activeSeller1.id}`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0].id).toEqual(activeSeller1.id)
- })
-
- it("should search sellers with q parameter", async () => {
- const response = await api.get(
- `/store/sellers?q=One`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.sellers[0]).toEqual(
- expect.objectContaining({
- id: activeSeller1.id,
- name: "Active Seller One",
- })
- )
- })
-
- it("should support pagination", async () => {
- const response = await api.get(
- `/store/sellers?limit=1&offset=0`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.sellers).toHaveLength(1)
- expect(response.data.count).toEqual(2)
- expect(response.data.limit).toEqual(1)
- expect(response.data.offset).toEqual(0)
- })
-
- it("should not expose sensitive fields like email", async () => {
- const response = await api.get(
- `/store/sellers`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- response.data.sellers.forEach((seller: any) => {
- expect(seller.email).toBeUndefined()
- expect(seller.phone).toBeUndefined()
- })
- })
- })
-
- describe("GET /store/sellers/:id", () => {
- it("should get a single active seller by id", async () => {
- const response = await api.get(
- `/store/sellers/${activeSeller1.id}`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller).toEqual(
- expect.objectContaining({
- id: activeSeller1.id,
- name: "Active Seller One",
- handle: "active-seller-one",
- })
- )
- })
-
- it("should return 404 for pending seller", async () => {
- const response = await api
- .get(`/store/sellers/${pendingSeller.id}`, storeHeaders)
- .catch((e) => e.response)
-
- expect(response.status).toEqual(404)
- })
-
- it("should return 404 for non-existent seller", async () => {
- const response = await api
- .get(`/store/sellers/non-existent-id`, storeHeaders)
- .catch((e) => e.response)
-
- expect(response.status).toEqual(404)
- })
-
- it("should not expose sensitive fields like email", async () => {
- const response = await api.get(
- `/store/sellers/${activeSeller1.id}`,
- storeHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller.email).toBeUndefined()
- expect(response.data.seller.phone).toBeUndefined()
- })
- })
- })
- },
+ testSuite: ({ getContainer, api, dbConnection }) => {
+ describe("Store - Sellers", () => {
+ let appContainer: MedusaContainer
+ let sellerA: any
+ let sellerB: any
+ let sellerC: any
+ let storeHeaders: Record<string, Record<string, string>>
+
+ beforeAll(async () => {
+ appContainer = getContainer()
+ })
+
+ beforeEach(async () => {
+ await createAdminUser(dbConnection, adminHeaders, appContainer)
+
+ const resultA = await createSellerUser(appContainer, {
+ email: "[email protected]",
+ name: "Alpha Store",
+ })
+ sellerA = resultA.seller
+
+ const resultB = await createSellerUser(appContainer, {
+ email: "[email protected]",
+ name: "Beta Premium",
+ })
+ sellerB = resultB.seller
+
+ const resultC = await createSellerUser(appContainer, {
+ email: "[email protected]",
+ name: "Gamma Shop",
+ })
+ sellerC = resultC.seller
+
+ // Approve all three sellers so they become OPEN
+ await api.post(
+ `/admin/sellers/${sellerA.id}/approve`,
+ {},
+ adminHeaders
+ )
+ await api.post(
+ `/admin/sellers/${sellerB.id}/approve`,
+ {},
+ adminHeaders
+ )
+ await api.post(
+ `/admin/sellers/${sellerC.id}/approve`,
+ {},
+ adminHeaders
+ )
+
+ // Set seller B as premium
+ await api.post(
+ `/admin/sellers/${sellerB.id}`,
+ { is_premium: true },
+ adminHeaders
+ )
+
+ // Generate store headers with publishable key
+ const publishableKey = await generatePublishableKey(appContainer)
+ storeHeaders = generateStoreHeaders({ publishableKey })
+ })
+
+ describe("GET /store/sellers", () => {
+ it("should list active sellers", async () => {
+ const response = await api.get(`/store/sellers`, storeHeaders)
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toBeDefined()
+ expect(Array.isArray(response.data.sellers)).toBe(true)
+ expect(response.data.count).toBeGreaterThanOrEqual(3)
+ expect(response.data.offset).toBeDefined()
+ expect(response.data.limit).toBeDefined()
+ })
+
+ it("should filter sellers by is_premium=true", async () => {
+ const response = await api.get(
+ `/store/sellers?is_premium=true`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers.length).toBeGreaterThanOrEqual(1)
+ response.data.sellers.forEach((seller: any) => {
+ expect(seller.is_premium).toEqual(true)
+ })
+ })
+
+ it("should filter sellers by is_premium=false", async () => {
+ const response = await api.get(
+ `/store/sellers?is_premium=false`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers.length).toBeGreaterThanOrEqual(1)
+ response.data.sellers.forEach((seller: any) => {
+ expect(seller.is_premium).not.toEqual(true)
+ })
+ })
+
+ it("should filter sellers by handle", async () => {
+ const response = await api.get(
+ `/store/sellers?handle=alpha-store`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(1)
+ expect(response.data.sellers[0].handle).toEqual("alpha-store")
+ })
+
+ it("should filter sellers by name", async () => {
+ const response = await api.get(
+ `/store/sellers?name=Alpha Store`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(1)
+ expect(response.data.sellers[0].name).toEqual("Alpha Store")
+ })
+
+ it("should filter sellers by multiple names", async () => {
+ const response = await api.get(
+ `/store/sellers?name[]=Alpha Store&name[]=Beta Premium`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(2)
+ const names = response.data.sellers.map((s: any) => s.name)
+ expect(names).toContain("Alpha Store")
+ expect(names).toContain("Beta Premium")
+ })
+
+ it("should filter sellers by id", async () => {
+ const response = await api.get(
+ `/store/sellers?id=${sellerA.id}`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(1)
+ expect(response.data.sellers[0].id).toEqual(sellerA.id)
+ })
+
+ it("should filter sellers by multiple ids", async () => {
+ const response = await api.get(
+ `/store/sellers?id[]=${sellerA.id}&id[]=${sellerB.id}`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(2)
+ const ids = response.data.sellers.map((s: any) => s.id)
+ expect(ids).toContain(sellerA.id)
+ expect(ids).toContain(sellerB.id)
+ })
+
+ it("should search sellers by name with q param", async () => {
+ const response = await api.get(
+ `/store/sellers?q=Alpha`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers.length).toBeGreaterThanOrEqual(1)
+ const names = response.data.sellers.map((s: any) => s.name)
+ expect(names).toContain("Alpha Store")
+ })
+
+ it("should return empty for non-matching search", async () => {
+ const response = await api.get(
+ `/store/sellers?q=nonexistent`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(0)
+ expect(response.data.count).toEqual(0)
+ })
+
+ it("should support limit", async () => {
+ const response = await api.get(
+ `/store/sellers?limit=1`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(1)
+ expect(response.data.limit).toEqual(1)
+ })
+
+ it("should support offset", async () => {
+ const first = await api.get(
+ `/store/sellers?limit=1&offset=0`,
+ storeHeaders
+ )
+ const second = await api.get(
+ `/store/sellers?limit=1&offset=1`,
+ storeHeaders
+ )
+
+ expect(first.data.sellers[0].id).not.toEqual(
+ second.data.sellers[0].id
+ )
+ })
+
+ it("should return correct count with pagination", async () => {
+ const response = await api.get(
+ `/store/sellers?limit=1`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.sellers).toHaveLength(1)
+ expect(response.data.count).toBeGreaterThanOrEqual(3)
+ })
+
+ it("should only return OPEN sellers (exclude pending)", async () => {
+ const { seller: pendingSeller } = await createSellerUser(
+ appContainer,
+ {
+ email: "[email protected]",
+ name: "Pending Seller",
+ }
+ )
+
+ const response = await api.get(`/store/sellers`, storeHeaders)
+
+ const ids = response.data.sellers.map((s: any) => s.id)
+ expect(ids).not.toContain(pendingSeller.id)
+ })
+
+ it("should exclude suspended sellers", async () => {
+ const { seller: suspendedSeller } = await createSellerUser(
+ appContainer,
+ {
+ email: "[email protected]",
+ name: "Suspended Seller",
+ }
+ )
+
+ await api.post(
+ `/admin/sellers/${suspendedSeller.id}/approve`,
+ {},
+ adminHeaders
+ )
+ await api.post(
+ `/admin/sellers/${suspendedSeller.id}/suspend`,
+ {},
+ adminHeaders
+ )
+
+ const response = await api.get(`/store/sellers`, storeHeaders)
+
+ const ids = response.data.sellers.map((s: any) => s.id)
+ expect(ids).not.toContain(suspendedSeller.id)
+ })
+
+ it("should exclude sellers within closure window", async () => {
+ const now = new Date()
+ const pastDate = new Date(
+ now.getTime() - 24 * 60 * 60 * 1000
+ ).toISOString()
+ const futureDate = new Date(
+ now.getTime() + 24 * 60 * 60 * 1000
+ ).toISOString()
+
+ await api.post(
+ `/admin/sellers/${sellerC.id}`,
+ {
+ closed_from: pastDate,
+ closed_to: futureDate,
+ },
+ adminHeaders
+ )
+
+ const response = await api.get(`/store/sellers`, storeHeaders)
+
+ const ids = response.data.sellers.map((s: any) => s.id)
+ expect(ids).not.toContain(sellerC.id)
+ })
+
+ it("should not expose sensitive fields", async () => {
+ const response = await api.get(`/store/sellers`, storeHeaders)
+
+ expect(response.status).toEqual(200)
+ response.data.sellers.forEach((seller: any) => {
+ expect(seller).not.toHaveProperty("email")
+ expect(seller).not.toHaveProperty("currency_code")
+ expect(seller).not.toHaveProperty("status")
+ expect(seller).not.toHaveProperty("status_reason")
+ expect(seller).not.toHaveProperty("closed_from")
+ expect(seller).not.toHaveProperty("closed_to")
+ })
+ })
+ })
+
+ describe("GET /store/sellers/:id", () => {
+ it("should retrieve a single seller by id", async () => {
+ const response = await api.get(
+ `/store/sellers/${sellerA.id}`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ expect(response.data.seller).toBeDefined()
+ expect(response.data.seller.id).toEqual(sellerA.id)
+ expect(response.data.seller.name).toEqual("Alpha Store")
+ expect(response.data.seller.handle).toEqual("alpha-store")
+ })
+
+ it("should return 404 for non-existent seller", async () => {
+ const response = await api
+ .get(`/store/sellers/sel_nonexistent`, storeHeaders)
+ .catch((e) => e.response)
+
+ expect(response.status).toEqual(404)
+ })
+
+ it("should return 404 for pending seller", async () => {
+ const { seller: pendingSeller } = await createSellerUser(
+ appContainer,
+ {
+ email: "[email protected]",
+ name: "Pending Seller 2",
+ }
+ )
+
+ const response = await api
+ .get(`/store/sellers/${pendingSeller.id}`, storeHeaders)
+ .catch((e) => e.response)
+
+ expect(response.status).toEqual(404)
+ })
+
+ it("should return 404 for suspended seller", async () => {
+ const { seller: suspendedSeller } = await createSellerUser(
+ appContainer,
+ {
+ email: "[email protected]",
+ name: "Suspended Seller 2",
+ }
+ )
+
+ await api.post(
+ `/admin/sellers/${suspendedSeller.id}/approve`,
+ {},
+ adminHeaders
+ )
+ await api.post(
+ `/admin/sellers/${suspendedSeller.id}/suspend`,
+ {},
+ adminHeaders
+ )
+
+ const response = await api
+ .get(`/store/sellers/${suspendedSeller.id}`, storeHeaders)
+ .catch((e) => e.response)
+
+ expect(response.status).toEqual(404)
+ })
+
+ it("should return only default fields", async () => {
+ const response = await api.get(
+ `/store/sellers/${sellerA.id}`,
+ storeHeaders
+ )
+
+ expect(response.status).toEqual(200)
+ const seller = response.data.seller
+ expect(seller).toHaveProperty("id")
+ expect(seller).toHaveProperty("name")
+ expect(seller).toHaveProperty("handle")
+ expect(seller).toHaveProperty("description")
+ expect(seller).toHaveProperty("is_premium")
+ expect(seller).toHaveProperty("metadata")
+ expect(seller).not.toHaveProperty("email")
+ expect(seller).not.toHaveProperty("status")
+ expect(seller).not.toHaveProperty("currency_code")
+ expect(seller).not.toHaveProperty("closed_from")
+ expect(seller).not.toHaveProperty("closed_to")
+ })
+ })
+ })
+ },
})
diff --git a/integration-tests/http/seller/vendor/seller.spec.ts b/integration-tests/http/seller/vendor/seller.spec.ts
deleted file mode 100644
index 43ab3fff0..000000000
--- a/integration-tests/http/seller/vendor/seller.spec.ts
+++ /dev/null
@@ -1,87 +0,0 @@
-import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
-import { MedusaContainer } from "@medusajs/framework/types"
-import { createSellerUser, vendorHeaders } from "../../../helpers/create-seller-user"
-
-jest.setTimeout(50000)
-
-medusaIntegrationTestRunner({
- testSuite: ({ getContainer, api }) => {
- describe("Vendor - Seller", () => {
- let appContainer: MedusaContainer
- let seller: any
-
- beforeAll(async () => {
- appContainer = getContainer()
- })
-
- beforeEach(async () => {
- const result = await createSellerUser(appContainer)
- seller = result.seller
- })
-
- it("should get current seller", async () => {
- const response = await api.get(
- `/vendor/sellers/me`,
- vendorHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller).toEqual(
- expect.objectContaining({
- id: seller.id,
- name: "Test Seller",
- })
- )
- })
-
- it("should update seller data", async () => {
- const updateData = {
- name: "Updated Seller Name",
- phone: "+1234567890",
- address_1: "123 Main Street",
- city: "New York",
- country_code: "US",
- postal_code: "10001",
- }
-
- const response = await api.post(
- `/vendor/sellers/me`,
- updateData,
- vendorHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller).toEqual(
- expect.objectContaining({
- id: seller.id,
- name: "Updated Seller Name",
- phone: "+1234567890",
- address_1: "123 Main Street",
- city: "New York",
- country_code: "US",
- postal_code: "10001",
- })
- )
- })
-
- it("should partially update seller data", async () => {
- const response = await api.post(
- `/vendor/sellers/me`,
- {
- phone: "+9876543210",
- },
- vendorHeaders
- )
-
- expect(response.status).toEqual(200)
- expect(response.data.seller).toEqual(
- expect.objectContaining({
- id: seller.id,
- name: "Test Seller",
- phone: "+9876543210",
- })
- )
- })
- })
- },
-})
diff --git a/integration-tests/medusa-config.ts b/integration-tests/medusa-config.ts
index 802d69a7a..8a86e1a7f 100644
--- a/integration-tests/medusa-config.ts
+++ b/integration-tests/medusa-config.ts
@@ -13,6 +13,27 @@ module.exports = defineConfig({
cookieSecret: process.env.COOKIE_SECRET || "supersecret",
}
},
+ featureFlags: {
+ rbac: true,
+ },
+ modules: [
+ {
+ resolve: '@mercurjs/core-plugin/modules/admin-ui',
+ options: {
+ appDir: '',
+ path: '/dashboard',
+ disable: true
+ }
+ },
+ {
+ resolve: '@mercurjs/core-plugin/modules/vendor-ui',
+ options: {
+ appDir: '',
+ path: '/seller',
+ disable: true
+ }
+ },
+ ],
plugins: [
{
resolve: "@mercurjs/core-plugin",
diff --git a/integration-tests/package.json b/integration-tests/package.json
index 739d93031..df0429ebb 100644
--- a/integration-tests/package.json
+++ b/integration-tests/package.json
@@ -6,21 +6,21 @@
"test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit"
},
"dependencies": {
- "@medusajs/framework": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
"@mercurjs/core-plugin": "*",
"jsonwebtoken": "^9.0.2",
"scrypt-kdf": "^2.0.1",
- "@medusajs/draft-order": "^2.13.3"
+ "@medusajs/draft-order": "^2.13.4"
},
"devDependencies": {
- "@medusajs/test-utils": "^2.13.3",
+ "@medusajs/test-utils": "^2.13.4",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
"@types/node": "^20.12.11",
"jest": "^30.2.0",
"typescript": "5.9.3",
- "@medusajs/types": "2.13.3"
+ "@medusajs/types": "2.13.4"
}
}
\ No newline at end of file
diff --git a/package.json b/package.json
index 5e1a1bf51..bfbf81090 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,9 @@
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"check-types": "turbo run check-types"
},
+ "dependencies": {
+ "@mercurjs/core-plugin": "workspace:*"
+ },
"devDependencies": {
"@eslint/js": "^9.39.2",
"eslint": "^9.39.2",
diff --git a/packages/admin/package.json b/packages/admin/package.json
index 96723aa64..82d3ddda3 100644
--- a/packages/admin/package.json
+++ b/packages/admin/package.json
@@ -38,9 +38,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "3.4.2",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
"@medusajs/ui": "4.1.1",
"@radix-ui/react-dialog": "1.1.4",
"@radix-ui/react-dismissable-layer": "1.1.4",
@@ -74,12 +74,12 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
- "@medusajs/ui-preset": "2.13.3",
+ "@medusajs/ui-preset": "2.13.4",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"tsup": "^8.0.2",
"typescript": "5.9.3",
- "@medusajs/types": "2.13.3",
+ "@medusajs/types": "2.13.4",
"@mercurjs/core-plugin": "workspace:*",
"@mercurjs/dashboard-sdk": "workspace:*",
"@mercurjs/types": "workspace:*"
diff --git a/packages/cli/package.json b/packages/cli/package.json
index b1cb1e1e9..36d78c10a 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -48,9 +48,9 @@
"validate-npm-package-name": "^7.0.2",
"wait-on": "^9.0.3",
"zod": "3.25.76",
- "@medusajs/admin-shared": "2.13.3",
- "@medusajs/admin-vite-plugin": "2.13.3",
- "@medusajs/dashboard": "2.13.3",
+ "@medusajs/admin-shared": "2.13.4",
+ "@medusajs/admin-vite-plugin": "2.13.4",
+ "@medusajs/dashboard": "2.13.4",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
"compression": "^1.8.0",
@@ -61,8 +61,8 @@
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"vite": "^5.4.21",
- "@medusajs/admin-bundler": "2.13.3",
- "@medusajs/framework": "2.13.3",
+ "@medusajs/admin-bundler": "2.13.4",
+ "@medusajs/framework": "2.13.4",
"@mercurjs/dashboard-sdk": "2.0.0-canary.97"
},
"devDependencies": {
diff --git a/packages/client/package.json b/packages/client/package.json
index 56c1e5e87..d6728a8e0 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -31,7 +31,7 @@
"qs": "^6.12.1"
},
"devDependencies": {
- "@medusajs/framework": "^2.13.3",
+ "@medusajs/framework": "^2.13.4",
"@types/qs": "^6.9.18",
"tsup": "^8.5.0",
"typescript": "5.9.3"
diff --git a/packages/core-plugin/package.json b/packages/core-plugin/package.json
index 843d677b8..c359fcc52 100644
--- a/packages/core-plugin/package.json
+++ b/packages/core-plugin/package.json
@@ -34,18 +34,18 @@
"medusa-v2"
],
"scripts": {
- "build": "tsc --declaration --outDir .medusa/server",
+ "build": "rm -rf .medusa && tsc --declaration --outDir .medusa/server",
"dev": "medusa plugin:develop",
"prepublishOnly": "tsc --declaration --outDir .medusa/server"
},
"devDependencies": {
"cors": "^2.8.5",
- "@medusajs/core-flows": "^2.13.3",
- "@medusajs/cli": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/icons": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
- "@medusajs/test-utils": "^2.13.3",
+ "@medusajs/core-flows": "^2.13.4",
+ "@medusajs/cli": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/icons": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
+ "@medusajs/test-utils": "^2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/types": "workspace:*",
"@swc/core": "^1.7.28",
@@ -62,18 +62,19 @@
"tsx": "^4.19.2",
"typescript": "5.9.3",
"yalc": "^1.0.0-pre.53",
- "@medusajs/types": "2.13.3",
+ "@medusajs/types": "2.13.4",
"zod": "3.25.76",
"multer": "^2.0.2",
"http-proxy-middleware": "^3.0.3"
},
"peerDependencies": {
- "@medusajs/admin-sdk": "^2.13.3",
- "@medusajs/cli": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/icons": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
- "@medusajs/test-utils": "^2.13.3"
+ "@medusajs/admin-sdk": "^2.13.4",
+ "@medusajs/cli": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/icons": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
+ "@medusajs/test-utils": "^2.13.4",
+ "express": "^4.21.0"
},
"engines": {
"node": ">=20"
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.ts b/packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.ts
index 44f521108..4bc49bd44 100644
--- a/packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.ts
+++ b/packages/core-plugin/src/api/admin/sellers/[id]/members/invite/route.ts
@@ -17,7 +17,7 @@ export const POST = async (
{
seller_id: req.params.id,
email: req.validatedBody.email,
- role_handle: req.validatedBody.role_handle,
+ role_id: req.validatedBody.role_id,
},
],
})
diff --git a/packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts b/packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts
index 89d175800..25a37ac6c 100644
--- a/packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts
+++ b/packages/core-plugin/src/api/admin/sellers/[id]/members/route.ts
@@ -38,7 +38,7 @@ export const POST = async (
input: {
seller_id: req.params.id,
member_id: req.validatedBody.member_id,
- role_handle: req.validatedBody.role_handle,
+ role_id: req.validatedBody.role_id,
},
})
diff --git a/packages/core-plugin/src/api/admin/sellers/validators.ts b/packages/core-plugin/src/api/admin/sellers/validators.ts
index 8510a7b4a..1f45bd4e3 100644
--- a/packages/core-plugin/src/api/admin/sellers/validators.ts
+++ b/packages/core-plugin/src/api/admin/sellers/validators.ts
@@ -4,6 +4,7 @@ import {
createOperatorMap,
createSelectParams,
} from "@medusajs/medusa/api/utils/validators"
+import { booleanString } from "@medusajs/medusa/api/utils/common-validators/common"
export type AdminGetSellerParamsType = z.infer<typeof AdminGetSellerParams>
export const AdminGetSellerParams = createSelectParams()
@@ -20,7 +21,7 @@ export const AdminGetSellersParams = createFindParams({
handle: z.string().optional(),
email: z.string().optional(),
status: z.union([z.string(), z.array(z.string())]).optional(),
- is_premium: z.boolean().optional(),
+ is_premium: booleanString().optional(),
created_at: createOperatorMap().optional(),
updated_at: createOperatorMap().optional(),
})
@@ -79,7 +80,7 @@ export const AdminTerminateSeller = z.object({
export type AdminAddSellerMemberType = z.infer<typeof AdminAddSellerMember>
export const AdminAddSellerMember = z.object({
member_id: z.string(),
- role_handle: z.string(),
+ role_id: z.string(),
})
export type AdminInviteSellerMemberType = z.infer<
@@ -87,7 +88,7 @@ export type AdminInviteSellerMemberType = z.infer<
>
export const AdminInviteSellerMember = z.object({
email: z.string().email(),
- role_handle: z.string(),
+ role_id: z.string(),
})
export type AdminUpsertSellerAddressType = z.infer<
diff --git a/packages/core-plugin/src/api/store/sellers/middlewares.ts b/packages/core-plugin/src/api/store/sellers/middlewares.ts
index ed0f0b322..c664f1983 100644
--- a/packages/core-plugin/src/api/store/sellers/middlewares.ts
+++ b/packages/core-plugin/src/api/store/sellers/middlewares.ts
@@ -1,6 +1,8 @@
import {
validateAndTransformQuery,
- applyDefaultFilters,
+ MedusaNextFunction,
+ MedusaRequest,
+ MedusaResponse,
} from "@medusajs/framework/http"
import { MiddlewareRoute } from "@medusajs/medusa"
import { SellerStatus } from "@mercurjs/types"
@@ -8,6 +10,24 @@ import { SellerStatus } from "@mercurjs/types"
import * as QueryConfig from "./query-config"
import { StoreGetSellersParams, StoreGetSellerParams } from "./validators"
+function applySellerOpenFilters(
+ req: MedusaRequest,
+ _res: MedusaResponse,
+ next: MedusaNextFunction
+) {
+ const now = new Date()
+
+ req.filterableFields.status ??= SellerStatus.OPEN
+
+ req.filterableFields.$and ??= []
+ ; (req.filterableFields.$and as any[]).push(
+ { $or: [{ closed_from: null }, { closed_from: { $gt: now } }] },
+ { $or: [{ closed_to: null }, { closed_to: { $lt: now } }] }
+ )
+
+ next()
+}
+
export const storeSellersMiddlewares: MiddlewareRoute[] = [
{
method: ["GET"],
@@ -17,21 +37,7 @@ export const storeSellersMiddlewares: MiddlewareRoute[] = [
StoreGetSellersParams,
QueryConfig.listSellerQueryConfig
),
- applyDefaultFilters({
- status: SellerStatus.OPEN,
- closed_from: () => {
- const now = new Date()
- return {
- $or: [{ closed_from: null }, { closed_from: { $gt: now } }],
- }
- },
- closed_to: () => {
- const now = new Date()
- return {
- $or: [{ closed_to: null }, { closed_to: { $lt: now } }],
- }
- },
- }),
+ applySellerOpenFilters,
],
},
{
@@ -42,21 +48,7 @@ export const storeSellersMiddlewares: MiddlewareRoute[] = [
StoreGetSellerParams,
QueryConfig.retrieveSellerQueryConfig
),
- applyDefaultFilters({
- status: SellerStatus.OPEN,
- closed_from: () => {
- const now = new Date()
- return {
- $or: [{ closed_from: null }, { closed_from: { $gt: now } }],
- }
- },
- closed_to: () => {
- const now = new Date()
- return {
- $or: [{ closed_to: null }, { closed_to: { $lt: now } }],
- }
- },
- }),
+ applySellerOpenFilters,
],
},
]
diff --git a/packages/core-plugin/src/api/store/sellers/validators.ts b/packages/core-plugin/src/api/store/sellers/validators.ts
index 01c003337..d96aa8db7 100644
--- a/packages/core-plugin/src/api/store/sellers/validators.ts
+++ b/packages/core-plugin/src/api/store/sellers/validators.ts
@@ -4,6 +4,7 @@ import {
createOperatorMap,
createSelectParams,
} from "@medusajs/medusa/api/utils/validators"
+import { booleanString } from "@medusajs/medusa/api/utils/common-validators/common"
export type StoreGetSellersParamsType = z.infer<typeof StoreGetSellersParams>
export const StoreGetSellersParams = createFindParams({
@@ -15,7 +16,7 @@ export const StoreGetSellersParams = createFindParams({
id: z.union([z.string(), z.array(z.string())]).optional(),
name: z.union([z.string(), z.array(z.string())]).optional(),
handle: z.string().optional(),
- is_premium: z.boolean().optional(),
+ is_premium: booleanString().optional(),
created_at: createOperatorMap().optional(),
updated_at: createOperatorMap().optional(),
})
diff --git a/packages/core-plugin/src/api/vendor/customers/validators.ts b/packages/core-plugin/src/api/vendor/customers/validators.ts
index 985948ab9..e132b91a1 100644
--- a/packages/core-plugin/src/api/vendor/customers/validators.ts
+++ b/packages/core-plugin/src/api/vendor/customers/validators.ts
@@ -4,6 +4,7 @@ import {
createOperatorMap,
createSelectParams,
} from "@medusajs/medusa/api/utils/validators"
+import { booleanString } from "@medusajs/medusa/api/utils/common-validators/common"
export type VendorGetCustomerParamsType = z.infer<typeof VendorGetCustomerParams>
export const VendorGetCustomerParams = createSelectParams()
@@ -17,7 +18,7 @@ export const VendorGetCustomersParams = createFindParams({
q: z.string().optional(),
id: z.union([z.string(), z.array(z.string())]).optional(),
email: z.union([z.string(), z.array(z.string())]).optional(),
- has_account: z.boolean().optional(),
+ has_account: booleanString().optional(),
created_at: createOperatorMap().optional(),
updated_at: createOperatorMap().optional(),
})
diff --git a/packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts b/packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts
index 71cbe7200..c64d19890 100644
--- a/packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts
+++ b/packages/core-plugin/src/api/vendor/fulfillment-providers/validators.ts
@@ -1,5 +1,6 @@
import { z } from "zod"
import { createFindParams } from "@medusajs/medusa/api/utils/validators"
+import { booleanString } from "@medusajs/medusa/api/utils/common-validators/common"
export type VendorGetFulfillmentProvidersParamsType = z.infer<
typeof VendorGetFulfillmentProvidersParams
@@ -13,7 +14,7 @@ export const VendorGetFulfillmentProvidersParams = createFindParams({
stock_location_id: z
.union([z.string(), z.array(z.string())])
.optional(),
- is_enabled: z.boolean().optional(),
+ is_enabled: booleanString().optional(),
q: z.string().optional(),
})
)
diff --git a/packages/core-plugin/src/api/vendor/product-variants/validators.ts b/packages/core-plugin/src/api/vendor/product-variants/validators.ts
index c7274ded2..fc0dcf012 100644
--- a/packages/core-plugin/src/api/vendor/product-variants/validators.ts
+++ b/packages/core-plugin/src/api/vendor/product-variants/validators.ts
@@ -3,6 +3,7 @@ import {
createFindParams,
createOperatorMap,
} from "@medusajs/medusa/api/utils/validators"
+import { booleanString } from "@medusajs/medusa/api/utils/common-validators/common"
export type VendorGetProductVariantsParamsType = z.infer<
typeof VendorGetProductVariantsParams
@@ -14,8 +15,8 @@ export const VendorGetProductVariantsParams = createFindParams({
z.object({
q: z.string().optional(),
id: z.union([z.string(), z.array(z.string())]).optional(),
- manage_inventory: z.boolean().optional(),
- allow_backorder: z.boolean().optional(),
+ manage_inventory: booleanString().optional(),
+ allow_backorder: booleanString().optional(),
ean: z.union([z.string(), z.array(z.string())]).optional(),
upc: z.union([z.string(), z.array(z.string())]).optional(),
barcode: z.union([z.string(), z.array(z.string())]).optional(),
diff --git a/packages/core-plugin/src/api/vendor/sales-channels/validators.ts b/packages/core-plugin/src/api/vendor/sales-channels/validators.ts
index 089dd5229..ff946cf89 100644
--- a/packages/core-plugin/src/api/vendor/sales-channels/validators.ts
+++ b/packages/core-plugin/src/api/vendor/sales-channels/validators.ts
@@ -3,6 +3,7 @@ import {
createFindParams,
createSelectParams,
} from "@medusajs/medusa/api/utils/validators"
+import { booleanString } from "@medusajs/medusa/api/utils/common-validators/common"
export type VendorGetSalesChannelParamsType = z.infer<
typeof VendorGetSalesChannelParams
@@ -20,6 +21,6 @@ export const VendorGetSalesChannelsParams = createFindParams({
q: z.string().optional(),
id: z.union([z.string(), z.array(z.string())]).optional(),
name: z.union([z.string(), z.array(z.string())]).optional(),
- is_disabled: z.boolean().optional(),
+ is_disabled: booleanString().optional(),
})
)
diff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.ts b/packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.ts
index b151b6f7c..01dc0eedd 100644
--- a/packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.ts
+++ b/packages/core-plugin/src/api/vendor/sellers/[id]/members/[member_id]/route.ts
@@ -16,7 +16,7 @@ export const POST = async (
await updateMemberRoleWorkflow(req.scope).run({
input: {
seller_member_id: req.params.member_id,
- role_handle: req.validatedBody.role_handle,
+ role_id: req.validatedBody.role_id,
},
})
diff --git a/packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts b/packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts
index 983d02481..3e9309438 100644
--- a/packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts
+++ b/packages/core-plugin/src/api/vendor/sellers/[id]/members/route.ts
@@ -38,7 +38,7 @@ export const POST = async (
input: [{
seller_id: req.params.id,
email: req.validatedBody.email,
- role_handle: req.validatedBody.role_handle,
+ role_id: req.validatedBody.role_id,
}],
})
diff --git a/packages/core-plugin/src/api/vendor/sellers/validators.ts b/packages/core-plugin/src/api/vendor/sellers/validators.ts
index 8bc24a0ec..14a70746d 100644
--- a/packages/core-plugin/src/api/vendor/sellers/validators.ts
+++ b/packages/core-plugin/src/api/vendor/sellers/validators.ts
@@ -51,12 +51,12 @@ export const VendorUpdateSeller = z.object({
export type VendorInviteMemberType = z.infer<typeof VendorInviteMember>
export const VendorInviteMember = z.object({
email: z.string().email(),
- role_handle: z.string(),
+ role_id: z.string(),
})
export type VendorUpdateMemberRoleType = z.infer<typeof VendorUpdateMemberRole>
export const VendorUpdateMemberRole = z.object({
- role_handle: z.string(),
+ role_id: z.string(),
})
export type VendorUpsertSellerAddressType = z.infer<typeof VendorUpsertSellerAddress>
diff --git a/packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json b/packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json
index 410f73f14..98f006115 100644
--- a/packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json
+++ b/packages/core-plugin/src/modules/payout/migrations/.snapshot-medusa-payout.json
@@ -392,291 +392,6 @@
}
},
"nativeEnums": {}
- },
- {
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "text"
- },
- "currency_code": {
- "name": "currency_code",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "text"
- },
- "totals": {
- "name": "totals",
- "type": "jsonb",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "json"
- },
- "account_id": {
- "name": "account_id",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "text"
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamptz",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "length": 6,
- "default": "now()",
- "mappedType": "datetime"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamptz",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "length": 6,
- "default": "now()",
- "mappedType": "datetime"
- },
- "deleted_at": {
- "name": "deleted_at",
- "type": "timestamptz",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": true,
- "length": 6,
- "mappedType": "datetime"
- }
- },
- "name": "payout_balance",
- "schema": "public",
- "indexes": [
- {
- "keyName": "IDX_payout_balance_account_id",
- "columnNames": [],
- "composite": false,
- "constraint": false,
- "primary": false,
- "unique": false,
- "expression": "CREATE INDEX IF NOT EXISTS \"IDX_payout_balance_account_id\" ON \"payout_balance\" (\"account_id\") WHERE deleted_at IS NULL"
- },
- {
- "keyName": "IDX_payout_balance_deleted_at",
- "columnNames": [],
- "composite": false,
- "constraint": false,
- "primary": false,
- "unique": false,
- "expression": "CREATE INDEX IF NOT EXISTS \"IDX_payout_balance_deleted_at\" ON \"payout_balance\" (\"deleted_at\") WHERE deleted_at IS NULL"
- },
- {
- "keyName": "IDX_payout_balance_account_currency",
- "columnNames": [],
- "composite": false,
- "constraint": false,
- "primary": false,
- "unique": false,
- "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_payout_balance_account_currency\" ON \"payout_balance\" (\"account_id\", \"currency_code\") WHERE deleted_at IS NULL"
- },
- {
- "keyName": "payout_balance_pkey",
- "columnNames": [
- "id"
- ],
- "composite": false,
- "constraint": true,
- "primary": true,
- "unique": true
- }
- ],
- "checks": [],
- "foreignKeys": {
- "payout_balance_account_id_foreign": {
- "constraintName": "payout_balance_account_id_foreign",
- "columnNames": [
- "account_id"
- ],
- "localTableName": "public.payout_balance",
- "referencedColumnNames": [
- "id"
- ],
- "referencedTableName": "public.payout_account",
- "updateRule": "cascade"
- }
- },
- "nativeEnums": {}
- },
- {
- "columns": {
- "id": {
- "name": "id",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "text"
- },
- "amount": {
- "name": "amount",
- "type": "numeric",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "decimal"
- },
- "currency_code": {
- "name": "currency_code",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "text"
- },
- "reference": {
- "name": "reference",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": true,
- "mappedType": "text"
- },
- "reference_id": {
- "name": "reference_id",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": true,
- "mappedType": "text"
- },
- "account_id": {
- "name": "account_id",
- "type": "text",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "text"
- },
- "raw_amount": {
- "name": "raw_amount",
- "type": "jsonb",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "mappedType": "json"
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamptz",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "length": 6,
- "default": "now()",
- "mappedType": "datetime"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamptz",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": false,
- "length": 6,
- "default": "now()",
- "mappedType": "datetime"
- },
- "deleted_at": {
- "name": "deleted_at",
- "type": "timestamptz",
- "unsigned": false,
- "autoincrement": false,
- "primary": false,
- "nullable": true,
- "length": 6,
- "mappedType": "datetime"
- }
- },
- "name": "payout_transaction",
- "schema": "public",
- "indexes": [
- {
- "keyName": "IDX_payout_transaction_account_id",
- "columnNames": [],
- "composite": false,
- "constraint": false,
- "primary": false,
- "unique": false,
- "expression": "CREATE INDEX IF NOT EXISTS \"IDX_payout_transaction_account_id\" ON \"payout_transaction\" (\"account_id\") WHERE deleted_at IS NULL"
- },
- {
- "keyName": "IDX_payout_transaction_deleted_at",
- "columnNames": [],
- "composite": false,
- "constraint": false,
- "primary": false,
- "unique": false,
- "expression": "CREATE INDEX IF NOT EXISTS \"IDX_payout_transaction_deleted_at\" ON \"payout_transaction\" (\"deleted_at\") WHERE deleted_at IS NULL"
- },
- {
- "keyName": "IDX_payout_transaction_reference",
- "columnNames": [],
- "composite": false,
- "constraint": false,
- "primary": false,
- "unique": false,
- "expression": "CREATE INDEX IF NOT EXISTS \"IDX_payout_transaction_reference\" ON \"payout_transaction\" (\"reference\", \"reference_id\") WHERE deleted_at IS NULL"
- },
- {
- "keyName": "payout_transaction_pkey",
- "columnNames": [
- "id"
- ],
- "composite": false,
- "constraint": true,
- "primary": true,
- "unique": true
- }
- ],
- "checks": [],
- "foreignKeys": {
- "payout_transaction_account_id_foreign": {
- "constraintName": "payout_transaction_account_id_foreign",
- "columnNames": [
- "account_id"
- ],
- "localTableName": "public.payout_transaction",
- "referencedColumnNames": [
- "id"
- ],
- "referencedTableName": "public.payout_account",
- "updateRule": "cascade"
- }
- },
- "nativeEnums": {}
}
],
"nativeEnums": {}
diff --git a/packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.ts b/packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.ts
new file mode 100644
index 000000000..9ea51bcf0
--- /dev/null
+++ b/packages/core-plugin/src/modules/payout/migrations/Migration20260323170925.ts
@@ -0,0 +1,27 @@
+import { Migration } from "@medusajs/framework/mikro-orm/migrations";
+
+export class Migration20260323170925 extends Migration {
+
+ override async up(): Promise<void> {
+ this.addSql(`drop table if exists "payout_balance" cascade;`);
+
+ this.addSql(`drop table if exists "payout_transaction" cascade;`);
+ }
+
+ override async down(): Promise<void> {
+ this.addSql(`create table if not exists "payout_balance" ("id" text not null, "currency_code" text not null, "totals" jsonb not null, "account_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "payout_balance_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payout_balance_account_id" ON "payout_balance" ("account_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payout_balance_deleted_at" ON "payout_balance" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_payout_balance_account_currency" ON "payout_balance" ("account_id", "currency_code") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "payout_transaction" ("id" text not null, "amount" numeric not null, "currency_code" text not null, "reference" text null, "reference_id" text null, "account_id" text not null, "raw_amount" jsonb not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "payout_transaction_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payout_transaction_account_id" ON "payout_transaction" ("account_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payout_transaction_deleted_at" ON "payout_transaction" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payout_transaction_reference" ON "payout_transaction" ("reference", "reference_id") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`alter table if exists "payout_balance" add constraint "payout_balance_account_id_foreign" foreign key ("account_id") references "payout_account" ("id") on update cascade;`);
+
+ this.addSql(`alter table if exists "payout_transaction" add constraint "payout_transaction_account_id_foreign" foreign key ("account_id") references "payout_account" ("id") on update cascade;`);
+ }
+
+}
diff --git a/packages/core-plugin/src/modules/seller/index.ts b/packages/core-plugin/src/modules/seller/index.ts
index bdd90059c..14740f176 100644
--- a/packages/core-plugin/src/modules/seller/index.ts
+++ b/packages/core-plugin/src/modules/seller/index.ts
@@ -2,7 +2,9 @@ import { Module } from "@medusajs/framework/utils"
import { MercurModules } from "@mercurjs/types"
import SellerModuleService from "./service"
+import sellerMemberRbacRoleLoader from "./loaders"
export default Module(MercurModules.SELLER, {
service: SellerModuleService,
+ loaders: [sellerMemberRbacRoleLoader],
})
diff --git a/packages/core-plugin/src/modules/seller/loaders.ts b/packages/core-plugin/src/modules/seller/loaders.ts
new file mode 100644
index 000000000..db5d9dd87
--- /dev/null
+++ b/packages/core-plugin/src/modules/seller/loaders.ts
@@ -0,0 +1,27 @@
+import { LoaderOptions } from "@medusajs/framework/types"
+import { MedusaModule } from "@medusajs/framework/modules-sdk"
+import { Modules } from "@medusajs/framework/utils"
+import { MercurModules } from "@mercurjs/types"
+
+export default async function sellerMemberRbacRoleLoader({}: LoaderOptions) {
+ MedusaModule.setCustomLink(() => {
+ return {
+ isLink: true,
+ isReadOnlyLink: true,
+ extends: [
+ {
+ serviceName: MercurModules.SELLER,
+ entity: "SellerMember",
+ relationship: {
+ serviceName: Modules.RBAC,
+ entity: "RbacRole",
+ primaryKey: "id",
+ foreignKey: "role_id",
+ alias: "rbac_role",
+ isList: false,
+ },
+ },
+ ],
+ }
+ })
+}
diff --git a/packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json b/packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json
index 211687b50..d607d691c 100644
--- a/packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json
+++ b/packages/core-plugin/src/modules/seller/migrations/.snapshot-medusa-seller.json
@@ -4,6 +4,123 @@
],
"name": "public",
"tables": [
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "locale": {
+ "name": "locale",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "is_active": {
+ "name": "is_active",
+ "type": "boolean",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "default": "true",
+ "mappedType": "boolean"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "member",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_member_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_member_deleted_at\" ON \"member\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_member_email_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_member_email_unique\" ON \"member\" (\"email\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "member_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {},
+ "nativeEnums": {}
+ },
{
"columns": {
"id": {
@@ -140,8 +257,8 @@
"nullable": false,
"mappedType": "text"
},
- "phone": {
- "name": "phone",
+ "description": {
+ "name": "description",
"type": "text",
"unsigned": false,
"autoincrement": false,
@@ -158,8 +275,8 @@
"nullable": true,
"mappedType": "text"
},
- "cover_image": {
- "name": "cover_image",
+ "banner": {
+ "name": "banner",
"type": "text",
"unsigned": false,
"autoincrement": false,
@@ -167,8 +284,8 @@
"nullable": true,
"mappedType": "text"
},
- "address_1": {
- "name": "address_1",
+ "website_url": {
+ "name": "website_url",
"type": "text",
"unsigned": false,
"autoincrement": false,
@@ -176,8 +293,8 @@
"nullable": true,
"mappedType": "text"
},
- "address_2": {
- "name": "address_2",
+ "external_id": {
+ "name": "external_id",
"type": "text",
"unsigned": false,
"autoincrement": false,
@@ -185,26 +302,33 @@
"nullable": true,
"mappedType": "text"
},
- "city": {
- "name": "city",
+ "currency_code": {
+ "name": "currency_code",
"type": "text",
"unsigned": false,
"autoincrement": false,
"primary": false,
- "nullable": true,
+ "nullable": false,
"mappedType": "text"
},
- "country_code": {
- "name": "country_code",
+ "status": {
+ "name": "status",
"type": "text",
"unsigned": false,
"autoincrement": false,
"primary": false,
- "nullable": true,
- "mappedType": "text"
+ "nullable": false,
+ "default": "'pending_approval'",
+ "enumItems": [
+ "open",
+ "pending_approval",
+ "suspended",
+ "terminated"
+ ],
+ "mappedType": "enum"
},
- "province": {
- "name": "province",
+ "status_reason": {
+ "name": "status_reason",
"type": "text",
"unsigned": false,
"autoincrement": false,
@@ -212,29 +336,44 @@
"nullable": true,
"mappedType": "text"
},
- "postal_code": {
- "name": "postal_code",
- "type": "text",
+ "is_premium": {
+ "name": "is_premium",
+ "type": "boolean",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "default": "false",
+ "mappedType": "boolean"
+ },
+ "closed_from": {
+ "name": "closed_from",
+ "type": "timestamptz",
"unsigned": false,
"autoincrement": false,
"primary": false,
"nullable": true,
- "mappedType": "text"
+ "length": 6,
+ "mappedType": "datetime"
},
- "status": {
- "name": "status",
- "type": "text",
+ "closed_to": {
+ "name": "closed_to",
+ "type": "timestamptz",
"unsigned": false,
"autoincrement": false,
"primary": false,
- "nullable": false,
- "default": "'pending'",
- "enumItems": [
- "pending",
- "active",
- "suspended"
- ],
- "mappedType": "enum"
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
},
"created_at": {
"name": "created_at",
@@ -272,6 +411,33 @@
"name": "seller",
"schema": "public",
"indexes": [
+ {
+ "keyName": "IDX_seller_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_deleted_at\" ON \"seller\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_seller_email_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_seller_email_unique\" ON \"seller\" (\"email\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_seller_name_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_seller_name_unique\" ON \"seller\" (\"name\") WHERE deleted_at IS NULL"
+ },
{
"keyName": "IDX_seller_handle_unique",
"columnNames": [],
@@ -282,13 +448,22 @@
"expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_seller_handle_unique\" ON \"seller\" (\"handle\") WHERE deleted_at IS NULL"
},
{
- "keyName": "IDX_seller_deleted_at",
+ "keyName": "IDX_seller_external_id_unique",
"columnNames": [],
"composite": false,
"constraint": false,
"primary": false,
"unique": false,
- "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_deleted_at\" ON \"seller\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_seller_external_id_unique\" ON \"seller\" (\"external_id\") WHERE deleted_at IS NULL AND external_id IS NOT NULL"
+ },
+ {
+ "keyName": "IDX_seller_active_closure",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_active_closure\" ON \"seller\" (\"status\", \"closed_from\", \"closed_to\") WHERE deleted_at IS NULL"
},
{
"keyName": "seller_pkey",
@@ -304,6 +479,807 @@
"checks": [],
"foreignKeys": {},
"nativeEnums": {}
+ },
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "corporate_name": {
+ "name": "corporate_name",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "registration_number": {
+ "name": "registration_number",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "tax_id": {
+ "name": "tax_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "seller_id": {
+ "name": "seller_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "professional_details",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_professional_details_seller_id_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_professional_details_seller_id_unique\" ON \"professional_details\" (\"seller_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_professional_details_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_professional_details_deleted_at\" ON \"professional_details\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "professional_details_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {
+ "professional_details_seller_id_foreign": {
+ "constraintName": "professional_details_seller_id_foreign",
+ "columnNames": [
+ "seller_id"
+ ],
+ "localTableName": "public.professional_details",
+ "referencedColumnNames": [
+ "id"
+ ],
+ "referencedTableName": "public.seller",
+ "deleteRule": "cascade",
+ "updateRule": "cascade"
+ }
+ },
+ "nativeEnums": {}
+ },
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "holder_name": {
+ "name": "holder_name",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "bank_name": {
+ "name": "bank_name",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "iban": {
+ "name": "iban",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "bic": {
+ "name": "bic",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "routing_number": {
+ "name": "routing_number",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "account_number": {
+ "name": "account_number",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "seller_id": {
+ "name": "seller_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "payment_details",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_payment_details_seller_id_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_payment_details_seller_id_unique\" ON \"payment_details\" (\"seller_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_payment_details_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_payment_details_deleted_at\" ON \"payment_details\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "payment_details_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {
+ "payment_details_seller_id_foreign": {
+ "constraintName": "payment_details_seller_id_foreign",
+ "columnNames": [
+ "seller_id"
+ ],
+ "localTableName": "public.payment_details",
+ "referencedColumnNames": [
+ "id"
+ ],
+ "referencedTableName": "public.seller",
+ "deleteRule": "cascade",
+ "updateRule": "cascade"
+ }
+ },
+ "nativeEnums": {}
+ },
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "token": {
+ "name": "token",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "accepted": {
+ "name": "accepted",
+ "type": "boolean",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "default": "false",
+ "mappedType": "boolean"
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "mappedType": "datetime"
+ },
+ "role_id": {
+ "name": "role_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "seller_id": {
+ "name": "seller_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "member_invite",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_member_invite_seller_id",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_member_invite_seller_id\" ON \"member_invite\" (\"seller_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_member_invite_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_member_invite_deleted_at\" ON \"member_invite\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_member_invite_email_seller_id_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_member_invite_email_seller_id_unique\" ON \"member_invite\" (\"email\", \"seller_id\") WHERE deleted_at IS NULL AND accepted = false"
+ },
+ {
+ "keyName": "IDX_member_invite_token",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_member_invite_token\" ON \"member_invite\" (\"token\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "member_invite_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {
+ "member_invite_seller_id_foreign": {
+ "constraintName": "member_invite_seller_id_foreign",
+ "columnNames": [
+ "seller_id"
+ ],
+ "localTableName": "public.member_invite",
+ "referencedColumnNames": [
+ "id"
+ ],
+ "referencedTableName": "public.seller",
+ "deleteRule": "cascade",
+ "updateRule": "cascade"
+ }
+ },
+ "nativeEnums": {}
+ },
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "company": {
+ "name": "company",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "first_name": {
+ "name": "first_name",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "last_name": {
+ "name": "last_name",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "address_1": {
+ "name": "address_1",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "address_2": {
+ "name": "address_2",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "city": {
+ "name": "city",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "country_code": {
+ "name": "country_code",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "province": {
+ "name": "province",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "postal_code": {
+ "name": "postal_code",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "phone": {
+ "name": "phone",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "seller_id": {
+ "name": "seller_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "seller_address",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_seller_address_seller_id_unique",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_seller_address_seller_id_unique\" ON \"seller_address\" (\"seller_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_seller_address_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_address_deleted_at\" ON \"seller_address\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "seller_address_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {
+ "seller_address_seller_id_foreign": {
+ "constraintName": "seller_address_seller_id_foreign",
+ "columnNames": [
+ "seller_id"
+ ],
+ "localTableName": "public.seller_address",
+ "referencedColumnNames": [
+ "id"
+ ],
+ "referencedTableName": "public.seller",
+ "deleteRule": "cascade",
+ "updateRule": "cascade"
+ }
+ },
+ "nativeEnums": {}
+ },
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "seller_id": {
+ "name": "seller_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "member_id": {
+ "name": "member_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "role_id": {
+ "name": "role_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "text"
+ },
+ "is_owner": {
+ "name": "is_owner",
+ "type": "boolean",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "default": "false",
+ "mappedType": "boolean"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "seller_member",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_seller_member_seller_id",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_member_seller_id\" ON \"seller_member\" (\"seller_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_seller_member_member_id",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_member_member_id\" ON \"seller_member\" (\"member_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_seller_member_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_seller_member_deleted_at\" ON \"seller_member\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "seller_member_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {},
+ "nativeEnums": {}
}
],
"nativeEnums": {}
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260123112516.ts b/packages/core-plugin/src/modules/seller/migrations/Migration20260123112516.ts
deleted file mode 100644
index 4d1109fa6..000000000
--- a/packages/core-plugin/src/modules/seller/migrations/Migration20260123112516.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { Migration } from "@medusajs/framework/mikro-orm/migrations";
-
-export class Migration20260123112516 extends Migration {
-
- override async up(): Promise<void> {
- this.addSql(`alter table if exists "seller" drop constraint if exists "seller_handle_unique";`);
- this.addSql(`create table if not exists "order_group" ("id" text not null, "customer_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "order_group_pkey" primary key ("id"));`);
- this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_order_group_deleted_at" ON "order_group" ("deleted_at") WHERE deleted_at IS NULL;`);
-
- this.addSql(`create table if not exists "seller" ("id" text not null, "name" text not null, "handle" text not null, "email" text not null, "phone" text null, "logo" text null, "cover_image" text null, "address_1" text null, "address_2" text null, "city" text null, "country_code" text null, "province" text null, "postal_code" text null, "status" text check ("status" in ('pending', 'active', 'suspended')) not null default 'pending', "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "seller_pkey" primary key ("id"));`);
- this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_handle_unique" ON "seller" ("handle") WHERE deleted_at IS NULL;`);
- this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_deleted_at" ON "seller" ("deleted_at") WHERE deleted_at IS NULL;`);
- }
-
- override async down(): Promise<void> {
- this.addSql(`drop table if exists "order_group" cascade;`);
-
- this.addSql(`drop table if exists "seller" cascade;`);
- }
-
-}
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260126130937.ts b/packages/core-plugin/src/modules/seller/migrations/Migration20260126130937.ts
deleted file mode 100644
index 249c7fc85..000000000
--- a/packages/core-plugin/src/modules/seller/migrations/Migration20260126130937.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Migration } from "@medusajs/framework/mikro-orm/migrations";
-
-export class Migration20260126130937 extends Migration {
-
- override async up(): Promise<void> {
- this.addSql(`alter table if exists "order_group" add column if not exists "cart_id" text not null;`);
- this.addSql(`alter table if exists "order_group" alter column "customer_id" type text using ("customer_id"::text);`);
- this.addSql(`alter table if exists "order_group" alter column "customer_id" drop not null;`);
- }
-
- override async down(): Promise<void> {
- this.addSql(`alter table if exists "order_group" drop column if exists "cart_id";`);
-
- this.addSql(`alter table if exists "order_group" alter column "customer_id" type text using ("customer_id"::text);`);
- this.addSql(`alter table if exists "order_group" alter column "customer_id" set not null;`);
- }
-
-}
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260302150223.ts b/packages/core-plugin/src/modules/seller/migrations/Migration20260302150223.ts
deleted file mode 100644
index 078468359..000000000
--- a/packages/core-plugin/src/modules/seller/migrations/Migration20260302150223.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Migration } from "@medusajs/framework/mikro-orm/migrations";
-
-export class Migration20260302150223 extends Migration {
-
- override async up(): Promise<void> {
- this.addSql(`alter table if exists "order_group" add column if not exists "display_id" serial;`);
- }
-
- override async down(): Promise<void> {
- this.addSql(`alter table if exists "order_group" drop column if exists "display_id";`);
- }
-
-}
diff --git a/packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.ts b/packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.ts
new file mode 100644
index 000000000..bf1a9bd26
--- /dev/null
+++ b/packages/core-plugin/src/modules/seller/migrations/Migration20260324104737.ts
@@ -0,0 +1,88 @@
+import { Migration } from "@medusajs/framework/mikro-orm/migrations";
+
+export class Migration20260324104737 extends Migration {
+
+ override async up(): Promise<void> {
+ this.addSql(`alter table if exists "seller_address" drop constraint if exists "seller_address_seller_id_unique";`);
+ this.addSql(`alter table if exists "member_invite" drop constraint if exists "member_invite_email_seller_id_unique";`);
+ this.addSql(`alter table if exists "payment_details" drop constraint if exists "payment_details_seller_id_unique";`);
+ this.addSql(`alter table if exists "professional_details" drop constraint if exists "professional_details_seller_id_unique";`);
+ this.addSql(`alter table if exists "seller" drop constraint if exists "seller_external_id_unique";`);
+ this.addSql(`alter table if exists "seller" drop constraint if exists "seller_handle_unique";`);
+ this.addSql(`alter table if exists "seller" drop constraint if exists "seller_name_unique";`);
+ this.addSql(`alter table if exists "seller" drop constraint if exists "seller_email_unique";`);
+ this.addSql(`alter table if exists "member" drop constraint if exists "member_email_unique";`);
+ this.addSql(`create table if not exists "member" ("id" text not null, "email" text not null, "locale" text null, "is_active" boolean not null default true, "metadata" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "member_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_member_deleted_at" ON "member" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_member_email_unique" ON "member" ("email") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "order_group" ("id" text not null, "display_id" serial, "customer_id" text null, "cart_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "order_group_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_order_group_deleted_at" ON "order_group" ("deleted_at") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "seller" ("id" text not null, "name" text not null, "handle" text not null, "email" text not null, "description" text null, "logo" text null, "banner" text null, "website_url" text null, "external_id" text null, "currency_code" text not null, "status" text check ("status" in ('open', 'pending_approval', 'suspended', 'terminated')) not null default 'pending_approval', "status_reason" text null, "is_premium" boolean not null default false, "closed_from" timestamptz null, "closed_to" timestamptz null, "metadata" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "seller_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_deleted_at" ON "seller" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_email_unique" ON "seller" ("email") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_name_unique" ON "seller" ("name") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_handle_unique" ON "seller" ("handle") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_external_id_unique" ON "seller" ("external_id") WHERE deleted_at IS NULL AND external_id IS NOT NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_active_closure" ON "seller" ("status", "closed_from", "closed_to") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "professional_details" ("id" text not null, "corporate_name" text not null, "registration_number" text null, "tax_id" text null, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "professional_details_pkey" primary key ("id"));`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_professional_details_seller_id_unique" ON "professional_details" ("seller_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_professional_details_deleted_at" ON "professional_details" ("deleted_at") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "payment_details" ("id" text not null, "holder_name" text not null, "bank_name" text null, "iban" text null, "bic" text null, "routing_number" text null, "account_number" text null, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "payment_details_pkey" primary key ("id"));`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_payment_details_seller_id_unique" ON "payment_details" ("seller_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_payment_details_deleted_at" ON "payment_details" ("deleted_at") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "member_invite" ("id" text not null, "email" text not null, "token" text not null, "accepted" boolean not null default false, "expires_at" timestamptz not null, "role_id" text not null, "seller_id" text not null, "metadata" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "member_invite_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_member_invite_seller_id" ON "member_invite" ("seller_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_member_invite_deleted_at" ON "member_invite" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_member_invite_email_seller_id_unique" ON "member_invite" ("email", "seller_id") WHERE deleted_at IS NULL AND accepted = false;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_member_invite_token" ON "member_invite" ("token") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "seller_address" ("id" text not null, "company" text null, "first_name" text null, "last_name" text null, "address_1" text null, "address_2" text null, "city" text null, "country_code" text null, "province" text null, "postal_code" text null, "phone" text null, "metadata" jsonb null, "seller_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "seller_address_pkey" primary key ("id"));`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_seller_address_seller_id_unique" ON "seller_address" ("seller_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_address_deleted_at" ON "seller_address" ("deleted_at") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "seller_member" ("id" text not null, "seller_id" text not null, "member_id" text not null, "role_id" text null, "is_owner" boolean not null default false, "metadata" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "seller_member_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_member_seller_id" ON "seller_member" ("seller_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_member_member_id" ON "seller_member" ("member_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_seller_member_deleted_at" ON "seller_member" ("deleted_at") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`alter table if exists "professional_details" add constraint "professional_details_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade on delete cascade;`);
+
+ this.addSql(`alter table if exists "payment_details" add constraint "payment_details_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade on delete cascade;`);
+
+ this.addSql(`alter table if exists "member_invite" add constraint "member_invite_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade on delete cascade;`);
+
+ this.addSql(`alter table if exists "seller_address" add constraint "seller_address_seller_id_foreign" foreign key ("seller_id") references "seller" ("id") on update cascade on delete cascade;`);
+ }
+
+ override async down(): Promise<void> {
+ this.addSql(`alter table if exists "professional_details" drop constraint if exists "professional_details_seller_id_foreign";`);
+
+ this.addSql(`alter table if exists "payment_details" drop constraint if exists "payment_details_seller_id_foreign";`);
+
+ this.addSql(`alter table if exists "member_invite" drop constraint if exists "member_invite_seller_id_foreign";`);
+
+ this.addSql(`alter table if exists "seller_address" drop constraint if exists "seller_address_seller_id_foreign";`);
+
+ this.addSql(`drop table if exists "member" cascade;`);
+
+ this.addSql(`drop table if exists "order_group" cascade;`);
+
+ this.addSql(`drop table if exists "seller" cascade;`);
+
+ this.addSql(`drop table if exists "professional_details" cascade;`);
+
+ this.addSql(`drop table if exists "payment_details" cascade;`);
+
+ this.addSql(`drop table if exists "member_invite" cascade;`);
+
+ this.addSql(`drop table if exists "seller_address" cascade;`);
+
+ this.addSql(`drop table if exists "seller_member" cascade;`);
+ }
+
+}
diff --git a/packages/core-plugin/src/modules/seller/models/member-invite.ts b/packages/core-plugin/src/modules/seller/models/member-invite.ts
index 400748c6d..a182d3a9a 100644
--- a/packages/core-plugin/src/modules/seller/models/member-invite.ts
+++ b/packages/core-plugin/src/modules/seller/models/member-invite.ts
@@ -8,7 +8,7 @@ const MemberInvite = model
token: model.text(),
accepted: model.boolean().default(false),
expires_at: model.dateTime(),
- role_handle: model.text(),
+ role_id: model.text(),
seller: model.belongsTo(() => Seller, {
mappedBy: "member_invites",
}),
diff --git a/packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.json b/packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.json
new file mode 100644
index 000000000..be2b32b47
--- /dev/null
+++ b/packages/core-plugin/src/modules/subscription/migrations/.snapshot-medusa-subscription.json
@@ -0,0 +1,340 @@
+{
+ "namespaces": [
+ "public"
+ ],
+ "name": "public",
+ "tables": [
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "currency_code": {
+ "name": "currency_code",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "monthly_amount": {
+ "name": "monthly_amount",
+ "type": "numeric",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "decimal"
+ },
+ "free_months": {
+ "name": "free_months",
+ "type": "integer",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "default": "0",
+ "mappedType": "integer"
+ },
+ "requires_orders": {
+ "name": "requires_orders",
+ "type": "boolean",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "default": "false",
+ "mappedType": "boolean"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "raw_monthly_amount": {
+ "name": "raw_monthly_amount",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "json"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "subscription_plan",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_subscription_plan_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_subscription_plan_deleted_at\" ON \"subscription_plan\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_subscription_plan_unique_currency",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_subscription_plan_unique_currency\" ON \"subscription_plan\" (\"currency_code\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "subscription_plan_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {},
+ "nativeEnums": {}
+ },
+ {
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "reference": {
+ "name": "reference",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "reference_id": {
+ "name": "reference_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "plan_id": {
+ "name": "plan_id",
+ "type": "text",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "mappedType": "text"
+ },
+ "monthly_amount": {
+ "name": "monthly_amount",
+ "type": "numeric",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "decimal"
+ },
+ "free_months": {
+ "name": "free_months",
+ "type": "integer",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "integer"
+ },
+ "free_from": {
+ "name": "free_from",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ },
+ "free_to": {
+ "name": "free_to",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "raw_monthly_amount": {
+ "name": "raw_monthly_amount",
+ "type": "jsonb",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "mappedType": "json"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": false,
+ "length": 6,
+ "default": "now()",
+ "mappedType": "datetime"
+ },
+ "deleted_at": {
+ "name": "deleted_at",
+ "type": "timestamptz",
+ "unsigned": false,
+ "autoincrement": false,
+ "primary": false,
+ "nullable": true,
+ "length": 6,
+ "mappedType": "datetime"
+ }
+ },
+ "name": "subscription_override",
+ "schema": "public",
+ "indexes": [
+ {
+ "keyName": "IDX_subscription_override_plan_id",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_subscription_override_plan_id\" ON \"subscription_override\" (\"plan_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_subscription_override_deleted_at",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_subscription_override_deleted_at\" ON \"subscription_override\" (\"deleted_at\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_subscription_override_unique_reference",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE UNIQUE INDEX IF NOT EXISTS \"IDX_subscription_override_unique_reference\" ON \"subscription_override\" (\"reference\", \"reference_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "IDX_subscription_override_reference_id",
+ "columnNames": [],
+ "composite": false,
+ "constraint": false,
+ "primary": false,
+ "unique": false,
+ "expression": "CREATE INDEX IF NOT EXISTS \"IDX_subscription_override_reference_id\" ON \"subscription_override\" (\"reference_id\") WHERE deleted_at IS NULL"
+ },
+ {
+ "keyName": "subscription_override_pkey",
+ "columnNames": [
+ "id"
+ ],
+ "composite": false,
+ "constraint": true,
+ "primary": true,
+ "unique": true
+ }
+ ],
+ "checks": [],
+ "foreignKeys": {
+ "subscription_override_plan_id_foreign": {
+ "constraintName": "subscription_override_plan_id_foreign",
+ "columnNames": [
+ "plan_id"
+ ],
+ "localTableName": "public.subscription_override",
+ "referencedColumnNames": [
+ "id"
+ ],
+ "referencedTableName": "public.subscription_plan",
+ "deleteRule": "cascade",
+ "updateRule": "cascade"
+ }
+ },
+ "nativeEnums": {}
+ }
+ ],
+ "nativeEnums": {}
+}
diff --git a/packages/core-plugin/src/modules/subscription/migrations/Migration20260323170925.ts b/packages/core-plugin/src/modules/subscription/migrations/Migration20260323170925.ts
new file mode 100644
index 000000000..473391f4f
--- /dev/null
+++ b/packages/core-plugin/src/modules/subscription/migrations/Migration20260323170925.ts
@@ -0,0 +1,27 @@
+import { Migration } from "@medusajs/framework/mikro-orm/migrations";
+
+export class Migration20260323170925 extends Migration {
+
+ override async up(): Promise<void> {
+ this.addSql(`create table if not exists "subscription_plan" ("id" text not null, "currency_code" text not null, "monthly_amount" numeric not null, "free_months" integer not null default 0, "requires_orders" boolean not null default false, "metadata" jsonb null, "raw_monthly_amount" jsonb not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "subscription_plan_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_subscription_plan_deleted_at" ON "subscription_plan" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_subscription_plan_unique_currency" ON "subscription_plan" ("currency_code") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`create table if not exists "subscription_override" ("id" text not null, "reference" text not null, "reference_id" text not null, "plan_id" text not null, "monthly_amount" numeric null, "free_months" integer null, "free_from" timestamptz null, "free_to" timestamptz null, "metadata" jsonb null, "raw_monthly_amount" jsonb null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "subscription_override_pkey" primary key ("id"));`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_subscription_override_plan_id" ON "subscription_override" ("plan_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_subscription_override_deleted_at" ON "subscription_override" ("deleted_at") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE UNIQUE INDEX IF NOT EXISTS "IDX_subscription_override_unique_reference" ON "subscription_override" ("reference", "reference_id") WHERE deleted_at IS NULL;`);
+ this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_subscription_override_reference_id" ON "subscription_override" ("reference_id") WHERE deleted_at IS NULL;`);
+
+ this.addSql(`alter table if exists "subscription_override" add constraint "subscription_override_plan_id_foreign" foreign key ("plan_id") references "subscription_plan" ("id") on update cascade on delete cascade;`);
+ }
+
+ override async down(): Promise<void> {
+ this.addSql(`alter table if exists "subscription_override" drop constraint if exists "subscription_override_plan_id_foreign";`);
+
+ this.addSql(`drop table if exists "subscription_plan" cascade;`);
+
+ this.addSql(`drop table if exists "subscription_override" cascade;`);
+ }
+
+}
diff --git a/packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts b/packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts
index c42a1b11c..5a9de500f 100644
--- a/packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts
+++ b/packages/core-plugin/src/workflows/seller/steps/create-member-invites.ts
@@ -6,7 +6,7 @@ import SellerModuleService from "../../../modules/seller/service"
type CreateMemberInviteStepInput = {
seller_id: string
email: string
- role_handle: string
+ role_id: string
}
export const createMemberInvitesStep = createStep(
diff --git a/packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts b/packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts
index d2a31f1f3..96d90ed8c 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/accept-member-invite.ts
@@ -5,7 +5,6 @@ import {
} from "@medusajs/framework/workflows-sdk"
import {
emitEventStep,
- useQueryGraphStep,
} from "@medusajs/medusa/core-flows"
import { setAuthAppMetadataStep } from "@medusajs/medusa/core-flows"
@@ -30,13 +29,6 @@ export const acceptMemberInviteWorkflow = createWorkflow(
function (input: AcceptMemberInviteWorkflowInput) {
const invite = validateMemberInviteTokenStep(input.invite_token)
- const { data: role } = useQueryGraphStep({
- entity: "role",
- fields: ["id"],
- filters: { handle: invite.role_handle },
- options: { throwIfKeyNotFound: true },
- }).config({ name: "get-invite-role" })
-
const members = upsertMembersStep(
transform({ invite }, ({ invite }) => [{ email: invite.email }])
)
@@ -45,11 +37,11 @@ export const acceptMemberInviteWorkflow = createWorkflow(
const sellerMembers = createSellerMembersStep(
transform(
- { invite, member, role },
- ({ invite, member, role }) => [{
+ { invite, member },
+ ({ invite, member }) => [{
seller_id: invite.seller_id,
member_id: member.id,
- role_id: role[0].id,
+ role_id: invite.role_id,
}]
)
)
diff --git a/packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts b/packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts
index a27cd9c56..db9f3032c 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/add-seller-member.ts
@@ -5,7 +5,6 @@ import {
} from "@medusajs/framework/workflows-sdk"
import {
emitEventStep,
- useQueryGraphStep,
} from "@medusajs/medusa/core-flows"
import { createSellerMembersStep } from "../steps"
@@ -16,26 +15,19 @@ export const addSellerMemberWorkflowId = "add-seller-member"
type AddSellerMemberWorkflowInput = {
seller_id: string
member_id: string
- role_handle: string
+ role_id: string
}
export const addSellerMemberWorkflow = createWorkflow(
addSellerMemberWorkflowId,
function (input: AddSellerMemberWorkflowInput) {
- const { data: role } = useQueryGraphStep({
- entity: "role",
- fields: ["id"],
- filters: { handle: input.role_handle },
- options: { throwIfKeyNotFound: true },
- }).config({ name: "get-role" })
-
const sellerMembers = createSellerMembersStep(
transform(
- { input, role },
- ({ input, role }) => [{
+ { input },
+ ({ input }) => [{
seller_id: input.seller_id,
member_id: input.member_id,
- role_id: role[0].id,
+ role_id: input.role_id,
}]
)
)
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts b/packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts
index 916f5c41f..8a6540b90 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/create-member-invites.ts
@@ -13,7 +13,7 @@ export const createMemberInvitesWorkflowId = "create-member-invites"
type CreateMemberInvitesWorkflowInput = {
seller_id: string
email: string
- role_handle: string
+ role_id: string
}[]
export const createMemberInvitesWorkflow = createWorkflow(
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts b/packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts
index e32c86661..9b118755a 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/create-seller-account.ts
@@ -7,9 +7,8 @@ import {
import {
emitEventStep,
setAuthAppMetadataStep,
- useQueryGraphStep,
} from "@medusajs/medusa/core-flows"
-import { CreateSellerDTO, SellerStatus } from "@mercurjs/types"
+import { CreateSellerDTO, SellerRole, SellerStatus } from "@mercurjs/types"
import { AdditionalData } from "@medusajs/framework/types"
import {
@@ -37,13 +36,6 @@ export const createSellerAccountWorkflow = createWorkflow(
const sellers = createSellersStep(sellerData)
const seller = transform({ sellers }, ({ sellers }) => sellers[0])
- const { data: sellerAdminRole } = useQueryGraphStep({
- entity: "role",
- fields: ["id"],
- filters: { handle: "seller-administration" },
- options: { throwIfKeyNotFound: true },
- }).config({ name: "get-seller-admin-role" })
-
const members = upsertMembersStep(
transform(input, ({ member }) => [{ email: member.email }])
)
@@ -52,12 +44,12 @@ export const createSellerAccountWorkflow = createWorkflow(
createSellerMembersStep(
transform(
- { seller, member, sellerAdminRole },
- ({ seller, member, sellerAdminRole }) => [
+ { seller, member },
+ ({ seller, member }) => [
{
seller_id: seller.id,
member_id: member.id,
- role_id: sellerAdminRole[0].id,
+ role_id: SellerRole.SELLER_ADMINISTRATION,
is_owner: true,
},
]
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-seller.ts b/packages/core-plugin/src/workflows/seller/workflows/create-seller.ts
index e30dfd47c..cb1ce87d6 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/create-seller.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/create-seller.ts
@@ -4,8 +4,8 @@ import {
transform,
WorkflowResponse,
} from "@medusajs/framework/workflows-sdk"
-import { useQueryGraphStep, emitEventStep } from "@medusajs/medusa/core-flows"
-import { CreateSellerDTO } from "@mercurjs/types"
+import { emitEventStep } from "@medusajs/medusa/core-flows"
+import { CreateSellerDTO, SellerRole } from "@mercurjs/types"
import { AdditionalData } from "@medusajs/framework/types"
import { createSellersStep, upsertMembersStep, createSellerMembersStep } from "../steps"
@@ -27,13 +27,6 @@ export const createSellersWorkflow = createWorkflow(
)
)
- const { data: sellerAdminRole } = useQueryGraphStep({
- entity: "role",
- fields: ["id"],
- filters: { handle: "seller-administration" },
- options: { throwIfKeyNotFound: true },
- }).config({ name: "get-seller-admin-role" })
-
const members = upsertMembersStep(
transform(input, ({ sellers }) =>
sellers.map(({ member }) => ({ email: member.email }))
@@ -42,12 +35,12 @@ export const createSellersWorkflow = createWorkflow(
createSellerMembersStep(
transform(
- { sellers, members, sellerAdminRole },
- ({ sellers, members, sellerAdminRole }) =>
+ { sellers, members },
+ ({ sellers, members }) =>
sellers.map((seller, i) => ({
seller_id: seller.id,
member_id: members[i].id,
- role_id: sellerAdminRole[0].id,
+ role_id: SellerRole.SELLER_ADMINISTRATION,
is_owner: true,
}))
)
@@ -60,7 +53,7 @@ export const createSellersWorkflow = createWorkflow(
sellers.map((seller, i) => ({
seller_id: seller.id,
email: input.sellers[i].member.email,
- role_handle: "seller-administration",
+ role_id: SellerRole.SELLER_ADMINISTRATION,
}))
)
})
diff --git a/packages/core-plugin/src/workflows/seller/workflows/create-sellers.ts b/packages/core-plugin/src/workflows/seller/workflows/create-sellers.ts
new file mode 100644
index 000000000..cb1ce87d6
--- /dev/null
+++ b/packages/core-plugin/src/workflows/seller/workflows/create-sellers.ts
@@ -0,0 +1,77 @@
+import {
+ createHook,
+ createWorkflow,
+ transform,
+ WorkflowResponse,
+} from "@medusajs/framework/workflows-sdk"
+import { emitEventStep } from "@medusajs/medusa/core-flows"
+import { CreateSellerDTO, SellerRole } from "@mercurjs/types"
+import { AdditionalData } from "@medusajs/framework/types"
+
+import { createSellersStep, upsertMembersStep, createSellerMembersStep } from "../steps"
+import { SellerWorkflowEvents } from "../../events"
+import { createMemberInvitesWorkflow } from "./create-member-invites"
+
+export const createSellersWorkflowId = "create-sellers"
+
+type CreateSellersWorkflowInput = {
+ sellers: (CreateSellerDTO & { member: { email: string } })[]
+} & AdditionalData
+
+export const createSellersWorkflow = createWorkflow(
+ createSellersWorkflowId,
+ function (input: CreateSellersWorkflowInput) {
+ const sellers = createSellersStep(
+ transform(input, ({ sellers }) =>
+ sellers.map(({ member, ...seller }) => seller)
+ )
+ )
+
+ const members = upsertMembersStep(
+ transform(input, ({ sellers }) =>
+ sellers.map(({ member }) => ({ email: member.email }))
+ )
+ )
+
+ createSellerMembersStep(
+ transform(
+ { sellers, members },
+ ({ sellers, members }) =>
+ sellers.map((seller, i) => ({
+ seller_id: seller.id,
+ member_id: members[i].id,
+ role_id: SellerRole.SELLER_ADMINISTRATION,
+ is_owner: true,
+ }))
+ )
+ )
+
+ createMemberInvitesWorkflow.runAsStep({
+ input: transform(
+ { sellers, input },
+ ({ sellers, input }) =>
+ sellers.map((seller, i) => ({
+ seller_id: seller.id,
+ email: input.sellers[i].member.email,
+ role_id: SellerRole.SELLER_ADMINISTRATION,
+ }))
+ )
+ })
+
+ const sellersCreated = createHook("sellersCreated", {
+ sellers,
+ additional_data: input.additional_data,
+ })
+
+ const eventData = transform({ sellers }, ({ sellers }) =>
+ sellers.map((s) => ({ id: s.id }))
+ )
+
+ emitEventStep({
+ eventName: SellerWorkflowEvents.CREATED,
+ data: eventData,
+ })
+
+ return new WorkflowResponse(sellers, { hooks: [sellersCreated] })
+ }
+)
diff --git a/packages/core-plugin/src/workflows/seller/workflows/index.ts b/packages/core-plugin/src/workflows/seller/workflows/index.ts
index 6eaeafb36..6fe0b9fc7 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/index.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/index.ts
@@ -1,4 +1,4 @@
-export * from "./create-seller"
+export * from "./create-sellers"
export * from "./update-seller"
export * from "./delete-seller"
export * from "./invite-seller"
diff --git a/packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts b/packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts
index e2f7da78d..bb0071d1a 100644
--- a/packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts
+++ b/packages/core-plugin/src/workflows/seller/workflows/update-member-role.ts
@@ -5,7 +5,6 @@ import {
} from "@medusajs/framework/workflows-sdk"
import {
emitEventStep,
- useQueryGraphStep,
} from "@medusajs/medusa/core-flows"
import { validateNotOwnerStep, updateSellerMembersStep } from "../steps"
@@ -15,7 +14,7 @@ export const updateMemberRoleWorkflowId = "update-member-role"
type UpdateMemberRoleWorkflowInput = {
seller_member_id: string
- role_handle: string
+ role_id: string
}
export const updateMemberRoleWorkflow = createWorkflow(
@@ -23,18 +22,11 @@ export const updateMemberRoleWorkflow = createWorkflow(
function (input: UpdateMemberRoleWorkflowInput) {
validateNotOwnerStep(input.seller_member_id)
- const { data: role } = useQueryGraphStep({
- entity: "role",
- fields: ["id"],
- filters: { handle: input.role_handle },
- options: { throwIfKeyNotFound: true },
- }).config({ name: "get-role" })
-
const updateInput = transform(
- { input, role },
- ({ input, role }) => ({
+ { input },
+ ({ input }) => ({
selector: { id: input.seller_member_id },
- update: { role_id: role[0].id },
+ update: { role_id: input.role_id },
})
)
diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.json
index 4d5ab52dc..632bcc051 100644
--- a/packages/dashboard-shared/package.json
+++ b/packages/dashboard-shared/package.json
@@ -31,9 +31,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "3.4.2",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
"@medusajs/ui": "4.1.1",
"@radix-ui/react-dialog": "1.1.4",
"@radix-ui/react-dismissable-layer": "1.1.4",
diff --git a/packages/registry/package.json b/packages/registry/package.json
index fb873dfd7..b7141822d 100644
--- a/packages/registry/package.json
+++ b/packages/registry/package.json
@@ -10,12 +10,12 @@
"codegen": "bunx @mercurjs/cli@latest registry:codegen"
},
"dependencies": {
- "@medusajs/framework": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
"@mercurjs/dashboard-shared": "workspace:*",
"@mercurjs/dashboard-sdk": "*",
"@medusajs/ui": "4.1.1",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/icons": "2.13.4",
"@tanstack/react-query": "5.64.2",
"react-i18next": "13.5.0",
"react-router-dom": "6.30.3",
@@ -24,7 +24,7 @@
"zod": "3.25.76",
"@mercurjs/core-plugin": "workspace:*",
"@mercurjs/vendor": "workspace:*",
- "@medusajs/core-flows": "^2.13.3",
+ "@medusajs/core-flows": "^2.13.4",
"react-hook-form": "7.49.1",
"@hookform/resolvers": "3.4.2",
"jsonwebtoken": "9.0.2",
@@ -39,7 +39,7 @@
"@types/react-dom": "^18.2.22",
"@types/node": "^22",
"@types/unzipper": "^0.10.10",
- "@medusajs/cli": "^2.13.3",
+ "@medusajs/cli": "^2.13.4",
"@types/multer": "^2.0.0",
"@types/jsonwebtoken": "^9.0.9"
}
diff --git a/packages/types/package.json b/packages/types/package.json
index 028277b16..5ae22e08f 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -25,7 +25,7 @@
"dev": "tsc --watch"
},
"dependencies": {
- "@medusajs/types": "2.13.3"
+ "@medusajs/types": "2.13.4"
},
"devDependencies": {
"typescript": "5.9.3"
diff --git a/packages/types/src/seller/common.ts b/packages/types/src/seller/common.ts
index eb1ccacc9..7e5b5a076 100644
--- a/packages/types/src/seller/common.ts
+++ b/packages/types/src/seller/common.ts
@@ -2,6 +2,14 @@ export type SellerModuleOptions = {
invite_valid_duration?: number
}
+export enum SellerRole {
+ SELLER_ADMINISTRATION = "role_seller_administration",
+ INVENTORY_MANAGEMENT = "role_seller_inventory_management",
+ ORDER_MANAGEMENT = "role_seller_order_management",
+ ACCOUNTING = "role_seller_accounting",
+ SUPPORT = "role_seller_support",
+}
+
export enum SellerStatus {
OPEN = "open",
PENDING_APPROVAL = "pending_approval",
@@ -146,7 +154,7 @@ export interface MemberInviteDTO {
token: string
accepted: boolean
expires_at: Date
- role_handle: string
+ role_id: string
seller_id: string
metadata: Record<string, unknown> | null
created_at: Date
@@ -155,7 +163,7 @@ export interface MemberInviteDTO {
export interface CreateMemberInviteDTO {
email: string
- role_handle: string
+ role_id: string
seller_id: string
metadata?: Record<string, unknown> | null
}
diff --git a/packages/vendor/package.json b/packages/vendor/package.json
index 743d73693..fe3cfc461 100644
--- a/packages/vendor/package.json
+++ b/packages/vendor/package.json
@@ -38,9 +38,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "3.4.2",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/icons": "2.13.4",
"@medusajs/ui": "4.1.1",
"@radix-ui/react-dialog": "1.1.4",
"@radix-ui/react-dismissable-layer": "1.1.4",
@@ -74,12 +74,12 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
- "@medusajs/ui-preset": "2.13.3",
+ "@medusajs/ui-preset": "2.13.4",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"tsup": "^8.0.2",
"typescript": "5.9.3",
- "@medusajs/types": "2.13.3",
+ "@medusajs/types": "2.13.4",
"@mercurjs/core-plugin": "workspace:*",
"@mercurjs/dashboard-sdk": "workspace:*",
"@mercurjs/types": "workspace:*"
diff --git a/templates/basic/package.json b/templates/basic/package.json
index 80a142ec4..2d49a6a65 100644
--- a/templates/basic/package.json
+++ b/templates/basic/package.json
@@ -12,7 +12,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"zod": "3.25.76",
- "@medusajs/icons": "^2.13.3",
+ "@medusajs/icons": "^2.13.4",
"@medusajs/ui": "4.1.1",
"@mercurjs/dashboard-sdk": "2.0.0",
"@mercurjs/dashboard-shared": "2.0.0",
diff --git a/templates/basic/packages/api/medusa-config.ts b/templates/basic/packages/api/medusa-config.ts
index 9bfcaded3..06e5bd416 100644
--- a/templates/basic/packages/api/medusa-config.ts
+++ b/templates/basic/packages/api/medusa-config.ts
@@ -24,14 +24,16 @@ module.exports = defineConfig({
resolve: '@mercurjs/core-plugin/modules/admin-ui',
options: {
appDir: path.join(__dirname, '../../apps/admin'),
- path: '/dashboard'
+ path: '/dashboard',
+ disable: true
} as DashboardModuleOptions
},
{
resolve: '@mercurjs/core-plugin/modules/vendor-ui',
options: {
appDir: path.join(__dirname, '../../apps/vendor'),
- path: '/seller'
+ path: '/seller',
+ disable: true
} as DashboardModuleOptions
},
],
diff --git a/templates/basic/packages/api/package.json b/templates/basic/packages/api/package.json
index 181fde2f9..f6b431f43 100644
--- a/templates/basic/packages/api/package.json
+++ b/templates/basic/packages/api/package.json
@@ -27,20 +27,20 @@
"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
},
"dependencies": {
- "@medusajs/admin-sdk": "^2.13.3",
- "@medusajs/cli": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/dashboard": "^2.13.3",
- "@medusajs/admin-shared": "^2.13.3",
- "@medusajs/medusa": "^2.13.3",
- "@medusajs/draft-order": "2.13.3",
+ "@medusajs/admin-sdk": "^2.13.4",
+ "@medusajs/cli": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/dashboard": "^2.13.4",
+ "@medusajs/admin-shared": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4",
+ "@medusajs/draft-order": "2.13.4",
"@mercurjs/core-plugin": "2.0.0",
"@mercurjs/types": "2.0.0",
"http-proxy-middleware": "^3.0.3",
"@mercurjs/cli": "2.0.0"
},
"devDependencies": {
- "@medusajs/test-utils": "^2.13.3",
+ "@medusajs/test-utils": "^2.13.4",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
diff --git a/templates/plugin/package.json b/templates/plugin/package.json
index b6de59f31..cd3162b9e 100644
--- a/templates/plugin/package.json
+++ b/templates/plugin/package.json
@@ -39,13 +39,13 @@
"prepublishOnly": "npx @mercurjs/cli@latest plugin:build"
},
"devDependencies": {
- "@medusajs/admin-sdk": "2.13.3",
- "@medusajs/cli": "2.13.3",
- "@medusajs/framework": "2.13.3",
- "@medusajs/medusa": "2.13.3",
- "@medusajs/test-utils": "2.13.3",
+ "@medusajs/admin-sdk": "2.13.4",
+ "@medusajs/cli": "2.13.4",
+ "@medusajs/framework": "2.13.4",
+ "@medusajs/medusa": "2.13.4",
+ "@medusajs/test-utils": "2.13.4",
"@medusajs/ui": "4.0.25",
- "@medusajs/icons": "2.13.3",
+ "@medusajs/icons": "2.13.4",
"@swc/core": "^1.7.28",
"@types/node": "^20.0.0",
"@types/react": "^18.3.2",
@@ -59,14 +59,14 @@
"yalc": "^1.0.0-pre.53"
},
"peerDependencies": {
- "@medusajs/admin-sdk": "2.13.3",
- "@medusajs/admin-shared": "2.13.3",
- "@medusajs/cli": "2.13.3",
- "@medusajs/framework": "2.13.3",
- "@medusajs/test-utils": "2.13.3",
- "@medusajs/medusa": "2.13.3",
+ "@medusajs/admin-sdk": "2.13.4",
+ "@medusajs/admin-shared": "2.13.4",
+ "@medusajs/cli": "2.13.4",
+ "@medusajs/framework": "2.13.4",
+ "@medusajs/test-utils": "2.13.4",
+ "@medusajs/medusa": "2.13.4",
"@medusajs/ui": "4.0.25",
- "@medusajs/icons": "2.13.3"
+ "@medusajs/icons": "2.13.4"
},
"engines": {
"node": ">=20"
diff --git a/templates/registry/package.json b/templates/registry/package.json
index 17f314c5c..aa02f2df0 100644
--- a/templates/registry/package.json
+++ b/templates/registry/package.json
@@ -13,9 +13,9 @@
"@mercurjs/cli": "*",
"@types/node": "^22",
"@types/unzipper": "^0.10.10",
- "@medusajs/admin-sdk": "^2.13.3",
- "@medusajs/cli": "^2.13.3",
- "@medusajs/framework": "^2.13.3",
- "@medusajs/medusa": "^2.13.3"
+ "@medusajs/admin-sdk": "^2.13.4",
+ "@medusajs/cli": "^2.13.4",
+ "@medusajs/framework": "^2.13.4",
+ "@medusajs/medusa": "^2.13.4"
}
}