mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-05 17:28:55 +08:00
fix(ts): correct declaration upon uploaded img api
This commit is contained in:
parent
c6312abbad
commit
f711b074cf
16
main.d.ts
vendored
16
main.d.ts
vendored
@ -20,7 +20,7 @@ import {
|
|||||||
ArtistSubListRequestConfig,
|
ArtistSubListRequestConfig,
|
||||||
ArtistTopSongRequestConfig,
|
ArtistTopSongRequestConfig,
|
||||||
ArtistsRequestConfig,
|
ArtistsRequestConfig,
|
||||||
// AvatarUploadRequestConfig,
|
AvatarUploadRequestConfig,
|
||||||
BannerRequestConfig,
|
BannerRequestConfig,
|
||||||
BatchRequestConfig,
|
BatchRequestConfig,
|
||||||
CaptchaSentRequestConfig,
|
CaptchaSentRequestConfig,
|
||||||
@ -105,7 +105,7 @@ import {
|
|||||||
PersonalizedPrivatecontentRequestConfig,
|
PersonalizedPrivatecontentRequestConfig,
|
||||||
PersonalizedPrivatecontentListRequestConfig,
|
PersonalizedPrivatecontentListRequestConfig,
|
||||||
PlaylistCatlistRequestConfig,
|
PlaylistCatlistRequestConfig,
|
||||||
// PlaylistCoverUpdateRequestConfig,
|
PlaylistCoverUpdateRequestConfig,
|
||||||
PlaylistCreateRequestConfig,
|
PlaylistCreateRequestConfig,
|
||||||
PlaylistDeleteRequestConfig,
|
PlaylistDeleteRequestConfig,
|
||||||
PlaylistDescUpdateRequestConfig,
|
PlaylistDescUpdateRequestConfig,
|
||||||
@ -245,9 +245,9 @@ interface SDKInstance {
|
|||||||
params: ArtistTopSongRequestConfig,
|
params: ArtistTopSongRequestConfig,
|
||||||
) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
artists: (params: ArtistsRequestConfig) => Promise<Response<APIBaseResponse>>
|
artists: (params: ArtistsRequestConfig) => Promise<Response<APIBaseResponse>>
|
||||||
// avatar_upload: (
|
avatar_upload: (
|
||||||
// params: AvatarUploadRequestConfig,
|
params: AvatarUploadRequestConfig,
|
||||||
//) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
banner: (params: BannerRequestConfig) => Promise<Response<APIBaseResponse>>
|
banner: (params: BannerRequestConfig) => Promise<Response<APIBaseResponse>>
|
||||||
batch: (params: BatchRequestConfig) => Promise<Response<APIBaseResponse>>
|
batch: (params: BatchRequestConfig) => Promise<Response<APIBaseResponse>>
|
||||||
captcha_sent: (
|
captcha_sent: (
|
||||||
@ -468,9 +468,9 @@ interface SDKInstance {
|
|||||||
playlist_catlist: (
|
playlist_catlist: (
|
||||||
params: PlaylistCatlistRequestConfig,
|
params: PlaylistCatlistRequestConfig,
|
||||||
) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
// playlist_cover_update: (
|
playlist_cover_update: (
|
||||||
// params: PlaylistCoverUpdateRequestConfig,
|
params: PlaylistCoverUpdateRequestConfig,
|
||||||
// ) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
playlist_create: (
|
playlist_create: (
|
||||||
params: PlaylistCreateRequestConfig,
|
params: PlaylistCreateRequestConfig,
|
||||||
) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
|
12
module_types/avatar_upload.d.ts
vendored
12
module_types/avatar_upload.d.ts
vendored
@ -1,4 +1,10 @@
|
|||||||
import { RequestBaseConfig } from './base'
|
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
|
||||||
|
}
|
||||||
|
11
module_types/playlist_cover_update.d.ts
vendored
11
module_types/playlist_cover_update.d.ts
vendored
@ -1,5 +1,12 @@
|
|||||||
import { RequestBaseConfig } from './base'
|
import { RequestBaseConfig } from './base'
|
||||||
|
|
||||||
export interface PlaylistCoverUpdateRequestConfig extends RequestBaseConfig {
|
export interface PlaylistCoverUpdateRequestConfig extends RequestBaseConfig {
|
||||||
|
id: string
|
||||||
|
imgFile: {
|
||||||
|
name: string
|
||||||
|
data: string | Buffer
|
||||||
}
|
}
|
||||||
|
imgSize?: number
|
||||||
|
imgX?: number
|
||||||
|
imgY?: number
|
||||||
|
}
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
"request": "^2.88.0"
|
"request": "^2.88.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^14.6.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.0.1",
|
"@typescript-eslint/eslint-plugin": "^4.0.1",
|
||||||
"@typescript-eslint/parser": "^4.0.1",
|
"@typescript-eslint/parser": "^4.0.1",
|
||||||
"eslint": "^7.8.1",
|
"eslint": "^7.8.1",
|
||||||
|
@ -75,6 +75,11 @@
|
|||||||
resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0"
|
resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0"
|
||||||
integrity sha1-9MfsQ+gbMZqYFRFQMXCfJph4kfA=
|
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":
|
"@types/parse-json@^4.0.0":
|
||||||
version "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"
|
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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user