{"_id":"@basehub/c45y3c1u7l","name":"@basehub/c45y3c1u7l","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@basehub/c45y3c1u7l","description":"SDK client for basehub.ai GraphQL API","version":"0.0.1","main":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"keywords":["basehub.ai","graphql","sdk","typescript","genql"],"homepage":"https://basehub.ai","dependencies":{},"_id":"@basehub/c45y3c1u7l@0.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-wYlt3BgGHrpCuSR90X2wXuTrvbF1SrHG8MAWF3ssCVjknvOczvdJGMR9qhHHrrXWlxOxG1PGeUpW5IOgZTEz6w==","shasum":"9a3bfa01d9853dc7629c20c87ec214e1d4ad0fe9","tarball":"https://registry.npmjs.org/@basehub/c45y3c1u7l/-/c45y3c1u7l-0.0.1.tgz","fileCount":55,"unpackedSize":142853,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChDLx+5GBOcBVki4JyUW696Hjj0KShzKrSjPuCgeVwBQIhANU85J0rF2zJeorDpjdxFvZPXpPVfEbMRG4vG3g/lqWG"}]},"_npmUser":{"name":"bsmnt","email":"jb@basement.studio"},"directories":{},"maintainers":[{"name":"julianbenegas","email":"julianbenegas99@gmail.com"},{"name":"bsmnt","email":"jb@basement.studio"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/c45y3c1u7l_0.0.1_1687375273197_0.09136870871864566"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-21T19:21:13.134Z","0.0.1":"2023-06-21T19:21:13.351Z","modified":"2023-06-21T19:21:13.533Z"},"maintainers":[{"name":"julianbenegas","email":"julianbenegas99@gmail.com"},{"name":"bsmnt","email":"jb@basement.studio"}],"description":"SDK client for basehub.ai GraphQL API","homepage":"https://basehub.ai","keywords":["basehub.ai","graphql","sdk","typescript","genql"],"readme":"\n\nTypeScript SDK for [https://basehub.ai](https://basehub.ai).\n\n<b>Features</b>\n\n- No codegen needed\n- Type completion & Type validation\n- No dependency on `graphql`\n- Works in browser, Node, Deno, Cloudflare workers, Bun and more\n\n## Usage\n\n```ts\nimport { createClient } from '@basehub/c45y3c1u7l'\n\nconst client = createClient({ token: process.env.BASEHUB_TOKEN })\n\nclient\n  .query({\n    _sys: {\n      hash: true,\n      id: true,\n      slug: true,\n    },\n  })\n  .then((data) => console.log(JSON.stringify(data, null, 2)))\n\nclient\n  .query({\n    homepage: {\n      _sys: {\n        createdAt: true,\n        hash: true,\n        id: true,\n      },\n      iamge: {\n        alt: true,\n        aspectRatio: true,\n        fileName: true,\n      },\n      rich: {\n        html: true,\n        json: true,\n        markdown: true,\n      },\n    },\n  })\n  .then((data) => console.log(JSON.stringify(data, null, 2)))\n\n\n```\n\nThis client has been generated with [Genql](https://genql.dev/), you can read more about usage and features [here](https://genql.dev/docs).\n\n## Support\n\nContact [support@basehub.ai](mailto:support@basehub.ai) for any feedback or questions.\n\n","readmeFilename":"README.md"}