feat(api): add external ids to movie/tv response

This commit is contained in:
sct
2020-09-20 14:42:13 +09:00
parent 02cbb5b030
commit 4aa74319e0
6 changed files with 90 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ import {
Crew,
mapCast,
mapCrew,
ExternalIds,
mapExternalIds,
} from './common';
export interface MovieDetails {
@@ -45,6 +47,7 @@ export interface MovieDetails {
crew: Crew[];
};
request?: MediaRequest;
externalIds: ExternalIds;
}
export const mapMovieDetails = (
@@ -84,5 +87,6 @@ export const mapMovieDetails = (
cast: movie.credits.cast.map(mapCast),
crew: movie.credits.crew.map(mapCrew),
},
externalIds: mapExternalIds(movie.external_ids),
request,
});