{"name":"@apollo/usage-reporting-protobuf","version":"4.0.2","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.7"},"volta":{"extends":"../../package.json"},"gitHead":"83b3205b68ece37b3f409c2a1ca4747c04961e65","_id":"@apollo/usage-reporting-protobuf@4.0.2","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-GfE8aDqi/lAFut95pjH9IRvH0zGsQ5G/2lYL0ZLZfML7ArX+A4UVHFANQcPCcUYGE6bI6OPhLekg4Vsjf6B1cw==","shasum":"a83db2cbb605b631960ebb1a336b4293d4857a02","tarball":"http://registry-npm.ywwl.com/@apollo/usage-reporting-protobuf/download/@apollo/usage-reporting-protobuf-4.0.2.tgz","fileCount":7,"unpackedSize":762778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxQa2v/bNE2u2fQ7LeoiOQAJgKVqQTUHxJJSXz/mNVzQIgGMLuE5ueOlNNR03yNMERhZQDe/oYwEyCJg2wfoJEXiA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbAhOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrvzw//bDX4Ed0xTvBGLQx7mPanrMuT45XauAe4WmiDyq3ObpFiBncQ\r\nMiE1NwPTNvU7sNcR/XnN7Vc+3MiNPNmUs2sGZBvYYo+8aA3Q767f8N+hkRe1\r\n2S2oI64MRZi8Nj3mr0ZYEB3W67ggWr9nGJdqwX096xpByQrQ4Q4hbzbFiQX5\r\nJEUW/BgnSwF893uzq5NeJJ7yU2dic2GgsaHZPToyqCLVQuSf+Gg4I9Rz7+8u\r\npnxLb5+XBMWR/uL8s4kZWj89xUtsaFiohwL8YChQWY2wdlpClJBTM6rS+P+j\r\nHQCZnpHm4x+V5WgmHxcRTO6bYlJ+IX543EQSPjPi6bHg1vnSFMkcxvknHzBw\r\nYRbbcnpw0e61FU4uH7VbmIceiqe6bzfZyjegtPuUFVPhJawvkGoB7T5B6/lh\r\nuGZ+FNC7gpKNkPulRyogAYQn2XyUyZeQ8tVmSqj8BQzsf49I37cTuNX026N9\r\n3cehFuyB6PvRezOcFAH/SEvGDcf4Z6mB1a6gf3mZ9nF7IVTvEGkKt9KE/Ug0\r\n2kwa1xLabDgl5o8dA5Raig9KZqEClxMyv1ITzmaKAlyWu6xpObiOFE+ZcXFC\r\n2eewViWahADT3yGewqDkUMghmhjUuS/vXy/K887FnZ0lXlmpE7EWXmVvfBet\r\n8ThCU+2BcbXO2IYdeKG1jULAQtjdQHXhazo=\r\n=zhnq\r\n-----END PGP SIGNATURE-----\r\n","size":67127,"noattachment":false,"key":"/@apollo/usage-reporting-protobuf/-/@apollo/usage-reporting-protobuf-4.0.2.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.2_1668024398411_0.17486485972125476"},"_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":1668024398696,"_cnpm_publish_time":1668024398696,"dist-tags":{"alpha":"4.0.0-alpha.0","latest":"4.1.2","rc":"4.0.0-rc.2"}}