{"name":"@apollo/usage-reporting-protobuf","version":"4.0.1","description":"Protobuf format for Apollo usage reporting","type":"module","exports":{".":{"import":"./generated/protobuf.mjs","require":"./generated/protobuf.cjs","types":"./generated/protobuf.d.ts"}},"main":"generated/protobuf.cjs","module":"generated/protobuf.mjs","types":"generated/protobuf.d.ts","scripts":{"generate":"rm -rf generated && mkdir generated && npm run pbjs-cjs && npm run pbjs-esm && npm run pbts","pbjs-cjs":"apollo-pbjs --target static-module --out generated/protobuf.cjs --wrap commonjs --force-number --no-from-object src/reports.proto","pbjs-esm":"apollo-pbjs --target static-module --out generated/protobuf.mjs --es6 --force-number --no-from-object src/reports.proto","pbts":"mv generated/protobuf.{c,}js && apollo-pbts -o generated/protobuf.d.ts generated/protobuf.js && mv generated/protobuf.{,c}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/usage-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","//":"Don't caret this, we want to be explicit about the version of our fork of protobufjs and update it intentionally if we need to.","dependencies":{"@apollo/protobufjs":"1.2.6"},"volta":{"extends":"../../package.json"},"gitHead":"26e3cf2226a017c9598ac0f4cacf5a24863c5203","_id":"@apollo/usage-reporting-protobuf@4.0.1","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-XIRja0WBLp+WQv8ILj6Y4ijfhqUoNJSO7pSjGoDIczUcYksHWCGxgZTTDZRqvUtVJPLYuAssM8odd/zw08k9fw==","shasum":"04deb64dcbf83e9bb0d58d0563e29b12227a294f","tarball":"http://registry-npm.ywwl.com/@apollo/usage-reporting-protobuf/download/@apollo/usage-reporting-protobuf-4.0.1.tgz","fileCount":7,"unpackedSize":762778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy6yXNArqp5p3qS1S3RjY0L4bAionLopts1jNNmHRoxQIhAP02hm4oMGEr6BB7vz6fGtdg+iEZpwt48iX2AYYLj+2J"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXCEUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdtA/7BTos+MI5Nt3LhB5LgGlYkQ5SE0q8dXFO4fXILTxNXMzNE7qq\r\nXl0Wqw97v9eRTEA5WRFMi6+s2oVnP+EYOawQwdtKHQdyw7jzH7bV6qvjADXc\r\noETdOcADpKXz+QiWaIzPSn0jfJw3xDLKG6ScBYMdbkyHaOpblNPmVWbcX75E\r\njbJM3Dp7M97nmbrhUnDdPGfwj+T5RMR1XyrXD7EvsSbZuuu7qhN4HvL8Lsct\r\nfr6ZqLZRvkp/9cgWVEGVWCfVkwms/565fs9cEaZzsQIdhZK9ItIt7ajc8jIy\r\nS74dJsYpTqVz+po1kb/Q4Ls0Ka/rHSfEEQmWkKoOmSwiNFIdsPxEpQWEPde2\r\n6i7+VdtwdTOK2ezDvdnDq0e01KOLhu1cqMU6/+RN357xbwJ3pdLWutRX/GID\r\n+UsgLnUKNJ5bOFxkQdPFhwn0r534AfWbFwikAKvTFMuO0YJDoP7VBkzMtT1V\r\ns4xqHl0sxVAAabe2qN2EsD8/vTGDVH5jtI+90ftbsU/M4+YNDXCOK421/rGY\r\nSAcotbwpmpYqVPQCR5gy6Rb+dwA2jdG2SQq1dn2kmku0cu3YmXuN+XNvHtb4\r\nGEWAMhk4Pb1zRxEVWyQatxemLJ4rGOf0isHw3QANenauxCsl9RORFghiSZTR\r\nkG4aywDoi8naRD7CwOGrMZSjxrWJp6Dg3OM=\r\n=5Yqt\r\n-----END PGP SIGNATURE-----\r\n","size":67127,"noattachment":false,"key":"/@apollo/usage-reporting-protobuf/-/@apollo/usage-reporting-protobuf-4.0.1.tgz"},"_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"directories":{},"maintainers":[{"name":"apollo-bot","email":"npm@apollographql.com"},{"name":"glasser","email":"glasser@apollographql.com"},{"name":"trevor.scheer","email":"trevor.scheer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/usage-reporting-protobuf_4.0.1_1666982164455_0.8623847044584114"},"_hasShrinkwrap":false,"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; these will be installed by running `npm install` at the root\nof this workspace. When making changes to this module, run scripts via `npm run\nSCRIPTNAME -w @apollo/usage-reporting-protobuf` in the **root** of this monorepo in\norder to update the definitions in _this_ module. The `-w` flag is shorthand for\n`--workspace`; this monorepo leverages NPM workspaces to manage its packages.\n\nTo update `reports.proto` to the current version recognized by the Studio usage\nreporting ingress, run `npm run update-proto -w\n@apollo/usage-reporting-protobuf`. To then regenerate the JS and TS files, run\n`npm run generate -w @apollo/usage-reporting-protobuf`. We check in the\ngenerated code and only regenerate it manually, partially to make builds faster\n(no need to run pbjs on every `npm install`) and partially so that we don't have\nto make sure that `pbjs` runs on every Node version that we support.\n","publish_time":1666982164644,"_cnpm_publish_time":1666982164644,"dist-tags":{"alpha":"4.0.0-alpha.0","latest":"4.1.2","rc":"4.0.0-rc.2"}}