{"_id":"@salesvista/client","_rev":"47-4a8fdcac72facad7fd9815e7c39a987a","name":"@salesvista/client","dist-tags":{"rc":"0.9.3-rc1","latest":"0.9.3"},"versions":{"0.1.0":{"name":"@salesvista/client","version":"0.1.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.1.0","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"85fe8553868668e2caa15d796bc70a4747597e65","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.1.0.tgz","fileCount":10,"integrity":"sha512-2+eNz0xvymxOlWd1e7MPQcIsHpDJ+qHeaFF8dHas30lzAoeaHw3qGp0Fl+hRJtdqlruxzBHupKpn4bkt2sCEFA==","signatures":[{"sig":"MEUCIQC/k5J/tN20ePYTabiBscQdUsPqzJ3ionQftIaH65JjmwIgXn+TYcFSP8bt4c/WDW0QHeganW+2rW0Kj7AKVwoyU3M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdI0wsCRA9TVsSAnZWagAAYS8P+wXOLSQNeQSXqhg2dPlY\nJkXrp6kMLzUkOtpNk+3pB0NsqnX3iUqKetckl/Kpq+6g0auSPxnfvJjFMXFE\n4H+C5+oV/e3yMnQvHz6aUQaknyudzd+WPrhZHyahvkhptVZTQAoHh0OlnANL\nMvKR1syCZ8RbefCBoPFw+P3rvcBCNC+gEuX6bWjSY9+IdBVGfn96jbP30rJg\nV7V0yv+v5wJ5GW4wpExtCTTurp4O9cuLYOxOMKS6p97W4uhbkvKt7mDXiCPe\n3Xh4DK0ygGC7St9uXfgNdXge6B4l+nDcF6htJFXQ4T/ulEuSfXO8btMMrS9y\nQmwBMjni2SLAtFMFPgj4sl7q8WKuBMFVNti1yUkTZSrlWk8j7hMSQjtMvGcP\nZVcXHD1XReAsECnBSYd1y97Z0LEv8nlgp05xBaYF/Z4iBZ+Cc39QOlcM2zie\nudG+r58TfFF1HNte+H0vGfzpReKwLu3rHIhT2i6pw+U75S16lezQfvKQzUCA\nrAJHKHDmlrAwyzgB9KiW3SCIThWZhXRRiIpEDSXP3rpDHXa/ZnzAufsqPNhE\nsASCdjfYZzteDUPA0z025qM+oUMre9eNTmF6Z2hPPliS9vdI3eQ81yhwtByV\nC4/ZhUR4PTdI0VI1ZvqPteiSkKpW+7RR22Q8yUbe5dZC9Kxjo8RApy5IBmxN\nurIc\r\n=CeCq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"13d6e0eb61845f9e116a4605fe56585b8eef372f","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.10.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"10.16.0","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.1","ava":"^2.1.0","standard":"^12.0.1","coveralls":"^3.0.4","standard-version":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.0_1562594347745_0.5817975034037528","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@salesvista/client","version":"0.1.1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.1.1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"c8d570ba2e35a4cb5a5347e05c8667ade8612f2c","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.1.1.tgz","fileCount":11,"integrity":"sha512-i6MOr0P+pjtUNz2plM+P4kuWk45TtnMYv5z+e4nMCisGY/SbealIIgZwZfrWqwz7K/BZQKeQ2cI8J4jt1U/a6Q==","signatures":[{"sig":"MEUCIQD5JKKcE12YdaHeuWvU9Xgl4MzB8jpAMzHs8CXx5J1Y4wIgReO+qg3A48fH64IDzKt+dy4dDJXc1klcxD7vQS8rhbk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdI2ixCRA9TVsSAnZWagAA5N4P/inBVmWkRVy5XyyAwnzp\nj1UILJkZmR+GPsA/gDBd1rSMmb3iC11qa+qI/D4quaE1tkgjleqJtx1xCJrU\nW69bB2lsxUc/1rnUtcmodygriuWgO4gjFHthQt4HEDz8FVe1+aCS8twGoZtT\nEvRnIe3SidRQhB0u/QXTeRT2lt2MBvJDy3IF/qp+hdANWv+xfCoNMmArVJS7\n5iV0c7uOK1UzB90CuU+U755vWPgOra2TlEJCr8h/G5C0e8zwDV546TjlISV6\n/ufE0TmWnIM6WnEd3QIPOiljex9NFX4Qo4oeq3JTSU7fIHk5z9q8TiVx+szc\n7DNFL9nmDmWJkInwwUdbV9A9KvRsPjfGruSdfkRERWaRXH+LGKFXjl7cGH0C\nxjsobtyCNHj4uNIA6hSohIiV6VELHRjALlGQz1yKvxlV7ynMhcXYgRHam6EU\nCYRQipfVj48POM1ig+3P4IKvT4Oobq171aEzO6TdBzfcCmo7tKiCW7MTMtIM\nPsRCWyehl5qrVqVjiY/jzh3QmpJd5JhC5vnjRabpF8ATM8KQkf7ra3QAEHdN\n6xwjVvonszaMTaEcF+RwwjmcQDph6f4Kyc6wnAL7G2NzLNoKWeLoSbt05BkB\nyKjXt/C7//178+q07Du/QCR7q9+qYy2MIQzSNxi/Xgr+GYltBbd2w3VrB/Mt\nph0h\r\n=KcFo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"37cbe0b273ca50b6269d5fcbb0e85ae7620ccef8","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.10.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"10.16.0","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.1","ava":"^2.1.0","standard":"^12.0.1","coveralls":"^3.0.4","standard-version":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.1.1_1562601648491_0.37670985255881506","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@salesvista/client","version":"0.2.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.2.0","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"38b4a4a27f5cd364cd1b5c311f5ecd110487705c","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.2.0.tgz","fileCount":12,"integrity":"sha512-2MF0qgApTPOyJRi6MGZRinfI8QjLaFqErH7HB5dqBsjrSdMIwRUMerSwvt9YP3C9615SOSZIzNDCVqMopMIKRw==","signatures":[{"sig":"MEUCIQDMHA2EmbFGvfvgmYizwLPS/YiR64RNa1L4vAh+uluJUgIgAtwGziAxz2FeansnTiipWBSXLM4TNya63pLTIJF4YAs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQwXuCRA9TVsSAnZWagAABzgP+gNgDEa6jDBv8hfOZgfS\npO5KfggZGU6rLEf8joGzztYN6yl622KPL7BggfHDsO/N5yuA+x0GTFlCKeYi\ncdyxBklc2y8ZDLUeKXKQTtUrrJcVXHcA9YQI7Y8eYI3+4VVF6Gzs00mEMZAF\nIYeQnGKE5sTkiDd3Yunc/h20ucdpXvjym5un5cWH/VOvlYY34C70PdqOpfbV\ncjvEVaBSuTNPOpu6NU2rd/zG0uEqCIYOt5HVLPAvhbaP5lJCX81tYdEWc2k3\n8M/km0GYiElP4LDR7uRgWOy/rNmKLKIdONDb2ltGn3vmPZL0xeQS74bUzJDB\nxtlgJgpdMsTHeaBoGUCg0grZzlxwyHgDKJQ1DbryqTCFXj6qysyNJcjSAJZq\n3F6QfhGuOVCiSKTqCPnWik5fO0nH+LV0eVTyZJKWvL42ZippKrtSAkwqdNzQ\n2PnArQP47O0Xv1v7bHvBEjJ3rikLAEwl/+Kx4Uu5iVu+qm+ipJwu0Qbz40Vp\nK2+bBwnxBRuDAjrpb0SBuc2RmczG3ypUqGI+8Vea2/I6FvplafKEEWjpRP4R\naaG2TdcQ0RwBQao8WWlfOAmJ/8lpycgixHgv0z/bsI/CxlkMmG4vgb9j5lnV\njRwOrFpk2/cBT30X/m8Rvq3SPOyDYkDQ3USqfo/mShWUy/mIdtP20FeZ8Ztj\nqQmr\r\n=nfFF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"e140f8d605590fcfc9dd867d70b0ad76130f6254","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.10.2","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"10.16.1","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.1","ava":"^2.1.0","standard":"^12.0.1","coveralls":"^3.0.4","standard-version":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.2.0_1564673517905_0.8716515367646986","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@salesvista/client","version":"0.2.1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.2.1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"59dbcdce81c83d0da92d732f845485d8bcb1ba2a","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.2.1.tgz","fileCount":12,"integrity":"sha512-oVScG0nl4YDzeHtK9qaXSesPxZmMqwXdQx96jH/UEW33P33iKR5uT1A4c9uWvBCD8IkLJwpvIGvhUhVZILCUqw==","signatures":[{"sig":"MEUCIEaBUVZ5bpIb+Fj155SS58NGRUngyvKy/5FSySgWXCOVAiEA12wxnCXcrMldkmhFvKBFu9P4OmAW5+j/cTNO5RtFyAE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSZ9VCRA9TVsSAnZWagAAUoAQAIJZMs8dE+XVQULhRa99\nn7b1hBDMcKj2tW25Jrqn0/8dF3dvi77nL/lSQfIJRUfKa740nbYKpKQ9/+Cj\nwOz201s9ALt+0OOUcEqd6PRcSUAsDwVx/MuzXVYuvdUmNUTkvy63gTuSbswU\nA3XBhIV+eeYiQAbp2C6pqzLXLWyQ8/WGF8Tdt/ABwQK0bIrUmdm9tLtOi0oi\nQ1zK27W05BXM8uPqZqRaABTMD2qqi0PDnWy9nrGaAJpR4YyXbKwIWX7IUhdS\nbQe0qhF64E78JODXD2ixaUqiPc2ACLQvWzsTf8vWNdoHmQat75LE/Wxq1iuN\ntzmq5HzPDuq36i8kp1kGiegfSxgJm/+bEUKh6e+bkdVs7tpQysawRpgSQjNr\nao62eLN0es2hRldDxoqA9P7bF/crE09vhDZueBTJk5GkBy4s1erO5Uia6o/7\n7J1ufxyTQz4XsabrVp/g0ABnI50AmzU/q4h2EeHxddoB7L/gEIWgdkFNdagd\nhDkdyvpV+5EIfUOprPiqwxQsF0oiA1BwVtR19VKgvszcSRyA/DJLgSUK+cNK\nz0oXIKK234HvQvUk57hyAfpmV8Cgv0jay8EPYX+jmAycb2Dca9LGKEZt12xQ\nAgFr9w+L4ZhqDeJBXGgePWR+9wXNcFCdUqtk9kZdJEoNlfw0so8U43GXEaY0\nJOrv\r\n=WBDS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"62a82c627ec6a2c2c9bfe3d7ab34762a3d3d6a36","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.10.2","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"12.7.0","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.1","ava":"^2.1.0","standard":"^12.0.1","coveralls":"^3.0.4","standard-version":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.2.1_1565106004813_0.10080504234303822","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"@salesvista/client","version":"0.2.2","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.2.2","maintainers":[{"name":"dmcnavish","email":"dave8051@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"90c331b4679c1c73172308b3f14c8ec087c08276","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.2.2.tgz","fileCount":13,"integrity":"sha512-n6wu98kNtmg1+/JRZy4WvjeU1y0Ute1xjDlQABmaDQVEipwXusi/fp7tQBbMSTDofnoTjB8r6MgJWgTCpyamDw==","signatures":[{"sig":"MEQCIEN/sUzSu3y20iPKt5Wojn4gsOdnA/65d5VdN0/q5XIIAiBCpGoyjOyLUMCt+EKgRYVmnyRARwJy2erXap9Pilg5fg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXVutCRA9TVsSAnZWagAA1mYP/2UaCevMvZe39gDoZMzd\n5zlmkmV7POJASZoIHl4CZLKMrYRo4RAkAki6nh/FobsuvEm7+YPhK3hk7jdr\nJpBkrfaQ1fFTsbXtjiaMO1UjSKczu+YPbJpGnzXL2FET6BvXVpwcjr97Wvri\nQsI3NgvnLF4C+x6rEjvo5TiiRH6itao1HM0RkdgF2/h8FeiGKLYGpi91/pzV\nFiUZzI2JsWV89hA5ROkopk2Uq6woOQiFL5asEmJlApCgnUYr7UTV4Mr1T7L0\nw2cAeMBa1dv4giIqtjMmoaXvCg1A+ozm5snTlz/swRjrzk0yp0RdHF74xqHF\n+MxS4wbij8xrjVn88JL8k/WbJ5h/h/zuOenmpzp8J/05NLG9epfIjbJaNsWz\nmGbfpWDvPfOMc7U8U3c3r4RfuGVS4Y2t9R4T71is3OD/gKhzVZ3MnHO+7d/j\nI6hO/xVaMRBW9FHbIn5N1q9B0IPghfSwKdeH9TeLh5jr42frPspkMvuylMgI\n308AI2WsQdqU6EFYOZSzBDHGRnPzbRWflaUvWF9nPbBC7rpRLxQhY8qruovh\nXRklpHTsjV7rrjXrJVFmTsXQDIqmo+61hpWrt+CGiPYasXrBvNoTEwfmuQXv\nuRBEkedajNfGTZ42C3XSzrnngIOVT1J/9lK+FahGnn3FDJr0FystA07ayuUM\nq5gv\r\n=stzA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"9eb2ca4ae4a5c3db6b96a28a07fc48f67979d81b","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.11.1","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"12.8.1","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.1","ava":"^2.3.0","standard":"^14.0.0","coveralls":"^3.0.6","standard-version":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.2.2_1566399405015_0.6925968019957527","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@salesvista/client","version":"0.3.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.3.0","maintainers":[{"name":"dmcnavish","email":"dave8051@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"3270c7365d5ef83151134c1bc04dd379a180674b","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.3.0.tgz","fileCount":14,"integrity":"sha512-iDj2VwqCG4IBBli0Qy3G6oHHtEijXr1OoDNfI2Fv3O7pQzWb6NWvammrrlMyY+yqDvEERpGPXgMW0eaq/pNwoA==","signatures":[{"sig":"MEYCIQC2cS8mZKq+mnvBZUBEUue19MzelVf3H47dRorUk65bgAIhAOJiiFsNw0iMYv/khyKIlBbqNXysBpuasHWbVlOwXQmT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdr218CRA9TVsSAnZWagAA9pEP/16BxU3BqFAN48eQ26dy\nH5K0/qAdlvrRtttCmMD4H7Ywh2eAnirAw1GzAfOas1bzmMRmF1wFJ5SoPbra\nxizJULXA1QCFCQ8QhiuPDG3rcnTqlBhwagow6TGcRscJdB3/hYCyZWcf6BCQ\n1GlsY+JpIieUwlTzPnFpo4BcM+akv0C6ngWd+Ip61xouqN+LMQz11RRcXxfi\n6pGDsZt7IKZZNcHsNRt2bgsGTpbAZPvG7DlcVcUzkYvslofL0BEjb+U9EEeA\nZ2aoccM8z55SEnnaZ+w0VTSo9UY0UZSRFEHPyvmTf2iKtCVDs6rnwpqad1Th\nrraedT2GEuIDjnBmImvkAStSgQNhu6D9AVyo8mnO69sd93UgmWw7HaOCY6Lp\nW90tB6IsY/iuLd1307mNXFhKJhKu/NSXGVuEDbd4Qgrrvy8t8BXZIWJyJ2Zk\ncUAS4feUw9F3DCESLmbijlqwVLXeBFjy2/WGOBI9Djs1kbYirf9yTSfD1DZZ\n2TSiCIP+g6KlnuX4K5G8am/Uq3pB1x4rIklRbVLYCHvGk713FReVuBe74ozf\nWVtFZG25a4aPlAUZkqNd/ANW5czkKrsxZhdZ9JJy1KQde8zG9IRQp8I04b0Q\n/k1AqwCETiAa2tlTEWrktA6TMXr7VQ1VfAbpAUqKqbILCxsMSv9q2Eweb25u\n9JYf\r\n=nWbP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"3d39cadd4da6352ee54f3eadff80650cf9fe8837","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.12.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"10.17.0","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.4","ava":"^2.4.0","standard":"^14.3.1","coveralls":"^3.0.7","standard-version":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.3.0_1571777916155_0.8644675845260081","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@salesvista/client","version":"0.4.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.4.0","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"34c248da26904b076c59924ef9862cc02ab8e33a","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.4.0.tgz","fileCount":15,"integrity":"sha512-iliooeeMqc4b3CvA2QzpUANXKJNaZ8EeDRcPYukBrcyYbCd4j2CzvpP59X6biYflIQ2kn0u4HbPXgiDsl9YtcA==","signatures":[{"sig":"MEQCIHnViYVA5rLqjbKwyjo8CDPXel9gzbL30n5s1PAwclLdAiBR83fbxRhrvm6f8XREiEj5gkf7vPDiWvF0bp6I9KrOvA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIE/PCRA9TVsSAnZWagAALzgP/0I5ystlDUoB8y+idJBP\nAKvdP1eVIKoAZDpGCYflLpsmVevdEk0JnB6/xdYINHGTjdTqSDQMR+getjVj\nac3eUwq+AmEKmGA9J3SgKthmudPHr+oVtqLmCSRf11clFz1UA2TlZgnY7Bky\nv4RtoEduPhIWBaG+ot4/Wo3c5C4Qq2tzXGT13TUFZFY48EpWlezGTk/t1emD\na64OftUaPndX7mBV5UV6aQDkxt4VG7VTOtVLE83EeAxLPAu4wA0Q7/kzQ04k\nxyq2md2NxflPYQWPyHKAP37IqqYXmu+e3QT/lyg/GeQFM0YE144bwjHYUyRx\nP1FQ/tJqfWPfj3XNrnqdbAQM7qeaMWEOV5huGC/TJmH5Bn2agSH8jzxQpuBL\nvtJNlI5ZsxcVCQvrRaHRHFM3E2ErdMAIJMZFSVq689FB4AUCiNmn6QITi95H\nh6qqYCZpSJjPf7cwX5Mr8tltgsh4gE8ZVxXbaPFW4O+WldC226n8rlY7SUPb\nEt1dqUkVzKcCajAhtk/DFSficNuvy4c837pbLXhoRHQQOu5gdD3iGaJVTIDE\nxZ8dRzUYr4dyZ+wbhxgLDf4+iIWxxteVkbPLYmzl/zcDXavyI4OflsyWcy4U\nImm/sD9aIZBIIooEG7qLb6shAHKBO56AySm2Cipdgka3bguBfcVpfVq5fwcL\n/pA0\r\n=ns50\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"b2570a50df01e93c03022851abc71b2a2e90fcf1","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"6.14.7","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"12.18.3","dependencies":{"got":"^9.6.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^5.0.4","ava":"^2.4.0","standard":"^14.3.1","coveralls":"^3.0.7","standard-version":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.4.0_1595953095484_0.637290339533283","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"@salesvista/client","version":"0.4.1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.4.1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"8fb4dd4f5718206e3da650c4d78eafe38d7f834c","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.4.1.tgz","fileCount":14,"integrity":"sha512-/23tyDfZgLatEEbZUcYWT58tjPlre1EQVo9jCmLVFtvxarABvVKKbwaRbhFXaun7UyrS0c+OS2YqQyI7oR64ow==","signatures":[{"sig":"MEUCIFkVGOdmAXGXMvD1b25p+5OWJTybvKq8cTU+5C3p8rDBAiEAucN+Xrgh1X70XXHeR1t0q9Z0yirV5DyfElxcGXu+hH4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHsF1CRA9TVsSAnZWagAAyPEP/iNlCjHvXnh12bljIZE2\n9XrrxuJ3ji1t/pN+iQvPHlbF2VPJHEQ3XzKNB5W1nzFW7ZEAJb8ObCo3hv7d\nSexs7P84XWVbc98o2FSov3d7oe2WTX4LAhfcypn0ffwKBkwUzMZmt9aqieKx\nU/aU9t6BegrOdNg0ahwhDYCX7h5bIjRyF7+gJmMaWWGasLbGiqYvcdqAMSsH\nsPsvyoW6UdqZrqAVQ1NRbFalqP7CtGld1fbw28mg8V62VAuxQsjwf7UZqa0E\nCPhcK5cy7wArKuaO0C9eLqNIRmZXGQZMOHJEeY3UqC+1iH4BtbNBeEPM5MJW\nXV/nBEqOa7olWK82pGUJqTdJE2h0YmT9DKh9Xl85r09QckRoeotbubfszFnr\n9nSXrIBBj3I+AJDJZYd3fpCYrUIea/NyHKDw7GDVTGgU3Yf8Gqtn/EyzZw6f\nGKw4ZZtA1UdiPsik6iuSfcPozN+sI1pUW0zwukaB16T5kc6a1VB+ZjpqofmD\n7FK4Mfl4DeqwiMeOtvzuu13UMe8wmrxEhQtr3W9lVXD+Ofn4OmGmmY3F6Bak\ngFMSxuvyKb7IiIVOe0nGXSz7D63lL0HQ0sudRXlzR++vvu/wB/H3hcj+ATLj\njKhbOHWCyv6wGrGDBsFXXWAEDGRdOA90OOlu/tvqWrY1hv3qXpkSJF0HtvtM\nAuo4\r\n=NKvM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"7a6379e8ccf989078d760d780eb92fd58fcec22d","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"7.20.6","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.17.5","dependencies":{"got":"^11.8.2"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^3.15.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.4.1_1629405556878_0.5642415861692769","host":"s3://npm-registry-packages"}},"0.5.0-rc1":{"name":"@salesvista/client","version":"0.5.0-rc1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.5.0-rc1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"44fcaf2c68de16a926719bb0ab5e13daf9a1ca85","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.5.0-rc1.tgz","fileCount":14,"integrity":"sha512-W9/M5Zjxo4MIcVXy92oCRU7gIMzneuyCPwSEcE2H/c845Rf+mfBeGnAcOe8rtB0nWKinnPjvm4oPG4H8Po3WzA==","signatures":[{"sig":"MEYCIQDjsZkw7UiIxZk8b+IorANChZm6IY7JI80BiPAFm28HuQIhAKXNcA87GTalQUSTvXxWr4oM8500m26Gs1shAQ6WqvxY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhK8xjCRA9TVsSAnZWagAAm0sP/RoFGs1FLMRkA+IsIJes\nrNgwu+j8nW68vCIJHu/Df4v16UzBmK7es3RbkTxlL6uVrozTmiAd7IoMPCiO\nmIbH97Q3gLFJorf7s6+yxmwvoOua/U2HCToBvZ84Veh1UU23nHEVdz5kXQ0p\n1hGbvi/c4Uv+XHE4ex2bYA/PC7aw2Hp29jH7eYahrIZb6BwzhH61kLHu3NoM\nsmryfgD4hvNO3iHiKuzWkVOWRV1PyPsCol9ZnHmw/CjZDToAmNhWK2BWJXXd\n55qdzOV5e+UFD21JTCd+K2CN4fu7rFvq6E4L/lyhBcNTgDh5F7SmiCWIXtDq\nK/O6rajXvamS3PyrO9AH45+10LD1Tok2x+Qatm0FaRhGh/cUbaGD+bFmVJwS\ndwGYne1I08mY1JD4d2VpXL/8ELaop5LYHWJvjR10DSUBRC8YXX2x2kP9kV2M\nkrxq7J3XsmMRNPUeZZ8g3ngxm06l6BwaVV+NcknwrMpxAHLFS3fMVwBQnj9M\na2dm5GFCs0bkmvXenLXQQhRTeXpXUDo3wO1h4OrfPm5gPgpYDeee2fO2oSfb\nWdF4aNwbNj35LYaO+LigOPagbh4soE0+t6n3m0EOjDgR7W8mh9wVSe7hZwMf\nrdZ8+Y+T3RMmGkS0AZZow1G/3e7O/UDlQAtL0uAG2X0PqKuvmNs5vv07F0iH\n3QgI\r\n=ZofP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=10"},"gitHead":"fb1f3d700adf9e39222ef4fbd27ffb47031919ee","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"7.20.3","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.7.0","dependencies":{"got":"^11.8.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^3.15.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.0-rc1_1630260323812_0.5296061391698044","host":"s3://npm-registry-packages"}},"0.5.0-rc2":{"name":"@salesvista/client","version":"0.5.0-rc2","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.5.0-rc2","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"fe156eaebcccbcf87c9801f59ec407c5d0bcbb75","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.5.0-rc2.tgz","fileCount":14,"integrity":"sha512-RHmgCDP3ezcIWQCZmMicSoEsi0tJTYlVKnw+yffgMmDbpENtrDlv2gOUJ9LTpZZM2Krr7XBjQJDQBtyVLjT7VA==","signatures":[{"sig":"MEUCIQD9sw7G6L9aGwPLMZ3XZ+GSvyAf5Tj2HecEdAHBdSmXWgIgPPrZ/G3UFiDmLfOAVKfLBvT6+zIazNg0ROKqSUnCUlU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhK8/1CRA9TVsSAnZWagAAdu4P/i6iYit0CMgBiVAwGqZZ\ncIxgM9MW5ughaoH9jI6tYHbgJy15HGyhHCwLfD622OwjEtfsSaqFmaTh20SZ\nKAFRwUDUWUDJZIfII2anpbb94CRr5UKZ/3a70FjWbKo5KN7RWUUO/DBaMX37\nCBQElsRFb5ZWnUJPPTUFkGM2vu6w0h/INgqbftDNeNB9FIVh10lPVlxBWWhE\n5o5cKqAqnmTcV75g3L7/VX2JTi7/kEBKdQky/i3NQV1sKNxwGhr0mnLq5iDc\nUhvp9FsrO0p5ygPDbvf77F3vE/GtTKneFPRALWMO7lJSAvKVkaB+ms1LWu+j\nomfzprghN1lXNag8VHFrAGtalU8gIU6K8XS2qzysWdK8BOxLY77wZKIe0ftg\nLUKScEHoI+3/wsEsmdk8WcD7II7noMy2PUBW/fl6r1abbq6lPZjpdPTxt4WD\nikxk9cK2qnpKKkCGuRr9SlTmbDOq50juADN3Rx6NSjhB6MpdMVG/TV7IFRBd\ncWqlP2F2DRBdVvMdHfiSKyDhes/H3+ZmGdFUKmH7g29RyXqfzG1wqD1WwkCk\nQtltuaCI3b1kDxwlJF6wTiQL+SqNXnOxu866bHFW2ADdt+MjsTiSxXczR4uj\nHg9KkUA48GOTCM7oSPaG1yASzjH4Y1aIyC3Ls5DSDnj9sOMWGHTaRoQ837FA\n1DWj\r\n=TQEI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=10"},"gitHead":"786a70e726b5771e572d64456fb04fedbb7fb4da","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"7.20.3","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.7.0","dependencies":{"got":"^11.8.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^3.15.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.0-rc2_1630261237776_0.541508713875311","host":"s3://npm-registry-packages"}},"0.5.0-rc3":{"name":"@salesvista/client","version":"0.5.0-rc3","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.5.0-rc3","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"bee8047b267b6a3fb0d2d244cefc9eb2e564a3f5","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.5.0-rc3.tgz","fileCount":14,"integrity":"sha512-QV+kjUd8m2UKLu8RZfm6O/+hNL+AXBXdnwPX4o7jrevaPCrGYiB6NTrnmZPV4bwDI47Xe3KOR4o0noO7LpZ+bA==","signatures":[{"sig":"MEUCIQD8WH/+JpM7plYsaQjNM7quEy5+yXUpjw5xrXz9x79F5QIgdSJssXWiPJ0nzwHdsVs5k3fnGo1IQz2rfZTXeyi5Gio=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhK/zOCRA9TVsSAnZWagAAbnoP/2DDwnUXGqQppzdvj1Ma\nuG4wdwhPqbonw9qoDviLgsd7Y23lQ/tt7IT+LRf3d2ggfBS6ege95XZbBQfT\nnzbL15en7R8RueS+O/yyyk/CtoaeMqIw0Diz3JTHGeeG89x23McTbavumVut\nG2vEaNO9Id504SAW9fCyeJFUbV2wV8mXX0NKlRR8+kApp9EVOccFrJJsGnnT\nlT7ukZ9UPHfckwRZ/8KHGqnTDLNx6CHxAKGwKUOlrKMPVwIQxOZFwZfRAxtp\nILTDGrxJSxx1FHpbsdS999ssmb3Mt+Rh8Xb74t0PsRRsymrtRs3EcmTtv8ZW\nVzAQcnhlZZAxRHLlHgyiZOX6FJ3q4SWSTU8OhchnNRge3fx7DP82uNKln2qI\nhr+4exXUaJBh5p1t9MKLqjNc4cMNVMrrDsgVlNkpMF09xeEjxtu8TUCYmZrB\nEYw1lyEKmYPRWe925Hwgaqq52aU5qAPgyjQDRVsSumJ2o/01ctagtBx+Tx+P\n0DX8CjBZu+arHM9pvlGt3JqNGfdMoh7rJfSdb75c2MauIaKUh0aS4iv7vI4w\nJgzYlnc/mg9OejEzexEbXrkoMj2hcBWHPtIRXoogfLfstupqoqBhfLZ8UkxX\nDHeosdaFjtCoElt36qq/78/jNocrxeD8PFEzfxh2glLqXaTF1aA2iD3MWhTB\nkMnC\r\n=mR7f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=10"},"gitHead":"34845447f6389f23e804ed13e7ffab30566eb6fe","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"7.20.3","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.7.0","dependencies":{"got":"^11.8.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^3.15.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.0-rc3_1630272717919_0.570310345607794","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@salesvista/client","version":"0.5.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.5.0","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"ec727eb2f531ac737bfe6d046d2e5d616d0d033b","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.5.0.tgz","fileCount":14,"integrity":"sha512-ZAvn6QVyM1hO6r/fShfHRWH+9lzdRhYny3yDXjYzjwrQtGkH+xvFvPUwSolBpc0/1nubpDrbuWW9hv2gGw5FLA==","signatures":[{"sig":"MEUCIQCUgNwZehB0XI+5pqHxkUnnbmirbVX5ljV4z0DWijcfnAIgETMeXzQA8n4O+DVrLk3mp9NhnU1yFKB4iXiL4ozzidU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMTHoCRA9TVsSAnZWagAAbz0P/R0QxWXaD7ivbITj2ONz\nDVhugkiAW3qY1q9kM9egqIdrgkbzs7WQD5/kfGXfcTVvEkw8CBKxOoxAi/Ga\nyBCmQT63WVyvwqi+ACTgfRGCPIQXI+LfJUv83XltyNcNwu53PCMtgRgw+Cta\nh8FtNXr5BZxvzYOmmLK9+VYseWzkRRBfUqTTGqfFk5xnwgE/0cbtDyDYnAy/\ni7g+QnVpkdn64N9v9uPb2YrlQOMLcfjckOzR8xfZ6Q28FA18ey7UbVdV9eWu\nfV7ujdwHgdw6OGroMmmK2SFlSLwvhW5FIHsIUihPaTenAHxaxLN4uzSB90WJ\nj8nqt0R84KLvgei5m2dWLc6+WQw3IOPv2fcLAXP/vEQGojPRF/y6N0Q8gvs4\nygcGPqQpYQ+ZKtRhjAU2Qp9mMl/YdbO8ZKXAHhPDSOx/qb+vU1VRbL6YFNEY\nAqwl5TPOSobrkHQC6JL/XjeLNkI8mSPNFhirPdKimPosJeTO6rsl2jSiwm8U\nI8FoQWXvL9f0GSR0NrzBS5vxWsRJMylXa2zbaryGrRTgqRkSX0SxLMfe8CG/\n2M0VTTKavYFZyJ4CKsPAM9YfCy8Jb5BWp+5PlCXD/STFkUtt+7EhAy89BvIW\naPy1C3tbbqdaxa72DnPzwQw20IwWbm9o/8kWXV5mxtiOSdnc/rdUIVlTMMJL\n0kQB\r\n=Y6T0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=10"},"gitHead":"0f23af7f411d434ce75a68424fb9c2315e8089f7","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"7.20.6","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.17.5","dependencies":{"got":"^11.8.2"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^3.15.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.5.0_1630613992601_0.037606693880306574","host":"s3://npm-registry-packages"}},"0.6.0-rc1":{"name":"@salesvista/client","version":"0.6.0-rc1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.6.0-rc1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"2b67a688752ccfb2b92ebc493510db3c6b1b7525","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.6.0-rc1.tgz","fileCount":15,"integrity":"sha512-kLT+/00Jn8bqfKflVQVhG0TmWhFXGobsILtn+EAEIpmrKsxSV7juSGsHQA6SIQr3IhU524uKnCoulxXh3udUdw==","signatures":[{"sig":"MEUCIAILZ+GJaoIiM0hNzBK0FlL7eP1tGrlc30glNf9CfZUIAiEAvNUJ3YO3cOy/L8dqUJehXJbLi7ESYLETcCPB10HQ5l8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh11icCRA9TVsSAnZWagAA11IP/0/gateENIM2q4xI9kr0\nl8Q7XD2D0Mv7+eK6J24dcezm1GjSbZ3VfbY9G7Jr4vE6iFG4eYqdrJG8Sdrx\nImJAApfrolmRk/XO+26VaXpw+nQDl+geIEheygfqQileADQZWVN71L/I5I58\n89e1nStICeZqZQ71JwyGnZsFwzkYJjVwQupMDYDrxPLrdt+lcU3vkdZxYVDx\nWI60+w6mDNnFdFZLnWhUcLePd90x4C9wn0T9vDYHRgMxmRYaWRUw3T0in1MC\ne64XhUyXQViTlHMnXj4B+J01eF+RZji9eMJIJZLmEpBb5W4trPm0Zg/QlKwc\nApv45P0uZU7/iywEuUcUQohpQNGWFYiHuPSeaJhdwTxe71l6X3Z3HfflcCWs\nzqzPI5JKm6k+OEbMhoCFPkSK0TTRuiSRnC/7lv6KNk36pCKbGpsAdIKFsp4f\nsi7pRuAdk/37SJ6/j+YxWy8QqTloqoHF/IN3y0Y0yT65YctAYLbF5L/UIjiM\nq0OWScdfPfcwNw7+DoOAjC7paVNySXItFH5wmQNEEpsq2zgeBG2ec5e/B5Es\nsv/HgXy9gkNfgYhoKP+0wD8ZU+PGHPzKPbvFPYdgQb/zUsgCbJT3lXjirT5D\n1xcXCh4rNQZhAHpabSojyr6Spm1p01CJJ/A+ktDryg20l2jrMffcFqUKxPRs\nHONq\r\n=Pzn9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"05a75a6e5bd9539cd981f876f26cea807d68721a","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.1.3","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.1","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.6.0-rc1_1641502876678_0.10280720455944214","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"@salesvista/client","version":"0.6.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.6.0","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"7763f35c31320cf409b0c46ca7fa5db2ad322011","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.6.0.tgz","fileCount":15,"integrity":"sha512-BzfBMgyTUOjuPPZjM9fnUMho1sPgHouf/trdEGgIqNVxiACpwEzzkHEyMU9gPFlTdA7lGHdUY6qZFRwtMNOzFA==","signatures":[{"sig":"MEUCIQDj31fT8maDXxhQY8KYmR+SvXwCfmMdiW7zALfFEfCFkgIgEjT0F206GQAfHGu6Sa43sP5OpgorWRDlrCNiK/f6x/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6edlCRA9TVsSAnZWagAAzHgP/1Dl+3h3+gpfF/bX3Z/q\nn1dRUY1WPxClkIEhjj/sEX9QtWSRszoa9bRQvgC5g130NoTwWw8U6ioWZrAt\ny/ITLc+MMbk/SrxYhZxgPsLY8quv7lDqpPpuOB6yZHUd5hu4OeRWklhszihP\nAnE5ZuRGoxYlpHWpZa3jzfsxbE2xy7wpEPsOjHmkdp6XWJT7/xDhPv8wohh3\nU6MPg8kxU7f/baZnpZTL5OW3F5Al6IgEG3PvTgrnzBB6yqe83Xl9+6wNNYv9\nXoz3hC6VwsUu2sWvnZfSUDdKOKBIDgCYSQAIMz5EtR2bjw3pd4eVomNksD+d\nAxYA6jcwhd7VMQ29Bw2qc4U8iL5T7KbyPoWMt1DN/c09RpN65e5K8JE36f54\nrCjefxqKzLa/gCRHHR64MgHGLLaeKIpg/BSWryaXnDgMxQ5UuV1R7ae8EpKG\noW/g3cH0K0UL/yl+U15wiCkdUewx+zvgnlAbEHTZFzAocLQvKseRnRt2ht4N\nXoD4bXqYmKm2oQ9dh33+jscjh1PPRn3igV9nhwIVsG2i6yHghWzqJsE+IIJh\nTSTPTS6iqSnv4LALlEhQ/TZixvvH5OBU66KMxiK+X9eVuAnLmcHgcxFnD2hQ\n7dPEKbtLf83wxyHkF9rDLvZD140XuyEuHoadRvl5nzobJBzgfTLWWiij/hu4\ngZHM\r\n=JyhE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=14"},"gitHead":"2ae5f9a5f0151943f96f16e112ba29144a89782c","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.3.1","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.3","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.6.0_1642719077317_0.5235753458912313","host":"s3://npm-registry-packages"}},"0.7.0-rc1":{"name":"@salesvista/client","version":"0.7.0-rc1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.7.0-rc1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"98cc046c3aa622390d0a369a94c8f1d06957d7ef","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.7.0-rc1.tgz","fileCount":18,"integrity":"sha512-9K/cXsIgqjCGWivp3TCgbskMtJ5lJT5Z6/difdnwZE68ma30TjtdFHK6HFKfsuDnXK+LI4x3sCr4ZTHLGyOHjQ==","signatures":[{"sig":"MEYCIQCIbxSiRCU0aKBXT16jft7rxSZD+cGUet8z33oGY9ycIQIhAKtmCDji0y6Kx1K1oIXmYVHJy7GM969SXIsMVyDDC0A0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCKSECRA9TVsSAnZWagAAUswP/3ih/OAstUhKQLGprmSO\n5O9blN2u/MgEUrZ2g48H167roVd5N/n7LOTytt2bvOMRYQ1Zg+Zb4DdNDurN\ns8Q+bAH2ui/ibIXAabe3WHicYvW3ReSTUaHnq499ZA//+NxLF/l3HZ9hl78e\nFMuU48Fp4gNZB9fBps6raTg8qq1CqKxSZGs2fqu8uIEtl8bp0b3bASRr0S/1\nORy8dxh23+Aj084Pa6+3FckjziSZMQLuD0MQ1S2l9EkrwaUZE3b8fEp55uXQ\nokaVIBS2lWnI5cTIkspKeBMQv/WTP9AYOOaZU6w/Tg7HVrw4Ic0ESaf0DB54\nNHER2PXd8Ej4W/rSP0GUNvTMw+2RapB5FPyg6xqPGLczS4oEYNHt+sN5WBoz\nZHsan7YnnNE4Oba4ChwKGEdxQIbV0qFoZAb5DrBXL3X4s9kmpqF7WHNsFmQA\nbRMMeypXNJ2gkW+bufjIJqG9RUiDUWCpWEQ13KzaQ+hnHjV0thpNf0POHYOj\nZEwyZpVFU/sYpwEEwiXadIBHZTz2E6f+4GhqwFTUe7HsIRcg/cP7EcukBXtH\nzcHkYTfkq8otouXBDwMPxi+ZlX2rHkE/gnmDBhV31NULBdOc6yV3YW/KZN79\n3greEF4DTuKlb1xZYgpQpdvlyGeSpzDp/Vz/pGHu7PnrKR6xfVwhvXpSXBa0\nHFEt\r\n=HeIo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"4ad500fac15f579ce1086efdfbb70a632d3e1553","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.3.1","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.3","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.7.0-rc1_1644733572052_0.9806374357265766","host":"s3://npm-registry-packages"}},"0.7.0":{"name":"@salesvista/client","version":"0.7.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.7.0","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"jesse_howard_schimmel","email":"jesse@salesvista.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"4e9fc7127f04e789fee3aa3516d9fdf1e692c393","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.7.0.tgz","fileCount":18,"integrity":"sha512-drU0/V2a7pJyTzmf60cMUJ1eM1F+7OL+HfCW1FcsL9q+fCdDV4PmSGQ7A8troMF6iy00tGpOwHEqdRUUtV2tiw==","signatures":[{"sig":"MEUCIQDb8GUxijaHC87VxWk72KlWedtiwmFwI3ph1OnARUgCNgIgNG8qt10VFXiYO/ogh0F/yIbcTs5MUriJRt8ftDzHEbI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOyV+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrU9w//fGSFz+Z+0RLHyTW/7ai0gKbEb/U/ZlHrQsTwqQhKViaBhIPF\r\nVhrBen6qbyHl4WNiNlhnX4pFZ4HitlOeiEo1Y0onY85vqBeT/kAhZBxI68hI\r\nG4Uh1AnMou/OvTWFlKsMHhvQrRcwcZRTbv4JVnP1c70uh4FJrXAWWdiidqzE\r\n3Wl3U8dScjJyeir9tSejGaPcdnzvAqw1eET4ear7dMYb8XafsYb+eqUzxic0\r\npJI5UAtnWWlZf8YOEy/XEXdxZBZyEJs5tzLnQSK0t78d3wJJhrv32IbN1dJJ\r\nGz7q1uhNfLuvn9wNcYASzXMcSNHNscAcmnZjJayyg+2T1ZHTaLSEvgptuPdF\r\nmnSdMcxHbx12PwSvyD6/0WgauP+V85bOGHd5o/5SoEtppA+SMjyb3Cv4KgOS\r\nxB/IwwXefg46qj+ry6f7l98B0SCJ1ArZq8MzpqUZ/yeJMs8rsFg9Bmhrv26t\r\ntzkIIrnTadwZlneBgrEUq6IAS+LWyMAvc1/YDnchPVn8O9Fg7svxXhDBa+K5\r\nJZoGiJY92izpWMwfk2U3LMaReffoaXw7pKgAT8PCUNNe96wZgIk7bfquMSBW\r\nk1Q2RR9D1+kDXwxzYbsBVJ8FK7zZ6lg5urnKJCrFOH4efqOxmaBjxnPrEsyX\r\nbvvOhN4A69uTuv+ltoRIkPT7QiiIjGfjRX4=\r\n=rtB7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=14"},"gitHead":"22d1f72295480ae33c09aa81e25f963e526f3b2c","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.5.5","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"17.8.0","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.7.0_1648043390200_0.04730522364731149","host":"s3://npm-registry-packages"}},"0.8.0-rc1":{"name":"@salesvista/client","version":"0.8.0-rc1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.8.0-rc1","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"mqsmith","email":"smith.mike@mac.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"ee44afe1b233b42c5b6e236b6dc662f288031470","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.8.0-rc1.tgz","fileCount":18,"integrity":"sha512-G7ypp9TX3theiSyyDu7uIDWIof9L7XLsS9nWzykDk7qay9KsZHiWPELAxxYKvrfhjK3iGMkVkM/dnw8nVLuhMA==","signatures":[{"sig":"MEUCIQCOxFxDkq3LKjAnEBJntGlc/43ffse1O7T6DRlL8vsnzgIgBTGt12L0HaS2iFmtbCRq1w7cBWYGsNQcof/J0jf94JE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicSdWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFnQ/+MSroT6itfEn3RkEi+lDgOoz5Y9VVhrazJq1cJTN9EV1T2TqT\r\nqUN/fro989McuGRKI0mxfmRO1v+/ohaoL3HdZRYA9tnY/efPJGfahsohiN11\r\n2BjGErrc20UM+pBCcMHboC2L23nMWl1po5I0RN8Pk3Mwjjy0vUnOUI5Q6F5s\r\nAoI4AD6ZQFbCw5Xr+0EKwzqHfsHtTlsVrJtdwu3gktRguivsQEYaCqMULrPw\r\nxRqv7aEeCnvdJoc7e8SZOwl7KygZnfYQN+ncMr/oqdDT65APnIEq26gHWIgU\r\nX9sn08fWn3Mpum3VHBbNZlDWzwRXrHdqvCRsvnViZwBNUDqPIgkS5h9Z2owx\r\nPD4lkUUdZBsuLHeLPlYhYl/KPiIiBdOnau7CwWkiSZOBa82xHmA1k+IMcm2a\r\n4AXt1NbFWZGWVgrKoQs6FEfLIKKF2lCujU2+xSWcVknzN4IE+SaWWn7KK8kA\r\nDetQkN64D4G6GSJKN9tOdwmiY7zEJMW7UpSFvQVRrSVpc7EqdQxyzopSuTgD\r\nobCx+cH8pc7YE7zBdpik1Ee/4oIoN8yO8cTuOy512Y2UFSqfggALZLOfNK/P\r\n9+PN8CjmbSyWyXgpYawUIEjuA3jTNBC2ebs6JrsjgEGqB+lmMxP1je48bKQp\r\nRuPu3a4zM6qIIN7zEBCtnklQC6UXViyGJ3M=\r\n=zm1z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"2dfc7d363e09447bcc9791146da7587ad8287374","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.3.1","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.3","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.8.0-rc1_1651582806788_0.3004209266055011","host":"s3://npm-registry-packages"}},"0.8.0-rc2":{"name":"@salesvista/client","version":"0.8.0-rc2","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.8.0-rc2","maintainers":[{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"5735cd98bd12b513abaff3243bc6a71dfb90abb8","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.8.0-rc2.tgz","fileCount":18,"integrity":"sha512-7yYX5bnFQ4w+a3+zAOQ7IpypS8XVgWHHCXeNh7d4qlO5pIJd2pagpdBUsmxi7KJSDLYAgk/bXYmx65ldH06RqA==","signatures":[{"sig":"MEYCIQDSNyXbii11bhDlBC9OL9GCAaeQrku+e13LauzlN9OW7QIhAMHvEXboXvh4o0PtrRvvASynt8hXHcIFnpTJI7DkPcuG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitkO9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWLBAAnSLEC/hLSjP7X9rjbkacv9P3a00rbOxW40vH/4c3He4irqSE\r\n5Q0BHpSHdqcxWfsLw4ImzSQaxOu3TqDazbeHQJYxezXlPEHy+9IdIe+zkp7Y\r\nB/VVR2ppOm20MXAB5ZzqEgC8p6epJVJgjxQZLkujaEg9JYeokiE0FKGXRTeB\r\njPw3ffO9ezAAeLH/VsUzXeQH593zVXhPpWi1A6YwmJZo1Q35METVuDgbcJ2x\r\nnpXCx94Ei4SIt17tevrV+wySU0XO4Iqzk9/bQL3MLNQHJiQx831wyxkONs4r\r\nyedpvb11/QDmiUp3E5YEShYlaOvb5WkeC1ADcwrYR4yQNigZC4iOYxr2eY2p\r\nZRapCA18hKjLrqW5FymvFG3dC2ihCjrAbWZCgJYzLp+k3Qtz1+VJN19T5Vb7\r\n/qq+vszDIityC7lucacOjDHUtfwXS4sARUHzWofL59nDfGQNQAAV4plc7Jy9\r\n0+av23Scbqm/zzrcNNfQ+bhfZ1b4Cu7nRZ8X/ewpkfkS8oX4vs1TQrrjQRuz\r\n+MheWdGQ4SyKqQA8n7U+H3TslS1NUqDqbq+7w2pujQeUwD6b5pBjdy2iXqhf\r\nKy1b8DT1fo/BcM5WIBP1WR5oaZS+PR96SrhZkxco3HpBLO0s9nB/NonZDxaP\r\n2mwHL0qEox7cD/srUReiBVbpVHeoy4ohYHY=\r\n=PSnU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"15b386f783640d5a479fc2913e989b345cd6f326","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.11.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.3","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.8.0-rc2_1656112061490_0.2150395583632827","host":"s3://npm-registry-packages"}},"0.8.0-rc3":{"name":"@salesvista/client","version":"0.8.0-rc3","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.8.0-rc3","maintainers":[{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"7f7207a29214cbe69d747068386767378b69b039","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.8.0-rc3.tgz","fileCount":18,"integrity":"sha512-Eavt57QA3/3RBIjdl6mJVUb7+ISY2CPBqMaGR2mI51mkuJzCDGgTj0br5yO4DamHGpmP/A5FFATiz2esyDTxJQ==","signatures":[{"sig":"MEQCIH3pFoP0C81J4dvXPp6Pk9IY+H18+0YIQDUvyNRPqVsqAiBjuZ8KVsseF8+hkfId/ltpDuNGPT3dYoeLNhSGJpaVkg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA9JBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBPw/+Iwfs912VgMt4kyuDU4ejziCyDT1PXJ/qAUwJeIc/WEl+ZtKZ\r\nxao+JwiacaXAiMYTSZzQWzZSKZiRcxw+NxDr7J9OZPXx3354Q5rAKYGOOPrU\r\nh3uk/ANMYp0/fum6TvKZvq/yszqwv6Ls8uRcyllOOqIHm1x70kYM5OlgT6QV\r\n9QsVwKyhi5L4ZQCz1QVOQOirOrJZedS5k+PkGPTQCJnWmjMg3DYLUM6XvdqV\r\np8MNj8KQe5gxBU7QamVpVJPEETHOT7saGYJASeHG1f7janDmRgNomG0iBsR9\r\nuHxJgFXxuDAhLiCEpTQ7++FLQsiSkskjQZAG87KTiwwRyPvlcxk2DryIB2Ue\r\nMWZpVIheIk3m9f1uWEPJMHvWvbrB6EsxaqHLT7TM15c0gK1ZtknYI+wXBgo1\r\nB94doiZy+7SRNtB1BYRxDBQau1+WJrjpHjFqNPV8S6DuXIyPEeEJMss1MxNO\r\ny7gz/oUjy064GwI5JCVIAOwWF/zuCsFYB4NpzuvdAPdsE2ez+KV3dOuBxJDc\r\niHiEhTsm4ryD+rVjihOJm7THhSWVyS9SZmylkvucUA+R1KNUYB9MRg026rZL\r\nP59pX+DSqUGBRaT+HaICfW1QNFDpCt/bBFN9wYS8PLfKYZVauCpdrsQVVZcs\r\nCogv4VWZ3ekpVFwfdkArNg1Ic0+kVSNbcRg=\r\n=v0L9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"41ce6b0d7efe9b8f04f051547af4a7b582b8e4a3","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.11.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.3","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.8.0-rc3_1661194817307_0.9019801887876708","host":"s3://npm-registry-packages"}},"0.8.0-rc4":{"name":"@salesvista/client","version":"0.8.0-rc4","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.8.0-rc4","maintainers":[{"name":"digitalarts-sp","email":"nick@digitalarts.io"},{"name":"greg.kendall","email":"greg@salesvista.com"},{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"277368db5dc495e7b3fd92e31dbec4f902f1f2bb","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.8.0-rc4.tgz","fileCount":18,"integrity":"sha512-BFiuZrdMOJiTIp8FGRMemzVT2/lJGXkvwAchQPJ18TMep9ILXhCxrbrlkEZDw+0v/pLgTOsPi7WVvD7mVtDaiw==","signatures":[{"sig":"MEYCIQDFc1ENYzy1yXF7OKa7a6fXKmangdfSglTXsY4a1ncq8wIhAPBIb/iNr6Fp6evZ9kheUc4UTPaHnnCEsIpNcQxyDxWs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh5tcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRhg/+L2VpCf1+N+eHw28UTJnir2Bhf2PxHxUZ0/Of3bQrh/MT+pTe\r\nH+7wk+nN5U/51meb7eAgTsBj59U/WU7qvlNsrN7gcm59km61HcfPtJ1M5M6s\r\nnaHZR9HNDTkHHBh7RD3fuh+gZsM+GsLTwTaNibAjxTarMHvrNbDxEt1HPkch\r\nr4iRHyZ345rBvAeZ1JqfFJ3ntHjKf3dKJvZ1TD6GKZ/Slk9tYQ9wdrVZ4LwG\r\nQ6PEXTAjJIpaqgw8EfRooKn1uNvY6oYkUya7mTDUygBePlV0nZlyg5ZxAMpd\r\ndRwWjSjaYzN5H7uBv+4yLpDs9KwB3Ve+i93CwC0qeoUVb66crR32MFnmeQ+8\r\nRq8cXYM6GhhXE80+sN2Gqa6fsTNcnoxmJPV/2FyoSdFx2FnILhmVes5An/Cw\r\n7ma+G3sTlSWJFRuDXga2esCV+UcZ1VyCe+fw15YwdwGJycLuTNLNwYORLyn7\r\nY0Mx44PYu+ZnXj0dsDcyzQ0jTmFyvWBuSYFO5hot2t4iIsxZL/LAvtIPoKsS\r\n5YkIVdx2T3PsW7rta9ZJRg8jIdTf9jOymGSN2XaEQ+WNoZDXMWM8kIj8W4ua\r\nHQ27eB8x94b8gWLacPQh7CEgquHHDmlh7FJyb1i1GIHPk4xcD1+iZIsAjoqX\r\nuEWzGJjBpGIN8uJOgahJklweb5QnjxJKQiU=\r\n=JVqz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"b12a3aafd79224c1cf7ae50d3dec79266a23b7fd","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"8.11.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"14.18.3","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.8.0-rc4_1669831516540_0.4621002687041693","host":"s3://npm-registry-packages"}},"0.8.0":{"name":"@salesvista/client","version":"0.8.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.8.0","maintainers":[{"name":"digitalarts-sp","email":"nick@digitalarts.io"},{"name":"greg.kendall","email":"greg@salesvista.com"},{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"226b0fb54ea506a33cb29cf48b4c84266f07bae8","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.8.0.tgz","fileCount":18,"integrity":"sha512-1Hn4FcFpDvomeUjLsuZ78/8FhvKXvbqbu1gS3bCzY3rfwsNPJ0fW058egibdR/DWNcyMKh8DIu7tw9Dn48v4uQ==","signatures":[{"sig":"MEUCIQDF7uqTpVBD1ZvhCnKCyWOgSWnPrL0RNt5Yi8vmte45/wIgV2WBdQw+RDMcj7vx2vPvOzrgxhqhgv3fcmHPU4OryZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl6aJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZ5Q//dnUTnh5a5LkNW/NnocxBwLmkUTQHih/xFby8bo6hiwXyW3dv\r\nemKW4bh5es860T99YnuQGOaukvqN787mbQM6TRy8WWX12cthA7Il0lnc3zLp\r\n8j9PRipl8+rkgqLOfLXmq7j1i62Ct0IssOudAYAUZed/gCsFRSWUV7T0axM3\r\ntZ0+EkcZPmlclrhxiviwgS4Z0WxBzCjj9KtF4uSHbaj5jRUbA1zVFdW56KSe\r\nPLzTDNglYOcFja/KWjSt0MNN93Y61OS7dc66AOToQgTUZXRggDExT0xUxsZ4\r\nRub/CiYfTaf+Qp9D2/AD4y0tFacEjUijM1ITCf5fHy5TW4wdE+IKAAuqJ0Ep\r\nNJ250+jKTElUAaG2ohAicZHxb8zcEM9LfxZFQMsOyLQJmbl3ltkU1ZbDyJQz\r\ngpo8Z132T5gDjJ3TcWeiJf55H2bjbVOC4Q8rNF0LA3DyERxWKp0YfCBFNteM\r\nzLKcuIFg+xEvcfyqOmEQmpwX6UuKx1XXVI95Vpc+hjpuMqDlN2PNb48+isu5\r\nz1Yf4Z8+zowFFgsTs+CszINQI/X2MQxjGXfr+swHAa41H0PSDIUIJK63tSrt\r\nHFEAE1YTQs/UI+qBMunkcQj6t12a4/v324vbCZGKLFiA4+VkhTimo7T+hlR5\r\nWnNVRkFzcRpQvbB/7e+/UQL2b1Osy24nzyk=\r\n=Ugyy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=14"},"gitHead":"89d6ecafc273406148217cfff88b5ca4dfa55e9c","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"9.2.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.18.1","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.8.0_1670882953407_0.1603188521732939","host":"s3://npm-registry-packages"}},"0.9.0":{"name":"@salesvista/client","version":"0.9.0","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.9.0","maintainers":[{"name":"digitalarts-sp","email":"nick@digitalarts.io"},{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"832d5d6c2e0636d0c6087f269a3d14bafe4a8b96","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.9.0.tgz","fileCount":18,"integrity":"sha512-Y41Qa0wa8w7DM4UOsLezj7fdpeJ8Uglox0UFsVeC0D6+SL4Zq2aQgAfVX8RMHf/UYfM7yZdU5RmO5GSMft39Ag==","signatures":[{"sig":"MEUCIQCmq+kroF7q37R8qQlCisHgD5o5xCUMDSkobR7PRMPbSwIgZOtyxLGSXamoPaEfh5Z0wFdBRLlVehhA5SRFiauD19w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9m1gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqnwg/7BCGYAbQr3F0S0t+y/ZRSWLPuz/c/p1xtfF8dSKdapiV1kOuo\r\nkZ2x+QDZ++tYnmPAxDO5cnd4cGvQTLEoIW86n8el7WLkLiagikcV3y9psnVj\r\n4Tlzn2QtpevopzbQbrHugrr4esinIQ+xbRNQxOIOPQ0pdkE3xXwXSwspzadU\r\nwLjQO4oqY25NsLKuXLVV1HgvkbAoeT2UBb2zzJ9d3beXzKBjtK911WXqLMZ1\r\n9tjfANIjMC9s9EwVQuRmxCBTED2MvkNM9OaHCrHmj5KG1cRq9fDpLG/90ErP\r\nNdiCIL4XKKO0TNUOdnWJvE+pm28quLEQEES2QMwNYUmSVcgcgg0Zjm1fORZF\r\npGenw/xAu69ncVcecZFowlBud00HetC0rnmuxgpw1bVkTql29el7PWHRgwNH\r\n3lmkv0Np0swI6k8DB9Px/bNuAsyr9XYVfYhcN/XNyncdkewmG7hmUvezGAte\r\n+DuzN+Ule8VqX/wcWcPweCGKPkA2o2YD0IyMnZZN/uP/PNlUeNQF9ULsSkdj\r\nXoeNVsDAtOAQWAH4ekXz+wQteJGIlGPH4/2GNawyUnBF1xiD8IqSpL+7uRsU\r\nf/1ksw6z4PsrK4pMt2tSZpa3lpfyN8lRtrKjXTrLbJ2HgQVyNNdDmxZQj6ho\r\nUBShV8ptZS+UN8YLD+JhMApCicm6HvxZbXs=\r\n=ujxb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=14"},"gitHead":"fdd903b6f0e24960a635e8d74b5fe28952cfe354","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"9.4.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.18.1","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.9.0_1677094240323_0.5935346930135428","host":"s3://npm-registry-packages"}},"0.9.1":{"name":"@salesvista/client","version":"0.9.1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.9.1","maintainers":[{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"f2eb8382e6243594ac92d78d268675f3b73cf2fc","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.9.1.tgz","fileCount":18,"integrity":"sha512-+/qdHzSLIfj8F35qAAdHXSed0glAanKswvY25YWMg8NbWOFZ1NPHetTYpt8TDcA392eKCpMacMC/AnzpHwTNgA==","signatures":[{"sig":"MEYCIQDX96kRdN7Y+JqD+Pwh2joh6cpgzQXYWSULnojFFYDAdwIhAOtWzksgSr1HPkQ5+DlXnB8YbGK1Gnqa/NkzN6biMJS9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56455},"main":"index.js","engines":{"node":">=14"},"gitHead":"20d3b3e01f5848c6857e4e415a76dcb79ff6b8a8","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"9.1.2","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.17.0","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.9.1_1705704600030_0.5574983064636918","host":"s3://npm-registry-packages"}},"0.9.2":{"name":"@salesvista/client","version":"0.9.2","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.9.2","maintainers":[{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"9093986fdbe263a14a861879afa2f268414ac458","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.9.2.tgz","fileCount":18,"integrity":"sha512-3On+TSRE8b5kAHeWr7zIBkdGAmgnGnHHDJOShFH+lQ0gUzbp+1yKiI+9QuWvM58ZzFGWeru4blS8kXjWVSH64g==","signatures":[{"sig":"MEQCIEggPq7O2DJ7/NMc3Ab/kCtMhIkoFkw4vVE9KkfJZh/YAiBdoLyRamf4RLobdT7wJH49b0/spOXwzpPV5X64RTi+JQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57038},"main":"index.js","engines":{"node":">=14"},"gitHead":"2eeaf2250462a5df6ee8fae06734c73009f4a37f","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"9.1.2","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.17.0","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.9.2_1706733527781_0.533784504069412","host":"s3://npm-registry-packages"}},"0.9.3-rc1":{"name":"@salesvista/client","version":"0.9.3-rc1","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.9.3-rc1","maintainers":[{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"95446351e2af5bde928d0459fdbf8e97ee5dfe14","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.9.3-rc1.tgz","fileCount":19,"integrity":"sha512-pXFMSonLVTgKiroxb5Km68yOgOttllg+coz7vilPV4iAlKVKaD9+l0KtLYn6i82WE8QzMb8XwtQymD3YImooyw==","signatures":[{"sig":"MEYCIQCkErr9DWIx0QdLVMhK+P/LYN4FaEq4mwQYBgruICkprAIhALSzDeAtsCWGYvJ6e7AKLj4Mz9VD+V4S6/TGbckTRa6J","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61190},"main":"index.js","readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","engines":{"node":">=14"},"gitHead":"928abdf7324123fe435e7cb60db75681030ea435","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"10.2.1","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"20.9.0","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.9.3-rc1_1717703272803_0.05933013454823799","host":"s3://npm-registry-packages"}},"0.9.3":{"name":"@salesvista/client","version":"0.9.3","keywords":["salesvista","api","client"],"author":{"name":"nexdrew"},"license":"Apache-2.0","_id":"@salesvista/client@0.9.3","maintainers":[{"name":"nat_sierra","email":"arreisnahtan@gmail.com"},{"name":"nexdrew","email":"andrewbgoode@gmail.com"},{"name":"broanius","email":"broanius@gmail.com"},{"name":"kylescarbx","email":"kyle.scarbx@gmail.com"}],"homepage":"https://github.com/SalesVista/api-client-node#readme","bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"dist":{"shasum":"ba29d6c5a65f51191fee56dee754862ac576129d","tarball":"https://registry.npmjs.org/@salesvista/client/-/client-0.9.3.tgz","fileCount":19,"integrity":"sha512-VWQbq923rRsnr1smpJKitoWH89jgoKmRjWZmlqO9y0bcEjDTQWNiaQo3Hc0kUiM76bRSzyW1Le+pC17pkrYlqQ==","signatures":[{"sig":"MEUCIQCen4oJi9SNy0pvBUq9Wwnq8IwdBFc80Vx8zO4K1nO9ogIgEqhEIXmRG7BMrqqmWm5cuJXsPu8lCsWq5toUcNvU5nk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61186},"main":"index.js","engines":{"node":">=14"},"gitHead":"7a1b9a8047f493e20575da83fb86fe90f53d51ad","scripts":{"test":"c8 --reporter=html --reporter=text ava","pretest":"standard","release":"standard-version","coverage":"c8 report --reporter=html --reporter=text-lcov | coveralls"},"_npmUser":{"name":"nexdrew","email":"andrewbgoode@gmail.com"},"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"_npmVersion":"9.4.0","description":"Node.js SDK for the SalesVista REST API","directories":{},"_nodeVersion":"16.18.1","dependencies":{"got":"^12.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.8.0","ava":"^4.0.0","standard":"^16.0.3","coveralls":"^3.1.1","standard-version":"^9.3.1"},"_npmOperationalInternal":{"tmp":"tmp/client_0.9.3_1718743867977_0.3231508379073862","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-07-08T13:59:07.666Z","modified":"2025-08-04T16:45:03.906Z","0.1.0":"2019-07-08T13:59:07.874Z","0.1.1":"2019-07-08T16:00:48.661Z","0.2.0":"2019-08-01T15:31:58.024Z","0.2.1":"2019-08-06T15:40:04.966Z","0.2.2":"2019-08-21T14:56:45.181Z","0.3.0":"2019-10-22T20:58:36.383Z","0.4.0":"2020-07-28T16:18:15.974Z","0.4.1":"2021-08-19T20:39:17.016Z","0.5.0-rc1":"2021-08-29T18:05:23.942Z","0.5.0-rc2":"2021-08-29T18:20:37.943Z","0.5.0-rc3":"2021-08-29T21:31:58.048Z","0.5.0":"2021-09-02T20:19:52.736Z","0.6.0-rc1":"2022-01-06T21:01:16.826Z","0.6.0":"2022-01-20T22:51:17.567Z","0.7.0-rc1":"2022-02-13T06:26:12.231Z","0.7.0":"2022-03-23T13:49:50.374Z","0.8.0-rc1":"2022-05-03T13:00:06.895Z","0.8.0-rc2":"2022-06-24T23:07:41.723Z","0.8.0-rc3":"2022-08-22T19:00:17.649Z","0.8.0-rc4":"2022-11-30T18:05:16.778Z","0.8.0":"2022-12-12T22:09:13.623Z","0.9.0":"2023-02-22T19:30:40.556Z","0.9.1":"2024-01-19T22:50:00.217Z","0.9.2":"2024-01-31T20:38:47.923Z","0.9.3-rc1":"2024-06-06T19:47:52.976Z","0.9.3":"2024-06-18T20:51:08.157Z"},"bugs":{"url":"https://github.com/SalesVista/api-client-node/issues"},"author":{"name":"nexdrew"},"license":"Apache-2.0","homepage":"https://github.com/SalesVista/api-client-node#readme","keywords":["salesvista","api","client"],"repository":{"url":"git+https://github.com/SalesVista/api-client-node.git","type":"git"},"description":"Node.js SDK for the SalesVista REST API","maintainers":[{"email":"andrewbgoode@gmail.com","name":"nexdrew"},{"email":"broanius@gmail.com","name":"broanius"},{"email":"kyle.scarbx@gmail.com","name":"kylescarbx"}],"readme":"# ![@salesvista/client](logo.png)\n\n> Node.js SDK for the SalesVista REST API\n\n[![CI Status](https://github.com/SalesVista/api-client-node/workflows/CI/badge.svg?branch=master)](https://github.com/SalesVista/api-client-node/actions)\n[![Coverage Status](https://coveralls.io/repos/github/SalesVista/api-client-node/badge.svg?branch=master)](https://coveralls.io/github/SalesVista/api-client-node?branch=master)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\nThe official Node.js SDK for the SalesVista REST API.\n\n## Install\n\n```console\n$ npm i @salesvista/client\n```\n\n## API\n\n### Quick Start\n\n```js\n// use a singleton instance\nconst svClient = require('@salesvista/client')\n// or construct your own instance\nconst { SVClient } = require('@salesvista/client')\nconst svClient = new SVClient()\n\n// configure the instance\nsvClient.configure({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET\n})\n\n// request some data\nconst reps = await svClient.reps.getSearchableReps()\n\n// validate a webhook request\nconst signature = req.header('SalesVista-Signature')\nconst payload = req.body\nconst isValid = svClient.isValidSignature(signature, payload)\n```\n\n### Auth token storage\n\nConfigure the client instance with your own cache strategy.\n\nHere's an example using Redis:\n\n```js\nconst { SVClient, CacheStrategy } = require('@salesvista/client')\nconst Redis = require('ioredis')\n\nclass RedisCacheStrategy extends CacheStrategy {\n  constructor () {\n    super()\n    this.redis = new Redis(\n      process.env.REDIS_PORT || 6379,\n      process.env.REDIS_HOST || 'localhost',\n      { password: process.env.REDIS_PASSWORD || null }\n    )\n    this.tokenKey = 'sv_client_token'\n  }\n\n  async getToken () {\n    const token = await this.redis.get(this.tokenKey)\n    return token && JSON.parse(token)\n  }\n\n  async setToken (token) {\n    if (token.expires_in > 180) {\n      await this.redis.setex(this.tokenKey, token.expires_in - 120, JSON.stringify(token))\n    }\n  }\n}\n\nconst svClient = new SVClient({\n  id: process.env.SALESVISTA_CLIENT_ID,\n  secret: process.env.SALESVISTA_CLIENT_SECRET,\n  orgSecret: process.env.SALESVISTA_ORG_SECRET,\n  cacheStrategy: new RedisCacheStrategy()\n})\n```\n\n## License\n\nApache 2.0 © SalesVista, LLC\n","readmeFilename":"README.md"}