{"_id":"@sup39/api-ts-gen","_rev":"42-2e01efa765ad0ba8dd8ef4850f7d0dff","name":"@sup39/api-ts-gen","dist-tags":{"latest":"2.1.5"},"versions":{"2.0.2-a":{"name":"@sup39/api-ts-gen","version":"2.0.2-a","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"git+https://github.com/sup39/api-ts-gen.git","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1"},"gitHead":"f85ae6f1281b6127ecd5106412faaa78fa5b0f68","bugs":{"url":"https://github.com/sup39/api-ts-gen/issues"},"homepage":"https://github.com/sup39/api-ts-gen#readme","_id":"@sup39/api-ts-gen@2.0.2-a","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JmXuisDJq2dgGJ/IXnj39VBbZc7PCir1+H3vragXmvcPfbviDsYJv8u2dvoscHzZU1JOpIaO5Uo38hvk4UNPpA==","shasum":"4deefcc43738f364290bd0e912efa7a1c8ff0f63","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.2-a.tgz","fileCount":21,"unpackedSize":65243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqYk1CRA9TVsSAnZWagAATWoQAI2Felt0Q+9l8nMybdIt\nbtegbO73neYsa8YOutFVSW/cGYcIyJVQMPdvlzqb+EXo2f9IHN/QTD/TLO5/\nE/PLik9kjBzmfQ2SN6m0hOmqpkqmfOs7KKNsQfQYJgTaRI6BRe1bWDleBFsF\nA27Y6+tiFH0iLzrYFr3Dh9dIXnvjEmmK/steRdA3MXrVHn10S87g54gTShlt\nwFZFt8dKu8A0AcAfwnZIzSmak2cNbSEjLd1D68r234Jt4Gs7WLLUH/txIChL\nOnxalASQi11nD5jXCzfJqNb41cNPA9zQ/kY76CqxInRRiSRmklHBE585F0Bm\nqP0EpRhljYRL9aYGCE1mT4abaWFNFEfBIIrKsNXGWDZXitL2vLERaNBQP3PR\nFX7Ek0BdWrTFWY5GQPM3Or/0YmryFXF/3Zdap6uhCbURzOPnZA0Ht9rAphJC\nUNfoww4LdWZfnv8/KpfzV9Z8AqlgR5kVtK9Uk0EL+kvK5RVQT1Ydi28KstY8\naelCW5vLy8Fs/HUpL+s2EGxUbr39/4mKh+7p3P7BtqWPyQ+y321Y+WGWBJTC\nINMRVodUzt3UKbJEDTrrjkbyHJWQC/VAQIC8aHLZWH+sRGFeAibgHmqvzTZs\nDm9O1EsW218WtR3qKZs3omrEVfdbNCb+8IEL/OQAF9rYRAN9l3Ap1eC//diZ\n/fRd\r\n=WB1H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkd2mrHXcL+lyxcvfL6AzpbRW5GAPxudGXnGNhSEIzegIhAOpsWnFqI+/jZME2HByJMP7dvLZYJpem4WUAFZfhviU1"}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.2-a_1588169012468_0.6059819012833032"},"_hasShrinkwrap":false},"2.0.2-b":{"name":"@sup39/api-ts-gen","version":"2.0.2-b","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.2-b","dist":{"shasum":"c0810d7362428c4b29922be60d92e330b9b5e6da","integrity":"sha512-0gkyspOdG5vjgPigIIRgJD2kvmQ7uHotMHM0r2SZOuqCQ9/N9+rVBCeX+I9T00FjB8XoZEuGkae6UYQkaAFIVA==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.2-b.tgz","fileCount":27,"unpackedSize":66326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJestbfCRA9TVsSAnZWagAA/TQP/2Xsoyntk1UG3B+BUjfr\njM4B9fxlYtOTVU4fr49YuBAmpwDxoRdvUT79p1a9wm8hlc7pqPlfJHyHX5rd\nVpAdZs5qMGLOSpOI9gvQGz5FRaEkM48aH6Ae2zesl0M/6R2GG1IRVdx5WDZ9\nLrZQzh8MhN8YYp1P8fWSAHS8A7ifefeLVWq3ctTDXdyGxR9rx3OsDC3Nwf1Y\nk9p6TZKEmkRq26WOJoGGp6zF5Q4ABwk8Y2x0YaOwOhza+dXjcHpfdBOz/7mr\nI3CLtevHonpWp3yMSIFjk6m8GQZGPo846V0rly8Au7jp6fXLdmoiIXxT6oQJ\ni7TTTRTNdKVvEat+G2yCX3oCNBnt9YnAGBa4LRbTL0mNrX1Sn54ydZ/8tc+5\nPDGUhhYgmZhPPz7Mhn7wLM3sBtE8gzZRcu0ieBIEAq4Mz9j+ibg4tUDfWe6Z\nRMgxgOFOQ5j+kkbKA5Mr6lyGUU0EjSnZ6HNg+NYuSP6uSLfCEARcDla3TOH9\nQX5AGrJ2l2+Sh4HH/qttktcvvMS8Zz1CiOg3ZR5jLGtYmEjzKNTCYXBqNhX7\nccRqhtHFYqIFU/U9VKqSbMB9nTK9Epy0CCRFDlClYJ/UD+Ud9zz+pC12xsgO\nIynFtJxoTSBzc5uWuVegyJ7VATgC/fKb2uRidCuOMg34E3WTvRMVu12uJmtt\n9HLx\r\n=kCZ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+dULea5CGnYc18oLsYsjhl+x7igYPLHtAaxNSYneZEAIhAJkf3JOuH7cEtFZMAXbvKCMqj7I58Cn09XdIwO1dS3gK"}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.2-b_1588778719075_0.3122235998269576"},"_hasShrinkwrap":false},"2.0.3":{"name":"@sup39/api-ts-gen","version":"2.0.3","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.3","dist":{"shasum":"12437c6eb1270b59ada60519572003848b929ba2","integrity":"sha512-pzXPx4JiRLp6FavQkCfpgu6ctdwWXkOytr7f1hipVxqbwoGXbay+j5FYyb3TaDCMGprn8mzTnHUTUYw85eU/zQ==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.3.tgz","fileCount":27,"unpackedSize":67137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexD8LCRA9TVsSAnZWagAAR2EQAIyS1l60df3HFm227Cmg\n42cPxV2ftdH7ogJ0BlxZ15ZNnrsUb0XTGBf9SqJ7VQFjOr2p/8X4he+zTXGK\nZ7B0MYD9+aUUj7Tq6i+qcVFvrWJHag86rUlauQVA+u/HXyH7BPvycgnJX843\nB/3cPQEJvkoBd1XQDKEiPnk8zFr1b4O0ZymvTiXmAuU2DdstpBqAKkisCG5B\nsdvj2nDbYxGVhugh+Q2FRSecLyAxN2QJjVaotIcXtC2UQx9vzSfw+2x70R0m\nKvhrz0/vtmicozQhJVwco1Onib04a4y4V/KGRYWFeZFiMySajQ8IhDMEPUpO\n5Qg2m8wIK1j4+q9NDuzcp2Lq2yXkcPQOMWvkXk4gPqXionkg4FzfbDWgBSfH\nGSiCHbq3+SENRw9LFdpoID//tlN+S0JPJ++xlgULb4Q6CJ2W5T2AuQGPhy8l\nxNSTjXlefSb0pK5VU0rpdha2e9Hss9w2ePTM1F6aKcFriLSycbPwvbmCxMRm\nyFk6QX2yPLa9cGxa3H25KV2oaq8TVP+MFJiv9PE8VWgF8wvbxsKeD4l56ihM\nOfKMp4R9iRyMOH4JI7Af9uwNtk0q/4943Aoh39NlghF1Mt8ACSBvt4S34UvR\nsZ9wZlYc0yuPL3zgDT4XyKKbL7HDaW/W1CiRszOea46W7YFB5SIiGzmAXbiV\nq8TZ\r\n=WCpo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICYC1erieNs9V3DzBRIKxeG7x3Nw0rMe8sJ9g49vvoemAiAsxb7dLMpC6II5CqFE4tQkQzydb+3/i5EmZHn+EwBZnA=="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.3_1589919498694_0.6319777166410341"},"_hasShrinkwrap":false},"2.0.3-a":{"name":"@sup39/api-ts-gen","version":"2.0.3-a","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.3-a","dist":{"shasum":"840b3d3710e2ea4a4d63ba75cd1dccfb39274c9f","integrity":"sha512-w0Go5aiMwtS80HqcL26gPZ+iS7tgXU7frGighu5sV2atA/q8qXuaLsxHGPShCraFiYY1xZpy/991pt3RO8W+7A==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.3-a.tgz","fileCount":27,"unpackedSize":67288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexEeCCRA9TVsSAnZWagAA1G0P/0oNpcWhDVDsgqOuyKBS\naJ2fmXssAcPRIKT6tRaa/Lfmu07chW21uB++G8s6OWcbWfrn8x4VDSZMFY86\nrDsqpCBfJlarZCNhDeQHW9a348AdC/l+bCas0nOHj2nAzX6Z0TVq6Zux7Cag\nv1kvvR7MurzvZ4xRCanH+yM8gbyNL3FlU3beThOU8tjtSUZU39edHJErRAlr\nfsMS0Z7bb0hvtslNOGYGBMtsEuw3BHIH5ydouA48j59S24jQLLE/jrucp54g\nezAFgxRkmyaAq8qIKSk23SdG7pHMIuJd8k+u4hififIqVf01wG7g9//S3EBb\nXKCyMThz41V+yxjhTtZq5jkdrzv2xnqaQqW2apblA5XF0P/9wDOwrlWg46cp\nKo/zZCPs0nm/rH5gR5+pduwwUTmksz7Ai0feXhx4ObuhtKs+YE1IIUC/zkg0\nezkVVKca1REJXtDnRiyLglSxY7kkZ+rXRDVLXOV7HcuWqbS1ekyHZtLXspIi\nJKZKjMoKjza9N7U1nhG/i3Qp+9krc5/iTKeuAjihXmjs5upWuX7LT7fgUfrv\n67fzV5xY34mLqHfzuvWyVfu/n3JM0qtrqsm0kRxuwJH2tC/wHSzG4MDFixOR\nkMdWz649ij1ODPGkDuH/7sjg1dYzW2/B6pHSQYfYRcfPtvdW7UYUasD3AthX\nLlW4\r\n=t+RP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbU5cTM33kUbh+t8IV85OnJV9wzjWziGxJTjOYTupNGAiB6Tdqr0EUFOqEPaXuLQ0VkLEaD187TGnU2JqsG8EzWzg=="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.3-a_1589921666386_0.08641460319661753"},"_hasShrinkwrap":false},"2.0.4":{"name":"@sup39/api-ts-gen","version":"2.0.4","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@types/qs":"^6.9.3","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","qs":"^6.9.4","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.4","dist":{"shasum":"5778667f8533fc19a7b7a116bc1c2dafd042c2ef","integrity":"sha512-K/4E7jAOY/f4Gzj/F22tBeBJbVHvZhM0iSSsvC8hUvO5zFWe+i3lD6K3JoBVRhMqn07Il3zZ1jAibXtcTucqrw==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.4.tgz","fileCount":29,"unpackedSize":68246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyU7SCRA9TVsSAnZWagAABUsP/A1/Vi+AKoEpnQsEznhk\nXK/O7xxBznLCjCNgtOGcNyl2EzBU2g6mt3dHN9IHvlHq9ywQ0ekadnSPozQb\nqPZS8oLoGPlfr5TZt6n4gUTfI+b0B7+orCCUJEU5tuk8N2rNwTqPZU6Cu1wU\nVCG+VMZXpZWU/+k0GXGvYKmpkuX7ASvGVcIIoqdXt6l3IAiUm1GCnG2EDLMZ\nNLcm6RnO+Y+WNkf8zWoUkHIGJALoxqXQh+rewTH3bkJX6+SZB79u/XvncQZH\nlfdVtiO565C4OBGzK1e57G0ckFnTcO7ar+bnKTww4dZhyYUy6ZtCAhnBAxW6\npvAHaEv1qQO0d1TVA09Za7FUEL/DJ5yTG02uaVCzx6ztIHrD6KyldJCUOt/w\nqoqOB1KpQ+n0h1wo/YGznnFqkV3o/nJm5WWEQ+LxCSbDudq5ig/L4atF//jg\ny6fhk6+Qr+2JIN8NnVQ9S81nBoZE4ORtDV+VxD+Q9bBYMVNp9DR5umQncSiF\npyprjlZxS3egxL/AMqR9AAuoggRfHZ413zMHXkScElFo/JqbstZ8yuEGMeT4\nSl36SGU61u8KHI4bNvNyZBFsO0LIQrFU6XR1tjNlu8fbiO2+yaUiJ70hrFcZ\nhbzNlJgmepjYw+p63qWRXIDAWi7HIbd79UVVE6coSW1ST4ln2vUYCCCplKab\nSLfd\r\n=k55d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5FTc1hNyWGNmm9HNaqqRYRCej2Sovr98incQfhP3kRAiBqfglKzvL1BRIuXUbSZ2z0Igu+NhAaFIVyI3kIjozxsw=="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.4_1590251217699_0.05764877528411616"},"_hasShrinkwrap":false},"2.0.4-a":{"name":"@sup39/api-ts-gen","version":"2.0.4-a","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@types/qs":"^6.9.3","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.4-a","dist":{"shasum":"711bd0240fa44fc289ea264ef96dfc97ec6042ad","integrity":"sha512-6dAYochp0vOf5mUCtwMUawT4ZlRYJpp0qI2NtpTR3LrbH9IyfWOyV9/S1okcwu7Xo1ae9foLFFWJJ0aV1yzO+A==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.4-a.tgz","fileCount":29,"unpackedSize":68248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyU+MCRA9TVsSAnZWagAAekUP/iHo+5LU44GF0/YbcImk\ngl00Z/XRxzXaBnRBHya2zj1bWfn6Fxz3ErueqGG2hUYT73EJPFe0ie3rXWiA\nRHklqFVy+l1SNXkJho2PE+CFpUr6vlnm1nOFjVZRemkA+5CaysKAFufZadOn\ndkb4BOVmn+2PabkOt5jcP2ny/0V+lCfMiHA6WySZDXTY4zhQDpZBELW8MRsE\n5n7Ou3Tv5Y2MpS767ivAytkh9FoudcsFtNHKMr3LVGimJftL1Iw87Om7pUeM\nFoO12lM43P6HHEMIiNEW6fdCkCEV97lWZKeX1Wc8CK67m11yVCRn0w7OVnEs\npDAiCIqGL+WKU+9HACgQPRqDz+d09tPP4XdLYcN2BH5I6/5vjfU5K76l0xiK\n3PMsLlSLY3NwLObkndVVRKQxLNbfdosR3yVsUeACAcnoA2XTxt9F9n4CXq4x\nmLpV/rJC0hYXs0up174mhyEMm2H44fIe+3aAQpJ213q+LiuQDlO8w0k2/O21\nbdNQ87XlbU799bFVYlZu3Y6YwhmU8Kwb+H5wrRj9eE+ZkCPC2SEretd/osts\nfuV2xKTA2oYKPcwG28nJIuRzLR14p2+o7KNeSeM1ijAJtKtmvKoy08/f097S\n9lSeqk2GHqhlEGEfbUE4ODZJvZ3APXJytZhA/Ihhqys4PD0FD25St3hwYvHs\nhsyk\r\n=yvrP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHngQ+9noLqo9VMHcEtPqQLTzb40jtAlK2D0gPSrsFarAiEA+aKowDD8MpBvQ5HGmL3CG8DlI1EHGDdUBOs7gtiJzfA="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.4-a_1590251403637_0.07193462087698732"},"_hasShrinkwrap":false},"2.0.5":{"name":"@sup39/api-ts-gen","version":"2.0.5","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@types/qs":"^6.9.3","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.5","dist":{"shasum":"bfe1ebc0e06523d2982983973a4cca6e53c762b6","integrity":"sha512-EOKMJ6fO0xFuESqSKMTJPKHabworlU0QXHxPiW5CvYujHBYwo1AWXfeoM97nnD2q/6GUpYe3lmADKopyEbV5IQ==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.5.tgz","fileCount":29,"unpackedSize":70037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyhDUCRA9TVsSAnZWagAAmxcP/0M1TuN99bqqAUKXUSIT\n3JXaK5Hbo5vE1Tm7GgKgIkJv1TgeJdMSUW2+rtujbx7gayKeysY8AsQZRu1i\nBMFEBnq7JiGfx/yvLPWTdercMWhqSQR9G2hXz1UAkpjb7VKXtzXbeIyJzLN4\nBP9SytOk4yoXE0SbX1SSERbM2EYkG7DZr2jd/g23X7MwDVjmimDMStftfGwC\n5TdTAIaIaP0KZpWlDxtUvviFivxAS/voAZXU+0el4DEN9ZgO537FobUehR4Y\ntyz9R7NJ3ZpLD0gLczlXUOZM43BKuW0glfgmb5PZVyMUywCO/QsWkDFz3MLw\nbhEzJw5s1k9LBstW64W9wIAXKi71nt0y+gBGDGmHAUCd+spTiz1HCVordqoz\nDnh29fkCPuOi/tG+MqDpXiUWuhQQlgBrPMUQb3IVrgyHWto/gBEU5NjtqAhn\nOFArrTEgoSEqmt2j/IzLpavi4ZNPDKl2zuKlWJRyPqNAw3SCG3qlQt/OuDSN\ns8akW+Zx3ww2D1WYS82DMt56f1zGEU5ByZuRubegKPhU/WRkfftkkyVtAe7c\nwxf9WvwpIY7Mt0V60zZh0N+8tv1bjosHNmCpmmWTTLkbNVANm4mxJWNPAzSy\npTFlADwGYtaYLuXRAv+LdCBkClzfJAqOTivsJA7sJu+Vc1SyYEtLPvs4+5OE\nRgz5\r\n=GXd2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBg5buxdNYWGHXPzypWwfZUDDQhwMqh5O2oDKJz3ueX2AiA1ND4KaCgtVItg7zsXd2PogMkvjPTYcVSBJ4qKRHDoWw=="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.5_1590300883341_0.31298612592653297"},"_hasShrinkwrap":false},"2.0.6":{"name":"@sup39/api-ts-gen","version":"2.0.6","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^13.11.0","@types/qs":"^6.9.3","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","axios":"^0.19.2","eslint":"^6.8.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.6","dist":{"shasum":"17e640cd3baed9112e876a676801e064f82662cd","integrity":"sha512-jh3q4uMUxtPYnW6JdR+136dYwyFFiD01eafGkLhcQ7FYnSdQunoSnFQ4LvCMD5k6gdalt9DPiYxSlqsQ+57nuQ==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.6.tgz","fileCount":29,"unpackedSize":72758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOhHQCRA9TVsSAnZWagAAm2EP/iGsjkfWkeYNuXIBGLtN\nezZ6Bpq3UHrpyZpiWiIBkb8wFo+4uMU1JRT2iCZHKJTQDPmezLt9S+i20R+J\n/wthEcExvvSmUccc8CmwhxdgIUtl8oz+TYB7SksFiRrtzlK9++H6zj/tBp02\nstxztDG8C8j0rSgvr9B5+hmhRxZq1/KzCVZW4IaczC7O6P+S6D7zQ8ENTc02\nnE5YXUFtCV0oVCfjC9Du5xx5l6IEn0hF7PIjR9vGSifgwGnaGjm77gKxW1Dn\n/NEd6Zequ9Ea4FmRsOUCT8W3zG+33/ncNsV7CbAK4LXpXtqWUznnKCs66gwH\njIY7M43NzNpd/YtRM2GCEoqqcziqieeprReCGEHTZVVcEp2DcN7OtkFa31hY\nTWtbYihaPbToau0etpy72svwPOr4aaHwbM7dBbrdAODgpGshCbxhZeeN/u7L\nsx07w+tda8mytEOuRUuZRvbidXNbicPOtD0FGPnTZolfjOTZr1Af5OPuEsu0\n2Q1/DFvxjXyd1yniLN250Yrn5qacLfRPf8ILM5kMD2cRayqX9oj7hP2TUWGL\nuKMKo4Rm4oOPhR9yjmxs1UoWWhfc6rtZgnNMQpVoSaQVXtepnac7SwIS1+p7\nFQqVI29e1C0FM7IFl7k6mgNKSyEyXOhf0tbcUUo0VQEyjP4k6wCHA2ImsndN\nca/H\r\n=s/1B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAY7YYv/mGdw9/kWNsJyiBFrTURU7xszvhPbY7vFjHs/AiEA+15rKnSDFIfTXLnmS2FeXV6vOi6cTpOoKodsOY5laE8="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.6_1597641167899_0.3203486148253232"},"_hasShrinkwrap":false},"2.0.6-a":{"name":"@sup39/api-ts-gen","version":"2.0.6-a","description":"OpenAPI code generator for TypeScript","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@types/js-yaml":"^3.12.3","@types/node":"^14.0.27","@types/qs":"^6.9.3","@typescript-eslint/eslint-plugin":"^3.9.0","@typescript-eslint/parser":"^3.9.0","axios":"^0.19.2","eslint":"^7.7.0","eslint-config-google":"^0.14.0","typescript":"^3.8.3"},"dependencies":{"js-yaml":"^3.13.1","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.0.6-a","dist":{"shasum":"7adc38cc71b503f0f41cccf36a9572793c681adb","integrity":"sha512-DRRBXDD/WN/hp7acciyu13NC+/93iYNTkdJ3jjAOxNDuKLqg79X56fYMD/WQYIU7P/czxzKDaE5JYoVeM7IRgA==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.0.6-a.tgz","fileCount":29,"unpackedSize":72758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOhKTCRA9TVsSAnZWagAAYt4P/ibKYQ4UeUMeFDsE2StX\nU6CMHIujd6QBBojEZM9+BV42lai/g9+QtlpOW9erf6IOG3RWs7TDEF1Kkob7\nxMzALbUZWDHTm7p8gxKWRmoRf30UDUyQJg9kC48OyiXN85YMmTSojAkkiQGT\nBfjRXhmN6AQd8wBUzt9351qeG65/qzN0yIxmavZmwKRj8RuGmnXk4IU9jzlz\nfYZmqgbesomI3//qnKgVkD669OsoobblgJBgIJf1RhycSVfskB69FnTs2UFm\n6qJNTCvFnQ1rTqz4v39A0nZYK7z0jff2hC79FQJrjapfeL/OSrhdASygy/Xq\n98rjrCyufZFDUc+mNUmdpqhYFbzNMuDqumdGDF14QEutdnwZVaCmcW+CtJnO\nuJkzOjbE3twDK33KyCousJA3uCZUxxrt6AcAeuijKHTribLcAZ8s9kRZmesF\n75dt+CSpVpLBMuXS6EE2uYpKHfCK4JrM7TIOEVCL9hz75kaIFTzIenVjP3Nn\nuzOZ523MXLnYfgUtX7WEuroKJjPLyG8dXiEPPxpxGOhZFUqZoAtzBuHRNcvd\nzwcAPDpQUJj4KK0lt15d4oIYq49iFeStVkOHQMgPJOmptRtOaDbIYMkIurnu\ny39ErGPyGbatwayjsrEdkcPZqjv4nzpt9uVK979igAn5ytqIIX10OipfkZxB\nkERY\r\n=SAi7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7sVCOtq+yhfqwRsqmzgVdU+hZG2umnD3Dv77de/pJvgIgTWxx+2T8RoYDT7v3/nAu0964SLp7h2Y8YIuFOn+CX2E="}]},"maintainers":[{"name":"sup39","email":"sup39hakujun@gmail.com"}],"_npmUser":{"name":"sup39","email":"sup39hakujun@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.0.6-a_1597641363204_0.30001605129194053"},"_hasShrinkwrap":false},"2.1.0":{"name":"@sup39/api-ts-gen","version":"2.1.0","description":"OpenAPI code generator for TypeScript","main":"dist/lib/index.js","types":"dist/lib/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@sup39/eslint-config-typescript":"^0.1.0","@types/js-yaml":"^4.0.5","@types/node":"^17.0.41","@types/qs":"^6.9.3","axios":"^0.27.2","eslint":"^8.17.0","typescript":"^4.7.3"},"dependencies":{"js-yaml":"^4.1.0","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.1.0","dist":{"shasum":"ece9bdf639822559062a9f1c16a33a7753dc52ff","integrity":"sha512-Tr+bPJz7FW2HKYTKpRFGD8/KsDUqPAK3VgA3zG5R2CDldw6qgu42WvoGT6LWFE7BgY0Jf+YrbVi13CReMQZC8w==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.1.0.tgz","fileCount":28,"unpackedSize":75581,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICm3YG07YgzBQUbrzljKd4IoVSZTWdJELp93Zr6+dod6AiBSeVwcmBH+8aAXCByAoNql47Zil/BFEw+nSUl1WMlrBQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipwtsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMuQ/+Jhn4EoDcuYhnko9yJZcyQG5hH1PnF/LSPn9HH/2CBLf7J/7o\r\npOP8+lEKmZPKfrrqUu1uwzKueQm1M4J0fGtzEVFQq61lVDLPEr7CuPImFJrz\r\nDxJLv8ypVQA6ioODauibIJ3rjNa6/65JI+3ZZHnNZETnC8zrggLRPmdTFrq1\r\nYiZUMLfQ1rbpN4YDkuI/ziQQ9VY9HxOe6Yt7iQGKQCFE+WDQmC9mvQuskZ9d\r\nHn3fHEKGPcum+XJZo3ecH/HBxxLgvIbX3n5kOvFeKUzQvw7ClMbmT9c4+cf3\r\nvL5gSyxIXx6wJW6f5h9OslkJXx1dBwqi/k92cDxoMLAFuiMvo3p3e9qlTU6g\r\nO15c3pgi14q3kSi8u8YUU0NC2D0xM+EVyGgDJ1mvbGFHA+S3I12+REJCzFfs\r\nf69z/usYox3NtHCZIYxjVkRSrtGYFOSeBs+Z4RRYUzUYP5b54xUPnWC0ygsH\r\nRUtNmxS4N7ocQWX3l8Ln8Qvu/ZxCm9JjrEFMa/bdmJIg3y24dT7YdWn97Ihg\r\nM4W4xRovdvTM36NGlbpb0QeNKl1I4XuosgJ+K/dJOY6feCgyB04DSJQeAl6y\r\nSVDB9ItS13dBdPcz24C/Q8UMNJ8E/NeXrz6aeJk8qQHFPWdZFOLAH4MDMRtR\r\nYCIkFPKs9kizkVLWWp7J0/3KGlQG9c2+v54=\r\n=eOOr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sup39","email":"dev@sup39.dev"},"directories":{},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.1.0_1655114604075_0.6028236713414232"},"_hasShrinkwrap":false},"2.1.1-rc":{"name":"@sup39/api-ts-gen","version":"2.1.1-rc","description":"OpenAPI code generator for TypeScript","main":"dist/lib/index.js","types":"dist/lib/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@sup39/eslint-config-typescript":"^0.1.0","@types/js-yaml":"^4.0.5","@types/node":"^17.0.41","@types/qs":"^6.9.3","axios":"^0.27.2","eslint":"^8.17.0","typescript":"^4.7.3"},"dependencies":{"js-yaml":"^4.1.0","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020 sup39 <sup39hakujun@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.1.1-rc","dist":{"shasum":"0a02bb7e3591c9d783fd3fb6cae47505758064a4","integrity":"sha512-U61tLZtW6BAiVobs3tUwMoE2uQE8LR3FjPzD2AgUePbadVPsX05A4EJteKDVOrZVGH1dOkAQuLBvv7uQ6TO4Cw==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.1.1-rc.tgz","fileCount":28,"unpackedSize":75645,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq4B92it6dN3fwYNDQB8ovUE2eD22a4IQDxEudjEvqOgIhAIF5js5yXfArvRIpxhezeR+TMam4B5uH1ULJOyPCoOnp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipykgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyWA//S5xM0Msy1ScpyDSAzw9ZeohSdvHpwMBwLQntlorRgpasTLY7\r\nh8GeZkUMz52w1LUkQKSBx39klMiJQ/+ENUFiOcUQIhDKcxwWqL/6xKGAV2Tm\r\nKxW6NRqWW8qmlDyeuhxKynTZzMbh9yxMfFuJUSQg8o1J9uhiLlR8llLpqS9S\r\nnJFL7fWKLZf9eFOsEF+yuvYaXv5n8Vom8OYMn6FpY8M22BXi461+E1FMlWUc\r\ngykThns+z+KewSeadzPRXnMNPGfuWaG873XRUMZqJYAmcD+6JvaAspfNqrb5\r\nbg3K+pBdSgmumbVGeMJebGvT9qiTS7Mphmly8E/FxMarWdt48ypxsh62q6WL\r\nifUljFxv9iSjmyA4FjPcaA32Vj1Dqq/G/FhID+ctYRBgd+Y1uiZ4YUU7GC+Y\r\n4FJ9Cz74mDjxhrONUAtPVOOTvFAhNpvNNG60L/wKRauthcMaiVRb4TZSEi4k\r\njPN8wIjb+q9Idyxpi6C8sdm237JBFNxhbMhtO8qsIVEQuWusMGGZ5kdW4zke\r\nKV3T9uaSjxjShuA/sXt8Kuj4MtgreMMl2TK0TGacV8QTTk57BRdMODLuupXj\r\n/PZTcRTO9ilbZH8b/kuL/9VobSFArNoza3JTTg3Jb7KBxLEhFlzdI/WcJ2G1\r\nm4GZ9Np1k2nK98UAp3OEaeZPCuDQONi4F6E=\r\n=oo+A\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sup39","email":"dev@sup39.dev"},"directories":{},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.1.1-rc_1655122208001_0.9231771990471946"},"_hasShrinkwrap":false},"2.1.2":{"name":"@sup39/api-ts-gen","version":"2.1.2","description":"OpenAPI code generator for TypeScript","main":"dist/lib/index.js","types":"dist/lib/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@sup39/eslint-config-typescript":"^0.1.0","@types/js-yaml":"^4.0.5","@types/node":"^17.0.41","@types/qs":"^6.9.3","axios":"^0.27.2","eslint":"^8.17.0","typescript":"^4.7.3"},"dependencies":{"js-yaml":"^4.1.0","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020-2022 sup39\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.1.2","dist":{"shasum":"363f2d8608dc7a9e0df4ca785bc1ff42d37da352","integrity":"sha512-M1DUXlpaMTbRdoUpc4gQAHOZ2N81z13Is9C6oa5JFno4n3HvHYnEd6zMUgTUPBjHemNbcM/7IGqSqouc1yHkNQ==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.1.2.tgz","fileCount":28,"unpackedSize":75736,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF3G6Gl4NPHatMPlgBItARhjk8T9c2+S1jc9sqKEniKQIhAKwhtBuUx19FoW5Wv2yhSWLxQ/Mrad/UqgpV9SWIY3i3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi27GJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRTA/+KtCLWFeQfirbmbUyLWMvVVcBhOlNAMHYIL4r49lv6vrp5nDd\r\nR9X25M7cfkllNquVYdvYkpqtuHMjlKimuQCauVUkKGtoZ/0arrWk0H1xRQIF\r\nys+Ycg7HrQhJtvgkd/cU1uukD+WdM+DemJ5UFU6j3ROOcSiGDOwsB3mErxO+\r\nsQsCyzbPkylmHSCccmD5RiwqH7t3HzNUSaqK/qt9NY7N3/LqdoTZryQOo5xu\r\nQ9AaxGHV7H36qWq7MaVujh38KtbCYCgr1WYJHHAaoTNb5LgpiuHztk8hx3gp\r\nMD+7T6SSI2iD6QTcVlQ3nuaXeFU2Fu9TLZDcZ3nlZ9Fo+4k6g5rMLVajH2vS\r\nvH1Ro8tajG0Ky5W6RiK39uZrj9nbpk56ENPliSB7xQQDBcK1gNbm7A1xHYGI\r\nrEl1PURragixSj4puYr0OprafrCqR3mK1QMmRwLqs4mKdkM5KSDiYvsGgsvv\r\nz6vuegiko3lyr8qPFFfYO2YU119Pvc/Iaab639uW9+a0XTXhvkHfUwvP5Yp3\r\n+JpwxYciInb31cOPUXNd8q449T84ONviBX7CDNUw+6vnlZWo4RFX5xM2mlGB\r\n8BrG9nsGrnEYU4nD7mockxgpO/GxC/joe7YAFyKljqozEhm2JLB4wxCRGbQ3\r\n77juFdV5zNaGH3Pn1wTesOf8A6ACWc08xg8=\r\n=KAOX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sup39","email":"dev@sup39.dev"},"directories":{},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.1.2_1658565001275_0.6133675060562669"},"_hasShrinkwrap":false},"2.1.3":{"name":"@sup39/api-ts-gen","version":"2.1.3","description":"OpenAPI code generator for TypeScript","main":"dist/lib/index.js","types":"dist/lib/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@sup39/eslint-config-typescript":"^0.1.0","@types/js-yaml":"^4.0.5","@types/node":"^17.0.41","@types/qs":"^6.9.3","axios":"^0.27.2","eslint":"^8.17.0","typescript":"^4.7.3"},"dependencies":{"js-yaml":"^4.1.0","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020-2022 sup39\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.1.3","dist":{"shasum":"8a014bf4a7824be43d383bc02861e0ab6406e2d9","integrity":"sha512-nTCWKXY7A8ThtOKrLop2drTYfTkInoVx1fdQr6E1eVn03m1XW4gacA0LzarpbPWjZKNyLE7bwFk+tleBdAICpQ==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.1.3.tgz","fileCount":28,"unpackedSize":75964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgubD8Sl37MH9aVoptLXpAkkoVYQ4Niebzdb+G2KktXAiBbvq5ZmSa1qV7XdAhq/YWkJAyOq6ljU3/au/gwedB2lA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5RYEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkuA//c5d0ZMNw3xTuZSwixoqAcwaPwwgcQKNnBySpXvP+uuB5P/4h\r\ny+cuhydSaxN/AitUi/DVYSp+vbqRjDlbdFEHbWEBLJuk3DApR4Y3HmyxiPKq\r\n6TOAD1uSxu5RgRTcXFbCSqg1gPOMDLHNG37lyJXwh/JjkMpq74q75cVB2GJH\r\nREg040brrVyZfcPs8gLQ1IeoZr0l3Wk+GonT2ZvcXZDx2iu2DACpaHqjYkL5\r\n4hTm7bCDBMdBZ17FMXnpWzIxA5fHHUOAW128C/CTFGsE/9kM0oPkz369CkEO\r\n+pVg/og80T6GLM02KnvlfsyM1eupToKlsv9HTcQ23NHX5n0wzIE50X+UJnSe\r\naowIaHQWk093kPAF93OgQJ/ZjyOAUYaOIqBZ34Jpf/MB73D3V201VG6V9Vnf\r\nrwrx6IHUEGCA0C+nBgszsgCXjOYD/IltvWv3MQWHbbxdoGp5AyyT+rKCozOh\r\nA3SEDQsLyoJ6jIdck9kEGbUmANOILWh8MdRRKc3On2xWspO7FzuMULaaywcZ\r\n5c/J1u0S/SA7IqbNfLBcVqNZxumEnA4vewQeJxLAQEJ/19gerIdFkoqDVx1H\r\nbpl1XKmaikZ5VLvl66giLVHYSR3UR3egg24/JLyOJ/UrGPY+/ctYVAsa2G9W\r\nuBfnFtJlbZ1CiJrW9vtrV3p6dlQiPehXrM0=\r\n=n4A+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sup39","email":"dev@sup39.dev"},"directories":{},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.1.3_1659180548127_0.44869231582854985"},"_hasShrinkwrap":false},"2.1.4":{"name":"@sup39/api-ts-gen","version":"2.1.4","description":"OpenAPI code generator for TypeScript","main":"dist/lib/index.js","types":"dist/lib/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@sup39/eslint-config-typescript":"^0.1.0","@types/js-yaml":"^4.0.5","@types/node":"^17.0.41","@types/qs":"^6.9.3","axios":"^0.27.2","eslint":"^8.17.0","typescript":"^4.7.3"},"dependencies":{"js-yaml":"^4.1.0","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020-2022 sup39\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.1.4","dist":{"shasum":"85ac1cd0182ebf919d23ff21437f3b2eca41cb4b","integrity":"sha512-JHv6fnubm9JSjTuz457OnOwfPjVe+hYyS11knUd82myUoZduYki+Qqb5C78JO5oG54jqai06er0s9cS2LjQTLg==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.1.4.tgz","fileCount":28,"unpackedSize":76051,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfU14AoQ5Z/+CxW64DA9VmURh6a/BM5bYD1QiDJka/vAiEAmwcUCMOURIYALAAtssjTOCEwWaMyNo/VzjeT/MaHdGA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9qzXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDIA//RuIUfd3XqDkzCMhTdv8v0eTqBg6d/ON4AZa6uHhf7W0gYr12\r\n+3vSYsNm6t7BwMz1brMFM10A9R8WNw1aUbfqV4vs0z0D1Z+RCPFog/c5NMZU\r\nXzPsPUfg1xxDtsdiCgh96MJfyIe1+ml305mWut3AKtWoxJbgwLF2ywAuNntd\r\n8Ul5aDRy3gzgsiphfE6lTdPKjKjjvKbp9pLOXrevUgrMPHnjVG6DdSIizwnJ\r\nDvMyxTcj8wqzuUVXBBce/1eSYXBavbNSE30nCZqBCxMdVCjnEgSE8B865Ln1\r\n2imSh+cWuMeWlutBemle4keopPONgz19Js5aa8xBxj9oeWZy9uFb0XQVO821\r\noF2WC/SRQWwB4YKnRRNo1W26HsEqssdR1NKj2HEcpfYrtkc0QEyoVPPOqcX/\r\nZ7laGTM4esfcGZ6BsU25G+9irbBWIow7YB9jObYaeSPeUPgJS1UEMCef0qKl\r\nCp1SE2EAjAIAa3mLs1rn/uEWcTafE0xfK28lKoRlUWOFMSredInMzzIlI5Va\r\nsdqK51zt41e0IASWjomlehpeLZWvAKpnAJ4pFFiVOlR4SVJhkW0X4uJVGDQK\r\nDzxZjszx9fZLNP1aQPboaVttrIeLaxxt3k3BqQMcezrGXl3VbL/3oj8SG9Bl\r\nx21d+xHPI3qPPtDjvfAGkyk3fD3PjhQ6BBA=\r\n=h8UB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sup39","email":"dev@sup39.dev"},"directories":{},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.1.4_1660333271107_0.5329254394631484"},"_hasShrinkwrap":false},"2.1.5":{"name":"@sup39/api-ts-gen","version":"2.1.5","description":"OpenAPI code generator for TypeScript","main":"dist/lib/index.js","types":"dist/lib/index.d.ts","scripts":{"clean":"rm -rf dist","build":"tsc","lint":"eslint lib bin --ext ts --ext js"},"author":{"name":"sup39"},"license":"MIT","repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"keywords":["openapi","swagger","typescript","codegen"],"bin":{"api-codegen":"bin/api-codegen.js"},"devDependencies":{"@sup39/eslint-config-typescript":"^0.1.0","@types/js-yaml":"^4.0.5","@types/node":"^17.0.41","@types/qs":"^6.9.3","axios":"^0.27.2","eslint":"^8.17.0","typescript":"^4.7.3"},"dependencies":{"js-yaml":"^4.1.0","qs":"^6.9.4"},"licenseText":"MIT License\n\nCopyright (c) 2020-2022 sup39\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@sup39/api-ts-gen@2.1.5","dist":{"shasum":"27b30ceb8b2fc1cc92d28836b5b6596af679d3fb","integrity":"sha512-mAMnfkT6vpX2nRs8MC+jzrWc77nWZKq58HEFzTt9S3Dm43Ur094fry/4cZ+fdqCStZCvNgC8W60hZHinoGbq6g==","tarball":"https://registry.npmjs.org/@sup39/api-ts-gen/-/api-ts-gen-2.1.5.tgz","fileCount":28,"unpackedSize":76556,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFaXYrRxGz58+K/faIcTvpKGFhRZnvs+QKpqPbOAY6+1AiA3eM6bHK1wX0WraWc2dNgeaY2bGpYQPf7ilvpx00wqeg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCuTAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3Cw/+K84Gr757Ip4VZqA167y866jYkmQ7hJWMKRaabqS2RhkdWfA/\r\nuL8S6iMyVQdEt5vQNGjZI6Bxvx668OFbQ9toJKeF3pVMXMpsfuJ1oujB8tUW\r\nb0On4uXRVbCxkKUdfViF0erJqZAGbcbvugzBm06g/pDPawjYdRIMxIilXDVS\r\nANyoy8W+qpovtvuI6kY7wo9wevTn1f/zlS0zGoJ43YvN25BeNyIeyIY7+1p1\r\n1sUYyOqjVq4Ei/zydE/OTyNHBIlye1xOhdH50pCPwjMac8c65adPywVz8+yB\r\nXi8LkiPoeCvlHoK68YaIN3a+H8CLe+6oEGLlGelhO2GcBpnrYKv1SzLaMDI8\r\nhN4e3UT5uOTCdwjqH8qMWIS2FL5FCA3z2ys+2gMWne79Kf8Jo0XC8SZ4Hqm2\r\neekmGOffMdt6JIrHIzhEvQT8GiM57oZj9qu3spZP+s1pI+/hgF3cLWPEmIKY\r\nb7okM3hzWg6tpa3n+DisK+NnfDep7JdbLpNMelGsT+79JcDoSVGdqUEHaGCA\r\nP8FlBakcPfbaFfwJjbkIDggMFGVVxsWtw9Z99ylyBPgPERP10aGhsDcERtka\r\nIyG3X490ixlXWrO7sYES0S21LY0/df54JQSu+WOrOtVa6Zb1y3gz7eVRatU/\r\nkFZeUq0bWv9/MOaqsqHNTu9V/50lw/SA1wc=\r\n=oT9x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sup39","email":"dev@sup39.dev"},"directories":{},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-ts-gen_2.1.5_1661658303873_0.6605398749477451"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-29T14:03:32.417Z","2.0.2-a":"2020-04-29T14:03:32.632Z","modified":"2022-08-28T03:45:04.169Z","2.0.2-b":"2020-05-06T15:25:19.207Z","2.0.3":"2020-05-19T20:18:18.836Z","2.0.3-a":"2020-05-19T20:54:26.491Z","2.0.4":"2020-05-23T16:26:57.864Z","2.0.4-a":"2020-05-23T16:30:03.774Z","2.0.5":"2020-05-24T06:14:43.492Z","2.0.6":"2020-08-17T05:12:48.011Z","2.0.6-a":"2020-08-17T05:16:03.333Z","2.0.7-rc1":"2022-06-10T17:33:43.121Z","2.0.7-rc2":"2022-06-10T17:49:57.887Z","2.0.7-rc3":"2022-06-10T17:56:49.592Z","2.1.0-rc1":"2022-06-13T09:44:29.684Z","2.1.0":"2022-06-13T10:03:24.282Z","2.1.1-rc1":"2022-06-13T12:02:05.642Z","2.1.1":"2022-06-13T12:05:08.727Z","2.1.1-rc":"2022-06-13T12:10:08.212Z","2.1.2-rc":"2022-07-23T08:24:42.408Z","2.1.2":"2022-07-23T08:30:01.554Z","2.1.3-rc":"2022-07-30T10:47:46.447Z","2.1.3-rc2":"2022-07-30T10:52:09.952Z","2.1.3":"2022-07-30T11:29:08.319Z","2.1.4-rc1":"2022-08-12T18:42:32.622Z","2.1.4":"2022-08-12T19:41:11.296Z","2.1.5-rc.1":"2022-08-28T03:35:51.582Z","2.1.5-rc.2":"2022-08-28T03:38:07.277Z","2.1.5-rc.3":"2022-08-28T03:41:39.580Z","2.1.5-rc.4":"2022-08-28T03:43:02.393Z","2.1.5":"2022-08-28T03:45:04.083Z"},"maintainers":[{"name":"sup39","email":"dev@sup39.dev"}],"description":"OpenAPI code generator for TypeScript","keywords":["openapi","swagger","typescript","codegen"],"repository":{"url":"https://github.com/sup39/api-ts-gen","type":"git"},"author":{"name":"sup39"},"license":"MIT","readme":"# OpenAPI codegen for TypeScript\n\n## What is this?\nThis is a TypeScript code generator which generates TypeScript types and interfaces base on your [OpenAPI document](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md), including\n- `schemas`\n- `IHandler`, types and interfaces for both server and client api\n- `apiRouter`, server api partial implementation using [koa router](https://github.com/koajs/router)\n- `ClientAPI`, client api implementation using [axios](https://github.com/axios/axios)\n\nThis tool assumes you use **koa router** for server and **axios** for client.\n\n## How to use this tool?\n### 0. Install it\n```\nyarn add -D @sup39/api-ts-gen\n```\nAlso, install the dependencies that generated code will use.\n```\nyarn add koa @koa/router koa-body\nyarn add -D @types/koa @types/koa__router axios\n```\n\n### 1. Write your OpenAPI document\nYou can use [Swagger Editor](https://swagger.io/tools/swagger-editor/) to edit your api document. Make sure to follow the [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md).\n\nThis tool generates code from `paths` and `components/schemas`.  \n:warning: only `get`, `post`, `update`, `delete`, `patch` are supported in `paths`\n\n### 2. Set path alias\nDetermine the **output directory for generated code** and the **server api implementation location**, and edit your `tsconfig.json`:\n```\n{\n  // ...\n  \"compilerOptions\": {\n    // ...\n    \"baseUrl\": \".\", // or your project root\n    \"paths\": {\n      // ...\n      \"#api/*\": [\"path/to/your/output/directory/for/generated/code/*\"],\n      \"#ServerAPI\": [\"path/to/your/server/api/implementation\"]\n    }\n  }\n}\n```\nIf you use webpack, you should also edit your `webpack.config.js`:\n```\nmodule.exports = {\n  // ...\n  resolve: {\n    // ...\n    alias: {\n      '#api': 'path/to/your/output/directory/for/generated/code',\n      // #ServerAPI is not required\n    },\n  },\n};\n```\n### 3. Run this tool\n```\nyarn run api-codegen <your-openapi-document> [-o <output-dir>] [-s <ctx.state-interface-path>] [-c]\n```\n\nThe default output directory is `api/generated`.  \nFor example, if you put your api document at `api.yml`, and want the generated code put in `generated/` directory, you can execute\n```\n# example\nyarn run api-codegen api.yml -o generated\n```\n\n#### Flags(Optional)\n- `-o` `--output-dir <output-dir>`: output directory(default: api/generated)\n- `-c` `--client-only`: client code only(default: client & server)\n\n### 4. Implement server api\n```\nimport {IServerAPI} from '#api/IServerAPI';\n\nexport default {\n  operationId: async (req, state, ctx) => {\n    // ...\n    return [status, body];\n  },\n  // ...\n} as IServerAPI;\n```\nThe function name is the `operationId` defined in the api document.  \nThere are 3 arguments passed to the function.\n#### req\nThe request parameters and body, defined in `parameters` and `requestBody`.  \nAny parameter will be put in `req.{in}.{name}`, where `{in}` is one of `path`, `query`, `header`, `cookie`.  \n`requestBody` will be put in `req.body`.\n#### state\nAlias to `ctx.state`\n\nYou can specify the type of `ctx.state` by setting the export default type to `IServerAPI<YourStateType>`.\n```\n// example\nimport {IServerAPI} from '#api/IHandler';\n\ninterface IState {\n  user: {\n    id: number;\n  }\n}\nexport default {\n  // ...\n  operationId: async (req, state, ctx) => {\n    // state has IState type here\n    state.user.id // number\n    // ...\n  },\n} as IServerAPI<IState> // specify ctx.state type to IState\n```\n#### ctx\nThe `ctx` object from koa router. **Avoid to use it** unless required.  \n```\n// Don't do this\nctx.body = responseBody;\nctx.status = statusCode;\n// Do this\nreturn [statusCode, responseBody];\n```\n#### return value\n`[status, body]`\nIf the responseBody is not required, you can omit it or pass anything to it.\n```\n// example\nreturn [200, {...}];\nreturn [404, 'some response string'];\n\n// if responseBody is not required\nreturn [statusCode]; // OK\nreturn [statusCode, 'message string']; // OK\nreturn [statusCode, {some: 'object'}]; // OK\n```\n\n### 5. Mount the api router to server\n```\nimport * as Koa from 'koa';\nimport apiRouter from '#api/apiRouter';\n\nconst app = new Koa();\n// some other entry\n\napp.use(apiRouter.prefix('/your/api/prefix').routes());\n// or simply app.use(apiRouter.routes());\n\napp.listen(yourAppListenPort);\n```\n\n### 6. Use api in client\nSimply import and use it! Like the server api, the function name will be the `operationId` defined in the api document, and the parameters will be the `parameters` and `requestBody` if defined.\n\n```\napi.{operationId}([path], [query], [header], [cookie], [body])\n```\nwhere the `path`, `query`, `header`, `cookie` is a object whose key is the `name` defined in `parameters` in the api document, and `body` is the `requestBody`.\n\n:bulb: Note that if the method is `patch`, `req.body` will be `Partial`, which means that any property can be omitted.\n\n```\nimport api from '#api/ClientAPI';\n// import {FullDate} from '@sup39/api-ts-gen/dist/utils';\n// import {SchemaA} from '#api/schemas';\n\n// ...\napi.operationWithPath({pathName: pathValue});\napi.operationWithQueryAndBody({queryName: queryValue}, body);\napi.operationWithPathAndQueryAndBody({\n  pathName1: pathvalue1,\n  pathName2: pathvalue2,\n  pathName3: pathvalue3,\n}, {\n  queryName1: queryvalue1,\n  queryName2: queryvalue2,\n}, body);\n```\nIf you set the prefix of the api, you have to set the `$baseURL` of client api.\n```\napi.$baseURL = '/same/as/the/prefix/in/server';\n```\n\n#### FullDate\nIf the format is `string` `date`, you should use `FullDate` instead of `Date`.\n`FullDate` is a wrapper of `Date`, which implements `.toString()`, `.toJSON()` and `.valueOf()` to make it more convenience to convert it to String or JSON.\n\nImport `FullDate` class from `@sup39/api-ts-gen/dist/utils`.\n```\nimport {FullDate} from '@sup39/api-ts-gen/dist/utils';\n\n// initialization\nnew FullDate(new Date()); // from a Date instance\nnew FullDate(); // today\nnew FullDate('2012-03-31'); // 2012-03-31\nnew FullDate(2015, 5); // 2015-05-01\nnew FullDate(2015, 5, 4); // 2015-05-04\nnew FullDate(1449446400000); // 2015-12-07\n\n// getter\nconst d = new FullDate();\nd.date // a Date instance clone\nd.year // date.getUTCFullYear()\nd.month // date.getUTCMonth()+1\nd.day // date.getUTCDate()\nd.dayOfWeek // date.getUTCDay()\n\n// setter\nd.year = 2018; // date.setUTCFullYear(2018)\nd.month = 3; // date.setUTCMonth(3-1)\nd.day = 5; // date.setUTCDate(5)\n\n// method\n/* CAUTION: this method has been updated since version 2.0.6\n  .advance(period: number): this\n  return this advanced by $peroid days\n*/\nconst d0 = new FullDate('2015-05-04');\nd0.advance(217) // 2015-12-07\nd0.advance(-1129) // 2012-03-31\nd0 === d0.advance(-1129) // true\n\n/*\n  .advanced(period: number): FullDate\n  return a new FullDate advanced by $peroid days\n*/\nconst d0 = new FullDate('2015-05-04');\nd0.advance(217) // 2015-12-07\nd0.advance(-1129) // 2012-03-31\nd0 === d0.advance(-1129) // false\n\n/*\n  .distanceFrom(d0: FullDate): number\n  return the distance(unit: day) from d0\n*/\nd0.distanceFrom(new FullDate(2018, 3, 5)); // -1036\nd0.distanceFrom(new FullDate(2007, 8, 31)); // 2803\n```\n:warning: `FullDate` use `month` from 1 to 12, which differs from `Date`. Also, `FullDate` use `day` and `dayOfWeek` instead of `date` and `day`.\n\n#### Schema\nIt is not necessary to use `SomeSchema.from(...)` of `SomeSchema.Partial(...)` to create an instance to pass to the client api. Instead, simply use an object literal.\n\nImport the schema type interfaces from `#api/schemas`.\n```\nimport {SchemaA, SchemaB} from '#api/schemas';\n\napi.postA({id: 3}, {...}) // OK, simpler\napi.postA({id: 3}, SchemaA.from(...)); // Well, still OK\napi.patchB({id: 3}, {...}) // OK, simpler\napi.patchB({id: 3}, SchemaB.Partial(...)); // Well, still OK\n```\n\n:warning: From v2.0.0, `Schemas` are no longer class. Instead, it became a `interface` and a Object including `from`, `Partial`, and `fields` properties.\n\n#### Handling response\nThe api is a async function that returns a `APIPromise`, which is a extended Promise. The promise is resolved if the status code is `2xx`, otherwise it is rejected.\n\nEvery operation has a different `APIPromise` definition according to the possible response **status code**.\nIf there is only one `2xx` in the status code and error handling is not required, you can simply use `await` to get the response body.\n```\nconst a: SchemaA = await api.getA(...);\n```\nHowever, if you want to handle several kinds of response, you can use `.on(statusCode, responseBody => handler)` where `XXX` is the status code.\n```\napi.getA(...)\n  .on(200, a => { // the compiler knows that type of `a` is `SchemaA`\n    console.log('Get a successfully', a);\n  })\n  .on(404, msg => {\n    console.log('Not found with msg', msg);\n  })\n  .on(403, () => {\n    console.log('Forbidden with no msg');\n  });\n```\n\n:warning: For any status, you can only call `.on(status, ...)` once.\n```\n// OK\napi.getA(...)\n  .on(200, a => ...)\n  .on(403, () => ...)\n\n// NG\napi.getA(...)\n  .on(200, a => ...)\n  .on(200, () => ...) // Compile Error!\n```\n\n## Details\n### Type Conversion\n[OpenAPI data types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#dataTypes) will be convert to TypeScript types as following:\n| type | format | | TypeScript |\n|----|----|----|----|\n|`integer`||→|`number`|\n|`number`||→|`number`|\n|`string`||→|`string`|\n|`boolean`||→|`boolean`|\n|`string`|`date`|→|`FullDate`|\n|`string`|`date-time`|→|`Date`|\nIn addition, assigning `nullable: true` makes it nullable.\n\n### Strict Type Parser(STP)\nTo ensure type safety, `STP` provides some static functions to convert `any` type to specific type.\n| type | format | valid type | note |\n|----|----|----|----|\n|`integer`|`int32`|`number`, `string`|integer between `-2147483648` and `2147483647` only|\n|`integer`|`int64`|`number`, `string`|no check for range and floating point|\n|`number`||`number`, `string`|`NaN` and `Infinity` is valid|\n|`string`||`string`||\n|`boolean`||`boolean`, `number`, `string`||\n|`string`|`date`|`FullDate`, `Date`, `number`, `string`||\n|`string`|`date-time`|`Date`, `number`, `string`||\n|`string`|`byte`|`string`, `Buffer`|no validation check|\n|`string`|`binary`|`string`, `Buffer`|no validation check|\nIn addition, assigning `nullable: true` makes it nullable.\n\n```\n// integer.int32\n39 // OK\n'39' // OK\n'1e3' // NG, no scientific notation\n3.14 // NG, not a integer\n2147483648 // NG, overflow\n'1e100' // NG, overflow\nNaN // NG, not a integer\nInfinity // NG, not a integer\n'pi' // NG, not a number\n\n// integer.int64, number\n39 // OK\n'39' // OK\n'1e3' // OK\n3.14 // OK, although it is convertible to int64\n2147483648 // OK\n'1e100' // OK, although too big for int64\nNaN // OK, although it is convertible to int64\nInfinity // OK, although it is convertible to int64\n'pi' // NG, not a number\n\n// boolean\ntrue, false // OK\n'true', 'false' // OK\n0, 1, -1, 3.14, Infinity, NaN // OK (Only 0 is converted to false)\n'T', 'F' // NG, only 'true' and 'false' are valid\nnull, {} // NG\n\n// FullDate\nnew FullDate() // OK\nnew Date() // OK\n'2017-05-28' // OK\n1449446400000 // OK, 2015-12-07\n'today' // NG, not a valid Date\n\n// Date\nnew Date() // OK\n'2017-05-28' // OK\n1449446400000 // OK, 2015-12-07T00:00:00.000Z\nnew FullDate() // NG\n'today' // NG, not a valid Date\n\n// string.byte\n'5aeJ5qeY44GL44KP44GE44GE' // OK\n'********' // Well, OK, although invalid for a base64 string\nBuffer.from('nya') // OK, a Buffer(node.js)\n0x52391207 // NG, number is invalid\nnew Blob([]) // NG, Blob is not supported\n\n// string.\n'e5a789e6a798e3818be3828fe38184e38184' // OK\n'********' // Well, OK, although invalid for a hex string\nBuffer.from('nya') // OK, a Buffer(node.js)\n0x52391207 // NG, number is invalid\nnew Blob([]) // NG, Blob is not supported\n```\n\n### Schema\nBase on `#/components/schemas`, it generates interface definitions and constructor functions in `schemas.ts`.\n#### Interface Definition\nFor example,\n```\nPost:\n  type: \"object\"\n  properties:\n    id:\n      type: \"integer\"\n      format: \"int32\"\n    ts:\n      type: \"string\"\n      format: \"date-time\"\n    authorID\n      type: \"integer\"\n      format: \"int32\"\n    content:\n      type: \"string\"\n      nullable: true\n    images:\n      type: \"array\"\n      items:\n        type: \"string\"\n        format: \"binary\"\n    pinned:\n      type: \"boolean\"\n```\nwill become\n```\ninterface Post {\n  id: number;\n  ts: string;\n  authorID: number;\n  content: string | null;\n  images: string[];\n  pinned: boolean;\n}\n```\n#### Constructor Function\nIt also generates constructor function `Schema.from` with **strict type checking**.\nThe constructor function takes exactly one argument with literal object type.\nIf any property of the argument is not convertible to expected type, it throws an `BadValueError`.\n\nFor example,\n```\nNamedCircle:\n  type: \"object\"\n  properties:\n    name:\n      type: \"string\"\n    radius:\n      type: \"number\"\n      format: \"double\"\n    color:\n      type: \"string\"\n      nullable: true\n```\nwill become\n```\ninterface NamedCircle {\n  name: string;\n  radius: number;\n  color: string | null;\n}\n```\nHere are some examples for strict type checking:\n```\nNamedCircle.from({\n  name: 'red circle',\n  radius: 39,\n  color: 'red',\n}); // OK\n\nNamedCircle.from({\n  name: 'circle with null color',\n  radius: 0,\n  color: null,\n}); // OK, color is nullable\n\nNamedCircle.from({\n  name: 'circle with null color',\n  radius: 0,\n  color: undefined,\n}); // Error! color should be a number or null\n\nNamedCircle.from({\n  name: 'circle without given color',\n  radius: 0,\n}); // Error! color should be given\n\nNamedCircle.from({\n  name: 'circle with invalid radius',\n  radius: 'miku',\n  color: 'cyan',\n}); // Error! radius should be a number\n```\n#### Partial Function\nIt also generates a function called `Partial` for initializing Partial type.\nThe function also takes exactly one argument.\nIf any property of the argument is absent or is undefined, the function will skip setting the property.\nHowever, if the property is given but not convertible to expected type, it throws a `BadValueError`.\n\nHere are some examples.\n```\nNamedCircle.Partial({\n  name: 'circle with radius 39',\n  radius: 39,\n  color: 'cyan',\n}); // OK\n\nNamedCircle.Partial({\n  name: 'circle without radius and color',\n}); // OK\n\nNamedCircle.Partial({\n  radius: 1207,\n}); // OK\n\nNamedCircle.Partial({}); // OK\n\nNamedCircle.Partial({\n  radius: 1207,\n  color: null,\n}); // OK, color can be null\n\nNamedCircle.Partial({\n  name: undefined,\n  radius: 1207,\n  color: null,\n}); // OK, just skip setting name\n\nNamedCircle.Partial({\n  name: null,\n  radius: 'miku',\n  color: 'cyan',\n}); // Error! name is not nullable\n\nNamedCircle.Partial({\n  radius: 'miku',\n  color: 'cyan',\n}); // Error! radius should be a number\n```\n\n:warning: Use **object literal** if possible. The `from` and `Partial` function are mainly for internal use, avoid to use them unless you want to safe and strict convert a any variable to a schema type.\n\n### fields\n`Schema` exposes its fields to `fields` constant.\nIts type is `Array<keyof Schema>`.\n```\nNamedCircle.fields // ['name', 'radius', 'color']: Array<keyof NamedCircle>\n```\n\n### Nested Object\nAny object type property which contains `id` property\nwill be treat specially.\nWhen sending request, properties other than `id` will be removed,\nfor the convenience to work well with [Vapor](https://vapor.codes).\n\nFor example,\n```\nGroup:\n  type: \"object\"\n  properties:\n    id:\n      type: \"integer\"\n      format: \"int32\"\n    name:\n      type: \"string\"\n    note:\n      type: \"string\"\nPerson:\n  type: \"object\"\n  properties:\n    id:\n      type: \"integer\"\n      format: \"int32\"\n    group:\n      $ref: \"#/components/schemas/Group\"\n    fullName:\n      type: \"object\"\n      properties:\n        firstName:\n          type: \"string\"\n        lastName:\n          type: \"string\"\n    age:\n      type: \"integer\"\n      format: \"int32\"\n```\nwill become\n```\ninterface Group {\n  id: number;\n  name: string;\n  note: string;\n}\ninterface Person {\n  id: number;\n  group: Group;\n  name: {\n    firstName: string;\n    lastName: string;\n  };\n  value: number;\n}\n```\n\nHowever, in http-request function in ClientAPI,\nthe type of the parameter will become\n```\ninterface Group {\n  id: number;\n  name: string;\n  note: string;\n} // no change\ninterface Task {\n  id: number;\n  group: {\n    id: number;\n  }; // properties other than `id` is removed\n  name: {\n    firstName: string;\n    lastName: string;\n  }; // no change because there is no `id` property\n  value: number;\n}\n```\n\n## Limitations\n### application/json only\nThis tool only supports `application/json` type for request and response body. Any other type like `multipart/form` or `image/*` are **not supported** and will be ignored.\n\n## Versions\n#### 2.1.5\n- fix ClientAPI parser bug when schema is alias to primitive type\n#### 2.1.4\n- Change `import * as XXX` to `import XXX` in codegen of `@koa/router` and `koa-body`\n#### 2.1.3\n- Use `JSON.stringify()` for pure object in `STP._string`\n#### 2.1.2\n- Fix axios query of array type in IClientAPI (add `{arrayFormat: 'repeat'}`)\n#### 2.1.1\n- Fix axios type bug (`AxiosPromise` vs `Promise<AxiosResponse>`)\n#### 2.1.0\n- Move `@sup39/api-ts-gen/utils` to `@sup39/api-ts-gen/dist/utils` since symlink is no longer allowed\n- Simplify `apiRouter.ts` by using `router.use` to check for `BadValueError`\n#### 2.0.6\n- Change Full#advance and implement Full#advanced\n- Nest [object-type properties with id property] conversion in request function\n#### 2.0.5\n- Implement \\$ref support for responses, parameters, requestBody\n#### 2.0.4\n- Fix FullDate stringify in Axios params\n- Use local timezone instead of UTC in FullDate\n#### 2.0.3\n- Implement `required` property of schema\n- client-only codegen\n#### 2.0.2\n- Make number convertible to boolean\n#### 2.0.1\n- Use IState as a generic type and remove it from api-codegen.\n#### 2.0.0\n- Simplify generated code\n  - Merge all APIPromise class\n  - Remove IServerAPI and IClientAPI\n- Remove res Object, return [status, body] in ServerAPI instead\n- Remove schema classes, use interface instead\n- `-s` flag for `ctx.state` interface path\n#### 1.1.3\n- Expose fields of schemas to XXX.fields(static variable)\n#### 1.1.2\n- Publish to npmjs and change the package name in generated code\n- Specify constructor argument type of FullDate\n#### 1.1.1\n- Implement FullDate#distanceFrom(d0)\n- Fix FullDate timezone bug, use UTC instead\n#### 1.1.0\n- Fix Partial constructor, enhance error msg\n- Add int32 STP\n#### 1.0.1\n- implement FullDate getter, setter, function(advance)\n#### 1.0.0\n- ClientAPI, ServerAPI interface, Schema TS codegen implemented\n- application/json only\n- get, post, put, delete, patch only\n","readmeFilename":"README.md"}