themoviedb-ts-api
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -165,2 +165,33 @@ var TheMovieDB = (function (exports,axios) { | ||
var TvSeasons = /** @class */ (function () { | ||
function TvSeasons(httpGet) { | ||
var _this = this; | ||
this.getDetails = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber, query); | ||
}; | ||
this.getChanges = function (seasonId, query) { | ||
return _this.httpGet("/tv/seasons/" + seasonId, query); | ||
}; | ||
this.getCredits = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/credits", query); | ||
}; | ||
this.getExternalIds = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/external_ids", query); | ||
}; | ||
this.getImages = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/images", query); | ||
}; | ||
this.getVideos = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/videos", query); | ||
}; | ||
this.httpGet = httpGet; | ||
} | ||
return TvSeasons; | ||
}()); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -192,2 +223,3 @@ function TheMovieDb(token, language) { | ||
this.discover = new Discover(this.httpGet); | ||
this.tvSeasons = new TvSeasons(this.httpGet); | ||
} | ||
@@ -194,0 +226,0 @@ return TheMovieDb; |
@@ -162,2 +162,33 @@ import axios from 'axios'; | ||
var TvSeasons = /** @class */ (function () { | ||
function TvSeasons(httpGet) { | ||
var _this = this; | ||
this.getDetails = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber, query); | ||
}; | ||
this.getChanges = function (seasonId, query) { | ||
return _this.httpGet("/tv/seasons/" + seasonId, query); | ||
}; | ||
this.getCredits = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/credits", query); | ||
}; | ||
this.getExternalIds = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/external_ids", query); | ||
}; | ||
this.getImages = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/images", query); | ||
}; | ||
this.getVideos = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/videos", query); | ||
}; | ||
this.httpGet = httpGet; | ||
} | ||
return TvSeasons; | ||
}()); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -189,2 +220,3 @@ function TheMovieDb(token, language) { | ||
this.discover = new Discover(this.httpGet); | ||
this.tvSeasons = new TvSeasons(this.httpGet); | ||
} | ||
@@ -191,0 +223,0 @@ return TheMovieDb; |
@@ -168,2 +168,33 @@ 'use strict'; | ||
var TvSeasons = /** @class */ (function () { | ||
function TvSeasons(httpGet) { | ||
var _this = this; | ||
this.getDetails = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber, query); | ||
}; | ||
this.getChanges = function (seasonId, query) { | ||
return _this.httpGet("/tv/seasons/" + seasonId, query); | ||
}; | ||
this.getCredits = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/credits", query); | ||
}; | ||
this.getExternalIds = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/external_ids", query); | ||
}; | ||
this.getImages = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/images", query); | ||
}; | ||
this.getVideos = function (tvId, seasonNumber, query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet("/tv/" + tvId + "/season/" + seasonNumber + "/videos", query); | ||
}; | ||
this.httpGet = httpGet; | ||
} | ||
return TvSeasons; | ||
}()); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -195,2 +226,3 @@ function TheMovieDb(token, language) { | ||
this.discover = new Discover(this.httpGet); | ||
this.tvSeasons = new TvSeasons(this.httpGet); | ||
} | ||
@@ -197,0 +229,0 @@ return TheMovieDb; |
@@ -19,2 +19,3 @@ "use strict"; | ||
var discover_1 = require("./discover"); | ||
var tv_seasons_1 = require("./tv-seasons"); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -46,2 +47,3 @@ function TheMovieDb(token, language) { | ||
this.discover = new discover_1.default(this.httpGet); | ||
this.tvSeasons = new tv_seasons_1.default(this.httpGet); | ||
} | ||
@@ -48,0 +50,0 @@ return TheMovieDb; |
@@ -5,2 +5,3 @@ import { AxiosInstance } from 'axios'; | ||
import Discover from './discover'; | ||
import TvSeasons from './tv-seasons'; | ||
export declare type TheMovieDbHttpGet = (endPoint: string, params?: Record<string, any>) => Promise<any>; | ||
@@ -12,4 +13,5 @@ export declare class TheMovieDb { | ||
discover: Discover; | ||
tvSeasons: TvSeasons; | ||
tv: TV; | ||
constructor(token: string, language?: string); | ||
} |
@@ -33,3 +33,14 @@ import { Genre } from './genres'; | ||
name: string; | ||
next_episode_to_air: null; | ||
next_episode_to_air: { | ||
air_date: string; | ||
episode_number: number; | ||
id: number; | ||
name: string; | ||
overview: string; | ||
production_code: number; | ||
show_id: number; | ||
still_path: string; | ||
vote_average: number; | ||
vote_count: number; | ||
} | null; | ||
networks: { | ||
@@ -289,4 +300,4 @@ name: string; | ||
}>; | ||
declare type TvVideoSize = 360 | 480 | 720 | 1080; | ||
declare type TvVideoType = 'Trailer' | 'Teaser' | 'Clip' | 'Featurette' | 'Opening Credits' | 'Behind the Scenes' | 'Bloopers'; | ||
export declare type TvVideoSize = 360 | 480 | 720 | 1080; | ||
export declare type TvVideoType = 'Trailer' | 'Teaser' | 'Clip' | 'Featurette' | 'Opening Credits' | 'Behind the Scenes' | 'Bloopers'; | ||
export interface TvVideos { | ||
@@ -293,0 +304,0 @@ id: number; |
{ | ||
"name": "themoviedb-ts-api", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A TypeScript Library to interact with the API of TheMovieDB", | ||
@@ -5,0 +5,0 @@ "keywords": ["api", "themoviedb"], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
83139
27
1602