Fix list response types
This commit is contained in:
parent
0ba8d5bf70
commit
b9caa73405
1 changed files with 6 additions and 6 deletions
|
@ -522,7 +522,7 @@ export type SongDetailQuery = { id: string };
|
||||||
export type SongDetailArgs = { query: SongDetailQuery } & BaseEndpointArgs;
|
export type SongDetailArgs = { query: SongDetailQuery } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Album Artist List
|
// Album Artist List
|
||||||
export type AlbumArtistListResponse = BasePaginatedResponse<AlbumArtist[]> | null;
|
export type AlbumArtistListResponse = BasePaginatedResponse<AlbumArtist[]> | null | undefined;
|
||||||
|
|
||||||
export enum AlbumArtistListSort {
|
export enum AlbumArtistListSort {
|
||||||
ALBUM = 'album',
|
ALBUM = 'album',
|
||||||
|
@ -610,7 +610,7 @@ export type AlbumArtistDetailQuery = { id: string };
|
||||||
export type AlbumArtistDetailArgs = { query: AlbumArtistDetailQuery } & BaseEndpointArgs;
|
export type AlbumArtistDetailArgs = { query: AlbumArtistDetailQuery } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Artist List
|
// Artist List
|
||||||
export type ArtistListResponse = BasePaginatedResponse<Artist[]>;
|
export type ArtistListResponse = BasePaginatedResponse<Artist[]> | null | undefined;
|
||||||
|
|
||||||
export enum ArtistListSort {
|
export enum ArtistListSort {
|
||||||
ALBUM = 'album',
|
ALBUM = 'album',
|
||||||
|
@ -866,7 +866,7 @@ export type PlaylistDetailQuery = {
|
||||||
export type PlaylistDetailArgs = { query: PlaylistDetailQuery } & BaseEndpointArgs;
|
export type PlaylistDetailArgs = { query: PlaylistDetailQuery } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Playlist Songs
|
// Playlist Songs
|
||||||
export type PlaylistSongListResponse = BasePaginatedResponse<Song[]>;
|
export type PlaylistSongListResponse = BasePaginatedResponse<Song[]> | null | undefined;
|
||||||
|
|
||||||
export type PlaylistSongListQuery = {
|
export type PlaylistSongListQuery = {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -879,7 +879,7 @@ export type PlaylistSongListQuery = {
|
||||||
export type PlaylistSongListArgs = { query: PlaylistSongListQuery } & BaseEndpointArgs;
|
export type PlaylistSongListArgs = { query: PlaylistSongListQuery } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Music Folder List
|
// Music Folder List
|
||||||
export type MusicFolderListResponse = BasePaginatedResponse<MusicFolder[]>;
|
export type MusicFolderListResponse = BasePaginatedResponse<MusicFolder[]> | null | undefined;
|
||||||
|
|
||||||
export type MusicFolderListQuery = null;
|
export type MusicFolderListQuery = null;
|
||||||
|
|
||||||
|
@ -887,7 +887,7 @@ export type MusicFolderListArgs = BaseEndpointArgs;
|
||||||
|
|
||||||
// User list
|
// User list
|
||||||
// Playlist List
|
// Playlist List
|
||||||
export type UserListResponse = BasePaginatedResponse<User[]>;
|
export type UserListResponse = BasePaginatedResponse<User[]> | null | undefined;
|
||||||
|
|
||||||
export enum UserListSort {
|
export enum UserListSort {
|
||||||
NAME = 'name',
|
NAME = 'name',
|
||||||
|
@ -927,7 +927,7 @@ export const userListSortMap: UserListSortMap = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Top Songs List
|
// Top Songs List
|
||||||
export type TopSongListResponse = BasePaginatedResponse<Song[]>;
|
export type TopSongListResponse = BasePaginatedResponse<Song[]> | null | undefined;
|
||||||
|
|
||||||
export type TopSongListQuery = {
|
export type TopSongListQuery = {
|
||||||
artist: string;
|
artist: string;
|
||||||
|
|
Reference in a new issue