Added type `Tasks`

This commit is contained in:
n8detar 2022-04-23 11:36:55 -07:00
parent 883f5dc801
commit 0ea19defcc
1 changed files with 2 additions and 18 deletions

View File

@ -10,6 +10,8 @@ export interface Task {
task: string;
}
export type Tasks = "download_pending" | "rescan_pending";
export interface Paginate {
page_size: number;
page_from: number;
@ -21,11 +23,6 @@ export interface Paginate {
total_hits: number;
}
// export interface DownloadResponse {
// data: Datum[];
// message: string;
// }
export interface Config {
archive: Archive;
default_view: DefaultView;
@ -111,19 +108,6 @@ export interface Datum {
title: string;
vid_thumb_url: string;
youtube_id: string;
// active: boolean;
// category: Category[];
// channel: Channel;
// date_downloaded: number;
// description: string;
// media_url: string;
// player: Player;
// playlist: Playlist[];
// stats: Stats;
// tags: string[];
// vid_last_refresh: LastRefresh;
// vid_thumb_base64: string;
}
export enum Category {