{"_id":"@edwinbetanc0urt/edwin-test","_rev":"3-aabd4a9841f8ffcdfc7426a823d7031f","name":"@edwinbetanc0urt/edwin-test","dist-tags":{"latest":"1.6.4"},"versions":{"1.6.2":{"name":"@edwinbetanc0urt/edwin-test","version":"1.6.2","description":"ADempiere Web Store write in Javascript for a node service","author":{"name":"Yamel Senih"},"contributors":[{"name":"Edwin Betancourt","email":"EdwinBetanc0urt@outlook.com","url":"https://github.com/EdwinBetanc0urt/"}],"main":"index.js","scripts":{"stub":"npm run stub:access && npm run stub:base_data_type && npm run stub:business && npm run stub:client && npm run stub:core_functionality && npm run stub:dictionary && npm run stub:enrollment && npm run stub:point_of_sales","stub:access":"grpc_tools_node_protoc proto/access.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:base_data_type":"grpc_tools_node_protoc proto/base_data_type.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:business":"grpc_tools_node_protoc proto/business.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:client":"grpc_tools_node_protoc proto/client.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:core_functionality":"grpc_tools_node_protoc proto/core_functionality.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:dictionary":"grpc_tools_node_protoc proto/dictionary.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:enrollment":"grpc_tools_node_protoc proto/enrollment.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:point_of_sales":"grpc_tools_node_protoc proto/point_of_sales.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/"},"repository":{"type":"git","url":"git+https://github.com/EdwinBetanc0urt/edwin-test.git"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/EdwinBetanc0urt/edwin-test/issues"},"homepage":"https://github.com/EdwinBetanc0urt/edwin-test#readme","dependencies":{"@grpc/grpc-js":"^1.3.2","google-protobuf":"^3.17.1"},"devDependencies":{"grpc-tools":"^1.11.1"},"engines":{"node":">= 10.0","npm":">= 6.0.0"},"keywords":["compiere","adempiere","erp","grpc","webstore","java","web"],"gitHead":"84a937be7663ace4922fa8c35255325bc0bd346b","_id":"@edwinbetanc0urt/edwin-test@1.6.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Xuu4Gu9P2oDufhnstNd5qfMkPTpjhDOicMcwr3PvkS/nyFWZyGbCNnUWtKKLlcV3J21r+DH9g+Fy3Fft1S9jcA==","shasum":"f9790e0ff2014f4e1446ff3234cd4619db34b322","tarball":"https://registry.npmjs.org/@edwinbetanc0urt/edwin-test/-/edwin-test-1.6.2.tgz","fileCount":37,"unpackedSize":2368363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgs9jECRA9TVsSAnZWagAANF4P/2bGILPkb2hpT/GpzNRT\nQkrsT/yIZNVhHfjwx3j6fJwBhAEJL9HEKHtOdfP1BSfHcmbqiXw45A93N6ih\nOFh0W6tD3k05GLWL88hdm9eexttPyK2kqAkgJJGywcz7mrCKyuTNNP95b2wf\nPBSfJitbK5ZCyde2yfE52/fc2eUiOEWUlJwUjXWQWAZD+DsfzzFcMK79hhJ2\n55S72gHu/T9y9OmGXpJbrVPUQbjIguMxLz3N+9SviKcl4n6LYwMYBCGYTMgv\nWOzjV4YzqKcCPFeguvJqaSPWM1y3lAHRFgY/Saou1EAVvW5UUxo24TLM34zm\nzpFo8jkWR2l+C+D8j8/mUz/4CQkn6Qz+1LN3K1+C7PzZG6Yw3aSVMbM90m2a\n4ZAa0K6pHQwMWyNZkY8g4eqVAk14hIBxpfTVhftwKwC4/cH8Dz1vPKBPBaGt\nfRolu172SABQ5061r2EFd2wkmYhKPJKHyAkAXy0cLcRID7vxObz9RnLmsoW9\nKNJHID4pj3ROorinkVii1RjLkagplge732ZulYTSx/Gmd1WoNfg62+kT+hjb\nW1uNMCr22khv6OTDndinBQt/KcFL5TYF5ECU30tGCBcjCapaju30LkOFxsRz\n9jGuQyDoTvzlTCQ6MdkA8g2TKgOx/alIGS9ai6MFd2iSTwUKT+jpwr3csQMa\nsvDL\r\n=Qxea\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqaIigNGdKdTrN3ZQfpyvE0Z8E0zU63tHNrm7NlPhWYwIhAPBFIm7Ueftdl8Dr2Rhb0hZwu8Sb3ekZH6poJ7ji1lne"}]},"_npmUser":{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"},"directories":{},"maintainers":[{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/edwin-test_1.6.2_1622399172064_0.8518022951916397"},"_hasShrinkwrap":false},"1.6.3":{"name":"@edwinbetanc0urt/edwin-test","version":"1.6.3","description":"ADempiere Web Store write in Javascript for a node service","author":{"name":"Yamel Senih"},"contributors":[{"name":"Edwin Betancourt","email":"EdwinBetanc0urt@outlook.com","url":"https://github.com/EdwinBetanc0urt/"}],"main":"index.js","scripts":{"stub":"npm run stub:access && npm run stub:base_data_type && npm run stub:business && npm run stub:client && npm run stub:core_functionality && npm run stub:dictionary && npm run stub:enrollment && npm run stub:point_of_sales","stub:access":"grpc_tools_node_protoc proto/access.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:base_data_type":"grpc_tools_node_protoc proto/base_data_type.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:business":"grpc_tools_node_protoc proto/business.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:client":"grpc_tools_node_protoc proto/client.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:core_functionality":"grpc_tools_node_protoc proto/core_functionality.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:dictionary":"grpc_tools_node_protoc proto/dictionary.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:enrollment":"grpc_tools_node_protoc proto/enrollment.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:point_of_sales":"grpc_tools_node_protoc proto/point_of_sales.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/"},"repository":{"type":"git","url":"git+https://github.com/EdwinBetanc0urt/edwin-test.git"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/EdwinBetanc0urt/edwin-test/issues"},"homepage":"https://github.com/EdwinBetanc0urt/edwin-test#readme","dependencies":{"@grpc/grpc-js":"^1.3.2","google-protobuf":"^3.17.1"},"devDependencies":{"grpc-tools":"^1.11.1"},"engines":{"node":">= 10.0","npm":">= 6.0.0"},"keywords":["compiere","adempiere","erp","grpc","webstore","java","web"],"gitHead":"3b529a7e09343795ebc5862c2845c46a384b7cb7","_id":"@edwinbetanc0urt/edwin-test@1.6.3","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-bzkAPWgdzJbnMtnmKIQvtxGVG9AnlOEGmnTAnQggpAXhEcsoJRPnSK8QUb+k3K4LlwdWHGYQ8n6EDIbhca1OwA==","shasum":"e802cfb84eb9795404ae7e0fbcf1a2228b21c145","tarball":"https://registry.npmjs.org/@edwinbetanc0urt/edwin-test/-/edwin-test-1.6.3.tgz","fileCount":37,"unpackedSize":2368379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgs9lyCRA9TVsSAnZWagAAqd8P/j703LmcKKx71pJ4ujbY\nzgrvEjGFtZ6d6Pqgc47q+fPGchnR0eMJKSNyG71Tve3YGEwkPQuRHmuaVyX1\nIg9wq08/7Jynua7JMZFofU3HWKJmWa7eKLTkt88mK4KbLmKNjdK9ZSgfVtmP\ncH9BSDOUXr428Aa6Csg4bhwJcFByvAp4f/wRdWU0DYWICd7moI2UthNRUNkQ\n3NQ/Zq3vquVzsM4cTkvMQ1EAogbxWM3/HNqwDPQjCHzARO0fYKpO0XvCPVmv\nb7QmDHA8KL4loKb8Bt7Z6eq8aQr4zAnOftvGjPGl+EdbfpAFi0Cub/nKNl4t\nWQUFOHCO1je2gLoeXmewAvWT8u8cw46AD14Bro6S8IN+433af5tx6QlbBepK\nnbmtALhlFhgs1KqqsFI+ibgKeeeEPoWilUmLtjEd/0W4m1mjVyKi8A4PyhwA\ni3YNNTHBKmfuITeAvv+lSlST+3B2SxHuBk0GaunPqjaOZBNDyuaHYHeH+ISX\nD2DqD8vXWh0RSHsZa7pBjgwiajB/2F2jLlR28LisRK7s9iohZuU/l2IGQkoi\noskLnI2wZC4025kaAsPoGvVsQGKbrXyrTcx+gyZOL00VcgUQmaDH4pUj0+Rc\no2TG7RfB+ppOIErIEM5glaZjbDgO1qpFJkSZ1P3yIh2geJ2RriWqa0Aau8Xt\nZKMO\r\n=KVAf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYNojwL/rlebphd83YRlD4N3QPYKGbTykwwx4XZhlbMAiEAu+zwme5VB3q4twG0VHpjumib1c9Qi/ui/f9WckVeG04="}]},"_npmUser":{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"},"directories":{},"maintainers":[{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/edwin-test_1.6.3_1622399346388_0.1760059691797824"},"_hasShrinkwrap":false},"1.6.4":{"name":"@edwinbetanc0urt/edwin-test","version":"1.6.4","description":"ADempiere Web Store write in Javascript for a node service","author":{"name":"Yamel Senih"},"contributors":[{"name":"Edwin Betancourt","email":"EdwinBetanc0urt@outlook.com","url":"https://github.com/EdwinBetanc0urt/"}],"main":"index.js","scripts":{"stub":"npm run stub:access && npm run stub:base_data_type && npm run stub:business && npm run stub:client && npm run stub:core_functionality && npm run stub:dictionary && npm run stub:enrollment && npm run stub:point_of_sales","stub:access":"grpc_tools_node_protoc proto/access.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:base_data_type":"grpc_tools_node_protoc proto/base_data_type.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:business":"grpc_tools_node_protoc proto/business.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:client":"grpc_tools_node_protoc proto/client.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:core_functionality":"grpc_tools_node_protoc proto/core_functionality.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:dictionary":"grpc_tools_node_protoc proto/dictionary.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:enrollment":"grpc_tools_node_protoc proto/enrollment.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/","stub:point_of_sales":"grpc_tools_node_protoc proto/point_of_sales.proto --js_out=import_style=commonjs,binary:src/grpc/ --grpc_out=grpc_js:src/grpc/"},"repository":{"type":"git","url":"git+https://github.com/EdwinBetanc0urt/edwin-test.git"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/EdwinBetanc0urt/edwin-test/issues"},"homepage":"https://github.com/EdwinBetanc0urt/edwin-test#readme","dependencies":{"@grpc/grpc-js":"^1.3.2","google-protobuf":"^3.17.1"},"devDependencies":{"grpc-tools":"^1.11.1"},"engines":{"node":">= 10.0","npm":">= 6.0.0"},"keywords":["compiere","adempiere","erp","grpc","webstore","java","web"],"gitHead":"d1f70f605f9fd638c93c5a993a1b9f22df3f8e8a","_id":"@edwinbetanc0urt/edwin-test@1.6.4","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-Yf28znkb8lB+LFwYgbNKEGIZ/unUO9+1TppaC6x3aCq4sz4Zu2i2GUjVhz5As5djK2vEO//Ocd7j/eVG2tVuzQ==","shasum":"6712e5b793c264a3940746ed5fbd839157bbaffe","tarball":"https://registry.npmjs.org/@edwinbetanc0urt/edwin-test/-/edwin-test-1.6.4.tgz","fileCount":37,"unpackedSize":2368379,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCntd6wTb9YYrdlt+OhrG17aOyILBwRZiK1uvOSdSNt2QIhAL1Ck5wF1mEsNghA/SfwB1xT60DfZlmf15bFiuMneczJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRtmNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQBQ//QLHITGdM3wnp582Kg0+y1yShqMHBAzYzGRKhdx5DA5LG8l2f\r\ns1XE39QAsJs6skZFViUBxfZT+KIRTskVpH9cVuHc4RoeTjqwS0nKEf5SYuUb\r\nzGx5x+SwnLYbTOPtmK2fu8Ewe0F2ZQilTsEdDyaLYXvcZCiCQvl4PZBydZo8\r\nCH2cR1ZPDWw0EwQdxibae2msxby5Nz+AzKGMCZfNHFhF8RmQuWWkWeFMui5P\r\nUdgVw5HS8lUFU83hnY9hgW5d6kfFyPBK7vgOk5R27f4E76tHcwa9/EfoNYQK\r\nUdzqRn089MDTDjDio3/b+t7zvhQOL0SvOzNiJVHHJPaGmR7piuewQSnlsyO0\r\nqn2ANXBtTfqnS5pgj3IvCXJhENIyVDI8W2hib3AIdlKK/GaPqB/L5zuT5Bml\r\nC8w2wSRRUmVPRuf0dQM5kVtf3I17HiYnaCVh4U0Slw7WuHJk5H9VMr1/Bz4E\r\n9BRXGTcWvZ14xW21Us9ZQCSQcoQCB5Mh7TVY+eBnF/C2voGq/TtP80/tswzY\r\nvo+xtLXhIb7aDK9u4Y94VGf11QPYUqlF6LLhVTyXHXJYYbAPgH4Z/x2FjNVY\r\nGXEVqHcxOWiqf8XTDqTW/8a1hKWr0uEYj4QM4ED5loX/G2iyiswAwXYYZJ94\r\n9mrUjK/2WeCotLJrF+AGCJNSqlHOhqWE5vE=\r\n=/aM/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"},"directories":{},"maintainers":[{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/edwin-test_1.6.4_1682364813193_0.5920634729659713"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-30T18:26:12.017Z","1.6.2":"2021-05-30T18:26:12.193Z","modified":"2023-04-24T19:33:33.567Z","1.6.3":"2021-05-30T18:29:06.569Z","1.6.4":"2023-04-24T19:33:33.431Z"},"maintainers":[{"name":"edwinbetanc0urt","email":"edwinbetanc0urt@outlook.com"}],"description":"ADempiere Web Store write in Javascript for a node service","homepage":"https://github.com/EdwinBetanc0urt/edwin-test#readme","keywords":["compiere","adempiere","erp","grpc","webstore","java","web"],"repository":{"type":"git","url":"git+https://github.com/EdwinBetanc0urt/edwin-test.git"},"contributors":[{"name":"Edwin Betancourt","email":"EdwinBetanc0urt@outlook.com","url":"https://github.com/EdwinBetanc0urt/"}],"author":{"name":"Yamel Senih"},"bugs":{"url":"https://github.com/EdwinBetanc0urt/edwin-test/issues"},"license":"GPL-3.0-or-later","readme":"ADempiere gRPC-API library to Node.js\n==============\n\n<div align=\"center\">\n\t<img src=\"https://camo.githubusercontent.com/911c5d54ded447403e56de3f96f332c06bceb8bd/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f622f62312f4164656d70696572652d6c6f676f2e706e67\" style=\"text-align:center;\" width=\"400\" />\n</div>\n\n![node version](https://img.shields.io/badge/node-v10.x-blue.svg)\n[![npm version](https://img.shields.io/npm/v/@adempiere/grpc-api.svg)](https://www.npmjs.com/package/@adempiere/grpc-api)\n[![License](https://img.shields.io/npm/l/@adempiere/grpc-api.svg)](https://github.com/adempiere/gRPC-API/blob/master/LICENSE)\n[![Downloads](https://img.shields.io/npm/dm/@adempiere/grpc-api.svg)](https://www.npmjs.com/package/@adempiere/grpc-api)\n[![Dependencies](https://img.shields.io/librariesio/github/@adempiere/grpc-api.svg)](https://www.npmjs.com/package/@adempiere/grpc-api)\n\nADempiere node.js write in JavaScript for gRPC service, currently is used as library of proxy ADempiere service and is published as NPM\n\n- [ADempiere-gRPC-Server](https://github.com/adempiere/adempiere-gRPC-Server), docker image [erpya/adempiere-grpc-all-in-one](https://hub.docker.com/r/erpya/adempiere-grpc-all-in-one).\n\nSee also:\n- [ADempiere-Vue](https://github.com/adempiere/adempiere-vue), docker image [erpya/adempiere-vue](https://hub.docker.com/r/erpya/adempiere-vue).\n service, use it for connect with:\n- [Proxy-Adempiere-API](https://github.com/adempiere/proxy-adempiere-api), docker image [erpya/proxy-adempiere-api](https://hub.docker.com/r/erpya/proxy-adempiere-api).\n\n\n## Using it\n\n```shell\n# installing via NPM\nnpm install @adempiere/grpc-api --save\n```\n```shell\n# installing via Yarn\nyarn add @adempiere/grpc-api\n```\n\n### A Example\nHere a example for it using from Proxy of ADempiere API: https://github.com/adempiere/proxy-adempiere-api/blob/master/src/modules/adempiere-api/index.ts#L17\n\n\n## Recreate proto stub class (only for contribute to project)\nFor recreate stub class you must have follow:\n- [protobuf](https://github.com/protocolbuffers/protobuf/releases)\n- [protoc](https://github.com/grpc/grpc-web/releases)\n- Also you can see it: [gRPC-web](https://github.com/grpc/grpc-web)\n- [gRPC](https://grpc.io/docs/tutorials/basic/web.html)\n- [gRPC-Node](https://github.com/grpc/grpc-node)\n\n\n## Install prerequisites for proto stub generation\n\n### Install Proto C\n\n```shell\n# Get the latest version number of protoc\nLATEST_VERSION=$(curl --silent \"https://api.github.com/repos/protocolbuffers/protobuf/releases/latest\" |\n    grep -Po '\"tag_name\": \"\\K.*?(?=\")' |\n    sed -E 's|v||g')\n\nARCHITECTURE=$(arch)\n\nZIP_FILE=protoc-$1-linux-$ARCHITECTURE.zip\n\n# Download latest version\nURL=\"https://github.com/protocolbuffers/protobuf/releases/download/v$LATEST_VERSION/$ZIP_FILE\"\ncurl -OL $URL\n\n# Extract and overwrite into dir\nsudo unzip -o $ZIP_FILE -d /usr/local bin/protoc\nsudo unzip -o $ZIP_FILE -d /usr/local 'include/*'\n\n# Delete donwloaded file\nrm -f -v $ZIP_FILE\n\n# Assign read and execute permissions\nsudo chmod 755 /usr/local/bin/protoc\nsudo chmod 755 -R /usr/local/include/google/\n```\n\nWhen installation is complete, check the version with\n```Shell\nprotoc --version\n```\n\n### Install Proto C Gen gRPC Web\nThis is only used to generate the stub if gRPC is handled on the client side.\n\n```shell\n# Get the latest version number of protoc-gen-grpc-web\nLATEST_VERSION=$(curl --silent \"https://api.github.com/repos/grpc/grpc-web/releases/latest\" |\n    grep -Po '\"tag_name\": \"\\K.*?(?=\")' |\n    sed -E 's|v||g')\n\nFILE=protoc-gen-grpc-web\n\n# Download\nURL=https://github.com/grpc/grpc-web/releases/download/$LATEST_VERSION/$FILE-$1-linux-x86_64\ncurl -L $URL -o $FILE\n\n# Extract and overwrite into dir\nsudo mv -f -v $FILE /usr/local/bin/\n\n# Assign read and execute permissions\nsudo chmod 755 /usr/local/bin/$FILE\n```\n\n### Install gRPC Tools (Node Proto C)\nIt can be installed as a global dependency although it is already managed as a project dependency.\n\nVia npm:\n```shell\nsudo npm install -g grpc-tools\n```\n\nVia yarn:\n```shell\nyarn global add grpc-tools\n```\n\n## Generate Proto Stub:\n\n### Generate with npm (Recommended):\n```shell\n# install dependecies and dev dependencies\nnpm i\n\n# generate all stub\nnpm run stub\n```\n\nNote to generate specific proto definition:\n* To access: `npm run stub:access`\n* To base data type: `npm run stub:base_data_type`\n* To business: `npm run stub:business`\n* To client: `npm run stub:client`\n* To core functionality: `npm run stub:core_functionality`\n* To dictionary: `npm run stub:dictionary`\n* To enrollment: `npm run stub:enrollment`\n* To point of sales: `npm run stub:point_of_sales`\n\n### Generate directly with grpc_tools_node_protoc:\n\nGenerate all stub:\n```shell\ngrpc_tools_node_protoc \\\n    --js_out=import_style=commonjs,binary:src/grpc \\\n    --grpc_out=src/grpc \\\n    proto/access.proto proto/base_data_type.proto proto/business.proto proto/client.proto proto/core_functionality.proto proto/dictionary.proto proto/enrollment.proto proto/point_of_sales.proto\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n\n* To access:\n```shell\n# Generate stub to access.proto file\ngrpc_tools_node_protoc \\\n    proto/access.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To base data type:\n```shell\n# Generate stub to base_data_type.proto file\ngrpc_tools_node_protoc \\\n    proto/base_data_type.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To business:\n```shell\n# Generate stub to business.proto file\ngrpc_tools_node_protoc \\\n    proto/business.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To client:\n```shell\n# Generate stub to client.proto file\ngrpc_tools_node_protoc \\\n    proto/access.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To core functionality:\n```shell\n# Generate stub to access.proto file\ngrpc_tools_node_protoc \\\n    proto/core_functionality.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To dictionary:\n```shell\n# Generate stub to access.proto file\ngrpc_tools_node_protoc \\\n    proto/dictionary.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To enrollment:\n```shell\n# Generate stub to access.proto file\ngrpc_tools_node_protoc \\\n    proto/enrollment.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n* To point of sales:\n```shell\n# Generate stub to access.proto file\ngrpc_tools_node_protoc \\\n    proto/point_of_sales.proto \\\n    --js_out=import_style=commonjs,binary:$OUT_DIR  \\\n    --grpc_out=grpc_js:$OUT_DIR\n    # --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR\n```\n\n\n### Output proto stub\nThe result is generated on: `src/grpc/proto/` folder\n- `access_grpc_pb.js`\n- `access_pb.js`\n- `base_data_type_grpc_pb.js`\n- `base_data_type_pb.js`\n- `business_grpc_pb.js`\n- `business_pb.js`\n- `client_grpc_pb.js`\n- `client_pb.js`\n- `core_functionality_grpc_pb.js`\n- `core_functionality_pb.js`\n- `dictionary_grpc_pb.js`\n- `dictionary_pb.js`\n- `enrollment_grpc_pb.js`\n- `enrollment_pb.js`\n- `point_of_sales_grpc_pb.js`\n- `point_of_sales_pb.js`\n\n\n## Sponsors\n\nBecome a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor](https://www.paypal.com/paypalme/YamelSenih)\n\n<a href=\"http://erpya.com/\"><img width=\"250px\" src=\"https://erpya.com/wp-content/uploads/2017/11/ERP-logotipo-H-color.png\" /></a>\n","readmeFilename":"README.md"}