mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
move forgotten typedefs
This commit is contained in:
parent
9d0878c5f1
commit
e5be04f5ae
2 changed files with 18 additions and 18 deletions
|
@ -13,7 +13,7 @@ import {
|
||||||
mediaTypeToTMDB,
|
mediaTypeToTMDB,
|
||||||
} from "./tmdb";
|
} from "./tmdb";
|
||||||
import {
|
import {
|
||||||
JWMediaResult,
|
JWDetailedMeta,
|
||||||
JWSeasonMetaResult,
|
JWSeasonMetaResult,
|
||||||
JW_API_BASE,
|
JW_API_BASE,
|
||||||
} from "./types/justwatch";
|
} from "./types/justwatch";
|
||||||
|
@ -26,23 +26,6 @@ import {
|
||||||
} from "./types/tmdb";
|
} from "./types/tmdb";
|
||||||
import { makeUrl, proxiedFetch } from "../helpers/fetch";
|
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 {
|
export interface DetailedMeta {
|
||||||
meta: MWMediaMeta;
|
meta: MWMediaMeta;
|
||||||
imdbId?: string;
|
imdbId?: string;
|
||||||
|
|
|
@ -46,3 +46,20 @@ export type JWSeasonMetaResult = {
|
||||||
season_number: number;
|
season_number: number;
|
||||||
episodes: JWEpisodeShort[];
|
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[];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue