{"name":"apollo-reporting-protobuf","version":"3.3.3","description":"Protobuf format for Apollo usage reporting","main":"generated/index.js","types":"generated/index.d.ts","scripts":{"generate":"rm -rf generated && mkdir generated && npm run pbjs && npm run pbts && cp src/index.* generated","pbjs":"apollo-pbjs --target static-module --out generated/protobuf.js --wrap commonjs --force-number --no-from-object src/reports.proto","pbts":"apollo-pbts -o generated/protobuf.d.ts generated/protobuf.js","update-proto":"curl -sSfo src/reports.proto https://usage-reporting.api.apollographql.com/proto/reports.proto"},"repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-server.git","directory":"packages/apollo-reporting-protobuf"},"keywords":["GraphQL","Apollo","Server","Javascript"],"author":{"name":"Apollo","email":"packages@apollographql.com"},"license":"MIT","bugs":{"url":"https://github.com/apollographql/apollo-server/issues"},"homepage":"https://github.com/apollographql/apollo-server#readme","dependencies":{"@apollo/protobufjs":"1.2.6"},"gitHead":"985c0795579a1d39e7b78edce1c9e2e7c8facf82","_id":"apollo-reporting-protobuf@3.3.3","_nodeVersion":"12.22.7","_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","dist":{"integrity":"sha512-L3+DdClhLMaRZWVmMbBcwl4Ic77CnEBPXLW53F7hkYhkaZD88ivbCVB1w/x5gunO6ZHrdzhjq0FHmTsBvPo7aQ==","shasum":"df2b7ff73422cd682af3f1805d32301aefdd9e89","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-3.3.3.tgz","fileCount":11,"unpackedSize":453528,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDBbHzX62ZHUF25x32hkx0Zhc+JghjFc6PmbxEQXbA/QIgUS/51c2RxmI+hh1s0EhyC9nqe59QPR9p3i7dSia7n/4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQKWOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFRw//VBGTuUHvYVONhqKTZQ7yDkk+EgijY08HOwDhOOdO0dQHmaxu\r\nnOk7Y5nBR+zbAanBiIJqNpTevxCM9QDMd99GfY94a9oXVB0sON//HF8zQAH9\r\ndNvIKVhVpaDSM2eC+iclGymPSBoxTE4LjJUr49gswT/ZUKZBdsanK+g4wIRi\r\no0OAyNUrYQzXOQuGwYLuGtXGFlcC9k341RXung1TaizqkKTAfghua5SBWIX2\r\nuZMAPtQk/b6+sAEOMVP3XE6qttQcEGn4WQYUUm75lrCTslmJbD7QfCQ6kXfW\r\n2su1eNIcHz+Slv/y/vIHAuMjWH7EmKsJsuVeprm/Vk8kXkGo3pCV27mR01hL\r\nv5IhKLaoV3GmscsrxNlu4FTZVGJVhY7FfobknGbY5jVX+6Zp1d5ARAZPKm5f\r\nac0NJn52vFZMvCCwhSylxM11ea3B0q3yyamPYipWG8pnV0E3+hJYwHPnt2PU\r\nz31C3IIVOmCs8IOB4Romtgn6YydZDaMEFkEknqpnC6FNjEoO05HKQFJE5EF6\r\nC/iuMbbL3LyW6ax03H1XGEoncsyzyWT/VPBdNg9ikMLhtFzFrCgC/yOakrzW\r\nZ+LrCoBj6FczuTZSd5PGdiLRYzO2ZVj6GXQi++nKuQMpllwaoJaxj3HnYraU\r\n28MFn9lshwcUn+TBaMC8wSuyki8YkDeWhDg=\r\n=IEtj\r\n-----END PGP SIGNATURE-----\r\n","size":45054,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-3.3.3.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-reporting-protobuf_3.3.3_1665181070434_0.9574315519954597"},"_hasShrinkwrap":false,"deprecated":"The `apollo-reporting-protobuf` package is part of Apollo Server v2 and v3, which are now end-of-life (as of October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/usage-reporting-protobuf` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.","readme":"# `apollo-reporting-protobuf`\n\n> **Note:** The Apollo usage reporting API is subject to change.  We strongly\n> encourage developers to contact Apollo support at `support@apollographql.com`\n> to discuss their use case prior to building their own reporting agent using\n> this module.\n\nThis module provides JavaScript/TypeScript\n[Protocol buffer](https://developers.google.com/protocol-buffers/) definitions\nfor the Apollo usage reporting API.  These definitions are generated for\nconsumption from the `reports.proto` file which is defined internally within\nApollo.\n\n## Development\n\n> **Note:** Due to a dependency on Unix tools (e.g. `bash`, `grep`, etc.), the\n> development of this module requires a Unix system.  There is no reason why\n> this can't be avoided, the time just hasn't been taken to make those changes.\n> We'd happily accept a PR which makes the appropriate changes!\n\nCurrently, this package generates a majority of its code with\n`@apollo/protobufjs` (a fork of\n[`protobufjs`](https://www.npmjs.com/package/protobufjs) that we maintain\nspecifically for this package) based on the `reports.proto` file. The output is\ngenerated with the `generate` npm script.\n\nThe root of the repository provides some `devDependencies` necessary to build\nthese definitions and the `prepare` npm script is invoked programmatically via\nthe monorepo tooling (e.g. Lerna) thanks to _this_ module's `postinstall`\nscript.  Therefore, when making changes to this module, run scripts via `npx\nlerna run SCRIPTNAME` in the **root** of this monorepo in order to update the\ndefinitions in _this_ module.\n\nTo update `reports.proto` to the current version recognized by the Studio usage\nreporting ingress, run `lerna run update-proto`. To then regenerate the JS and\nTS files, run `npx lerna run generate`. We check in the generated code and only\nregenerate it manually, partially to make builds faster (no need to run pbjs on\nevery `npm install`) and partially so that we don't have to make sure that\n`pbjs` runs on every Node version that we support.\n","publish_time":1665181070671,"_cnpm_publish_time":1665181070671,"dist-tags":{"alpha":"3.3.0-alpha.1","latest":"3.4.0","next":"3.0.0","preview":"3.0.0-preview.1","rc":"3.0.0-rc.0","unified":"0.6.3-unified2.1"}}