{"_id":"@bmsantiago/zod-prisma","_rev":"5-90eebff450702a435636fa68827016bf","name":"@bmsantiago/zod-prisma","dist-tags":{"latest":"0.5.9"},"versions":{"0.5.4":{"name":"@bmsantiago/zod-prisma","version":"0.5.4","description":"A Prisma generator that creates Zod schemas for all of your models","license":"MIT","author":{"name":"Carter Grimmeisen"},"homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"main":"dist/index.js","module":"dist/zod-prisma.esm.js","typings":"dist/index.d.ts","bin":{"zod-prisma":"bin/cli.js"},"keywords":["zod","prisma","generator"],"scripts":{"build":"dts build --target node --format cjs --rollupTypes","lint":"tsc --noEmit && dts lint src --ignore-pattern src/test/functional","prepare":"husky install","prepublish":"dts build --target node --format cjs --rollupTypes","start":"dts watch","test":"dts test --maxWorkers=4 --verbose"},"prettier":{"printWidth":100,"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"es5","useTabs":true},"eslintConfig":{"rules":{"react-hooks/rules-of-hooks":"off"}},"jest":{"testEnvironment":"node"},"dependencies":{"@prisma/generator-helper":"~3.8.1","parenthesis":"^3.1.8","ts-morph":"^13.0.2"},"devDependencies":{"@prisma/client":"~3.8.1","@prisma/sdk":"~3.7.0","@tsconfig/recommended":"^1.0.1","@types/fs-extra":"^9.0.13","dts-cli":"^1.1.5","execa":"^5.1.0","fast-glob":"^3.2.5","fs-extra":"^10.0.0","husky":"^7.0.4","jest-mock-extended":"^2.0.4","prisma":"^3.4.2","tslib":"^2.3.1","typescript":"^4.5.4","zod":"^3.11.6"},"peerDependencies":{"decimal.js":"^10.0.0","prisma":"^3.0.0","zod":"^3.0.0"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"engines":{"node":">=14"},"gitHead":"bdda69c1b877f5b580c9861cb0f52ace20da5fb4","_id":"@bmsantiago/zod-prisma@0.5.4","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-P9UYoxw8Uh9SyCE1jmGCxSHWoHExpQyRqHLegJ3l+V6lU7q+i7P3IkY2blchYFHu77a2mwm0WlV/F2Smu4vFMQ==","shasum":"c947aea3d6abea26e5096d91b4256326b67164c9","tarball":"https://registry.npmjs.org/@bmsantiago/zod-prisma/-/zod-prisma-0.5.4.tgz","fileCount":10,"unpackedSize":88429,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNMSrBJn4BxDYvRe23dhcFmKCQ7uOe4EV2Krn6sdFurAiEAsd+cCDS/gvUykDw89DKyzYY4fwR/X7Xbty4uVv2bvIY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJI5WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/ihAAm+vcbhi9OgptM+iOMb+2/+DdsH/9LY1ZDoT5p/9AYiWrK5bk\r\nmgdZ3O6107HsbjWHgLv4CCcsfwwtJqv58PLK1suhSPoWREn6WelUqwu6I427\r\n0XrhwpQuLI9Z0z2RVs1UCc5I2EsB/qULpybYu9L33eY5uCai5LNpJ8Vdj0F7\r\nRrKfxjzjECxMswBqe/03ODtKxGoCv+x1L3YfLVlgyju5BpoJcO7z39stT5Wx\r\n0vNZgVXHYaLYkUgXBUx5YzCU9e29v1prXViAUgQeffh9BUx4o720AF8vRcdm\r\nqNMIyPF9oXmfWJIhpsuNSG+UP6fR/H0W/0ij17Rync2+5vER7hCxEYi3HW87\r\nAsCx99RoujZQ9CQDLa0O+ExdpjmpWPlx7obccPxx03XlkGq6DVWJxZSCmmfT\r\nU+1/ffajjWHm+Lu8JL/33/td5ppow5iOR2igC9WZhC1RFKAncPLzJPAMi1Mx\r\n/IlNVzQgl00/pktCI2cXLgeNBLLexXh/T44YnoaFFtJx8wIneRCFNHRyQpuh\r\nigAVKrhBOAFmHwqYZVcFr3QIsBcemKAtdlB7PF+8dYZpZfQUBIBeLPsFnC+T\r\nGuYWGircH3FWz3WUI69gQTgOrV1rtVk69rqCeaXWnEVUp5C0+vcQWetKg807\r\nWPnMixsCYtUh4NQjp1hcpAkomh8lxxaOOcQ=\r\n=2yug\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bmsantiago","email":"bm.santiago14@gmail.com"},"directories":{},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zod-prisma_0.5.4_1680117333781_0.18124832936153878"},"_hasShrinkwrap":false},"0.5.5":{"name":"@bmsantiago/zod-prisma","version":"0.5.5","description":"A Prisma generator that creates Zod schemas for all of your models","license":"MIT","author":{"name":"Carter Grimmeisen"},"homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"main":"dist/index.js","module":"dist/zod-prisma.esm.js","typings":"dist/index.d.ts","bin":{"zod-prisma":"bin/cli.js"},"keywords":["zod","prisma","generator"],"scripts":{"build":"dts build --target node --format cjs --rollupTypes","lint":"tsc --noEmit && dts lint src --ignore-pattern src/test/functional","prepare":"husky install","prepublish":"dts build --target node --format cjs --rollupTypes","start":"dts watch","test":"dts test --maxWorkers=4 --verbose"},"prettier":{"printWidth":100,"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"es5","useTabs":true},"eslintConfig":{"rules":{"react-hooks/rules-of-hooks":"off"}},"jest":{"testEnvironment":"node"},"dependencies":{"@prisma/generator-helper":"~3.8.1","parenthesis":"^3.1.8","ts-morph":"^13.0.2"},"devDependencies":{"@prisma/client":"~3.8.1","@prisma/sdk":"~3.7.0","@tsconfig/recommended":"^1.0.1","@types/fs-extra":"^9.0.13","dts-cli":"^1.1.5","execa":"^5.1.0","fast-glob":"^3.2.5","fs-extra":"^10.0.0","husky":"^7.0.4","jest-mock-extended":"^2.0.4","prisma":"^3.4.2","tslib":"^2.3.1","typescript":"^4.5.4","zod":"^3.11.6"},"peerDependencies":{"decimal.js":"^10.0.0","prisma":"^3.0.0","zod":"^3.0.0"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"engines":{"node":">=14"},"gitHead":"bdda69c1b877f5b580c9861cb0f52ace20da5fb4","_id":"@bmsantiago/zod-prisma@0.5.5","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-v+m/i6zB9zIUzlz5Z32hrrCGYScbz8Z3ELa9sSXESqkj1ewfACm5QV6OTWwlPkwbWUT0H9eC8LbU2fcGs4j74A==","shasum":"87f4358f674ae938240a107c672994c839356bda","tarball":"https://registry.npmjs.org/@bmsantiago/zod-prisma/-/zod-prisma-0.5.5.tgz","fileCount":10,"unpackedSize":89402,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+DgzE9HWhWx5GeXr87jE/IT2sEk6pdCdyOkfVsn3wTAiAbj14R8Z3AfGgJguEHqXc2G+TOGJizwyLeyVbTzqB4Ug=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJK7sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5dg/9Ec9JYc2Ep8AdCl9mW6ZqPqbfxnh9OnfPSZwciEznNwRIswe1\r\nyz6BbHvxUdv8AMzK0MzArUlYql3ns8EUsSIghqUybBC/IOmDszGwe68k5T+/\r\nSll8bW3d+ppsGo7t0whdikpXJ5RKNs4zPblEwXmuJ4bR2xVEVYGditBJQwwe\r\nfXHuML/mnJ57tAvanKr2/q6HkkpH/ovaMJpo7QLso6um65Kn8NMCKi3iGQiz\r\npNmgypPXNybHeVNxdDuMmMkeJZ1DD3b6XMuD1t/m1+ATeBmVYQBoazPI/WCP\r\nR1pSng+7KZcagu5J0bJZw/5ieDqa1qyWmM+Q/aUjq+84X1MlJJqpD2EKeT9m\r\nQJCw3sXXmzVGGld+e2CpcuKbG1Z6d4WRwA9y4iJmKLVztM5I2OQzFSowgE07\r\nEfO9uWOuEhgeGEi72lFtaGyefuhABl3Ae0U4jlpTBi3vl5qoL2L/eAiHXPb8\r\nz1ncfZ1fbUc04bpTfnkOkvAA7a13aATBftyCQJf/vlNCWH29izovROusHLsv\r\nizPt6DWoetNzjZxiVplpWORPOqhBR/oJ76ErGF+XTHIXk7GWOTTAMNAy97A7\r\n+o9V0ap1NyTnnYpdA2/Z0eGDVhypXPF/xxE5pkoXrcJ2v9HFl8EfYddZtlXo\r\nOVCo6f3vq2QJ2P+rif45YJOEzbQ95UIOYuc=\r\n=gX5c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bmsantiago","email":"bm.santiago14@gmail.com"},"directories":{},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zod-prisma_0.5.5_1680125676733_0.1862458600978898"},"_hasShrinkwrap":false},"0.5.6":{"name":"@bmsantiago/zod-prisma","version":"0.5.6","description":"A Prisma generator that creates Zod schemas for all of your models","license":"MIT","author":{"name":"Carter Grimmeisen"},"homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"main":"dist/index.js","module":"dist/zod-prisma.esm.js","typings":"dist/index.d.ts","bin":{"zod-prisma":"bin/cli.js"},"keywords":["zod","prisma","generator"],"scripts":{"build":"dts build --target node --format cjs --rollupTypes","lint":"tsc --noEmit && dts lint src --ignore-pattern src/test/functional","prepare":"husky install","prepublish":"dts build --target node --format cjs --rollupTypes","start":"dts watch","test":"dts test --maxWorkers=4 --verbose"},"prettier":{"printWidth":100,"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"es5","useTabs":true},"eslintConfig":{"rules":{"react-hooks/rules-of-hooks":"off"}},"jest":{"testEnvironment":"node"},"dependencies":{"@prisma/generator-helper":"~3.8.1","parenthesis":"^3.1.8","ts-morph":"^13.0.2"},"devDependencies":{"@prisma/client":"~3.8.1","@prisma/sdk":"~3.7.0","@tsconfig/recommended":"^1.0.1","@types/fs-extra":"^9.0.13","dts-cli":"^1.1.5","execa":"^5.1.0","fast-glob":"^3.2.5","fs-extra":"^10.0.0","husky":"^7.0.4","jest-mock-extended":"^2.0.4","prisma":"^3.4.2","tslib":"^2.3.1","typescript":"^4.5.4","zod":"^3.11.6"},"peerDependencies":{"decimal.js":"^10.0.0","prisma":"^3.0.0","zod":"^3.0.0"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"engines":{"node":">=14"},"gitHead":"60a0bbac6f2ce8968908086bffe191fa4a7f1291","_id":"@bmsantiago/zod-prisma@0.5.6","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-/SALVHtl1ACLaEe9FLp5dJQc32qUvABnjQgniJvn0dodXFYrTHaLyMKczVyIO55Al+Q5jOXfHROC0VndMl2iXA==","shasum":"5886556b8b611888cc52ca9db6f5f2d753398300","tarball":"https://registry.npmjs.org/@bmsantiago/zod-prisma/-/zod-prisma-0.5.6.tgz","fileCount":10,"unpackedSize":87489,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbD6Yn740wKgOBC6GA9pZRt2goTXLvlnFipQ3EWJT7PAiB5TByiOum66qdVWyYBS0IHZNvmavIVJsGPKj+c9JnAFQ=="}]},"_npmUser":{"name":"bmsantiago","email":"bm.santiago14@gmail.com"},"directories":{},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zod-prisma_0.5.6_1694449460722_0.8779944341613375"},"_hasShrinkwrap":false},"0.5.7":{"name":"@bmsantiago/zod-prisma","version":"0.5.7","description":"A Prisma generator that creates Zod schemas for all of your models","license":"MIT","author":{"name":"Carter Grimmeisen"},"homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"main":"dist/index.js","module":"dist/zod-prisma.esm.js","typings":"dist/index.d.ts","bin":{"zod-prisma":"bin/cli.js"},"keywords":["zod","prisma","generator"],"scripts":{"build":"dts build --target node --format cjs --rollupTypes","lint":"tsc --noEmit && dts lint src --ignore-pattern src/test/functional","prepare":"husky install","prepublish":"dts build --target node --format cjs --rollupTypes","start":"dts watch","test":"dts test --maxWorkers=4 --verbose"},"prettier":{"printWidth":100,"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"es5","useTabs":true},"eslintConfig":{"rules":{"react-hooks/rules-of-hooks":"off"}},"jest":{"testEnvironment":"node"},"dependencies":{"@prisma/generator-helper":"~3.8.1","parenthesis":"^3.1.8","ts-morph":"^13.0.2"},"devDependencies":{"@prisma/client":"~3.8.1","@prisma/sdk":"~3.7.0","@tsconfig/recommended":"^1.0.1","@types/fs-extra":"^9.0.13","dts-cli":"^1.1.5","execa":"^5.1.0","fast-glob":"^3.2.5","fs-extra":"^10.0.0","husky":"^7.0.4","jest-mock-extended":"^2.0.4","prisma":"^3.4.2","tslib":"^2.3.1","typescript":"^4.5.4","zod":"^3.20.2"},"peerDependencies":{"decimal.js":"^10.0.0","prisma":"^3.0.0","zod":"^3.0.0"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"engines":{"node":">=14"},"_id":"@bmsantiago/zod-prisma@0.5.7","gitHead":"60a0bbac6f2ce8968908086bffe191fa4a7f1291","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-VAHLJrr6gxtzvE04zSu/gpC/NlJb0Xw9eT0s97F2qMyyryTVk2R2psOcx8zIPcC1l1DarRN7b2PVahoRivoMUQ==","shasum":"519e4af60d5164153f7f0951b7ac22c4d328b21b","tarball":"https://registry.npmjs.org/@bmsantiago/zod-prisma/-/zod-prisma-0.5.7.tgz","fileCount":10,"unpackedSize":87626,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0W8sClcdBaovAE6vGIY0SY8MTkPrc80O3IXlQOrB7LwIhAJ/w07LgrFYffWmxMwbSdMVlhkCmW6CR+jB2F5fEExcT"}]},"_npmUser":{"name":"bmsantiago","email":"bm.santiago14@gmail.com"},"directories":{},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zod-prisma_0.5.7_1698071840390_0.46824815414480203"},"_hasShrinkwrap":false},"0.5.8":{"name":"@bmsantiago/zod-prisma","version":"0.5.8","description":"A Prisma generator that creates Zod schemas for all of your models","license":"MIT","author":{"name":"Carter Grimmeisen"},"homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"main":"dist/index.js","module":"dist/zod-prisma.esm.js","typings":"dist/index.d.ts","bin":{"zod-prisma":"bin/cli.js"},"keywords":["zod","prisma","generator"],"scripts":{"build":"dts build --target node --format cjs --rollupTypes","lint":"tsc --noEmit && dts lint src --ignore-pattern src/test/functional","prepare":"husky install","prepublish":"dts build --target node --format cjs --rollupTypes","start":"dts watch","test":"dts test --maxWorkers=4 --verbose"},"prettier":{"printWidth":100,"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"es5","useTabs":true},"eslintConfig":{"rules":{"react-hooks/rules-of-hooks":"off"}},"jest":{"testEnvironment":"node"},"dependencies":{"@prisma/generator-helper":"~3.8.1","parenthesis":"^3.1.8","ts-morph":"^13.0.2"},"devDependencies":{"@prisma/client":"~3.8.1","@prisma/sdk":"~3.7.0","@tsconfig/recommended":"^1.0.1","@types/fs-extra":"^9.0.13","dts-cli":"^1.1.5","execa":"^5.1.0","fast-glob":"^3.2.5","fs-extra":"^10.0.0","husky":"^7.0.4","jest-mock-extended":"^2.0.4","prisma":"^3.4.2","tslib":"^2.3.1","typescript":"^4.5.4","zod":"^3.20.2"},"peerDependencies":{"decimal.js":"^10.0.0","prisma":"^3.0.0","zod":"^3.0.0"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"engines":{"node":">=14"},"_id":"@bmsantiago/zod-prisma@0.5.8","gitHead":"8a4e7dd919cae6f4864bc9681c02fa8d6a95edce","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-xEXEgBZ2ypdhUw9eCtCHRzcAl3ADGEiLziX8hM5IBDNXV4Si+h1hoQuXx8qcNfG9NG1nmvQNHr+zWwRuqXIXRQ==","shasum":"5729e309ae056669bd8c665ff9d6c8280ed946ea","tarball":"https://registry.npmjs.org/@bmsantiago/zod-prisma/-/zod-prisma-0.5.8.tgz","fileCount":10,"unpackedSize":87626,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6deV3ZHRZHLG1mnkPrYZNDP/fhsPWdPl/FN1ivdopywIhAPmuj+1ECUHtfBEJBS8taZ2fJEXS531pHTMiBTzGcfyt"}]},"_npmUser":{"name":"bmsantiago","email":"bm.santiago14@gmail.com"},"directories":{},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zod-prisma_0.5.8_1698074902957_0.07076710339299086"},"_hasShrinkwrap":false},"0.5.9":{"name":"@bmsantiago/zod-prisma","version":"0.5.9","description":"A Prisma generator that creates Zod schemas for all of your models","license":"MIT","author":{"name":"Carter Grimmeisen"},"homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"main":"dist/index.js","module":"dist/zod-prisma.esm.js","typings":"dist/index.d.ts","bin":{"zod-prisma":"bin/cli.js"},"keywords":["zod","prisma","generator"],"scripts":{"build":"dts build --target node --format cjs --rollupTypes","lint":"tsc --noEmit && dts lint src --ignore-pattern src/test/functional","prepare":"husky install","prepublish":"dts build --target node --format cjs --rollupTypes","start":"dts watch","test":"dts test --maxWorkers=4 --verbose"},"prettier":{"printWidth":100,"semi":false,"singleQuote":true,"tabWidth":4,"trailingComma":"es5","useTabs":true},"eslintConfig":{"rules":{"react-hooks/rules-of-hooks":"off"}},"jest":{"testEnvironment":"node"},"dependencies":{"@prisma/generator-helper":"~3.8.1","parenthesis":"^3.1.8","ts-morph":"^13.0.2"},"devDependencies":{"@prisma/client":"~3.8.1","@prisma/sdk":"~3.7.0","@tsconfig/recommended":"^1.0.1","@types/fs-extra":"^9.0.13","dts-cli":"^1.1.5","execa":"^5.1.0","fast-glob":"^3.2.5","fs-extra":"^10.0.0","husky":"^7.0.4","jest-mock-extended":"^2.0.4","prisma":"^3.4.2","tslib":"^2.3.1","typescript":"^4.5.4","zod":"^3.20.2"},"peerDependencies":{"decimal.js":"^10.0.0","prisma":"^3.0.0","zod":"^3.0.0"},"peerDependenciesMeta":{"decimal.js":{"optional":true}},"engines":{"node":">=14"},"_id":"@bmsantiago/zod-prisma@0.5.9","gitHead":"f53960a8f01504d494a06ac06be17c605578655a","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-5mtP2PXHOh+Y5PvuR6Cex9JZxapuv/WpYak2tZGmIgicCz2S6wC0WaH6ggo5vZytIKTASGuuEgvAtqPSzVZAVQ==","shasum":"7c485b991f4ebf5e501a1ed8a62cffe29894d2c7","tarball":"https://registry.npmjs.org/@bmsantiago/zod-prisma/-/zod-prisma-0.5.9.tgz","fileCount":10,"unpackedSize":87718,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3YtQICrM6EVLWaNAvkhs2pZ9yeeI1vJJ4U4x/fBsSlAiEA8nzNpmvYqXRU3Ksy94Po1JeIahNp28WgZZsUC9an5rY="}]},"_npmUser":{"name":"bmsantiago","email":"bm.santiago14@gmail.com"},"directories":{},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zod-prisma_0.5.9_1698080139437_0.07335688830420528"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-29T19:15:33.698Z","0.5.4":"2023-03-29T19:15:33.981Z","modified":"2023-10-23T16:55:39.950Z","0.5.5":"2023-03-29T21:34:36.924Z","0.5.6":"2023-09-11T16:24:20.993Z","0.5.7":"2023-10-23T14:37:20.566Z","0.5.8":"2023-10-23T15:28:23.275Z","0.5.9":"2023-10-23T16:55:39.768Z"},"maintainers":[{"name":"bmsantiago","email":"bm.santiago14@gmail.com"}],"description":"A Prisma generator that creates Zod schemas for all of your models","homepage":"https://github.com/CarterGrimmeisen/zod-prisma#readme","keywords":["zod","prisma","generator"],"repository":{"type":"git","url":"git+https://github.com/CarterGrimmeisen/zod-prisma.git"},"author":{"name":"Carter Grimmeisen"},"bugs":{"url":"https://github.com/CarterGrimmeisen/zod-prisma/issues"},"license":"MIT","readme":"<!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Thanks again! Now go create something AMAZING! :D\n***\n***\n***\n*** To avoid retyping too much info. Do a search and replace for the following:\n*** CarterGrimmeisen, zod-prisma, twitter_handle, Carter.Grimmeisen@uah.edu, Zod Prisma, A custom prisma generator that creates Zod schemas from your Prisma model.\n-->\n\n<!-- PROJECT SHIELDS -->\n<!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n-->\n\n[![NPM][npm-shield]][npm-url]\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n<!-- PROJECT LOGO -->\n<br />\n<p align=\"center\">\n  <a href=\"https://github.com/CarterGrimmeisen/zod-prisma\">\n    <img src=\"https://raw.githubusercontent.com/CarterGrimmeisen/zod-prisma/main/images/zod-prisma.svg\" alt=\"Logo\" width=\"120\" height=\"120\">\n  </a>\n  <h3 align=\"center\">Zod Prisma</h3>\n  <p align=\"center\">\n    A custom prisma generator that creates Zod schemas from your Prisma model.\n    <br />\n    <a href=\"https://github.com/CarterGrimmeisen/zod-prisma\"><strong>Explore the docs »</strong></a>\n    <br />\n    <br />\n    <a href=\"https://github.com/CarterGrimmeisen/zod-prisma/blob/main/src/test/functional\">View Demo</a>\n    ·\n    <a href=\"https://github.com/CarterGrimmeisen/zod-prisma/issues\">Report Bug</a>\n    ·\n    <a href=\"https://github.com/CarterGrimmeisen/zod-prisma/issues\">Request Feature</a>\n  </p>\n</p>\n\n<!-- TABLE OF CONTENTS -->\n<details open=\"open\">\n  <summary><h2 style=\"display: inline-block\">Table of Contents</h2></summary>\n  <ol>\n    <li>\n      <a href=\"#about-the-project\">About The Project</a>\n      <ul>\n        <li><a href=\"#built-with\">Built With</a></li>\n      </ul>\n    </li>\n    <li>\n      <a href=\"#getting-started\">Getting Started</a>\n      <ul>\n        <li><a href=\"#prerequisites\">Prerequisites</a></li>\n        <li><a href=\"#installation\">Installation</a></li>\n      </ul>\n    </li>\n    <li><a href=\"#usage\">Usage</a>\n      <ul>\n      <li><a href=\"#jsdoc-generation\">JSDoc Generation</a></li>\n      <li><a href=\"#extending-zod-fields\">Extending Zod Fields</a></li>\n      <li>\n        <a href=\"#importing-helpers\">Importing Helpers</a>\n        <ul>\n        <li><a href=\"#custom-zod-schema\">Custom Zod Schemas</a></li>\n        </ul>\n      </li>\n      <li><a href=\"#json-fields\">JSON Fields</a></li>\n      </ul>\n    </li>\n    <li><a href=\"#examples\">Examples</a></li>\n    <li><a href=\"#roadmap\">Roadmap</a></li>\n    <li><a href=\"#contributing\">Contributing</a></li>\n    <li><a href=\"#license\">License</a></li>\n    <li><a href=\"#contact\">Contact</a></li>\n  </ol>\n</details>\n\n<!-- ABOUT THE PROJECT -->\n\n## About The Project\n\nI got tired of having to manually create Zod schemas for my Prisma models and of updating them everytime I made schema changes.\nThis provides a way of automatically generating them with your prisma\n\n<!-- [![Product Name Screen Shot][product-screenshot]](https://example.com) -->\n\n### Built With\n\n-   [dts-cli](https://github.com/weiran-zsd/dts-cli)\n-   [Zod](https://github.com/colinhacks/zod)\n-   [Based on this gist](https://gist.github.com/deckchairlabs/8a11c33311c01273deec7e739417dbc9)\n\n<!-- GETTING STARTED -->\n\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Prerequisites\n\nThis project utilizes yarn and if you plan on contributing, you should too.\n\n```sh\nnpm install -g yarn\n```\n\n### Installation\n\n0.  **Ensure your tsconfig.json enables the compiler's strict mode.**\n    **Zod requires it and so do we, you will experience TS errors without strict mode enabled**\n\n1.  Add zod-prisma as a dev dependency\n\n    ```sh\n    yarn add -D zod-prisma\n    ```\n\n2.  Add the zod-prisma generator to your schema.prisma\n\n    ```prisma\n    generator zod {\n      provider                 = \"zod-prisma\"\n      output                   = \"./zod\" // (default) the directory where generated zod schemas will be saved\n\n      relationModel            = true // (default) Create and export both plain and related models.\n      // relationModel         = \"default\" // Do not export model without relations.\n      // relationModel         = false // Do not generate related model\n\n      modelCase                = \"PascalCase\" // (default) Output models using pascal case (ex. UserModel, PostModel)\n      // modelCase             = \"camelCase\" // Output models using camel case (ex. userModel, postModel)\n\n      modelSuffix              = \"Model\" // (default) Suffix to apply to your prisma models when naming Zod schemas\n\n      // useDecimalJs          = false // (default) represent the prisma Decimal type using as a JS number\n      useDecimalJs             = true // represent the prisma Decimal type using Decimal.js (as Prisma does)\n\n      imports                  = null // (default) will import the referenced file in generated schemas to be used via imports.someExportedVariable\n\n      // https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values\n      prismaJsonNullability    = true // (default) uses prisma's scheme for JSON field nullability\n      // prismaJsonNullability = false // allows null assignment to optional JSON fields\n    }\n    ```\n\n3.  Run `npx prisma generate` or `yarn prisma generate` to generate your zod schemas\n4.  Import the generated schemas form your selected output location\n\n<!-- USAGE EXAMPLES -->\n\n## Usage\n\n### JSDoc Generation\n\n[Rich-comments](https://www.prisma.io/docs/concepts/components/prisma-schema#comments)\nin the Prisma schema will be transformed into JSDoc for the associated fields:\n\n> _Note: make sure to use a triple-slash. Double-slash comments won't be processed._\n\n```prisma\nmodel Post {\n  /// The unique identifier for the post\n  /// @default {Generated by database}\n  id String @id @default(uuid())\n\n  /// A brief title that describes the contents of the post\n  title String\n\n  /// The actual contents of the post.\n  contents String\n}\n```\n\nGenerated code:\n\n```ts\nexport const PostModel = z.object({\n\t/**\n\t * The unique identifier for the post\n\t * @default {Generated by database}\n\t */\n\tid: z.string().uuid(),\n\t/**\n\t * A brief title that describes the contents of the post\n\t */\n\ttitle: z.string(),\n\t/**\n\t * The actual contents of the post.\n\t */\n\tcontents: z.string(),\n})\n```\n\n### Extending Zod Fields\n\nYou can also use the `@zod` keyword in rich-comments in the Prisma schema\nto extend your Zod schema fields:\n\n```prisma\nmodel Post {\n  id String @id @default(uuid()) /// @zod.uuid()\n\n  /// @zod.max(255, { message: \"The title must be shorter than 256 characters\" })\n  title String\n\n  contents String /// @zod.max(10240)\n}\n```\n\nGenerated code:\n\n```ts\nexport const PostModel = z.object({\n\tid: z.string().uuid(),\n\ttitle: z.string().max(255, { message: 'The title must be shorter than 256 characters' }),\n\tcontents: z.string().max(10240),\n})\n```\n\n### Importing Helpers\n\nSometimes its useful to define a custom Zod preprocessor or transformer for your data.\nzod-prisma enables you to reuse these by importing them via a config options. For example:\n\n```prisma\ngenerator zod {\n  provider      = \"zod-prisma\"\n  output        = \"./zod\"\n  imports \t\t  = \"../src/zod-schemas\"\n}\n\nmodel User {\n  username\tString /// @zod.refine(imports.isValidUsername)\n}\n```\n\nThe referenced file can then be used by simply referring to exported members via `imports.whateverExport`.\nThe generated zod schema files will now include a namespaced import like the following.\n\n```typescript\nimport * as imports from '../../src/zod-schemas'\n```\n\n#### Custom Zod Schema\n\nIn conjunction with this import option, you may want to utilize an entirely custom zod schema for a field.\nThis can be accomplished by using the special comment directive `@zod.custom()`.\nBy specifying the custom schema within the parentheses you can replace the autogenerated type that would normally be assigned to the field.\n\n> For instance if you wanted to use `z.preprocess`\n\n### JSON Fields\n\nJSON fields in Prisma disallow null values. This is to disambiguate between setting a field's value to NULL in the database and having\na value of null stored in the JSON. In accordance with this zod-prisma will default to disallowing null values, even if your JSON field is optional.\n\nIf you would like to revert this behavior and allow null assignment to JSON fields,\nyou can set `prismaJsonNullability` to `false` in the generator options.\n\n## Examples\n\n<!-- Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources. -->\n\n_For examples, please refer to the [Examples Directory](https://github.com/CarterGrimmeisen/zod-prisma/blob/main/examples) or the [Functional Tests](https://github.com/CarterGrimmeisen/zod-prisma/blob/main/src/test/functional)_\n\n<!-- ROADMAP -->\n\n## Roadmap\n\nSee the [open issues](https://github.com/CarterGrimmeisen/zod-prisma/issues) for a list of proposed features (and known issues).\n\n<!-- CONTRIBUTING -->\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n<!-- LICENSE -->\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n<!-- CONTACT -->\n\n## Contact\n\nCarter Grimmeisen - Carter.Grimmeisen@uah.edu\n\nProject Link: [https://github.com/CarterGrimmeisen/zod-prisma](https://github.com/CarterGrimmeisen/zod-prisma)\n\n<!-- MARKDOWN LINKS & IMAGES -->\n<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->\n\n[npm-shield]: https://img.shields.io/npm/v/zod-prisma?style=for-the-badge\n[npm-url]: https://www.npmjs.com/package/zod-prisma\n[contributors-shield]: https://img.shields.io/github/contributors/CarterGrimmeisen/zod-prisma.svg?style=for-the-badge\n[contributors-url]: https://github.com/CarterGrimmeisen/zod-prisma/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/CarterGrimmeisen/zod-prisma.svg?style=for-the-badge\n[forks-url]: https://github.com/CarterGrimmeisen/zod-prisma/network/members\n[stars-shield]: https://img.shields.io/github/stars/CarterGrimmeisen/zod-prisma.svg?style=for-the-badge\n[stars-url]: https://github.com/CarterGrimmeisen/zod-prisma/stargazers\n[issues-shield]: https://img.shields.io/github/issues/CarterGrimmeisen/zod-prisma.svg?style=for-the-badge\n[issues-url]: https://github.com/CarterGrimmeisen/zod-prisma/issues\n[license-shield]: https://img.shields.io/github/license/CarterGrimmeisen/zod-prisma.svg?style=for-the-badge\n[license-url]: https://github.com/CarterGrimmeisen/zod-prisma/blob/main/LICENSE\n","readmeFilename":"README.md"}