New: History custom filters

(cherry picked from commit 2fe8f3084c90688e6dd01d600796396e74f43ff9)

Closes #4213
Closes #4235
Closes #4236
This commit is contained in:
Mark McDowall 2023-05-22 20:06:32 -07:00 committed by Bogdan
parent efc6c69a0f
commit e408c6f055
15 changed files with 262 additions and 24 deletions

View file

@ -0,0 +1,29 @@
import { QualityModel } from 'Quality/Quality';
import CustomFormat from './CustomFormat';
export type HistoryEventType =
| 'grabbed'
| 'artistFolderImported'
| 'trackFileImported'
| 'downloadFailed'
| 'trackFileDeleted'
| 'trackFileRenamed'
| 'albumImportIncomplete'
| 'downloadImported'
| 'trackFileRetagged'
| 'downloadIgnored';
export default interface History {
episodeId: number;
seriesId: number;
sourceTitle: string;
quality: QualityModel;
customFormats: CustomFormat[];
customFormatScore: number;
qualityCutoffNotMet: boolean;
date: string;
downloadId: string;
eventType: HistoryEventType;
data: unknown;
id: number;
}