From 44beef40986dadad4b4cb908111d162660386ead Mon Sep 17 00:00:00 2001 From: a632079 Date: Thu, 3 Sep 2020 08:57:21 +0800 Subject: [PATCH 01/11] dev: suppoprt typescript --- .eslintrc.js | 76 ++++++++++--------- package.json | 7 +- tsconfig.json | 30 ++++++++ yarn.lock | 199 +++++++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 268 insertions(+), 44 deletions(-) create mode 100644 tsconfig.json diff --git a/.eslintrc.js b/.eslintrc.js index 9ed61ef..ca5381f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,38 +1,48 @@ module.exports = { - root: true, + root: true, + parserOptions: { + parser: 'babel-eslint', + ecmaVersion: 2018, + sourceType: 'module' + }, + plugins: ['html'], + env: { + browser: true, + node: true + }, - parserOptions: { - parser: 'babel-eslint', - ecmaVersion: 2018, - sourceType: 'module' - }, - plugins: ['html'], - env: { - browser: true - }, + rules: { + indent: ['error', 2, { SwitchCase: 1 }], + 'space-infix-ops': ['error', { int32Hint: false }], + 'key-spacing': [ + 2, + { + beforeColon: false, + afterColon: true + } + ], + 'no-octal': 2, + 'no-redeclare': 2, + 'comma-spacing': 2, + 'no-new-object': 2, + 'arrow-spacing': 2, + quotes: [ + 2, + 'single', + { + avoidEscape: true, + allowTemplateLiterals: true + } + ] + }, + overrides: [ + { + files: ['**/*.ts'], + parser: '@typescript-eslint/parser', + extends: [ + 'plugin:@typescript-eslint/recommended' // Uses the recommended rules from the @typescript-eslint/eslint-plugin + ], - rules: { - indent: ['error', 2, { SwitchCase: 1 }], - 'space-infix-ops': ['error', { int32Hint: false }], - 'key-spacing': [ - 2, - { - beforeColon: false, - afterColon: true - } - ], - 'no-octal': 2, - 'no-redeclare': 2, - 'comma-spacing': 2, - 'no-new-object': 2, - 'arrow-spacing': 2, - quotes: [ - 2, - 'single', - { - avoidEscape: true, - allowTemplateLiterals: true - } - ] } + ] } diff --git a/package.json b/package.json index b11232c..03266c6 100644 --- a/package.json +++ b/package.json @@ -43,12 +43,15 @@ "request": "^2.88.0" }, "devDependencies": { - "eslint": "7.8.1", + "@typescript-eslint/eslint-plugin": "^4.0.1", + "@typescript-eslint/parser": "^4.0.1", + "eslint": "^7.8.1", "eslint-plugin-html": "6.0.3", "husky": "4.2.5", "intelli-espower-loader": "1.0.1", "lint-staged": "10.2.11", "mocha": "8.1.3", - "power-assert": "1.6.1" + "power-assert": "1.6.1", + "typescript": "^4.0.2" } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..9656c53 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2015", + "module": "commonjs", + "experimentalDecorators": true, + "moduleResolution": "node", + "lib": [ + "esnext", + "esnext.asynciterable", + "dom" + ], + "esModuleInterop": true, + "allowJs": true, + "sourceMap": true, + "strict": true, + "noEmit": true, + "baseUrl": ".", + "paths": { + "~/*": [ + "./*" + ], + "@/*": [ + "./*" + ] + }, + }, + "exclude": [ + "node_modules" + ] + } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 48a505f..d87f174 100644 --- a/yarn.lock +++ b/yarn.lock @@ -39,6 +39,27 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@nodelib/fs.scandir@2.1.3": + version "2.1.3" + resolved "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b" + integrity sha1-Olgr21OATGum0UZXnEblITDPSjs= + dependencies: + "@nodelib/fs.stat" "2.0.3" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.3", "@nodelib/fs.stat@^2.0.2": + version "2.0.3" + resolved "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3" + integrity sha1-NNxfTKu8cg9OYPdadH5+zWwXW9M= + +"@nodelib/fs.walk@^1.2.3": + version "1.2.4" + resolved "https://registry.npm.taobao.org/@nodelib/fs.walk/download/@nodelib/fs.walk-1.2.4.tgz#011b9202a70a6366e436ca5c065844528ab04976" + integrity sha1-ARuSAqcKY2bkNspcBlhEUoqwSXY= + dependencies: + "@nodelib/fs.scandir" "2.1.3" + fastq "^1.6.0" + "@tootallnate/once@1": version "1.1.2" resolved "https://registry.npm.taobao.org/@tootallnate/once/download/@tootallnate/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" @@ -49,11 +70,86 @@ resolved "https://registry.npm.taobao.org/@types/color-name/download/@types/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" integrity sha1-HBJhu+qhCoBVu8XYq4S3sq/IRqA= +"@types/json-schema@^7.0.3": + version "7.0.6" + resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" + integrity sha1-9MfsQ+gbMZqYFRFQMXCfJph4kfA= + "@types/parse-json@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== +"@typescript-eslint/eslint-plugin@^4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/eslint-plugin/download/@typescript-eslint/eslint-plugin-4.0.1.tgz?cache=0&sync_timestamp=1599068392689&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40typescript-eslint%2Feslint-plugin%2Fdownload%2F%40typescript-eslint%2Feslint-plugin-4.0.1.tgz#88bde9239e29d688315718552cf80a3490491017" + integrity sha1-iL3pI54p1ogxVxhVLPgKNJBJEBc= + dependencies: + "@typescript-eslint/experimental-utils" "4.0.1" + "@typescript-eslint/scope-manager" "4.0.1" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/experimental-utils@4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/experimental-utils/download/@typescript-eslint/experimental-utils-4.0.1.tgz#7d9a3ab6821ad5274dad2186c1aa0d93afd696eb" + integrity sha1-fZo6toIa1SdNrSGGwaoNk6/Wlus= + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/scope-manager" "4.0.1" + "@typescript-eslint/types" "4.0.1" + "@typescript-eslint/typescript-estree" "4.0.1" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + +"@typescript-eslint/parser@^4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/parser/download/@typescript-eslint/parser-4.0.1.tgz?cache=0&sync_timestamp=1599068391663&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40typescript-eslint%2Fparser%2Fdownload%2F%40typescript-eslint%2Fparser-4.0.1.tgz#73772080db7a7a4534a35d719e006f503e664dc3" + integrity sha1-c3cggNt6ekU0o11xngBvUD5mTcM= + dependencies: + "@typescript-eslint/scope-manager" "4.0.1" + "@typescript-eslint/types" "4.0.1" + "@typescript-eslint/typescript-estree" "4.0.1" + debug "^4.1.1" + +"@typescript-eslint/scope-manager@4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/scope-manager/download/@typescript-eslint/scope-manager-4.0.1.tgz#24d93c3000bdfcc5a157dc4d32b742405a8631b5" + integrity sha1-JNk8MAC9/MWhV9xNMrdCQFqGMbU= + dependencies: + "@typescript-eslint/types" "4.0.1" + "@typescript-eslint/visitor-keys" "4.0.1" + +"@typescript-eslint/types@4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/types/download/@typescript-eslint/types-4.0.1.tgz?cache=0&sync_timestamp=1599068710724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40typescript-eslint%2Ftypes%2Fdownload%2F%40typescript-eslint%2Ftypes-4.0.1.tgz#1cf72582f764931f085cb8230ff215980fe467b2" + integrity sha1-HPclgvdkkx8IXLgjD/IVmA/kZ7I= + +"@typescript-eslint/typescript-estree@4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/typescript-estree/download/@typescript-eslint/typescript-estree-4.0.1.tgz#29a43c7060641ec51c902d9f50ac7c5866ec479f" + integrity sha1-KaQ8cGBkHsUckC2fUKx8WGbsR58= + dependencies: + "@typescript-eslint/types" "4.0.1" + "@typescript-eslint/visitor-keys" "4.0.1" + debug "^4.1.1" + globby "^11.0.1" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/visitor-keys@4.0.1": + version "4.0.1" + resolved "https://registry.npm.taobao.org/@typescript-eslint/visitor-keys/download/@typescript-eslint/visitor-keys-4.0.1.tgz?cache=0&sync_timestamp=1599068800479&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40typescript-eslint%2Fvisitor-keys%2Fdownload%2F%40typescript-eslint%2Fvisitor-keys-4.0.1.tgz#d4e8de62775f2a6db71c7e8539633680039fdd6c" + integrity sha1-1OjeYndfKm23HH6FOWM2gAOf3Ww= + dependencies: + "@typescript-eslint/types" "4.0.1" + eslint-visitor-keys "^2.0.0" + accepts@~1.3.7: version "1.3.7" resolved "https://registry.npm.taobao.org/accepts/download/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" @@ -194,6 +290,11 @@ array-flatten@1.1.1: resolved "https://registry.npm.taobao.org/array-flatten/download/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.npm.taobao.org/array-union/download/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha1-t5hCCtvrHego2ErNii4j0+/oXo0= + array.prototype.map@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array.prototype.map/-/array.prototype.map-1.0.2.tgz#9a4159f416458a23e9483078de1106b2ef68f8ec" @@ -628,6 +729,13 @@ diff@4.0.2: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.npm.taobao.org/dir-glob/download/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha1-Vtv3PZkqSpO6FYT0U0Bj/S5BcX8= + dependencies: + path-type "^4.0.0" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.npm.taobao.org/doctrine/download/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -909,7 +1017,7 @@ eslint-plugin-html@6.0.3: dependencies: htmlparser2 "^4.1.0" -eslint-scope@^5.1.0: +eslint-scope@^5.0.0, eslint-scope@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5" integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w== @@ -917,7 +1025,7 @@ eslint-scope@^5.1.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-utils@^2.1.0: +eslint-utils@^2.0.0, eslint-utils@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== @@ -929,10 +1037,15 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: resolved "https://registry.npm.taobao.org/eslint-visitor-keys/download/eslint-visitor-keys-1.3.0.tgz?cache=0&sync_timestamp=1592583313176&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-visitor-keys%2Fdownload%2Feslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha1-MOvR73wv3/AcOk8VEESvJfqwUj4= -eslint@7.8.1: +eslint-visitor-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.npm.taobao.org/eslint-visitor-keys/download/eslint-visitor-keys-2.0.0.tgz?cache=0&sync_timestamp=1597435587476&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-visitor-keys%2Fdownload%2Feslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" + integrity sha1-If3I+82ceVzAMh8FY3AglXUVEag= + +eslint@^7.8.1: version "7.8.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.8.1.tgz#e59de3573fb6a5be8ff526c791571646d124a8fa" - integrity sha512-/2rX2pfhyUG0y+A123d0ccXtMm7DV7sH1m3lk9nk2DZ2LReq39FXHueR9xZwshE5MdfSf0xunSaMWRqyIA6M1w== + resolved "https://registry.npm.taobao.org/eslint/download/eslint-7.8.1.tgz?cache=0&sync_timestamp=1598991497283&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint%2Fdownload%2Feslint-7.8.1.tgz#e59de3573fb6a5be8ff526c791571646d124a8fa" + integrity sha1-5Z3jVz+2pb6P9SbHkVcWRtEkqPo= dependencies: "@babel/code-frame" "^7.0.0" "@eslint/eslintrc" "^0.1.3" @@ -1178,6 +1291,18 @@ fast-deep-equal@^3.1.1: resolved "https://registry.npm.taobao.org/fast-deep-equal/download/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha1-On1WtVnWy8PrUSMlJE5hmmXGxSU= +fast-glob@^3.1.1: + version "3.2.4" + resolved "https://registry.npm.taobao.org/fast-glob/download/fast-glob-3.2.4.tgz?cache=0&sync_timestamp=1592290365180&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-glob%2Fdownload%2Ffast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3" + integrity sha1-0grvv5lXk4Pn88xmUpFYybmFVNM= + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + picomatch "^2.2.1" + fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.npm.taobao.org/fast-json-stable-stringify/download/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -1188,6 +1313,13 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: resolved "https://registry.npm.taobao.org/fast-levenshtein/download/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fastq@^1.6.0: + version "1.8.0" + resolved "https://registry.npm.taobao.org/fastq/download/fastq-1.8.0.tgz?cache=0&sync_timestamp=1589280387748&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffastq%2Fdownload%2Ffastq-1.8.0.tgz#550e1f9f59bbc65fe185cb6a9b4d95357107f481" + integrity sha1-VQ4fn1m7xl/hhctqm02VNXEH9IE= + dependencies: + reusify "^1.0.4" + figures@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" @@ -1380,7 +1512,7 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -glob-parent@^5.0.0, glob-parent@~5.1.0: +glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@~5.1.0: version "5.1.1" resolved "https://registry.npm.taobao.org/glob-parent/download/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" integrity sha1-tsHvQXxOVmPqSY8cRa+saRa7wik= @@ -1406,6 +1538,18 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" +globby@^11.0.1: + version "11.0.1" + resolved "https://registry.npm.taobao.org/globby/download/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357" + integrity sha1-mivxB6Bo8//qvEmtcCx57ejP01c= + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.1.1" + ignore "^5.1.4" + merge2 "^1.3.0" + slash "^3.0.0" + graceful-fs@^4.1.6, graceful-fs@^4.2.0: version "4.2.4" resolved "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.4.tgz?cache=0&sync_timestamp=1589682809142&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fgraceful-fs%2Fdownload%2Fgraceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" @@ -1547,6 +1691,11 @@ ignore@^4.0.6: resolved "https://registry.npm.taobao.org/ignore/download/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" integrity sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw= +ignore@^5.1.4: + version "5.1.8" + resolved "https://registry.npm.taobao.org/ignore/download/ignore-5.1.8.tgz?cache=0&sync_timestamp=1590809289115&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fignore%2Fdownload%2Fignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" + integrity sha1-8VCotQo0KJsz4i9YiavU2AFvDlc= + import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: version "3.2.1" resolved "https://registry.npm.taobao.org/import-fresh/download/import-fresh-3.2.1.tgz?cache=0&sync_timestamp=1589682760620&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimport-fresh%2Fdownload%2Fimport-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" @@ -1899,6 +2048,11 @@ lodash@^4.17.14, lodash@^4.17.19: resolved "https://registry.npm.taobao.org/lodash/download/lodash-4.17.19.tgz?cache=0&sync_timestamp=1594226931791&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" integrity sha1-5I3e2+MLMyF4PFtDAfvTU7weSks= +lodash@^4.17.15: + version "4.17.20" + resolved "https://registry.npm.taobao.org/lodash/download/lodash-4.17.20.tgz?cache=0&sync_timestamp=1597336053864&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" + integrity sha1-tEqbYpe8tpjxxRo1RaKzs2jVnFI= + log-symbols@4.0.0, log-symbols@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.0.0.tgz#69b3cc46d20f448eccdb75ea1fa733d9e821c920" @@ -1938,6 +2092,11 @@ merge-stream@^2.0.0: resolved "https://registry.npm.taobao.org/merge-stream/download/merge-stream-2.0.0.tgz?cache=0&sync_timestamp=1589682763068&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmerge-stream%2Fdownload%2Fmerge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha1-UoI2KaFN0AyXcPtq1H3GMQ8sH2A= +merge2@^1.3.0: + version "1.4.1" + resolved "https://registry.npm.taobao.org/merge2/download/merge2-1.4.1.tgz?cache=0&sync_timestamp=1591169980723&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmerge2%2Fdownload%2Fmerge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha1-Q2iJL4hekHRVpv19xVwMnUBJkK4= + methods@~1.1.2: version "1.1.2" resolved "https://registry.npm.taobao.org/methods/download/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -2525,7 +2684,7 @@ regexp.prototype.flags@^1.2.0: define-properties "^1.1.3" es-abstract "^1.17.0-next.1" -regexpp@^3.1.0: +regexpp@^3.0.0, regexpp@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== @@ -2579,6 +2738,11 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.npm.taobao.org/reusify/download/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha1-kNo4Kx4SbvwCFG6QhFqI2xKSXXY= + rimraf@2.6.3: version "2.6.3" resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-2.6.3.tgz?cache=0&sync_timestamp=1589682814592&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frimraf%2Fdownload%2Frimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" @@ -2586,6 +2750,11 @@ rimraf@2.6.3: dependencies: glob "^7.1.3" +run-parallel@^1.1.9: + version "1.1.9" + resolved "https://registry.npm.taobao.org/run-parallel/download/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679" + integrity sha1-yd06fPn0ssS2JE4XOm7YZuYd1nk= + rxjs@^6.6.0: version "6.6.2" resolved "https://registry.npm.taobao.org/rxjs/download/rxjs-6.6.2.tgz#8096a7ac03f2cc4fe5860ef6e572810d9e01c0d2" @@ -2618,7 +2787,7 @@ semver-regex@^2.0.0: resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338" integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw== -semver@^7.2.1: +semver@^7.2.1, semver@^7.3.2: version "7.3.2" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== @@ -2959,11 +3128,18 @@ traverse@^0.6.6: resolved "https://registry.npm.taobao.org/traverse/download/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137" integrity sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc= -tslib@^1.9.0: +tslib@^1.8.1, tslib@^1.9.0: version "1.13.0" resolved "https://registry.npm.taobao.org/tslib/download/tslib-1.13.0.tgz?cache=0&sync_timestamp=1596753875166&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043" integrity sha1-yIHhPMcBWJTtkUhi0nZDb6mkcEM= +tsutils@^3.17.1: + version "3.17.1" + resolved "https://registry.npm.taobao.org/tsutils/download/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759" + integrity sha1-7XGZF/EcoN7lhicrKsSeAVot11k= + dependencies: + tslib "^1.8.1" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.npm.taobao.org/tunnel-agent/download/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -3023,6 +3199,11 @@ type@^2.0.0: resolved "https://registry.npm.taobao.org/type/download/type-2.0.0.tgz#5f16ff6ef2eb44f260494dae271033b29c09a9c3" integrity sha1-Xxb/bvLrRPJgSU2uJxAzspwJqcM= +typescript@^4.0.2: + version "4.0.2" + resolved "https://registry.npm.taobao.org/typescript/download/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2" + integrity sha1-fqfIh3fHI8aB4zv3mIvl0AjQWsI= + universal-deep-strict-equal@^1.2.1: version "1.2.2" resolved "https://registry.npm.taobao.org/universal-deep-strict-equal/download/universal-deep-strict-equal-1.2.2.tgz#0da4ac2f73cff7924c81fa4de018ca562ca2b0a7" From ca4ed2a98f5f907be34fca47a732b68bc283ad77 Mon Sep 17 00:00:00 2001 From: a632079 Date: Thu, 3 Sep 2020 09:03:20 +0800 Subject: [PATCH 02/11] build: adding Prettier to the mix --- .eslintrc.js | 23 ++++++++++++----------- .prettierrc | 5 +++++ package.json | 3 +++ yarn.lock | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 .prettierrc diff --git a/.eslintrc.js b/.eslintrc.js index ca5381f..06d0c5a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,12 +3,13 @@ module.exports = { parserOptions: { parser: 'babel-eslint', ecmaVersion: 2018, - sourceType: 'module' + sourceType: 'module', }, plugins: ['html'], + extends: ['plugin:prettier/recommended'], env: { browser: true, - node: true + node: true, }, rules: { @@ -18,8 +19,8 @@ module.exports = { 2, { beforeColon: false, - afterColon: true - } + afterColon: true, + }, ], 'no-octal': 2, 'no-redeclare': 2, @@ -31,18 +32,18 @@ module.exports = { 'single', { avoidEscape: true, - allowTemplateLiterals: true - } - ] + allowTemplateLiterals: true, + }, + ], }, overrides: [ { files: ['**/*.ts'], parser: '@typescript-eslint/parser', extends: [ - 'plugin:@typescript-eslint/recommended' // Uses the recommended rules from the @typescript-eslint/eslint-plugin + 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin + 'prettier/@typescript-eslint', ], - - } - ] + }, + ], } diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..05c968c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "semi": false, + "trailingComma": "all", + "singleQuote": true +} diff --git a/package.json b/package.json index 03266c6..3c5c437 100644 --- a/package.json +++ b/package.json @@ -46,12 +46,15 @@ "@typescript-eslint/eslint-plugin": "^4.0.1", "@typescript-eslint/parser": "^4.0.1", "eslint": "^7.8.1", + "eslint-config-prettier": "^6.11.0", "eslint-plugin-html": "6.0.3", + "eslint-plugin-prettier": "^3.1.4", "husky": "4.2.5", "intelli-espower-loader": "1.0.1", "lint-staged": "10.2.11", "mocha": "8.1.3", "power-assert": "1.6.1", + "prettier": "^2.1.1", "typescript": "^4.0.2" } } diff --git a/yarn.lock b/yarn.lock index d87f174..3fa5412 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1010,6 +1010,13 @@ escope@^3.3.0: esrecurse "^4.1.0" estraverse "^4.1.1" +eslint-config-prettier@^6.11.0: + version "6.11.0" + resolved "https://registry.npm.taobao.org/eslint-config-prettier/download/eslint-config-prettier-6.11.0.tgz#f6d2238c1290d01c859a8b5c1f7d352a0b0da8b1" + integrity sha1-9tIjjBKQ0ByFmotcH301KgsNqLE= + dependencies: + get-stdin "^6.0.0" + eslint-plugin-html@6.0.3: version "6.0.3" resolved "https://registry.npm.taobao.org/eslint-plugin-html/download/eslint-plugin-html-6.0.3.tgz?cache=0&sync_timestamp=1596891051341&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-plugin-html%2Fdownload%2Feslint-plugin-html-6.0.3.tgz#8d9d2c187d1a48ed78d84f45e29820f102425e51" @@ -1017,6 +1024,13 @@ eslint-plugin-html@6.0.3: dependencies: htmlparser2 "^4.1.0" +eslint-plugin-prettier@^3.1.4: + version "3.1.4" + resolved "https://registry.npm.taobao.org/eslint-plugin-prettier/download/eslint-plugin-prettier-3.1.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-plugin-prettier%2Fdownload%2Feslint-plugin-prettier-3.1.4.tgz#168ab43154e2ea57db992a2cd097c828171f75c2" + integrity sha1-Foq0MVTi6lfbmSos0JfIKBcfdcI= + dependencies: + prettier-linter-helpers "^1.0.0" + eslint-scope@^5.0.0, eslint-scope@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5" @@ -1291,6 +1305,11 @@ fast-deep-equal@^3.1.1: resolved "https://registry.npm.taobao.org/fast-deep-equal/download/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha1-On1WtVnWy8PrUSMlJE5hmmXGxSU= +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.npm.taobao.org/fast-diff/download/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha1-c+4RmC2Gyq95WYKNUZz+kn+sXwM= + fast-glob@^3.1.1: version "3.2.4" resolved "https://registry.npm.taobao.org/fast-glob/download/fast-glob-3.2.4.tgz?cache=0&sync_timestamp=1592290365180&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-glob%2Fdownload%2Ffast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3" @@ -1486,6 +1505,11 @@ get-own-enumerable-property-symbols@^3.0.0: resolved "https://registry.npm.taobao.org/get-own-enumerable-property-symbols/download/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" integrity sha1-tf3nfyLL4185C04ImSLFC85u9mQ= +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.npm.taobao.org/get-stdin/download/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha1-ngm/cSs2CrkiXoEgSPcf3pyJZXs= + get-stream@^5.0.0: version "5.1.0" resolved "https://registry.npm.taobao.org/get-stream/download/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9" @@ -2575,6 +2599,18 @@ prelude-ls@~1.1.2: resolved "https://registry.npm.taobao.org/prelude-ls/download/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.npm.taobao.org/prettier-linter-helpers/download/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha1-0j1B/hN1ZG3i0BBNNFSjAIgCz3s= + dependencies: + fast-diff "^1.1.2" + +prettier@^2.1.1: + version "2.1.1" + resolved "https://registry.npm.taobao.org/prettier/download/prettier-2.1.1.tgz?cache=0&sync_timestamp=1598414052614&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fprettier%2Fdownload%2Fprettier-2.1.1.tgz#d9485dd5e499daa6cb547023b87a6cf51bee37d6" + integrity sha1-2Uhd1eSZ2qbLVHAjuHps9RvuN9Y= + progress@^2.0.0: version "2.0.3" resolved "https://registry.npm.taobao.org/progress/download/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" From 0dacfa0a50c121d5d1d43a01f76207e4004e5022 Mon Sep 17 00:00:00 2001 From: a632079 Date: Thu, 3 Sep 2020 09:21:35 +0800 Subject: [PATCH 03/11] build: add .editorconfig --- .editorconfig | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6c725ce --- /dev/null +++ b/.editorconfig @@ -0,0 +1,34 @@ + +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Matches multiple files with brace expansion notation +# Set default charset +[*.{js,py}] +charset = utf-8 + +# 4 space indentation +[*.py] +indent_style = space +indent_size = 4 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +# Indentation override for all JS under lib directory +[*.{js,ts}] +indent_style = space +indent_size = 2 + +# Matches the exact files either package.json or .travis.yml +[{package.json,.travis.yml}] +indent_style = space +indent_size = 2 \ No newline at end of file From f89bd19899083a8e5e0b213ce5b1c90f1b9d7f2a Mon Sep 17 00:00:00 2001 From: a632079 Date: Thu, 3 Sep 2020 13:32:52 +0800 Subject: [PATCH 04/11] feat: ts support, album part --- main.d.ts | 5 +++++ module/activate_init_profile.js | 2 +- module_types/activate_init_profile.d.ts | 5 +++++ module_types/album.d.ts | 5 +++++ module_types/album_detail.d.ts | 5 +++++ module_types/album_detail_dynamic.d.ts | 5 +++++ module_types/album_list.d.ts | 8 ++++++++ module_types/album_list_style.d.ts | 7 +++++++ module_types/album_new.d.ts | 7 +++++++ module_types/album_newest.d.ts | 3 +++ module_types/album_songsaleboard.d.ts | 7 +++++++ module_types/album_sub.d.ts | 6 ++++++ module_types/album_sublist.d.ts | 6 ++++++ module_types/artist_album.d.ts | 7 +++++++ module_types/base.d.ts | 10 ++++++++++ 15 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 main.d.ts create mode 100644 module_types/activate_init_profile.d.ts create mode 100644 module_types/album.d.ts create mode 100644 module_types/album_detail.d.ts create mode 100644 module_types/album_detail_dynamic.d.ts create mode 100644 module_types/album_list.d.ts create mode 100644 module_types/album_list_style.d.ts create mode 100644 module_types/album_new.d.ts create mode 100644 module_types/album_newest.d.ts create mode 100644 module_types/album_songsaleboard.d.ts create mode 100644 module_types/album_sub.d.ts create mode 100644 module_types/album_sublist.d.ts create mode 100644 module_types/artist_album.d.ts create mode 100644 module_types/base.d.ts diff --git a/main.d.ts b/main.d.ts new file mode 100644 index 0000000..f3578a9 --- /dev/null +++ b/main.d.ts @@ -0,0 +1,5 @@ +export interface Response { + status: number // The Http Response Code + body: T // API Response body + cookie: string[] +} diff --git a/module/activate_init_profile.js b/module/activate_init_profile.js index a836570..bce6678 100644 --- a/module/activate_init_profile.js +++ b/module/activate_init_profile.js @@ -14,6 +14,6 @@ module.exports = (query, request) => { proxy: query.proxy, realIP: query.realIP, url: '/api/activate/initProfile', - } + }, ) } diff --git a/module_types/activate_init_profile.d.ts b/module_types/activate_init_profile.d.ts new file mode 100644 index 0000000..ef9e7a1 --- /dev/null +++ b/module_types/activate_init_profile.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface ActivateInitProfileRequestConfig extends RequestBaseConfig { + nickname: string +} diff --git a/module_types/album.d.ts b/module_types/album.d.ts new file mode 100644 index 0000000..26e3d4f --- /dev/null +++ b/module_types/album.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/album_detail.d.ts b/module_types/album_detail.d.ts new file mode 100644 index 0000000..9d33d64 --- /dev/null +++ b/module_types/album_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumDetailRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/album_detail_dynamic.d.ts b/module_types/album_detail_dynamic.d.ts new file mode 100644 index 0000000..3432eb0 --- /dev/null +++ b/module_types/album_detail_dynamic.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumDetailDynamicRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/album_list.d.ts b/module_types/album_list.d.ts new file mode 100644 index 0000000..1619c2b --- /dev/null +++ b/module_types/album_list.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumListRequestConfig extends RequestBaseConfig { + limit?: number // 默认 30 + offset?: number // 默认 0 + area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' // 默认 ALL + type: string +} diff --git a/module_types/album_list_style.d.ts b/module_types/album_list_style.d.ts new file mode 100644 index 0000000..c7fcdf7 --- /dev/null +++ b/module_types/album_list_style.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumListStyleRequestConfig extends RequestBaseConfig { + limit?: number // 默认 10 + offset?: number // 默认 0 + area?: 'Z_H' | 'E_A' | 'KR' | 'JP' // 默认 ALL +} diff --git a/module_types/album_new.d.ts b/module_types/album_new.d.ts new file mode 100644 index 0000000..3d12a65 --- /dev/null +++ b/module_types/album_new.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumNewRequestConfig extends RequestBaseConfig { + limit?: number // 默认 30 + offset?: number // 默认 0 + area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' // 默认 ALL +} diff --git a/module_types/album_newest.d.ts b/module_types/album_newest.d.ts new file mode 100644 index 0000000..30b5d49 --- /dev/null +++ b/module_types/album_newest.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type AlbumNewestRequestConfig = RequestBaseConfig diff --git a/module_types/album_songsaleboard.d.ts b/module_types/album_songsaleboard.d.ts new file mode 100644 index 0000000..ef59355 --- /dev/null +++ b/module_types/album_songsaleboard.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumSongSaleBoardRequestConfig extends RequestBaseConfig { + albumType: 0 | 1 // 0 为数字专辑,1 为数字单曲 + type: 'daily' | 'week' | 'year' | 'total' + year?: string // 年份,默认本年。 type 为 year 时有效 +} diff --git a/module_types/album_sub.d.ts b/module_types/album_sub.d.ts new file mode 100644 index 0000000..7946a3c --- /dev/null +++ b/module_types/album_sub.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumSubRequestConfig extends RequestBaseConfig { + id: string + t: 'sub' | 'unsub' +} diff --git a/module_types/album_sublist.d.ts b/module_types/album_sublist.d.ts new file mode 100644 index 0000000..b8514df --- /dev/null +++ b/module_types/album_sublist.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface AlbumSubListRequestConfig extends RequestBaseConfig { + limit: number // 默认: 25 + offset: number // 默认: 0 +} diff --git a/module_types/artist_album.d.ts b/module_types/artist_album.d.ts new file mode 100644 index 0000000..a3e0fdc --- /dev/null +++ b/module_types/artist_album.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistAlbumRequestConfig extends RequestBaseConfig { + id: string + limit?: number // 默认 30 + offset?: number // 默认 0 +} diff --git a/module_types/base.d.ts b/module_types/base.d.ts new file mode 100644 index 0000000..ca33ae2 --- /dev/null +++ b/module_types/base.d.ts @@ -0,0 +1,10 @@ +export interface APIBaseResponse { + code: number + cookie: string +} + +export interface RequestBaseConfig { + cookie?: string + realIP?: string // IPv4/IPv6 filled in X-Real-IP + proxy?: string // HTTP proxy +} From 585592faa9fc9aa29263e3dd3b803dcd7a4e96c9 Mon Sep 17 00:00:00 2001 From: a632079 Date: Sat, 5 Sep 2020 00:10:15 +0800 Subject: [PATCH 05/11] feat: ts support, artist part --- module_types/artisit_list.d.ts | 61 +++++++++++++++++++++++++++++++ module_types/artist_desc.d.ts | 5 +++ module_types/artist_mv.d.ts | 7 ++++ module_types/artist_song.d.ts | 8 ++++ module_types/artist_sub.d.ts | 6 +++ module_types/artist_sublist.d.ts | 6 +++ module_types/artist_top_song.d.ts | 5 +++ module_types/artists.d.ts | 5 +++ 8 files changed, 103 insertions(+) create mode 100644 module_types/artisit_list.d.ts create mode 100644 module_types/artist_desc.d.ts create mode 100644 module_types/artist_mv.d.ts create mode 100644 module_types/artist_song.d.ts create mode 100644 module_types/artist_sub.d.ts create mode 100644 module_types/artist_sublist.d.ts create mode 100644 module_types/artist_top_song.d.ts create mode 100644 module_types/artists.d.ts diff --git a/module_types/artisit_list.d.ts b/module_types/artisit_list.d.ts new file mode 100644 index 0000000..989c661 --- /dev/null +++ b/module_types/artisit_list.d.ts @@ -0,0 +1,61 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistListRequestConfig extends RequestBaseConfig { + area: '-1' | '7' | '96' | '8' | '16' | '0' + initial?: + | 'a' + | 'b' + | 'c' + | 'd' + | 'e' + | 'f' + | 'g' + | 'h' + | 'i' + | 'j' + | 'k' + | 'l' + | 'm' + | 'n' + | 'o' + | 'p' + | 'q' + | 'r' + | 's' + | 't' + | 'u' + | 'v' + | 'w' + | 'x' + | 'y' + | 'z' + | 'A' + | 'B' + | 'C' + | 'D' + | 'E' + | 'F' + | 'G' + | 'H' + | 'I' + | 'J' + | 'K' + | 'L' + | 'M' + | 'N' + | 'O' + | 'P' + | 'Q' + | 'R' + | 'S' + | 'T' + | 'U' + | 'V' + | 'W' + | 'X' + | 'Y' + | 'Z' + offset?: number + limit?: number + type?: '1' | '2' | '3' +} diff --git a/module_types/artist_desc.d.ts b/module_types/artist_desc.d.ts new file mode 100644 index 0000000..2ca3b80 --- /dev/null +++ b/module_types/artist_desc.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistDescRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/artist_mv.d.ts b/module_types/artist_mv.d.ts new file mode 100644 index 0000000..d882276 --- /dev/null +++ b/module_types/artist_mv.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistMVRequestConfig extends RequestBaseConfig { + artistId: string + limit: number + offset: number +} diff --git a/module_types/artist_song.d.ts b/module_types/artist_song.d.ts new file mode 100644 index 0000000..190af88 --- /dev/null +++ b/module_types/artist_song.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistSongRequestConfig extends RequestBaseConfig { + id: string + order?: 'hot' | 'time' + offset?: number + limit?: number +} diff --git a/module_types/artist_sub.d.ts b/module_types/artist_sub.d.ts new file mode 100644 index 0000000..39f6a65 --- /dev/null +++ b/module_types/artist_sub.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistSubRequestConfig extends RequestBaseConfig { + artistId: string + t: 'sub' | 'unsub' +} diff --git a/module_types/artist_sublist.d.ts b/module_types/artist_sublist.d.ts new file mode 100644 index 0000000..f7bd4d2 --- /dev/null +++ b/module_types/artist_sublist.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistSubListRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/artist_top_song.d.ts b/module_types/artist_top_song.d.ts new file mode 100644 index 0000000..b24de68 --- /dev/null +++ b/module_types/artist_top_song.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistTopSongRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/artists.d.ts b/module_types/artists.d.ts new file mode 100644 index 0000000..9f1b38f --- /dev/null +++ b/module_types/artists.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface ArtistsRequestConfig extends RequestBaseConfig { + id: string +} From 2a048539481d85e6150c3ebd7ff7a25a459488f7 Mon Sep 17 00:00:00 2001 From: a632079 Date: Sat, 5 Sep 2020 01:18:30 +0800 Subject: [PATCH 06/11] feat: ts support, full creation --- module_types/{artisit_list.d.ts => artist_list.d.ts} | 0 module_types/{artist_song.d.ts => artist_songs.d.ts} | 2 +- module_types/avatar_upload.d.ts | 4 ++++ module_types/banner.d.ts | 5 +++++ module_types/batch.d.ts | 5 +++++ module_types/captcha_sent.d.ts | 6 ++++++ module_types/captcha_verify.d.ts | 7 +++++++ module_types/cellphone_existence_check.d.ts | 6 ++++++ module_types/check_music.d.ts | 6 ++++++ module_types/cloudsearch.d.ts | 8 ++++++++ module_types/comment.d.ts | 10 ++++++++++ module_types/comment_album.d.ts | 8 ++++++++ module_types/comment_dj.d.ts | 8 ++++++++ module_types/comment_event.d.ts | 8 ++++++++ module_types/comment_floor.d.ts | 9 +++++++++ module_types/comment_hot.d.ts | 9 +++++++++ module_types/comment_hotwall_list.d.ts | 3 +++ module_types/comment_like.d.ts | 9 +++++++++ module_types/comment_music.d.ts | 8 ++++++++ module_types/comment_mv.d.ts | 8 ++++++++ module_types/comment_playlist.d.ts | 8 ++++++++ module_types/comment_video.d.ts | 8 ++++++++ module_types/countries_code_list.d.ts | 3 +++ module_types/daily_signin.d.ts | 5 +++++ module_types/digitalAlbum_ordering.d.ts | 7 +++++++ module_types/digitalAlbum_purchased.d.ts | 6 ++++++ module_types/dj_banner.d.ts | 3 +++ module_types/dj_category_excludehot.d.ts | 3 +++ module_types/dj_category_recommend.d.ts | 3 +++ module_types/dj_catelist.d.ts | 3 +++ module_types/dj_detail.d.ts | 5 +++++ module_types/dj_hot.d.ts | 6 ++++++ module_types/dj_paygift.d.ts | 6 ++++++ module_types/dj_program.d.ts | 5 +++++ module_types/dj_program_detail.d.ts | 5 +++++ module_types/dj_program_toplist.d.ts | 5 +++++ module_types/dj_program_toplist_hours.d.ts | 5 +++++ module_types/dj_radio_hot.d.ts | 5 +++++ module_types/dj_recommend.d.ts | 5 +++++ module_types/dj_recommend_type.d.ts | 5 +++++ module_types/dj_sub.d.ts | 5 +++++ module_types/dj_sublist.d.ts | 5 +++++ module_types/dj_today_perfered.d.ts | 5 +++++ module_types/dj_toplist.d.ts | 5 +++++ module_types/dj_toplist_hours.d.ts | 5 +++++ module_types/dj_toplist_newcomer.d.ts | 5 +++++ module_types/dj_toplist_pay.d.ts | 5 +++++ module_types/dj_toplist_popular.d.ts | 5 +++++ module_types/event.d.ts | 5 +++++ module_types/event_del.d.ts | 5 +++++ module_types/event_forward.d.ts | 5 +++++ module_types/fm_trash.d.ts | 5 +++++ module_types/follow.d.ts | 5 +++++ module_types/history_recommend_songs.d.ts | 5 +++++ module_types/history_recommend_songs_detail.d.ts | 5 +++++ module_types/homepage_block_page.d.ts | 5 +++++ module_types/homepage_dragon_ball.d.ts | 5 +++++ module_types/hot_topic.d.ts | 5 +++++ module_types/like.d.ts | 5 +++++ module_types/likelist.d.ts | 5 +++++ module_types/login.d.ts | 5 +++++ module_types/login_cellphone.d.ts | 5 +++++ module_types/login_refresh.d.ts | 5 +++++ module_types/login_status.d.ts | 5 +++++ module_types/logout.d.ts | 5 +++++ module_types/lyric.d.ts | 5 +++++ module_types/msg_comments.d.ts | 5 +++++ module_types/msg_forwards.d.ts | 5 +++++ module_types/msg_notices.d.ts | 5 +++++ module_types/msg_private.d.ts | 5 +++++ module_types/msg_private_history.d.ts | 5 +++++ module_types/mv_all.d.ts | 5 +++++ module_types/mv_detail.d.ts | 5 +++++ module_types/mv_detail_info.d.ts | 5 +++++ module_types/mv_exclusive_rcmd.d.ts | 5 +++++ module_types/mv_first.d.ts | 5 +++++ module_types/mv_sub.d.ts | 5 +++++ module_types/mv_sublist.d.ts | 5 +++++ module_types/mv_url.d.ts | 5 +++++ module_types/personal_fm.d.ts | 5 +++++ module_types/personalized.d.ts | 5 +++++ module_types/personalized_djprogram.d.ts | 5 +++++ module_types/personalized_mv.d.ts | 5 +++++ module_types/personalized_newsong.d.ts | 5 +++++ module_types/personalized_privatecontent.d.ts | 5 +++++ module_types/personalized_privatecontent_list.d.ts | 5 +++++ module_types/playlist_catlist.d.ts | 5 +++++ module_types/playlist_cover_update.d.ts | 5 +++++ module_types/playlist_create.d.ts | 5 +++++ module_types/playlist_delete.d.ts | 5 +++++ module_types/playlist_desc_update.d.ts | 5 +++++ module_types/playlist_detail.d.ts | 5 +++++ module_types/playlist_hot.d.ts | 5 +++++ module_types/playlist_name_update.d.ts | 5 +++++ module_types/playlist_order_update.d.ts | 5 +++++ module_types/playlist_subscribe.d.ts | 5 +++++ module_types/playlist_subscribers.d.ts | 5 +++++ module_types/playlist_tags_update.d.ts | 5 +++++ module_types/playlist_tracks.d.ts | 5 +++++ module_types/playlist_update.d.ts | 5 +++++ module_types/playmode_intelligence_list.d.ts | 5 +++++ module_types/program_recommend.d.ts | 5 +++++ module_types/rebind.d.ts | 5 +++++ module_types/recommend_resource.d.ts | 5 +++++ module_types/recommend_songs.d.ts | 5 +++++ module_types/register_cellphone.d.ts | 5 +++++ module_types/related_allvideo.d.ts | 5 +++++ module_types/related_playlist.d.ts | 5 +++++ module_types/resource_like.d.ts | 5 +++++ module_types/scrobble.d.ts | 5 +++++ module_types/search.d.ts | 5 +++++ module_types/search_default.d.ts | 5 +++++ module_types/search_hot.d.ts | 5 +++++ module_types/search_hot_detail.d.ts | 5 +++++ module_types/search_multimatch.d.ts | 5 +++++ module_types/search_suggest.d.ts | 5 +++++ module_types/send_playlist.d.ts | 5 +++++ module_types/send_text.d.ts | 5 +++++ module_types/setting.d.ts | 5 +++++ module_types/share_resource.d.ts | 5 +++++ module_types/simi_artist.d.ts | 5 +++++ module_types/simi_mv.d.ts | 5 +++++ module_types/simi_playlist.d.ts | 5 +++++ module_types/simi_song.d.ts | 5 +++++ module_types/simi_user.d.ts | 5 +++++ module_types/song_detail.d.ts | 5 +++++ module_types/song_order_update.d.ts | 5 +++++ module_types/song_url.d.ts | 5 +++++ module_types/top_album.d.ts | 5 +++++ module_types/top_artists.d.ts | 5 +++++ module_types/top_list.d.ts | 5 +++++ module_types/top_mv.d.ts | 5 +++++ module_types/top_playlist.d.ts | 5 +++++ module_types/top_playlist_highquality.d.ts | 5 +++++ module_types/top_song.d.ts | 5 +++++ module_types/toplist.d.ts | 5 +++++ module_types/toplist_artist.d.ts | 5 +++++ module_types/toplist_detail.d.ts | 5 +++++ module_types/user_audio.d.ts | 5 +++++ module_types/user_cloud.d.ts | 5 +++++ module_types/user_cloud_del.d.ts | 5 +++++ module_types/user_cloud_detail.d.ts | 5 +++++ module_types/user_detail.d.ts | 5 +++++ module_types/user_dj.d.ts | 5 +++++ module_types/user_event.d.ts | 5 +++++ module_types/user_followeds.d.ts | 5 +++++ module_types/user_follows.d.ts | 5 +++++ module_types/user_playlist.d.ts | 5 +++++ module_types/user_record.d.ts | 5 +++++ module_types/user_subcount.d.ts | 5 +++++ module_types/user_update.d.ts | 5 +++++ module_types/video_category_list.d.ts | 5 +++++ module_types/video_detail.d.ts | 5 +++++ module_types/video_detail_info.d.ts | 5 +++++ module_types/video_group.d.ts | 5 +++++ module_types/video_group_list.d.ts | 5 +++++ module_types/video_sub.d.ts | 5 +++++ module_types/video_timeline_all.d.ts | 5 +++++ module_types/video_timeline_recommend.d.ts | 5 +++++ module_types/video_url.d.ts | 5 +++++ module_types/weblog.d.ts | 5 +++++ 161 files changed, 834 insertions(+), 1 deletion(-) rename module_types/{artisit_list.d.ts => artist_list.d.ts} (100%) rename module_types/{artist_song.d.ts => artist_songs.d.ts} (62%) create mode 100644 module_types/avatar_upload.d.ts create mode 100644 module_types/banner.d.ts create mode 100644 module_types/batch.d.ts create mode 100644 module_types/captcha_sent.d.ts create mode 100644 module_types/captcha_verify.d.ts create mode 100644 module_types/cellphone_existence_check.d.ts create mode 100644 module_types/check_music.d.ts create mode 100644 module_types/cloudsearch.d.ts create mode 100644 module_types/comment.d.ts create mode 100644 module_types/comment_album.d.ts create mode 100644 module_types/comment_dj.d.ts create mode 100644 module_types/comment_event.d.ts create mode 100644 module_types/comment_floor.d.ts create mode 100644 module_types/comment_hot.d.ts create mode 100644 module_types/comment_hotwall_list.d.ts create mode 100644 module_types/comment_like.d.ts create mode 100644 module_types/comment_music.d.ts create mode 100644 module_types/comment_mv.d.ts create mode 100644 module_types/comment_playlist.d.ts create mode 100644 module_types/comment_video.d.ts create mode 100644 module_types/countries_code_list.d.ts create mode 100644 module_types/daily_signin.d.ts create mode 100644 module_types/digitalAlbum_ordering.d.ts create mode 100644 module_types/digitalAlbum_purchased.d.ts create mode 100644 module_types/dj_banner.d.ts create mode 100644 module_types/dj_category_excludehot.d.ts create mode 100644 module_types/dj_category_recommend.d.ts create mode 100644 module_types/dj_catelist.d.ts create mode 100644 module_types/dj_detail.d.ts create mode 100644 module_types/dj_hot.d.ts create mode 100644 module_types/dj_paygift.d.ts create mode 100644 module_types/dj_program.d.ts create mode 100644 module_types/dj_program_detail.d.ts create mode 100644 module_types/dj_program_toplist.d.ts create mode 100644 module_types/dj_program_toplist_hours.d.ts create mode 100644 module_types/dj_radio_hot.d.ts create mode 100644 module_types/dj_recommend.d.ts create mode 100644 module_types/dj_recommend_type.d.ts create mode 100644 module_types/dj_sub.d.ts create mode 100644 module_types/dj_sublist.d.ts create mode 100644 module_types/dj_today_perfered.d.ts create mode 100644 module_types/dj_toplist.d.ts create mode 100644 module_types/dj_toplist_hours.d.ts create mode 100644 module_types/dj_toplist_newcomer.d.ts create mode 100644 module_types/dj_toplist_pay.d.ts create mode 100644 module_types/dj_toplist_popular.d.ts create mode 100644 module_types/event.d.ts create mode 100644 module_types/event_del.d.ts create mode 100644 module_types/event_forward.d.ts create mode 100644 module_types/fm_trash.d.ts create mode 100644 module_types/follow.d.ts create mode 100644 module_types/history_recommend_songs.d.ts create mode 100644 module_types/history_recommend_songs_detail.d.ts create mode 100644 module_types/homepage_block_page.d.ts create mode 100644 module_types/homepage_dragon_ball.d.ts create mode 100644 module_types/hot_topic.d.ts create mode 100644 module_types/like.d.ts create mode 100644 module_types/likelist.d.ts create mode 100644 module_types/login.d.ts create mode 100644 module_types/login_cellphone.d.ts create mode 100644 module_types/login_refresh.d.ts create mode 100644 module_types/login_status.d.ts create mode 100644 module_types/logout.d.ts create mode 100644 module_types/lyric.d.ts create mode 100644 module_types/msg_comments.d.ts create mode 100644 module_types/msg_forwards.d.ts create mode 100644 module_types/msg_notices.d.ts create mode 100644 module_types/msg_private.d.ts create mode 100644 module_types/msg_private_history.d.ts create mode 100644 module_types/mv_all.d.ts create mode 100644 module_types/mv_detail.d.ts create mode 100644 module_types/mv_detail_info.d.ts create mode 100644 module_types/mv_exclusive_rcmd.d.ts create mode 100644 module_types/mv_first.d.ts create mode 100644 module_types/mv_sub.d.ts create mode 100644 module_types/mv_sublist.d.ts create mode 100644 module_types/mv_url.d.ts create mode 100644 module_types/personal_fm.d.ts create mode 100644 module_types/personalized.d.ts create mode 100644 module_types/personalized_djprogram.d.ts create mode 100644 module_types/personalized_mv.d.ts create mode 100644 module_types/personalized_newsong.d.ts create mode 100644 module_types/personalized_privatecontent.d.ts create mode 100644 module_types/personalized_privatecontent_list.d.ts create mode 100644 module_types/playlist_catlist.d.ts create mode 100644 module_types/playlist_cover_update.d.ts create mode 100644 module_types/playlist_create.d.ts create mode 100644 module_types/playlist_delete.d.ts create mode 100644 module_types/playlist_desc_update.d.ts create mode 100644 module_types/playlist_detail.d.ts create mode 100644 module_types/playlist_hot.d.ts create mode 100644 module_types/playlist_name_update.d.ts create mode 100644 module_types/playlist_order_update.d.ts create mode 100644 module_types/playlist_subscribe.d.ts create mode 100644 module_types/playlist_subscribers.d.ts create mode 100644 module_types/playlist_tags_update.d.ts create mode 100644 module_types/playlist_tracks.d.ts create mode 100644 module_types/playlist_update.d.ts create mode 100644 module_types/playmode_intelligence_list.d.ts create mode 100644 module_types/program_recommend.d.ts create mode 100644 module_types/rebind.d.ts create mode 100644 module_types/recommend_resource.d.ts create mode 100644 module_types/recommend_songs.d.ts create mode 100644 module_types/register_cellphone.d.ts create mode 100644 module_types/related_allvideo.d.ts create mode 100644 module_types/related_playlist.d.ts create mode 100644 module_types/resource_like.d.ts create mode 100644 module_types/scrobble.d.ts create mode 100644 module_types/search.d.ts create mode 100644 module_types/search_default.d.ts create mode 100644 module_types/search_hot.d.ts create mode 100644 module_types/search_hot_detail.d.ts create mode 100644 module_types/search_multimatch.d.ts create mode 100644 module_types/search_suggest.d.ts create mode 100644 module_types/send_playlist.d.ts create mode 100644 module_types/send_text.d.ts create mode 100644 module_types/setting.d.ts create mode 100644 module_types/share_resource.d.ts create mode 100644 module_types/simi_artist.d.ts create mode 100644 module_types/simi_mv.d.ts create mode 100644 module_types/simi_playlist.d.ts create mode 100644 module_types/simi_song.d.ts create mode 100644 module_types/simi_user.d.ts create mode 100644 module_types/song_detail.d.ts create mode 100644 module_types/song_order_update.d.ts create mode 100644 module_types/song_url.d.ts create mode 100644 module_types/top_album.d.ts create mode 100644 module_types/top_artists.d.ts create mode 100644 module_types/top_list.d.ts create mode 100644 module_types/top_mv.d.ts create mode 100644 module_types/top_playlist.d.ts create mode 100644 module_types/top_playlist_highquality.d.ts create mode 100644 module_types/top_song.d.ts create mode 100644 module_types/toplist.d.ts create mode 100644 module_types/toplist_artist.d.ts create mode 100644 module_types/toplist_detail.d.ts create mode 100644 module_types/user_audio.d.ts create mode 100644 module_types/user_cloud.d.ts create mode 100644 module_types/user_cloud_del.d.ts create mode 100644 module_types/user_cloud_detail.d.ts create mode 100644 module_types/user_detail.d.ts create mode 100644 module_types/user_dj.d.ts create mode 100644 module_types/user_event.d.ts create mode 100644 module_types/user_followeds.d.ts create mode 100644 module_types/user_follows.d.ts create mode 100644 module_types/user_playlist.d.ts create mode 100644 module_types/user_record.d.ts create mode 100644 module_types/user_subcount.d.ts create mode 100644 module_types/user_update.d.ts create mode 100644 module_types/video_category_list.d.ts create mode 100644 module_types/video_detail.d.ts create mode 100644 module_types/video_detail_info.d.ts create mode 100644 module_types/video_group.d.ts create mode 100644 module_types/video_group_list.d.ts create mode 100644 module_types/video_sub.d.ts create mode 100644 module_types/video_timeline_all.d.ts create mode 100644 module_types/video_timeline_recommend.d.ts create mode 100644 module_types/video_url.d.ts create mode 100644 module_types/weblog.d.ts diff --git a/module_types/artisit_list.d.ts b/module_types/artist_list.d.ts similarity index 100% rename from module_types/artisit_list.d.ts rename to module_types/artist_list.d.ts diff --git a/module_types/artist_song.d.ts b/module_types/artist_songs.d.ts similarity index 62% rename from module_types/artist_song.d.ts rename to module_types/artist_songs.d.ts index 190af88..802dd46 100644 --- a/module_types/artist_song.d.ts +++ b/module_types/artist_songs.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' -export interface ArtistSongRequestConfig extends RequestBaseConfig { +export interface ArtistSongsRequestConfig extends RequestBaseConfig { id: string order?: 'hot' | 'time' offset?: number diff --git a/module_types/avatar_upload.d.ts b/module_types/avatar_upload.d.ts new file mode 100644 index 0000000..4e0a8db --- /dev/null +++ b/module_types/avatar_upload.d.ts @@ -0,0 +1,4 @@ +import { RequestBaseConfig } from './base' + +// export interface AvatarUploadRequestConfig extends RequestBaseConfig { +// } diff --git a/module_types/banner.d.ts b/module_types/banner.d.ts new file mode 100644 index 0000000..f5f719e --- /dev/null +++ b/module_types/banner.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface BannerRequestConfig extends RequestBaseConfig { + type: 0 | 1 | 2 | 3 +} diff --git a/module_types/batch.d.ts b/module_types/batch.d.ts new file mode 100644 index 0000000..c48eac5 --- /dev/null +++ b/module_types/batch.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface BatchRequestConfig extends RequestBaseConfig { + [index: string]: unknown +} diff --git a/module_types/captcha_sent.d.ts b/module_types/captcha_sent.d.ts new file mode 100644 index 0000000..ea3cbaa --- /dev/null +++ b/module_types/captcha_sent.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface CaptchaSentRequestConfig extends RequestBaseConfig { + cellphone: string + ctcode?: string +} diff --git a/module_types/captcha_verify.d.ts b/module_types/captcha_verify.d.ts new file mode 100644 index 0000000..ce5d090 --- /dev/null +++ b/module_types/captcha_verify.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface CaptchaVerifyRequestConfig extends RequestBaseConfig { + ctcode?: string + cellphone: string + captcha: string +} diff --git a/module_types/cellphone_existence_check.d.ts b/module_types/cellphone_existence_check.d.ts new file mode 100644 index 0000000..2f85864 --- /dev/null +++ b/module_types/cellphone_existence_check.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface CaptchaExistenceCheckRequestConfig extends RequestBaseConfig { + cellphone: string + countrycode: string +} diff --git a/module_types/check_music.d.ts b/module_types/check_music.d.ts new file mode 100644 index 0000000..17b8fa6 --- /dev/null +++ b/module_types/check_music.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface CheckMusicRequestConfig extends RequestBaseConfig { + id: string | number + br: string | number +} diff --git a/module_types/cloudsearch.d.ts b/module_types/cloudsearch.d.ts new file mode 100644 index 0000000..ce9c5d7 --- /dev/null +++ b/module_types/cloudsearch.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CloudSearchRequestConfig extends RequestBaseConfig { + keywords: string + type: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014 + limit?: number + offset?: number +} diff --git a/module_types/comment.d.ts b/module_types/comment.d.ts new file mode 100644 index 0000000..0467717 --- /dev/null +++ b/module_types/comment.d.ts @@ -0,0 +1,10 @@ +import { RequestBaseConfig } from './base' + +export interface CommentRequestConfig extends RequestBaseConfig { + id: string + type: 0 | 1 | 2 | 3 | 4 | 5 | 6 + t: 1 | 2 | 0 + threadId?: string + content?: string + commentId?: string +} diff --git a/module_types/comment_album.d.ts b/module_types/comment_album.d.ts new file mode 100644 index 0000000..5eb2763 --- /dev/null +++ b/module_types/comment_album.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentAlbumRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/comment_dj.d.ts b/module_types/comment_dj.d.ts new file mode 100644 index 0000000..1dd12f7 --- /dev/null +++ b/module_types/comment_dj.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentDjRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/comment_event.d.ts b/module_types/comment_event.d.ts new file mode 100644 index 0000000..a74e686 --- /dev/null +++ b/module_types/comment_event.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentEventRequestConfig extends RequestBaseConfig { + threadId: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/comment_floor.d.ts b/module_types/comment_floor.d.ts new file mode 100644 index 0000000..5851cd7 --- /dev/null +++ b/module_types/comment_floor.d.ts @@ -0,0 +1,9 @@ +import { RequestBaseConfig } from './base' + +export interface CommentFloorRequestConfig extends RequestBaseConfig { + id: string + parentCommentId: string + type: 0 | 1 | 2 | 3 | 4 | 5 + limit?: number + time?: number +} diff --git a/module_types/comment_hot.d.ts b/module_types/comment_hot.d.ts new file mode 100644 index 0000000..69599e2 --- /dev/null +++ b/module_types/comment_hot.d.ts @@ -0,0 +1,9 @@ +import { RequestBaseConfig } from './base' + +export interface CommentHotRequestConfig extends RequestBaseConfig { + id: string + type: 0 | 1 | 2 | 3 | 4 | 5 + offset?: number + limit?: number + before?: number +} diff --git a/module_types/comment_hotwall_list.d.ts b/module_types/comment_hotwall_list.d.ts new file mode 100644 index 0000000..c49e7c2 --- /dev/null +++ b/module_types/comment_hotwall_list.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type CommentHotwallListRequestConfig = RequestBaseConfig diff --git a/module_types/comment_like.d.ts b/module_types/comment_like.d.ts new file mode 100644 index 0000000..e0b2bae --- /dev/null +++ b/module_types/comment_like.d.ts @@ -0,0 +1,9 @@ +import { RequestBaseConfig } from './base' + +export interface CommentLikeRequestConfig extends RequestBaseConfig { + id: string + type: 0 | 1 | 2 | 3 | 4 | 5 + t: 'like' | 'unlike' + cid: number + threadId?: string +} diff --git a/module_types/comment_music.d.ts b/module_types/comment_music.d.ts new file mode 100644 index 0000000..bf4ea73 --- /dev/null +++ b/module_types/comment_music.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentMusicRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/comment_mv.d.ts b/module_types/comment_mv.d.ts new file mode 100644 index 0000000..eeb9bc5 --- /dev/null +++ b/module_types/comment_mv.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentMvRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/comment_playlist.d.ts b/module_types/comment_playlist.d.ts new file mode 100644 index 0000000..14e8eca --- /dev/null +++ b/module_types/comment_playlist.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentPlaylistRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/comment_video.d.ts b/module_types/comment_video.d.ts new file mode 100644 index 0000000..0a7bc32 --- /dev/null +++ b/module_types/comment_video.d.ts @@ -0,0 +1,8 @@ +import { RequestBaseConfig } from './base' + +export interface CommentVideoRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number + before?: number +} diff --git a/module_types/countries_code_list.d.ts b/module_types/countries_code_list.d.ts new file mode 100644 index 0000000..8568a26 --- /dev/null +++ b/module_types/countries_code_list.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type CountriesCodeListRequestConfig = RequestBaseConfig diff --git a/module_types/daily_signin.d.ts b/module_types/daily_signin.d.ts new file mode 100644 index 0000000..1d718fd --- /dev/null +++ b/module_types/daily_signin.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface DailySigninRequestConfig extends RequestBaseConfig { + type: 0 | 1 +} diff --git a/module_types/digitalAlbum_ordering.d.ts b/module_types/digitalAlbum_ordering.d.ts new file mode 100644 index 0000000..cd0c0f3 --- /dev/null +++ b/module_types/digitalAlbum_ordering.d.ts @@ -0,0 +1,7 @@ +import { RequestBaseConfig } from './base' + +export interface DigitalAlbumOrderingRequestConfig extends RequestBaseConfig { + payment: string + id: string + quantity: string +} diff --git a/module_types/digitalAlbum_purchased.d.ts b/module_types/digitalAlbum_purchased.d.ts new file mode 100644 index 0000000..3158f67 --- /dev/null +++ b/module_types/digitalAlbum_purchased.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface DigitalAlbumPurchasedRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/dj_banner.d.ts b/module_types/dj_banner.d.ts new file mode 100644 index 0000000..4faf99d --- /dev/null +++ b/module_types/dj_banner.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type DjBannerRequestConfig = RequestBaseConfig diff --git a/module_types/dj_category_excludehot.d.ts b/module_types/dj_category_excludehot.d.ts new file mode 100644 index 0000000..ef9e313 --- /dev/null +++ b/module_types/dj_category_excludehot.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type DjCategoryExcludehotRequestConfig = RequestBaseConfig diff --git a/module_types/dj_category_recommend.d.ts b/module_types/dj_category_recommend.d.ts new file mode 100644 index 0000000..83c3010 --- /dev/null +++ b/module_types/dj_category_recommend.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type DjCategoryRecommendRequestConfig = RequestBaseConfig diff --git a/module_types/dj_catelist.d.ts b/module_types/dj_catelist.d.ts new file mode 100644 index 0000000..8a24ada --- /dev/null +++ b/module_types/dj_catelist.d.ts @@ -0,0 +1,3 @@ +import { RequestBaseConfig } from './base' + +export type DjCatelistRequestConfig = RequestBaseConfig diff --git a/module_types/dj_detail.d.ts b/module_types/dj_detail.d.ts new file mode 100644 index 0000000..2e4921e --- /dev/null +++ b/module_types/dj_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + +export interface DjDetailRequestConfig extends RequestBaseConfig { + rid: string +} diff --git a/module_types/dj_hot.d.ts b/module_types/dj_hot.d.ts new file mode 100644 index 0000000..c94a24e --- /dev/null +++ b/module_types/dj_hot.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface DjHotRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/dj_paygift.d.ts b/module_types/dj_paygift.d.ts new file mode 100644 index 0000000..f2ed90f --- /dev/null +++ b/module_types/dj_paygift.d.ts @@ -0,0 +1,6 @@ +import { RequestBaseConfig } from './base' + +export interface DjPaygiftRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/dj_program.d.ts b/module_types/dj_program.d.ts new file mode 100644 index 0000000..7cd2083 --- /dev/null +++ b/module_types/dj_program.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjProgramRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_program_detail.d.ts b/module_types/dj_program_detail.d.ts new file mode 100644 index 0000000..b4ab541 --- /dev/null +++ b/module_types/dj_program_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjProgramDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_program_toplist.d.ts b/module_types/dj_program_toplist.d.ts new file mode 100644 index 0000000..398dc53 --- /dev/null +++ b/module_types/dj_program_toplist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjProgramToplistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_program_toplist_hours.d.ts b/module_types/dj_program_toplist_hours.d.ts new file mode 100644 index 0000000..d41a351 --- /dev/null +++ b/module_types/dj_program_toplist_hours.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjProgramToplistHoursRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_radio_hot.d.ts b/module_types/dj_radio_hot.d.ts new file mode 100644 index 0000000..de5488a --- /dev/null +++ b/module_types/dj_radio_hot.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjRadioHotRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_recommend.d.ts b/module_types/dj_recommend.d.ts new file mode 100644 index 0000000..257ebc6 --- /dev/null +++ b/module_types/dj_recommend.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjRecommendRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_recommend_type.d.ts b/module_types/dj_recommend_type.d.ts new file mode 100644 index 0000000..ada471c --- /dev/null +++ b/module_types/dj_recommend_type.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjRecommendTypeRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_sub.d.ts b/module_types/dj_sub.d.ts new file mode 100644 index 0000000..4be9525 --- /dev/null +++ b/module_types/dj_sub.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjSubRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_sublist.d.ts b/module_types/dj_sublist.d.ts new file mode 100644 index 0000000..396b65b --- /dev/null +++ b/module_types/dj_sublist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjSublistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_today_perfered.d.ts b/module_types/dj_today_perfered.d.ts new file mode 100644 index 0000000..b0d0bff --- /dev/null +++ b/module_types/dj_today_perfered.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjTodayPerferedRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_toplist.d.ts b/module_types/dj_toplist.d.ts new file mode 100644 index 0000000..08234b8 --- /dev/null +++ b/module_types/dj_toplist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjToplistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_toplist_hours.d.ts b/module_types/dj_toplist_hours.d.ts new file mode 100644 index 0000000..b6ded31 --- /dev/null +++ b/module_types/dj_toplist_hours.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjToplistHoursRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_toplist_newcomer.d.ts b/module_types/dj_toplist_newcomer.d.ts new file mode 100644 index 0000000..1e51058 --- /dev/null +++ b/module_types/dj_toplist_newcomer.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjToplistNewcomerRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_toplist_pay.d.ts b/module_types/dj_toplist_pay.d.ts new file mode 100644 index 0000000..908164f --- /dev/null +++ b/module_types/dj_toplist_pay.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjToplistPayRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/dj_toplist_popular.d.ts b/module_types/dj_toplist_popular.d.ts new file mode 100644 index 0000000..cc7a141 --- /dev/null +++ b/module_types/dj_toplist_popular.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface DjToplistPopularRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/event.d.ts b/module_types/event.d.ts new file mode 100644 index 0000000..429be2e --- /dev/null +++ b/module_types/event.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface EventRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/event_del.d.ts b/module_types/event_del.d.ts new file mode 100644 index 0000000..224f996 --- /dev/null +++ b/module_types/event_del.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface EventDelRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/event_forward.d.ts b/module_types/event_forward.d.ts new file mode 100644 index 0000000..0d1e524 --- /dev/null +++ b/module_types/event_forward.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface EventForwardRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/fm_trash.d.ts b/module_types/fm_trash.d.ts new file mode 100644 index 0000000..eb6bae0 --- /dev/null +++ b/module_types/fm_trash.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface FmTrashRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/follow.d.ts b/module_types/follow.d.ts new file mode 100644 index 0000000..6032c0d --- /dev/null +++ b/module_types/follow.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface FollowRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/history_recommend_songs.d.ts b/module_types/history_recommend_songs.d.ts new file mode 100644 index 0000000..b8992a4 --- /dev/null +++ b/module_types/history_recommend_songs.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface HistoryRecommendSongsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/history_recommend_songs_detail.d.ts b/module_types/history_recommend_songs_detail.d.ts new file mode 100644 index 0000000..23773df --- /dev/null +++ b/module_types/history_recommend_songs_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface HistoryRecommendSongsDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/homepage_block_page.d.ts b/module_types/homepage_block_page.d.ts new file mode 100644 index 0000000..47ec9f4 --- /dev/null +++ b/module_types/homepage_block_page.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface HomepageBlockPageRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/homepage_dragon_ball.d.ts b/module_types/homepage_dragon_ball.d.ts new file mode 100644 index 0000000..275ef37 --- /dev/null +++ b/module_types/homepage_dragon_ball.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface HomepageDragonBallRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/hot_topic.d.ts b/module_types/hot_topic.d.ts new file mode 100644 index 0000000..f555872 --- /dev/null +++ b/module_types/hot_topic.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface HotTopicRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/like.d.ts b/module_types/like.d.ts new file mode 100644 index 0000000..8390697 --- /dev/null +++ b/module_types/like.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LikeRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/likelist.d.ts b/module_types/likelist.d.ts new file mode 100644 index 0000000..75d0cc9 --- /dev/null +++ b/module_types/likelist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LikelistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/login.d.ts b/module_types/login.d.ts new file mode 100644 index 0000000..4f014b7 --- /dev/null +++ b/module_types/login.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LoginRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/login_cellphone.d.ts b/module_types/login_cellphone.d.ts new file mode 100644 index 0000000..1a363b6 --- /dev/null +++ b/module_types/login_cellphone.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LoginCellphoneRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/login_refresh.d.ts b/module_types/login_refresh.d.ts new file mode 100644 index 0000000..aee339a --- /dev/null +++ b/module_types/login_refresh.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LoginRefreshRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/login_status.d.ts b/module_types/login_status.d.ts new file mode 100644 index 0000000..581af98 --- /dev/null +++ b/module_types/login_status.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LoginStatusRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/logout.d.ts b/module_types/logout.d.ts new file mode 100644 index 0000000..32e70ac --- /dev/null +++ b/module_types/logout.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LogoutRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/lyric.d.ts b/module_types/lyric.d.ts new file mode 100644 index 0000000..f8a56ce --- /dev/null +++ b/module_types/lyric.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface LyricRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/msg_comments.d.ts b/module_types/msg_comments.d.ts new file mode 100644 index 0000000..57db4df --- /dev/null +++ b/module_types/msg_comments.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MsgCommentsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/msg_forwards.d.ts b/module_types/msg_forwards.d.ts new file mode 100644 index 0000000..7e180da --- /dev/null +++ b/module_types/msg_forwards.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MsgForwardsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/msg_notices.d.ts b/module_types/msg_notices.d.ts new file mode 100644 index 0000000..a45f337 --- /dev/null +++ b/module_types/msg_notices.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MsgNoticesRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/msg_private.d.ts b/module_types/msg_private.d.ts new file mode 100644 index 0000000..1d5e373 --- /dev/null +++ b/module_types/msg_private.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MsgPrivateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/msg_private_history.d.ts b/module_types/msg_private_history.d.ts new file mode 100644 index 0000000..c37ef66 --- /dev/null +++ b/module_types/msg_private_history.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MsgPrivateHistoryRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_all.d.ts b/module_types/mv_all.d.ts new file mode 100644 index 0000000..3b70047 --- /dev/null +++ b/module_types/mv_all.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvAllRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_detail.d.ts b/module_types/mv_detail.d.ts new file mode 100644 index 0000000..9b21d4c --- /dev/null +++ b/module_types/mv_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_detail_info.d.ts b/module_types/mv_detail_info.d.ts new file mode 100644 index 0000000..2a26952 --- /dev/null +++ b/module_types/mv_detail_info.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvDetailInfoRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_exclusive_rcmd.d.ts b/module_types/mv_exclusive_rcmd.d.ts new file mode 100644 index 0000000..66da291 --- /dev/null +++ b/module_types/mv_exclusive_rcmd.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvExclusiveRcmdRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_first.d.ts b/module_types/mv_first.d.ts new file mode 100644 index 0000000..7760590 --- /dev/null +++ b/module_types/mv_first.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvFirstRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_sub.d.ts b/module_types/mv_sub.d.ts new file mode 100644 index 0000000..3be96f3 --- /dev/null +++ b/module_types/mv_sub.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvSubRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_sublist.d.ts b/module_types/mv_sublist.d.ts new file mode 100644 index 0000000..4a95af6 --- /dev/null +++ b/module_types/mv_sublist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvSublistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/mv_url.d.ts b/module_types/mv_url.d.ts new file mode 100644 index 0000000..07e8533 --- /dev/null +++ b/module_types/mv_url.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface MvUrlRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personal_fm.d.ts b/module_types/personal_fm.d.ts new file mode 100644 index 0000000..d777ee3 --- /dev/null +++ b/module_types/personal_fm.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalFmRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personalized.d.ts b/module_types/personalized.d.ts new file mode 100644 index 0000000..115c805 --- /dev/null +++ b/module_types/personalized.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalizedRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personalized_djprogram.d.ts b/module_types/personalized_djprogram.d.ts new file mode 100644 index 0000000..97742ca --- /dev/null +++ b/module_types/personalized_djprogram.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalizedDjprogramRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personalized_mv.d.ts b/module_types/personalized_mv.d.ts new file mode 100644 index 0000000..2aaeee9 --- /dev/null +++ b/module_types/personalized_mv.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalizedMvRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personalized_newsong.d.ts b/module_types/personalized_newsong.d.ts new file mode 100644 index 0000000..adf62d4 --- /dev/null +++ b/module_types/personalized_newsong.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalizedNewsongRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personalized_privatecontent.d.ts b/module_types/personalized_privatecontent.d.ts new file mode 100644 index 0000000..9e564e2 --- /dev/null +++ b/module_types/personalized_privatecontent.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalizedPrivatecontentRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/personalized_privatecontent_list.d.ts b/module_types/personalized_privatecontent_list.d.ts new file mode 100644 index 0000000..9bbf804 --- /dev/null +++ b/module_types/personalized_privatecontent_list.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PersonalizedPrivatecontentListRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_catlist.d.ts b/module_types/playlist_catlist.d.ts new file mode 100644 index 0000000..c170cc2 --- /dev/null +++ b/module_types/playlist_catlist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistCatlistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_cover_update.d.ts b/module_types/playlist_cover_update.d.ts new file mode 100644 index 0000000..c8008bc --- /dev/null +++ b/module_types/playlist_cover_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistCoverUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_create.d.ts b/module_types/playlist_create.d.ts new file mode 100644 index 0000000..19c9540 --- /dev/null +++ b/module_types/playlist_create.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistCreateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_delete.d.ts b/module_types/playlist_delete.d.ts new file mode 100644 index 0000000..ed832b4 --- /dev/null +++ b/module_types/playlist_delete.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistDeleteRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_desc_update.d.ts b/module_types/playlist_desc_update.d.ts new file mode 100644 index 0000000..5f8ed0c --- /dev/null +++ b/module_types/playlist_desc_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistDescUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_detail.d.ts b/module_types/playlist_detail.d.ts new file mode 100644 index 0000000..a507a14 --- /dev/null +++ b/module_types/playlist_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_hot.d.ts b/module_types/playlist_hot.d.ts new file mode 100644 index 0000000..e5da7ce --- /dev/null +++ b/module_types/playlist_hot.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistHotRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_name_update.d.ts b/module_types/playlist_name_update.d.ts new file mode 100644 index 0000000..2226348 --- /dev/null +++ b/module_types/playlist_name_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistNameUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_order_update.d.ts b/module_types/playlist_order_update.d.ts new file mode 100644 index 0000000..8efb247 --- /dev/null +++ b/module_types/playlist_order_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistOrderUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_subscribe.d.ts b/module_types/playlist_subscribe.d.ts new file mode 100644 index 0000000..94a15e4 --- /dev/null +++ b/module_types/playlist_subscribe.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistSubscribeRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_subscribers.d.ts b/module_types/playlist_subscribers.d.ts new file mode 100644 index 0000000..ca03bdb --- /dev/null +++ b/module_types/playlist_subscribers.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistSubscribersRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_tags_update.d.ts b/module_types/playlist_tags_update.d.ts new file mode 100644 index 0000000..a718304 --- /dev/null +++ b/module_types/playlist_tags_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistTagsUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_tracks.d.ts b/module_types/playlist_tracks.d.ts new file mode 100644 index 0000000..7eecdcd --- /dev/null +++ b/module_types/playlist_tracks.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistTracksRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playlist_update.d.ts b/module_types/playlist_update.d.ts new file mode 100644 index 0000000..a8b01b7 --- /dev/null +++ b/module_types/playlist_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaylistUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/playmode_intelligence_list.d.ts b/module_types/playmode_intelligence_list.d.ts new file mode 100644 index 0000000..dcc8f73 --- /dev/null +++ b/module_types/playmode_intelligence_list.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface PlaymodeIntelligenceListRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/program_recommend.d.ts b/module_types/program_recommend.d.ts new file mode 100644 index 0000000..87aee9b --- /dev/null +++ b/module_types/program_recommend.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ProgramRecommendRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/rebind.d.ts b/module_types/rebind.d.ts new file mode 100644 index 0000000..00688db --- /dev/null +++ b/module_types/rebind.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface RebindRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/recommend_resource.d.ts b/module_types/recommend_resource.d.ts new file mode 100644 index 0000000..45f2dfa --- /dev/null +++ b/module_types/recommend_resource.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface RecommendResourceRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/recommend_songs.d.ts b/module_types/recommend_songs.d.ts new file mode 100644 index 0000000..3d42bbe --- /dev/null +++ b/module_types/recommend_songs.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface RecommendSongsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/register_cellphone.d.ts b/module_types/register_cellphone.d.ts new file mode 100644 index 0000000..60181da --- /dev/null +++ b/module_types/register_cellphone.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface RegisterCellphoneRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/related_allvideo.d.ts b/module_types/related_allvideo.d.ts new file mode 100644 index 0000000..04f1c84 --- /dev/null +++ b/module_types/related_allvideo.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface RelatedAllvideoRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/related_playlist.d.ts b/module_types/related_playlist.d.ts new file mode 100644 index 0000000..446b6a6 --- /dev/null +++ b/module_types/related_playlist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface RelatedPlaylistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/resource_like.d.ts b/module_types/resource_like.d.ts new file mode 100644 index 0000000..ad10b06 --- /dev/null +++ b/module_types/resource_like.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ResourceLikeRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/scrobble.d.ts b/module_types/scrobble.d.ts new file mode 100644 index 0000000..2349dcf --- /dev/null +++ b/module_types/scrobble.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ScrobbleRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/search.d.ts b/module_types/search.d.ts new file mode 100644 index 0000000..9114219 --- /dev/null +++ b/module_types/search.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SearchRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/search_default.d.ts b/module_types/search_default.d.ts new file mode 100644 index 0000000..6a901ab --- /dev/null +++ b/module_types/search_default.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SearchDefaultRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/search_hot.d.ts b/module_types/search_hot.d.ts new file mode 100644 index 0000000..5e4eb57 --- /dev/null +++ b/module_types/search_hot.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SearchHotRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/search_hot_detail.d.ts b/module_types/search_hot_detail.d.ts new file mode 100644 index 0000000..92b699d --- /dev/null +++ b/module_types/search_hot_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SearchHotDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/search_multimatch.d.ts b/module_types/search_multimatch.d.ts new file mode 100644 index 0000000..21f6d47 --- /dev/null +++ b/module_types/search_multimatch.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SearchMultimatchRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/search_suggest.d.ts b/module_types/search_suggest.d.ts new file mode 100644 index 0000000..acd4a1d --- /dev/null +++ b/module_types/search_suggest.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SearchSuggestRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/send_playlist.d.ts b/module_types/send_playlist.d.ts new file mode 100644 index 0000000..04afcaf --- /dev/null +++ b/module_types/send_playlist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SendPlaylistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/send_text.d.ts b/module_types/send_text.d.ts new file mode 100644 index 0000000..c1e7000 --- /dev/null +++ b/module_types/send_text.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SendTextRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/setting.d.ts b/module_types/setting.d.ts new file mode 100644 index 0000000..faaecaf --- /dev/null +++ b/module_types/setting.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SettingRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/share_resource.d.ts b/module_types/share_resource.d.ts new file mode 100644 index 0000000..733c036 --- /dev/null +++ b/module_types/share_resource.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ShareResourceRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/simi_artist.d.ts b/module_types/simi_artist.d.ts new file mode 100644 index 0000000..9de9e87 --- /dev/null +++ b/module_types/simi_artist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SimiArtistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/simi_mv.d.ts b/module_types/simi_mv.d.ts new file mode 100644 index 0000000..3c2699f --- /dev/null +++ b/module_types/simi_mv.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SimiMvRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/simi_playlist.d.ts b/module_types/simi_playlist.d.ts new file mode 100644 index 0000000..2701ad5 --- /dev/null +++ b/module_types/simi_playlist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SimiPlaylistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/simi_song.d.ts b/module_types/simi_song.d.ts new file mode 100644 index 0000000..84882c9 --- /dev/null +++ b/module_types/simi_song.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SimiSongRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/simi_user.d.ts b/module_types/simi_user.d.ts new file mode 100644 index 0000000..5090083 --- /dev/null +++ b/module_types/simi_user.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SimiUserRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/song_detail.d.ts b/module_types/song_detail.d.ts new file mode 100644 index 0000000..3eb092d --- /dev/null +++ b/module_types/song_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SongDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/song_order_update.d.ts b/module_types/song_order_update.d.ts new file mode 100644 index 0000000..237b3ad --- /dev/null +++ b/module_types/song_order_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SongOrderUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/song_url.d.ts b/module_types/song_url.d.ts new file mode 100644 index 0000000..984bd77 --- /dev/null +++ b/module_types/song_url.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface SongUrlRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_album.d.ts b/module_types/top_album.d.ts new file mode 100644 index 0000000..7ea69a7 --- /dev/null +++ b/module_types/top_album.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopAlbumRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_artists.d.ts b/module_types/top_artists.d.ts new file mode 100644 index 0000000..55dd8df --- /dev/null +++ b/module_types/top_artists.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopArtistsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_list.d.ts b/module_types/top_list.d.ts new file mode 100644 index 0000000..088f1b1 --- /dev/null +++ b/module_types/top_list.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopListRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_mv.d.ts b/module_types/top_mv.d.ts new file mode 100644 index 0000000..20dfedd --- /dev/null +++ b/module_types/top_mv.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopMvRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_playlist.d.ts b/module_types/top_playlist.d.ts new file mode 100644 index 0000000..f8fa524 --- /dev/null +++ b/module_types/top_playlist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopPlaylistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_playlist_highquality.d.ts b/module_types/top_playlist_highquality.d.ts new file mode 100644 index 0000000..a9284aa --- /dev/null +++ b/module_types/top_playlist_highquality.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopPlaylistHighqualityRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/top_song.d.ts b/module_types/top_song.d.ts new file mode 100644 index 0000000..30af7cc --- /dev/null +++ b/module_types/top_song.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface TopSongRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/toplist.d.ts b/module_types/toplist.d.ts new file mode 100644 index 0000000..96bdb5c --- /dev/null +++ b/module_types/toplist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ToplistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/toplist_artist.d.ts b/module_types/toplist_artist.d.ts new file mode 100644 index 0000000..61a70b8 --- /dev/null +++ b/module_types/toplist_artist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ToplistArtistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/toplist_detail.d.ts b/module_types/toplist_detail.d.ts new file mode 100644 index 0000000..b10fd37 --- /dev/null +++ b/module_types/toplist_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface ToplistDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_audio.d.ts b/module_types/user_audio.d.ts new file mode 100644 index 0000000..b5493be --- /dev/null +++ b/module_types/user_audio.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserAudioRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_cloud.d.ts b/module_types/user_cloud.d.ts new file mode 100644 index 0000000..4134482 --- /dev/null +++ b/module_types/user_cloud.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserCloudRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_cloud_del.d.ts b/module_types/user_cloud_del.d.ts new file mode 100644 index 0000000..a00c0b1 --- /dev/null +++ b/module_types/user_cloud_del.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserCloudDelRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_cloud_detail.d.ts b/module_types/user_cloud_detail.d.ts new file mode 100644 index 0000000..ff5df5a --- /dev/null +++ b/module_types/user_cloud_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserCloudDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_detail.d.ts b/module_types/user_detail.d.ts new file mode 100644 index 0000000..ce857f8 --- /dev/null +++ b/module_types/user_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_dj.d.ts b/module_types/user_dj.d.ts new file mode 100644 index 0000000..47f3e9e --- /dev/null +++ b/module_types/user_dj.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserDjRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_event.d.ts b/module_types/user_event.d.ts new file mode 100644 index 0000000..e2eeba8 --- /dev/null +++ b/module_types/user_event.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserEventRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_followeds.d.ts b/module_types/user_followeds.d.ts new file mode 100644 index 0000000..02484d7 --- /dev/null +++ b/module_types/user_followeds.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserFollowedsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_follows.d.ts b/module_types/user_follows.d.ts new file mode 100644 index 0000000..1d32455 --- /dev/null +++ b/module_types/user_follows.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserFollowsRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_playlist.d.ts b/module_types/user_playlist.d.ts new file mode 100644 index 0000000..2242a9a --- /dev/null +++ b/module_types/user_playlist.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserPlaylistRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_record.d.ts b/module_types/user_record.d.ts new file mode 100644 index 0000000..0ab4367 --- /dev/null +++ b/module_types/user_record.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserRecordRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_subcount.d.ts b/module_types/user_subcount.d.ts new file mode 100644 index 0000000..6e2d462 --- /dev/null +++ b/module_types/user_subcount.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserSubcountRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/user_update.d.ts b/module_types/user_update.d.ts new file mode 100644 index 0000000..a73b3a6 --- /dev/null +++ b/module_types/user_update.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface UserUpdateRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_category_list.d.ts b/module_types/video_category_list.d.ts new file mode 100644 index 0000000..70a6654 --- /dev/null +++ b/module_types/video_category_list.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoCategoryListRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_detail.d.ts b/module_types/video_detail.d.ts new file mode 100644 index 0000000..ccede5a --- /dev/null +++ b/module_types/video_detail.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoDetailRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_detail_info.d.ts b/module_types/video_detail_info.d.ts new file mode 100644 index 0000000..d89e69d --- /dev/null +++ b/module_types/video_detail_info.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoDetailInfoRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_group.d.ts b/module_types/video_group.d.ts new file mode 100644 index 0000000..3137544 --- /dev/null +++ b/module_types/video_group.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoGroupRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_group_list.d.ts b/module_types/video_group_list.d.ts new file mode 100644 index 0000000..d63657c --- /dev/null +++ b/module_types/video_group_list.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoGroupListRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_sub.d.ts b/module_types/video_sub.d.ts new file mode 100644 index 0000000..aaed0da --- /dev/null +++ b/module_types/video_sub.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoSubRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_timeline_all.d.ts b/module_types/video_timeline_all.d.ts new file mode 100644 index 0000000..541e859 --- /dev/null +++ b/module_types/video_timeline_all.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoTimelineAllRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_timeline_recommend.d.ts b/module_types/video_timeline_recommend.d.ts new file mode 100644 index 0000000..760f213 --- /dev/null +++ b/module_types/video_timeline_recommend.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoTimelineRecommendRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/video_url.d.ts b/module_types/video_url.d.ts new file mode 100644 index 0000000..7591cb2 --- /dev/null +++ b/module_types/video_url.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface VideoUrlRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file diff --git a/module_types/weblog.d.ts b/module_types/weblog.d.ts new file mode 100644 index 0000000..4ad85b8 --- /dev/null +++ b/module_types/weblog.d.ts @@ -0,0 +1,5 @@ +import { RequestBaseConfig } from './base' + + export interface WeblogRequestConfig extends RequestBaseConfig { + } + \ No newline at end of file From 139e9a1a3934020af9d1153271c7d24e345f7417 Mon Sep 17 00:00:00 2001 From: a632079 Date: Sat, 5 Sep 2020 15:54:03 +0800 Subject: [PATCH 07/11] feat: ts support, all declaration --- module_types/album_sub.d.ts | 2 +- module_types/artist_sub.d.ts | 2 +- module_types/comment_like.d.ts | 2 +- module_types/dj_program.d.ts | 9 ++-- module_types/dj_program_detail.d.ts | 6 +-- module_types/dj_program_toplist.d.ts | 7 +-- module_types/dj_program_toplist_hours.d.ts | 6 +-- module_types/dj_radio_hot.d.ts | 8 +-- module_types/dj_recommend.d.ts | 9 ++-- module_types/dj_recommend_type.d.ts | 49 +++++++++++++++++-- module_types/dj_sub.d.ts | 7 +-- module_types/dj_sublist.d.ts | 7 +-- module_types/dj_today_perfered.d.ts | 6 +-- module_types/dj_toplist.d.ts | 8 +-- module_types/dj_toplist_hours.d.ts | 6 +-- module_types/dj_toplist_newcomer.d.ts | 7 +-- module_types/dj_toplist_pay.d.ts | 6 +-- module_types/dj_toplist_popular.d.ts | 6 +-- module_types/event.d.ts | 7 +-- module_types/event_del.d.ts | 6 +-- module_types/event_forward.d.ts | 8 +-- module_types/fm_trash.d.ts | 7 +-- module_types/follow.d.ts | 7 +-- module_types/history_recommend_songs.d.ts | 4 +- .../history_recommend_songs_detail.d.ts | 7 +-- module_types/homepage_block_page.d.ts | 6 +-- module_types/homepage_dragon_ball.d.ts | 4 +- module_types/hot_topic.d.ts | 7 +-- module_types/like.d.ts | 9 ++-- module_types/likelist.d.ts | 6 +-- module_types/login.d.ts | 8 +-- module_types/login_cellphone.d.ts | 9 ++-- module_types/login_refresh.d.ts | 4 +- module_types/login_status.d.ts | 4 +- module_types/logout.d.ts | 4 +- module_types/lyric.d.ts | 6 +-- module_types/msg_comments.d.ts | 8 +-- module_types/msg_forwards.d.ts | 7 +-- module_types/msg_notices.d.ts | 7 +-- module_types/msg_private.d.ts | 7 +-- module_types/msg_private_history.d.ts | 8 +-- module_types/mv_all.d.ts | 10 ++-- module_types/mv_detail.d.ts | 6 +-- module_types/mv_detail_info.d.ts | 6 +-- module_types/mv_exclusive_rcmd.d.ts | 7 +-- module_types/mv_first.d.ts | 7 +-- module_types/mv_sub.d.ts | 7 +-- module_types/mv_sublist.d.ts | 7 +-- module_types/mv_url.d.ts | 7 +-- module_types/personal_fm.d.ts | 4 +- module_types/personalized.d.ts | 6 +-- module_types/personalized_djprogram.d.ts | 4 +- module_types/personalized_mv.d.ts | 4 +- module_types/personalized_newsong.d.ts | 4 +- module_types/personalized_privatecontent.d.ts | 4 +- .../personalized_privatecontent_list.d.ts | 8 +-- module_types/playlist_catlist.d.ts | 4 +- module_types/playlist_create.d.ts | 7 +-- module_types/playlist_delete.d.ts | 6 +-- module_types/playlist_desc_update.d.ts | 7 +-- module_types/playlist_detail.d.ts | 7 +-- module_types/playlist_hot.d.ts | 4 +- module_types/playlist_name_update.d.ts | 7 +-- module_types/playlist_order_update.d.ts | 6 +-- module_types/playlist_subscribe.d.ts | 7 +-- module_types/playlist_subscribers.d.ts | 8 +-- module_types/playlist_tags_update.d.ts | 7 +-- module_types/playlist_tracks.d.ts | 8 +-- module_types/playlist_update.d.ts | 9 ++-- module_types/playmode_intelligence_list.d.ts | 10 ++-- module_types/program_recommend.d.ts | 8 +-- module_types/rebind.d.ts | 9 ++-- module_types/recommend_resource.d.ts | 4 +- module_types/recommend_songs.d.ts | 4 +- module_types/register_cellphone.d.ts | 9 ++-- module_types/related_allvideo.d.ts | 6 +-- module_types/related_playlist.d.ts | 6 +-- module_types/resource_like.d.ts | 9 ++-- module_types/scrobble.d.ts | 8 +-- module_types/search.d.ts | 9 ++-- module_types/search_default.d.ts | 4 +- module_types/search_hot.d.ts | 4 +- module_types/search_hot_detail.d.ts | 4 +- module_types/search_multimatch.d.ts | 7 +-- module_types/search_suggest.d.ts | 7 +-- module_types/send_playlist.d.ts | 8 +-- module_types/send_text.d.ts | 8 +-- module_types/setting.d.ts | 4 +- module_types/share_resource.d.ts | 8 +-- module_types/simi_artist.d.ts | 6 +-- module_types/simi_mv.d.ts | 6 +-- module_types/simi_playlist.d.ts | 8 +-- module_types/simi_song.d.ts | 8 +-- module_types/simi_user.d.ts | 8 +-- module_types/song_detail.d.ts | 6 +-- module_types/song_order_update.d.ts | 7 +-- module_types/song_url.d.ts | 7 +-- module_types/top_album.d.ts | 11 +++-- module_types/top_artists.d.ts | 7 +-- module_types/top_list.d.ts | 6 +-- module_types/top_mv.d.ts | 8 +-- module_types/top_playlist.d.ts | 9 ++-- module_types/top_playlist_highquality.d.ts | 8 +-- module_types/top_song.d.ts | 6 +-- module_types/toplist.d.ts | 4 +- module_types/toplist_artist.d.ts | 6 +-- module_types/toplist_detail.d.ts | 4 +- module_types/user_audio.d.ts | 6 +-- module_types/user_cloud.d.ts | 7 +-- module_types/user_cloud_del.d.ts | 6 +-- module_types/user_cloud_detail.d.ts | 6 +-- module_types/user_detail.d.ts | 6 +-- module_types/user_dj.d.ts | 8 +-- module_types/user_event.d.ts | 8 +-- module_types/user_followeds.d.ts | 8 +-- module_types/user_follows.d.ts | 8 +-- module_types/user_playlist.d.ts | 8 +-- module_types/user_record.d.ts | 7 +-- module_types/user_subcount.d.ts | 4 +- module_types/user_update.d.ts | 11 +++-- module_types/video_category_list.d.ts | 7 +-- module_types/video_detail.d.ts | 6 +-- module_types/video_detail_info.d.ts | 6 +-- module_types/video_group.d.ts | 7 +-- module_types/video_group_list.d.ts | 4 +- module_types/video_sub.d.ts | 7 +-- module_types/video_timeline_all.d.ts | 6 +-- module_types/video_timeline_recommend.d.ts | 6 +-- module_types/video_url.d.ts | 7 +-- module_types/weblog.d.ts | 6 +-- 130 files changed, 512 insertions(+), 385 deletions(-) diff --git a/module_types/album_sub.d.ts b/module_types/album_sub.d.ts index 7946a3c..b988e8e 100644 --- a/module_types/album_sub.d.ts +++ b/module_types/album_sub.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface AlbumSubRequestConfig extends RequestBaseConfig { id: string - t: 'sub' | 'unsub' + t: 1 | 0 } diff --git a/module_types/artist_sub.d.ts b/module_types/artist_sub.d.ts index 39f6a65..e79d378 100644 --- a/module_types/artist_sub.d.ts +++ b/module_types/artist_sub.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface ArtistSubRequestConfig extends RequestBaseConfig { artistId: string - t: 'sub' | 'unsub' + t: 1 | 0 } diff --git a/module_types/comment_like.d.ts b/module_types/comment_like.d.ts index e0b2bae..70c371a 100644 --- a/module_types/comment_like.d.ts +++ b/module_types/comment_like.d.ts @@ -3,7 +3,7 @@ import { RequestBaseConfig } from './base' export interface CommentLikeRequestConfig extends RequestBaseConfig { id: string type: 0 | 1 | 2 | 3 | 4 | 5 - t: 'like' | 'unlike' + t: 1 | 0 cid: number threadId?: string } diff --git a/module_types/dj_program.d.ts b/module_types/dj_program.d.ts index 7cd2083..03bac93 100644 --- a/module_types/dj_program.d.ts +++ b/module_types/dj_program.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface DjProgramRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjProgramRequestConfig extends RequestBaseConfig { + rid: string + limit?: number + offset?: number + asc: 'true' | 1 | 'false' | 0 +} diff --git a/module_types/dj_program_detail.d.ts b/module_types/dj_program_detail.d.ts index b4ab541..3e9af0c 100644 --- a/module_types/dj_program_detail.d.ts +++ b/module_types/dj_program_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface DjProgramDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjProgramDetailRequestConfig extends RequestBaseConfig { + id: number +} diff --git a/module_types/dj_program_toplist.d.ts b/module_types/dj_program_toplist.d.ts index 398dc53..d86dc97 100644 --- a/module_types/dj_program_toplist.d.ts +++ b/module_types/dj_program_toplist.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface DjProgramToplistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjProgramToplistRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/dj_program_toplist_hours.d.ts b/module_types/dj_program_toplist_hours.d.ts index d41a351..06ba895 100644 --- a/module_types/dj_program_toplist_hours.d.ts +++ b/module_types/dj_program_toplist_hours.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface DjProgramToplistHoursRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjProgramToplistHoursRequestConfig extends RequestBaseConfig { + limit?: number +} diff --git a/module_types/dj_radio_hot.d.ts b/module_types/dj_radio_hot.d.ts index de5488a..6cd0bc4 100644 --- a/module_types/dj_radio_hot.d.ts +++ b/module_types/dj_radio_hot.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface DjRadioHotRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjRadioHotRequestConfig extends RequestBaseConfig { + cateId: string + limit?: number + offset?: number +} diff --git a/module_types/dj_recommend.d.ts b/module_types/dj_recommend.d.ts index 257ebc6..3658f8b 100644 --- a/module_types/dj_recommend.d.ts +++ b/module_types/dj_recommend.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface DjRecommendRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjRecommendRequestConfig extends RequestBaseConfig { + rid: string + limit?: number + offset?: number + asc: 0 | 1 | 'true' | 'false' +} diff --git a/module_types/dj_recommend_type.d.ts b/module_types/dj_recommend_type.d.ts index ada471c..582bd5b 100644 --- a/module_types/dj_recommend_type.d.ts +++ b/module_types/dj_recommend_type.d.ts @@ -1,5 +1,46 @@ import { RequestBaseConfig } from './base' - - export interface DjRecommendTypeRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +/* + 有声书 10001 + 知识技能 453050 + 商业财经 453051 + 人文历史 11 + 外语世界 13 + 亲子宝贝 14 + 创作|翻唱 2001 + 音乐故事 2 + 3D|电子 10002 + 相声曲艺 8 + 情感调频 3 + 美文读物 6 + 脱口秀 5 + 广播剧 7 + 二次元 3001 + 明星做主播 1 + 娱乐|影视 4 + 科技科学 453052 + 校园|教育 4001 + 旅途|城市 12 +*/ +export interface DjRecommendTypeRequestConfig extends RequestBaseConfig { + type: + | 10001 + | 453050 + | 453051 + | 11 + | 13 + | 14 + | 2001 + | 2 + | 10002 + | 8 + | 3 + | 6 + | 5 + | 7 + | 3001 + | 1 + | 4 + | 453052 + | 4001 + | 12 +} diff --git a/module_types/dj_sub.d.ts b/module_types/dj_sub.d.ts index 4be9525..1f538a6 100644 --- a/module_types/dj_sub.d.ts +++ b/module_types/dj_sub.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface DjSubRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjSubRequestConfig extends RequestBaseConfig { + t: 1 | 0 + rid: string +} diff --git a/module_types/dj_sublist.d.ts b/module_types/dj_sublist.d.ts index 396b65b..82436f8 100644 --- a/module_types/dj_sublist.d.ts +++ b/module_types/dj_sublist.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface DjSublistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjSublistRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/dj_today_perfered.d.ts b/module_types/dj_today_perfered.d.ts index b0d0bff..a0fe915 100644 --- a/module_types/dj_today_perfered.d.ts +++ b/module_types/dj_today_perfered.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface DjTodayPerferedRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjTodayPerferedRequestConfig extends RequestBaseConfig { + page?: number +} diff --git a/module_types/dj_toplist.d.ts b/module_types/dj_toplist.d.ts index 08234b8..3af110d 100644 --- a/module_types/dj_toplist.d.ts +++ b/module_types/dj_toplist.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface DjToplistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjToplistRequestConfig extends RequestBaseConfig { + type: 'new' | 'hot' + limit?: number + offset?: number +} diff --git a/module_types/dj_toplist_hours.d.ts b/module_types/dj_toplist_hours.d.ts index b6ded31..7264707 100644 --- a/module_types/dj_toplist_hours.d.ts +++ b/module_types/dj_toplist_hours.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface DjToplistHoursRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjToplistHoursRequestConfig extends RequestBaseConfig { + limit?: number +} diff --git a/module_types/dj_toplist_newcomer.d.ts b/module_types/dj_toplist_newcomer.d.ts index 1e51058..19ff8a5 100644 --- a/module_types/dj_toplist_newcomer.d.ts +++ b/module_types/dj_toplist_newcomer.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface DjToplistNewcomerRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjToplistNewcomerRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/dj_toplist_pay.d.ts b/module_types/dj_toplist_pay.d.ts index 908164f..33409da 100644 --- a/module_types/dj_toplist_pay.d.ts +++ b/module_types/dj_toplist_pay.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface DjToplistPayRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjToplistPayRequestConfig extends RequestBaseConfig { + limit?: number +} diff --git a/module_types/dj_toplist_popular.d.ts b/module_types/dj_toplist_popular.d.ts index cc7a141..6b01a84 100644 --- a/module_types/dj_toplist_popular.d.ts +++ b/module_types/dj_toplist_popular.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface DjToplistPopularRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface DjToplistPopularRequestConfig extends RequestBaseConfig { + limit?: number +} diff --git a/module_types/event.d.ts b/module_types/event.d.ts index 429be2e..7818cec 100644 --- a/module_types/event.d.ts +++ b/module_types/event.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface EventRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface EventRequestConfig extends RequestBaseConfig { + pagesize?: number + lasttime?: number +} diff --git a/module_types/event_del.d.ts b/module_types/event_del.d.ts index 224f996..bf2496b 100644 --- a/module_types/event_del.d.ts +++ b/module_types/event_del.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface EventDelRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface EventDelRequestConfig extends RequestBaseConfig { + evId?: number +} diff --git a/module_types/event_forward.d.ts b/module_types/event_forward.d.ts index 0d1e524..fea13a5 100644 --- a/module_types/event_forward.d.ts +++ b/module_types/event_forward.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface EventForwardRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface EventForwardRequestConfig extends RequestBaseConfig { + forwords: string + evId: string + uid: string +} diff --git a/module_types/fm_trash.d.ts b/module_types/fm_trash.d.ts index eb6bae0..aabc476 100644 --- a/module_types/fm_trash.d.ts +++ b/module_types/fm_trash.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface FmTrashRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface FmTrashRequestConfig extends RequestBaseConfig { + id: string + time?: number +} diff --git a/module_types/follow.d.ts b/module_types/follow.d.ts index 6032c0d..0a00bb4 100644 --- a/module_types/follow.d.ts +++ b/module_types/follow.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface FollowRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface FollowRequestConfig extends RequestBaseConfig { + t: 0 | 1 + id: string +} diff --git a/module_types/history_recommend_songs.d.ts b/module_types/history_recommend_songs.d.ts index b8992a4..9f7fee8 100644 --- a/module_types/history_recommend_songs.d.ts +++ b/module_types/history_recommend_songs.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface HistoryRecommendSongsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type HistoryRecommendSongsRequestConfig = RequestBaseConfig diff --git a/module_types/history_recommend_songs_detail.d.ts b/module_types/history_recommend_songs_detail.d.ts index 23773df..982d896 100644 --- a/module_types/history_recommend_songs_detail.d.ts +++ b/module_types/history_recommend_songs_detail.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface HistoryRecommendSongsDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface HistoryRecommendSongsDetailRequestConfig + extends RequestBaseConfig { + date?: string +} diff --git a/module_types/homepage_block_page.d.ts b/module_types/homepage_block_page.d.ts index 47ec9f4..b098928 100644 --- a/module_types/homepage_block_page.d.ts +++ b/module_types/homepage_block_page.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface HomepageBlockPageRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface HomepageBlockPageRequestConfig extends RequestBaseConfig { + refresh: 'true' | 'false' +} diff --git a/module_types/homepage_dragon_ball.d.ts b/module_types/homepage_dragon_ball.d.ts index 275ef37..02dcdf9 100644 --- a/module_types/homepage_dragon_ball.d.ts +++ b/module_types/homepage_dragon_ball.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface HomepageDragonBallRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type HomepageDragonBallRequestConfig = RequestBaseConfig diff --git a/module_types/hot_topic.d.ts b/module_types/hot_topic.d.ts index f555872..985d93f 100644 --- a/module_types/hot_topic.d.ts +++ b/module_types/hot_topic.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface HotTopicRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface HotTopicRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/like.d.ts b/module_types/like.d.ts index 8390697..661eac9 100644 --- a/module_types/like.d.ts +++ b/module_types/like.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface LikeRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface LikeRequestConfig extends RequestBaseConfig { + like?: 'true' | 'false' + id: string + alg?: string + time?: number +} diff --git a/module_types/likelist.d.ts b/module_types/likelist.d.ts index 75d0cc9..0bae3e6 100644 --- a/module_types/likelist.d.ts +++ b/module_types/likelist.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface LikelistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface LikelistRequestConfig extends RequestBaseConfig { + uid: string +} diff --git a/module_types/login.d.ts b/module_types/login.d.ts index 4f014b7..e1d00bf 100644 --- a/module_types/login.d.ts +++ b/module_types/login.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface LoginRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface LoginRequestConfig extends RequestBaseConfig { + email: string + password?: string + md5_password?: string +} diff --git a/module_types/login_cellphone.d.ts b/module_types/login_cellphone.d.ts index 1a363b6..02df0f9 100644 --- a/module_types/login_cellphone.d.ts +++ b/module_types/login_cellphone.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface LoginCellphoneRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface LoginCellphoneRequestConfig extends RequestBaseConfig { + phone: string + countrycode: string + password?: string + md5_password?: string +} diff --git a/module_types/login_refresh.d.ts b/module_types/login_refresh.d.ts index aee339a..99d8358 100644 --- a/module_types/login_refresh.d.ts +++ b/module_types/login_refresh.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface LoginRefreshRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type LoginRefreshRequestConfig = RequestBaseConfig diff --git a/module_types/login_status.d.ts b/module_types/login_status.d.ts index 581af98..e47c2af 100644 --- a/module_types/login_status.d.ts +++ b/module_types/login_status.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface LoginStatusRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type LoginStatusRequestConfig = RequestBaseConfig diff --git a/module_types/logout.d.ts b/module_types/logout.d.ts index 32e70ac..bdf32ac 100644 --- a/module_types/logout.d.ts +++ b/module_types/logout.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface LogoutRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type LogoutRequestConfig = RequestBaseConfig diff --git a/module_types/lyric.d.ts b/module_types/lyric.d.ts index f8a56ce..c040a9a 100644 --- a/module_types/lyric.d.ts +++ b/module_types/lyric.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface LyricRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface LyricRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/msg_comments.d.ts b/module_types/msg_comments.d.ts index 57db4df..8ebabc6 100644 --- a/module_types/msg_comments.d.ts +++ b/module_types/msg_comments.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface MsgCommentsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MsgCommentsRequestConfig extends RequestBaseConfig { + uid: string + before?: string + limit?: number +} diff --git a/module_types/msg_forwards.d.ts b/module_types/msg_forwards.d.ts index 7e180da..d86ad5f 100644 --- a/module_types/msg_forwards.d.ts +++ b/module_types/msg_forwards.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MsgForwardsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MsgForwardsRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/msg_notices.d.ts b/module_types/msg_notices.d.ts index a45f337..dae78eb 100644 --- a/module_types/msg_notices.d.ts +++ b/module_types/msg_notices.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MsgNoticesRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MsgNoticesRequestConfig extends RequestBaseConfig { + limit?: number + lasttime?: number +} diff --git a/module_types/msg_private.d.ts b/module_types/msg_private.d.ts index 1d5e373..7b60959 100644 --- a/module_types/msg_private.d.ts +++ b/module_types/msg_private.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MsgPrivateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MsgPrivateRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/msg_private_history.d.ts b/module_types/msg_private_history.d.ts index c37ef66..8da94cc 100644 --- a/module_types/msg_private_history.d.ts +++ b/module_types/msg_private_history.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface MsgPrivateHistoryRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MsgPrivateHistoryRequestConfig extends RequestBaseConfig { + before?: number + limit?: number + uid: string +} diff --git a/module_types/mv_all.d.ts b/module_types/mv_all.d.ts index 3b70047..1f4d9fa 100644 --- a/module_types/mv_all.d.ts +++ b/module_types/mv_all.d.ts @@ -1,5 +1,9 @@ import { RequestBaseConfig } from './base' - export interface MvAllRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvAllRequestConfig extends RequestBaseConfig { + area?: string + type?: string + order?: string + offset?: number + limit?: number +} diff --git a/module_types/mv_detail.d.ts b/module_types/mv_detail.d.ts index 9b21d4c..b7f3a2e 100644 --- a/module_types/mv_detail.d.ts +++ b/module_types/mv_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface MvDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvDetailRequestConfig extends RequestBaseConfig { + mvid?: string +} diff --git a/module_types/mv_detail_info.d.ts b/module_types/mv_detail_info.d.ts index 2a26952..a6efa79 100644 --- a/module_types/mv_detail_info.d.ts +++ b/module_types/mv_detail_info.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface MvDetailInfoRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvDetailInfoRequestConfig extends RequestBaseConfig { + mvid: string +} diff --git a/module_types/mv_exclusive_rcmd.d.ts b/module_types/mv_exclusive_rcmd.d.ts index 66da291..c5ecc51 100644 --- a/module_types/mv_exclusive_rcmd.d.ts +++ b/module_types/mv_exclusive_rcmd.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MvExclusiveRcmdRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvExclusiveRcmdRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/mv_first.d.ts b/module_types/mv_first.d.ts index 7760590..5e16d53 100644 --- a/module_types/mv_first.d.ts +++ b/module_types/mv_first.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MvFirstRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvFirstRequestConfig extends RequestBaseConfig { + area?: string + limit?: number +} diff --git a/module_types/mv_sub.d.ts b/module_types/mv_sub.d.ts index 3be96f3..25fc4c0 100644 --- a/module_types/mv_sub.d.ts +++ b/module_types/mv_sub.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MvSubRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvSubRequestConfig extends RequestBaseConfig { + t: 0 | 1 + mvid: string +} diff --git a/module_types/mv_sublist.d.ts b/module_types/mv_sublist.d.ts index 4a95af6..25723c2 100644 --- a/module_types/mv_sublist.d.ts +++ b/module_types/mv_sublist.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MvSublistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvSublistRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/mv_url.d.ts b/module_types/mv_url.d.ts index 07e8533..1ee3853 100644 --- a/module_types/mv_url.d.ts +++ b/module_types/mv_url.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface MvUrlRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface MvUrlRequestConfig extends RequestBaseConfig { + id?: string + r?: string +} diff --git a/module_types/personal_fm.d.ts b/module_types/personal_fm.d.ts index d777ee3..418bd57 100644 --- a/module_types/personal_fm.d.ts +++ b/module_types/personal_fm.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PersonalFmRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PersonalFmRequestConfig = RequestBaseConfig diff --git a/module_types/personalized.d.ts b/module_types/personalized.d.ts index 115c805..725b410 100644 --- a/module_types/personalized.d.ts +++ b/module_types/personalized.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface PersonalizedRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PersonalizedRequestConfig extends RequestBaseConfig { + limit?: number +} diff --git a/module_types/personalized_djprogram.d.ts b/module_types/personalized_djprogram.d.ts index 97742ca..9b58d19 100644 --- a/module_types/personalized_djprogram.d.ts +++ b/module_types/personalized_djprogram.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PersonalizedDjprogramRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PersonalizedDjprogramRequestConfig = RequestBaseConfig diff --git a/module_types/personalized_mv.d.ts b/module_types/personalized_mv.d.ts index 2aaeee9..ea24f35 100644 --- a/module_types/personalized_mv.d.ts +++ b/module_types/personalized_mv.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PersonalizedMvRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PersonalizedMvRequestConfig = RequestBaseConfig diff --git a/module_types/personalized_newsong.d.ts b/module_types/personalized_newsong.d.ts index adf62d4..e789fa5 100644 --- a/module_types/personalized_newsong.d.ts +++ b/module_types/personalized_newsong.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PersonalizedNewsongRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PersonalizedNewsongRequestConfig = RequestBaseConfig diff --git a/module_types/personalized_privatecontent.d.ts b/module_types/personalized_privatecontent.d.ts index 9e564e2..7346abb 100644 --- a/module_types/personalized_privatecontent.d.ts +++ b/module_types/personalized_privatecontent.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PersonalizedPrivatecontentRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PersonalizedPrivatecontentRequestConfig = RequestBaseConfig diff --git a/module_types/personalized_privatecontent_list.d.ts b/module_types/personalized_privatecontent_list.d.ts index 9bbf804..520bcd6 100644 --- a/module_types/personalized_privatecontent_list.d.ts +++ b/module_types/personalized_privatecontent_list.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface PersonalizedPrivatecontentListRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PersonalizedPrivatecontentListRequestConfig + extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/playlist_catlist.d.ts b/module_types/playlist_catlist.d.ts index c170cc2..b149857 100644 --- a/module_types/playlist_catlist.d.ts +++ b/module_types/playlist_catlist.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PlaylistCatlistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PlaylistCatlistRequestConfig = RequestBaseConfig diff --git a/module_types/playlist_create.d.ts b/module_types/playlist_create.d.ts index 19c9540..3ff0548 100644 --- a/module_types/playlist_create.d.ts +++ b/module_types/playlist_create.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface PlaylistCreateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistCreateRequestConfig extends RequestBaseConfig { + name: string + privacy: 0 | 10 +} diff --git a/module_types/playlist_delete.d.ts b/module_types/playlist_delete.d.ts index ed832b4..9e488f1 100644 --- a/module_types/playlist_delete.d.ts +++ b/module_types/playlist_delete.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface PlaylistDeleteRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistDeleteRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/playlist_desc_update.d.ts b/module_types/playlist_desc_update.d.ts index 5f8ed0c..561a55c 100644 --- a/module_types/playlist_desc_update.d.ts +++ b/module_types/playlist_desc_update.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface PlaylistDescUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistDescUpdateRequestConfig extends RequestBaseConfig { + id: string + desc: string +} diff --git a/module_types/playlist_detail.d.ts b/module_types/playlist_detail.d.ts index a507a14..93667a4 100644 --- a/module_types/playlist_detail.d.ts +++ b/module_types/playlist_detail.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface PlaylistDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistDetailRequestConfig extends RequestBaseConfig { + id: string + s?: number +} diff --git a/module_types/playlist_hot.d.ts b/module_types/playlist_hot.d.ts index e5da7ce..984f794 100644 --- a/module_types/playlist_hot.d.ts +++ b/module_types/playlist_hot.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface PlaylistHotRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type PlaylistHotRequestConfig = RequestBaseConfig diff --git a/module_types/playlist_name_update.d.ts b/module_types/playlist_name_update.d.ts index 2226348..ffe30cd 100644 --- a/module_types/playlist_name_update.d.ts +++ b/module_types/playlist_name_update.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface PlaylistNameUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistNameUpdateRequestConfig extends RequestBaseConfig { + id: string + name: string +} diff --git a/module_types/playlist_order_update.d.ts b/module_types/playlist_order_update.d.ts index 8efb247..eaf41f5 100644 --- a/module_types/playlist_order_update.d.ts +++ b/module_types/playlist_order_update.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface PlaylistOrderUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistOrderUpdateRequestConfig extends RequestBaseConfig { + ids?: string +} diff --git a/module_types/playlist_subscribe.d.ts b/module_types/playlist_subscribe.d.ts index 94a15e4..1dc6809 100644 --- a/module_types/playlist_subscribe.d.ts +++ b/module_types/playlist_subscribe.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface PlaylistSubscribeRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistSubscribeRequestConfig extends RequestBaseConfig { + t: 0 | 1 + id: string +} diff --git a/module_types/playlist_subscribers.d.ts b/module_types/playlist_subscribers.d.ts index ca03bdb..5ae595a 100644 --- a/module_types/playlist_subscribers.d.ts +++ b/module_types/playlist_subscribers.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface PlaylistSubscribersRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistSubscribersRequestConfig extends RequestBaseConfig { + id?: string + limit?: number + offset?: number +} diff --git a/module_types/playlist_tags_update.d.ts b/module_types/playlist_tags_update.d.ts index a718304..fade63e 100644 --- a/module_types/playlist_tags_update.d.ts +++ b/module_types/playlist_tags_update.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface PlaylistTagsUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistTagsUpdateRequestConfig extends RequestBaseConfig { + id: string + tags: string +} diff --git a/module_types/playlist_tracks.d.ts b/module_types/playlist_tracks.d.ts index 7eecdcd..ddfaa65 100644 --- a/module_types/playlist_tracks.d.ts +++ b/module_types/playlist_tracks.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface PlaylistTracksRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistTracksRequestConfig extends RequestBaseConfig { + op: 'add' | 'del' + pid: string + tracks: string +} diff --git a/module_types/playlist_update.d.ts b/module_types/playlist_update.d.ts index a8b01b7..b841bf3 100644 --- a/module_types/playlist_update.d.ts +++ b/module_types/playlist_update.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface PlaylistUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaylistUpdateRequestConfig extends RequestBaseConfig { + id: string + name: string + desc?: string + tags?: string +} diff --git a/module_types/playmode_intelligence_list.d.ts b/module_types/playmode_intelligence_list.d.ts index dcc8f73..ca5da95 100644 --- a/module_types/playmode_intelligence_list.d.ts +++ b/module_types/playmode_intelligence_list.d.ts @@ -1,5 +1,9 @@ import { RequestBaseConfig } from './base' - export interface PlaymodeIntelligenceListRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface PlaymodeIntelligenceListRequestConfig + extends RequestBaseConfig { + id: string + pid: string + sid?: string + count?: number +} diff --git a/module_types/program_recommend.d.ts b/module_types/program_recommend.d.ts index 87aee9b..454e368 100644 --- a/module_types/program_recommend.d.ts +++ b/module_types/program_recommend.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface ProgramRecommendRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface ProgramRecommendRequestConfig extends RequestBaseConfig { + type: string + limit?: number + offset?: number +} diff --git a/module_types/rebind.d.ts b/module_types/rebind.d.ts index 00688db..6c37623 100644 --- a/module_types/rebind.d.ts +++ b/module_types/rebind.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface RebindRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface RebindRequestConfig extends RequestBaseConfig { + captcha: string + phone: string + oldcaptcha: string + ctcode?: string +} diff --git a/module_types/recommend_resource.d.ts b/module_types/recommend_resource.d.ts index 45f2dfa..2452287 100644 --- a/module_types/recommend_resource.d.ts +++ b/module_types/recommend_resource.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface RecommendResourceRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type RecommendResourceRequestConfig = RequestBaseConfig diff --git a/module_types/recommend_songs.d.ts b/module_types/recommend_songs.d.ts index 3d42bbe..2faba2e 100644 --- a/module_types/recommend_songs.d.ts +++ b/module_types/recommend_songs.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface RecommendSongsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type RecommendSongsRequestConfig = RequestBaseConfig diff --git a/module_types/register_cellphone.d.ts b/module_types/register_cellphone.d.ts index 60181da..a04e323 100644 --- a/module_types/register_cellphone.d.ts +++ b/module_types/register_cellphone.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface RegisterCellphoneRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface RegisterCellphoneRequestConfig extends RequestBaseConfig { + captcha: string + phone: string + password: string + nickname: string +} diff --git a/module_types/related_allvideo.d.ts b/module_types/related_allvideo.d.ts index 04f1c84..6f8685b 100644 --- a/module_types/related_allvideo.d.ts +++ b/module_types/related_allvideo.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface RelatedAllvideoRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface RelatedAllvideoRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/related_playlist.d.ts b/module_types/related_playlist.d.ts index 446b6a6..135f98e 100644 --- a/module_types/related_playlist.d.ts +++ b/module_types/related_playlist.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface RelatedPlaylistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface RelatedPlaylistRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/resource_like.d.ts b/module_types/resource_like.d.ts index ad10b06..872d845 100644 --- a/module_types/resource_like.d.ts +++ b/module_types/resource_like.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface ResourceLikeRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface ResourceLikeRequestConfig extends RequestBaseConfig { + t: 0 | 1 + type: 1 | 4 | 5 | 6 + id?: string + threadId?: string +} diff --git a/module_types/scrobble.d.ts b/module_types/scrobble.d.ts index 2349dcf..81ce07e 100644 --- a/module_types/scrobble.d.ts +++ b/module_types/scrobble.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface ScrobbleRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface ScrobbleRequestConfig extends RequestBaseConfig { + id: string + sourceid: string + time: string +} diff --git a/module_types/search.d.ts b/module_types/search.d.ts index 9114219..c73f8a4 100644 --- a/module_types/search.d.ts +++ b/module_types/search.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface SearchRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SearchRequestConfig extends RequestBaseConfig { + keywords: string + type?: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014 + limit?: string + offset?: string +} diff --git a/module_types/search_default.d.ts b/module_types/search_default.d.ts index 6a901ab..3aa10e5 100644 --- a/module_types/search_default.d.ts +++ b/module_types/search_default.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface SearchDefaultRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type SearchDefaultRequestConfig = RequestBaseConfig diff --git a/module_types/search_hot.d.ts b/module_types/search_hot.d.ts index 5e4eb57..1be19a0 100644 --- a/module_types/search_hot.d.ts +++ b/module_types/search_hot.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface SearchHotRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type SearchHotRequestConfig = RequestBaseConfig diff --git a/module_types/search_hot_detail.d.ts b/module_types/search_hot_detail.d.ts index 92b699d..5bdf465 100644 --- a/module_types/search_hot_detail.d.ts +++ b/module_types/search_hot_detail.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface SearchHotDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type SearchHotDetailRequestConfig = RequestBaseConfig diff --git a/module_types/search_multimatch.d.ts b/module_types/search_multimatch.d.ts index 21f6d47..c552100 100644 --- a/module_types/search_multimatch.d.ts +++ b/module_types/search_multimatch.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface SearchMultimatchRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SearchMultimatchRequestConfig extends RequestBaseConfig { + type?: number + keywords: string +} diff --git a/module_types/search_suggest.d.ts b/module_types/search_suggest.d.ts index acd4a1d..32bc669 100644 --- a/module_types/search_suggest.d.ts +++ b/module_types/search_suggest.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface SearchSuggestRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SearchSuggestRequestConfig extends RequestBaseConfig { + keywords: string + type?: 'mobile' | 'web' +} diff --git a/module_types/send_playlist.d.ts b/module_types/send_playlist.d.ts index 04afcaf..b20674b 100644 --- a/module_types/send_playlist.d.ts +++ b/module_types/send_playlist.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface SendPlaylistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SendPlaylistRequestConfig extends RequestBaseConfig { + playlist: string + msg: string + user_ids: string +} diff --git a/module_types/send_text.d.ts b/module_types/send_text.d.ts index c1e7000..ab53c7a 100644 --- a/module_types/send_text.d.ts +++ b/module_types/send_text.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface SendTextRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SendTextRequestConfig extends RequestBaseConfig { + msg: string + id: string + user_ids: string +} diff --git a/module_types/setting.d.ts b/module_types/setting.d.ts index faaecaf..8011c59 100644 --- a/module_types/setting.d.ts +++ b/module_types/setting.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface SettingRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type SettingRequestConfig = RequestBaseConfig diff --git a/module_types/share_resource.d.ts b/module_types/share_resource.d.ts index 733c036..0b55201 100644 --- a/module_types/share_resource.d.ts +++ b/module_types/share_resource.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface ShareResourceRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface ShareResourceRequestConfig extends RequestBaseConfig { + type?: 'song' | 'playlist' | 'mv' | 'djprogram' | 'djradio' + msg?: string + id?: string +} diff --git a/module_types/simi_artist.d.ts b/module_types/simi_artist.d.ts index 9de9e87..47db746 100644 --- a/module_types/simi_artist.d.ts +++ b/module_types/simi_artist.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface SimiArtistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SimiArtistRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/simi_mv.d.ts b/module_types/simi_mv.d.ts index 3c2699f..3cf7e8d 100644 --- a/module_types/simi_mv.d.ts +++ b/module_types/simi_mv.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface SimiMvRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SimiMvRequestConfig extends RequestBaseConfig { + mvid: string +} diff --git a/module_types/simi_playlist.d.ts b/module_types/simi_playlist.d.ts index 2701ad5..20b26bc 100644 --- a/module_types/simi_playlist.d.ts +++ b/module_types/simi_playlist.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface SimiPlaylistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SimiPlaylistRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: string +} diff --git a/module_types/simi_song.d.ts b/module_types/simi_song.d.ts index 84882c9..f0f7736 100644 --- a/module_types/simi_song.d.ts +++ b/module_types/simi_song.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface SimiSongRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SimiSongRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number +} diff --git a/module_types/simi_user.d.ts b/module_types/simi_user.d.ts index 5090083..377715f 100644 --- a/module_types/simi_user.d.ts +++ b/module_types/simi_user.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface SimiUserRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SimiUserRequestConfig extends RequestBaseConfig { + id: string + limit?: number + offset?: number +} diff --git a/module_types/song_detail.d.ts b/module_types/song_detail.d.ts index 3eb092d..14b6eb3 100644 --- a/module_types/song_detail.d.ts +++ b/module_types/song_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface SongDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SongDetailRequestConfig extends RequestBaseConfig { + ids: string +} diff --git a/module_types/song_order_update.d.ts b/module_types/song_order_update.d.ts index 237b3ad..71db5ce 100644 --- a/module_types/song_order_update.d.ts +++ b/module_types/song_order_update.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface SongOrderUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SongOrderUpdateRequestConfig extends RequestBaseConfig { + pid: string + ids: string +} diff --git a/module_types/song_url.d.ts b/module_types/song_url.d.ts index 984bd77..f59d37e 100644 --- a/module_types/song_url.d.ts +++ b/module_types/song_url.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface SongUrlRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface SongUrlRequestConfig extends RequestBaseConfig { + id: string + br?: number +} diff --git a/module_types/top_album.d.ts b/module_types/top_album.d.ts index 7ea69a7..fac74fd 100644 --- a/module_types/top_album.d.ts +++ b/module_types/top_album.d.ts @@ -1,5 +1,10 @@ import { RequestBaseConfig } from './base' - export interface TopAlbumRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopAlbumRequestConfig extends RequestBaseConfig { + area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' + limit?: number + offset?: number + type?: string + year?: string + mouth?: string +} diff --git a/module_types/top_artists.d.ts b/module_types/top_artists.d.ts index 55dd8df..6750cc6 100644 --- a/module_types/top_artists.d.ts +++ b/module_types/top_artists.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface TopArtistsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopArtistsRequestConfig extends RequestBaseConfig { + limit?: string + offset?: string +} diff --git a/module_types/top_list.d.ts b/module_types/top_list.d.ts index 088f1b1..f0431cb 100644 --- a/module_types/top_list.d.ts +++ b/module_types/top_list.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface TopListRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopListRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/top_mv.d.ts b/module_types/top_mv.d.ts index 20dfedd..4594ef9 100644 --- a/module_types/top_mv.d.ts +++ b/module_types/top_mv.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface TopMvRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopMvRequestConfig extends RequestBaseConfig { + area?: string + limit?: number + offset?: number +} diff --git a/module_types/top_playlist.d.ts b/module_types/top_playlist.d.ts index f8fa524..1b12857 100644 --- a/module_types/top_playlist.d.ts +++ b/module_types/top_playlist.d.ts @@ -1,5 +1,8 @@ import { RequestBaseConfig } from './base' - export interface TopPlaylistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopPlaylistRequestConfig extends RequestBaseConfig { + cat?: string + order?: 'hot' | 'new' + limit?: number + offset?: number +} diff --git a/module_types/top_playlist_highquality.d.ts b/module_types/top_playlist_highquality.d.ts index a9284aa..74b84cf 100644 --- a/module_types/top_playlist_highquality.d.ts +++ b/module_types/top_playlist_highquality.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface TopPlaylistHighqualityRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopPlaylistHighqualityRequestConfig extends RequestBaseConfig { + cat?: string + before?: number + limit?: number +} diff --git a/module_types/top_song.d.ts b/module_types/top_song.d.ts index 30af7cc..a6276a3 100644 --- a/module_types/top_song.d.ts +++ b/module_types/top_song.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface TopSongRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface TopSongRequestConfig extends RequestBaseConfig { + type: 0 | 7 | 96 | 8 | 16 +} diff --git a/module_types/toplist.d.ts b/module_types/toplist.d.ts index 96bdb5c..87cd7ce 100644 --- a/module_types/toplist.d.ts +++ b/module_types/toplist.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface ToplistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type ToplistRequestConfig = RequestBaseConfig diff --git a/module_types/toplist_artist.d.ts b/module_types/toplist_artist.d.ts index 61a70b8..b533f33 100644 --- a/module_types/toplist_artist.d.ts +++ b/module_types/toplist_artist.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface ToplistArtistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface ToplistArtistRequestConfig extends RequestBaseConfig { + type: number +} diff --git a/module_types/toplist_detail.d.ts b/module_types/toplist_detail.d.ts index b10fd37..cda2396 100644 --- a/module_types/toplist_detail.d.ts +++ b/module_types/toplist_detail.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface ToplistDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type ToplistDetailRequestConfig = RequestBaseConfig diff --git a/module_types/user_audio.d.ts b/module_types/user_audio.d.ts index b5493be..fcd9a68 100644 --- a/module_types/user_audio.d.ts +++ b/module_types/user_audio.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface UserAudioRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserAudioRequestConfig extends RequestBaseConfig { + uid: string +} diff --git a/module_types/user_cloud.d.ts b/module_types/user_cloud.d.ts index 4134482..1497b9c 100644 --- a/module_types/user_cloud.d.ts +++ b/module_types/user_cloud.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface UserCloudRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserCloudRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number +} diff --git a/module_types/user_cloud_del.d.ts b/module_types/user_cloud_del.d.ts index a00c0b1..a9e460a 100644 --- a/module_types/user_cloud_del.d.ts +++ b/module_types/user_cloud_del.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface UserCloudDelRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserCloudDelRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/user_cloud_detail.d.ts b/module_types/user_cloud_detail.d.ts index ff5df5a..acf7cc5 100644 --- a/module_types/user_cloud_detail.d.ts +++ b/module_types/user_cloud_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface UserCloudDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserCloudDetailRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/user_detail.d.ts b/module_types/user_detail.d.ts index ce857f8..cabd7d7 100644 --- a/module_types/user_detail.d.ts +++ b/module_types/user_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface UserDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserDetailRequestConfig extends RequestBaseConfig { + uid: string +} diff --git a/module_types/user_dj.d.ts b/module_types/user_dj.d.ts index 47f3e9e..638710a 100644 --- a/module_types/user_dj.d.ts +++ b/module_types/user_dj.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface UserDjRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserDjRequestConfig extends RequestBaseConfig { + limit?: number + offset?: number + uid: string +} diff --git a/module_types/user_event.d.ts b/module_types/user_event.d.ts index e2eeba8..a3c4534 100644 --- a/module_types/user_event.d.ts +++ b/module_types/user_event.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface UserEventRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserEventRequestConfig extends RequestBaseConfig { + lasttime?: number + limit?: number + uid: string +} diff --git a/module_types/user_followeds.d.ts b/module_types/user_followeds.d.ts index 02484d7..b5d365f 100644 --- a/module_types/user_followeds.d.ts +++ b/module_types/user_followeds.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface UserFollowedsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserFollowedsRequestConfig extends RequestBaseConfig { + uid: string + lasttime?: number + limit?: number +} diff --git a/module_types/user_follows.d.ts b/module_types/user_follows.d.ts index 1d32455..917c9d2 100644 --- a/module_types/user_follows.d.ts +++ b/module_types/user_follows.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface UserFollowsRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserFollowsRequestConfig extends RequestBaseConfig { + uid: string + offset?: number + limit?: number +} diff --git a/module_types/user_playlist.d.ts b/module_types/user_playlist.d.ts index 2242a9a..320a9a2 100644 --- a/module_types/user_playlist.d.ts +++ b/module_types/user_playlist.d.ts @@ -1,5 +1,7 @@ import { RequestBaseConfig } from './base' - export interface UserPlaylistRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserPlaylistRequestConfig extends RequestBaseConfig { + uid: number + limit?: number + offset?: number +} diff --git a/module_types/user_record.d.ts b/module_types/user_record.d.ts index 0ab4367..bbe4973 100644 --- a/module_types/user_record.d.ts +++ b/module_types/user_record.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface UserRecordRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserRecordRequestConfig extends RequestBaseConfig { + uid: string + type: 1 | 0 +} diff --git a/module_types/user_subcount.d.ts b/module_types/user_subcount.d.ts index 6e2d462..6441b3c 100644 --- a/module_types/user_subcount.d.ts +++ b/module_types/user_subcount.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface UserSubcountRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type UserSubcountRequestConfig = RequestBaseConfig diff --git a/module_types/user_update.d.ts b/module_types/user_update.d.ts index a73b3a6..ea85016 100644 --- a/module_types/user_update.d.ts +++ b/module_types/user_update.d.ts @@ -1,5 +1,10 @@ import { RequestBaseConfig } from './base' - export interface UserUpdateRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface UserUpdateRequestConfig extends RequestBaseConfig { + birthday: string + city: string + gender: string + nickname: string + province: string + signature: string +} diff --git a/module_types/video_category_list.d.ts b/module_types/video_category_list.d.ts index 70a6654..92ee94d 100644 --- a/module_types/video_category_list.d.ts +++ b/module_types/video_category_list.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface VideoCategoryListRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoCategoryListRequestConfig extends RequestBaseConfig { + offset?: number + limit?: number +} diff --git a/module_types/video_detail.d.ts b/module_types/video_detail.d.ts index ccede5a..610c10c 100644 --- a/module_types/video_detail.d.ts +++ b/module_types/video_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface VideoDetailRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoDetailRequestConfig extends RequestBaseConfig { + id: string +} diff --git a/module_types/video_detail_info.d.ts b/module_types/video_detail_info.d.ts index d89e69d..2eca79a 100644 --- a/module_types/video_detail_info.d.ts +++ b/module_types/video_detail_info.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface VideoDetailInfoRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoDetailInfoRequestConfig extends RequestBaseConfig { + vid: string +} diff --git a/module_types/video_group.d.ts b/module_types/video_group.d.ts index 3137544..fc15ec6 100644 --- a/module_types/video_group.d.ts +++ b/module_types/video_group.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface VideoGroupRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoGroupRequestConfig extends RequestBaseConfig { + id: string + offset?: number +} diff --git a/module_types/video_group_list.d.ts b/module_types/video_group_list.d.ts index d63657c..e13f889 100644 --- a/module_types/video_group_list.d.ts +++ b/module_types/video_group_list.d.ts @@ -1,5 +1,3 @@ import { RequestBaseConfig } from './base' - export interface VideoGroupListRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export type VideoGroupListRequestConfig = RequestBaseConfig diff --git a/module_types/video_sub.d.ts b/module_types/video_sub.d.ts index aaed0da..70822f0 100644 --- a/module_types/video_sub.d.ts +++ b/module_types/video_sub.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface VideoSubRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoSubRequestConfig extends RequestBaseConfig { + t?: 1 | 0 + id: string +} diff --git a/module_types/video_timeline_all.d.ts b/module_types/video_timeline_all.d.ts index 541e859..e1c2bc4 100644 --- a/module_types/video_timeline_all.d.ts +++ b/module_types/video_timeline_all.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface VideoTimelineAllRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoTimelineAllRequestConfig extends RequestBaseConfig { + offset?: number +} diff --git a/module_types/video_timeline_recommend.d.ts b/module_types/video_timeline_recommend.d.ts index 760f213..308c118 100644 --- a/module_types/video_timeline_recommend.d.ts +++ b/module_types/video_timeline_recommend.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface VideoTimelineRecommendRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoTimelineRecommendRequestConfig extends RequestBaseConfig { + offset?: number +} diff --git a/module_types/video_url.d.ts b/module_types/video_url.d.ts index 7591cb2..73698ab 100644 --- a/module_types/video_url.d.ts +++ b/module_types/video_url.d.ts @@ -1,5 +1,6 @@ import { RequestBaseConfig } from './base' - export interface VideoUrlRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface VideoUrlRequestConfig extends RequestBaseConfig { + id: string + res?: number +} diff --git a/module_types/weblog.d.ts b/module_types/weblog.d.ts index 4ad85b8..f228e01 100644 --- a/module_types/weblog.d.ts +++ b/module_types/weblog.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' - export interface WeblogRequestConfig extends RequestBaseConfig { - } - \ No newline at end of file +export interface WeblogRequestConfig extends RequestBaseConfig { + data?: { [index: string]: unknown } +} From c6312abbadae31131ff603477c13ca2f18b68531 Mon Sep 17 00:00:00 2001 From: a632079 Date: Sat, 5 Sep 2020 16:31:13 +0800 Subject: [PATCH 08/11] feat: ts support --- interface.d.ts | 180 ++++++ main.d.ts | 670 ++++++++++++++++++++ module_types/base.d.ts | 1 + module_types/cellphone_existence_check.d.ts | 3 +- package.json | 1 + 5 files changed, 854 insertions(+), 1 deletion(-) create mode 100644 interface.d.ts diff --git a/interface.d.ts b/interface.d.ts new file mode 100644 index 0000000..63205d4 --- /dev/null +++ b/interface.d.ts @@ -0,0 +1,180 @@ +export * from './module_types/activate_init_profile' +export * from './module_types/album' +export * from './module_types/album_detail' +export * from './module_types/album_detail_dynamic' +export * from './module_types/album_list' +export * from './module_types/album_list_style' +export * from './module_types/album_new' +export * from './module_types/album_newest' +export * from './module_types/album_songsaleboard' +export * from './module_types/album_sub' +export * from './module_types/album_sublist' +export * from './module_types/artist_album' +export * from './module_types/artist_desc' +export * from './module_types/artist_list' +export * from './module_types/artist_mv' +export * from './module_types/artist_songs' +export * from './module_types/artist_sub' +export * from './module_types/artist_sublist' +export * from './module_types/artist_top_song' +export * from './module_types/artists' +export * from './module_types/avatar_upload' +export * from './module_types/banner' +export * from './module_types/batch' +export * from './module_types/captcha_sent' +export * from './module_types/captcha_verify' +export * from './module_types/cellphone_existence_check' +export * from './module_types/check_music' +export * from './module_types/cloudsearch' +export * from './module_types/comment' +export * from './module_types/comment_album' +export * from './module_types/comment_dj' +export * from './module_types/comment_event' +export * from './module_types/comment_floor' +export * from './module_types/comment_hot' +export * from './module_types/comment_hotwall_list' +export * from './module_types/comment_like' +export * from './module_types/comment_music' +export * from './module_types/comment_mv' +export * from './module_types/comment_playlist' +export * from './module_types/comment_video' +export * from './module_types/countries_code_list' +export * from './module_types/daily_signin' +export * from './module_types/digitalAlbum_ordering' +export * from './module_types/digitalAlbum_purchased' +export * from './module_types/dj_banner' +export * from './module_types/dj_category_excludehot' +export * from './module_types/dj_category_recommend' +export * from './module_types/dj_catelist' +export * from './module_types/dj_detail' +export * from './module_types/dj_hot' +export * from './module_types/dj_paygift' +export * from './module_types/dj_program' +export * from './module_types/dj_program_detail' +export * from './module_types/dj_program_toplist' +export * from './module_types/dj_program_toplist_hours' +export * from './module_types/dj_radio_hot' +export * from './module_types/dj_recommend' +export * from './module_types/dj_recommend_type' +export * from './module_types/dj_sub' +export * from './module_types/dj_sublist' +export * from './module_types/dj_today_perfered' +export * from './module_types/dj_toplist' +export * from './module_types/dj_toplist_hours' +export * from './module_types/dj_toplist_newcomer' +export * from './module_types/dj_toplist_pay' +export * from './module_types/dj_toplist_popular' +export * from './module_types/event' +export * from './module_types/event_del' +export * from './module_types/event_forward' +export * from './module_types/fm_trash' +export * from './module_types/follow' +export * from './module_types/history_recommend_songs' +export * from './module_types/history_recommend_songs_detail' +export * from './module_types/homepage_block_page' +export * from './module_types/homepage_dragon_ball' +export * from './module_types/hot_topic' +export * from './module_types/like' +export * from './module_types/likelist' +export * from './module_types/login' +export * from './module_types/login_cellphone' +export * from './module_types/login_refresh' +export * from './module_types/login_status' +export * from './module_types/logout' +export * from './module_types/lyric' +export * from './module_types/msg_comments' +export * from './module_types/msg_forwards' +export * from './module_types/msg_notices' +export * from './module_types/msg_private' +export * from './module_types/msg_private_history' +export * from './module_types/mv_all' +export * from './module_types/mv_detail' +export * from './module_types/mv_detail_info' +export * from './module_types/mv_exclusive_rcmd' +export * from './module_types/mv_first' +export * from './module_types/mv_sub' +export * from './module_types/mv_sublist' +export * from './module_types/mv_url' +export * from './module_types/personal_fm' +export * from './module_types/personalized' +export * from './module_types/personalized_djprogram' +export * from './module_types/personalized_mv' +export * from './module_types/personalized_newsong' +export * from './module_types/personalized_privatecontent' +export * from './module_types/personalized_privatecontent_list' +export * from './module_types/playlist_catlist' +export * from './module_types/playlist_cover_update' +export * from './module_types/playlist_create' +export * from './module_types/playlist_delete' +export * from './module_types/playlist_desc_update' +export * from './module_types/playlist_detail' +export * from './module_types/playlist_hot' +export * from './module_types/playlist_name_update' +export * from './module_types/playlist_order_update' +export * from './module_types/playlist_subscribe' +export * from './module_types/playlist_subscribers' +export * from './module_types/playlist_tags_update' +export * from './module_types/playlist_tracks' +export * from './module_types/playlist_update' +export * from './module_types/playmode_intelligence_list' +export * from './module_types/program_recommend' +export * from './module_types/rebind' +export * from './module_types/recommend_resource' +export * from './module_types/recommend_songs' +export * from './module_types/register_cellphone' +export * from './module_types/related_allvideo' +export * from './module_types/related_playlist' +export * from './module_types/resource_like' +export * from './module_types/scrobble' +export * from './module_types/search' +export * from './module_types/search_default' +export * from './module_types/search_hot' +export * from './module_types/search_hot_detail' +export * from './module_types/search_multimatch' +export * from './module_types/search_suggest' +export * from './module_types/send_playlist' +export * from './module_types/send_text' +export * from './module_types/setting' +export * from './module_types/share_resource' +export * from './module_types/simi_artist' +export * from './module_types/simi_mv' +export * from './module_types/simi_playlist' +export * from './module_types/simi_song' +export * from './module_types/simi_user' +export * from './module_types/song_detail' +export * from './module_types/song_order_update' +export * from './module_types/song_url' +export * from './module_types/top_album' +export * from './module_types/top_artists' +export * from './module_types/top_list' +export * from './module_types/top_mv' +export * from './module_types/top_playlist' +export * from './module_types/top_playlist_highquality' +export * from './module_types/top_song' +export * from './module_types/toplist' +export * from './module_types/toplist_artist' +export * from './module_types/toplist_detail' +export * from './module_types/user_audio' +export * from './module_types/user_cloud' +export * from './module_types/user_cloud_del' +export * from './module_types/user_cloud_detail' +export * from './module_types/user_detail' +export * from './module_types/user_dj' +export * from './module_types/user_event' +export * from './module_types/user_followeds' +export * from './module_types/user_follows' +export * from './module_types/user_playlist' +export * from './module_types/user_record' +export * from './module_types/user_subcount' +export * from './module_types/user_update' +export * from './module_types/video_category_list' +export * from './module_types/video_detail' +export * from './module_types/video_detail_info' +export * from './module_types/video_group' +export * from './module_types/video_group_list' +export * from './module_types/video_sub' +export * from './module_types/video_timeline_all' +export * from './module_types/video_timeline_recommend' +export * from './module_types/video_url' +export * from './module_types/weblog' +export * from './module_types/base' diff --git a/main.d.ts b/main.d.ts index f3578a9..60bc22e 100644 --- a/main.d.ts +++ b/main.d.ts @@ -1,5 +1,675 @@ +export * from './interface' +import { + ActivateInitProfileRequestConfig, + AlbumRequestConfig, + AlbumDetailRequestConfig, + AlbumDetailDynamicRequestConfig, + AlbumListRequestConfig, + AlbumListStyleRequestConfig, + AlbumNewRequestConfig, + AlbumNewestRequestConfig, + AlbumSongSaleBoardRequestConfig, + AlbumSubRequestConfig, + AlbumSubListRequestConfig, + ArtistAlbumRequestConfig, + ArtistDescRequestConfig, + ArtistListRequestConfig, + ArtistMVRequestConfig, + ArtistSongsRequestConfig, + ArtistSubRequestConfig, + ArtistSubListRequestConfig, + ArtistTopSongRequestConfig, + ArtistsRequestConfig, + // AvatarUploadRequestConfig, + BannerRequestConfig, + BatchRequestConfig, + CaptchaSentRequestConfig, + CaptchaVerifyRequestConfig, + CellphoneExistenceCheckRequestConfig, + CheckMusicRequestConfig, + CloudSearchRequestConfig, + CommentRequestConfig, + CommentAlbumRequestConfig, + CommentDjRequestConfig, + CommentEventRequestConfig, + CommentFloorRequestConfig, + CommentHotRequestConfig, + CommentHotwallListRequestConfig, + CommentLikeRequestConfig, + CommentMusicRequestConfig, + CommentMvRequestConfig, + CommentPlaylistRequestConfig, + CommentVideoRequestConfig, + CountriesCodeListRequestConfig, + DailySigninRequestConfig, + DigitalAlbumOrderingRequestConfig, + DigitalAlbumPurchasedRequestConfig, + DjBannerRequestConfig, + DjCategoryExcludehotRequestConfig, + DjCategoryRecommendRequestConfig, + DjCatelistRequestConfig, + DjDetailRequestConfig, + DjHotRequestConfig, + DjPaygiftRequestConfig, + DjProgramRequestConfig, + DjProgramDetailRequestConfig, + DjProgramToplistRequestConfig, + DjProgramToplistHoursRequestConfig, + DjRadioHotRequestConfig, + DjRecommendRequestConfig, + DjRecommendTypeRequestConfig, + DjSubRequestConfig, + DjSublistRequestConfig, + DjTodayPerferedRequestConfig, + DjToplistRequestConfig, + DjToplistHoursRequestConfig, + DjToplistNewcomerRequestConfig, + DjToplistPayRequestConfig, + DjToplistPopularRequestConfig, + EventRequestConfig, + EventDelRequestConfig, + EventForwardRequestConfig, + FmTrashRequestConfig, + FollowRequestConfig, + HistoryRecommendSongsRequestConfig, + HistoryRecommendSongsDetailRequestConfig, + HomepageBlockPageRequestConfig, + HomepageDragonBallRequestConfig, + HotTopicRequestConfig, + LikeRequestConfig, + LikelistRequestConfig, + LoginRequestConfig, + LoginCellphoneRequestConfig, + LoginRefreshRequestConfig, + LoginStatusRequestConfig, + LogoutRequestConfig, + LyricRequestConfig, + MsgCommentsRequestConfig, + MsgForwardsRequestConfig, + MsgNoticesRequestConfig, + MsgPrivateRequestConfig, + MsgPrivateHistoryRequestConfig, + MvAllRequestConfig, + MvDetailRequestConfig, + MvDetailInfoRequestConfig, + MvExclusiveRcmdRequestConfig, + MvFirstRequestConfig, + MvSubRequestConfig, + MvSublistRequestConfig, + MvUrlRequestConfig, + PersonalFmRequestConfig, + PersonalizedRequestConfig, + PersonalizedDjprogramRequestConfig, + PersonalizedMvRequestConfig, + PersonalizedNewsongRequestConfig, + PersonalizedPrivatecontentRequestConfig, + PersonalizedPrivatecontentListRequestConfig, + PlaylistCatlistRequestConfig, + // PlaylistCoverUpdateRequestConfig, + PlaylistCreateRequestConfig, + PlaylistDeleteRequestConfig, + PlaylistDescUpdateRequestConfig, + PlaylistDetailRequestConfig, + PlaylistHotRequestConfig, + PlaylistNameUpdateRequestConfig, + PlaylistOrderUpdateRequestConfig, + PlaylistSubscribeRequestConfig, + PlaylistSubscribersRequestConfig, + PlaylistTagsUpdateRequestConfig, + PlaylistTracksRequestConfig, + PlaylistUpdateRequestConfig, + PlaymodeIntelligenceListRequestConfig, + ProgramRecommendRequestConfig, + RebindRequestConfig, + RecommendResourceRequestConfig, + RecommendSongsRequestConfig, + RegisterCellphoneRequestConfig, + RelatedAllvideoRequestConfig, + RelatedPlaylistRequestConfig, + ResourceLikeRequestConfig, + ScrobbleRequestConfig, + SearchRequestConfig, + SearchDefaultRequestConfig, + SearchHotRequestConfig, + SearchHotDetailRequestConfig, + SearchMultimatchRequestConfig, + SearchSuggestRequestConfig, + SendPlaylistRequestConfig, + SendTextRequestConfig, + SettingRequestConfig, + ShareResourceRequestConfig, + SimiArtistRequestConfig, + SimiMvRequestConfig, + SimiPlaylistRequestConfig, + SimiSongRequestConfig, + SimiUserRequestConfig, + SongDetailRequestConfig, + SongOrderUpdateRequestConfig, + SongUrlRequestConfig, + TopAlbumRequestConfig, + TopArtistsRequestConfig, + TopListRequestConfig, + TopMvRequestConfig, + TopPlaylistRequestConfig, + TopPlaylistHighqualityRequestConfig, + TopSongRequestConfig, + ToplistRequestConfig, + ToplistArtistRequestConfig, + ToplistDetailRequestConfig, + UserAudioRequestConfig, + UserCloudRequestConfig, + UserCloudDelRequestConfig, + UserCloudDetailRequestConfig, + UserDetailRequestConfig, + UserDjRequestConfig, + UserEventRequestConfig, + UserFollowedsRequestConfig, + UserFollowsRequestConfig, + UserPlaylistRequestConfig, + UserRecordRequestConfig, + UserSubcountRequestConfig, + UserUpdateRequestConfig, + VideoCategoryListRequestConfig, + VideoDetailRequestConfig, + VideoDetailInfoRequestConfig, + VideoGroupRequestConfig, + VideoGroupListRequestConfig, + VideoSubRequestConfig, + VideoTimelineAllRequestConfig, + VideoTimelineRecommendRequestConfig, + VideoUrlRequestConfig, + WeblogRequestConfig, + APIBaseResponse, +} from './interface' +// Start export interface Response { status: number // The Http Response Code body: T // API Response body cookie: string[] } + +interface SDKInstance { + activate_init_profile: ( + params: ActivateInitProfileRequestConfig, + ) => Promise> + album: (params: AlbumRequestConfig) => Promise> + album_detail: ( + params: AlbumDetailRequestConfig, + ) => Promise> + album_detail_dynamic: ( + params: AlbumDetailDynamicRequestConfig, + ) => Promise> + album_list: ( + params: AlbumListRequestConfig, + ) => Promise> + album_list_style: ( + params: AlbumListStyleRequestConfig, + ) => Promise> + album_new: ( + params: AlbumNewRequestConfig, + ) => Promise> + album_newest: ( + params: AlbumNewestRequestConfig, + ) => Promise> + album_songsaleboard: ( + params: AlbumSongSaleBoardRequestConfig, + ) => Promise> + album_sub: ( + params: AlbumSubRequestConfig, + ) => Promise> + album_sublist: ( + params: AlbumSubListRequestConfig, + ) => Promise> + artist_album: ( + params: ArtistAlbumRequestConfig, + ) => Promise> + artist_desc: ( + params: ArtistDescRequestConfig, + ) => Promise> + artist_list: ( + params: ArtistListRequestConfig, + ) => Promise> + artist_mv: ( + params: ArtistMVRequestConfig, + ) => Promise> + artist_songs: ( + params: ArtistSongsRequestConfig, + ) => Promise> + artist_sub: ( + params: ArtistSubRequestConfig, + ) => Promise> + artist_sublist: ( + params: ArtistSubListRequestConfig, + ) => Promise> + artist_top_song: ( + params: ArtistTopSongRequestConfig, + ) => Promise> + artists: (params: ArtistsRequestConfig) => Promise> + // avatar_upload: ( + // params: AvatarUploadRequestConfig, + //) => Promise> + banner: (params: BannerRequestConfig) => Promise> + batch: (params: BatchRequestConfig) => Promise> + captcha_sent: ( + params: CaptchaSentRequestConfig, + ) => Promise> + captcha_verify: ( + params: CaptchaVerifyRequestConfig, + ) => Promise> + cellphone_existence_check: ( + params: CellphoneExistenceCheckRequestConfig, + ) => Promise> + check_music: ( + params: CheckMusicRequestConfig, + ) => Promise> + cloudsearch: ( + params: CloudSearchRequestConfig, + ) => Promise> + comment: (params: CommentRequestConfig) => Promise> + comment_album: ( + params: CommentAlbumRequestConfig, + ) => Promise> + comment_dj: ( + params: CommentDjRequestConfig, + ) => Promise> + comment_event: ( + params: CommentEventRequestConfig, + ) => Promise> + comment_floor: ( + params: CommentFloorRequestConfig, + ) => Promise> + comment_hot: ( + params: CommentHotRequestConfig, + ) => Promise> + comment_hotwall_list: ( + params: CommentHotwallListRequestConfig, + ) => Promise> + comment_like: ( + params: CommentLikeRequestConfig, + ) => Promise> + comment_music: ( + params: CommentMusicRequestConfig, + ) => Promise> + comment_mv: ( + params: CommentMvRequestConfig, + ) => Promise> + comment_playlist: ( + params: CommentPlaylistRequestConfig, + ) => Promise> + comment_video: ( + params: CommentVideoRequestConfig, + ) => Promise> + countries_code_list: ( + params: CountriesCodeListRequestConfig, + ) => Promise> + daily_signin: ( + params: DailySigninRequestConfig, + ) => Promise> + digitalAlbum_ordering: ( + params: DigitalAlbumOrderingRequestConfig, + ) => Promise> + digitalAlbum_purchased: ( + params: DigitalAlbumPurchasedRequestConfig, + ) => Promise> + dj_banner: ( + params: DjBannerRequestConfig, + ) => Promise> + dj_category_excludehot: ( + params: DjCategoryExcludehotRequestConfig, + ) => Promise> + dj_category_recommend: ( + params: DjCategoryRecommendRequestConfig, + ) => Promise> + dj_catelist: ( + params: DjCatelistRequestConfig, + ) => Promise> + dj_detail: ( + params: DjDetailRequestConfig, + ) => Promise> + dj_hot: (params: DjHotRequestConfig) => Promise> + dj_paygift: ( + params: DjPaygiftRequestConfig, + ) => Promise> + dj_program: ( + params: DjProgramRequestConfig, + ) => Promise> + dj_program_detail: ( + params: DjProgramDetailRequestConfig, + ) => Promise> + dj_program_toplist: ( + params: DjProgramToplistRequestConfig, + ) => Promise> + dj_program_toplist_hours: ( + params: DjProgramToplistHoursRequestConfig, + ) => Promise> + dj_radio_hot: ( + params: DjRadioHotRequestConfig, + ) => Promise> + dj_recommend: ( + params: DjRecommendRequestConfig, + ) => Promise> + dj_recommend_type: ( + params: DjRecommendTypeRequestConfig, + ) => Promise> + dj_sub: (params: DjSubRequestConfig) => Promise> + dj_sublist: ( + params: DjSublistRequestConfig, + ) => Promise> + dj_today_perfered: ( + params: DjTodayPerferedRequestConfig, + ) => Promise> + dj_toplist: ( + params: DjToplistRequestConfig, + ) => Promise> + dj_toplist_hours: ( + params: DjToplistHoursRequestConfig, + ) => Promise> + dj_toplist_newcomer: ( + params: DjToplistNewcomerRequestConfig, + ) => Promise> + dj_toplist_pay: ( + params: DjToplistPayRequestConfig, + ) => Promise> + dj_toplist_popular: ( + params: DjToplistPopularRequestConfig, + ) => Promise> + event: (params: EventRequestConfig) => Promise> + event_del: ( + params: EventDelRequestConfig, + ) => Promise> + event_forward: ( + params: EventForwardRequestConfig, + ) => Promise> + fm_trash: (params: FmTrashRequestConfig) => Promise> + follow: (params: FollowRequestConfig) => Promise> + history_recommend_songs: ( + params: HistoryRecommendSongsRequestConfig, + ) => Promise> + history_recommend_songs_detail: ( + params: HistoryRecommendSongsDetailRequestConfig, + ) => Promise> + homepage_block_page: ( + params: HomepageBlockPageRequestConfig, + ) => Promise> + homepage_dragon_ball: ( + params: HomepageDragonBallRequestConfig, + ) => Promise> + hot_topic: ( + params: HotTopicRequestConfig, + ) => Promise> + like: (params: LikeRequestConfig) => Promise> + likelist: ( + params: LikelistRequestConfig, + ) => Promise> + login: (params: LoginRequestConfig) => Promise> + login_cellphone: ( + params: LoginCellphoneRequestConfig, + ) => Promise> + login_refresh: ( + params: LoginRefreshRequestConfig, + ) => Promise> + login_status: ( + params: LoginStatusRequestConfig, + ) => Promise> + logout: (params: LogoutRequestConfig) => Promise> + lyric: (params: LyricRequestConfig) => Promise> + msg_comments: ( + params: MsgCommentsRequestConfig, + ) => Promise> + msg_forwards: ( + params: MsgForwardsRequestConfig, + ) => Promise> + msg_notices: ( + params: MsgNoticesRequestConfig, + ) => Promise> + msg_private: ( + params: MsgPrivateRequestConfig, + ) => Promise> + msg_private_history: ( + params: MsgPrivateHistoryRequestConfig, + ) => Promise> + mv_all: (params: MvAllRequestConfig) => Promise> + mv_detail: ( + params: MvDetailRequestConfig, + ) => Promise> + mv_detail_info: ( + params: MvDetailInfoRequestConfig, + ) => Promise> + mv_exclusive_rcmd: ( + params: MvExclusiveRcmdRequestConfig, + ) => Promise> + mv_first: (params: MvFirstRequestConfig) => Promise> + mv_sub: (params: MvSubRequestConfig) => Promise> + mv_sublist: ( + params: MvSublistRequestConfig, + ) => Promise> + mv_url: (params: MvUrlRequestConfig) => Promise> + personal_fm: ( + params: PersonalFmRequestConfig, + ) => Promise> + personalized: ( + params: PersonalizedRequestConfig, + ) => Promise> + personalized_djprogram: ( + params: PersonalizedDjprogramRequestConfig, + ) => Promise> + personalized_mv: ( + params: PersonalizedMvRequestConfig, + ) => Promise> + personalized_newsong: ( + params: PersonalizedNewsongRequestConfig, + ) => Promise> + personalized_privatecontent: ( + params: PersonalizedPrivatecontentRequestConfig, + ) => Promise> + personalized_privatecontent_list: ( + params: PersonalizedPrivatecontentListRequestConfig, + ) => Promise> + playlist_catlist: ( + params: PlaylistCatlistRequestConfig, + ) => Promise> + // playlist_cover_update: ( + // params: PlaylistCoverUpdateRequestConfig, + // ) => Promise> + playlist_create: ( + params: PlaylistCreateRequestConfig, + ) => Promise> + playlist_delete: ( + params: PlaylistDeleteRequestConfig, + ) => Promise> + playlist_desc_update: ( + params: PlaylistDescUpdateRequestConfig, + ) => Promise> + playlist_detail: ( + params: PlaylistDetailRequestConfig, + ) => Promise> + playlist_hot: ( + params: PlaylistHotRequestConfig, + ) => Promise> + playlist_name_update: ( + params: PlaylistNameUpdateRequestConfig, + ) => Promise> + playlist_order_update: ( + params: PlaylistOrderUpdateRequestConfig, + ) => Promise> + playlist_subscribe: ( + params: PlaylistSubscribeRequestConfig, + ) => Promise> + playlist_subscribers: ( + params: PlaylistSubscribersRequestConfig, + ) => Promise> + playlist_tags_update: ( + params: PlaylistTagsUpdateRequestConfig, + ) => Promise> + playlist_tracks: ( + params: PlaylistTracksRequestConfig, + ) => Promise> + playlist_update: ( + params: PlaylistUpdateRequestConfig, + ) => Promise> + playmode_intelligence_list: ( + params: PlaymodeIntelligenceListRequestConfig, + ) => Promise> + program_recommend: ( + params: ProgramRecommendRequestConfig, + ) => Promise> + rebind: (params: RebindRequestConfig) => Promise> + recommend_resource: ( + params: RecommendResourceRequestConfig, + ) => Promise> + recommend_songs: ( + params: RecommendSongsRequestConfig, + ) => Promise> + register_cellphone: ( + params: RegisterCellphoneRequestConfig, + ) => Promise> + related_allvideo: ( + params: RelatedAllvideoRequestConfig, + ) => Promise> + related_playlist: ( + params: RelatedPlaylistRequestConfig, + ) => Promise> + resource_like: ( + params: ResourceLikeRequestConfig, + ) => Promise> + scrobble: ( + params: ScrobbleRequestConfig, + ) => Promise> + search: (params: SearchRequestConfig) => Promise> + search_default: ( + params: SearchDefaultRequestConfig, + ) => Promise> + search_hot: ( + params: SearchHotRequestConfig, + ) => Promise> + search_hot_detail: ( + params: SearchHotDetailRequestConfig, + ) => Promise> + search_multimatch: ( + params: SearchMultimatchRequestConfig, + ) => Promise> + search_suggest: ( + params: SearchSuggestRequestConfig, + ) => Promise> + send_playlist: ( + params: SendPlaylistRequestConfig, + ) => Promise> + send_text: ( + params: SendTextRequestConfig, + ) => Promise> + setting: (params: SettingRequestConfig) => Promise> + share_resource: ( + params: ShareResourceRequestConfig, + ) => Promise> + simi_artist: ( + params: SimiArtistRequestConfig, + ) => Promise> + simi_mv: (params: SimiMvRequestConfig) => Promise> + simi_playlist: ( + params: SimiPlaylistRequestConfig, + ) => Promise> + simi_song: ( + params: SimiSongRequestConfig, + ) => Promise> + simi_user: ( + params: SimiUserRequestConfig, + ) => Promise> + song_detail: ( + params: SongDetailRequestConfig, + ) => Promise> + song_order_update: ( + params: SongOrderUpdateRequestConfig, + ) => Promise> + song_url: (params: SongUrlRequestConfig) => Promise> + top_album: ( + params: TopAlbumRequestConfig, + ) => Promise> + top_artists: ( + params: TopArtistsRequestConfig, + ) => Promise> + top_list: (params: TopListRequestConfig) => Promise> + top_mv: (params: TopMvRequestConfig) => Promise> + top_playlist: ( + params: TopPlaylistRequestConfig, + ) => Promise> + top_playlist_highquality: ( + params: TopPlaylistHighqualityRequestConfig, + ) => Promise> + top_song: (params: TopSongRequestConfig) => Promise> + toplist: (params: ToplistRequestConfig) => Promise> + toplist_artist: ( + params: ToplistArtistRequestConfig, + ) => Promise> + toplist_detail: ( + params: ToplistDetailRequestConfig, + ) => Promise> + user_audio: ( + params: UserAudioRequestConfig, + ) => Promise> + user_cloud: ( + params: UserCloudRequestConfig, + ) => Promise> + user_cloud_del: ( + params: UserCloudDelRequestConfig, + ) => Promise> + user_cloud_detail: ( + params: UserCloudDetailRequestConfig, + ) => Promise> + user_detail: ( + params: UserDetailRequestConfig, + ) => Promise> + user_dj: (params: UserDjRequestConfig) => Promise> + user_event: ( + params: UserEventRequestConfig, + ) => Promise> + user_followeds: ( + params: UserFollowedsRequestConfig, + ) => Promise> + user_follows: ( + params: UserFollowsRequestConfig, + ) => Promise> + user_playlist: ( + params: UserPlaylistRequestConfig, + ) => Promise> + user_record: ( + params: UserRecordRequestConfig, + ) => Promise> + user_subcount: ( + params: UserSubcountRequestConfig, + ) => Promise> + user_update: ( + params: UserUpdateRequestConfig, + ) => Promise> + video_category_list: ( + params: VideoCategoryListRequestConfig, + ) => Promise> + video_detail: ( + params: VideoDetailRequestConfig, + ) => Promise> + video_detail_info: ( + params: VideoDetailInfoRequestConfig, + ) => Promise> + video_group: ( + params: VideoGroupRequestConfig, + ) => Promise> + video_group_list: ( + params: VideoGroupListRequestConfig, + ) => Promise> + video_sub: ( + params: VideoSubRequestConfig, + ) => Promise> + video_timeline_all: ( + params: VideoTimelineAllRequestConfig, + ) => Promise> + video_timeline_recommend: ( + params: VideoTimelineRecommendRequestConfig, + ) => Promise> + video_url: ( + params: VideoUrlRequestConfig, + ) => Promise> + weblog: (params: WeblogRequestConfig) => Promise> +} + +declare const SDK: SDKInstance + +export default SDK diff --git a/module_types/base.d.ts b/module_types/base.d.ts index ca33ae2..890e842 100644 --- a/module_types/base.d.ts +++ b/module_types/base.d.ts @@ -1,6 +1,7 @@ export interface APIBaseResponse { code: number cookie: string + [index: string]: unknown } export interface RequestBaseConfig { diff --git a/module_types/cellphone_existence_check.d.ts b/module_types/cellphone_existence_check.d.ts index 2f85864..35415d1 100644 --- a/module_types/cellphone_existence_check.d.ts +++ b/module_types/cellphone_existence_check.d.ts @@ -1,6 +1,7 @@ import { RequestBaseConfig } from './base' -export interface CaptchaExistenceCheckRequestConfig extends RequestBaseConfig { +export interface CellphoneExistenceCheckRequestConfig + extends RequestBaseConfig { cellphone: string countrycode: string } diff --git a/package.json b/package.json index afda2bc..5c2fee4 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "网易云音乐nodejs" ], "main": "main.js", + "types": "main.d.ts", "husky": { "hooks": { "pre-commit": "lint-staged" From f711b074cf691852fd0d0e84bb189014554a2a25 Mon Sep 17 00:00:00 2001 From: a632079 Date: Sat, 5 Sep 2020 18:55:07 +0800 Subject: [PATCH 09/11] fix(ts): correct declaration upon uploaded img api --- main.d.ts | 16 ++++++++-------- module_types/avatar_upload.d.ts | 12 +++++++++--- module_types/playlist_cover_update.d.ts | 11 +++++++++-- package.json | 1 + yarn.lock | 5 +++++ 5 files changed, 32 insertions(+), 13 deletions(-) diff --git a/main.d.ts b/main.d.ts index 60bc22e..ee79550 100644 --- a/main.d.ts +++ b/main.d.ts @@ -20,7 +20,7 @@ import { ArtistSubListRequestConfig, ArtistTopSongRequestConfig, ArtistsRequestConfig, - // AvatarUploadRequestConfig, + AvatarUploadRequestConfig, BannerRequestConfig, BatchRequestConfig, CaptchaSentRequestConfig, @@ -105,7 +105,7 @@ import { PersonalizedPrivatecontentRequestConfig, PersonalizedPrivatecontentListRequestConfig, PlaylistCatlistRequestConfig, - // PlaylistCoverUpdateRequestConfig, + PlaylistCoverUpdateRequestConfig, PlaylistCreateRequestConfig, PlaylistDeleteRequestConfig, PlaylistDescUpdateRequestConfig, @@ -245,9 +245,9 @@ interface SDKInstance { params: ArtistTopSongRequestConfig, ) => Promise> artists: (params: ArtistsRequestConfig) => Promise> - // avatar_upload: ( - // params: AvatarUploadRequestConfig, - //) => Promise> + avatar_upload: ( + params: AvatarUploadRequestConfig, + ) => Promise> banner: (params: BannerRequestConfig) => Promise> batch: (params: BatchRequestConfig) => Promise> captcha_sent: ( @@ -468,9 +468,9 @@ interface SDKInstance { playlist_catlist: ( params: PlaylistCatlistRequestConfig, ) => Promise> - // playlist_cover_update: ( - // params: PlaylistCoverUpdateRequestConfig, - // ) => Promise> + playlist_cover_update: ( + params: PlaylistCoverUpdateRequestConfig, + ) => Promise> playlist_create: ( params: PlaylistCreateRequestConfig, ) => Promise> diff --git a/module_types/avatar_upload.d.ts b/module_types/avatar_upload.d.ts index 4e0a8db..3557374 100644 --- a/module_types/avatar_upload.d.ts +++ b/module_types/avatar_upload.d.ts @@ -1,4 +1,10 @@ import { RequestBaseConfig } from './base' - -// export interface AvatarUploadRequestConfig extends RequestBaseConfig { -// } +export interface AvatarUploadRequestConfig extends RequestBaseConfig { + imgFile: { + name: string + data: string | Buffer + } + imgSize?: number + imgX?: number + imgY?: number +} diff --git a/module_types/playlist_cover_update.d.ts b/module_types/playlist_cover_update.d.ts index c8008bc..6db8b2e 100644 --- a/module_types/playlist_cover_update.d.ts +++ b/module_types/playlist_cover_update.d.ts @@ -1,5 +1,12 @@ import { RequestBaseConfig } from './base' - export interface PlaylistCoverUpdateRequestConfig extends RequestBaseConfig { +export interface PlaylistCoverUpdateRequestConfig extends RequestBaseConfig { + id: string + imgFile: { + name: string + data: string | Buffer } - \ No newline at end of file + imgSize?: number + imgX?: number + imgY?: number +} diff --git a/package.json b/package.json index 5c2fee4..a1022d7 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "request": "^2.88.0" }, "devDependencies": { + "@types/node": "^14.6.4", "@typescript-eslint/eslint-plugin": "^4.0.1", "@typescript-eslint/parser": "^4.0.1", "eslint": "^7.8.1", diff --git a/yarn.lock b/yarn.lock index 47da111..3986ce0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -75,6 +75,11 @@ resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0" integrity sha1-9MfsQ+gbMZqYFRFQMXCfJph4kfA= +"@types/node@^14.6.4": + version "14.6.4" + resolved "https://registry.npm.taobao.org/@types/node/download/@types/node-14.6.4.tgz?cache=0&sync_timestamp=1599169585298&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-14.6.4.tgz#a145cc0bb14ef9c4777361b7bbafa5cf8e3acb5a" + integrity sha1-oUXMC7FO+cR3c2G3u6+lz446y1o= + "@types/parse-json@^4.0.0": version "4.0.0" resolved "https://registry.npm.taobao.org/@types/parse-json/download/@types/parse-json-4.0.0.tgz?cache=0&sync_timestamp=1596840707693&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fparse-json%2Fdownload%2F%40types%2Fparse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" From b8067419059d8afdd9d3f0ea47e697b676dac6cd Mon Sep 17 00:00:00 2001 From: a632079 Date: Sat, 5 Sep 2020 18:59:58 +0800 Subject: [PATCH 10/11] fix: exclude types ignore in pkg file --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a1022d7..648cdab 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,10 @@ "files": [ "module", "util", - "plugins" + "plugins", + "main.d.ts", + "interface.d.ts", + "module_types" ], "dependencies": { "axios": "^0.20.0", From c831af12cdd497b7e47bad04ba2ba2cc7dfe5955 Mon Sep 17 00:00:00 2001 From: a632079 Date: Mon, 7 Sep 2020 20:27:17 +0800 Subject: [PATCH 11/11] fix: module exports wrong in types declartion --- main.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main.d.ts b/main.d.ts index ee79550..2d615bb 100644 --- a/main.d.ts +++ b/main.d.ts @@ -1,4 +1,4 @@ -export * from './interface' +// export * from './interface' import { ActivateInitProfileRequestConfig, AlbumRequestConfig, @@ -182,13 +182,14 @@ import { APIBaseResponse, } from './interface' // Start -export interface Response { +// export interface Response { +interface Response { status: number // The Http Response Code body: T // API Response body cookie: string[] } -interface SDKInstance { +interface APIInstance { activate_init_profile: ( params: ActivateInitProfileRequestConfig, ) => Promise> @@ -669,7 +670,8 @@ interface SDKInstance { ) => Promise> weblog: (params: WeblogRequestConfig) => Promise> } - +interface SDKInstance extends APIInstance { + default: APIInstance +} declare const SDK: SDKInstance - -export default SDK +export = SDK