From e5be04f5ae9110adf1fc628e78b0c6ba60b05c01 Mon Sep 17 00:00:00 2001 From: castdrian Date: Thu, 29 Jun 2023 21:10:17 +0200 Subject: [PATCH] move forgotten typedefs --- src/backend/metadata/getmeta.ts | 19 +------------------ src/backend/metadata/types/justwatch.ts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/backend/metadata/getmeta.ts b/src/backend/metadata/getmeta.ts index bb75d90e..ff83c743 100644 --- a/src/backend/metadata/getmeta.ts +++ b/src/backend/metadata/getmeta.ts @@ -13,7 +13,7 @@ import { mediaTypeToTMDB, } from "./tmdb"; import { - JWMediaResult, + JWDetailedMeta, JWSeasonMetaResult, JW_API_BASE, } from "./types/justwatch"; @@ -26,23 +26,6 @@ import { } from "./types/tmdb"; import { makeUrl, proxiedFetch } from "../helpers/fetch"; -type JWExternalIdType = - | "eidr" - | "imdb_latest" - | "imdb" - | "tmdb_latest" - | "tmdb" - | "tms"; - -interface JWExternalId { - provider: JWExternalIdType; - external_id: string; -} - -interface JWDetailedMeta extends JWMediaResult { - external_ids: JWExternalId[]; -} - export interface DetailedMeta { meta: MWMediaMeta; imdbId?: string; diff --git a/src/backend/metadata/types/justwatch.ts b/src/backend/metadata/types/justwatch.ts index cb3ac092..b55e9e24 100644 --- a/src/backend/metadata/types/justwatch.ts +++ b/src/backend/metadata/types/justwatch.ts @@ -46,3 +46,20 @@ export type JWSeasonMetaResult = { season_number: number; episodes: JWEpisodeShort[]; }; + +export type JWExternalIdType = + | "eidr" + | "imdb_latest" + | "imdb" + | "tmdb_latest" + | "tmdb" + | "tms"; + +export interface JWExternalId { + provider: JWExternalIdType; + external_id: string; +} + +export interface JWDetailedMeta extends JWMediaResult { + external_ids: JWExternalId[]; +}