{"_id":"@csbeker/medusa-sellers","_rev":"8-27057c405d96c7af64a87fe3b1a40cec","name":"@csbeker/medusa-sellers","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@csbeker/medusa-sellers","version":"1.0.0","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.0","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"b18436867c7cee818c362e78e3b83325af552d3d","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.0.tgz","fileCount":29,"integrity":"sha512-5uNbPs/P41uYbXIzU6UNrPZ1FSh2Ku2WtQ1thQDVpCQ/tTorO4m3pBQV7t0jvVn9nNLqBffKIWqA+EI/ygwHQw==","signatures":[{"sig":"MEUCICXArJV6e1hkQk1v+AjC4GeNBmGy3CLhxvYZZWOc5cZsAiEAprqMp0K0XFzSrk3T8iY7a4yHNYUpcnpu7xdNr5gjHNI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":254808},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","build":"medusa plugin:build","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"_npmVersion":"10.4.0","description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.25.76","jsonwebtoken":"^9.0.3","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","ts-node":"^10.9.2","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@medusajs/admin-shared":"2.12.1"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.0_1772106765282_0.010559939188281797","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@csbeker/medusa-sellers","version":"1.0.1","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.1","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"46e914ac3f9172ce5a0d06aae0ac528c712f1367","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.1.tgz","fileCount":60,"integrity":"sha512-NpyFqqTACGO9NGwROJTG+ELPQLqxocxd59jmG1JRo+73vX5AfB6M8R2VB3XLZJ7I88H8oUa7DAl4gUxDNhbKHw==","signatures":[{"sig":"MEQCIGT0rWWLl1XH0O/7IBStQQen5t4RCQt8QZN8upiuppjeAiAjUoiGns9dFxLJ12hnGt18L6wAGgRH+nswtnwZ6ubmnQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":265289},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","build":"medusa plugin:build","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"dependencies":{"zod":"^3.25.76","jsonwebtoken":"^9.0.3","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","ts-node":"^10.9.2","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@medusajs/admin-shared":"2.12.1"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.1_1772109416187_0.22472564780253768","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@csbeker/medusa-sellers","version":"1.0.2","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.2","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"df31e7434a4b330446031483271fb6f85cccda37","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.2.tgz","fileCount":60,"integrity":"sha512-ST4cxGwWfXq2SeofiGGpp2oFpfPpzygrUOr+0fgBJGdAyT2EcmpkwFv0GVB4CCeLiowDVubY5XVBMqciwSapoA==","signatures":[{"sig":"MEQCIDjHP+ozkbI36GmY0T9qQ/9QVG7zaWzOJ5XpIXY6hUf3AiBlFE4znaOgBXBujcaHmn8XodRC1CdRQuarDxVXfIPjaQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":265312},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","build":"medusa plugin:build","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"dependencies":{"zod":"^3.25.76","jsonwebtoken":"^9.0.3","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","ts-node":"^10.9.2","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@medusajs/admin-shared":"2.12.1"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.2_1772109669733_0.747432155081325","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@csbeker/medusa-sellers","version":"1.0.3","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.3","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"18527b5feb4e33285df62ef2377022d12c0ff060","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.3.tgz","fileCount":60,"integrity":"sha512-EfMT9Vn77BaJpohRY168HiPxuNwAtklwg8WY/SsJnpwoQEQ2Li3rHenSDTOGMD3I7swm6QdNrHTcBdfvfsuSmw==","signatures":[{"sig":"MEYCIQD6Uw0qEXHLjT8wNcsDTm2RUFBl/W+bkaJYGKmp44Jc4AIhAMPxqIeZhfcCzKlExxdyxa+iPDj+XpTRdUzNSx6tl0N/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":265337},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","build":"medusa plugin:build","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"dependencies":{"zod":"^3.25.76","jsonwebtoken":"^9.0.3","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","ts-node":"^10.9.2","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"^4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@medusajs/admin-shared":"2.12.1"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"^4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.3_1772142953037_0.09770127928968031","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@csbeker/medusa-sellers","version":"1.0.4","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.4","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"35b5eaaa66d25a2167dd80c721f2190d412aa3e7","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.4.tgz","fileCount":60,"integrity":"sha512-BEvimUjRT5frkC29NN2eXu0hAQqeDBJJrlj+Zgdv5BsX1kFWYtTRBCcHE0Kl3TFR7vgwzy0QM8s3M0gcAZFPKQ==","signatures":[{"sig":"MEQCIE2mxS2gP5hYNu8MTawMUKg6vwri2OSb6WbGmj0VJc6bAiAGYfla0pRRlJThReHSTFQ2Bc2Gz/VB6Vehbt0VKb4Hdg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":265605},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","build":"medusa plugin:build","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"dependencies":{"zod":"^3.25.76","jsonwebtoken":"^9.0.3","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","ts-node":"^10.9.2","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"^4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@medusajs/admin-shared":"2.12.1"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"^4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.4_1772151429325_0.340906705483484","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@csbeker/medusa-sellers","version":"1.0.5","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.5","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"be5479a25b104d6e2a6b8b4a8eadf3a234e82abb","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.5.tgz","fileCount":128,"integrity":"sha512-j48GCkKJN8Sszzshn7Y5RxfIkplKYlN4wlNdSc8y4fEROgWuSESPUYQyHjGMlcbeRoX22gjhq9nnTbdOvuHvYA==","signatures":[{"sig":"MEYCIQDLd1wPfDCYFm9pM8+3biEADxlY8EO+akw0hhCysp8OVAIhAIhOVekd2IJnEyveJPcKtBPcA1UgnMAgOtUwXFxtLRfV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":451073},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","lint":"eslint src","build":"medusa plugin:build","format":"prettier --write src","lint:fix":"eslint src --fix","format:check":"prettier --check src","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"dependencies":{"zod":"^3.25.76","nodemailer":"^8.0.5","jsonwebtoken":"^9.0.3","express-rate-limit":"^8.3.2","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","eslint":"^9.39.4","ts-node":"^10.9.2","prettier":"^2.8.8","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"^4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@types/express":"^5.0.6","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","react-router-dom":"6.20.1","@types/nodemailer":"^7.0.11","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","eslint-plugin-react":"^7.37.5","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@tanstack/react-query":"5.64.2","@medusajs/admin-shared":"2.12.1","eslint-config-prettier":"^10.1.8","@typescript-eslint/parser":"^8.58.2","eslint-plugin-react-hooks":"^4.6.2","@typescript-eslint/eslint-plugin":"^8.58.2"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"^4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.5_1776675496434_0.4300764060084963","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@csbeker/medusa-sellers","version":"1.0.6","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"author":{"url":"https://github.com/cronopia-web","name":"Cronopia Web"},"license":"MIT","_id":"@csbeker/medusa-sellers@1.0.6","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"dist":{"shasum":"7535fe94713552be716e3200108ebdb89fdcdeac","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.0.6.tgz","fileCount":128,"integrity":"sha512-GAZ/3PQ8hHc0cyyz7pQ6aJ6zkG7iX+mzkklY/7ePews9LwJvbmbaku8HJhoFaDK9UHOjenDCqryxd6Fx+NJ3HQ==","signatures":[{"sig":"MEUCIQClwQM6P9ARnODFWOF44mNZLx5yBAPqXk9YjzEUxm4SwgIgUGUOAZF4rmU2Ec7w3yhnQaM1BWrN6qP0IDwDTkCt3k8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":460700},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"scripts":{"dev":"medusa plugin:develop","lint":"eslint src","build":"medusa plugin:build","format":"prettier --write src","lint:fix":"eslint src --fix","format:check":"prettier --check src","prepublishOnly":"medusa plugin:build"},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","directories":{},"dependencies":{"zod":"^3.25.76","nodemailer":"^8.0.5","jsonwebtoken":"^9.0.3","express-rate-limit":"^8.3.2","@medusajs/workflows-sdk":"2.12.1"},"_hasShrinkwrap":false,"devDependencies":{"pg":"^8.13.0","react":"^18.2.0","awilix":"^8.0.1","eslint":"^9.39.4","ts-node":"^10.9.2","prettier":"^2.8.8","@swc/core":"1.7.28","react-dom":"^18.2.0","typescript":"^5.6.2","@types/node":"^20.0.0","@medusajs/ui":"^4.0.29","@types/react":"^18.3.2","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@types/express":"^5.0.6","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@types/react-dom":"^18.2.25","react-router-dom":"6.20.1","@types/nodemailer":"^7.0.11","@medusajs/admin-sdk":"^2.12.1","@medusajs/framework":"2.12.1","@types/jsonwebtoken":"^9.0.10","eslint-plugin-react":"^7.37.5","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16","@tanstack/react-query":"5.64.2","@medusajs/admin-shared":"2.12.1","eslint-config-prettier":"^10.1.8","@typescript-eslint/parser":"^8.58.2","eslint-plugin-react-hooks":"^4.6.2","@typescript-eslint/eslint-plugin":"^8.58.2"},"peerDependencies":{"pg":"^8.13.0","awilix":"^8.0.1","@medusajs/ui":"^4.0.29","@medusajs/cli":"2.12.1","@mikro-orm/cli":"6.4.16","@medusajs/icons":"2.12.1","@mikro-orm/core":"6.4.16","@mikro-orm/knex":"6.4.16","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/admin-sdk":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/test-utils":"2.12.1","@mikro-orm/migrations":"6.4.16","@mikro-orm/postgresql":"6.4.16"},"_npmOperationalInternal":{"tmp":"tmp/medusa-sellers_1.0.6_1776761389044_0.18494738554334145","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@csbeker/medusa-sellers","version":"1.1.0","description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","author":{"name":"Cronopia Web","url":"https://github.com/cronopia-web "},"license":"MIT","exports":{"./package.json":"./package.json","./workflows":"./.medusa/server/src/workflows/index.js","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js","./modules/*":"./.medusa/server/src/modules/*/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","require":"./.medusa/server/src/admin/index.js","default":"./.medusa/server/src/admin/index.js"},"./*":"./.medusa/server/src/*.js"},"keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"scripts":{"build":"medusa plugin:build","dev":"medusa plugin:develop","prepublishOnly":"medusa plugin:build","lint":"eslint src","lint:fix":"eslint src --fix","format":"prettier --write src","format:check":"prettier --check src"},"devDependencies":{"@medusajs/admin-sdk":"^2.12.1","@medusajs/admin-shared":"2.12.1","@medusajs/cli":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/icons":"2.12.1","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/test-utils":"2.12.1","@medusajs/ui":"^4.0.29","@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","@swc/core":"1.7.28","@tanstack/react-query":"5.64.2","@types/express":"^5.0.6","@types/node":"^20.0.0","@types/nodemailer":"^7.0.11","@types/react":"^18.3.2","@types/react-dom":"^18.2.25","@typescript-eslint/eslint-plugin":"^8.58.2","@typescript-eslint/parser":"^8.58.2","awilix":"^8.0.1","eslint":"^8.57.0","eslint-config-prettier":"^10.1.8","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^4.6.2","pg":"^8.13.0","prettier":"^2.8.8","react":"^18.2.0","react-dom":"^18.2.0","react-router-dom":"6.20.1","ts-node":"^10.9.2","typescript":"^5.6.2"},"peerDependencies":{"@medusajs/admin-sdk":"2.12.1","@medusajs/admin-shared":"2.12.1","@medusajs/cli":"2.12.1","@medusajs/framework":"2.12.1","@medusajs/icons":"2.12.1","@medusajs/js-sdk":"2.12.1","@medusajs/medusa":"2.12.1","@medusajs/test-utils":"2.12.1","@medusajs/ui":"^4.0.29","@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","awilix":"^8.0.1","pg":"^8.13.0"},"engines":{"node":">=20"},"dependencies":{"@medusajs/workflows-sdk":"2.12.1","express-rate-limit":"^8.3.2","nodemailer":"^8.0.5","zod":"3.25.76"},"_id":"@csbeker/medusa-sellers@1.1.0","dist":{"shasum":"308ac16d0931cf48c581e1152c9a40a7176953cb","integrity":"sha512-OyZDiLx54XS0p+/6a1Po5PtcDZI6ZWDSJTsRCZ/QnpwuLnkOg0ACdykHvbWJ36izH7pZkeYVX4umzC/LMsdihA==","tarball":"https://registry.npmjs.org/@csbeker/medusa-sellers/-/medusa-sellers-1.1.0.tgz","fileCount":139,"unpackedSize":498221,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH0tz27VRWFk5pIt0B41MSlxuJzebttWxxuFwktsJDZmAiAQf3PE/KqBOitlQQMd00wPuPiCnuU5E4Ak9MnF/HaGqw=="}]},"_npmUser":{"name":"csbeker","email":"csbeker@gmail.com"},"directories":{},"maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/medusa-sellers_1.1.0_1778675954572_0.5568950184936079"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-26T11:52:45.183Z","modified":"2026-05-13T12:39:14.899Z","1.0.0":"2026-02-26T11:52:45.423Z","1.0.1":"2026-02-26T12:36:56.324Z","1.0.2":"2026-02-26T12:41:09.882Z","1.0.3":"2026-02-26T21:55:53.200Z","1.0.4":"2026-02-27T00:17:09.479Z","1.0.5":"2026-04-20T08:58:16.601Z","1.0.6":"2026-04-21T08:49:49.164Z","1.1.0":"2026-05-13T12:39:14.781Z"},"author":{"name":"Cronopia Web","url":"https://github.com/cronopia-web "},"license":"MIT","keywords":["medusa","plugin","medusa-plugin","medusa-v2","sellers","commissions","withdrawals"],"description":"A plugin for managing sellers, commissions, and withdrawals in MedusaJS","maintainers":[{"name":"csbeker","email":"csbeker@gmail.com"}],"readme":"# Medusa Sellers Plugin\n\nPlugin for managing sellers, commissions, and withdrawals in MedusaJS v2.\n\n## Features\n\n- **Sellers Management**: Complete CRUD for sellers with independent authentication\n- **Customer Assignment**: Seller-customer relationship for sales tracking\n- **Commissions**: Calculation and management of sales commissions\n- **Withdrawals**: Commission withdrawal requests\n- **Orders Management**: Seller-specific order filtering and tracking\n- **Admin UI**: Custom admin dashboard page for seller management\n\n## Compatibility\n\nThis plugin is compatible with `@medusajs/medusa` >= 2.12.x.\n\n## Structure\n\n```\nsrc/\n├── modules/\n│   └── seller/              # Main module\n│       ├── models/          # Data models\n│       │   ├── seller.ts         # Seller entity\n│       │   ├── seller-customer.ts # Seller-customer relationship\n│       │   ├── commission.ts      # Sales commissions\n│       │   └── withdrawal.ts      # Commission withdrawals\n│       ├── service.ts       # Business logic\n│       └── index.ts         # Module exports\n├── api/\n│   ├── admin/               # Admin panel routes\n│   │   └── sellers/\n│   │       ├── route.ts         # GET/POST sellers\n│   │       └── [id]/route.ts    # GET/POST/DELETE seller by id\n│   ├── seller/              # Authenticated seller routes\n│   │   ├── me/route.ts          # Seller profile\n│   │   ├── orders/route.ts      # Seller-specific orders\n│   │   ├── stats/route.ts       # Statistics\n│   │   ├── customers/route.ts   # Assigned customers\n│   │   ├── commissions/route.ts # Commissions\n│   │   └── withdrawals/route.ts # Withdrawals\n│   └── middlewares.ts\n├── admin/\n│   └── routes/\n│       └── sellers/\n│           └── page.tsx         # Admin UI page for sellers\n```\n\n## Installation\n\n### As a Git Submodule (Development)\n\n1. Add the plugin as a submodule:\n\n```bash\ngit submodule add <repository-url> packages/medusa-sellers\ngit submodule update --init --recursive\n```\n\n2. Install dependencies:\n\n```bash\ncd packages/medusa-sellers\npnpm install\npnpm build - or other, confirm your manager package - \n```\n\n3. Add the plugin to `medusa-config.ts`:\n\n```ts\nimport { defineConfig } from '@medusajs/framework/utils'\n\nmodule.exports = defineConfig({\n  plugins: [\n    {\n      resolve: \"@csbeker/medusa-sellers\",\n      options: {}\n    }\n  ]\n})\n```\n\n4. Run migrations:\n\n```bash\nnpx medusa db:migrate\n```\n\n### As an NPM Package (Production)\n\n```bash\npnpm add @csbeker/medusa-sellers\n```\n\n----------------------------------------\n\n## API Endpoints\n\n### Admin Routes\n\n#### Sellers\n- `GET /admin/sellers` - List all sellers\n- `POST /admin/sellers` - Create a new seller\n- `GET /admin/sellers/:id` - Get seller by ID\n- `POST /admin/sellers/:id` - Update seller\n- `DELETE /admin/sellers/:id` - Delete seller\n\n#### Customers\n- `GET /admin/customers` - List all customers with pagination\n- `GET /admin/customers/:id` - Get customer details with orders and assigned seller\n- `GET /admin/customers/:id/seller` - Get seller assigned to a customer\n- `POST /admin/customers/:id/seller` - Assign/reassign seller to a customer (body: `{ seller_id: string | null }`)\n\n### Seller Routes (Authenticated)\n\n- `GET /seller/me` - Get seller profile\n- `GET /seller/orders` - Get orders filtered by seller's assigned customers\n- `POST /seller/orders` - Create a persisted **draft order** with seller metadata (for creating orders on behalf of customers)\n- `GET /seller/customers` - Get assigned customers with pagination (limit, offset)\n- `GET /seller/customers/:id` - Get customer detail with addresses (seller-scoped)\n  - Returns: `id`, `email`, `first_name`, `last_name`, `phone`, `has_account`, `company_name`, `created_at`, `updated_at`, `metadata`, `addresses`\n- `GET /seller/customers/:id/orders` - Get orders for a specific customer with pagination\n  - Query params: `limit` (default: 11), `offset`, `q` (search by order ID), `status` (pending/all)\n- `POST /seller/customers/:id/addresses` - Add new address to customer\n- `POST /seller/customers/:id/addresses/:addressId` - Update existing address\n- `DELETE /seller/customers/:id/addresses/:addressId` - Delete address\n- `GET /seller/customers/summary` - Get assigned customers with statistics (nro_pedidos, gasto_total)\n  - Query params: `limit` (default: 11), `offset`, `q` (search), `status` (active/inactive)\n- `GET /seller/commissions` - Get commissions\n- `GET /seller/withdrawals` - Get withdrawals\n- `POST /seller/withdrawals` - Request a withdrawal\n\n### Order Creation by Seller\n\nWhen a seller creates an order using `POST /seller/orders`, the order metadata includes:\n```json\n{\n  \"created_by_seller\": true,\n  \"seller_id\": \"sell_xxx\",\n  \"seller_email\": \"seller@example.com\",\n  \"seller_name\": \"Juan Pérez\",\n  \"created_at_seller_portal\": \"2026-01-16T12:00:00.000Z\",\n  \"notes\": \"Optional notes\"\n}\n```\n\nThe request body requires `items` entries to include `variant_id`, `quantity`, and `unit_price`.\nIf `sales_channel_id` isn't provided, the endpoint attempts to use the first available sales channel.\n\n### Customer-Seller Relationship\n\n**Important**: Each customer can only be assigned to ONE seller. This is enforced at the service level.\n\nTo assign a seller to a customer from the Admin:\n1. Go to the customer detail page in Medusa Admin\n2. Use the \"Vendedor Asignado\" widget\n3. Select a seller from the dropdown\n4. Click \"Asignar\" or \"Cambiar\"\n\nTo reassign or remove:\n- Select a different seller to reassign\n- Click the X button to remove the assignment\n\n### Admin UI Widgets\n\n#### Order Detail Widgets (`order.details.side.after` zone)\n\nThe plugin includes a widget that displays on order detail pages:\n\n1. **For Seller-Created Orders** (`created_by_seller: true`):\n   - Shows \"Pedido creado por Vendedor\" section\n   - Displays seller name, email, creation date, and notes\n   - Purple \"Creado por vendedor\" badge\n\n2. **For Customer Orders (Storefront)** (`order_note` in metadata):\n   - Shows \"Nota del cliente\" section\n   - Displays the customer's order notes\n\n> **⚠️ Technical Note**: This widget is placed in the medusa-sellers plugin due to a [known Vite/esbuild bug in Medusa v2](https://github.com/medusajs/medusa/issues/11154) that causes \"The symbol 'inWebWorker' has already been declared\" errors when creating custom widgets directly in `medusa/src/admin/widgets/`. The workaround is to place widgets inside plugin directories.\n\n#### Customer Detail Widget (`customer.details.after` zone)\n- \"Vendedor Asignado\" widget for assigning sellers to customers\n\n### Admin UI Pages\n\nThe plugin adds a \"Vendedores\" (Sellers) page to the Medusa Admin dashboard at `/app/sellers` with **complete CRUD functionality**:\n\n#### Features:\n- ✅ **Create**: Add new sellers via interactive drawer form\n- ✅ **Read**: View all sellers in a table with detailed information\n- ✅ **Update**: Edit seller data using the three-dots menu → Edit\n- ✅ **Delete**: Remove sellers with confirmation dialog via three-dots menu → Delete\n\n#### Seller Information Displayed:\n- Name (first_name + last_name or email)\n- Email address\n- Phone number\n- Commission rate (%)\n- Assigned customers count (badge)\n- Active/Inactive status (badge)\n- Creation date (AR locale)\n\n#### Form Fields (Create/Edit):\n\n**Información Básica:**\n- Email (required)\n- First name\n- Last name\n- Phone\n- Commission rate (0-100%)\n- Active/Inactive toggle\n\n**Información Fiscal:**\n- Razón Social\n- CUIT\n- Condición IVA\n\n**Ubicación Fiscal:**\n- Dirección\n- Provincia\n- Localidad\n- Barrio\n\n## Development\n\n```bash\n# In the plugin directory\npnpm install\n\n# Build the plugin\npnpm build\n\n# Watch mode for development\npnpm dev\n```\n\n## Troubleshooting\n\n### Admin UI not showing \"Vendedores\" menu item\n\n1. Ensure the plugin is built:\n   ```bash\n   cd packages/medusa-sellers\n   pnpm build\n   ```\n\n2. Clear Medusa admin cache:\n   ```bash\n   cd ../../medusa\n   rm -rf .medusa\n   ```\n\n3. Restart Medusa:\n   ```bash\n   npx medusa develop\n   ```\n\n### Submodule not updating\n\n```bash\ngit submodule update --remote --merge\n```\n\n","readmeFilename":"README.md"}