{"name":"apollo-reporting-protobuf","version":"0.7.0","description":"Protobuf format for Apollo usage reporting","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"git clean -fdX -- dist","prepare":"npm run clean && mkdir dist && npm run pbjs && npm run pbts && cp src/* dist","pbjs":"apollo-pbjs --target static-module --out dist/protobuf.js --wrap commonjs --force-number --no-from-object src/reports.proto","pbts":"apollo-pbts -o dist/protobuf.d.ts dist/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":"f2349d0e10633ee79bed152f682e53730175d59b","_id":"apollo-reporting-protobuf@0.7.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (linux)","dist":{"integrity":"sha512-PC+zDqPPJcseemqmvUEqFiDi45pz6UaPWt6czgmrrbcQ+9VWp6IEkm08V5xBKk7V1WGUw19YwiJ7kqXpcgVNyw==","shasum":"622352d3eea943dff2647741a509b39d464f98a9","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-0.7.0.tgz","fileCount":12,"unpackedSize":463796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjEfwCRA9TVsSAnZWagAAwPAP/13XFj0lJjvC9T+gg+Uu\nOXFGYigreuyXANyB9QVSmxonsQDm/x0hudd7PwvBbu4fvCuetOdbu2uWXQyO\nj7kqPTAgW1xpWpXeyWBJnnt5xi8VcV56jcHP5RlZmSybbXvfIIjzSmHGSBvF\n5KhZumHWw/G+uOd0P+G1uN4Gu7FCLFv6Bu+AkBT/bhciRzb2+RhjwLeIVECj\nT3pLxtfzPXY5X09836dMpGv5fwN9HRP9ma5SISrrWBy3GGOQAsNQgkWV+s2H\nCWCxMqBqPITWaUiiks1mUhH+eKt30B42TBTCTK0E/o30wxchwsdvwZhdEEKN\npSBgre95wdoocFRI6bPMPVZ33BYAKqo4vvCxzNoWt/9Ia7+DKWHH/TxlvZ7d\nLZY4Ey0tbERzCRZYEhXWY+yCIwSgAcp9/QZOCdAwb7WkOcAgr0wZ3oXVLxzh\ngEd5J4wNcFiP82PevNruSrWAhuYekp8k8iJkoOLm3Y+oofDcv6yPIv1Ldnt/\nGPX5S/WCM2gpB7GCuYo3+9WKYfj+DpTcpyt+EibAfuSiEwfXr8WCaywCPvl+\n5k7du4DfRcZWbCIdRV0ZW9lqHa7bFxWD6xo46CrjuW6wy/5lirUeueyNDMoK\nwgD823BFVxLgJHn9OBJpA/y1Cz0ooHGPGjSjdW9ViwJ9NoLiS4A372thUqQk\njNiV\r\n=pKDj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWZFEjvL0EoeAPqLU6fZTg/qmg4bHVMrWLoOtZQrVm/AiEAzz99/bingzpjVgY+NJQ5kMXWU7ViCkSI+LPABPhWTIs="}],"size":43521,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-0.7.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_0.7.0_1619806191435_0.38586187742265365"},"_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":1619806191556,"_cnpm_publish_time":1619806191556,"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"}}