mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'feature/seed-completed-downloads' into feat/achievements-points
This commit is contained in:
commit
58a8f6fd6e
66 changed files with 1757 additions and 838 deletions
|
|
@ -3,12 +3,3 @@ export interface HowLongToBeatCategory {
|
|||
duration: string;
|
||||
accuracy: string;
|
||||
}
|
||||
|
||||
export interface HowLongToBeatResult {
|
||||
game_id: number;
|
||||
game_name: string;
|
||||
}
|
||||
|
||||
export interface HowLongToBeatSearchResponse {
|
||||
data: HowLongToBeatResult[];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ export type GameStatus =
|
|||
| "paused"
|
||||
| "error"
|
||||
| "complete"
|
||||
| "seeding"
|
||||
| "removed";
|
||||
|
||||
export type GameShop = "steam" | "epic";
|
||||
|
|
@ -126,6 +127,7 @@ export interface Game {
|
|||
objectID: string;
|
||||
shop: GameShop;
|
||||
downloadQueue: DownloadQueue | null;
|
||||
shouldSeed: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
|
@ -153,6 +155,12 @@ export interface DownloadProgress {
|
|||
game: LibraryGame;
|
||||
}
|
||||
|
||||
export interface SeedingStatus {
|
||||
gameId: number;
|
||||
status: GameStatus;
|
||||
uploadSpeed: number;
|
||||
}
|
||||
|
||||
export interface UserPreferences {
|
||||
downloadsPath: string | null;
|
||||
language: string;
|
||||
|
|
@ -164,6 +172,7 @@ export interface UserPreferences {
|
|||
runAtStartup: boolean;
|
||||
startMinimized: boolean;
|
||||
disableNsfwAlert: boolean;
|
||||
seedAfterDownloadComplete: boolean;
|
||||
showHiddenAchievementsDescription: boolean;
|
||||
}
|
||||
|
||||
|
|
@ -391,3 +400,4 @@ export * from "./steam.types";
|
|||
export * from "./real-debrid.types";
|
||||
export * from "./ludusavi.types";
|
||||
export * from "./how-long-to-beat.types";
|
||||
export * from "./torbox.types";
|
||||
|
|
|
|||
77
src/types/torbox.types.ts
Normal file
77
src/types/torbox.types.ts
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
export interface TorBoxUser {
|
||||
id: number;
|
||||
email: string;
|
||||
plan: string;
|
||||
expiration: string;
|
||||
}
|
||||
|
||||
export interface TorBoxUserRequest {
|
||||
success: boolean;
|
||||
detail: string;
|
||||
error: string;
|
||||
data: TorBoxUser;
|
||||
}
|
||||
|
||||
export interface TorBoxFile {
|
||||
id: number;
|
||||
md5: string;
|
||||
s3_path: string;
|
||||
name: string;
|
||||
size: number;
|
||||
mimetype: string;
|
||||
short_name: string;
|
||||
}
|
||||
|
||||
export interface TorBoxTorrentInfo {
|
||||
id: number;
|
||||
hash: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
magnet: string;
|
||||
size: number;
|
||||
active: boolean;
|
||||
cached: boolean;
|
||||
auth_id: string;
|
||||
download_state:
|
||||
| "downloading"
|
||||
| "uploading"
|
||||
| "stalled (no seeds)"
|
||||
| "paused"
|
||||
| "completed"
|
||||
| "cached"
|
||||
| "metaDL"
|
||||
| "checkingResumeData";
|
||||
seeds: number;
|
||||
ratio: number;
|
||||
progress: number;
|
||||
download_speed: number;
|
||||
upload_speed: number;
|
||||
name: string;
|
||||
eta: number;
|
||||
files: TorBoxFile[];
|
||||
}
|
||||
|
||||
export interface TorBoxTorrentInfoRequest {
|
||||
success: boolean;
|
||||
detail: string;
|
||||
error: string;
|
||||
data: TorBoxTorrentInfo[];
|
||||
}
|
||||
|
||||
export interface TorBoxAddTorrentRequest {
|
||||
success: boolean;
|
||||
detail: string;
|
||||
error: string;
|
||||
data: {
|
||||
torrent_id: number;
|
||||
name: string;
|
||||
hash: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface TorBoxRequestLinkRequest {
|
||||
success: boolean;
|
||||
detail: string;
|
||||
error: string;
|
||||
data: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue