{"_id":"@appdevshop/push-service-client","_rev":"3-9448e8290cdad1080cb92f28ca2f897a","name":"@appdevshop/push-service-client","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@appdevshop/push-service-client","version":"1.0.0","scripts":{"build":"tsc -p .","lint":"tslint -p .","lint:fix":"tslint --fix -p .","lint:check":"tslint-config-prettier-check ./tslint.json"},"keywords":["backend","SDK","push","notifications","API","service","firebase","appshop","appshopdev","app development shop"],"author":{"name":"Alexander Stepanov"},"homepage":"https://github.com/AppDevelopmentShop/push-dervice-client","engines":{"node":"10.1.0"},"main":"lib/index.js","types":"./lib/index.d.ts","files":["lib/","LICENSE","README.md","package.json"],"repository":{"type":"git","url":"git+ssh://git@github.com/AppDevelopmentShop/push-dervice-client.git"},"devDependencies":{"@types/node":"^10.5.7","@types/request":"^2.47.1","@types/request-promise-native":"^1.0.15","prettier":"^1.14.0","ts-loader":"^4.4.2","ts-node":"^7.0.0","tslint":"^5.11.0","tslint-config-prettier":"^1.14.0","tslint-plugin-prettier":"^1.3.0","typescript":"^3.0.1"},"dependencies":{"request":"^2.87.0","request-promise-native":"^1.0.5"},"bugs":{"url":"https://github.com/AppDevelopmentShop/push-dervice-client/issues"},"directories":{"lib":"lib"},"license":"MIT","description":"","gitHead":"f1e2b70a0b919c01a434853d34f117fd30b3208b","_id":"@appdevshop/push-service-client@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"astepano","email":"alexander.stepano@gmail.com"},"dist":{"integrity":"sha512-2rAHEfxdOPxKsxt1uqq34hNaYjavYGpF1KjQhpMQZTbNbUBjc5Ri5NIO93mcqQF5nuo18LiaKCDuF4ATDnX97Q==","shasum":"8b21006d41a613f9830572c0071d4a58b1b7e46a","tarball":"https://registry.npmjs.org/@appdevshop/push-service-client/-/push-service-client-1.0.0.tgz","fileCount":4,"unpackedSize":5037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbatMUCRA9TVsSAnZWagAALEYP/2aYMov9P2hIjCWn3iCY\n9Ysur3IOyWXjWaMsMYd9i9OJP+bBQPcYZOUpGZIPeCNrJXUFSCxyLLAvhhl2\n/GTwRvfk7a9pdI/20Ve2J48sAppSBaUVCYB3R097v92VDFgERHsdOkzpL7HR\nD/j2A3WrKwSMNBJMTBYGYDwiEdtdAytQ3VM7RAWWHfrMZ+KF+RUQJ5qWPesu\n4ZpeQ/x+65WXk/pmdA3kI+j3Firpqv4vDVLuTFXTA4ovb5Qu6+3C4NkX0K5i\nBVc+W6WPyILlUuv+qqEJRJZLeTQ6BFTJXXIRXuNtxvw+rUFaagHoUOaJ75tY\n81L3n6oZMhZkSM6uTYFtTAxEX7j+f688xMqEhLdfRr9zymEFxueFp0IpSfq8\nGPmwmWywpJGBDi1kwkUfWoE05Gq/+EKQ5ttRBCC/Tjd3cZbqjl4tXNqOPn/9\nVmq4SNDqjvSY2JBCz/GEj590w1f3Uz6YuiIGPOFRs7nZeJ/BMTEfifIDdDss\nUfmQfFdsSHQ4vMJ/uKhV46G+XHCSrsOz3wLk6vVBruOGz5571xHJoi3mtQOO\nOY4VBWXhtLbjtetVpFvITU8AF6rYyQwwLasuPt91SQsGDnvHmmYeRKwwlmFD\nNO5G35sm695F3jo9CEgr2UaVy4esDyZadwLNmPobRLn0FyhsJu3RttVKAd4u\nb1N8\r\n=6WKj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8mCcANoSmG1FNEy5XvXnDhWxIza84jZgebuBfXxh4WAiA/ZKemFsCsaAO6gc7qtitRV1OO9H+i8vGIMJlziiv8LQ=="}]},"maintainers":[{"name":"astepano","email":"alexander.stepano@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/push-service-client_1.0.0_1533727508130_0.24951592157604896"},"_hasShrinkwrap":false},"1.0.1":{"name":"@appdevshop/push-service-client","version":"1.0.1","scripts":{"build":"tsc -p .","lint":"tslint -p .","lint:fix":"tslint --fix -p .","lint:check":"tslint-config-prettier-check ./tslint.json"},"keywords":["backend","SDK","push","notifications","API","service","firebase","appshop","appshopdev","app development shop"],"author":{"name":"Alexander Stepanov"},"homepage":"https://github.com/AppDevelopmentShop/push-dervice-client","engines":{"node":"10.1.0"},"main":"lib/index.js","types":"./lib/index.d.ts","files":["lib/","LICENSE","README.md","package.json"],"repository":{"type":"git","url":"git+ssh://git@github.com/AppDevelopmentShop/push-dervice-client.git"},"devDependencies":{"@types/node":"^10.5.7","@types/request":"^2.47.1","@types/request-promise-native":"^1.0.15","prettier":"^1.14.0","ts-loader":"^4.4.2","ts-node":"^7.0.0","tslint":"^5.11.0","tslint-config-prettier":"^1.14.0","tslint-plugin-prettier":"^1.3.0","typescript":"^3.0.1"},"dependencies":{"request":"^2.87.0","request-promise-native":"^1.0.5"},"bugs":{"url":"https://github.com/AppDevelopmentShop/push-dervice-client/issues"},"directories":{"lib":"lib"},"license":"MIT","description":"Push service client for node.js","gitHead":"b4cbd22c9ab8e90fd3e9fed261cef7237eb912c4","_id":"@appdevshop/push-service-client@1.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"astepano","email":"alexander.stepano@gmail.com"},"dist":{"integrity":"sha512-zj1fUBqw2k8wDmXISfVI2xsk/gV4aQAvHogD+nkWlA8CRR6CoODNK4D/D8RuXpXtq3KwXfCcQbWfgqAnARV5Jw==","shasum":"cbbf11b2df9e4095cc21888e37ba1eb268e0eeac","tarball":"https://registry.npmjs.org/@appdevshop/push-service-client/-/push-service-client-1.0.1.tgz","fileCount":5,"unpackedSize":6000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbatj0CRA9TVsSAnZWagAAC2AQAJJnp+5ssGSRDP0O62hi\nW5JkHI1IFKywSGtH+Eu5pMN2MElhj5FNdKu2eJviETyaLM50xqHxCLIqGTfq\nQPk+ZL/RtfNoBA6peyXsVEse0vEWaGPC4lNa0rfgADT/EbUHW8PaqL/L7sFv\nwuR+ObjgXGl6oetVnsjCpe1BdvcSDFW6+3aC+mjzP1n2n0UnYWu+yedRa7TS\n8VdEo/VsVaGFo5jN/jEav+CU7F3+gWd+UPwB2ubjq5dDjpnm4ft/fQXoIDiG\nHHrugGIo7N38Tdg/9hI3WKx36x5Una7aMORAq3fF45QMd4KhA4CXofpg//hI\n3B44o0kHRcZyM70xVazubg6ZUDlbozu9+y5nS3nfuf4WKBJ3HMirAiT9fVDE\nQ2iTqPGIkXurhvMGW4HaaDWtzY7H9iglq++y9YyYZ9ESzFH22DkqV63qs8Bl\npUfPJOPp382XwWjL1k17jNoAi4/xgbUVBiav1eJlSD0QIjQ9pohy4V08XR+E\natzztQlhvbwlVCuHZ7SfzGlWMm+KZ4q6U+n9HPgGRrb7hUTa3xSiRKaPMfxj\nnFWSrDGSqb4BV8yow9eHRWpmwBo5l2UzVe0Ykqqoc5udg7iN1FYdsVmqEYpT\nP37MV5EFh9/o2jlp16Qqp4a9Af7phZguoZXzZztMDc9yNRgPKJc1ida2I958\nfD7x\r\n=mriM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt9O8CmUoJblB/Ob8KMtXusuKOuMk6S8IgsXU1eeVqZwIhALdppeUauMq0vD0VtJF4kgbg+SjkSEFwxUOIAUpGZoiD"}]},"maintainers":[{"name":"astepano","email":"alexander.stepano@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/push-service-client_1.0.1_1533729012581_0.8316040943003777"},"_hasShrinkwrap":false},"1.0.2":{"name":"@appdevshop/push-service-client","version":"1.0.2","scripts":{"build":"tsc -p .","lint":"tslint -p .","lint:fix":"tslint --fix -p .","lint:check":"tslint-config-prettier-check ./tslint.json"},"keywords":["backend","SDK","push","notifications","API","service","firebase","appshop","appshopdev","app development shop"],"author":{"name":"Alexander Stepanov"},"homepage":"https://github.com/AppDevelopmentShop/push-dervice-client","engines":{"node":"10.1.0"},"main":"lib/index.js","types":"./lib/index.d.ts","files":["lib/","LICENSE","README.md","package.json"],"repository":{"type":"git","url":"git+ssh://git@github.com/AppDevelopmentShop/push-dervice-client.git"},"devDependencies":{"@types/node":"^10.5.7","@types/request":"^2.47.1","@types/request-promise-native":"^1.0.15","prettier":"^1.14.0","ts-loader":"^4.4.2","ts-node":"^7.0.0","tslint":"^5.11.0","tslint-config-prettier":"^1.14.0","tslint-plugin-prettier":"^1.3.0","typescript":"^3.0.1"},"dependencies":{"request":"^2.87.0","request-promise-native":"^1.0.5"},"bugs":{"url":"https://github.com/AppDevelopmentShop/push-dervice-client/issues"},"directories":{"lib":"lib"},"license":"MIT","description":"Push service client for node.js","gitHead":"80194dcdca9312bbbaadf8a5b4318ecc43abc635","_id":"@appdevshop/push-service-client@1.0.2","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"astepano","email":"alexander.stepano@gmail.com"},"dist":{"integrity":"sha512-f0cht2GrZBweR+MNx8lqc5lSp/8tumBpo1xbd8GHE9BxXD0/KbrRP7JIgGPZoAq0+nVFDpjAchRQ2MRDMIT0pA==","shasum":"39fe9277df644e4a6693d124982767b3ba6d1b98","tarball":"https://registry.npmjs.org/@appdevshop/push-service-client/-/push-service-client-1.0.2.tgz","fileCount":5,"unpackedSize":6654,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbCJjCRA9TVsSAnZWagAA2SIP/2+sHrRVZ/pwI0Z4XsZN\nuCpPVLz7oYOxmvEJHfzM9zvRKI0frcz9PulkImgFRi7IQ83Fg1Wo6R89HzyK\nV8N+DEaPSlnplDgE2tjvl9o1NTbGHcKQ+v24P7w8jz48VICuPBBx3Mvm1uOO\nPkZmQ9DglN64p50OlKM4oEwpXGY1Umz8MY710v/5JO81GbLH43P/1yTOHkIv\nJby9RcbaQc+cNQWtS035jDCSGtyW9Se5n1brSUONS4UtVd2GHLBVhDr8t6r6\nYENa1884PPo16Np+/HkJAvpFHHOFVTJucjRXPjicHGgnHLI6KON03q/ix7WN\ncNxK52AwGuDDF6OxLORsd3L5C4ev+OoniL5hEOk2heQTuyM0cf71pOR3+Tbl\nF34suk7kFcaYLwAn4wfiHD8ZB8OFXUFi+hLvh576RsnrAhCbvh3dd7Hu06AH\n667iq5naATBay0qTkj0IE49Udw0z9FGYA9/DkwwzzKUDqw+2p37YZvsZoqBi\nxg1g8hhD5oeIHUKoENaydYVF8vn7pRnRe9LSectdMCHTl9MrZ33QHN+9sQj1\n7JoAIDD1WZ9DWCT2sMtjNxjH+nQwG+clxOcrEwJf0kedJzdUIsNLks6oyLNo\n4Ei9SXpZFzYAoHGk2bvnxemqhzwWlMR7ypeusiaPQNgD52BmhpkvvGcnMNNQ\n8FlN\r\n=c/xc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjfpbJkm0Srn/tFrJ8FMd6/qIog4u0NWg3aK+ZePsffgIhAMNyBfxknnZziiaHG/HnjRthjoF8lCTJ6oK5ZEweTBsq"}]},"maintainers":[{"name":"astepano","email":"alexander.stepano@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/push-service-client_1.0.2_1533813346625_0.0752274953263139"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-08T11:25:07.835Z","1.0.0":"2018-08-08T11:25:08.185Z","modified":"2022-04-04T14:49:12.064Z","1.0.1":"2018-08-08T11:50:12.666Z","1.0.2":"2018-08-09T11:15:46.715Z"},"maintainers":[{"name":"astepano","email":"alexander.stepano@gmail.com"}],"homepage":"https://github.com/AppDevelopmentShop/push-dervice-client","keywords":["backend","SDK","push","notifications","API","service","firebase","appshop","appshopdev","app development shop"],"repository":{"type":"git","url":"git+ssh://git@github.com/AppDevelopmentShop/push-dervice-client.git"},"author":{"name":"Alexander Stepanov"},"bugs":{"url":"https://github.com/AppDevelopmentShop/push-dervice-client/issues"},"license":"MIT","readme":"## Install\n``` npm i --save @appdevshop/push-service-client ```\n## Usage\nImport package \n```javascript\nimport pushService from '@appdevshop/push-service-client'\n```   \nInitialize client with information about where push-service is running.  \nAfter that you can use your pushService everywhere.  \n```javascript\npushService.initialize({ host: 'localhost', port: 1343 }) \n```  \n#### Available commands:\nYou can register firebase token and connect it to some user.  \n```javascript  \npushService.register(userToken, firebaseToken)\n```  \nYou can unregister firebase token from some user.  \n```javascript  \npushService.unregister(userToken, firebaseToken)\n```  \nYou can send message to some user, using ``` userToken ``` that was use while registering.\n```javascript  \npushService.send(userToken, {\n    title: 'push title',\n    body: 'push text',\n    payload: {\n        field: 'all addditional info'\n    }\n})\n``` \n``` userToken ``` - some user identificator, string  \n``` firebaseToken ``` - firebase token that was send by user and generated by firebase  \n  \nOr you can create multiple clients for each service:  \n\n```javascript  \nconst client1 = pushService.createClient({ host: 'localhost', port: 8081 })\nconst client2 = pushService.createClient({ host: 'localhost', port: 8082 })\n```   \n\n## Links\n[NPM](https://www.npmjs.com/package/@appdevshop/push-service-client)  \n[Push-service](https://github.com/AppDevelopmentShop/push-service)\n","readmeFilename":"README.md","description":"Push service client for node.js"}