mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-22 22:16:13 -04:00
40ea6ce4e5
Closes #7938
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
import Queue from 'typings/Queue';
|
|
import AppSectionState, {
|
|
AppSectionFilterState,
|
|
AppSectionItemState,
|
|
Error,
|
|
PagedAppSectionState,
|
|
TableAppSectionState,
|
|
} from './AppSectionState';
|
|
|
|
export interface QueueStatus {
|
|
totalCount: number;
|
|
count: number;
|
|
unknownCount: number;
|
|
errors: boolean;
|
|
warnings: boolean;
|
|
unknownErrors: boolean;
|
|
unknownWarnings: boolean;
|
|
}
|
|
|
|
export interface QueueDetailsAppState extends AppSectionState<Queue> {
|
|
params: unknown;
|
|
}
|
|
|
|
export interface QueuePagedAppState
|
|
extends AppSectionState<Queue>,
|
|
AppSectionFilterState<Queue>,
|
|
PagedAppSectionState,
|
|
TableAppSectionState {
|
|
isGrabbing: boolean;
|
|
grabError: Error;
|
|
isRemoving: boolean;
|
|
removeError: Error;
|
|
}
|
|
|
|
export type RemovalMethod = 'removeFromClient' | 'changeCategory' | 'ignore';
|
|
export type BlocklistMethod =
|
|
| 'doNotBlocklist'
|
|
| 'blocklistAndSearch'
|
|
| 'blocklistOnly';
|
|
|
|
interface RemovalOptions {
|
|
removalMethod: RemovalMethod;
|
|
blocklistMethod: BlocklistMethod;
|
|
}
|
|
|
|
interface QueueAppState {
|
|
status: AppSectionItemState<QueueStatus>;
|
|
details: QueueDetailsAppState;
|
|
paged: QueuePagedAppState;
|
|
options: {
|
|
includeUnknownSeriesItems: boolean;
|
|
};
|
|
removalOptions: RemovalOptions;
|
|
}
|
|
|
|
export default QueueAppState;
|