add changes, credits, search
This commit is contained in:
Vendored
+16
-17
@@ -1,20 +1,19 @@
|
||||
export interface Certification {
|
||||
certification: string;
|
||||
meaning: string;
|
||||
order: number;
|
||||
}
|
||||
|
||||
export interface Certifications {
|
||||
certifications: {
|
||||
US: Certification[],
|
||||
CA: Certification[],
|
||||
DE: Certification[],
|
||||
GB: Certification[],
|
||||
AU: Certification[],
|
||||
BR: Certification[],
|
||||
FR: Certification[],
|
||||
NZ: Certification[],
|
||||
IN: Certification[],
|
||||
}
|
||||
}
|
||||
|
||||
export interface Certification {
|
||||
certification: string;
|
||||
meaning: string;
|
||||
order: number;
|
||||
certifications: {
|
||||
US: Certification[],
|
||||
CA: Certification[],
|
||||
DE: Certification[],
|
||||
GB: Certification[],
|
||||
AU: Certification[],
|
||||
BR: Certification[],
|
||||
FR: Certification[],
|
||||
NZ: Certification[],
|
||||
IN: Certification[],
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+8
-8
@@ -1,11 +1,11 @@
|
||||
export interface Changes{
|
||||
results: Change[];
|
||||
page: number;
|
||||
total_pages: nubmer;
|
||||
total_results: number;
|
||||
export interface Change {
|
||||
id: number;
|
||||
adult: boolean | undefined;
|
||||
}
|
||||
|
||||
export interface Change {
|
||||
id: number;
|
||||
adult: boolean | undefined;
|
||||
export interface Changes{
|
||||
results: Change[];
|
||||
page: number;
|
||||
total_pages: number;
|
||||
total_results: number;
|
||||
}
|
||||
|
||||
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
|
||||
export interface CreditSeason {
|
||||
air_date?: string;
|
||||
poster_path?: string;
|
||||
season_number?: number;
|
||||
}
|
||||
|
||||
|
||||
export interface Media{
|
||||
i?: number;
|
||||
name?:string;
|
||||
first_air_date?: string;
|
||||
vote_count?: number;
|
||||
overview?: string;
|
||||
vote_average?: number;
|
||||
backdrop_path?: string;
|
||||
genre_ids?: number[];
|
||||
original_name?: string;
|
||||
origin_country?: string[];
|
||||
poster_path?: string;
|
||||
original_language?: string;
|
||||
popularity?: number;
|
||||
character?: string;
|
||||
episodes?: string[];
|
||||
seasons?: CreditSeason[];
|
||||
}
|
||||
|
||||
export interface CreditResponse {
|
||||
credit_type?: string;
|
||||
department?: string;
|
||||
job?: string;
|
||||
media?: Media;
|
||||
media_type?: string;
|
||||
id?: string;
|
||||
person?: Person;
|
||||
}
|
||||
|
||||
Vendored
+88
@@ -0,0 +1,88 @@
|
||||
import * as certs from './certification';
|
||||
import * as credits from './credits';
|
||||
import * as changes from './changes';
|
||||
|
||||
export interface KnownFor {
|
||||
id: number;
|
||||
overview: string;
|
||||
release_date: string;
|
||||
video: boolean;
|
||||
adult: boolean;
|
||||
backdrop_path: string;
|
||||
media_type: string;
|
||||
genre_ids: number[];
|
||||
title: string;
|
||||
original_language: string;
|
||||
original_title: string;
|
||||
poster_path: string;
|
||||
vote_count: number;
|
||||
vote_average: number;
|
||||
popularity: number;
|
||||
}
|
||||
|
||||
export interface Person {
|
||||
id: number;
|
||||
name: string;
|
||||
known_for: KnownFor[];
|
||||
profile_path: string;
|
||||
adult: boolean;
|
||||
known_for_department: string;
|
||||
gender: number;
|
||||
popularity: number;
|
||||
}
|
||||
|
||||
export interface Collection {
|
||||
id:number;
|
||||
backdrop_path: string;
|
||||
name: string;
|
||||
poster_path: string;
|
||||
}
|
||||
|
||||
export interface Movie {
|
||||
id: number;
|
||||
logo_path: string;
|
||||
name: string;
|
||||
poster_path: string;
|
||||
adult: boolean;
|
||||
overview: string;
|
||||
release_date: string;
|
||||
genre_ids: number[];
|
||||
original_title: string;
|
||||
original_language: string;
|
||||
title: string;
|
||||
backdrop_path: string;
|
||||
popularity: number;
|
||||
vote_count: number;
|
||||
video: boolean;
|
||||
vote_average: number;
|
||||
}
|
||||
|
||||
export interface Company {
|
||||
id: number;
|
||||
logo_path: string;
|
||||
name: string;
|
||||
origin_country: string;
|
||||
}
|
||||
|
||||
export interface TV {
|
||||
id: number;
|
||||
name:string;
|
||||
first_air_date: string;
|
||||
backdrop_path: string;
|
||||
genre_ids: number[];
|
||||
origin_country: string[];
|
||||
original_language: string;
|
||||
original_name: string;
|
||||
overview: string;
|
||||
poster_path: string;
|
||||
popularity: number;
|
||||
vote_count: number;
|
||||
vote_average: number;
|
||||
}
|
||||
|
||||
|
||||
export {
|
||||
certs,
|
||||
credits,
|
||||
changes,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export interface Search<T> {
|
||||
page: number;
|
||||
results: T[];
|
||||
total_pages: number;
|
||||
total_results: number;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user