├── .github ├── dependabot.yml └── workflows │ ├── automerge.yml │ ├── ci.yml │ └── publish.yml ├── .gitignore ├── .husky └── pre-commit ├── .npmignore ├── .npmrc ├── .nvmrc ├── LICENSE ├── README.md ├── assets └── namespace.d.ts ├── biome.json ├── images └── logo.png ├── index.js ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── scripts └── test.sh ├── src ├── generator.ts ├── handler │ ├── model-payload.ts │ ├── module.ts │ ├── replace-object.ts │ └── statement.ts ├── helpers │ ├── dmmf.ts │ ├── find-signature.ts │ ├── regex.ts │ └── type-parser.ts ├── on-generate.ts ├── on-manifest.ts └── util │ ├── config.ts │ ├── constants.ts │ ├── create-signature.ts │ ├── declaration-writer.ts │ ├── error.ts │ ├── prisma-generator.ts │ ├── source-path.ts │ └── text-changes.ts ├── test ├── schemas │ ├── any.prisma │ ├── array.prisma │ ├── cockroach.prisma │ ├── literal.prisma │ ├── mongo.prisma │ ├── mssql.prisma │ ├── mysql.prisma │ ├── normal-prisma-client.prisma │ ├── normal.prisma │ ├── number.prisma │ ├── skip.prisma │ ├── sqlite.prisma │ ├── string.prisma │ ├── unknown.prisma │ └── use-type.prisma ├── types │ ├── any.test-d.ts │ ├── array.test-d.ts │ ├── cockroach.test-d.ts │ ├── literal.test-d.ts │ ├── mongo.test-d.ts │ ├── mssql.test-d.ts │ ├── mysql.test-d.ts │ ├── normal-prisma-client.test-d.ts │ ├── normal.test-d.ts │ ├── number.test-d.ts │ ├── skip.test-d.ts │ ├── sqlite.test-d.ts │ ├── string.test-d.ts │ ├── unknown.test-d.ts │ └── use-type.test-d.ts └── unit │ └── text-changes.test.ts └── tsconfig.json /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/automerge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.github/workflows/automerge.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | auto-install-peers=true -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v24 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/README.md -------------------------------------------------------------------------------- /assets/namespace.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/assets/namespace.d.ts -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/biome.json -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/images/logo.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/scripts/test.sh -------------------------------------------------------------------------------- /src/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/generator.ts -------------------------------------------------------------------------------- /src/handler/model-payload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/handler/model-payload.ts -------------------------------------------------------------------------------- /src/handler/module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/handler/module.ts -------------------------------------------------------------------------------- /src/handler/replace-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/handler/replace-object.ts -------------------------------------------------------------------------------- /src/handler/statement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/handler/statement.ts -------------------------------------------------------------------------------- /src/helpers/dmmf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/helpers/dmmf.ts -------------------------------------------------------------------------------- /src/helpers/find-signature.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/helpers/find-signature.ts -------------------------------------------------------------------------------- /src/helpers/regex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/helpers/regex.ts -------------------------------------------------------------------------------- /src/helpers/type-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/helpers/type-parser.ts -------------------------------------------------------------------------------- /src/on-generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/on-generate.ts -------------------------------------------------------------------------------- /src/on-manifest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/on-manifest.ts -------------------------------------------------------------------------------- /src/util/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/config.ts -------------------------------------------------------------------------------- /src/util/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/constants.ts -------------------------------------------------------------------------------- /src/util/create-signature.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/create-signature.ts -------------------------------------------------------------------------------- /src/util/declaration-writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/declaration-writer.ts -------------------------------------------------------------------------------- /src/util/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/error.ts -------------------------------------------------------------------------------- /src/util/prisma-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/prisma-generator.ts -------------------------------------------------------------------------------- /src/util/source-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/source-path.ts -------------------------------------------------------------------------------- /src/util/text-changes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/src/util/text-changes.ts -------------------------------------------------------------------------------- /test/schemas/any.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/any.prisma -------------------------------------------------------------------------------- /test/schemas/array.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/array.prisma -------------------------------------------------------------------------------- /test/schemas/cockroach.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/cockroach.prisma -------------------------------------------------------------------------------- /test/schemas/literal.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/literal.prisma -------------------------------------------------------------------------------- /test/schemas/mongo.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/mongo.prisma -------------------------------------------------------------------------------- /test/schemas/mssql.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/mssql.prisma -------------------------------------------------------------------------------- /test/schemas/mysql.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/mysql.prisma -------------------------------------------------------------------------------- /test/schemas/normal-prisma-client.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/normal-prisma-client.prisma -------------------------------------------------------------------------------- /test/schemas/normal.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/normal.prisma -------------------------------------------------------------------------------- /test/schemas/number.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/number.prisma -------------------------------------------------------------------------------- /test/schemas/skip.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/skip.prisma -------------------------------------------------------------------------------- /test/schemas/sqlite.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/sqlite.prisma -------------------------------------------------------------------------------- /test/schemas/string.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/string.prisma -------------------------------------------------------------------------------- /test/schemas/unknown.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/unknown.prisma -------------------------------------------------------------------------------- /test/schemas/use-type.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/schemas/use-type.prisma -------------------------------------------------------------------------------- /test/types/any.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/any.test-d.ts -------------------------------------------------------------------------------- /test/types/array.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/array.test-d.ts -------------------------------------------------------------------------------- /test/types/cockroach.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/cockroach.test-d.ts -------------------------------------------------------------------------------- /test/types/literal.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/literal.test-d.ts -------------------------------------------------------------------------------- /test/types/mongo.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/mongo.test-d.ts -------------------------------------------------------------------------------- /test/types/mssql.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/mssql.test-d.ts -------------------------------------------------------------------------------- /test/types/mysql.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/mysql.test-d.ts -------------------------------------------------------------------------------- /test/types/normal-prisma-client.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/normal-prisma-client.test-d.ts -------------------------------------------------------------------------------- /test/types/normal.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/normal.test-d.ts -------------------------------------------------------------------------------- /test/types/number.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/number.test-d.ts -------------------------------------------------------------------------------- /test/types/skip.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/skip.test-d.ts -------------------------------------------------------------------------------- /test/types/sqlite.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/sqlite.test-d.ts -------------------------------------------------------------------------------- /test/types/string.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/string.test-d.ts -------------------------------------------------------------------------------- /test/types/unknown.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/unknown.test-d.ts -------------------------------------------------------------------------------- /test/types/use-type.test-d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/types/use-type.test-d.ts -------------------------------------------------------------------------------- /test/unit/text-changes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/test/unit/text-changes.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arthurfiorette/prisma-json-types-generator/HEAD/tsconfig.json --------------------------------------------------------------------------------