Fix expected controller responses

This commit is contained in:
jeffvli
2023-12-03 22:17:01 -08:00
parent f8d109fce4
commit 33b522a2f3
+28 -32
View File
@@ -1149,46 +1149,42 @@ export type FontData = {
}; };
export type ControllerEndpoint = Partial<{ export type ControllerEndpoint = Partial<{
addToPlaylist: (args: AddToPlaylistArgs) => Promise<AddToPlaylistResponse | Error>; addToPlaylist: (args: AddToPlaylistArgs) => Promise<AddToPlaylistResponse>;
authenticate: ( authenticate: (
url: string, url: string,
body: { password: string; username: string }, body: { password: string; username: string },
) => Promise<AuthenticationResponse | Error>; ) => Promise<AuthenticationResponse>;
clearPlaylist: () => void; clearPlaylist: () => void;
createFavorite: (args: FavoriteArgs) => Promise<FavoriteResponse | Error>; createFavorite: (args: FavoriteArgs) => Promise<FavoriteResponse>;
createPlaylist: (args: CreatePlaylistArgs) => Promise<CreatePlaylistResponse | Error>; createPlaylist: (args: CreatePlaylistArgs) => Promise<CreatePlaylistResponse>;
deleteFavorite: (args: FavoriteArgs) => Promise<FavoriteResponse | Error>; deleteFavorite: (args: FavoriteArgs) => Promise<FavoriteResponse>;
deletePlaylist: (args: DeletePlaylistArgs) => Promise<DeletePlaylistResponse | Error>; deletePlaylist: (args: DeletePlaylistArgs) => Promise<DeletePlaylistResponse>;
getAlbumArtistDetail: ( getAlbumArtistDetail: (args: AlbumArtistDetailArgs) => Promise<AlbumArtistDetailResponse>;
args: AlbumArtistDetailArgs, getAlbumArtistList: (args: AlbumArtistListArgs) => Promise<AlbumArtistListResponse>;
) => Promise<AlbumArtistDetailResponse | Error>; getAlbumDetail: (args: AlbumDetailArgs) => Promise<AlbumDetailResponse>;
getAlbumArtistList: (args: AlbumArtistListArgs) => Promise<AlbumArtistListResponse | Error>; getAlbumList: (args: AlbumListArgs) => Promise<AlbumListResponse>;
getAlbumDetail: (args: AlbumDetailArgs) => Promise<AlbumDetailResponse | Error>; getAlbumSongList: (args: AlbumDetailArgs) => Promise<SongListResponse>; // TODO
getAlbumList: (args: AlbumListArgs) => Promise<AlbumListResponse | Error>;
getAlbumSongList: (args: AlbumDetailArgs) => Promise<SongListResponse | Error>; // TODO
getArtistDetail: () => void; getArtistDetail: () => void;
getArtistInfo: (args: any) => void; getArtistInfo: (args: any) => void;
getArtistList: (args: ArtistListArgs) => Promise<ArtistListResponse | Error>; getArtistList: (args: ArtistListArgs) => Promise<ArtistListResponse>;
getFavoritesList: () => void; getFavoritesList: () => void;
getFolderItemList: () => void; getFolderItemList: () => void;
getFolderList: () => void; getFolderList: () => void;
getFolderSongs: () => void; getFolderSongs: () => void;
getGenreList: (args: GenreListArgs) => Promise<GenreListResponse | Error>; getGenreList: (args: GenreListArgs) => Promise<GenreListResponse>;
getLyrics: (args: LyricsArgs) => Promise<LyricsResponse | Error>; getLyrics: (args: LyricsArgs) => Promise<LyricsResponse>;
getMusicFolderList: (args: MusicFolderListArgs) => Promise<MusicFolderListResponse | Error>; getMusicFolderList: (args: MusicFolderListArgs) => Promise<MusicFolderListResponse>;
getPlaylistDetail: (args: PlaylistDetailArgs) => Promise<PlaylistDetailResponse | Error>; getPlaylistDetail: (args: PlaylistDetailArgs) => Promise<PlaylistDetailResponse>;
getPlaylistList: (args: PlaylistListArgs) => Promise<PlaylistListResponse | Error>; getPlaylistList: (args: PlaylistListArgs) => Promise<PlaylistListResponse>;
getPlaylistSongList: (args: PlaylistSongListArgs) => Promise<SongListResponse | Error>; getPlaylistSongList: (args: PlaylistSongListArgs) => Promise<SongListResponse>;
getRandomSongList: (args: RandomSongListArgs) => Promise<SongListResponse | Error>; getRandomSongList: (args: RandomSongListArgs) => Promise<SongListResponse>;
getSongDetail: (args: SongDetailArgs) => Promise<SongDetailResponse | Error>; getSongDetail: (args: SongDetailArgs) => Promise<SongDetailResponse>;
getSongList: (args: SongListArgs) => Promise<SongListResponse | Error>; getSongList: (args: SongListArgs) => Promise<SongListResponse>;
getTopSongs: (args: TopSongListArgs) => Promise<TopSongListResponse | Error>; getTopSongs: (args: TopSongListArgs) => Promise<TopSongListResponse>;
getUserList: (args: UserListArgs) => Promise<UserListResponse | Error>; getUserList: (args: UserListArgs) => Promise<UserListResponse>;
removeFromPlaylist: ( removeFromPlaylist: (args: RemoveFromPlaylistArgs) => Promise<RemoveFromPlaylistResponse>;
args: RemoveFromPlaylistArgs, scrobble: (args: ScrobbleArgs) => Promise<ScrobbleResponse>;
) => Promise<RemoveFromPlaylistResponse | Error>; search: (args: SearchArgs) => Promise<SearchResponse>;
scrobble: (args: ScrobbleArgs) => Promise<ScrobbleResponse | Error>; setRating: (args: SetRatingArgs) => Promise<RatingResponse>;
search: (args: SearchArgs) => Promise<SearchResponse | Error>; updatePlaylist: (args: UpdatePlaylistArgs) => Promise<UpdatePlaylistResponse>;
setRating: (args: SetRatingArgs) => Promise<RatingResponse | Error>;
updatePlaylist: (args: UpdatePlaylistArgs) => Promise<UpdatePlaylistResponse | Error>;
}>; }>;