From 56311638add76a47cb6bd2e2bc0dcba41a18998b Mon Sep 17 00:00:00 2001 From: Jeroen Akkerman Date: Tue, 5 Sep 2017 15:33:58 +0200 Subject: [PATCH] Removed Swagger client code. Implemented last swagger API class into the bot code. pdated TypeScript compiler and TSLint options. Package updates. Added package-lock.json. Removed yarn.lock. Bot will now be compiled and ran from Javascript instead of using ts-node, this because it makes developing a lot easier. --- .gitignore | 13 +- index.js | 4 - package-lock.json | 2711 ++++ package.json | 52 +- src/chat-service/discord/client.ts | 23 +- src/chat-service/discord/message.ts | 22 +- src/commands/buy-orders.ts | 29 +- src/commands/data.ts | 23 +- src/commands/price.ts | 6 +- src/commands/sell-orders.ts | 32 +- src/commands/track.ts | 66 +- src/helpers/api.ts | 56 +- src/helpers/arrays.ts | 4 +- src/helpers/command-logger.ts | 15 +- src/helpers/guessers.ts | 16 +- src/helpers/parsers.ts | 14 +- src/helpers/readers.ts | 6 +- src/helpers/regex.ts | 2 +- src/market-bot.ts | 29 +- src/regions.ts | 6 +- src/typings.d.ts | 10 + swagger/.gitignore | 3 - swagger/.swagger-codegen-ignore | 23 - swagger/README.md | 1 - swagger/api.ts | 17661 -------------------------- swagger/git_push.sh | 52 - tsconfig.json | 20 +- tslint.json | 3 +- yarn.lock | 1551 --- 29 files changed, 2972 insertions(+), 19481 deletions(-) delete mode 100644 index.js create mode 100644 package-lock.json delete mode 100644 swagger/.gitignore delete mode 100644 swagger/.swagger-codegen-ignore delete mode 100644 swagger/README.md delete mode 100644 swagger/api.ts delete mode 100644 swagger/git_push.sh delete mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore index e5df492..ed4a8b0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,12 +5,15 @@ # Node/Npm files npm-debug.log* -/node_modules/ +node_modules/ + +# Build files +dist/ # Sensitive application files -/config/token.txt -/data/typeIDs.yaml -/logs/ +config/token.txt +data/typeIDs.yaml +logs/ # System files -*.db \ No newline at end of file +*.db diff --git a/index.js b/index.js deleted file mode 100644 index 820228d..0000000 --- a/index.js +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env node -"use strict"; -require('ts-node/register'); -require('./src/market-bot'); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..ad0bc3c --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2711 @@ +{ + "name": "MarketBot", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/bluebird": { + "version": "3.5.8", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.8.tgz", + "integrity": "sha512-rBfrD56OxaqVjghtVqp2EEX0ieHkRk6IefDVrQXIVGvlhDOEBTvZff4Q02uo84ukVkH4k5eB1cPKGDM2NlFL8A==", + "dev": true + }, + "@types/chai": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.0.4.tgz", + "integrity": "sha512-cvU0HomQ7/aGDQJZsbtJXqBQ7w4J4TqLB0Z/h8mKrpRjfeZEvTbygkfJEb7fWdmwpIeDeFmIVwAEqS0OYuUv3Q==", + "dev": true + }, + "@types/countdown": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@types/countdown/-/countdown-0.0.5.tgz", + "integrity": "sha1-anb0JTiM9FRX6cyWIzNSBjNaqbk=", + "dev": true + }, + "@types/escape-string-regexp": { + "version": "0.0.31", + "resolved": "https://registry.npmjs.org/@types/escape-string-regexp/-/escape-string-regexp-0.0.31.tgz", + "integrity": "sha512-6Zm62G9XA9UbBRFKv/mnyZ1wV7Mpd751RiGv8d1agdgzbI7O/T70oz+3w5R5sph+twRhANuK5vLTNPv+B+TAiw==", + "dev": true + }, + "@types/form-data": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.0.tgz", + "integrity": "sha512-vm5OGsKc61Sx/GTRMQ9d0H0PYCDebT78/bdIBPCoPEHdgp0etaH1RzMmkDygymUmyXTj3rdWQn0sRUpYKZzljA==", + "dev": true, + "requires": { + "@types/node": "8.0.26" + } + }, + "@types/geojson": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-1.0.3.tgz", + "integrity": "sha512-unWrGQhXRrNTk/MabfBLCM/rWT6zxR1OSK0GIPxsP8NX8mJcsNWkERPp4z0pTyHLiANy+Nwczf8Q2I16Pth1FA==" + }, + "@types/js-yaml": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-3.9.1.tgz", + "integrity": "sha512-6ejot8/A47YhEGg8K/Gi+/Nu4vohMgxEG383aBaHKjrGjJUQE7umk+vg5I7TaPe4C99nUZrCDw+weK3M7gg/oA==", + "dev": true + }, + "@types/lodash": { + "version": "4.14.74", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.74.tgz", + "integrity": "sha512-BZknw3E/z3JmCLqQVANcR17okqVTPZdlxvcIz0fJiJVLUCbSH1hK3zs9r634PVSmrzAxN+n/fxlVRiYoArdOIQ==", + "dev": true + }, + "@types/mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha512-XA4vNO6GCBz8Smq0hqSRo4yRWMqr4FPQrWjhJt6nKskzly4/p87SfuJMFYGRyYb6jo2WNIQU2FDBsY5r1BibUA==", + "dev": true, + "requires": { + "@types/node": "8.0.26" + } + }, + "@types/mocha": { + "version": "2.2.42", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.42.tgz", + "integrity": "sha512-b6gVDoxEbAQGwbV7gSzeFw/hy3/eEAokztktdzl4bHvGgb9K5zW4mVQDlVYch2w31m8t/J7L2iqhQvz3r5edCQ==", + "dev": true + }, + "@types/node": { + "version": "8.0.26", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.26.tgz", + "integrity": "sha512-wbKN0MB4XsjdnSE04HiCzLoBDirGCM6zXrqavSj44nZnPFYpnrTF64E9O6Xmf0ca/IuKK/BHUcXwMiwk92gW6Q==", + "dev": true + }, + "@types/request": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.0.3.tgz", + "integrity": "sha512-cIvnyFRARxwE4OHpCyYue7H+SxaKFPpeleRCHJicft8QhyTNbVYsMwjvEzEPqG06D2LGHZ+sN5lXc8+bTu6D8A==", + "dev": true, + "requires": { + "@types/form-data": "2.2.0", + "@types/node": "8.0.26" + } + }, + "@types/sequelize": { + "version": "4.0.73", + "resolved": "https://registry.npmjs.org/@types/sequelize/-/sequelize-4.0.73.tgz", + "integrity": "sha512-qfC8DDkU/ROyS5SudxKT80DU4F/YAFXSnlh0HdO7hIFOo5og2HDlOwEjAouRLNykUr6gscXC/C6+rlvxfiJp+g==", + "dev": true, + "requires": { + "@types/bluebird": "3.5.8", + "@types/lodash": "4.14.74", + "@types/validator": "6.2.3" + } + }, + "@types/sinon": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-2.3.3.tgz", + "integrity": "sha512-bnoHhhCsx0p0yhLOywFg6T7Le37JjtnzLcWal6cuSPvIZUBzKRIsqM6E5OsKUIRVErCaBCghHIZmqtyGk5uXyA==", + "dev": true + }, + "@types/sqlite3": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/sqlite3/-/sqlite3-3.1.1.tgz", + "integrity": "sha512-S31EQOw59mSKTt6h4uoKR63z+ZqJDk/9hGuhms4oEw0gfZ2o6xGD1bSvDtcqKPJJvfE9TK4E3UcqODFIrfHJCg==", + "dev": true, + "requires": { + "@types/node": "8.0.26" + } + }, + "@types/validator": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-6.2.3.tgz", + "integrity": "sha512-CPxAHOkxHkKUmjR/hWeEvY/SvnvxlGn83kw64b0qNx+HUmM5+pONOGvN9aHUqMxE66veFuI3J0UMH2YJgkaz5g==", + "dev": true + }, + "@types/winston": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@types/winston/-/winston-2.3.5.tgz", + "integrity": "sha512-qMkxq+pSJgqE9I5NKEDJvZgLe+jK9ItOOQL9Ee2miUTPZMBKVWSx55suLaiwrGyQ/VqHhuD9Jv31wko1eTaKqQ==", + "dev": true, + "requires": { + "@types/node": "8.0.26" + } + }, + "ajv": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", + "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "argparse": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", + "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", + "requires": { + "sprintf-js": "1.0.3" + } + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + }, + "assert-plus": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", + "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=" + }, + "assertion-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", + "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", + "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=" + }, + "aws4": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", + "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", + "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + }, + "dependencies": { + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + } + } + }, + "bluebird": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.0.tgz", + "integrity": "sha1-eRQg1/VR7qKJdFOop3ZT+WYG1nw=" + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" + }, + "boom": { + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", + "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", + "requires": { + "hoek": "2.16.3" + } + }, + "brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "browser-stdout": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", + "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "chai": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.1.2.tgz", + "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", + "dev": true, + "requires": { + "assertion-error": "1.0.2", + "check-error": "1.0.2", + "deep-eql": "3.0.0", + "get-func-name": "2.0.0", + "pathval": "1.1.0", + "type-detect": "4.0.3" + } + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + }, + "dependencies": { + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, + "cls-bluebird": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/cls-bluebird/-/cls-bluebird-2.0.1.tgz", + "integrity": "sha1-wlmkgK4CwOUGE0MHuxPbMERu4uc=", + "requires": { + "is-bluebird": "1.0.2", + "shimmer": "1.1.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "dev": true + }, + "combined-stream": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", + "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", + "requires": { + "delayed-stream": "1.0.0" + } + }, + "commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", + "dev": true, + "requires": { + "graceful-readlink": "1.0.1" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "countdown": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/countdown/-/countdown-2.6.0.tgz", + "integrity": "sha1-Z3+446nUzE52QVkBuiU7UYrzQXc=" + }, + "cryptiles": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", + "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", + "requires": { + "boom": "2.10.1" + } + }, + "css-select": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", + "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", + "requires": { + "boolbase": "1.0.0", + "css-what": "2.1.0", + "domutils": "1.5.1", + "nth-check": "1.0.1" + } + }, + "css-what": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.0.tgz", + "integrity": "sha1-lGfQMsOM+u+58teVASUwYvh/ob0=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + } + } + }, + "debug": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.0.1.tgz", + "integrity": "sha512-6nVc6S36qbt/mutyt+UGMnawAMrPDZUPQjRZI3FS9tCtDRhvxJbK79unYBLPi+z5SLXQ3ftoVBFCblQtNSls8w==", + "requires": { + "ms": "2.0.0" + } + }, + "deep-eql": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.0.tgz", + "integrity": "sha512-9zef2MtjASSE1Pts2Nm6Yh5MTVdVh+s4Qt/e+jPV6qTBhqTc0WOEaWnLvLKGxky0gwZGmcY6TnUqyCD6fNs5Lg==", + "dev": true, + "requires": { + "type-detect": "4.0.3" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "depd": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", + "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" + }, + "diff": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.2.0.tgz", + "integrity": "sha1-yc45Okt8vQsFinJck98pkCeGj/k=", + "dev": true + }, + "discord.js": { + "version": "11.2.1", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-11.2.1.tgz", + "integrity": "sha512-8Mor+IREVWHinjRd6Bu6OwRfT+ET/WEoLWMl8crFvBVcTFmaO/TSwP39C8QIGCB2YMVMYMdljjX/w17AUMemqg==", + "requires": { + "long": "3.2.0", + "prism-media": "0.0.1", + "snekfetch": "3.3.0", + "tweetnacl": "1.0.0", + "ws": "3.1.0" + } + }, + "dom-converter": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.1.4.tgz", + "integrity": "sha1-pF71cnuJDJv/5tfIduexnLDhfzs=", + "requires": { + "utila": "0.3.3" + }, + "dependencies": { + "utila": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", + "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=" + } + } + }, + "dom-serializer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", + "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "requires": { + "domelementtype": "1.1.3", + "entities": "1.1.1" + }, + "dependencies": { + "domelementtype": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", + "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=" + } + } + }, + "domelementtype": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", + "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=" + }, + "domhandler": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.1.0.tgz", + "integrity": "sha1-0mRvXlf2w7qxHPbLBdPArPdBJZQ=", + "requires": { + "domelementtype": "1.3.0" + } + }, + "domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", + "requires": { + "dom-serializer": "0.1.0", + "domelementtype": "1.3.0" + } + }, + "dottie": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.0.tgz", + "integrity": "sha1-2hkZgci41xPKARXViYzzl8Lw3dA=" + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "encoding": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", + "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "requires": { + "iconv-lite": "0.4.18" + } + }, + "entities": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", + "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "esprima": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", + "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==" + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "extend": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", + "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", + "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "formatio": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.2.0.tgz", + "integrity": "sha1-87IWfZBoxGmKjVH092CjmlTYGOs=", + "dev": true, + "requires": { + "samsam": "1.2.1" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fuse.js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-3.1.0.tgz", + "integrity": "sha1-kGIUbEcVUhibD2eLT1oVVzGuOzw=" + }, + "generic-pool": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.1.7.tgz", + "integrity": "sha1-2sIrLHp6BOQXMvfY0tJaMDyI9mI=" + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + } + } + }, + "glob": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", + "integrity": "sha1-gFIR3wT6rxxjo2ADBs31reULLsg=", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", + "dev": true + }, + "growl": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.9.2.tgz", + "integrity": "sha1-Dqd0NxXbjY3ixe3hd14bRayFwC8=", + "dev": true + }, + "har-schema": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", + "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=" + }, + "har-validator": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", + "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "dev": true + }, + "hawk": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", + "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", + "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=" + }, + "htmlparser2": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.3.0.tgz", + "integrity": "sha1-zHDQWln2VC5D8OaFyYLhTJJKnv4=", + "requires": { + "domelementtype": "1.3.0", + "domhandler": "2.1.0", + "domutils": "1.1.6", + "readable-stream": "1.0.34" + }, + "dependencies": { + "domutils": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.1.6.tgz", + "integrity": "sha1-vdw94Jm5ou+sxRxiPyj0FuzFdIU=", + "requires": { + "domelementtype": "1.3.0" + } + } + } + }, + "http-signature": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", + "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + } + }, + "iconv-lite": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.18.tgz", + "integrity": "sha512-sr1ZQph3UwHTR0XftSbK85OvBbxe/abLGzEnPENCQwmHf7sck8Oyu4ob3LgBxWWxRoM+QszeUyl7jbqapu2TqA==" + }, + "inflection": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.12.0.tgz", + "integrity": "sha1-ogCTVlbW9fa8TcdQLhrstwMihBY=" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "is-bluebird": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-bluebird/-/is-bluebird-1.0.2.tgz", + "integrity": "sha1-CWQ5Bg9KpBGr7hkUOoTWpVNG1uI=" + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" + }, + "isomorphic-fetch": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", + "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "requires": { + "node-fetch": "1.7.2", + "whatwg-fetch": "2.0.3" + } + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.9.1.tgz", + "integrity": "sha512-CbcG379L1e+mWBnLvHWWeLs8GyV/EMw862uLI3c+GxVyDHWZcjZinwuBd3iW2pgxgIlksW/1vNJa4to+RvDOww==", + "requires": { + "argparse": "1.0.9", + "esprima": "4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "json3": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz", + "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", + "dev": true + }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + } + } + }, + "just-extend": { + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-1.1.22.tgz", + "integrity": "sha1-MzCvdWyralQnAMZLLk5KoGLVL/8=", + "dev": true + }, + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" + }, + "lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha1-jDigmVAPIVrQnlnxci/QxSv+Ck4=", + "dev": true, + "requires": { + "lodash._basecopy": "3.0.1", + "lodash.keys": "3.1.2" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha1-jaDmqHbPNEwK2KVIghEd08XHyjY=", + "dev": true + }, + "lodash._basecreate": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz", + "integrity": "sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=", + "dev": true + }, + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=", + "dev": true + }, + "lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha1-UgOte6Ql+uhCRg5pbbnPPmqsBXw=", + "dev": true + }, + "lodash.create": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash.create/-/lodash.create-3.1.1.tgz", + "integrity": "sha1-1/KEnw29p+BGgruM1yqwIkYd6+c=", + "dev": true, + "requires": { + "lodash._baseassign": "3.2.0", + "lodash._basecreate": "3.0.3", + "lodash._isiterateecall": "3.0.9" + } + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=", + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha1-eeTriMNqgSKvhvhEqpvNhRtfu1U=", + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha1-TbwEcrFWvlCgsoaFXRvQsMZWCYo=", + "dev": true, + "requires": { + "lodash._getnative": "3.9.1", + "lodash.isarguments": "3.1.0", + "lodash.isarray": "3.0.4" + } + }, + "lolex": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.1.2.tgz", + "integrity": "sha1-JpS5U8nqTQE+W4v7qJHJkQJbJik=", + "dev": true + }, + "long": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", + "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" + }, + "mime-db": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", + "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=" + }, + "mime-types": { + "version": "2.1.17", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", + "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", + "requires": { + "mime-db": "1.30.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-3.5.0.tgz", + "integrity": "sha512-pIU2PJjrPYvYRqVpjXzj76qltO9uBYI7woYAMoxbSefsa+vqAfptjoeevd6bUgwD0mPIO+hv9f7ltvsNreL2PA==", + "dev": true, + "requires": { + "browser-stdout": "1.3.0", + "commander": "2.9.0", + "debug": "2.6.8", + "diff": "3.2.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.1", + "growl": "1.9.2", + "json3": "3.3.2", + "lodash.create": "3.1.1", + "mkdirp": "0.5.1", + "supports-color": "3.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.8", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", + "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "moment": { + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.18.1.tgz", + "integrity": "sha1-w2GT3Tzhwu7SrbfIAtu8d6gbHA8=" + }, + "moment-timezone": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.13.tgz", + "integrity": "sha1-mc5cfYJyYusPH3AgRBd/YHRde5A=", + "requires": { + "moment": "2.18.1" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "nan": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz", + "integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U=" + }, + "native-promise-only": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", + "integrity": "sha1-IKMYwwy0X3H+et+/eyHJnBRy7xE=", + "dev": true + }, + "nise": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.0.1.tgz", + "integrity": "sha1-DakrEKhU6XwPSW9sKEWjASgLPu8=", + "dev": true, + "requires": { + "formatio": "1.2.0", + "just-extend": "1.1.22", + "lolex": "1.6.0", + "path-to-regexp": "1.7.0" + }, + "dependencies": { + "lolex": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.6.0.tgz", + "integrity": "sha1-OpoCg0UqR9dDnnJzG54H1zhuSfY=", + "dev": true + } + } + }, + "node-fetch": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.2.tgz", + "integrity": "sha512-xZZUq2yDhKMIn/UgG5q//IZSNLJIwW2QxS14CNH5spuiXkITM2pUitjdq58yLSaU7m4M0wBNaM2Gh/ggY4YJig==", + "requires": { + "encoding": "0.1.12", + "is-stream": "1.1.0" + } + }, + "nth-check": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.1.tgz", + "integrity": "sha1-mSms32KPwsQQmN6rgqxYDPFJquQ=", + "requires": { + "boolbase": "1.0.0" + } + }, + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "path-to-regexp": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", + "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", + "dev": true, + "requires": { + "isarray": "0.0.1" + } + }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "dev": true + }, + "performance-now": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", + "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=" + }, + "pretty-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz", + "integrity": "sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM=", + "requires": { + "renderkid": "2.0.1", + "utila": "0.4.0" + } + }, + "prism-media": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/prism-media/-/prism-media-0.0.1.tgz", + "integrity": "sha1-o0JcnKvVDRxsAuVDlBoRiVZnvRA=" + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "qs": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", + "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=" + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "renderkid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.1.tgz", + "integrity": "sha1-iYyr/Ivt5Le5ETWj/9Mj5YwNsxk=", + "requires": { + "css-select": "1.2.0", + "dom-converter": "0.1.4", + "htmlparser2": "3.3.0", + "strip-ansi": "3.0.1", + "utila": "0.3.3" + }, + "dependencies": { + "utila": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz", + "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=" + } + } + }, + "request": { + "version": "2.81.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", + "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.2", + "tunnel-agent": "0.6.0", + "uuid": "3.1.0" + } + }, + "resolve": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", + "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", + "dev": true, + "requires": { + "path-parse": "1.0.5" + } + }, + "retry-as-promised": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/retry-as-promised/-/retry-as-promised-2.3.0.tgz", + "integrity": "sha1-J79czZmZMrMWZWloJc82MMJ8Vi0=", + "requires": { + "bluebird": "3.5.0", + "debug": "2.6.8" + }, + "dependencies": { + "debug": { + "version": "2.6.8", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", + "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", + "requires": { + "ms": "2.0.0" + } + } + } + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "samsam": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.2.1.tgz", + "integrity": "sha1-7dOQk6MYQ3DLhZJDsr3yVefY6mc=", + "dev": true + }, + "semver": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" + }, + "sequelize": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/sequelize/-/sequelize-4.8.0.tgz", + "integrity": "sha1-GYepfezrdJ2n4lzScFmttp2/gcI=", + "requires": { + "bluebird": "3.5.0", + "cls-bluebird": "2.0.1", + "debug": "3.0.1", + "depd": "1.1.1", + "dottie": "2.0.0", + "generic-pool": "3.1.7", + "inflection": "1.12.0", + "lodash": "4.17.4", + "moment": "2.18.1", + "moment-timezone": "0.5.13", + "retry-as-promised": "2.3.0", + "semver": "5.4.1", + "terraformer-wkt-parser": "1.1.2", + "toposort-class": "1.0.1", + "uuid": "3.1.0", + "validator": "8.1.0", + "wkx": "0.4.1" + } + }, + "shimmer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.1.0.tgz", + "integrity": "sha1-l9c3cTf/u6tCVSLkKf4KqJpIizU=" + }, + "sinon": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-3.2.1.tgz", + "integrity": "sha512-KY3OLOWpek/I4NGAMHetuutVgS2aRgMR5g5/1LSYvPJ3qo2BopIvk3esFztPxF40RWf/NNNJzdFPriSkXUVK3A==", + "dev": true, + "requires": { + "diff": "3.2.0", + "formatio": "1.2.0", + "lolex": "2.1.2", + "native-promise-only": "0.8.1", + "nise": "1.0.1", + "path-to-regexp": "1.7.0", + "samsam": "1.2.1", + "text-encoding": "0.6.4", + "type-detect": "4.0.3" + } + }, + "snekfetch": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/snekfetch/-/snekfetch-3.3.0.tgz", + "integrity": "sha512-R0VGqazwvZChkYuidDdaAzkvD6hUJ/qxfFUykyD1eovfH6PC2d9C9Qv+z4bUjMmKjBp0FE6GxMZtE9IKY/dngA==" + }, + "sntp": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", + "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "requires": { + "hoek": "2.16.3" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "sqlite3": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.9.tgz", + "integrity": "sha1-suf7qjSDgDGNODQyORjDw1G4vxg=", + "requires": { + "nan": "2.6.2", + "node-pre-gyp": "0.6.36" + }, + "dependencies": { + "node-pre-gyp": { + "version": "0.6.36", + "bundled": true, + "requires": { + "mkdirp": "0.5.1", + "nopt": "4.0.1", + "npmlog": "4.1.2", + "rc": "1.2.1", + "request": "2.81.0", + "rimraf": "2.6.1", + "semver": "5.4.1", + "tar": "2.2.1", + "tar-pack": "3.4.0" + }, + "dependencies": { + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "bundled": true + } + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "requires": { + "abbrev": "1.1.0", + "osenv": "0.1.4" + }, + "dependencies": { + "abbrev": { + "version": "1.1.0", + "bundled": true + }, + "osenv": { + "version": "0.1.4", + "bundled": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + }, + "dependencies": { + "os-homedir": { + "version": "1.0.2", + "bundled": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true + } + } + } + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + }, + "dependencies": { + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.3" + }, + "dependencies": { + "delegates": { + "version": "1.0.0", + "bundled": true + }, + "readable-stream": { + "version": "2.3.3", + "bundled": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "bundled": true + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true + }, + "string_decoder": { + "version": "1.0.3", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true + } + } + } + } + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "requires": { + "aproba": "1.1.2", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + }, + "dependencies": { + "aproba": { + "version": "1.1.2", + "bundled": true + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + }, + "dependencies": { + "code-point-at": { + "version": "1.1.0", + "bundled": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "1.0.1" + }, + "dependencies": { + "number-is-nan": { + "version": "1.0.1", + "bundled": true + } + } + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "requires": { + "ansi-regex": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "bundled": true + } + } + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "requires": { + "string-width": "1.0.2" + } + } + } + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true + } + } + }, + "rc": { + "version": "1.2.1", + "bundled": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "deep-extend": { + "version": "0.4.2", + "bundled": true + }, + "ini": { + "version": "1.3.4", + "bundled": true + }, + "minimist": { + "version": "1.2.0", + "bundled": true + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true + } + } + }, + "request": { + "version": "2.81.0", + "bundled": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.16", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.2", + "tunnel-agent": "0.6.0", + "uuid": "3.1.0" + }, + "dependencies": { + "aws-sign2": { + "version": "0.6.0", + "bundled": true + }, + "aws4": { + "version": "1.6.0", + "bundled": true + }, + "caseless": { + "version": "0.12.0", + "bundled": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "requires": { + "delayed-stream": "1.0.0" + }, + "dependencies": { + "delayed-stream": { + "version": "1.0.0", + "bundled": true + } + } + }, + "extend": { + "version": "3.0.1", + "bundled": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true + }, + "form-data": { + "version": "2.1.4", + "bundled": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.16" + }, + "dependencies": { + "asynckit": { + "version": "0.4.0", + "bundled": true + } + } + }, + "har-validator": { + "version": "4.2.1", + "bundled": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + }, + "dependencies": { + "ajv": { + "version": "4.11.8", + "bundled": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + }, + "dependencies": { + "co": { + "version": "4.6.0", + "bundled": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "requires": { + "jsonify": "0.0.0" + }, + "dependencies": { + "jsonify": { + "version": "0.0.0", + "bundled": true + } + } + } + } + }, + "har-schema": { + "version": "1.0.5", + "bundled": true + } + } + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + }, + "dependencies": { + "boom": { + "version": "2.10.1", + "bundled": true, + "requires": { + "hoek": "2.16.3" + } + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "requires": { + "boom": "2.10.1" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "requires": { + "hoek": "2.16.3" + } + } + } + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + }, + "dependencies": { + "assert-plus": { + "version": "0.2.0", + "bundled": true + }, + "jsprim": { + "version": "1.4.1", + "bundled": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true + }, + "extsprintf": { + "version": "1.3.0", + "bundled": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true + }, + "verror": { + "version": "1.10.0", + "bundled": true, + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "bundled": true + } + } + } + } + }, + "sshpk": { + "version": "1.13.1", + "bundled": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "asn1": { + "version": "0.2.3", + "bundled": true + }, + "assert-plus": { + "version": "1.0.0", + "bundled": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "bundled": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "requires": { + "assert-plus": "1.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "requires": { + "assert-plus": "1.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "optional": true + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "optional": true + } + } + } + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true + }, + "mime-types": { + "version": "2.1.16", + "bundled": true, + "requires": { + "mime-db": "1.29.0" + }, + "dependencies": { + "mime-db": { + "version": "1.29.0", + "bundled": true + } + } + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true + }, + "performance-now": { + "version": "0.2.0", + "bundled": true + }, + "qs": { + "version": "6.4.0", + "bundled": true + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true + }, + "stringstream": { + "version": "0.0.5", + "bundled": true + }, + "tough-cookie": { + "version": "2.3.2", + "bundled": true, + "requires": { + "punycode": "1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "bundled": true + } + } + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "uuid": { + "version": "3.1.0", + "bundled": true + } + } + }, + "rimraf": { + "version": "2.6.1", + "bundled": true, + "requires": { + "glob": "7.1.2" + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "bundled": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + }, + "dependencies": { + "fs.realpath": { + "version": "1.0.0", + "bundled": true + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + }, + "dependencies": { + "wrappy": { + "version": "1.0.2", + "bundled": true + } + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "brace-expansion": "1.1.8" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.8", + "bundled": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "1.0.0", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + } + } + } + } + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1.0.2" + }, + "dependencies": { + "wrappy": { + "version": "1.0.2", + "bundled": true + } + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true + } + } + } + } + }, + "semver": { + "version": "5.4.1", + "bundled": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + }, + "dependencies": { + "block-stream": { + "version": "0.0.9", + "bundled": true, + "requires": { + "inherits": "2.0.3" + } + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.1" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "bundled": true + } + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true + } + } + }, + "tar-pack": { + "version": "3.4.0", + "bundled": true, + "requires": { + "debug": "2.6.8", + "fstream": "1.0.11", + "fstream-ignore": "1.0.5", + "once": "1.4.0", + "readable-stream": "2.3.3", + "rimraf": "2.6.1", + "tar": "2.2.1", + "uid-number": "0.0.6" + }, + "dependencies": { + "debug": { + "version": "2.6.8", + "bundled": true, + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "bundled": true + } + } + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.1" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "bundled": true + }, + "inherits": { + "version": "2.0.3", + "bundled": true + } + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "requires": { + "fstream": "1.0.11", + "inherits": "2.0.3", + "minimatch": "3.0.4" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "brace-expansion": "1.1.8" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.8", + "bundled": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "1.0.0", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + } + } + } + } + } + } + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1.0.2" + }, + "dependencies": { + "wrappy": { + "version": "1.0.2", + "bundled": true + } + } + }, + "readable-stream": { + "version": "2.3.3", + "bundled": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "bundled": true + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true + }, + "string_decoder": { + "version": "1.0.3", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true + } + } + }, + "uid-number": { + "version": "0.0.6", + "bundled": true + } + } + } + } + } + } + }, + "sshpk": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", + "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + } + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" + }, + "stringstream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", + "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "requires": { + "ansi-regex": "2.1.1" + } + }, + "supports-color": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", + "integrity": "sha1-cqJiiU2dQIuVbKBf83su2KbiotU=", + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + }, + "terraformer": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/terraformer/-/terraformer-1.0.8.tgz", + "integrity": "sha1-UeCtiXRvzyFh3G9lqnDkI3fItZM=", + "requires": { + "@types/geojson": "1.0.3" + } + }, + "terraformer-wkt-parser": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/terraformer-wkt-parser/-/terraformer-wkt-parser-1.1.2.tgz", + "integrity": "sha1-M2oMj8gglKWv+DKI9prt7NNpvww=", + "requires": { + "terraformer": "1.0.8" + } + }, + "text-encoding": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", + "integrity": "sha1-45mpgiV6J22uQou5KEXLcb3CbRk=", + "dev": true + }, + "toposort-class": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toposort-class/-/toposort-class-1.0.1.tgz", + "integrity": "sha1-f/0feMi+KMO6Rc1OGj9e4ZO9mYg=" + }, + "tough-cookie": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz", + "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=", + "requires": { + "punycode": "1.4.1" + } + }, + "tslib": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.7.1.tgz", + "integrity": "sha1-vIAEFkaRkjp5/oN4u+s9ogF1OOw=", + "dev": true + }, + "tslint": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.7.0.tgz", + "integrity": "sha1-wl4NDJL6EgHCvDDoROCOaCtPNVI=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "colors": "1.1.2", + "commander": "2.9.0", + "diff": "3.2.0", + "glob": "7.1.1", + "minimatch": "3.0.4", + "resolve": "1.4.0", + "semver": "5.4.1", + "tslib": "1.7.1", + "tsutils": "2.8.2" + } + }, + "tsutils": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.8.2.tgz", + "integrity": "sha1-LBSGukMSYIRbCsb5Aq/Z1wio6mo=", + "dev": true, + "requires": { + "tslib": "1.7.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", + "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" + }, + "type-detect": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.3.tgz", + "integrity": "sha1-Dj8mcLRAmbC0bChNE2p+9Jx0wuo=", + "dev": true + }, + "typescript": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.5.2.tgz", + "integrity": "sha1-A4qV99m7tCCxvzW6MdTFwd0//jQ=" + }, + "ultron": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.0.tgz", + "integrity": "sha1-sHoualQagV/Go0zNRTO67DB8qGQ=" + }, + "utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=" + }, + "uuid": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", + "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" + }, + "validator": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-8.1.0.tgz", + "integrity": "sha512-0j7K1/yFA2Us3Oo8yay5iJh0NzjYvqE7AendsJVu+x7HgMVtWjGxaaMehr2IJqGo+KZhbYbw39ekjq6W6aGqkw==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + } + } + }, + "whatwg-fetch": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz", + "integrity": "sha1-nITsLc9oGH/wC8ZOEnS0QhduHIQ=" + }, + "winston-pnp-logger": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/winston-pnp-logger/-/winston-pnp-logger-1.0.0.tgz", + "integrity": "sha512-ImEM64w8kPmbIF/aJxbSqOBo2dIdXvLHNNmyYpix2BeWea9GMSrrv28HtQSbrQ/AU6mSlLs5Bik0VCSjbQf4Qw==", + "requires": { + "mkdirp": "0.5.1", + "winston": "2.3.1", + "winston-daily-rotate-file": "1.4.6" + }, + "dependencies": { + "@types/mkdirp": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-0.5.0.tgz", + "integrity": "sha512-9UvtpVx/f9ly3T0bTri3DNQYyRWoJ2CPwvBKCeD0BOG41XQBVCx4wr1aKcdOv3Uv+oeqJoFRrgAOxxO3hrFg5g==", + "requires": { + "@types/node": "8.0.19" + } + }, + "@types/node": { + "version": "8.0.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.19.tgz", + "integrity": "sha512-VRQB+Q0L3YZWs45uRdpN9oWr82meL/8TrJ6faoKT5tp0uub2l/aRMhtm5fo68h7kjYKH60f9/bay1nF7ZpTW5g==" + }, + "@types/winston": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/@types/winston/-/winston-2.3.4.tgz", + "integrity": "sha512-lUhWIhgSpk4GHoa/hUuvkueAdP0a4NG9BRDjKX9r6pSYo1xSKKYXu+WatBwTzX96wJgeQdzrlGeUF9f2iOjSKA==", + "requires": { + "@types/node": "8.0.19" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" + }, + "async": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async/-/async-1.0.0.tgz", + "integrity": "sha1-+PwEyjoTeErenhZBr5hXjPvWR6k=" + }, + "babel-code-frame": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.22.0.tgz", + "integrity": "sha1-AnYgvuVnqIwyVhV05/0IAdMxGOQ=", + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "colors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", + "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=" + }, + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "cycle": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", + "integrity": "sha1-IegLK+hYD5i0aPN5QwZisEbDStI=" + }, + "diff": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.0.tgz", + "integrity": "sha512-w0XZubFWn0Adlsapj9EAWX0FqWdO4tz8kc3RiYdWLh4k/V8PTb6i0SMgXt0vRM3zyKnT8tKO7mUlieRQHIjMNg==" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" + }, + "eyes": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", + "integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "requires": { + "ansi-regex": "2.1.1" + } + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=" + }, + "resolve": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz", + "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==", + "requires": { + "path-parse": "1.0.5" + } + }, + "semver": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" + }, + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "requires": { + "ansi-regex": "2.1.1" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" + }, + "tslib": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.7.1.tgz", + "integrity": "sha1-vIAEFkaRkjp5/oN4u+s9ogF1OOw=" + }, + "tslint": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.5.0.tgz", + "integrity": "sha1-EOjas+MGH6YelELozuOYKs8gpqo=", + "requires": { + "babel-code-frame": "6.22.0", + "colors": "1.1.2", + "commander": "2.11.0", + "diff": "3.3.0", + "glob": "7.1.2", + "minimatch": "3.0.4", + "resolve": "1.4.0", + "semver": "5.4.1", + "tslib": "1.7.1", + "tsutils": "2.8.0" + }, + "dependencies": { + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=" + } + } + }, + "tsutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.8.0.tgz", + "integrity": "sha1-AWAXNymzvxOGKN0UoVN+AIUdgUo=", + "requires": { + "tslib": "1.7.1" + } + }, + "typescript": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.2.tgz", + "integrity": "sha1-+DlfhdRZJ2BnyYiqQYN6j4KHCEQ=" + }, + "winston": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/winston/-/winston-2.3.1.tgz", + "integrity": "sha1-C0hCDZeMAYBM8CMLZIhhWYIloRk=", + "requires": { + "async": "1.0.0", + "colors": "1.0.3", + "cycle": "1.0.3", + "eyes": "0.1.8", + "isstream": "0.1.2", + "stack-trace": "0.0.10" + } + }, + "winston-daily-rotate-file": { + "version": "1.4.6", + "resolved": "https://registry.npmjs.org/winston-daily-rotate-file/-/winston-daily-rotate-file-1.4.6.tgz", + "integrity": "sha1-8gS2raGaU4b99S/pl9jhDkP/d4g=" + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + } + } + }, + "wkx": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/wkx/-/wkx-0.4.1.tgz", + "integrity": "sha1-L8FxtenLVcYlb+9L3h8hvkE77+4=", + "requires": { + "@types/node": "6.0.88" + }, + "dependencies": { + "@types/node": { + "version": "6.0.88", + "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.88.tgz", + "integrity": "sha512-bYDPZTX0/s1aihdjLuAgogUAT5M+TpoWChEMea2p0yOcfn5bu3k6cJb9cp6nw268XeSNIGGr+4+/8V5K6BGzLQ==" + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "ws": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.1.0.tgz", + "integrity": "sha512-TU4/qKFlyQFqNITNWiqPCUY9GqlAhEotlzfcZcve6VT1YEngQl1dDMqwQQS3eMYruJ5r/UD3lcsWib6iVMDGDw==", + "requires": { + "safe-buffer": "5.1.1", + "ultron": "1.1.0" + } + } + } +} diff --git a/package.json b/package.json index 61af065..dbe518a 100644 --- a/package.json +++ b/package.json @@ -1,45 +1,51 @@ { "name": "MarketBot", - "version": "1.0.0", - "main": "index.js", + "private": true, + "author": "Jeroen Akkerman", + "version": "1.1.0", + "description": "A Discord bot for looking up EVE Online market prices", + "repository": { + "type": "git", + "url": "https://github.com/Ionaru/MarketBot.git" + }, "scripts": { - "start": "node ./index.js", + "build": "tsc --project tsconfig.json", "lint": "tslint --project tsconfig.json --type-check -c tslint.json \"src/**/*.ts\"", - "test": "mocha --compilers ts:ts-node/register ./src/**/*.spec.ts" + "start": "npm run build && node dist/market-bot.js", + "test": "npm run build && mocha dist/src/**/*.spec.js" }, "dependencies": { "countdown": "^2.6.0", - "discord.js": "^11.1.0", + "discord.js": "^11.2.1", "escape-string-regexp": "^1.0.5", - "fuse.js": "^3.0.5", + "fuse.js": "^3.1.0", "isomorphic-fetch": "^2.2.1", "js-yaml": "^3.9.1", "mkdirp": "^0.5.1", "pretty-error": "^2.1.1", "request": "^2.81.0", - "sequelize": "^4.5.0", + "sequelize": "^4.8.0", "sqlite3": "^3.1.9", - "ts-node": "^3.3.0", - "typescript": "^2.4.2", - "winston-pnp-logger": "^1.0.0", - "xml2js": "^0.4.18" + "typescript": "^2.5.2", + "winston-pnp-logger": "^1.0.0" }, "devDependencies": { - "@types/chai": "^4.0.3", + "@types/chai": "^4.0.4", + "@types/countdown": "0.0.5", + "@types/escape-string-regexp": "0.0.31", "@types/js-yaml": "^3.9.1", - "@types/mkdirp": "^0.5.0", - "@types/mocha": "^2.2.41", - "@types/node": "^8.0.23", - "@types/request": "^2.0.1", - "@types/sequelize": "^4.0.69", + "@types/mkdirp": "^0.5.1", + "@types/mocha": "^2.2.42", + "@types/node": "^8.0.26", + "@types/request": "^2.0.3", + "@types/sequelize": "^4.0.73", "@types/sinon": "^2.3.3", - "@types/sqlite3": "^3.1.0", - "@types/winston": "^2.3.4", - "@types/xml2js": "^0.4.0", - "chai": "^4.1.1", + "@types/sqlite3": "^3.1.1", + "@types/winston": "^2.3.5", + "chai": "^4.1.2", "mocha": "^3.5.0", - "sinon": "^3.2.0", - "tslint": "^5.6.0" + "sinon": "^3.2.1", + "tslint": "^5.7.0" }, "license": "MIT" } diff --git a/src/chat-service/discord/client.ts b/src/chat-service/discord/client.ts index daa3f10..420fed6 100644 --- a/src/chat-service/discord/client.ts +++ b/src/chat-service/discord/client.ts @@ -62,14 +62,27 @@ export class Client { this.login(); } - public async sendToChannel(id: string, message: string) { + public async sendToChannel(id: string, message: string, userId?: string): Promise { if (message.length > maxMessageLength) { throw new Error('MaxMessageLengthReached'); } - const channel: Discord.Channel = this.client.channels.array().filter((_) => _.id === id)[0]; - if (channel.type === 'dm' || channel.type === 'text') { - const textChannel = channel as Discord.TextChannel; - await textChannel.send(message); + try { + const channel: Discord.Channel = this.client.channels.array().filter((_) => _.id === id)[0]; + if (channel) { + if (channel.type === 'dm' || channel.type === 'text') { + const textChannel = channel as Discord.TextChannel | Discord.DMChannel; + await textChannel.send(message).catch((error) => {throw new Error(error); }); + } + } else { + // Try to create a DM channel with the user, this might not always succeed depending on their privacy settings. + const user: Discord.User = this.client.users.array().filter((_) => _.id === userId)[0]; + if (user) { + const dmChannel: Discord.DMChannel = await user.createDM(); + await dmChannel.send(message).catch((error) => {throw new Error(error); }); + } + } + } catch (error) { + logger.error('Cannot send message:', error); } } diff --git a/src/chat-service/discord/message.ts b/src/chat-service/discord/message.ts index 0c13e0b..1c0eedc 100644 --- a/src/chat-service/discord/message.ts +++ b/src/chat-service/discord/message.ts @@ -1,12 +1,12 @@ import * as Discord from 'discord.js'; -import * as PrettyError from 'pretty-error'; +// import * as PrettyError from 'pretty-error'; import { logger } from 'winston-pnp-logger'; import { makeCode, makeURL, makeUserLink, newLine } from '../../helpers/message-formatter'; import { creator } from '../../market-bot'; import { maxMessageLength } from './misc'; -const pe = new PrettyError(); +// const pe = new PrettyError(); export class Message { @@ -14,8 +14,8 @@ export class Message { private _origin: string; private _sender: string; private _author: { id: string, name: string }; - private _channel: { id: string, name: string, type: 'dm' | 'text' | 'voice' | 'group' }; - private _server: { id: string, name: string }; + private _channel: { id: string, name: string | undefined, type: 'dm' | 'text' | 'voice' | 'group' }; + private _server: { id: string | undefined, name: string | undefined }; private _content: string; private _id: string; @@ -30,13 +30,13 @@ export class Message { }; this._channel = { id: message.channel.id, - name: null, + name: undefined, type: message.channel.type }; this._server = { - id: null, - name: null + id: undefined, + name: undefined }; if (message.guild) { @@ -56,11 +56,11 @@ export class Message { return this._id; } - get server(): { id: string, name: string } { + get server(): { id: string | undefined, name: string | undefined } { return this._server; } - get channel(): { id: string, name: string, type: 'dm' | 'text' | 'voice' | 'group' } { + get channel(): { id: string, name: string | undefined, type: 'dm' | 'text' | 'voice' | 'group' } { return this._channel; } @@ -88,13 +88,13 @@ export class Message { if (message.length > maxMessageLength) { throw new Error('MaxMessageLengthReached'); } - const sent = await this._message.channel.send(message); + const sent: any = await this._message.channel.send(message); return new Message(sent[0] || sent); } public async sendError(caughtError: Error) { const time = Date.now(); - logger.error(`Caught error @ ${time}` + newLine(), pe.render(caughtError)); + logger.error(`Caught error @ ${time}` + newLine(), caughtError); logger.error(`Original message:`, this.content); this.reply( `I'm sorry, it appears I have developed a fault, please let` + diff --git a/src/commands/buy-orders.ts b/src/commands/buy-orders.ts index cef43a5..8084568 100644 --- a/src/commands/buy-orders.ts +++ b/src/commands/buy-orders.ts @@ -1,15 +1,15 @@ import { Message } from '../chat-service/discord/message'; import { maxMessageLength } from '../chat-service/discord/misc'; -import { fetchMarketData } from '../helpers/api'; +import { fetchMarketData, fetchUniverseNames } from '../helpers/api'; import { sortArrayByObjectProperty } from '../helpers/arrays'; import { logCommand } from '../helpers/command-logger'; import { formatNumber, pluralize } from '../helpers/formatters'; import { guessUserItemInput, guessUserRegionInput } from '../helpers/guessers'; import { itemFormat, makeBold, makeCode, newLine, regionFormat } from '../helpers/message-formatter'; import { parseMessage } from '../helpers/parsers'; -import { citadels, items, universeApi } from '../market-bot'; +import { citadels, items } from '../market-bot'; import { regionList } from '../regions'; -import { IMarketData } from '../typings'; +import { IMarketData, INamesData } from '../typings'; export async function buyOrdersFunction(message: Message) { const messageData = parseMessage(message.content); @@ -24,7 +24,7 @@ export async function buyOrdersFunction(message: Message) { if (messageData.item && messageData.item.length) { - itemData = items.filter((_) => { + itemData = items.filter((_): boolean | void => { if (_.name.en) { return _.name.en.toUpperCase() === messageData.item.toUpperCase(); } @@ -40,7 +40,7 @@ export async function buyOrdersFunction(message: Message) { if (itemData) { - let regionId = 10000002; + let regionId: number | void = 10000002; if (messageData.region) { regionId = guessUserRegionInput(messageData.region); @@ -76,16 +76,9 @@ export async function buyOrdersFunction(message: Message) { locationIds = [...new Set(locationIds)]; - let locationNames: any[]; + let locationNames: INamesData[] = []; if (locationIds.length) { - const nameData = await universeApi.postUniverseNames(locationIds).catch(() => { - return null; - }); - if (nameData) { - locationNames = nameData.body; - } else { - locationNames = []; - } + locationNames = await fetchUniverseNames(locationIds); } reply += `The highest ${itemFormat(itemData.name.en)} buy orders in ${regionFormat(regionName)}:`; @@ -101,11 +94,7 @@ export async function buyOrdersFunction(message: Message) { locationName = location.name; } else if (order.location_id.toString().length === 13) { const citadel = citadels[order.location_id]; - if (citadel) { - locationName = citadel.name; - } else { - locationName = 'an unknown citadel'; - } + locationName = citadel ? citadel.name : 'an unknown citadel'; } const volume = formatNumber(order.volume_remain, 0); @@ -155,5 +144,5 @@ export async function buyOrdersFunction(message: Message) { reply = 'You need to give me an item to search for.'; } await replyPlaceHolder.edit(reply); - logCommand('buy-orders', message, (itemData ? itemData.name.en : null), (regionName ? regionName : null)); + logCommand('buy-orders', message, (itemData ? itemData.name.en : undefined), (regionName ? regionName : undefined)); } diff --git a/src/commands/data.ts b/src/commands/data.ts index faa868f..bbc34c3 100644 --- a/src/commands/data.ts +++ b/src/commands/data.ts @@ -1,6 +1,5 @@ import * as countdown from 'countdown'; import SequelizeStatic = require('sequelize'); - import { Message } from '../chat-service/discord/message'; import { ILogEntryInstance, logCommand, logEntry } from '../helpers/command-logger'; import { pluralize } from '../helpers/formatters'; @@ -41,7 +40,8 @@ export async function dataFunction(message: Message) { const searchTimes = row.getDataValue('number'); const timesWord = pluralize('time', 'times', searchTimes); reply += newLine(); - reply += `${iter}. ${itemFormat(row.item_output)}, searched ${makeCode(searchTimes)} ${timesWord}.`; + const itemAmount = row.item_output as string; + reply += `${iter}. ${itemFormat(itemAmount)}, searched ${makeCode(searchTimes)} ${timesWord}.`; } reply += newLine(2); @@ -70,14 +70,17 @@ export async function dataFunction(message: Message) { userWord = pluralize('user', 'users', trackingUsers); reply += `I am currently tracking ${makeCode(trackingCount)} item ${priceWord} for ${makeCode(trackingUsers)} unique ${userWord}.`; - reply += newLine(2); - reply += makeBold('Bot status'); - reply += newLine(); - const currentServerCount = client.serverCount; - serverWord = pluralize('server', 'servers', currentServerCount); - reply += `I am currently online on ${makeCode(currentServerCount)} ${serverWord}.`; - reply += newLine(); - reply += `I've been online for ${makeCode(countdown(client.upTime))}.`; + if (client) { + reply += newLine(2); + reply += makeBold('Bot status'); + reply += newLine(); + const currentServerCount = client.serverCount; + serverWord = pluralize('server', 'servers', currentServerCount); + reply += `I am currently online on ${makeCode(currentServerCount)} ${serverWord}.`; + reply += newLine(); + const upTime = countdown(client.upTime) as countdown.Timespan; + reply += `I've been online for ${makeCode(upTime.toString())}.`; + } await message.reply(reply); logCommand('data', message); diff --git a/src/commands/price.ts b/src/commands/price.ts index c58744e..4ca97df 100644 --- a/src/commands/price.ts +++ b/src/commands/price.ts @@ -23,7 +23,7 @@ export async function priceFunction(message: Message) { if (messageData.item && messageData.item.length) { - itemData = items.filter((_) => { + itemData = items.filter((_): boolean | void => { if (_.name.en) { return _.name.en.toUpperCase() === messageData.item.toUpperCase(); } @@ -38,7 +38,7 @@ export async function priceFunction(message: Message) { if (itemData) { - let regionId = 10000002; + let regionId: number | void = 10000002; if (messageData.region) { regionId = guessUserRegionInput(messageData.region); @@ -107,5 +107,5 @@ export async function priceFunction(message: Message) { reply = 'You need to give me an item to search for.'; } await replyPlaceholder.edit(reply); - logCommand('price', message, (itemData ? itemData.name.en : null), (regionName ? regionName : null)); + logCommand('price', message, (itemData ? itemData.name.en : undefined), (regionName ? regionName : undefined)); } diff --git a/src/commands/sell-orders.ts b/src/commands/sell-orders.ts index 1e562cc..9c798b8 100644 --- a/src/commands/sell-orders.ts +++ b/src/commands/sell-orders.ts @@ -1,15 +1,15 @@ import { Message } from '../chat-service/discord/message'; import { maxMessageLength } from '../chat-service/discord/misc'; -import { fetchMarketData } from '../helpers/api'; +import { fetchMarketData, fetchUniverseNames } from '../helpers/api'; import { sortArrayByObjectProperty } from '../helpers/arrays'; import { logCommand } from '../helpers/command-logger'; import { formatNumber, pluralize } from '../helpers/formatters'; import { guessUserItemInput, guessUserRegionInput } from '../helpers/guessers'; import { itemFormat, makeCode, newLine, regionFormat } from '../helpers/message-formatter'; import { parseMessage } from '../helpers/parsers'; -import { items, universeApi } from '../market-bot'; +import { items } from '../market-bot'; import { regionList } from '../regions'; -import { IMarketData } from '../typings'; +import { IMarketData, INamesData } from '../typings'; export async function sellOrdersFunction(message: Message) { @@ -25,7 +25,7 @@ export async function sellOrdersFunction(message: Message) { if (messageData.item && messageData.item.length) { - itemData = items.filter((_) => { + itemData = items.filter((_): boolean | void => { if (_.name.en) { return _.name.en.toUpperCase() === messageData.item.toUpperCase(); } @@ -41,7 +41,7 @@ export async function sellOrdersFunction(message: Message) { if (itemData) { - let regionId = 10000002; + let regionId: number | void = 10000002; if (messageData.region) { regionId = guessUserRegionInput(messageData.region); @@ -75,15 +75,9 @@ export async function sellOrdersFunction(message: Message) { locationIds = [...new Set(locationIds)]; - const nameData = await universeApi.postUniverseNames(locationIds).catch(() => { - return null; - }); - - let locationNames: any[]; - if (nameData) { - locationNames = nameData.body; - } else { - locationNames = []; + let locationNames: INamesData[] = []; + if (locationIds.length) { + locationNames = await fetchUniverseNames(locationIds); } reply += `The cheapest ${itemFormat(itemData.name.en)} sell orders in ${regionFormat(regionName)}:`; @@ -95,12 +89,8 @@ export async function sellOrdersFunction(message: Message) { const orderPrice = formatNumber(order.price); const locationNameData = locationNames.filter((_) => _.id === order.location_id)[0]; - let locationName: string; - if (locationNameData) { - locationName = locationNameData.name; - } else { - locationName = `an unknown location with ID ${order.location_id}`; - } + const locationName = locationNameData ? locationNameData.name : `an unknown location with ID ${order.location_id}`; + const volume = formatNumber(order.volume_remain, 0); const itemWord = pluralize('item', 'items', order.volume_remain); @@ -136,5 +126,5 @@ export async function sellOrdersFunction(message: Message) { reply = 'You need to give me an item to search for.'; } await replyPlaceHolder.edit(reply); - logCommand('sell-orders', message, (itemData ? itemData.name.en : null), (regionName ? regionName : null)); + logCommand('sell-orders', message, (itemData ? itemData.name.en : undefined), (regionName ? regionName : undefined)); } diff --git a/src/commands/track.ts b/src/commands/track.ts index 7ac38eb..50bb207 100644 --- a/src/commands/track.ts +++ b/src/commands/track.ts @@ -14,7 +14,7 @@ import { client, items } from '../market-bot'; import { regionList } from '../regions'; import { IMarketData, ISDEObject } from '../typings'; -export let trackingEntry; +export let trackingEntry: any; export interface ITrackingEntryAttr { item_id: number; @@ -41,7 +41,7 @@ export async function initTracking() { // noinspection JSUnusedGlobalSymbols const sequelizeDatabase = new SequelizeStatic('sqlite://tracking.db', { dialect: 'sqlite', - logging: (str) => { + logging: (str: string) => { logger.debug(str); } }); @@ -73,13 +73,13 @@ export async function startTrackingCycle() { await performTrackingCycle(); setInterval(async () => { await performTrackingCycle(); - }, 300 * 1000); + }, 5 * 60 * 1000); } export async function trackFunction(message: Message, type: 'buy' | 'sell') { const maxEntries = 3; - const timeLimit = 60 * 60 * 1000; + const timeLimit = 6 * 60 * 60 * 1000; const replyPlaceHolder = await message.reply( `Setting up for price tracking. One moment please, ${message.sender}...` @@ -106,7 +106,7 @@ export async function trackFunction(message: Message, type: 'buy' | 'sell') { let reply = ''; - itemData = items.filter((_) => { + itemData = items.filter((_): boolean | void => { if (_.name.en) { return _.name.en.toUpperCase() === messageData.item.toUpperCase(); } @@ -125,7 +125,7 @@ export async function trackFunction(message: Message, type: 'buy' | 'sell') { return; } - let regionId = 10000002; + let regionId: number | void = 10000002; if (messageData.region) { regionId = guessUserRegionInput(messageData.region); @@ -156,7 +156,7 @@ export async function trackFunction(message: Message, type: 'buy' | 'sell') { return; } - const itemDup = dupEntries.filter((_) => { + const itemDup = dupEntries.filter((_): boolean | void => { if (_.item_id === itemData.itemID && _.region_id === regionId && _.tracking_type === type) { return true; } @@ -181,7 +181,8 @@ export async function trackFunction(message: Message, type: 'buy' | 'sell') { `I'll warn you when the ${makeBold(type)} price changes ${makeCode(formatNumber(changeLimit) + ' ISK')}. ` + ` Right now the price is ${makeCode(formatNumber(originalPrice) + ' ISK')}`; reply += newLine(2); - reply += `Tracking will last ${makeCode(countdown(Date.now() + timeLimit))}`; + const trackingTimeLimit = countdown(Date.now() + timeLimit) as countdown.Timespan; + reply += `Tracking will last ${makeCode(trackingTimeLimit.toString())}`; const entry: ITrackingEntryAttr = { channel_id: message.channel.id, @@ -200,7 +201,7 @@ export async function trackFunction(message: Message, type: 'buy' | 'sell') { await trackingEntry.create(entry); await replyPlaceHolder.edit(reply); - logCommand(`track-${type}-order`, message, (itemData ? itemData.name.en : null), (regionName ? regionName : null)); + logCommand(`track-${type}-order`, message, (itemData ? itemData.name.en : undefined), (regionName ? regionName : undefined)); } export async function clearTracking(message: Message) { @@ -212,10 +213,10 @@ export async function clearTracking(message: Message) { } } await message.reply(`Your tracking list is now empty, ${message.sender}.`); - logCommand(`track-clear`, message, null, null); + logCommand(`track-clear`, message, undefined, undefined); } -function droppedRose(amount) { +function droppedRose(amount: number) { if (amount < 0) { return 'dropped'; } @@ -233,15 +234,8 @@ async function performTrackingCycle() { for (const entry of trackingEntries) { - // Remove tracking entry when the time since tracking start exceeds the max duration - if (Date.now() - entry.tracking_start > entry.tracking_duration) { - sendExpiredMessage(entry.channel_id, entry); - entry.destroy().then(); - break; - } - - let currentPrice: number; - let currentOrder: IMarketData; + let currentPrice: number = 0; + let currentOrder: IMarketData | undefined; // It is inefficient to fetch prices for the same item/region combo twice, check if the combo exists in duplicateEntries. const duplicateEntry = entriesDone.filter((_) => { @@ -253,7 +247,7 @@ async function performTrackingCycle() { currentOrder = duplicateEntry.current_order; } else { currentOrder = await getCheapestOrder(entry.tracking_type, entry.item_id, entry.region_id).catch(() => { - return null; + return undefined; }); if (currentOrder) { currentPrice = currentOrder.price; @@ -261,7 +255,7 @@ async function performTrackingCycle() { } // Only run if we have a currentPrice and if it is different from the tracking price - if (currentPrice && currentPrice !== entry.tracking_price) { + if (currentOrder && currentPrice && currentPrice !== entry.tracking_price) { // Calculate the difference between the two values and get the absolute number from it const change = currentPrice - entry.tracking_price; @@ -273,15 +267,25 @@ async function performTrackingCycle() { if (roundedChange >= entry.tracking_limit) { await sendChangeMessage(entry.channel_id, currentOrder, entry, changeAbsolute).then(() => { // Update the tracking_price so we don't notify twice for the same price change - entry.tracking_price = currentOrder.price; - entry.current_price = currentOrder.price; - entry.save().then(); + if (entry && currentOrder) { + entry.tracking_price = currentOrder.price; + entry.current_price = currentOrder.price; + entry.save().then(); + } }).catch((error) => { - logger.warn('Cannot send message', error); + logger.error('Cannot send message', error); entry.destroy().then(); }); } } + + // Remove tracking entry when the time since tracking start exceeds the max duration + if (Date.now() - entry.tracking_start > entry.tracking_duration) { + sendExpiredMessage(entry.sender_id, entry.channel_id, entry).then(); + entry.destroy().then(); + continue; + } + entry.current_order = currentOrder; entriesDone.push(entry); } @@ -305,15 +309,19 @@ async function sendChangeMessage(channelId: string, currentOrder: IMarketData, e reply += `from ${makeCode(oldPrice)} to ${makeCode(newPrice)}. `; reply += newLine(); reply += `There ${isWord} ${makeCode(currentOrder.volume_remain.toString())} ${itemWord} set at this price.`; - await client.sendToChannel(channelId, reply); + if (client) { + await client.sendToChannel(channelId, reply); + } } -function sendExpiredMessage(channelId: string, entry: ITrackingEntryAttr) { +async function sendExpiredMessage(senderId: string, channelId: string, entry: ITrackingEntryAttr) { const itemName = items.filter((_) => _.itemID === entry.item_id)[0].name.en; const regionName = regionList[entry.region_id]; let reply = `Tracking of the ${makeBold(entry.tracking_type)} price `; reply += `for ${itemFormat(itemName)} in ${regionFormat(regionName)} expired.`; - client.sendToChannel(channelId, reply).catch(); + if (client) { + await client.sendToChannel(channelId, reply, senderId); + } } diff --git a/src/helpers/api.ts b/src/helpers/api.ts index decfbbd..008590d 100644 --- a/src/helpers/api.ts +++ b/src/helpers/api.ts @@ -1,19 +1,19 @@ import 'isomorphic-fetch'; import { logger } from 'winston-pnp-logger'; -import { ICitadelData, IMarketData } from '../typings'; +import { ICitadelData, IMarketData, INamesData } from '../typings'; import { sortArrayByObjectProperty } from './arrays'; const ccpHost = 'https://esi.tech.ccp.is/'; -export async function fetchItemPrice(itemId, regionId) { +export async function fetchItemPrice(itemId: number, regionId: number) { const host = 'https://api.eve-central.com/api/marketstat/json'; const url = `${host}?typeid=${itemId}®ionlimit=${regionId}`; logger.debug(url); - const refreshResponse: Response = await fetch(url).catch(async (errorResponse) => { + const refreshResponse: Response | undefined = await fetch(url).catch(async (errorResponse) => { logger.error('Request failed:', url, errorResponse); - return null; + return undefined; }); if (refreshResponse) { return await refreshResponse.json().catch(() => { @@ -22,23 +22,24 @@ export async function fetchItemPrice(itemId, regionId) { } } -export async function fetchMarketData(itemId, regionId): Promise { +export async function fetchMarketData(itemId: number, regionId: number): Promise { const path = `v1/markets/${regionId}/orders/?type_id=${itemId}`; const url = ccpHost + path; logger.debug(url); - const refreshResponse: Response = await fetch(url).catch((errorResponse) => { + const refreshResponse: Response | undefined = await fetch(url).catch((errorResponse) => { logger.error('Request failed:', url, errorResponse); - return null; + return undefined; }); if (refreshResponse) { return await refreshResponse.json().catch(() => { return []; }); } + return []; } -export async function getCheapestOrder(type: 'buy' | 'sell', itemId: number, regionId: number): Promise { +export async function getCheapestOrder(type: 'buy' | 'sell', itemId: number, regionId: number): Promise { const marketData = await fetchMarketData(itemId, regionId); if (marketData && marketData.length) { if (type === 'sell') { @@ -51,7 +52,7 @@ export async function getCheapestOrder(type: 'buy' | 'sell', itemId: number, reg return sortedBuyOrders[0]; } } - return null; + return undefined; } export async function fetchCitadelData(): Promise { @@ -59,12 +60,43 @@ export async function fetchCitadelData(): Promise { const path = `api/citadel/all`; const url = host + path; - const citadelResponse: Response = await fetch(url).catch((errorResponse) => { + const citadelResponse: Response | undefined = await fetch(url).catch((errorResponse) => { logger.error('Request failed:', url, errorResponse); - return null; + return undefined; }); + if (citadelResponse) { - return await citadelResponse.json(); + if (citadelResponse.ok) { + return await citadelResponse.json().catch(() => { + return {}; + }); + } else { + logger.error('Request not OK:', url, citadelResponse); + } } return {}; } + +export async function fetchUniverseNames(ids: number[]): Promise { + const path = 'v2/universe/names/'; + const url = ccpHost + path; + const idData = JSON.stringify(ids); + + logger.debug(url, idData); + const namesResponse: Response | undefined = await fetch(url, {body: idData, method: 'POST'}).catch( + (errorResponse) => { + logger.error('Request failed:', url, errorResponse); + return undefined; + }); + + if (namesResponse) { + if (namesResponse.ok) { + return await namesResponse.json().catch(() => { + return []; + }); + } else { + logger.error('Request not OK:', url, namesResponse); + } + } + return []; +} diff --git a/src/helpers/arrays.ts b/src/helpers/arrays.ts index 4d48045..aeeda94 100644 --- a/src/helpers/arrays.ts +++ b/src/helpers/arrays.ts @@ -1,5 +1,5 @@ export function sortArrayByObjectPropertyLength(array: any[], p1: string, p2: string, inverse = false): any[] { - function compare(a, b) { + function compare(a: any, b: any) { if (a[p1][p2].length < b[p1][p2].length) { return inverse ? 1 : -1; } @@ -13,7 +13,7 @@ export function sortArrayByObjectPropertyLength(array: any[], p1: string, p2: st } export function sortArrayByObjectProperty(array: any[], property: string, inverse = false): any[] { - function compare(a, b) { + function compare(a: any, b: any) { if (a[property] < b[property]) { return inverse ? 1 : -1; } diff --git a/src/helpers/command-logger.ts b/src/helpers/command-logger.ts index 2b83cb5..51c027a 100644 --- a/src/helpers/command-logger.ts +++ b/src/helpers/command-logger.ts @@ -1,12 +1,12 @@ -import Instance = SequelizeStatic.Instance; import SequelizeStatic = require('sequelize'); -import * as sqlite3 from 'sqlite3'; +import Instance = SequelizeStatic.Instance; +import { Database } from 'sqlite3'; import { logger } from 'winston-pnp-logger'; import { Message } from '../chat-service/discord/message'; import { parseMessage } from './parsers'; -export let logEntry; +export let logEntry: any; export interface ILogEntryAttr { guild_id?: string; @@ -25,16 +25,17 @@ export interface ILogEntryAttr { } /* tslint:disable:no-empty-interface */ -export interface ILogEntryInstance extends Instance, ILogEntryAttr { } +export interface ILogEntryInstance extends Instance, ILogEntryAttr {} + /* tslint:enable:no-unused-variable */ export async function startLogger(): Promise { - new sqlite3.Database('botlog.db').close(); + new Database('botlog.db').close(); // noinspection JSUnusedGlobalSymbols const sequelizeDatabase = new SequelizeStatic('sqlite://botlog.db', { dialect: 'sqlite', - logging: (str) => { + logging: (str: string) => { logger.debug(str); } }); @@ -64,7 +65,7 @@ export async function startLogger(): Promise { }).sync(); } -export function logCommand(commandType: string, discordMessage: Message, outputItem?, outputRegion?) { +export function logCommand(commandType: string, discordMessage: Message, outputItem?: string, outputRegion?: string) { logger.debug(discordMessage.content); const parsedMessage = parseMessage(discordMessage.content); diff --git a/src/helpers/guessers.ts b/src/helpers/guessers.ts index 120d847..2a2235a 100644 --- a/src/helpers/guessers.ts +++ b/src/helpers/guessers.ts @@ -1,11 +1,15 @@ -import * as escapeStringRegexp from 'escape-string-regexp'; +import escapeStringRegexp = require('escape-string-regexp'); import { fuse, items } from '../market-bot'; import { regionList } from '../regions'; import { ISDEObject } from '../typings'; import { sortArrayByObjectPropertyLength } from './arrays'; -export const shortcuts = { +interface IShortcuts { + [shortcut: string]: string; +} + +export const shortcuts: IShortcuts = { bcs: 'Ballistic Control System', dc: 'Damage Control', dda: 'Drone Damage Amplifier', @@ -45,7 +49,7 @@ export function guessUserItemInput(itemString: string): ISDEObject { // Check in start of the words regex = new RegExp(`^${itemString}`, 'i'); - possibilities.push(...items.filter((_) => { + possibilities.push(...items.filter((_): RegExpMatchArray | null | void => { if (_.name.en) { return _.name.en.match(regex); } @@ -54,7 +58,7 @@ export function guessUserItemInput(itemString: string): ISDEObject { if (!possibilities.length) { // Check at end of the words regex = new RegExp(`${itemString}$`, 'i'); - possibilities.push(...items.filter((_) => { + possibilities.push(...items.filter((_): RegExpMatchArray | null | void => { if (_.name.en) { return _.name.en.match(regex); } @@ -62,7 +66,7 @@ export function guessUserItemInput(itemString: string): ISDEObject { if (!possibilities.length) { // Check in middle of words - possibilities.push(...items.filter((_) => { + possibilities.push(...items.filter((_): boolean | void => { if (_.name.en) { return _.name.en.toUpperCase().indexOf(itemString.toUpperCase()) !== -1; } @@ -81,7 +85,7 @@ export function guessUserItemInput(itemString: string): ISDEObject { return itemData; } -export function guessUserRegionInput(regionString: string): number { +export function guessUserRegionInput(regionString: string): number | void { for (const key in regionList) { if (regionList.hasOwnProperty(key)) { if (regionList[key].toUpperCase().indexOf(regionString.toUpperCase()) !== -1) { diff --git a/src/helpers/parsers.ts b/src/helpers/parsers.ts index 88d0f9c..575291d 100644 --- a/src/helpers/parsers.ts +++ b/src/helpers/parsers.ts @@ -1,11 +1,11 @@ import { commandPrefix, limitCommandRegex, regionCommandRegex } from '../market-bot'; -import { IParsedMessage, ISDEObject } from '../typings'; +import { IParsedMessage, ISDEObject, ITypeIDs } from '../typings'; export function parseMessage(message: string): IParsedMessage { const parsedMessage: IParsedMessage = { - item: null, - limit: null, - region: null + item: '', + limit: 0, + region: '' }; // Remove double spaces because that confuses the input guessing system @@ -29,7 +29,7 @@ export function parseMessage(message: string): IParsedMessage { // Search for the region text const regionMatch = messageText.match(regionCommandRegex); - if (regionMatch) { + if (regionMatch && regionMatch.index) { let sep1 = messageText.substring(regionMatch.index + regionMatch[0].length).trim(); if (sep1.indexOf(commandPrefix) !== -1) { sep1 = sep1.substring(0, sep1.indexOf(commandPrefix)).trim(); @@ -39,7 +39,7 @@ export function parseMessage(message: string): IParsedMessage { // Search for the limit text const limitMatch = messageText.match(limitCommandRegex); - if (limitMatch) { + if (limitMatch && limitMatch.index) { let sep1 = messageText.substring(limitMatch.index + limitMatch[0].length).trim(); if (sep1.indexOf(commandPrefix) !== -1) { sep1 = sep1.substring(0, sep1.indexOf(commandPrefix)).trim(); @@ -50,7 +50,7 @@ export function parseMessage(message: string): IParsedMessage { return parsedMessage; } -export function parseTypeIDs(typeIDs: object): ISDEObject[] { +export function parseTypeIDs(typeIDs: ITypeIDs): ISDEObject[] { const itemsArray = []; for (const key in typeIDs) { diff --git a/src/helpers/readers.ts b/src/helpers/readers.ts index ce2487e..a507f18 100644 --- a/src/helpers/readers.ts +++ b/src/helpers/readers.ts @@ -1,10 +1,12 @@ import * as fs from 'fs'; import * as jsyaml from 'js-yaml'; -export function readTypeIDs(path): object { +import { ITypeIDs } from '../typings'; + +export function readTypeIDs(path: string): ITypeIDs { return jsyaml.load(fs.readFileSync(path).toString()); } -export function readToken(path): string { +export function readToken(path: string): string { return fs.readFileSync(path).toString().trim(); } diff --git a/src/helpers/regex.ts b/src/helpers/regex.ts index 0cd3601..83e0d4f 100644 --- a/src/helpers/regex.ts +++ b/src/helpers/regex.ts @@ -1,4 +1,4 @@ -import * as escapeStringRegexp from 'escape-string-regexp'; +import escapeStringRegexp = require('escape-string-regexp'); import { commandPrefix } from '../market-bot'; diff --git a/src/market-bot.ts b/src/market-bot.ts index 9cd1e79..d38482d 100644 --- a/src/market-bot.ts +++ b/src/market-bot.ts @@ -1,8 +1,6 @@ import Fuse = require('fuse.js'); -import path = require('path'); import { logger, WinstonPnPLogger } from 'winston-pnp-logger'; -import { UniverseApi } from '../swagger/api'; import { Client } from './chat-service/discord/client'; import { Message } from './chat-service/discord/message'; import { buyOrdersFunction } from './commands/buy-orders'; @@ -20,17 +18,16 @@ import { ICitadelData, ISDEObject } from './typings'; export const creator = {name: 'Ionaru', id: '96746840958959616'}; -export const universeApi = new UniverseApi(); export let items: ISDEObject[]; -export let client: Client; +export let client: Client | undefined; export let fuse: Fuse; export let token: string; export let citadels: ICitadelData; -const tokenPath = path.join(__dirname, '../config/token.txt'); -const typeIDsPath = path.join(__dirname, '../data/typeIDs.yaml'); +const tokenPath = 'config/token.txt'; +const typeIDsPath = 'data/typeIDs.yaml'; export const commandPrefix = '/'; @@ -79,10 +76,10 @@ export const limitCommandRegex = createCommandRegex(limitCommands); async function activate() { // noinspection TsLint new WinstonPnPLogger({ - logDir: '../logs' + logDir: 'logs' }); - logger.info('Running NodeJS ' + process.version); + logger.debug('Running NodeJS ' + process.version); logger.info('Bot has awoken, loading typeIDs.yaml'); const typeIDs = readTypeIDs(typeIDsPath); @@ -139,19 +136,21 @@ async function activate() { function announceReady() { startTrackingCycle().then(); - client.emitter.on('message', (message: Message) => { - processMessage(message).then().catch((error: Error) => { - handleError(message, error); + if (client) { + client.emitter.on('message', (message: Message) => { + processMessage(message).then().catch((error: Error) => { + handleError(message, error); + }); }); - }); - logger.info(`I am ${client.name}, now online!`); + logger.info(`I am ${client.name}, now online!`); + } } async function deactivate(exitProcess: boolean): Promise { logger.info('Quitting!'); if (client) { await client.disconnect(); - client = null; + client = undefined; logger.info('Client destroyed'); } logger.info('Done!'); @@ -189,7 +188,7 @@ async function processMessage(message: Message): Promise { } } -function handleError(message: Message, caughtError: Error) { +export function handleError(message: Message, caughtError: Error) { message.sendError(caughtError).then(); } diff --git a/src/regions.ts b/src/regions.ts index 4a0264e..7e905d3 100644 --- a/src/regions.ts +++ b/src/regions.ts @@ -1,4 +1,8 @@ -export const regionList = Object.freeze({ +interface IRegionList { + [key: number]: string; +} + +export const regionList: IRegionList = Object.freeze({ 10000054: 'Aridia', 10000069: 'Black Rise', 10000055: 'Branch', diff --git a/src/typings.d.ts b/src/typings.d.ts index ada1616..8f9e143 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -1,3 +1,13 @@ +export interface INamesData { + category: string; + id: number; + name: string; +} + +export interface ITypeIDs { + [index: number]: ISDEObject; +} + export interface ISDEObject { basePrice: number; description: { diff --git a/swagger/.gitignore b/swagger/.gitignore deleted file mode 100644 index 35e2fb2..0000000 --- a/swagger/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -wwwroot/*.js -node_modules -typings diff --git a/swagger/.swagger-codegen-ignore b/swagger/.swagger-codegen-ignore deleted file mode 100644 index c5fa491..0000000 --- a/swagger/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/README.md b/swagger/README.md deleted file mode 100644 index d5445d6..0000000 --- a/swagger/README.md +++ /dev/null @@ -1 +0,0 @@ -The code in this folder was automatically generated by [Swagger CodeGen](http://editor.swagger.io/). \ No newline at end of file diff --git a/swagger/api.ts b/swagger/api.ts deleted file mode 100644 index 2e29561..0000000 --- a/swagger/api.ts +++ /dev/null @@ -1,17661 +0,0 @@ -/** - * EVE Swagger Interface - * An OpenAPI for EVE Online - * - * OpenAPI spec version: 0.4.2.dev22 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - -import request = require('request'); -import http = require('http'); -import Promise = require('bluebird'); - -let defaultBasePath = 'https://esi.tech.ccp.is/latest'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -/* tslint:disable:no-unused-variable */ - -/** -* Forbidden -*/ -export class DeleteCharactersCharacterIdContactsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteCharactersCharacterIdContactsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class DeleteCharactersCharacterIdFittingsFittingIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteCharactersCharacterIdFittingsFittingIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class DeleteCharactersCharacterIdMailLabelsLabelIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteCharactersCharacterIdMailLabelsLabelIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Unprocessable entity -*/ -export class DeleteCharactersCharacterIdMailLabelsLabelIdUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class DeleteCharactersCharacterIdMailMailIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteCharactersCharacterIdMailMailIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class DeleteFleetsFleetIdMembersMemberIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteFleetsFleetIdMembersMemberIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class DeleteFleetsFleetIdMembersMemberIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class DeleteFleetsFleetIdSquadsSquadIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteFleetsFleetIdSquadsSquadIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class DeleteFleetsFleetIdSquadsSquadIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class DeleteFleetsFleetIdWingsWingIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class DeleteFleetsFleetIdWingsWingIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class DeleteFleetsFleetIdWingsWingIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetAlliancesAllianceIdCorporationsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetAlliancesAllianceIdIconsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* No image server for this datasource -*/ -export class GetAlliancesAllianceIdIconsNotFound { - /** - * error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetAlliancesAllianceIdIconsOk { - /** - * px128x128 string - */ - 'px128x128': string; - /** - * px64x64 string - */ - 'px64x64': string; -} - -/** -* Internal server error -*/ -export class GetAlliancesAllianceIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Alliance not found -*/ -export class GetAlliancesAllianceIdNotFound { - /** - * error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetAlliancesAllianceIdOk { - /** - * the full name of the alliance - */ - 'allianceName': string; - /** - * date_founded string - */ - 'dateFounded': Date; - /** - * the executor corporation ID, if this alliance is not closed - */ - 'executorCorp': number; - /** - * the short name of the alliance - */ - 'ticker': string; -} - -/** -* Internal server error -*/ -export class GetAlliancesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetAlliancesNames200Ok { - /** - * alliance_id integer - */ - 'allianceId': number; - /** - * alliance_name string - */ - 'allianceName': string; -} - -/** -* Internal server error -*/ -export class GetAlliancesNamesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdAgentsResearch200Ok { - /** - * agent_id integer - */ - 'agentId': number; - /** - * points_per_day number - */ - 'pointsPerDay': number; - /** - * remainder_points number - */ - 'remainderPoints': number; - /** - * skill_type_id integer - */ - 'skillTypeId': number; - /** - * started_at string - */ - 'startedAt': Date; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdAgentsResearchForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdAgentsResearchInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdAssets200Ok { - /** - * is_singleton boolean - */ - 'isSingleton': boolean; - /** - * item_id integer - */ - 'itemId': number; - /** - * location_flag string - */ - 'locationFlag': GetCharactersCharacterIdAssets200Ok.LocationFlagEnum; - /** - * location_id integer - */ - 'locationId': number; - /** - * location_type string - */ - 'locationType': GetCharactersCharacterIdAssets200Ok.LocationTypeEnum; - /** - * quantity integer - */ - 'quantity': number; - /** - * type_id integer - */ - 'typeId': number; -} - -export namespace GetCharactersCharacterIdAssets200Ok { - export enum LocationFlagEnum { - AutoFit = 'AutoFit', - Cargo = 'Cargo', - CorpseBay = 'CorpseBay', - DroneBay = 'DroneBay', - FleetHangar = 'FleetHangar', - Deliveries = 'Deliveries', - HiddenModifiers = 'HiddenModifiers', - Hangar = 'Hangar', - HangarAll = 'HangarAll', - LoSlot0 = 'LoSlot0', - LoSlot1 = 'LoSlot1', - LoSlot2 = 'LoSlot2', - LoSlot3 = 'LoSlot3', - LoSlot4 = 'LoSlot4', - LoSlot5 = 'LoSlot5', - LoSlot6 = 'LoSlot6', - LoSlot7 = 'LoSlot7', - MedSlot0 = 'MedSlot0', - MedSlot1 = 'MedSlot1', - MedSlot2 = 'MedSlot2', - MedSlot3 = 'MedSlot3', - MedSlot4 = 'MedSlot4', - MedSlot5 = 'MedSlot5', - MedSlot6 = 'MedSlot6', - MedSlot7 = 'MedSlot7', - HiSlot0 = 'HiSlot0', - HiSlot1 = 'HiSlot1', - HiSlot2 = 'HiSlot2', - HiSlot3 = 'HiSlot3', - HiSlot4 = 'HiSlot4', - HiSlot5 = 'HiSlot5', - HiSlot6 = 'HiSlot6', - HiSlot7 = 'HiSlot7', - AssetSafety = 'AssetSafety', - Locked = 'Locked', - Unlocked = 'Unlocked', - Implant = 'Implant', - QuafeBay = 'QuafeBay', - RigSlot0 = 'RigSlot0', - RigSlot1 = 'RigSlot1', - RigSlot2 = 'RigSlot2', - RigSlot3 = 'RigSlot3', - RigSlot4 = 'RigSlot4', - RigSlot5 = 'RigSlot5', - RigSlot6 = 'RigSlot6', - RigSlot7 = 'RigSlot7', - ShipHangar = 'ShipHangar', - SpecializedFuelBay = 'SpecializedFuelBay', - SpecializedOreHold = 'SpecializedOreHold', - SpecializedGasHold = 'SpecializedGasHold', - SpecializedMineralHold = 'SpecializedMineralHold', - SpecializedSalvageHold = 'SpecializedSalvageHold', - SpecializedShipHold = 'SpecializedShipHold', - SpecializedSmallShipHold = 'SpecializedSmallShipHold', - SpecializedMediumShipHold = 'SpecializedMediumShipHold', - SpecializedLargeShipHold = 'SpecializedLargeShipHold', - SpecializedIndustrialShipHold = 'SpecializedIndustrialShipHold', - SpecializedAmmoHold = 'SpecializedAmmoHold', - SpecializedCommandCenterHold = 'SpecializedCommandCenterHold', - SpecializedPlanetaryCommoditiesHold = 'SpecializedPlanetaryCommoditiesHold', - SpecializedMaterialBay = 'SpecializedMaterialBay', - SubSystemSlot0 = 'SubSystemSlot0', - SubSystemSlot1 = 'SubSystemSlot1', - SubSystemSlot2 = 'SubSystemSlot2', - SubSystemSlot3 = 'SubSystemSlot3', - SubSystemSlot4 = 'SubSystemSlot4', - SubSystemSlot5 = 'SubSystemSlot5', - SubSystemSlot6 = 'SubSystemSlot6', - SubSystemSlot7 = 'SubSystemSlot7', - FighterBay = 'FighterBay', - FighterTube0 = 'FighterTube0', - FighterTube1 = 'FighterTube1', - FighterTube2 = 'FighterTube2', - FighterTube3 = 'FighterTube3', - FighterTube4 = 'FighterTube4', - Module = 'Module', - Wardrobe = 'Wardrobe' - } - export enum LocationTypeEnum { - Station = 'station', - SolarSystem = 'solar_system', - Other = 'other' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdAssetsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdAssetsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdBookmarks200Ok { - /** - * bookmark_id integer - */ - 'bookmarkId': number; - /** - * create_date string - */ - 'createDate': Date; - /** - * creator_id integer - */ - 'creatorId': number; - /** - * folder_id integer - */ - 'folderId': number; - /** - * memo string - */ - 'memo': string; - /** - * note string - */ - 'note': string; - /** - * owner_id integer - */ - 'ownerId': number; - 'target': GetCharactersCharacterIdBookmarksTarget; -} - -/** -* coordinates object -*/ -export class GetCharactersCharacterIdBookmarksCoordinates { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdBookmarksFolders200Ok { - /** - * folder_id integer - */ - 'folderId': number; - /** - * name string - */ - 'name': string; - /** - * owner_id integer - */ - 'ownerId': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdBookmarksFoldersForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdBookmarksFoldersInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdBookmarksForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdBookmarksInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* item object -*/ -export class GetCharactersCharacterIdBookmarksItem { - /** - * item_id integer - */ - 'itemId': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* target object -*/ -export class GetCharactersCharacterIdBookmarksTarget { - 'coordinates': GetCharactersCharacterIdBookmarksCoordinates; - 'item': GetCharactersCharacterIdBookmarksItem; - /** - * location_id integer - */ - 'locationId': number; -} - -/** -* event -*/ -export class GetCharactersCharacterIdCalendar200Ok { - /** - * event_date string - */ - 'eventDate': Date; - /** - * event_id integer - */ - 'eventId': number; - /** - * event_response string - */ - 'eventResponse': GetCharactersCharacterIdCalendar200Ok.EventResponseEnum; - /** - * importance integer - */ - 'importance': number; - /** - * title string - */ - 'title': string; -} - -export namespace GetCharactersCharacterIdCalendar200Ok { - export enum EventResponseEnum { - Declined = 'declined', - NotResponded = 'not_responded', - Accepted = 'accepted', - Tentative = 'tentative' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdCalendarEventIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdCalendarEventIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Full details of a specific event -*/ -export class GetCharactersCharacterIdCalendarEventIdOk { - /** - * date string - */ - 'date': Date; - /** - * Length in minutes - */ - 'duration': number; - /** - * event_id integer - */ - 'eventId': number; - /** - * importance integer - */ - 'importance': number; - /** - * owner_id integer - */ - 'ownerId': number; - /** - * owner_name string - */ - 'ownerName': string; - /** - * owner_type string - */ - 'ownerType': GetCharactersCharacterIdCalendarEventIdOk.OwnerTypeEnum; - /** - * response string - */ - 'response': string; - /** - * text string - */ - 'text': string; - /** - * title string - */ - 'title': string; -} - -export namespace GetCharactersCharacterIdCalendarEventIdOk { - export enum OwnerTypeEnum { - EveServer = 'eve_server', - Corporation = 'corporation', - Faction = 'faction', - Character = 'character', - Alliance = 'alliance' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdCalendarForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdCalendarInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdChatChannels200Ok { - /** - * allowed array - */ - 'allowed': Array; - /** - * blocked array - */ - 'blocked': Array; - /** - * Unique channel ID. Always negative for player-created channels. Permanent (CCP created) channels have a positive ID, but don't appear in the API - */ - 'channelId': number; - /** - * Normalized, unique string used to compare channel names - */ - 'comparisonKey': string; - /** - * Whether this is a password protected channel - */ - 'hasPassword': boolean; - /** - * Message of the day for this channel - */ - 'motd': string; - /** - * muted array - */ - 'muted': Array; - /** - * Displayed name of channel - */ - 'name': string; - /** - * operators array - */ - 'operators': Array; - /** - * owner_id integer - */ - 'ownerId': number; -} - -/** -* allowed object -*/ -export class GetCharactersCharacterIdChatChannelsAllowed { - /** - * ID of an allowed channel member - */ - 'accessorId': number; - /** - * accessor_type string - */ - 'accessorType': GetCharactersCharacterIdChatChannelsAllowed.AccessorTypeEnum; -} - -export namespace GetCharactersCharacterIdChatChannelsAllowed { - export enum AccessorTypeEnum { - Character = 'character', - Corporation = 'corporation', - Alliance = 'alliance' - } -} -/** -* blocked object -*/ -export class GetCharactersCharacterIdChatChannelsBlocked { - /** - * ID of a blocked channel member - */ - 'accessorId': number; - /** - * accessor_type string - */ - 'accessorType': GetCharactersCharacterIdChatChannelsBlocked.AccessorTypeEnum; - /** - * Time at which this accessor will no longer be blocked - */ - 'endAt': Date; - /** - * Reason this accessor is blocked - */ - 'reason': string; -} - -export namespace GetCharactersCharacterIdChatChannelsBlocked { - export enum AccessorTypeEnum { - Character = 'character', - Corporation = 'corporation', - Alliance = 'alliance' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdChatChannelsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdChatChannelsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* muted object -*/ -export class GetCharactersCharacterIdChatChannelsMuted { - /** - * ID of a muted channel member - */ - 'accessorId': number; - /** - * accessor_type string - */ - 'accessorType': GetCharactersCharacterIdChatChannelsMuted.AccessorTypeEnum; - /** - * Time at which this accessor will no longer be muted - */ - 'endAt': Date; - /** - * Reason this accessor is muted - */ - 'reason': string; -} - -export namespace GetCharactersCharacterIdChatChannelsMuted { - export enum AccessorTypeEnum { - Character = 'character', - Corporation = 'corporation', - Alliance = 'alliance' - } -} -/** -* operator object -*/ -export class GetCharactersCharacterIdChatChannelsOperator { - /** - * ID of a channel operator - */ - 'accessorId': number; - /** - * accessor_type string - */ - 'accessorType': GetCharactersCharacterIdChatChannelsOperator.AccessorTypeEnum; -} - -export namespace GetCharactersCharacterIdChatChannelsOperator { - export enum AccessorTypeEnum { - Character = 'character', - Corporation = 'corporation', - Alliance = 'alliance' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdClonesForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* home_location object -*/ -export class GetCharactersCharacterIdClonesHomeLocation { - /** - * location_id integer - */ - 'locationId': number; - /** - * location_type string - */ - 'locationType': GetCharactersCharacterIdClonesHomeLocation.LocationTypeEnum; -} - -export namespace GetCharactersCharacterIdClonesHomeLocation { - export enum LocationTypeEnum { - Station = 'station', - Structure = 'structure' - } -} -/** -* Internal server error -*/ -export class GetCharactersCharacterIdClonesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* jump_clone object -*/ -export class GetCharactersCharacterIdClonesJumpClone { - /** - * implants array - */ - 'implants': Array; - /** - * location_id integer - */ - 'locationId': number; - /** - * location_type string - */ - 'locationType': GetCharactersCharacterIdClonesJumpClone.LocationTypeEnum; -} - -export namespace GetCharactersCharacterIdClonesJumpClone { - export enum LocationTypeEnum { - Station = 'station', - Structure = 'structure' - } -} -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdClonesOk { - 'homeLocation': GetCharactersCharacterIdClonesHomeLocation; - /** - * jump_clones array - */ - 'jumpClones': Array; - /** - * last_jump_date string - */ - 'lastJumpDate': Date; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdContacts200Ok { - /** - * contact_id integer - */ - 'contactId': number; - /** - * contact_type string - */ - 'contactType': GetCharactersCharacterIdContacts200Ok.ContactTypeEnum; - /** - * Whether this contact is in the blocked list. Note a missing value denotes unknown, not true or false - */ - 'isBlocked': boolean; - /** - * Whether this contact is being watched - */ - 'isWatched': boolean; - /** - * Custom label of the contact - */ - 'labelId': number; - /** - * Standing of the contact - */ - 'standing': number; -} - -export namespace GetCharactersCharacterIdContacts200Ok { - export enum ContactTypeEnum { - Character = 'character', - Corporation = 'corporation', - Alliance = 'alliance', - Faction = 'faction' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdContactsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdContactsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdContactsLabels200Ok { - /** - * label_id integer - */ - 'labelId': number; - /** - * label_name string - */ - 'labelName': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdContactsLabelsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdContactsLabelsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdCorporationhistory200Ok { - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * True if the corporation has been deleted - */ - 'isDeleted': boolean; - /** - * An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous - */ - 'recordId': number; - /** - * start_date string - */ - 'startDate': Date; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdCorporationhistoryInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdFittings200Ok { - /** - * description string - */ - 'description': string; - /** - * fitting_id integer - */ - 'fittingId': number; - /** - * items array - */ - 'items': Array; - /** - * name string - */ - 'name': string; - /** - * ship_type_id integer - */ - 'shipTypeId': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdFittingsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdFittingsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* item object -*/ -export class GetCharactersCharacterIdFittingsItem { - /** - * flag integer - */ - 'flag': number; - /** - * quantity integer - */ - 'quantity': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdKillmailsRecent200Ok { - /** - * A hash of this killmail - */ - 'killmailHash': string; - /** - * ID of this killmail - */ - 'killmailId': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdKillmailsRecentForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdKillmailsRecentInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdLocationForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdLocationInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdLocationOk { - /** - * solar_system_id integer - */ - 'solarSystemId': number; - /** - * station_id integer - */ - 'stationId': number; - /** - * structure_id integer - */ - 'structureId': number; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdLoyaltyPoints200Ok { - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * loyalty_points integer - */ - 'loyaltyPoints': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdLoyaltyPointsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdLoyaltyPointsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdMail200Ok { - /** - * From whom the mail was sent - */ - 'from': number; - /** - * is_read boolean - */ - 'isRead': boolean; - /** - * labels array - */ - 'labels': Array; - /** - * mail_id integer - */ - 'mailId': number; - /** - * Recipients of the mail - */ - 'recipients': Array; - /** - * Mail subject - */ - 'subject': string; - /** - * When the mail was sent - */ - 'timestamp': Date; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdMailForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdMailInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdMailLabelsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdMailLabelsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* label object -*/ -export class GetCharactersCharacterIdMailLabelsLabel { - /** - * color string - */ - 'color': GetCharactersCharacterIdMailLabelsLabel.ColorEnum; - /** - * label_id integer - */ - 'labelId': number; - /** - * name string - */ - 'name': string; - /** - * unread_count integer - */ - 'unreadCount': number; -} - -export namespace GetCharactersCharacterIdMailLabelsLabel { - export enum ColorEnum { - Ffffff = '#ffffff', - Ffff01 = '#ffff01', - Ff6600 = '#ff6600', - Fe0000 = '#fe0000', - _9a0000 = '#9a0000', - _660066 = '#660066', - _0000fe = '#0000fe', - _0099ff = '#0099ff', - _01ffff = '#01ffff', - _00ff33 = '#00ff33', - _349800 = '#349800', - _006634 = '#006634', - _666666 = '#666666', - _999999 = '#999999', - E6e6e6 = '#e6e6e6', - Ffffcd = '#ffffcd', - _99ffff = '#99ffff', - Ccff9a = '#ccff9a' - } -} -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdMailLabelsOk { - /** - * labels array - */ - 'labels': Array; - /** - * total_unread_count integer - */ - 'totalUnreadCount': number; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdMailLists200Ok { - /** - * Mailing list ID - */ - 'mailingListId': number; - /** - * name string - */ - 'name': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdMailListsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdMailListsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdMailMailIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdMailMailIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetCharactersCharacterIdMailMailIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdMailMailIdOk { - /** - * Mail's body - */ - 'body': string; - /** - * From whom the mail was sent - */ - 'from': number; - /** - * Labels attached to the mail - */ - 'labels': Array; - /** - * Whether the mail is flagged as read - */ - 'read': boolean; - /** - * Recipients of the mail - */ - 'recipients': Array; - /** - * Mail subject - */ - 'subject': string; - /** - * When the mail was sent - */ - 'timestamp': Date; -} - -/** -* recipient object -*/ -export class GetCharactersCharacterIdMailMailIdRecipient { - /** - * recipient_id integer - */ - 'recipientId': number; - /** - * recipient_type string - */ - 'recipientType': GetCharactersCharacterIdMailMailIdRecipient.RecipientTypeEnum; -} - -export namespace GetCharactersCharacterIdMailMailIdRecipient { - export enum RecipientTypeEnum { - Alliance = 'alliance', - Character = 'character', - Corporation = 'corporation', - MailingList = 'mailing_list' - } -} -/** -* recipient object -*/ -export class GetCharactersCharacterIdMailRecipient { - /** - * recipient_id integer - */ - 'recipientId': number; - /** - * recipient_type string - */ - 'recipientType': GetCharactersCharacterIdMailRecipient.RecipientTypeEnum; -} - -export namespace GetCharactersCharacterIdMailRecipient { - export enum RecipientTypeEnum { - Alliance = 'alliance', - Character = 'character', - Corporation = 'corporation', - MailingList = 'mailing_list' - } -} -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdMedals200Ok { - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * date string - */ - 'date': Date; - /** - * description string - */ - 'description': string; - /** - * graphics array - */ - 'graphics': Array; - /** - * issuer_id integer - */ - 'issuerId': number; - /** - * medal_id integer - */ - 'medalId': number; - /** - * reason string - */ - 'reason': string; - /** - * status string - */ - 'status': GetCharactersCharacterIdMedals200Ok.StatusEnum; - /** - * title string - */ - 'title': string; -} - -export namespace GetCharactersCharacterIdMedals200Ok { - export enum StatusEnum { - Public = 'public', - Private = 'private' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdMedalsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* graphic object -*/ -export class GetCharactersCharacterIdMedalsGraphic { - /** - * color integer - */ - 'color': number; - /** - * graphic string - */ - 'graphic': string; - /** - * layer integer - */ - 'layer': number; - /** - * part integer - */ - 'part': number; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdMedalsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetCharactersCharacterIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdOk { - /** - * The character's alliance ID - */ - 'allianceId': number; - /** - * ancestry_id integer - */ - 'ancestryId': number; - /** - * Creation date of the character - */ - 'birthday': Date; - /** - * bloodline_id integer - */ - 'bloodlineId': number; - /** - * The character's corporation ID - */ - 'corporationId': number; - /** - * description string - */ - 'description': string; - /** - * gender string - */ - 'gender': GetCharactersCharacterIdOk.GenderEnum; - /** - * name string - */ - 'name': string; - /** - * race_id integer - */ - 'raceId': number; - /** - * security_status number - */ - 'securityStatus': number; -} - -export namespace GetCharactersCharacterIdOk { - export enum GenderEnum { - Female = 'female', - Male = 'male' - } -} -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdOpportunities200Ok { - /** - * completed_at string - */ - 'completedAt': Date; - /** - * task_id integer - */ - 'taskId': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdOpportunitiesForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdOpportunitiesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdPlanets200Ok { - /** - * last_update string - */ - 'lastUpdate': Date; - /** - * num_pins integer - */ - 'numPins': number; - /** - * owner_id integer - */ - 'ownerId': number; - /** - * planet_id integer - */ - 'planetId': number; - /** - * planet_type string - */ - 'planetType': GetCharactersCharacterIdPlanets200Ok.PlanetTypeEnum; - /** - * solar_system_id integer - */ - 'solarSystemId': number; - /** - * upgrade_level integer - */ - 'upgradeLevel': number; -} - -export namespace GetCharactersCharacterIdPlanets200Ok { - export enum PlanetTypeEnum { - Temperate = 'temperate', - Barren = 'barren', - Oceanic = 'oceanic', - Ice = 'ice', - Gas = 'gas', - Lava = 'lava', - Storm = 'storm', - Plasma = 'plasma' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdPlanetsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdPlanetsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* extractor_details object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails { - /** - * in seconds - */ - 'cycleTime': number; - /** - * head_radius number - */ - 'headRadius': number; - /** - * heads array - */ - 'heads': Array; - /** - * product_type_id integer - */ - 'productTypeId': number; - /** - * qty_per_cycle integer - */ - 'qtyPerCycle': number; -} - -/** -* factory_details object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails { - /** - * schematic_id integer - */ - 'schematicId': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* head object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdHead { - /** - * head_id integer - */ - 'headId': number; - /** - * latitude number - */ - 'latitude': number; - /** - * longitude number - */ - 'longitude': number; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* link object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdLink { - /** - * destination_pin_id integer - */ - 'destinationPinId': number; - /** - * link_level integer - */ - 'linkLevel': number; - /** - * source_pin_id integer - */ - 'sourcePinId': number; -} - -/** -* Colony not found -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdNotFound { - /** - * error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdOk { - /** - * links array - */ - 'links': Array; - /** - * pins array - */ - 'pins': Array; - /** - * routes array - */ - 'routes': Array; -} - -/** -* pin object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdPin { - /** - * expiry_time string - */ - 'expiryTime': Date; - 'extractorDetails': GetCharactersCharacterIdPlanetsPlanetIdExtractorDetails; - 'factoryDetails': GetCharactersCharacterIdPlanetsPlanetIdFactoryDetails; - /** - * install_time string - */ - 'installTime': Date; - /** - * last_cycle_start string - */ - 'lastCycleStart': Date; - /** - * latitude number - */ - 'latitude': number; - /** - * longitude number - */ - 'longitude': number; - /** - * pin_id integer - */ - 'pinId': number; - /** - * schematic_id integer - */ - 'schematicId': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* route object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdRoute { - /** - * content_type_id integer - */ - 'contentTypeId': number; - /** - * destination_pin_id integer - */ - 'destinationPinId': number; - /** - * quantity number - */ - 'quantity': number; - /** - * route_id integer - */ - 'routeId': number; - /** - * source_pin_id integer - */ - 'sourcePinId': number; - /** - * waypoints array - */ - 'waypoints': Array; -} - -/** -* waypoint object -*/ -export class GetCharactersCharacterIdPlanetsPlanetIdWaypoint { - /** - * order integer - */ - 'order': number; - /** - * pin_id integer - */ - 'pinId': number; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdPortraitInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* No image server for this datasource -*/ -export class GetCharactersCharacterIdPortraitNotFound { - /** - * error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdPortraitOk { - /** - * px128x128 string - */ - 'px128x128': string; - /** - * px256x256 string - */ - 'px256x256': string; - /** - * px512x512 string - */ - 'px512x512': string; - /** - * px64x64 string - */ - 'px64x64': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdSearchForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdSearchInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdSearchOk { - /** - * agent array - */ - 'agent': Array; - /** - * alliance array - */ - 'alliance': Array; - /** - * character array - */ - 'character': Array; - /** - * constellation array - */ - 'constellation': Array; - /** - * corporation array - */ - 'corporation': Array; - /** - * faction array - */ - 'faction': Array; - /** - * inventorytype array - */ - 'inventorytype': Array; - /** - * region array - */ - 'region': Array; - /** - * solarsystem array - */ - 'solarsystem': Array; - /** - * station array - */ - 'station': Array; - /** - * structure array - */ - 'structure': Array; - /** - * wormhole array - */ - 'wormhole': Array; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdShipForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdShipInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdShipOk { - /** - * Item id's are unique to a ship and persist until it is repackaged. This value can be used to track repeated uses of a ship, or detect when a pilot changes into a different instance of the same ship type. - */ - 'shipItemId': number; - /** - * ship_name string - */ - 'shipName': string; - /** - * ship_type_id integer - */ - 'shipTypeId': number; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdSkillqueue200Ok { - /** - * finish_date string - */ - 'finishDate': Date; - /** - * finished_level integer - */ - 'finishedLevel': number; - /** - * level_end_sp integer - */ - 'levelEndSp': number; - /** - * Amount of SP that was in the skill when it started training it's current level. Used to calculate % of current level complete. - */ - 'levelStartSp': number; - /** - * queue_position integer - */ - 'queuePosition': number; - /** - * skill_id integer - */ - 'skillId': number; - /** - * start_date string - */ - 'startDate': Date; - /** - * training_start_sp integer - */ - 'trainingStartSp': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdSkillqueueForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdSkillqueueInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdSkillsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdSkillsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdSkillsOk { - /** - * skills array - */ - 'skills': Array; - /** - * total_sp integer - */ - 'totalSp': number; -} - -/** -* skill object -*/ -export class GetCharactersCharacterIdSkillsSkill { - /** - * current_skill_level integer - */ - 'currentSkillLevel': number; - /** - * skill_id integer - */ - 'skillId': number; - /** - * skillpoints_in_skill integer - */ - 'skillpointsInSkill': number; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdStandings200Ok { - /** - * from_id integer - */ - 'fromId': number; - /** - * from_type string - */ - 'fromType': GetCharactersCharacterIdStandings200Ok.FromTypeEnum; - /** - * standing number - */ - 'standing': number; -} - -export namespace GetCharactersCharacterIdStandings200Ok { - export enum FromTypeEnum { - Agent = 'agent', - NpcCorp = 'npc_corp', - Faction = 'faction' - } -} -/** -* Forbidden -*/ -export class GetCharactersCharacterIdStandingsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdStandingsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersCharacterIdWallets200Ok { - /** - * Wallet's balance in ISK hundredths. - */ - 'balance': number; - /** - * wallet_id integer - */ - 'walletId': number; -} - -/** -* Forbidden -*/ -export class GetCharactersCharacterIdWalletsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCharactersCharacterIdWalletsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCharactersNames200Ok { - /** - * character_id integer - */ - 'characterId': number; - /** - * character_name string - */ - 'characterName': string; -} - -/** -* Internal server error -*/ -export class GetCharactersNamesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCorporationsCorporationIdAlliancehistory200Ok { - 'alliance': GetCorporationsCorporationIdAlliancehistoryAlliance; - /** - * An incrementing ID that can be used to canonically establish order of records in cases where dates may be ambiguous - */ - 'recordId': number; - /** - * start_date string - */ - 'startDate': Date; -} - -/** -* alliance object -*/ -export class GetCorporationsCorporationIdAlliancehistoryAlliance { - /** - * alliance_id integer - */ - 'allianceId': number; - /** - * True if the alliance has been deleted - */ - 'isDeleted': boolean; -} - -/** -* Internal server error -*/ -export class GetCorporationsCorporationIdAlliancehistoryInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsCorporationIdIconsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* No image server for this datasource -*/ -export class GetCorporationsCorporationIdIconsNotFound { - /** - * error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCorporationsCorporationIdIconsOk { - /** - * px128x128 string - */ - 'px128x128': string; - /** - * px256x256 string - */ - 'px256x256': string; - /** - * px64x64 string - */ - 'px64x64': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsCorporationIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCorporationsCorporationIdMembers200Ok { - /** - * character_id integer - */ - 'characterId': number; -} - -/** -* Forbidden -*/ -export class GetCorporationsCorporationIdMembersForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsCorporationIdMembersInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetCorporationsCorporationIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCorporationsCorporationIdOk { - /** - * id of alliance that corporation is a member of, if any - */ - 'allianceId': number; - /** - * ceo_id integer - */ - 'ceoId': number; - /** - * corporation_description string - */ - 'corporationDescription': string; - /** - * the full name of the corporation - */ - 'corporationName': string; - /** - * creation_date string - */ - 'creationDate': Date; - /** - * creator_id integer - */ - 'creatorId': number; - /** - * faction string - */ - 'faction': GetCorporationsCorporationIdOk.FactionEnum; - /** - * member_count integer - */ - 'memberCount': number; - /** - * tax_rate number - */ - 'taxRate': number; - /** - * the short name of the corporation - */ - 'ticker': string; - /** - * url string - */ - 'url': string; -} - -export namespace GetCorporationsCorporationIdOk { - export enum FactionEnum { - Minmatar = 'Minmatar', - Gallente = 'Gallente', - Caldari = 'Caldari', - Amarr = 'Amarr' - } -} -/** -* 200 ok object -*/ -export class GetCorporationsCorporationIdRoles200Ok { - /** - * character_id integer - */ - 'characterId': number; - /** - * grantable_roles array - */ - 'grantableRoles': Array; - /** - * grantable_roles_at_base array - */ - 'grantableRolesAtBase': Array; - /** - * grantable_roles_at_hq array - */ - 'grantableRolesAtHq': Array; - /** - * grantable_roles_at_other array - */ - 'grantableRolesAtOther': Array; - /** - * roles array - */ - 'roles': Array; - /** - * roles_at_base array - */ - 'rolesAtBase': Array; - /** - * roles_at_hq array - */ - 'rolesAtHq': Array; - /** - * roles_at_other array - */ - 'rolesAtOther': Array; -} - -export namespace GetCorporationsCorporationIdRoles200Ok { - export enum GrantableRolesEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum GrantableRolesAtBaseEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum GrantableRolesAtHqEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum GrantableRolesAtOtherEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum RolesEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum RolesAtBaseEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum RolesAtHqEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } - export enum RolesAtOtherEnum { - Director = 'Director', - PersonnelManager = 'Personnel_Manager', - Accountant = 'Accountant', - SecurityOfficer = 'Security_Officer', - FactoryManager = 'Factory_Manager', - StationManager = 'Station_Manager', - Auditor = 'Auditor', - HangarTake1 = 'Hangar_Take_1', - HangarTake2 = 'Hangar_Take_2', - HangarTake3 = 'Hangar_Take_3', - HangarTake4 = 'Hangar_Take_4', - HangarTake5 = 'Hangar_Take_5', - HangarTake6 = 'Hangar_Take_6', - HangarTake7 = 'Hangar_Take_7', - HangarQuery1 = 'Hangar_Query_1', - HangarQuery2 = 'Hangar_Query_2', - HangarQuery3 = 'Hangar_Query_3', - HangarQuery4 = 'Hangar_Query_4', - HangarQuery5 = 'Hangar_Query_5', - HangarQuery6 = 'Hangar_Query_6', - HangarQuery7 = 'Hangar_Query_7', - AccountTake1 = 'Account_Take_1', - AccountTake2 = 'Account_Take_2', - AccountTake3 = 'Account_Take_3', - AccountTake4 = 'Account_Take_4', - AccountTake5 = 'Account_Take_5', - AccountTake6 = 'Account_Take_6', - AccountTake7 = 'Account_Take_7', - Diplomat = 'Diplomat', - ConfigEquipment = 'Config_Equipment', - ContainerTake1 = 'Container_Take_1', - ContainerTake2 = 'Container_Take_2', - ContainerTake3 = 'Container_Take_3', - ContainerTake4 = 'Container_Take_4', - ContainerTake5 = 'Container_Take_5', - ContainerTake6 = 'Container_Take_6', - ContainerTake7 = 'Container_Take_7', - RentOffice = 'Rent_Office', - RentFactoryFacility = 'Rent_Factory_Facility', - RentResearchFacility = 'Rent_Research_Facility', - JuniorAccountant = 'Junior_Accountant', - ConfigStarbaseEquipment = 'Config_Starbase_Equipment', - Trader = 'Trader', - CommunicationsOfficer = 'Communications_Officer', - ContractManager = 'Contract_Manager', - StarbaseDefenseOperator = 'Starbase_Defense_Operator', - StarbaseFuelTechnician = 'Starbase_Fuel_Technician', - FittingManager = 'Fitting_Manager', - TerrestrialCombatOfficer = 'Terrestrial_Combat_Officer', - TerrestrialLogisticsOfficer = 'Terrestrial_Logistics_Officer' - } -} -/** -* Forbidden -*/ -export class GetCorporationsCorporationIdRolesForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsCorporationIdRolesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetCorporationsCorporationIdStructures200Ok { - /** - * ID of the corporation that owns the structure - */ - 'corporationId': number; - /** - * This week's vulnerability windows, Monday is day 0 - */ - 'currentVul': Array; - /** - * Date on which the structure will run out of fuel - */ - 'fuelExpires': Date; - /** - * Next week's vulnerability windows, Monday is day 0 - */ - 'nextVul': Array; - /** - * The id of the ACL profile for this citadel - */ - 'profileId': number; - /** - * Contains a list of service upgrades, and their state - */ - 'services': Array; - /** - * Date at which the structure will move to it's next state - */ - 'stateTimerEnd': Date; - /** - * Date at which the structure entered it's current state - */ - 'stateTimerStart': Date; - /** - * The Item ID of the structure - */ - 'structureId': number; - /** - * The solar system the structure is in - */ - 'systemId': number; - /** - * The type id of the structure - */ - 'typeId': number; - /** - * Date at which the structure will unanchor - */ - 'unanchorsAt': Date; -} - -/** -* current_vul object -*/ -export class GetCorporationsCorporationIdStructuresCurrentVul { - /** - * day integer - */ - 'day': number; - /** - * hour integer - */ - 'hour': number; -} - -/** -* Forbidden -*/ -export class GetCorporationsCorporationIdStructuresForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsCorporationIdStructuresInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* next_vul object -*/ -export class GetCorporationsCorporationIdStructuresNextVul { - /** - * day integer - */ - 'day': number; - /** - * hour integer - */ - 'hour': number; -} - -/** -* service object -*/ -export class GetCorporationsCorporationIdStructuresService { - /** - * name string - */ - 'name': string; - /** - * state string - */ - 'state': GetCorporationsCorporationIdStructuresService.StateEnum; -} - -export namespace GetCorporationsCorporationIdStructuresService { - export enum StateEnum { - Online = 'online', - Offline = 'offline', - Cleanup = 'cleanup' - } -} -/** -* 200 ok object -*/ -export class GetCorporationsNames200Ok { - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * corporation_name string - */ - 'corporationName': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsNamesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetCorporationsNpccorpsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetDogmaAttributesAttributeIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetDogmaAttributesAttributeIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetDogmaAttributesAttributeIdOk { - /** - * attribute_id integer - */ - 'attributeId': number; - /** - * default_value number - */ - 'defaultValue': number; - /** - * description string - */ - 'description': string; - /** - * display_name string - */ - 'displayName': string; - /** - * high_is_good boolean - */ - 'highIsGood': boolean; - /** - * icon_id integer - */ - 'iconId': number; - /** - * name string - */ - 'name': string; - /** - * published boolean - */ - 'published': boolean; - /** - * stackable boolean - */ - 'stackable': boolean; - /** - * unit_id integer - */ - 'unitId': number; -} - -/** -* Internal server error -*/ -export class GetDogmaAttributesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetDogmaEffectsEffectIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* modifier object -*/ -export class GetDogmaEffectsEffectIdModifier { - /** - * domain string - */ - 'domain': string; - /** - * func string - */ - 'func': string; - /** - * modified_attribute_id integer - */ - 'modifiedAttributeId': number; - /** - * modifying_attribute_id integer - */ - 'modifyingAttributeId': number; - /** - * operator integer - */ - 'operator': number; -} - -/** -* Not found -*/ -export class GetDogmaEffectsEffectIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetDogmaEffectsEffectIdOk { - /** - * description string - */ - 'description': string; - /** - * disallow_auto_repeat boolean - */ - 'disallowAutoRepeat': boolean; - /** - * discharge_attribute_id integer - */ - 'dischargeAttributeId': number; - /** - * display_name string - */ - 'displayName': string; - /** - * duration_attribute_id integer - */ - 'durationAttributeId': number; - /** - * effect_category integer - */ - 'effectCategory': number; - /** - * effect_id integer - */ - 'effectId': number; - /** - * electronic_chance boolean - */ - 'electronicChance': boolean; - /** - * falloff_attribute_id integer - */ - 'falloffAttributeId': number; - /** - * icon_id integer - */ - 'iconId': number; - /** - * is_assistance boolean - */ - 'isAssistance': boolean; - /** - * is_offensive boolean - */ - 'isOffensive': boolean; - /** - * is_warp_safe boolean - */ - 'isWarpSafe': boolean; - /** - * modifiers array - */ - 'modifiers': Array; - /** - * name string - */ - 'name': string; - /** - * post_expression integer - */ - 'postExpression': number; - /** - * pre_expression integer - */ - 'preExpression': number; - /** - * published boolean - */ - 'published': boolean; - /** - * range_attribute_id integer - */ - 'rangeAttributeId': number; - /** - * range_chance boolean - */ - 'rangeChance': boolean; - /** - * tracking_speed_attribute_id integer - */ - 'trackingSpeedAttributeId': number; -} - -/** -* Internal server error -*/ -export class GetDogmaEffectsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetFleetsFleetIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetFleetsFleetIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetFleetsFleetIdMembers200Ok { - /** - * character_id integer - */ - 'characterId': number; - /** - * join_time string - */ - 'joinTime': Date; - /** - * Member’s role in fleet - */ - 'role': GetFleetsFleetIdMembers200Ok.RoleEnum; - /** - * Localized role names - */ - 'roleName': string; - /** - * ship_type_id integer - */ - 'shipTypeId': number; - /** - * Solar system the member is located in - */ - 'solarSystemId': number; - /** - * ID of the squad the member is in. If not applicable, will be set to -1 - */ - 'squadId': number; - /** - * Station in which the member is docked in, if applicable - */ - 'stationId': number; - /** - * Whether the member take fleet warps - */ - 'takesFleetWarp': boolean; - /** - * ID of the wing the member is in. If not applicable, will be set to -1 - */ - 'wingId': number; -} - -export namespace GetFleetsFleetIdMembers200Ok { - export enum RoleEnum { - FleetCommander = 'fleet_commander', - WingCommander = 'wing_commander', - SquadCommander = 'squad_commander', - SquadMember = 'squad_member' - } -} -/** -* Forbidden -*/ -export class GetFleetsFleetIdMembersForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetFleetsFleetIdMembersInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetFleetsFleetIdMembersNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetFleetsFleetIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetFleetsFleetIdOk { - /** - * Is free-move enabled - */ - 'isFreeMove': boolean; - /** - * Does the fleet have an active fleet advertisement - */ - 'isRegistered': boolean; - /** - * Is EVE Voice enabled - */ - 'isVoiceEnabled': boolean; - /** - * Fleet MOTD in CCP flavoured HTML - */ - 'motd': string; -} - -/** -* 200 ok object -*/ -export class GetFleetsFleetIdWings200Ok { - /** - * id integer - */ - 'id': number; - /** - * name string - */ - 'name': string; - /** - * squads array - */ - 'squads': Array; -} - -/** -* Forbidden -*/ -export class GetFleetsFleetIdWingsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetFleetsFleetIdWingsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetFleetsFleetIdWingsNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* squad object -*/ -export class GetFleetsFleetIdWingsSquad { - /** - * id integer - */ - 'id': number; - /** - * name string - */ - 'name': string; -} - -/** -* 200 ok object -*/ -export class GetIncursions200Ok { - /** - * The constellation id in which this incursion takes place - */ - 'constellationId': number; - /** - * The attacking faction's id - */ - 'factionId': number; - /** - * Whether the final encounter has boss or not - */ - 'hasBoss': boolean; - /** - * A list of infested solar system ids that are a part of this incursion - */ - 'infestedSolarSystems': Array; - /** - * Influence of this incursion as a float from 0 to 1 - */ - 'influence': number; - /** - * Staging solar system for this incursion - */ - 'stagingSolarSystemId': number; - /** - * The state of this incursion - */ - 'state': GetIncursions200Ok.StateEnum; - /** - * The type of this incursion - */ - 'type': string; -} - -export namespace GetIncursions200Ok { - export enum StateEnum { - Withdrawing = 'withdrawing', - Mobilizing = 'mobilizing', - Established = 'established' - } -} -/** -* Internal server error -*/ -export class GetIncursionsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetIndustryFacilities200Ok { - /** - * ID of the facility - */ - 'facilityId': number; - /** - * Owner of the facility - */ - 'ownerId': number; - /** - * Region ID where the facility is - */ - 'regionId': number; - /** - * Solar system ID where the facility is - */ - 'solarSystemId': number; - /** - * Tax imposed by the facility - */ - 'tax': number; - /** - * Type ID of the facility - */ - 'typeId': number; -} - -/** -* Internal server error -*/ -export class GetIndustryFacilitiesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetIndustrySystems200Ok { - /** - * cost_indices array - */ - 'costIndices': Array; - /** - * solar_system_id integer - */ - 'solarSystemId': number; -} - -/** -* cost_indice object -*/ -export class GetIndustrySystemsCostIndice { - /** - * activity string - */ - 'activity': GetIndustrySystemsCostIndice.ActivityEnum; - /** - * cost_index number - */ - 'costIndex': number; -} - -export namespace GetIndustrySystemsCostIndice { - export enum ActivityEnum { - None = 'none', - Manufacturing = 'manufacturing', - ResearchingTechnology = 'researching_technology', - ResearchingTimeEfficiency = 'researching_time_efficiency', - ResearchingMaterialEfficiency = 'researching_material_efficiency', - Copying = 'copying', - Duplicating = 'duplicating', - Invention = 'invention', - ReverseEngineering = 'reverse_engineering' - } -} -/** -* Internal server error -*/ -export class GetIndustrySystemsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetInsurancePrices200Ok { - /** - * A list of a available insurance levels for this ship type - */ - 'levels': Array; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Internal server error -*/ -export class GetInsurancePricesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* level object -*/ -export class GetInsurancePricesLevel { - /** - * cost number - */ - 'cost': number; - /** - * Localized insurance level - */ - 'name': string; - /** - * payout number - */ - 'payout': number; -} - -/** -* attacker object -*/ -export class GetKillmailsKillmailIdKillmailHashAttacker { - /** - * alliance_id integer - */ - 'allianceId': number; - /** - * character_id integer - */ - 'characterId': number; - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * damage_done integer - */ - 'damageDone': number; - /** - * faction_id integer - */ - 'factionId': number; - /** - * Was the attacker the one to achieve the final blow - */ - 'finalBlow': boolean; - /** - * Security status for the attacker - */ - 'securityStatus': number; - /** - * What ship was the attacker flying - */ - 'shipTypeId': number; - /** - * What weapon was used by the attacker for the kill - */ - 'weaponTypeId': number; -} - -/** -* Internal server error -*/ -export class GetKillmailsKillmailIdKillmailHashInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* item object -*/ -export class GetKillmailsKillmailIdKillmailHashItem { - /** - * flag integer - */ - 'flag': number; - /** - * item_type_id integer - */ - 'itemTypeId': number; - /** - * quantity_destroyed integer - */ - 'quantityDestroyed': number; - /** - * quantity_dropped integer - */ - 'quantityDropped': number; - /** - * singleton integer - */ - 'singleton': number; -} - -/** -* item object -*/ -export class GetKillmailsKillmailIdKillmailHashItem1 { - /** - * Flag for the location of the item - */ - 'flag': number; - /** - * item_type_id integer - */ - 'itemTypeId': number; - /** - * items array - */ - 'items': Array; - /** - * How many of the item were destroyed if any - */ - 'quantityDestroyed': number; - /** - * How many of the item were dropped if any - */ - 'quantityDropped': number; - /** - * singleton integer - */ - 'singleton': number; -} - -/** -* 200 ok object -*/ -export class GetKillmailsKillmailIdKillmailHashOk { - /** - * attackers array - */ - 'attackers': Array; - /** - * ID of the killmail - */ - 'killmailId': number; - /** - * Time that the victim was killed and the killmail generated - */ - 'killmailTime': Date; - /** - * Moon if the kill took place at one - */ - 'moonId': number; - /** - * Solar system that the kill took place in - */ - 'solarSystemId': number; - 'victim': GetKillmailsKillmailIdKillmailHashVictim; - /** - * War if the killmail is generated in relation to an official war - */ - 'warId': number; -} - -/** -* Coordinates of the victim in Cartesian space relative to the Sun -*/ -export class GetKillmailsKillmailIdKillmailHashPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* Unprocessable entity -*/ -export class GetKillmailsKillmailIdKillmailHashUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* victim object -*/ -export class GetKillmailsKillmailIdKillmailHashVictim { - /** - * alliance_id integer - */ - 'allianceId': number; - /** - * character_id integer - */ - 'characterId': number; - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * How much total damage was taken by the victim - */ - 'damageTaken': number; - /** - * faction_id integer - */ - 'factionId': number; - /** - * items array - */ - 'items': Array; - 'position': GetKillmailsKillmailIdKillmailHashPosition; - /** - * The ship that the victim was piloting and was destroyed - */ - 'shipTypeId': number; -} - -/** -* 200 ok object -*/ -export class GetLoyaltyStoresCorporationIdOffers200Ok { - /** - * isk_cost number - */ - 'iskCost': number; - /** - * lp_cost integer - */ - 'lpCost': number; - /** - * offer_id integer - */ - 'offerId': number; - /** - * quantity integer - */ - 'quantity': number; - /** - * required_items array - */ - 'requiredItems': Array; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Internal server error -*/ -export class GetLoyaltyStoresCorporationIdOffersInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* required_item object -*/ -export class GetLoyaltyStoresCorporationIdOffersRequiredItem { - /** - * quantity integer - */ - 'quantity': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Internal server error -*/ -export class GetMarketsGroupsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetMarketsGroupsMarketGroupIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetMarketsGroupsMarketGroupIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetMarketsGroupsMarketGroupIdOk { - /** - * description string - */ - 'description': string; - /** - * market_group_id integer - */ - 'marketGroupId': number; - /** - * name string - */ - 'name': string; - /** - * parent_group_id integer - */ - 'parentGroupId': number; - /** - * types array - */ - 'types': Array; -} - -/** -* 200 ok object -*/ -export class GetMarketsPrices200Ok { - /** - * adjusted_price number - */ - 'adjustedPrice': number; - /** - * average_price number - */ - 'averagePrice': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Internal server error -*/ -export class GetMarketsPricesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetMarketsRegionIdHistory200Ok { - /** - * average number - */ - 'average': number; - /** - * The date of this historical statistic entry - */ - 'date': Date; - /** - * highest number - */ - 'highest': number; - /** - * lowest number - */ - 'lowest': number; - /** - * Total number of orders happened that day - */ - 'orderCount': number; - /** - * Total - */ - 'volume': number; -} - -/** -* Internal server error -*/ -export class GetMarketsRegionIdHistoryInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Unprocessable entity -*/ -export class GetMarketsRegionIdHistoryUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetMarketsRegionIdOrders200Ok { - /** - * duration integer - */ - 'duration': number; - /** - * is_buy_order boolean - */ - 'isBuyOrder': boolean; - /** - * issued string - */ - 'issued': Date; - /** - * location_id integer - */ - 'locationId': number; - /** - * min_volume integer - */ - 'minVolume': number; - /** - * order_id integer - */ - 'orderId': number; - /** - * price number - */ - 'price': number; - /** - * range string - */ - 'range': GetMarketsRegionIdOrders200Ok.RangeEnum; - /** - * type_id integer - */ - 'typeId': number; - /** - * volume_remain integer - */ - 'volumeRemain': number; - /** - * volume_total integer - */ - 'volumeTotal': number; -} - -export namespace GetMarketsRegionIdOrders200Ok { - export enum RangeEnum { - Station = 'station', - Region = 'region', - Solarsystem = 'solarsystem', - _1 = '1', - _2 = '2', - _3 = '3', - _4 = '4', - _5 = '5', - _10 = '10', - _20 = '20', - _30 = '30', - _40 = '40' - } -} -/** -* Internal server error -*/ -export class GetMarketsRegionIdOrdersInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Unprocessable entity -*/ -export class GetMarketsRegionIdOrdersUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetMarketsStructuresStructureId200Ok { - /** - * duration integer - */ - 'duration': number; - /** - * is_buy_order boolean - */ - 'isBuyOrder': boolean; - /** - * issued string - */ - 'issued': Date; - /** - * location_id integer - */ - 'locationId': number; - /** - * min_volume integer - */ - 'minVolume': number; - /** - * order_id integer - */ - 'orderId': number; - /** - * price number - */ - 'price': number; - /** - * range string - */ - 'range': GetMarketsStructuresStructureId200Ok.RangeEnum; - /** - * type_id integer - */ - 'typeId': number; - /** - * volume_remain integer - */ - 'volumeRemain': number; - /** - * volume_total integer - */ - 'volumeTotal': number; -} - -export namespace GetMarketsStructuresStructureId200Ok { - export enum RangeEnum { - Station = 'station', - Region = 'region', - Solarsystem = 'solarsystem', - _1 = '1', - _2 = '2', - _3 = '3', - _4 = '4', - _5 = '5', - _10 = '10', - _20 = '20', - _30 = '30', - _40 = '40' - } -} -/** -* Forbidden -*/ -export class GetMarketsStructuresStructureIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetMarketsStructuresStructureIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetOpportunitiesGroupsGroupIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetOpportunitiesGroupsGroupIdOk { - /** - * The groups that are connected to this group on the opportunities map - */ - 'connectedGroups': Array; - /** - * description string - */ - 'description': string; - /** - * group_id integer - */ - 'groupId': number; - /** - * name string - */ - 'name': string; - /** - * notification string - */ - 'notification': string; - /** - * Tasks need to complete for this group - */ - 'requiredTasks': Array; -} - -/** -* Internal server error -*/ -export class GetOpportunitiesGroupsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetOpportunitiesTasksInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetOpportunitiesTasksTaskIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetOpportunitiesTasksTaskIdOk { - /** - * description string - */ - 'description': string; - /** - * name string - */ - 'name': string; - /** - * notification string - */ - 'notification': string; - /** - * task_id integer - */ - 'taskId': number; -} - -/** -* Internal server error -*/ -export class GetRouteOriginDestinationInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetRouteOriginDestinationNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetSearchInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetSearchOk { - /** - * agent array - */ - 'agent': Array; - /** - * alliance array - */ - 'alliance': Array; - /** - * character array - */ - 'character': Array; - /** - * constellation array - */ - 'constellation': Array; - /** - * corporation array - */ - 'corporation': Array; - /** - * faction array - */ - 'faction': Array; - /** - * inventorytype array - */ - 'inventorytype': Array; - /** - * region array - */ - 'region': Array; - /** - * solarsystem array - */ - 'solarsystem': Array; - /** - * station array - */ - 'station': Array; - /** - * wormhole array - */ - 'wormhole': Array; -} - -/** -* 200 ok object -*/ -export class GetSovereigntyCampaigns200Ok { - /** - * Score for all attacking parties, only present in Defense Events. - */ - 'attackersScore': number; - /** - * Unique ID for this campaign. - */ - 'campaignId': number; - /** - * The constellation in which the campaign will take place. - */ - 'constellationId': number; - /** - * Defending alliance, only present in Defense Events - */ - 'defenderId': number; - /** - * Score for the defending alliance, only present in Defense Events. - */ - 'defenderScore': number; - /** - * Type of event this campaign is for. tcu_defense, ihub_defense and station_defense are referred to as \"Defense Events\", station_freeport as \"Freeport Events\". - */ - 'eventType': GetSovereigntyCampaigns200Ok.EventTypeEnum; - /** - * Alliance participating and their respective scores, only present in Freeport Events. - */ - 'participants': Array; - /** - * The solar system the structure is located in. - */ - 'solarSystemId': number; - /** - * Time the event is scheduled to start. - */ - 'startTime': Date; - /** - * The structure item ID that is related to this campaign. - */ - 'structureId': number; -} - -export namespace GetSovereigntyCampaigns200Ok { - export enum EventTypeEnum { - TcuDefense = 'tcu_defense', - IhubDefense = 'ihub_defense', - StationDefense = 'station_defense', - StationFreeport = 'station_freeport' - } -} -/** -* Internal server error -*/ -export class GetSovereigntyCampaignsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* participant object -*/ -export class GetSovereigntyCampaignsParticipant { - /** - * alliance_id integer - */ - 'allianceId': number; - /** - * score number - */ - 'score': number; -} - -/** -* 200 ok object -*/ -export class GetSovereigntyMap200Ok { - /** - * alliance_id integer - */ - 'allianceId': number; - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * faction_id integer - */ - 'factionId': number; - /** - * system_id integer - */ - 'systemId': number; -} - -/** -* Internal server error -*/ -export class GetSovereigntyMapInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetSovereigntyStructures200Ok { - /** - * The alliance that owns the structure. - */ - 'allianceId': number; - /** - * Solar system in which the structure is located. - */ - 'solarSystemId': number; - /** - * Unique item ID for this structure. - */ - 'structureId': number; - /** - * A reference to the type of structure this is. - */ - 'structureTypeId': number; - /** - * The occupancy level for the next or current vulnerability window. This takes into account all development indexes and capital system bonuses. Also known as Activity Defense Multiplier from in the client. It increases the time that attackers must spend using their entosis links on the structure. - */ - 'vulnerabilityOccupancyLevel': number; - /** - * The time at which the next or current vulnerability window ends. At the end of a vulnerability window the next window is recalculated and locked in along with the vulnerabilityOccupancyLevel. If the structure is not in 100% entosis control of the defender, it will go in to 'overtime' and stay vulnerable for as long as that situation persists. Only once the defenders have 100% entosis control and has the vulnerableEndTime passed does the vulnerability interval expire and a new one is calculated. - */ - 'vulnerableEndTime': Date; - /** - * The next time at which the structure will become vulnerable. Or the start time of the current window if current time is between this and vulnerableEndTime. - */ - 'vulnerableStartTime': Date; -} - -/** -* Internal server error -*/ -export class GetSovereigntyStructuresInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetStatusInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetStatusOk { - /** - * Current online player count - */ - 'players': number; - /** - * Running version as string - */ - 'serverVersion': string; - /** - * Server start timestamp - */ - 'startTime': Date; - /** - * If the server is in VIP mode - */ - 'vip': boolean; -} - -/** -* 200 ok object -*/ -export class GetUniverseBloodlines200Ok { - /** - * bloodline_id integer - */ - 'bloodlineId': number; - /** - * charisma integer - */ - 'charisma': number; - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * description string - */ - 'description': string; - /** - * intelligence integer - */ - 'intelligence': number; - /** - * memory integer - */ - 'memory': number; - /** - * name string - */ - 'name': string; - /** - * perception integer - */ - 'perception': number; - /** - * race_id integer - */ - 'raceId': number; - /** - * ship_type_id integer - */ - 'shipTypeId': number; - /** - * willpower integer - */ - 'willpower': number; -} - -/** -* Internal server error -*/ -export class GetUniverseBloodlinesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseCategoriesCategoryIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseCategoriesCategoryIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseCategoriesCategoryIdOk { - /** - * category_id integer - */ - 'categoryId': number; - /** - * groups array - */ - 'groups': Array; - /** - * name string - */ - 'name': string; - /** - * published boolean - */ - 'published': boolean; -} - -/** -* Internal server error -*/ -export class GetUniverseCategoriesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseConstellationsConstellationIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseConstellationsConstellationIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseConstellationsConstellationIdOk { - /** - * constellation_id integer - */ - 'constellationId': number; - /** - * name string - */ - 'name': string; - 'position': GetUniverseConstellationsConstellationIdPosition; - /** - * The region this constellation is in - */ - 'regionId': number; - /** - * systems array - */ - 'systems': Array; -} - -/** -* position object -*/ -export class GetUniverseConstellationsConstellationIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* Internal server error -*/ -export class GetUniverseConstellationsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseFactions200Ok { - /** - * corporation_id integer - */ - 'corporationId': number; - /** - * description string - */ - 'description': string; - /** - * faction_id integer - */ - 'factionId': number; - /** - * is_unique boolean - */ - 'isUnique': boolean; - /** - * militia_corporation_id integer - */ - 'militiaCorporationId': number; - /** - * name string - */ - 'name': string; - /** - * size_factor number - */ - 'sizeFactor': number; - /** - * solar_system_id integer - */ - 'solarSystemId': number; - /** - * station_count integer - */ - 'stationCount': number; - /** - * station_system_count integer - */ - 'stationSystemCount': number; -} - -/** -* Internal server error -*/ -export class GetUniverseFactionsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseGraphicsGraphicIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseGraphicsGraphicIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseGraphicsGraphicIdOk { - /** - * collision_file string - */ - 'collisionFile': string; - /** - * graphic_file string - */ - 'graphicFile': string; - /** - * graphic_id integer - */ - 'graphicId': number; - /** - * icon_folder string - */ - 'iconFolder': string; - /** - * sof_dna string - */ - 'sofDna': string; - /** - * sof_fation_name string - */ - 'sofFationName': string; - /** - * sof_hull_name string - */ - 'sofHullName': string; - /** - * sof_race_name string - */ - 'sofRaceName': string; -} - -/** -* Internal server error -*/ -export class GetUniverseGraphicsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseGroupsGroupIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseGroupsGroupIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseGroupsGroupIdOk { - /** - * category_id number - */ - 'categoryId': number; - /** - * group_id integer - */ - 'groupId': number; - /** - * name string - */ - 'name': string; - /** - * published boolean - */ - 'published': boolean; - /** - * types array - */ - 'types': Array; -} - -/** -* Internal server error -*/ -export class GetUniverseGroupsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseMoonsMoonIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseMoonsMoonIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseMoonsMoonIdOk { - /** - * moon_id integer - */ - 'moonId': number; - /** - * name string - */ - 'name': string; - 'position': GetUniverseMoonsMoonIdPosition; - /** - * The solar system this moon is in - */ - 'systemId': number; -} - -/** -* position object -*/ -export class GetUniverseMoonsMoonIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* Internal server error -*/ -export class GetUniversePlanetsPlanetIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniversePlanetsPlanetIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniversePlanetsPlanetIdOk { - /** - * name string - */ - 'name': string; - /** - * planet_id integer - */ - 'planetId': number; - 'position': GetUniversePlanetsPlanetIdPosition; - /** - * The solar system this planet is in - */ - 'systemId': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* position object -*/ -export class GetUniversePlanetsPlanetIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* 200 ok object -*/ -export class GetUniverseRaces200Ok { - /** - * The alliance generally associated with this race - */ - 'allianceId': number; - /** - * description string - */ - 'description': string; - /** - * name string - */ - 'name': string; - /** - * race_id integer - */ - 'raceId': number; -} - -/** -* Internal server error -*/ -export class GetUniverseRacesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseRegionsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseRegionsRegionIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseRegionsRegionIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseRegionsRegionIdOk { - /** - * constellations array - */ - 'constellations': Array; - /** - * description string - */ - 'description': string; - /** - * name string - */ - 'name': string; - /** - * region_id integer - */ - 'regionId': number; -} - -/** -* Internal server error -*/ -export class GetUniverseSchematicsSchematicIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Schematic not found -*/ -export class GetUniverseSchematicsSchematicIdNotFound { - /** - * error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseSchematicsSchematicIdOk { - /** - * Time in seconds to process a run - */ - 'cycleTime': number; - /** - * schematic_name string - */ - 'schematicName': string; -} - -/** -* destination object -*/ -export class GetUniverseStargatesStargateIdDestination { - /** - * The stargate this stargate connects to - */ - 'stargateId': number; - /** - * The solar system this stargate connects to - */ - 'systemId': number; -} - -/** -* Internal server error -*/ -export class GetUniverseStargatesStargateIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseStargatesStargateIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseStargatesStargateIdOk { - 'destination': GetUniverseStargatesStargateIdDestination; - /** - * name string - */ - 'name': string; - 'position': GetUniverseStargatesStargateIdPosition; - /** - * stargate_id integer - */ - 'stargateId': number; - /** - * The solar system this stargate is in - */ - 'systemId': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* position object -*/ -export class GetUniverseStargatesStargateIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* Internal server error -*/ -export class GetUniverseStationsStationIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseStationsStationIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseStationsStationIdOk { - /** - * max_dockable_ship_volume number - */ - 'maxDockableShipVolume': number; - /** - * name string - */ - 'name': string; - /** - * office_rental_cost number - */ - 'officeRentalCost': number; - /** - * ID of the corporation that controls this station - */ - 'owner': number; - 'position': GetUniverseStationsStationIdPosition; - /** - * race_id integer - */ - 'raceId': number; - /** - * reprocessing_efficiency number - */ - 'reprocessingEfficiency': number; - /** - * reprocessing_stations_take number - */ - 'reprocessingStationsTake': number; - /** - * services array - */ - 'services': Array; - /** - * station_id integer - */ - 'stationId': number; - /** - * The solar system this station is in - */ - 'systemId': number; - /** - * type_id integer - */ - 'typeId': number; -} - -export namespace GetUniverseStationsStationIdOk { - export enum ServicesEnum { - BountyMissions = 'bounty-missions', - AssasinationMissions = 'assasination-missions', - CourierMissions = 'courier-missions', - Interbus = 'interbus', - ReprocessingPlant = 'reprocessing-plant', - Refinery = 'refinery', - Market = 'market', - BlackMarket = 'black-market', - StockExchange = 'stock-exchange', - Cloning = 'cloning', - Surgery = 'surgery', - DnaTherapy = 'dna-therapy', - RepairFacilities = 'repair-facilities', - Factory = 'factory', - Labratory = 'labratory', - Gambling = 'gambling', - Fitting = 'fitting', - Paintshop = 'paintshop', - News = 'news', - Storage = 'storage', - Insurance = 'insurance', - Docking = 'docking', - OfficeRental = 'office-rental', - JumpCloneFacility = 'jump-clone-facility', - LoyaltyPointStore = 'loyalty-point-store', - NavyOffices = 'navy-offices', - SecurityOffices = 'security-offices' - } -} -/** -* position object -*/ -export class GetUniverseStationsStationIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* Internal server error -*/ -export class GetUniverseStructuresInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class GetUniverseStructuresStructureIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseStructuresStructureIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseStructuresStructureIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseStructuresStructureIdOk { - /** - * The full name of the structure - */ - 'name': string; - 'position': GetUniverseStructuresStructureIdPosition; - /** - * solar_system_id integer - */ - 'solarSystemId': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Coordinates of the structure in Cartesian space relative to the Sun, in metres. -*/ -export class GetUniverseStructuresStructureIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* 200 ok object -*/ -export class GetUniverseSystemJumps200Ok { - /** - * ship_jumps integer - */ - 'shipJumps': number; - /** - * system_id integer - */ - 'systemId': number; -} - -/** -* Internal server error -*/ -export class GetUniverseSystemJumpsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseSystemKills200Ok { - /** - * Number of NPC ships killed in this system - */ - 'npcKills': number; - /** - * Number of pods killed in this system - */ - 'podKills': number; - /** - * Number of player ships killed in this system - */ - 'shipKills': number; - /** - * system_id integer - */ - 'systemId': number; -} - -/** -* Internal server error -*/ -export class GetUniverseSystemKillsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseSystemsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class GetUniverseSystemsSystemIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseSystemsSystemIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseSystemsSystemIdOk { - /** - * The constellation this solar system is in - */ - 'constellationId': number; - /** - * name string - */ - 'name': string; - /** - * planets array - */ - 'planets': Array; - 'position': GetUniverseSystemsSystemIdPosition; - /** - * security_class string - */ - 'securityClass': string; - /** - * security_status number - */ - 'securityStatus': number; - /** - * stargates array - */ - 'stargates': Array; - /** - * system_id integer - */ - 'systemId': number; -} - -/** -* planet object -*/ -export class GetUniverseSystemsSystemIdPlanet { - /** - * moons array - */ - 'moons': Array; - /** - * planet_id integer - */ - 'planetId': number; -} - -/** -* position object -*/ -export class GetUniverseSystemsSystemIdPosition { - /** - * x number - */ - 'x': number; - /** - * y number - */ - 'y': number; - /** - * z number - */ - 'z': number; -} - -/** -* Internal server error -*/ -export class GetUniverseTypesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* dogma_attribute object -*/ -export class GetUniverseTypesTypeIdDogmaAttribute { - /** - * attribute_id integer - */ - 'attributeId': number; - /** - * value number - */ - 'value': number; -} - -/** -* dogma_effect object -*/ -export class GetUniverseTypesTypeIdDogmaEffect { - /** - * effect_id integer - */ - 'effectId': number; - /** - * is_default boolean - */ - 'isDefault': boolean; -} - -/** -* Internal server error -*/ -export class GetUniverseTypesTypeIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class GetUniverseTypesTypeIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetUniverseTypesTypeIdOk { - /** - * capacity number - */ - 'capacity': number; - /** - * description string - */ - 'description': string; - /** - * dogma_attributes array - */ - 'dogmaAttributes': Array; - /** - * dogma_effects array - */ - 'dogmaEffects': Array; - /** - * graphic_id integer - */ - 'graphicId': number; - /** - * group_id integer - */ - 'groupId': number; - /** - * icon_id integer - */ - 'iconId': number; - /** - * mass number - */ - 'mass': number; - /** - * name string - */ - 'name': string; - /** - * portion_size integer - */ - 'portionSize': number; - /** - * published boolean - */ - 'published': boolean; - /** - * radius number - */ - 'radius': number; - /** - * type_id integer - */ - 'typeId': number; - /** - * volume number - */ - 'volume': number; -} - -/** -* Internal server error -*/ -export class GetWarsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* The aggressor corporation or alliance that declared this war, only contains either corporation_id or alliance_id -*/ -export class GetWarsWarIdAggressor { - /** - * Alliance ID if and only if the aggressor is an alliance - */ - 'allianceId': number; - /** - * Corporation ID if and only if the aggressor is a corporation - */ - 'corporationId': number; - /** - * ISK value of ships the aggressor has destroyed - */ - 'iskDestroyed': number; - /** - * The number of ships the aggressor has killed - */ - 'shipsKilled': number; -} - -/** -* ally object -*/ -export class GetWarsWarIdAlly { - /** - * Alliance ID if and only if this ally is an alliance - */ - 'allianceId': number; - /** - * Corporation ID if and only if this ally is a corporation - */ - 'corporationId': number; -} - -/** -* The defending corporation or alliance that declared this war, only contains either corporation_id or alliance_id -*/ -export class GetWarsWarIdDefender { - /** - * Alliance ID if and only if the defender is an alliance - */ - 'allianceId': number; - /** - * Corporation ID if and only if the defender is a corporation - */ - 'corporationId': number; - /** - * ISK value of ships the defender has killed - */ - 'iskDestroyed': number; - /** - * The number of ships the defender has killed - */ - 'shipsKilled': number; -} - -/** -* Internal server error -*/ -export class GetWarsWarIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetWarsWarIdKillmails200Ok { - /** - * A hash of this killmail - */ - 'killmailHash': string; - /** - * ID of this killmail - */ - 'killmailId': number; -} - -/** -* Internal server error -*/ -export class GetWarsWarIdKillmailsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Unprocessable entity -*/ -export class GetWarsWarIdKillmailsUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class GetWarsWarIdOk { - 'aggressor': GetWarsWarIdAggressor; - /** - * allied corporations or alliances, each object contains either corporation_id or alliance_id - */ - 'allies': Array; - /** - * Time that the war was declared - */ - 'declared': Date; - 'defender': GetWarsWarIdDefender; - /** - * Time the war ended and shooting was no longer allowed - */ - 'finished': Date; - /** - * ID of the specified war - */ - 'id': number; - /** - * Was the war declared mutual by both parties - */ - 'mutual': boolean; - /** - * Is the war currently open for allies or not - */ - 'openForAllies': boolean; - /** - * Time the war was retracted but both sides could still shoot each other - */ - 'retracted': Date; - /** - * Time when the war started and both sides could shoot each other - */ - 'started': Date; -} - -/** -* Unprocessable entity -*/ -export class GetWarsWarIdUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class PostCharactersAffiliation200Ok { - /** - * The character's alliance ID, if their corporation is in an alliance - */ - 'allianceId': number; - /** - * The character's ID - */ - 'characterId': number; - /** - * The character's corporation ID - */ - 'corporationId': number; - /** - * The character's faction ID, if their corporation is in a faction - */ - 'factionId': number; -} - -/** -* Internal server error -*/ -export class PostCharactersAffiliationInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Unprocessable entity -*/ -export class PostCharactersAffiliationUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostCharactersCharacterIdContactsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostCharactersCharacterIdContactsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* characters schema -*/ -export class PostCharactersCharacterIdCspaCharacters { - /** - * characters array - */ - 'characters': Array; -} - -/** -* 201 created object -*/ -export class PostCharactersCharacterIdCspaCreated { - /** - * cost integer - */ - 'cost': number; -} - -/** -* Forbidden -*/ -export class PostCharactersCharacterIdCspaForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostCharactersCharacterIdCspaInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* 201 created object -*/ -export class PostCharactersCharacterIdFittingsCreated { - /** - * fitting_id integer - */ - 'fittingId': number; -} - -/** -* fitting object -*/ -export class PostCharactersCharacterIdFittingsFitting { - /** - * description string - */ - 'description': string; - /** - * items array - */ - 'items': Array; - /** - * name string - */ - 'name': string; - /** - * ship_type_id integer - */ - 'shipTypeId': number; -} - -/** -* Forbidden -*/ -export class PostCharactersCharacterIdFittingsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostCharactersCharacterIdFittingsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* item object -*/ -export class PostCharactersCharacterIdFittingsItem { - /** - * flag integer - */ - 'flag': number; - /** - * quantity integer - */ - 'quantity': number; - /** - * type_id integer - */ - 'typeId': number; -} - -/** -* Bad request -*/ -export class PostCharactersCharacterIdMailBadRequest { - /** - * Bad request message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostCharactersCharacterIdMailForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostCharactersCharacterIdMailInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostCharactersCharacterIdMailLabelsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostCharactersCharacterIdMailLabelsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* label object -*/ -export class PostCharactersCharacterIdMailLabelsLabel { - /** - * Hexadecimal string representing label color, in RGB format - */ - 'color': PostCharactersCharacterIdMailLabelsLabel.ColorEnum; - /** - * name string - */ - 'name': string; -} - -export namespace PostCharactersCharacterIdMailLabelsLabel { - export enum ColorEnum { - Ffffff = '#ffffff', - Ffff01 = '#ffff01', - Ff6600 = '#ff6600', - Fe0000 = '#fe0000', - _9a0000 = '#9a0000', - _660066 = '#660066', - _0000fe = '#0000fe', - _0099ff = '#0099ff', - _01ffff = '#01ffff', - _00ff33 = '#00ff33', - _349800 = '#349800', - _006634 = '#006634', - _666666 = '#666666', - _999999 = '#999999', - E6e6e6 = '#e6e6e6', - Ffffcd = '#ffffcd', - _99ffff = '#99ffff', - Ccff9a = '#ccff9a' - } -} -/** -* mail schema -*/ -export class PostCharactersCharacterIdMailMail { - /** - * approved_cost integer - */ - 'approvedCost': number; - /** - * body string - */ - 'body': string; - /** - * recipients array - */ - 'recipients': Array; - /** - * subject string - */ - 'subject': string; -} - -/** -* recipient object -*/ -export class PostCharactersCharacterIdMailRecipient { - /** - * recipient_id integer - */ - 'recipientId': number; - /** - * recipient_type string - */ - 'recipientType': PostCharactersCharacterIdMailRecipient.RecipientTypeEnum; -} - -export namespace PostCharactersCharacterIdMailRecipient { - export enum RecipientTypeEnum { - Alliance = 'alliance', - Character = 'character', - Corporation = 'corporation', - MailingList = 'mailing_list' - } -} -/** -* Forbidden -*/ -export class PostFleetsFleetIdMembersForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostFleetsFleetIdMembersInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* invitation object -*/ -export class PostFleetsFleetIdMembersInvitation { - /** - * The character you want to invite - */ - 'characterId': number; - /** - * - If a character is invited with the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified - If a character is invited with the `wing_commander` role, only `wing_id` should be specified - If a character is invited with the `squad_commander` role, both `wing_id` and `squad_id` should be specified - If a character is invited with the `squad_member` role, `wing_id` and `squad_id` should either both be specified or not specified at all. If they aren’t specified, the invited character will join any squad with available positions - */ - 'role': PostFleetsFleetIdMembersInvitation.RoleEnum; - /** - * squad_id integer - */ - 'squadId': number; - /** - * wing_id integer - */ - 'wingId': number; -} - -export namespace PostFleetsFleetIdMembersInvitation { - export enum RoleEnum { - FleetCommander = 'fleet_commander', - WingCommander = 'wing_commander', - SquadCommander = 'squad_commander', - SquadMember = 'squad_member' - } -} -/** -* Not found -*/ -export class PostFleetsFleetIdMembersNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 422 unprocessable entity object -*/ -export class PostFleetsFleetIdMembersUnprocessableEntity { - /** - * error message - */ - 'error': string; -} - -/** -* 201 created object -*/ -export class PostFleetsFleetIdWingsCreated { - /** - * The wing_id of the newly created wing - */ - 'wingId': number; -} - -/** -* Forbidden -*/ -export class PostFleetsFleetIdWingsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostFleetsFleetIdWingsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class PostFleetsFleetIdWingsNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 201 created object -*/ -export class PostFleetsFleetIdWingsWingIdSquadsCreated { - /** - * The squad_id of the newly created squad - */ - 'squadId': number; -} - -/** -* Forbidden -*/ -export class PostFleetsFleetIdWingsWingIdSquadsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostFleetsFleetIdWingsWingIdSquadsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class PostFleetsFleetIdWingsWingIdSquadsNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostUiAutopilotWaypointForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostUiAutopilotWaypointInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostUiOpenwindowContractForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostUiOpenwindowContractInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostUiOpenwindowInformationForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostUiOpenwindowInformationInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostUiOpenwindowMarketdetailsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostUiOpenwindowMarketdetailsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PostUiOpenwindowNewmailForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PostUiOpenwindowNewmailInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* new_mail object -*/ -export class PostUiOpenwindowNewmailNewMail { - /** - * body string - */ - 'body': string; - /** - * recipients array - */ - 'recipients': Array; - /** - * subject string - */ - 'subject': string; - /** - * to_corp_or_alliance_id integer - */ - 'toCorpOrAllianceId': number; - /** - * Corporations, alliances and mailing lists are all types of mailing groups. You may only send to one mailing group, at a time, so you may fill out either this field or the to_corp_or_alliance_ids field - */ - 'toMailingListId': number; -} - -/** -* Unprocessable entity -*/ -export class PostUiOpenwindowNewmailUnprocessableEntity { - /** - * Unprocessable entity message - */ - 'error': string; -} - -/** -* 200 ok object -*/ -export class PostUniverseNames200Ok { - /** - * category string - */ - 'category': PostUniverseNames200Ok.CategoryEnum; - /** - * id integer - */ - 'id': number; - /** - * name string - */ - 'name': string; -} - -export namespace PostUniverseNames200Ok { - export enum CategoryEnum { - Alliance = 'alliance', - Character = 'character', - Constellation = 'constellation', - Corporation = 'corporation', - InventoryType = 'inventory_type', - Region = 'region', - SolarSystem = 'solar_system', - Station = 'station' - } -} -/** -* Internal server error -*/ -export class PostUniverseNamesInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Not found -*/ -export class PostUniverseNamesNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PutCharactersCharacterIdCalendarEventIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutCharactersCharacterIdCalendarEventIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* response schema -*/ -export class PutCharactersCharacterIdCalendarEventIdResponse { - /** - * response string - */ - 'response': PutCharactersCharacterIdCalendarEventIdResponse.ResponseEnum; -} - -export namespace PutCharactersCharacterIdCalendarEventIdResponse { - export enum ResponseEnum { - Accepted = 'accepted', - Declined = 'declined', - Tentative = 'tentative' - } -} -/** -* Forbidden -*/ -export class PutCharactersCharacterIdContactsForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutCharactersCharacterIdContactsInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Bad request -*/ -export class PutCharactersCharacterIdMailMailIdBadRequest { - /** - * Bad request message - */ - 'error': string; -} - -/** -* contents object -*/ -export class PutCharactersCharacterIdMailMailIdContents { - /** - * Labels to assign to the mail. Pre-existing labels are unassigned. - */ - 'labels': Array; - /** - * Whether the mail is flagged as read - */ - 'read': boolean; -} - -/** -* Forbidden -*/ -export class PutCharactersCharacterIdMailMailIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutCharactersCharacterIdMailMailIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PutCorporationsCorporationIdStructuresStructureIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutCorporationsCorporationIdStructuresStructureIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* new_schedule object -*/ -export class PutCorporationsCorporationIdStructuresStructureIdNewSchedule { - /** - * Day of the week, zero-indexed to Monday - */ - 'day': number; - /** - * Hour of the day evetime, zero-indexed to midnight - */ - 'hour': number; -} - -/** -* Bad request -*/ -export class PutFleetsFleetIdBadRequest { - /** - * Bad request message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PutFleetsFleetIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutFleetsFleetIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PutFleetsFleetIdMembersMemberIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutFleetsFleetIdMembersMemberIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* movement object -*/ -export class PutFleetsFleetIdMembersMemberIdMovement { - /** - * - If a character is moved to the `fleet_commander` role, neither `wing_id` or `squad_id` should be specified - If a character is moved to the `wing_commander` role, only `wing_id` should be specified - If a character is moved to the `squad_commander` role, both `wing_id` and `squad_id` should be specified - If a character is moved to the `squad_member` role, both `wing_id` and `squad_id` should be specified - */ - 'role': PutFleetsFleetIdMembersMemberIdMovement.RoleEnum; - /** - * squad_id integer - */ - 'squadId': number; - /** - * wing_id integer - */ - 'wingId': number; -} - -export namespace PutFleetsFleetIdMembersMemberIdMovement { - export enum RoleEnum { - FleetCommander = 'fleet_commander', - WingCommander = 'wing_commander', - SquadCommander = 'squad_commander', - SquadMember = 'squad_member' - } -} -/** -* Not found -*/ -export class PutFleetsFleetIdMembersMemberIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* 422 unprocessable entity object -*/ -export class PutFleetsFleetIdMembersMemberIdUnprocessableEntity { - /** - * error message - */ - 'error': string; -} - -/** -* new_settings object -*/ -export class PutFleetsFleetIdNewSettings { - /** - * Should free-move be enabled in the fleet - */ - 'isFreeMove': boolean; - /** - * New fleet MOTD in CCP flavoured HTML - */ - 'motd': string; -} - -/** -* Not found -*/ -export class PutFleetsFleetIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PutFleetsFleetIdSquadsSquadIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutFleetsFleetIdSquadsSquadIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* naming object -*/ -export class PutFleetsFleetIdSquadsSquadIdNaming { - /** - * name string - */ - 'name': string; -} - -/** -* Not found -*/ -export class PutFleetsFleetIdSquadsSquadIdNotFound { - /** - * Not found message - */ - 'error': string; -} - -/** -* Forbidden -*/ -export class PutFleetsFleetIdWingsWingIdForbidden { - /** - * Forbidden message - */ - 'error': string; -} - -/** -* Internal server error -*/ -export class PutFleetsFleetIdWingsWingIdInternalServerError { - /** - * Internal server error message - */ - 'error': string; -} - -/** -* naming object -*/ -export class PutFleetsFleetIdWingsWingIdNaming { - /** - * name string - */ - 'name': string; -} - -/** -* Not found -*/ -export class PutFleetsFleetIdWingsWingIdNotFound { - /** - * Not found message - */ - 'error': string; -} - - -export interface Authentication { - /** - * Apply authentication settings to header and query params. - */ - applyToRequest(requestOptions: request.Options): void; -} - -export class HttpBasicAuth implements Authentication { - public username: string; - public password: string; - applyToRequest(requestOptions: request.Options): void { - requestOptions.auth = { - username: this.username, password: this.password - } - } -} - -export class ApiKeyAuth implements Authentication { - public apiKey: string; - - constructor(private location: string, private paramName: string) { - } - - applyToRequest(requestOptions: request.Options): void { - if (this.location == "query") { - (requestOptions.qs)[this.paramName] = this.apiKey; - } else if (this.location == "header" && requestOptions && requestOptions.headers) { - requestOptions.headers[this.paramName] = this.apiKey; - } - } -} - -export class OAuth implements Authentication { - public accessToken: string; - - applyToRequest(requestOptions: request.Options): void { - if (requestOptions && requestOptions.headers) { - requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; - } - } -} - -export class VoidAuth implements Authentication { - public username: string; - public password: string; - applyToRequest(_: request.Options): void { - // Do nothing - } -} - -export enum AllianceApiApiKeys { -} - -export class AllianceApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: AllianceApiApiKeys, value: string) { - this.authentications[AllianceApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List all alliances - * List all active player alliances --- Alternate route: `/v1/alliances/` Alternate route: `/legacy/alliances/` Alternate route: `/dev/alliances/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getAlliances (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/alliances/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get alliance information - * Public information about an alliance --- Alternate route: `/v2/alliances/{alliance_id}/` --- This route is cached for up to 3600 seconds - * @param allianceId An Eve alliance ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getAlliancesAllianceId (allianceId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetAlliancesAllianceIdOk; }> { - const localVarPath = this.basePath + '/alliances/{alliance_id}/' - .replace('{' + 'alliance_id' + '}', String(allianceId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'allianceId' is not null or undefined - if (allianceId === null || allianceId === undefined) { - throw new Error('Required parameter allianceId was null or undefined when calling getAlliancesAllianceId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetAlliancesAllianceIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List alliance's corporations - * List all current member corporations of an alliance --- Alternate route: `/v1/alliances/{alliance_id}/corporations/` Alternate route: `/legacy/alliances/{alliance_id}/corporations/` Alternate route: `/dev/alliances/{alliance_id}/corporations/` --- This route is cached for up to 3600 seconds - * @param allianceId An EVE alliance ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getAlliancesAllianceIdCorporations (allianceId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/alliances/{alliance_id}/corporations/' - .replace('{' + 'alliance_id' + '}', String(allianceId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'allianceId' is not null or undefined - if (allianceId === null || allianceId === undefined) { - throw new Error('Required parameter allianceId was null or undefined when calling getAlliancesAllianceIdCorporations.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get alliance icon - * Get the icon urls for a alliance --- Alternate route: `/v1/alliances/{alliance_id}/icons/` Alternate route: `/legacy/alliances/{alliance_id}/icons/` Alternate route: `/dev/alliances/{alliance_id}/icons/` --- This route is cached for up to 3600 seconds - * @param allianceId An EVE alliance ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getAlliancesAllianceIdIcons (allianceId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetAlliancesAllianceIdIconsOk; }> { - const localVarPath = this.basePath + '/alliances/{alliance_id}/icons/' - .replace('{' + 'alliance_id' + '}', String(allianceId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'allianceId' is not null or undefined - if (allianceId === null || allianceId === undefined) { - throw new Error('Required parameter allianceId was null or undefined when calling getAlliancesAllianceIdIcons.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetAlliancesAllianceIdIconsOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get alliance names - * Resolve a set of alliance IDs to alliance names --- Alternate route: `/v1/alliances/names/` Alternate route: `/legacy/alliances/names/` Alternate route: `/dev/alliances/names/` --- This route is cached for up to 3600 seconds - * @param allianceIds A comma separated list of alliance IDs - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getAlliancesNames (allianceIds: Array, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/alliances/names/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'allianceIds' is not null or undefined - if (allianceIds === null || allianceIds === undefined) { - throw new Error('Required parameter allianceIds was null or undefined when calling getAlliancesNames.'); - } - - if (allianceIds !== undefined) { - queryParameters['alliance_ids'] = allianceIds; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum AssetsApiApiKeys { -} - -export class AssetsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: AssetsApiApiKeys, value: string) { - this.authentications[AssetsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get character assets - * Return a list of the characters assets --- Alternate route: `/v1/characters/{character_id}/assets/` Alternate route: `/legacy/characters/{character_id}/assets/` Alternate route: `/dev/characters/{character_id}/assets/` --- This route is cached for up to 3600 seconds - * @param characterId Character id of the target character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdAssets (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/assets/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdAssets.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum BookmarksApiApiKeys { -} - -export class BookmarksApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: BookmarksApiApiKeys, value: string) { - this.authentications[BookmarksApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List bookmarks - * List your character's personal bookmarks --- Alternate route: `/v1/characters/{character_id}/bookmarks/` Alternate route: `/legacy/characters/{character_id}/bookmarks/` Alternate route: `/dev/characters/{character_id}/bookmarks/` --- This route is cached for up to 3600 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdBookmarks (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/bookmarks/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdBookmarks.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List bookmark folders - * List your character's personal bookmark folders --- Alternate route: `/v1/characters/{character_id}/bookmarks/folders/` Alternate route: `/legacy/characters/{character_id}/bookmarks/folders/` Alternate route: `/dev/characters/{character_id}/bookmarks/folders/` --- This route is cached for up to 3600 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdBookmarksFolders (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/bookmarks/folders/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdBookmarksFolders.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum CalendarApiApiKeys { -} - -export class CalendarApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: CalendarApiApiKeys, value: string) { - this.authentications[CalendarApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List calendar event summaries - * Get 50 event summaries from the calendar. If no event ID is given, the resource will return the next 50 chronological event summaries from now. If an event ID is specified, it will return the next 50 chronological event summaries from after that event. --- Alternate route: `/v1/characters/{character_id}/calendar/` Alternate route: `/legacy/characters/{character_id}/calendar/` Alternate route: `/dev/characters/{character_id}/calendar/` --- This route is cached for up to 5 seconds - * @param characterId The character to retrieve events from - * @param datasource The server name you would like data from - * @param fromEvent The event ID to retrieve events from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdCalendar (characterId: number, datasource?: string, fromEvent?: number, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/calendar/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdCalendar.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (fromEvent !== undefined) { - queryParameters['from_event'] = fromEvent; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get an event - * Get all the information for a specific event --- Alternate route: `/v3/characters/{character_id}/calendar/{event_id}/` Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/` --- This route is cached for up to 5 seconds - * @param characterId The character id requesting the event - * @param eventId The id of the event requested - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdCalendarEventId (characterId: number, eventId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdCalendarEventIdOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/calendar/{event_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'event_id' + '}', String(eventId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdCalendarEventId.'); - } - - // verify required parameter 'eventId' is not null or undefined - if (eventId === null || eventId === undefined) { - throw new Error('Required parameter eventId was null or undefined when calling getCharactersCharacterIdCalendarEventId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdCalendarEventIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Respond to an event - * Set your response status to an event --- Alternate route: `/v3/characters/{character_id}/calendar/{event_id}/` Alternate route: `/dev/characters/{character_id}/calendar/{event_id}/` - * @param characterId The character ID requesting the event - * @param eventId The ID of the event requested - * @param response The response value to set, overriding current value. - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putCharactersCharacterIdCalendarEventId (characterId: number, eventId: number, response: PutCharactersCharacterIdCalendarEventIdResponse, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/calendar/{event_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'event_id' + '}', String(eventId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling putCharactersCharacterIdCalendarEventId.'); - } - - // verify required parameter 'eventId' is not null or undefined - if (eventId === null || eventId === undefined) { - throw new Error('Required parameter eventId was null or undefined when calling putCharactersCharacterIdCalendarEventId.'); - } - - // verify required parameter 'response' is not null or undefined - if (response === null || response === undefined) { - throw new Error('Required parameter response was null or undefined when calling putCharactersCharacterIdCalendarEventId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: response, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum CharacterApiApiKeys { -} - -export class CharacterApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: CharacterApiApiKeys, value: string) { - this.authentications[CharacterApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get character's public information - * Public information about a character --- Alternate route: `/v4/characters/{character_id}/` Alternate route: `/dev/characters/{character_id}/` --- This route is cached for up to 3600 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterId (characterId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get agents research - * Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate) --- Alternate route: `/v1/characters/{character_id}/agents_research/` Alternate route: `/legacy/characters/{character_id}/agents_research/` Alternate route: `/dev/characters/{character_id}/agents_research/` --- This route is cached for up to 3600 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdAgentsResearch (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/agents_research/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdAgentsResearch.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get chat channels - * Return chat channels that a character is the owner or an operator of --- Alternate route: `/v1/characters/{character_id}/chat_channels/` Alternate route: `/legacy/characters/{character_id}/chat_channels/` Alternate route: `/dev/characters/{character_id}/chat_channels/` --- This route is cached for up to 300 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdChatChannels (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/chat_channels/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdChatChannels.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get corporation history - * Get a list of all the corporations a character has been a member of --- Alternate route: `/v1/characters/{character_id}/corporationhistory/` Alternate route: `/legacy/characters/{character_id}/corporationhistory/` Alternate route: `/dev/characters/{character_id}/corporationhistory/` --- This route is cached for up to 3600 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdCorporationhistory (characterId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/corporationhistory/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdCorporationhistory.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get medals - * Return a list of medals the character has --- Alternate route: `/v1/characters/{character_id}/medals/` Alternate route: `/legacy/characters/{character_id}/medals/` Alternate route: `/dev/characters/{character_id}/medals/` --- This route is cached for up to 3600 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdMedals (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/medals/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdMedals.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get character portraits - * Get portrait urls for a character --- Alternate route: `/v2/characters/{character_id}/portrait/` Alternate route: `/dev/characters/{character_id}/portrait/` --- This route is cached for up to 3600 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdPortrait (characterId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdPortraitOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/portrait/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdPortrait.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdPortraitOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get standings - * Return character standings from agents, NPC corporations, and factions --- Alternate route: `/v1/characters/{character_id}/standings/` Alternate route: `/legacy/characters/{character_id}/standings/` Alternate route: `/dev/characters/{character_id}/standings/` --- This route is cached for up to 3600 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdStandings (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/standings/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdStandings.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get character names - * Resolve a set of character IDs to character names --- Alternate route: `/v1/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/dev/characters/names/` --- This route is cached for up to 3600 seconds - * @param characterIds A comma separated list of character IDs - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersNames (characterIds: Array, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/names/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterIds' is not null or undefined - if (characterIds === null || characterIds === undefined) { - throw new Error('Required parameter characterIds was null or undefined when calling getCharactersNames.'); - } - - if (characterIds !== undefined) { - queryParameters['character_ids'] = characterIds; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Character affiliation - * Bulk lookup of character IDs to corporation, alliance and faction --- Alternate route: `/v1/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/dev/characters/affiliation/` --- This route is cached for up to 3600 seconds - * @param characters The character IDs to fetch affiliations for - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postCharactersAffiliation (characters: Array, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/affiliation/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characters' is not null or undefined - if (characters === null || characters === undefined) { - throw new Error('Required parameter characters was null or undefined when calling postCharactersAffiliation.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: characters, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Calculate a CSPA charge cost - * Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost --- Alternate route: `/v3/characters/{character_id}/cspa/` Alternate route: `/legacy/characters/{character_id}/cspa/` Alternate route: `/dev/characters/{character_id}/cspa/` - * @param characterId An EVE character ID - * @param characters The target characters to calculate the charge for - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postCharactersCharacterIdCspa (characterId: number, characters: PostCharactersCharacterIdCspaCharacters, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: PostCharactersCharacterIdCspaCreated; }> { - const localVarPath = this.basePath + '/characters/{character_id}/cspa/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling postCharactersCharacterIdCspa.'); - } - - // verify required parameter 'characters' is not null or undefined - if (characters === null || characters === undefined) { - throw new Error('Required parameter characters was null or undefined when calling postCharactersCharacterIdCspa.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: characters, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: PostCharactersCharacterIdCspaCreated; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum ClonesApiApiKeys { -} - -export class ClonesApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: ClonesApiApiKeys, value: string) { - this.authentications[ClonesApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get clones - * A list of the character's clones --- Alternate route: `/v2/characters/{character_id}/clones/` Alternate route: `/dev/characters/{character_id}/clones/` --- This route is cached for up to 120 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdClones (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdClonesOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/clones/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdClones.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdClonesOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum ContactsApiApiKeys { -} - -export class ContactsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: ContactsApiApiKeys, value: string) { - this.authentications[ContactsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Delete contacts - * Bulk delete contacts --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` - * @param characterId ID for a character - * @param contactIds A list of contacts to edit - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteCharactersCharacterIdContacts (characterId: number, contactIds: Array, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/contacts/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling deleteCharactersCharacterIdContacts.'); - } - - // verify required parameter 'contactIds' is not null or undefined - if (contactIds === null || contactIds === undefined) { - throw new Error('Required parameter contactIds was null or undefined when calling deleteCharactersCharacterIdContacts.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: contactIds, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get contacts - * Return contacts of a character --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` --- This route is cached for up to 300 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param page page integer - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdContacts (characterId: number, datasource?: string, page?: number, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/contacts/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdContacts.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get contact labels - * Return custom labels for contacts the character defined --- Alternate route: `/v1/characters/{character_id}/contacts/labels/` Alternate route: `/legacy/characters/{character_id}/contacts/labels/` Alternate route: `/dev/characters/{character_id}/contacts/labels/` --- This route is cached for up to 300 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdContactsLabels (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/contacts/labels/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdContactsLabels.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Add contacts - * Bulk add contacts with same settings --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` - * @param characterId ID for a character - * @param contactIds A list of contacts to add - * @param standing Standing for the new contact - * @param datasource The server name you would like data from - * @param labelId Add a custom label to the new contact - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param watched Whether the new contact should be watched, note this is only effective on characters - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postCharactersCharacterIdContacts (characterId: number, contactIds: Array, standing: number, datasource?: string, labelId?: number, token?: string, userAgent?: string, watched?: boolean, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/contacts/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling postCharactersCharacterIdContacts.'); - } - - // verify required parameter 'contactIds' is not null or undefined - if (contactIds === null || contactIds === undefined) { - throw new Error('Required parameter contactIds was null or undefined when calling postCharactersCharacterIdContacts.'); - } - - // verify required parameter 'standing' is not null or undefined - if (standing === null || standing === undefined) { - throw new Error('Required parameter standing was null or undefined when calling postCharactersCharacterIdContacts.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (labelId !== undefined) { - queryParameters['label_id'] = labelId; - } - - if (standing !== undefined) { - queryParameters['standing'] = standing; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - if (watched !== undefined) { - queryParameters['watched'] = watched; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: contactIds, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Edit contacts - * Bulk edit contacts with same settings --- Alternate route: `/v1/characters/{character_id}/contacts/` Alternate route: `/legacy/characters/{character_id}/contacts/` Alternate route: `/dev/characters/{character_id}/contacts/` - * @param characterId ID for a character - * @param contactIds A list of contacts to edit - * @param standing Standing for the contact - * @param datasource The server name you would like data from - * @param labelId Add a custom label to the contact, use 0 for clearing label - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param watched Whether the contact should be watched, note this is only effective on characters - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putCharactersCharacterIdContacts (characterId: number, contactIds: Array, standing: number, datasource?: string, labelId?: number, token?: string, userAgent?: string, watched?: boolean, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/contacts/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling putCharactersCharacterIdContacts.'); - } - - // verify required parameter 'contactIds' is not null or undefined - if (contactIds === null || contactIds === undefined) { - throw new Error('Required parameter contactIds was null or undefined when calling putCharactersCharacterIdContacts.'); - } - - // verify required parameter 'standing' is not null or undefined - if (standing === null || standing === undefined) { - throw new Error('Required parameter standing was null or undefined when calling putCharactersCharacterIdContacts.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (labelId !== undefined) { - queryParameters['label_id'] = labelId; - } - - if (standing !== undefined) { - queryParameters['standing'] = standing; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - if (watched !== undefined) { - queryParameters['watched'] = watched; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: contactIds, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum CorporationApiApiKeys { -} - -export class CorporationApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: CorporationApiApiKeys, value: string) { - this.authentications[CorporationApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get corporation information - * Public information about a corporation --- Alternate route: `/v3/corporations/{corporation_id}/` Alternate route: `/dev/corporations/{corporation_id}/` --- This route is cached for up to 3600 seconds - * @param corporationId An Eve corporation ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsCorporationId (corporationId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCorporationsCorporationIdOk; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getCorporationsCorporationId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCorporationsCorporationIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get alliance history - * Get a list of all the alliances a corporation has been a member of --- Alternate route: `/v1/corporations/{corporation_id}/alliancehistory/` Alternate route: `/legacy/corporations/{corporation_id}/alliancehistory/` Alternate route: `/dev/corporations/{corporation_id}/alliancehistory/` --- This route is cached for up to 3600 seconds - * @param corporationId An EVE corporation ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsCorporationIdAlliancehistory (corporationId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/alliancehistory/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getCorporationsCorporationIdAlliancehistory.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get corporation icon - * Get the icon urls for a corporation --- Alternate route: `/v1/corporations/{corporation_id}/icons/` Alternate route: `/legacy/corporations/{corporation_id}/icons/` Alternate route: `/dev/corporations/{corporation_id}/icons/` --- This route is cached for up to 3600 seconds - * @param corporationId An EVE corporation ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsCorporationIdIcons (corporationId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCorporationsCorporationIdIconsOk; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/icons/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getCorporationsCorporationIdIcons.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCorporationsCorporationIdIconsOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get corporation members - * Read the current list of members if the calling character is a member. --- Alternate route: `/v2/corporations/{corporation_id}/members/` Alternate route: `/legacy/corporations/{corporation_id}/members/` Alternate route: `/dev/corporations/{corporation_id}/members/` --- This route is cached for up to 3600 seconds - * @param corporationId A corporation ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsCorporationIdMembers (corporationId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/members/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getCorporationsCorporationIdMembers.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get corporation member roles - * Return the roles of all members if the character has the personnel manager role or any grantable role. --- Alternate route: `/v1/corporations/{corporation_id}/roles/` Alternate route: `/legacy/corporations/{corporation_id}/roles/` Alternate route: `/dev/corporations/{corporation_id}/roles/` --- This route is cached for up to 3600 seconds - * @param corporationId A corporation ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsCorporationIdRoles (corporationId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/roles/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getCorporationsCorporationIdRoles.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get corporation structures - * Get a list of corporation structures --- Alternate route: `/v1/corporations/{corporation_id}/structures/` Alternate route: `/legacy/corporations/{corporation_id}/structures/` Alternate route: `/dev/corporations/{corporation_id}/structures/` --- This route is cached for up to 3600 seconds - * @param corporationId A corporation ID - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param page Which page to query, 250 structures per page - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsCorporationIdStructures (corporationId: number, datasource?: string, language?: string, page?: number, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/structures/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getCorporationsCorporationIdStructures.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get corporation names - * Resolve a set of corporation IDs to corporation names --- Alternate route: `/v1/corporations/names/` Alternate route: `/legacy/corporations/names/` Alternate route: `/dev/corporations/names/` --- This route is cached for up to 3600 seconds - * @param corporationIds A comma separated list of corporation IDs - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsNames (corporationIds: Array, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/corporations/names/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationIds' is not null or undefined - if (corporationIds === null || corporationIds === undefined) { - throw new Error('Required parameter corporationIds was null or undefined when calling getCorporationsNames.'); - } - - if (corporationIds !== undefined) { - queryParameters['corporation_ids'] = corporationIds; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get npc corporations - * Get a list of npc corporations --- Alternate route: `/v1/corporations/npccorps/` Alternate route: `/legacy/corporations/npccorps/` Alternate route: `/dev/corporations/npccorps/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCorporationsNpccorps (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/corporations/npccorps/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Update structure vulnerability schedule - * Update the vulnerability window schedule of a corporation structure --- Alternate route: `/v1/corporations/{corporation_id}/structures/{structure_id}/` Alternate route: `/legacy/corporations/{corporation_id}/structures/{structure_id}/` Alternate route: `/dev/corporations/{corporation_id}/structures/{structure_id}/` - * @param corporationId A corporation ID - * @param newSchedule New vulnerability window schedule for the structure - * @param structureId A structure ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putCorporationsCorporationIdStructuresStructureId (corporationId: number, newSchedule: Array, structureId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/corporations/{corporation_id}/structures/{structure_id}/' - .replace('{' + 'corporation_id' + '}', String(corporationId)) - .replace('{' + 'structure_id' + '}', String(structureId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling putCorporationsCorporationIdStructuresStructureId.'); - } - - // verify required parameter 'newSchedule' is not null or undefined - if (newSchedule === null || newSchedule === undefined) { - throw new Error('Required parameter newSchedule was null or undefined when calling putCorporationsCorporationIdStructuresStructureId.'); - } - - // verify required parameter 'structureId' is not null or undefined - if (structureId === null || structureId === undefined) { - throw new Error('Required parameter structureId was null or undefined when calling putCorporationsCorporationIdStructuresStructureId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: newSchedule, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum DogmaApiApiKeys { -} - -export class DogmaApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: DogmaApiApiKeys, value: string) { - this.authentications[DogmaApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get attributes - * Get a list of dogma attribute ids --- Alternate route: `/v1/dogma/attributes/` Alternate route: `/legacy/dogma/attributes/` Alternate route: `/dev/dogma/attributes/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getDogmaAttributes (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/dogma/attributes/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get attribute information - * Get information on a dogma attribute --- Alternate route: `/v1/dogma/attributes/{attribute_id}/` Alternate route: `/legacy/dogma/attributes/{attribute_id}/` Alternate route: `/dev/dogma/attributes/{attribute_id}/` --- This route is cached for up to 3600 seconds - * @param attributeId A dogma attribute ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getDogmaAttributesAttributeId (attributeId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetDogmaAttributesAttributeIdOk; }> { - const localVarPath = this.basePath + '/dogma/attributes/{attribute_id}/' - .replace('{' + 'attribute_id' + '}', String(attributeId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'attributeId' is not null or undefined - if (attributeId === null || attributeId === undefined) { - throw new Error('Required parameter attributeId was null or undefined when calling getDogmaAttributesAttributeId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetDogmaAttributesAttributeIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get effects - * Get a list of dogma effect ids --- Alternate route: `/v1/dogma/effects/` Alternate route: `/legacy/dogma/effects/` Alternate route: `/dev/dogma/effects/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getDogmaEffects (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/dogma/effects/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get effect information - * Get information on a dogma effect --- Alternate route: `/v1/dogma/effects/{effect_id}/` Alternate route: `/legacy/dogma/effects/{effect_id}/` Alternate route: `/dev/dogma/effects/{effect_id}/` --- This route is cached for up to 3600 seconds - * @param effectId A dogma effect ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getDogmaEffectsEffectId (effectId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetDogmaEffectsEffectIdOk; }> { - const localVarPath = this.basePath + '/dogma/effects/{effect_id}/' - .replace('{' + 'effect_id' + '}', String(effectId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'effectId' is not null or undefined - if (effectId === null || effectId === undefined) { - throw new Error('Required parameter effectId was null or undefined when calling getDogmaEffectsEffectId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetDogmaEffectsEffectIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum FittingsApiApiKeys { -} - -export class FittingsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: FittingsApiApiKeys, value: string) { - this.authentications[FittingsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Delete fitting - * Delete a fitting from a character --- Alternate route: `/v1/characters/{character_id}/fittings/{fitting_id}/` Alternate route: `/legacy/characters/{character_id}/fittings/{fitting_id}/` Alternate route: `/dev/characters/{character_id}/fittings/{fitting_id}/` - * @param characterId ID for a character - * @param fittingId ID for a fitting of this character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteCharactersCharacterIdFittingsFittingId (characterId: number, fittingId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/fittings/{fitting_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'fitting_id' + '}', String(fittingId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling deleteCharactersCharacterIdFittingsFittingId.'); - } - - // verify required parameter 'fittingId' is not null or undefined - if (fittingId === null || fittingId === undefined) { - throw new Error('Required parameter fittingId was null or undefined when calling deleteCharactersCharacterIdFittingsFittingId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get fittings - * Return fittings of a character --- Alternate route: `/v1/characters/{character_id}/fittings/` Alternate route: `/legacy/characters/{character_id}/fittings/` Alternate route: `/dev/characters/{character_id}/fittings/` --- This route is cached for up to 300 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdFittings (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/fittings/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdFittings.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Create fitting - * Save a new fitting for a character --- Alternate route: `/v1/characters/{character_id}/fittings/` Alternate route: `/legacy/characters/{character_id}/fittings/` Alternate route: `/dev/characters/{character_id}/fittings/` - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param fitting Details about the new fitting - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postCharactersCharacterIdFittings (characterId: number, datasource?: string, fitting?: PostCharactersCharacterIdFittingsFitting, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: PostCharactersCharacterIdFittingsCreated; }> { - const localVarPath = this.basePath + '/characters/{character_id}/fittings/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling postCharactersCharacterIdFittings.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: fitting, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: PostCharactersCharacterIdFittingsCreated; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum FleetsApiApiKeys { -} - -export class FleetsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: FleetsApiApiKeys, value: string) { - this.authentications[FleetsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Kick fleet member - * Kick a fleet member --- Alternate route: `/v1/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/legacy/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/dev/fleets/{fleet_id}/members/{member_id}/` - * @param fleetId ID for a fleet - * @param memberId The character ID of a member in this fleet - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteFleetsFleetIdMembersMemberId (fleetId: number, memberId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/members/{member_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'member_id' + '}', String(memberId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling deleteFleetsFleetIdMembersMemberId.'); - } - - // verify required parameter 'memberId' is not null or undefined - if (memberId === null || memberId === undefined) { - throw new Error('Required parameter memberId was null or undefined when calling deleteFleetsFleetIdMembersMemberId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Delete fleet squad - * Delete a fleet squad, only empty squads can be deleted --- Alternate route: `/v1/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/legacy/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/dev/fleets/{fleet_id}/squads/{squad_id}/` - * @param fleetId ID for a fleet - * @param squadId The squad to delete - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteFleetsFleetIdSquadsSquadId (fleetId: number, squadId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/squads/{squad_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'squad_id' + '}', String(squadId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling deleteFleetsFleetIdSquadsSquadId.'); - } - - // verify required parameter 'squadId' is not null or undefined - if (squadId === null || squadId === undefined) { - throw new Error('Required parameter squadId was null or undefined when calling deleteFleetsFleetIdSquadsSquadId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Delete fleet wing - * Delete a fleet wing, only empty wings can be deleted. The wing may contain squads, but the squads must be empty --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/` - * @param fleetId ID for a fleet - * @param wingId The wing to delete - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteFleetsFleetIdWingsWingId (fleetId: number, wingId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/wings/{wing_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'wing_id' + '}', String(wingId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling deleteFleetsFleetIdWingsWingId.'); - } - - // verify required parameter 'wingId' is not null or undefined - if (wingId === null || wingId === undefined) { - throw new Error('Required parameter wingId was null or undefined when calling deleteFleetsFleetIdWingsWingId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get fleet information - * Return details about a fleet --- Alternate route: `/v1/fleets/{fleet_id}/` Alternate route: `/legacy/fleets/{fleet_id}/` Alternate route: `/dev/fleets/{fleet_id}/` --- This route is cached for up to 5 seconds - * @param fleetId ID for a fleet - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getFleetsFleetId (fleetId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetFleetsFleetIdOk; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling getFleetsFleetId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetFleetsFleetIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get fleet members - * Return information about fleet members --- Alternate route: `/v1/fleets/{fleet_id}/members/` Alternate route: `/legacy/fleets/{fleet_id}/members/` Alternate route: `/dev/fleets/{fleet_id}/members/` --- This route is cached for up to 5 seconds - * @param fleetId ID for a fleet - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getFleetsFleetIdMembers (fleetId: number, datasource?: string, language?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/members/' - .replace('{' + 'fleet_id' + '}', String(fleetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling getFleetsFleetIdMembers.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get fleet wings - * Return information about wings in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings/` Alternate route: `/legacy/fleets/{fleet_id}/wings/` Alternate route: `/dev/fleets/{fleet_id}/wings/` --- This route is cached for up to 5 seconds - * @param fleetId ID for a fleet - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getFleetsFleetIdWings (fleetId: number, datasource?: string, language?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/wings/' - .replace('{' + 'fleet_id' + '}', String(fleetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling getFleetsFleetIdWings.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Create fleet invitation - * Invite a character into the fleet, if a character has a CSPA charge set, it is not possible to invite them to the fleet using ESI --- Alternate route: `/v1/fleets/{fleet_id}/members/` Alternate route: `/legacy/fleets/{fleet_id}/members/` Alternate route: `/dev/fleets/{fleet_id}/members/` - * @param fleetId ID for a fleet - * @param invitation Details of the invitation - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postFleetsFleetIdMembers (fleetId: number, invitation: PostFleetsFleetIdMembersInvitation, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/members/' - .replace('{' + 'fleet_id' + '}', String(fleetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling postFleetsFleetIdMembers.'); - } - - // verify required parameter 'invitation' is not null or undefined - if (invitation === null || invitation === undefined) { - throw new Error('Required parameter invitation was null or undefined when calling postFleetsFleetIdMembers.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: invitation, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Create fleet wing - * Create a new wing in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings/` Alternate route: `/legacy/fleets/{fleet_id}/wings/` Alternate route: `/dev/fleets/{fleet_id}/wings/` - * @param fleetId ID for a fleet - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postFleetsFleetIdWings (fleetId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: PostFleetsFleetIdWingsCreated; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/wings/' - .replace('{' + 'fleet_id' + '}', String(fleetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling postFleetsFleetIdWings.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: PostFleetsFleetIdWingsCreated; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Create fleet squad - * Create a new squad in a fleet --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/squads/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/squads/` Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/squads/` - * @param fleetId ID for a fleet - * @param wingId The wing_id to create squad in - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postFleetsFleetIdWingsWingIdSquads (fleetId: number, wingId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: PostFleetsFleetIdWingsWingIdSquadsCreated; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/wings/{wing_id}/squads/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'wing_id' + '}', String(wingId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling postFleetsFleetIdWingsWingIdSquads.'); - } - - // verify required parameter 'wingId' is not null or undefined - if (wingId === null || wingId === undefined) { - throw new Error('Required parameter wingId was null or undefined when calling postFleetsFleetIdWingsWingIdSquads.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: PostFleetsFleetIdWingsWingIdSquadsCreated; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Update fleet - * Update settings about a fleet --- Alternate route: `/v1/fleets/{fleet_id}/` Alternate route: `/legacy/fleets/{fleet_id}/` Alternate route: `/dev/fleets/{fleet_id}/` - * @param fleetId ID for a fleet - * @param newSettings What to update for this fleet - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putFleetsFleetId (fleetId: number, newSettings: PutFleetsFleetIdNewSettings, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling putFleetsFleetId.'); - } - - // verify required parameter 'newSettings' is not null or undefined - if (newSettings === null || newSettings === undefined) { - throw new Error('Required parameter newSettings was null or undefined when calling putFleetsFleetId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: newSettings, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Move fleet member - * Move a fleet member around --- Alternate route: `/v1/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/legacy/fleets/{fleet_id}/members/{member_id}/` Alternate route: `/dev/fleets/{fleet_id}/members/{member_id}/` - * @param fleetId ID for a fleet - * @param memberId The character ID of a member in this fleet - * @param movement Details of the invitation - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putFleetsFleetIdMembersMemberId (fleetId: number, memberId: number, movement: PutFleetsFleetIdMembersMemberIdMovement, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/members/{member_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'member_id' + '}', String(memberId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling putFleetsFleetIdMembersMemberId.'); - } - - // verify required parameter 'memberId' is not null or undefined - if (memberId === null || memberId === undefined) { - throw new Error('Required parameter memberId was null or undefined when calling putFleetsFleetIdMembersMemberId.'); - } - - // verify required parameter 'movement' is not null or undefined - if (movement === null || movement === undefined) { - throw new Error('Required parameter movement was null or undefined when calling putFleetsFleetIdMembersMemberId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: movement, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Rename fleet squad - * Rename a fleet squad --- Alternate route: `/v1/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/legacy/fleets/{fleet_id}/squads/{squad_id}/` Alternate route: `/dev/fleets/{fleet_id}/squads/{squad_id}/` - * @param fleetId ID for a fleet - * @param naming New name of the squad - * @param squadId The squad to rename - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putFleetsFleetIdSquadsSquadId (fleetId: number, naming: PutFleetsFleetIdSquadsSquadIdNaming, squadId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/squads/{squad_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'squad_id' + '}', String(squadId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling putFleetsFleetIdSquadsSquadId.'); - } - - // verify required parameter 'naming' is not null or undefined - if (naming === null || naming === undefined) { - throw new Error('Required parameter naming was null or undefined when calling putFleetsFleetIdSquadsSquadId.'); - } - - // verify required parameter 'squadId' is not null or undefined - if (squadId === null || squadId === undefined) { - throw new Error('Required parameter squadId was null or undefined when calling putFleetsFleetIdSquadsSquadId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: naming, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Rename fleet wing - * Rename a fleet wing --- Alternate route: `/v1/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/legacy/fleets/{fleet_id}/wings/{wing_id}/` Alternate route: `/dev/fleets/{fleet_id}/wings/{wing_id}/` - * @param fleetId ID for a fleet - * @param naming New name of the wing - * @param wingId The wing to rename - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putFleetsFleetIdWingsWingId (fleetId: number, naming: PutFleetsFleetIdWingsWingIdNaming, wingId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/fleets/{fleet_id}/wings/{wing_id}/' - .replace('{' + 'fleet_id' + '}', String(fleetId)) - .replace('{' + 'wing_id' + '}', String(wingId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'fleetId' is not null or undefined - if (fleetId === null || fleetId === undefined) { - throw new Error('Required parameter fleetId was null or undefined when calling putFleetsFleetIdWingsWingId.'); - } - - // verify required parameter 'naming' is not null or undefined - if (naming === null || naming === undefined) { - throw new Error('Required parameter naming was null or undefined when calling putFleetsFleetIdWingsWingId.'); - } - - // verify required parameter 'wingId' is not null or undefined - if (wingId === null || wingId === undefined) { - throw new Error('Required parameter wingId was null or undefined when calling putFleetsFleetIdWingsWingId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: naming, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum IncursionsApiApiKeys { -} - -export class IncursionsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: IncursionsApiApiKeys, value: string) { - this.authentications[IncursionsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List incursions - * Return a list of current incursions --- Alternate route: `/v1/incursions/` Alternate route: `/legacy/incursions/` Alternate route: `/dev/incursions/` --- This route is cached for up to 300 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getIncursions (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/incursions/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum IndustryApiApiKeys { -} - -export class IndustryApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: IndustryApiApiKeys, value: string) { - this.authentications[IndustryApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List industry facilities - * Return a list of industry facilities --- Alternate route: `/v1/industry/facilities/` Alternate route: `/legacy/industry/facilities/` Alternate route: `/dev/industry/facilities/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getIndustryFacilities (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/industry/facilities/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List solar system cost indices - * Return cost indices for solar systems --- Alternate route: `/v1/industry/systems/` Alternate route: `/legacy/industry/systems/` Alternate route: `/dev/industry/systems/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getIndustrySystems (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/industry/systems/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum InsuranceApiApiKeys { -} - -export class InsuranceApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: InsuranceApiApiKeys, value: string) { - this.authentications[InsuranceApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List insurance levels - * Return available insurance levels for all ship types --- Alternate route: `/v1/insurance/prices/` Alternate route: `/legacy/insurance/prices/` Alternate route: `/dev/insurance/prices/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getInsurancePrices (datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/insurance/prices/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum KillmailsApiApiKeys { -} - -export class KillmailsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: KillmailsApiApiKeys, value: string) { - this.authentications[KillmailsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List kills and losses - * Return a list of character's recent kills and losses --- Alternate route: `/v1/characters/{character_id}/killmails/recent/` Alternate route: `/legacy/characters/{character_id}/killmails/recent/` Alternate route: `/dev/characters/{character_id}/killmails/recent/` --- This route is cached for up to 120 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param maxCount How many killmails to return at maximum - * @param maxKillId Only return killmails with ID smaller than this. - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdKillmailsRecent (characterId: number, datasource?: string, maxCount?: number, maxKillId?: number, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/killmails/recent/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdKillmailsRecent.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (maxCount !== undefined) { - queryParameters['max_count'] = maxCount; - } - - if (maxKillId !== undefined) { - queryParameters['max_kill_id'] = maxKillId; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get a single killmail - * Return a single killmail from its ID and hash --- Alternate route: `/v1/killmails/{killmail_id}/{killmail_hash}/` Alternate route: `/legacy/killmails/{killmail_id}/{killmail_hash}/` Alternate route: `/dev/killmails/{killmail_id}/{killmail_hash}/` --- This route is cached for up to 3600 seconds - * @param killmailHash The killmail hash for verification - * @param killmailId The killmail ID to be queried - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getKillmailsKillmailIdKillmailHash (killmailHash: string, killmailId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetKillmailsKillmailIdKillmailHashOk; }> { - const localVarPath = this.basePath + '/killmails/{killmail_id}/{killmail_hash}/' - .replace('{' + 'killmail_hash' + '}', String(killmailHash)) - .replace('{' + 'killmail_id' + '}', String(killmailId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'killmailHash' is not null or undefined - if (killmailHash === null || killmailHash === undefined) { - throw new Error('Required parameter killmailHash was null or undefined when calling getKillmailsKillmailIdKillmailHash.'); - } - - // verify required parameter 'killmailId' is not null or undefined - if (killmailId === null || killmailId === undefined) { - throw new Error('Required parameter killmailId was null or undefined when calling getKillmailsKillmailIdKillmailHash.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetKillmailsKillmailIdKillmailHashOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum LocationApiApiKeys { -} - -export class LocationApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: LocationApiApiKeys, value: string) { - this.authentications[LocationApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get character location - * Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable. --- Alternate route: `/v1/characters/{character_id}/location/` Alternate route: `/legacy/characters/{character_id}/location/` Alternate route: `/dev/characters/{character_id}/location/` --- This route is cached for up to 5 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdLocation (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdLocationOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/location/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdLocation.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdLocationOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get current ship - * Get the current ship type, name and id --- Alternate route: `/v1/characters/{character_id}/ship/` Alternate route: `/legacy/characters/{character_id}/ship/` Alternate route: `/dev/characters/{character_id}/ship/` --- This route is cached for up to 5 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdShip (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdShipOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/ship/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdShip.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdShipOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum LoyaltyApiApiKeys { -} - -export class LoyaltyApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: LoyaltyApiApiKeys, value: string) { - this.authentications[LoyaltyApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get loyalty points - * Return a list of loyalty points for all corporations the character has worked for --- Alternate route: `/v1/characters/{character_id}/loyalty/points/` Alternate route: `/legacy/characters/{character_id}/loyalty/points/` Alternate route: `/dev/characters/{character_id}/loyalty/points/` - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdLoyaltyPoints (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/loyalty/points/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdLoyaltyPoints.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List loyalty store offers - * Return a list of offers from a specific corporation's loyalty store --- Alternate route: `/v1/loyalty/stores/{corporation_id}/offers/` Alternate route: `/legacy/loyalty/stores/{corporation_id}/offers/` Alternate route: `/dev/loyalty/stores/{corporation_id}/offers/` --- This route is cached for up to 3600 seconds - * @param corporationId ID of a corporation - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getLoyaltyStoresCorporationIdOffers (corporationId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/loyalty/stores/{corporation_id}/offers/' - .replace('{' + 'corporation_id' + '}', String(corporationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'corporationId' is not null or undefined - if (corporationId === null || corporationId === undefined) { - throw new Error('Required parameter corporationId was null or undefined when calling getLoyaltyStoresCorporationIdOffers.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum MailApiApiKeys { -} - -export class MailApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: MailApiApiKeys, value: string) { - this.authentications[MailApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Delete a mail label - * Delete a mail label --- Alternate route: `/v1/characters/{character_id}/mail/labels/{label_id}/` Alternate route: `/legacy/characters/{character_id}/mail/labels/{label_id}/` Alternate route: `/dev/characters/{character_id}/mail/labels/{label_id}/` - * @param characterId An EVE character ID - * @param labelId An EVE label id - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteCharactersCharacterIdMailLabelsLabelId (characterId: number, labelId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/labels/{label_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'label_id' + '}', String(labelId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling deleteCharactersCharacterIdMailLabelsLabelId.'); - } - - // verify required parameter 'labelId' is not null or undefined - if (labelId === null || labelId === undefined) { - throw new Error('Required parameter labelId was null or undefined when calling deleteCharactersCharacterIdMailLabelsLabelId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Delete a mail - * Delete a mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` - * @param characterId An EVE character ID - * @param mailId An EVE mail ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public deleteCharactersCharacterIdMailMailId (characterId: number, mailId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/{mail_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'mail_id' + '}', String(mailId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling deleteCharactersCharacterIdMailMailId.'); - } - - // verify required parameter 'mailId' is not null or undefined - if (mailId === null || mailId === undefined) { - throw new Error('Required parameter mailId was null or undefined when calling deleteCharactersCharacterIdMailMailId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'DELETE', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Return mail headers - * Return the 50 most recent mail headers belonging to the character that match the query criteria. Queries can be filtered by label, and last_mail_id can be used to paginate backwards. --- Alternate route: `/v1/characters/{character_id}/mail/` Alternate route: `/legacy/characters/{character_id}/mail/` Alternate route: `/dev/characters/{character_id}/mail/` --- This route is cached for up to 30 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param labels Fetch only mails that match one or more of the given labels - * @param lastMailId List only mail with an ID lower than the given ID, if present - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdMail (characterId: number, datasource?: string, labels?: Array, lastMailId?: number, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdMail.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (labels !== undefined) { - queryParameters['labels'] = labels; - } - - if (lastMailId !== undefined) { - queryParameters['last_mail_id'] = lastMailId; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get mail labels and unread counts - * Return a list of the users mail labels, unread counts for each label and a total unread count. --- Alternate route: `/v3/characters/{character_id}/mail/labels/` Alternate route: `/dev/characters/{character_id}/mail/labels/` --- This route is cached for up to 30 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdMailLabels (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdMailLabelsOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/labels/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdMailLabels.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdMailLabelsOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Return mailing list subscriptions - * Return all mailing lists that the character is subscribed to --- Alternate route: `/v1/characters/{character_id}/mail/lists/` Alternate route: `/legacy/characters/{character_id}/mail/lists/` Alternate route: `/dev/characters/{character_id}/mail/lists/` --- This route is cached for up to 120 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdMailLists (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/lists/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdMailLists.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Return a mail - * Return the contents of an EVE mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` --- This route is cached for up to 30 seconds - * @param characterId An EVE character ID - * @param mailId An EVE mail ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdMailMailId (characterId: number, mailId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdMailMailIdOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/{mail_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'mail_id' + '}', String(mailId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdMailMailId.'); - } - - // verify required parameter 'mailId' is not null or undefined - if (mailId === null || mailId === undefined) { - throw new Error('Required parameter mailId was null or undefined when calling getCharactersCharacterIdMailMailId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdMailMailIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Send a new mail - * Create and send a new mail --- Alternate route: `/v1/characters/{character_id}/mail/` Alternate route: `/legacy/characters/{character_id}/mail/` Alternate route: `/dev/characters/{character_id}/mail/` - * @param characterId The sender's character ID - * @param mail The mail to send - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postCharactersCharacterIdMail (characterId: number, mail: PostCharactersCharacterIdMailMail, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: number; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling postCharactersCharacterIdMail.'); - } - - // verify required parameter 'mail' is not null or undefined - if (mail === null || mail === undefined) { - throw new Error('Required parameter mail was null or undefined when calling postCharactersCharacterIdMail.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: mail, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: number; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Create a mail label - * Create a mail label --- Alternate route: `/v2/characters/{character_id}/mail/labels/` Alternate route: `/legacy/characters/{character_id}/mail/labels/` Alternate route: `/dev/characters/{character_id}/mail/labels/` - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param label Label to create - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postCharactersCharacterIdMailLabels (characterId: number, datasource?: string, label?: PostCharactersCharacterIdMailLabelsLabel, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: number; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/labels/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling postCharactersCharacterIdMailLabels.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: label, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: number; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Update metadata about a mail - * Update metadata about a mail --- Alternate route: `/v1/characters/{character_id}/mail/{mail_id}/` Alternate route: `/legacy/characters/{character_id}/mail/{mail_id}/` Alternate route: `/dev/characters/{character_id}/mail/{mail_id}/` - * @param characterId An EVE character ID - * @param contents Data used to update the mail - * @param mailId An EVE mail ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public putCharactersCharacterIdMailMailId (characterId: number, contents: PutCharactersCharacterIdMailMailIdContents, mailId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/characters/{character_id}/mail/{mail_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'mail_id' + '}', String(mailId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling putCharactersCharacterIdMailMailId.'); - } - - // verify required parameter 'contents' is not null or undefined - if (contents === null || contents === undefined) { - throw new Error('Required parameter contents was null or undefined when calling putCharactersCharacterIdMailMailId.'); - } - - // verify required parameter 'mailId' is not null or undefined - if (mailId === null || mailId === undefined) { - throw new Error('Required parameter mailId was null or undefined when calling putCharactersCharacterIdMailMailId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'PUT', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: contents, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum MarketApiApiKeys { -} - -export class MarketApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: MarketApiApiKeys, value: string) { - this.authentications[MarketApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get item groups - * Get a list of item groups --- Alternate route: `/v1/markets/groups/` Alternate route: `/legacy/markets/groups/` Alternate route: `/dev/markets/groups/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getMarketsGroups (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/markets/groups/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get item group information - * Get information on an item group --- Alternate route: `/v1/markets/groups/{market_group_id}/` Alternate route: `/legacy/markets/groups/{market_group_id}/` Alternate route: `/dev/markets/groups/{market_group_id}/` --- This route is cached for up to 3600 seconds - * @param marketGroupId An Eve item group ID - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getMarketsGroupsMarketGroupId (marketGroupId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetMarketsGroupsMarketGroupIdOk; }> { - const localVarPath = this.basePath + '/markets/groups/{market_group_id}/' - .replace('{' + 'market_group_id' + '}', String(marketGroupId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'marketGroupId' is not null or undefined - if (marketGroupId === null || marketGroupId === undefined) { - throw new Error('Required parameter marketGroupId was null or undefined when calling getMarketsGroupsMarketGroupId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetMarketsGroupsMarketGroupIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List market prices - * Return a list of prices --- Alternate route: `/v1/markets/prices/` Alternate route: `/legacy/markets/prices/` Alternate route: `/dev/markets/prices/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getMarketsPrices (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/markets/prices/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List historical market statistics in a region - * Return a list of historical market statistics for the specified type in a region --- Alternate route: `/v1/markets/{region_id}/history/` Alternate route: `/legacy/markets/{region_id}/history/` Alternate route: `/dev/markets/{region_id}/history/` --- This route is cached for up to 3600 seconds - * @param regionId Return statistics in this region - * @param typeId Return statistics for this type - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getMarketsRegionIdHistory (regionId: number, typeId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/markets/{region_id}/history/' - .replace('{' + 'region_id' + '}', String(regionId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'regionId' is not null or undefined - if (regionId === null || regionId === undefined) { - throw new Error('Required parameter regionId was null or undefined when calling getMarketsRegionIdHistory.'); - } - - // verify required parameter 'typeId' is not null or undefined - if (typeId === null || typeId === undefined) { - throw new Error('Required parameter typeId was null or undefined when calling getMarketsRegionIdHistory.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (typeId !== undefined) { - queryParameters['type_id'] = typeId; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List orders in a region - * Return a list of orders in a region --- Alternate route: `/v1/markets/{region_id}/orders/` Alternate route: `/legacy/markets/{region_id}/orders/` Alternate route: `/dev/markets/{region_id}/orders/` --- This route is cached for up to 300 seconds - * @param orderType Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. - * @param regionId Return orders in this region - * @param datasource The server name you would like data from - * @param page Which page to query, only used for querying without type_id. Starting at 1 - * @param typeId Return orders only for this type - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getMarketsRegionIdOrders (orderType: string, regionId: number, datasource?: string, page?: number, typeId?: number, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/markets/{region_id}/orders/' - .replace('{' + 'region_id' + '}', String(regionId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'orderType' is not null or undefined - if (orderType === null || orderType === undefined) { - throw new Error('Required parameter orderType was null or undefined when calling getMarketsRegionIdOrders.'); - } - - // verify required parameter 'regionId' is not null or undefined - if (regionId === null || regionId === undefined) { - throw new Error('Required parameter regionId was null or undefined when calling getMarketsRegionIdOrders.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (orderType !== undefined) { - queryParameters['order_type'] = orderType; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (typeId !== undefined) { - queryParameters['type_id'] = typeId; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List orders in a structure - * Return all orders in a structure --- Alternate route: `/v1/markets/structures/{structure_id}/` Alternate route: `/legacy/markets/structures/{structure_id}/` Alternate route: `/dev/markets/structures/{structure_id}/` --- This route is cached for up to 300 seconds - * @param structureId Return orders in this structure - * @param datasource The server name you would like data from - * @param page Which page to query, starting at 1 - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getMarketsStructuresStructureId (structureId: number, datasource?: string, page?: number, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/markets/structures/{structure_id}/' - .replace('{' + 'structure_id' + '}', String(structureId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'structureId' is not null or undefined - if (structureId === null || structureId === undefined) { - throw new Error('Required parameter structureId was null or undefined when calling getMarketsStructuresStructureId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum OpportunitiesApiApiKeys { -} - -export class OpportunitiesApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: OpportunitiesApiApiKeys, value: string) { - this.authentications[OpportunitiesApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get a character's completed tasks - * Return a list of tasks finished by a character --- Alternate route: `/v1/characters/{character_id}/opportunities/` Alternate route: `/legacy/characters/{character_id}/opportunities/` Alternate route: `/dev/characters/{character_id}/opportunities/` --- This route is cached for up to 3600 seconds - * @param characterId ID for a character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdOpportunities (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/opportunities/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdOpportunities.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get opportunities groups - * Return a list of opportunities groups --- Alternate route: `/v1/opportunities/groups/` Alternate route: `/legacy/opportunities/groups/` Alternate route: `/dev/opportunities/groups/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getOpportunitiesGroups (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/opportunities/groups/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get opportunities group - * Return information of an opportunities group --- Alternate route: `/v1/opportunities/groups/{group_id}/` Alternate route: `/legacy/opportunities/groups/{group_id}/` Alternate route: `/dev/opportunities/groups/{group_id}/` --- This route is cached for up to 3600 seconds - * @param groupId ID of an opportunities group - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getOpportunitiesGroupsGroupId (groupId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetOpportunitiesGroupsGroupIdOk; }> { - const localVarPath = this.basePath + '/opportunities/groups/{group_id}/' - .replace('{' + 'group_id' + '}', String(groupId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'groupId' is not null or undefined - if (groupId === null || groupId === undefined) { - throw new Error('Required parameter groupId was null or undefined when calling getOpportunitiesGroupsGroupId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetOpportunitiesGroupsGroupIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get opportunities tasks - * Return a list of opportunities tasks --- Alternate route: `/v1/opportunities/tasks/` Alternate route: `/legacy/opportunities/tasks/` Alternate route: `/dev/opportunities/tasks/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getOpportunitiesTasks (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/opportunities/tasks/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get opportunities task - * Return information of an opportunities task --- Alternate route: `/v1/opportunities/tasks/{task_id}/` Alternate route: `/legacy/opportunities/tasks/{task_id}/` Alternate route: `/dev/opportunities/tasks/{task_id}/` --- This route is cached for up to 3600 seconds - * @param taskId ID of an opportunities task - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getOpportunitiesTasksTaskId (taskId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetOpportunitiesTasksTaskIdOk; }> { - const localVarPath = this.basePath + '/opportunities/tasks/{task_id}/' - .replace('{' + 'task_id' + '}', String(taskId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'taskId' is not null or undefined - if (taskId === null || taskId === undefined) { - throw new Error('Required parameter taskId was null or undefined when calling getOpportunitiesTasksTaskId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetOpportunitiesTasksTaskIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum PlanetaryInteractionApiApiKeys { -} - -export class PlanetaryInteractionApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: PlanetaryInteractionApiApiKeys, value: string) { - this.authentications[PlanetaryInteractionApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get colonies - * Returns a list of all planetary colonies owned by a character. --- Alternate route: `/v1/characters/{character_id}/planets/` Alternate route: `/legacy/characters/{character_id}/planets/` Alternate route: `/dev/characters/{character_id}/planets/` --- This route is cached for up to 600 seconds - * @param characterId Character id of the target character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdPlanets (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/planets/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdPlanets.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get colony layout - * Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information on this endpoint will not update until this criteria is met. --- Alternate route: `/v2/characters/{character_id}/planets/{planet_id}/` Alternate route: `/dev/characters/{character_id}/planets/{planet_id}/` --- This route is cached for up to 600 seconds - * @param characterId Character id of the target character - * @param planetId Planet id of the target planet - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdPlanetsPlanetId (characterId: number, planetId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdPlanetsPlanetIdOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/planets/{planet_id}/' - .replace('{' + 'character_id' + '}', String(characterId)) - .replace('{' + 'planet_id' + '}', String(planetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdPlanetsPlanetId.'); - } - - // verify required parameter 'planetId' is not null or undefined - if (planetId === null || planetId === undefined) { - throw new Error('Required parameter planetId was null or undefined when calling getCharactersCharacterIdPlanetsPlanetId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdPlanetsPlanetIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get schematic information - * Get information on a planetary factory schematic --- Alternate route: `/v1/universe/schematics/{schematic_id}/` Alternate route: `/legacy/universe/schematics/{schematic_id}/` Alternate route: `/dev/universe/schematics/{schematic_id}/` --- This route is cached for up to 3600 seconds - * @param schematicId A PI schematic ID - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseSchematicsSchematicId (schematicId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseSchematicsSchematicIdOk; }> { - const localVarPath = this.basePath + '/universe/schematics/{schematic_id}/' - .replace('{' + 'schematic_id' + '}', String(schematicId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'schematicId' is not null or undefined - if (schematicId === null || schematicId === undefined) { - throw new Error('Required parameter schematicId was null or undefined when calling getUniverseSchematicsSchematicId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseSchematicsSchematicIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum RoutesApiApiKeys { -} - -export class RoutesApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: RoutesApiApiKeys, value: string) { - this.authentications[RoutesApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get route - * Get the systems between origin and destination --- Alternate route: `/legacy/route/{origin}/{destination}/` Alternate route: `/dev/route/{origin}/{destination}/` Alternate route: `/v1/route/{origin}/{destination}/` --- This route is cached for up to 86400 seconds - * @param destination destination solar system ID - * @param origin origin solar system ID - * @param avoid avoid solar system ID(s) - * @param connections connected solar system pairs - * @param datasource The server name you would like data from - * @param flag route security preference - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getRouteOriginDestination (destination: number, origin: number, avoid?: Array, connections?: Array>, datasource?: string, flag?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/route/{origin}/{destination}/' - .replace('{' + 'destination' + '}', String(destination)) - .replace('{' + 'origin' + '}', String(origin)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'destination' is not null or undefined - if (destination === null || destination === undefined) { - throw new Error('Required parameter destination was null or undefined when calling getRouteOriginDestination.'); - } - - // verify required parameter 'origin' is not null or undefined - if (origin === null || origin === undefined) { - throw new Error('Required parameter origin was null or undefined when calling getRouteOriginDestination.'); - } - - if (avoid !== undefined) { - queryParameters['avoid'] = avoid; - } - - if (connections !== undefined) { - queryParameters['connections'] = connections; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (flag !== undefined) { - queryParameters['flag'] = flag; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum SearchApiApiKeys { -} - -export class SearchApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: SearchApiApiKeys, value: string) { - this.authentications[SearchApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Search on a string - * Search for entities that match a given sub-string. --- Alternate route: `/v2/characters/{character_id}/search/` --- This route is cached for up to 3600 seconds - * @param categories Type of entities to search for - * @param characterId An EVE character ID - * @param search The string to search on - * @param datasource The server name you would like data from - * @param language Search locale - * @param strict Whether the search should be a strict match - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdSearch (categories: Array, characterId: number, search: string, datasource?: string, language?: string, strict?: boolean, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdSearchOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/search/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'categories' is not null or undefined - if (categories === null || categories === undefined) { - throw new Error('Required parameter categories was null or undefined when calling getCharactersCharacterIdSearch.'); - } - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdSearch.'); - } - - // verify required parameter 'search' is not null or undefined - if (search === null || search === undefined) { - throw new Error('Required parameter search was null or undefined when calling getCharactersCharacterIdSearch.'); - } - - if (categories !== undefined) { - queryParameters['categories'] = categories; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (search !== undefined) { - queryParameters['search'] = search; - } - - if (strict !== undefined) { - queryParameters['strict'] = strict; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdSearchOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Search on a string - * Search for entities that match a given sub-string. --- Alternate route: `/v1/search/` Alternate route: `/legacy/search/` --- This route is cached for up to 3600 seconds - * @param categories Type of entities to search for - * @param search The string to search on - * @param datasource The server name you would like data from - * @param language Search locale - * @param strict Whether the search should be a strict match - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getSearch (categories: Array, search: string, datasource?: string, language?: string, strict?: boolean, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetSearchOk; }> { - const localVarPath = this.basePath + '/search/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'categories' is not null or undefined - if (categories === null || categories === undefined) { - throw new Error('Required parameter categories was null or undefined when calling getSearch.'); - } - - // verify required parameter 'search' is not null or undefined - if (search === null || search === undefined) { - throw new Error('Required parameter search was null or undefined when calling getSearch.'); - } - - if (categories !== undefined) { - queryParameters['categories'] = categories; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (search !== undefined) { - queryParameters['search'] = search; - } - - if (strict !== undefined) { - queryParameters['strict'] = strict; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetSearchOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum SkillsApiApiKeys { -} - -export class SkillsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: SkillsApiApiKeys, value: string) { - this.authentications[SkillsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get character's skill queue - * List the configured skill queue for the given character --- Alternate route: `/v2/characters/{character_id}/skillqueue/` Alternate route: `/legacy/characters/{character_id}/skillqueue/` Alternate route: `/dev/characters/{character_id}/skillqueue/` --- This route is cached for up to 120 seconds - * @param characterId Character id of the target character - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdSkillqueue (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/skillqueue/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdSkillqueue.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get character skills - * List all trained skills for the given character --- Alternate route: `/v3/characters/{character_id}/skills/` Alternate route: `/dev/characters/{character_id}/skills/` --- This route is cached for up to 120 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdSkills (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdSkillsOk; }> { - const localVarPath = this.basePath + '/characters/{character_id}/skills/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdSkills.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetCharactersCharacterIdSkillsOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum SovereigntyApiApiKeys { -} - -export class SovereigntyApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: SovereigntyApiApiKeys, value: string) { - this.authentications[SovereigntyApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List sovereignty campaigns - * Shows sovereignty data for campaigns. --- Alternate route: `/v1/sovereignty/campaigns/` Alternate route: `/legacy/sovereignty/campaigns/` Alternate route: `/dev/sovereignty/campaigns/` --- This route is cached for up to 5 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getSovereigntyCampaigns (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/sovereignty/campaigns/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List sovereignty of systems - * Shows sovereignty information for solar systems --- Alternate route: `/v1/sovereignty/map/` Alternate route: `/legacy/sovereignty/map/` Alternate route: `/dev/sovereignty/map/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getSovereigntyMap (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/sovereignty/map/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List sovereignty structures - * Shows sovereignty data for structures. --- Alternate route: `/v1/sovereignty/structures/` Alternate route: `/legacy/sovereignty/structures/` Alternate route: `/dev/sovereignty/structures/` --- This route is cached for up to 120 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getSovereigntyStructures (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/sovereignty/structures/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum StatusApiApiKeys { -} - -export class StatusApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: StatusApiApiKeys, value: string) { - this.authentications[StatusApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Retrieve the uptime and player counts - * EVE Server status --- Alternate route: `/v1/status/` Alternate route: `/legacy/status/` Alternate route: `/dev/status/` --- This route is cached for up to 30 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getStatus (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetStatusOk; }> { - const localVarPath = this.basePath + '/status/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetStatusOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum UniverseApiApiKeys { -} - -export class UniverseApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: UniverseApiApiKeys, value: string) { - this.authentications[UniverseApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Get bloodlines - * Get a list of bloodlines --- Alternate route: `/v1/universe/bloodlines/` Alternate route: `/legacy/universe/bloodlines/` Alternate route: `/dev/universe/bloodlines/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseBloodlines (datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/bloodlines/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get item categories - * Get a list of item categories --- Alternate route: `/v1/universe/categories/` Alternate route: `/legacy/universe/categories/` Alternate route: `/dev/universe/categories/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseCategories (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/categories/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get item category information - * Get information of an item category --- Alternate route: `/v1/universe/categories/{category_id}/` Alternate route: `/legacy/universe/categories/{category_id}/` Alternate route: `/dev/universe/categories/{category_id}/` --- This route is cached for up to 3600 seconds - * @param categoryId An Eve item category ID - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseCategoriesCategoryId (categoryId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseCategoriesCategoryIdOk; }> { - const localVarPath = this.basePath + '/universe/categories/{category_id}/' - .replace('{' + 'category_id' + '}', String(categoryId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'categoryId' is not null or undefined - if (categoryId === null || categoryId === undefined) { - throw new Error('Required parameter categoryId was null or undefined when calling getUniverseCategoriesCategoryId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseCategoriesCategoryIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get constellations - * Get a list of constellations --- Alternate route: `/v1/universe/constellations/` Alternate route: `/legacy/universe/constellations/` Alternate route: `/dev/universe/constellations/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseConstellations (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/constellations/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get constellation information - * Get information on a constellation --- Alternate route: `/v1/universe/constellations/{constellation_id}/` Alternate route: `/legacy/universe/constellations/{constellation_id}/` Alternate route: `/dev/universe/constellations/{constellation_id}/` --- This route is cached for up to 3600 seconds - * @param constellationId constellation_id integer - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseConstellationsConstellationId (constellationId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseConstellationsConstellationIdOk; }> { - const localVarPath = this.basePath + '/universe/constellations/{constellation_id}/' - .replace('{' + 'constellation_id' + '}', String(constellationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'constellationId' is not null or undefined - if (constellationId === null || constellationId === undefined) { - throw new Error('Required parameter constellationId was null or undefined when calling getUniverseConstellationsConstellationId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseConstellationsConstellationIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get factions - * Get a list of factions --- Alternate route: `/v1/universe/factions/` Alternate route: `/legacy/universe/factions/` Alternate route: `/dev/universe/factions/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseFactions (datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/factions/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get graphics - * Get a list of graphics --- Alternate route: `/v1/universe/graphics/` Alternate route: `/legacy/universe/graphics/` Alternate route: `/dev/universe/graphics/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseGraphics (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/graphics/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get graphic information - * Get information on a graphic --- Alternate route: `/v1/universe/graphics/{graphic_id}/` Alternate route: `/legacy/universe/graphics/{graphic_id}/` Alternate route: `/dev/universe/graphics/{graphic_id}/` --- This route is cached for up to 3600 seconds - * @param graphicId graphic_id integer - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseGraphicsGraphicId (graphicId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseGraphicsGraphicIdOk; }> { - const localVarPath = this.basePath + '/universe/graphics/{graphic_id}/' - .replace('{' + 'graphic_id' + '}', String(graphicId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'graphicId' is not null or undefined - if (graphicId === null || graphicId === undefined) { - throw new Error('Required parameter graphicId was null or undefined when calling getUniverseGraphicsGraphicId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseGraphicsGraphicIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get item groups - * Get a list of item groups --- Alternate route: `/v1/universe/groups/` Alternate route: `/legacy/universe/groups/` Alternate route: `/dev/universe/groups/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param page Which page to query - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseGroups (datasource?: string, page?: number, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/groups/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get item group information - * Get information on an item group --- Alternate route: `/v1/universe/groups/{group_id}/` Alternate route: `/legacy/universe/groups/{group_id}/` Alternate route: `/dev/universe/groups/{group_id}/` --- This route is cached for up to 3600 seconds - * @param groupId An Eve item group ID - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseGroupsGroupId (groupId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseGroupsGroupIdOk; }> { - const localVarPath = this.basePath + '/universe/groups/{group_id}/' - .replace('{' + 'group_id' + '}', String(groupId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'groupId' is not null or undefined - if (groupId === null || groupId === undefined) { - throw new Error('Required parameter groupId was null or undefined when calling getUniverseGroupsGroupId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseGroupsGroupIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get moon information - * Get information on a moon --- Alternate route: `/v1/universe/moons/{moon_id}/` Alternate route: `/legacy/universe/moons/{moon_id}/` Alternate route: `/dev/universe/moons/{moon_id}/` --- This route is cached for up to 3600 seconds - * @param moonId moon_id integer - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseMoonsMoonId (moonId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseMoonsMoonIdOk; }> { - const localVarPath = this.basePath + '/universe/moons/{moon_id}/' - .replace('{' + 'moon_id' + '}', String(moonId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'moonId' is not null or undefined - if (moonId === null || moonId === undefined) { - throw new Error('Required parameter moonId was null or undefined when calling getUniverseMoonsMoonId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseMoonsMoonIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get planet information - * Get information on a planet --- Alternate route: `/v1/universe/planets/{planet_id}/` Alternate route: `/legacy/universe/planets/{planet_id}/` Alternate route: `/dev/universe/planets/{planet_id}/` --- This route is cached for up to 3600 seconds - * @param planetId planet_id integer - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniversePlanetsPlanetId (planetId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniversePlanetsPlanetIdOk; }> { - const localVarPath = this.basePath + '/universe/planets/{planet_id}/' - .replace('{' + 'planet_id' + '}', String(planetId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'planetId' is not null or undefined - if (planetId === null || planetId === undefined) { - throw new Error('Required parameter planetId was null or undefined when calling getUniversePlanetsPlanetId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniversePlanetsPlanetIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get character races - * Get a list of character races --- Alternate route: `/v1/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/dev/universe/races/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseRaces (datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/races/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get regions - * Get a list of regions --- Alternate route: `/v1/universe/regions/` Alternate route: `/legacy/universe/regions/` Alternate route: `/dev/universe/regions/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseRegions (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/regions/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get region information - * Get information on a region --- Alternate route: `/v1/universe/regions/{region_id}/` Alternate route: `/legacy/universe/regions/{region_id}/` Alternate route: `/dev/universe/regions/{region_id}/` --- This route is cached for up to 3600 seconds - * @param regionId region_id integer - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseRegionsRegionId (regionId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseRegionsRegionIdOk; }> { - const localVarPath = this.basePath + '/universe/regions/{region_id}/' - .replace('{' + 'region_id' + '}', String(regionId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'regionId' is not null or undefined - if (regionId === null || regionId === undefined) { - throw new Error('Required parameter regionId was null or undefined when calling getUniverseRegionsRegionId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseRegionsRegionIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get stargate information - * Get information on a stargate --- Alternate route: `/v1/universe/stargates/{stargate_id}/` Alternate route: `/legacy/universe/stargates/{stargate_id}/` Alternate route: `/dev/universe/stargates/{stargate_id}/` --- This route is cached for up to 3600 seconds - * @param stargateId stargate_id integer - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseStargatesStargateId (stargateId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseStargatesStargateIdOk; }> { - const localVarPath = this.basePath + '/universe/stargates/{stargate_id}/' - .replace('{' + 'stargate_id' + '}', String(stargateId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'stargateId' is not null or undefined - if (stargateId === null || stargateId === undefined) { - throw new Error('Required parameter stargateId was null or undefined when calling getUniverseStargatesStargateId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseStargatesStargateIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get station information - * Get information on a station --- Alternate route: `/v2/universe/stations/{station_id}/` Alternate route: `/dev/universe/stations/{station_id}/` --- This route is cached for up to 300 seconds - * @param stationId station_id integer - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseStationsStationId (stationId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseStationsStationIdOk; }> { - const localVarPath = this.basePath + '/universe/stations/{station_id}/' - .replace('{' + 'station_id' + '}', String(stationId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'stationId' is not null or undefined - if (stationId === null || stationId === undefined) { - throw new Error('Required parameter stationId was null or undefined when calling getUniverseStationsStationId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseStationsStationIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List all public structures - * List all public structures --- Alternate route: `/v1/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/dev/universe/structures/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseStructures (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/structures/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get structure information - * Returns information on requested structure, if you are on the ACL. Otherwise, returns \"Forbidden\" for all inputs. --- Alternate route: `/v1/universe/structures/{structure_id}/` Alternate route: `/legacy/universe/structures/{structure_id}/` Alternate route: `/dev/universe/structures/{structure_id}/` --- This route is cached for up to 3600 seconds - * @param structureId An Eve structure ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseStructuresStructureId (structureId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseStructuresStructureIdOk; }> { - const localVarPath = this.basePath + '/universe/structures/{structure_id}/' - .replace('{' + 'structure_id' + '}', String(structureId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'structureId' is not null or undefined - if (structureId === null || structureId === undefined) { - throw new Error('Required parameter structureId was null or undefined when calling getUniverseStructuresStructureId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseStructuresStructureIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get system jumps - * Get the number of jumps in solar systems within the last hour, excluding wormhole space. Only systems with jumps will be listed --- Alternate route: `/v1/universe/system_jumps/` Alternate route: `/legacy/universe/system_jumps/` Alternate route: `/dev/universe/system_jumps/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseSystemJumps (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/system_jumps/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get system kills - * Get the number of ship, pod and NPC kills per solar system within the last hour, excluding wormhole space. Only systems with kills will be listed --- Alternate route: `/v1/universe/system_kills/` Alternate route: `/legacy/universe/system_kills/` Alternate route: `/dev/universe/system_kills/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseSystemKills (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/system_kills/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get solar systems - * Get a list of solar systems --- Alternate route: `/v1/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/dev/universe/systems/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseSystems (datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/systems/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get solar system information - * Get information on a solar system --- Alternate route: `/v2/universe/systems/{system_id}/` Alternate route: `/dev/universe/systems/{system_id}/` --- This route is cached for up to 3600 seconds - * @param systemId system_id integer - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseSystemsSystemId (systemId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseSystemsSystemIdOk; }> { - const localVarPath = this.basePath + '/universe/systems/{system_id}/' - .replace('{' + 'system_id' + '}', String(systemId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'systemId' is not null or undefined - if (systemId === null || systemId === undefined) { - throw new Error('Required parameter systemId was null or undefined when calling getUniverseSystemsSystemId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseSystemsSystemIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get types - * Get a list of type ids --- Alternate route: `/v1/universe/types/` Alternate route: `/legacy/universe/types/` Alternate route: `/dev/universe/types/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param page Which page to query - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseTypes (datasource?: string, page?: number, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/types/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get type information - * Get information on a type --- Alternate route: `/v2/universe/types/{type_id}/` --- This route is cached for up to 3600 seconds - * @param typeId An Eve item type ID - * @param datasource The server name you would like data from - * @param language Language to use in the response - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getUniverseTypesTypeId (typeId: number, datasource?: string, language?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetUniverseTypesTypeIdOk; }> { - const localVarPath = this.basePath + '/universe/types/{type_id}/' - .replace('{' + 'type_id' + '}', String(typeId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'typeId' is not null or undefined - if (typeId === null || typeId === undefined) { - throw new Error('Required parameter typeId was null or undefined when calling getUniverseTypesTypeId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (language !== undefined) { - queryParameters['language'] = language; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetUniverseTypesTypeIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get names and categories for a set of ID's - * Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types. --- Alternate route: `/v2/universe/names/` Alternate route: `/dev/universe/names/` - * @param ids The ids to resolve - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postUniverseNames (ids: Array, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/universe/names/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'ids' is not null or undefined - if (ids === null || ids === undefined) { - throw new Error('Required parameter ids was null or undefined when calling postUniverseNames.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ids, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum UserInterfaceApiApiKeys { -} - -export class UserInterfaceApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: UserInterfaceApiApiKeys, value: string) { - this.authentications[UserInterfaceApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * Set Autopilot Waypoint - * Set a solar system as autopilot waypoint --- Alternate route: `/v2/ui/autopilot/waypoint/` Alternate route: `/dev/ui/autopilot/waypoint/` - * @param addToBeginning Whether this solar system should be added to the beginning of all waypoints - * @param clearOtherWaypoints Whether clean other waypoints beforing adding this one - * @param destinationId The destination to travel to, can be solar system, station or structure's id - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postUiAutopilotWaypoint (addToBeginning: boolean, clearOtherWaypoints: boolean, destinationId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/ui/autopilot/waypoint/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'addToBeginning' is not null or undefined - if (addToBeginning === null || addToBeginning === undefined) { - throw new Error('Required parameter addToBeginning was null or undefined when calling postUiAutopilotWaypoint.'); - } - - // verify required parameter 'clearOtherWaypoints' is not null or undefined - if (clearOtherWaypoints === null || clearOtherWaypoints === undefined) { - throw new Error('Required parameter clearOtherWaypoints was null or undefined when calling postUiAutopilotWaypoint.'); - } - - // verify required parameter 'destinationId' is not null or undefined - if (destinationId === null || destinationId === undefined) { - throw new Error('Required parameter destinationId was null or undefined when calling postUiAutopilotWaypoint.'); - } - - if (addToBeginning !== undefined) { - queryParameters['add_to_beginning'] = addToBeginning; - } - - if (clearOtherWaypoints !== undefined) { - queryParameters['clear_other_waypoints'] = clearOtherWaypoints; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (destinationId !== undefined) { - queryParameters['destination_id'] = destinationId; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Open Contract Window - * Open the contract window inside the client --- Alternate route: `/v1/ui/openwindow/contract/` Alternate route: `/legacy/ui/openwindow/contract/` Alternate route: `/dev/ui/openwindow/contract/` - * @param contractId The contract to open - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postUiOpenwindowContract (contractId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/ui/openwindow/contract/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'contractId' is not null or undefined - if (contractId === null || contractId === undefined) { - throw new Error('Required parameter contractId was null or undefined when calling postUiOpenwindowContract.'); - } - - if (contractId !== undefined) { - queryParameters['contract_id'] = contractId; - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Open Information Window - * Open the information window for a character, corporation or alliance inside the client --- Alternate route: `/v1/ui/openwindow/information/` Alternate route: `/legacy/ui/openwindow/information/` Alternate route: `/dev/ui/openwindow/information/` - * @param targetId The target to open - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postUiOpenwindowInformation (targetId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/ui/openwindow/information/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'targetId' is not null or undefined - if (targetId === null || targetId === undefined) { - throw new Error('Required parameter targetId was null or undefined when calling postUiOpenwindowInformation.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (targetId !== undefined) { - queryParameters['target_id'] = targetId; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Open Market Details - * Open the market details window for a specific typeID inside the client --- Alternate route: `/v1/ui/openwindow/marketdetails/` Alternate route: `/legacy/ui/openwindow/marketdetails/` Alternate route: `/dev/ui/openwindow/marketdetails/` - * @param typeId The item type to open in market window - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postUiOpenwindowMarketdetails (typeId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/ui/openwindow/marketdetails/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'typeId' is not null or undefined - if (typeId === null || typeId === undefined) { - throw new Error('Required parameter typeId was null or undefined when calling postUiOpenwindowMarketdetails.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (typeId !== undefined) { - queryParameters['type_id'] = typeId; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Open New Mail Window - * Open the New Mail window, according to settings from the request if applicable --- Alternate route: `/v1/ui/openwindow/newmail/` Alternate route: `/legacy/ui/openwindow/newmail/` Alternate route: `/dev/ui/openwindow/newmail/` - * @param newMail The details of mail to create - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public postUiOpenwindowNewmail (newMail: PostUiOpenwindowNewmailNewMail, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body?: any; }> { - const localVarPath = this.basePath + '/ui/openwindow/newmail/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'newMail' is not null or undefined - if (newMail === null || newMail === undefined) { - throw new Error('Required parameter newMail was null or undefined when calling postUiOpenwindowNewmail.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'POST', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: newMail, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum WalletApiApiKeys { -} - -export class WalletApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: WalletApiApiKeys, value: string) { - this.authentications[WalletApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List wallets and balances - * List your wallets and their balances. Characters typically have only one wallet, with wallet_id 1000 being the master wallet. --- Alternate route: `/v1/characters/{character_id}/wallets/` Alternate route: `/legacy/characters/{character_id}/wallets/` Alternate route: `/dev/characters/{character_id}/wallets/` --- This route is cached for up to 120 seconds - * @param characterId An EVE character ID - * @param datasource The server name you would like data from - * @param token Access token to use, if preferred over a header - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getCharactersCharacterIdWallets (characterId: number, datasource?: string, token?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/characters/{character_id}/wallets/' - .replace('{' + 'character_id' + '}', String(characterId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'characterId' is not null or undefined - if (characterId === null || characterId === undefined) { - throw new Error('Required parameter characterId was null or undefined when calling getCharactersCharacterIdWallets.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (token !== undefined) { - queryParameters['token'] = token; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.evesso.applyToRequest(requestOptions); - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} -export enum WarsApiApiKeys { -} - -export class WarsApi { - protected basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - 'evesso': new OAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - public setApiKey(key: WarsApiApiKeys, value: string) { - this.authentications[WarsApiApiKeys[key]].apiKey = value; - } - - set accessToken(token: string) { - this.authentications.evesso.accessToken = token; - } - /** - * List wars - * Return a list of wars --- Alternate route: `/v1/wars/` Alternate route: `/legacy/wars/` Alternate route: `/dev/wars/` --- This route is cached for up to 3600 seconds - * @param datasource The server name you would like data from - * @param maxWarId Only return wars with ID smaller than this. - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getWars (datasource?: string, maxWarId?: number, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/wars/'; - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (maxWarId !== undefined) { - queryParameters['max_war_id'] = maxWarId; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * Get war information - * Return details about a war --- Alternate route: `/v1/wars/{war_id}/` Alternate route: `/legacy/wars/{war_id}/` Alternate route: `/dev/wars/{war_id}/` --- This route is cached for up to 3600 seconds - * @param warId ID for a war - * @param datasource The server name you would like data from - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getWarsWarId (warId: number, datasource?: string, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: GetWarsWarIdOk; }> { - const localVarPath = this.basePath + '/wars/{war_id}/' - .replace('{' + 'war_id' + '}', String(warId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'warId' is not null or undefined - if (warId === null || warId === undefined) { - throw new Error('Required parameter warId was null or undefined when calling getWarsWarId.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: GetWarsWarIdOk; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } - /** - * List kills for a war - * Return a list of kills related to a war --- Alternate route: `/v1/wars/{war_id}/killmails/` Alternate route: `/legacy/wars/{war_id}/killmails/` Alternate route: `/dev/wars/{war_id}/killmails/` --- This route is cached for up to 3600 seconds - * @param warId A valid war ID - * @param datasource The server name you would like data from - * @param page Which page to query, starting at 1, 2000 killmails per page. - * @param userAgent Client identifier, takes precedence over headers - * @param xUserAgent Client identifier, takes precedence over User-Agent - */ - public getWarsWarIdKillmails (warId: number, datasource?: string, page?: number, userAgent?: string, xUserAgent?: string) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/wars/{war_id}/killmails/' - .replace('{' + 'war_id' + '}', String(warId)); - let queryParameters: any = {}; - let headerParams: any = (Object).assign({}, this.defaultHeaders); - let formParams: any = {}; - - - // verify required parameter 'warId' is not null or undefined - if (warId === null || warId === undefined) { - throw new Error('Required parameter warId was null or undefined when calling getWarsWarIdKillmails.'); - } - - if (datasource !== undefined) { - queryParameters['datasource'] = datasource; - } - - if (page !== undefined) { - queryParameters['page'] = page; - } - - if (userAgent !== undefined) { - queryParameters['user_agent'] = userAgent; - } - - headerParams['X-User-Agent'] = xUserAgent; - - let useFormData = false; - - let requestOptions: request.Options = { - method: 'GET', - qs: queryParameters, - headers: headerParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - this.authentications.default.applyToRequest(requestOptions); - - if (Object.keys(formParams).length) { - if (useFormData) { - (requestOptions).formData = formParams; - } else { - requestOptions.form = formParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - request(requestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - if (response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: response, body: body }); - } - } - }); - }); - } -} diff --git a/swagger/git_push.sh b/swagger/git_push.sh deleted file mode 100644 index 6ca091b..0000000 --- a/swagger/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/tsconfig.json b/tsconfig.json index 1264c0a..fba30ed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,17 +2,27 @@ "compilerOptions": { "baseUrl": "", "declaration": false, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, + "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "noImplicitThis": true, + "alwaysStrict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, "lib": ["es6", "dom"], - "mapRoot": "./", + "mapRoot": "./dist", "module": "commonjs", "moduleResolution": "node", - "outDir": "../dist/out-tsc", + "outDir": "./dist", "sourceMap": true, "target": "es6", "typeRoots": [ "./node_modules/@types" ] - } + }, + "exclude": [ + "node_modules" + ] } diff --git a/tslint.json b/tslint.json index cc80da8..d742162 100644 --- a/tslint.json +++ b/tslint.json @@ -1,7 +1,7 @@ { "defaultSeverity": "error", "extends": [ - "tslint:recommended" + "tslint:latest" ], "jsRules": {}, "rules": { @@ -9,6 +9,7 @@ true, 140 ], + "no-null-keyword": true, "no-unused-expression": [ true, "allow-new" diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index ed5740b..0000000 --- a/yarn.lock +++ /dev/null @@ -1,1551 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/bluebird@*": - version "3.5.5" - resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.5.tgz#3c7e8cf660b9d60ea25c787fdd258ddb6abb384d" - -"@types/chai@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.0.3.tgz#6c2264b195cd2bb4c95c108487e13df0c8567c3e" - -"@types/form-data@*": - version "0.0.33" - resolved "https://registry.yarnpkg.com/@types/form-data/-/form-data-0.0.33.tgz#c9ac85b2a5fd18435b8c85d9ecb50e6d6c893ff8" - dependencies: - "@types/node" "*" - -"@types/geojson@^1.0.0": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-1.0.2.tgz#b02d10ab028e2928ac592a051aaa4981a1941d03" - -"@types/js-yaml@^3.9.1": - version "3.9.1" - resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-3.9.1.tgz#2f3c142771bb345829ce690c5838760b6b9ba553" - -"@types/lodash@*": - version "4.14.65" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.65.tgz#a0f78d71ffcd3c02628d5f616410c98c424326d5" - -"@types/mkdirp@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.0.tgz#31fe3dbf963048a53fbc433bab9de376c276182e" - dependencies: - "@types/node" "*" - -"@types/mocha@^2.2.41": - version "2.2.41" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.41.tgz#e27cf0817153eb9f2713b2d3f6c68f1e1c3ca608" - -"@types/node@*": - version "8.0.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.0.tgz#acaa89247afddc7967e9902fd11761dadea1a555" - -"@types/node@^6.0.48": - version "6.0.78" - resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.78.tgz#5d4a3f579c1524e01ee21bf474e6fba09198f470" - -"@types/node@^8.0.23": - version "8.0.23" - resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.23.tgz#c746697004782346594a0d755c34425bbf3014d2" - -"@types/request@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@types/request/-/request-2.0.1.tgz#5fb3b273a19a67a698abfd38ece5cd8ef946bc6d" - dependencies: - "@types/form-data" "*" - "@types/node" "*" - -"@types/sequelize@^4.0.69": - version "4.0.69" - resolved "https://registry.yarnpkg.com/@types/sequelize/-/sequelize-4.0.69.tgz#e8354ed14dcb426dad682a18d2c3d39ff27e6cd9" - dependencies: - "@types/bluebird" "*" - "@types/lodash" "*" - "@types/validator" "*" - -"@types/sinon@^2.3.3": - version "2.3.3" - resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-2.3.3.tgz#1f20b96f954b4997a09c1c0a20264aaba6b00147" - -"@types/sqlite3@^3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@types/sqlite3/-/sqlite3-3.1.0.tgz#4e906a86aac9992899633c83e583a1c054fcca79" - dependencies: - "@types/node" "*" - -"@types/validator@*": - version "6.2.0" - resolved "https://registry.yarnpkg.com/@types/validator/-/validator-6.2.0.tgz#020322fe1929f69889eb675a1bdb5a98394b71f0" - -"@types/winston@^2.3.4": - version "2.3.4" - resolved "https://registry.yarnpkg.com/@types/winston/-/winston-2.3.4.tgz#5bf6a5fb859f9b71b8509ab747f1eadb3a1cb1a2" - dependencies: - "@types/node" "*" - -"@types/xml2js@^0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@types/xml2js/-/xml2js-0.4.0.tgz#e54a89a0055d5ed69305b2610f970909bf363e45" - dependencies: - "@types/node" "*" - -abbrev@1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f" - -ajv@^4.9.1: - version "4.11.8" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" - dependencies: - co "^4.6.0" - json-stable-stringify "^1.0.1" - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - -ansi-styles@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.1.0.tgz#09c202d5c917ec23188caa5c9cb9179cd9547750" - dependencies: - color-convert "^1.0.0" - -aproba@^1.0.3: - version "1.1.2" - resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.2.tgz#45c6629094de4e96f693ef7eab74ae079c240fc1" - -are-we-there-yet@~1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" - dependencies: - delegates "^1.0.0" - readable-stream "^2.0.6" - -argparse@^1.0.7: - version "1.0.9" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" - dependencies: - sprintf-js "~1.0.2" - -arrify@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - -asn1@~0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - -assert-plus@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" - -assertion-error@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.0.2.tgz#13ca515d86206da0bac66e834dd397d87581094c" - -async@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/async/-/async-1.0.0.tgz#f8fc04ca3a13784ade9e1641af98578cfbd647a9" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - -aws-sign2@~0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" - -aws4@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" - -babel-code-frame@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" - dependencies: - chalk "^1.1.0" - esutils "^2.0.2" - js-tokens "^3.0.0" - -balanced-match@^0.4.1: - version "0.4.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" - -bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" - dependencies: - tweetnacl "^0.14.3" - -block-stream@*: - version "0.0.9" - resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" - dependencies: - inherits "~2.0.0" - -bluebird@^3.4.6: - version "3.5.0" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.0.tgz#791420d7f551eea2897453a8a77653f96606d67c" - -boolbase@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" - -boom@2.x.x: - version "2.10.1" - resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" - dependencies: - hoek "2.x.x" - -brace-expansion@^1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" - dependencies: - balanced-match "^0.4.1" - concat-map "0.0.1" - -browser-stdout@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - -chai@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/chai/-/chai-4.1.1.tgz#66e21279e6f3c6415ff8231878227900e2171b39" - dependencies: - assertion-error "^1.0.1" - check-error "^1.0.1" - deep-eql "^2.0.1" - get-func-name "^2.0.0" - pathval "^1.0.0" - type-detect "^4.0.0" - -chalk@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.0.1.tgz#dbec49436d2ae15f536114e76d14656cdbc0f44d" - dependencies: - ansi-styles "^3.1.0" - escape-string-regexp "^1.0.5" - supports-color "^4.0.0" - -check-error@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" - -cls-bluebird@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/cls-bluebird/-/cls-bluebird-2.0.1.tgz#c259a480ae02c0e506134307bb13db30446ee2e7" - dependencies: - is-bluebird "^1.0.2" - shimmer "^1.1.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - -code-point-at@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" - -color-convert@^1.0.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a" - dependencies: - color-name "^1.1.1" - -color-name@^1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - -colors@1.0.x: - version "1.0.3" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" - -colors@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" - -combined-stream@^1.0.5, combined-stream@~1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" - dependencies: - delayed-stream "~1.0.0" - -commander@2.9.0, commander@^2.9.0: - version "2.9.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" - dependencies: - graceful-readlink ">= 1.0.0" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - -console-control-strings@^1.0.0, console-control-strings@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - -countdown@^2.6.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/countdown/-/countdown-2.6.0.tgz#677fb8e3a9d4cc4e76415901ba253b518af34177" - -cross-env@^3.1.2: - version "3.2.4" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-3.2.4.tgz#9e0585f277864ed421ce756f81a980ff0d698aba" - dependencies: - cross-spawn "^5.1.0" - is-windows "^1.0.0" - -cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cryptiles@2.x.x: - version "2.0.5" - resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" - dependencies: - boom "2.x.x" - -css-select@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858" - dependencies: - boolbase "~1.0.0" - css-what "2.1" - domutils "1.5.1" - nth-check "~1.0.1" - -css-what@2.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.0.tgz#9467d032c38cfaefb9f2d79501253062f87fa1bd" - -cycle@1.0.x: - version "1.0.3" - resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - dependencies: - assert-plus "^1.0.0" - -debug@2.6.8: - version "2.6.8" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" - dependencies: - ms "2.0.0" - -debug@^2.2.0, debug@^2.3.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" - dependencies: - ms "0.7.2" - -deep-eql@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-2.0.2.tgz#b1bac06e56f0a76777686d50c9feb75c2ed7679a" - dependencies: - type-detect "^3.0.0" - -deep-extend@~0.4.0: - version "0.4.2" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - -depd@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3" - -diff@3.2.0, diff@^3.1.0, diff@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" - -discord.js@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/discord.js/-/discord.js-11.1.0.tgz#5351d59e3798f536de1975e92cae4d11af3d9266" - dependencies: - long "^3.2.0" - prism-media "^0.0.1" - snekfetch "^3.1.0" - tweetnacl "^0.14.0" - ws "^2.0.0" - -dom-converter@~0.1: - version "0.1.4" - resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.1.4.tgz#a45ef5727b890c9bffe6d7c876e7b19cb0e17f3b" - dependencies: - utila "~0.3" - -dom-serializer@0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82" - dependencies: - domelementtype "~1.1.1" - entities "~1.1.1" - -domelementtype@1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.0.tgz#b17aed82e8ab59e52dd9c19b1756e0fc187204c2" - -domelementtype@~1.1.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b" - -domhandler@2.1: - version "2.1.0" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.1.0.tgz#d2646f5e57f6c3bab11cf6cb05d3c0acf7412594" - dependencies: - domelementtype "1" - -domutils@1.1: - version "1.1.6" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.1.6.tgz#bddc3de099b9a2efacc51c623f28f416ecc57485" - dependencies: - domelementtype "1" - -domutils@1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" - dependencies: - dom-serializer "0" - domelementtype "1" - -dottie@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/dottie/-/dottie-2.0.0.tgz#da191981c8b8d713ca0115d5898cf397c2f0ddd0" - -ecc-jsbn@~0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" - dependencies: - jsbn "~0.1.0" - -encoding@^0.1.11: - version "0.1.12" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" - dependencies: - iconv-lite "~0.4.13" - -entities@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0" - -escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - -esprima@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" - -esutils@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" - -extend@~3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" - -extsprintf@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" - -eyes@0.1.x: - version "0.1.8" - resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - -form-data@~2.1.1: - version "2.1.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.5" - mime-types "^2.1.12" - -formatio@1.2.0, formatio@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/formatio/-/formatio-1.2.0.tgz#f3b2167d9068c4698a8d51f4f760a39a54d818eb" - dependencies: - samsam "1.x" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - -fstream-ignore@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" - dependencies: - fstream "^1.0.0" - inherits "2" - minimatch "^3.0.0" - -fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" - dependencies: - graceful-fs "^4.1.2" - inherits "~2.0.0" - mkdirp ">=0.5 0" - rimraf "2" - -fuse.js@^3.0.5: - version "3.0.5" - resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-3.0.5.tgz#b58d85878802321de94461654947b93af1086727" - -gauge@~2.7.3: - version "2.7.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" - dependencies: - aproba "^1.0.3" - console-control-strings "^1.0.0" - has-unicode "^2.0.0" - object-assign "^4.1.0" - signal-exit "^3.0.0" - string-width "^1.0.1" - strip-ansi "^3.0.1" - wide-align "^1.1.0" - -generic-pool@^3.1.6: - version "3.1.7" - resolved "https://registry.yarnpkg.com/generic-pool/-/generic-pool-3.1.7.tgz#dac22b2c7a7a04e41732f7d8d2d25a303c88f662" - -get-func-name@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - dependencies: - assert-plus "^1.0.0" - -glob@7.1.1, glob@^7.0.5, glob@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.2" - once "^1.3.0" - path-is-absolute "^1.0.0" - -graceful-fs@^4.1.2: - version "4.1.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" - -"graceful-readlink@>= 1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" - -growl@1.9.2: - version "1.9.2" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" - -har-schema@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" - -har-validator@~4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" - dependencies: - ajv "^4.9.1" - har-schema "^1.0.5" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - dependencies: - ansi-regex "^2.0.0" - -has-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" - -has-flag@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" - -has-unicode@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" - -hawk@~3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" - dependencies: - boom "2.x.x" - cryptiles "2.x.x" - hoek "2.x.x" - sntp "1.x.x" - -hoek@2.x.x: - version "2.16.3" - resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" - -htmlparser2@~3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.3.0.tgz#cc70d05a59f6542e43f0e685c982e14c924a9efe" - dependencies: - domelementtype "1" - domhandler "2.1" - domutils "1.1" - readable-stream "1.0" - -http-signature@~1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" - dependencies: - assert-plus "^0.2.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -iconv-lite@~0.4.13: - version "0.4.17" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.17.tgz#4fdaa3b38acbc2c031b045d0edcdfe1ecab18c8d" - -inflection@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/inflection/-/inflection-1.10.0.tgz#5bffcb1197ad3e81050f8e17e21668087ee9eb2f" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@~2.0.0, inherits@~2.0.1: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - -ini@~1.3.0: - version "1.3.4" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" - -is-bluebird@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-bluebird/-/is-bluebird-1.0.2.tgz#096439060f4aa411abee19143a84d6a55346d6e2" - -is-fullwidth-code-point@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" - dependencies: - number-is-nan "^1.0.0" - -is-stream@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - -is-windows@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9" - -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - -isomorphic-fetch@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" - dependencies: - node-fetch "^1.0.1" - whatwg-fetch ">=0.10.0" - -isstream@0.1.x, isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - -jodid25519@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" - dependencies: - jsbn "~0.1.0" - -js-tokens@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" - -js-yaml@^3.9.1: - version "3.9.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0" - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - -json-stable-stringify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" - dependencies: - jsonify "~0.0.0" - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - -json3@3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" - -jsonify@~0.0.0: - version "0.0.0" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" - -jsprim@^1.2.2: - version "1.4.0" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" - dependencies: - assert-plus "1.0.0" - extsprintf "1.0.2" - json-schema "0.2.3" - verror "1.3.6" - -just-extend@^1.1.22: - version "1.1.22" - resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-1.1.22.tgz#3330af756cab6a542700c64b2e4e4aa062d52fff" - -lodash._baseassign@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" - dependencies: - lodash._basecopy "^3.0.0" - lodash.keys "^3.0.0" - -lodash._basecopy@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" - -lodash._basecreate@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" - -lodash._getnative@^3.0.0: - version "3.9.1" - resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" - -lodash._isiterateecall@^3.0.0: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" - -lodash.create@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7" - dependencies: - lodash._baseassign "^3.0.0" - lodash._basecreate "^3.0.0" - lodash._isiterateecall "^3.0.0" - -lodash.isarguments@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" - -lodash.isarray@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" - -lodash.keys@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" - dependencies: - lodash._getnative "^3.0.0" - lodash.isarguments "^3.0.0" - lodash.isarray "^3.0.0" - -lodash@^4.17.1: - version "4.17.4" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" - -lolex@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/lolex/-/lolex-1.6.0.tgz#3a9a0283452a47d7439e72731b9e07d7386e49f6" - -lolex@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/lolex/-/lolex-2.1.2.tgz#2694b953c9ea4d013e5b8bfba891c991025b2629" - -long@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/long/-/long-3.2.0.tgz#d821b7138ca1cb581c172990ef14db200b5c474b" - -lru-cache@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.0.tgz#59be49a683b8d986a939f1ca60fdb6989f4b2046" - dependencies: - pseudomap "^1.0.1" - yallist "^2.0.0" - -make-error@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.0.tgz#52ad3a339ccf10ce62b4040b708fe707244b8b96" - -mime-db@~1.27.0: - version "1.27.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" - -mime-types@^2.1.12, mime-types@~2.1.7: - version "2.1.15" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed" - dependencies: - mime-db "~1.27.0" - -minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" - -minimist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" - -mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" - dependencies: - minimist "0.0.8" - -mocha@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.5.0.tgz#1328567d2717f997030f8006234bce9b8cd72465" - dependencies: - browser-stdout "1.3.0" - commander "2.9.0" - debug "2.6.8" - diff "3.2.0" - escape-string-regexp "1.0.5" - glob "7.1.1" - growl "1.9.2" - json3 "3.3.2" - lodash.create "3.1.1" - mkdirp "0.5.1" - supports-color "3.1.2" - -moment-timezone@^0.5.4: - version "0.5.13" - resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.13.tgz#99ce5c7d827262eb0f1f702044177f60745d7b90" - dependencies: - moment ">= 2.9.0" - -"moment@>= 2.9.0", moment@^2.13.0: - version "2.18.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.18.1.tgz#c36193dd3ce1c2eed2adb7c802dbbc77a81b1c0f" - -ms@0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - -nan@~2.6.2: - version "2.6.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" - -native-promise-only@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/native-promise-only/-/native-promise-only-0.8.1.tgz#20a318c30cb45f71fe7adfbf7b21c99c1472ef11" - -nise@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/nise/-/nise-1.0.1.tgz#0da92b10a854e97c0f496f6c2845a301280b3eef" - dependencies: - formatio "^1.2.0" - just-extend "^1.1.22" - lolex "^1.6.0" - path-to-regexp "^1.7.0" - -node-fetch@^1.0.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.1.tgz#899cb3d0a3c92f952c47f1b876f4c8aeabd400d5" - dependencies: - encoding "^0.1.11" - is-stream "^1.0.1" - -node-pre-gyp@~0.6.36: - version "0.6.36" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.36.tgz#db604112cb74e0d477554e9b505b17abddfab786" - dependencies: - mkdirp "^0.5.1" - nopt "^4.0.1" - npmlog "^4.0.2" - rc "^1.1.7" - request "^2.81.0" - rimraf "^2.6.1" - semver "^5.3.0" - tar "^2.2.1" - tar-pack "^3.4.0" - -nopt@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" - dependencies: - abbrev "1" - osenv "^0.1.4" - -npmlog@^4.0.2: - version "4.1.0" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.0.tgz#dc59bee85f64f00ed424efb2af0783df25d1c0b5" - dependencies: - are-we-there-yet "~1.1.2" - console-control-strings "~1.1.0" - gauge "~2.7.3" - set-blocking "~2.0.0" - -nth-check@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.1.tgz#9929acdf628fc2c41098deab82ac580cf149aae4" - dependencies: - boolbase "~1.0.0" - -number-is-nan@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" - -oauth-sign@~0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - -once@^1.3.0, once@^1.3.3: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - -os-tmpdir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - -osenv@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.0" - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - -path-parse@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" - -path-to-regexp@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.7.0.tgz#59fde0f435badacba103a84e9d3bc64e96b9937d" - dependencies: - isarray "0.0.1" - -pathval@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0" - -performance-now@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" - -pretty-error@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3" - dependencies: - renderkid "^2.0.1" - utila "~0.4" - -prism-media@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/prism-media/-/prism-media-0.0.1.tgz#a3425c9cabd50d1c6c02e543941a11895667bd10" - -process-nextick-args@~1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" - -pseudomap@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" - -punycode@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" - -qs@~6.4.0: - version "6.4.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" - -rc@^1.1.7: - version "1.2.1" - resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.1.tgz#2e03e8e42ee450b8cb3dce65be1bf8974e1dfd95" - dependencies: - deep-extend "~0.4.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -readable-stream@1.0: - version "1.0.34" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.1" - isarray "0.0.1" - string_decoder "~0.10.x" - -readable-stream@^2.0.6, readable-stream@^2.1.4: - version "2.2.11" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.11.tgz#0796b31f8d7688007ff0b93a8088d34aa17c0f72" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.1" - isarray "~1.0.0" - process-nextick-args "~1.0.6" - safe-buffer "~5.0.1" - string_decoder "~1.0.0" - util-deprecate "~1.0.1" - -renderkid@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.1.tgz#898cabfc8bede4b7b91135a3ffd323e58c0db319" - dependencies: - css-select "^1.1.0" - dom-converter "~0.1" - htmlparser2 "~3.3.0" - strip-ansi "^3.0.0" - utila "~0.3" - -request@^2.81.0: - version "2.81.0" - resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" - dependencies: - aws-sign2 "~0.6.0" - aws4 "^1.2.1" - caseless "~0.12.0" - combined-stream "~1.0.5" - extend "~3.0.0" - forever-agent "~0.6.1" - form-data "~2.1.1" - har-validator "~4.2.1" - hawk "~3.1.3" - http-signature "~1.1.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.7" - oauth-sign "~0.8.1" - performance-now "^0.2.0" - qs "~6.4.0" - safe-buffer "^5.0.1" - stringstream "~0.0.4" - tough-cookie "~2.3.0" - tunnel-agent "^0.6.0" - uuid "^3.0.0" - -resolve@^1.3.2: - version "1.3.3" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.3.tgz#655907c3469a8680dc2de3a275a8fdd69691f0e5" - dependencies: - path-parse "^1.0.5" - -retry-as-promised@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/retry-as-promised/-/retry-as-promised-2.2.0.tgz#b0463d7fd3cf5b2fed64500ab6e8b8a49c5b8e6c" - dependencies: - bluebird "^3.4.6" - cross-env "^3.1.2" - debug "^2.2.0" - -rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" - dependencies: - glob "^7.0.5" - -safe-buffer@^5.0.1: - version "5.1.0" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.0.tgz#fe4c8460397f9eaaaa58e73be46273408a45e223" - -safe-buffer@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" - -samsam@1.x, samsam@^1.1.3: - version "1.2.1" - resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.2.1.tgz#edd39093a3184370cb859243b2bdf255e7d8ea67" - -sax@>=0.6.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828" - -semver@^5.0.1, semver@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" - -sequelize@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/sequelize/-/sequelize-4.5.0.tgz#d8a5b1b641728890fa96761b1704203e7ae30ebb" - dependencies: - bluebird "^3.4.6" - cls-bluebird "^2.0.1" - debug "^2.3.0" - depd "^1.1.0" - dottie "^2.0.0" - generic-pool "^3.1.6" - inflection "1.10.0" - lodash "^4.17.1" - moment "^2.13.0" - moment-timezone "^0.5.4" - retry-as-promised "^2.0.0" - semver "^5.0.1" - terraformer-wkt-parser "^1.1.2" - toposort-class "^1.0.1" - uuid "^3.0.0" - validator "^6.3.0" - wkx "^0.4.1" - -set-blocking@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - dependencies: - shebang-regex "^1.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - -shimmer@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/shimmer/-/shimmer-1.1.0.tgz#97d7377137ffbbab425522e429fe0aa89a488b35" - -signal-exit@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" - -sinon@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/sinon/-/sinon-3.2.0.tgz#8848a66ab6e8b80b5532e3824f59f83ea2628c77" - dependencies: - diff "^3.1.0" - formatio "1.2.0" - lolex "^2.1.2" - native-promise-only "^0.8.1" - nise "^1.0.1" - path-to-regexp "^1.7.0" - samsam "^1.1.3" - text-encoding "0.6.4" - type-detect "^4.0.0" - -snekfetch@^3.1.0: - version "3.1.8" - resolved "https://registry.yarnpkg.com/snekfetch/-/snekfetch-3.1.8.tgz#a871a6208f9ec6ec72e2c61416f40880ee1aea92" - -sntp@1.x.x: - version "1.0.9" - resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" - dependencies: - hoek "2.x.x" - -source-map-support@^0.4.0: - version "0.4.15" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.15.tgz#03202df65c06d2bd8c7ec2362a193056fef8d3b1" - dependencies: - source-map "^0.5.6" - -source-map@^0.5.6: - version "0.5.6" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - -sqlite3@^3.1.9: - version "3.1.9" - resolved "https://registry.yarnpkg.com/sqlite3/-/sqlite3-3.1.9.tgz#b2e7fbaa348380318d3834323918c3c351b8bf18" - dependencies: - nan "~2.6.2" - node-pre-gyp "~0.6.36" - -sshpk@^1.7.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.0.tgz#ff2a3e4fd04497555fed97b39a0fd82fafb3a33c" - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - dashdash "^1.12.0" - getpass "^0.1.1" - optionalDependencies: - bcrypt-pbkdf "^1.0.0" - ecc-jsbn "~0.1.1" - jodid25519 "^1.0.0" - jsbn "~0.1.0" - tweetnacl "~0.14.0" - -stack-trace@0.0.x: - version "0.0.10" - resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" - -string-width@^1.0.1, string-width@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" - dependencies: - code-point-at "^1.0.0" - is-fullwidth-code-point "^1.0.0" - strip-ansi "^3.0.0" - -string_decoder@~0.10.x: - version "0.10.31" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" - -string_decoder@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.2.tgz#b29e1f4e1125fa97a10382b8a533737b7491e179" - dependencies: - safe-buffer "~5.0.1" - -stringstream@~0.0.4: - version "0.0.5" - resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" - -strip-ansi@^3.0.0, strip-ansi@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - dependencies: - ansi-regex "^2.0.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - -strip-json-comments@^2.0.0, strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - -supports-color@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" - dependencies: - has-flag "^1.0.0" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - -supports-color@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.2.0.tgz#ad986dc7eb2315d009b4d77c8169c2231a684037" - dependencies: - has-flag "^2.0.0" - -tar-pack@^3.4.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.0.tgz#23be2d7f671a8339376cbdb0b8fe3fdebf317984" - dependencies: - debug "^2.2.0" - fstream "^1.0.10" - fstream-ignore "^1.0.5" - once "^1.3.3" - readable-stream "^2.1.4" - rimraf "^2.5.1" - tar "^2.2.1" - uid-number "^0.0.6" - -tar@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" - dependencies: - block-stream "*" - fstream "^1.0.2" - inherits "2" - -terraformer-wkt-parser@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/terraformer-wkt-parser/-/terraformer-wkt-parser-1.1.2.tgz#336a0c8fc82094a5aff83288f69aedecd369bf0c" - dependencies: - terraformer "~1.0.5" - -terraformer@~1.0.5: - version "1.0.8" - resolved "https://registry.yarnpkg.com/terraformer/-/terraformer-1.0.8.tgz#51e0ad89746fcf2161dc6f65aa70e42377c8b593" - dependencies: - "@types/geojson" "^1.0.0" - -text-encoding@0.6.4: - version "0.6.4" - resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.6.4.tgz#e399a982257a276dae428bb92845cb71bdc26d19" - -toposort-class@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/toposort-class/-/toposort-class-1.0.1.tgz#7ffd1f78c8be28c3ba45cd4e1a3f5ee193bd9988" - -tough-cookie@~2.3.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" - dependencies: - punycode "^1.4.1" - -ts-node@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-3.3.0.tgz#c13c6a3024e30be1180dd53038fc209289d4bf69" - dependencies: - arrify "^1.0.0" - chalk "^2.0.0" - diff "^3.1.0" - make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.4.0" - tsconfig "^6.0.0" - v8flags "^3.0.0" - yn "^2.0.0" - -tsconfig@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-6.0.0.tgz#6b0e8376003d7af1864f8df8f89dd0059ffcd032" - dependencies: - strip-bom "^3.0.0" - strip-json-comments "^2.0.0" - -tslib@^1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.7.1.tgz#bc8004164691923a79fe8378bbeb3da2017538ec" - -tslint@^5.6.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.6.0.tgz#088aa6c6026623338650b2900828ab3edf59f6cf" - dependencies: - babel-code-frame "^6.22.0" - colors "^1.1.2" - commander "^2.9.0" - diff "^3.2.0" - glob "^7.1.1" - minimatch "^3.0.4" - resolve "^1.3.2" - semver "^5.3.0" - tslib "^1.7.1" - tsutils "^2.7.1" - -tsutils@^2.7.1: - version "2.8.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.8.0.tgz#0160173729b3bf138628dd14a1537e00851d814a" - dependencies: - tslib "^1.7.1" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.0, tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - -type-detect@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-3.0.0.tgz#46d0cc8553abb7b13a352b0d6dea2fd58f2d9b55" - -type-detect@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.3.tgz#0e3f2670b44099b0b46c284d136a7ef49c74c2ea" - -typescript@^2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.2.tgz#f8395f85d459276067c988aa41837a8f82870844" - -uid-number@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" - -ultron@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.0.tgz#b07a2e6a541a815fc6a34ccd4533baec307ca864" - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - -utila@~0.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/utila/-/utila-0.3.3.tgz#d7e8e7d7e309107092b05f8d9688824d633a4226" - -utila@~0.4: - version "0.4.0" - resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" - -uuid@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" - -v8flags@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.0.0.tgz#4be9604488e0c4123645def705b1848d16b8e01f" - dependencies: - user-home "^1.1.1" - -validator@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/validator/-/validator-6.3.0.tgz#47ce23ed8d4eaddfa9d4b8ef0071b6cf1078d7c8" - -verror@1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" - dependencies: - extsprintf "1.0.2" - -whatwg-fetch@>=0.10.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84" - -which@^1.2.9: - version "1.2.14" - resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" - dependencies: - isexe "^2.0.0" - -wide-align@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" - dependencies: - string-width "^1.0.2" - -winston-daily-rotate-file@^1.4.6: - version "1.4.6" - resolved "https://registry.yarnpkg.com/winston-daily-rotate-file/-/winston-daily-rotate-file-1.4.6.tgz#f204b6ada19a5386fdf52fe997d8e10e43ff7788" - -winston-pnp-logger@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/winston-pnp-logger/-/winston-pnp-logger-1.0.0.tgz#cf557ede9d35a0f8e2a0cf63b50ac4bda4b5ac19" - dependencies: - mkdirp "^0.5.1" - winston "^2.3.1" - winston-daily-rotate-file "^1.4.6" - -winston@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/winston/-/winston-2.3.1.tgz#0b48420d978c01804cf0230b648861598225a119" - dependencies: - async "~1.0.0" - colors "1.0.x" - cycle "1.0.x" - eyes "0.1.x" - isstream "0.1.x" - stack-trace "0.0.x" - -wkx@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/wkx/-/wkx-0.4.1.tgz#2fc171b5e9cb55c6256fef4bde1f21be413befee" - dependencies: - "@types/node" "^6.0.48" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - -ws@^2.0.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-2.3.1.tgz#6b94b3e447cb6a363f785eaf94af6359e8e81c80" - dependencies: - safe-buffer "~5.0.1" - ultron "~1.1.0" - -xml2js@^0.4.18: - version "0.4.18" - resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.18.tgz#a117ec8153aeeb22f9541bfbe8805e35dae7b969" - dependencies: - sax ">=0.6.0" - xmlbuilder "~9.0.1" - -xmlbuilder@~9.0.1: - version "9.0.4" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.4.tgz#519cb4ca686d005a8420d3496f3f0caeecca580f" - -yallist@^2.0.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" - -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"