From ee7e00b031ce81e6a1713349369e22c65ed57e0c Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Tue, 23 Feb 2021 19:55:47 +0100 Subject: [PATCH] Add IQuery interface, add "Mods" as category --- src/scripts/interfaces.d.ts | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/scripts/interfaces.d.ts b/src/scripts/interfaces.d.ts index b99d670..854ca4a 100644 --- a/src/scripts/interfaces.d.ts +++ b/src/scripts/interfaces.d.ts @@ -57,7 +57,7 @@ export type TStatus = "Completed" | "Ongoing" | "Abandoned" | "Onhold"; /** * List of possible categories of a particular work. */ -export type TCategory = "games" | "comics" | "animations" | "assets"; +export type TCategory = "games" | "mods" | "comics" | "animations" | "assets"; /** * Collection of values defined for each @@ -253,4 +253,25 @@ export interface IAsset extends IBasic { * Collection of values extrapolated from the * F95 platform representing a particular work. */ -export interface IHandiwork extends IGame, IComic, IAnimation, IAsset { } \ No newline at end of file +export interface IHandiwork extends IGame, IComic, IAnimation, IAsset { } + +export interface IQuery { + /** + * Category of items to search among. + */ + category: TCategory, + /** + * Tags to be include in the search. + * Max. 5 tags + */ + includedTags: string[], + /** + * Prefixes to include in the search. + */ + includedPrefixes: string[], + /** + * Index of the page to be obtained. + * Between 1 and infinity. + */ + page: number, +} \ No newline at end of file