refactor: changed models dir to types
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export type AnimeAboutInfoQueryParams = {
|
||||
id?: string;
|
||||
};
|
||||
@@ -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";
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export type AnimeEpisodePathParams = {
|
||||
animeId?: string;
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export type GenreAnimePathParams = {
|
||||
name?: string;
|
||||
};
|
||||
|
||||
export type GenreAnimeQueryParams = {
|
||||
page?: string;
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export type AnimeProducerPathParams = {
|
||||
name?: string;
|
||||
};
|
||||
|
||||
export type AnimeProducerQueryParams = {
|
||||
page?: string;
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export type AnimeSearchQueryParams = {
|
||||
q?: string;
|
||||
page?: string;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export type AnimeSearchSuggestQueryParams = {
|
||||
q?: string;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export type EpisodeServersQueryParams = {
|
||||
episodeId?: string;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export type EstimatedScheduleQueryParams = {
|
||||
date?: string;
|
||||
};
|
||||
@@ -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,
|
||||
};
|
||||
Reference in New Issue
Block a user