update readme, started movie endpoints
This commit is contained in:
11
src/types/index.d.ts
vendored
11
src/types/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
import * as certs from './certification';
|
||||
import * as credits from './credits';
|
||||
import * as changes from './changes';
|
||||
export * from './certification';
|
||||
export * from './credits';
|
||||
export * from './changes';
|
||||
|
||||
|
||||
export interface KnownFor {
|
||||
id: number;
|
||||
@@ -80,6 +81,10 @@ export interface TV {
|
||||
vote_average: number;
|
||||
}
|
||||
|
||||
export interface Genre {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export {
|
||||
certs,
|
||||
|
||||
58
src/types/movie.d.ts
vendored
Normal file
58
src/types/movie.d.ts
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
import { Genre } from './index';
|
||||
|
||||
export interface ProductionCompany {
|
||||
id: number;
|
||||
logo_path: string;
|
||||
name: string;
|
||||
origin_country: string;
|
||||
}
|
||||
|
||||
export interface ProductionCountry {
|
||||
iso_3166_1: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface SpokenLanguage {
|
||||
iso_639_1: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface MovieDetails {
|
||||
adult: boolean;
|
||||
backdrop_path: string;
|
||||
belongs_to_collection?: any;
|
||||
budget: number;
|
||||
genres: Genre[];
|
||||
homepage: string;
|
||||
id: number;
|
||||
imdb_id: string;
|
||||
original_language: string;
|
||||
original_title: string;
|
||||
overview: string;
|
||||
popularity: number;
|
||||
poster_path?: any;
|
||||
production_companies: ProductionCompany[];
|
||||
production_countries: ProductionCountry[];
|
||||
release_date: string;
|
||||
revenue: number;
|
||||
runtime: number;
|
||||
spoken_languages: SpokenLanguage[];
|
||||
status: string;
|
||||
tagline: string;
|
||||
title: string;
|
||||
video: boolean;
|
||||
vote_average: number;
|
||||
vote_count: number;
|
||||
}
|
||||
|
||||
|
||||
export interface Title {
|
||||
iso_3166_1: string;
|
||||
title: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface AlternativeTitles {
|
||||
id: number;
|
||||
titles: Title[];
|
||||
}
|
||||
Reference in New Issue
Block a user