@any-listen/extension-kit 0.1.3 → 0.1.4

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 +16 -5
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.4",
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
@@ -645,6 +652,9 @@ interface SonglistListParams extends CommonListParams {
645
652
  sort: string
646
653
  tag: string
647
654
  }
655
+ interface SonglistDetailResult extends ListCommonResult<AnyListen.Music.MusicInfoOnline> {
656
+ info: AnyListen.Resource.SongListDetailInfo
657
+ }
648
658
  interface LeaderboardDateParams extends CommonParams {
649
659
  id: string
650
660
  }
@@ -735,6 +745,7 @@ declare global {
735
745
  type MusicInfo = AnyListen.Music.MusicInfo
736
746
  type MusicInfoOnline = AnyListen.Music.MusicInfoOnline
737
747
  type SongListItem = AnyListen.Resource.SongListItem
748
+ type SongListDetailInfo = AnyListen.Resource.SongListDetailInfo
738
749
  type CommonItem = AnyListen.Resource.CommonItem
739
750
  type TagItem = AnyListen.Resource.TagItem
740
751
  type TagGroupItem = AnyListen.Resource.TagGroupItem
@@ -1045,7 +1056,7 @@ declare global {
1045
1056
  songlistSorts: (params: CommonParams) => Promise<AnyListen.Resource.TagItem[]>
1046
1057
  songlistTags: (params: CommonParams) => Promise<AnyListen.Resource.TagGroupItem[]>
1047
1058
  songlist: (params: SonglistListParams) => Promise<ListCommonResult<AnyListen.Resource.SongListItem>>
1048
- songlistDetail: (params: ListDetailParams) => Promise<ListCommonResult<AnyListen.Music.MusicInfoOnline>>
1059
+ songlistDetail: (params: ListDetailParams) => Promise<SonglistDetailResult>
1049
1060
  leaderboard: (params: CommonParams) => Promise<AnyListen.Resource.TagGroupItem[]>
1050
1061
  leaderboardDate: (params: LeaderboardDateParams) => Promise<AnyListen.Resource.TagItem[]>
1051
1062
  leaderboardDetail: (params: LeaderboardDetailParams) => Promise<ListCommonResult<AnyListen.Music.MusicInfoOnline>>