{"dist":{"shasum":"d3e88e2460c8a4710b656fcc4fe1fc2fe83f3647","tarball":"https://registry.npmjs.org/prisma-generate-schema/-/prisma-generate-schema-1.28.0-alpha.12.tgz","fileCount":195,"integrity":"sha512-1K+puQWbdOWzLNbUL4yb8YMxZIidx5T8igF9chMAQArAMk1O60jKSc5gzjs5pN9z7cta/CEpTlEa2zYE/oXiSg==","signatures":[{"sig":"MEYCIQDUx6VpScOZX5PAJp8GqkrrIVnU00BxjVeLXtNNEMJr6wIhAPC2Ty6fWY4HRjFSh7F6eIPSAjJPJwmjPhU7q15ny3hX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":325216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbnCZCRA9TVsSAnZWagAAFWgQAJuxDUda+nWmtHWaiAu9\nxTpIhS1Y1c0ptli6LLqh3tPVS3QjtzpBIX8f0KISzJgKn63nCu5HI1TpRckd\ngNpUEQ5hcON9fXwo1Pl+yIIhxoqQYzMu5hfxlNN0m0WGKTXtf/OsTldlz5Yd\nMB0V2kisEiK1+kCBJdKCWxPWDMEn1+BE4vsye/ozV/SgAvyha7y2x5+U8k+h\nEXBbKAFNpxyASsFxpAUcdyfl2ZFbaJ87h3foM6ozd0gut6blY/7ocUQUTiPl\nNjEC8eoiXW9bW6w+OttBu/PCoZwzjhDVRcd4O3gFpaoZUu+C9rpM9iumAhe2\nzj8fw/hEG4Fc56Jgmaf1F6GiormfaCWsIsxg4tfG9wvgHCgq0AYVmd45jyhj\nwORxFKupiQ7BPPuV5gbqtCHt1PKE68FsE148pLLv5pbACa3Wzk4kJbfnG36e\nMNsW3kvb47e91PUw5VzojOPjc82HzR5vg6G/JtBWOKanUaXs7G4a/IcbV40q\noSyunSMPnxxbQqvEDbK2RwypKN4YIeCquQNc0Zi4mZ2WhctekhzhEY78Ah4k\nQfTC+mfbPW0nyjT5321MBIPsUlKNVw3rK4YkPv6iBTyxkVtk8elLxRkMhDBJ\n4Se2z4KBQK/bL/+qwN3165U3UiQHt4VvI5JKbcMEYlSPdh9qRDbyBIIYuyLY\nJa+B\r\n=qO6w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"testPathIgnorePatterns":["/node_modules/","helpers.ts"]},"main":"dist/src/index.js","name":"prisma-generate-schema","author":{"name":"Emanuel Jöbstl"},"readme":"# prisma-generate-schema\n\nThis module is capable of generating a prisma [OpenCRUD](https://www.opencrud.org/) schema for a given datamodel, given in SDL.\n\n## Developing\n\nDevelopment uses typescript, npm, yarn and jest.\n\n```\nyarn\nnpm run test\n```\n\n## Usage\n\nBasic Usage:\n\n```typescript\nimport { generateCRUDSchemaString } from 'prisma-generate-schema'\n\nconst openCRUDSchema = generateCRUDSchemaString(modelInSDL)\n```\n\n## Project Structure\n\nThis section is intended for maintainers.\n\nFirst, a datamodel is parsed using the [`DatamodelParser`](src/datamodel/parser.ts). Then, an OpenCRUD schema is created using the [`SchemaGenerator`](src/generator/default/schemaGenerator.ts).\n\nThe schema generator utilizes several other generators to generate the `mutation`, `query` and `subscription` objects and all corresponding types.\nA [`Generator`](src/generator/generator.ts) is usually responsible for a single type only but will access other generators to recursively build the schema. All generators which return object types implement lazy evaluation and caching of generated types via their base class. The generators can be configured using dependency injection, if needed, to switch out the implementation for certain types in the schema.\n\nAll default generators, i.e. generators for a **relational model**, one for each type that can occur in an OpenCRUD schema, can ge found in the [`DefaultGenerators`](src/generator/default/index.ts) class.\n\nAll special document generators, i.e. generators for a **document model**, can ge found in the [`DocumentGenerators`](src/generator/document/index.ts) class.\n","license":"Apache-2.0","scripts":{"test":"rm -rf dist && jest","build":"tsc -d","prepublishOnly":"yarn build"},"typings":"dist/src/index.d.ts","_npmUser":{"name":"timsuchanek","email":"tim.suchanek@gmail.com"},"_npmVersion":"6.4.1","description":"Transform prisma datamodel SDL into graphql-js SDL","directories":{},"maintainers":[{"name":"timsuchanek","email":"tim.suchanek@gmail.com"}],"_nodeVersion":"8.15.0","dependencies":{"graphql":"^14.0.2","popsicle":"10","pluralize":"^7.0.0","prisma-datamodel":"1.28.0-alpha.12"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.5.0","ts-jest":"^23.1.4","jest-cli":"^23.6.0","typescript":"^3.2.2","@types/jest":"^23.3.1","tslint-eslint-rules":"^5.4.0","tslint-config-prettier":"^1.17.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-generate-schema_1.28.0-alpha.12_1550741656865_0.5392650461634045","host":"s3://npm-registry-packages"},"_id":"prisma-generate-schema@1.28.0-alpha.12","version":"1.28.0-alpha.12"}