@tdanks2000/tmdb-wrapper 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/@types/endpoints/configuration.js +99 -0
- package/dist/@types/models/baseEndpoint.js +3 -3
- package/dist/endpoints/account.js +3 -13
- package/dist/endpoints/certification.js +4 -17
- package/dist/endpoints/changes.js +6 -21
- package/dist/endpoints/collections.js +11 -27
- package/dist/endpoints/companies.js +6 -21
- package/dist/endpoints/configuration.js +2 -13
- package/dist/endpoints/credits.js +2 -13
- package/dist/endpoints/discover.js +6 -18
- package/dist/endpoints/find.js +3 -13
- package/dist/endpoints/genre.js +4 -17
- package/dist/endpoints/keywords.js +6 -18
- package/dist/endpoints/movies.js +51 -99
- package/dist/endpoints/networks.js +6 -21
- package/dist/endpoints/people.js +30 -58
- package/dist/endpoints/review.js +3 -13
- package/dist/endpoints/search.js +15 -38
- package/dist/endpoints/trending.js +3 -13
- package/dist/endpoints/tvEpisodes.js +29 -48
- package/dist/endpoints/tvSeasons.js +31 -52
- package/dist/endpoints/tvShows.js +61 -116
- package/dist/endpoints/watchProviders.js +9 -26
- package/dist/index.js +22 -22
- package/dist/utils/api.js +49 -27
- package/dist/utils/getimagePath.js +13 -13
- package/package.json +61 -57
- package/dist/@types/endpoints/account.d.ts +0 -16
- package/dist/@types/endpoints/account.d.ts.map +0 -1
- package/dist/@types/endpoints/certification.d.ts +0 -19
- package/dist/@types/endpoints/certification.d.ts.map +0 -1
- package/dist/@types/endpoints/changes.d.ts +0 -26
- package/dist/@types/endpoints/changes.d.ts.map +0 -1
- package/dist/@types/endpoints/collection.d.ts +0 -21
- package/dist/@types/endpoints/collection.d.ts.map +0 -1
- package/dist/@types/endpoints/companies.d.ts +0 -29
- package/dist/@types/endpoints/companies.d.ts.map +0 -1
- package/dist/@types/endpoints/configuration.d.ts +0 -106
- package/dist/@types/endpoints/configuration.d.ts.map +0 -1
- package/dist/@types/endpoints/credits.d.ts +0 -135
- package/dist/@types/endpoints/credits.d.ts.map +0 -1
- package/dist/@types/endpoints/discover.d.ts +0 -68
- package/dist/@types/endpoints/discover.d.ts.map +0 -1
- package/dist/@types/endpoints/find.d.ts +0 -20
- package/dist/@types/endpoints/find.d.ts.map +0 -1
- package/dist/@types/endpoints/genre.d.ts +0 -7
- package/dist/@types/endpoints/genre.d.ts.map +0 -1
- package/dist/@types/endpoints/index.d.ts +0 -23
- package/dist/@types/endpoints/index.d.ts.map +0 -1
- package/dist/@types/endpoints/keywords.d.ts +0 -21
- package/dist/@types/endpoints/keywords.d.ts.map +0 -1
- package/dist/@types/endpoints/movies.d.ts +0 -150
- package/dist/@types/endpoints/movies.d.ts.map +0 -1
- package/dist/@types/endpoints/networks.d.ts +0 -14
- package/dist/@types/endpoints/networks.d.ts.map +0 -1
- package/dist/@types/endpoints/options.d.ts +0 -73
- package/dist/@types/endpoints/options.d.ts.map +0 -1
- package/dist/@types/endpoints/people.d.ts +0 -135
- package/dist/@types/endpoints/people.d.ts.map +0 -1
- package/dist/@types/endpoints/review.d.ts +0 -8
- package/dist/@types/endpoints/review.d.ts.map +0 -1
- package/dist/@types/endpoints/search.d.ts +0 -32
- package/dist/@types/endpoints/search.d.ts.map +0 -1
- package/dist/@types/endpoints/trending.d.ts +0 -12
- package/dist/@types/endpoints/trending.d.ts.map +0 -1
- package/dist/@types/endpoints/tvEpisode.d.ts +0 -65
- package/dist/@types/endpoints/tvEpisode.d.ts.map +0 -1
- package/dist/@types/endpoints/tvSeasons.d.ts +0 -31
- package/dist/@types/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/@types/endpoints/tvShows.d.ts +0 -260
- package/dist/@types/endpoints/tvShows.d.ts.map +0 -1
- package/dist/@types/endpoints/watchProviders.d.ts +0 -295
- package/dist/@types/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/@types/index.d.ts +0 -4
- package/dist/@types/index.d.ts.map +0 -1
- package/dist/@types/models/baseEndpoint.d.ts +0 -7
- package/dist/@types/models/baseEndpoint.d.ts.map +0 -1
- package/dist/@types/models/index.d.ts +0 -2
- package/dist/@types/models/index.d.ts.map +0 -1
- package/dist/@types/types.d.ts +0 -174
- package/dist/@types/types.d.ts.map +0 -1
- package/dist/endpoints/account.d.ts +0 -17
- package/dist/endpoints/account.d.ts.map +0 -1
- package/dist/endpoints/certification.d.ts +0 -23
- package/dist/endpoints/certification.d.ts.map +0 -1
- package/dist/endpoints/changes.d.ts +0 -31
- package/dist/endpoints/changes.d.ts.map +0 -1
- package/dist/endpoints/collections.d.ts +0 -34
- package/dist/endpoints/collections.d.ts.map +0 -1
- package/dist/endpoints/companies.d.ts +0 -31
- package/dist/endpoints/companies.d.ts.map +0 -1
- package/dist/endpoints/configuration.d.ts +0 -18
- package/dist/endpoints/configuration.d.ts.map +0 -1
- package/dist/endpoints/credits.d.ts +0 -19
- package/dist/endpoints/credits.d.ts.map +0 -1
- package/dist/endpoints/discover.d.ts +0 -24
- package/dist/endpoints/discover.d.ts.map +0 -1
- package/dist/endpoints/find.d.ts +0 -19
- package/dist/endpoints/find.d.ts.map +0 -1
- package/dist/endpoints/genre.d.ts +0 -25
- package/dist/endpoints/genre.d.ts.map +0 -1
- package/dist/endpoints/index.d.ts +0 -22
- package/dist/endpoints/index.d.ts.map +0 -1
- package/dist/endpoints/keywords.d.ts +0 -25
- package/dist/endpoints/keywords.d.ts.map +0 -1
- package/dist/endpoints/movies.d.ts +0 -142
- package/dist/endpoints/movies.d.ts.map +0 -1
- package/dist/endpoints/networks.d.ts +0 -31
- package/dist/endpoints/networks.d.ts.map +0 -1
- package/dist/endpoints/people.d.ts +0 -84
- package/dist/endpoints/people.d.ts.map +0 -1
- package/dist/endpoints/review.d.ts +0 -18
- package/dist/endpoints/review.d.ts.map +0 -1
- package/dist/endpoints/search.d.ts +0 -58
- package/dist/endpoints/search.d.ts.map +0 -1
- package/dist/endpoints/trending.d.ts +0 -21
- package/dist/endpoints/trending.d.ts.map +0 -1
- package/dist/endpoints/tvEpisodes.d.ts +0 -61
- package/dist/endpoints/tvEpisodes.d.ts.map +0 -1
- package/dist/endpoints/tvSeasons.d.ts +0 -70
- package/dist/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/endpoints/tvShows.d.ts +0 -164
- package/dist/endpoints/tvShows.d.ts.map +0 -1
- package/dist/endpoints/watchProviders.d.ts +0 -33
- package/dist/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/index.d.ts +0 -29
- package/dist/index.d.ts.map +0 -1
- package/dist/utils/api.d.ts +0 -7
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/getimagePath.d.ts +0 -32
- package/dist/utils/getimagePath.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { AppendToResponse, AppendToResponseTvEpisodeKey, BaseEndpoint, ChangeOption, Changes, Episode, EpisodeSelection, ExternalIds, Images, LanguageOption, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, Videos } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing TV episode-related information.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TvEpisodesEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new TvEpisodesEndpoint instance.
|
|
8
|
-
* @param {string} access_token - The access token used for authentication.
|
|
9
|
-
*/
|
|
10
|
-
constructor(access_token: string);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves details of a specific TV episode asynchronously.
|
|
13
|
-
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
14
|
-
* @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
|
|
15
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
16
|
-
* @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
|
|
17
|
-
* A Promise that resolves with the details of the TV episode.
|
|
18
|
-
*/
|
|
19
|
-
details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves changes related to a specific TV episode asynchronously.
|
|
22
|
-
* @param {number} episodeID - The ID of the TV episode.
|
|
23
|
-
* @param {ChangeOption} [options] - Optional parameters for specifying changes.
|
|
24
|
-
* @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
|
|
25
|
-
*/
|
|
26
|
-
changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves credits for a specific TV episode asynchronously.
|
|
29
|
-
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
30
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
31
|
-
* @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
|
|
32
|
-
*/
|
|
33
|
-
credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves external IDs for a specific TV episode asynchronously.
|
|
36
|
-
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
37
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
|
|
38
|
-
*/
|
|
39
|
-
externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves images for a specific TV episode asynchronously.
|
|
42
|
-
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
43
|
-
* @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
44
|
-
* @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
|
|
45
|
-
*/
|
|
46
|
-
images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves translations for a specific TV episode asynchronously.
|
|
49
|
-
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
50
|
-
* @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
|
|
51
|
-
*/
|
|
52
|
-
translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves videos for a specific TV episode asynchronously.
|
|
55
|
-
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
56
|
-
* @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
|
|
57
|
-
* @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
|
|
58
|
-
*/
|
|
59
|
-
videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=tvEpisodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tvEpisodes.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvEpisodes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,cAAc,EAEd,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,MAAM,EACP,MAAM,WAAW,CAAC;AAMnB;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,YAAY;IAClD;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,SAAS,4BAA4B,EAAE,GAAG,SAAS,EAChE,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,CAAC,EAAE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAa1B;;;;;OAKG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAIvD;;;;;OAKG;IACG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc;IAI1E;;;;OAIG;IACG,WAAW,CAAC,gBAAgB,EAAE,gBAAgB;IAIpD;;;;;OAKG;IACG,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,2BAA2B;IAQtF;;;;OAIG;IACG,YAAY,CAAC,gBAAgB,EAAE,gBAAgB;IAIrD;;;;;OAKG;IACG,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,2BAA2B;CAOvF"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { AggregateCredits, AppendToResponse, AppendToResponseTvSeasonKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, LanguageOption, SeasonDetails, SeasonSelection, Translations, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, Videos } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing TV season-related information.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TvSeasonsEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new TvSeasonsEndpoint instance.
|
|
8
|
-
* @param {string} access_token - The access token used for authentication.
|
|
9
|
-
*/
|
|
10
|
-
constructor(access_token: string);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves details of a specific TV season asynchronously.
|
|
13
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
14
|
-
* @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
|
|
15
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
16
|
-
* @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
|
|
17
|
-
* A Promise that resolves with the details of the TV season.
|
|
18
|
-
*/
|
|
19
|
-
details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves aggregate credits for a specific TV season asynchronously.
|
|
22
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
23
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
24
|
-
* @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
|
|
25
|
-
*/
|
|
26
|
-
aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves changes related to a specific TV season asynchronously.
|
|
29
|
-
* @param {number} seasonId - The ID of the TV season.
|
|
30
|
-
* @param {ChangeOption} [options] - Optional parameters for specifying changes.
|
|
31
|
-
* @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
|
|
32
|
-
*/
|
|
33
|
-
changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves credits for a specific TV season asynchronously.
|
|
36
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
37
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
38
|
-
* @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
|
|
39
|
-
*/
|
|
40
|
-
credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves external IDs for a specific TV season asynchronously.
|
|
43
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
44
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
45
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
|
|
46
|
-
*/
|
|
47
|
-
externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
|
|
48
|
-
/**
|
|
49
|
-
* Retrieves images for a specific TV season asynchronously.
|
|
50
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
51
|
-
* @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
52
|
-
* @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
|
|
53
|
-
*/
|
|
54
|
-
images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
|
|
55
|
-
/**
|
|
56
|
-
* Retrieves videos for a specific TV season asynchronously.
|
|
57
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
58
|
-
* @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
|
|
59
|
-
* @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
|
|
60
|
-
*/
|
|
61
|
-
videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves translations for a specific TV season asynchronously.
|
|
64
|
-
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
65
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
66
|
-
* @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
|
|
67
|
-
*/
|
|
68
|
-
translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=tvSeasons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tvSeasons.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvSeasons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,MAAM,EACP,MAAM,WAAW,CAAC;AAMnB;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,SAAS,2BAA2B,EAAE,GAAG,SAAS,EAC/D,eAAe,EAAE,eAAe,EAChC,gBAAgB,CAAC,EAAE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAa1B;;;;;OAKG;IACG,gBAAgB,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;IAIjF;;;;;OAKG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAItD;;;;;OAKG;IACG,OAAO,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;IAIxE;;;;;OAKG;IACG,WAAW,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;IAI5E;;;;;OAKG;IACG,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,0BAA0B;IAQnF;;;;;OAKG;IACG,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,0BAA0B;IAQnF;;;;;OAKG;IACG,YAAY,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;CAG9E"}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { AggregateCredits, AlternativeTitles, AppendToResponse, AppendToResponseTvKey, BaseEndpoint, ChangeOption, Changes, ContentRatings, Credits, EpisodeGroups, ExternalIds, Images, Keywords, LanguageOption, Latesttv, OnTheAir, PageOption, Populartv, Recommendations, Reviews, ScreenedTheatrically, SeasonDetails, Similartv, TimezoneOption, TopRatedtv, Translations, TvShowChangeValue, TvShowDetails, TvShowImageOptions, TvShowVideoOptions, Videos, WatchProviders, tvAiringToday } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing TV show-related information.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TvShowsEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new TvShowsEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: string);
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves details of a specific TV show asynchronously.
|
|
14
|
-
* @param {number} id - The ID of the TV show.
|
|
15
|
-
* @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
|
|
16
|
-
* @param {string} [language] - The language for the response.
|
|
17
|
-
* @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
|
|
18
|
-
* A Promise that resolves with the details of the TV show.
|
|
19
|
-
*/
|
|
20
|
-
details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, 'tvShow'>>;
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves alternative titles of a specific TV show asynchronously.
|
|
23
|
-
* @param {number} id - The ID of the TV show.
|
|
24
|
-
* @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the TV show.
|
|
25
|
-
*/
|
|
26
|
-
alternativeTitles(id: number): Promise<AlternativeTitles>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves changes for a specific TV show asynchronously.
|
|
29
|
-
* @param {number} id - The ID of the TV show.
|
|
30
|
-
* @param {ChangeOption} [options] - Additional options for the request.
|
|
31
|
-
* @returns {Promise<Changes<TvShowChangeValue>>}
|
|
32
|
-
* A Promise that resolves with the changes for the TV show.
|
|
33
|
-
*/
|
|
34
|
-
changes(id: number, options?: ChangeOption): Promise<Changes<TvShowChangeValue>>;
|
|
35
|
-
/**
|
|
36
|
-
* Retrieves content ratings for a specific TV show asynchronously.
|
|
37
|
-
* @param {number} id - The ID of the TV show.
|
|
38
|
-
* @returns {Promise<ContentRatings>} A Promise that resolves with the content ratings of the TV show.
|
|
39
|
-
*/
|
|
40
|
-
contentRatings(id: number): Promise<ContentRatings>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves aggregate credits for a specific TV show asynchronously.
|
|
43
|
-
* @param {number} id - The ID of the TV show.
|
|
44
|
-
* @param {LanguageOption} [options] - Additional options for the request.
|
|
45
|
-
* @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits of the TV show.
|
|
46
|
-
*/
|
|
47
|
-
aggregateCredits(id: number, options?: LanguageOption): Promise<AggregateCredits>;
|
|
48
|
-
/**
|
|
49
|
-
* Retrieves credits for a specific TV show asynchronously.
|
|
50
|
-
* @param {number} id - The ID of the TV show.
|
|
51
|
-
* @param {LanguageOption} [options] - Additional options for the request.
|
|
52
|
-
* @returns {Promise<Credits>} A Promise that resolves with the credits of the TV show.
|
|
53
|
-
*/
|
|
54
|
-
credits(id: number, options?: LanguageOption): Promise<Credits>;
|
|
55
|
-
/**
|
|
56
|
-
* Retrieves details of a specific season of a TV show asynchronously.
|
|
57
|
-
* @param {number} tvId - The ID of the TV show.
|
|
58
|
-
* @param {number} seasonNumber - The season number.
|
|
59
|
-
* @returns {Promise<SeasonDetails>} A Promise that resolves with the details of the season.
|
|
60
|
-
*/
|
|
61
|
-
season(tvId: number, seasonNumber: number): Promise<SeasonDetails>;
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves episode groups for a specific TV show asynchronously.
|
|
64
|
-
* @param {number} id - The ID of the TV show.
|
|
65
|
-
* @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode groups of the TV show.
|
|
66
|
-
*/
|
|
67
|
-
episodeGroups(id: number): Promise<EpisodeGroups>;
|
|
68
|
-
/**
|
|
69
|
-
* Retrieves external IDs for a specific TV show asynchronously.
|
|
70
|
-
* @param {number} id - The ID of the TV show.
|
|
71
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the TV show.
|
|
72
|
-
*/
|
|
73
|
-
externalIds(id: number): Promise<ExternalIds>;
|
|
74
|
-
/**
|
|
75
|
-
* Retrieves images for a specific TV show asynchronously.
|
|
76
|
-
* @param {number} id - The ID of the TV show.
|
|
77
|
-
* @param {TvShowImageOptions} [options] - Additional options for the request.
|
|
78
|
-
* @returns {Promise<Images>} A Promise that resolves with the images of the TV show.
|
|
79
|
-
*/
|
|
80
|
-
images(id: number, options?: TvShowImageOptions): Promise<Images>;
|
|
81
|
-
/**
|
|
82
|
-
* Retrieves keywords for a specific TV show asynchronously.
|
|
83
|
-
* @param {number} id - The ID of the TV show.
|
|
84
|
-
* @returns {Promise<Keywords>} A Promise that resolves with the keywords of the TV show.
|
|
85
|
-
*/
|
|
86
|
-
keywords(id: number): Promise<Keywords>;
|
|
87
|
-
/**
|
|
88
|
-
* Retrieves recommendations for a specific TV show asynchronously.
|
|
89
|
-
* @param {number} id - The ID of the TV show.
|
|
90
|
-
* @param {LanguageOption & PageOption} [options] - Additional options for the request.
|
|
91
|
-
* @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the TV show.
|
|
92
|
-
*/
|
|
93
|
-
recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
|
|
94
|
-
/**
|
|
95
|
-
* Retrieves reviews for a specific TV show asynchronously.
|
|
96
|
-
* @param {number} id - The ID of the TV show.
|
|
97
|
-
* @param {LanguageOption & PageOption} [options] - Additional options for the request.
|
|
98
|
-
* @returns {Promise<Reviews>} A Promise that resolves with the reviews of the TV show.
|
|
99
|
-
*/
|
|
100
|
-
reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
|
|
101
|
-
/**
|
|
102
|
-
* Retrieves information about whether the TV show was screened theatrically asynchronously.
|
|
103
|
-
* @param {number} id - The ID of the TV show.
|
|
104
|
-
* @returns {Promise<ScreenedTheatrically>} A Promise that resolves with information about theatrical screenings.
|
|
105
|
-
*/
|
|
106
|
-
screenedTheatrically(id: number): Promise<ScreenedTheatrically>;
|
|
107
|
-
/**
|
|
108
|
-
* Retrieves similar TV shows for a specific TV show asynchronously.
|
|
109
|
-
* @param {number} id - The ID of the TV show.
|
|
110
|
-
* @param {LanguageOption & PageOption} [options] - Additional options for the request.
|
|
111
|
-
* @returns {Promise<Similartv>} A Promise that resolves with the similar TV shows.
|
|
112
|
-
*/
|
|
113
|
-
similar(id: number, options?: LanguageOption & PageOption): Promise<Similartv>;
|
|
114
|
-
/**
|
|
115
|
-
* Retrieves translations for a specific TV show asynchronously.
|
|
116
|
-
* @param {number} id - The ID of the TV show.
|
|
117
|
-
* @returns {Promise<Translations>} A Promise that resolves with the translations of the TV show.
|
|
118
|
-
*/
|
|
119
|
-
translations(id: number): Promise<Translations>;
|
|
120
|
-
/**
|
|
121
|
-
* Retrieves videos for a specific TV show asynchronously.
|
|
122
|
-
* @param {number} id - The ID of the TV show.
|
|
123
|
-
* @param {TvShowVideoOptions} [options] - Additional options for the request.
|
|
124
|
-
* @returns {Promise<Videos>} A Promise that resolves with the videos of the TV show.
|
|
125
|
-
*/
|
|
126
|
-
videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
|
|
127
|
-
/**
|
|
128
|
-
* Retrieves watch providers for a specific TV show asynchronously.
|
|
129
|
-
* Powered by JustWatch.
|
|
130
|
-
* @param {number} id - The ID of the TV show.
|
|
131
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the TV show.
|
|
132
|
-
*/
|
|
133
|
-
watchProviders(id: number): Promise<WatchProviders>;
|
|
134
|
-
/**
|
|
135
|
-
* Retrieves the latest TV show asynchronously.
|
|
136
|
-
* @returns {Promise<Latesttv>} A Promise that resolves with the latest TV show.
|
|
137
|
-
*/
|
|
138
|
-
latest(): Promise<Latesttv>;
|
|
139
|
-
/**
|
|
140
|
-
* Retrieves TV shows that are currently on the air asynchronously.
|
|
141
|
-
* @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
|
|
142
|
-
* @returns {Promise<OnTheAir>} A Promise that resolves with TV shows currently on the air.
|
|
143
|
-
*/
|
|
144
|
-
onTheAir(options?: PageOption & LanguageOption & TimezoneOption): Promise<OnTheAir>;
|
|
145
|
-
/**
|
|
146
|
-
* Retrieves TV shows that are airing today asynchronously.
|
|
147
|
-
* @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
|
|
148
|
-
* @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows airing today.
|
|
149
|
-
*/
|
|
150
|
-
airingToday(options?: PageOption & LanguageOption & TimezoneOption): Promise<tvAiringToday>;
|
|
151
|
-
/**
|
|
152
|
-
* Retrieves popular TV shows asynchronously.
|
|
153
|
-
* @param {PageOption & LanguageOption} [options] - Additional options for the request.
|
|
154
|
-
* @returns {Promise<Populartv>} A Promise that resolves with popular TV shows.
|
|
155
|
-
*/
|
|
156
|
-
popular(options?: PageOption & LanguageOption): Promise<Populartv>;
|
|
157
|
-
/**
|
|
158
|
-
* Retrieves top-rated TV shows asynchronously.
|
|
159
|
-
* @param {PageOption & LanguageOption} [options] - Additional options for the request.
|
|
160
|
-
* @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV shows.
|
|
161
|
-
*/
|
|
162
|
-
topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
|
|
163
|
-
}
|
|
164
|
-
//# sourceMappingURL=tvShows.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tvShows.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvShows.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, WatchProviders } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing watch provider information.
|
|
4
|
-
*/
|
|
5
|
-
export declare class WatchProvidersEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new WatchProvidersEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: string);
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves a list of all available watch providers (streaming services).
|
|
14
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of watch providers.
|
|
15
|
-
*/
|
|
16
|
-
available(): Promise<WatchProviders>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves a list of available regions for watch providers.
|
|
19
|
-
* @returns {Promise<any>} A Promise that resolves with the list of available regions.
|
|
20
|
-
*/
|
|
21
|
-
regions(): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* Retrieves a list of watch providers for movies.
|
|
24
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of movie watch providers.
|
|
25
|
-
*/
|
|
26
|
-
movie(): Promise<WatchProviders>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves a list of watch providers for TV shows.
|
|
29
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of TV watch providers.
|
|
30
|
-
*/
|
|
31
|
-
tv(): Promise<WatchProviders>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=watchProviders.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watchProviders.d.ts","sourceRoot":"","sources":["../../src/endpoints/watchProviders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEzD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,YAAY;IAK1C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;OAGG;IACG,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC;IAI1C;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;IAI7B;;;OAGG;IACG,KAAK,IAAI,OAAO,CAAC,cAAc,CAAC;IAItC;;;OAGG;IACG,EAAE,IAAI,OAAO,CAAC,cAAc,CAAC;CAGpC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AccountEndpoint, CertificationEndpoint, ChangeEndpoint, CollectionsEndpoint, CompaniesEndpoint, ConfigurationEndpoint, CreditsEndpoint, DiscoverEndpoint, FindEndpoint, GenreEndpoint, KeywordsEndpoint, MoviesEndpoint, NetworksEndpoint, PeopleEndpoint, ReviewEndpoint, SearchEndpoint, TrendingEndpoint, TvEpisodesEndpoint, TvSeasonsEndpoint, TvShowsEndpoint, WatchProvidersEndpoint } from './endpoints';
|
|
2
|
-
declare class TMDB {
|
|
3
|
-
constructor(access_token: string);
|
|
4
|
-
account: AccountEndpoint;
|
|
5
|
-
certification: CertificationEndpoint;
|
|
6
|
-
changes: ChangeEndpoint;
|
|
7
|
-
collections: CollectionsEndpoint;
|
|
8
|
-
companies: CompaniesEndpoint;
|
|
9
|
-
configuration: ConfigurationEndpoint;
|
|
10
|
-
credits: CreditsEndpoint;
|
|
11
|
-
discover: DiscoverEndpoint;
|
|
12
|
-
find: FindEndpoint;
|
|
13
|
-
genre: GenreEndpoint;
|
|
14
|
-
keywords: KeywordsEndpoint;
|
|
15
|
-
movies: MoviesEndpoint;
|
|
16
|
-
networks: NetworksEndpoint;
|
|
17
|
-
people: PeopleEndpoint;
|
|
18
|
-
review: ReviewEndpoint;
|
|
19
|
-
search: SearchEndpoint;
|
|
20
|
-
trending: TrendingEndpoint;
|
|
21
|
-
tvEpisodes: TvEpisodesEndpoint;
|
|
22
|
-
tvSeasons: TvSeasonsEndpoint;
|
|
23
|
-
tvShows: TvShowsEndpoint;
|
|
24
|
-
watchProviders: WatchProvidersEndpoint;
|
|
25
|
-
}
|
|
26
|
-
export * from './@types';
|
|
27
|
-
export * from './utils';
|
|
28
|
-
export { TMDB };
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,cAAM,IAAI;gBACI,YAAY,EAAE,MAAM;IAwBhC,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,qBAAqB,CAAC;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,WAAW,EAAE,mBAAmB,CAAC;IACjC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,aAAa,EAAE,qBAAqB,CAAC;IACrC,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,OAAO,EAAE,eAAe,CAAC;IACzB,cAAc,EAAE,sBAAsB,CAAC;CACxC;AAED,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/utils/api.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare class API {
|
|
2
|
-
private access_token;
|
|
3
|
-
constructor(access_token: string);
|
|
4
|
-
get<T>(path: string, options?: Record<string, any>): Promise<T>;
|
|
5
|
-
}
|
|
6
|
-
export declare const parseOptions: (options?: Record<string, any>) => string;
|
|
7
|
-
//# sourceMappingURL=api.d.ts.map
|
package/dist/utils/api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAIA,qBAAa,GAAG;IACd,OAAO,CAAC,YAAY,CAAS;gBACjB,YAAY,EAAE,MAAM;IAI1B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAgBtE;AAED,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,MAE5D,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility method to construct full url for image
|
|
3
|
-
* based on configuration
|
|
4
|
-
*
|
|
5
|
-
* https://developers.themoviedb.org/3/getting-started/images
|
|
6
|
-
* @param {string} baseUrl base image url (e.g., 'https://image.tmdb.org/t/p/')
|
|
7
|
-
* @param {string} fileSize file size (e.g., 'original', 'w500')
|
|
8
|
-
* @param {string} imagePath raw image path
|
|
9
|
-
* @param {string} format override image format (e.g., 'svg', 'png', 'jpg')
|
|
10
|
-
* @returns {string} The complete image URL
|
|
11
|
-
*/
|
|
12
|
-
export declare const getFullImagePath: (baseUrl: string, fileSize: string, imagePath: string, format?: string) => string;
|
|
13
|
-
/**
|
|
14
|
-
* Common image sizes available in TMDB
|
|
15
|
-
*/
|
|
16
|
-
export declare const ImageSizes: {
|
|
17
|
-
ORIGINAL: string;
|
|
18
|
-
W500: string;
|
|
19
|
-
W300: string;
|
|
20
|
-
W185: string;
|
|
21
|
-
W92: string;
|
|
22
|
-
H632: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Image formats supported by TMDB
|
|
26
|
-
*/
|
|
27
|
-
export declare const ImageFormats: {
|
|
28
|
-
JPG: string;
|
|
29
|
-
PNG: string;
|
|
30
|
-
SVG: string;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=getimagePath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getimagePath.d.ts","sourceRoot":"","sources":["../../src/utils/getimagePath.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,UAAU,MAAM,EAAE,WAAW,MAAM,EAAE,SAAS,MAAM,KAAG,MAexG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
|