diff --git a/module/send_text.js b/module/send_text.js index 22e7540c8a2..a13ad350512 100644 --- a/module/send_text.js +++ b/module/send_text.js @@ -3,7 +3,6 @@ module.exports = (query, request) => { query.cookie.os = 'pc' const data = { - id: query.playlist, type: 'text', msg: query.msg, userIds: '[' + query.user_ids + ']', diff --git a/module_types/album.d.ts b/module_types/album.d.ts index 26e3d4ff2dd..c9f0a9822ff 100644 --- a/module_types/album.d.ts +++ b/module_types/album.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface AlbumRequestConfig extends RequestBaseConfig { - id: string + id: string | number } diff --git a/module_types/album_detail.d.ts b/module_types/album_detail.d.ts index 9d33d6464d8..fb71d100836 100644 --- a/module_types/album_detail.d.ts +++ b/module_types/album_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface AlbumDetailRequestConfig extends RequestBaseConfig { - id: string + id: string | number } diff --git a/module_types/album_detail_dynamic.d.ts b/module_types/album_detail_dynamic.d.ts index 3432eb02028..984dcfbc189 100644 --- a/module_types/album_detail_dynamic.d.ts +++ b/module_types/album_detail_dynamic.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface AlbumDetailDynamicRequestConfig extends RequestBaseConfig { - id: string + id: string | number } diff --git a/module_types/album_list.d.ts b/module_types/album_list.d.ts index 1619c2b12a8..0451693df69 100644 --- a/module_types/album_list.d.ts +++ b/module_types/album_list.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface AlbumListRequestConfig extends RequestBaseConfig { - limit?: number // 默认 30 - offset?: number // 默认 0 + limit?: string | number // 默认 30 + offset?: string | 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 index c7fcdf7637e..fae7609a211 100644 --- a/module_types/album_list_style.d.ts +++ b/module_types/album_list_style.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface AlbumListStyleRequestConfig extends RequestBaseConfig { - limit?: number // 默认 10 - offset?: number // 默认 0 + limit?: string | number // 默认 10 + offset?: string | 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 index 3d12a655e89..8503537133c 100644 --- a/module_types/album_new.d.ts +++ b/module_types/album_new.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface AlbumNewRequestConfig extends RequestBaseConfig { - limit?: number // 默认 30 - offset?: number // 默认 0 + limit?: string | number // 默认 30 + offset?: string | number // 默认 0 area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' // 默认 ALL } diff --git a/module_types/album_songsaleboard.d.ts b/module_types/album_songsaleboard.d.ts index ef59355e95c..e0d9e63a4ca 100644 --- a/module_types/album_songsaleboard.d.ts +++ b/module_types/album_songsaleboard.d.ts @@ -1,7 +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 时有效 + albumType?: 0 | 1 // 0 为数字专辑,1 为数字单曲 + type?: 'daily' | 'week' | 'year' | 'total' + year?: string | number // 年份,默认本年。 type 为 year 时有效 } diff --git a/module_types/album_sub.d.ts b/module_types/album_sub.d.ts index b988e8ed71d..1b342052bfd 100644 --- a/module_types/album_sub.d.ts +++ b/module_types/album_sub.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface AlbumSubRequestConfig extends RequestBaseConfig { - id: string + id: string | number t: 1 | 0 } diff --git a/module_types/album_sublist.d.ts b/module_types/album_sublist.d.ts index b8514dfe689..3caf916cfde 100644 --- a/module_types/album_sublist.d.ts +++ b/module_types/album_sublist.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface AlbumSubListRequestConfig extends RequestBaseConfig { - limit: number // 默认: 25 - offset: number // 默认: 0 + limit: string | number // 默认: 25 + offset: string | number // 默认: 0 } diff --git a/module_types/artist_album.d.ts b/module_types/artist_album.d.ts index a3e0fdca6ea..c94ea6d55f3 100644 --- a/module_types/artist_album.d.ts +++ b/module_types/artist_album.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface ArtistAlbumRequestConfig extends RequestBaseConfig { - id: string - limit?: number // 默认 30 - offset?: number // 默认 0 + id: string | number + limit?: string | number // 默认 30 + offset?: string | number // 默认 0 } diff --git a/module_types/artist_desc.d.ts b/module_types/artist_desc.d.ts index 2ca3b80e2f4..b3b91674a31 100644 --- a/module_types/artist_desc.d.ts +++ b/module_types/artist_desc.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface ArtistDescRequestConfig extends RequestBaseConfig { - id: string + id: string | number } diff --git a/module_types/artist_list.d.ts b/module_types/artist_list.d.ts index 989c661de33..f22a6bc9ad5 100644 --- a/module_types/artist_list.d.ts +++ b/module_types/artist_list.d.ts @@ -55,7 +55,7 @@ export interface ArtistListRequestConfig extends RequestBaseConfig { | 'X' | 'Y' | 'Z' - offset?: number - limit?: number + offset?: string | number + limit?: string | number type?: '1' | '2' | '3' } diff --git a/module_types/artist_mv.d.ts b/module_types/artist_mv.d.ts index d8822765940..4b0ca73f0e4 100644 --- a/module_types/artist_mv.d.ts +++ b/module_types/artist_mv.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface ArtistMVRequestConfig extends RequestBaseConfig { - artistId: string - limit: number - offset: number + id: string | number + limit: string | number + offset: string | number } diff --git a/module_types/artist_songs.d.ts b/module_types/artist_songs.d.ts index 802dd46c013..1e4771dd2a6 100644 --- a/module_types/artist_songs.d.ts +++ b/module_types/artist_songs.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface ArtistSongsRequestConfig extends RequestBaseConfig { - id: string + id: string | number order?: 'hot' | 'time' - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/artist_sub.d.ts b/module_types/artist_sub.d.ts index e79d378c2b7..6c5676a3565 100644 --- a/module_types/artist_sub.d.ts +++ b/module_types/artist_sub.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface ArtistSubRequestConfig extends RequestBaseConfig { - artistId: string + id: string | number t: 1 | 0 } diff --git a/module_types/artist_sublist.d.ts b/module_types/artist_sublist.d.ts index f7bd4d2607f..9b1290eb2d1 100644 --- a/module_types/artist_sublist.d.ts +++ b/module_types/artist_sublist.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface ArtistSubListRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/artist_top_song.d.ts b/module_types/artist_top_song.d.ts index b24de68aa56..9de1b4d43eb 100644 --- a/module_types/artist_top_song.d.ts +++ b/module_types/artist_top_song.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface ArtistTopSongRequestConfig extends RequestBaseConfig { - id: string + id: string | number } diff --git a/module_types/artists.d.ts b/module_types/artists.d.ts index 9f1b38fbb8c..de6128fe3a1 100644 --- a/module_types/artists.d.ts +++ b/module_types/artists.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface ArtistsRequestConfig extends RequestBaseConfig { - id: string + id: string | number } diff --git a/module_types/banner.d.ts b/module_types/banner.d.ts index f5f719e2f06..38c0cb4dc52 100644 --- a/module_types/banner.d.ts +++ b/module_types/banner.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface BannerRequestConfig extends RequestBaseConfig { - type: 0 | 1 | 2 | 3 + type?: 0 | 1 | 2 | 3 } diff --git a/module_types/cloudsearch.d.ts b/module_types/cloudsearch.d.ts index ce9c5d7139a..4c0b2d7a3dc 100644 --- a/module_types/cloudsearch.d.ts +++ b/module_types/cloudsearch.d.ts @@ -2,7 +2,7 @@ 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 + type?: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014 + limit?: string | number + offset?: string | number } diff --git a/module_types/comment.d.ts b/module_types/comment.d.ts index 04677175dc0..459a1391c86 100644 --- a/module_types/comment.d.ts +++ b/module_types/comment.d.ts @@ -1,10 +1,10 @@ import { RequestBaseConfig } from './base' export interface CommentRequestConfig extends RequestBaseConfig { - id: string + id: string | number type: 0 | 1 | 2 | 3 | 4 | 5 | 6 t: 1 | 2 | 0 threadId?: string - content?: string - commentId?: string + content?: string | number + commentId?: string | number } diff --git a/module_types/comment_album.d.ts b/module_types/comment_album.d.ts index 5eb2763d6c7..6162ffba43f 100644 --- a/module_types/comment_album.d.ts +++ b/module_types/comment_album.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface CommentAlbumRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number - before?: number + id: string | number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/comment_dj.d.ts b/module_types/comment_dj.d.ts index 1dd12f73a0f..c19bb9afcbd 100644 --- a/module_types/comment_dj.d.ts +++ b/module_types/comment_dj.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface CommentDjRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number - before?: number + id: string | number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/comment_event.d.ts b/module_types/comment_event.d.ts index a74e6863a8b..e5323b3fed8 100644 --- a/module_types/comment_event.d.ts +++ b/module_types/comment_event.d.ts @@ -2,7 +2,7 @@ import { RequestBaseConfig } from './base' export interface CommentEventRequestConfig extends RequestBaseConfig { threadId: string - limit?: number - offset?: number - before?: number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/comment_floor.d.ts b/module_types/comment_floor.d.ts index 5851cd7fa81..92e1b06bc17 100644 --- a/module_types/comment_floor.d.ts +++ b/module_types/comment_floor.d.ts @@ -1,9 +1,9 @@ import { RequestBaseConfig } from './base' export interface CommentFloorRequestConfig extends RequestBaseConfig { - id: string - parentCommentId: string + id: string | number + parentCommentId: string | number type: 0 | 1 | 2 | 3 | 4 | 5 - limit?: number - time?: number + limit?: string | number + time?: string | number } diff --git a/module_types/comment_hot.d.ts b/module_types/comment_hot.d.ts index 69599e258c0..a3337fdbcae 100644 --- a/module_types/comment_hot.d.ts +++ b/module_types/comment_hot.d.ts @@ -1,9 +1,9 @@ import { RequestBaseConfig } from './base' export interface CommentHotRequestConfig extends RequestBaseConfig { - id: string + id: string | number type: 0 | 1 | 2 | 3 | 4 | 5 - offset?: number - limit?: number - before?: number + offset?: string | number + limit?: string | number + before?: string | number } diff --git a/module_types/comment_like.d.ts b/module_types/comment_like.d.ts index 70c371a609a..9708a7608c8 100644 --- a/module_types/comment_like.d.ts +++ b/module_types/comment_like.d.ts @@ -1,9 +1,9 @@ import { RequestBaseConfig } from './base' export interface CommentLikeRequestConfig extends RequestBaseConfig { - id: string + id: string | number type: 0 | 1 | 2 | 3 | 4 | 5 t: 1 | 0 - cid: number + cid: string | number threadId?: string } diff --git a/module_types/comment_music.d.ts b/module_types/comment_music.d.ts index bf4ea732144..b879232275f 100644 --- a/module_types/comment_music.d.ts +++ b/module_types/comment_music.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface CommentMusicRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number - before?: number + id: string | number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/comment_mv.d.ts b/module_types/comment_mv.d.ts index eeb9bc5e9a2..497bbdd40d3 100644 --- a/module_types/comment_mv.d.ts +++ b/module_types/comment_mv.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface CommentMvRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number - before?: number + id: string | number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/comment_playlist.d.ts b/module_types/comment_playlist.d.ts index 14e8eca5802..b368c0a542e 100644 --- a/module_types/comment_playlist.d.ts +++ b/module_types/comment_playlist.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface CommentPlaylistRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number - before?: number + id: string | number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/comment_video.d.ts b/module_types/comment_video.d.ts index 0a7bc3221d0..b276558b962 100644 --- a/module_types/comment_video.d.ts +++ b/module_types/comment_video.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface CommentVideoRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number - before?: number + id: string | number + limit?: string | number + offset?: string | number + before?: string | number } diff --git a/module_types/daily_signin.d.ts b/module_types/daily_signin.d.ts index 1d718fd5c08..875f1d83ebb 100644 --- a/module_types/daily_signin.d.ts +++ b/module_types/daily_signin.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface DailySigninRequestConfig extends RequestBaseConfig { - type: 0 | 1 + type?: 0 | 1 } diff --git a/module_types/digitalAlbum_ordering.d.ts b/module_types/digitalAlbum_ordering.d.ts index cd0c0f30e3f..50d9aafd6ed 100644 --- a/module_types/digitalAlbum_ordering.d.ts +++ b/module_types/digitalAlbum_ordering.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface DigitalAlbumOrderingRequestConfig extends RequestBaseConfig { payment: string - id: string + id: string | number quantity: string } diff --git a/module_types/digitalAlbum_purchased.d.ts b/module_types/digitalAlbum_purchased.d.ts index 3158f6770db..27cddc606f3 100644 --- a/module_types/digitalAlbum_purchased.d.ts +++ b/module_types/digitalAlbum_purchased.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface DigitalAlbumPurchasedRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/dj_detail.d.ts b/module_types/dj_detail.d.ts index 2e4921e76c2..70b4306924e 100644 --- a/module_types/dj_detail.d.ts +++ b/module_types/dj_detail.d.ts @@ -1,5 +1,5 @@ import { RequestBaseConfig } from './base' export interface DjDetailRequestConfig extends RequestBaseConfig { - rid: string + rid: string | number } diff --git a/module_types/dj_hot.d.ts b/module_types/dj_hot.d.ts index c94a24ec2ce..4f932569a43 100644 --- a/module_types/dj_hot.d.ts +++ b/module_types/dj_hot.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface DjHotRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/dj_paygift.d.ts b/module_types/dj_paygift.d.ts index f2ed90f3896..308b5e87790 100644 --- a/module_types/dj_paygift.d.ts +++ b/module_types/dj_paygift.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface DjPaygiftRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/dj_program.d.ts b/module_types/dj_program.d.ts index 03bac9311ec..d8e5b770d8a 100644 --- a/module_types/dj_program.d.ts +++ b/module_types/dj_program.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface DjProgramRequestConfig extends RequestBaseConfig { - rid: string - limit?: number - offset?: number + rid: string | number + limit?: string | number + offset?: string | 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 3e9af0c42bb..daad574ba15 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 { - id: number + id: string | number } diff --git a/module_types/dj_program_toplist.d.ts b/module_types/dj_program_toplist.d.ts index d86dc979e67..a7547c45ba3 100644 --- a/module_types/dj_program_toplist.d.ts +++ b/module_types/dj_program_toplist.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface DjProgramToplistRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/dj_program_toplist_hours.d.ts b/module_types/dj_program_toplist_hours.d.ts index 06ba89597d8..d61a35a5b06 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 { - limit?: number + limit?: string | number } diff --git a/module_types/dj_radio_hot.d.ts b/module_types/dj_radio_hot.d.ts index 6cd0bc4febc..2481ab739a2 100644 --- a/module_types/dj_radio_hot.d.ts +++ b/module_types/dj_radio_hot.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface DjRadioHotRequestConfig extends RequestBaseConfig { - cateId: string - limit?: number - offset?: number + cateId: string | number + limit?: string | number + offset?: string | number } diff --git a/module_types/dj_recommend.d.ts b/module_types/dj_recommend.d.ts index 3658f8b4f9f..5f9e6413064 100644 --- a/module_types/dj_recommend.d.ts +++ b/module_types/dj_recommend.d.ts @@ -1,8 +1,3 @@ import { RequestBaseConfig } from './base' -export interface DjRecommendRequestConfig extends RequestBaseConfig { - rid: string - limit?: number - offset?: number - asc: 0 | 1 | 'true' | 'false' -} +export type DjRecommendRequestConfig = RequestBaseConfig diff --git a/module_types/dj_sub.d.ts b/module_types/dj_sub.d.ts index 1f538a63be8..eee223e3832 100644 --- a/module_types/dj_sub.d.ts +++ b/module_types/dj_sub.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface DjSubRequestConfig extends RequestBaseConfig { t: 1 | 0 - rid: string + rid: string | number } diff --git a/module_types/dj_sublist.d.ts b/module_types/dj_sublist.d.ts index 82436f8d14d..9fbe01097e4 100644 --- a/module_types/dj_sublist.d.ts +++ b/module_types/dj_sublist.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface DjSublistRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/dj_today_perfered.d.ts b/module_types/dj_today_perfered.d.ts index a0fe915d69e..1e887e57032 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 { - page?: number + page?: string | number } diff --git a/module_types/dj_toplist.d.ts b/module_types/dj_toplist.d.ts index 3af110d14cc..78d7236b371 100644 --- a/module_types/dj_toplist.d.ts +++ b/module_types/dj_toplist.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface DjToplistRequestConfig extends RequestBaseConfig { - type: 'new' | 'hot' - limit?: number - offset?: number + type?: 'new' | 'hot' + limit?: string | number + offset?: string | number } diff --git a/module_types/dj_toplist_hours.d.ts b/module_types/dj_toplist_hours.d.ts index 7264707db6c..e6bafeb7c58 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 { - limit?: number + limit?: string | number } diff --git a/module_types/dj_toplist_newcomer.d.ts b/module_types/dj_toplist_newcomer.d.ts index 19ff8a50142..fac4040edde 100644 --- a/module_types/dj_toplist_newcomer.d.ts +++ b/module_types/dj_toplist_newcomer.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface DjToplistNewcomerRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/dj_toplist_pay.d.ts b/module_types/dj_toplist_pay.d.ts index 33409da7448..9c8c252fc25 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 { - limit?: number + limit?: string | number } diff --git a/module_types/dj_toplist_popular.d.ts b/module_types/dj_toplist_popular.d.ts index 6b01a845332..b410e6e28fa 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 { - limit?: number + limit?: string | number } diff --git a/module_types/event_del.d.ts b/module_types/event_del.d.ts index bf2496b5f6b..c0cb4ce89ad 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 { - evId?: number + evId: string | number } diff --git a/module_types/event_forward.d.ts b/module_types/event_forward.d.ts index fea13a59c15..e6a03192104 100644 --- a/module_types/event_forward.d.ts +++ b/module_types/event_forward.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface EventForwardRequestConfig extends RequestBaseConfig { forwords: string - evId: string - uid: string + evId: string | number + uid: string | number } diff --git a/module_types/fm_trash.d.ts b/module_types/fm_trash.d.ts index aabc47605e7..8814ae11545 100644 --- a/module_types/fm_trash.d.ts +++ b/module_types/fm_trash.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface FmTrashRequestConfig extends RequestBaseConfig { - id: string - time?: number + id: string | number + time?: string | number } diff --git a/module_types/follow.d.ts b/module_types/follow.d.ts index 0a00bb469a8..e58b4a08b2c 100644 --- a/module_types/follow.d.ts +++ b/module_types/follow.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface FollowRequestConfig extends RequestBaseConfig { t: 0 | 1 - id: string + id: string | number } diff --git a/module_types/homepage_block_page.d.ts b/module_types/homepage_block_page.d.ts index b098928a0bc..6a8d29a39b4 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 { - refresh: 'true' | 'false' + refresh?: 'true' | 'false' | boolean } diff --git a/module_types/hot_topic.d.ts b/module_types/hot_topic.d.ts index 985d93fe78f..47f39640e6d 100644 --- a/module_types/hot_topic.d.ts +++ b/module_types/hot_topic.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface HotTopicRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/like.d.ts b/module_types/like.d.ts index 661eac90051..3db9739952a 100644 --- a/module_types/like.d.ts +++ b/module_types/like.d.ts @@ -1,8 +1,8 @@ import { RequestBaseConfig } from './base' export interface LikeRequestConfig extends RequestBaseConfig { - like?: 'true' | 'false' - id: string + like?: 'true' | 'false' | boolean + id: string | number alg?: string - time?: number + time?: string | number } diff --git a/module_types/likelist.d.ts b/module_types/likelist.d.ts index 0bae3e6976b..48dfb74a797 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 { - uid: string + uid: string | number } diff --git a/module_types/lyric.d.ts b/module_types/lyric.d.ts index c040a9afcf6..b161e24ee11 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 { - id: string + id: string | number } diff --git a/module_types/msg_comments.d.ts b/module_types/msg_comments.d.ts index 8ebabc6904d..81b19460856 100644 --- a/module_types/msg_comments.d.ts +++ b/module_types/msg_comments.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface MsgCommentsRequestConfig extends RequestBaseConfig { - uid: string - before?: string - limit?: number + uid: string | number + before?: string | number + limit?: string | number } diff --git a/module_types/msg_forwards.d.ts b/module_types/msg_forwards.d.ts index d86ad5f5d5e..feddf444449 100644 --- a/module_types/msg_forwards.d.ts +++ b/module_types/msg_forwards.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface MsgForwardsRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/msg_notices.d.ts b/module_types/msg_notices.d.ts index dae78ebac9f..a2b3de9fe5a 100644 --- a/module_types/msg_notices.d.ts +++ b/module_types/msg_notices.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface MsgNoticesRequestConfig extends RequestBaseConfig { - limit?: number - lasttime?: number + limit?: string | number + lasttime?: string | number } diff --git a/module_types/msg_private.d.ts b/module_types/msg_private.d.ts index 7b60959857a..b195deb579e 100644 --- a/module_types/msg_private.d.ts +++ b/module_types/msg_private.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface MsgPrivateRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/msg_private_history.d.ts b/module_types/msg_private_history.d.ts index 8da94cc13d7..e3635fbcac8 100644 --- a/module_types/msg_private_history.d.ts +++ b/module_types/msg_private_history.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface MsgPrivateHistoryRequestConfig extends RequestBaseConfig { - before?: number - limit?: number - uid: string + before?: string | number + limit?: string | number + uid: string | number } diff --git a/module_types/mv_all.d.ts b/module_types/mv_all.d.ts index 1f4d9faf453..bff08fd7296 100644 --- a/module_types/mv_all.d.ts +++ b/module_types/mv_all.d.ts @@ -4,6 +4,6 @@ export interface MvAllRequestConfig extends RequestBaseConfig { area?: string type?: string order?: string - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/mv_detail.d.ts b/module_types/mv_detail.d.ts index b7f3a2ed306..69e0ea1dddb 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 { - mvid?: string + mvid?: string | number } diff --git a/module_types/mv_detail_info.d.ts b/module_types/mv_detail_info.d.ts index a6efa794b64..4d0b9ad257d 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 { - mvid: string + mvid: string | number } diff --git a/module_types/mv_exclusive_rcmd.d.ts b/module_types/mv_exclusive_rcmd.d.ts index c5ecc519fc8..0635267a25f 100644 --- a/module_types/mv_exclusive_rcmd.d.ts +++ b/module_types/mv_exclusive_rcmd.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface MvExclusiveRcmdRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/mv_first.d.ts b/module_types/mv_first.d.ts index 5e16d5349cd..b8099f2f88c 100644 --- a/module_types/mv_first.d.ts +++ b/module_types/mv_first.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface MvFirstRequestConfig extends RequestBaseConfig { area?: string - limit?: number + limit?: string | number } diff --git a/module_types/mv_sub.d.ts b/module_types/mv_sub.d.ts index 25fc4c0c59b..659d9ca44f0 100644 --- a/module_types/mv_sub.d.ts +++ b/module_types/mv_sub.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface MvSubRequestConfig extends RequestBaseConfig { t: 0 | 1 - mvid: string + mvid: string | number } diff --git a/module_types/mv_sublist.d.ts b/module_types/mv_sublist.d.ts index 25723c23ff2..302980d4533 100644 --- a/module_types/mv_sublist.d.ts +++ b/module_types/mv_sublist.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface MvSublistRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/mv_url.d.ts b/module_types/mv_url.d.ts index 1ee38530e0c..d90261a80bc 100644 --- a/module_types/mv_url.d.ts +++ b/module_types/mv_url.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface MvUrlRequestConfig extends RequestBaseConfig { - id?: string - r?: string + id?: string | number + r?: string | number } diff --git a/module_types/personalized.d.ts b/module_types/personalized.d.ts index 725b4107e6f..91bdf2c7f4b 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 { - limit?: number + limit?: string | number } diff --git a/module_types/personalized_privatecontent_list.d.ts b/module_types/personalized_privatecontent_list.d.ts index 520bcd64824..6d1beb5f08e 100644 --- a/module_types/personalized_privatecontent_list.d.ts +++ b/module_types/personalized_privatecontent_list.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface PersonalizedPrivatecontentListRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/playlist_delete.d.ts b/module_types/playlist_delete.d.ts index 9e488f146b5..894469f65cd 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 { - id: string + id: string | number } diff --git a/module_types/playlist_desc_update.d.ts b/module_types/playlist_desc_update.d.ts index 561a55c62b5..8f553c09077 100644 --- a/module_types/playlist_desc_update.d.ts +++ b/module_types/playlist_desc_update.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface PlaylistDescUpdateRequestConfig extends RequestBaseConfig { - id: string + id: string | number desc: string } diff --git a/module_types/playlist_detail.d.ts b/module_types/playlist_detail.d.ts index 93667a4879a..d3a547ff003 100644 --- a/module_types/playlist_detail.d.ts +++ b/module_types/playlist_detail.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface PlaylistDetailRequestConfig extends RequestBaseConfig { - id: string - s?: number + id: string | number + s?: string | number } diff --git a/module_types/playlist_name_update.d.ts b/module_types/playlist_name_update.d.ts index ffe30cdc412..0fedb4dbe29 100644 --- a/module_types/playlist_name_update.d.ts +++ b/module_types/playlist_name_update.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface PlaylistNameUpdateRequestConfig extends RequestBaseConfig { - id: string + id: string | number name: string } diff --git a/module_types/playlist_order_update.d.ts b/module_types/playlist_order_update.d.ts index eaf41f5f1e2..613d2709868 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 { - ids?: string + ids: string } diff --git a/module_types/playlist_subscribe.d.ts b/module_types/playlist_subscribe.d.ts index 1dc6809a515..73ea5e1e2e6 100644 --- a/module_types/playlist_subscribe.d.ts +++ b/module_types/playlist_subscribe.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface PlaylistSubscribeRequestConfig extends RequestBaseConfig { t: 0 | 1 - id: string + id: string | number } diff --git a/module_types/playlist_subscribers.d.ts b/module_types/playlist_subscribers.d.ts index 5ae595a9d9e..4320f526671 100644 --- a/module_types/playlist_subscribers.d.ts +++ b/module_types/playlist_subscribers.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface PlaylistSubscribersRequestConfig extends RequestBaseConfig { - id?: string - limit?: number - offset?: number + id?: string | number + limit?: string | number + offset?: string | number } diff --git a/module_types/playlist_tags_update.d.ts b/module_types/playlist_tags_update.d.ts index fade63e0682..10c8a0135cf 100644 --- a/module_types/playlist_tags_update.d.ts +++ b/module_types/playlist_tags_update.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface PlaylistTagsUpdateRequestConfig extends RequestBaseConfig { - id: string + id: string | number tags: string } diff --git a/module_types/playlist_tracks.d.ts b/module_types/playlist_tracks.d.ts index ddfaa65f057..80761017c72 100644 --- a/module_types/playlist_tracks.d.ts +++ b/module_types/playlist_tracks.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface PlaylistTracksRequestConfig extends RequestBaseConfig { op: 'add' | 'del' - pid: string + pid: string | number tracks: string } diff --git a/module_types/playlist_update.d.ts b/module_types/playlist_update.d.ts index b841bf3eafc..f59e3da7514 100644 --- a/module_types/playlist_update.d.ts +++ b/module_types/playlist_update.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface PlaylistUpdateRequestConfig extends RequestBaseConfig { - id: string + id: string | number 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 ca5da9537ba..c2e15410124 100644 --- a/module_types/playmode_intelligence_list.d.ts +++ b/module_types/playmode_intelligence_list.d.ts @@ -2,8 +2,8 @@ import { RequestBaseConfig } from './base' export interface PlaymodeIntelligenceListRequestConfig extends RequestBaseConfig { - id: string - pid: string - sid?: string - count?: number + id: string | number + pid: string | number + sid?: string | number + count?: string | number } diff --git a/module_types/program_recommend.d.ts b/module_types/program_recommend.d.ts index 454e368feed..5acacc37545 100644 --- a/module_types/program_recommend.d.ts +++ b/module_types/program_recommend.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface ProgramRecommendRequestConfig extends RequestBaseConfig { type: string - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/related_allvideo.d.ts b/module_types/related_allvideo.d.ts index 6f8685b2918..08f216f85c0 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 { - id: string + id: string | number } diff --git a/module_types/related_playlist.d.ts b/module_types/related_playlist.d.ts index 135f98e6ca9..d62ec893371 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 { - id: string + id: string | number } diff --git a/module_types/resource_like.d.ts b/module_types/resource_like.d.ts index 872d84546a5..8f1d0ee4224 100644 --- a/module_types/resource_like.d.ts +++ b/module_types/resource_like.d.ts @@ -3,6 +3,6 @@ import { RequestBaseConfig } from './base' export interface ResourceLikeRequestConfig extends RequestBaseConfig { t: 0 | 1 type: 1 | 4 | 5 | 6 - id?: string + id?: string | number threadId?: string } diff --git a/module_types/scrobble.d.ts b/module_types/scrobble.d.ts index 81ce07ed404..20464b0846d 100644 --- a/module_types/scrobble.d.ts +++ b/module_types/scrobble.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface ScrobbleRequestConfig extends RequestBaseConfig { - id: string - sourceid: string - time: string + id: string | number + sourceid: string | number + time: string | number } diff --git a/module_types/search.d.ts b/module_types/search.d.ts index c73f8a4c5f9..c88c5332334 100644 --- a/module_types/search.d.ts +++ b/module_types/search.d.ts @@ -3,6 +3,6 @@ import { RequestBaseConfig } from './base' export interface SearchRequestConfig extends RequestBaseConfig { keywords: string type?: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014 - limit?: string - offset?: string + limit?: string | number + offset?: string | number } diff --git a/module_types/send_playlist.d.ts b/module_types/send_playlist.d.ts index b20674b8a40..7a9b83361a0 100644 --- a/module_types/send_playlist.d.ts +++ b/module_types/send_playlist.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface SendPlaylistRequestConfig extends RequestBaseConfig { - playlist: string + playlist: string | number msg: string user_ids: string } diff --git a/module_types/send_text.d.ts b/module_types/send_text.d.ts index ab53c7aefeb..b5bf04d2f65 100644 --- a/module_types/send_text.d.ts +++ b/module_types/send_text.d.ts @@ -2,6 +2,5 @@ import { RequestBaseConfig } from './base' export interface SendTextRequestConfig extends RequestBaseConfig { msg: string - id: string user_ids: string } diff --git a/module_types/share_resource.d.ts b/module_types/share_resource.d.ts index 0b55201dffc..6794a30cc11 100644 --- a/module_types/share_resource.d.ts +++ b/module_types/share_resource.d.ts @@ -3,5 +3,5 @@ import { RequestBaseConfig } from './base' export interface ShareResourceRequestConfig extends RequestBaseConfig { type?: 'song' | 'playlist' | 'mv' | 'djprogram' | 'djradio' msg?: string - id?: string + id?: string | number } diff --git a/module_types/simi_artist.d.ts b/module_types/simi_artist.d.ts index 47db746ab81..e5ac8d2676b 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 { - id: string + id: string | number } diff --git a/module_types/simi_mv.d.ts b/module_types/simi_mv.d.ts index 3cf7e8d1e59..ddf0f9c9c36 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 { - mvid: string + mvid: string | number } diff --git a/module_types/simi_playlist.d.ts b/module_types/simi_playlist.d.ts index 20b26bcd350..696abb7b0bd 100644 --- a/module_types/simi_playlist.d.ts +++ b/module_types/simi_playlist.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface SimiPlaylistRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: string + id: string | number + limit?: string | number + offset?: string | number } diff --git a/module_types/simi_song.d.ts b/module_types/simi_song.d.ts index f0f7736d392..63e7424ad74 100644 --- a/module_types/simi_song.d.ts +++ b/module_types/simi_song.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface SimiSongRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number + id: string | number + limit?: string | number + offset?: string | number } diff --git a/module_types/simi_user.d.ts b/module_types/simi_user.d.ts index 377715f9cd9..4db30b7b7b6 100644 --- a/module_types/simi_user.d.ts +++ b/module_types/simi_user.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface SimiUserRequestConfig extends RequestBaseConfig { - id: string - limit?: number - offset?: number + id: string | number + limit?: string | number + offset?: string | number } diff --git a/module_types/song_order_update.d.ts b/module_types/song_order_update.d.ts index 71db5cec29a..8b08b169a4a 100644 --- a/module_types/song_order_update.d.ts +++ b/module_types/song_order_update.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface SongOrderUpdateRequestConfig extends RequestBaseConfig { - pid: string + pid: string | number ids: string } diff --git a/module_types/song_url.d.ts b/module_types/song_url.d.ts index f59d37efe25..35c19969747 100644 --- a/module_types/song_url.d.ts +++ b/module_types/song_url.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface SongUrlRequestConfig extends RequestBaseConfig { - id: string - br?: number + id: string | number + br?: string | number } diff --git a/module_types/top_album.d.ts b/module_types/top_album.d.ts index fac74fd14c8..68f877ec47a 100644 --- a/module_types/top_album.d.ts +++ b/module_types/top_album.d.ts @@ -2,8 +2,8 @@ import { RequestBaseConfig } from './base' export interface TopAlbumRequestConfig extends RequestBaseConfig { area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' - limit?: number - offset?: number + limit?: string | number + offset?: string | number type?: string year?: string mouth?: string diff --git a/module_types/top_artists.d.ts b/module_types/top_artists.d.ts index 6750cc63518..b6792717a91 100644 --- a/module_types/top_artists.d.ts +++ b/module_types/top_artists.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface TopArtistsRequestConfig extends RequestBaseConfig { - limit?: string - offset?: string + limit?: string | number + offset?: string | number } diff --git a/module_types/top_list.d.ts b/module_types/top_list.d.ts index f0431cb8282..4ab0bd52256 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 { - id: string + id: string | number } diff --git a/module_types/top_mv.d.ts b/module_types/top_mv.d.ts index 4594ef97776..6e0e5d40c2e 100644 --- a/module_types/top_mv.d.ts +++ b/module_types/top_mv.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface TopMvRequestConfig extends RequestBaseConfig { area?: string - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/top_playlist.d.ts b/module_types/top_playlist.d.ts index 1b128572fee..17214cd7703 100644 --- a/module_types/top_playlist.d.ts +++ b/module_types/top_playlist.d.ts @@ -3,6 +3,6 @@ import { RequestBaseConfig } from './base' export interface TopPlaylistRequestConfig extends RequestBaseConfig { cat?: string order?: 'hot' | 'new' - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/top_playlist_highquality.d.ts b/module_types/top_playlist_highquality.d.ts index 74b84cf8cd5..ed6a9f0eb62 100644 --- a/module_types/top_playlist_highquality.d.ts +++ b/module_types/top_playlist_highquality.d.ts @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base' export interface TopPlaylistHighqualityRequestConfig extends RequestBaseConfig { cat?: string - before?: number - limit?: number + before?: string | number + limit?: string | number } diff --git a/module_types/toplist_artist.d.ts b/module_types/toplist_artist.d.ts index b533f33456e..b48605d4e00 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 { - type: number + type?: 1 | 2 | 3 | 4 } diff --git a/module_types/user_audio.d.ts b/module_types/user_audio.d.ts index fcd9a684ac3..5cb55f8e538 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 { - uid: string + uid: string | number } diff --git a/module_types/user_cloud.d.ts b/module_types/user_cloud.d.ts index 1497b9cc7b8..9360afe8ed4 100644 --- a/module_types/user_cloud.d.ts +++ b/module_types/user_cloud.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface UserCloudRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number + limit?: string | number + offset?: string | number } diff --git a/module_types/user_cloud_del.d.ts b/module_types/user_cloud_del.d.ts index a9e460ae981..bfbef7b4b0c 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 { - id: string + id: string | number } diff --git a/module_types/user_cloud_detail.d.ts b/module_types/user_cloud_detail.d.ts index acf7cc5305b..1fdd3d0b1db 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 { - id: string + id: string | number } diff --git a/module_types/user_detail.d.ts b/module_types/user_detail.d.ts index cabd7d732e5..dd190bcd0b2 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 { - uid: string + uid: string | number } diff --git a/module_types/user_dj.d.ts b/module_types/user_dj.d.ts index 638710a5ead..c8076c2c133 100644 --- a/module_types/user_dj.d.ts +++ b/module_types/user_dj.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface UserDjRequestConfig extends RequestBaseConfig { - limit?: number - offset?: number - uid: string + limit?: string | number + offset?: string | number + uid: string | number } diff --git a/module_types/user_event.d.ts b/module_types/user_event.d.ts index a3c4534a164..322a294f80c 100644 --- a/module_types/user_event.d.ts +++ b/module_types/user_event.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface UserEventRequestConfig extends RequestBaseConfig { - lasttime?: number - limit?: number - uid: string + lasttime?: string | number + limit?: string | number + uid: string | number } diff --git a/module_types/user_followeds.d.ts b/module_types/user_followeds.d.ts index b5d365ff836..4ecab0951a0 100644 --- a/module_types/user_followeds.d.ts +++ b/module_types/user_followeds.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface UserFollowedsRequestConfig extends RequestBaseConfig { - uid: string - lasttime?: number - limit?: number + uid: string | number + lasttime?: string | number + limit?: string | number } diff --git a/module_types/user_follows.d.ts b/module_types/user_follows.d.ts index 917c9d24cb4..6a26af29e70 100644 --- a/module_types/user_follows.d.ts +++ b/module_types/user_follows.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface UserFollowsRequestConfig extends RequestBaseConfig { - uid: string - offset?: number - limit?: number + uid: string | number + offset?: string | number + limit?: string | number } diff --git a/module_types/user_playlist.d.ts b/module_types/user_playlist.d.ts index 320a9a20b9f..4945a18f0d2 100644 --- a/module_types/user_playlist.d.ts +++ b/module_types/user_playlist.d.ts @@ -1,7 +1,7 @@ import { RequestBaseConfig } from './base' export interface UserPlaylistRequestConfig extends RequestBaseConfig { - uid: number - limit?: number - offset?: number + uid: string | number + limit?: string | number + offset?: string | number } diff --git a/module_types/user_record.d.ts b/module_types/user_record.d.ts index bbe49730bf2..659ea768db5 100644 --- a/module_types/user_record.d.ts +++ b/module_types/user_record.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface UserRecordRequestConfig extends RequestBaseConfig { - uid: string - type: 1 | 0 + uid: string | number + type?: 1 | 0 } diff --git a/module_types/video_category_list.d.ts b/module_types/video_category_list.d.ts index 92ee94d0764..822bd85eb33 100644 --- a/module_types/video_category_list.d.ts +++ b/module_types/video_category_list.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface VideoCategoryListRequestConfig extends RequestBaseConfig { - offset?: number - limit?: number + offset?: string | number + limit?: string | number } diff --git a/module_types/video_group.d.ts b/module_types/video_group.d.ts index fc15ec64875..08ec989ef10 100644 --- a/module_types/video_group.d.ts +++ b/module_types/video_group.d.ts @@ -2,5 +2,5 @@ import { RequestBaseConfig } from './base' export interface VideoGroupRequestConfig extends RequestBaseConfig { id: string - offset?: number + offset?: string | number } diff --git a/module_types/video_timeline_all.d.ts b/module_types/video_timeline_all.d.ts index e1c2bc49962..0d4193f46f8 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 { - offset?: number + offset?: string | number } diff --git a/module_types/video_timeline_recommend.d.ts b/module_types/video_timeline_recommend.d.ts index 308c1188be6..f1f816ae149 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 { - offset?: number + offset?: string | number } diff --git a/module_types/video_url.d.ts b/module_types/video_url.d.ts index 73698ab26dd..2bf54eaf706 100644 --- a/module_types/video_url.d.ts +++ b/module_types/video_url.d.ts @@ -1,6 +1,6 @@ import { RequestBaseConfig } from './base' export interface VideoUrlRequestConfig extends RequestBaseConfig { - id: string + id: string | number res?: number }