{"name":"@apollo/usage-reporting-protobuf","version":"4.0.0-alpha.1","description":"Protobuf format for Apollo usage reporting","type":"module","exports":{".":{"import":"./generated/protobuf.mjs","require":"./generated/protobuf.cjs","types":"./generated/protobuf.d.ts"}},"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","dependencies":{"@apollo/protobufjs":"1.2.4"},"volta":{"extends":"../../package.json"},"gitHead":"cfac5699746972244556c79dd47fa2d8ff88e1d1","_id":"@apollo/usage-reporting-protobuf@4.0.0-alpha.1","_nodeVersion":"16.16.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-5pN8CQGxvGbpm58VK7EguR5d6rwZ+v2B9MddKM4DWnh87DuUEbu2xzcSBGaj2Yk2kVzro9YJ1J0vrQrQn8ESYQ==","shasum":"7badb84e203b313218f80722e371eab5b1e6e3c6","tarball":"http://registry-npm.ywwl.com/@apollo/usage-reporting-protobuf/download/@apollo/usage-reporting-protobuf-4.0.0-alpha.1.tgz","fileCount":7,"unpackedSize":762445,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4cESaesraGqEnbu+ZN9aswTTow7pEInElhuFP4tzh0AiApldcabpX5J3S48zHXUNDIAjOEda5Rx+4agho1INTA8A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2yr+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo9Q//b9wWjECp2SLA9IAm30TVvJBuQLmp0YaBmXhU4QpEj+Oy0dS/\r\nuAcKn6RF65SbWzMT5UHEDyzaobJ/MKDTDL1l7Hoi3itBFXgOSUcxfDYq3Iud\r\n9RLntPIznMcEuXLM+gLv2kDJFNYTFeItqFYy4GPJTvhnEpo3ooZqyVd8z+YA\r\nx74LoMk6DeIGpb6uIs+0L+hggsTd2YrSUl/K3x8W4DWy2k7U/SQWwnhg19PC\r\nhA0SBPFp5Qel0aZIt7pnqo5HAogZ0RkZuwPMlgmGUYR7AGwdObj/hls5DDix\r\n8Qv85P6vMNeb9v6nyTLDX9GKjtsJq5DjU3ijY+ya3L3xfGacsGUmMbhmFmwu\r\nG/gYzeuvXxOR0JSNQbxMWdva22WJQb7lOmqBhpgRPZfAk08TPhZTsljfTH8Q\r\nyNCEWPZCajQnKVKKcj3WPDW1xo4o3uj1lm1sCp60AVJZHPwZgfz+7csA/H0m\r\nbKvB8WOvo+B4QxtZwKXpdnk61KzoiZCmq1EoijPi7UyXpPOQzxkjLna6ca5W\r\nw3FcGSeHzXFxyJp/PNlzaZRWYvmVntqCAY8A9eLjPgugLQvEiXBqbNSKT5Y3\r\nabQaEuHDj07kEKS3gppWJQvIVDvuzOs+8cSHEdB5eqenVB7FfdEookTocL65\r\n2pJ3MMihsMzl0nebX2rVaH2By+i0MWhXLdM=\r\n=qkWt\r\n-----END PGP SIGNATURE-----\r\n","size":67017,"noattachment":false,"key":"/@apollo/usage-reporting-protobuf/-/@apollo/usage-reporting-protobuf-4.0.0-alpha.1.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/usage-reporting-protobuf_4.0.0-alpha.1_1658530558661_0.4226587115882525"},"_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":1658530558866,"_cnpm_publish_time":1658530558866,"dist-tags":{"alpha":"4.0.0-alpha.0","latest":"4.1.2","rc":"4.0.0-rc.2"}}