{"name":"apollo-reporting-protobuf","version":"3.3.2","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.4"},"gitHead":"4041aaed6d616ee4b06fced0af482c73b6f752be","_id":"apollo-reporting-protobuf@3.3.2","_nodeVersion":"12.22.7","_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","dist":{"integrity":"sha512-j1tx9tmkVdsLt1UPzBrvz90PdjAeKW157WxGn+aXlnnGfVjZLIRXX3x5t1NWtXvB7rVaAsLLILLtDHW382TSoQ==","shasum":"2078c53d3140bc6221c6040c5326623e0c21c8d4","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-3.3.2.tgz","fileCount":11,"unpackedSize":453528,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa02lbUkctGd3ip9iJQ6ZlbQ59oK59CyaABdFfFowv9QIgYC4UsHQIYoITUAHwEObGMW3uEQ7poAaUrx2vg1lvpfM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizHiFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojNw//ft5diy3m/Lo2vxSxkmk6xjD109tHtE477C1iulS9/2qfCa+0\r\nGfnPvKqVA18uKgOSoc/wtnGb183ZZbz0pxvc2fSLlRZBQlMDQnvJ/70Du/B5\r\nWUdhyjhmIEuYDsd8lyZ4jSk+rPhHGV6vB8P0eefOwHNanQez9aHSrIC2XYsl\r\nyhgAdFgjfvIAPy7Uhs8HJrjmayNr1VYYQMMlokRRhJTBTIJimbgDOCK1ymVD\r\nIjUBo06lgJ2R4vUEZNgGetPLpKtPgRP6x12Yn40VEpIasuABel4jGnrn6X7T\r\nx02w9DDW3LokfLUBfqTei2hEKa8LCLov9Mj2ibBV6BNQMo4Ca1BN1gmU35LE\r\n7fD2jD2btqu7xBtV5+2z5jyKVnOdeO+EufuA+/zHZCGWX+U/YXGMkCf0VNtx\r\n3zuXEeq6lOZ78u8VgGJj9eySBU1I71pNrEzsYohA1nrYtE0tvma93J7DC+3l\r\nrBw+HkhWv61icUp7+mb6kPENEohLBF+fSE2pPbRRfxm5H8PBVBnDJNRFCaZN\r\neJSjtdwxxt5UQnWXnqp5sk/wO3Y38JLbQaaqutt5HmUO5Rs9JAsdwPNF/I6w\r\nHAuqH3DpiozqnXLVtvZH65ypRY0zA1+Gw21mSxXjwlgRDqKmGbfSp6zXImbm\r\nTLBZ3NO2k7tjGSQuAas+9sRNuKlPLbvB/s4=\r\n=v1OC\r\n-----END PGP SIGNATURE-----\r\n","size":45053,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-3.3.2.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.2_1657567365066_0.31899911669053127"},"_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":1657567365280,"_cnpm_publish_time":1657567365280,"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"}}