{"_id":"@telia-ace/knowledge-serviceclient","_rev":"106-907d3748502079376e5ccc0f0e8efe4f","name":"@telia-ace/knowledge-serviceclient","dist-tags":{"experimental":"1.0.23-experimental.12","latest":"1.0.32","next":"1.0.33-next.1"},"versions":{"1.0.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.0","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"e0499ee22dfb7805be1d940892247f4293412887","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.0.tgz","fileCount":34,"integrity":"sha512-VTy+5MZ/1ziPv6ZrfiU0R4AEOP3o9W3lKw/bMo+rtUW2/mj6/pdAwaQ44cOBVyNB1rr4uxZw6h7TH7NMjuL0tw==","signatures":[{"sig":"MEUCIQCwssHqlprR9ss4pXZy4kK9yfKiBd37cV5etsX94UQFiQIgPiKwtTsv+IYHJVpeCcz7VsDPAlmYu8ZBfySklc12a5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":120496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKwjYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7SxAAhn5fOPIOMviN6XJnRocVJ1m+qVvgAC8IQVAd4jg8XOixoUx3\r\nVq3yIvbxCKY2wA2k19d9CCBdpngpImamQINvBWNMF9JbaVdAra8ChV6Iyj37\r\n1U0Xw6HiBRUdY4jT5rXZiRkJBZukVamyovZzmN5NwkVqId0BhNTrUEnEIYpX\r\nyTOAKn9XL43hykaBnfs6rN8vlCGpWvbhGzgcglFiZiPOjjz04c30zwyDVWKY\r\ni/HEobXYiS7aLwH0EWz36ZD1Tp2+bhXjPiKWl4JH4+F0RcBH3dnW4LBPh1BO\r\noHAsE5c7prw41dg24qenUEMx448+yD0pT/tzu3nYxzCIAEw88SfXD3Y00bQn\r\nOpqa5FIO1mkjZL3oxjtExurLApR/3OrseNLNtPE2snHBwTYmKrLLQiLKpxfg\r\nJk5GUU/OBvgovQSyuJgmfxi326mb7l9GJ0RJuBnN0ekHOGEP57nfLfuXh6k+\r\nrRs4o//x8We83jIw7gt4WqXfSR1Msq+31u82N/2J0b+RbcuYG1axkKv7YLzQ\r\n2O/5ZUGm7gnYMxz59gQur2OrPxYSNk6cqkpr2GDrukD6zL7O+S6lNxIo9nww\r\nu2NbL6W4te1ZBvQvO9k/InKOEoDIhC2fsgTaP1Pw4toT9L5uB4G0LxO/bM0l\r\n2eiQD11rjF/p9XpgnbMKqxwq018AWLv7soU=\r\n=cfb8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"lib-esm/index.js","scripts":{"clean":"cleandir lib && cleandir lib-esm","compile":"babel -d lib-esm/ src/ && cross-env BABEL_ENV=es5 babel -d lib/ src/"},"typings":"index.d.ts","_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_npmVersion":"8.3.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"del":"^6.0.0","babel-cli":"^6.26.0","clean-dir":"^1.0.3","cross-env":"^7.0.3","typescript":"^4.2.4","run-sequence":"^2.2.0","babel-preset-react":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-object-rest-spread":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.0_1646987480201_0.4334367023967187","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.2","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"1e64052e276af28b0effb8c28daa38637156acf7","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.2.tgz","fileCount":34,"integrity":"sha512-6fpBt+oNzLYYiDm67ENM+JtdeTRHmhGWy7YVG5f54K/B3ofkjMH48L07Y6/lrw54crA+UCownH9kbKINyf9NWQ==","signatures":[{"sig":"MEQCIHMQL0OT1iMjzyRTfrNyEKv8zkzMBIWcnJgViAIsYDUEAiBWBW/hfjLZ/g77vAJ251ttiaIK0K1ePFoZ4k5Z4gb79w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTuVGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqITBAAgvgUmgnoSAWXtaDYNbfVIG/VTQGeTGpTHYYKCm8VnrxWNanF\r\nIxCtAehjJKaAr3siQc01+R96rThZhxfaebSXJTrlZfDJQVreF+5prlxMT7cE\r\n2ZnjP2IONXnMJPmBG84cumbHlgHdnKIPcz5brScqt34UiBvzfJkh4o2AGfpu\r\niBuaVNaPT8lubs3Oy3I1oKTRUTxGjhI19G65RyYtpENfi8zPM+jECWk/IvO9\r\n9TCLf8LUCMreibfjvz2u2tatZUoFVsgpvr481Iik+rPF+e55JeFMit2up3+3\r\nq4Uj+anLKR9fdh0lhnnQcmVHIimX/4eGPpuvUzSQHWCWc331KwMjmkG1294k\r\n9aTiD41/JtzLKCfbCqvcUmudbsFdAXmMwf4ztwgcvvmKGtCZIR7/NR6auTs5\r\nYWAqE3LppZudWfqNptrph90tRAiIl0nv5HdO1rvwjfQLtlyzytmqBCvSEiei\r\nCrPqkgya+JyOTlDLtBRQjQjsczr9x4YP5J3xygLVxdRXWVmrLi/+Ns3jIuKd\r\n4MTAI2//U7+Upln8+F2cg865Qj72xa3/8Xpnq+xoYL9zUrSqJXUDmwWZfyZg\r\nf2DMoJtHu1CxeQO53yxmFu/FvSPw8oSkXYns5fVTQBlSCYXjIArMzSNmOvs8\r\noCAlU3k1T/2GCV/XWG9zBxpW0L8Sx1CUGSc=\r\n=6uLI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"lib-esm/index.js","gitHead":"e1527a958201e22254f113b12f1162d9db8cfdba","scripts":{"clean":"cleandir lib && cleandir lib-esm","compile":"babel -d lib-esm/ src/ && cross-env BABEL_ENV=es5 babel -d lib/ src/"},"typings":"index.d.ts","_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_npmVersion":"8.3.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"del":"^6.0.0","babel-cli":"^6.26.0","clean-dir":"^1.0.3","cross-env":"^7.0.3","typescript":"^4.2.4","run-sequence":"^2.2.0","babel-preset-react":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-object-rest-spread":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.2_1649337670479_0.9637088230869886","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.3","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"092230006f1eeaacf44adf5362df9ba5a1a0f113","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.3.tgz","fileCount":37,"integrity":"sha512-ZI00rvog4OyES6FeM7dk6fzWsXXU8mATEHYwABQ3jRgdScEL/T3cpyzC0mdKy+E4tuBmvopxbK5dNjWzHIo8hQ==","signatures":[{"sig":"MEUCIQChb11+c18fDrvci6HJAYReSS/Kz2wSIlvLgLe5/n8E7AIgAdjpgehRCJWtm0WVVhMAiPd8edeSHUHF+UUgTK7c/Nw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":129311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijiNWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHHA/+Mnvfa2PyNSxscyTy2p279u6uERceCsdf1P0Wl7EtWKoqKVKp\r\n93Ldpw8ngjhJyVldFaRjAZle0dFZKC6MKVvGjPN84ucyOSu7QwoVK+G7+iSa\r\nEdOfOVHfWptZWQDlwNPKewDDQHlPOXK23ef4aQDUxDLh6WGSg2Dyz0s8dFK9\r\nt7TfA2KVxLdZ+lMX7wM2AKXKDj2geWlATB/Z06ebhOZt/mypOyPZgdWGpUi/\r\nUW1VlIP/RaAgRyt9RAikwB5ObXEW84i86Jf8lv/E2e+PS+IME8OFafmP4/n2\r\nVR2EJwuh80SWIFjb/56BnZWoiaoHs8yIVVJLOsMOoVe3J/k5Rgvd23/944L6\r\nlnNRnx4MAwMpX49oYE0bDDJyVg0m7frgxMoR8rRF5ZyoyP5Qtu0XmXf9D6aY\r\n88bW1PyUbDAJ1t+F7ZjdKFK2ASGm1orfBkvyeAuOZ780gGl3u8IIhO0LGOUT\r\nSyqaMQ6Bsnq3FAhK4cxuf9+YzbQGUBOhMWQCMBwXVy0R95l52M2aZ4qZwMfg\r\nEu7ZzYybgiJ3dqEpvhTM8Ly/ZKR0wXDVkL/+RcLZbVr2FUn5eDYZc5OYk/rG\r\nWt3QQ7m9452dRBpCXZ5HHByTWuu+W8PeKkCAU5yG0Qi/BDrEVUm1XdWmqglP\r\n6mq/oPGMokRm+a8//jvhQ4S+nRMxN+E4lF4=\r\n=BU9i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"lib-esm/index.js","scripts":{"clean":"cleandir lib && cleandir lib-esm","compile":"babel -d lib-esm/ src/ && cross-env BABEL_ENV=es5 babel -d lib/ src/"},"typings":"index.d.ts","_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"licenseText":"Copyright © 2021, Telia Company AB. All rights reserved.\n\nTHIS PACKAGE AND CONTAINING SOFTWARE IS PART OF\nTHE HUMANY SERVICE. BY USING THIS SOFTWARE YOU\nAGREE TO THE FOLLOWING TERMS AND CONDITIONS:\nhttp://www.humany.com/legal","sideEffects":false,"dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"del":"^6.0.0","babel-cli":"^6.26.0","clean-dir":"^1.0.3","cross-env":"^7.0.3","typescript":"^4.2.4","run-sequence":"^2.2.0","babel-preset-react":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-object-rest-spread":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.3_1653482326411_0.8682042125059724","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.4","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"c8d15a88ff260d3c5239b7d59d55018529b1f3f9","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.4.tgz","fileCount":8,"integrity":"sha512-WJevHTfA+8DrvCORH0Iqclu5e7NgtEYjVbn1U5TWeSNQl478e94JPNcI2rt8xvlg++n6KOwg1dKl+6LcqQkxBA==","signatures":[{"sig":"MEYCIQDKknQfddwbQZWpacGeYUjmFnYrEFKcU6Aqt/+eAxu3cAIhAOpcWMGuySz4vFVxJy9Vt/+tMiaKYMxUHkdrl1YQzNQc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinwjjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqjA//ZcO1ILxFNLcNAo+FG9wypHejyHTSLMa6oJzrjmWtgaoFgngI\r\no48CMqTg+iYUC2750JltSf7ElWSBvTBqbEw9zS0ijqEPLjQZC20zVmT4vX6y\r\nldd++xA5PUHo6sLrlRdq1DkfsCDCKnZQeQAykFnfxoa2D2pKtbByoc90YiN7\r\nhf/4kZdjsF/F+A895QG7mQ0mcxYikKSO2QcR1R2HqR7EeKibVFTULq8d3kxo\r\nqTfAP/CSsaaA5xs+vh21pWJsCya2DwvO/eyOtk9i2tmsY1N5eohb8detD/3R\r\nxcaSLDjanAMQA+XGp9tGkjjMG+BTNtS4OQQrRCCzQT1kbAZE/1vatmPejAkN\r\npgWkDsux0x8kXHM6ZpQdpuH21IFQlA3BUdFAXbm25/LJX6wLMasLxbUM0sDw\r\nqVJdhNVZdDPVZfBjyOU2+ygHdGgxiCq6I9H8ZMsdYre8dh/s19ENM9iSvcEQ\r\nTlDRxZ2eGy/nmAvPQpGh71P/6XA8rU5IDwfkspM7TVxtYWGK7GIob6OqpexH\r\nIt3n75QaDnOypudBgKahdHPU6PlQJYGrwIiTJZZLu/UquiX2cwgFp9R3F5Ba\r\n0C8YXujlxyn8ueVRYd3x8QhrHkgWLM4UOzDbwwFqLoNeDzdpbL/Hc3dg++l1\r\nxKYdlsh1Ou9zsZxnJIDJBTOLXsFD3c98DOk=\r\n=dMlW\r\n-----END PGP SIGNATURE-----\r\n"},"types":"index.d.ts","module":"dist/index.js","scripts":{"clean":"rimraf ./dist","compile":"vite build"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"licenseText":"Copyright © 2021, Telia Company AB. All rights reserved.\n\nTHIS PACKAGE AND CONTAINING SOFTWARE IS PART OF\nTHE HUMANY SERVICE. BY USING THIS SOFTWARE YOU\nAGREE TO THE FOLLOWING TERMS AND CONDITIONS:\nhttp://www.humany.com/legal","sideEffects":false,"dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^2.9.9","rimraf":"^3.0.2","typescript":"^4.2.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.4_1654589667179_0.7789038949922955","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.5","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.5","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"f969c9c57640c50f1e593510f82d6b1bf7ff2397","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.5.tgz","fileCount":8,"integrity":"sha512-uPZLHalJDbfGm4iAL2wkQRUUj8xQZt3e2SgVaM0ctH1djwKMY7dDx82GxHA3q8DUfzweRz7QKeM7bC5/kVPvIg==","signatures":[{"sig":"MEYCIQC8zSkBZqEvaa3/oqzsAQAjDZJx2HyViD2hs8Y315zizgIhAONeCqwO+/SZRurAOr7LROmG7eeH+D0B1UXUNNdRG2Dg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivvPKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrd+Q//YS3eC5Pq5goNwn1Xt06SmWNet2Ne/snJqpMW2CR38BbF+ZEQ\r\nrDIYM8rll5A9y2hseF+qSmjp9DL/QbI6FNWQF25A2WfNrKdQNVqSdn+YC4a3\r\naN0asWFaKfj180KWTBp3AdkKqb/q3UjLL11bKTv9NDqEoI0NEt/4XlKPcOQa\r\n1mkkP/LlVrTxofs/h30LdXfo9rOG59qbBK5Gk83NnZKGClqxo4k+HE9/sLW3\r\nJcl6lv2HaZ6LJyIb3uxKIxDziv2HEBiYHbd4SdZvonOCVj1Q1TZv1ICLLN2L\r\nWPznm+6Dbd26Rayx647qXZqlEJJulD1owmyduQpqgX8V5rFBuW2EkwtM0mQj\r\nFPk/ZyfNVudD3T1PGmKPM49gucPShi/1jxPNytWWq6WUICL0ujHByVrfNTkV\r\n3JSfVyiK4IMybiVY3uQafkfqn8Cwy15GB0vQiQbPpZDJbxrQjHDe9kd+KAmJ\r\nCbMOjDtP8YlFWIlStlqTZqiHJekqKcYb1x42b0WyanrUFJUOF0IdV3Iecr5H\r\nRHRhv9FrFIm9a8qW3waNLmtQxxXk6tklnw4Ot/IXFDriqfha2HZlHyqOzvMn\r\ngFD+4hoFPBUtNIV0NxWuEHTzJgtlFMhhkdwAm9i8+D5Gq50SnsYAGEo7Vek/\r\nRVgKkg5+PX6ym9kkMrDkb+XG2SczJoIZ48g=\r\n=1w2I\r\n-----END PGP SIGNATURE-----\r\n"},"types":"index.d.ts","module":"dist/index.js","scripts":{"clean":"rimraf ./dist","compile":"vite build"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"licenseText":"Copyright © 2021, Telia Company AB. All rights reserved.\n\nTHIS PACKAGE AND CONTAINING SOFTWARE IS PART OF\nTHE HUMANY SERVICE. BY USING THIS SOFTWARE YOU\nAGREE TO THE FOLLOWING TERMS AND CONDITIONS:\nhttp://www.humany.com/legal","sideEffects":false,"dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^2.9.9","rimraf":"^3.0.2","typescript":"^4.2.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.5_1656681418493_0.8780583207914372","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.6","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.6","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"5ae2ecaa17469e553e90db4a6e6659cd4ee151d8","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.6.tgz","fileCount":6,"integrity":"sha512-bChTH4Q+q/SXFe9TJyr1E/JWNxVjw4TGm/xicOrCGhS4PnFzIT5H/p+RPYd8EH8Q0/Uxs9LaDD/DSCDHdRasVA==","signatures":[{"sig":"MEYCIQD+D1xgSd10HDLJF1kuKneAKjS4LJkF7ZOicg7izIIl/AIhAIZVl26n6MjU/0cLPjh733uB349h8vSmkIl9uP0kQ/a6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0QMkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+MA/+Oc0hQlkmk1PGgnYc4j5k63Sb6MVnW2tm65h7JbmRaNKtfWv5\r\nHzBM3+3RRMGejSwzYbrLEqkBHPQkvd2rR5wKl5qkLo9ZuEx/rKw5IUE+tPVj\r\ng0IO2cKFDgWuhgwvgdzQUhPFeU6o5rKW0YeAvaNSHChKqLiwBA2rW2DthHrC\r\nDd1cwb2tzDDBSbuW8LSN/GhfsAtaCBGZN9AScRpriPmBqSmMqSGLRwi3zKEM\r\nKHWVXxEUTx7G/stQPhGsHn4vWEfWzgYj5xRcdt1JHKOls1G3w3oSOe6pu5hi\r\n5h4Q2lVNSzEdIrjscX36drHy8tlHH8y8zpF03Q88kvzYFWqg1t0/taLSV2eY\r\nd1WhnzEueS5ATMEv28lsFQlz8eLQCj7if9FIRAPSa1/W0ZPS8yhUpefPTsjj\r\nlhGXVkmsixBdkW9S+I3p0ykd2pNTu0esb/ue0MCi7nF88ytCMpDxgU77gjxQ\r\ncciMrKymFvUA6T2MHE645VEBhluvmpZFwxMG1gu3H99WxTPvQvFMMh0HAHS+\r\nAJ1EYtyQnis4vKAA0206+VLCj9SQaOQrOOixMBLPeEihevyaHnIO8rTyxroW\r\n8qIqsUvpoq/1+HtJSilFyAiqV5Dfvct32gYWXmNg7qvJJxjRCpCJsI49BJa8\r\n6kBFAARd/99K5kFxObwROFI4rn/zKJ/EYlQ=\r\n=uHCY\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"index.d.ts","exports":{"default":"./dist/index.js","development":"./src/index.js"},"gitHead":"fd63b45935f72be9d5987a6b2cc37ff89942dcc9","scripts":{"clean":"rimraf ./dist","compile":"vite build"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","_npmVersion":"8.3.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.15.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^3.0.0","rimraf":"^3.0.2","typescript":"^4.2.4","@telia-ace/widget-developer-tools":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.6_1657864996260_0.9712443124660228","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.7","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.7","maintainers":[{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"042d4e6c1ac1e5840b0358806424bb8c448e1946","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.7.tgz","fileCount":6,"integrity":"sha512-naVU1e0fW/YBjUwVyuoQMOSbDealNy1MuDKZF5OxuKGQ3RwoGz0pD/PzQjcA80k6xb8pSPm4yPZ//VXNRToBTA==","signatures":[{"sig":"MEQCIFe/BLnerclHbReOwuIoklTVoLYsT96hXCIJVujfcaRCAiB6AdMDTpH6FI8G1ALESAU6shG9aFOCuKSuZbKCeJLIbA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/d1OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqpQ//UqJyrsi0teQpfCHbH9Y840/JiIRvo87OU2Wl5HdMv6VzIGJk\r\nyUzbiT69jkb5QcbN5cB4QNYNI4QLeAj9A7mf6n81NhLsjKN0SWihhFYv14A1\r\nvUR3KrVHqU+qpTBjyuoTdQ9hl4Qopp0FD4MW7CP3fAAuq2GWm/ON/XyOv9Gu\r\n1Bj7yJ4Cr+txi9V3INpmbpm5b2LZepiK8F4jwXTNm/XvRMKcXH4Si4FTFOgj\r\ngACOd9ghwmOMTbvDgosfsX2AlXss+OlJDcGTLm8J53RjR00Cwr+6EcupDOlQ\r\nP7ar2oGHxLf9oplSW0ZtZD6sv8YBW3OBRlPKlTQ31d3oyywgXub62MMf6aGV\r\nGxj/iJmEd6hvmY+UByeZSBsOEhAU/c/P5YATSLWwz2xztJXVxDITQD4rN4tB\r\ne7InoNHd35l1jvMx3f2kVkjqz4QHQxV5wAsrhS9ZtP/XsTxjZELujArJMCzV\r\n/LeKhbIVzmkS14W2I1wvZQgNdb5ex95jSVGYy4ud4UVId4wu1GKBdbbXkpfy\r\nEIIdf7A1Lh6LbdBElUMYXn4IktLEQ+Sks5pK7J/Rh8kZ08/hfmfkLOwO5cQW\r\neU57CPIoFogirWA2miNh7y3wdfSpJ/DeF+4dxywDu1xWA1Rb3velLpKimNUe\r\nuoS44yZG4aaEdkJcN7rT7ATQZbftCBOJ/uc=\r\n=kzM+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","gitHead":"7820661da5f6d2bef03a02704808f8e9251cfbe1","scripts":{"clean":"rimraf ./dist","compile":"vite build","prepare-publish":"yarn install && yarn clean && yarn compile","preprepare-publish":"npx rimraf ./node_modules"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","_npmVersion":"8.3.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.15.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^3.0.0","rimraf":"^3.0.2","typescript":"^4.2.4","@telia-ace/widget-developer-tools":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.7_1660804429817_0.7308348825049968","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.8","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.8","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"e40968ab4dc1bdec458320f7e909ce459d236be4","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.8.tgz","fileCount":6,"integrity":"sha512-p1R3/cdNWS5kfPUX52i4g0yYhb73O/Bc/OiTgwqGbSsIyYYGZLSridbV8/MLsHT8SfO/zXR/Ezkbx30280+yAg==","signatures":[{"sig":"MEYCIQCA126jHyIJzqcjdR7BvhL54shSFZqC9LOnQs0zhmikawIhAI3OIch/SJNFK1mzkuFZCgTCQqRv4CdeNo//dJXqKjVp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":104820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjOuPjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmWg/9GGYE5oNVXUUXabfU38Bfw+mizinjCEWghma2H3vH1kBeGZd9\r\nwXdonCAn/yq9kEggdjdueRsHoAF1MWfzOdSzoSqWSIOlJ2EyAkdnKbBdoYyf\r\n0BeIsrot3HdXKy9Wjbpha1KN+Iz3BmNX9WEq2+BzCoix0DAJQNxNWvlIB1qr\r\ns5Q9GT5KDxhTqTMs8Rx9p7fi52Be+EYQqzv3HHQFcH7FkZxy2XhrqvHaR0W0\r\n6XgsuQfpaW2W9K4LkL9UUPfjb0X4MNQR1Swjx+Zl4AtUOqAS2qEzJLlJR9h9\r\nVACMndbqF/mECh/JfSk/IlZBSAYVGerFzewwrY1OHRM9jE3WgiOjcuz/oZcG\r\nB5iORGZxeCx60g8OSu+fVNWzCfPFolWQM3lm7pQYs0G7A4JJC07EhBuqUi2R\r\ncAx7inLDnrqMp5egrmiAVsJMoi6Y/HbhVHHLX0Mv1OQyNSg7G420+F8uUssV\r\nk4MrrCfXIHtXc4KRiXrfXAHFGBRzvpY9/TG1PwKjLd+BE079TnqCzUeEFjV8\r\nUP9uVnU2ngPpiH62WftVq/dPIhDspKcgERFjas14XDTYSXI/fhgh69AgjvWT\r\n+/lUFG1o3vAoiGY0mzw1E6Zt4Ee27aT0byQaeSQP87TnQVaxvSKpMVbmRtEH\r\niVlA4U8WBEUWEZe6tj3UgQZx/fTgPFqC40E=\r\n=2Zx4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","gitHead":"ea2a2889c82eaa1c139de6cc9a8011f0f7a45627","scripts":{"clean":"rimraf ./dist","compile":"vite build","prepare-publish":"yarn install && yarn clean && yarn compile","preprepare-publish":"npx rimraf ./node_modules"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","sourceMain":"src/index.js","_npmVersion":"8.3.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.15.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^3.1.4","rimraf":"^3.0.2","typescript":"^4.8.4","@telia-ace/widget-developer-tools":"^1.0.10"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.8_1664803810810_0.1879418353050366","host":"s3://npm-registry-packages"}},"1.0.9-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.9-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.9-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7578305bd6688dc876b4a581adf92ad477284f8e","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.9-next.0.tgz","fileCount":6,"integrity":"sha512-6PE1dCZlHrg6uubm9D7rLNYVCLzI87n9JwuBf2RU3TVrS9Uj1sgy+oZ8HkH6+c3ZaspYS8kPoYSGauBEYIblKg==","signatures":[{"sig":"MEUCIQCjbmDZBmL2RriOAm9Qpy0bDFfJNJibbwV15US74xwpAgIgUCc9dMHwzfIPgRXD8+TdelWC0Y8IW36g7J+w2OU1lVU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUC6eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+wBAAoPs+dJ58AGBlVvniq0LKwoNDO+IjYWggD5eTS0jY+rxJZRh9\r\nQPEwRisak0McmsBaGv13a0IDlORe8y6ZopmMirx1uIzrtQHJmRjWv0TNT9rk\r\n6DMLPheLu6aIT7DiPdWHQf3FGy2Bfm3L0O/FRpk/k+i5KDw3zf7KHGWXgnWK\r\n+2jpQ7sWxWcm/NdMHq2ZDFUnrxp1vGPd7bYQO+Da5bJAzFof77G/jsbyQ5WO\r\nNmSGCa3TGL5DWAHS+tiRTSeqCWY36NrjTqYZn4OWdj61JNt8WByY4sd+kpTY\r\naFWxH0iscPwQayzd1vwHc2dgTJYeXr0NxnQ2KztWL0pMHL3Z+Gk/ol8x2mEH\r\nHRBjT8Cr0yDQ3XMeZvQ/SuvdijDlKygPK0WPUno4Xf0WE01TOOuStDjZcEbW\r\n6tZZxy7upq6AWt02svElktEpb11lJnZhu8onyItT46IxQnG2qA+0vkpNS+8e\r\nXV8AU8OwRjpWkTAMHvWENU0AcASRb6exveRL2l3GFzxVcDWlTRjCbY+77IeJ\r\nlaB+Zm1nCUUNm6u0VhFjVBKSNu+pP67TB2FiUilxvqVsLEbPqkHNy/ykp+fy\r\nCRV4Z9AHUm0z5/kcgpXAGetl2LjSxl9xoufZMzlVRcNvUt9vyfNsJ6PuYfpF\r\nabPR5rbxNNiMAWbMRohvAn8ZE3skj5vux/Y=\r\n=TvCg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","gitHead":"115685f8a1d0e9411d4b523e475e1c020afa61d5","scripts":{"clean":"rimraf ./dist","ci:test":"echo TESTS NOT IMPLEMENTED","compile":"vite build","ci:build":"vite build","ci:install":"yarn install --frozen-lockfile","ci:version-next":"yarn version --prerelease --preid next","ci:version-latest":"yarn version --patch"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","sourceMain":"src/index.js","_npmVersion":"8.15.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^3.1.8","rimraf":"^3.0.2","typescript":"^4.8.4","@telia-ace/widget-developer-tools":"^1.0.10"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.9-next.0_1666199198136_0.7179064456546045","host":"s3://npm-registry-packages"}},"1.0.9-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.9-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.9-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"5df684f7b06373eef5a3cb73e6a418db7a2d92c5","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.9-next.1.tgz","fileCount":6,"integrity":"sha512-4uRGUytEIJzZQAsSXjI9auUzAcZvRv2pbZIrkKZ3hGpEwdM9d3R5pXb9OIjubOxL4Wsk52FG/EyfXqwT5yyGxg==","signatures":[{"sig":"MEYCIQCaQmJ31/btiuYTa5Wt8xg8e91LH0EP0zAGL1jY8eQwYwIhAMAG6PrlOSm2lS4f6Zn5MIzN0NFMkGF+lkpIWeuppozq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUOeyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlOQ//Wu2FjUI8f3v6ASF7zf9sX6n8HEcpwrvQWRB8jVSBGqvZfMv+\r\noXU5rnarlkh8e+lZ7BhAjBEhO3lDBRJQgpJL+sv4pLQGBHjNu6H+mgEsRRqi\r\nIzxTBU+9A7iJKa34vPS0QpCNWdcXX30eyKNMFqa3XgWbkWT/wp/TQwKV808R\r\n4QtARw+SRMWyR4rqUZVH+okdSBw+EJPwhmoOk9d7RubuUccidC+bUDLrpToF\r\nDmFF+poy4p9mzZdmFiKsQe23LZlhtlwHU0os9G5SfflnBq94Bk3YhVWKywkW\r\n5kWoWfg/pOji1fgaNC7EuzhBn1Rq3bhC+F55MH+MdoLDJssOTAwv6rVPjiZN\r\nlpBgubGirE+slzd6Nxw0YJ9hvtZkiAUIZ28RRLOwnIyIWBp3MyUG5TsizzFb\r\n/gJjZwcRFW1+x3nHBc9BGxwL8Bw73jA1V9s/HCl7RqzPGKX4/tInBzCptvOe\r\nAED+GlMvi5uNRI3GHcdJ1IVdhR9p6c7QFRCs/Pudm4j/hBtGELnWv8jZZKhk\r\nZL+vlgyrDR1KZdGM6MwEUK0lttaNjvsFsI+0EtmJrTvl56jVRVTeNDejJ1GJ\r\nraIPIkI3RTUvskntJm+7+CQa1Kwg/FyK6a0x3W0bWPOOmH8fKP5b09Zu+zuA\r\nWnja4jX1+8XyaZGavBfS3nkkS66z9SFyg+A=\r\n=SESf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","gitHead":"708b0d211f961f40c83042e7dc9e132ea6db2af2","scripts":{"clean":"rimraf ./dist","ci:test":"echo TESTS NOT IMPLEMENTED","compile":"vite build","ci:build":"vite build","ci:install":"yarn install --frozen-lockfile","ci:version-next":"yarn version --prerelease --preid next","ci:version-latest":"yarn version --patch","ci:upgrade-deps-next":"npx @telia-ace/widget-developer-tools update-telia-ace-dependencies --next","ci:upgrade-deps-latest":"npx @telia-ace/widget-developer-tools update-telia-ace-dependencies --latest"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","sourceMain":"src/index.js","_npmVersion":"8.15.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^3.1.8","rimraf":"^3.0.2","typescript":"^4.8.4","@telia-ace/widget-developer-tools":"^1.0.11-next.0"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.9-next.1_1666246578772_0.6138249134710185","host":"s3://npm-registry-packages"}},"1.0.9-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.9-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.9-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"2ec55004cc7b2fe12ef451d2ae4c12fb33801a57","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.9-next.2.tgz","fileCount":6,"integrity":"sha512-KkABtcUIy3TOvm7XDQy8bKHy6IOOxIkYfZ2lCTdN6bSX+9AAiBXgoOwwrG5NNB70plc8UFePeiE8non2MwfVLg==","signatures":[{"sig":"MEUCIA57aqm2kESSKM71JKEIIs7XIHYT1h/cmhfDpLaXAziSAiEA80DyUiwIkJgDulPTcbyCOn81eFh69/TloLJ19Px/e38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUSfAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodJBAAigll/kVRrKtTV75c9ZK3a+maQbhSBMW8jje83nao7hiynn1p\r\nSWoPnqWDdgHPnhb6R15mxh3VeNJEF1cXarTH+DQ4RW6Cdsy6hPTB3aHPFb/u\r\nVP9XgJ7QgneJJlIji8cq9ojnKwQno0EHXfhaW5Pj95WHI8i68PGXagYZ6sUF\r\n+pfyVKSpkYMIF9vdMQI2eEXlZGOnK+D6DIZn78CYoZCzZZYCH8Z9yJwctAgI\r\nPrlvCKZK68Ly1QuI5JWQy5vXKBHx3e7uOethGISgILC4Wy1Jf62eLmx3rHiE\r\noLoukScng3Z+hclKASS0Yll22KBDpXl8yaQd/cEVz6agwb0XON0jHGjLZvzX\r\n7tkdnX0lIJ2hyFjz1bHkOEkY8uXkUU+V8ZRfou1uQ0JJXbnKnTsCGsPqSuxD\r\nxdyM/YkLWT13eJvOG+MU8jfsFlUaM71vNNZ8oLdz4K889F3Wr7mWaVHZl0UP\r\nQfj5FBFDkMjcJ2g9vBtk03RynQ2EoPksBXsdddlOM2ghBq2J/6m131B3Te8v\r\nS30fxiqSrqiMVXLKAWiz5ZcIB9qUd6pV3Qm0lj+oGyY/yZNI1/7uX9UQHxOv\r\nxD7HZ+OwQXnnMmWs32nrc2CAMfzHD60CQT3YICe0O4qYAblXDfdbqpd078Mp\r\nAAHDuUUtynqCsKzpNUf9/2I2m1dMoQx+Zi4=\r\n=pdQm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","gitHead":"8d92e9c3500a0888798db2724acd845ae4ff6933","scripts":{"clean":"rimraf ./dist","ci:test":"echo TESTS NOT IMPLEMENTED","compile":"vite build","ci:build":"vite build","ci:install":"yarn install --frozen-lockfile","ci:version-next":"yarn version --prerelease --preid next","ci:version-latest":"yarn version --patch","ci:upgrade-deps-next":"npx @telia-ace/widget-developer-tools update-telia-ace-dependencies --next","ci:upgrade-deps-latest":"npx @telia-ace/widget-developer-tools update-telia-ace-dependencies --latest"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","sourceMain":"src/index.js","_npmVersion":"8.15.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^3.1.8","rimraf":"^3.0.2","typescript":"^4.8.4","@telia-ace/widget-developer-tools":"next"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.9-next.2_1666262976281_0.33386186123563366","host":"s3://npm-registry-packages"}},"1.0.9-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.9-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.9-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"d1fe7ea5a0495c9fcae07cdc8323b5815caf84bf","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.9-next.3.tgz","fileCount":6,"integrity":"sha512-sjZw6qVrlj3iiC+Y70VOoHbGs8rWvebgZQw3Mj78ySfNcARYu4XiC6yOW5vBUc0u1yQzlGcQ76dGikqy+t6gQQ==","signatures":[{"sig":"MEUCIF7ReSRAPSf8/19dOLTrzZcoPX3WUuleF9vGpMlZxmjHAiEAidMusjl1Bp6+W9G1vRu1r2XDE1xEx+hZhNfnCfW8rS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101832,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUUMFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVqw//dyefILuGt4ZXRZyxllM3BF782gsfUhu8lOCWUA4KVAK7d5zZ\r\nKBDfSiXxynRb+KwlMLJhBKuxv+0pY6kB7glk58vT8Co9BsPVVyAKpUmiiz51\r\nc826Aq5pVQEIm9n7c4i+6tVGFsRFP50f1wnGGkQVonJm6DoNqFmgatwdmapq\r\nPs7YsSkikWQwSpVUfkztwKrkdMWvSVexW1KgvkATobLeKYLccXu5I/Laywdq\r\nUx931KvnmddMnLY5E2z1VkaUUEeP6xqXe1/BLy3vgdCPS4qc3kkL8HppGsN/\r\n/gTXdvmE0AmakMJOV9qUq1f01QLbCz5Rw8qC4PqnLhYJqVQE8K9Lh7pGE4mA\r\nQA1ElVKHbH+jtRVHKHnDcJ0svVtrGmhpDcSOJdUJpEDcm0dWlfz4AM9WcWDC\r\n/+UzbqYVoyiDjN91mSH107sNqldsiq4LYik6FSApaWFC3/5pWA99ILsYrkLB\r\niPw0RMNswCbfmmWPEyb2Lp7tkR6w+Gy8Z3tGMhpy82OGEsD2gCwMswjvfqcm\r\nD9DWzbqd18+7reIOFI4/N9WNDoaRmrbTSbuIQ2fCbsgp/WEVzaxc/pFLgaZN\r\nOy817rb/J8JRVIuAy8Z64VXftdlfFLpuW+4nBWPjy7NNUOH6jEIMhsHua6GV\r\n5PE4/v8WYdVbN9nfh3ntzTqfkaWnGAwYLxo=\r\n=fmsC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","gitHead":"adf5126cb253a9b65b2b4ede1017703c2460fa2c","scripts":{"clean":"rimraf ./dist","ci:test":"echo TESTS NOT IMPLEMENTED","compile":"vite build","ci:build":"vite build","ci:install":"yarn install --frozen-lockfile","ci:version-next":"yarn version --prerelease --preid next","ci:version-latest":"yarn version --patch","ci:upgrade-deps-next":"npx @telia-ace/widget-developer-tools update-telia-ace-dependencies --next","ci:upgrade-deps-latest":"npx @telia-ace/widget-developer-tools update-telia-ace-dependencies --latest"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"prettier":"@telia-ace/widget-developer-tools/prettier-config","sourceMain":"src/index.js","_npmVersion":"8.15.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.17.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vite":"^3.1.8","rimraf":"^3.0.2","typescript":"^4.8.4","@telia-ace/widget-developer-tools":"next"},"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.9-next.3_1666269956953_0.611349201880812","host":"s3://npm-registry-packages"}},"1.0.9-next.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.9-next.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.9-next.4","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7ba6d6dc96af3c02e395f06d82717b3f8abe195e","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.9-next.4.tgz","fileCount":6,"integrity":"sha512-lWTkXhk7CGSlwDaL+jqt+u619VR2JEBsvkScWL+ZlS6OdHmKz9PY6vE9TiLOmr1H2GuH8rEp3Xqb4MQqz/svxQ==","signatures":[{"sig":"MEUCIQCrDloSQ1rKT3uxPr7MMQcsJFW8dHi4yuBFkCQAjtmhBQIgUXgy0yllkeWj/AeSsg0Splq/txCrKe6Z6eMkEXoy89k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXCQIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEdxAAlZRxLTAbdW6mwRCLYJmKv5MnlPV7WUZnO9VD68NDtGDAMqnU\r\n/8J3hPE9D0r9638t7ru1G9AbJc+pqId+7TX+rP4TAqcSTUJmsn414XuLpoIW\r\n47H7At6qLk55+lTWFKGkqdrnUCUNw/2qtTv4ST7HryKrYVwnX0mcOna7X0O4\r\n4RMYhJWR6bfNv+0GgXcqmdHDdivkWF6t5i1XV8lhUtn+29ud8SMCeZZwda9p\r\nPEQgbXC1VVAam6w0XbMsBYeTbFqG008cj0Zy+CQ5vxufOnERcJJuJSYUnW7y\r\nJorOvNAGrwxXKo/k3Tm30JNVvLSk5AlHJ+sGZCoawW5DEtjgFDd7jnHgOzRL\r\n8GqENuXWadQm5xxj6z0PF7Ne0Lxb10aho47Ab3WMCWH7w0Uv6KBTYi+NLJ7W\r\nAvjae7/ubCHFxr1FUdgyu7rrwExQCgnBZL+aBoJckqBBTeYo1Du0RzRR3cjy\r\noZU8DMde7Gvc6WAkaxXM2zUx7/+e9shRgyBogPPuPzdkJ98pvvP6XrsP4hws\r\n2sE9G+FAXOcnhCiuzGoyKRN2TL7AwepCyD907B1D515GMMlYmoywEP9kTMlo\r\nhJaaIsp9CdULvwTv+oEJRYqEq5V2L38ZRTWeTf8zrWFAVjpGLbTeLr03g3sf\r\nCYHjGI3WuZztdwGIi5ps3Vja3vn8DSec7ak=\r\n=bC6K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","gitHead":"f91538e9510f88a02bc0c392ed6d01417eb8a060","scripts":{"clean":"rimraf ./dist","compile":"vite build"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"sourceMain":"src/index.js","_npmVersion":"lerna/6.0.1/node@v16.18.0+x64 (linux)","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.9-next.4_1666982920681_0.13403556129554772","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.9","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.9","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"e342bb385d563426da24c79b7974135534dfb112","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.9.tgz","fileCount":6,"integrity":"sha512-NrsabttziUpr3fLs2aVYnOsWHd4K5lYhd1bPjzuzZ44U4D8TvHGx5hT9YzfeAxJ2X/tJDpiBLb6YH/RsaopfMQ==","signatures":[{"sig":"MEQCIEmga6ctkT8ZnJkrvgw1UNkAYmdDqYgCUMGG7UzvGXXbAiA1uaXsu3u0+JGQ3BoC+qyfBWXbpa8L1o2Jee1pRv1QSQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101139,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaMViACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7Hg//UtHWceyMrMAVbYdYZ3kTzpZm2Vi0LoW2byjQLQ49Y80jMncQ\r\nSKXWMrK2a1E4zXiRCLAwNdeWhG5WID/p6RWr+kKjrt+SCTHp1u7PU2C1envT\r\nKteZK6vTNK2z7yCHREz25akCInGsF6Lo0X1P6LONtwkUZiHYACRXm3t5lYuD\r\nFMAob5FUQJmFbv9Lu1AAZ1aRYBE2BLuSLe/ndtRExECS6/CPnpbdcrvqtWGW\r\nSAIcBD51zWGC9QWTcf1ZG/3usHg7kag1NKyD927dGRb9F3r1sgfai4f6UjZ/\r\niRsQG0q0Ajsrn6NcG+MIsXFKi+4Oq8Lo/O9kqccdZlKWtD4rok2PQjwFmtxL\r\nGDY4mOxRv1kTM5igh++V8JZTbNJIxczTSzB2VjahI3qtHG+z8bNlu3r8rWip\r\nxlG2Di6r+KbngkHzjirBGUzxb0sei6y0ldlR9FhDw4jSVbpA65pdxU6BTjnZ\r\npKxuUDkmqO4onYVa+8RB1e2HcC7Mcs/UOZhGhIazGW63GzxrjrXGhZMA27B/\r\nutxNsRAaeUhIeJPbvEUa1oLW4y6+iMvbTBq1J+IvSIFAgqdBUzwlmMjBKJOU\r\ntuZfn2bD7vcNuuIm/yb/RkXFuSRLH2sR4D3RAvWwykT56lLNnjcTLinS4oze\r\nFxKKJQ4NUH541GunjNTa48yq3H4gxof0Z9A=\r\n=uU9Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.9.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2d8608b23d52d91b9712064fb3ee9239/telia-ace-knowledge-serviceclient-1.0.9.tgz","_integrity":"sha512-NrsabttziUpr3fLs2aVYnOsWHd4K5lYhd1bPjzuzZ44U4D8TvHGx5hT9YzfeAxJ2X/tJDpiBLb6YH/RsaopfMQ==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.9_1667810658596_0.8980671502209192","host":"s3://npm-registry-packages"}},"1.0.10-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.10-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.10-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"816bfb74684a748db4091106a8947e49f6029d72","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.10-next.0.tgz","fileCount":6,"integrity":"sha512-qmCcbEtPOoCjoCJYtKOYKtZS1X/AGsA8IaIGHNR0MULxaA6nBwEh0/nohhmCM6eMiJZz7z2NDPDw6d5gN+wMYg==","signatures":[{"sig":"MEUCIQDfeCgF6jRPHUBj3YYENMumbz1g7QJjed3cuBapYtusZAIgA7R2CaT4S6Py233r1Do0tkuKhnfJ6SLGZPVeDfeiec8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjamuJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr8xAAmd6iDp1xg/rmwmSYU//w+DTFhhiXkXbz4qkv2gnjVlfPqzqH\r\nAey1Z1qr0QehbZ+/fXIUgQljCU01WN6jpSeCIlF8nT6o2XJ2am16C1NPgo5E\r\nkbevCX25EcYYqddBqh+kfFXolH/X40NPg0/1Ep09uqF7SmocnCRD0+cPjkoU\r\nEihWkUc4ZBx7m2vAHpGtuoQVPY6GED46MsSQbt+pKDi8OIq7IgyUDLJf7Zyc\r\nD2Xxc75bhGOgJe24pd2j8jeLdk685hAtaVDQYWpEX1YYpTJVURmxJK1tGMzP\r\no5+vdrf1olqdrQR79DcEldlIHbfyjD8lP7oKukgCcbCLNCkRSgoavyQua+cf\r\nN5vpc+6gCEL7BddUGj6a3bTSm3ypcLIPHL7NCuXhSB+lQxl1ruBl+a0QpBFS\r\nXzax+bISyYb6aMLKwdSOCAjO1wECjKBOH0Y07L66Nu2NqmU279YeN1RRwNW/\r\noDNCPZ0ROLgO5AvwDqX/VFPS4C0O8gmr3jpF5l+7pIpFLAxGTUZRsv/ZjC+F\r\naJbb3kdQfD2Q8SOvlFIm9OZ2SQ4i1JuiJ+JYtK8Shi3EIlFtTtPWLnV93rhu\r\n4wDnSIO3LVRSRXCXtAd54io7uFxLQdctFhayIlUsdP+rh/N46gf+p1LoqYdK\r\nq/SdLyrWqDq37DYyx5tNJOVn/LLMIfQ6kE4=\r\n=Yo56\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.10-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/56d06fcaaa0e6a5af0be81777db04136/telia-ace-knowledge-serviceclient-1.0.10-next.0.tgz","_integrity":"sha512-qmCcbEtPOoCjoCJYtKOYKtZS1X/AGsA8IaIGHNR0MULxaA6nBwEh0/nohhmCM6eMiJZz7z2NDPDw6d5gN+wMYg==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.10-next.0_1667918729556_0.05427767336899736","host":"s3://npm-registry-packages"}},"1.0.10-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.10-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.10-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"73fc9d5b0a158e524501f075d7ada43db3b81d92","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.10-next.1.tgz","fileCount":6,"integrity":"sha512-jI/+aygrUSCmKkNVfDkUa+RV9tcUzd996FlCbyIFgafQs2Wa9nQmFOlzR2r2fziwA9YLDInLtLPpUs9DJRJJIw==","signatures":[{"sig":"MEUCIQDFh2HlqEJc2Xwg0PqvTEdH+ze08Z17Tmmiil4C8GKMkQIgc4NgqOloW3kFJbGAp1SNk/hXEZUdJm1zBuE03MdyhHs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja2sMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4IhAAgz3WlNSDpYOumpELIFIQN/aqB/QYtjDJqYYSM4Ay50DkwBVu\r\n1HIw+m/QbVTxQT7adICJxATfjkF6EOFe4ySUlY/pbt+5hI4Wh9CpCH+bc+Q5\r\nGWQ9312lhKtxBHWSIGqPJx6GCTj8lQkZZeSHkl2hJJuZ+s5p3ZTRO94uC/11\r\nL3urr8EktgQG4MjhgiXHhFUZB1YL6sMgPAJjQj7DwnqKEv7AbFKcknKLOLQ7\r\n4gmyi59PaZZAK8s/9rFw7qFA8oBzqGLyoTXpVLWNnvShPaGgH559J8dSo8se\r\n3jdIY2nTH5bq+I3micIXDEFTiekTwNLqUMLkje3YNnPjwuFo3lIES6JyQj4g\r\nGljWQ102WCOupofATfkuvHS/FwbIGqFaMd1j0CxdDLkrC6F+X/GL15el/hJb\r\nRDWkkgFDpf2Y0RNxT6GpHhT9NrikzT9h5+sqUtwF15r03EScXUoyKCEVM1RW\r\nmoCBHPQLzbJYmw72o2DihTTju5U/IGqCAp0Ql/Ol8w3nBQ1C5TLqt4JND9/V\r\n/AbERpzE7qkEP+lK2CMp/zzv8YAu+UPotlgKM5hrHeJULSnDS5gpdeKQLDPO\r\n9zEpaZDkmlrvICm/bIUS/cvOCKBwAh1MVNVAT3AvHOzYAjBKZhaLnzTNOPvi\r\n2QpKtepm84xC1cV91UfPJMdqUIq0dhvhGZA=\r\n=ZW6z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.10-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/a48f90ff722eb550fce16c2ed6fd9a5e/telia-ace-knowledge-serviceclient-1.0.10-next.1.tgz","_integrity":"sha512-jI/+aygrUSCmKkNVfDkUa+RV9tcUzd996FlCbyIFgafQs2Wa9nQmFOlzR2r2fziwA9YLDInLtLPpUs9DJRJJIw==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.10-next.1_1667984140759_0.06575367568664459","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.10","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.10","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"496e218f39453c1ffd4c43cb33345a65ddc62302","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.10.tgz","fileCount":6,"integrity":"sha512-HALZ6gCCxwn6rI8t7J6tKjV9rS21cDfwsYtcrIh37mn2p+wLi/PNK5r7Ymw0fpOzsV/eYreetYupHYgGpyIp+Q==","signatures":[{"sig":"MEYCIQDYSL9wFwXxdlBPV4rCGol+03u9ytClZ3EwaCXyPVN8kgIhAJTUSLkDVa+kRxZV2fYbxl4SN0z99CJ8hEsNwH7LmeAi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja365ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2bw//YEnMOLwTTFYjUJbHvQ1/W23RnR+/V5BJ8QbdZRCbNqJSwfAq\r\nKC3bsGoPusmSUq1nCkgJYjDzc0ki8ltLXPoeUJFNrhmhPIa3NMTK/Gx/dONI\r\nG441pXZ2rmo1jgKrmGTpQ4wse8Di3ASzz8mq064McdNlixH8WfUrqgVkeykI\r\n56L4o7jp8DQM3Hhpfs2AsdbHKbY3P4kXuo6tsB/3wCigwwGd5bnHp92Bn4TZ\r\nusQcGlSN+kEC7XIKeuSCoAyVVjpVyiPbF1vx/GXfD02OhWHCl39r7UgdkzB2\r\nBIphCaAATrmz9XlgT1dZkpLWLTmQ8ETMvOYGal4GOsAI5WuK5k8v8K1Nv6Ek\r\njlw5gbhiUF8IzJOjnk3smkQvOxW0xIe6CLCGztkqmBm0ftEF++RROMZ5p4FZ\r\nADk++bknmc0YkdGo+vHz2+lNjr20Zwd4Y80QR+1rR5hQHRDA33y++l56hsjP\r\nk8vpa56BMEtOUXSNF3SQX/yjzQOxp8e9dep0AxH4ARcKjrFYHvdrOcJXqfBF\r\ncpvaZzGKUaItX7cqGOB/dZHqQZFrBcLtzUOMC42HW8NDtm36XLXL0rscIEqv\r\nV8l8UvjZttE/FK3wej3y6UP6XdEQ1TgZbzVDi1YqHaZtjc15pM8SqIE7gBGN\r\ncaYXYx3YIujnDb8aW+n6IsyX70vQTTB4a0M=\r\n=7LUg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.10.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/c4fd3a8eaf8df35f1d7c5b264b04074c/telia-ace-knowledge-serviceclient-1.0.10.tgz","_integrity":"sha512-HALZ6gCCxwn6rI8t7J6tKjV9rS21cDfwsYtcrIh37mn2p+wLi/PNK5r7Ymw0fpOzsV/eYreetYupHYgGpyIp+Q==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.10_1667989177789_0.8687065008630306","host":"s3://npm-registry-packages"}},"1.0.11-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.11-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.11-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"3de1c7c51b730eeb7310e62dc8d2897a41f6768d","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.11-next.0.tgz","fileCount":6,"integrity":"sha512-urw3LG/bYE7ku3wx++q7L9WPyLAyjZpqEpgsjxTFktuKlqu36iu0CsEV92A9kTr3p9f9LibKvArmBqn9pgEltw==","signatures":[{"sig":"MEYCIQC+p1N9fVW6cCM29ZmcxjDMEnK26Rv/Yg4mTl3kvKegKgIhAPrRvnGraa6CvXmf35tRko4Cd88NxgFAjDFjWfj5r/u/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbOibACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo13hAAi0EqpLAullcpwxmZp5qmV2pw4v8OZLEmp5HaKzFEDhoBdFx8\r\nzQfdRMq+BErr/R9tU8gOufqxC1Ij4JrtdxdroZZnFHEtyR6uin1JAPanqVMj\r\nbrO0+RHUUCp04Pu1630g2ysM2cB/wC+Inkw8rAD10zRoPx66e4+hwNEVNOqE\r\nXSBAfx+IptK42C3vi14OEn+6Abqv1c/eGCSznfYQaNJdXJ1xjwM2cH66sVNo\r\nd0LSdC20NWqJC7BmE6ZlUiq7tUXCasu89G7c1kNsV9kD158kbrzkdRAAQKgX\r\nmLo47YWpaqilAGmRIQXZWwsPbgtPg9WWf604Ok9QppIN40DATRHXDItS8ZET\r\nAzqKFWEP7ctVM15bIUS0qorb6XHOygG+uk+jWsXd5JWi+EUqHD/4VfPnMY4s\r\n7HAhDN48YfWQgiIT3s3PdqaHbYjLxXdnWYJE4Ila3tzkDHM6PA9IHSgC1qK0\r\nrvstnTIxvqoGBjXNekhsgbEm0eWZZWlK42BzywYyoU5VRecthRY1g6gIs92S\r\ny3YzwjM4K6wxeLw/YAIwbvoUmGqUgcEGhQBOT3NC1Lr7gYby9U1hjWg340vN\r\n1FDS7it9QqISLu1XpiUkTzyveGUv2yj4ru0PDtbVxdcmVhrVmCoNtrEXSzHj\r\n9OEVU0iWoMZu04xD6lxiKHLGFz6hn0oJ9XA=\r\n=CU6N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.11-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2b514b4e6ef90de414f79ae3633085ea/telia-ace-knowledge-serviceclient-1.0.11-next.0.tgz","_integrity":"sha512-urw3LG/bYE7ku3wx++q7L9WPyLAyjZpqEpgsjxTFktuKlqu36iu0CsEV92A9kTr3p9f9LibKvArmBqn9pgEltw==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.11-next.0_1668081819434_0.782436215516044","host":"s3://npm-registry-packages"}},"1.0.11":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.11","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.11","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"a75e9d81fc36d01feac1df6b90598510b74e3caf","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.11.tgz","fileCount":6,"integrity":"sha512-TCtzcmcAKBBMXcgRdEZaywcenWkmV9oH5mye9Sn0y+Iys3T2cO3Jv/OiLZpGPdqFjjK4xYLHcFkc5bmog3EvYQ==","signatures":[{"sig":"MEQCID6KAlhaPuRoG9CiaXMmcxJ6jt+5KArdylpMTxyP7JAAAiB9I3WFNAtDJsTTwS6vEOYWnDOOjWXwxmM+WKE75VeciQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbPfzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrDg/9HazU4uX/pqbEAhJZxpEsgMGBaEPSoEIgykaY2bhwHOeCHKrw\r\njQCS1RJG2sMKBPiDtvFWNGbaXdfBmLef3My+l4T+MRi0C+y+VYpl41r1oxeS\r\n0dWZZkmu9PK5STGFXekHlWQQI3OjJgWdfMg3MkRJcYL/U+PEK2ilNvaCHBEW\r\nOuy9w0FJXPQiC8T/YI852d60cb+TRFl3JIdEK5Pjc3S2MaQHfhTdTpBB1c0t\r\nFKkc2eAFzfd7rRqDhZQzoLdALpcWJG/R71H+E2Iubj/CneefvzSYZZlcL/Er\r\n3Dzc05BM6i98igt1U7veOq5wzD7/bbi6+8BmOmyueg6buikeWRCIQlCIUYXS\r\nqAvO0PVSkHAuv4SKslOC8rr5+UBxYPOH6eceWs2EQwCUwllxSijDohHZlShq\r\nEnDqtIzef9X3nE1Uzr0MBjwjtlY1FJQQx8xchh7NC6L9+7MXW76SnZMuI9oL\r\ngNlZ2qrBN2hyYM/nmltcB9+qmnPJ2ndCTiXuFu5Zy4jhEweRNvVblWcRNSGx\r\n53wTQf7ts02M/MmIkJlb0r5NOfH8wxC6OXvr9/E1Fo+gs71qNrqFKU/igMpS\r\ntME5aWhZL2x20WFBfocGq5fQTHtAvTadsDeUIv0qV5DEr4BnGuBz4bZehLsy\r\nmhRKq2rVMnb6vfbaDHbR9UWdc31BpUccH4w=\r\n=JsLU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.11.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/109734b085eb6c0efa229a6cc729d0b5/telia-ace-knowledge-serviceclient-1.0.11.tgz","_integrity":"sha512-TCtzcmcAKBBMXcgRdEZaywcenWkmV9oH5mye9Sn0y+Iys3T2cO3Jv/OiLZpGPdqFjjK4xYLHcFkc5bmog3EvYQ==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.11_1668085747704_0.3227065223718515","host":"s3://npm-registry-packages"}},"1.0.12-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.12-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.12-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"a187e704324271cd4c0610879dca2df9f0132a75","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.12-next.0.tgz","fileCount":6,"integrity":"sha512-7vIifxQjyxv6Zc5OrqpTkX9BNX6AYsw6L3fw5icf1a592r9JDycOo3bn3h2/GBqEwvBzFp+1KgG6YlvMCBgbZQ==","signatures":[{"sig":"MEQCIF6OLKH+VRY4BT5XnhaezN4oH43Me9SQfzyr1uLeM4JHAiBSP9Zdtx9hHZ8ApvhAlr6EKBhdCL/8U/DB1V+o7YRRNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbki8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfRg/+N1iTOUWuhHIIiyIzBDYjpBvakp+5UYgkuSaQEWtrJjUoUWU7\r\nu3moUIp8WEac5ycqPGyHNtQ3pIVg4Su/ePJIgB8iOupIwQcPB7Ak3XbpsEO9\r\n7ZwbAZjklPzyvPzi9ldQW4BaatLqDBvF00X1WXgR3f1t0BhWanKh0Op5YH/H\r\nL0NXxZKRA2K/i5kefBYDrw+k0k3mgPaSh6PD01Hh+NohitWinT0og6CHeJMx\r\n19ED/F1xMpjBPlIctBy7tS5h/tjiJaLml9Ch9HvLgB9ZB3dAFXGW3TaVnMBj\r\nvrUBGka3sJq0gLoMc71KOw3CW/z36+ST+ove8AhHvQ/Ov5RhxeoD2rKY2//7\r\nsj6Ykbc9SFE2Hs6oUOdVkGNwUsSmBtbtqnaeadYIqWXrsnzU3jcrWXWeGfU+\r\nCk04DrH1ygrlSB0T7mECEasvPpUWhs6Uv0Nto+HSzsQDF+fr4jfay/SGKI6R\r\n4C6J7WfPwOnUlwQzuWoQnzlOgyfd0tuJ/92pbHA5dJLpFLsws82KUuD8NSU5\r\nnPGTXmBUa8P20r41Fb3oTzsMvKYbelFNxwfNC6YsmMTu7hFfyH8DL1R2skxm\r\nqhi5h74/LtwmaBIHaIt4QCx69uzOseuimDtqP5RRrrCi54PZSJGSMRwucN5E\r\nXwl2eBxgQ1ht8J5ehYtI97ZOmiNn0PlO+C4=\r\n=lber\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.12-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/65b84c1ef033dfb447c488f381fe5bb0/telia-ace-knowledge-serviceclient-1.0.12-next.0.tgz","_integrity":"sha512-7vIifxQjyxv6Zc5OrqpTkX9BNX6AYsw6L3fw5icf1a592r9JDycOo3bn3h2/GBqEwvBzFp+1KgG6YlvMCBgbZQ==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.12-next.0_1668171964253_0.8035879242199033","host":"s3://npm-registry-packages"}},"1.0.12":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.12","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.12","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"9d7bb96cb2366aec533a35f390630d104f76f286","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.12.tgz","fileCount":6,"integrity":"sha512-zBTFUSWrjfi3MAAOEv1WfBbFCBCmtn2XahE1vuFlOlvRlPX7AXBR5kmUtzt5qO83P1763CJkB12a6UtuaOcMkA==","signatures":[{"sig":"MEUCIDCmUib/7H8BJdiWmE/f8RrLQciYesD8w/+UqDi5drAIAiEAywSkxbQJ35VqQQ5oGN6Ddum12QBesZBxnRUgdYmV+n4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjchJeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHJQ//Z0HH4xBT7Tu1FR7QsBLD5B0QNIFRJquoUxftpH4M/g+2KOLA\r\npyj+L2fGfPvyGIgUSxy/bk+vEQZkSqTThPF7YnKZZEUeyLnhkwHPl5o0oPKx\r\n8zNVu20yFdYJ0mH63QssXkMuA7WjUQkKtFTAolNeVC5YL0DB6gdu096ooFFu\r\nzZWBkwDtCsYOVq6nT87ODyVM7qR/Ym/vxoII+aGrBqoZgKdHmp1EacmKQLNZ\r\n75adnjpKUjimwJ7aQoIP88OF2vZYyNPN1EymxOm4mEtA8RSWiX8zO90PqeqI\r\n3hXeknXiNykYNb4eIRfs93bZLfqOJvHotad17c7OyUvmE0RCTzgZuDhKMJvo\r\nNKq/0jweFpehRD6VYg18sQ52jwETrzRqMIjuzTg9lfD6gNu4qhuz4S/zzfVO\r\neBpS0ipEMTz40oRWlHjGQ9h4rDSBFlHw3LlIX6zvVkEwBoImU7Lbax9xg4Y8\r\nPkkrM2jF4+IboSeWE4Iu8yabX1MBbY00gDRdqbwp+gxSjMBvN2voknqe514H\r\n5ATj56nF5AHCe3YLBDqRCpRoyRaYAYTgmDiKo7YP4TUIkHtDMB/WBOEat2wa\r\nZM9+9R7+V4J6ykJ+CL1PMImnZ8zIdWgWkJt8s7XhMrQ5T+WGuquhJ2C+XYdb\r\noinVImZtrzlYIhy+4m6fgU9aldhzctLp2AM=\r\n=Nof4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.12.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/34a9797a4e27ac2a4cc3bdc810dc8d1f/telia-ace-knowledge-serviceclient-1.0.12.tgz","_integrity":"sha512-zBTFUSWrjfi3MAAOEv1WfBbFCBCmtn2XahE1vuFlOlvRlPX7AXBR5kmUtzt5qO83P1763CJkB12a6UtuaOcMkA==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.12_1668420189983_0.5342957790594896","host":"s3://npm-registry-packages"}},"1.0.13-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.13-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.13-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"fdb8363a55ab6916f7f3f4f4b579daa4ce526550","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.13-next.0.tgz","fileCount":6,"integrity":"sha512-BoLQA0Ld6ZB1BhC0MRU3MKvVLQYBMg6i3ltvJtE3x/IOhOYc+XUQnr5rCEMOezRoGYksALanKiiO9DZaVu2EQw==","signatures":[{"sig":"MEUCIQCZfePcfNwQ1BloZBBBQKm3zcn7Pb9GLJS9geXVJfgRcwIgXnE/LLiVZNsJ4kjmvHRqraaoY8OX4MKIawczOMy2A/s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdjBPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVbQ//eoQ7iyBPrl+eSecHstPF91ZHBLRnWy0pfd4e7mhQ0HVNfwwL\r\nswQuflVJOu1xOt3dsvW3173rrfEsrfvClJOo4RLzhDxyVzr0IYMAzndKuhFP\r\n0b/fo1rZPKxx8vCDIsqHQXOOoPG7nIoUuO6yhPr/Qirl5Uj2yLXuhFbn+CrF\r\nazK8GCMSptla7+eL1dVas969W9QWAZ3Aq5MeIJrB8QpmEe9xOPV65W6Qk9X+\r\nnbSVr4Ol/ISjhrNoYnKnZ7CGtxq7gHeDI87NMZkyqUWzMJ/bKzDoMj28TZDL\r\n1EyQr/uZYaSQE9NfwVWsE3KVyfXN1VxZ6cQLcbIDv34ue48wG6cRrlM73P9J\r\ndrkxvpHUa8Lg5duomNJCA896LXasXqUOiR/qalZ1bSIT0Y8DBvhLvV4iWHkg\r\nVewDMD+ECORzEzo00iXphQKiDzf5vcDgj1kp+IEMqg+P+xCTe8fi5Se3GMmZ\r\ncDIrsWhpA/i/rNCdwN2JcQiTdYaaLzTOxUzVNMxqm6iX1b0Xj+2i35xhSTnf\r\nOWJcU5BmP/g6JgZ4Lp9g0/sLcVrpRiachYYOfpjjxGuQglFCcgQTeR4XY9Oz\r\nZBojD9SSdm/3SLRm6u5q1QJ6ZfewauDPs0yq1ufpNFA5o3a/HFT2DZLDx67p\r\nM8MLsN7SVKhrIBGsfff1LJ5lw/orCH+Mh30=\r\n=hb1U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.13-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/b24be0eef3c787ba7c47f898fe420fa9/telia-ace-knowledge-serviceclient-1.0.13-next.0.tgz","_integrity":"sha512-BoLQA0Ld6ZB1BhC0MRU3MKvVLQYBMg6i3ltvJtE3x/IOhOYc+XUQnr5rCEMOezRoGYksALanKiiO9DZaVu2EQw==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.13-next.0_1668689999219_0.6024441093875805","host":"s3://npm-registry-packages"}},"1.0.13-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.13-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.13-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"033a6e57e273f6354229219d9b6c57f1a33ced5a","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.13-next.1.tgz","fileCount":6,"integrity":"sha512-MjXhwDG/NWhT2IGetRBpuQHkMya2lEZyLNWfp9NNAr4O527tlUnqPU72Tl9rLzpkP90nokyBDcRgVI9XnUYGkw==","signatures":[{"sig":"MEMCH3s7+PV8F3D7txdA5ozO9VlANh9g1KSa8TAQebcfw0oCIEoYBsapFITp2AlyoUAJvDdexEhK3x79tsoS8KHlFOAP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdnvdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5+A//cST+c7gwhMb5zyD9u8/q6OkY3hK6VA8MecliEOFZV+rdUD4Z\r\nx1ZQWejefBZFntVax5b897u1MJogfK2jL8ierF3ORVkk90BP0FnRaWVkAlsb\r\nPxZ/gGXBrRowi+POSdu/hXIWmPnsYFMupKvJZ6Ob39VpsFDG8GjNsaTpXEhY\r\nGiK1oDuk6mdgQBLL5nVyiXtu3L+G/6rwhDubAAlFXG8SaE6An4z6YmHhSbkc\r\nZUxjlgWQm4+W33czsDAMM1D2Jtopo9F5EsUxWTzM7OJhmxHThrp5m0s8GEyP\r\noSfz5s5/i/Y+P6CnwKuIc5IZRcCw/HnHEF5v2esh+BLF+u/CUgkiTms7ZQV0\r\nijRo8lPG2UMP0EHRpRGGqTMEhmLSyfsXyim/a7KqxB5q/w1YI4HIql6p5hu6\r\ndiYEMSCJO606rP6lIxnDgeMXaoS9t7FTI9FUef2KzTI4CnZhvhdBXgzq+K0F\r\n0M55nMpEWUdvgkP89Q2y2haQbNy8MNzW+b5S+r48o5vkvvj2sRodItymecdp\r\nyzvVA9q7QHwD7zoR5zqE98XkBITve2wOW6jrg7IOAi7FNtN+sdeZs/LkQmps\r\nnwG9yvyB/pJZZXpzRNKdWDF+Xa753agWWfeU6DAL0qqRzMeebBwpwPbFcorZ\r\nBpMb5hOGEQabfpqiercgGmLZh+uwHtkhtHI=\r\n=Ccdf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.13-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/7eb5d542badc3d48d4a99d3843c8fe38/telia-ace-knowledge-serviceclient-1.0.13-next.1.tgz","_integrity":"sha512-MjXhwDG/NWhT2IGetRBpuQHkMya2lEZyLNWfp9NNAr4O527tlUnqPU72Tl9rLzpkP90nokyBDcRgVI9XnUYGkw==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.13-next.1_1668709341578_0.9746462685642265","host":"s3://npm-registry-packages"}},"1.0.19-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.19-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.19-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7fe0a91c485e3533b2825519c192970821e70591","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.19-next.0.tgz","fileCount":6,"integrity":"sha512-9ABwwLm1K4YMKMnvk0WXXRH9msDM1rqhCUWvo0rpPQZQ7bF9fd71K18GAua7lmJFWbmYuVWZ+OjBTvHuZ7m+EQ==","signatures":[{"sig":"MEYCIQCmtvD/fo/iWiZid6Bs5Cm/jSy+tmAwyYdQHnECKY/YOAIhAJ/LyjshqGeSsyrXgM9+SPvd1bEAikUiZiInUFEvMHvB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhc14ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoW7xAAnmGaZRE2puezvqvERB59gKKma5k8Utu9YO3B4qdW0OfWpSok\r\nuwP4oOifu5qAjqyJHcRz9yGRVJpSFNguHsLETT+o52LXGjKVCyCGVONDFTRA\r\n+bBw5hwfH+EfUfXqYQnwqFWUti8F3KiZdk/0EAahxyBB9Ylxm4NwJpItB2nL\r\noz6gy698rK/0U6aX0tPlb07BmcwLWPwnYuuWUGqjJANZPdrbOPjXTUOssbEI\r\nKgpdBfjedFUtsx2LhMeprPUcqk3O5ooP77A0ew/NjKc3V80afSyKxSdIHank\r\nnBeq47jcK7qAfWMzvs7lKuH61xvu/EvHDZGrrihRDk9nLJMD04aVb/s1z264\r\nwG41vxvhKOijoxg6k8aTi/Jx4r/hr4TSJEey8y5qhA3fqt3pvTnxlHVr8keY\r\nXECDHYgR/jJ/OGHeEof8Tds/gJmCme24maMZI7PnCxaI20i5IxyZeGEDNh8y\r\nwV2xAfe0siqYb9YC8svtXr/UOW/n8wy4jDmHdeHGWAeltPuEJmYGop+S1ln6\r\nWrfSbN+GJNwl8gkUFtcPH9UI2AEfxeeJJSUpZAMwike2Dq/4u0r8cZ0mXktM\r\nnzRNdi/BeUHH6/OOTsPBnxtwDsWTWVQoh5W2wYbHtB6/WNqce/In2fh/8K5g\r\ndUzZgxCb/AoFyMECs0nCmdfmHD1I+53ub0s=\r\n=Qsx8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.19-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/75481fe0f4cfcef87146376a6a42f16e/telia-ace-knowledge-serviceclient-1.0.19-next.0.tgz","_integrity":"sha512-9ABwwLm1K4YMKMnvk0WXXRH9msDM1rqhCUWvo0rpPQZQ7bF9fd71K18GAua7lmJFWbmYuVWZ+OjBTvHuZ7m+EQ==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.19-next.0_1669713272528_0.4090431569054742","host":"s3://npm-registry-packages"}},"1.0.19-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.19-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.19-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"267c5e8730256fec78b3627826c18839dc70b415","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.19-next.1.tgz","fileCount":6,"integrity":"sha512-j/YiqYe5HAGxBlbui4/n2bfKnOsSEVitxIW5umUR7u377mDws2BANx0Wea2YHsEW/HbiYBO87Jm+VaCnPmvGVQ==","signatures":[{"sig":"MEUCIQDrlZPuGha7d/mXmOFsWseemEQxj1jN3muQo7nIRnNpuQIgT48rcfr9PVbrtG0BmCVVoDtYPgeoF2qP+T6B9QFsW3A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiHJjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxpA/+M6Fg8y4HkiSyuWR88HOrAyI35/Nmwr4xTOba/EBBIGzyDPr5\r\nFvapwI+LBMpFEsFnXmuvx99/YBh9ti/T5Qhb1INSggTbj/rzZxeL9yAejoNj\r\nPMwIXdI8ba4n3hN9jiVL6WGHkze7/vCKKg6FAdrDnOZkUKnTnyuGHbVgMkZ8\r\nVgA0m/rTcwHcaXYiL9ewa1HSNjmjUpu2VkcdWW1Hv9xV2FaECWMsBmz/y4Vn\r\nROG5xfMwvNejiwN5Du7/YDYZ0260tQuerwbxaIZVbLvVClVfNw41pM4qbWIN\r\n6u8QLy5DwVvu5SOvb9MccYa16aVHULPvqeCRzzYJ1YWVwzpfoS+voIudvMKf\r\n+suyUmv4a3XH/C3rkxTeTmSC7xBWgGlqUPuhPz3hbgTm8tM9GIUWZdHcVcJw\r\nrdDs1IrFxdfodihiINZS5Pbftn3fzGN8Cd66uQDZzzGMcgnOrmCpHJbVIdUk\r\nCXIIZZH0aeHeVEYd95ioGpprTSi+EZxN+ZOkN2WLmzDyeXLjU8oobmjhTmHH\r\nBR03pWh4euPpPgPJ1z1wNhb/z0GhByvXZJUBB1256eRNq3LqWma7PLEz7V9W\r\nU/xmVhLzA26/3yIFRTv5QGcjJKL/8Z3jAFWBlxcflUEJAoGWnJdk/kd3H923\r\ndkBYvyp/A7gZiL8wJgjLLu2m+MeaCtynnwg=\r\n=dvgb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.19-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/7f9750b1d6f49a48bdacc4278fe44d71/telia-ace-knowledge-serviceclient-1.0.19-next.1.tgz","_integrity":"sha512-j/YiqYe5HAGxBlbui4/n2bfKnOsSEVitxIW5umUR7u377mDws2BANx0Wea2YHsEW/HbiYBO87Jm+VaCnPmvGVQ==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.19-next.1_1669886563447_0.8835494828415587","host":"s3://npm-registry-packages"}},"1.0.19-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.19-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.19-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"c878d7348b4fc4e8eb6a856239081304da70f42e","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.19-next.2.tgz","fileCount":6,"integrity":"sha512-mpaJ7TXjZyw9BRO9FqEvQQ3xAKE6TTwq8EPO3YJIimWReSv9/WT0rSyKgu1iVNKMTEU3Mn0hb9G94SdoK0+JPA==","signatures":[{"sig":"MEYCIQDml2rBR28iKpu01EibRJbWwxmoFPEhvL6eMxp53MoXjQIhAOt3KwtvGfZ5XnV2Mmr6zE4G8MvE94OPByQk2S97SBxU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiHVCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCrw/8Db3S5FouUr/dmDTWIOKd7OD2xv8Ze+qY7CHLe/SKnp69IevZ\r\nFEcgGF5W90QrOlPpDH3H3eekewSUSwhNaEt+JFaVMmbTHhLoAowQglT9okQU\r\nlR5YNVg9Vg6zaGSJ2wTMwgQW+rcu08iH3MgPdYvmExK8djMe/TIc5eMOO4ai\r\nxzcZW5EW9pU+Twht+RMTLKV66waJzwziDcKEgalZH0Y93jaPUrtpZsis4Df6\r\nFMCcxoxpATNe0DaEOoYoUtvHXGmzSkw1xBgdBsErC+FsGYYYbuMQOMRUC9RI\r\nvpJG189QWMjvb5uxJVfgeST7mLo/n9KfITaafiLcDOfklR94aQNS6O0GNWQ3\r\n9Li3K5i/c5/OOwheGevcBPXrVJBPBL2XxIBYt8m/46WDeKOD4r0ZP/6MVL5L\r\n27s9/3bW6hYgzpLe/06bparAoQaMV69gAxYPTTwj1TX2behTR7+cvtiJ5d1g\r\n57zb1iS6FSYNrw1XbNe+VrDO0sLVvxor0p9TOwpF9/BcTIaTmW2BeP2vnePt\r\n61YECxLYh+i5RvQwYC6HeUBygy7ZDkUs1E5XE2sP09gakrD/87ahviRZjSsd\r\nRElIX+BWaRAlAxg7LgV+afaDlYNbl20trIIlE0rtySCRpsp1JY2aFbTZ8mp1\r\n/57R1l+NVv5+/EjQ/sIJcGJjYy1xXcZ4aQI=\r\n=mD3V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.19-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/8aaa7a464fe72a8132841eac37cf9142/telia-ace-knowledge-serviceclient-1.0.19-next.2.tgz","_integrity":"sha512-mpaJ7TXjZyw9BRO9FqEvQQ3xAKE6TTwq8EPO3YJIimWReSv9/WT0rSyKgu1iVNKMTEU3Mn0hb9G94SdoK0+JPA==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.19-next.2_1669887297883_0.14631244962735712","host":"s3://npm-registry-packages"}},"1.0.19":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.19","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.19","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"380ce0012af391320611c8be2cdaf5d53d50e403","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.19.tgz","fileCount":6,"integrity":"sha512-7NG8NDSGtQx0QjqM0H+fuLHu/LcG8aW6egQzVf3C0wbb/bJzbvktEmU0XTl9P+MPNYr/+8qZxMmwoxSWU2keeA==","signatures":[{"sig":"MEUCIQDnDRPYI12gv/hYJ0ettqNDG1SuEZlql1e5Iovqs7thSAIgF8CBCY5x2uLND/Co2hQBOKGcSSRNQZ7BFjtOgFP06GI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjauoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBUw/+NnbMquJsxLLzwVlRr+7i8dJdDl/VCQd0Hc1U9QdkSr9zKfmE\r\nMHIVipfqkiEeA61+GlKeqcrZHuYSqkNDqoToFtkmHYNUrkbYutw3ygLYBXXk\r\nRW3h0FXXtr+dw3X7jWRHbe5zqdsYUAR3/S0Hz2lMMwoNkEwGff/Xuc1gmNbK\r\nYjUF78Af2fskWZm8GPBIx/iwuW7ImoYjFYOd1swnqGFr/xn4zs8Cab5Q+bJT\r\n56jgr+VtNpLuhl9n00MUXvjWVgg9SgAPjliaCU3Iwl6ywBUYy6FzpaEJrR+d\r\nZ0sZmFfMRZHDkvW2bTvoVue7LdI9jx2fOyelCRS1wtGeKJFBt6bpl4K8FkW6\r\nGUYjRwz4vtbMTrMWe+bIThb0qf6ErGhH0u3xDr0aJFprkByCeoWwMQ+6JFZj\r\nBuThtRByuDVB2KgEMqizddk+GCfbKDmVv/cXVKcHKKA5IOMlG6LigBRHX50t\r\nSEZE+7iJui9cPe5Qf3XgfZ4M9YBKLuFNUMatPv5ogY/+soQatLyF687y5EXV\r\nOLzuO24vudPfAvdMQ5XkMFimRio4Fze7Tm0FIkYOtcaO49T9aPxPkIOYK444\r\n13ozWViwGKb9BPLgCDGtutPynxhwFhamNy4m3pshvvb+PjhbLXv3jhBuaHkH\r\neDNDOeKarQQrRLlPIbz0b4yckvp/yWZ3shY=\r\n=BkaE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.19.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/493f7f71f96770443c37b6eede76660d/telia-ace-knowledge-serviceclient-1.0.19.tgz","_integrity":"sha512-7NG8NDSGtQx0QjqM0H+fuLHu/LcG8aW6egQzVf3C0wbb/bJzbvktEmU0XTl9P+MPNYr/+8qZxMmwoxSWU2keeA==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.19_1670228903988_0.5171232330144351","host":"s3://npm-registry-packages"}},"1.0.20":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.20","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.20","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"3491d812509193b2abf88ad211de02fe91030750","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.20.tgz","fileCount":6,"integrity":"sha512-5q/5zvPvhP+ulIVXwOlK0eZyfPkQS7i8CcFH+kszgQqhKxBZRqCL2NV70XaF2t/UnitJqbijCONaV7eN+qUdqw==","signatures":[{"sig":"MEUCIQCg6drGf9BzwkeDBFonH3Bj+z8GBwYsLPmvfSNeV79kiwIgXR5HzwREbjLPfzwJaIVrOIDWilWjGV2JtbjEtj4SNKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjwwzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/ug//eYNTzCt22PMZHO3q/aJ/RFls8X2lmlxaHhn8AuB59sK3kWuZ\r\n1DzmpFq4otQlhOb+GgUSRQWZG7TKYaIo0inSX5rzrSEAwe/U7B666r1KNO7v\r\nyu5Vtsrf597IV23p7PojBL/X9g6djMoTmdwcHWRsiqgUfQUE1STMlSIMEuyV\r\nb4PJNJ10F96DKOw+Lo5DFL+TgD7L2OchDzYnvBs6EvdVr544gW9bt3AFArGS\r\n2qgNVVQ+5ko29uM4AOmHCY8GC6FraMMyN9VVflmGDd5iwQ7gHspXujfhfSUV\r\nna+BZ26Jay6rjoOmvjWu2yS+RT/Ipm5ZsXR3z0U9nJR8G5pjD5ZjRYfEvVNJ\r\nX+SWqW+m8DIQpLUEvmLqXoVa95efTd/T84IOg+zS7H0rzIAj9gNv4VgtbByp\r\n13B3kd67/KaT5o2ZPkreCrHzhTUQBI7+Qet6tqILoKr9lGeg7R4WcgBS71ic\r\noTalxNZfo+jhGIoiZemxRhUxhWK2CCbW4QaEdgiJSlgisTX26mtGyq09LHDx\r\n9jLqB3iXCuSSGOrvTNgivNVMzRoH5Y2fhjxRF1zPt4b7Oj9ZXqUD+6GY2W3C\r\n7rcoTLZJAp4C73F90nKrFyRZ+pArXsCLy5Sm0yK9GkP5rfRm/afhVPcoIbn5\r\nL4QfeAbzPl1dxW4R/ptJAkIgNxEdmVtMGlU=\r\n=DtsS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.20.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/f7e05eeb778d91d8ce42b01a1bf811d7/telia-ace-knowledge-serviceclient-1.0.20.tgz","_integrity":"sha512-5q/5zvPvhP+ulIVXwOlK0eZyfPkQS7i8CcFH+kszgQqhKxBZRqCL2NV70XaF2t/UnitJqbijCONaV7eN+qUdqw==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.20_1670319155417_0.6486356581240587","host":"s3://npm-registry-packages"}},"1.0.21-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.21-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.21-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"9eaa0cc1422a62ae719d9e93a2b52f284183881d","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.21-next.0.tgz","fileCount":6,"integrity":"sha512-UqTfOSPmCjx8YazLR2XjBvkt8TXmv0gnWxOM9bHG2IAETWaTPH5MqQO88VZBgf8i2+THWYLBWPwRgEAJb48Uuw==","signatures":[{"sig":"MEUCIEd8roRNVflZxH3yvT3C8fsJjzv3vp3I0o8GhehFisqgAiEAhX/njialW3u0b/lLkWxtWYTTcpa9NZR2zZdi/O0CL5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmcZhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0Cw//TkEt8Bss7U3KLLqfnzGcR4y4QSxcuDDqe+qYmI8HTx0ZEfMC\r\nDqibXEUu4BJolBMTYbQm5q9gNwdBqFcp7Y1h5GCpS8793bNXcEWslpt8sz7R\r\nPr0cnQQp5ejSSINFzhC6sQ44mREOl8QRGSiMEgPZm3YkHikjjCjGVg06pYtB\r\nR1weyT7I2KYz2kcA6BkFcuWCbTlfM4o3k2D0lPsTmu8e0Y01fvMmr83mBQVe\r\ntgpsJ8KTZA7PBe/6Q1rpN8ZUvf9C/DDgIt2u82lJ5lb8EgGSM8dEmjQpoSO9\r\nR8y4oqCjyzmP+ZdXUD9hf2v6E9gQXrlM920G+Pf/8RRw4/+1TKi1y60GT7/3\r\nwvS4eXUDJknRiifodhaLFprjbqn7UyrYUJIDnZIOwjILwyf2IvP45eEHOtJY\r\n9pIg44TAkqUHT545Q97wm1WTL4rTmYYP1Mmt1aBrLsHUOare7DccW6Ji3rEq\r\nEJLIbjhgshBeGuzYao8ibE4iMYNFIvd9A6GqQXzbUP2gtZDeXdu+db7XfajF\r\ncSOKlu7D+rIRkzJGSIWTFT3pbb0AqVT7vdPkRVatZ8HUYJL/Dl3W7mKfO6/a\r\nUdPpC93rSQR4kweUjMYgOlaPrGIRnIuRdEvAkY3L4wDxR73804OgMzihQ+w6\r\nOLa19OwbFa9kkSe8B1ev7oKOfzt0p/7a6n8=\r\n=Rmo5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.21-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/edeb4853044c0c9e6e719a3530a4109a/telia-ace-knowledge-serviceclient-1.0.21-next.0.tgz","_integrity":"sha512-UqTfOSPmCjx8YazLR2XjBvkt8TXmv0gnWxOM9bHG2IAETWaTPH5MqQO88VZBgf8i2+THWYLBWPwRgEAJb48Uuw==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.21-next.0_1671022177239_0.6960577603016884","host":"s3://npm-registry-packages"}},"1.0.21-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.21-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.21-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7da8f024064abf16b987656d1d85cba647b61cfb","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.21-next.1.tgz","fileCount":6,"integrity":"sha512-Bou2XaTbKsqeCDpGX0DTLaBU0zRfkOBXONeQ1dxl7mMkuOoVyshWjJpCV2ECz2l9P6H9NzbM8zQC4VBKgCIt0Q==","signatures":[{"sig":"MEYCIQD8qCGPVABrfsl+c/5EW2e8ERYok/iIxHrVn4Xb+0ST+AIhANgo08ZRjuDhZvcDWZhqsFnGVkMXSxhuvaO9CwsXT7Fs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnEaTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpblQ//coO1MRZXGD5kdF41TOIY+zdthNdi7sT9kc4OADm34TUSbhjS\r\n9MxiPYXV2hCtTXPMCTu43FlWxhbTr/5gNm/AQmzBPdUerP7GddDQb4+LFeae\r\n71vKj/vM9pynzVznqLtMHKkcbBtmzbcBdy/Vb6Uj8ONAqhTT68Yt1RJn8+hg\r\nAp0b8nndJ6ZcPcB8l73G3Rxt8IuKTv91v2KEW5dvLmEdv4CcX70uUJn6cIf6\r\n7qGVIuyP7iK2rfHAUhXDlnB3ck+XtGvJ/9RFzw0BD9ZiOPxnIEce/YAe8s9f\r\nTHu2lwQi+q2F93CfqSFVqKr0KL6w5k7s3IjCfAkxHxCbv/ijqLHK0wj00qCN\r\nG+luZv4MXrKcqYxKLGMAbH59t9H1Y/WjhkCY9mcA54Nos3C4y275JUSIRmZI\r\njzt3J7PflaZVePLX92nm3CksO6ieeoFpISpJjyQeOmTKw5YOw2PAlWR2KOVT\r\nf7WYRwffwHMZXkV/65GYwGvaTGt3PjX6eVEGBOBCMqZdiGOmR22CGDm/wq5t\r\nszQEv5VMp8t6oXMObhpsberL2IacrHDqGDGdBZY7tbldn5i9DUkv42/Hs8EI\r\ntiHf2pgwdRaAV7c/gsNEGRrfqyDtD8WaEaTxQ5khJX8HuNjkPX2Ezx09X5qv\r\nAIDgdrR8CqlI/ECZg7QeovhIOhsJ0eruF5M=\r\n=j0fL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.21-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/76f6eef714520a5965ef7967067289fa/telia-ace-knowledge-serviceclient-1.0.21-next.1.tgz","_integrity":"sha512-Bou2XaTbKsqeCDpGX0DTLaBU0zRfkOBXONeQ1dxl7mMkuOoVyshWjJpCV2ECz2l9P6H9NzbM8zQC4VBKgCIt0Q==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.21-next.1_1671186067700_0.5937371509675875","host":"s3://npm-registry-packages"}},"1.0.21":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.21","keywords":["telia"],"author":"Telia Company AB","license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.21","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"5f4381f45ab35f0026fab8be46d1e0b652c80834","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.21.tgz","fileCount":6,"integrity":"sha512-hW12OUgIzcNO+nv4Q6MDZDU520We06RKHw3aDmphiEH7nugbAcpwVJ2tXgCUABPBmKEXlaZor1AHb1EtqTrK6A==","signatures":[{"sig":"MEQCIGFLVVG/FIIFcakTEI9kLI7o45DukmHWCY87TywrYNCUAiBYoqtWtpOMFZashASgvMhK/bgJzQNPjbzrI2veD95+tA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":104345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsrJHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSKQ/9GTiIgW6DNVJfuq3Dx6DFT8KFnACNxlrVVcKSHLeE3609ZgAO\r\nzZh3yCCDpfRRMGb0U1fTVz1WM6WUIVPA4ixgCMpd5ikt8CxQ85lqi4de6avd\r\nb3rlpE4xeIaBGS/UB79/0jZwrmYsdZpuuMw5jTgTVTMjl8dBxkrLHTYVMRld\r\nDk0OeJ8wiitU4p8G9F2Ok1K+PBvxtP8hdHX1l1S1Orl8MWt0X3iDFAX2kMam\r\nl6hH7QGoKb4VmzuIEGERPpxV0nf1nq5A72lXRxwqJOFoqXCQTlu4f8+8U6Iz\r\nxq3L0U9p5Nj7W8eb4mTVx9FhDWokjhs/ITBiqpaGan88+LZMf0gL/UZuZ2jp\r\nkAo3FVih8YLfWk/+92qmzNqUdxogrUDyzARKApqjjiFnbwMIFedGoJTQIlka\r\nvESHh0mxcYaQQkJYkatbAwrFnDYG6zla/gaYTf7bMNChRZIPoMur/Z1rAJ4T\r\n5a9/AiktOkI1HJx+KHWRTJYgCURWcLB74p5/SVJ+aq8FuIbb5Lu23pJ9G21B\r\nXiJSMLDf/m7P9OHbgGqVBQNXPClSaXflxmMPNF6UcM5M88u9bKpMas5LW+M7\r\nIGKkOe2yOmCoAZIltcvRRhgG0WMMnBTbT4z+pf1JVc9EfRZ26wMVug5vyvxN\r\nlP46Dbym7yTBUqCj61+G41RYZCteo2728qY=\r\n=zB+x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.21.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"C:\\Users\\theom\\AppData\\Local\\Temp\\9a38ffe6b62c39fe4f8eedf2858ff4be\\telia-ace-knowledge-serviceclient-1.0.21.tgz","_integrity":"sha512-hW12OUgIzcNO+nv4Q6MDZDU520We06RKHw3aDmphiEH7nugbAcpwVJ2tXgCUABPBmKEXlaZor1AHb1EtqTrK6A==","sourceMain":"src/index.js","_npmVersion":"8.3.0","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"18.12.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.21_1672655431624_0.9718767031513382","host":"s3://npm-registry-packages"}},"1.0.22":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.22","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.22","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"f58dcbf2c488240964f4ccdf4ab1d645b67e3f1e","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.22.tgz","fileCount":6,"integrity":"sha512-5OfEvKNdZAClLPTSGTFYDA17UMWQRwuANtoXntjYHLdST4jPrNtBuCrKUJdbEi685kYmM4IKKt93UcxgEuSTHw==","signatures":[{"sig":"MEUCIQCPaaPcbhjK5PbtfbtHg9lKMsI2zvabiWJ3UWnPizX4IwIgEE0O8B5mIFeqPbKCZyrOu3SWzqMflmlJoHyffq093HQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsrOjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/mhAAg3WHd1VY8p3+WG7AZ+xGU1CK4JDuo3mUOoADfFp28HOC5ddx\r\nE2GR5zrAku1rCgnkAPJJi6JQF5N0I5hhXFU6mwA6uqEjp2uZIBKmVIGdox0m\r\n2bYgw0bXx0tTh54txYpe4aDtHUblF5IafhVpQ6htnPFIXh9cnrWcXCzMwNBV\r\n9J6i5rXcrsHb/ESd43+YcJJdjD0fTX5BPCuoOrqQESbCJUJvvEpzfEVHdENt\r\n5fYgFJCiWMMxi4pT8lcaOiargB3Y8Gq+slHFZgbDWYH29ITtx203QzP0sOjg\r\n2r0m9nK9yxU4hRsY+sNbQd8TyN3DqtSBk17DELf4oFsQn7naKsefL6RzlgRc\r\nPh9tlWqm8IVbqielxai9+fplkH/EfN4jj74x4uP7w8IB17zt/zwyRvyncM8L\r\nHaNuBaaAEhDnBzHT3XEkKpPOdx8zhL3sfw1j6yjx/ToTqwMN/JDE0lLtCZp+\r\npm0wQSl0w/mozPBzaUXv2rym/Q9IeiC8QONKZZSyQBhrYZi5YF5IRGMGdx+6\r\nl7Rh5dTK7xLEH61988sDM0GCA5wzQ0Bb9gj9stNoYTfsE9XPhMp5vyOZUHyx\r\nmfYwbXKunOzsrs0iu66EWP8ZXQJYT5WXPh7qoA0pZKCC/tzJgtuN8L48KtJ9\r\nSjvuHng6yHw8yzjau47fRIA2JxyG1mpQaj8=\r\n=Q4wH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.22.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/988843593bc3f51606b76fd13343ca69/telia-ace-knowledge-serviceclient-1.0.22.tgz","_integrity":"sha512-5OfEvKNdZAClLPTSGTFYDA17UMWQRwuANtoXntjYHLdST4jPrNtBuCrKUJdbEi685kYmM4IKKt93UcxgEuSTHw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.22_1672655779056_0.7026443729609593","host":"s3://npm-registry-packages"}},"1.0.23-experimental.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"085aebcbde4217d430e246ab2eddc6bd76d78544","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.0.tgz","fileCount":6,"integrity":"sha512-2gZ3iNLyB+WWY416AukudUpqpXpLKq7NMVVeoM58QTjcaEorXrAsHZj0/pZe5HFKnn5gs/YShNTsoG0XlvFLKg==","signatures":[{"sig":"MEUCIFxK4pkAf+U2iu+wWoDvMnIPjKZ6Pg34JKGoCDSWzI/KAiEAte8pv9jwoLOgtKxixtLwn2g+zM5mQNwkEFG/nf+F3vQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvDhkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdyhAAnuHMG7tilSgIFsF6qloGPjEmslb2gpPN5qTFYjkgAAma4/my\r\nRdvSAchPwhF5LrU5adEBniIgfH+dgWpU7dtzZQxacmy/yBAtR1NXQfplTbIB\r\nQ1Qs0ohjwthV/w5Iq5SjeQRlCkeuhVsvgDyH73Eu4cotvC9u8DGpr+ndZ7Sl\r\n0/PJsrIR512MUMRptP0E7QyDB2/9pM0xBfFdIAmhva0QuVT/2YoDeM0g3ZSw\r\nBwjUjc7fH0QwOq4GCCVOuiW6JQ1CxYlhQDSr7UbKKyvi1QhS6BpSeOU/ySYf\r\n+IDrMyeH21QEGMnKR3AtMPpTGI1hl3vN6cidb25gG9RUQeKO9oFtrFSjhenW\r\ni0ir7xs1DnxodMV2hCPQhy7HoDuxTGxIjWnwpMQ0Wknt/Q81juvPq4LrnjDD\r\nQGmEnhNdqqN/nxQmy4H1UDUlAtEKXgVR9PXoiFgUl5Box0Qt06MFaxRGMAZw\r\nLnufrvjuSRdMnAkN9UO+I7ttx/FoSESW8F/7gx+zec086NKRBta3VUhovgVv\r\nPyWANpQEJVs/W8ducrU7vQY2upwRxyHSbHUgv3HDcB9u2jCJYGTrP9ZyC5HT\r\ntPUGohWnee+0wx90bfEzoumeV6/RrGd3HyczFX1qCQEgxniTxxK7G1oNuQFU\r\nDKrhMqdXYz7keqcOzw3U5T+Lr5CXkRcc+ZU=\r\n=l77v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/0160a33916fd3e7aac6a15ec2e2f91bb/telia-ace-knowledge-serviceclient-1.0.23-experimental.0.tgz","_integrity":"sha512-2gZ3iNLyB+WWY416AukudUpqpXpLKq7NMVVeoM58QTjcaEorXrAsHZj0/pZe5HFKnn5gs/YShNTsoG0XlvFLKg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.0_1673279588431_0.25998015013327547","host":"s3://npm-registry-packages"}},"1.0.23-experimental.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"c4eec5ff45c3a8887839f0d4182fafc018128afc","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.1.tgz","fileCount":6,"integrity":"sha512-fX2kHPeifVHsGXZRayd4AdQyA8e4/yuh+1NgBkvoJsJsc+9sVGZlFxjN3UJK8Ja7FeMoCtB5CuMPK7RED7Bo0w==","signatures":[{"sig":"MEYCIQDgzzWhpussv6bWRoCerX7RmtXEiPuuUNSIrpzeZ0+FSwIhAIs+PIpGJUoUR5Gd6iN3OLySsOYpSeeVysswckE5tWkG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvtA+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquhQ//fsf+XZk09rS6pBBh8WHzsHfbgKv+Eo7O456bEOlKPT352zCP\r\nw1sfNhhJcx1lXdxu/PdXW0mjCXkRxnw16cqKE5Y9TSURIBRMneyRfTLu05H0\r\nisG5tU6Q+taRpoHgppscCXHu+vlW2evpB8AopAkg2T+AaRsl2tL85/ANJpxj\r\nB7nzikpjoF8pibVFMH8+EkIyF744cmk+DCYsQBQusdjl0ogm40zxQSnk4Ic8\r\nGVDl5a/zqL2VSpjGgGDmC3ZBJ8Ae4i9gFqjFXf6+b/LDUc7tnOaCeJY2d3pf\r\npCBAdZxPB8DED0sKc/rf1d/G0pz70E1xNfc8rJQr+LaNnrjuydz9l5DZK+Xp\r\nO4XU0WuEsbdqqvvAzmVMqp5N5otWv3/FDv2BEu/zf84fJCvW0bZrwR80u0Jd\r\nw4r/1iYCb60LpGBDeEhSSN7DIDQqmjjg3ha+4MQMHpRalIq1tVd5cOGwv5UQ\r\nUQKCh2WdRsuMKK4JiKfCg1se5mOqRvp6yhEf90HWlcxPjz7fJNr9dmCMnN0A\r\nQ5DUxbcM74CmCXWUTTFztMJ9gw4xyBFP57mE7g5DLobyIm41tgi650HLCA+d\r\nna9nYoD8qEduyf47FYCu7ajwzLNneH5CnohoEjB+p5CjaO4DpoRK17fH+GJ0\r\ncIE+CqJ2WIPCX/jRbBgC7cAQgGtlTRItSKo=\r\n=z+/l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/a8fd16568c94d21fab5db69e004d9c78/telia-ace-knowledge-serviceclient-1.0.23-experimental.1.tgz","_integrity":"sha512-fX2kHPeifVHsGXZRayd4AdQyA8e4/yuh+1NgBkvoJsJsc+9sVGZlFxjN3UJK8Ja7FeMoCtB5CuMPK7RED7Bo0w==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.1_1673449534464_0.6280134867318083","host":"s3://npm-registry-packages"}},"1.0.23-experimental.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"e5ccac918f2cf665073b9eb840d2741b37666593","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.2.tgz","fileCount":6,"integrity":"sha512-CMeZyh9mCG7QO8DAtwi2V6AquYOhMPiZrbM5Dx3asSeAACuo1f9A/Bzfq4lGgW0/P9MYyHbmZxCdqOMFRkDK0w==","signatures":[{"sig":"MEQCIFaY50MScltZSY0wJkCOBf/mF8+m8thpXKILPpOrhO32AiBkO40bx9K1and5pOBn+hjiWODBO08He1zJ4X2tp9XM+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv7qBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9Yg/+JG5T2ABfuQYOUG5V+hSaOR/iZwrRY7vLIlzE9d+iD/VuCTQ6\r\nlp7gHnuRIqfLEvvj+F6YESplDPBHGXKKFRFiLAq8jc5kejL/U+xoDXNe64fP\r\nifAZy2GpWEcrHWhYJrZrKtgDO0I8xQ8Xug41nhC390h+MIFvWfn27e+zYdBK\r\nFre7rTX+tl/QNtLi2S1HXMd58eo9eN7cpH5CQ6sj3Xx4ErV3kXji4kIm8VMn\r\nTwPqxmn1Hh2d3HjPZOlTwyGC5FyPVez7Zy+cs4pdKHD49Hi+Kq56XdpiKcvA\r\nKivKMhnKhojeMFYD9x3Kq7/Cig8HFIWixXXFAd1nCpnc9aqCSuqFRgcNXOzW\r\nR941GFrLgAHqDtN9NecUqRsrzjUOhtinmapwYXo89e0reFlBjnRt7E2M8mCc\r\n2uZdJ6mfarSAUl5W8pdmk9IkG8is4d9AOvYSypQDfLqP2HywzJo+Gi+ZSl7x\r\nAN/7GVzzsoTMbfNc1RdQZL17lzGJkMBFFzIRamOJY8nI5Mj5PUI9CgwTX9TR\r\nD6I+sq601QGfz+FxZVKdM8AZ7dSQBmGPqt0zUYJaVIibAvPgJWKbbOYZnsGr\r\nMsQJ5jtrZWls2EQpbt3sN3XjIcpWCChBqARnyWLKnoaqQT3SyYWUuWB1gyMZ\r\n3gSJK6BptmBLgP2tUZQP0+QD/OZMRmk7K0Q=\r\n=E7Qc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/a0152bb7da1971868556482829e19b74/telia-ace-knowledge-serviceclient-1.0.23-experimental.2.tgz","_integrity":"sha512-CMeZyh9mCG7QO8DAtwi2V6AquYOhMPiZrbM5Dx3asSeAACuo1f9A/Bzfq4lGgW0/P9MYyHbmZxCdqOMFRkDK0w==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.2_1673509504946_0.9076117598069862","host":"s3://npm-registry-packages"}},"1.0.23-experimental.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"f08fb5d50ac30adac12948b35c38cb1e9216f48a","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.3.tgz","fileCount":6,"integrity":"sha512-47/KL4BkXo/7XU3IIFR9YSSvSlqxr/NeSQcfDUW1R0SwZOPJyS7zgkWdtJ3maBF3bZYgHEpJCcJNBI44pYUGgw==","signatures":[{"sig":"MEUCIHRi8NYG3K/xhNUtdCCg7mzqh7shnQD3/W0XEhNuKHWmAiEArF5GL3gDVj916yqUueJ4uGLxgDSB0RpSbZYYdlKDpIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv74aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyZw/8DsUIvTz+YtaAF8PJH6ffyNfnKi+P7QEZ7yLGhoa/mE84QHaW\r\nKLSHn9Gc5Y9h7SL9HyhwBN9PEeQLggD38sKEUmmW6iiUs0wkYZs+0Gh5Uu+D\r\nsLwCrIOpMSxn180moDb3naLRiv8gjJcS2gUiPI3eO0TYNrHaacnUxW0z4VXZ\r\n7gKZor9k53rnVfqBNpa8S1z0lX1oUJqDbUc3CGq4QiSlefV6LzMttNBj/qGc\r\nqOLFbqa+VyzU3w7KnSZSpvgHNpPGlf/4IRpEjPtp86amiieQN2bI68CnYWoO\r\nNczgw10X/B7oIlW9xzDjTR0F/z7wJMBaVvqqD9Tk6AsxpHdB3lQGph4sTwmz\r\n50+KB18yC4INovoNEyICEkg7UgZ+q845P48TYHSizMUImfj5t40cooETkzG7\r\nNwIEjaCnJqJyceta15u8Ssh5SaUhYc/gqLyYywu8rPS7H8uHvhU7d9ce42Rf\r\ndkhDeeRZkkQPnd5EjUUCHn9+LCKpdI7agcnrqs+ZC5kV4kiTW6PEJ47dacHX\r\n18ZYqjflJpG1cNI3x9DYQb3ePEFIhBjBtedqb36pVnEY8UtmdVRNO/HB1W8k\r\noUjR8xVFCOi0eB5eNYdEl51l9/wTNZTLl0cm2GoBAaVY6J/Auf/kNlb+fmIt\r\noRlVn5RcGTWoY1wpz+v44umpdRx2PRJfo+U=\r\n=o6sY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/cfa87e802bd9834d35066fc3f51b9232/telia-ace-knowledge-serviceclient-1.0.23-experimental.3.tgz","_integrity":"sha512-47/KL4BkXo/7XU3IIFR9YSSvSlqxr/NeSQcfDUW1R0SwZOPJyS7zgkWdtJ3maBF3bZYgHEpJCcJNBI44pYUGgw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.3_1673510426561_0.014399160818356238","host":"s3://npm-registry-packages"}},"1.0.23-experimental.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.4","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"2090ee4db59caeb547210b89d8e9a80d7e7d0e9d","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.4.tgz","fileCount":6,"integrity":"sha512-w0hpvn5VuVrETcjEwCki5aS8cpgh+S0R5wnyi8FPMgGJc1fJi8zPdCVaYcYsKc8IPYXoStn2rTW2jlfsAnT/fA==","signatures":[{"sig":"MEYCIQD/527Ignk/KSVvnbUgGNedlvl8uD3sCNHapOw0g6P0hgIhAMAXFqCX4x+oEguoPN6p5rfCGNgVWs8fgfQN+OGOUOKx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv8KgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIFA//WxtR971JYkjLG0WydveqtrY7ZIbK1nRTJ3p6V+sBAjSvxmjz\r\no/QIDcwcMfb8/gAq4P5qkEbO6xRNyM17JHsO9VGX2OVKrnTOPfnEB3k3GGhw\r\nABS7W3KDKbysAgnqT6db2scbTbFVlwVj1MA+srcqvhvYt9v4NRQ6jt8Cs8JX\r\nnpcrqy3zNohtb1QshfTkSkMF1PRji3Hd6vWVwANV4qKv6ywcw1OloV8BJpAB\r\nomtLLaaTc91KI59vVEPunjgcLMb+3WxDTqLpHXC3DycZJzWZrVNN7earBua4\r\nblYbruCEfI1NuH5krRZMGmUXISO+zKw24tfZagdS4I9s8KHi3MWPhOr0WYe0\r\n0U2mej8XgiwO0dCXxGiATa10EUQT0/IUHzNkxBnYUruh/UnrC/KmbXq0I2zz\r\ntU1kAhEptlrBBmhDZq40DzcqygAvfYhvnyIkiJYVZ8Y3XDGk12gwzlfL+Rb3\r\n9flF9FGue3FJlwkN/hbDsdDTDssOZh+IEo1Mj/S6y2lsz2MWVvgr7+3kLVU/\r\nB9ekN+GgU7mNFUXvV6on+qcywtuofPdBTjhnx+W9kYMSG2NsV6UMITUDJLy5\r\nN9D54SVluFBlC2eDc/kTLDSoc9AmisjtrpUE8TviWFU/EMtTgXG3FTuxpE3H\r\naBQhMYn5Ta9U4CO35M7PKc/qSUsNgP5HmBY=\r\n=Q0iL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.4.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/9af347df63352545ae1deae267704b96/telia-ace-knowledge-serviceclient-1.0.23-experimental.4.tgz","_integrity":"sha512-w0hpvn5VuVrETcjEwCki5aS8cpgh+S0R5wnyi8FPMgGJc1fJi8zPdCVaYcYsKc8IPYXoStn2rTW2jlfsAnT/fA==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.4_1673511583792_0.40887738150332487","host":"s3://npm-registry-packages"}},"1.0.23-experimental.5":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.5","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.5","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"28ff8fd1a41c71dce416d0d6d3d15e605c28d785","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.5.tgz","fileCount":6,"integrity":"sha512-lT3NONERN8keRabCF74WmoRVisuHd9HFcJPIC8Cr+HLFtqtRzA6Z/4lYJtDdqdjhbfclwreKVA3I0JMG6J4D8A==","signatures":[{"sig":"MEYCIQCSWoXPWLFWLxgAICGTcjtwlQeQpjCz/4LDWDS6+cPmCgIhAIAw3kV3sEpmtXiszRsaTKhARYMxYJbvUfgVXYZfvty1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv8uzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0yRAAkIbkpsTv0eVY4QTQJyPZ07mhRJtUfsftJsUoIhoYEK2sj9ez\r\nB6Oe2Qd8F5EH1y1HMal341069GVGfOZT8GJixov0IPk1//fZqnaRATlSwT/V\r\nf/AobMX412/fzWQszvqJCHDPQNyVTcpIbzFDcaA2TZFdoOHdKySjykYf4G1G\r\nyatY1sNJrzePCre3XLSrgf0EPmuQ+pkeINjPSj07GhZOJevwVpwb2b70VMVo\r\n7WSSKUMTqDqtPoz7whzQJnYDw/jRJE1lu5OLs/IyQTVJGkHuZqgsmW7FOY8P\r\nbaF75fKcpgOxREjyLBJ8s2jqAR9hglR/hLNuZj3MaNBk8mznAmZZ3+SV1ZS7\r\ny91LcA+5iI+k27BPH8Tv/YOGOfPty4rNoSvl2tMXBjlO3P1f8N04mJAx4BTb\r\n5+pSYKFTeqisRz+TzD+1uOHS1vhfQ0fsK31MX6oc69jTWWa2ITw9AFk23UUt\r\nNftaSJdvYdMflXNOvBCZ1sMVvS+BXBf+p6pGd3clAv4Lvc/1csQKN2kPLYAi\r\n8B0WUZMU+I0juyTW9H+veTMxK7Rj1nEWy1AynZFpcm/bfNnQe8cubPRYYzYR\r\nqWg62wtSY7sabhx9bKtut83WIFhyHMMAf8BMJtWYEUY1v5/XeCBXzO5J/r+f\r\nKVrVmFqB5jy6v2lpoM8IWq+MCTZMlN8y/ZE=\r\n=XQZI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.5.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/9016276ce4cbf5c63973b1f6a6b9c33b/telia-ace-knowledge-serviceclient-1.0.23-experimental.5.tgz","_integrity":"sha512-lT3NONERN8keRabCF74WmoRVisuHd9HFcJPIC8Cr+HLFtqtRzA6Z/4lYJtDdqdjhbfclwreKVA3I0JMG6J4D8A==","sourceMain":"src/index.js","_npmVersion":"8.19.2","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.18.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.5_1673513907289_0.6263261988960005","host":"s3://npm-registry-packages"}},"1.0.23-experimental.6":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.6","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.6","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"446a7119c0361b6af2a8e92f1058b0aadbce99e9","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.6.tgz","fileCount":6,"integrity":"sha512-LyoJZUhzSdKVUv9gW7MjUCyO0/Oz0xnDqBYm/xsD4U6W68m5HWz70ZHph9z8dGMQi8/GcNIFJpvGVbTS5P/BVg==","signatures":[{"sig":"MEYCIQCNHxHrZHXxrZ677z2WRb7hpdJLonkOoRtcScu4K8nYAAIhAIbN4VvVc0KJqpJ2dtneoJkdwXseUlHFDQbA15521RuO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwRkXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6OQ//QDEttpW5f5DAbqWEXtyrqYcTatTfhCtX+O1fTtuXOftJTTHJ\r\ny35wYN0AlN0cpxbe8ZNYvcMZRaa3QB0dQgV4U/UohxB3FL+JD0bkf5v/39L4\r\ni4YSWbmfrLiujfPxfk1XzuLpCkG+ZAPEriw3IxHT8co+2JMO9Bi6p1RC2fOS\r\nwFR7WzK9RTN2fItHkBjIFpp92W3qbmjahimdESAotpQrIRjbt81bz5DDkJLu\r\ngQRx8cXZe6LzVe92ex1Oy1+NCCXK4lir7+dNE3ojV1Mz2ACM8SMHHjAcpKvX\r\nJMgaj4MXwdtubJ77D3x0KBkRU6l3z23Comq+s+yBGafzkH/LpL/24M+P083g\r\nGJHM8f+Z1qizJB72yW2fH8C4v7g56HYuV1fLdOo4y+6wXk6x5ZhM4/a4V2Am\r\nYHUgJEnx7fN2Rk2mq3pzhUTABG1O6r8S4X52ALXZ9seU3Z9gQnQtuJDttIXq\r\nnYQHJxg2Mo+5/NSqeDQkrUVif7Uigev+Fz1K37c+621xM3SS8WoeBvpOxipS\r\n8e5iidbHKUk4nYpOjyVC2F5u9tG1amhWLUToygORuS1A+XRm/LES/QBj9Jrr\r\nzKwgQYXiyHSCO6jdPmkY+eIxK7ApEO9KO8wlXsSK6j84xbmWqe8/c9NPa+tn\r\ne/8RiaXJ7LXrp4+INXTsDY68Zf3OLTLEL5M=\r\n=4TUp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.6.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/87ab071841a661d1f0f2debf26435ad8/telia-ace-knowledge-serviceclient-1.0.23-experimental.6.tgz","_integrity":"sha512-LyoJZUhzSdKVUv9gW7MjUCyO0/Oz0xnDqBYm/xsD4U6W68m5HWz70ZHph9z8dGMQi8/GcNIFJpvGVbTS5P/BVg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.6_1673599255740_0.4774892498065828","host":"s3://npm-registry-packages"}},"1.0.23-experimental.7":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.7","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.7","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"03dc235151280457425eb8f80e04942748599d63","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.7.tgz","fileCount":6,"integrity":"sha512-A5Xg3od1CoojL5L6NylQhu0Py4DnPK1ESM5dqNkThrT73x62VvhjunCm+m5Nd7gV/YsVrkLjrtkQKXXAOJXAwQ==","signatures":[{"sig":"MEYCIQC4ql6R2d3p4NtwucbizTQXwP44ENCQ5SVIs7HvjTRW+gIhAPZO0uXBWmYEDRGoXu31V+nMbxfdTlZwdHgiquZ2YOaq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwSVxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWzA/9HfxFZ7Gtp4lyMDsImOm2LwDRUIp+9ZWR2BxGAZBuatg61vpG\r\nSoSYB4tPgu6B4bz+VHNBO6Mmu93fKkhJczglsqvo2bO5t7S+9v4TsyrjByax\r\ngUWXtSmZWTKeVAe9CxUtzzUQRo3H2Y4zf0oyt8pOeHiq4HS9trGvMH1UILNy\r\n16OBqqXXW85Q4dmgt+nmOhoZHVsktIXEPUZ5RjcpD3NRcTr/+34x8kvf/1ZD\r\nSUKpG91Fh7yrjZgEdUP+qFgkNlCF22w/pOomFxVGt+YMp6yvjU1d3gGnuiDJ\r\nso7Z1wzkoEBstEIXCkY/3/jbpZxygjtIksW4HL0+NxEU2BZV1f3exYCb4HWu\r\nGdFkl1NI8C4z0qQImNfJPIfvMK5KCp5NVwwR5VQyYv4JZFlzF/mAXGYSaGTl\r\nXwcKna8lo+IvRHR9tlVlsYHirTGAU0fKGwvOQPC7rShTWBvlhmFmiNo2IMeO\r\nEfGZmoktiCqbvRQm8N1EpOCdS2TbhBApRyB3KoMPUpb6wl3TGm1HtaCrXjJJ\r\n94VyXubVZV3P0YdyutIGMNO+ZFBTfYS0w9nuhXcqpVA5bALmbhAtPIvsJVMN\r\ndkIuSUmqzkxi0SNwtH30+McUg1wxjAhumzwG+JzXuXLnl9CgGbna9+O1QMmr\r\nLvnfT83YMAWa1zmSXMK29kJhcReV4mBHMrk=\r\n=13qq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.7.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/1a9092cb7791dfe6d31c2e7735e18faf/telia-ace-knowledge-serviceclient-1.0.23-experimental.7.tgz","_integrity":"sha512-A5Xg3od1CoojL5L6NylQhu0Py4DnPK1ESM5dqNkThrT73x62VvhjunCm+m5Nd7gV/YsVrkLjrtkQKXXAOJXAwQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.7_1673602417299_0.36933102515665395","host":"s3://npm-registry-packages"}},"1.0.23-experimental.8":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.8","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.8","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"dd70d80589c85ce8fa48142c6f8e635c9db8a2ba","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.8.tgz","fileCount":6,"integrity":"sha512-hM+mTNSG35amAgRiwp58BChxt7naUO8nPaSoFPHl/kpS3DUE9T646YexhvzDSxj0cSj5hQ9FSxTkrxS+OJl5Hw==","signatures":[{"sig":"MEUCIQCnWhBM0CtR/dPSZWYONeVl5g3fDP4LgZSZPOpzfgFMIQIgS7ye+ZCLyL1kEEeuE9UUmcot856ufGBQMqO+7l0qguM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxWvaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTYhAAoBec/7l/mjzBLec9mcBQrEDgUJAYQSMM8OE1jl+rp+zGBWuM\r\nrPGTTXColWoXcvHJPKTMECiJfbHYNSQwaTz2Y7mzQthevT9aD6LHHfA5FZgw\r\nS10PBNoMFJE3YiVyjpnSEC+HinaCix6JZ+Yy0+eWCRWGJRKdD3Lb1mQ63YR7\r\nU/gXssDf4iZ0gxwdMfc/Mb/ujKm/IP4c/Wbsj1Te9I2HApeaP0NUjzUeeKMZ\r\n9OSzzEbBYJIHE4ZR/NXsM3pcYf+iy3y5pD/4h4N1Wwpc9W8FuwUeRLTSdzAo\r\n950ME0q02pF/G0Rm+1M2mz/245g87aHn72MST/qFLVeA3M3FiP6h3Q/tTUWu\r\nfdIiLSQCIxHK0hYi0HM7oAViuOdGH54Mje+bbmVihR76/ENnQuWQ7ZNuVsma\r\n/ITp8OfXulx4qtX0H6OATuuf3oXpp4vhes+PBrErlqF3WMkn1uuJgcpbttvL\r\n6C27jaTyUk7Cx2UBzS5RDjF+0RE5shFNjUOZSa2fJAWkeFN7z3Ctlbrv7tqo\r\n/ctYOMv4FblMuamJi0S8LT10M2RBq8kY8Y0A9/VYv7lgZBF5oyWigiPkc4nB\r\nbu4CulBqxTg/XftYZOviM0nj+AvyGwEuSESeRTlu4yOPs0SyxtKSxPeDn5uW\r\n10GIBvA5tVmnKzdE7q7rZIR//0GQ5GKJFvY=\r\n=i54J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.8.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/d94094f5c9dc16ebfaaa224bdc3c960e/telia-ace-knowledge-serviceclient-1.0.23-experimental.8.tgz","_integrity":"sha512-hM+mTNSG35amAgRiwp58BChxt7naUO8nPaSoFPHl/kpS3DUE9T646YexhvzDSxj0cSj5hQ9FSxTkrxS+OJl5Hw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.8_1673882586021_0.3178436919268999","host":"s3://npm-registry-packages"}},"1.0.23-experimental.9":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.9","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.9","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"1dd19c91971c8312aa0ed827e61e8219bfa01bcc","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.9.tgz","fileCount":6,"integrity":"sha512-FEbQk8OLoD2Rj6ftN9I54RCvJIBCSiKBtEf9K/p6VyYhFtGjkxG06+AmIHz4yF5bOT9GP8JmDePiqoOiMZZG4g==","signatures":[{"sig":"MEUCIFZ8QT1jLI0OFERKPDdGe1of1wke/Zo1xx2PQYmZonZCAiEAjms01wJO1owGbdneuJPRd8+NwPqMv7RX6O/fNDL+t68=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxnOfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCKA//VbTOnACSSKoaAaT6CztxPJdS8reY+ZTTqhG8AZQKGEec8C/0\r\noZco3sO4FYvmRSC1yBWzn5yAoSLn0Zu7oMacY/NaDs9+lQcdwvoxPG4AWHFr\r\nVZ5WyvgnhlCI/V/ryWzu2kDMQeB/DNdtEfcwo9QxTGkeMs1D9bGbeqIS5gSp\r\n4l+XcSFIPhEmkCS9Y7wmLk8lKmjUVs1E6gpZaeIo0Hp86EzaR5AEg3wQkTAx\r\nTTP9CiV+5IurMHboQ5IgrPpRv5dyEXCHO2Mmx4aVumqEIaw2cK9EZ9ff0Kdw\r\n9UzDwT38DL0VMMmdjIUPpKKBrxl74Gd6TUFVf3jw06y5oA45C6LVqTuBx/vd\r\nu7R5202TYkurNrd0Nrax9j+sXIUyBtP5EtyIYpKtvgvjTIzFfZc6br3DS2GR\r\nNPmQ+Q7n5ZDOMYKUH6Ox4X0dKCK5UxGwiLYKYGtYFYm6mmduEmal9gCjS2xz\r\nUFmwKE5u0uDBLTm5MDVGw5jtfP2aSzkz49r6wCbyk09qaOu36u4bVbkO/Czv\r\n+dD7k/lC+iDltGZPDFAe57Sg9Gy+kyNEHkdv1z7QAn6qNynQ+M3C/m5HEm6+\r\nh0l186eCuSMjWRetd1E7FW5LeUxSX3MYTjkYCd2DyDeINX/QBTp2np9mcvc2\r\nxtaCs6TyuNh6IzN8iVOdxHjivy3VMqu4UzM=\r\n=qw4F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.9.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/0d91c25a8757fe7eb6115a99930e3ead/telia-ace-knowledge-serviceclient-1.0.23-experimental.9.tgz","_integrity":"sha512-FEbQk8OLoD2Rj6ftN9I54RCvJIBCSiKBtEf9K/p6VyYhFtGjkxG06+AmIHz4yF5bOT9GP8JmDePiqoOiMZZG4g==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.9_1673950110823_0.6617297914923523","host":"s3://npm-registry-packages"}},"1.0.23-experimental.10":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.10","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.10","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"812ba86c00e2310864a1e97c21df2ab199c3c3eb","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.10.tgz","fileCount":6,"integrity":"sha512-ipoxm8l6uTIUDqjbWGfZV0bCSGaeeR0b7lwxp72hGKCNE2ItI3r29JFywzCwEsmsbjQh8aARB5/E9JPyecq3Xg==","signatures":[{"sig":"MEUCIHphXBPI1yNRgUtsKzhsMoIfKvcO/MjerEfbqtlptP4MAiEAxDVo6rATOusyfi+rkPBldwOh02a37AknEjQyKMLhtWQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxn5OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrvnw//VKDzJsdHRpdpElXvZu6zekxj2YGoT5jdkYNgCIovS4gobFcX\r\nKT9SKtg+DnuNzmdi3Lwg4Lc31PbhyjPb2Ggy3ZvPx42nxwPjEdYoBdvXQP4e\r\n6dq+6mU7FOlPvNlaUKDats/toH4LQDFeMjY7ffLOIG4AYH0QYvs3eoFg915f\r\nlawpwfhZbL2W1rnPHMdVjuFIPD67SFKxp7EBuk10MDvsDfyWSnoSNdhNYsZP\r\nq39hZe3V+BsXXaMsyRNcdZv2TYCYN6rjffKaLRrCTH30cx3LXTHTOQA2bNPd\r\nEIOl4a4lv4VbvCHcdCzw6aAUiMFg94GzsHg6Clcdso2TnmDeWWApPTZeUdc+\r\ncG3oXmwgy/4n1fU8Gwfhl2LqhduW/Rs+YfHgvqYeM6r7mVzX9cNks62WteO6\r\n8oy5ImeyQ2jPBZQNYHG3zQu9Rsxp2mBe/pnIOHCY7XW1UUFs9+C1KTZSaH64\r\nQFIpZzqCEGp1TYkX/yuLWZfI6wEoVqhUvXvpGdkM6H72hbt0JU+Y9Ah2E1IS\r\nirR9x4Hd90Q2twQt5XAYvi62NvaU5/Vfzog7jYfF4bazelA5PT6GkUa00wMD\r\noXGx9MbIfkCHGLzPKA3mJrEUSOpuD8rigTe/OSdIEE057eUtKcjf59XvTKCg\r\nWNH1BxeuoDh8Q4auTrAfptc+RdFebythjLc=\r\n=e3lh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.10.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2a661a21e4126a0fac017e2e731a9010/telia-ace-knowledge-serviceclient-1.0.23-experimental.10.tgz","_integrity":"sha512-ipoxm8l6uTIUDqjbWGfZV0bCSGaeeR0b7lwxp72hGKCNE2ItI3r29JFywzCwEsmsbjQh8aARB5/E9JPyecq3Xg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.10_1673952845763_0.46288851038330847","host":"s3://npm-registry-packages"}},"1.0.23-experimental.11":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.11","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.11","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"fce38ab4ed20b4f8ba44f9fa9bb1a07266af6974","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.11.tgz","fileCount":6,"integrity":"sha512-nlsMwNCeoh7/djTyINJUWzz6gpvCSj9ztJuSvZ94h97D5mJiCR1iSML/23URXDeSTQvSNB4Z29PRrGigI5W44g==","signatures":[{"sig":"MEUCIQDD96msm0vxf2rbFe5Mp3vq/6ZNUtudwNHXnGDlsaD8VAIgQtoVjvHycrezFW3K7vakpPaE0gTNuuTBbGAANVkRCew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxoKZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGUQ/+LsEEIMBxGjuiXtT6e9Mx/jhPIHdV0T2EEpWJ3X2tpx9yjzBx\r\nAxRWpcWH9QzoMzxnL3yRSjpJJACbMGpTYPUTm0dKheFDlxDwxAUlWUXeciAW\r\nwin2CFm/++PKjjUqug+S41QYR5E3TL5Fz8MQaaIK5AFE68McWEr0uw8FSNKN\r\nuTlLSVgdpsJjH4eDvM+dXkqnxGLM2gkn4SWMfHwhK8JJ8DT0Y8Pz/7sJ6SiA\r\nQtQUp9JZ7+MoihwzGBXsMrz16uRhpmXxKqaIVPeGgV4aTW4W6NfV6ieAQGXr\r\nqFkRWkha3S/Mo3dZweu12O0NrEawop2juQAqFgE/tr0/LwWweopj0S7kS1+N\r\nxOZV5YtYDnaxc/crB7baza20WI1zAkLTCkpsipH5VRojWbcIXs+dsbglvT7W\r\nMADXQUjk51yGWPRSNKQ65iHnBSGHQJ32LbzBnldDH6UMsOujlFBQOFN3UXEz\r\nL1EUTm7vPMjR6EKGBdxKMVFwCUzqNs1cL1Os60TCrTe6LWYjZ2wnRL4nuPT3\r\nd7h+rZBMBnU1e1dxMIAvNnWaLcdMb2s+dvr5P6hJx5Z1oWPetwiko2t4zwit\r\not1UIclDt3V9dNJNNtMImv4AhLMIuSWWbg8oXpQoZtIoCbLo+segumynjUdM\r\nyJz9gA4s/tegtRE1VLHClDZsqhVsVxwlh+U=\r\n=Aicm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.11.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2e2e0b49acba43e5b3534e8e53c1c85d/telia-ace-knowledge-serviceclient-1.0.23-experimental.11.tgz","_integrity":"sha512-nlsMwNCeoh7/djTyINJUWzz6gpvCSj9ztJuSvZ94h97D5mJiCR1iSML/23URXDeSTQvSNB4Z29PRrGigI5W44g==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.11_1673953945215_0.813532985471384","host":"s3://npm-registry-packages"}},"1.0.23":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"4564b48969c4a341c6a945d56e993e0ebc32ddc6","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23.tgz","fileCount":6,"integrity":"sha512-FC8VOY0K47zce11CZN6E1u2JDDK+earHnLA9FzQlIfh2TCyeGj7NA7Wvi/UfCVOzABdSAy1aVvugp1LDhSx3HQ==","signatures":[{"sig":"MEUCIHdOK+rVoYouNGYvMR/7yWS6ZWbcNSJkYSr+427cW/IWAiEAodvNvGo18M1c73NxDQmFSRA/9/ksAeRtG5FT/o0cohw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjx8HYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1/Q//YI9YaWx9uoc+ujngqdCT3YWUlXtph6My/yZ4Yb7F7DeqxCUk\r\nSgi+ErByx2Z2n48vIYequ01Ny9zyP6Fw1LkNxGISk0CTDl4XjsdztxMoRsdb\r\n7i+BcKxx4iFPVw0JgwZ9sDbur+LcgdATz2/7/1hDvslM8evKx6WII7YxaRoZ\r\nAX87/X9oqB2SWkgeuVNXSKV46EwN77BDnAVfU9wF26FEAzW5bLB71djSte94\r\nV9JrGcsNgrzWeag/dbs4zUSg/mmarqeJememWt7HjZPU0wawOqj3p4YqdD7/\r\neQSOj3EhjjyQgSy5ZoSDEu4JXrFFwOjkz8yo4VqhvZDHQ19xxrZcFuZuGcPx\r\nRZ7IUbcE4SGxq/lZ1A8ckYpO9t+NARYXrW3nPogpWFh+GsqgbntQDlWpeQV7\r\nF/gtf5Zs2+V8V4dstg6Cocz/Sbeq7NWNgw46l9ysSJJTayd1Ei+2WltbX5U8\r\ngy19q+Fe/MC8KqvhcbIHqiJaHUiGy8cXU/cJairF1WSMm4RdvdoWsUhkUYNG\r\no8q4KMhCo8y6fKUiZpRMYGdgMkx7iXI+IpByKxfeE49EVYqM3thqz3OmurzO\r\nWcjcSLWZvAq6I4VCWrObOmEXc4Xd6KhgHIsJNbD8BCErVO0fZ0kBiWZINSYx\r\nsYjXevULqBgzGTUm4cXvZgXSo9sWWXFJxrA=\r\n=ezPT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/0248a72d97fb97554bcb42a0b36ba035/telia-ace-knowledge-serviceclient-1.0.23.tgz","_integrity":"sha512-FC8VOY0K47zce11CZN6E1u2JDDK+earHnLA9FzQlIfh2TCyeGj7NA7Wvi/UfCVOzABdSAy1aVvugp1LDhSx3HQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23_1674035672047_0.4712558709646777","host":"s3://npm-registry-packages"}},"1.0.24-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"5613cde1c46e46d3b519888d84d1438e984a0602","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.0.tgz","fileCount":6,"integrity":"sha512-iX9tuQsp7mNVM2O0HGwWRHK4KN7hPi+tP69WhsKHJIc0hYh08QpRtD0rESa9UbWnmK2PkfHQa1rEolsbihRTYg==","signatures":[{"sig":"MEQCIA3SR3MS26bO86GANH9ptC6k7TWC3eNIsGP2E9SQeltMAiAr8qUUUXzXuY6TFSYGj/je+3eXW4ZDsFqbdEZtLISSkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj17YCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8gw/+NjAGdcU4UJdtEGZxntDuNdVMWCXMMzKwrGYvxzUslTezUarP\r\ncCHl6cjhl8KJoyhVZEJrBmbtWQ2SJL6J79g0wYAZ8eqs6071OO+6aMzN9jJh\r\nVcqXjlNW5dfW3GVsPUNBavnfxFbh2SVOLiPI8MGVzOTymqdzSjWapbczlP/7\r\nIjNacY/Ap3HILyZv00b7gVDX8qXFk5/tf3vS6LLqcBu02TtM3ekBkMZmbp81\r\n5XyaDWvc0DIVZUS77mtAEiMZHPYqV9D6rkqOJQ7tDiRSgsc+cfPz1pk6No++\r\nELA5XfuLI1lrreddX+ScA+ISGPXdXhuFDv6c1D1rBWyrpFnovmfPEI77sz7S\r\nrTht36fQeFdHp25dt6D0Mb0I3vsK6wtsNDOwWaOrFI5kDb7QF90LYTNvBQrR\r\nwUpfLWJuhqx08LWK96qKAuSv1JBU9HLKq5hHdYSRTWPOLbGUCx7nkUMGY12o\r\nBqOdk6qQkBnmVHo1vwYeYNFqJjKAeavdGtZRy1rWkzguFPO+3IJnZFPIf9vX\r\nlxhZF3bAciMu/4jT1SLIYDnoA5djvGKPKj02omQ3iZns5W82HK0MbsAR+UGB\r\nn0PXEkVhiXV2zbOYRFzl1Gt05wA28ExFRfsphq+9kg5CxCHthRsHW8ZwSaHQ\r\n9W8hC2h8V3S+lZ7gAmNypfIOaBksCu9uau4=\r\n=IJg4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/cf316d15493bf25d3dbd3c3899695a2e/telia-ace-knowledge-serviceclient-1.0.24-next.0.tgz","_integrity":"sha512-iX9tuQsp7mNVM2O0HGwWRHK4KN7hPi+tP69WhsKHJIc0hYh08QpRtD0rESa9UbWnmK2PkfHQa1rEolsbihRTYg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.0_1675081218646_0.5811402563402435","host":"s3://npm-registry-packages"}},"1.0.24-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"2e88ba66ddf2f0ddc35d896eb272419b4001b984","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.1.tgz","fileCount":6,"integrity":"sha512-f5m3Yuk6+wN2qIYyrG4CqqJHdUXcW0KVyIIMlb6fo6HEDjuHyREnKFh+Y8jaygPpw2/N4Qt04InIqsAuliP+wQ==","signatures":[{"sig":"MEUCIQDejDSLjMLvyUIIIEf8Eq82UIpo0G/Fs9f27XFPY3e6yQIgbxVEOsoN355iz/g3j/Zl6NqQGuhw/wvQPL+jQkJnmNM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj17uIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9/Q//RDGUd/eyyUu0J5kpGXlj1l38eZrxjkffqMzbasvz5XrilOIn\r\nxLK4sOvzxcAMG+h4q4/fU0WkbbqMwZ7+7Xv4fToLeaUYsxINIrY4SYL8pAJP\r\nDgx7nqRpTYWf0+lYi2jFcQFaVIPbMphVvZWKQCprNScLQliAemU8UsnEbGpb\r\nzc8IYhA5MfJaXUIT3yS7pwE8N371r4tuJ80LSFMRBugP7ERmZ7A3TLOQ16CV\r\nEamMnEgYUSYpB+Q29wrQWVvkg7J4abIGAe4hnI0VcjpL0OLSDmUDsA6wYxnj\r\nlLawA0aJlHfuc6zqp7QW13DFAmf8660f84dRerBqYCIzy3xACOJWGT9lBgNt\r\nUQlhT/WKCU6B7UV6A2iwYsRrUtzj93eCJEbZ0YoSSqkD82+zgZpv0wbt1qWD\r\nVuVGvIGUOMYx4H7/6Xb25NH7PjRV2mNytjiJMSq1r3b4b464FMx2mkw+i8Dr\r\ni7NTt3X2aEh8gt1UntB7TbiRGRPGjj3Aup7SpKPEHA6BkFc/LFoMtS7MDJsk\r\nMccIZcLHFWw/3e7L2a9l2IJN5+jHEAPiRGguYSP5fyaTa0hM5nERx1nMJYky\r\nE2ShiLRkGEx5M2DbH195u5VEzy8v2iuMVp21/6QnClpAV+nx+ZjRI9FFMMnJ\r\ntLF6zfmcNaWrFWBXo1JvgSShPGpU3GI7F9c=\r\n=1/Jx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/36e3d6292301923be0011e6587eb4141/telia-ace-knowledge-serviceclient-1.0.24-next.1.tgz","_integrity":"sha512-f5m3Yuk6+wN2qIYyrG4CqqJHdUXcW0KVyIIMlb6fo6HEDjuHyREnKFh+Y8jaygPpw2/N4Qt04InIqsAuliP+wQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.1_1675082632643_0.6052876450535418","host":"s3://npm-registry-packages"}},"1.0.24-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"ac893ebfbede263f364e43ee856e703442e8745e","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.2.tgz","fileCount":6,"integrity":"sha512-wndnaVpzQDheSGZEMyAamWjqn7+4QZYd0G6ZHrPdrmfV+YCyy8AI2oxO1+FgetRx7xajGNhlDzmb2yn7a4FvfQ==","signatures":[{"sig":"MEUCIQCmu8qTBKD8LAGULdii5GNdBiQ+un1uHcxLoxe2r3yRVQIgea33T/TCgwTdjtYzbjAEcb7Bspv1vOgMTaM0o/9lQEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj18gCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqgxg/8D7/rQCm8J+h8k7ngez1Y7tMJ0HAF9n6pqGkLNDcwN1/vsrc8\r\ngOY7z3wGUHQ1NxhUTh/pWE22Ep+zNKGW4gVH3SbbSOoRkcpfsv16IKyCQVpF\r\njDHv7U8nUGxvmoRoYxrwnY6757+HqPdKpfHgjZ/5az1RJTKgd9buMGdUIe+Q\r\nc4fQN8DxA01ttg/lwWy3qf9Oc0mziW6CkuARVCOS9R/mh8Hti1Z1ODz6Pn+/\r\nq6JDgoKKCy6FDmhTWHq0xQDJQ2+NSGIFGdIvJpF/yJ2n7oaeXDvnoJjcf+gO\r\nIl3/3pnq1M9maAZuV+0QD2V6G3kYYvJFUIkLQqzZC+lZOhZAMDfZt8R6gKFE\r\nsNNyFwwyiEqbJjK1j6Ct71w7aCWh41pjTLj/8P7FVyH4+JUTQWrPO3l1Iw6u\r\nYeZpIDA3U6rX/YjCMk6Y5/YFa4uojDDoQnXjab/yl6J0YIi6++fKZvs1MK5f\r\noNKP+fEf19gR3aqeeYfoqmJIfzKMawCzgXIqxvIc7LonmUnlZxe9Yu+Bsqf8\r\n7aRp6PqCp0bkRBkcn+sJCcce2b5HWUcfzg0vwUaHT+lIDAePDOZlM3lplPsq\r\nTEuNaXe+U3fEHLY7RvUx5Cc4cIBPabVJZ92bxE6Q+lzgdtZ0nLnfbaoNUMHZ\r\njkQF8lIiLixTQnp9XWYMQYcghKMRsTCuIM0=\r\n=xL7d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/29ae832a801af3d844e15f98e973d65d/telia-ace-knowledge-serviceclient-1.0.24-next.2.tgz","_integrity":"sha512-wndnaVpzQDheSGZEMyAamWjqn7+4QZYd0G6ZHrPdrmfV+YCyy8AI2oxO1+FgetRx7xajGNhlDzmb2yn7a4FvfQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.2_1675085825762_0.6676832292958017","host":"s3://npm-registry-packages"}},"1.0.24-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"3e4d8613d52cfea54375a00cbb297842e37dd0a0","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.3.tgz","fileCount":6,"integrity":"sha512-jSiNdL8TdK4hK469gnrIa8AfNRi7pfph3vgl60Os/2xb3XxZBQDM0wKIKQOfnoHf140JQueK5ZpC257CWlQoXA==","signatures":[{"sig":"MEUCIQCSdD5emAjIpT505Avf02187roQx8vwvpBoYGE51+SDqwIgfd0+xDL0t8qhDaf891NPAvUT9tcXsYgylpu0JpBrfnY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj184TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWbw/9Ezk8c8uXY2ZlJ8YGSKzIHrvj93TE6FAWg5TosK+cznyPx89V\r\nOo7HfbLkpW/y32QugRYjyEleqbF/Nhw1dflbGgL3KS/0o2CWY0YpOBY/BuUe\r\nsg5lpOKxXA9gDc1XfF2KBQt5dzD9+gfHP4U+6f6fuwynF0uVi06raONd739s\r\nTjnRPXuq7BWtqZok3vTXcUwkZ7xjJ8pZR8YqYQ6HgZGfnlepJWHDzPNAqXBr\r\nE6yViFLn2v1mqW9xqOUC7qilJU7l3zJCrQsLlriSTeeLq62iLHIUUslLsRUP\r\nHrk0CAtTY/VKV7/2XIdaV4sHVyi1uVzOtNtoDY0cATWyywN6lwgDBIZtduXF\r\nDXMpIrgTDPSIRFFtZv/kMH+GhtHUSBKK806jza2d8ZS+orN6OdqXqU9Shg63\r\nHx/0xkvbkNKFM2acc4tlukpOX+RRHeSIGipt3nStGBYopRa/EVQ7mbcQ5wVB\r\n0v+eGFarDM2FfVRMGbXeIR7k6v9G++6fdNCoYosI4JeH2KuA9Sq17ge9zMQO\r\ncniSqojKTxBiZZjNxBdbXSz2vRwdAAuqDnhGlLItZptswBbNPqngZvRzFj6G\r\n5erZueo+YM6FMH48fZBjwDgtUYk++TaR3iBrg5sdfx1veLv5CzoX+gd4iYO6\r\nxqGlKF2pkQgfnomqr9OsnGJHE332qbfkuHU=\r\n=1eIn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2cf9448b8eba07be4364de22d00f8847/telia-ace-knowledge-serviceclient-1.0.24-next.3.tgz","_integrity":"sha512-jSiNdL8TdK4hK469gnrIa8AfNRi7pfph3vgl60Os/2xb3XxZBQDM0wKIKQOfnoHf140JQueK5ZpC257CWlQoXA==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.3_1675087378905_0.076458077240394","host":"s3://npm-registry-packages"}},"1.0.24-next.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.4","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"ae9513fea822f3264a5cc5b09907fe4b1c8ccb71","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.4.tgz","fileCount":6,"integrity":"sha512-RSMemS9x7MU3n/jYnMar+mqrkv1I7mgZ1A8FgZuyHLy44w+CB4pkLk32pYnu3TQUYb8TsGehRUqFuYmWB7cW5g==","signatures":[{"sig":"MEUCIQDtm0e3fxxw8yc9y7qUQd1xvZb4LHZDo2uOLr6QgiB5awIgYobhAxBpcWKF0xYRLBeT4DQubYddgb1t2kTWFvosTLI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj26dFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoI+w//eVrd8vux2qYRSOf8lIgL9nkWLsL+AEUJvc0CqHUNu5JEoY8X\r\ntMqp2FRvwUANCxeo9so68rm3av5ELc31BMkL0WVpw71BUCg2lsgzrFSX0t1f\r\nu5pcnhUzFTtYysQNCke+dzYP7CxXlxIfDAuJImdS0X6gYJvTF8OUpFyKFe4E\r\n+FC9u0WuosDTzkVmyPgUPY8tFKFEpVxaACzLzLm4F81EY3vvpMiLdm8bxcwr\r\nxzFsK0UIfXn7rPkZu7QMyQovwlKBEA0J2ZPM+KM1VAzx3TsLrK1ij7SqGAcg\r\nWcszGVPy9T9KAI/vpjpxhcYOAJMVbGXi69hDpKWf2QTaPef4ej84oTtlXhmk\r\nZuOXWI4UXBVl+AWs7JQJZpQAma9K+cQ0O6pgTMAaBbiDDOGD2JpQ4dyw+bRj\r\nibxjp/7gLwyhcOmH5rbHa78fge3ztP611C6Y4ixrdTRDgEKRPAqY10Gjdj2j\r\naTZXkx4JVijDVt7otoZNuR+2fYlzLHvcnYjeG48WUBkpdPk2gzGaU4tKdAJQ\r\nxayCwoj+efqu8OmO+sAdu01ayR+RKrr09ctT4RtkQc/yZJpdHRDs8bE6r1G9\r\n+n3tMK/GVa1Ep+Fmsz3+AtjQia0C0+byWAHCaAxU0WWMtFK36tW+2jkoxI53\r\nFVKM/dIU464ku5W59DUFxgd/csL8YqZXCgw=\r\n=OIec\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.4.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/72ae53c244edd6d5feed48e8e5bfb8b5/telia-ace-knowledge-serviceclient-1.0.24-next.4.tgz","_integrity":"sha512-RSMemS9x7MU3n/jYnMar+mqrkv1I7mgZ1A8FgZuyHLy44w+CB4pkLk32pYnu3TQUYb8TsGehRUqFuYmWB7cW5g==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.4_1675339589014_0.08328684388109475","host":"s3://npm-registry-packages"}},"1.0.24-next.5":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.5","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.5","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"2b7666ab665690f538207570e98630fedbc480f2","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.5.tgz","fileCount":6,"integrity":"sha512-yQ/GI0lRRFXh+XsyTSmVoji1zCdrslg88lDnIWQ6H5CIB7jrSDyKtLZCM/nshdabFh9xbk8e3b3ok1gFXtTHmQ==","signatures":[{"sig":"MEUCIQCslDc/6BHduChNTvygbSQlwLlDKxZJ/zpBSIiXovnDCAIgdofRkJaf5sCH1DhqmJKd3dKy3a0KyIugqV31OhRvDuM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj29cDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSEg/9G8qU3Fr7LIQtGjTZTPBrUR8CeLQ1YLunUjBRZzy0hDtLelMX\r\nOG8q361sXdsmadxOY9hXFzTZV6c+k/GwxUyZOhcjMRUa7GyQEWJnB5Gy8U2C\r\n/KGCvH03mNO4iays7xPQ91g1X+DK7tRb1okwqfqGDwk83bmPXK2Yx5xzdQ1o\r\nqph1VuQAKyjAKS6yUJOtU7N1OcPpfLVkb0YJ21nNLMQUe2rJnycgkqI7bQxw\r\ntzC9m3aTkpr5DnGu+C+d/9UKednnyR+tI0yI8KEu8F7jWe+XChctzGTMqXB5\r\nF+guCHGwuE+rZy9OobS3Rbth0JLuW00dzOOulHna5aFZjm3IkN+IPjvqxAut\r\n3mMSeM9QhrFtsDCsSd3n1/AHmDaGLP4u2p/Z/kWlpbzD27UC58JO8RyEGsiV\r\niqQuMiVTB4ByfdP3IRUIWMp1IlgqLnFo5lu1zUl7ErhY7NFUbQIYteiLNNkK\r\nfXW/9tsTuh1K8CXKhtvnHxxZGYNcdyb9qJa1nc3MUEywSV/NFYYXb2nXXVNJ\r\nSkiq8RKH4JoQa7cIY8iPf6kaJTcIRnaG3KymH8qhMyOzRVdGPcoaE/p09UDO\r\nPR0hFRi4zSZi3bvVmdhutB4eMc+CyAhcDqQ53sgt2jcjcxPNG7jFTrCk0vyq\r\ndd5gB9Udibhg4uPrn2amwCq8+8yybLGp8ik=\r\n=x9A0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.5.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/32b4af81bc34936cf1eae7400f599385/telia-ace-knowledge-serviceclient-1.0.24-next.5.tgz","_integrity":"sha512-yQ/GI0lRRFXh+XsyTSmVoji1zCdrslg88lDnIWQ6H5CIB7jrSDyKtLZCM/nshdabFh9xbk8e3b3ok1gFXtTHmQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.5_1675351811777_0.16733121958856434","host":"s3://npm-registry-packages"}},"1.0.24-next.6":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24-next.6","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24-next.6","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"682eb246717c2238abc06cc3eef75360c66c5984","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24-next.6.tgz","fileCount":6,"integrity":"sha512-jlVWXmPUIH61Kbj1luQbUs7FiR5WHMi6UqOtbEUbfdRumuwBtWXosiV+qnnj7r+qedHu581rzICVTNVf4UiRuw==","signatures":[{"sig":"MEUCIHVoxoQP1BUgwugjKu07TcQthmLSFhseWl/UeeSk6tDOAiEAjjKZFB0Ui7DbMsuJ5YSWYBFpD4nnUGrTvvdFGZlMGHU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj290mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmot+g//VbGPCJIkWK5cERfx9KC7bqanrEIxz9f2z69jmRmrsv4Rw2XV\r\nPMA6CQMM4k/inTKJWNlTj6S1zw6pP9dlO4j3lyIX3Emx6yFpb/r/2ZLU7mKt\r\nLvK2egiMpoyMWb29HhhicgbvJtuC6E+/WIneSMkd3vsusTUeMeEK1X6F8m7m\r\nBvEAcX0Ko8wSN1VHxbqy4EjTDP2KwX2vK5rCDgNHQi8lzmhLQXhQIyzFYj3L\r\nHNLC/SwjNJIcTX2GXB3bPbnP0kRJqAeRYeWwhROlRMivA5uDAFEKcydTnYzA\r\ny7fouW+bdjG1T8bEG/EQCf0Ry0sHanBw5yczexF7ytYYNW0asNFXYuQAs/3o\r\n+Qgr/Ut2UvIK5fQvVX+OdAyx78vvKXtokftMPqOJM4RFG4gQyd+nccCajpyw\r\nNwUpVtPLA3Z68Nqc2oUti8COmILAaW/NEi0fyzHYzExG6PsPBfwZaQf5sKZ2\r\nt8eALsrDMe2Sm+pgQ30zcgWJ8WBb1DlT/wuJP2b79KhyaMoVtr7B3RI5A5Rj\r\nd1Hoj+hvua++YP6ZCJnkJIIz3035RNvDTtEf+t8DrcHo3vtvCfFk86gKAIyY\r\nkDSI0jAUeTr+4hMFyPWc4NYHY/JRAV3MAqw7pSixUcqM25ba8uyjlFKAvRSI\r\n1ECEeDxLzKNTgPqd+XMwOGsOabQIWcIiKTo=\r\n=XMAP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24-next.6.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/e00e891a67286b9ded3a673089b7209f/telia-ace-knowledge-serviceclient-1.0.24-next.6.tgz","_integrity":"sha512-jlVWXmPUIH61Kbj1luQbUs7FiR5WHMi6UqOtbEUbfdRumuwBtWXosiV+qnnj7r+qedHu581rzICVTNVf4UiRuw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24-next.6_1675353382449_0.3849937749668191","host":"s3://npm-registry-packages"}},"1.0.24":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.24","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.24","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"d8d89a7e586eb0388771beb8fa0c6357df33cb22","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.24.tgz","fileCount":6,"integrity":"sha512-j/Aaay6A3qSgpuvsKqpOK/vGi9UuZsxJJbKwwtwB4N0i+3ugQ5WsTnRoYjzSSkn0bTRGXJ4YDHbL3iDGCVtWBQ==","signatures":[{"sig":"MEUCIAGD5K8MPUgRZQAxhihvrNHX7i46yFg+q1dhwjxUAOyCAiEA1HKffgo6+xqaMG8FXbPznAMm2OpRz0+6NnUGgAe+3lM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4NLeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhTQ//YwRzmtFxzIGnjXqC0yyhTaSRbltNgfRbmYtcSycAS8MChFtq\r\n30iQlxr+1RGiLkL5HGvl+ddrqd/5EK311MA/mIjj8WAu1tA4n38ezBMhVtBE\r\nr7sMC7Wz0JjLxpWInykLXhHQOa7hi1DhcNPxQ24VpQoukn8gDRHxPhqLjLrD\r\nKA5Nx0D8oKvW9wNdls7byYgquBV3Z8iMMUzvYsEadnv81ELmwaPnZ3Y665bj\r\nj436BsCw1eytdWta0XVoFTpvw4+niNqMWwzeXWPIpQ7b5lZ1/ECgC/pM6q7F\r\nDF6E4LcB2lRqiAN2kfQYkV7akw4WxbdBZZE9bv7xgRhRfGM4EKyY70UYauEd\r\nGl6QWXFR6DSNQgIed3DXnvAt+JXxnuMP7JVFy9Xkedj5oROSABjv7eTdzppL\r\nxLXbQR220q0asWveJhFNlrZPIZbzxt+xDSMEw8JUh4YQfltVTWDlpn4s00df\r\n95rh/TvdobfrVn190Qz4iLvAGyNjYMUzmEbE4RjxYYeJYIHJab2M6997JzEm\r\n4oQXpdZC73eV2Bb93HyIGHwgor3IwNxKO2RhFIW5lxs08H41nTC38GmbJAOo\r\ngr1IN/38gJhS1OGBtICyzj9m40VRLQfJrRuRoohGmwpD1kDtwnAgQDnNaRUE\r\nMA8OUHpDkV8TwsND5hXHdwwf6aNbLilX/+8=\r\n=GJQL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.24.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/dd6d07d758ef5e9b507f33bee3e56e14/telia-ace-knowledge-serviceclient-1.0.24.tgz","_integrity":"sha512-j/Aaay6A3qSgpuvsKqpOK/vGi9UuZsxJJbKwwtwB4N0i+3ugQ5WsTnRoYjzSSkn0bTRGXJ4YDHbL3iDGCVtWBQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.24_1675678430061_0.398661391156641","host":"s3://npm-registry-packages"}},"1.0.25-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.25-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.25-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"497cca4422e2b4e0fe2cd96761ff50b355c2bd24","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.25-next.0.tgz","fileCount":6,"integrity":"sha512-yKX04R+jg5vO5a9qE2rQ3yfHybzGVCrat8maCwBEPxMYnyWgtozx+PSuzvpZ9iMvbueIc+hMsJy6gtNaGMkJPw==","signatures":[{"sig":"MEQCIG5wA7pnIyHoBxdoGwXxnA5jIKvGaFJs3afIJSXsXF/VAiBvg/hBCwNmE26JF1lMwiKzNDoOec0K2dXUdKdTBz4f+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj47hiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHCBAAkrn4PnDWxVgiAE0Al3WtkwS7goFLB+XlxspqQkzeNqbEF6OY\r\nqzt8IoPZdz48kYnbKuyJ+RTxdklVIA3FQLTZDEk0w1DMU2vqKJDUUr3Mw2qm\r\nMvOICTMPz2qLsjF4ki/fU2ZvhvhigDXMc9Ly4s9LNmlIFR21VwFk+YGBXUVJ\r\nDGtA8v9YnGneCforyNV+iFz9jHkD9tpbZ7iiZEsmIvmc7FwLqZkWrgK8IZvE\r\nQVG2EmXR50Dgltoz75c5bwKofacEHbSaqJdBVIi1jiCteWZwLfDKS+HljhMc\r\ntb3xEdLZc1iMQIF1gA//OKqAlxUsrV+oM5sbvMRClON4Lvh3ZsorUgtwsYuO\r\ntx42rXNECGkDcDWvyqJiNN5Etjc6FCABbM7WkdFo99lEeEkPIBvEUpiez7Zb\r\ncgmySGLriz/7MEJXhXKCafNDhhrR2BS6dbdh3SqWg1PwsBZDDuDajcGIbRBV\r\nka//yc3fulWtdfRaoNK8flXXw5ltt0aD/w3/ShVj3WRdHeeY5h6EP2SahVnK\r\nmCUPdlWYiPPy6n5UWjP7jOWSyUcbjmPCDAOIaJqGBHDLKt5HVgUwpl3K8tHh\r\n86ug9yQzIQAJsT4MamTqR6ItrVxTpElwlqIQifP3R48DfSjHNxY9N343iXcI\r\nN4fdQst/NChBg23dsNbW7kVN4ZasxNj9tYc=\r\n=uqdk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.25-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/b9f5b4fbf48e67b3983cecf29c8ee640/telia-ace-knowledge-serviceclient-1.0.25-next.0.tgz","_integrity":"sha512-yKX04R+jg5vO5a9qE2rQ3yfHybzGVCrat8maCwBEPxMYnyWgtozx+PSuzvpZ9iMvbueIc+hMsJy6gtNaGMkJPw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.25-next.0_1675868257918_0.7161776018821804","host":"s3://npm-registry-packages"}},"1.0.25-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.25-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.25-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"2b5ce7fa08329bd2f2828c2d25d3dcaf11a7b3dc","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.25-next.1.tgz","fileCount":6,"integrity":"sha512-C19VgbF5NJBM91qFx8ni7Er0Pgk2V4QV8BIcC/bz4mu0+5m6It+lGJenNYEY6mKXZ+fikaHpWYyqfTq589eUGg==","signatures":[{"sig":"MEYCIQDB2we6bOzBp0BaTOJ0cU4wNtOLhePxDatvHB6LvoiBAgIhAPbRbfSRNcQ2KEygJbgUe7wsRDr8sDNnzvOAyHxbfKkJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj47qAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqX4hAAg3FKqAyfRnUIJRaTGUpMrMBzxJLhu9FxxiAA1aw/3X2bAPWX\r\ndC1JejWnGM39i7zbNj/aHiXqU01d1lpeMFt785/fIyJSIIHVSzHrVq/7NcVf\r\nn22OqQ4dNedJ1Qe3aq8Hwd/XHRg0/QRETwOKTOYHYJg9yqxo4HZxEW2cnOQC\r\nPNO2GKkeSwbmGuzOp+gcmaoZ3tMx/4ug2oTuvddcqVumLBbx9P7o0K0vFmN+\r\nbq8OjWg2yG5ZubNFDF8YkmeDwTqtZUozXifOeEspbip+T9ssb4dGBPCGjOBj\r\n+R3csVfk6NYXpoI1TUgucmLA6Id+k8hiNMDJDGbHzopdHIksrvttKKSI1OQq\r\nAaPouYJCXgqSVk0KMr0+0PTAczO6y2aPDrFTBnEkUIZ+g4cVqKeEykrEQkcZ\r\nBB5CfL++8vR81oyc6a+Ia/FE+lHh4amBk1bx7//gq41vIw9mO1/WgtBW/Y4I\r\nlQrkgr51FEYU9qKiRrEGuFIjH3SP/JsnwEb8uCRtjTye3Qy0tJzBv2skGjln\r\nIDE7d8py5/SvNBsb6co05MD4X7Or+MUWHcrEF70TrCAJY6+9fgKCRGjQ6TDa\r\nalK0oPeO/GY1UUgrXe8Ed+PUyBkq5Z6V52ssShcfXTFetfsvTzfQu85hG2BK\r\nvHCIC+y30EKSW8EL5RnT1d7Sc4jd1lTzKt8=\r\n=hdlJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.25-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/7d3c811ac10c3423e2afcf8c5f62b010/telia-ace-knowledge-serviceclient-1.0.25-next.1.tgz","_integrity":"sha512-C19VgbF5NJBM91qFx8ni7Er0Pgk2V4QV8BIcC/bz4mu0+5m6It+lGJenNYEY6mKXZ+fikaHpWYyqfTq589eUGg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.25-next.1_1675868800506_0.4736001744238938","host":"s3://npm-registry-packages"}},"1.0.25":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.25","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.25","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"d547a1cd15289838de1965f965f64903d7a080ba","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.25.tgz","fileCount":6,"integrity":"sha512-bWWDpfip12ao/l24KRytyncNIOp//KRceJon7ZOXHjhBxDPJhS6g1s4JVwiQMU4HqwdSH8efXiOaldVAlRIHBA==","signatures":[{"sig":"MEQCIBA/j0WufQfIC6p9pvqWS4UDJf+FUwaA6cwfO/KWu68bAiB5EGVMFk315bV+0EVaYZGvd53CJlsOZRjVfI85RlCu9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5KkGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRFQ//c139cCS5pLrJ9xxv+zUFg0Fhi8Zx7Bq/dsbYJ1FFudcqLfvo\r\nrXFxf7shcG5CUrNfRatZjkgkS1ro0oFKy/gXRX3zZULXtFt+fdU86pdNYmp0\r\nQkRz7VZRLV+tyDTxISHPDCAcDlEJHrEgYGgfkpinFMlUTfiz8pLHYZmO3BiR\r\nMbdVOYUEyBbcYsuCmdXPJPMziHxUgr25qwdpyEkdicR0G2hBEjyV4CzSqjE2\r\nJ3hXWf0rcmJsasmKXtNDoin3vKETScmzsE4rSgqNUMkl1Aslo6UALqGKSdoB\r\ncE//YoMyUyVtGB52OKalwM948uhCajARDWz3cufKriqPpCI1jywBRVMJwSEO\r\ngxcnrnXzF7QCXBULzf/EtPPU6Sm4hfn2icwcIvSIX4VzN4AT8sQmx689vr/C\r\ntj9SKVwJ+6MQPpZKO30DBfr5985OiUTOWyyaQfe494c7n2S4AIPxe+8mMu01\r\nmacphkZS9sqRVFpoOhZsLRFGk+4+xQgy4Dsv/T5nJHXNglVL8JjcGaUb6GIQ\r\nJ/AA/R9nipEvwRBhaG70pE1lmJ7y1jK6c2mWcMKHB4Y5rPyOvkAb2BQ/Qced\r\nX6tXEXoaoRzDyC9xOTXQiGqMlMv26xNiKGQoHtyJWY3EG1jL0MaHrN+dC/2+\r\nz2t9ZvJunJeUJOk7maBR16aWTI0PdkpJt+Q=\r\n=hvvc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.25.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/6103fdeb6ba4cb5c1f0a9700fd935be7/telia-ace-knowledge-serviceclient-1.0.25.tgz","_integrity":"sha512-bWWDpfip12ao/l24KRytyncNIOp//KRceJon7ZOXHjhBxDPJhS6g1s4JVwiQMU4HqwdSH8efXiOaldVAlRIHBA==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.25_1675929861802_0.8118438698911823","host":"s3://npm-registry-packages"}},"1.0.26-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.26-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.26-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"702930b232aaea05932a37a54913f845afaa5aeb","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.26-next.0.tgz","fileCount":6,"integrity":"sha512-93OcNXmnRs7werOj6z7DZrR4vYgI5gfi70GMjFHFlCWyXLAvwvGu4qS+blQrHPJuCUr1OGtOAFxdaEnORM9SoQ==","signatures":[{"sig":"MEUCIHBm6fbAtSiqEdKwL2NRmDT/+uoQKd5nskHHsNhrQaR8AiEA2W5e/9kPOBtNTrmcrKQJ7XSDwt5xeVTttKwPvQZmnOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6ih1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6JQ/+MSdnPaG0j25lz0jeOfvYeAPY+KhHBT2bYaT3Q5zLhDcvrAWE\r\nuAXAMPo/oPwNAcoDq23dhkpQRnSxHqIf40i9IhyT88a70lk+GU7BrVCLHiTh\r\n5484FYOG5/40pSUojDYGE4X9hS9kO28PwE63qdf/6GS9e2SwB5/wD7EpZa3O\r\nunDJL8BAV/HZmc6ZlA+6C3wmpzG/sOPoxXKzTP13zWfFC4aRZedWLygeYdCz\r\nLDPGeIG9GmUpu2BsD/SvyU+3/xBky5azEd/oIlEC11RH+0gmB/rlcT0Xrjuc\r\nJUQf7I53F4a2chizIV81k4h/dNwLtHXzUWfG/m2kV9/rNhCpDDp4o9qzdc7u\r\niW6GkBGYK4dwv7BRusPR3YK7vekd1EmdfKKReTVNbxllqsDYFel1/9vi/SkD\r\nNILloC3DNBhcBnPA5AJOJ341vwuaLGryL27/JKdmLQa2mUweHWAd3q3Ha4nY\r\nfCPaaWl1TrrS42yndMZz1DTqbUKEbzLA6rZDdKEG4d7Albb9TO/Un0FPCnJw\r\nCHlRurGh75zPbdkRt+ufgdJlK1S213sKZl3t0JlYZ6fPIp4bOY0KO6WNVL2u\r\npl4b6r7mnxIh347oN1GS/QFEzLvgCLEqgNUWB/psSQPLjhSm+kzrAE1KE97s\r\n1HKFmd5CvlZYCj0RL4PGY4CvZBy6G1nYXFE=\r\n=ZkbF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.26-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/1ccb6be89b72740b43ece45c34b26a36/telia-ace-knowledge-serviceclient-1.0.26-next.0.tgz","_integrity":"sha512-93OcNXmnRs7werOj6z7DZrR4vYgI5gfi70GMjFHFlCWyXLAvwvGu4qS+blQrHPJuCUr1OGtOAFxdaEnORM9SoQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.26-next.0_1676290165680_0.4031015934282589","host":"s3://npm-registry-packages"}},"1.0.26-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.26-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.26-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"215371f7b419988517db94bdefc88f30b120be77","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.26-next.1.tgz","fileCount":6,"integrity":"sha512-hUljiir+jhv2S+alvSBzwoUvRjV0KaWxnKTvg3wqNm9luTvlwR0I2jQshRYKYRNT9RN35uXRLIx27pq6pVl2gg==","signatures":[{"sig":"MEUCIEzzzbMigZG9ZkOAvWTN/ZP+PnAl+k2+f8aE0WlgJY7KAiEAlxTKYekCHA7cTf7ZBh/NXU9BmT3cxJOAUjHKqwk5yaY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6isNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKcQ//eCKgvJjnLtDhEgOaYSg31navavB9dx1XNVu3u72HxJaPm9RT\r\ne0efYhNK/dg/xAVspxV7uFoTK/vrgASXU5Y54M86pEHGu2BR8wEeWDXpgBhc\r\n+q9MK2JnAPtOwEdZmvnZNaqukaBqXCp5bwPL4uodn2sIGwr7CidNXpe9tLg7\r\nhokX1abaDMzVPFL7sTzRHMWiW6FknGgtG5yBKqXTOW2HFtz/q67ck3PoK0m1\r\nhT51G4RRI/0QxToOh7sWMJx87qeeL0T23ViVJDBaWvRVXNrh9V1OseYfSEt/\r\nC2IDVs9m6CpP9bj1s70C1kIC9BgNIeHdxFt6exjomhIrIaHxzM1VBao/XBZT\r\noebL6ac8Iz78RqzgKypXouTq9HG1r9uZG28Q6GFOP3EKKGW8mhACuky9WmkS\r\nLzfFyRDdoZZnzMN1xyouOGQjdj7XNNfNh7xhTIf96Ct+0gQtQMcOH6SXLNGG\r\nzFpquKOAav5EyS/f9P8quVdw0Ylj/VeqeZxfe+anG7hHydM9WR42dbf4bzli\r\n+JDTYfIxT5EMY/GlTIknyblr2yOV0Q0ZTfDfisPuxX6w3Cvho52tZHK7Pohf\r\nwAxYoWz3THT1sJ7aZcN6ExvF7u8ZzcpHPRAQhQYTWtsieIDuJqsOu1vnH4sK\r\nEyL0OalPZ0Cla3EZiTn0sSYrAxlZEhSQuhM=\r\n=V5LO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.26-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/688e2086928c54c67dbee994ff3b4b87/telia-ace-knowledge-serviceclient-1.0.26-next.1.tgz","_integrity":"sha512-hUljiir+jhv2S+alvSBzwoUvRjV0KaWxnKTvg3wqNm9luTvlwR0I2jQshRYKYRNT9RN35uXRLIx27pq6pVl2gg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.26-next.1_1676290829526_0.41735723601340546","host":"s3://npm-registry-packages"}},"1.0.26-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.26-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.26-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"b5bf221c4307325a1125183a147cd29bae02f03b","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.26-next.2.tgz","fileCount":6,"integrity":"sha512-LwK0bQ3G7dlxzhM8OOetO5+CE2tn4RiM5TJsS6LMv5HlqdaUDmjljh76N5nnTzYSf6X17eOZfJ1qF5U5i4Ll0Q==","signatures":[{"sig":"MEYCIQCEx6qRjP91cgea/H8c/mm+crs/4QVj+Fmg4Eg6x91DJAIhAMr4WO1NeDWuTv3NwmqM/fwsK+z6t1w0BnufCzAIgzSw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj62pYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpCxAAi5P2i2DZ5HxO79R4FqQCQMGTjyCufF0/qKQArKXhQoQO7Ei6\r\n1C/4AxUN/i0e1r27GtrpKpCnmiH6+d1vv8ngEFGOaZ4VP1yGbU2rGxzh6pUl\r\n+lq8S7hep00XU7muNRyDdHfsyZtv+swdm6i8bygf27ypzkbt+9jy4ZK23Fdr\r\n+e1w89ncN3KuhGF9AM9Re3R+ZgXqG9l11NlRCZWUe5X7dn5Z+0g4H6QUmYGW\r\nn9r4JUb/SzDDpUKARHxorbWB1uTQe0UIePSQ3FcPW3zZvtRWrN9N18cfR/Vw\r\nQNgThglCqf9WMXIPHlmabYBvO+aggCbtzff6e0W5ZTtArwKvApb1/6m7pv5d\r\n8kCJRaSF9IZToznXsosDzbnpI829dC0CjkqoTs+zQUbw3oVuIZJdNl5dR1v+\r\nVjk16Z04VHf0nHfsc4CH/oxKJmthtUfzdKANxqCUnQeNKXPIb7trSB4kugxA\r\njlyAxZTh83bUeL274MUGvTtGveYPdY6wxnCbkfRTOQ+Z9LiUfr+thLPC1SrY\r\naOnekvtv9ejv+QAsaaT6fJX9yAfZxOlmO+0TxFtMHROmNypdlOIMqszTLRSt\r\nthOnTr/11w4D9DZBsUDGalrYNrBFaqKX7+OExnL6CsZx/igZRp0417vKRd9E\r\nfNunwJjY6GWElz5zTs1nskqaGXLewFfVTk8=\r\n=VUaC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.26-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/e03f1d4760662546dc82b4cb7a58d5c9/telia-ace-knowledge-serviceclient-1.0.26-next.2.tgz","_integrity":"sha512-LwK0bQ3G7dlxzhM8OOetO5+CE2tn4RiM5TJsS6LMv5HlqdaUDmjljh76N5nnTzYSf6X17eOZfJ1qF5U5i4Ll0Q==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.26-next.2_1676372568492_0.06504143225691905","host":"s3://npm-registry-packages"}},"1.0.26-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.26-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.26-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"e4c69a0b000521ad3c98c395d1a4176568c5d8ad","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.26-next.3.tgz","fileCount":6,"integrity":"sha512-urnl6brndH469NirKzwbCPNeK82Gx0pzVQiTQDSi10zdp9L/V9At+XCx0qz4x7LnKQYTECadUT5oHw8UG2/Rrw==","signatures":[{"sig":"MEQCIBXOrNLLUhGdzNecJKD9fvJzyhVdWNoEos859vG5pFZMAiBSwU7eJLUsB6q+u0w/CZmpac75lAzyeg9E7BQvqKwr5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj65ooACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDQw//blpPlKey+mR7/oSbhRWzfwWeAGLZ49xWfran66kv83LtyL6V\r\n8IgCL8Yfv5ps6y6ehUgK8QepuolJiusoeJcg19cDeqx0pghwSAyVm83D3KyD\r\nIE4ooJmUqD4ibk094rLxSk/BLOhRTuheWGrMCZivzlSA304iKQiY8fR1MtYi\r\nDlRnzxGglUI3pgDAHCVSlBERjCrVcvrZ45BzZw4sStaAQT2wFJbfcz4NVV1M\r\nIxqpD/h+y0HQd3K4TweBwkHVf4dikjUFViLGO//Th8/Th8jS09Ipen6+J07E\r\nzIsz1S5oB7U3lL4zSuqr8N+6revV0tSHwsdKiVlGbn5/BYGI7oVpJJ+QW/k4\r\nXSB3E5RSomn3ud6ou75EmK2W6EYxSt91znM3BMwMNColS6UcKUAG/v40PQm1\r\nCUfnGIpVhnAAi5twH60bxJ4sP6Nw3aAGSABNDe+NHvImFi+EgWsYjeStXf51\r\nWgf1XWZeWAEz/SMQ+NBbVOt2Jq/VljQ4ObUMMI2uwodY3lPV/lwEMteX9iNt\r\nGpVS5kOb1t5+K8RR/3uuFxRwQ0DtZCjDNs752a1r503cf+9LUa/T7DONgOmU\r\n2cf7D4Fd1NyBMw5x1GMVGrGO4hsYaL4ZTI9C9B2lkfwpG4ym4/6lYZr6Ym9Y\r\noSKKu16yVVzL8noMi/xcFQiaaVBBjoFmVSU=\r\n=fgZ4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.26-next.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2bad9e6a6de0d547d0558099c97aecc5/telia-ace-knowledge-serviceclient-1.0.26-next.3.tgz","_integrity":"sha512-urnl6brndH469NirKzwbCPNeK82Gx0pzVQiTQDSi10zdp9L/V9At+XCx0qz4x7LnKQYTECadUT5oHw8UG2/Rrw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.26-next.3_1676384808701_0.8222195069329217","host":"s3://npm-registry-packages"}},"1.0.26":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.26","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.26","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"ea8ea2597fb464bb7ca1f35bab786c0b85afeddd","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.26.tgz","fileCount":6,"integrity":"sha512-+LIfNURPvgi2hMQsiJcd25hQC+6oWhBdHkREBMdGV9bhle7FUTqZ94S3jQlIWftdFmPbB+Zk4RkqmtvUA+Y/HQ==","signatures":[{"sig":"MEYCIQCYDDTjfhgpDHItif2Ez5xJOvj2Qlbfeji7XYK3aKBHuAIhAMw7fSUusd9Oj6eMoB8n8F7ml140IGIoujdMkDdU/6Oc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/NIQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo90Q//WmAI7KkG7QlWjqlIwl0eVrEdMbjjyoX1abiJWqdHbLoSsj7z\r\nBaio7gkgRg+pwZVmpJMR/mL4zdhU6M39R0Nm1+6wXn5aIzHesMlyu5eyHKFp\r\nXCkieZiURZ2CKdShQchMy7T9bUJHCeyneyqCjL0h5Vg6gBF5SwdrGY0JF6M/\r\nYfQs7SAWSepVOmpVMCXPxiCaYlR8gkS0Df83eKPxznmMYq4drCrekgQMySQ3\r\nJ3n2+QN5qwPYOh6O03Sj9DT0Ll8benXPRCCs1D9HhJl0UBbCoa+1Bb1SZJkj\r\n+hBr493xbKOJIz9GTK9hWOofO4p9bjflVl9SCPi8f93QL+a2ind7iXYtAyvH\r\nwRH0u9Pi27OUCbxb2dKJg54ssq78F5Dc3m/eCMXZcTkTc8VgY8RubAgZ826T\r\n74T8oCV+TM3LubfpNPKqvxIklPG7wgIMzIN3uduNlMDNd3QSoICQi72isM+4\r\niE13Csn05cAUMjnQI5CqlxbvYmK84FGvEwhWgw5dcUbbogQTj4n4Al4eAMnw\r\nML8YbN8+MkC5oprzDNnCMo+laylt8scLsi6ocOrYnLircnfxTVjFLP0W2n8J\r\nXlYqveGzNt1LMD5eZPR+KTh/S1MdkSmiHfN6B7CARSbu0g+Oeec/Wmkk8UAh\r\npRXOlw6jBYk2UwsuXx5Jyho1LH+qR3kYroY=\r\n=5v4m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.26.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/78be39740845e6cc84a9da6cb0a74d61/telia-ace-knowledge-serviceclient-1.0.26.tgz","_integrity":"sha512-+LIfNURPvgi2hMQsiJcd25hQC+6oWhBdHkREBMdGV9bhle7FUTqZ94S3jQlIWftdFmPbB+Zk4RkqmtvUA+Y/HQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.26_1677513232435_0.3403091500201332","host":"s3://npm-registry-packages"}},"1.0.27-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.27-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.27-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"02f7e9889ee4bbfe7fe702ffd24d57205589f7ae","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.27-next.0.tgz","fileCount":6,"integrity":"sha512-AxGbj8kvqB6XUjW5c3VwEzOMk3PHMOQUQqwUzX0Wh0OEERFNMh9cmt19b08UYFAzb1dKw3cOjH7YU7caWv90Jw==","signatures":[{"sig":"MEYCIQC1wEkvZ4JgPHRNDHAsNTCLs/6abmKPXEfJBXCy/4yAUQIhAO/HMW9Fphz6dsIaZ7JyIiziNSsaTtV7comuwYKGxXzi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEt11ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqwug/8C05n4W5jMICu/zjOUEweIfXBjonTWddVzqOblCp7+mXDqwbo\r\nHYq5AAu6zU0BTm1g29dPtk4IFcKLgmeXKmGu8ytjBytQXqb0m41KDc60glQo\r\n8WdDjRaHWVTmsfA2ooclbr6QHSkMs6iB9oR+yI2D09Ru5vspIH8ets1kg9Hc\r\nFkl+CF5hQYof8rWWeRGRrJlmq327Ew1KuJsJx5wCrsWZNPwjjxnQqIkwb9rQ\r\nMlBBhQsGLJM1BRDxgGpDQuyQn4OO9WYbhBdopx7ViRGYJfaF6kmbjgDs31H4\r\nUelIVcaFQaGvrU3T8zWcaJ7Owbv/ycMiweogtjug5JPjStX9xpmtUtD3mDFz\r\n4UhTb8AHOPvSluKr1o+VZoGp+YY383V6AqAq5E8JQfSE5SspXcnBHHHKRvPR\r\nCitWRb/bpPjWMQ1RKykAwK1OPlrLSHWFO9hoLvqpf8kFZL0T0nqw9wOSl4R6\r\nc2zvRZULvWtQP0Caqs6xx8TJpJBWNo8JjYXQgYD0PG6iDYM+/ewHpbEV/h9R\r\ncivHt8YcMO14TMMaB4v5WrcGXvM+9+FMI6NsVaCeJJv8BjeD3ZU1KSJWF1sS\r\n/+FNsFEjOTiLtCca+4/7+WBlCF8a7QsZseiep7xAKSLVio/A9rp/JplwG5L+\r\n+EFRAs8lIqKUl5G7MNhzZFVEV/zufOikKW8=\r\n=04AG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.27-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/51b4eebf738b85032e2bccaf69000b26/telia-ace-knowledge-serviceclient-1.0.27-next.0.tgz","_integrity":"sha512-AxGbj8kvqB6XUjW5c3VwEzOMk3PHMOQUQqwUzX0Wh0OEERFNMh9cmt19b08UYFAzb1dKw3cOjH7YU7caWv90Jw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.27-next.0_1678957940971_0.1025062619098458","host":"s3://npm-registry-packages"}},"1.0.23-experimental.12":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.23-experimental.12","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.23-experimental.12","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"afab7b90a750c7c3d1d105f7eb0875566ae64c99","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.23-experimental.12.tgz","fileCount":6,"integrity":"sha512-opULmjOeHbfnGUP6yZ0FhPpa2owECbiGZzX2+amzT8FZKsWC9eUQ1Jz1wXNqqn3vIU25+KRXgGzBP+Wu0BK/Tw==","signatures":[{"sig":"MEUCIEW8vCwVLF756f3+1OLfytctLP0G1prWC9xn4GtNkwUcAiEAgW4x8mJqGn4AqrCI6Q8lGcMhIjNn2K1siNXX+faW78A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGjNKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpH4w//VZUW/WhbxPqr9LbdzEVrPM+QsCK0sqPsApiafaM49usboevg\r\nGIwz5rupmVbUKr7UCeMUrYxlsat5NLdI9qDWVZtdcLBFwXHtWito3f+kEjA6\r\neTdtUOWO3Ph+v6HsY2TFw2zh0q0WfuTb8jGdtItw1uEKtX9xyHqR7VLG8vu2\r\nxx/WF95eJOt273k7bZs9mGXuCz2lFD46g+piKjrx/MzeBGLk1mYzOyjgcKNp\r\ncmjfjfEKSh5zXtSbOrJecwWEMnIl45swIhq3JYA0ReMJkweiCYG1uqoAcTbq\r\nb7wRZFaMro0PKUSui6I/MWaK9fuyfeFHzBk0iRAYiuJevB06txbN6x5xzuIy\r\n9WvGZdf5WtP5Fxe2SECcspgEQ//4zHiS8tvAZwuHC7sfmUNFnmJmBKsDS8Ji\r\nwBZL/lvY9ggRTFxBRlRrej5sqxggL7t/Q0gTqNNxB8e/DYkgicPaKiYMC+pV\r\nFGx+LAf2Mhzb7ki6Bxxz7b7RMtTbjcL8VfXivFA0LBxKyo34fifDkSCESh/x\r\n7RI0TAb0Glz2/edNM+/4pklpBStuZbohkcSgAXSkAl4LgMK5Aot+vNv/RF4V\r\nbV2pldZztnbse9KtfiJLCqSz0ndCiuReAOVDKm5Jgt62m+g7Obd2p2P1luUu\r\np7VA1GE2UhYelmSTdV3qBKibqJo9LGYY1K4=\r\n=7W07\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.23-experimental.12.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/c7146316dd32c4911c28d836ba28f818/telia-ace-knowledge-serviceclient-1.0.23-experimental.12.tgz","_integrity":"sha512-opULmjOeHbfnGUP6yZ0FhPpa2owECbiGZzX2+amzT8FZKsWC9eUQ1Jz1wXNqqn3vIU25+KRXgGzBP+Wu0BK/Tw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.23-experimental.12_1679438665917_0.33659985429845296","host":"s3://npm-registry-packages"}},"1.0.27":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.27","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.27","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"8b745e0c99c2ec72f6b08891d6c1881f4b2f5409","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.27.tgz","fileCount":6,"integrity":"sha512-/xEtizCoV7opK/rAfcBpRNqYRcAuq1IIuvHJYZy+g6VF1eeJWQrb8/RdbJVJOCDaLIFjyNu0X5o57HFrmWLBdA==","signatures":[{"sig":"MEUCIQDRxQtQIbaIsi0E+qCp/eeRNQvwHscdAZDmRClOiQqi0wIgJNaOb1xpC3xnSl64D9GQfO/v1LoNeJZ2jp+jaQ7pIjE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGxnjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKmRAAlWgkULWhXYRugg7Zb7sNlqYOAM4WVibNB2JM+d+XK3czgAA/\r\nMbngS1X6m2eAWTi/PisQ7nOZQgmmxW6NBs9QWsZphWavcgHr8jAt2zLUJImK\r\ntaZmJDt1Fdb0o7N2ji0iRTz1BdPvZmT7oj0vzdSUn59ni7e/p2ehDhzX6gUh\r\nJH1IScrU8aLkYrfEglvAsk0gq4xPgQwJJ3S7p5JB8KDHeFHBGDq4Aukl2/TY\r\nxMZm57rIgMHFwdWwsPP+4HV6ha1oKCi4YwGKGLZ2zHON8V0w9CNJ2HkrOLAj\r\nJ9yfjCuiBCmcV7588Cl5jRA0Nhz93/IJdAH5TzUweE4e/PZxtkHtFeN3582F\r\n0DKbn+9sCuRtMfmyESC7xjRmQQ/9rIobefHgqVBVy80MxVj98c/zeQCNURbi\r\n47SPdhMw6BYI6utbtj4q95IFYjm3zoQ0l56b78QGeyFO3mNqB2pS8IXB6+TY\r\n/312utS4l21gwmm+X8UbOYnmwkMrSKK7Yo9UIPr1h/SUN195fxyGtr5Dr+Kq\r\nEqkf1KOkdtyNVxhtdFbhEE6nANtJ+gs4Rj6rwyy+/0b78ubkPYXmAs5tjSSL\r\nNtogh166lezHmE3E8y2QXOBOwYCyXmOwe6s58T1lyCN/Z4f13SjkgJNg23xz\r\nsvSf/ZCZ8/9DXzhlM5Z+b/kMZXPD0fviaEE=\r\n=fsRt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.27.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/2bd7b6f57a04c616e081d2a19067502f/telia-ace-knowledge-serviceclient-1.0.27.tgz","_integrity":"sha512-/xEtizCoV7opK/rAfcBpRNqYRcAuq1IIuvHJYZy+g6VF1eeJWQrb8/RdbJVJOCDaLIFjyNu0X5o57HFrmWLBdA==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.27_1679497698980_0.6946004440113074","host":"s3://npm-registry-packages"}},"1.0.28-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7cb662235e8580f081031d81b786ecddb6d8a024","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28-next.0.tgz","fileCount":6,"integrity":"sha512-a+Xoe7H17G9IqWABAGA76dI5zQyvLaqfrayBFQgFiQcIUHriUcrRAqdjQZhqTkIrT+VisZTIUcq4JoFONNwfDw==","signatures":[{"sig":"MEQCIGi6XXW84sblB+laqgihVhOZ2IO8xwafYlaoe1rDO40eAiBq0+RfSahc6XncneRQLPkJzzaJJ4zlf9aQV9wQRur9Zg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHEXmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodfQ//TPxIPAYq2wWdXDY1sObuj8W22LT8ETAgYSNUO84mjAdDR0Xs\r\nobz4/vliknWhQ4rpmPQiu94K3ZRwYOTXmMUgiahfCJLduEoRJN790HcHtH6P\r\nzvkBdUEEx13tGarS3EaHbYBD8Wg0i3d68brbdRJJ0VKYfcnidk3bwMlqJnKl\r\nBNXaWVanskkOjG4ZBCiqSeRVzmRxK7ZwK/05ZMFqMiEJ3VDzl0YqGoiW5hTD\r\nVtHlqKh15YeTxQOwGXUx+dYKHAalMldP4cnctJ5LuI6Vg3Vhj9cZ7ffBCpuI\r\nx00K+8B3ceG5t7S2PFvWhDXoHjag6sjPn92FBuRu2p5Z3S3fo3XFo1GtnJgO\r\negHSAnqSTveNwLoR6af791iRj319vNTfpr1/EMdlgwTpBqrXd9RHpNqfi351\r\n3lDumonog8JrA6PMROKnHMpg1nrztkrlaTiGDpqsjw8zr+zpTlqjAlCS//9o\r\n6pqO3r6EzhtB9ViMccukD5zWVXMij0VM3zP1/GAbnliQwLOQc2T9qsBRsHgL\r\nfj2vJN44zgD5r5lBCNNdpty5xCeQnrpTsS0JqGwj/MrmdBg3hblWCn+gr6iI\r\nHF2dvMG77NaqgMCxn/ae5hY5pZuEhZ72IjRC2Ax02kvw59i04MQjUJWZXtKi\r\n1rlbM3UpMOVfPLwQf/sNR/WtyPCBvfdMJyg=\r\n=TTJE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.28-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/a6d3de4d6ffdc12f2b89e6c341964dd3/telia-ace-knowledge-serviceclient-1.0.28-next.0.tgz","_integrity":"sha512-a+Xoe7H17G9IqWABAGA76dI5zQyvLaqfrayBFQgFiQcIUHriUcrRAqdjQZhqTkIrT+VisZTIUcq4JoFONNwfDw==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28-next.0_1679574501789_0.7013904759766081","host":"s3://npm-registry-packages"}},"1.0.28-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"e9fe6c9ae1485b12fefcdc96ef75cb41779e9960","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28-next.1.tgz","fileCount":6,"integrity":"sha512-77kv20p+d0+sWHByxENRAAPjcOuw0aPCeguYPZCVmCuOJL5P+QAI5trEC6afEKANDz2wJwbCo+gF9Ub51auHxQ==","signatures":[{"sig":"MEQCIDNr+pYjdcTm4a8PUvDVkvlG+muKo1nhINwgxrRezSmJAiBklXxjpOVl0XPIDkpto7Z7Jb5+XPLHazCvirCcCqcDxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHVgxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9sg//dh0kt+HfZW3rugSIUxn4IEat5dxMKodedwK8fDUSW/XkhcBn\r\nvspZeDk5M/jl405c+osrMOEewpkmD5MoSM9CYkWv3OW1zU1E5qmX2hXiRCgL\r\nuoK6cM+WB055XFkidNIdB8UnQ/0FLyGnozN6FL9eANIbZ7tE9bEacYrQV8cA\r\nKyPwmTZK0YFewKjVWwIkVLsNwVfaBDwF0l7HFQm8pPCy/uhRiAvSpb6rFgS7\r\nd7PVvAahDmvaa1JT/5oRWK0HPYPie/1Bsg3BgxNyBWPpd0DvvgWfVoq+cl+4\r\nNfdARe/slEyj+hVVJdUnipbH60uoKTVwoC4hyFjPZp5YKviisxRQ6tAR2VCA\r\n9f4hHht8693JwIClTS1KwuJTsXgb5cwC1WMmt7CFHYLxxPUgwONd9pbtzFni\r\npumlMw2bH7h+tlP/t5AbeDc17SD6VlY/aOrvfAFnrTKNwxd0bw/68DA51IcN\r\n8hvo5m3boAOgtXa1z3hrjBfTBZ5QKfHcgcOu7h5wBBy5PtusS5R81ykvl6mu\r\nSE4D35RqTQv8i1KLtMlA5X2OLx+vcsmpq6hgVLb5q1sZVfhyH6xDEzoVtr0e\r\nJo7xXsnoIOcX7uAgiS5d6FVXz/8e5EUXcSa+PQm6oYhirbHDhgtsdzVe0aE9\r\nRMCyt1qfeT4qiBLWTydYxONsVZuKdekFHaw=\r\n=MNOt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.28-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/28f13fcdcda9ab7dc70dd071fb92e841/telia-ace-knowledge-serviceclient-1.0.28-next.1.tgz","_integrity":"sha512-77kv20p+d0+sWHByxENRAAPjcOuw0aPCeguYPZCVmCuOJL5P+QAI5trEC6afEKANDz2wJwbCo+gF9Ub51auHxQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28-next.1_1679644721197_0.41713057812651977","host":"s3://npm-registry-packages"}},"1.0.28-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"6248e8fdd71d17d0c85c416a085a9663906f648c","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28-next.2.tgz","fileCount":6,"integrity":"sha512-iL8FpKK7OysXbWZC2+ga1T5bNiYW7d0O1ffhLRjiJSLUYO2B2WcsIkYCwexYd9rkgWLfZDA9hUwShtAi3Ff/sg==","signatures":[{"sig":"MEUCIFl46xQ9+dztwtZcYxavcvAjdA/lgFi35Q+TSdCFcuZXAiEAqL3K1fQUQtz3lhVmkTxqOuo1lwhPyPDEbEAStnzDExA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHY+vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKdw//XNF9nKY6VI84U/VCgoDY+vuUaeR0vzaEnZoUt7HXDxUTMEvF\r\n1RjrVW5Q+zvZRY8zK5+fNwujn4ZfJis2Ao2Y2EXPfR/JwNYgxy9Hs/8AYOke\r\n+CGK7LVnGuTYU/2Qdr70xUio8QG4nrGE3BLF/o1GWyLwjTBG4voMHRuxcwNW\r\nza0EFfAYrZEsR/EzQLOF72I4Rqmqy1i9kn+CeZiblaT31mnd5P5cxZku05lO\r\nBlJNiAW4H75OL6XzdtPgBOw9OxKfjgi8SQ7jmGUNvC9zhgz+SNWENnxnqUxY\r\nN8nfBNyeYgA2XgEYaML0eJfhXm0fXIGdU14wgsNe5KCCVidPqTHA3KUjBZP4\r\n0EgiVHh4vS4GnXc2JXxYWcuL0+SlZD/sBaWcWLHMiZjQFOta3cFFr7G9C+Yp\r\n2e+STw7SwxvepsAXUECZq5jx9qyWed4oXqbsAFkD1Tu5Lg8Bw98dYQI50Be9\r\nwHlZJ/qvw4e7V/qfclyD8RiIjhYDdA98v/a81HbUn6LLkqIh7rOeTGelwR1V\r\nNMS/7pQGquq1SkxQP223cWZrpvodtTs0Y4nRkN9FA0XKDcbEGCoUzlw0uQLF\r\n5OwbC6CSzJchbt4BWFvGwoAkcTpL2rbvyfSB+HdZFNh4NBBtQomdhuTvhFLs\r\nQle7fSiCe+K0wTG5DsufqoyYHK5EYhIUDJk=\r\n=m2L3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.28-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/89cdf448c45598e9f3640b13eb7ac2cb/telia-ace-knowledge-serviceclient-1.0.28-next.2.tgz","_integrity":"sha512-iL8FpKK7OysXbWZC2+ga1T5bNiYW7d0O1ffhLRjiJSLUYO2B2WcsIkYCwexYd9rkgWLfZDA9hUwShtAi3Ff/sg==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28-next.2_1679658927567_0.43240277415035644","host":"s3://npm-registry-packages"}},"1.0.28-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"31ac1d96f69ffa645e205cc4d380c95e96a69844","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28-next.3.tgz","fileCount":6,"integrity":"sha512-+HU8ynKWqcAoPo8onVyBwINitayfBPoPtB8dJVcRa039aPdT+bINf1RVVkGWUPujfkZwLLaITqeaB13xzQ0qRQ==","signatures":[{"sig":"MEYCIQDtHcsMAvAVYGbR0CTEj6myaUBdxv5AbsxLu3NLHR61DgIhAOxukASQXK5cyZnAj1hK7Bz0bbT3u3oYyRV5+Qqd4not","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIX4rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPuQ/8CToDFnR2gVaodr+jy9zuabWTAYSjuO00sMlEtNqT/DJ8kYHR\r\nwQrsVY3UNnn7P1IocEeWPtFk8WJLjpok1/MqFUqQhLQYlqOhB1x7KaIsvfN3\r\ngGovrzTg4qCZrqhjfb8r/x4t00T3K/CEOmCHQNCRDqjBUMu2yv26FjQMLxvf\r\nbYbcsZLBQqG9j4eRRoyeKgC1FRu1DHE32jsZXE710A8y6ezMZ8kBL7nSYYeM\r\nVYLt0ch6UNuE+EwutlZ40crhdJBnaWm6fwP3PBORVmpJeLVOCPBb+BEuwOku\r\nXgu/EoKM+WjfGRoowxdUz63eOaB1KzxNDT7ZWTj4FwxdAmMjP7PfT4Ro57ZF\r\nSM3bipJaJZmXCAdUKahssPtGANRrTq5gce81qR4DANfB8PHfP5c07XFuNc3F\r\n9p1JSR2dD9kcw9HifcEVY6n4dUmayReg274rhhXPrFOOzHa3FZK1kACKqGbH\r\nHTM3ScrD+eSvwUm9eDyPtuXy+WuSxtLu7qhoxuFD5DM55LbYLY1l+9XSnbIl\r\nwGQLyUMys8pN3K1OiiR4lkpWZcAP+o/B0jE685i0SCLiXUPG9SPYHlePIRJ5\r\nKlMyQvH4B2GRdaEHEtfnV3FxblJFgvQKdt6XgAA86dBDF4ztWvcMheuSOSIm\r\nO4kFlATyOegeysGl7sa9+N/O9vAsQuJnEGo=\r\n=ZvKY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.28-next.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/e78386cd34f1bad6920df4f33ced6089/telia-ace-knowledge-serviceclient-1.0.28-next.3.tgz","_integrity":"sha512-+HU8ynKWqcAoPo8onVyBwINitayfBPoPtB8dJVcRa039aPdT+bINf1RVVkGWUPujfkZwLLaITqeaB13xzQ0qRQ==","sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28-next.3_1679916586863_0.010347281513939377","host":"s3://npm-registry-packages"}},"1.0.28-next.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28-next.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28-next.4","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"0d34df54f2cd869d09d32f55ca19cf1c2f2082a0","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28-next.4.tgz","fileCount":6,"integrity":"sha512-V6dUTC0lUmOIj1LmftIv5VXSGjlYAPTVvPDxZdSiUXUbP52YHTvGzYKxYQozeWOslzGoe1Rs7nfnrx2HJCVJDg==","signatures":[{"sig":"MEUCIQDzVm7UrFEopYjYp/3JvjrDe+ttrduH7NSQatiREAdiugIgSYj3L30GQnmVdtGwqNUpFijci11pmzBmf8AGbcUZZZo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIuF7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDgQ//Vo+ZxdnjCn1mMsriuO42m/r9yc//WjdgNvIoTRDAojZcsx2b\r\nuDQiMVSr4B04d9LiL52PDOfOSTLmko7ajMCLovONb4eEZOZnKRpghBL52kZF\r\ngPchLcoTD3ZOUEActK0Bc+3ku5vtZ+Pp0AtlNZYBWMTxHT0YRYXNAyxncCpg\r\njRK9+ak7sypf21o6oRpILLZ+NGXdb7gd4Z6srOPb4z4meWdXCGt5uaW+TDzj\r\nVJAoxyTvCJeaZ2oHlziHAom/0Hiphdloff8jyeQupvtKZWWK3FQXqe+mZPHK\r\ntrzz2TTHyfyOXmNLr/dD24h0ymMGyns54MdPUOB13gcVwJ3LYh8fpvdF+n2o\r\nIu737FLCG/vKpFblH1UlqmLiSt/AJEPqXP+Sj25tBAvAIK/mLeHilNIXl4pc\r\nGEsvl2DneRvZ7ZuIE3vter5p1f0BRgiG9uDEpIudYzesV0SDDCOyIQ6b8ab2\r\nugJfLp4FKier9Bv0EKh4bg5azGGBySZEZ8Yki7eFLTqEZRXGv7W/V08tgFwy\r\n+6T6c7dM4Yn3VQ//TLoy47XHwpBc32PhC6MEim9hjDg4QG7DOeTux3HjhDw1\r\nS2hLIQSBWPYNg2KBQRxOjWls1tFtO1xZYo4mFSVtU/+2wtYoMEdsIEXuYTV5\r\nw8w1HtEj+eMcYRsZXxSWVJTr1KYsuJg4RBA=\r\n=LXgz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","gitHead":"abaa2b5c2965d2c2a902e1a3856f1abafca3456f","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"sourceMain":"src/index.js","_npmVersion":"8.19.3","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.19.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28-next.4_1680007547768_0.5117087920663563","host":"s3://npm-registry-packages"}},"1.0.28-next.5":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28-next.5","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28-next.5","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"13dad043a576b8ec6f22b765db2e08c58187609a","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28-next.5.tgz","fileCount":6,"integrity":"sha512-iXJfmljO8OxMGeGinXDfocFUlLG0e6ifLkzd+g7hB54tuhrETZnOeZVkv//liLKkhYFs77mFqhZ2RFFqJIpDbg==","signatures":[{"sig":"MEQCIHQLUfN69X6jSo5ZxmQi/e3q54fzAHy1J7ikkK5hg49oAiBPtGvlMWQIbsDvIUA9v45sb4k/jMR3Du+LZbNqXGADSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKp2CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3sw//Qu0ri43BMwVMaCOs2KRVAMvU9iJu3N3Je0vV/X8RMtciaUay\r\nqISatjqyAhWzy72IG8YzSGCcw/gZthD8V0oaj+N0No3dB70qsnsZSzXoTUDm\r\nkRbc1G4MOn8NiWg/Yh58oprdDiCKb/hU88U0UBNY4xNHq6AvHKsBa5gmZ7XC\r\npl2LMUJWwlozomBYdAjcQYkBOSlLEMmBgI8bCSrL8V46oUxE1oMDV5K/GDZV\r\n7KLtxNaYYhxfsLCklpnikgz7MyM3HP73Z82vCK5mpZQeOQXEEHtrTZB4qQp4\r\nLAtbkOiWnvQfoAPwma/GwP8THFrOcujWe9Wa9hnqrdWXBm64P7D0pqZIzNY5\r\nd4PC8Eos+dJXS0l5rk0W02aH8fjcr35Vx4njXX4EZOzpYc1ecffnMETIEbBa\r\nUMOx5I1nCi3CduRNV2j3BNtPLjqu1TAlxhU/40BIBnTLuv7qKoum/S7PH2hK\r\nObvNiiUVMgpRrSjbZ3c9Y+QrgNHBWW22WWVzvAQYJ9fT37R24yrWIkl4v6Ng\r\nPTRvk0Jx2OyQpTVuwD4n7Gles3AYECF4lURnxiSVfKqqXldUcMO+SvZDIZ9W\r\njsZMzUZbPMaBLFCH4zzihEaiPl0nIK/CLglAM3x3xue2aKIoEPBegxJ8Rrbi\r\nPQs5AKoR41I3D7of/9qXGXBl7G1Yd5f2vx4=\r\n=yA13\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.28-next.5.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/05393c9b10332cc16cf9e6d4171fae8b/telia-ace-knowledge-serviceclient-1.0.28-next.5.tgz","_integrity":"sha512-iXJfmljO8OxMGeGinXDfocFUlLG0e6ifLkzd+g7hB54tuhrETZnOeZVkv//liLKkhYFs77mFqhZ2RFFqJIpDbg==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28-next.5_1680514433736_0.10887783224658087","host":"s3://npm-registry-packages"}},"1.0.28":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.28","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.28","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"f1cc1ab5a95e42063d04b08a0bff24f85a43e819","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.28.tgz","fileCount":6,"integrity":"sha512-6+NQmjNzpany42y8plPSNJt3ZBStQ8vnn1rF9YwiC94VqmNfnlkwl8UVj06aOp+YOvX2MNFcxyMteClySTL69A==","signatures":[{"sig":"MEUCIBePfXh5MVYhJp8gS8RYus6VmKNKDTf5FB6Ev7YktwS+AiEA81InHzbbCVxwJvS10Txb1IKt9WFgPZqc8RtAZkCi+g0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLAr+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDdA//ZtjNE4mnapaouT96RifnjqskLOnqDRxqTZ4k1kVn9gDRJPlb\r\nnevTSgDCorIQgkXNjh8xr+0O08ww9QKY7YBz1iCQ+QYI6+VnMjdty9YfTxIK\r\nwG/yMgHjOP2Kq9kpekAfd/cL01vM4A1OMGQwtMXT/s59UVtJm0uonTFfkT54\r\ngyZWrut+wHn9HlatAQplKKL8KO+vJPCoyKZ7xxiPOlJ/YdUf13UQgyXUO3hc\r\nEDCabBtvndIHbXhvlfD3P5i9cI7Sr2RGjY87v8+6JV+UG0e2KGIGuUjqDYps\r\nHjV3ENsPSfe778R5Axib2wNdhKl+4+opJRIhP+/OwcR24iGSVN81OEeJitis\r\n+ByfnmXOauB42NU/955tMX3wzP1VKKF6GZ1RI/kc5IB7de1UlqGVqGAo3X5i\r\nSyy0P7GXaBEWFi9KLHabLCQiXG5RMoqvv7iM0yo3O5+yZJfnE4GcTIAzzfwC\r\nVI3ZVS6NKzXkef6glNoQe0KqWM2xNL/5DzCJVwotS1LZb/MbH60yLjwbr1tm\r\n57KxhIj1P89tbIt/h2V6ynuqCBE6UlUO/Mv5O5wahWLdJ5YUKrsYM9/MhUpQ\r\niHyT5ltXX78LwlNin4VjmxG9IvY6Hi+SUMiaRZSE7kNJSk6rGLwa21ob0rKd\r\nogPF1FlYWmHmlR8VulOXtUSxMCcRwoSGFL0=\r\n=OYu8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.28.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/51bfcd8e12c227a1bfaa890fc74e161c/telia-ace-knowledge-serviceclient-1.0.28.tgz","_integrity":"sha512-6+NQmjNzpany42y8plPSNJt3ZBStQ8vnn1rF9YwiC94VqmNfnlkwl8UVj06aOp+YOvX2MNFcxyMteClySTL69A==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.28_1680607998206_0.30082391153861354","host":"s3://npm-registry-packages"}},"1.0.29-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"f095f23bcdb2fcc10854123ba480c6e8cc00a13f","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.0.tgz","fileCount":6,"integrity":"sha512-xc4Xq9A28nVEIdIj6JOKwEfmaG7B0+SZqbaqnPi1ox4zm4Acsv8qtlFnEm1E5D7w/au/Kdhu38kosdq5y4SILA==","signatures":[{"sig":"MEUCIG3XPkn0Enq1DrzEZP1g4YCMPIYCZRSHu/y24fm1vAN2AiEAw6ldb7bcBrfvNKqlws+uNO2FstW9qYEUqwYIDbjxGb8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLVx+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFnRAAgWRe+3LVjNrnlvCXavyEye9BhP+SECFm6VWk1Q2weQIibnbn\r\nBGFE9xPS9IPs2PSQ9oFaml/DzsnZK3RAd6y/ROjhSpjIkkdfhcYI+AMtIAiS\r\n4fXaJV6bu3mhit3I4w0OSXPfTlm8xlRZQEOPEdF28cp8KlWIo3LgS7iWuQiU\r\n6vVHc5j1nKM+/5DwcdCCC4v/28rPS5yaereRz2MG9axIowl9Q4+mjXYbNdku\r\nCCTT4FhxnfHr9bhOy1qtFBCpcf/55FsO3UB9fNWwst6QLcSK9+TKps6AVPft\r\n/MJBYAWdGUXK8z1ZKdTGyYRd3RxVA+QV8AS6WkJCeOw8yUo59sp0NJfDpe5P\r\nMhkuhbqtutaVCo9iBtAR//E81p8RXv5+coBasTVD4zUmzcnOZ9rsPTQGR003\r\n5oMh0tiQIXqcqf34sS5MQSLt2VKTzgsNcA0DR7OuoXvLFdi3hX9xC/YMfOzG\r\n5bKQe4DKWHm9Gxtp9ZtFJfzGpqO0d3VZnwqkN2PfAC+xtJFQfNgXUT/kaNs4\r\njJAy+I5Ylbi4XUKAg2my6REuwchftuoKRkxMGqFgaDrBkhNq8LHIrDZOt5GC\r\ngqLCjvbRMpaQzhJQduqB2Kn7XJMmBLCgL272VCNHAygwjMCNDtxg/MZjRdv7\r\nnnVWgVA70avHVGapqIjeIeW6K+7u0nSfBew=\r\n=vk4/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/dcc735b8fec8396411931ddd31ec1b79/telia-ace-knowledge-serviceclient-1.0.29-next.0.tgz","_integrity":"sha512-xc4Xq9A28nVEIdIj6JOKwEfmaG7B0+SZqbaqnPi1ox4zm4Acsv8qtlFnEm1E5D7w/au/Kdhu38kosdq5y4SILA==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.0_1680694398233_0.10290693447334887","host":"s3://npm-registry-packages"}},"1.0.29-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"28892198f7c6996b436322a6cf6b800537a0ceb7","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.1.tgz","fileCount":6,"integrity":"sha512-r3Po8A7RiiovDX5Xt38dG41zr7KXaan+sIg569M5DSXzVvG7zVBH1ZolM0eWj+UzL7xdYrwBlKhuMLWelVh8QQ==","signatures":[{"sig":"MEQCIHpVclG/ZgrSO6tTwfgmRdxdUh/5G6Jv8WC1PvV+7oPFAiAmYBbtFB+76rNznTpVp9x9H7tmEJkb9qYAs06G7a0BxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNmk0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrmvw/+Ny3RJ4Jh6raXwfQ7br43fAlu6FEWdb4cVe4Z5S2oYlVH+8kD\r\nONxQ6KyXo33V0Qivh6PZQojXWu8jkxDoyLxD8aNKBG16ZhizWaMyWxmNYzWD\r\nvva4yODEPrm1VIx0Cq0oaxt9YF4MyNNK6EFSR2rip++3ZRY14EBjkAMMHxW4\r\nA8k4faWN+els+YDZ3nd+cU6s2MpON4em2YmKmw/I8P6raOXrewuL1V81e4OR\r\nbghVy2fNvEdhzaeGhEa+PcQWczKXcirX8Jb/b1d2NqYvS4FdVIJfRe/MIHTi\r\nELqICohmXUGeikhu0pqqnf9RrluSvltuJk+mr3cG860/oRNakXoualFoRgd0\r\nNW6M/CbEYimW7T2D/jB4gKW8eInbxXZA4q8DA+dcjKBCZFiFmt1oslmdq0HK\r\nlU+3EbOlPKNinOpZaWAmW1UAPdsUvNkP2CCwM+/zlTAfut1zDSODZD5jVQfW\r\n+x6K53wpgGn82NxroJOurLEp2ODacbQNbiPY8TjtYxuEp6C3tMLj5efOShJv\r\noqz8N5vHeMLxAx5hfFNR4BY2Ly0YLo3s8PSKeObdfWqpBIg4z3ZQDoqBnF8F\r\njFZ2WOs1CuygzOu0wrWqWYesP/Uwxn99nImtbnIExjhLiWtRjQhobcooG1iq\r\nKpODyP4y7xzMMY78hrldU4gmTRMFYnYhDx8=\r\n=zGLp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/074a3f4cad244e4ba7987d3cc6a3ab5f/telia-ace-knowledge-serviceclient-1.0.29-next.1.tgz","_integrity":"sha512-r3Po8A7RiiovDX5Xt38dG41zr7KXaan+sIg569M5DSXzVvG7zVBH1ZolM0eWj+UzL7xdYrwBlKhuMLWelVh8QQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.1_1681287476577_0.3112539922542281","host":"s3://npm-registry-packages"}},"1.0.29-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"891be8cfa646e02e522e7851b3a8b083a2b9bf78","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.2.tgz","fileCount":6,"integrity":"sha512-Aj4pKqRhyPeriFSa9gln8fIDPcF2etJzjd8xAASJ2Pq4lXHwKLLsUFlzeO2OkGd6ihdU3I2+mNfcFeRW8zfhTw==","signatures":[{"sig":"MEUCIQCQ7BdOHupeNTNZK5CJeecH3UcUqbKgRB55QR214icMnwIgBdjLxpI594I33ssm8Ynye6bMgfqWSgIiGLHAVUkVu+s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOAMXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQVA/9H7ZJxtqjXfuVC8rKfqQiRg2O3+/p04EUukXC/KEGX7Gl4lCY\r\nMQutUKVab3A8x/m53jB1XiGpK155e7ccihzm/LLL/hcxA/icsMvtgfHmW02V\r\neAGflKsnQ0UCTLn8MmpQAKXI0EzxFcVgeNN/4StMaJw0MNY5eoJ16D3/18MP\r\njdcFugRkm5C2KCuLr1HRJWXQkLKhDNiWXrT7WbNNSWobZe9xFVjDeak/eNQH\r\nuZpGF8Cgs1MCyHy4Z6V16IrZ21w57qA1dbwEOUdkqlkxajLRgTuYkY7h1k9e\r\ndTbi05R5k9IWkn7jNFlHIglsyThGhhauj+6HjWu2p+T+G7pfUg08eiI4RUdg\r\njyKr/rgFO0H0yNyLMQ/tDPMI4RKB3/KH7EkAIxotxO5qKdUMdjhiYAVGR/60\r\nV5ixGDN1gJksvFlUWA3TV5Jmd9F2y76eTzivnfqCMOHje242p7GnZEIGMgwR\r\nFX4RYCpNyX72netmeIPl4mnUcR5dFZGJ37MdWftW0yvXwsbL9TaTQ9b/kR2s\r\nwe7k8OW/A7rzzNnHEKQNuZFaG4jKu3Sk1xtlevgfg2+IS+fQ3X9NddJX0ziR\r\n7Sc0kKsvtDua2oGU5GE+WO1z6T4lml3nLN+xtT/HsFFd0liNxQj6XbnFWDUl\r\nALJasMPXt2R1VMWUkK4r+iBzMcyBXPWH4Hs=\r\n=u1uZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/feef59107252f9667485ac5cf5ae6ea7/telia-ace-knowledge-serviceclient-1.0.29-next.2.tgz","_integrity":"sha512-Aj4pKqRhyPeriFSa9gln8fIDPcF2etJzjd8xAASJ2Pq4lXHwKLLsUFlzeO2OkGd6ihdU3I2+mNfcFeRW8zfhTw==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.2_1681392407584_0.41299201506967353","host":"s3://npm-registry-packages"}},"1.0.29-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"533230004efdc15bdcdbf0bc25a9b8b2d8b222f2","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.3.tgz","fileCount":6,"integrity":"sha512-Aeear63GZmWD4f6XSIJ2vouW3DsZQc5L8OcBpaU3W4VMYMS6zuoB1yhnjhkdfKh/dl8LGTDTIyFalgh2g3udzw==","signatures":[{"sig":"MEQCIBY4/aLaInMyyq0fSn0a+z0alUGHxoowOrviWRd4DZ4DAiB9zZ1G7mrpoGD2S5wapRGF187PihVTi6rKLvHIRXfu9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOQKcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOCA//WOeTfIseRdmbFK10Xbs/SDDYJ6oCCMxGR6k2hqxcK7+U5OO9\r\nlUYTYssh2Al3w+Wy3NqpUey6PC+rtLYLTT47UGuPQWjdjRoyrRVxbMnxl7vA\r\n73Cnqe2JD2SNC7Vq0b4QnSVlWF9LYe6qJR7h+MEwo/XLyQJ3GalT/eCITSfh\r\nEoYA8fynDjKeq1IeraKEavGoXgqB/apeCxNQuwo6PM3Pkg7LdOwbhgvLBT8v\r\n/4zJOJ8TS/LOoE0yINLXOlz8IxIsz7F6U4KtrgipzA787gBVdZN6892vp4i1\r\nhP3UOn7An9kJSCuFX7uRTAbG397iHIcRcsfsTt/T6MuHhr1brrVUC1+XARyJ\r\nkgbz/D3v9W6TkRo2ydrP8oHH/DNVtp3CeLs+1OTh524zEbClt8HI6AcK0uhp\r\n7Y6pj1NstSyjQLvIPY8N+MPRZeJzCwY9fcllBFdxSiFDzKmXQHfCoyLPNF6/\r\nJbAW8eVS5v85us3tKcWYDtRH4AnrNgdLuDVM3Lh/T9VtnS2vrfGt3Nwe95Tp\r\n/GMZ8xJGwCtc8urNeJAiKjzMHBIfn7ejfSn7TuE1e861TWvF1ryIBzjvSUl9\r\nnUp3Z2VHedWojXjYj+ww9/Cveh59Oz/W5vkuVBe4C6sLtqGkzlQuaQynoV72\r\nGcSfJcuBfqaWsuwlRO/4i8rWeXBF0gDLCww=\r\n=5K00\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/d515d695020d0f9e092163d432a7a19d/telia-ace-knowledge-serviceclient-1.0.29-next.3.tgz","_integrity":"sha512-Aeear63GZmWD4f6XSIJ2vouW3DsZQc5L8OcBpaU3W4VMYMS6zuoB1yhnjhkdfKh/dl8LGTDTIyFalgh2g3udzw==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.3_1681457820110_0.9539494434682849","host":"s3://npm-registry-packages"}},"1.0.29-next.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.4","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"f082b8f71ff60e812591c8ffd4b0358db453e09a","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.4.tgz","fileCount":6,"integrity":"sha512-EGGIJzJxj70y3gnnyXokq5bxOMBTwMHeEjuv6WLAeuyyRU438LEhwCspRMvIfThz0UiEYGnr7NAFqOJj5ZyXVg==","signatures":[{"sig":"MEQCIHHN4M5quzR9YutyQ82av02ZeBaVS2rLCG7P4d7HXt0uAiApwySpoyguWNOLWszGhJhfWxTzjuBewndNWkW0hq+SGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP8mdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosMA/+JRFEzpimAfAEjJOqsEw4B4XoISSfquNUN/ZwVgDTlAUi9QEM\r\n7/NCr3K8xVOobCjmffnmY8K4bDMZ92BK4w2BwPVn2Ak5ufAeScDHh45jWXsz\r\nkpTwGnUfh1k7ODgFuZGO0D0q0FBXEJzpJ9lMLhIgevYp2gr7xcQWeckEQvxp\r\n9sEYGPlbatp0RElQNbV7IMvrJsriC3EvOajrqMM+tiWJpmsM6VxTTVstjLhe\r\nutEx/SQFUxpU9D3nyjkonzGERU3IbOYHLFNTohsXHqVTKGMb3Q5euApA6YT5\r\nGQ9/Yz5Y6YI34F0CSaNRg171+Y0Bm196VhfbPcUg+eRpbFxBYUuyGoe7vjLG\r\n+Ba7ZfLu2+6ubL9nj5O44ZJ1NL8MIZ1VUfeAop4gq4YYeZzFtilMFzwkVrO6\r\nTrCVse9HxvZsa07b4J5qxRCBYgxkD5toCRH4lRcUyf0mMMJ9UXjANBeMccrM\r\nfbXrXnw16FEj1eaS4qAb6KNdcqJsJBzlx+m1Jo9tKulMpt9+vphDTIO8ziY9\r\nHtHc2Ekxdei1AxpMIDUuuzJw62tXgSdbMoMPBx2YKooeU31V7WkqgMymHkyf\r\nmHt496Rhs5Akngv+hveZPpXv0EkrP5bhYKpL88eM6hztsAGQJDbIVHq69TlO\r\n2KNeXjlcn8QNmDC2u0IMgBewL0Ju6LI0y/Y=\r\n=dqL4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.4.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/bf93d8085a2b3d61c58ee956f09c1f9d/telia-ace-knowledge-serviceclient-1.0.29-next.4.tgz","_integrity":"sha512-EGGIJzJxj70y3gnnyXokq5bxOMBTwMHeEjuv6WLAeuyyRU438LEhwCspRMvIfThz0UiEYGnr7NAFqOJj5ZyXVg==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.4_1681901981696_0.1639198879506416","host":"s3://npm-registry-packages"}},"1.0.29-next.5":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.5","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.5","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"4ea5e4895bf700fa24fb1dfb22fbcdae20d489f8","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.5.tgz","fileCount":6,"integrity":"sha512-uE82v0D4OUzh0fBKG/8iGXUyWO9plVemUZgRLkOfjYwNuy42wFCjYLVOrUWP/7NcX6w+3g4ebIr22o8yhrmrbA==","signatures":[{"sig":"MEYCIQDdG91iw6A/Kos2+jegjjaOCU/mayv9o+AQr3iQ/OhWDAIhAJfYN0hK+bF9le28kiNoAa1/Y7tF2gVnQwgCVDSs3osA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP9SBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpx0A/+NhC/rufKQPU2Fvs/nVSP7jA8d5obq97rHEI8w5zYhUCKDX+h\r\nSoJMe+Kly9RLW/uYdRiKFvJTIIrxieUoATUWreEvW///794vB2OXRb+aJPxg\r\njoYYR1cQ8IU9V9AJBN1OV8jElOqsNG8JB2goIIwcHB3JR1pHrKktVi+y0HfM\r\n2cJu4qGsqVAceqVWj+X0rdKUXtztMTeBkp+y4ModmQHYDdIO6Piao1KfLtt8\r\nPHWsPB8D/hE9aWDp6d77XENZ/1qLG0C7NZtUvtFwK8ij5iNoYNnGqWxWfr9g\r\nFYu0HcnrFRwH7ejnoYJFPnDoX/35ffiMoTe6jLkmvmIi8UKGW0EjvIa8ynfI\r\nm/xjY3E1RS9mlP6b8dXIb5R+Q7di1Mo0drWvERTp4GOItrjWzBfqjdNgXDFW\r\n/+gcMOBKRmj/9fxuG2lb9MxFMr6Po6XnTKpatbDd4cM5XhkPFY/Fm4khEpFv\r\n+uuJJGrI+JnWvC5e/OlJhfBcXOYdg1wmv9iVKteyEVM3i7RyP31hy1LlVcRU\r\n5kXor1Rs7MG53d6sPBd1TEaeF2mLQ/0k40dDvUNuX23Q+lpv8THJTv70xzA7\r\nW2Pxnz4kg9WutTGDJ/uV2ZiyBbrzq0itIzF32BTHgrJTInyPYt2ZB2lcNf0c\r\nH3U3vRSkMNL9Zyf2mOdNoWLsPWnaVI7O2vE=\r\n=/6CN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.5.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/47d23b97f285bbc24eaffce8cf8a6f51/telia-ace-knowledge-serviceclient-1.0.29-next.5.tgz","_integrity":"sha512-uE82v0D4OUzh0fBKG/8iGXUyWO9plVemUZgRLkOfjYwNuy42wFCjYLVOrUWP/7NcX6w+3g4ebIr22o8yhrmrbA==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.5_1681904769545_0.9457717311491536","host":"s3://npm-registry-packages"}},"1.0.29-next.6":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29-next.6","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29-next.6","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"458d31c03486d538fb87149ac997f1a8abc2a795","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29-next.6.tgz","fileCount":6,"integrity":"sha512-Oh4/SjTFB1gf6WAO8EkG7cOainhAZFbjMQMaSBN05vnbl6BjJMZN55o9kWyAs0V+XPWvtlupgyITQhyfc7Wzcg==","signatures":[{"sig":"MEUCIG6z7fnOKHEeXCwmkq25gXaGXx+l7U9pL3dMKvQaJ3kLAiEA5n9dFrlcpKQAaBsRHpgiw2knC1qERgMY87949TP2/bo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQnMgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4iBAAm+ROltd8Tam+SM7cfCQNCAApzC8iKdwIoTW8UPXbUwTtYQjp\r\nkUVaZAjiTmzirUXO56B5wuPFSJeQpmh13fSPXAok1dKuYdw4L9tBWxjrL/Lm\r\naoi4DT8pr1Zmh72u3xpm8K/PYWkNOwb0nNH1da9xW0mHkqHDGHGxcwqdDj/L\r\n7HCgmiHZZ8lwmrGYhPLS1Mi4269NKKfJ14LVbezKaheaFHHA4J3A9LDh4M2J\r\nwBpKsRLvbWCl2a2Kp776JqQhx7Jb8jdDMBeeZR9m/l54ViGfsMCBH1m9aeMb\r\nttpHhr7C9SADX4yoL+BYd9FMB1FMHQW7XBsE9zJ84SKlsCgt4znEVhyKauws\r\n0mtFIOgMaVcbuU4Vy/Vu4ahZePJD2EnV+ZFq2reullNFz5TBMZFFZ6q2c2Jw\r\n4wBJCYiyI2ilT9PDm+W3BaNrxMWbt00xlCvuyKVVRteh91O7+XYuy9HHxH3O\r\nJcLs+gYTWImasbNl8hNolaF+9Z3Bz8ti5QS9nbygD7dCWsmFa+eNuJqUIKyf\r\n3PF9jpTG+NdYz7T9rq4DIT0YRBgx9hlMr7vc1reLkmiMXyFc9c2moIiA9SNI\r\nnD9avE5N0TuI12ev1GpwS0EhrUOpKJa4sdIc+TCtdgvpCft/SSXIw5HqCNft\r\n4Ckqh6APjnqmfS+0jwoB5xwITKlN0f3HMjM=\r\n=T+fT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29-next.6.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/90b6df020b1111695d476eeb5ca2a7c3/telia-ace-knowledge-serviceclient-1.0.29-next.6.tgz","_integrity":"sha512-Oh4/SjTFB1gf6WAO8EkG7cOainhAZFbjMQMaSBN05vnbl6BjJMZN55o9kWyAs0V+XPWvtlupgyITQhyfc7Wzcg==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29-next.6_1682076448736_0.8924165903887744","host":"s3://npm-registry-packages"}},"1.0.29":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.29","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.29","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7e1257a17cd67ea029b5d94df80e91f5191d4c7d","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.29.tgz","fileCount":6,"integrity":"sha512-dlequGPaujHSfSwudNtM2vA+MXcoPPZDcgticyqEk5vTjn30d+Fo83pBzPfyZpqdOiFJznTt4MLjfBC2PvaXYg==","signatures":[{"sig":"MEUCIQCJVwSaJ0AIYGzLuPc5ikJLfBJPAq+cagXZNhnkU4BFdQIgYL+aLsFC579bfDDO2XrwGuf0a052un7xpyyYadJuAxI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.29.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/be526fc951d50b141502520e2382d50c/telia-ace-knowledge-serviceclient-1.0.29.tgz","_integrity":"sha512-dlequGPaujHSfSwudNtM2vA+MXcoPPZDcgticyqEk5vTjn30d+Fo83pBzPfyZpqdOiFJznTt4MLjfBC2PvaXYg==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.29_1684827755039_0.6588672469988701","host":"s3://npm-registry-packages"}},"1.0.30-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.30-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.30-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"7e5881438ee5a7fd6073704dbaca4229cd69e48b","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.30-next.0.tgz","fileCount":6,"integrity":"sha512-YBCLrlyjZOdq2A+ybDLEuXf2KM0EcWA0kj3YStcqboISVZ1uVSxMkXnHprgE3J0oS6gvHL3KChnIi6HG0o0XYg==","signatures":[{"sig":"MEQCICdALG3XS4dghV3bNc/s4lZ22OqcjsoyyL8RcGRBzZobAiAZR42Mo4YcmMehTlISqvkwOgfqdK6O6cj3jizFKlWnUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.30-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/246f9cf82a7b2f911ddfc93a2b666360/telia-ace-knowledge-serviceclient-1.0.30-next.0.tgz","_integrity":"sha512-YBCLrlyjZOdq2A+ybDLEuXf2KM0EcWA0kj3YStcqboISVZ1uVSxMkXnHprgE3J0oS6gvHL3KChnIi6HG0o0XYg==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.30-next.0_1685088147850_0.1115054972175129","host":"s3://npm-registry-packages"}},"1.0.30-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.30-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.30-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"696c5b4066636ecbc378a1ed10754f226d04865e","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.30-next.1.tgz","fileCount":6,"integrity":"sha512-hc4HbteN6l/3PBvZ986uQ/1PXvzzTAcndNNMrMmi6e5SC5TyDo426HW/IFMruU5Fbrx9kCz2MKvU9LqbHfsAUQ==","signatures":[{"sig":"MEUCIQDmRNQDcAeaAJsPCX9IWT0L1/5E8JXVzx1sZGub8AzIgwIgbPxZ8MSzyL2YFN8anYOCis+nTQkhAQLEdC0Guyp63d8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.30-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/ce6af27effacf7468dbdaed83daa6d7d/telia-ace-knowledge-serviceclient-1.0.30-next.1.tgz","_integrity":"sha512-hc4HbteN6l/3PBvZ986uQ/1PXvzzTAcndNNMrMmi6e5SC5TyDo426HW/IFMruU5Fbrx9kCz2MKvU9LqbHfsAUQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.30-next.1_1685436148939_0.7880417370963368","host":"s3://npm-registry-packages"}},"1.0.30-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.30-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.30-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"5f7e74550c2eb5dbf75afa4f3dc43ba742bb0437","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.30-next.2.tgz","fileCount":6,"integrity":"sha512-/QAMxqkLSAjXV/frmVqlRUgU4pc8+2YsrhSo0oChXVFS9VaGjY0suca6i3G/A+UYfi8UzZG4vw2IN5UE14pFSA==","signatures":[{"sig":"MEUCIGFDux5HQOo21WxlQoc9cYa2YEFiVvYIcLJu3eo5T1oeAiEAsWpKU2x9V7vy6z8N0QUYDrjNAxRbTIs6mRDUGK4OjPE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.30-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/5b8ef042955d134133cf20e7de67e4f2/telia-ace-knowledge-serviceclient-1.0.30-next.2.tgz","_integrity":"sha512-/QAMxqkLSAjXV/frmVqlRUgU4pc8+2YsrhSo0oChXVFS9VaGjY0suca6i3G/A+UYfi8UzZG4vw2IN5UE14pFSA==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.30-next.2_1685452438830_0.2240767160139061","host":"s3://npm-registry-packages"}},"1.0.30-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.30-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.30-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"beda2c2454f8d747e6c4b234f1056fe49507b0aa","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.30-next.3.tgz","fileCount":6,"integrity":"sha512-lsH9uh0pmb+8Yk3mxDeUAHAlWAAEVd3Dza5w0e+Lo0CGPBF/m0Jwv83fknyA7PLHXi0jAy2TLWklnpCxW1p3QQ==","signatures":[{"sig":"MEUCIQDoVdtrXoPqiNfW2unwRHzFoXAQsQQeXVOpjMkB/QGs2wIgM05XSpL67dT2nZhsyoG9WLJfplAL2FLDXcG0ZBWMLDA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.30-next.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/482c8093369ce37b34bc10fc6aec3a19/telia-ace-knowledge-serviceclient-1.0.30-next.3.tgz","_integrity":"sha512-lsH9uh0pmb+8Yk3mxDeUAHAlWAAEVd3Dza5w0e+Lo0CGPBF/m0Jwv83fknyA7PLHXi0jAy2TLWklnpCxW1p3QQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.30-next.3_1685972390504_0.5309806077070303","host":"s3://npm-registry-packages"}},"1.0.30":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.30","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.30","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"95f848a87d2bbafd39197beb7fb17e5f53c10f52","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.30.tgz","fileCount":6,"integrity":"sha512-IPRiVz1yPNFjUeohfzfL6UlqMaHu0vBEsG7Cti47Yfe7zUDxJDeGSIy2N7in3rKYs0QqYCZT1Jf5a/Y6Ye6X0A==","signatures":[{"sig":"MEQCIAxgAnlAVRKD2xXCR3CcwJuIOHNBLPABak42UjDk7pwHAiBUc8hgADNAp78jb7W5vESaw6QqyL6G5s/FXk0YzTruNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.30.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/050d6802603b593bb19d81380bd151bf/telia-ace-knowledge-serviceclient-1.0.30.tgz","_integrity":"sha512-IPRiVz1yPNFjUeohfzfL6UlqMaHu0vBEsG7Cti47Yfe7zUDxJDeGSIy2N7in3rKYs0QqYCZT1Jf5a/Y6Ye6X0A==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.0","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.30_1686574004542_0.7696224520264099","host":"s3://npm-registry-packages"}},"1.0.31-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"71e10a952b2a38310f55fb9e3ff1f184d458eea8","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.0.tgz","fileCount":6,"integrity":"sha512-GtPXbVkGMtcdJePFphNJllTdqvpa/sRuw3FyEveF5JK/Y3Q8fj3AXxtokq952Y90KS5/hkK4L1WbN3gZsyfn9Q==","signatures":[{"sig":"MEUCIQCYbA/kGmvOh1kBwvZCYopeS2rBsOilR67uGkiorD4bZAIgH6tblBoh9gLbcE8zX0WWa7FduyxPmZJI3Pg1lNr59c4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/17bad65dcd2b08569ff841f68302f63d/telia-ace-knowledge-serviceclient-1.0.31-next.0.tgz","_integrity":"sha512-GtPXbVkGMtcdJePFphNJllTdqvpa/sRuw3FyEveF5JK/Y3Q8fj3AXxtokq952Y90KS5/hkK4L1WbN3gZsyfn9Q==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.0_1691413913249_0.261068524601654","host":"s3://npm-registry-packages"}},"1.0.31-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"cac0a974830f554c033b9fade88a80e75c7c0825","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.1.tgz","fileCount":6,"integrity":"sha512-AqJPUxJfR2kEdo1Q1jTfOUMN+W8usmA/k5SLMkxfUC97sN28MGCWiVprSVho6IRsf4GMK69ppzd1u7kDruiWJg==","signatures":[{"sig":"MEQCIEIIr3xmvU47LeyLgpZP/mfvo3/AoqNIR9jXsH2+3Rt1AiBdlKmYNlUekFYq3DR1c9caVcrvlkzSd/hvry2I5u0a0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/b7b5301ca854314ffac11b2cc3a74465/telia-ace-knowledge-serviceclient-1.0.31-next.1.tgz","_integrity":"sha512-AqJPUxJfR2kEdo1Q1jTfOUMN+W8usmA/k5SLMkxfUC97sN28MGCWiVprSVho6IRsf4GMK69ppzd1u7kDruiWJg==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.1_1691570085976_0.9889592572164727","host":"s3://npm-registry-packages"}},"1.0.31-next.2":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.2","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.2","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"5305e74a51a0a0436fa25145a48bf29c365f1b52","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.2.tgz","fileCount":6,"integrity":"sha512-/1vxzWZyOrsFAWm0fZ2hXxu+IYNZtVe01twCCPJd23zNJsbdLKJnmRbWuMbdVgB7HmbhFlEH1Ag8wJN1U3htEQ==","signatures":[{"sig":"MEUCIBgnEo89Oj/6vdz3Tlcvum+NY0n67pgdUbQ0BWye+0aIAiEArWOUSTP5Mro4y0SHU6wc7tcdwHVRTGp525ql0tBIK/w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.2.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/eae86b61319ec1fbf3f1cd304f6e9f98/telia-ace-knowledge-serviceclient-1.0.31-next.2.tgz","_integrity":"sha512-/1vxzWZyOrsFAWm0fZ2hXxu+IYNZtVe01twCCPJd23zNJsbdLKJnmRbWuMbdVgB7HmbhFlEH1Ag8wJN1U3htEQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.2_1691570491795_0.26930785308918614","host":"s3://npm-registry-packages"}},"1.0.31-next.3":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.3","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.3","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"cd48f3274b0198952dba02c9d5e44fdfb8f6805d","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.3.tgz","fileCount":6,"integrity":"sha512-DZ3Pcvk4Y8HW9FpdJ/d16+4W520tJ90DvG1ID9ExGLJ30Dh9wqCGwRR4pfLr4DcFCy/rGAJN+roF/H2Py5ZXEw==","signatures":[{"sig":"MEQCIBZFR7iz3OKURCHp/hWXvyQPrbWlmqGWjbIeLxJpcd+KAiALOGCeYuFAckq2ovR40KYSp12K6H4hDYMLK4dtFA6Fhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.3.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/72166fb4b49cdacb81681fad84dac67c/telia-ace-knowledge-serviceclient-1.0.31-next.3.tgz","_integrity":"sha512-DZ3Pcvk4Y8HW9FpdJ/d16+4W520tJ90DvG1ID9ExGLJ30Dh9wqCGwRR4pfLr4DcFCy/rGAJN+roF/H2Py5ZXEw==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.3_1691573394341_0.8944364511733374","host":"s3://npm-registry-packages"}},"1.0.31-next.4":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.4","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.4","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"d6702d77733b0c329b7cb6b49ece47d6d5db04a2","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.4.tgz","fileCount":6,"integrity":"sha512-HVaH9ZLLkRLSmevZMGoH+UghQZMXO/4AJ71rhym2PhMgc3WxQn5SYCbOSoCHaIQv/YGn+v1Stc9fJA0skRtHaQ==","signatures":[{"sig":"MEUCIBylCmM6geAiZWbBmZFA510xtq6y753f+MeAaEYowobMAiEA0MqVQ6uZ8bxJs3JUanvOsVTTmUnOs1yYOMulUpmxls0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.4.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/8cce248865cf91ca8aabb66bc034f6c6/telia-ace-knowledge-serviceclient-1.0.31-next.4.tgz","_integrity":"sha512-HVaH9ZLLkRLSmevZMGoH+UghQZMXO/4AJ71rhym2PhMgc3WxQn5SYCbOSoCHaIQv/YGn+v1Stc9fJA0skRtHaQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.4_1691581301523_0.8020007804405989","host":"s3://npm-registry-packages"}},"1.0.31-next.5":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.5","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.5","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"c473adad4bb532c653d3207f7e7aa77f353f67bb","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.5.tgz","fileCount":6,"integrity":"sha512-zKshmSAURFvf+0UldQWtwObSf1hKZM9967H3E6nXpgys8e6cNW8OhhsDBvm9IfRe8Z6VBex4hWUEb4Rs5hG35Q==","signatures":[{"sig":"MEYCIQCrp2FyzxUTwqhQ1gL5L+/AgS09Q5sKF5DbW7QcYBCGTAIhAIqxeOuER0xEAHYoY2rQKU30JQGnISDGCR8sjGehrXGJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.5.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/be2e27a2706062dd378609c3a9636f10/telia-ace-knowledge-serviceclient-1.0.31-next.5.tgz","_integrity":"sha512-zKshmSAURFvf+0UldQWtwObSf1hKZM9967H3E6nXpgys8e6cNW8OhhsDBvm9IfRe8Z6VBex4hWUEb4Rs5hG35Q==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.5_1691999405271_0.3901089520337253","host":"s3://npm-registry-packages"}},"1.0.31-next.6":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.6","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.6","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"337979428feb27a870b0612fd939bf6cd0cae325","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.6.tgz","fileCount":6,"integrity":"sha512-o71xoEwX5YypM+WN2w8tmWDwtu3jLS02meEJ3qur707XLhOV9IHGXbs3vsJPjQSth2pRvE/pGDn3fDMzlg5iDA==","signatures":[{"sig":"MEUCIFpofM6sC/8BtaDN/iOMVf7DRKPYDEYVX7Kv/nZZuF9zAiEAhGNNs6a1B5awIU/duvVfWNFppS0/XE9JJqZgKr6tdjM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.6.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/32ec0de6801ba6d039270f617acfcb3a/telia-ace-knowledge-serviceclient-1.0.31-next.6.tgz","_integrity":"sha512-o71xoEwX5YypM+WN2w8tmWDwtu3jLS02meEJ3qur707XLhOV9IHGXbs3vsJPjQSth2pRvE/pGDn3fDMzlg5iDA==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.6_1691999715662_0.9656136560967947","host":"s3://npm-registry-packages"}},"1.0.31-next.7":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.7","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.7","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"c1bc72052473664316a0b6f7a58d71d662f859a9","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.7.tgz","fileCount":6,"integrity":"sha512-L8uA/dXRgAxZ7knZuW/6ct7bY7oNEqw5hjosPWf6pPuPDo0U+MLEIBEYhVKHaXNnhfyrzPJ4c6GjHw3MZ5144A==","signatures":[{"sig":"MEYCIQCiB2wgAocexkslXK94cP5thjpRY4BSI+8io7hVA71MJAIhALg31d4k/3hAfnzUHAtsQBrea6HfS0iDdVF+W2XK9HxE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.7.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/70110c9f0c59ae3cdb43c513f4371117/telia-ace-knowledge-serviceclient-1.0.31-next.7.tgz","_integrity":"sha512-L8uA/dXRgAxZ7knZuW/6ct7bY7oNEqw5hjosPWf6pPuPDo0U+MLEIBEYhVKHaXNnhfyrzPJ4c6GjHw3MZ5144A==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.7_1692015547314_0.5734111482931032","host":"s3://npm-registry-packages"}},"1.0.31-next.8":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.8","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.8","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"fd46b0d220545a845bc4fa58843f1c2d227de712","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.8.tgz","fileCount":6,"integrity":"sha512-bqSOYJ37+3mjI7IGWKtSLxv5QPWKhe9rbwQ5wbTDOeJ3zyFKcAsfNxZBHmK26fjTJoWZKkc42PE3uELsVEKJsw==","signatures":[{"sig":"MEYCIQDzPzt9XOwkcepWTtQldzIJ5VFcY0qq5e73E+j0xki1mwIhAOZWx+HcclHvOolzmxj5J/ZGrqvlKuGwGpTU1jIFsBjQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.8.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/e9161bb0d8be7f9e8d41f279a60bb2a8/telia-ace-knowledge-serviceclient-1.0.31-next.8.tgz","_integrity":"sha512-bqSOYJ37+3mjI7IGWKtSLxv5QPWKhe9rbwQ5wbTDOeJ3zyFKcAsfNxZBHmK26fjTJoWZKkc42PE3uELsVEKJsw==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.8_1692015775392_0.1264663238912358","host":"s3://npm-registry-packages"}},"1.0.31-next.9":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31-next.9","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31-next.9","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"0ae43899edceaf5e4da39727da5a4c7c2d05fcb0","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31-next.9.tgz","fileCount":6,"integrity":"sha512-cxzcSretCVHemllms7x3Z8IbBcVxTx6Og0jYt8k1g4T+7PqLQPStViWn6oObXeTs0e2nd91oFhj6VB5861sAtQ==","signatures":[{"sig":"MEYCIQCT6My++8N6X8sO4qUaYenqw3cGlPmfARrmBWkCLwfpfwIhAJWbTF7dOVh200MWkn2VAvXxmZES1Y3NYlhnVmDhMNFY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31-next.9.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/b2a4e79f50c3c6d84f4653fe2eaccc18/telia-ace-knowledge-serviceclient-1.0.31-next.9.tgz","_integrity":"sha512-cxzcSretCVHemllms7x3Z8IbBcVxTx6Og0jYt8k1g4T+7PqLQPStViWn6oObXeTs0e2nd91oFhj6VB5861sAtQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31-next.9_1692180438834_0.24456606478424914","host":"s3://npm-registry-packages"}},"1.0.31":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.31","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.31","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"b636f5a7115a14c3fd6850a13b134a1bf02d59c5","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.31.tgz","fileCount":6,"integrity":"sha512-q+3nyr7yPTKmUexqcnyu07rRYaMl1fZnBFIb/Ri7sGORyHtUtNBNpY+ib63JlevxVuOkode1onrmtDy+rFqTWQ==","signatures":[{"sig":"MEUCIHTdGfYGfaQ39/41yGd6so1VAlHMkVM5Ndf8+IIvNfNfAiEAiCMEFVq//uKQYHq4Z3H6C4jOlGICDwMa9XgMPlKdmPY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.31.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/beb61ff456096da84e2426a78202f355/telia-ace-knowledge-serviceclient-1.0.31.tgz","_integrity":"sha512-q+3nyr7yPTKmUexqcnyu07rRYaMl1fZnBFIb/Ri7sGORyHtUtNBNpY+ib63JlevxVuOkode1onrmtDy+rFqTWQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.31_1692181709234_0.8431752746144316","host":"s3://npm-registry-packages"}},"1.0.32-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.32-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.32-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"4dd4f289864a47400c47e89fef30b631644cecd2","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.32-next.0.tgz","fileCount":6,"integrity":"sha512-Uo9kgaj9yx3e//ccZDbpTLsQjWVQ1jUeumSu7F+56FJU30IA2ZdvRn6iPwXVzRD8kjuWpYEifWBAek4txMFzww==","signatures":[{"sig":"MEQCIBrKC3zs8Vt18wUhwDQ1Xmmat7X2gcFGkDy7eg4sEAeUAiBj7v4L12quTADgoZVxEZsqot6Vs7lSlh16tnI+4rHDVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.32-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/0d2afb365f473d972783f69ec0581eb5/telia-ace-knowledge-serviceclient-1.0.32-next.0.tgz","_integrity":"sha512-Uo9kgaj9yx3e//ccZDbpTLsQjWVQ1jUeumSu7F+56FJU30IA2ZdvRn6iPwXVzRD8kjuWpYEifWBAek4txMFzww==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.32-next.0_1695300144054_0.5303185666970149","host":"s3://npm-registry-packages"}},"1.0.32":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.32","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.32","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"d6a83058d91b8f625d21408f324a41944e5ef336","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.32.tgz","fileCount":6,"integrity":"sha512-4DbEZE1fQPKpBXUkjtBXVTPf9HFS27FVqzvkadfVghIxS7WgcL1F5W/YxOxdaPfeYnKmuBMtMV9dzNrSs9xiug==","signatures":[{"sig":"MEUCIQCCN7F/wuVCAkTRsMjdw7e6BEb7Oa0cHQjcoUfGWmjP9AIgbxAoDutaY4EWfKepUbg2Int5H+Zy8ANccfXWpBq7sRY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101140},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.32.tgz","types":"index.d.ts","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/a8b45e89087612c197bc385342781d03/telia-ace-knowledge-serviceclient-1.0.32.tgz","_integrity":"sha512-4DbEZE1fQPKpBXUkjtBXVTPf9HFS27FVqzvkadfVghIxS7WgcL1F5W/YxOxdaPfeYnKmuBMtMV9dzNrSs9xiug==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.32_1695643972942_0.9080942615290077","host":"s3://npm-registry-packages"}},"1.0.33-next.0":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.33-next.0","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.33-next.0","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"491f5e0e66eda8a11e662d61d6222124a90104d1","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.33-next.0.tgz","fileCount":6,"integrity":"sha512-guzSjAf5/qPhtlrKXkz0fj+c3RaKGto9+JqmsAc/RJtaG+drnNR348N/XHVchWreShhgLdc5W9+2lBRZfyVq+w==","signatures":[{"sig":"MEUCIF7BnwJst/Fe02bi+bELzfjZT/z4P2cn75sYORBzqSklAiEAqCK+xzatiBpYj7lNBZ/vGZ9prQcH06b1qBp0SU7WLVg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.33-next.0.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/9f635f3dc0064ce19782a09da95d9b71/telia-ace-knowledge-serviceclient-1.0.33-next.0.tgz","_integrity":"sha512-guzSjAf5/qPhtlrKXkz0fj+c3RaKGto9+JqmsAc/RJtaG+drnNR348N/XHVchWreShhgLdc5W9+2lBRZfyVq+w==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.33-next.0_1695811687052_0.3060033110173854","host":"s3://npm-registry-packages"}},"1.0.33-next.1":{"name":"@telia-ace/knowledge-serviceclient","version":"1.0.33-next.1","keywords":["telia"],"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","_id":"@telia-ace/knowledge-serviceclient@1.0.33-next.1","maintainers":[{"name":"teliajonasrosenlind","email":"jonas.rosenlind@teliacompany.com"},{"name":"lnj851","email":"fredrik.anundsson@teliacompany.com"},{"name":"adomas-liutkus","email":"adomas.liutkus@teliacompany.com"},{"name":"totte","email":"theo.muller@teliacompany.com"},{"name":"donami","email":"d0namiz@gmail.com"},{"name":"bratn","email":"andreas@deckhand.se"},{"name":"andreas.boukaras","email":"andreas.boukaras@teliacompany.com"},{"name":"gunnarx2","email":"tobbelindstrom93@gmail.com"},{"name":"anhe92","email":"andreas.z.hellstrom@teliacompany.com"}],"dist":{"shasum":"3d165edcdc9f92c2abd9cca1893ee5f9c7abeda0","tarball":"https://registry.npmjs.org/@telia-ace/knowledge-serviceclient/-/knowledge-serviceclient-1.0.33-next.1.tgz","fileCount":6,"integrity":"sha512-Ru8tHnZQS2IpHdpQi3gA3jdY5WIC55YbX8ydEUeqc/2K/Y+6g1y0+wHRJY866dl1mkIsJ8jAfRvp7mrOUIG9GQ==","signatures":[{"sig":"MEQCIA4EGPFjzOiGww7rny3CgCCrVIyng76qAoal1ueTjebEAiBKTF6proKLrpqP36bgzobnVYv++5ArNt4EMdFZFR2vYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101147},"main":"dist/index.js","type":"module","_from":"file:telia-ace-knowledge-serviceclient-1.0.33-next.1.tgz","types":"index.d.ts","readme":"# @telia-ace/knowledge-serviceclient\n\nThe Service Client provides an API for interacting with classic Humany projections. A projection is a URL representing a subset of content (guides, categories, contact methods etc) in a Humany application.\n\n## Projection URL Format\nThe standard format of a Projection URL consists of the root application url followed by the projection name.\n```\nhttps://[application].humany.net/[projection-name]\n```\n\n## Create an instance of Service Client\nCreate an instance by passing the Projection URL as the first constructor argument.\n\n```javascript\nimport { ServiceClient } from '@telia-ace/knowledge-serviceclient';\n\nconst projection = '[projection-url]';\nconst serviceClient = new ServiceClient(projection);\n```\n\n### Passing additional options\nThe second constructor argument can be used to pass additional `ServiceClientOptions`.\n\n#### `ServiceClientOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`funnel`**|Funnel to report statistics on.|`string`|\n|**`client`**|Unique ID for the client|`string`|\n|**`site`**|Site (URI) to report statistics on.|`string`|\n|**`paging`**|Default paging options|`object`|\n\n**Comments**\n- Funnel, Client and Site can be overriden by using the options parameter on specific API calls.\n\n## Match\nMatch guides based on a search phrase.\n### `match(phrase, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `match(phrase, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase`**|The phrase to match.|`string`|\n|**`options`**|Additional matching options|`MatchingOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `MatchingOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n\n**Example**\n```javascript\nserviceClient.match('hello world', (matchResult) => {\n  console.log('matched guides:', matchResult.Matches);\n});\n```\n\n## Get categories\n\n### `getCategories(success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getCategories(options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`options`**|Additional matching options|`CategoriesOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `CategoriesOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`phrase `**|Get categories containging guides matching a phrase|`string`|\n|**`categoryId `**|Limit the matching to the specified category|`number`|\n|**`expand`**|Possible values: `'none'`, `'children'`, `'descendants'`|`string`|\n\n**Example**\n```javascript\nserviceClient.getCategories((categoryResult) => {\n  console.log('all categories:', categoryResult.Children);\n});\n```\n\n## Get guide\n\n### `getGuide(id, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n### `getGuide(id, connectionKey, options, success, [error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to get.|`string`|\n|**`options`**|Additional guide options.|`GuideOptions`|\n|**`success`**|Callback returning the result.|`function`|\n|**`error`**|Callback returning a description of the error.|`function`|\n\n#### `GuideOptions`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`statisticsDisabled`**|Whether statistics should be reported for the request.|`boolean` (default: false)|\n\n**Comments**\n- If the Guide is not intended to be displayed as a result of a previous match statistics should be disabled.\n\n## Give feedback on guide\n\n### `giveFeedback(id, connectionKey, feedbackType, [success, error])`\n\n|Argument|Description|Type|\n|:--:|:--:|:----------|\n|**`id`**|Guide ID.|`number`|\n|**`connectionKey`**|A connection key (part of dialog) to give feedback on.|`string`|\n|**`feedbackType`**|Type of feedback to give (`Positive` or `Negative`).|`string`|\n\n## Accessing the Service Client from a plugin\nFor implementations running version 4 you can author a plugin and access the current Service Client through the `container` under the key `'matchingClient'`. The value must be resolved asynchronously as in the example below.\n\n```javascript\nimport { Plugin } from '@telia-ace/knowledge-widget-core';\n\nclass MyPlugin extends Plugin {\n  initialize() {\n    this.container.getAsync('matchingClient').then((matchingClient) => {\n      // use 'matchingClient' here\n    });  \n  }\n}\n```","scripts":{"build":"rimraf ./dist && vite build","clean":"rimraf ./dist"},"_npmUser":{"name":"totte","email":"theo.muller@teliacompany.com"},"_resolved":"/tmp/ddbc6fddb676eb8305971975c9404128/telia-ace-knowledge-serviceclient-1.0.33-next.1.tgz","_integrity":"sha512-Ru8tHnZQS2IpHdpQi3gA3jdY5WIC55YbX8ydEUeqc/2K/Y+6g1y0+wHRJY866dl1mkIsJ8jAfRvp7mrOUIG9GQ==","sourceMain":"src/index.js","_npmVersion":"8.19.4","description":"Service client for communication with classical ACE Knowledge projections.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"isomorphic-fetch":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/knowledge-serviceclient_1.0.33-next.1_1695817930003_0.9470736723589959","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-03-11T08:31:20.121Z","modified":"2026-01-20T15:55:52.317Z","1.0.0":"2022-03-11T08:31:20.365Z","1.0.2":"2022-04-07T13:21:10.639Z","1.0.3":"2022-05-25T12:38:46.603Z","1.0.4":"2022-06-07T08:14:27.312Z","1.0.5":"2022-07-01T13:16:58.682Z","1.0.6":"2022-07-15T06:03:16.468Z","1.0.7":"2022-08-18T06:33:50.051Z","1.0.8":"2022-10-03T13:30:10.988Z","1.0.9-next.0":"2022-10-19T17:06:38.407Z","1.0.9-next.1":"2022-10-20T06:16:18.918Z","1.0.9-next.2":"2022-10-20T10:49:36.439Z","1.0.9-next.3":"2022-10-20T12:45:57.185Z","1.0.9-next.4":"2022-10-28T18:48:40.852Z","1.0.9":"2022-11-07T08:44:18.782Z","1.0.10-next.0":"2022-11-08T14:45:29.716Z","1.0.10-next.1":"2022-11-09T08:55:40.945Z","1.0.10":"2022-11-09T10:19:37.961Z","1.0.11-next.0":"2022-11-10T12:03:39.611Z","1.0.11":"2022-11-10T13:09:07.885Z","1.0.12-next.0":"2022-11-11T13:06:04.432Z","1.0.12":"2022-11-14T10:03:10.194Z","1.0.13-next.0":"2022-11-17T12:59:59.375Z","1.0.13-next.1":"2022-11-17T18:22:21.764Z","1.0.19-next.0":"2022-11-29T09:14:32.663Z","1.0.19-next.1":"2022-12-01T09:22:43.662Z","1.0.19-next.2":"2022-12-01T09:34:58.074Z","1.0.19":"2022-12-05T08:28:24.164Z","1.0.20":"2022-12-06T09:32:35.613Z","1.0.21-next.0":"2022-12-14T12:49:37.396Z","1.0.21-next.1":"2022-12-16T10:21:07.858Z","1.0.21":"2023-01-02T10:30:31.882Z","1.0.22":"2023-01-02T10:36:19.220Z","1.0.23-experimental.0":"2023-01-09T15:53:08.573Z","1.0.23-experimental.1":"2023-01-11T15:05:34.698Z","1.0.23-experimental.2":"2023-01-12T07:45:05.127Z","1.0.23-experimental.3":"2023-01-12T08:00:26.722Z","1.0.23-experimental.4":"2023-01-12T08:19:43.975Z","1.0.23-experimental.5":"2023-01-12T08:58:27.459Z","1.0.23-experimental.6":"2023-01-13T08:40:55.948Z","1.0.23-experimental.7":"2023-01-13T09:33:37.522Z","1.0.23-experimental.8":"2023-01-16T15:23:06.212Z","1.0.23-experimental.9":"2023-01-17T10:08:31.021Z","1.0.23-experimental.10":"2023-01-17T10:54:05.972Z","1.0.23-experimental.11":"2023-01-17T11:12:25.388Z","1.0.23":"2023-01-18T09:54:32.241Z","1.0.24-next.0":"2023-01-30T12:20:18.845Z","1.0.24-next.1":"2023-01-30T12:43:52.830Z","1.0.24-next.2":"2023-01-30T13:37:05.984Z","1.0.24-next.3":"2023-01-30T14:02:59.124Z","1.0.24-next.4":"2023-02-02T12:06:29.277Z","1.0.24-next.5":"2023-02-02T15:30:11.939Z","1.0.24-next.6":"2023-02-02T15:56:22.621Z","1.0.24":"2023-02-06T10:13:50.175Z","1.0.25-next.0":"2023-02-08T14:57:38.079Z","1.0.25-next.1":"2023-02-08T15:06:40.725Z","1.0.25":"2023-02-09T08:04:21.995Z","1.0.26-next.0":"2023-02-13T12:09:25.870Z","1.0.26-next.1":"2023-02-13T12:20:29.689Z","1.0.26-next.2":"2023-02-14T11:02:48.698Z","1.0.26-next.3":"2023-02-14T14:26:48.847Z","1.0.26":"2023-02-27T15:53:52.568Z","1.0.27-next.0":"2023-03-16T09:12:21.100Z","1.0.23-experimental.12":"2023-03-21T22:44:26.084Z","1.0.27":"2023-03-22T15:08:19.171Z","1.0.28-next.0":"2023-03-23T12:28:21.991Z","1.0.28-next.1":"2023-03-24T07:58:41.383Z","1.0.28-next.2":"2023-03-24T11:55:27.695Z","1.0.28-next.3":"2023-03-27T11:29:47.004Z","1.0.28-next.4":"2023-03-28T12:45:47.942Z","1.0.28-next.5":"2023-04-03T09:33:54.013Z","1.0.28":"2023-04-04T11:33:18.423Z","1.0.29-next.0":"2023-04-05T11:33:18.361Z","1.0.29-next.1":"2023-04-12T08:17:56.743Z","1.0.29-next.2":"2023-04-13T13:26:47.779Z","1.0.29-next.3":"2023-04-14T07:37:00.359Z","1.0.29-next.4":"2023-04-19T10:59:41.864Z","1.0.29-next.5":"2023-04-19T11:46:09.688Z","1.0.29-next.6":"2023-04-21T11:27:28.867Z","1.0.29":"2023-05-23T07:42:35.217Z","1.0.30-next.0":"2023-05-26T08:02:28.040Z","1.0.30-next.1":"2023-05-30T08:42:29.129Z","1.0.30-next.2":"2023-05-30T13:13:59.029Z","1.0.30-next.3":"2023-06-05T13:39:50.650Z","1.0.30":"2023-06-12T12:46:44.715Z","1.0.31-next.0":"2023-08-07T13:11:53.425Z","1.0.31-next.1":"2023-08-09T08:34:46.118Z","1.0.31-next.2":"2023-08-09T08:41:31.971Z","1.0.31-next.3":"2023-08-09T09:29:54.554Z","1.0.31-next.4":"2023-08-09T11:41:41.718Z","1.0.31-next.5":"2023-08-14T07:50:05.482Z","1.0.31-next.6":"2023-08-14T07:55:15.846Z","1.0.31-next.7":"2023-08-14T12:19:07.578Z","1.0.31-next.8":"2023-08-14T12:22:55.559Z","1.0.31-next.9":"2023-08-16T10:07:19.035Z","1.0.31":"2023-08-16T10:28:29.507Z","1.0.32-next.0":"2023-09-21T12:42:24.174Z","1.0.32":"2023-09-25T12:12:53.226Z","1.0.33-next.0":"2023-09-27T10:48:07.208Z","1.0.33-next.1":"2023-09-27T12:32:10.242Z"},"author":{"name":"Telia Company AB"},"license":"SEE LICENSE IN LICENSE.txt","keywords":["telia"],"description":"Service client for communication with classical ACE Knowledge projections.","maintainers":[{"email":"andreas.z.hellstrom@teliacompany.com","name":"anhe92"},{"email":"andreas.boukaras@teliacompany.com","name":"andreas.boukaras"},{"email":"andreas@deckhand.se","name":"bratn"},{"email":"jonas.rosenlind@teliacompany.com","name":"teliajonasrosenlind"},{"email":"jesper.molin@teliacompany.com","name":"teliajm"},{"email":"d0namiz@gmail.com","name":"donami"}],"readme":"","readmeFilename":""}