@tdanks2000/tmdb-wrapper 1.2.0 → 1.3.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/dist/index.cjs +1574 -0
- package/dist/index.d.cts +2812 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2812 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1561 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +70 -61
- package/dist/@types/endpoints/account.d.ts +0 -16
- package/dist/@types/endpoints/account.d.ts.map +0 -1
- package/dist/@types/endpoints/account.js +0 -2
- package/dist/@types/endpoints/certification.d.ts +0 -19
- package/dist/@types/endpoints/certification.d.ts.map +0 -1
- package/dist/@types/endpoints/certification.js +0 -2
- package/dist/@types/endpoints/changes.d.ts +0 -26
- package/dist/@types/endpoints/changes.d.ts.map +0 -1
- package/dist/@types/endpoints/changes.js +0 -2
- package/dist/@types/endpoints/collection.d.ts +0 -21
- package/dist/@types/endpoints/collection.d.ts.map +0 -1
- package/dist/@types/endpoints/collection.js +0 -2
- package/dist/@types/endpoints/companies.d.ts +0 -29
- package/dist/@types/endpoints/companies.d.ts.map +0 -1
- package/dist/@types/endpoints/companies.js +0 -2
- package/dist/@types/endpoints/configuration.d.ts +0 -106
- package/dist/@types/endpoints/configuration.d.ts.map +0 -1
- package/dist/@types/endpoints/configuration.js +0 -101
- package/dist/@types/endpoints/credits.d.ts +0 -135
- package/dist/@types/endpoints/credits.d.ts.map +0 -1
- package/dist/@types/endpoints/credits.js +0 -2
- package/dist/@types/endpoints/discover.d.ts +0 -68
- package/dist/@types/endpoints/discover.d.ts.map +0 -1
- package/dist/@types/endpoints/discover.js +0 -2
- package/dist/@types/endpoints/find.d.ts +0 -20
- package/dist/@types/endpoints/find.d.ts.map +0 -1
- package/dist/@types/endpoints/find.js +0 -2
- package/dist/@types/endpoints/genre.d.ts +0 -7
- package/dist/@types/endpoints/genre.d.ts.map +0 -1
- package/dist/@types/endpoints/genre.js +0 -2
- package/dist/@types/endpoints/index.d.ts +0 -23
- package/dist/@types/endpoints/index.d.ts.map +0 -1
- package/dist/@types/endpoints/index.js +0 -38
- package/dist/@types/endpoints/keywords.d.ts +0 -21
- package/dist/@types/endpoints/keywords.d.ts.map +0 -1
- package/dist/@types/endpoints/keywords.js +0 -2
- package/dist/@types/endpoints/movies.d.ts +0 -150
- package/dist/@types/endpoints/movies.d.ts.map +0 -1
- package/dist/@types/endpoints/movies.js +0 -12
- package/dist/@types/endpoints/networks.d.ts +0 -14
- package/dist/@types/endpoints/networks.d.ts.map +0 -1
- package/dist/@types/endpoints/networks.js +0 -2
- package/dist/@types/endpoints/options.d.ts +0 -71
- package/dist/@types/endpoints/options.d.ts.map +0 -1
- package/dist/@types/endpoints/options.js +0 -2
- package/dist/@types/endpoints/people.d.ts +0 -135
- package/dist/@types/endpoints/people.d.ts.map +0 -1
- package/dist/@types/endpoints/people.js +0 -2
- package/dist/@types/endpoints/review.d.ts +0 -8
- package/dist/@types/endpoints/review.d.ts.map +0 -1
- package/dist/@types/endpoints/review.js +0 -2
- package/dist/@types/endpoints/search.d.ts +0 -32
- package/dist/@types/endpoints/search.d.ts.map +0 -1
- package/dist/@types/endpoints/search.js +0 -2
- package/dist/@types/endpoints/trending.d.ts +0 -12
- package/dist/@types/endpoints/trending.d.ts.map +0 -1
- package/dist/@types/endpoints/trending.js +0 -2
- package/dist/@types/endpoints/tvEpisode.d.ts +0 -65
- package/dist/@types/endpoints/tvEpisode.d.ts.map +0 -1
- package/dist/@types/endpoints/tvEpisode.js +0 -2
- package/dist/@types/endpoints/tvSeasons.d.ts +0 -31
- package/dist/@types/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/@types/endpoints/tvSeasons.js +0 -2
- package/dist/@types/endpoints/tvShows.d.ts +0 -260
- package/dist/@types/endpoints/tvShows.d.ts.map +0 -1
- package/dist/@types/endpoints/tvShows.js +0 -2
- package/dist/@types/endpoints/watchProviders.d.ts +0 -303
- package/dist/@types/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/@types/endpoints/watchProviders.js +0 -2
- package/dist/@types/index.d.ts +0 -4
- package/dist/@types/index.d.ts.map +0 -1
- package/dist/@types/index.js +0 -19
- package/dist/@types/models/baseEndpoint.d.ts +0 -8
- package/dist/@types/models/baseEndpoint.d.ts.map +0 -1
- package/dist/@types/models/baseEndpoint.js +0 -11
- package/dist/@types/models/index.d.ts +0 -2
- package/dist/@types/models/index.d.ts.map +0 -1
- package/dist/@types/models/index.js +0 -17
- package/dist/@types/types.d.ts +0 -179
- package/dist/@types/types.d.ts.map +0 -1
- package/dist/@types/types.js +0 -2
- package/dist/endpoints/account.d.ts +0 -18
- package/dist/endpoints/account.d.ts.map +0 -1
- package/dist/endpoints/account.js +0 -25
- package/dist/endpoints/certification.d.ts +0 -23
- package/dist/endpoints/certification.d.ts.map +0 -1
- package/dist/endpoints/certification.js +0 -32
- package/dist/endpoints/changes.d.ts +0 -31
- package/dist/endpoints/changes.d.ts.map +0 -1
- package/dist/endpoints/changes.js +0 -42
- package/dist/endpoints/collections.d.ts +0 -34
- package/dist/endpoints/collections.d.ts.map +0 -1
- package/dist/endpoints/collections.js +0 -50
- package/dist/endpoints/companies.d.ts +0 -31
- package/dist/endpoints/companies.d.ts.map +0 -1
- package/dist/endpoints/companies.js +0 -42
- package/dist/endpoints/configuration.d.ts +0 -18
- package/dist/endpoints/configuration.d.ts.map +0 -1
- package/dist/endpoints/configuration.js +0 -25
- package/dist/endpoints/credits.d.ts +0 -19
- package/dist/endpoints/credits.d.ts.map +0 -1
- package/dist/endpoints/credits.js +0 -26
- package/dist/endpoints/discover.d.ts +0 -25
- package/dist/endpoints/discover.d.ts.map +0 -1
- package/dist/endpoints/discover.js +0 -35
- package/dist/endpoints/find.d.ts +0 -20
- package/dist/endpoints/find.d.ts.map +0 -1
- package/dist/endpoints/find.js +0 -27
- package/dist/endpoints/genre.d.ts +0 -25
- package/dist/endpoints/genre.d.ts.map +0 -1
- package/dist/endpoints/genre.js +0 -34
- package/dist/endpoints/index.d.ts +0 -22
- package/dist/endpoints/index.d.ts.map +0 -1
- package/dist/endpoints/index.js +0 -37
- package/dist/endpoints/keywords.d.ts +0 -26
- package/dist/endpoints/keywords.d.ts.map +0 -1
- package/dist/endpoints/keywords.js +0 -36
- package/dist/endpoints/movies.d.ts +0 -142
- package/dist/endpoints/movies.d.ts.map +0 -1
- package/dist/endpoints/movies.js +0 -198
- package/dist/endpoints/networks.d.ts +0 -31
- package/dist/endpoints/networks.d.ts.map +0 -1
- package/dist/endpoints/networks.js +0 -42
- package/dist/endpoints/people.d.ts +0 -85
- package/dist/endpoints/people.d.ts.map +0 -1
- package/dist/endpoints/people.js +0 -119
- package/dist/endpoints/review.d.ts +0 -19
- package/dist/endpoints/review.d.ts.map +0 -1
- package/dist/endpoints/review.js +0 -26
- package/dist/endpoints/search.d.ts +0 -58
- package/dist/endpoints/search.d.ts.map +0 -1
- package/dist/endpoints/search.js +0 -75
- package/dist/endpoints/trending.d.ts +0 -22
- package/dist/endpoints/trending.d.ts.map +0 -1
- package/dist/endpoints/trending.js +0 -29
- package/dist/endpoints/tvEpisodes.d.ts +0 -62
- package/dist/endpoints/tvEpisodes.d.ts.map +0 -1
- package/dist/endpoints/tvEpisodes.js +0 -98
- package/dist/endpoints/tvSeasons.d.ts +0 -71
- package/dist/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/endpoints/tvSeasons.js +0 -109
- package/dist/endpoints/tvShows.d.ts +0 -164
- package/dist/endpoints/tvShows.d.ts.map +0 -1
- package/dist/endpoints/tvShows.js +0 -230
- package/dist/endpoints/watchProviders.d.ts +0 -33
- package/dist/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/endpoints/watchProviders.js +0 -46
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -46
- package/dist/utils/api.d.ts +0 -14
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/api.js +0 -61
- package/dist/utils/getimagePath.d.ts +0 -32
- package/dist/utils/getimagePath.d.ts.map +0 -1
- package/dist/utils/getimagePath.js +0 -50
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -18
package/dist/@types/types.d.ts
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/@types/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,CAAC;AAElD,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,kBAAkB,GAAG,eAAe,CAAC;AAE5D,MAAM,WAAW,MAAM;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,MAAM;IAClD,UAAU,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,KAAK;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO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C;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"}
|
package/dist/@types/types.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for retrieving account details.
|
|
7
|
-
*/
|
|
8
|
-
class AccountEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new AccountEndpoint instance.
|
|
11
|
-
* @param {string} access_token - The access token used for authentication.
|
|
12
|
-
*/
|
|
13
|
-
constructor(access_token) {
|
|
14
|
-
super(access_token);
|
|
15
|
-
this.access_token = access_token;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves account details asynchronously.
|
|
19
|
-
* @returns {Promise<AccountDetails>} A Promise that resolves with the account details.
|
|
20
|
-
*/
|
|
21
|
-
async details() {
|
|
22
|
-
return await this.api.get("/account");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.AccountEndpoint = AccountEndpoint;
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CertificationEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for retrieving certifications for movies and TV shows.
|
|
7
|
-
*/
|
|
8
|
-
class CertificationEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new CertificationEndpoint instance.
|
|
11
|
-
* @param {string} access_token - The access token used for authentication.
|
|
12
|
-
*/
|
|
13
|
-
constructor(access_token) {
|
|
14
|
-
super(access_token);
|
|
15
|
-
this.access_token = access_token;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves certifications for movies asynchronously.
|
|
19
|
-
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for movies.
|
|
20
|
-
*/
|
|
21
|
-
async movies() {
|
|
22
|
-
return await this.api.get("/certification/movie/list");
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves certifications for TV shows asynchronously.
|
|
26
|
-
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for TV shows.
|
|
27
|
-
*/
|
|
28
|
-
async tv() {
|
|
29
|
-
return await this.api.get("/certification/tv/list");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.CertificationEndpoint = CertificationEndpoint;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChangeEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for retrieving changes in movies, TV shows, and persons.
|
|
7
|
-
*/
|
|
8
|
-
class ChangeEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new ChangeEndpoint instance.
|
|
11
|
-
* @param {string} access_token - The access token used for authentication.
|
|
12
|
-
*/
|
|
13
|
-
constructor(access_token) {
|
|
14
|
-
super(access_token);
|
|
15
|
-
this.access_token = access_token;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves changes in movies asynchronously.
|
|
19
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
20
|
-
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in movies.
|
|
21
|
-
*/
|
|
22
|
-
async movies(options) {
|
|
23
|
-
return await this.api.get("/movie/changes", options);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Retrieves changes in TV shows asynchronously.
|
|
27
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
28
|
-
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in TV shows.
|
|
29
|
-
*/
|
|
30
|
-
async tv(options) {
|
|
31
|
-
return await this.api.get("/tv/changes", options);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves changes related to persons asynchronously.
|
|
35
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
36
|
-
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes related to persons.
|
|
37
|
-
*/
|
|
38
|
-
async person(options) {
|
|
39
|
-
return await this.api.get("/person/change", options);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.ChangeEndpoint = ChangeEndpoint;
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CollectionsEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
const BASE_COLLECTION = "/collection";
|
|
6
|
-
/**
|
|
7
|
-
* Represents an endpoint for accessing collections and their details.
|
|
8
|
-
*/
|
|
9
|
-
class CollectionsEndpoint extends _types_1.BaseEndpoint {
|
|
10
|
-
/**
|
|
11
|
-
* Constructs a new CollectionsEndpoint instance.
|
|
12
|
-
* @param {string} access_token - The access token used for authentication.
|
|
13
|
-
*/
|
|
14
|
-
constructor(access_token) {
|
|
15
|
-
super(access_token);
|
|
16
|
-
this.access_token = access_token;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves details of a specific collection asynchronously.
|
|
20
|
-
* @param {number} id - The ID of the collection.
|
|
21
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
22
|
-
* @returns {Promise<DetailedCollection>} A Promise that resolves with the detailed information of the collection.
|
|
23
|
-
*/
|
|
24
|
-
async details(id, options) {
|
|
25
|
-
return await this.api.get(`${BASE_COLLECTION}/${id}`, options);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves images associated with a specific collection asynchronously.
|
|
29
|
-
* @param {number} id - The ID of the collection.
|
|
30
|
-
* @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
|
|
31
|
-
* @returns {Promise<ImageCollection>} A Promise that resolves with the collection images.
|
|
32
|
-
*/
|
|
33
|
-
async images(id, options) {
|
|
34
|
-
const computedOptions = {
|
|
35
|
-
include_image_language: options?.include_image_language?.join(","),
|
|
36
|
-
language: options?.language,
|
|
37
|
-
};
|
|
38
|
-
return await this.api.get(`${BASE_COLLECTION}/${id}/images`, computedOptions);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves translations for a specific collection asynchronously.
|
|
42
|
-
* @param {number} id - The ID of the collection.
|
|
43
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
44
|
-
* @returns {Promise<Translations>} A Promise that resolves with the translations of the collection.
|
|
45
|
-
*/
|
|
46
|
-
async translations(id, options) {
|
|
47
|
-
return await this.api.get(`${BASE_COLLECTION}/${id}/translations`, options);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.CollectionsEndpoint = CollectionsEndpoint;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompaniesEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for accessing company details and related information.
|
|
7
|
-
*/
|
|
8
|
-
class CompaniesEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new CompaniesEndpoint instance.
|
|
11
|
-
* @param {string} access_token - The access token used for authentication.
|
|
12
|
-
*/
|
|
13
|
-
constructor(access_token) {
|
|
14
|
-
super(access_token);
|
|
15
|
-
this.access_token = access_token;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves details of a specific company asynchronously.
|
|
19
|
-
* @param {number} id - The ID of the company.
|
|
20
|
-
* @returns {Promise<CompanyDetails>} A Promise that resolves with the detailed information of the company.
|
|
21
|
-
*/
|
|
22
|
-
async details(id) {
|
|
23
|
-
return await this.api.get(`/company/${id}`);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Retrieves alternative names of a specific company asynchronously.
|
|
27
|
-
* @param {number} id - The ID of the company.
|
|
28
|
-
* @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the company.
|
|
29
|
-
*/
|
|
30
|
-
async alternativeNames(id) {
|
|
31
|
-
return await this.api.get(`/company/${id}/alternative_names`);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves images associated with a specific company asynchronously.
|
|
35
|
-
* @param {number} id - The ID of the company.
|
|
36
|
-
* @returns {Promise<CompanyImages>} A Promise that resolves with the images of the company.
|
|
37
|
-
*/
|
|
38
|
-
async images(id) {
|
|
39
|
-
return await this.api.get(`/company/${id}/images`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.CompaniesEndpoint = CompaniesEndpoint;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConfigurationEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for retrieving current system configuration.
|
|
7
|
-
*/
|
|
8
|
-
class ConfigurationEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new ConfigurationEndpoint instance.
|
|
11
|
-
* @param {string} access_token - The access token used for authentication.
|
|
12
|
-
*/
|
|
13
|
-
constructor(access_token) {
|
|
14
|
-
super(access_token);
|
|
15
|
-
this.access_token = access_token;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves the current system configuration asynchronously.
|
|
19
|
-
* @returns {Promise<Configuration>} A Promise that resolves with the current system configuration.
|
|
20
|
-
*/
|
|
21
|
-
async getCurrent() {
|
|
22
|
-
return await this.api.get(`/configuration`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.ConfigurationEndpoint = ConfigurationEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreditsEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for retrieving credit details.
|
|
7
|
-
*/
|
|
8
|
-
class CreditsEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new CreditsEndpoint instance.
|
|
11
|
-
* @param {string} access_token - The access token used for authentication.
|
|
12
|
-
*/
|
|
13
|
-
constructor(access_token) {
|
|
14
|
-
super(access_token);
|
|
15
|
-
this.access_token = access_token;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves credit details by ID asynchronously.
|
|
19
|
-
* @param {string} id - The ID of the credit.
|
|
20
|
-
* @returns {Promise<CreditResponse>} A Promise that resolves with the credit details.
|
|
21
|
-
*/
|
|
22
|
-
async getById(id) {
|
|
23
|
-
return await this.api.get(`/credit/${id}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.CreditsEndpoint = CreditsEndpoint;
|