{"id":22864282,"url":"https://github.com/getnacelle/nacelle-types","last_synced_at":"2026-05-20T05:38:36.876Z","repository":{"id":40752610,"uuid":"299641741","full_name":"getnacelle/nacelle-types","owner":"getnacelle","description":"Typescript \u0026 GraphQL types for use when creating Nacelle products","archived":false,"fork":false,"pushed_at":"2023-01-27T01:37:34.000Z","size":1913,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-06-19T05:05:00.662Z","etag":null,"topics":["graphql","graphql-types","legacy","typescript","typescript-types","warp-1"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getnacelle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-29T14:24:34.000Z","updated_at":"2021-11-15T19:19:01.000Z","dependencies_parsed_at":"2023-02-15T04:01:36.845Z","dependency_job_id":null,"html_url":"https://github.com/getnacelle/nacelle-types","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/getnacelle/nacelle-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getnacelle%2Fnacelle-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getnacelle%2Fnacelle-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getnacelle%2Fnacelle-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getnacelle%2Fnacelle-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getnacelle","download_url":"https://codeload.github.com/getnacelle/nacelle-types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getnacelle%2Fnacelle-types/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265333227,"owners_count":23748760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","graphql-types","legacy","typescript","typescript-types","warp-1"],"created_at":"2024-12-13T11:19:51.372Z","updated_at":"2026-05-20T05:38:36.824Z","avatar_url":"https://github.com/getnacelle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nacelle/types\n\n\u003e TypeScript \u0026 GraphQL types for use with Nacelle products\n\n## Install\n\n```bash\nnpm i @nacelle/types\n```\n\n## Project Structure\n\nIn the `src` directory, there are two folders: `custom` \u0026 `graphql`. The `graphql` folder holds both the Graphql schema definitions and the TypeScript types generated from this schema. The GraphQL TypesScript types are programmatically generated from the `type-defs` file, so **making any changes in the generated.ts file will only be overwritten when new types are created**.\n\nTypes found in the `custom` directory are those that do not directly come from the GraphQL type definitions (i.e. data as it is stored in the DB, frontend-types, etc). These can extend the GraphQL types by importing from `generated.ts`.\n\n## Using the GraphQL Types\n\nThis package exports GraphQL type definitions which can be merged with type definitions in another project.\n\n```js\nimport { sharedTypeDefs } from '@nacelle/types';\nimport { mergeTypeDefs } from '@graphql-tools/merge';\n\nimport { typeDefs } from './src/your/type/defs';\n\nconst schema = makeExecutableSchema({\n  typeDefs: mergeTypeDefs([sharedTypeDefs, typeDefs]),\n  resolvers\n});\n```\n\n## Generating TypeScript Types\n\nTo generate TypeScript interfaces from the GraphQL type defintions, run `npm run generate`.\n\n## Using the TypeScript Types\n\n```js\nimport { NacelleProduct } from '@nacelle/types';\n\nconst product: NacelleProduct = { ... };\n```\n\n## License\n\nISC © [getnacelle](https://github.com/getnacelle)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetnacelle%2Fnacelle-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetnacelle%2Fnacelle-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetnacelle%2Fnacelle-types/lists"}