refactor: changed models dir to types

This commit is contained in:
Ritesh Ghosh
2024-01-19 19:56:39 +05:30
parent c4318e7361
commit 255e4823c9
25 changed files with 0 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
export type AnimeAboutInfoQueryParams = {
id?: string;
};
+7
View File
@@ -0,0 +1,7 @@
export type CategoryAnimePathParams = {
category?: string;
};
export type CategoryAnimeQueryParams = {
page?: string;
};
@@ -0,0 +1,7 @@
import { type AnimeServers } from "../anime.js";
export type AnimeEpisodeSrcsQueryParams = {
id?: string;
server?: AnimeServers;
category?: "sub" | "dub";
};
+3
View File
@@ -0,0 +1,3 @@
export type AnimeEpisodePathParams = {
animeId?: string;
};
+7
View File
@@ -0,0 +1,7 @@
export type GenreAnimePathParams = {
name?: string;
};
export type GenreAnimeQueryParams = {
page?: string;
};
+7
View File
@@ -0,0 +1,7 @@
export type AnimeProducerPathParams = {
name?: string;
};
export type AnimeProducerQueryParams = {
page?: string;
};
+4
View File
@@ -0,0 +1,4 @@
export type AnimeSearchQueryParams = {
q?: string;
page?: string;
};
@@ -0,0 +1,3 @@
export type AnimeSearchSuggestQueryParams = {
q?: string;
};
+3
View File
@@ -0,0 +1,3 @@
export type EpisodeServersQueryParams = {
episodeId?: string;
};
@@ -0,0 +1,3 @@
export type EstimatedScheduleQueryParams = {
date?: string;
};
+35
View File
@@ -0,0 +1,35 @@
import type {
GenreAnimePathParams,
GenreAnimeQueryParams,
} from "./animeGenre.js";
import type {
CategoryAnimePathParams,
CategoryAnimeQueryParams,
} from "./animeCategory.js";
import type {
AnimeProducerPathParams,
AnimeProducerQueryParams,
} from "./animeProducer.js";
import type { AnimeSearchQueryParams } from "./animeSearch.js";
import type { AnimeEpisodePathParams } from "./animeEpisodes.js";
import type { EpisodeServersQueryParams } from "./episodeServers.js";
import type { AnimeAboutInfoQueryParams } from "./animeAboutInfo.js";
import type { AnimeEpisodeSrcsQueryParams } from "./animeEpisodeSrcs.js";
import type { EstimatedScheduleQueryParams } from "./estimatedSchedule.js";
import type { AnimeSearchSuggestQueryParams } from "./animeSearchSuggestion.js";
export type {
GenreAnimePathParams,
GenreAnimeQueryParams,
AnimeSearchQueryParams,
AnimeEpisodePathParams,
AnimeProducerPathParams,
CategoryAnimePathParams,
AnimeProducerQueryParams,
CategoryAnimeQueryParams,
AnimeAboutInfoQueryParams,
EpisodeServersQueryParams,
AnimeEpisodeSrcsQueryParams,
EstimatedScheduleQueryParams,
AnimeSearchSuggestQueryParams,
};