diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-02 13:43:03 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-02 13:43:03 +0530 |
| commit | d4e3012320367f4c8c1bc15f955da07c4d7e2989 (patch) | |
| tree | 0906ba47241589aff4b0684f8aa242da5473888a | |
| parent | bad7933de7f61ea7ed62495c3b26e7b007bd133f (diff) | |
| download | aniwatch-api-d4e3012320367f4c8c1bc15f955da07c4d7e2989.tar.xz aniwatch-api-d4e3012320367f4c8c1bc15f955da07c4d7e2989.zip | |
feat: added anime types
| -rw-r--r-- | src/models/anime.ts | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/models/anime.ts b/src/models/anime.ts new file mode 100644 index 0000000..90e10d2 --- /dev/null +++ b/src/models/anime.ts @@ -0,0 +1,51 @@ +export interface Anime { + id: string | null; + name: string | null; + poster: string | null; + duration: string | null; + type: string | null; + rating: string | null; + episodes: string | null; +} + +type CommonAnimeProps = "id" | "name" | "poster"; + +export interface Top10Anime extends Pick<Anime, CommonAnimeProps> { + rank: number | null; + eps: { + sub: number | null; + dub: number | null; + }; +} + +export type Top10AnimeTimePeriod = "day" | "week" | "month"; + +export type AnimeCategories = + | "most-favorite" + | "most-popular" + | "subbed-anime" + | "dubbed-anime" + | "recently-updated" + | "recently-added" + | "top-upcoming" + | "top-airing" + | "movie" + | "special" + | "ova" + | "ona" + | "tv" + | "completed"; + +export enum Servers { + AsianLoad = "asianload", + GogoCDN = "gogocdn", + StreamSB = "streamsb", + MixDrop = "mixdrop", + UpCloud = "upcloud", + VidCloud = "vidcloud", + StreamTape = "streamtape", + VizCloud = "vizcloud", + MyCloud = "mycloud", + Filemoon = "filemoon", + VidStreaming = "vidstreaming", +} |
