{"_id":"@c2c-platform/sdk-server","_rev":"21-61571f227ad5d88d1b8bbd27e165a13f","name":"@c2c-platform/sdk-server","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0-beta.0":{"name":"@c2c-platform/sdk-server","version":"1.0.0-beta.0","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.0-beta.0","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"ebae979aefbc39507ca2855315fec9ecdd120708","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.0-beta.0.tgz","fileCount":8,"integrity":"sha512-DjxXTwuhqVoddsaGRserMi/0GaNllSAKYvllUsIbprywiy11ypIRp6TKNnIiQQ7c218o6pSJmhKFVbzhTa5w1A==","signatures":[{"sig":"MEQCIB6CbRv+WwZo+15jEfXqNNcP4geW8KbAhjGyCGaAPrYhAiBzsAUjq6BHoJFAHjY6GuX7jNE3+0sesG4ugZqIXR0YBw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikjKpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmom7BAAhrzwzvNu70jOOzI9xFrQuyawePC1Whk6J0Aqs60iev9gemYb\r\nANWCwmuigPqYryjhP7nMwZlzZm2nHVGX4SyyShXPBI2C30loSyT9abP2fiKi\r\ngmn86OZauvhK1+Z8mp90bVxriTCzsco6Lp4WeIPxo1Xp6DIQWIbReZA/ITmk\r\n4MbXSsPwEjWlor2hEmRqRd9BXcWI8e/6Hv3WuBsKZyteD90CMqYtjEFrhghC\r\n+b8UPWJNy1wMRfZb7K0zEpZn32fJqrVCHp+dNqha2/7hmRtuGFoROpkbNdxM\r\nc9mSURZ9pJdSuiPL3pktTJbn+jUPGnYHI+qWuuHdTFWqYxkmGvf9kK5hzuGQ\r\nWMAn9vrhyP4TCj7TRbkE2cKnY8uc03Dbhu6dxF05SiSIPxoMBzeptQOBFkoe\r\nqQ9JZvlLRN6rsWLUYScd97CdXc4nLALaObbvZJn0Dudt1L3BUGqx0qhdaMAU\r\noYWU2JoSxC5elCbVIVIiSt4rHayAYDCC6JHec5Z2E8IdiPdzUQU4hOIEUC3O\r\nsFoXfD/2fHCNfa2YVW00y4MBxF2nCfuq6gByGFj2eE2WC9OSJPEo6hlpWiYT\r\ng4OxHXmohG5MIzYTD8QW8YmgEqpSfZqWT1TDh5XON7Pm83/4QgSbT9OI6Zd+\r\nk5wfJm/7RYRMoWQyRf7+qe5wDjuy3VZC3Mo=\r\n=vchh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"0c3deb9683d61668b7c4341a30c3e6bf3725375f","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean && grunt sync && tsc"},"_npmUser":{},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.10.3","node-fetch":"^3.2.4"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.5.2","eslint":"^8.15.0","prettier":"^2.6.2","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^4.6.4","@types/node":"^17.0.31","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.22.0","@typescript-eslint/eslint-plugin":"^5.22.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.0-beta.0_1653748393235_0.19845877022738612","host":"s3://npm-registry-packages"}},"1.0.0-beta.1":{"name":"@c2c-platform/sdk-server","version":"1.0.0-beta.1","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.0-beta.1","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"7fc2dee59b692856f5320ec795f7586d4942db4e","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.0-beta.1.tgz","fileCount":10,"integrity":"sha512-jFEm2YW4aaFb8xrxn5fSH2kZ3Xp5wo5nIowEeUtZK58d85x197N3MDX1+tuQkmaRrBITssdencG4a70K+y1u6g==","signatures":[{"sig":"MEUCIQDDU2gdvtl8V6EHVDBVjdFK6xpvFpb0sF4T4l2oKBZ4fQIgYbIRgFzfb/iGVjKPjTlq1F/dWuAxZ9HsXs34lqROIi0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilD8GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2UhAAiO5td2lT3neQYz88HloIOJXkiU+PCNmFV6dA1QR8MCMg9XSN\r\nyamUSQd4EurWg9lDUK8948rokbdIsaQPjyWxMSFlPAFRCy2mAjGDgdbgduIb\r\nqPk+LC0J0KybGKphAb2q6ie8bXa4sGqNjt4PhJY5osERQGp/gbosvbj9HE6A\r\n14UbpMp5vepgkGBIw8MIpRtR3ctlTpPmZdC5wg5MQYo96HyIn4WQOGQU6Z88\r\nvK1lxEl4dXwxKW2XRiZ2nHgcb3mYox6WtYWoiNPBQyBQNM7PZLvUfKpJ1HWr\r\nnYqWFoENOdUJnOKW1Zftj2tp8Peq2ex/5jeveE3Ws58MprRcHPYH2dnRx9sl\r\npAQnKPKQSo9cexbCZYO/eRAz1k2TPua7r8RD4YaTmDi3lSVNPZlLKQ6EUwS+\r\n8Ty3EzG/3YjyaHVd7PnLo4sg0ryuwpR1GruAYUNvWSyNqtsBe46N5Luw2brO\r\nYtZkMAYIPJHgnJJthl8qaCDpRS2OGedh5vbBVS6+CUT1IhpeRAwPfujDIi2D\r\nr8fJUvnPsWyZvCrL6blHOe0TKEGEfFr0pVielpjkD2IjEuPb2u+lrrN3okLZ\r\nv7zxIs7rXIeQ590TLj8wBESHojAPL6oZpCwDpCGLJWfn4iklbVjCcc33U/ES\r\nu+ZKXXjIwDCtkJ2VCKy4LQbHBy1y3lqR5gA=\r\n=7qgG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"ee0f0def0c9a65d45bc33dfb59aeacd989be7fb2","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean && grunt sync && tsc","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.10.3","node-fetch":"^2.6.7"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.5.3","eslint":"^8.16.0","prettier":"^2.6.2","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^4.7.2","@types/node":"^17.0.36","@types/node-fetch":"^2.6.1","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.26.0","@typescript-eslint/eslint-plugin":"^5.26.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.0-beta.1_1653882629923_0.6073955664070079","host":"s3://npm-registry-packages"}},"1.0.0-beta.2":{"name":"@c2c-platform/sdk-server","version":"1.0.0-beta.2","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.0-beta.2","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"f8cb56fb315f4447218c826207340ded1f1d4ea4","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.0-beta.2.tgz","fileCount":14,"integrity":"sha512-awKJOefZe3jIBj4Jo4VfjoCBmv7Juvzc0RyiELHdSNTYl6UF0SgcGYEjjCqaHm3gMdFxOR2gXamuch0oLi/+eA==","signatures":[{"sig":"MEUCIQDhgDG12wchHIGfdx+q6UiZEkc5v2kzPdqOjhyb3kOjKQIgeTyeAiFkrQDLp26noebxSfR2RbwuBF2iJehzUKZUeEk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinawFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4NQ/9EOnrYSidhAXfJfsNp0wlvIm704D8P/Icsf9b7HbNHiqtLux4\r\nui1NLjyx9obpZjNxVdfARn4gqIx3prVE6eNxZlG/9n1P6NExVx5Y9cMuabJi\r\n6l5X/V00CBkC/q9933mccN7EbdgL2An0ZkwtZax37MX9eMMgZFCQm/rpJDL8\r\nm/sDbcoDFANoy1TYzJ1zzOTQb2XO2ofMkJe9fzuEHMeEY+COrF/vE//9di8H\r\nu2VyIS19LpMU5tHbdRoNaET7q9I9ZT37cxVr1FeqayS0Zqy95dNjgvC2zJaf\r\nP2zMNlNJPQiEn5xtVqXm0gqnTEaPp7ATPg9mmzWqB+E+iDnwL0SpbNnaP5LW\r\nReM/yJcZp3TXC4AueOROppQlSYudwslb+ErLABp8ho1fQaU4tELgBAthb48M\r\nUQ/knJM2ulvlAN9p3p8W2/rPQReo1FuTkmGTGZS+43lyYvjIUqucyGmP6NGi\r\ncXr7MA+1YZINCWIZvq//vExWuiuAyx8wzQ17XCau1QLgO/OOEgi6vTqUcepK\r\nLiQeI292yf2rS/f3JijF0kparunemZaXvC1AMtImMMFb7PWhkfD9sVyGlF1N\r\nO4jJr0j8F/mmgQQmBiRIVAPEYVvvIdNxsUdX9vaW7tbicKCC2CIOCqYMKlI3\r\njPTXbn+W0R2lQFQcq4L6R8puo/l5EBdpWtU=\r\n=/Ocz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"684f8822b3e8b2e27a2151dceea7626fdd86f56d","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean && grunt sync && tsc","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.10.3","tslib":"^2.4.0","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^8.5.1"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.5.3","eslint":"^8.16.0","prettier":"^2.6.2","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^4.7.2","@types/node":"^17.0.36","@types/lodash":"^4.14.182","@types/node-fetch":"^2.6.1","@types/jsonwebtoken":"^8.5.8","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.26.0","@typescript-eslint/eslint-plugin":"^5.26.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.0-beta.2_1654500357346_0.7782262744111943","host":"s3://npm-registry-packages"}},"1.0.0-beta.3":{"name":"@c2c-platform/sdk-server","version":"1.0.0-beta.3","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.0-beta.3","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"e876bc2e4838acc62e4e4412fb2276722f7493be","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.0-beta.3.tgz","fileCount":14,"integrity":"sha512-wrtm7b8Fub4hWmJTmt04cF4wtBqVRohRsc+y4E5IRhFWwHF6HZsakA7GCsPKQOp1ykseZz2OEj9lttXFOEfkVA==","signatures":[{"sig":"MEUCIQC2O52DRE9vG4pMnym/bwJx1VdnZCcT4C776KXsSSrZjQIgeZif2al02nIY6KKCDJ5EXmJaNrS9CsymxZ53EbXW81g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinwg3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrRg//c+lwdGl3zG3BX5Q4oLVBbU/DgrUrfmRQRzdun4iZyU1r8HLf\r\nS53OaoFXaR+wMpKnIzp/9yJRCOujr6dGcSJft96qh8Tp47vmStkzOxMbA7RQ\r\n2x4z6BKV8+ccRRrTAhu4vswnhKR/Ks9SUA0L9a6cAKVE5z7AVwmLnxId/1Ko\r\nsXUdIqE8xRw1b1Jo+vglIZmajG77vLXOoickmYAdf4z0La1lS7IfHOuNsQql\r\n4vJ4bDmQh3op4XAZ6JA5iS3LVc5j/zi7Hxj89+zAiA+19bVH+OO8+VprDc/7\r\n2djMIdD43yzStm/ByA9GawIuLl4DWJaT8m6iLL5jv7pZ8eT8A1yUoK7vwtCK\r\nr/O8ipOHz3oP5aPUfM94/4PLj2/3EEXhky4p7rgInd2XkihMQ6UbU7izK2T5\r\nAVDtYIRgjiW+7CxU/84k+THPe+Xd+EC4S3LljEbhRcpPoGWi9BMswbMu2cvd\r\nZg2mAwh7A4FsWuxWRZ4Z66yeeMipkcKLR/UtLuiv2byg5xpI/xF/BUocoLdu\r\n3pIAtJTUNe65rinsifPmrE3wHPAQQM7ecHX+W4plTo3zxZzobXjwanHJKBhK\r\nvxUQI8Edvy4qKFPNyygVp2YlR9N7Tu32Lsm+6BgUZqMorwtmqviVSA38lSoD\r\nXNxlKwb39nmkH/yil+vUiSwzIUE9r0t8Hjo=\r\n=LjjL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"6fd1033acdcad561baea9b648aaf1bbd7c9f9916","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean && grunt sync && tsc","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.10.5","tslib":"^2.4.0","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^8.5.1"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.5.3","eslint":"^8.17.0","prettier":"^2.6.2","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^4.7.3","@types/node":"^17.0.40","@types/lodash":"^4.14.182","@types/node-fetch":"^2.6.1","@types/jsonwebtoken":"^8.5.8","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.27.1","@typescript-eslint/eslint-plugin":"^5.27.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.0-beta.3_1654589494898_0.164839368901182","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@c2c-platform/sdk-server","version":"1.0.0","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.0","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"09de8e04f902408cfbb3511807799bda7eca641f","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.0.tgz","fileCount":16,"integrity":"sha512-/7A4WxJMyklrEZuAJAsGmPNZZR40Ka7xFlOcMTiwOYLPFGS0mJ4OAIIgwWvrgypRUO1BGaqewSXMM7vp7N4s/w==","signatures":[{"sig":"MEQCIFXrKcaxwGTKHdbL4/eiIqCi5QQ041GVYtdgTJ6wRWmgAiBHepAhc+qUD4/uOB7gzMaYw/vQ4g/wexGNeinCy++aJQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhFh2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6HBAAi8/Qrboqmcf7lzVrShLG1c3tOivZy1akC4SPxQIPKb071mEQ\r\nxLLdqDfO1p1e0626z1mGnZg97EeTyhGGT/ju5pic5mJSa3MwafZsIeAoq86h\r\n2Re1qPWxVGuhzdxlxd1wOqj6acRbUJ2pK+AdoK5rtQ4Yyut17pvz4OoPv3Et\r\nK6QuOhZ/YHXbc5O173Whnjf78vbqaaBlNzrcVmjVRgQ/ZJs9FoKeR31PyjwY\r\nyJKGcfChBpcFnemFntdpsJyT/7/HP2apWexiYwjIZp90XPy64EfuJISs2HeI\r\n9nbFLQ8w0Yx6UQT3DS3ixShsr63BHUvroB9xWhBA/PojQ5UVbc7840folkJz\r\n8GhJciAtU0uvdI59vzk9T3d5l/EA7H6jhVl9/UFoKLZLi6ZDAzGC+3BjbOa4\r\n+0DNGN0CvQQtV36hsOOPvB4V1r+LOJwQE9IAZHcV5R0ce8mpMsgI72eNxsn5\r\nrdFpUC7uCzEVYP39+Fh19yucHd+AbBiM3G2vlUADeOOgDUyY2fp6qXb0X/BX\r\nWMRtU8odcxyNQPPKX4/batOrcBI9715ohYBLv3IiWLDoMphxGH+Scpcw5r1b\r\nY9dP2Ebm3B1VKjt5RbqK2X8O9ovFJH3UG7GBkSWZ0jH3aazRbTv1bTW5+hQL\r\n4I0IkMPreHZKVNE9E2mv3ijzLWgXhSIvjyE=\r\n=ekn6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"ebd58e01de1e7a8bd646577ccb3e751c7ed3c80b","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.10.5","tslib":"^2.4.0","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^8.5.1"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.5.3","eslint":"^8.17.0","prettier":"^2.6.2","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^4.7.3","@types/node":"^17.0.40","@types/lodash":"^4.14.182","@types/node-fetch":"^2.6.1","@types/jsonwebtoken":"^8.5.8","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.27.1","@typescript-eslint/eslint-plugin":"^5.27.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.0_1669617782674_0.3159608823032509","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@c2c-platform/sdk-server","version":"1.0.1","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.1","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"e309cac370d559499de619da50eba83b0e5b467c","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.1.tgz","fileCount":16,"integrity":"sha512-Pq59dd0SP41Jtyq0+O9OYIN6d4BvkG0/RY570elY9T2pmFq5qhwDJjUMVw6rolYTEJAqpQMrH1d5EXrkRocqdA==","signatures":[{"sig":"MEUCIBDdqKSuBrGIIROk+5JZZt1QvnXF4/WSkR4ic1EZhEIeAiEA4kVWG0szQO1gzd7dgz/WxZpeTMcbsLJdtrG7ZJY4x0w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoCZgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowIA/8DoGTXz5G2sozxKnaVOc2TbKS9V3zN/ScHYsDhL2GTC8HqsRS\r\nKEKnnAR5hcjS7MohGupzOGQzvzokUHRvkelhRJDlk2n7xED8yQWrVjBGhVfQ\r\nIzUathPLkZap29rGZ7zu7afDPRw7qEE4bjRJGnEFEVqZpknGlce5Qj88+IE3\r\n+fMOugIqtk6RqCgC6Ue/GzbVVK1a/ZX0VBhqYJystP3k/ZZH5Jm9/IKGBPex\r\nScz42C6htU5nAKveOE0dJuAKk3FClqqQKUAf12zWNCnds/KWcRadKmWUzgE0\r\nJEK2u87ZJ6kHGa6ATHHHIzGn7sATFCzs1MAMnCCsITRwMHTRkuSNFA5IXHxv\r\n/wFcy+9mgHvGfHUMnpUnOeodWWG1NzPrYVL4a8kLXr3AcBzisPIOpBL8xhod\r\nG0oFqHZ+K13vc8h7mRPNt7BSUcYZ4Zz/zm4H+ULVUhSkYIcC2YpTFll2SLx3\r\nX/l43II0Yca9prGSrqs5Oisg0q3neFbDSIYBuvVAV+GJ4El3pzL6UVCf2K15\r\n4V1rBWemN3aQx77nDB+1NzIkACVlkuBjJkEPAF6YWmNrAo5ANg4i6dcro7y1\r\nIjQblRblJrdUVZWWQiXpTnxrIkrJq7wlbN9CAVFHGU++J9nVwwc36MoClSFd\r\n5ge7t6n/CifZ8oQZC9ecsyw92+O80BZrrBg=\r\n=ynZl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"68511a3e297c0bc7a9b05b5dfb1de58d07f9167b","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.11.0","tslib":"^2.4.1","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^8.5.1"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.5.3","eslint":"^8.30.0","prettier":"^2.8.1","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^4.9.4","@types/node":"^18.11.17","@types/lodash":"^4.14.191","@types/node-fetch":"^2.6.2","@types/jsonwebtoken":"^8.5.9","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.46.1","@typescript-eslint/eslint-plugin":"^5.46.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.1_1671439968474_0.6809255616277423","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@c2c-platform/sdk-server","version":"1.0.2","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.2","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"c361bfd10c581c9c774e98b78741d649e0b3ba57","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.2.tgz","fileCount":16,"integrity":"sha512-R0abdPxK3DE1TPN+W8dpp6+SHpaCdCS4yoLKC/BYMrYLFmRoSQTYOfYoXqgYC3xxB5TD0kK+wPn7axDNXQrTUA==","signatures":[{"sig":"MEQCIF7nPSRNFYNDaii3TkoL2fxiXyz/NyEOaOLLUX1xTL7PAiA6yZYAL/sf2naeRN1ReNKRrWlLP2EfuIzoPzyCpC5pew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPksyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqhxw/+KXGoKZknX8+c58RxPJ7qRyNrEZK8ywLdrDbEobWzeXZkGOpK\r\n5Hxi+P+zJmXucPLbso2oqFqIz5Sv1ousHz2eMtAwYFIMB/Hiw+rfhjK8KNhb\r\n8oROobEVNFdmTmqNcWQnGQv/WWrVj1TOfl8L7QnJ1qStXe2bQlhRHyEjnidg\r\ncgva5cgWA7FgtmdUKVFuJz+pO/3Vw2f/iPfxnifPPhuFY2aVOOyqf3SZ+51H\r\nuLB0MMTX+brPag4p+3gUocilK8X1fwb/LQb15W5wE9lNI5ln5a5wCimx5R94\r\nl1jUzpAc4wR5F/uyHAd52THgOuf8o5trezsuut/9bTmzmZLKQZMSwjwpc0Wy\r\n9jn+N0jE4YcmCFvLXU9BXILA1ukISxLUnw1YyWV12JgdIU8kZOzWbFlux8fa\r\niaG7ElZ8DSSMM+QF0/DodKpdUj3nT6R7zVcO+9dmTvlTPZPyNYBPlZ3Z4L3t\r\nT30wqDtfRHQV5q0LkYslU8q1R48PujyGul9U/Ju23BTyRetGYoDPFzLqqj/p\r\n/0iklj2t9FtV0u0tG5LuplbIsZNU9hguEEASq/WbuoQqS/9o6R/pzxME9Cb2\r\nSRYwnx89jLtKIvkjOuNGxRXFURVaIugGt8yEFhEbyIGsOy+U/0aroQNFuDV2\r\nO2Q1zPFKdBLsmX8vVnXy0FlPA6rEkIwRkVU=\r\n=a0Xd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"e8da858e46072aff10ed71f1fe853df25e68c066","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.11.1","tslib":"^2.5.0","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.6.1","eslint":"^8.38.0","prettier":"^2.8.7","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^5.0.4","@types/node":"^18.15.11","@types/lodash":"^4.14.194","@types/node-fetch":"^2.6.3","@types/jsonwebtoken":"^9.0.1","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.27.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.0","@typescript-eslint/eslint-plugin":"^5.59.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.2_1681804082517_0.8133405620405842","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@c2c-platform/sdk-server","version":"1.0.3","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.3","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"83b6b51770dc26177dd87f9b83eb0303a0fa9d14","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.3.tgz","fileCount":16,"integrity":"sha512-Sd1XgBq6c/4AFnycraa8YWGrXKRPd4ILlza1o8bDKff7ZJyLvR81XhunXPSP4ZaS3OEhhZ9ff93eQYbLUu74dw==","signatures":[{"sig":"MEYCIQD8xIB8SzJn78tO1JvaJmbXH8lJa3HgJscRC5ggeeSvgQIhAIodIAR9g9nstctzEMVV9XfDdY0QyvvTMaFgYe7RMp+Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRzO1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBsQ/8DEXLftf0duInWs9moTDOb14eETPA419DIPt65pCEtkmylwDe\r\nmIigZqL2i1lGhL4JrknYqrLuIBLlIuK2FUfRIyafqVnYERHKpDmOMzaPdaDi\r\n36h/AMtdB61ShCAIrtTwXQkbvMdaqB7BC41LtUJuBfAIc/ssAvxsjCWX8S58\r\nAiw2Z4CFPIiw7h6X4bhVbunw3BRjkhIzDTJkQNxXh03NRFrSKsEHTVbzEWhg\r\nMRMHh3zwnrQu5z1KU2W+f+QZMuJaoQGiX2XMqFJzwjXwY9Vp0a/A9laMlzDJ\r\n2XofIEMuqgQzRI1u5M2igai/EO0+2BuQFkhg2oVmkvtCwL56KzshFbhRU/rD\r\nPD+ULy9CHzE/9Imff7dTaM9S9JhNCSSNtlOAWpr/jRfoRgWjMGL2V/EUAvOc\r\nwssuync8aw7I/TrLWcUNusJ1xMu9xz5WQJZuPrIut9uYWhHo6nsYQVKoxpeT\r\nMa/PROfY8NqxInd0kiETF+tQWuzjIKR5EzC0fkGxzhxpMKj2WqMsDIjhK787\r\nyBkyMKPmefGqkk/nv2DYpMdq1IzFYy6n+PVj47jNVuCxG28YglTbp4wYYw2B\r\nLC9Oma1WOt6lUIUrgRdmHJYod5SB4CcTMMRrVm7GxnavAc4nzuAMcI9e3nVl\r\nS1rzyLQ9x2QpQzXtP40scXNMIvL0w3hK+B8=\r\n=5Z/R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"b44f9c79b76a11285fe04655e1a55fefe9d59a30","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.11.1","tslib":"^2.5.0","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.6.1","eslint":"^8.39.0","prettier":"^2.8.8","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^5.0.4","@types/node":"^18.16.0","@types/lodash":"^4.14.194","@types/node-fetch":"^2.6.3","@types/jsonwebtoken":"^9.0.1","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.27.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.0","@typescript-eslint/eslint-plugin":"^5.59.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.3_1682387892812_0.6424113534717881","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@c2c-platform/sdk-server","version":"1.0.4","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.4","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"7d84d21cf29a704935d4e1a9998cbcb5d284b8a0","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.4.tgz","fileCount":16,"integrity":"sha512-diDfN5Xml/y74dMub+s7K5QytMh+YS6Rue8Tii+yvu0Y/yeM3XTARlRFnBPfUwhHY78NmKcq2xqQgKHHdsf7Cw==","signatures":[{"sig":"MEUCIQCHg8tztwUy5UVEVeNBmKC/4tzc4cWPZQdHz4UHHnq2kQIgNqmiSCnER4Bk97LOx2pO6Lg6e+0HIQ22+4D2Lqgjz1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46180},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"ac680bf10f9dbecdd9191d335bac38eb1bdbb1b8","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.11.2","tslib":"^2.5.2","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.6.1","eslint":"^8.41.0","prettier":"^2.8.8","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^5.0.4","@types/node":"^20.2.3","@types/lodash":"^4.14.194","@types/node-fetch":"^2.6.4","@types/jsonwebtoken":"^9.0.2","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.27.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.6","@typescript-eslint/eslint-plugin":"^5.59.6"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.4_1684805306693_0.31811000301877135","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@c2c-platform/sdk-server","version":"1.0.5","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.5","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"b808b47126d1f85bbfc752c1a6a29e764fe180fb","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.5.tgz","fileCount":16,"integrity":"sha512-vrh3jWl4nG8oyyW5hRVWxHzepzEidJ1ELU88RL81y8mFGgaEvBogNXUWGdD1bvPUBjEGwG97v9Q5eYZMtDQgzg==","signatures":[{"sig":"MEUCIQDE3Iw59SpIkS/wgEsbOGudn3HNPrp8rGJrj7B3KjRVIgIgGLD7wUFUHRBUZ/cPRTCnfJVtKyTvQWhSGWVDY+Sz1oU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48251},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"9405560b386c7cf75e66ee7d29362cbe69998c9f","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.11.2","tslib":"^2.5.2","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.6.1","eslint":"^8.41.0","prettier":"^2.8.8","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^5.0.4","@types/node":"^20.2.5","@types/lodash":"^4.14.195","@types/node-fetch":"^2.6.4","@types/jsonwebtoken":"^9.0.2","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.27.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.59.7","@typescript-eslint/eslint-plugin":"^5.59.7"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.5_1685349547498_0.2944556811761647","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@c2c-platform/sdk-server","version":"1.0.6","author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","_id":"@c2c-platform/sdk-server@1.0.6","maintainers":[{"name":"c2c-tech","email":"tech@c2c-platform.com"}],"dist":{"shasum":"5bade4161a32b0d7e815c50bba83f58e923d5827","tarball":"https://registry.npmjs.org/@c2c-platform/sdk-server/-/sdk-server-1.0.6.tgz","fileCount":16,"integrity":"sha512-s1TRtB41UH3Rg6tkA2l/U+vmpgjofVMiiyXHxOupv2a2PQYpJbIrxhNfSE5zJGMlmISsQNQDpI+4V+JA/hp3pw==","signatures":[{"sig":"MEQCIDXyJUUPziUnGmk512mgq/yFAGFUFFyycOm4g4ZM8mCSAiBdxveYHRKEzj3tHfSsb4sGThcv0UV7TPPt1qDMDHC1ew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48267},"main":"dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"gitHead":"390da34f74cce83e45d8d2c816abe695a61195d7","scripts":{"lint":"eslint --ext .ts --ext .js ./src","build":"npm run lint && grunt clean:build && grunt sync && tsc && grunt clean:spec","lint:fix":"eslint ./src --fix --ext=.ts"},"_npmUser":{"name":"c2c-tech","email":"tech@c2c-platform.com"},"_npmVersion":"8.5.5","description":"This is a C2C Platform SDK for server.","directories":{},"_nodeVersion":"16.15.0","dependencies":{"qs":"^6.11.2","tslib":"^2.5.3","lodash":"^4.17.21","node-fetch":"^2.6.7","jsonwebtoken":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"grunt":"^1.6.1","eslint":"^8.43.0","prettier":"^2.8.8","@types/qs":"^6.9.7","grunt-sync":"^0.8.2","typescript":"^5.1.3","@types/node":"^20.3.1","@types/lodash":"^4.14.195","@types/node-fetch":"^2.6.4","@types/jsonwebtoken":"^9.0.2","grunt-contrib-clean":"^2.0.1","eslint-plugin-import":"^2.27.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.60.0","@typescript-eslint/eslint-plugin":"^5.60.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk-server_1.0.6_1687768229287_0.2219388591273177","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-05-28T14:33:13.234Z","modified":"2025-12-11T08:22:54.918Z","1.0.0-beta.0":"2022-05-28T14:33:13.425Z","1.0.0-beta.1":"2022-05-30T03:50:30.066Z","1.0.0-beta.2":"2022-06-06T07:25:57.531Z","1.0.0-beta.3":"2022-06-07T08:11:35.053Z","1.0.0":"2022-11-28T06:43:02.879Z","1.0.1":"2022-12-19T08:52:48.605Z","1.0.2":"2023-04-18T07:48:02.709Z","1.0.3":"2023-04-25T01:58:13.057Z","1.0.4":"2023-05-23T01:28:26.900Z","1.0.5":"2023-05-29T08:39:07.648Z","1.0.6":"2023-06-26T08:30:29.439Z"},"author":{"name":"Felix Lee","email":"phuoc.le@c2c-techhub.io"},"license":"C2C Platform","description":"This is a C2C Platform SDK for server.","maintainers":[{"email":"tech@c2c-platform.com","name":"c2c-tech"},{"email":"nhut.nghi@c2c-techhub.io","name":"nhut.nghi"}],"readme":"# C2C Platform - SDK Server\n\n### Installation\n\nInstall the package from npm repository\n\n```bash\n$ npm install @c2c-platform/sdk-server\n```\n    \n### Features\n\n- Products Api\n    - Get Product info\n    - Update Product\n- Roles Api\n    - Find Roles\n    - Get Role\n    - Get Role By Code\n    - Create Role\n    - Update Role\n    - Delete Role\n    - Assign Permissions To Role\n    - Remove Permissions From Role\n- Users Api\n    - Find Users\n    - Get User\n    - Get User By Email\n    - Invite User\n    - Update User\n    - Delete User\n    - Assign Roles To User\n    - Remove Roles From User\n    - Archive User\n    - Unarchive User\n- Multiple Languages\n- Verify Token / Check Permission\n    - Verify Token\n    - Check Permission\n\n### Usage / Examples\n_Usage of SDK_\n\n```javascript\nimport { Platform } from '@c2c-platform/sdk-server'\n\n// Initialize the platform instance\nconst platform = new Platform({\n  baseUrl: 'https://api-admin.scrum-dev.com',\n  clientId: '6385aff93780bfb6a84d85b9',\n  clientSecret: '9290993cce5eb4ba6fedafb7894de720'\n});\n\n// use the methods to interactive with api server\nawait platform.product.updateProduct(...)\n```\n\n### API Reference\n\n#### Product Api\n\n##### _*getProductInfo(options)*_\n\n| Parameter | Type     | Required | Description                |\n| :-------- | :------- | :-------: |:------------------------- |\n| `options` | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.product.getProductInfo({ headers : { acceptLanguage: 'ja' } });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.product.getProductInfo({ headers : { acceptLanguage: 'ja' } }).then((result) => console.log(result));\n```\n##### _*updateProduct(data, options)*_\n\n| Parameter | Type     | Required | Description                |\n| :-------- | :------- | :-------: |:------------------------- |\n| `data`    | `IUpdateProductInput` | yes | |\n| `options` | `ApiOptions` | no |  |\n\n```javascript\n// example\nconst data: IUpdateProductInput = {\n  name: 'Product Example',\n  logo: 'https://example.com/static/logo.svg',\n  domain: 'example.com',\n  auth0: {\n    tokenExpire: 3600,\n    refreshTokenExpire: 3600,\n    loginCallbackUrl: ['https://example.com/login/callback'],\n    logoutCallbackUrl: ['https://example.com'];\n  }\n};\n\ntry {\n  const result = await platform.product.updateProduct(data, { headers : { acceptLanguage: 'ja' } });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.product.updateProduct(data, { headers : { acceptLanguage: 'ja' } }).then((result) => console.log(result));\n```\n\n#### Role Api\n##### _*findRoles(params, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `params`  | `IFindRoleInput` | no |  |\n| `options` | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.findRoles({ keyword: 'example', skip: 0, limit: 50 }, { headers : { acceptLanguage: 'ja' } });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.role.findRoles({ keyword: 'keyword' })\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*getRole(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of role |\n| `options`      | `ApiOptions` | no | _Optional_ |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.getRole('{roleid}');\n} catch (err) {\n  console.log(err);\n}\n\n//or\nplatform.role.getRole('{roleid}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*getRoleByCode(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `code`      | `string` | yes | Code of role |\n| `options`      | `ApiOptions` | no | _Optional_ |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.getRoleByCode('{roleCode}');\n} catch (err) {\n  console.log(err);\n}\n\n//or\nplatform.role.getRoleByCode('{roleCode}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*createRole(data, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `data`      | `ICreateRoleInput` | yes | The data for creating role |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.createRole({\n    name: 'Example',\n    code: 'example',\n    isRoot: false,\n    level: 2,\n  })\n} catch (err) {\n  console.log(err);\n}\n\n// or\nconst result = await platform.role.createRole({\n  name: 'Example',\n  code: 'example',\n  isRoot: false,\n  level: 2,\n}).then((result) => console.log(result)).catch((err) => console.log(err));\n```\n\n##### _*updateRole(id, data, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of role to update |\n| `data`      | `IUpdateRoleInput` | yes | The data to update role |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\ntry {\n  const result = await platform.role.updateRole('{roleid}', {\n    name: 'Example Revised',\n    code: 'example',\n  });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nconst result = await platform.role.updateRole('{roleid}', {\n  name: 'Example Revised',\n  code: 'example',\n}).then((result) => console.log(result)).catch((err) => console.log(err));\n```\n\n##### _*deleteRole(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of role to delete |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.deleteRole('{roleid}');\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.role.deleteRole('{roleid}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*assignPermissions(id, permissions, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of role to assign permissions |\n| `permissions`      | `string[]` | yes | Example: ``` ['read:user', 'update:user'] ``` |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.assignPermissions('{roleid}', ['read:user', 'update:user']);\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.role.assignPermissions('{roleid}', ['read:user', 'update:user'])\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*unassignPermissions(id, permissions, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of role to remove permissions |\n| `permissions`      | `string[]` | yes | Example: ``` ['read:user', 'update:user'] ``` |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.role.unassignPermissions('{roleid}', ['read:user', 'update:user']);\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.role.unassignPermissions('{roleid}', ['read:user', 'update:user'])\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n#### User Api\n##### _*findUsers(params, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `params`  | `IFindUserInput` | no | |\n| `options` | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.findUsers({ keyword: 'keyword', status: 'activated', skip: 0, limit: 50 });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.findUsers({ keyword: 'keyword', status: 'activated', skip: 0, limit: 50 })\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*getUser(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to fetch |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.getUser('{userId}');\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.getUser('{userId}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n##### _*getUserByEmail(email, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `email`      | `string` | yes | Email of user to fetch |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.getUserByEmail('{email}');\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.getUserByEmail('{email}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n\n##### _*inviteUser(data, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `data`      | `IInviteUserInput` | yes | The data for invite user |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.inviteUser({\n    email: 'user@example.com',\n    roleIds: ['roleId1', 'roleId2'],\n  });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.inviteUser({\n    email: 'user@example.com',\n    roleIds: ['roleId1', 'roleId2'],\n})\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*updateUser(id, data, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to update |\n| `data`      | `IUpdateUserInput` | yes | The data to update user |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.updateUser({\n    firstName: 'First name',\n    lastName: 'Last name',\n    metadata: {},\n  });\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.updateUser({\n  firstName: 'First name',\n  lastName: 'Last name',\n  metadata: {},\n})\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*deleteUser(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to delete. For delete user, you must change status user to archive |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.deleteUser('{userId}');\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.deleteUser('{userId}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*assignRoles(id, roleIds, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to assign roles |\n| `roleIds`      | `string[]` | yes | Example: ```['{roleId01}', '{roleId02}']``` |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.assignRoles('{userId}', ['{roleId01}', '{roleId02}']);\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.assignRoles('{userId}', ['{roleId01}', '{roleId02}'])\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*unassignRoles(id, roleIds, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to remove roles |\n| `roleIds`      | `string[]` | yes | Example: ```['{roleId01}', '{roleId02}']``` |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.unassignRoles('{userId}', ['{roleId01}', '{roleId02}']);\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.unassignRoles('{userId}', ['{roleId01}', '{roleId02}'])\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n\n##### _*archiveUser(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to archive |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.archiveUser('{userId}');\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.archiveUser('{userId}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n##### _*unarchiveUser(id, options)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `id`      | `string` | yes | Id of user to unarchive |\n| `options`      | `ApiOptions` | no |  |\n\n```javascript\n// example\ntry {\n  const result = await platform.user.unarchiveUser('{userId}');\n} catch (err) {\n  console.log(err);\n}\n\n// or\nplatform.user.unarchiveUser('{userId}')\n  .then((result) => console.log(result))\n  .catch((err) => console.log(err));\n```\n#### Multiple Languages\nYou can setup the default languages by the options once initialize the platform like below\n```javascript\n// Initialize the platform class with clientId and secretKey values\nconst platform = new Platform({\n  baseUrl: 'https://api-admin.scrum-dev.com',\n  clientId: '6385aff93780bfb6a84d85b9',\n  clientSecret: '9290993cce5eb4ba6fedafb7894de720',\n  defaultLanguage: 'ja'\n});;\n```\n\nOr, set the specified language by the api option param once executing the method (this usage is higher priority)\n```javascript\ntry {\n  const result = await platform.product.updateProduct(data, { headers : { acceptLanguage: 'ja' } });\n} catch (err) {\n  console.log(err);\n}\n```\n\n#### Verify Token / Check Permission\nThese are functions for verifying and checking the permission from the Auth0 token. \n\n##### _*verifyToken(token, secret)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `token`      | `string` | yes | The Auth0 token |\n| `secret`      | `string` | yes | The Auth0 secret key |\n\n```javascript\n// for example\nimport { verifyToken } from '@c2c-platform/sdk-server';\n\n// verify token\nconst data = verifyToken('{JWT}', '{JWT_SECRET}');\nconsole.log(data)\n```\n\n##### _*hasPermission(data, permission)*_\n\n| Parameter | Type     | Required| Description                       |\n| :-------- | :------- | :-------: | :-------------------------------- |\n| `data`      | `IUserAuthenticated` | yes | The authenticated data after verifyToken (throw the PermissionError if the checking permission does not exist in the scopes) |\n| `permissions`      | `...string[]` | yes | The checking permission |\n\n```javascript\n// for example\nimport { verifyToken, hasPermission } from '@c2c-platform/sdk-server';\n\n// verify token\nconst authenticatedData = verifyToken('{JWT}', '{JWT_SECRET}');\nconsole.log(authenticatedData)\n\n// Checking the permissions\nconst result = hasPermission(authenticatedData, 'update:user', 'read:user');\nconsole.log(result)\n```","readmeFilename":"README.md"}