feat: adding source search

This commit is contained in:
Chubby Granny Chaser 2024-12-20 17:07:51 +00:00
parent 1e99dae9de
commit 109c12064d
No known key found for this signature in database
49 changed files with 2010 additions and 958 deletions

View file

@ -16,13 +16,10 @@ export type FriendRequestAction = "ACCEPTED" | "REFUSED" | "CANCEL";
export interface GameRepack {
id: number;
title: string;
/**
* @deprecated Use uris instead
*/
magnet: string;
uris: string[];
repacker: string;
fileSize: string | null;
objectIds: string[];
uploadDate: Date | string | null;
createdAt: Date;
updatedAt: Date;
@ -77,15 +74,6 @@ export interface TorrentFile {
length: number;
}
/* Used by the catalogue */
export interface CatalogueEntry {
objectId: string;
shop: GameShop;
title: string;
/* Epic Games covers cannot be guessed with objectID */
cover: string;
}
export interface UserGame {
objectId: string;
shop: GameShop;
@ -301,6 +289,7 @@ export interface DownloadSource {
repackCount: number;
status: DownloadSourceStatus;
downloadCount: number;
fingerprint: string;
etag: string | null;
createdAt: Date;
updatedAt: Date;
@ -374,6 +363,15 @@ export interface ComparedAchievements {
}[];
}
export interface CatalogueSearchPayload {
title: string;
downloadSourceFingerprints: string[];
tags: number[];
publishers: string[];
genres: string[];
developers: string[];
}
export * from "./steam.types";
export * from "./real-debrid.types";
export * from "./ludusavi.types";