@tdanks2000/tmdb-wrapper 1.1.2 → 1.2.0
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/dist/@types/endpoints/account.d.ts +16 -0
- package/dist/@types/endpoints/account.d.ts.map +1 -0
- package/dist/@types/endpoints/certification.d.ts +19 -0
- package/dist/@types/endpoints/certification.d.ts.map +1 -0
- package/dist/@types/endpoints/changes.d.ts +26 -0
- package/dist/@types/endpoints/changes.d.ts.map +1 -0
- package/dist/@types/endpoints/collection.d.ts +21 -0
- package/dist/@types/endpoints/collection.d.ts.map +1 -0
- package/dist/@types/endpoints/companies.d.ts +29 -0
- package/dist/@types/endpoints/companies.d.ts.map +1 -0
- package/dist/@types/endpoints/configuration.d.ts +106 -0
- package/dist/@types/endpoints/configuration.d.ts.map +1 -0
- package/dist/@types/endpoints/credits.d.ts +135 -0
- package/dist/@types/endpoints/credits.d.ts.map +1 -0
- package/dist/@types/endpoints/discover.d.ts +68 -0
- package/dist/@types/endpoints/discover.d.ts.map +1 -0
- package/dist/@types/endpoints/find.d.ts +20 -0
- package/dist/@types/endpoints/find.d.ts.map +1 -0
- package/dist/@types/endpoints/genre.d.ts +7 -0
- package/dist/@types/endpoints/genre.d.ts.map +1 -0
- package/dist/@types/endpoints/index.d.ts +23 -0
- package/dist/@types/endpoints/index.d.ts.map +1 -0
- package/dist/@types/endpoints/keywords.d.ts +21 -0
- package/dist/@types/endpoints/keywords.d.ts.map +1 -0
- package/dist/@types/endpoints/movies.d.ts +150 -0
- package/dist/@types/endpoints/movies.d.ts.map +1 -0
- package/dist/@types/endpoints/networks.d.ts +14 -0
- package/dist/@types/endpoints/networks.d.ts.map +1 -0
- package/dist/@types/endpoints/options.d.ts +71 -0
- package/dist/@types/endpoints/options.d.ts.map +1 -0
- package/dist/@types/endpoints/people.d.ts +135 -0
- package/dist/@types/endpoints/people.d.ts.map +1 -0
- package/dist/@types/endpoints/review.d.ts +8 -0
- package/dist/@types/endpoints/review.d.ts.map +1 -0
- package/dist/@types/endpoints/search.d.ts +32 -0
- package/dist/@types/endpoints/search.d.ts.map +1 -0
- package/dist/@types/endpoints/trending.d.ts +12 -0
- package/dist/@types/endpoints/trending.d.ts.map +1 -0
- package/dist/@types/endpoints/tvEpisode.d.ts +65 -0
- package/dist/@types/endpoints/tvEpisode.d.ts.map +1 -0
- package/dist/@types/endpoints/tvSeasons.d.ts +31 -0
- package/dist/@types/endpoints/tvSeasons.d.ts.map +1 -0
- package/dist/@types/endpoints/tvShows.d.ts +260 -0
- package/dist/@types/endpoints/tvShows.d.ts.map +1 -0
- package/dist/@types/endpoints/watchProviders.d.ts +303 -0
- package/dist/@types/endpoints/watchProviders.d.ts.map +1 -0
- package/dist/@types/index.d.ts +4 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/models/baseEndpoint.d.ts +8 -0
- package/dist/@types/models/baseEndpoint.d.ts.map +1 -0
- package/dist/@types/models/index.d.ts +2 -0
- package/dist/@types/models/index.d.ts.map +1 -0
- package/dist/@types/types.d.ts +179 -0
- package/dist/@types/types.d.ts.map +1 -0
- package/dist/endpoints/account.d.ts +18 -0
- package/dist/endpoints/account.d.ts.map +1 -0
- package/dist/endpoints/certification.d.ts +23 -0
- package/dist/endpoints/certification.d.ts.map +1 -0
- package/dist/endpoints/changes.d.ts +31 -0
- package/dist/endpoints/changes.d.ts.map +1 -0
- package/dist/endpoints/collections.d.ts +34 -0
- package/dist/endpoints/collections.d.ts.map +1 -0
- package/dist/endpoints/companies.d.ts +31 -0
- package/dist/endpoints/companies.d.ts.map +1 -0
- package/dist/endpoints/configuration.d.ts +18 -0
- package/dist/endpoints/configuration.d.ts.map +1 -0
- package/dist/endpoints/credits.d.ts +19 -0
- package/dist/endpoints/credits.d.ts.map +1 -0
- package/dist/endpoints/discover.d.ts +25 -0
- package/dist/endpoints/discover.d.ts.map +1 -0
- package/dist/endpoints/find.d.ts +20 -0
- package/dist/endpoints/find.d.ts.map +1 -0
- package/dist/endpoints/genre.d.ts +25 -0
- package/dist/endpoints/genre.d.ts.map +1 -0
- package/dist/endpoints/index.d.ts +22 -0
- package/dist/endpoints/index.d.ts.map +1 -0
- package/dist/endpoints/keywords.d.ts +26 -0
- package/dist/endpoints/keywords.d.ts.map +1 -0
- package/dist/endpoints/movies.d.ts +142 -0
- package/dist/endpoints/movies.d.ts.map +1 -0
- package/dist/endpoints/networks.d.ts +31 -0
- package/dist/endpoints/networks.d.ts.map +1 -0
- package/dist/endpoints/people.d.ts +85 -0
- package/dist/endpoints/people.d.ts.map +1 -0
- package/dist/endpoints/review.d.ts +19 -0
- package/dist/endpoints/review.d.ts.map +1 -0
- package/dist/endpoints/search.d.ts +58 -0
- package/dist/endpoints/search.d.ts.map +1 -0
- package/dist/endpoints/trending.d.ts +22 -0
- package/dist/endpoints/trending.d.ts.map +1 -0
- package/dist/endpoints/tvEpisodes.d.ts +62 -0
- package/dist/endpoints/tvEpisodes.d.ts.map +1 -0
- package/dist/endpoints/tvSeasons.d.ts +71 -0
- package/dist/endpoints/tvSeasons.d.ts.map +1 -0
- package/dist/endpoints/tvShows.d.ts +164 -0
- package/dist/endpoints/tvShows.d.ts.map +1 -0
- package/dist/endpoints/watchProviders.d.ts +33 -0
- package/dist/endpoints/watchProviders.d.ts.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/utils/api.d.ts +14 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/getimagePath.d.ts +32 -0
- package/dist/utils/getimagePath.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export interface ErrorResponse {
|
|
2
|
+
status_code: number;
|
|
3
|
+
status_message: string;
|
|
4
|
+
success: boolean;
|
|
5
|
+
}
|
|
6
|
+
export type MediaType = "movie" | "tv" | "person";
|
|
7
|
+
export interface AuthorDetails {
|
|
8
|
+
name: string;
|
|
9
|
+
username: string;
|
|
10
|
+
avatar_path: string;
|
|
11
|
+
rating?: number;
|
|
12
|
+
}
|
|
13
|
+
export type KnownFor = MovieWithMediaType | TVWithMediaType;
|
|
14
|
+
export interface Person {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
known_for: KnownFor[];
|
|
18
|
+
profile_path: string;
|
|
19
|
+
adult: boolean;
|
|
20
|
+
known_for_department: string;
|
|
21
|
+
gender: number;
|
|
22
|
+
popularity: number;
|
|
23
|
+
}
|
|
24
|
+
export interface PersonWithMediaType extends Person {
|
|
25
|
+
media_type: "person";
|
|
26
|
+
}
|
|
27
|
+
export interface Movie {
|
|
28
|
+
id: number;
|
|
29
|
+
poster_path: string;
|
|
30
|
+
adult: boolean;
|
|
31
|
+
overview: string;
|
|
32
|
+
release_date: string;
|
|
33
|
+
genre_ids: number[];
|
|
34
|
+
original_title: string;
|
|
35
|
+
original_language: string;
|
|
36
|
+
title: string;
|
|
37
|
+
backdrop_path: string;
|
|
38
|
+
popularity: number;
|
|
39
|
+
vote_count: number;
|
|
40
|
+
video: boolean;
|
|
41
|
+
vote_average: number;
|
|
42
|
+
}
|
|
43
|
+
export interface MovieWithMediaType extends Movie {
|
|
44
|
+
media_type: "movie";
|
|
45
|
+
}
|
|
46
|
+
export interface Company {
|
|
47
|
+
id: number;
|
|
48
|
+
logo_path: string;
|
|
49
|
+
name: string;
|
|
50
|
+
origin_country: string;
|
|
51
|
+
}
|
|
52
|
+
export interface TV {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
first_air_date: string;
|
|
56
|
+
backdrop_path: string;
|
|
57
|
+
genre_ids: number[];
|
|
58
|
+
origin_country: string[];
|
|
59
|
+
original_language: string;
|
|
60
|
+
original_name: string;
|
|
61
|
+
overview: string;
|
|
62
|
+
poster_path: string;
|
|
63
|
+
popularity: number;
|
|
64
|
+
vote_count: number;
|
|
65
|
+
vote_average: number;
|
|
66
|
+
}
|
|
67
|
+
export interface TVWithMediaType extends TV {
|
|
68
|
+
media_type: "tv";
|
|
69
|
+
}
|
|
70
|
+
export interface Genre {
|
|
71
|
+
id: number;
|
|
72
|
+
name: string;
|
|
73
|
+
}
|
|
74
|
+
export interface ExternalIds {
|
|
75
|
+
imdb_id: string;
|
|
76
|
+
facebook_id: string;
|
|
77
|
+
instagram_id: string;
|
|
78
|
+
twitter_id: string;
|
|
79
|
+
id: number;
|
|
80
|
+
}
|
|
81
|
+
export interface ProductionCompany {
|
|
82
|
+
id: number;
|
|
83
|
+
logo_path: string;
|
|
84
|
+
name: string;
|
|
85
|
+
origin_country: string;
|
|
86
|
+
}
|
|
87
|
+
export interface ProductionCountry {
|
|
88
|
+
iso_3166_1: string;
|
|
89
|
+
name: string;
|
|
90
|
+
}
|
|
91
|
+
export interface SpokenLanguage {
|
|
92
|
+
english_name: string;
|
|
93
|
+
iso_639_1: string;
|
|
94
|
+
name: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ContentRatings {
|
|
97
|
+
results: ContentRatingsResult[];
|
|
98
|
+
id: number;
|
|
99
|
+
}
|
|
100
|
+
export interface ContentRatingsResult {
|
|
101
|
+
descriptor: unknown[];
|
|
102
|
+
iso_3166_1: string;
|
|
103
|
+
rating: string;
|
|
104
|
+
}
|
|
105
|
+
export interface Recommendation {
|
|
106
|
+
adult: boolean;
|
|
107
|
+
backdrop_path?: string;
|
|
108
|
+
genre_ids: number[];
|
|
109
|
+
id: number;
|
|
110
|
+
original_language: string;
|
|
111
|
+
original_title: string;
|
|
112
|
+
overview: string;
|
|
113
|
+
release_date: string;
|
|
114
|
+
poster_path?: string;
|
|
115
|
+
popularity: number;
|
|
116
|
+
title: string;
|
|
117
|
+
video: boolean;
|
|
118
|
+
vote_average: number;
|
|
119
|
+
vote_count: number;
|
|
120
|
+
}
|
|
121
|
+
export interface Recommendations {
|
|
122
|
+
page: number;
|
|
123
|
+
results: Recommendation[];
|
|
124
|
+
total_pages: number;
|
|
125
|
+
total_results: number;
|
|
126
|
+
}
|
|
127
|
+
export interface Review {
|
|
128
|
+
author: string;
|
|
129
|
+
author_details: AuthorDetails;
|
|
130
|
+
content: string;
|
|
131
|
+
created_at: Date;
|
|
132
|
+
id: string;
|
|
133
|
+
updated_at: Date;
|
|
134
|
+
url: string;
|
|
135
|
+
}
|
|
136
|
+
export interface Reviews {
|
|
137
|
+
id: number;
|
|
138
|
+
page: number;
|
|
139
|
+
results: Review[];
|
|
140
|
+
total_pages: number;
|
|
141
|
+
total_results: number;
|
|
142
|
+
}
|
|
143
|
+
export interface TranslationData {
|
|
144
|
+
title: string;
|
|
145
|
+
overview: string;
|
|
146
|
+
homepage: string;
|
|
147
|
+
}
|
|
148
|
+
export interface Translation {
|
|
149
|
+
iso_3166_1: string;
|
|
150
|
+
iso_639_1: string;
|
|
151
|
+
name: string;
|
|
152
|
+
english_name: string;
|
|
153
|
+
data: TranslationData;
|
|
154
|
+
}
|
|
155
|
+
export interface Translations {
|
|
156
|
+
id: number;
|
|
157
|
+
translations: Translation[];
|
|
158
|
+
}
|
|
159
|
+
export interface Image {
|
|
160
|
+
aspect_ratio: number;
|
|
161
|
+
file_path: string;
|
|
162
|
+
height: number;
|
|
163
|
+
iso_639_1: string;
|
|
164
|
+
vote_average: number;
|
|
165
|
+
vote_count: number;
|
|
166
|
+
width: number;
|
|
167
|
+
}
|
|
168
|
+
export interface Images {
|
|
169
|
+
id: number;
|
|
170
|
+
backdrops: Image[];
|
|
171
|
+
logos: Image[];
|
|
172
|
+
posters: Image[];
|
|
173
|
+
}
|
|
174
|
+
export interface TMDBConfig {
|
|
175
|
+
apiKey?: string;
|
|
176
|
+
accessToken?: string;
|
|
177
|
+
}
|
|
178
|
+
export type TokenType = string | TMDBConfig;
|
|
179
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/@types/types.ts"],"names":[],"mappings":"AAAA,MA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C;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,eAAe,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,WAAW,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,KAAK;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,KAAK,EAAE,CAAC;IACnB,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,OAAO,EAAE,KAAK,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AccountDetails, BaseEndpoint, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving account details.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AccountEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new AccountEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves account details asynchronously.
|
|
14
|
+
* @returns {Promise<AccountDetails>} A Promise that resolves with the account details.
|
|
15
|
+
*/
|
|
16
|
+
details(): Promise<AccountDetails>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/endpoints/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEpE;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAKpC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC;CAGxC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseEndpoint, Certifications, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving certifications for movies and TV shows.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CertificationEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new CertificationEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves certifications for movies asynchronously.
|
|
14
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for movies.
|
|
15
|
+
*/
|
|
16
|
+
movies(): Promise<Certifications>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves certifications for TV shows asynchronously.
|
|
19
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for TV shows.
|
|
20
|
+
*/
|
|
21
|
+
tv(): Promise<Certifications>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=certification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certification.d.ts","sourceRoot":"","sources":["../../src/endpoints/certification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEpE;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,YAAY;IAK1C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;IAIvC;;;OAGG;IACG,EAAE,IAAI,OAAO,CAAC,cAAc,CAAC;CAGnC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseEndpoint, ChangeOption, MediaChanges, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving changes in movies, TV shows, and persons.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ChangeEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new ChangeEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves changes in movies asynchronously.
|
|
14
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
15
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in movies.
|
|
16
|
+
*/
|
|
17
|
+
movies(options?: ChangeOption): Promise<MediaChanges>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves changes in TV shows asynchronously.
|
|
20
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
21
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in TV shows.
|
|
22
|
+
*/
|
|
23
|
+
tv(options?: ChangeOption): Promise<MediaChanges>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves changes related to persons asynchronously.
|
|
26
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
27
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes related to persons.
|
|
28
|
+
*/
|
|
29
|
+
person(options?: ChangeOption): Promise<MediaChanges>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=changes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../src/endpoints/changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEhF;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAO3D;;;;OAIG;IACG,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAOvD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;CAM3D"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseEndpoint, CollectionImageOptions, DetailedCollection, ImageCollection, LanguageOption, TokenType, Translations } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for accessing collections and their details.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CollectionsEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new CollectionsEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves details of a specific collection asynchronously.
|
|
14
|
+
* @param {number} id - The ID of the collection.
|
|
15
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
16
|
+
* @returns {Promise<DetailedCollection>} A Promise that resolves with the detailed information of the collection.
|
|
17
|
+
*/
|
|
18
|
+
details(id: number, options?: LanguageOption): Promise<DetailedCollection>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves images associated with a specific collection asynchronously.
|
|
21
|
+
* @param {number} id - The ID of the collection.
|
|
22
|
+
* @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
|
|
23
|
+
* @returns {Promise<ImageCollection>} A Promise that resolves with the collection images.
|
|
24
|
+
*/
|
|
25
|
+
images(id: number, options?: CollectionImageOptions): Promise<ImageCollection>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves translations for a specific collection asynchronously.
|
|
28
|
+
* @param {number} id - The ID of the collection.
|
|
29
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
30
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations of the collection.
|
|
31
|
+
*/
|
|
32
|
+
translations(id: number, options?: LanguageOption): Promise<Translations>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/endpoints/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,SAAS,EACT,YAAY,EACZ,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,YAAY;IAKxC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;OAKG;IACG,OAAO,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,kBAAkB,CAAC;IAQ9B;;;;;OAKG;IACG,MAAM,CACX,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,sBAAsB,GAC9B,OAAO,CAAC,eAAe,CAAC;IAW3B;;;;;OAKG;IACG,YAAY,CACjB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,YAAY,CAAC;CAOxB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AlternativeNames, BaseEndpoint, CompanyDetails, CompanyImages, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for accessing company details and related information.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CompaniesEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new CompaniesEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves details of a specific company asynchronously.
|
|
14
|
+
* @param {number} id - The ID of the company.
|
|
15
|
+
* @returns {Promise<CompanyDetails>} A Promise that resolves with the detailed information of the company.
|
|
16
|
+
*/
|
|
17
|
+
details(id: number): Promise<CompanyDetails>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves alternative names of a specific company asynchronously.
|
|
20
|
+
* @param {number} id - The ID of the company.
|
|
21
|
+
* @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the company.
|
|
22
|
+
*/
|
|
23
|
+
alternativeNames(id: number): Promise<AlternativeNames>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves images associated with a specific company asynchronously.
|
|
26
|
+
* @param {number} id - The ID of the company.
|
|
27
|
+
* @returns {Promise<CompanyImages>} A Promise that resolves with the images of the company.
|
|
28
|
+
*/
|
|
29
|
+
images(id: number): Promise<CompanyImages>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=companies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../src/endpoints/companies.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAKtC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIlD;;;;OAIG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAM7D;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGhD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseEndpoint, Configuration, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving current system configuration.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ConfigurationEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new ConfigurationEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves the current system configuration asynchronously.
|
|
14
|
+
* @returns {Promise<Configuration>} A Promise that resolves with the current system configuration.
|
|
15
|
+
*/
|
|
16
|
+
getCurrent(): Promise<Configuration>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/endpoints/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEnE;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,YAAY;IAK1C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;CAG1C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseEndpoint, CreditResponse, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving credit details.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CreditsEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new CreditsEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves credit details by ID asynchronously.
|
|
14
|
+
* @param {string} id - The ID of the credit.
|
|
15
|
+
* @returns {Promise<CreditResponse>} A Promise that resolves with the credit details.
|
|
16
|
+
*/
|
|
17
|
+
getById(id: string): Promise<CreditResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=credits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../src/endpoints/credits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEpE;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAKpC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAGlD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseEndpoint, MovieDiscoverResult, MovieQueryOptions, TokenType, TvShowDiscoverResult, TvShowQueryOptions } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for discovering movies and TV shows based on various criteria.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DiscoverEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new DiscoverEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a list of movies based on the provided query options asynchronously.
|
|
14
|
+
* @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
|
|
15
|
+
* @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
|
|
16
|
+
*/
|
|
17
|
+
movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of TV shows based on the provided query options asynchronously.
|
|
20
|
+
* @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
|
|
21
|
+
* @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
|
|
22
|
+
*/
|
|
23
|
+
tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/endpoints/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,KAAK,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOtE;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAMzE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseEndpoint, ExternalIdOptions, FindResult, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for finding media by external ID.
|
|
4
|
+
*/
|
|
5
|
+
export declare class FindEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new FindEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves media by external ID asynchronously.
|
|
14
|
+
* @param {string} externalId - The external ID of the media.
|
|
15
|
+
* @param {ExternalIdOptions} options - Options for finding media by external ID.
|
|
16
|
+
* @returns {Promise<FindResult>} A Promise that resolves with the result of the find operation.
|
|
17
|
+
*/
|
|
18
|
+
byId(externalId: string, options: ExternalIdOptions): Promise<FindResult>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../src/endpoints/find.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAKjC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;OAKG;IACG,IAAI,CACT,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,iBAAiB,GACxB,OAAO,CAAC,UAAU,CAAC;CAMtB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseEndpoint, Genres, LanguageOption, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving genre information for movies and TV shows.
|
|
4
|
+
*/
|
|
5
|
+
export declare class GenreEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new GenreEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves genre information for movies asynchronously.
|
|
14
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
15
|
+
* @returns {Promise<Genres>} A Promise that resolves with the genre information for movies.
|
|
16
|
+
*/
|
|
17
|
+
movies(options?: LanguageOption): Promise<Genres>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves genre information for TV shows asynchronously.
|
|
20
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
21
|
+
* @returns {Promise<Genres>} A Promise that resolves with the genre information for TV shows.
|
|
22
|
+
*/
|
|
23
|
+
tv(options?: LanguageOption): Promise<Genres>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=genre.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genre.d.ts","sourceRoot":"","sources":["../../src/endpoints/genre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE5E;;GAEG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAKlC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAOvD;;;;OAIG;IACG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CAMnD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./account";
|
|
2
|
+
export * from "./certification";
|
|
3
|
+
export * from "./changes";
|
|
4
|
+
export * from "./collections";
|
|
5
|
+
export * from "./companies";
|
|
6
|
+
export * from "./configuration";
|
|
7
|
+
export * from "./credits";
|
|
8
|
+
export * from "./discover";
|
|
9
|
+
export * from "./find";
|
|
10
|
+
export * from "./genre";
|
|
11
|
+
export * from "./keywords";
|
|
12
|
+
export * from "./movies";
|
|
13
|
+
export * from "./networks";
|
|
14
|
+
export * from "./people";
|
|
15
|
+
export * from "./review";
|
|
16
|
+
export * from "./search";
|
|
17
|
+
export * from "./trending";
|
|
18
|
+
export * from "./tvEpisodes";
|
|
19
|
+
export * from "./tvSeasons";
|
|
20
|
+
export * from "./tvShows";
|
|
21
|
+
export * from "./watchProviders";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseEndpoint, BelongingMovies, Keyword, KeywordsOptions, TokenType } from "../@types";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for accessing keyword details and related movies.
|
|
4
|
+
*/
|
|
5
|
+
export declare class KeywordsEndpoint extends BaseEndpoint {
|
|
6
|
+
protected readonly access_token: TokenType;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new KeywordsEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
11
|
+
constructor(access_token: TokenType);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves details of a specific keyword asynchronously.
|
|
14
|
+
* @param {number} keywordId - The ID of the keyword.
|
|
15
|
+
* @returns {Promise<Keyword>} A Promise that resolves with the details of the keyword.
|
|
16
|
+
*/
|
|
17
|
+
details(keywordId: number): Promise<Keyword>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves movies belonging to a specific keyword asynchronously.
|
|
20
|
+
* @param {number} keywordId - The ID of the keyword.
|
|
21
|
+
* @param {KeywordsOptions} [options] - Optional parameters for refining the search.
|
|
22
|
+
* @returns {Promise<BelongingMovies>} A Promise that resolves with the movies belonging to the keyword.
|
|
23
|
+
*/
|
|
24
|
+
belongingMovies(keywordId: number, options?: KeywordsOptions): Promise<BelongingMovies>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/endpoints/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,eAAe,EACf,OAAO,EACP,eAAe,EACf,SAAS,EACT,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlD;;;;;OAKG;IACG,eAAe,CACpB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,CAAC;CAO3B"}
|