{"name":"apollo-reporting-protobuf","version":"3.3.1","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.2"},"gitHead":"c3deb0d980dbf983028aa99b7d2b1cc6968de432","_id":"apollo-reporting-protobuf@3.3.1","_nodeVersion":"12.22.7","_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (linux)","dist":{"integrity":"sha512-tyvj3Vj71TCh6c8PtdHOLgHHBSJ05DF/A/Po3q8yfHTBkOPcOJZE/GGN/PT/pwKg7HHxKcAeHDw7+xciVvGx0w==","shasum":"8c8761f9ac4375fd8490262d6144057cec6ce0b3","tarball":"http://registry-npm.ywwl.com/apollo-reporting-protobuf/download/apollo-reporting-protobuf-3.3.1.tgz","fileCount":11,"unpackedSize":453528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOM6NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrknxAAiZayZ2mtf/+hzEcQavIS3l315erD1zj1zc57aL/e4T5cSe/9\r\nI4qZRvcIv3qe5g9qoQW0td2/ayHWOzhaRHkrPWxvbFs6WAtlm1Dq/gssjK3v\r\ny1MLGKpnFCLnsd06wxFHAyLOedfB7jza+poOduOOk7FgL0/9W5L7yXJP66ur\r\nmvyd7mtrGDoty/k5kI8CgNwwKBSv/KyeInMic0WRZklISPSNdfCeKklvOpy4\r\njHxm6rRktOkHU1vbFXsyGUYUHtM5bTZKCXr+niwNtg8GjPzuUhCNLUTVyhyG\r\nZxu3Kz5azxwMx8GtxgT4RJI1k/sCkNjfzvq9kqQiizL2+HN7Qcd0xJLJaZ3k\r\n42/sJBPzBXilxuA3zZmGupcfvIqvpyHU7e5DV2i5goDksq06+yAI2/HLj9U4\r\nhDdwhjKsu/UTo7DLHrhQ47l1qoge6lxhi/YEbdD6/yNxim+qZNmvc4xjwB37\r\nJAv25KQ9vKxTK0QmYR2U4qRopWvmJn4ztvsYb5ArGJnb7tE6mW+EShxV1MEw\r\nnDWoYF4XbBBTrBtZZdJh2zNzM0iQBAlYll4MKFZ4XsrnvMCTsUQ0umjaRT/N\r\n/dkJF+S0EuUDGQCDMxApJbU6/Os4MCuMLaR9PB46NxA5mmqp+ccNq2EH0vMX\r\njjkFDgxCsHxvCohx525+ukgsUSOFKuiJ3mo=\r\n=mTRs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhjEQRDY/CVnBymulblUlhhF6bw2mwaGlcDsw3oovPCAiBPOgGNOIvwH50Uor8p7bdDsIUSY0sAunpRxvdPkwbXng=="}],"size":45054,"noattachment":false,"key":"/apollo-reporting-protobuf/-/apollo-reporting-protobuf-3.3.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/apollo-reporting-protobuf_3.3.1_1647890061578_0.4330439856508339"},"_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":1647890061758,"_cnpm_publish_time":1647890061758,"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"}}