Upgrade with history search
This commit is contained in:
Vendored
+14
-2
@@ -1,5 +1,5 @@
|
||||
import { Song, PlayingSong, QueuedSong, Playlist, PlaylistDescription } from "./dataTypes";
|
||||
export type StuenMessages = ListenerList | SendChatMessage | SearchSong | SearchSongResult | Join | QueueSong | CurrentQueue | CurrentSong | UnqueueSong | ReorderSong | SkipSong | SongLikes | ToggleSongLike | CreatePlaylist | RemovePlaylist | AddSongToPlaylist | RemoveSongFromPlaylist | Playlists | GetPlaylist | PlaylistSongs | GetOtherPlaylists | ToggleTag | Shuffle | RemoveFromAutoPlay;
|
||||
import { Song, PlayingSong, QueuedSong, Playlist, PlaylistDescription, PlayerControl } from "./dataTypes";
|
||||
export type StuenMessages = ListenerList | SendChatMessage | SearchSong | SearchSongResult | SearchHistory | HistoryContent | Join | QueueSong | CurrentQueue | CurrentSong | CurrentPlayerControl | UnqueueSong | ReorderSong | SkipSong | SongLikes | ToggleSongLike | CreatePlaylist | RemovePlaylist | AddSongToPlaylist | RemoveSongFromPlaylist | Playlists | GetPlaylist | PlaylistSongs | GetOtherPlaylists | ToggleTag | Shuffle | RemoveFromAutoPlay;
|
||||
export declare abstract class StuenMessage {
|
||||
type: string;
|
||||
constructor(type: string);
|
||||
@@ -29,6 +29,14 @@ export declare class SearchSongResult extends StuenMessage {
|
||||
result: Song[];
|
||||
constructor(result: Song[]);
|
||||
}
|
||||
export declare class SearchHistory extends StuenMessage {
|
||||
query: string;
|
||||
constructor(query: string);
|
||||
}
|
||||
export declare class HistoryContent extends StuenMessage {
|
||||
result: Song[];
|
||||
constructor(result: Song[]);
|
||||
}
|
||||
export declare class QueueSong extends StuenMessage {
|
||||
song: Song;
|
||||
constructor(song: Song);
|
||||
@@ -41,6 +49,10 @@ export declare class CurrentSong extends StuenMessage {
|
||||
song: PlayingSong | null;
|
||||
constructor(song: PlayingSong | null);
|
||||
}
|
||||
export declare class CurrentPlayerControl extends StuenMessage {
|
||||
playerControl: PlayerControl | null;
|
||||
constructor(playerControl: PlayerControl | null);
|
||||
}
|
||||
export declare class UnqueueSong extends StuenMessage {
|
||||
position: number | null;
|
||||
all: boolean | undefined;
|
||||
|
||||
Reference in New Issue
Block a user