{"name":"@apollo/usage-reporting-protobuf","version":"4.0.0","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","//":"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":"578dc68831d93d5809b78174d6179c10afc8c2ef","_id":"@apollo/usage-reporting-protobuf@4.0.0","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-MyQIaDkePoYbqMdwuubfUdUELT1ozpfBM1poV7x5S44Qs2b+247ni4+sqt1W/3cXC8WiJVmfUXJ9QcPGIOqu5w==","shasum":"36db64164f511508822bc8ac8fedb850f43af86e","tarball":"http://registry-npm.ywwl.com/@apollo/usage-reporting-protobuf/download/@apollo/usage-reporting-protobuf-4.0.0.tgz","fileCount":7,"unpackedSize":762576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAyosge7P6kUEVeYdIg4/U2NUNXGpClrEH8zN5wVmwx7AiBoBOVEVCnNjCRsJ6FyEJQf07+h+2N9c7a1xGgnPl0rww=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRH73ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2yA//R+6rEW1sG2/L793KCheFSTefxgsAClQo6KcYIEwqP81hUbZc\r\nkgaaH3ZmZ9is9YF8TFa0/a+cdw4zD1kkXE28yJXttNmsQpCpuPLtPsQpgxCZ\r\nimVzm7EaWkAMSi7BfdQCQKA1H4rHXr+xbdxCv/TXf7f1slvGxfVpvFSRPE5X\r\ntoVBKyTcsJ5SMrbD+ZG0WHhVr452Xlx8Ik4HUtln2xkKMFZ/6T72ytbNdQ6i\r\nomRbOhF6eqLQSttgHDUyatNGp+hDkoQkq06DJM6y9T2oBVzCqwxvIvKNIxwI\r\nDe9GEGOAzsH0SWRNBUes+aceo0iIguGQBIXm19imidQ0grF2GX2UYwtropo7\r\nabFQI/oAbQkSoEf6qah3DdRV7CAXZmTqs57uDTDFdjv6rD3SoGhwYENFgdh/\r\nV7JwdgEDrlszhrE7bRNi1pR+YkoG87KOEQTSjHw+rAxjamu7zYQxyDu7XPSg\r\nu3ieK2zopweFhuQgqxKaLDLtjbhjIg5syKtU/gaAClvVpaS0GLpVSYoMh3Pg\r\npWw+dKWf9j//eHWBV8g+2ZhF3UpUr8e2BdVn1AfKUUJTRYnOF5NNSNM9AGs/\r\njA9Nn9r7Z971+v1mK9klVQySYC0T3HOHcNEFm93Jj5bhGPl6mROvK2kQkONt\r\nHiuHkczADFgtROVaBxZbHZy4JOJHLSo4PMg=\r\n=Eb36\r\n-----END PGP SIGNATURE-----\r\n","size":67089,"noattachment":false,"key":"/@apollo/usage-reporting-protobuf/-/@apollo/usage-reporting-protobuf-4.0.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/usage-reporting-protobuf_4.0.0_1665433335300_0.36815466829940946"},"_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":1665433335532,"_cnpm_publish_time":1665433335532,"dist-tags":{"alpha":"4.0.0-alpha.0","latest":"4.1.2","rc":"4.0.0-rc.2"}}