move forgotten typedefs

This commit is contained in:
castdrian 2023-06-29 21:10:17 +02:00
parent 9d0878c5f1
commit e5be04f5ae
2 changed files with 18 additions and 18 deletions

View File

@ -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;

View File

@ -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[];
}