mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-09 05:40:53 +02:00
New: Season packs and multi-episode releases will show as a single item in the queue Closes #6537
56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
import ModelBase from 'App/ModelBase';
|
|
import DownloadProtocol from 'DownloadClient/DownloadProtocol';
|
|
import Episode from 'Episode/Episode';
|
|
import Language from 'Language/Language';
|
|
import { QualityModel } from 'Quality/Quality';
|
|
import CustomFormat from 'typings/CustomFormat';
|
|
|
|
export type QueueTrackedDownloadStatus = 'ok' | 'warning' | 'error';
|
|
|
|
export type QueueTrackedDownloadState =
|
|
| 'downloading'
|
|
| 'importBlocked'
|
|
| 'importPending'
|
|
| 'importing'
|
|
| 'imported'
|
|
| 'failedPending'
|
|
| 'failed'
|
|
| 'ignored';
|
|
|
|
export interface StatusMessage {
|
|
title: string;
|
|
messages: string[];
|
|
}
|
|
|
|
interface Queue extends ModelBase {
|
|
languages: Language[];
|
|
quality: QualityModel;
|
|
customFormats: CustomFormat[];
|
|
customFormatScore: number;
|
|
size: number;
|
|
title: string;
|
|
sizeLeft: number;
|
|
timeLeft: string;
|
|
estimatedCompletionTime: string;
|
|
added?: string;
|
|
status: string;
|
|
trackedDownloadStatus: QueueTrackedDownloadStatus;
|
|
trackedDownloadState: QueueTrackedDownloadState;
|
|
statusMessages: StatusMessage[];
|
|
errorMessage: string;
|
|
downloadId: string;
|
|
protocol: DownloadProtocol;
|
|
downloadClient: string;
|
|
outputPath: string;
|
|
episodeHasFile: boolean;
|
|
seriesId?: number;
|
|
episodeId?: number;
|
|
episodeIds: number[];
|
|
seasonNumber?: number;
|
|
seasonNumbers: number[];
|
|
downloadClientHasPostImportCategory: boolean;
|
|
isFullSeason: boolean;
|
|
episode?: Episode;
|
|
}
|
|
|
|
export default Queue;
|