From 0685c200dd0ccd3de9ed88996b1e55f0e7ce4bf7 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 17 Dec 2023 19:38:04 +0530 Subject: feat(estimatedSchedule): add `/schedule` endpoint controller query params type --- src/models/controllers/estimatedSchedule.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/models/controllers/estimatedSchedule.ts (limited to 'src/models') diff --git a/src/models/controllers/estimatedSchedule.ts b/src/models/controllers/estimatedSchedule.ts new file mode 100644 index 0000000..e732aaa --- /dev/null +++ b/src/models/controllers/estimatedSchedule.ts @@ -0,0 +1,3 @@ +export type EstimatedScheduleQueryParams = { + date?: string; +}; -- cgit v1.2.3 From 24c2520151b880095ff7966c353793f2cd83024e Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 17 Dec 2023 19:39:24 +0530 Subject: refactor: controller models import export --- src/models/controllers/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/models') diff --git a/src/models/controllers/index.ts b/src/models/controllers/index.ts index df9beff..fab25b6 100644 --- a/src/models/controllers/index.ts +++ b/src/models/controllers/index.ts @@ -15,6 +15,7 @@ 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 { @@ -29,5 +30,6 @@ export type { AnimeAboutInfoQueryParams, EpisodeServersQueryParams, AnimeEpisodeSrcsQueryParams, + EstimatedScheduleQueryParams, AnimeSearchSuggestQueryParams, }; -- cgit v1.2.3 From 3531e7299896a48a66bdeac0bf858a081f70d129 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 17 Dec 2023 19:39:46 +0530 Subject: refactor: parser models import export --- src/models/parsers/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/models') diff --git a/src/models/parsers/index.ts b/src/models/parsers/index.ts index 2fb15af..057e2fc 100644 --- a/src/models/parsers/index.ts +++ b/src/models/parsers/index.ts @@ -6,6 +6,7 @@ import type { ScrapedProducerAnime } from "./animeProducer.js"; import type { ScrapedEpisodeServers } from "./episodeServers.js"; import type { ScrapedAnimeAboutInfo } from "./animeAboutInfo.js"; import type { ScrapedAnimeSearchResult } from "./animeSearch.js"; +import type { ScrapedEstimatedSchedule } from "./estimatedSchedule.js"; import type { ScrapedAnimeEpisodesSources } from "./animeEpisodeSrcs.js"; import type { ScrapedAnimeSearchSuggestion } from "./animeSearchSuggestion.js"; @@ -18,6 +19,7 @@ export type { ScrapedEpisodeServers, ScrapedAnimeAboutInfo, ScrapedAnimeSearchResult, + ScrapedEstimatedSchedule, ScrapedAnimeEpisodesSources, ScrapedAnimeSearchSuggestion, }; -- cgit v1.2.3 From 0ca9a82a2bd5b769e252424a78a08a17a62e9854 Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Sun, 17 Dec 2023 19:40:40 +0530 Subject: feat(estimatedSchedule): add `EstimatedSchedule` types --- src/models/parsers/estimatedSchedule.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/models/parsers/estimatedSchedule.ts (limited to 'src/models') diff --git a/src/models/parsers/estimatedSchedule.ts b/src/models/parsers/estimatedSchedule.ts new file mode 100644 index 0000000..f62dd14 --- /dev/null +++ b/src/models/parsers/estimatedSchedule.ts @@ -0,0 +1,10 @@ +type EstimatedSchedule = { + id: string | null; + time: string | null; + name: string | null; + jname: string | null; +}; + +export type ScrapedEstimatedSchedule = { + scheduledAnimes: Array; +}; -- cgit v1.2.3