Allow serverId to be undefined
This commit is contained in:
parent
68a1cb9aaa
commit
b9d5447b4f
1 changed files with 8 additions and 8 deletions
|
@ -733,7 +733,7 @@ export type FavoriteQuery = {
|
||||||
type: LibraryItem;
|
type: LibraryItem;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type FavoriteArgs = { query: FavoriteQuery; serverId: string } & BaseEndpointArgs;
|
export type FavoriteArgs = { query: FavoriteQuery; serverId?: string } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Rating
|
// Rating
|
||||||
export type RatingResponse = null | undefined;
|
export type RatingResponse = null | undefined;
|
||||||
|
@ -743,7 +743,7 @@ export type RatingQuery = {
|
||||||
rating: number;
|
rating: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SetRatingArgs = { query: RatingQuery; serverId: string } & BaseEndpointArgs;
|
export type SetRatingArgs = { query: RatingQuery; serverId?: string } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Add to playlist
|
// Add to playlist
|
||||||
export type AddToPlaylistResponse = null | undefined;
|
export type AddToPlaylistResponse = null | undefined;
|
||||||
|
@ -759,7 +759,7 @@ export type AddToPlaylistBody = {
|
||||||
export type AddToPlaylistArgs = {
|
export type AddToPlaylistArgs = {
|
||||||
body: AddToPlaylistBody;
|
body: AddToPlaylistBody;
|
||||||
query: AddToPlaylistQuery;
|
query: AddToPlaylistQuery;
|
||||||
serverId: string;
|
serverId?: string;
|
||||||
} & BaseEndpointArgs;
|
} & BaseEndpointArgs;
|
||||||
|
|
||||||
// Remove from playlist
|
// Remove from playlist
|
||||||
|
@ -772,7 +772,7 @@ export type RemoveFromPlaylistQuery = {
|
||||||
|
|
||||||
export type RemoveFromPlaylistArgs = {
|
export type RemoveFromPlaylistArgs = {
|
||||||
query: RemoveFromPlaylistQuery;
|
query: RemoveFromPlaylistQuery;
|
||||||
serverId: string;
|
serverId?: string;
|
||||||
} & BaseEndpointArgs;
|
} & BaseEndpointArgs;
|
||||||
|
|
||||||
// Create Playlist
|
// Create Playlist
|
||||||
|
@ -792,7 +792,7 @@ export type CreatePlaylistBody = {
|
||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreatePlaylistArgs = { body: CreatePlaylistBody; serverId: string } & BaseEndpointArgs;
|
export type CreatePlaylistArgs = { body: CreatePlaylistBody; serverId?: string } & BaseEndpointArgs;
|
||||||
|
|
||||||
// Update Playlist
|
// Update Playlist
|
||||||
export type UpdatePlaylistResponse = null | undefined;
|
export type UpdatePlaylistResponse = null | undefined;
|
||||||
|
@ -819,7 +819,7 @@ export type UpdatePlaylistBody = {
|
||||||
export type UpdatePlaylistArgs = {
|
export type UpdatePlaylistArgs = {
|
||||||
body: UpdatePlaylistBody;
|
body: UpdatePlaylistBody;
|
||||||
query: UpdatePlaylistQuery;
|
query: UpdatePlaylistQuery;
|
||||||
serverId: string;
|
serverId?: string;
|
||||||
} & BaseEndpointArgs;
|
} & BaseEndpointArgs;
|
||||||
|
|
||||||
// Delete Playlist
|
// Delete Playlist
|
||||||
|
@ -829,7 +829,7 @@ export type DeletePlaylistQuery = { id: string };
|
||||||
|
|
||||||
export type DeletePlaylistArgs = {
|
export type DeletePlaylistArgs = {
|
||||||
query: DeletePlaylistQuery;
|
query: DeletePlaylistQuery;
|
||||||
serverId: string;
|
serverId?: string;
|
||||||
} & BaseEndpointArgs;
|
} & BaseEndpointArgs;
|
||||||
|
|
||||||
// Playlist List
|
// Playlist List
|
||||||
|
@ -986,7 +986,7 @@ export type ScrobbleResponse = null | undefined;
|
||||||
|
|
||||||
export type ScrobbleArgs = {
|
export type ScrobbleArgs = {
|
||||||
query: ScrobbleQuery;
|
query: ScrobbleQuery;
|
||||||
serverId: string;
|
serverId?: string;
|
||||||
} & BaseEndpointArgs;
|
} & BaseEndpointArgs;
|
||||||
|
|
||||||
export type ScrobbleQuery = {
|
export type ScrobbleQuery = {
|
||||||
|
|
Reference in a new issue