{"_id":"@kentico/kontent-schema-generator-graphql","_rev":"42-7ecb7ed5201cba58e0ce5fe80cf09f31","name":"@kentico/kontent-schema-generator-graphql","dist-tags":{"rebranding":"2.0.0-rebranding.3","latest":"2.1.1","alpha":"2.1.2-alpha.0"},"versions":{"2.0.0-rebranding.0":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.0.0-rebranding.0","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.0.0-rebranding.0","maintainers":[{"name":"makma","email":"martinm@kentico.com"},{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/index.js"},"dist":{"shasum":"93d190ea78d915963d8f5652d01cfb2e72e5a380","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.0.0-rebranding.0.tgz","fileCount":38,"integrity":"sha512-c4y7OZ06B5lKOzUTlISl8I6ju8zVwCfUMIj/r4u4ejOCt15PaTKnS+hbCRsg9acBeyftG77gk206zlMgQQBwqw==","signatures":[{"sig":"MEUCIBfXpi727cbIqroWJJwkqDmJtPkg6drMivXS4lMiuUbWAiEAskQsKsATYc7Z4PgFSPIxmF8jKvr0EL1spa6GioH7AEo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjJSYCRA9TVsSAnZWagAAnxoP/2pT3019UW3XLUza/P+k\nDKHiV+k7U54sQznFCtBYz80DrP+1d46ry/4+/078hjvuR9UcwXE8puLvxVI8\nk0ukVGbg7QZF2RxS98GL7j1huZEziOIibF5emcEbJ2n0h6F2H8ruhQ8+lYTt\noabgRxOaOb10hDAd0HhqeIdJrlmdjAG0fAbJ0A65ot+tmEW3IH/haKxmsRCR\nWcn/JEAgHLKwy3lKI9BlNV+Cn81Hw/mPo2juaKv7YnvgZMDtUTClnWLwU+bX\nLGw5p/tipL6F2O41UN4MdhvG8bYDXtAuOwxoXFNaVB2TBXm0TA3EOAlB9pfS\nTrOI0cHdBWpeiLdNMZDP9HeHGVY1H5/Qzm7U5Mz4sUuoTEZwzKTUFdqfb+gj\nYuZlyApaPudlJt1yVCjhgIvGDtQYjGWFRGEkAM7i6+SE4jEKQrjB5ZPDTmiK\nn15jMdGpbi9dhpklQ2UBjZJqTLOBWDZJaTa6+OxW+rGAI+cCp+O9TrnUTS0x\nBu7D4At1HgGAn385ufWK91yWV7NYrngJdU2eyj0w21rMpp7hvEjbqANQo1fU\nkX6JbJKpwjikatPaws5i6/GPqPckZRfAtOkdzeVlqrebJUEYxZ486MZMJZbH\nZy8b0p/R38/eazpsQK7K/mNfgZnyv7M9dh4qbTNVJgZPjWq+1KhCvExwE8Tm\n65u1\r\n=/JLC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"gitHead":"8dbf7a861773a221925ccaba835bbbf7c6560ae4","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.4.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"10.15.3","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^2.0.0","@kentico/kontent-delivery":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.0.0-rebranding.0_1569494167505_0.21613226675381703","host":"s3://npm-registry-packages"}},"2.0.0-rebranding.1":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.0.0-rebranding.1","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.0.0-rebranding.1","maintainers":[{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/index.js"},"dist":{"shasum":"52f6f60210b0a72b01ee522594b594a10f017a2d","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.0.0-rebranding.1.tgz","fileCount":29,"integrity":"sha512-VmaaQyRXIIGzGx8cXYwcyWxt748S9urly1hoRnPT+ghY9DZNeys7GoAagtrY4ADcT9K/rdncR3w1rVIU1VQD/A==","signatures":[{"sig":"MEUCIQCMMVrMghDDJR0EqlRD1EiCmep2ckKpTxOfxmxOuptOLQIgJKh+6+n756U0l8ejl/Z2worOHQGs3lSOHZYvzv7caQc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjKV/CRA9TVsSAnZWagAA4mcP/0J+V2A3chELTYN4Lo9n\nugBeUgz9s22MM/q2X6PxvFAF4ndiiizqwew4xpBvbURF2i8MMiQ7iMHAoJAx\nZHEZFtnahMoLpMT3eO8lEovOCdAGM6u2QAImFvhEUCu3WbukTi0Z3L2+6aWf\nSmu7Wssf74PROEzPWY9cxR/9WRF/gU3BlJcKWd/3SEJT44sCwAQ6gqgIXb/5\nkYrx5nYvluXEhCSTESZWh+fkPcVTmcgwfI+NNVIqCwOUD0kKcl7gSM5mtG8W\nRgDpjPVwPvvLZVMLusavLlUaZl40SbxPYc6ehrmApnwvdMX5UsySg+JhYtyI\n3RolbdXXCGvPQRRZfPGp5FoDml+V/zx5Ej1exT5UXrm5T3Kd3B0KdWD+9ZMH\n2sHRJo0IiTDr1LoD1N+ui0uJJ5BNg9/heMNK6C3+PLVeKkNfa270I+evCs8a\niNy4bWyFnlmuItso9ziMYAigkoVTNgk/C6Q77RqbHeUk2VhYm0NZnE1OEWKN\nt34hEhdTWJmAQY1dZ0rE99Nj13nbI2lV90m9eeFFaJ2s5UqSHn4J4nQd44K7\nwh2il9AUEai7kWo/4+iEsCwH8PSMV/Xcoi9FL/oO9vrFrwtz/kXIvzXzYLAn\nSkiOWvqQEcaPOTsJz85hP2riWFpZYyhQ4vfy8H1hgKp+Z3dLUL/CSlDR/waD\nRkEd\r\n=H3UD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"readme":"# Kentico Kontent GraphQL schema generator\r\n\r\n[![Build Status](https://api.travis-ci.org/Kentico/kontent-schema-generator-graphql.svg?branch=master)](https://travis-ci.org/Kentico/kontent-schema-generator-graphql)\r\n[![npm version](https://badge.fury.io/js/@kentico/kontent-schema-generator-graphql.svg)](https://www.npmjs.com/package/@kentico/kontent-schema-generator-graphql)\r\n[![npm](https://img.shields.io/npm/dt/kontent-schema-generator-graphql.svg)](https://www.npmjs.com/package/@kentico/kontent-schema-generator-graphql)\r\n[![Maintainability](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/maintainability)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/maintainability)\r\n[![Test Coverage](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/test_coverage)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/test_coverage)\r\n[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-kontent)\r\n\r\n[GraphQL schema](https://graphql.org/learn/schema/) generator used to generate schema based on specified project.\r\n\r\nThis schema could be used when creating [GraphQL](https://graphql.org) endpoint from [Kentico Kontent Delivery API REST endpoint](https://developer.kenticocloud.com/reference#delivery-api).\r\n\r\nThis schema is primarily meant to be used in combination with the [Official JavaScript SDK](https://github.com/Kentico/kentico-kontent-js/tree/master/packages/delivery) on the top of the Kentico Kontent REST API. If you are using REST API directly, you won't get all elements' properties set, because some of them are set by the JS SDK.\r\n\r\n**Showcase** could be see on [Apollo Express boilerplate](https://github.com/Kentico/kontent-boilerplate-express-apollo).\r\n\r\n## Get started\r\n\r\n### Prerequisites\r\n\r\n* [Node](https://nodejs.org/en/download/) installed\r\n\r\n### Installation\r\n\r\n`npm i @kentico/kontent-schema-generator-graphql -g`\r\n\r\n### Generating schema with NPM script\r\n\r\nProvide a [project ID](https://developer.kenticocloud.com/v1/reference) of your project.\r\n\r\nWrite  type definition to the standard output\r\n\r\n* `kontent-generate-gql-schema --projectId xxx`\r\n\r\nGenerate file with definition exported as a constant fo file `config.js`\r\n\r\n* `kontent-generate-gql-schema --projectId xxx --createModule --outputFile \"config.js\"`\r\n\r\n### Configuration\r\n\r\n* `projectId` - represents the Kentico Kontent Project Id from which schema will be generated\r\n* `secureAccessKey` - Secure access key required to authenticate requests with enabled secure access in Kentico Kontent project\r\n* `outputFile` - specifies output file name (possible with the path), if not specified - output is written to standard output\r\n* `createModule` - output is defined as a constant and exported as a module (see [Example Output](#example-output))\r\n\r\n## Versions\r\n\r\nVersion 1.X.X is compatible with npm package [`kentico-cloud-delivery`](https://www.npmjs.com/package/kentico-cloud-delivery) version 5.X.X.\r\n\r\nVersion 2.X.X is compatible with npm package [`@kentico/kontent-delivery`](https://www.npmjs.com/package/@kentico/kontent-delivery) version 7.X.X.\r\n\r\n## Development\r\n\r\n1. Clone the repository\r\n2. Run `npm install` to install all required dependencies\r\n3. Run `npm run build` to build the solution\r\n\r\n### Run\r\n\r\nRun `node ./_commonjs/index.js --projectId xxx`\r\n\r\n### Test\r\n\r\n* Run `npm test` to run all tests\r\n\r\n### Run watch mode\r\n\r\n* Run `npm run watch` to run the watch mode\r\n\r\n## Example output\r\n\r\n* More complex showcase could be also retrieved by running\r\n\r\n`npm run run:sample`\r\n\r\n<details>\r\n<summary>Without module encapsulation (w/o `createModule`)</summary>\r\n\r\n```gql\r\ntype SystemInfo {\r\n  id: String!\r\n  name: String!\r\n  codename: String!\r\n  language: String!\r\n  type: String!\r\n  lastModified: String!\r\n}\r\ninterface ContentItem {\r\n  system: SystemInfo!\r\n}\r\ntype MultipleChoiceElementOption {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype TaxonomyTerm {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype Asset {\r\n  name: String\r\n  type: String\r\n  size: Int\r\n  description: String\r\n  url: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype Link {\r\n  codename: String\r\n  itemID: String\r\n  urlSlug: String\r\n  type: String\r\n}\r\ntype RichTextImage {\r\n  imageId: String!\r\n  url: String!\r\n  description: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype TextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype NumberElement {\r\n  type: String!\r\n  name: String!\r\n  value: Int\r\n}\r\ntype DateTimeElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype MultipleChoiceElement {\r\n  type: String!\r\n  name: String!\r\n  value: [MultipleChoiceElementOption]\r\n}\r\ntype UrlSlugElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype TaxonomyElement {\r\n  type: String!\r\n  name: String!\r\n  value: [TaxonomyTerm]\r\n  taxonomyGroup: String\r\n}\r\ntype AssetElement {\r\n  type: String!\r\n  name: String!\r\n  value: [Asset]\r\n}\r\ntype RichTextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n  linkedItemCodenames: [String]\r\n  links: [Link]\r\n  images: [RichTextImage]\r\n  resolvedHtml: String\r\n}\r\ntype CustomElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\n\r\ntype AboutUsContentType implements ContentItem {\r\n  system: SystemInfo!\r\n  metadata__og_description: TextElement\r\n  metadata__meta_title: TextElement\r\n  metadata__og_title: TextElement\r\n  metadata__meta_description: TextElement\r\n  metadata__twitter_site: TextElement\r\n  url_pattern: UrlSlugElement\r\n  metadata__twitter_image: AssetElement\r\n  metadata__twitter_creator: TextElement\r\n  metadata__twitter_title: TextElement\r\n  metadata__twitter_description: TextElement\r\n  metadata__og_image: AssetElement\r\n  facts: [ContentItem]\r\n}\r\n\r\n```\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>With module encapsulation</summary>\r\n\r\n```plain\r\nconst TYPE_DEFINITION = `type SystemInfo {\r\n  id: String!\r\n  name: String!\r\n  codename: String!\r\n  language: String!\r\n  type: String!\r\n  lastModified: String!\r\n}\r\ninterface ContentItem {\r\n  system: SystemInfo!\r\n}\r\ntype MultipleChoiceElementOption {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype TaxonomyTerm {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype Asset {\r\n  name: String\r\n  type: String\r\n  size: Int\r\n  description: String\r\n  url: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype Link {\r\n  codename: String\r\n  itemID: String\r\n  urlSlug: String\r\n  type: String\r\n}\r\ntype RichTextImage {\r\n  imageId: String!\r\n  url: String!\r\n  description: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype TextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype NumberElement {\r\n  type: String!\r\n  name: String!\r\n  value: Int\r\n}\r\ntype DateTimeElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype MultipleChoiceElement {\r\n  type: String!\r\n  name: String!\r\n  value: [MultipleChoiceElementOption]\r\n}\r\ntype UrlSlugElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype TaxonomyElement {\r\n  type: String!\r\n  name: String!\r\n  value: [TaxonomyTerm]\r\n  taxonomyGroup: String\r\n}\r\ntype AssetElement {\r\n  type: String!\r\n  name: String!\r\n  value: [Asset]\r\n}\r\ntype RichTextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n  linkedItemCodenames: [String]\r\n  links: [Link]\r\n  images: [RichTextImage]\r\n  resolvedHtml: String\r\n}\r\ntype CustomElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\n\r\ntype AboutUsContentType implements ContentItem {\r\n  system: SystemInfo!\r\n  metadata__og_description: TextElement\r\n  metadata__meta_title: TextElement\r\n  metadata__og_title: TextElement\r\n  metadata__meta_description: TextElement\r\n  metadata__twitter_site: TextElement\r\n  url_pattern: UrlSlugElement\r\n  metadata__twitter_image: AssetElement\r\n  metadata__twitter_creator: TextElement\r\n  metadata__twitter_title: TextElement\r\n  metadata__twitter_description: TextElement\r\n  metadata__og_image: AssetElement\r\n  facts: [ContentItem]\r\n}`;\r\n\r\nmodule.exports = {\r\n  TYPE_DEFINITION\r\n}\r\n```\r\n\r\n</details>\r\n\r\n![Analytics](https://kentico-ga-beacon.azurewebsites.net/api/UA-69014260-4/Kentico/kentico-cloud-graphql-schema-generator?pixel)\r\n","gitHead":"38486e4542426e17f38b0240602fecc155e7ceb8","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.4.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"10.15.3","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^2.0.0","@kentico/kontent-delivery":"^7.0.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.0.0-rebranding.1_1569498495016_0.6008944108401364","host":"s3://npm-registry-packages"}},"2.0.0-rebranding.2":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.0.0-rebranding.2","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.0.0-rebranding.2","maintainers":[{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/src/index.js"},"dist":{"shasum":"e026b86642746b2b7309c83a68a27dc32fd76d9a","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.0.0-rebranding.2.tgz","fileCount":29,"integrity":"sha512-9fSk3JqHaBk2BNvluR1A2toouFqjF0s4nDAVr9QiV0px1epzZ46LXuVN4ZC3d7TiFcFxzv0YzS22DodYXvUCag==","signatures":[{"sig":"MEYCIQC8ARA0zwxdaZI8uWPGa27f2kWuHxwMF8CI78+xusP8bAIhAMcJU4/Vg3gD4+FzZ71zTnGOokfiJeeGny8GrL7mqfci","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjKcSCRA9TVsSAnZWagAATicP/103d/6aezfMJFpGDiDX\nA3W5eYR+DW6N2dwxelcQ0EtCQkpn6WLM3g/1eDAogxzD+ku3WXTP48rMA34r\nuGIguWqwSo+xwWnto03Z2+E0xPCFgSOYb1WQoFGwtJ13qVO4183/WrpFK51D\n10jFa+w69fKSD5pBpaCRSDRVK87m8YYCgBiZHLHus0bQXP8uKvrKD216pZVq\nX2npeYf9nHn8spxxS266xgtfZSXmYSaCYVvnzV6oNf72xA+TxDI/As0aV2DX\nJa0WJnQtyrA0Zcz7H2tI2bIKyF7Q07WBP7PnirVbo5L9uOORnmdKCdDGUPHF\nxlF3pyPKJCSQ9NrxdWGarCBRYbxowJ1Wnrbu1B5RaERIcGjE6e6bc5DxvoLs\n5vedlx4rT57XiE18rtn80w0CAjflEyeVOMkCSThVdQYuqC9idliBLVU1aOsz\nvj281EsXlIIT5yIavx+/VG3mTCn3b7qaFZe9YT9xqYz6FOd9oOMn7uuZynhC\n4u2s0Q9kSpx4WV45o8NnL8V0QY5GJaWnFXJppYUQvqIEkUhMYuAaD2k1VZkx\n72JjoS3XI7RqEi7Ofd8HI0kAPgE32OzflQjTVgUh460EGOhxBr7LPyoZtg1k\ntK2yzI0JwlIdmWYpwndRPdcwRgt2NOjLlJKRVaG05yxft6vzn1Sqmuc7Cnx0\ntwtP\r\n=yGh4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"readme":"# Kentico Kontent GraphQL schema generator\r\n\r\n[![Build Status](https://api.travis-ci.org/Kentico/kontent-schema-generator-graphql.svg?branch=master)](https://travis-ci.org/Kentico/kontent-schema-generator-graphql)\r\n[![npm version](https://badge.fury.io/js/@kentico/kontent-schema-generator-graphql.svg)](https://www.npmjs.com/package/@kentico/kontent-schema-generator-graphql)\r\n[![npm](https://img.shields.io/npm/dt/kontent-schema-generator-graphql.svg)](https://www.npmjs.com/package/@kentico/kontent-schema-generator-graphql)\r\n[![Maintainability](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/maintainability)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/maintainability)\r\n[![Test Coverage](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/test_coverage)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/test_coverage)\r\n[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-kontent)\r\n\r\n[GraphQL schema](https://graphql.org/learn/schema/) generator used to generate schema based on specified project.\r\n\r\nThis schema could be used when creating [GraphQL](https://graphql.org) endpoint from [Kentico Kontent Delivery API REST endpoint](https://developer.kenticocloud.com/reference#delivery-api).\r\n\r\nThis schema is primarily meant to be used in combination with the [Official JavaScript SDK](https://github.com/Kentico/kentico-kontent-js/tree/master/packages/delivery) on the top of the Kentico Kontent REST API. If you are using REST API directly, you won't get all elements' properties set, because some of them are set by the JS SDK.\r\n\r\n**Showcase** could be see on [Apollo Express boilerplate](https://github.com/Kentico/kontent-boilerplate-express-apollo).\r\n\r\n## Get started\r\n\r\n### Prerequisites\r\n\r\n* [Node](https://nodejs.org/en/download/) installed\r\n\r\n### Installation\r\n\r\n`npm i @kentico/kontent-schema-generator-graphql -g`\r\n\r\n### Generating schema with NPM script\r\n\r\nProvide a [project ID](https://developer.kenticocloud.com/v1/reference) of your project.\r\n\r\nWrite  type definition to the standard output\r\n\r\n* `kontent-generate-gql-schema --projectId xxx`\r\n\r\nGenerate file with definition exported as a constant fo file `config.js`\r\n\r\n* `kontent-generate-gql-schema --projectId xxx --createModule --outputFile \"config.js\"`\r\n\r\n### Configuration\r\n\r\n* `projectId` - represents the Kentico Kontent Project Id from which schema will be generated\r\n* `secureAccessKey` - Secure access key required to authenticate requests with enabled secure access in Kentico Kontent project\r\n* `outputFile` - specifies output file name (possible with the path), if not specified - output is written to standard output\r\n* `createModule` - output is defined as a constant and exported as a module (see [Example Output](#example-output))\r\n\r\n## Versions\r\n\r\nVersion 1.X.X is compatible with npm package [`kentico-cloud-delivery`](https://www.npmjs.com/package/kentico-cloud-delivery) version 5.X.X.\r\n\r\nVersion 2.X.X is compatible with npm package [`@kentico/kontent-delivery`](https://www.npmjs.com/package/@kentico/kontent-delivery) version 7.X.X.\r\n\r\n## Development\r\n\r\n1. Clone the repository\r\n2. Run `npm install` to install all required dependencies\r\n3. Run `npm run build` to build the solution\r\n\r\n### Run\r\n\r\nRun `node ./_commonjs/index.js --projectId xxx`\r\n\r\n### Test\r\n\r\n* Run `npm test` to run all tests\r\n\r\n### Run watch mode\r\n\r\n* Run `npm run watch` to run the watch mode\r\n\r\n## Example output\r\n\r\n* More complex showcase could be also retrieved by running\r\n\r\n`npm run run:sample`\r\n\r\n<details>\r\n<summary>Without module encapsulation (w/o `createModule`)</summary>\r\n\r\n```gql\r\ntype SystemInfo {\r\n  id: String!\r\n  name: String!\r\n  codename: String!\r\n  language: String!\r\n  type: String!\r\n  lastModified: String!\r\n}\r\ninterface ContentItem {\r\n  system: SystemInfo!\r\n}\r\ntype MultipleChoiceElementOption {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype TaxonomyTerm {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype Asset {\r\n  name: String\r\n  type: String\r\n  size: Int\r\n  description: String\r\n  url: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype Link {\r\n  codename: String\r\n  itemID: String\r\n  urlSlug: String\r\n  type: String\r\n}\r\ntype RichTextImage {\r\n  imageId: String!\r\n  url: String!\r\n  description: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype TextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype NumberElement {\r\n  type: String!\r\n  name: String!\r\n  value: Int\r\n}\r\ntype DateTimeElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype MultipleChoiceElement {\r\n  type: String!\r\n  name: String!\r\n  value: [MultipleChoiceElementOption]\r\n}\r\ntype UrlSlugElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype TaxonomyElement {\r\n  type: String!\r\n  name: String!\r\n  value: [TaxonomyTerm]\r\n  taxonomyGroup: String\r\n}\r\ntype AssetElement {\r\n  type: String!\r\n  name: String!\r\n  value: [Asset]\r\n}\r\ntype RichTextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n  linkedItemCodenames: [String]\r\n  links: [Link]\r\n  images: [RichTextImage]\r\n  resolvedHtml: String\r\n}\r\ntype CustomElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\n\r\ntype AboutUsContentType implements ContentItem {\r\n  system: SystemInfo!\r\n  metadata__og_description: TextElement\r\n  metadata__meta_title: TextElement\r\n  metadata__og_title: TextElement\r\n  metadata__meta_description: TextElement\r\n  metadata__twitter_site: TextElement\r\n  url_pattern: UrlSlugElement\r\n  metadata__twitter_image: AssetElement\r\n  metadata__twitter_creator: TextElement\r\n  metadata__twitter_title: TextElement\r\n  metadata__twitter_description: TextElement\r\n  metadata__og_image: AssetElement\r\n  facts: [ContentItem]\r\n}\r\n\r\n```\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>With module encapsulation</summary>\r\n\r\n```plain\r\nconst TYPE_DEFINITION = `type SystemInfo {\r\n  id: String!\r\n  name: String!\r\n  codename: String!\r\n  language: String!\r\n  type: String!\r\n  lastModified: String!\r\n}\r\ninterface ContentItem {\r\n  system: SystemInfo!\r\n}\r\ntype MultipleChoiceElementOption {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype TaxonomyTerm {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype Asset {\r\n  name: String\r\n  type: String\r\n  size: Int\r\n  description: String\r\n  url: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype Link {\r\n  codename: String\r\n  itemID: String\r\n  urlSlug: String\r\n  type: String\r\n}\r\ntype RichTextImage {\r\n  imageId: String!\r\n  url: String!\r\n  description: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype TextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype NumberElement {\r\n  type: String!\r\n  name: String!\r\n  value: Int\r\n}\r\ntype DateTimeElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype MultipleChoiceElement {\r\n  type: String!\r\n  name: String!\r\n  value: [MultipleChoiceElementOption]\r\n}\r\ntype UrlSlugElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype TaxonomyElement {\r\n  type: String!\r\n  name: String!\r\n  value: [TaxonomyTerm]\r\n  taxonomyGroup: String\r\n}\r\ntype AssetElement {\r\n  type: String!\r\n  name: String!\r\n  value: [Asset]\r\n}\r\ntype RichTextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n  linkedItemCodenames: [String]\r\n  links: [Link]\r\n  images: [RichTextImage]\r\n  resolvedHtml: String\r\n}\r\ntype CustomElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\n\r\ntype AboutUsContentType implements ContentItem {\r\n  system: SystemInfo!\r\n  metadata__og_description: TextElement\r\n  metadata__meta_title: TextElement\r\n  metadata__og_title: TextElement\r\n  metadata__meta_description: TextElement\r\n  metadata__twitter_site: TextElement\r\n  url_pattern: UrlSlugElement\r\n  metadata__twitter_image: AssetElement\r\n  metadata__twitter_creator: TextElement\r\n  metadata__twitter_title: TextElement\r\n  metadata__twitter_description: TextElement\r\n  metadata__og_image: AssetElement\r\n  facts: [ContentItem]\r\n}`;\r\n\r\nmodule.exports = {\r\n  TYPE_DEFINITION\r\n}\r\n```\r\n\r\n</details>\r\n\r\n![Analytics](https://kentico-ga-beacon.azurewebsites.net/api/UA-69014260-4/Kentico/kentico-cloud-graphql-schema-generator?pixel)\r\n","gitHead":"61c3b5691ca10c026532beb191769e37dd7953ba","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.4.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"10.15.3","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^2.0.0","@kentico/kontent-delivery":"^7.0.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.0.0-rebranding.2_1569498897809_0.8855908620519262","host":"s3://npm-registry-packages"}},"2.0.0-rebranding.3":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.0.0-rebranding.3","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.0.0-rebranding.3","maintainers":[{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/src/index.js"},"dist":{"shasum":"8b7ac536ac36ffefd3b6130e8f25ed22f99bf880","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.0.0-rebranding.3.tgz","fileCount":29,"integrity":"sha512-c+Nw3cyArxiolOxcyLF5RavWVpQ1mft49j7gzrwVgz2SWECPIF5RVSRe9HmJzjdUC3AddkA05ikjgMNdO3/KlA==","signatures":[{"sig":"MEUCIA76aHS/blGtgcPyiwa7W7h/w0aqfKWnwGTY3ueaQDcpAiEA6ApgcQLAzxHLjmZRxi4+IWvCwvSMcmWTRWp0c9fznUY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd27nFCRA9TVsSAnZWagAAFnAQAKQoQE7PFrAFmV82iawd\n6doc0s6uAtWigh1e4344G5MI9L5Y7gaPUjQ9l+/agWGVPCeSMWgSejJyE+ty\nHCqK3oeCHrLredJ1NOqFCI4R2/qiWyBo8Rt76GAIpydVKM+4/lR+ofD6iwF8\nP6vZ8oJc2cAkZ3bxlu7LP64W1WqOr4sZDU/H+mljGAhQ5uP6nlvY70F9IjOE\nzWanthdz2JMBJ4MIV/SNq2nHiCbDnXG9gSV3DTfRXdF8e6KDDWcOqDVVVcyW\nBcXCsBWfXhILROsXGH0KeA/ysBKkOiDVAozQI5kb0+xpDlrOm/1LjiFh0PnD\nTlA7sdKTz3YXs8HWyfaYctx+XKf0TYtSF1WBcPbDVPX2Zz8qQwrXe4yLJExV\niVWYDhRSszX50YYdNZzXvAC2IK6QRsaUkVrUgMxHKRBE0FS30gfeSdDFrBSl\nYxY8XWOx4VOGQUBt8bNNcgL+JvJWASmU7y6rsfa1Q898bUCQRB/2vsducWSG\nldnrXX8wqkgq5xqVTf1VB/S9Qn3iq0HybkKVafMEgBzII6ZE6Y+qVBBnnlKt\nYZpq5yeC7tAqdOyxXf1PgiFJOjnR9zPs6P+nTSZKILYC4qaO0foIXiI6rYP0\nDCuZQ+Jgd6wZemvlJss2/Q/MGdp+Kjqu8A+xJVpt743zCb2MmEZUtQZF/pYZ\nwvHg\r\n=uxkH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"readme":"# Kentico Kontent GraphQL schema generator\n\n[![Build Status](https://api.travis-ci.org/Kentico/kontent-schema-generator-graphql.svg?branch=master)](https://travis-ci.org/Kentico/kontent-schema-generator-graphql)\n[![npm version](https://badge.fury.io/js/@kentico/kontent-schema-generator-graphql.svg)](https://www.npmjs.com/package/@kentico/kontent-schema-generator-graphql)\n[![npm](https://img.shields.io/npm/dt/kontent-schema-generator-graphql.svg)](https://www.npmjs.com/package/@kentico/kontent-schema-generator-graphql)\n[![Maintainability](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/maintainability)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/test_coverage)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/test_coverage)\n[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-kontent)\n\n[GraphQL schema](https://graphql.org/learn/schema/) generator used to generate schema based on specified project.\n\nThis schema could be used when creating [GraphQL](https://graphql.org) endpoint from [Kentico Kontent Delivery API REST endpoint](https://docs.kontent.ai/reference/kentico-kontent-apis-overview#delivery-api).\n\nThis schema is primarily meant to be used in combination with the [Official JavaScript SDK](https://github.com/Kentico/kentico-kontent-js/tree/master/packages/delivery) on the top of the Kentico Kontent REST API. If you are using REST API directly, you won't get all elements' properties set, because some of them are set by the JS SDK.\n\n**Showcase** could be see on [Apollo Express boilerplate](https://github.com/Kentico/kontent-boilerplate-express-apollo).\n\n## Get started\n\n### Prerequisites\n\n* [Node](https://nodejs.org/en/download/) installed\n\n### Installation\n\n`npm i @kentico/kontent-schema-generator-graphql -g`\n\n### Generating schema with NPM script\n\nProvide a [project ID](https://docs.kontent.ai/reference/delivery-api#operation/list-content-items) of your project.\n\nWrite  type definition to the standard output\n\n* `kontent-generate-gql-schema --projectId xxx`\n\nGenerate file with definition exported as a constant fo file `config.js`\n\n* `kontent-generate-gql-schema --projectId xxx --createModule --outputFile \"config.js\"`\n\n### Configuration\n\n* `projectId` - represents the Kentico Kontent Project Id from which schema will be generated\n* `secureAccessKey` - Secure access key required to authenticate requests with enabled secure access in Kentico Kontent project\n* `outputFile` - specifies output file name (possible with the path), if not specified - output is written to standard output\n* `createModule` - output is defined as a constant and exported as a module (see [Example Output](#example-output))\n\n## Versions\n\nVersion 1.X.X is compatible with npm package [`kentico-cloud-delivery`](https://www.npmjs.com/package/kentico-cloud-delivery) version 5.X.X.\n\nVersion 2.X.X is compatible with npm package [`@kentico/kontent-delivery`](https://www.npmjs.com/package/@kentico/kontent-delivery) version 8.X.X.\n\n## Development\n\n1. Clone the repository\n2. Run `npm install` to install all required dependencies\n3. Run `npm run build` to build the solution\n\n### Run\n\nRun `node ./_commonjs/index.js --projectId xxx`\n\n### Test\n\n* Run `npm test` to run all tests\n\n### Run watch mode\n\n* Run `npm run watch` to run the watch mode\n\n## Example output\n\n* More complex showcase could be also retrieved by running\n\n`npm run run:sample`\n\n<details>\n<summary>Without module encapsulation (w/o `createModule`)</summary>\n\n```gql\ntype SystemInfo {\n  id: String!\n  name: String!\n  codename: String!\n  language: String!\n  type: String!\n  lastModified: String!\n}\ninterface ContentItem {\n  system: SystemInfo!\n}\ntype MultipleChoiceElementOption {\n  name: String!\n  codename: String\n}\ntype TaxonomyTerm {\n  name: String!\n  codename: String\n}\ntype Asset {\n  name: String\n  type: String\n  size: Int\n  description: String\n  url: String\n  width: Int\n  height: Int\n}\ntype Link {\n  codename: String\n  itemID: String\n  urlSlug: String\n  type: String\n}\ntype RichTextImage {\n  imageId: String!\n  url: String!\n  description: String\n  width: Int\n  height: Int\n}\ntype TextElement {\n  type: String!\n  name: String!\n  value: String\n}\ntype NumberElement {\n  type: String!\n  name: String!\n  value: Int\n}\ntype DateTimeElement {\n  type: String!\n  name: String!\n  value: String\n}\ntype MultipleChoiceElement {\n  type: String!\n  name: String!\n  value: [MultipleChoiceElementOption]\n}\ntype UrlSlugElement {\n  type: String!\n  name: String!\n  value: String\n}\ntype TaxonomyElement {\n  type: String!\n  name: String!\n  value: [TaxonomyTerm]\n  taxonomyGroup: String\n}\ntype AssetElement {\n  type: String!\n  name: String!\n  value: [Asset]\n}\ntype RichTextElement {\n  type: String!\n  name: String!\n  value: String\n  linkedItemCodenames: [String]\n  links: [Link]\n  images: [RichTextImage]\n  resolvedHtml: String\n}\ntype CustomElement {\n  type: String!\n  name: String!\n  value: String\n}\n\ntype AboutUsContentType implements ContentItem {\n  system: SystemInfo!\n  metadata__og_description: TextElement\n  metadata__meta_title: TextElement\n  metadata__og_title: TextElement\n  metadata__meta_description: TextElement\n  metadata__twitter_site: TextElement\n  url_pattern: UrlSlugElement\n  metadata__twitter_image: AssetElement\n  metadata__twitter_creator: TextElement\n  metadata__twitter_title: TextElement\n  metadata__twitter_description: TextElement\n  metadata__og_image: AssetElement\n  facts: [ContentItem]\n}\n\n```\n\n</details>\n\n<details>\n<summary>With module encapsulation</summary>\n\n```plain\nconst TYPE_DEFINITION = `type SystemInfo {\n  id: String!\n  name: String!\n  codename: String!\n  language: String!\n  type: String!\n  lastModified: String!\n}\ninterface ContentItem {\n  system: SystemInfo!\n}\ntype MultipleChoiceElementOption {\n  name: String!\n  codename: String\n}\ntype TaxonomyTerm {\n  name: String!\n  codename: String\n}\ntype Asset {\n  name: String\n  type: String\n  size: Int\n  description: String\n  url: String\n  width: Int\n  height: Int\n}\ntype Link {\n  codename: String\n  itemID: String\n  urlSlug: String\n  type: String\n}\ntype RichTextImage {\n  imageId: String!\n  url: String!\n  description: String\n  width: Int\n  height: Int\n}\ntype TextElement {\n  type: String!\n  name: String!\n  value: String\n}\ntype NumberElement {\n  type: String!\n  name: String!\n  value: Int\n}\ntype DateTimeElement {\n  type: String!\n  name: String!\n  value: String\n}\ntype MultipleChoiceElement {\n  type: String!\n  name: String!\n  value: [MultipleChoiceElementOption]\n}\ntype UrlSlugElement {\n  type: String!\n  name: String!\n  value: String\n}\ntype TaxonomyElement {\n  type: String!\n  name: String!\n  value: [TaxonomyTerm]\n  taxonomyGroup: String\n}\ntype AssetElement {\n  type: String!\n  name: String!\n  value: [Asset]\n}\ntype RichTextElement {\n  type: String!\n  name: String!\n  value: String\n  linkedItemCodenames: [String]\n  links: [Link]\n  images: [RichTextImage]\n  resolvedHtml: String\n}\ntype CustomElement {\n  type: String!\n  name: String!\n  value: String\n}\n\ntype AboutUsContentType implements ContentItem {\n  system: SystemInfo!\n  metadata__og_description: TextElement\n  metadata__meta_title: TextElement\n  metadata__og_title: TextElement\n  metadata__meta_description: TextElement\n  metadata__twitter_site: TextElement\n  url_pattern: UrlSlugElement\n  metadata__twitter_image: AssetElement\n  metadata__twitter_creator: TextElement\n  metadata__twitter_title: TextElement\n  metadata__twitter_description: TextElement\n  metadata__og_image: AssetElement\n  facts: [ContentItem]\n}`;\n\nmodule.exports = {\n  TYPE_DEFINITION\n}\n```\n\n</details>\n\n![Analytics](https://kentico-ga-beacon.azurewebsites.net/api/UA-69014260-4/Kentico/kontent-schema-generator-graphql?pixel)\n","gitHead":"8ea3b1338459dcf28c732c153dc1a5ade5f27cd3","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.13.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"13.2.0","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^5.0.1","@kentico/kontent-delivery":"^8.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.0.0-rebranding.3_1574681029311_0.21938765557022544","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.0.0","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.0.0","maintainers":[{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/src/index.js"},"dist":{"shasum":"472b1d8b7aaf5da58ab330afc5c91e9562dbbce7","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.0.0.tgz","fileCount":29,"integrity":"sha512-iiwBanuggszMTCYfcuPHisscWFYnhecSkA/CIgva5qj7lz+McLYQFfX2/IVgeRaBsvjPuXY3wvMlLxsWxhiUkA==","signatures":[{"sig":"MEUCIQDPDz1H77Vefr18twBR4QC/d8VttRX67sHxRpX58IugnQIgV/+BXlsPcFLS36JhFcRRmn7a5vJpMaGvCg52iHYLyr4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd28GRCRA9TVsSAnZWagAApf0QAJ2oIiHD4MSuH1ihsmp6\nq+yTuJaGsxSbOwA+SR4vgUyksN5u6JBijsm6rJuAkFZuDjaRhha2Qgj1eZA2\nlayMW7c9qV13Um7YyEhaVYbYkmBiYB3YZ6U4uMdjOYZLoi9Ge6wXEl0IzZ60\nSFMGmsAJ4Mcmc7t6a0Um+ZfH5lUFVqitjXPpLvSvq1aishIWyrxFn4bLau6N\n+lWGXu2kEY+1brc0rTArHk1oJfhpDek8265eStON7sGpu6SI12Z5zAY/3Aaz\n81lFqCzmeRaPXkLTgRH9PmJABdPn1MleYdm+/uMEcafey5UOT2OdrNe3zITG\ntu2qmq8PLff9JAaGABlDFnvYFS5bkxj7evRv3xLb59V/6NiTcOFZcHo/+ojS\nCdPJwIo+o4vFwUhULYMGLwfE/D2eAXRkizGmrtpqBzaBV6X8BW68nzipt+jW\nObRShm9Fzov2adjHUe/wSZIBfOeimlLyk5d31NAQrl9XmYRp71vfsxAMFjpp\nwFK5ILqjZRvwsQtRlk0vPoFNTvUJDGe1AH2Xikl3ow3IHo7SNhVHNOovTh9h\ngZJArv4f1kyZAocDGXwsTh+cPLMJx0NcIBfFbGZBbqHaQMjbnG52BViuTfp5\nuQsHUhC2SBJxMIzk8/LKyu3JM+k23VwbbxEouaiP6pfDqnGSB3zTLgcFi6in\nCHoA\r\n=bIkj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"gitHead":"535ceec9278d3cce9a0e281fea2a764886ce07f0","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.13.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"13.2.0","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^5.0.1","@kentico/kontent-delivery":"^8.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.0.0_1574683024813_0.6362440570373371","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.1.0","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.1.0","maintainers":[{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/src/index.js"},"dist":{"shasum":"ef416cb9304a7d0cbba06054f7492b28598c3e6f","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.1.0.tgz","fileCount":29,"integrity":"sha512-iWjxbQ+4oipFnl6Rojz4JD9o4b/G+oQ+QyoDTOm+LBjoJOjUcAgWGIRL2Abch0NVp0Fq9zFiY+xQp1M0a1htNw==","signatures":[{"sig":"MEQCIAyqXJ9gArZMdxRE7iJKh6eqm1zC29P6NrEfcEOHb5vzAiABOr/bHriOAx0gjKTrylt/L9+XlKBdVMTsWCoYkqE8DQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4QUCCRA9TVsSAnZWagAAanQP/2bCUWelZDovjnMFKi9T\nyHkwGSlHA626EuPXnV63DVF0YS7+9H24te5DpHsU93SEbL48klClaFMCvzaQ\nCGgkFZOMqJWHZT5XlWaTRc6Su+2mGS5+updsBYaUngHfjkPs1pncwSi3FOxH\n7X99XAOebAGIB+0C39vRNKl4RSUUb6yeVTKI9Pe1Va9bUbvARBRTOoz5O50F\ncO28t/WUTGJsxle8gVZ/FgFYo5RJXNaRTJ5w1O6ul71yH6Pkn/sQ7XyGtxUr\n0mLGBiCtgf8YC4YHjMHvrwK6PPQoUnzSlcQFRgXU4nu5YBP30dv6EL0U0u/5\n2fwBPSO6cjgf/49E/OWrXhgxI0obP4lm6XgBsrfuY74Vpy4JX0BTLa6hQZ9K\nwT+dxkf8ZiPB4lS8bS6oxuTUNCQV9qeOBnIVpPYeFvaTMFDgbxikXCDMJiXU\naoGQsZrsexFk5TG3nPGMhtAV6vP254eyEqZZJiLEbWWaexLj6XTp1/Nu2mum\nYtIfYGGgW29lOWlO03d+TTkT3RivUJ8lqhRUTTyj+kZQoJHayaf/iVBaUzL7\ngjdGfj5lDKtfFPh2MzPZMR1KAa/87Qo5pqxkuYT7lfE2d9oM4SJxzR02zuKu\nl+uiLLHamRRzv8znGhgqHT5FWmAufm6JH/XKe0Fnbfjvk8JhNhkJoXfKGFnx\nK4mV\r\n=FE3/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"gitHead":"e18f2d9db2c767794c4df86c972583302ad8458a","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.13.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"13.2.0","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^5.0.1","@kentico/kontent-delivery":"^8.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.1.0_1575027970099_0.5571675487091985","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.1.1","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.1.1","maintainers":[{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"./_commonjs/src/index.js"},"dist":{"shasum":"582c220916ddb36d413a8fde6e0cf2f55fbbad29","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.1.1.tgz","fileCount":29,"integrity":"sha512-eE0B0JaA5LrJgIHO2q659CLLiwPJngGRz7n/SBqVExBF/iLKHjlXonWP1G/wPmNVT5JsjTESg+kXjPfv2lsROg==","signatures":[{"sig":"MEUCIBYDaZb6o2Rq+UUw54auTZUWss4+aWjA1sKp9snaXFkdAiEAyekY2S1RZYF/0U+CTB1FyqZvGbnUZaR+vYXc2EakZiM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4QtnCRA9TVsSAnZWagAAFFAP/3WeJZt+aOad0A7pTPb2\nDzTGEarp7xRbppVJO2r8WeWkWPC/GDZQoKetWCcmtiR553nBx+sDUMFq38PX\n0CBG4zccc3nuHKyLcjNTNhUykpPQOGkJZHreHltxTRpVZhNdY7CK0TKbugsJ\nJN4iy1nzIzVTR67//EX0tFj6L913EADFWHCp19AUTUsTa/exJTz13tGx2tPo\nkOtvgIYiItvidgulRhVdQtkVx+bFlB9ghdcGOp7/DoULJxuvneM+bu56XK+f\n3Eh5StxoM+fVJ/fTX08FK8TG+KIEVUgQXxIr4MtGr5gg7fsNT4PXBrNgm51G\nJocFBn2bdi/ROPzrN1FDXcjjFiS+QbthUQYEaYg7ZuoAdDHC3A/JZcW58XSF\nntCKYYoYY/oSsrIp9QmYFcTAux2IrpotfRTa3/lFky0qfXRXd2Hg6J/O716k\nfD2BuKAXgc8EUdaMzEkrk1wjf1uiP5rD+nNbPdEAfs3raXZGg/uaABuA/5uY\njHMwgHD9MYsc5FtlBUToz8Jr08SO21Cd/sBSDlKXxVu6rQ1asFU4F87IEjo8\nM2X6O28CgpsbAwb150lBDxNXplJaETYFAsFAF3D5PAd1grx96m3xbOLgfQYW\n20X3ivv7GCXQQwPJBT37v5DSbBlQxry/HnPuPIeA0Lc+M5asEyacgxI9uhEK\nVQpG\r\n=Y+2f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"gitHead":"f602d2f6911e05c035386d2cf69c6b5eca830af0","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.13.1","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"13.2.0","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^5.0.1","@kentico/kontent-delivery":"^8.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.1.1_1575029607131_0.2519551875893027","host":"s3://npm-registry-packages"}},"2.1.2-alpha.0":{"name":"@kentico/kontent-schema-generator-graphql","version":"2.1.2-alpha.0","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","_id":"@kentico/kontent-schema-generator-graphql@2.1.2-alpha.0","maintainers":[{"name":"xp-peterp","email":"peterp@kentico.com"},{"name":"simply007","email":"ondrej.chrastina@kentico.com"},{"name":"rocky.intel","email":"rocky.intel@gmail.com"},{"name":"enngage","email":"ennspassion@gmail.com"},{"name":"makma","email":"martinm@kentico.com"},{"name":"janck","email":"janc@kentico.com"},{"name":"kentico_tomasw","email":"tomasw@kentico.com"},{"name":"jirik","email":"jirik@kentico.com"},{"name":"vladislavb-kentico","email":"vladislavb@kentico.com"}],"homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"bin":{"kontent-generate-gql-schema":"_commonjs/src/index.js"},"dist":{"shasum":"f623c2236858d8941ec95703a3a2f9334c644f23","tarball":"https://registry.npmjs.org/@kentico/kontent-schema-generator-graphql/-/kontent-schema-generator-graphql-2.1.2-alpha.0.tgz","fileCount":29,"integrity":"sha512-3MA8gnS/7wecpKXX7VPg+FMP4IdB4bTuv2XGByiSpWl/zrQGSPmr4aFU/ZqnsmKScjX8V6vDfvXwvgUKoonE4Q==","signatures":[{"sig":"MEQCIFTcTu0+KLmFo3SepL1pPwxNMGAbMefOVyyYgGymZ5OVAiBt/z8kTGBNTFdBs6TPqHnregCxoY63WsHh08f95fQZlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79180,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWwzyCRA9TVsSAnZWagAAlo0P/jcWoc7S3pjaB901bZF6\nmANvndvniiDOzcFwxDiHuIEVxsYeFZ/+mtV6kpAQ3tGZp2RxyUE2A2aJXW9P\nLtm++2AnnjTB8JSV4hL6kOn1EAjTQeRlx0gPszRFndTwlWlFGRIRQC/VfWs4\nTO6sT9UpPUjw6R1MT98QzTmoINCQjV6TzPc+tSF0HkDFwtTSjwxGQ5/m92LT\nbKfyvOnSFu7MXvbLFOpB6I9Fx+ClyyfP+F+9vr7/frKBUUy0iF6f1Yfwboo+\nU0hYKoXCNxbOZzLKqGq4qAX4tmkZTt+acJUyVrAZm5WaXNqjnuIFX7DqUBqp\nNYxk6xq7x3CZFC19q53F7yyAIvH7RNqGaSjYT8IaRRp/WnB+6DzmIPjfm+R7\nhGJ6wgAOWBpi+EMtXIDLGiJV+t7sLuTuUTPYV2AXIIbg+OD/RI8e7vku1AA1\ndKK+vAoiByppczDup4es9/+tWxd1WNpnxhy+BuxNu4SE1djyX11gufA8vuKS\nnXece4oUEOlPgLJ3k8teqheGnb6OV5zezI8soaOy7vAQt2C6ssASB1pK5ntK\noyeTmfFqgc7tR+PVO4k4DojoVj/tLRNiiQvhlUQQCJxiL82A12WprSEaQK+e\n9kJFWKwy7G/2XljA2wR+vo+Gzuy7sdZ63rPRoTo7JKSE3oc8qC8X32mFslXL\nGBir\r\n=L/bD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"_commonjs/index.js","custom":{"buildFolder":"_commonjs"},"readme":"# Kentico Kontent GraphQL schema generator\r\n\r\n[![Build Status](https://api.travis-ci.com/Kentico/kontent-schema-generator-graphql.svg?branch=master)](https://travis-ci.com/Kentico/kontent-graphql-schema-generator)\r\n[![npm version](https://badge.fury.io/js/%40kentico%2Fkontent-schema-generator-graphql.svg)](https://badge.fury.io/js/%40kentico%2Fkontent-schema-generator-graphql)\r\n[![Maintainability](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/maintainability)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/maintainability)\r\n[![Test Coverage](https://api.codeclimate.com/v1/badges/0f6d187a729e061ab12f/test_coverage)](https://codeclimate.com/github/Kentico/kontent-schema-generator-graphql/test_coverage)\r\n[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-kontent)\r\n\r\n[GraphQL schema](https://graphql.org/learn/schema/) generator is used to generate schema based on specified project.\r\n\r\nThis schema could be used when creating [GraphQL](https://graphql.org) endpoint from [Kentico Kontent Delivery API REST endpoint](https://docs.kontent.ai/reference/kentico-kontent-apis-overview#delivery-api).\r\n\r\nThis schema is primarily meant to be used in combination with the [Official JavaScript SDK](https://github.com/Kentico/kentico-kontent-js/tree/master/packages/delivery) on the top of the Kentico Kontent REST API. If you are using REST API directly, you won't get all elements' properties set, because some of them are set by the JS SDK.\r\n\r\n**Showcase** could be seen on [Apollo Express boilerplate](https://github.com/Kentico/kontent-boilerplate-express-apollo).\r\n\r\n## Get started\r\n\r\n### Prerequisites\r\n\r\n* [Node](https://nodejs.org/en/download/) installed\r\n\r\n### Installation\r\n\r\n`npm i @kentico/kontent-schema-generator-graphql -g`\r\n\r\n### Generating schema with NPM script\r\n\r\nProvide a [project ID](https://docs.kontent.ai/reference/delivery-api#operation/list-content-items) of your project.\r\n\r\nWrite  type definition to the standard output\r\n\r\n* `kontent-generate-gql-schema --projectId xxx`\r\n\r\nGenerate file with definition exported as a constant fo file `config.js`\r\n\r\n* `kontent-generate-gql-schema --projectId xxx --createModule --outputFile \"config.js\"`\r\n\r\n### Configuration\r\n\r\n* `projectId` - represents the Kentico Kontent Project Id from which schema will be generated\r\n* `secureAccessKey` - Secure access key required to authenticate requests with enabled secure access in Kentico Kontent project\r\n* `outputFile` - specifies output file name (possible with the path), if not specified - output is written to standard output\r\n* `createModule` - output is defined as a constant and exported as a module (see [Example Output](#example-output))\r\n\r\n## Versions\r\n\r\nVersion 1.X.X is compatible with npm package [`kentico-cloud-delivery`](https://www.npmjs.com/package/kentico-cloud-delivery) version 5.X.X.\r\n\r\nVersion 2.X.X is compatible with npm package [`@kentico/kontent-delivery`](https://www.npmjs.com/package/@kentico/kontent-delivery) version 8.X.X.\r\n\r\n## Development\r\n\r\n1. Clone the repository\r\n2. Run `npm install` to install all required dependencies\r\n3. Run `npm run build` to build the solution\r\n\r\n### Run\r\n\r\nRun `node ./_commonjs/index.js --projectId xxx`\r\n\r\n### Test\r\n\r\n* Run `npm test` to run all tests\r\n\r\n### Run watch mode\r\n\r\n* Run `npm run watch` to run the watch mode\r\n\r\n## Example output\r\n\r\n* More complex showcase could be also retrieved by running\r\n\r\n`npm run run:sample`\r\n\r\n<details>\r\n<summary>Without module encapsulation (w/o `createModule`)</summary>\r\n\r\n```gql\r\ntype SystemInfo {\r\n  id: String!\r\n  name: String!\r\n  codename: String!\r\n  language: String!\r\n  type: String!\r\n  lastModified: String!\r\n}\r\ninterface ContentItem {\r\n  system: SystemInfo!\r\n}\r\ntype MultipleChoiceElementOption {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype TaxonomyTerm {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype Asset {\r\n  name: String\r\n  type: String\r\n  size: Int\r\n  description: String\r\n  url: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype Link {\r\n  codename: String\r\n  itemID: String\r\n  urlSlug: String\r\n  type: String\r\n}\r\ntype RichTextImage {\r\n  imageId: String!\r\n  url: String!\r\n  description: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype TextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype NumberElement {\r\n  type: String!\r\n  name: String!\r\n  value: Int\r\n}\r\ntype DateTimeElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype MultipleChoiceElement {\r\n  type: String!\r\n  name: String!\r\n  value: [MultipleChoiceElementOption]\r\n}\r\ntype UrlSlugElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype TaxonomyElement {\r\n  type: String!\r\n  name: String!\r\n  value: [TaxonomyTerm]\r\n  taxonomyGroup: String\r\n}\r\ntype AssetElement {\r\n  type: String!\r\n  name: String!\r\n  value: [Asset]\r\n}\r\ntype RichTextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n  linkedItemCodenames: [String]\r\n  links: [Link]\r\n  images: [RichTextImage]\r\n  resolvedHtml: String\r\n}\r\ntype LinkedItemsElement {\r\n  type: String!\r\n  name: String!\r\n  value: [ContentItem]\r\n  itemCodenames: [String]\r\n}\r\ntype CustomElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\n\r\ntype AboutUsContentType implements ContentItem {\r\n  system: SystemInfo!\r\n  metadata__og_description: TextElement\r\n  metadata__meta_title: TextElement\r\n  metadata__og_title: TextElement\r\n  metadata__meta_description: TextElement\r\n  metadata__twitter_site: TextElement\r\n  url_pattern: UrlSlugElement\r\n  metadata__twitter_image: AssetElement\r\n  metadata__twitter_creator: TextElement\r\n  metadata__twitter_title: TextElement\r\n  metadata__twitter_description: TextElement\r\n  metadata__og_image: AssetElement\r\n  facts: LinkedItemsElement\r\n}\r\n\r\n```\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>With module encapsulation</summary>\r\n\r\n```js\r\nconst TYPE_DEFINITION = `type SystemInfo {\r\n  id: String!\r\n  name: String!\r\n  codename: String!\r\n  language: String!\r\n  type: String!\r\n  lastModified: String!\r\n}\r\ninterface ContentItem {\r\n  system: SystemInfo!\r\n}\r\ntype MultipleChoiceElementOption {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype TaxonomyTerm {\r\n  name: String!\r\n  codename: String\r\n}\r\ntype Asset {\r\n  name: String\r\n  type: String\r\n  size: Int\r\n  description: String\r\n  url: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype Link {\r\n  codename: String\r\n  itemID: String\r\n  urlSlug: String\r\n  type: String\r\n}\r\ntype RichTextImage {\r\n  imageId: String!\r\n  url: String!\r\n  description: String\r\n  width: Int\r\n  height: Int\r\n}\r\ntype TextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype NumberElement {\r\n  type: String!\r\n  name: String!\r\n  value: Int\r\n}\r\ntype DateTimeElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype MultipleChoiceElement {\r\n  type: String!\r\n  name: String!\r\n  value: [MultipleChoiceElementOption]\r\n}\r\ntype UrlSlugElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\ntype TaxonomyElement {\r\n  type: String!\r\n  name: String!\r\n  value: [TaxonomyTerm]\r\n  taxonomyGroup: String\r\n}\r\ntype AssetElement {\r\n  type: String!\r\n  name: String!\r\n  value: [Asset]\r\n}\r\ntype RichTextElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n  linkedItemCodenames: [String]\r\n  links: [Link]\r\n  images: [RichTextImage]\r\n  resolvedHtml: String\r\n}\r\ntype LinkedItemsElement {\r\n  type: String!\r\n  name: String!\r\n  value: [ContentItem]\r\n  itemCodenames: [String]\r\n}\r\ntype CustomElement {\r\n  type: String!\r\n  name: String!\r\n  value: String\r\n}\r\n\r\ntype AboutUsContentType implements ContentItem {\r\n  system: SystemInfo!\r\n  metadata__og_description: TextElement\r\n  metadata__meta_title: TextElement\r\n  metadata__og_title: TextElement\r\n  metadata__meta_description: TextElement\r\n  metadata__twitter_site: TextElement\r\n  url_pattern: UrlSlugElement\r\n  metadata__twitter_image: AssetElement\r\n  metadata__twitter_creator: TextElement\r\n  metadata__twitter_title: TextElement\r\n  metadata__twitter_description: TextElement\r\n  metadata__og_image: AssetElement\r\n  facts: LinkedItemsElement\r\n}`;\r\n\r\nmodule.exports = {\r\n  TYPE_DEFINITION\r\n}\r\n```\r\n\r\n</details>\r\n\r\n","gitHead":"a99bc9db7782fc36ed4371e2091de06da0476849","scripts":{"test":"jest","build":"tsc","watch":"tsc -w","coverage":"jest --config jest.coverage.config.js ","run:sample":"ts-node ./src/index.ts --projectId 975bf280-fd91-488c-994c-2f04416e5ee3 --createModule","test:coverage":"jest --coverage"},"_npmUser":{"name":"simply007","email":"ondrej.chrastina@kentico.com"},"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"_npmVersion":"6.14.11","description":"GraphQL schema generator used to generate schema based on specified project.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"rxjs":"^6.5.2","yargs":"^12.0.5","@types/yargs":"^12.0.1","@kentico/kontent-core":"^5.0.1","@kentico/kontent-delivery":"^8.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","tslint":"^5.11.0","ts-jest":"^23.10.5","ts-node":"^7.0.1","typescript":"^3.2.1","@types/jest":"^23.3.10","@types/node":"^10.12.12"},"_npmOperationalInternal":{"tmp":"tmp/kontent-schema-generator-graphql_2.1.2-alpha.0_1616579825862_0.6032962501841459","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-26T10:36:07.339Z","modified":"2026-08-03T11:32:40.881Z","2.0.0-rebranding.0":"2019-09-26T10:36:07.658Z","2.0.0-rebranding.1":"2019-09-26T11:48:15.148Z","2.0.0-rebranding.2":"2019-09-26T11:54:57.965Z","2.0.0-rebranding.3":"2019-11-25T11:23:49.486Z","2.0.0":"2019-11-25T11:57:04.973Z","2.1.0":"2019-11-29T11:46:10.314Z","2.1.1":"2019-11-29T12:13:27.302Z","2.1.2-alpha.0":"2021-03-24T09:57:06.023Z"},"bugs":{"url":"https://github.com/Kentico/kontent-schema-generator-graphql/issues"},"author":{"url":"https://github.com/Simply007","name":"Ondřej Chrastina","email":"ondrej.chrastina@kentico.com"},"license":"MIT","homepage":"https://github.com/Kentico/kontent-schema-generator-graphql#readme","keywords":["graphql","generator","kentico","kentico-kontent","headless","cms"],"repository":{"url":"git+https://github.com/Kentico/kontent-schema-generator-graphql.git","type":"git"},"description":"GraphQL schema generator used to generate schema based on specified project.","maintainers":[{"email":"filips@kentico.com","name":"filipsnt"},{"email":"peterb@kentico.com","name":"peterbaltaz"},{"email":"danielsed@seznam.cz","name":"danys198"},{"email":"radek.petruska@hotmail.cz","name":"radek.petruska"}],"readme":"","readmeFilename":""}