mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-18 03:01:09 +01:00
✨ Add detail popover for torrents list
This commit is contained in:
28
src/types/api/NormalizedTorrentListResponse.ts
Normal file
28
src/types/api/NormalizedTorrentListResponse.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { Label, NormalizedTorrent } from '@ctrl/shared-torrent';
|
||||
|
||||
export type NormalizedTorrentListResponse = {
|
||||
/**
|
||||
* Available labels on all torrent clients
|
||||
*/
|
||||
labels: Label[];
|
||||
|
||||
/**
|
||||
* Feteched and normalized torrents of all download clients
|
||||
*/
|
||||
torrents: ConcatenatedTorrentList[];
|
||||
|
||||
/**
|
||||
* Indicated wether all requests were a success
|
||||
*/
|
||||
allSuccess: boolean;
|
||||
|
||||
/**
|
||||
* Missing download clients
|
||||
*/
|
||||
missingDownloadClients: boolean;
|
||||
};
|
||||
|
||||
type ConcatenatedTorrentList = {
|
||||
appId: string;
|
||||
torrents: NormalizedTorrent[];
|
||||
};
|
||||
Reference in New Issue
Block a user