{"_id":"@agromatrix/grpc-proto","_rev":"4-40056eb926d3b4f379bce08ab4f5b1c6","name":"@agromatrix/grpc-proto","dist-tags":{"latest":"1.4.0"},"versions":{"1.2.0":{"name":"@agromatrix/grpc-proto","version":"1.2.0","keywords":["agromatrix","grpc","protobuf","proto","nestjs"],"license":"UNLICENSED","_id":"@agromatrix/grpc-proto@1.2.0","maintainers":[{"name":"lourenfox","email":"vitalik.safonov@list.ru"}],"homepage":"https://github.com/agromatrix/grpc-proto#readme","bugs":{"url":"https://github.com/agromatrix/grpc-proto/issues"},"dist":{"shasum":"207143dac8714ada4ed51cf7e8107a52f2e982a6","tarball":"https://registry.npmjs.org/@agromatrix/grpc-proto/-/grpc-proto-1.2.0.tgz","fileCount":27,"integrity":"sha512-oXWZOz2m8BEKVuBhueQrxMckI+9Q5slegiCR0ixrWpfgwALXnuYRQUrt3fHadKZCsMUmlicC6CXJMKbw7k/ImQ==","signatures":[{"sig":"MEYCIQCIUdhvngIALW/HOZwu/cZWGU7V/yhqCo1u76l2bhI1MgIhAJySwyvnRSfgk67auxx3R/5MC2+ddjQcYZvAmB6d1/8i","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108350},"engines":{"node":">=20"},"exports":{"./*":"./lib/*.js","./*/*":"./lib/*/*.js","./*/*/*":"./lib/*/*/*.js","./*.proto":"./lib/*.proto","./*/*/*/*":"./lib/*/*/*/*.js","./*/*.proto":"./lib/*/*.proto","./*/*/*.proto":"./lib/*/*/*.proto","./*/*/*/*.proto":"./lib/*/*/*/*.proto"},"gitHead":"eb901cdb5f1c47a07c963ccc84fb6e75dee11ae7","scripts":{"lint":"eslint \"proto/**/*.ts\"","build":"rimraf lib && npm run proto:ts-gen && tsc && npm run copy:proto","format":"prettier --write \"proto/**/*.ts\"","buf:lint":"buf lint","buf:format":"buf format -w","copy:proto":"copyfiles -u 1 \"./proto/**/*.proto\" \"lib\"","preversion":"npm run proto:ts-gen && npm run lint && npm run build","proto:ts-gen":"bash ./compile.proto.sh && npm run format","semantic-release":"semantic-release"},"_npmUser":{"name":"lourenfox","email":"vitalik.safonov@list.ru"},"repository":{"url":"git+https://github.com/agromatrix/grpc-proto.git","type":"git"},"_npmVersion":"11.11.0","description":"gRPC *.proto library","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"typesVersions":{"*":{"*":["lib/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","eslint":"^9.18.0","rimraf":"^6.0.1","globals":"^16.0.0","prettier":"^3.4.2","ts-proto":"^2.7.0","copyfiles":"^2.4.1","@eslint/js":"^9.18.0","typescript":"^5.8.3","@types/node":"^22.15.0","@nestjs/core":"^11.0.1","@bufbuild/buf":"^1.55.1","@grpc/grpc-js":"^1.14.4","@nestjs/common":"^11.0.1","reflect-metadata":"^0.2.2","semantic-release":"^24.2.3","typescript-eslint":"^8.20.0","@nestjs/microservices":"^11.1.28","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^12.0.1","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"rxjs":"7.x","@grpc/grpc-js":"1.x","@nestjs/microservices":"10.x || 11.x"},"_npmOperationalInternal":{"tmp":"tmp/grpc-proto_1.2.0_1785061326430_0.6254274650733229","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@agromatrix/grpc-proto","version":"1.2.1","keywords":["agromatrix","grpc","protobuf","proto","nestjs"],"license":"UNLICENSED","_id":"@agromatrix/grpc-proto@1.2.1","maintainers":[{"name":"lourenfox","email":"vitalik.safonov@list.ru"}],"homepage":"https://github.com/agromatrix/grpc-proto#readme","bugs":{"url":"https://github.com/agromatrix/grpc-proto/issues"},"dist":{"shasum":"3fcb6821e22c096961760d2952055bffcf3f8fbc","tarball":"https://registry.npmjs.org/@agromatrix/grpc-proto/-/grpc-proto-1.2.1.tgz","fileCount":27,"integrity":"sha512-obj1JJ7qs7JY8Y7NINvwYe2t3LWu70C7ddCKFjR8Oy6w2k+49dNg7md2qXvp9kOdX54m/PX8aBeOizJcu7sIEg==","signatures":[{"sig":"MEUCIQCAxMHUHL5PsmhvabwtU4rr3++YkNaT1x8b94HWgRBj+QIgWu2/Y/Oqaq2TzeFtZmobdSa9Q71FRFwbOSNslHF3uGs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108350},"engines":{"node":">=20"},"exports":{"./*":"./lib/*.js","./*/*":"./lib/*/*.js","./*/*/*":"./lib/*/*/*.js","./*.proto":"./lib/*.proto","./*/*/*/*":"./lib/*/*/*/*.js","./*/*.proto":"./lib/*/*.proto","./*/*/*.proto":"./lib/*/*/*.proto","./*/*/*/*.proto":"./lib/*/*/*/*.proto"},"gitHead":"b5a65a4a9f4bcb2ded36c483021d8c009936f485","scripts":{"lint":"eslint \"proto/**/*.ts\"","build":"rimraf lib && npm run proto:ts-gen && tsc && npm run copy:proto","format":"prettier --write \"proto/**/*.ts\"","buf:lint":"buf lint","buf:format":"buf format -w","copy:proto":"copyfiles -u 1 \"./proto/**/*.proto\" \"lib\"","preversion":"npm run proto:ts-gen && npm run lint && npm run build","proto:ts-gen":"bash ./compile.proto.sh && npm run format","semantic-release":"semantic-release"},"_npmUser":{"name":"lourenfox","email":"vitalik.safonov@list.ru"},"repository":{"url":"git+https://github.com/agromatrix/grpc-proto.git","type":"git"},"_npmVersion":"10.9.8","description":"gRPC *.proto library","directories":{},"_nodeVersion":"22.23.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"typesVersions":{"*":{"*":["lib/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","eslint":"^9.18.0","rimraf":"^6.0.1","globals":"^16.0.0","prettier":"^3.4.2","ts-proto":"^2.7.0","copyfiles":"^2.4.1","@eslint/js":"^9.18.0","typescript":"^5.8.3","@types/node":"^22.15.0","@nestjs/core":"^11.0.1","@bufbuild/buf":"^1.55.1","@grpc/grpc-js":"^1.14.4","@nestjs/common":"^11.0.1","reflect-metadata":"^0.2.2","semantic-release":"^24.2.3","typescript-eslint":"^8.20.0","@nestjs/microservices":"^11.1.28","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^12.0.1","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"rxjs":"7.x","@grpc/grpc-js":"1.x","@nestjs/microservices":"10.x || 11.x"},"_npmOperationalInternal":{"tmp":"tmp/grpc-proto_1.2.1_1785061613022_0.8995393935313214","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@agromatrix/grpc-proto","version":"1.3.0","keywords":["agromatrix","grpc","protobuf","proto","nestjs"],"license":"UNLICENSED","_id":"@agromatrix/grpc-proto@1.3.0","maintainers":[{"name":"lourenfox","email":"vitalik.safonov@list.ru"}],"homepage":"https://github.com/agromatrix/grpc-proto#readme","bugs":{"url":"https://github.com/agromatrix/grpc-proto/issues"},"dist":{"shasum":"255edb36a24e5f03b1bb09f7887f4a2413633b2d","tarball":"https://registry.npmjs.org/@agromatrix/grpc-proto/-/grpc-proto-1.3.0.tgz","fileCount":27,"integrity":"sha512-d3CHCJa+LVlIk6jD+2AZJDLrNP/TwqtyBY1ZtE0I4vP5AoYyqUg5Y6p7s2AgCrz7hRQUHJcPXHvRxVeYTcTpkA==","signatures":[{"sig":"MEQCIAweia+DPg/b/G6YV3Xx7Pzc4Emm+j8XLNl1rvH3F+icAiB0mexDYSayDOI+nlTYy5gbbZAP6seHXH9IHujRDpt7AQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFWgnyrFWJlIdBZ0Ky/RwWwoflOo1hrcvXEVLKZDa8J8AiEA0ti/inRdqR8euQ7TJQJIGM3sLEkhkAE4rMAftFAN9rU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":107354},"engines":{"node":">=20"},"exports":{"./*":"./lib/*.js","./*/*":"./lib/*/*.js","./*/*/*":"./lib/*/*/*.js","./*.proto":"./lib/*.proto","./*/*/*/*":"./lib/*/*/*/*.js","./*/*.proto":"./lib/*/*.proto","./*/*/*.proto":"./lib/*/*/*.proto","./*/*/*/*.proto":"./lib/*/*/*/*.proto"},"gitHead":"5a39fd17dc157b859db9a55a1a34f8ec9eaf091d","scripts":{"lint":"eslint \"proto/**/*.ts\"","build":"rimraf lib && npm run proto:ts-gen && tsc && npm run copy:proto","format":"prettier --write \"proto/**/*.ts\"","buf:lint":"buf lint","buf:format":"buf format -w","copy:proto":"copyfiles -u 1 \"./proto/**/*.proto\" \"lib\"","preversion":"npm run proto:ts-gen && npm run lint && npm run build","proto:ts-gen":"buf generate && npm run format","semantic-release":"semantic-release"},"_npmUser":{"name":"lourenfox","email":"vitalik.safonov@list.ru"},"repository":{"url":"git+https://github.com/agromatrix/grpc-proto.git","type":"git"},"_npmVersion":"10.9.8","description":"gRPC *.proto library","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"typesVersions":{"*":{"*":["lib/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","eslint":"^9.18.0","rimraf":"^6.0.1","globals":"^16.0.0","prettier":"^3.4.2","ts-proto":"^2.7.0","copyfiles":"^2.4.1","@eslint/js":"^9.18.0","typescript":"^5.8.3","@types/node":"^22.15.0","@nestjs/core":"^11.0.1","@bufbuild/buf":"^1.55.1","@grpc/grpc-js":"^1.14.4","@nestjs/common":"^11.0.1","reflect-metadata":"^0.2.2","semantic-release":"^24.2.3","typescript-eslint":"^8.20.0","@nestjs/microservices":"^11.1.28","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^12.0.1","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"rxjs":"7.x","@grpc/grpc-js":"1.x","@nestjs/microservices":"10.x || 11.x"},"_npmOperationalInternal":{"tmp":"tmp/grpc-proto_1.3.0_1789910457218_0.3614732345739271","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"_id":"@agromatrix/grpc-proto@1.4.0","bugs":{"url":"https://github.com/agromatrix/grpc-proto/issues"},"dist":{"shasum":"c1c4d2e15bbfb6d80dcc246fddd8ec15026e21e5","tarball":"https://registry.npmjs.org/@agromatrix/grpc-proto/-/grpc-proto-1.4.0.tgz","fileCount":27,"integrity":"sha512-qQaRt5wYgk5/Kfj1LeOyQrAUbBYsePx8ilJUd7S6JPrXoHkJJPRBbKytketXV1ujMz8qFQZWXKcKn97mMcTbKw==","signatures":[{"sig":"MEYCIQDD0YunzjaI4aUOo6K3clHnSZrdHIhqBS9EE5qwHV92SwIhAMC+0lmuVojKQcTmndpoNLnw1DanWeYCjW2G3UvoL4J+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCUaEyCEpfklczEqX6RKYVTTaHib92Lhyl/yYX51Bp0CQIhAK7ZU3TTYilB5G+mgXph6xmdfd0+KN4kZQVQmBAEEQgV"}],"unpackedSize":108191},"name":"@agromatrix/grpc-proto","engines":{"node":">=20"},"exports":{"./*":"./lib/*.js","./*/*":"./lib/*/*.js","./*/*/*":"./lib/*/*/*.js","./*.proto":"./lib/*.proto","./*/*/*/*":"./lib/*/*/*/*.js","./*/*.proto":"./lib/*/*.proto","./*/*/*.proto":"./lib/*/*/*.proto","./*/*/*/*.proto":"./lib/*/*/*/*.proto"},"gitHead":"48623cec6196bbab4b963815ee32694d7404adbf","license":"UNLICENSED","scripts":{"lint":"eslint \"proto/**/*.ts\"","build":"rimraf lib && npm run proto:ts-gen && tsc && npm run copy:proto","format":"prettier --write \"proto/**/*.ts\"","buf:lint":"buf lint","buf:format":"buf format -w","copy:proto":"copyfiles -u 1 \"./proto/**/*.proto\" \"lib\"","preversion":"npm run proto:ts-gen && npm run lint && npm run build","proto:ts-gen":"buf generate && npm run format","semantic-release":"semantic-release"},"version":"1.4.0","_npmUser":{"name":"lourenfox","email":"vitalik.safonov@list.ru"},"homepage":"https://github.com/agromatrix/grpc-proto#readme","keywords":["agromatrix","grpc","protobuf","proto","nestjs"],"repository":{"url":"git+https://github.com/agromatrix/grpc-proto.git","type":"git"},"_npmVersion":"10.9.8","description":"gRPC *.proto library","directories":{},"maintainers":[{"name":"lourenfox","email":"vitalik.safonov@list.ru"}],"_nodeVersion":"22.23.3","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"typesVersions":{"*":{"*":["lib/*"]}},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","eslint":"^9.18.0","rimraf":"^6.0.1","globals":"^16.0.0","prettier":"^3.4.2","ts-proto":"^2.7.0","copyfiles":"^2.4.1","@eslint/js":"^9.18.0","typescript":"^5.8.3","@types/node":"^22.15.0","@nestjs/core":"^11.0.1","@bufbuild/buf":"^1.55.1","@grpc/grpc-js":"^1.14.4","@nestjs/common":"^11.0.1","reflect-metadata":"^0.2.2","semantic-release":"^24.2.3","typescript-eslint":"^8.20.0","@nestjs/microservices":"^11.1.28","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^12.0.1","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.2.2","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"rxjs":"7.x","@grpc/grpc-js":"1.x","@nestjs/microservices":"10.x || 11.x"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/grpc-proto_1.4.0_1790866152187_0.6579964619771856"}}},"time":{"created":"2026-07-26T10:22:06.241Z","modified":"2026-10-01T14:49:12.460Z","1.2.0":"2026-07-26T10:22:06.587Z","1.2.1":"2026-07-26T10:26:53.186Z","1.3.0":"2026-09-20T13:20:57.315Z","1.4.0":"2026-10-01T14:49:12.283Z"},"bugs":{"url":"https://github.com/agromatrix/grpc-proto/issues"},"license":"UNLICENSED","homepage":"https://github.com/agromatrix/grpc-proto#readme","keywords":["agromatrix","grpc","protobuf","proto","nestjs"],"repository":{"url":"git+https://github.com/agromatrix/grpc-proto.git","type":"git"},"description":"gRPC *.proto library","maintainers":[{"name":"lourenfox","email":"vitalik.safonov@list.ru"}],"readme":"# @agromatrix/grpc-proto\n\ngRPC `*.proto` библиотека Agromatrix: исходники + сгенерированный TypeScript (ts-proto / NestJS).\n\n## Установка\n\n```bash\nnpm install @agromatrix/grpc-proto\n```\n\nPeer dependencies: `@nestjs/microservices`, `rxjs`, `@grpc/grpc-js`.\n\n## Импорты\n\n```ts\nimport {\n  IdentityServiceClient,\n  IdentityServiceController,\n  IdentityServiceControllerMethods,\n  IDENTITY_SERVICE_NAME,\n  AGROMATRIX_IDENTITY_V1_PACKAGE_NAME,\n  LoginRequest,\n} from '@agromatrix/grpc-proto/agromatrix/identity/v1/identity';\n```\n\nПуть к `.proto` для NestJS `ClientsModule` / `proto-loader`:\n\n```ts\nimport { join } from 'node:path';\n\nconst protoPath = join(\n  require.resolve('@agromatrix/grpc-proto/package.json'),\n  '..',\n  'lib/agromatrix/identity/v1/identity.proto',\n);\n```\n\nИли через export: `@agromatrix/grpc-proto/agromatrix/identity/v1/identity.proto`.\n\nАналогично:\n\n- `@agromatrix/grpc-proto/agromatrix/common/v1/common`\n- `@agromatrix/grpc-proto/agromatrix/farm_admin/v1/farm_admin`\n- `@agromatrix/grpc-proto/agromatrix/farm_vet/v1/farm_vet`\n- `@agromatrix/grpc-proto/agromatrix/notifications/v1/notifications`\n\n## Сборка\n\n```bash\nnpm install\nnpm run build\n```\n\nПайплайн (как у `@marketguru/grpc-proto`, но npm):\n\n1. `rimraf lib`\n2. `buf generate` — ts-proto → `proto/**/*.ts` (без Bash/WSL)\n3. `prettier` по сгенерированным `.ts`\n4. `tsc` → `lib/**/*.js` + `.d.ts`\n5. `copyfiles` — копирует `*.proto` в `lib/`\n\n## Публикация в npm\n\nНа `main` срабатывает semantic-release (см. `.github/workflows/publish.yml`).\n\nНужен секрет `NPM_TOKEN` (права publish на scope `@agromatrix`).\n\nЛокально:\n\n```bash\nnpm run build\nnpm publish --access public\n```\n\n## Proto-исходники\n\n```text\nproto/agromatrix/\n  common/v1/common.proto\n  identity/v1/identity.proto\n  farm_admin/v1/farm_admin.proto\n  farm_vet/v1/farm_vet.proto\n  notifications/v1/notifications.proto\n```\n\n`buf lint` / `buf format` — опционально: `npm run buf:lint`.\n","readmeFilename":"README.md"}