@any-listen/extension-kit 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/app/api.d.ts +21 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@any-listen/extension-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "keywords": [
5
5
  "any-listen",
6
6
  "any-listen-extension"
@@ -571,16 +571,23 @@ declare namespace AnyListen {
571
571
 
572
572
  namespace Resource {
573
573
  interface SongListItem {
574
- play_count: string
575
574
  id: string
576
- author: string
577
575
  name: string
576
+ play_count?: string
577
+ author?: string
578
578
  time?: string
579
- img: string
579
+ img?: string
580
580
  // grade: basic.favorcnt / 10,
581
- desc: string | null
581
+ desc?: string | null
582
582
  total?: number
583
583
  }
584
+ interface SongListDetailInfo {
585
+ name: string
586
+ img?: string
587
+ desc?: string
588
+ author?: string
589
+ play_count?: string
590
+ }
584
591
 
585
592
  interface CommonItem {
586
593
  id: string
@@ -641,10 +648,17 @@ interface SonglistSearchParams extends CommonListParams {
641
648
  interface ListDetailParams extends CommonListParams {
642
649
  id: string
643
650
  }
651
+ interface SonglistTagResult {
652
+ tags: AnyListen.Resource.TagGroupItem[]
653
+ hotTags: AnyListen.Resource.TagItem[]
654
+ }
644
655
  interface SonglistListParams extends CommonListParams {
645
656
  sort: string
646
657
  tag: string
647
658
  }
659
+ interface SonglistDetailResult extends ListCommonResult<AnyListen.Music.MusicInfoOnline> {
660
+ info: AnyListen.Resource.SongListDetailInfo
661
+ }
648
662
  interface LeaderboardDateParams extends CommonParams {
649
663
  id: string
650
664
  }
@@ -735,6 +749,7 @@ declare global {
735
749
  type MusicInfo = AnyListen.Music.MusicInfo
736
750
  type MusicInfoOnline = AnyListen.Music.MusicInfoOnline
737
751
  type SongListItem = AnyListen.Resource.SongListItem
752
+ type SongListDetailInfo = AnyListen.Resource.SongListDetailInfo
738
753
  type CommonItem = AnyListen.Resource.CommonItem
739
754
  type TagItem = AnyListen.Resource.TagItem
740
755
  type TagGroupItem = AnyListen.Resource.TagGroupItem
@@ -1043,9 +1058,9 @@ declare global {
1043
1058
  lyricDetail: (params: LyricDetailParams) => Promise<AnyListen.Music.LyricInfo>
1044
1059
  songlistSearch: (params: SonglistSearchParams) => Promise<ListCommonResult<AnyListen.Resource.SongListItem>>
1045
1060
  songlistSorts: (params: CommonParams) => Promise<AnyListen.Resource.TagItem[]>
1046
- songlistTags: (params: CommonParams) => Promise<AnyListen.Resource.TagGroupItem[]>
1061
+ songlistTags: (params: CommonParams) => Promise<SonglistTagResult>
1047
1062
  songlist: (params: SonglistListParams) => Promise<ListCommonResult<AnyListen.Resource.SongListItem>>
1048
- songlistDetail: (params: ListDetailParams) => Promise<ListCommonResult<AnyListen.Music.MusicInfoOnline>>
1063
+ songlistDetail: (params: ListDetailParams) => Promise<SonglistDetailResult>
1049
1064
  leaderboard: (params: CommonParams) => Promise<AnyListen.Resource.TagGroupItem[]>
1050
1065
  leaderboardDate: (params: LeaderboardDateParams) => Promise<AnyListen.Resource.TagItem[]>
1051
1066
  leaderboardDetail: (params: LeaderboardDetailParams) => Promise<ListCommonResult<AnyListen.Music.MusicInfoOnline>>