{"_id":"@area37/vendure-plugin-customer-approve","_rev":"4-5807c48e29b8841853b2350759d37de1","name":"@area37/vendure-plugin-customer-approve","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@area37/vendure-plugin-customer-approve","version":"0.0.1","license":"MIT","_id":"@area37/vendure-plugin-customer-approve@0.0.1","maintainers":[{"name":"winne4r","email":"winne4r@gmail.com"}],"homepage":"https://github.com/Area37/vendure-plugins#readme","bugs":{"url":"https://github.com/Area37/vendure-plugins/issues"},"dist":{"shasum":"fc78d5f42365f83c9464a9d663597db65f0e153e","tarball":"https://registry.npmjs.org/@area37/vendure-plugin-customer-approve/-/vendure-plugin-customer-approve-0.0.1.tgz","fileCount":16,"integrity":"sha512-wMiLoJ2Jl+Fid8Em/XeoGAPoKtRiQ2yjoku1NkUs2l93er/3K/Ki9gqlvI61BzC7kbarxOYReLe5W4e4nmoGvQ==","signatures":[{"sig":"MEUCIDoTMf/FAc1Cn/+hJ9f3c2vm8LSZgtkqbDPYEqn2OHW5AiEAricLP/8T4dMvgCDWXAnSDbAIlIrLqfyd6kj+fBZks4U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12547},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"5717e5f87543a730694ab9557c352a1860ec5b33","scripts":{"dev":"ts-node dev-server/index.ts","e2e":"cross-env PACKAGE=plugin-customer-approve vitest -c ../../utils/e2e/vitest.config.mts","build":"rimraf lib && tsc -p ./tsconfig.build.json && ts-node copy-ui-src.ts","codegen":"ts-node generate-types.ts"},"_npmUser":{"name":"winne4r","email":"winne4r@gmail.com"},"repository":{"url":"git+https://github.com/Area37/vendure-plugins.git","type":"git"},"_npmVersion":"10.9.2","description":"Vendure plugin for approving customers","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vendure-plugin-customer-approve_0.0.1_1736514294439_0.71309176596418","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@area37/vendure-plugin-customer-approve","version":"0.0.2","keywords":["vendure","vendure-plugins","vendure-packages","b2b","customer-approve","customer","approve"],"license":"MIT","_id":"@area37/vendure-plugin-customer-approve@0.0.2","maintainers":[{"name":"winne4r","email":"winne4r@gmail.com"}],"homepage":"https://github.com/Area37/vendure-plugins#readme","bugs":{"url":"https://github.com/Area37/vendure-plugins/issues"},"dist":{"shasum":"4496159581740ffcd270d6f6f1a15a0cf4ea7ad3","tarball":"https://registry.npmjs.org/@area37/vendure-plugin-customer-approve/-/vendure-plugin-customer-approve-0.0.2.tgz","fileCount":16,"integrity":"sha512-R1/EhkXcm+bHwcbSFBQBiYbxo+DZ/xyoOIjrlT731s4aTeDHy1LWofCCLZq+gHz65JV3I1TJvfxvH6+JvH6nnQ==","signatures":[{"sig":"MEYCIQCE0Be06cUXDhrzwuBnHeYEToKRsLJNoH/+yj8xMtfDQAIhAOK8v5LN1ngyjHHpaJNorT+G80i1LgsMOgA+wAd6woav","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13934},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"1996c9dee3ef015583f15dc3e4778c4c088e46de","scripts":{"dev":"ts-node dev-server/index.ts","e2e":"cross-env PACKAGE=plugin-customer-approve vitest -c ../../utils/e2e/vitest.config.mts","build":"rimraf lib && tsc -p ./tsconfig.build.json && ts-node copy-ui-src.ts","codegen":"ts-node generate-types.ts"},"_npmUser":{"name":"winne4r","email":"winne4r@gmail.com"},"repository":{"url":"git+https://github.com/Area37/vendure-plugins.git","type":"git"},"_npmVersion":"10.9.2","description":"Vendure plugin for approving customers","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vendure-plugin-customer-approve_0.0.2_1736515700908_0.7099102508189403","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@area37/vendure-plugin-customer-approve","version":"0.0.3","keywords":["vendure","vendure-plugins","vendure-packages","b2b","customer-approve","customer","approve"],"license":"MIT","_id":"@area37/vendure-plugin-customer-approve@0.0.3","maintainers":[{"name":"winne4r","email":"winne4r@gmail.com"}],"homepage":"https://github.com/Area37/vendure-plugins#readme","bugs":{"url":"https://github.com/Area37/vendure-plugins/issues"},"dist":{"shasum":"dab7272287403ff45a9b0dab09d088ce8998ae00","tarball":"https://registry.npmjs.org/@area37/vendure-plugin-customer-approve/-/vendure-plugin-customer-approve-0.0.3.tgz","fileCount":16,"integrity":"sha512-/5InKMCxwk733sto9kd14vCkNA65UTEz9i3ylfoJc2uvJXI8mTZBp264bzZGvqIdf0LasURmurjLDU8eTW9r/w==","signatures":[{"sig":"MEYCIQDeA/PO6iF2BryojyZqIqdO/35Z7yRlGCmKDvRAGAQOrQIhAN+py9nxDsdBtci3xucYdJnKUjjm2r2Fn39irG0pB03e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14156},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"637e96748ecccda9badc3a6ea62e0a548c94a337","scripts":{"dev":"ts-node dev-server/index.ts","e2e":"cross-env PACKAGE=plugin-customer-approve vitest -c ../../utils/e2e/vitest.config.mts","build":"rimraf lib && tsc -p ./tsconfig.build.json && ts-node copy-ui-src.ts","codegen":"ts-node generate-types.ts"},"_npmUser":{"name":"winne4r","email":"winne4r@gmail.com"},"repository":{"url":"git+https://github.com/Area37/vendure-plugins.git","type":"git"},"_npmVersion":"10.9.2","description":"Vendure plugin for approving customers","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vendure-plugin-customer-approve_0.0.3_1736516816527_0.6310120352800297","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@area37/vendure-plugin-customer-approve","version":"0.0.4","keywords":["vendure","vendure-plugins","vendure-packages","b2b","customer-approve","customer","approve"],"license":"MIT","_id":"@area37/vendure-plugin-customer-approve@0.0.4","maintainers":[{"name":"winne4r","email":"winne4r@gmail.com"}],"homepage":"https://github.com/Area37/vendure-plugins#readme","bugs":{"url":"https://github.com/Area37/vendure-plugins/issues"},"dist":{"shasum":"87e3ebf0412d94496ea43ff87693b0d47ed2b34b","tarball":"https://registry.npmjs.org/@area37/vendure-plugin-customer-approve/-/vendure-plugin-customer-approve-0.0.4.tgz","fileCount":16,"integrity":"sha512-32xlg+c8nEm3KauU5UaEIEkqtKLsgSyt6Tt9dEabUVRcIHEc4w1CKiQ03ALXHJawagt4lCfxiTYD0D34JJ4D5w==","signatures":[{"sig":"MEUCIH5FLsq2SGXsIHvLsbbp4DFHC3WkGy99E56OWPSTFexqAiEAtwljyzcxgGFv/D/afK5sK4sJVR7Bz8vnhWsqoiGD7IE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15167},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"637e96748ecccda9badc3a6ea62e0a548c94a337","scripts":{"dev":"ts-node dev-server/index.ts","e2e":"cross-env PACKAGE=plugin-customer-approve vitest -c ../../utils/e2e/vitest.config.mts","build":"rimraf lib && tsc -p ./tsconfig.build.json && ts-node copy-ui-src.ts","codegen":"ts-node generate-types.ts"},"_npmUser":{"name":"winne4r","email":"winne4r@gmail.com"},"repository":{"url":"git+https://github.com/Area37/vendure-plugins.git","type":"git"},"_npmVersion":"10.9.2","description":"Vendure plugin for approving customers","directories":{},"_nodeVersion":"22.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vendure-plugin-customer-approve_0.0.4_1737643349805_0.941789053499547","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@area37/vendure-plugin-customer-approve","description":"Vendure plugin for approving customers","repository":{"type":"git","url":"git+https://github.com/Area37/vendure-plugins.git"},"version":"1.0.0","license":"MIT","publishConfig":{"access":"public"},"keywords":["vendure","vendure-plugins","vendure-packages","b2b","customer-approve","customer","approve"],"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"dev":"ts-node dev-server/index.ts","codegen":"ts-node generate-types.ts","build":"rimraf lib && tsc -p ./tsconfig.build.json && ts-node copy-ui-src.ts","e2e":"cross-env PACKAGE=plugin-customer-approve vitest -c ../../utils/e2e/vitest.config.mts"},"_id":"@area37/vendure-plugin-customer-approve@1.0.0","gitHead":"637e96748ecccda9badc3a6ea62e0a548c94a337","bugs":{"url":"https://github.com/Area37/vendure-plugins/issues"},"homepage":"https://github.com/Area37/vendure-plugins#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-vOmK3pxV1T75ylPQCQHNptK3uKhPrgT/5wgr82saD8OQ+EY6slDMuwX5HDiYAX/FWGfAnPBfoWJgqiCaXOXQ9A==","shasum":"1c1f422f8025d309d99f815fff1f1eeac7dbfbbc","tarball":"https://registry.npmjs.org/@area37/vendure-plugin-customer-approve/-/vendure-plugin-customer-approve-1.0.0.tgz","fileCount":16,"unpackedSize":15185,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCz8RkbFRTsMoR2cF7w1QTrrXEZR5lUrxIyb7sly4Dc6AIgdso+zsHFVXGFqrUNT6/fd6i/BPsm5kf42P9q5rM4HeI="}]},"_npmUser":{"name":"winne4r","email":"winne4r@gmail.com"},"directories":{},"maintainers":[{"name":"winne4r","email":"winne4r@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vendure-plugin-customer-approve_1.0.0_1737731201461_0.027282949582382532"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-10T13:04:54.321Z","modified":"2025-01-24T15:06:41.863Z","0.0.1":"2025-01-10T13:04:54.605Z","0.0.2":"2025-01-10T13:28:21.135Z","0.0.3":"2025-01-10T13:46:56.691Z","0.0.4":"2025-01-23T14:42:29.966Z","1.0.0":"2025-01-24T15:06:41.676Z"},"bugs":{"url":"https://github.com/Area37/vendure-plugins/issues"},"license":"MIT","homepage":"https://github.com/Area37/vendure-plugins#readme","keywords":["vendure","vendure-plugins","vendure-packages","b2b","customer-approve","customer","approve"],"repository":{"type":"git","url":"git+https://github.com/Area37/vendure-plugins.git"},"description":"Vendure plugin for approving customers","maintainers":[{"name":"winne4r","email":"winne4r@gmail.com"}],"readme":"# Vendure Customer Approve Plugin\n\nThis plugin allows you to manually approve customers before they can log in and place orders.\nIt is particularly useful in B2B scenarios where you want to vet customers before granting them access to your store.\n\n![@area37/vendure-plugin-customer-approve horizontal](https://raw.githubusercontent.com/Area37/vendure-plugins/refs/heads/master/packages/customer-approve-plugin/demo.gif)\n\n## Installation\n\n1. To install the plugin, run the following command:\n\n```pnpm i @area37/vendure-plugin-customer-approve```\n\n2. Add the plugin to your vendure-config.ts file:\n\n```ts\nimport { CustomerApprovePlugin } from '@area37/vendure-plugin-customer-approve';\n\nplugins: [\n    CustomerApprovePlugin.init({}),\n    AdminUiPlugin.init({\n        port: 3002,\n        route: 'admin',\n        app: compileUiExtensions({\n            extensions: [CustomerApprovePlugin.ui],\n            outputPath: path.join(__dirname, \"./admin-ui\"),\n        }),\n    }),\n],\n```\n\n3. Add authOptions to your `vendure-config.ts` file:\n\n```ts\nauthOptions: {\n    ...,\n    requireVerification: true,\n},\n```\n\nThis setting will require customers to verify their email addresses before they can log in.\n\n3. You should also disable the default email verification handler:\n\n```ts\nimport { orderConfirmationHandler, passwordResetHandler, emailAddressChangeHandler } from '@vendure/email-plugin';\n\nexport const config: VendureConfig = {\n    plugins: [\n        ...\n        EmailVerificationPlugin.init({\n            ...\n            handlers: [\n                orderConfirmationHandler,\n                passwordResetHandler,\n                emailAddressChangeHandler,\n            ]\n        }),\n    ],\n};\n```","readmeFilename":"README.md"}