{"name":"apollo-reporting-protobuf","version":"3.0.0","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/* 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":"opensource@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.2"},"gitHead":"bcfd36cdd01f9d26d0a225aa62a79c6642cd743f","_id":"apollo-reporting-protobuf@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","dist":{"integrity":"sha512-jmCD+6gECt8KS7PxP460hztT/5URTbv2Kg0zgnR6iWPGce88IBmSUjcqf1Z6wJJq7Teb8Hu7WbyyMhn0vN5TxQ==","shasum":"a53966b76a3f373d9336bc953f0bc6dede487270","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-3.0.0.tgz","fileCount":12,"unpackedSize":464270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5e/BCRA9TVsSAnZWagAAcvMP/0av8/dyCwlX88xHf5w3\nDP+/JMY0B2MdGS9ruMoFifBR/Ji+Fkvj982HO4WWVPxtQ7PkKiEbcOKJiLQJ\ngJFkGVJ0BYbrEoahO5/HV7VyTb8bs4bf46unLBvHgGs8lci9Zam92EzqO4iN\njV+aGLFj/6sm/cmEeWzqI80/flnb6l+5YymT8riygqbfSBvSCJpJWL1DisEN\nI0AoO4a1t0r7/cgaBpoYz2P+j4r2OFgEDKbEXIGhDiBhdqeuVAKnkPD7HX4G\nQpnq3vwOqY33FTiMgUfWepjaCXk9iAogQAoqIDJCVhQpwN4pK77kWp1CIJfK\nsOXC45U3ShadNaB8b+m/OmKmq1fl9pceuflKwQD05uVegD6ATVPfrnSudgVc\nBWZSV/32yhVtp1TFXMXPF1Ef/lglYcudsr7jhwqLy9GFZHfJJp1LwHwXLh/W\n/fYgSheaIryP8f4ELvCx4Mrr71jm/nIWKbtmBHO6pmZogSIcIH3msO7nNo8r\nnit/cwZzAOPtoRC6yD/Btc+kazOvhmQmG3uPWTBw2sOJJt+12SqufO8YRKoG\nxKaEs4XOnm2Nyovh2aH7IV07zatD+IewAUbfbrFLBq7XQxEsjNOE3jw0JuUB\nzOsjzlg9PQhU+91gtlTFYLxA2AaySFjh0nor0gocS6k5VeqG+iN9nrmT/FFZ\nFUws\r\n=Je0D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2VRNncBXrXLjBHs5aL8jIY87znC2Uwz4hsbP6E4WZZAIgfOufxzs8jaoBXdb5ZqrF1FMHR88ibzbuQzt7JffkzM0="}],"size":43725,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-3.0.0.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.0.0_1625681856541_0.13565509166581124"},"_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":1625681856731,"_cnpm_publish_time":1625681856731,"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"}}