mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
119 lines
2.4 KiB
TypeScript
119 lines
2.4 KiB
TypeScript
export interface APP {
|
|
baseUrl: string;
|
|
}
|
|
|
|
export interface Action {
|
|
id: number;
|
|
name: string;
|
|
enabled: boolean;
|
|
type: ActionType;
|
|
exec_cmd: string;
|
|
exec_args: string;
|
|
watch_folder: string;
|
|
category: string;
|
|
tags: string;
|
|
label: string;
|
|
save_path: string;
|
|
paused: boolean;
|
|
ignore_rules: boolean;
|
|
limit_upload_speed: number;
|
|
limit_download_speed: number;
|
|
client_id: number;
|
|
filter_id: number;
|
|
// settings: object;
|
|
}
|
|
|
|
export interface Indexer {
|
|
id: number;
|
|
name: string;
|
|
identifier: string;
|
|
enabled: boolean;
|
|
settings: object | any;
|
|
}
|
|
|
|
export interface Filter {
|
|
id: number;
|
|
name: string;
|
|
enabled: boolean;
|
|
shows: string;
|
|
min_size: string;
|
|
max_size: string;
|
|
match_sites: string[];
|
|
except_sites: string[];
|
|
delay: number;
|
|
years: string;
|
|
resolutions: string[];
|
|
sources: string[];
|
|
codecs: string[];
|
|
containers: string[];
|
|
seasons: string;
|
|
episodes: string;
|
|
match_releases: string;
|
|
except_releases: string;
|
|
match_release_groups: string;
|
|
except_release_groups: string;
|
|
match_categories: string;
|
|
except_categories: string;
|
|
match_tags: string;
|
|
except_tags: string;
|
|
match_uploaders: string;
|
|
except_uploaders: string;
|
|
actions: Action[];
|
|
indexers: Indexer[];
|
|
}
|
|
|
|
export interface Tracker {
|
|
id: number;
|
|
name: string;
|
|
type: string;
|
|
enabled: boolean;
|
|
}
|
|
|
|
export type ActionType = 'TEST' | 'EXEC' | 'WATCH_FOLDER' | 'QBITTORRENT' | 'DELUGE';
|
|
export const ACTIONTYPES: ActionType[] = ['TEST', 'EXEC' , 'WATCH_FOLDER' , 'QBITTORRENT' , 'DELUGE'];
|
|
|
|
|
|
export type DownloadClientType = 'QBITTORRENT' | 'DELUGE';
|
|
|
|
// export const DOWNLOAD_CLIENT_TYPES: DownloadClientType[] = ['QBITTORRENT' , 'DELUGE'];
|
|
export enum DOWNLOAD_CLIENT_TYPES {
|
|
qBittorrent = 'QBITTORRENT',
|
|
Deluge = 'DELUGE'
|
|
}
|
|
|
|
|
|
export interface DownloadClient {
|
|
id: number;
|
|
name: string;
|
|
enabled: boolean;
|
|
type: DownloadClientType;
|
|
settings: object;
|
|
}
|
|
|
|
export interface Network {
|
|
id: number;
|
|
name: string;
|
|
enabled: boolean;
|
|
addr: string;
|
|
nick: string;
|
|
username: string;
|
|
realname: string;
|
|
pass: string;
|
|
sasl: SASL;
|
|
}
|
|
|
|
export interface SASL {
|
|
mechanism: string;
|
|
plain: {
|
|
username: string;
|
|
password: string;
|
|
}
|
|
}
|
|
|
|
export interface Config {
|
|
host: string;
|
|
port: number;
|
|
log_level: string;
|
|
log_path: string;
|
|
base_url: string;
|
|
}
|