{"_id":"@designli/be-schemas","_rev":"5-674a11ad30d059df1258317958759a7c","name":"@designli/be-schemas","dist-tags":{"latest":"2.2.0"},"versions":{"1.1.0":{"name":"@designli/be-schemas","version":"1.1.0","keywords":[],"author":"","license":"ISC","_id":"@designli/be-schemas@1.1.0","maintainers":[{"name":"acorrea-designli","email":"andres.correa@designli.co"},{"name":"designli-development","email":"development@designli.co"},{"name":"fx_navas","email":"felix.navas@designli.co"},{"name":"abdiel.designli","email":"abdiel.martinez@designli.co"}],"dist":{"shasum":"3c04b2c904b283b18232214aa5a450c99248df8a","tarball":"https://registry.npmjs.org/@designli/be-schemas/-/be-schemas-1.1.0.tgz","fileCount":44,"integrity":"sha512-hObebJ34KmxP4oFDAp7tvHTcC4pZaFUgoACeb2HrNz6biRsXNAlvihi7fcpm0TwxtRmzwy/G/o3viI+nyJBlSA==","signatures":[{"sig":"MEUCIQCXi3y5RTFNJdBpPB4qjfYLA8FXIdGDOcgDaDShEVsjHgIgJqOG8xGxpbLLIOmJFvHubRzTaDOJnL0kvZwUe76UWTI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63091},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c19f0f25d1d41e6a43ac0bfacbe7479b8ef1eac5","scripts":{"build":"tsc -p tsconfig.json && npm run postbundle","watch":"tsc -w -p tsconfig.json","format":"prettier --write \"src/**/*","postbundle":"copyfiles -u 1 src/**/*.template dist/"},"_npmUser":{"name":"designli-development","email":"development@designli.co"},"schematics":"./collection.json","_npmVersion":"11.7.0","description":"A schematics package to generate base CRUD operations and utilities for Desginli backend projects using Prisma and NestJS","directories":{},"_nodeVersion":"20.19.4","dependencies":{"prettier":"^3.6.2","pluralize":"^8.0.0","@prisma/client":"^6.14.0","@prisma/internals":"^6.14.0","@nestjs/schematics":"^11.0.7","@angular-devkit/core":"^20.2.0","@angular-devkit/schematics":"^20.2.0","@angular-devkit/schematics-cli":"^21.0.2"},"_hasShrinkwrap":false,"devDependencies":{"copyfiles":"^2.4.1","typescript":"^5.9.2","@types/node":"^24.3.0","@types/pluralize":"^0.0.33","prettier-plugin-organize-imports":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/be-schemas_1.1.0_1772038941515_0.8279892308603487","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@designli/be-schemas","version":"2.0.2","keywords":[],"author":"","license":"ISC","_id":"@designli/be-schemas@2.0.2","maintainers":[{"name":"acorrea-designli","email":"andres.correa@designli.co"},{"name":"designli-development","email":"development@designli.co"},{"name":"fx_navas","email":"felix.navas@designli.co"},{"name":"abdiel.designli","email":"abdiel.martinez@designli.co"}],"dist":{"shasum":"d30b98801daa00d8949d2717b8b8558f4a8bd664","tarball":"https://registry.npmjs.org/@designli/be-schemas/-/be-schemas-2.0.2.tgz","fileCount":44,"integrity":"sha512-YRY8m4wRwItfTA4Hl1stsncMKyUE63C5SQs/G+BB5sNcg6xtUUxVX439H8bG9Y959zAxFHOuiFA0lCntuER/fg==","signatures":[{"sig":"MEQCIFxjJceeoPanDa46qghALdLQ8yJnv79BwAhRLnZZSQxJAiB1XEnCWwIXxdkXp06nryAMSph/4CDlsPBrwbajiIxShw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61199},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"28a1bfbe763877eb3448555e9d7abaa067a79503","scripts":{"build":"tsc -p tsconfig.json && npm run postbundle","watch":"tsc -w -p tsconfig.json","format":"prettier --write \"src/**/*","postbundle":"copyfiles -u 1 src/**/*.template dist/"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1c160010-b8f7-448f-9bfd-8192c849d187"}},"schematics":"./collection.json","_npmVersion":"11.8.0","description":"A schematics package to generate base CRUD operations and utilities for Desginli backend projects using Prisma and NestJS","directories":{},"_nodeVersion":"24.13.1","dependencies":{"prettier":"^3.6.2","pluralize":"^8.0.0","@prisma/client":"^6.14.0","@prisma/internals":"^6.14.0","@nestjs/schematics":"^11.0.7","@angular-devkit/core":"^20.2.0","@angular-devkit/schematics":"^20.2.0","@angular-devkit/schematics-cli":"^21.0.2"},"_hasShrinkwrap":false,"devDependencies":{"copyfiles":"^2.4.1","typescript":"^5.9.2","@types/node":"^24.3.0","@types/pluralize":"^0.0.33","prettier-plugin-organize-imports":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/be-schemas_2.0.2_1772039355093_0.722049844539272","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@designli/be-schemas","version":"2.1.0","keywords":[],"author":"","license":"ISC","_id":"@designli/be-schemas@2.1.0","maintainers":[{"name":"acorrea-designli","email":"andres.correa@designli.co"},{"name":"designli-development","email":"development@designli.co"},{"name":"fx_navas","email":"felix.navas@designli.co"},{"name":"abdiel.designli","email":"abdiel.martinez@designli.co"}],"dist":{"shasum":"5094b999311c4a8b13237f408468cb7e5e4e2ca9","tarball":"https://registry.npmjs.org/@designli/be-schemas/-/be-schemas-2.1.0.tgz","fileCount":44,"integrity":"sha512-pvdtilW4ldRqhiLWTWwQlBeQOPCZ51sFt9anZujsY3BrB+mT4lAZxLApqOhDHQ9L267bw/CvXqAvcwpgW37BOA==","signatures":[{"sig":"MEQCIHOg28TnBW8qPne7EqFmqcZ8fcDUWg4HGLtM7b+d0N7FAiBNyhzMUYSpM7VQZOsvoZFjU3DOXSkbDgrDTggih7SKPA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61793},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0327488fbe7bfbae0c2745210baad6aefa1b0c65","scripts":{"build":"tsc -p tsconfig.json && npm run postbundle","watch":"tsc -w -p tsconfig.json","format":"prettier --write \"src/**/*","postbundle":"copyfiles -u 1 src/**/*.template dist/"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1c160010-b8f7-448f-9bfd-8192c849d187"}},"schematics":"./collection.json","_npmVersion":"11.6.2","description":"A schematics package to generate base CRUD operations and utilities for Desginli backend projects using Prisma and NestJS","directories":{},"_nodeVersion":"24.13.0","dependencies":{"prettier":"^3.6.2","pluralize":"^8.0.0","@prisma/client":"^6.14.0","@prisma/internals":"^6.14.0","@nestjs/schematics":"^11.0.7","@angular-devkit/core":"^20.2.0","@angular-devkit/schematics":"^20.2.0","@angular-devkit/schematics-cli":"^21.0.2"},"_hasShrinkwrap":false,"devDependencies":{"copyfiles":"^2.4.1","typescript":"^5.9.2","@types/node":"^24.3.0","@types/pluralize":"^0.0.33","prettier-plugin-organize-imports":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/be-schemas_2.1.0_1772041038471_0.9829224991886518","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@designli/be-schemas","version":"2.2.0","description":"A schematics package to generate base CRUD operations and utilities for Desginli backend projects using Prisma and NestJS","schematics":"./collection.json","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json && npm run postbundle","watch":"tsc -w -p tsconfig.json","postbundle":"copyfiles -u 1 \"src/**/*.template\" \"src/**/schema.json\" dist/","format":"prettier --write \"src/**/*"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@types/node":"^24.3.0","@types/pluralize":"^0.0.33","copyfiles":"^2.4.1","prettier-plugin-organize-imports":"^4.2.0","typescript":"^5.9.2"},"dependencies":{"@angular-devkit/core":"^20.2.0","@angular-devkit/schematics":"^20.2.0","@angular-devkit/schematics-cli":"^21.0.2","@nestjs/schematics":"^11.0.7","@prisma/client":"^6.14.0","@prisma/internals":"^6.14.0","pluralize":"^8.0.0","prettier":"^3.6.2"},"gitHead":"f5dcbac5ccd1972b916e82f7632bc904627cdee0","_id":"@designli/be-schemas@2.2.0","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-R6MZkN3jaU4HHBzWjURteMvX7NkOVZloaciEi5NHMeGuj6A520UZJeFVEyb9QJpCwbtIFJbJ6gdruXtAsTCLaQ==","shasum":"427d881c971d70f959bccbaff7fe467dd5e8f759","tarball":"https://registry.npmjs.org/@designli/be-schemas/-/be-schemas-2.2.0.tgz","fileCount":31,"unpackedSize":38632,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCg49SLf6TeJ4ax266MgEKLF9B1mWXKPS3hrwZkwbsngwIhAPTCcRkn1AECryHEGRuSvTQvEFFy70o1WUgJDV5qM6bH"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1c160010-b8f7-448f-9bfd-8192c849d187"}},"directories":{},"maintainers":[{"name":"acorrea-designli","email":"andres.correa@designli.co"},{"name":"srizo","email":"stefhanie.rizo@designli.co"},{"name":"designli-development","email":"development@designli.co"},{"name":"fx_navas","email":"felix.navas@designli.co"},{"name":"abdiel.designli","email":"abdiel.martinez@designli.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/be-schemas_2.2.0_1789410778442_0.8266848354956144"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-25T17:02:21.441Z","modified":"2026-09-14T18:32:58.942Z","1.1.0":"2026-02-25T17:02:21.744Z","2.0.2":"2026-02-25T17:09:15.241Z","2.1.0":"2026-02-25T17:37:18.614Z","2.2.0":"2026-09-14T18:32:58.590Z"},"license":"ISC","keywords":[],"description":"A schematics package to generate base CRUD operations and utilities for Desginli backend projects using Prisma and NestJS","maintainers":[{"name":"acorrea-designli","email":"andres.correa@designli.co"},{"name":"srizo","email":"stefhanie.rizo@designli.co"},{"name":"designli-development","email":"development@designli.co"},{"name":"fx_navas","email":"felix.navas@designli.co"},{"name":"abdiel.designli","email":"abdiel.martinez@designli.co"}],"readme":"# @designli/be-schemas\n\nSchematics that generate the CRUD layer of a Prisma model for a Designli NestJS\nbackend: feature module, controller, service, repository and DTOs, wired into\nthe closest parent module.\n\nThe generated code extends the base classes shipped by the backend template\n(`@common/base/*`) and logs through the native NestJS `Logger`.\n\n## Install\n\n```bash\nnpm i -D @designli/be-schemas\n```\n\nThe package brings its own `schematics` CLI, so no extra tooling is required.\n\n## Usage\n\nRun the commands from the project root, next to `prisma/schema.prisma`.\n\n### One model\n\n```bash\nnpx schematics @designli/be-schemas:crud --singular=User\n```\n\n### Every model in the schema\n\n```bash\nnpx schematics @designli/be-schemas:crud-alll\n```\n\nBoth schematics are also reachable through the Nest CLI, where the model name is\nthe positional argument:\n\n```bash\nnpx nest generate cr User --collection @designli/be-schemas\nnpx nest generate cra --collection @designli/be-schemas\n```\n\nAdd `--dry-run` to preview the output without touching the working tree.\n\n## Options\n\n| Option           | Schematic | Default                | Description                                                       |\n| ---------------- | --------- | ---------------------- | ----------------------------------------------------------------- |\n| `--singular`     | `crud`    | —                      | Prisma model name. Also accepted as the first positional argument |\n| `--plural`       | `crud`    | pluralized `singular`  | Name of the generated feature folder and of the REST route        |\n| `--path`         | both      | `src/modules`          | Folder the feature is generated into                              |\n| `--prismaSchema` | both      | `prisma/schema.prisma` | Path to the Prisma schema                                         |\n\n`--singular` accepts any casing (`User`, `user`, `test-user`); it is normalized\nbefore the model is looked up in the schema.\n\n## Non-interactive runs\n\nNothing is prompted as long as the model name is provided, so the schematics can\nbe driven from scripts, CI or a coding agent. When the model name is missing,\n`crud` asks for it interactively; pass `--singular` to skip the prompt. Invalid\ninput fails fast with an explicit message listing the models available in the\nschema.\n\n## Formatting\n\nGenerated and updated files are formatted with the prettier installed in the\nhost project, honouring its configuration and plugins. When prettier cannot be\nresolved the files are still written, only unformatted.\n","readmeFilename":"README.md"}