{"_id":"@adempiere/grpc-pos-api","_rev":"2-e642f8c85e44465b9ff6a3c16e2fab9f","name":"@adempiere/grpc-pos-api","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@adempiere/grpc-pos-api","version":"1.0.1","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":"b9a77f25f47c4906a9a7b933634625c5a18b0f09","_id":"@adempiere/grpc-pos-api@1.0.1","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sIVtfhX8odcTPrtmcVxXSpKyP3qj/e7LWNmbTYN6qSNv4g+1+OovbRvMexJ49BO3StYaV3fXH7S+pRGRA7B1lw==","shasum":"c3b5421917b4d2420a05535e2502c06a97df393f","tarball":"https://registry.npmjs.org/@adempiere/grpc-pos-api/-/grpc-pos-api-1.0.1.tgz","fileCount":15,"unpackedSize":675317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkkbACRA9TVsSAnZWagAATm4P/A3l/eX9VG9/cO3JWxa8\nPY5BPNRkkra66AJEDqzCSfe697efPYJq/fneIzjAWy4/vT2+jXjRnR8yUUtu\nZfvD9MA4N6F83HdxqblXdPMNOB20qjYv1JzXdKImVmw6w9pYYfogvgLPKw/I\n7jp+K6B/U0WJKnEPMEOD6SXgYSNl0kfJw+kQM9wtjuUeVOEkV2MO+QeGRijL\nRlOLR/kcQypo8MYSHozq6xWlsBv0XG+/JOn39KqbpXcFoLmvgJw1tFWYyE5L\nRlzTsRrTTGzOCYTxV0TPJZZxyV3B17KbzcyDXK9Zldf7B8yggKunGiEC368u\nIRnze5hYdNl7fuOxnvFkCmoPqp8CBzIman2rlOwWyNXE/oUZnRM2hQxGx150\nssqnl0G3ggbudwNTm85BWmBNcaWktNL9ECzPLxEVCuooIaxsyaNS/72E8PgN\nFVSe4X/3TVfJz0iTC3qpIoksja43vUY+QhSBIfuMjxF5XDPOvPJ8w+Z8anpY\n+3VZ79t9nAm65j/++p4y8tY1at2174PYnzjKugVcUggKcIXkrJI5osYatvvi\nr0oEWtHIg9DtO4zgZ9OrQuykPF8L4c8jqfnAtGs5dsWnA17VEINtUmOAZ6m+\na+wls43TCSdou2wqMtN9rl7EpsiIwcGh2ejVsl7akkXb6Eqxgdfs6KsF6wuv\nJttu\r\n=zW/r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLU6h8H2slwvTuLDyitmyzSK6giaoOSN6I2TR0pKpT+AiALUGTvaUxEMsvureoTGgf6kfyQGCBfv+6uWxV+qsOE9A=="}]},"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-api_1.0.1_1603421888287_0.8260934344336446"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-23T02:58:08.098Z","1.0.1":"2020-10-23T02:58:08.388Z","modified":"2022-08-25T18:40:00.225Z"},"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"}