@any-listen/extension-kit 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/app/api.d.ts +20 -18
package/package.json
CHANGED
package/types/app/api.d.ts
CHANGED
|
@@ -614,6 +614,22 @@ declare namespace AnyListen {
|
|
|
614
614
|
desc?: string
|
|
615
615
|
date?: string
|
|
616
616
|
}
|
|
617
|
+
|
|
618
|
+
interface MusicCommentItem {
|
|
619
|
+
id: string
|
|
620
|
+
userId?: string
|
|
621
|
+
userName: string
|
|
622
|
+
text: string
|
|
623
|
+
time?: number
|
|
624
|
+
images?: string[]
|
|
625
|
+
location?: string
|
|
626
|
+
avatar?: string
|
|
627
|
+
likedCount?: number
|
|
628
|
+
skipPage?: boolean
|
|
629
|
+
replyTotal?: number
|
|
630
|
+
reply?: MusicCommentItem[]
|
|
631
|
+
replySkipPage?: boolean
|
|
632
|
+
}
|
|
617
633
|
}
|
|
618
634
|
}
|
|
619
635
|
|
|
@@ -629,7 +645,7 @@ interface CommonParams {
|
|
|
629
645
|
}
|
|
630
646
|
interface CommonListParams extends CommonParams {
|
|
631
647
|
page: number
|
|
632
|
-
limit
|
|
648
|
+
limit?: number
|
|
633
649
|
}
|
|
634
650
|
interface CommonSearchParams extends CommonListParams {
|
|
635
651
|
keyword: string
|
|
@@ -691,21 +707,6 @@ interface MusicCommentParams extends CommonListParams {
|
|
|
691
707
|
id?: string
|
|
692
708
|
type: 'hot' | 'new' | 'reply'
|
|
693
709
|
}
|
|
694
|
-
export interface MusicComment {
|
|
695
|
-
id: string
|
|
696
|
-
userId?: string
|
|
697
|
-
userName: string
|
|
698
|
-
text: string
|
|
699
|
-
time?: number
|
|
700
|
-
images?: string[]
|
|
701
|
-
location?: string
|
|
702
|
-
avatar?: string
|
|
703
|
-
likedCount?: number
|
|
704
|
-
skipPage?: boolean
|
|
705
|
-
replyTotal?: number
|
|
706
|
-
reply?: MusicComment[]
|
|
707
|
-
replySkipPage?: boolean
|
|
708
|
-
}
|
|
709
710
|
export interface ListCommonResult<T> {
|
|
710
711
|
list: T[]
|
|
711
712
|
total: number
|
|
@@ -775,6 +776,7 @@ declare global {
|
|
|
775
776
|
type TagGroupItem = AnyListen.Resource.TagGroupItem
|
|
776
777
|
type TopSongsItem = AnyListen.Resource.TopSongsItem
|
|
777
778
|
type TopSongsDetailInfo = AnyListen.Resource.TopSongsDetailInfo
|
|
779
|
+
type MusicCommentItem = AnyListen.Resource.MusicCommentItem
|
|
778
780
|
|
|
779
781
|
type ParamsData = Record<string, string | number | null | undefined | boolean>
|
|
780
782
|
interface RequestOptions {
|
|
@@ -785,7 +787,7 @@ declare global {
|
|
|
785
787
|
maxRedirect?: number
|
|
786
788
|
// signal?: AbortController['signal']
|
|
787
789
|
signal?: unknown
|
|
788
|
-
json?: Record<string, unknown>
|
|
790
|
+
json?: Record<string, unknown> | unknown[]
|
|
789
791
|
form?: Record<string, string | number | null | undefined | boolean>
|
|
790
792
|
binary?: Uint8Array
|
|
791
793
|
text?: string
|
|
@@ -1085,7 +1087,7 @@ declare global {
|
|
|
1085
1087
|
topSongs: (params: CommonParams) => Promise<AnyListen.Resource.TopSongsItem[]>
|
|
1086
1088
|
topSongsDate: (params: TopSongsDateParams) => Promise<AnyListen.Resource.TagItem[]>
|
|
1087
1089
|
topSongsDetail: (params: TopSongsDetailParams) => Promise<TopSongsDetailResult>
|
|
1088
|
-
musicComment: (params: MusicCommentParams) => Promise<ListCommonResult<
|
|
1090
|
+
musicComment: (params: MusicCommentParams) => Promise<ListCommonResult<AnyListen.Resource.MusicCommentItem>>
|
|
1089
1091
|
}
|
|
1090
1092
|
|
|
1091
1093
|
interface BackupDataAction {
|