{"_id":"@adempiere/grpc-pos","_rev":"2-f3368366a610c66325a9c4f41655cbca","name":"@adempiere/grpc-pos","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adempiere/grpc-pos","version":"1.0.0","description":"ADempiere POS Client write in Javascript for gRPC service","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/adempiere/gRPC-POS-API.git"},"author":{"name":"Yamel Senih"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/adempiere/gRPC-API/issues"},"homepage":"https://github.com/adempiere/gRPC-POS-API#readme","dependencies":{"@adempiere/grpc-api":"1.2.1","google-protobuf":"^3.12.4","grpc":"^1.11.0"},"devDependencies":{},"keywords":["compiere","adempiere","erp","grpc","pos","java","web"],"gitHead":"eea001514d6fa65559b08b406ad63e21ea470761","_id":"@adempiere/grpc-pos@1.0.0","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rBzKomBRvZVubAHETFTY0WszTi0JdNByeklWe9pVWarn0m6sSZSkdBNuLjrRRvFi+ve5DrTBSHmKmYxGbPQ4Gg==","shasum":"5bb19c9ca46de4b09ef154440fceb04ef1434341","tarball":"https://registry.npmjs.org/@adempiere/grpc-pos/-/grpc-pos-1.0.0.tgz","fileCount":15,"unpackedSize":675313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkkY+CRA9TVsSAnZWagAADHEP/jYN/oys2Lbn8V5L2kRH\naFrfJNTMocxcPp4ItSDoDhdXHMOD84Vv5LLK3vBenGswH+25DQ+uH2hTZKuA\nAu+WS03vcWdUnzr/8LPpzzrjMRfdgOw1mPRGR5afOqM3fXSBJ3nmj1lUG/z+\nGOXeUovx2X8ywPXxhhwoQoRAfheGuh8g/3pxwrWEP6an4496AXaF78bIBoKc\nNF7SGaNcYs5/WD/aw2hFRQ695OccU4DTRAo74n9ZUE9NBDvUyoaKtcBWRnuL\nBH6Vs4mlR8w9f8dqjvD2xl+aFqw7YUcLgekJ4R/7DH7RgXiEPvSAIUCGiokI\nQFmigB/aTngaEzOCqlvrGwU6VKlqknEIGLYXR+c7VeL0dxviX2+5H6obFPP1\nCXi3kTZusq40mFblH3PwtLNWR5SQgQgxzkAohbnzgWJItX3NaftMmgzk65ji\nnTbuTBqcvD/ky7UiEv9sNEnSu4jE/ntEmIQ7q9VZ/m0exz82bbzWK2Iakaua\ne6eY4cHLt0CHO/GTdQOfMm0KzUXjn0PsLqYMg9sZBhrC6KpkP2HnFO4SVpzr\n0jf1ItiKSJVYk/OJ/tzIOLcUjjAE8ywbqjDBfD/XrWr6lH/41+kg3EBY0luU\neGTS96ou1QZEHWSKs8pKocVCALzMlEv1u+RfcammA6hKxz08p+1PMZ5wbbHF\nLE4A\r\n=I+lq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7TNC+gNmrXRalJvNqKCptNa5nbYfvQPGRnYQfzpCBYAiBZ9ABwzpAR4a8fvENUhtlfOKGMQeeGPOx8z48lGm6Luw=="}]},"maintainers":[{"name":"elsio15","email":"elsiosanches@gmail.com"},{"name":"erpya","email":"info@erpya.com"},{"name":"yamelsenih","email":"ysenih@erpya.com"},{"name":"adempiere-develop","email":"info@erpcya.com"}],"_npmUser":{"name":"yamelsenih","email":"ysenih@erpya.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grpc-pos_1.0.0_1603421757809_0.6462970771258287"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-23T02:55:57.588Z","1.0.0":"2020-10-23T02:55:57.953Z","modified":"2022-08-25T18:39:59.928Z"},"maintainers":[{"email":"edwinbetanc0urt@outlook.com","name":"edwinbetanc0urt"},{"email":"info@erpcya.com","name":"adempiere-develop"},{"email":"ysenih@erpya.com","name":"yamelsenih"},{"email":"info@erpya.com","name":"erpya"},{"email":"elsiosanches@gmail.com","name":"elsio15"}],"description":"ADempiere POS Client write in Javascript for gRPC service","homepage":"https://github.com/adempiere/gRPC-POS-API#readme","keywords":["compiere","adempiere","erp","grpc","pos","java","web"],"repository":{"type":"git","url":"git+https://github.com/adempiere/gRPC-POS-API.git"},"author":{"name":"Yamel Senih"},"bugs":{"url":"https://github.com/adempiere/gRPC-API/issues"},"license":"GPL-3.0-or-later","readme":"# ADempiere POS Client for gRPC\n\n[![npm version](https://img.shields.io/npm/v/@adempiere/grpc-pos-client.svg)](https://www.npmjs.com/package/@adempiere/grpc-pos-client)\n[![License](https://img.shields.io/npm/l/@adempiere/grpc-pos-client.svg)](https://github.com/erpcya/grpc-pos-client/blob/master/LICENSE)\n[![Downloads](https://img.shields.io/npm/dm/@adempiere/grpc-pos-client.svg)](https://www.npmjs.com/package/@adempiere/grpc-pos-client)\n[![Dependencies](https://img.shields.io/librariesio/github/erpcya/grpc-pos-client.svg)](https://www.npmjs.com/package/@adempiere/grpc-pos-client)\n\n\nADempiere POS Client write in Javascript for gRPC service, use it for connect with\n[ADempiere-gRPC-Server](https://github.com/erpcya/adempiere-gRPC-Server).\n\n## Requirements\n- [Envoy Proxy](https://www.envoyproxy.io/)\n- [Envoy Pre-configured Proxy](https://github.com/erpcya/gRPC-Envoy-Proxy)\n\n## Using it\n\n``` bash\n# installing via NPM\nnpm i @adempiere/grpc-pos-client --save\n```\n\n``` bash\n# installing via Yarn\nyarn add @adempiere/grpc-pos-client\n```\n\n## A Example\n### Declare POS\n```javascript\nconst POS = require('@adempiere/grpc-pos-client');\nlet data = new POS(GRPC_HOST, 'Session UUID');\n```\n### Declare POS with specific language\n```javascript\nconst POS = require('@adempiere/grpc-pos-client');\nlet data = new POS(GRPC_HOST, 'Session UUID', 'es_VE');\n```\n\n### Request a simple Object based on Table and UUID\n```javascript\n//  Request a single Object\ndata.getProductPrice(searchValue: 'Patio Fun', priceListUuid: '8cc49692-fb40-11e8-a479-7a0060f0aa01')\n.then(productPrice => {\n  console.log(\"Product Price\");\n    //  Value\n  console.log(productPrice);\n})\n.catch(err => console.log(\"Error: \" + err.message));\n```\n\nOutput\n```\nProduct Price\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\nNote: You can also install `protoc` and `protoc-gen-grpc-web` by going to the repository directory and run the command:\n```Shell\nsh install-protoc.sh\n```\n\nWhen installation is complete, check the version with\n```Shell\nprotoc --version\n```\n\nAfter installed it just go to source code folder and run it:\n\nAnd run it for Point Of Sales\n```sh\ncd ../../protos\nyarn global add grpc-tools\ngrpc_tools_node_protoc --js_out=import_style=commonjs,binary:src/grpc --grpc_out=src/grpc --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` proto/client.proto proto/core_functionality.proto proto/point_of_sales.proto\n```\n\nOr run:\n```Shell\nsh generate-stub.sh\n```\n\nThe result is generated on: src/grpc folder\n- `pont_of_sales_pb.js`\n- `pont_of_sales_grpc_web_pb.js`\n","readmeFilename":"README.md"}