@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,18 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, Configuration } 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: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new ConfigurationEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: string);
|
|
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,MAAM,WAAW,CAAC;AAExD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,YAAY;IAKzC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;OAGG;IACG,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;CAG3C"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, CreditResponse } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for retrieving credit details.
|
|
4
|
-
*/
|
|
5
|
-
export declare class CreditsEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new CreditsEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: string);
|
|
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,MAAM,WAAW,CAAC;AAEzD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAGnD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, MovieDiscoverResult, MovieQueryOptions, 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
|
-
/**
|
|
7
|
-
* Constructs a new DiscoverEndpoint instance.
|
|
8
|
-
* @param {string} access_token - The access token used for authentication.
|
|
9
|
-
*/
|
|
10
|
-
constructor(access_token: string);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves a list of movies based on the provided query options asynchronously.
|
|
13
|
-
* @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
|
|
14
|
-
* @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
|
|
15
|
-
*/
|
|
16
|
-
movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves a list of TV shows based on the provided query options asynchronously.
|
|
19
|
-
* @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
|
|
20
|
-
* @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
|
|
21
|
-
*/
|
|
22
|
-
tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult>;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/endpoints/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAChD;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;OAIG;IACG,KAAK,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAItE;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG1E"}
|
package/dist/endpoints/find.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, ExternalIdOptions, FindResult } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for finding media by external ID.
|
|
4
|
-
*/
|
|
5
|
-
export declare class FindEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new FindEndpoint instance.
|
|
8
|
-
* @param {string} access_token - The access token used for authentication.
|
|
9
|
-
*/
|
|
10
|
-
constructor(access_token: string);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves media by external ID asynchronously.
|
|
13
|
-
* @param {string} externalId - The external ID of the media.
|
|
14
|
-
* @param {ExternalIdOptions} options - Options for finding media by external ID.
|
|
15
|
-
* @returns {Promise<FindResult>} A Promise that resolves with the result of the find operation.
|
|
16
|
-
*/
|
|
17
|
-
byId(externalId: string, options: ExternalIdOptions): Promise<FindResult>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=find.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../src/endpoints/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAExE;;GAEG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAC5C;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;;OAKG;IACG,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC;CAGhF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, Genres, LanguageOption } 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: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new GenreEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: string);
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"genre.d.ts","sourceRoot":"","sources":["../../src/endpoints/genre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE;;GAEG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAKjC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD;;;;OAIG;IACG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, BelongingMovies, Keyword, KeywordsOptions } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing keyword details and related movies.
|
|
4
|
-
*/
|
|
5
|
-
export declare class KeywordsEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new KeywordsEndpoint 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 keyword asynchronously.
|
|
13
|
-
* @param {number} keywordId - The ID of the keyword.
|
|
14
|
-
* @returns {Promise<Keyword>} A Promise that resolves with the details of the keyword.
|
|
15
|
-
*/
|
|
16
|
-
details(keywordId: number): Promise<Keyword>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves movies belonging to a specific keyword asynchronously.
|
|
19
|
-
* @param {number} keywordId - The ID of the keyword.
|
|
20
|
-
* @param {KeywordsOptions} [options] - Optional parameters for refining the search.
|
|
21
|
-
* @returns {Promise<BelongingMovies>} A Promise that resolves with the movies belonging to the keyword.
|
|
22
|
-
*/
|
|
23
|
-
belongingMovies(keywordId: number, options?: KeywordsOptions): Promise<BelongingMovies>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/endpoints/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIpF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAChD;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;OAIG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlD;;;;;OAKG;IACG,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;CAG9F"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { AlternativeTitles, AppendToResponse, AppendToResponseMovieKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, Keywords, LanguageOption, LatestMovie, MovieChangeValue, MovieDetails, MovieLists, MoviesImageSearchOptions, MoviesPlayingNow, PageOption, PopularMovies, Recommendations, RegionOption, ReleaseDates, Reviews, SimilarMovies, TopRatedMovies, Translations, UpcomingMovies, Videos, WatchProviders } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing movie-related information.
|
|
4
|
-
*/
|
|
5
|
-
export declare class MoviesEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new MoviesEndpoint 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 movie asynchronously.
|
|
14
|
-
* @param {number} id - The ID of the movie.
|
|
15
|
-
* @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
16
|
-
* @param {string} [language] - Optional parameter for specifying the language.
|
|
17
|
-
* @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
|
|
18
|
-
*/
|
|
19
|
-
details<T extends AppendToResponseMovieKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<MovieDetails, T, "movie">>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves alternative titles of a specific movie asynchronously.
|
|
22
|
-
* @param {number} id - The ID of the movie.
|
|
23
|
-
* @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
|
|
24
|
-
*/
|
|
25
|
-
alternativeTitles(id: number): Promise<AlternativeTitles>;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves changes made to a specific movie asynchronously.
|
|
28
|
-
* @param {number} id - The ID of the movie.
|
|
29
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
30
|
-
* @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
|
|
31
|
-
*/
|
|
32
|
-
changes(id: number, options?: ChangeOption): Promise<Changes<MovieChangeValue>>;
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves credits of a specific movie asynchronously.
|
|
35
|
-
* @param {number} id - The ID of the movie.
|
|
36
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
37
|
-
* @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
|
|
38
|
-
*/
|
|
39
|
-
credits(id: number, options?: LanguageOption): Promise<Credits>;
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves external IDs of a specific movie asynchronously.
|
|
42
|
-
* @param {number} id - The ID of the movie.
|
|
43
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
|
|
44
|
-
*/
|
|
45
|
-
externalIds(id: number): Promise<ExternalIds>;
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves images of a specific movie asynchronously.
|
|
48
|
-
* @param {number} id - The ID of the movie.
|
|
49
|
-
* @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
50
|
-
* @returns {Promise<Images>} A Promise that resolves with the images of the movie.
|
|
51
|
-
*/
|
|
52
|
-
images(id: number, options?: MoviesImageSearchOptions): Promise<Images>;
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves keywords of a specific movie asynchronously.
|
|
55
|
-
* @param {number} id - The ID of the movie.
|
|
56
|
-
* @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
|
|
57
|
-
*/
|
|
58
|
-
keywords(id: number): Promise<Keywords>;
|
|
59
|
-
/**
|
|
60
|
-
* Retrieves lists containing a specific movie asynchronously.
|
|
61
|
-
* @param {number} id - The ID of the movie.
|
|
62
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
63
|
-
* @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
|
|
64
|
-
*/
|
|
65
|
-
lists(id: number, options?: LanguageOption & PageOption): Promise<MovieLists>;
|
|
66
|
-
/**
|
|
67
|
-
* Retrieves recommendations for a specific movie asynchronously.
|
|
68
|
-
* @param {number} id - The ID of the movie.
|
|
69
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
70
|
-
* @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
|
|
71
|
-
*/
|
|
72
|
-
recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
|
|
73
|
-
/**
|
|
74
|
-
* Retrieves release dates of a specific movie asynchronously.
|
|
75
|
-
* @param {number} id - The ID of the movie.
|
|
76
|
-
* @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
|
|
77
|
-
*/
|
|
78
|
-
releaseDates(id: number): Promise<ReleaseDates>;
|
|
79
|
-
/**
|
|
80
|
-
* Retrieves reviews for a specific movie asynchronously.
|
|
81
|
-
* @param {number} id - The ID of the movie.
|
|
82
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
83
|
-
* @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
|
|
84
|
-
*/
|
|
85
|
-
reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves similar movies for a specific movie asynchronously.
|
|
88
|
-
* @param {number} id - The ID of the movie.
|
|
89
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
90
|
-
* @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
|
|
91
|
-
*/
|
|
92
|
-
similar(id: number, options?: LanguageOption & PageOption): Promise<SimilarMovies>;
|
|
93
|
-
/**
|
|
94
|
-
* Retrieves translations of a specific movie asynchronously.
|
|
95
|
-
* @param {number} id - The ID of the movie.
|
|
96
|
-
* @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
|
|
97
|
-
*/
|
|
98
|
-
translations(id: number): Promise<Translations>;
|
|
99
|
-
/**
|
|
100
|
-
* Retrieves videos of a specific movie asynchronously.
|
|
101
|
-
* @param {number} id - The ID of the movie.
|
|
102
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
103
|
-
* @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
|
|
104
|
-
*/
|
|
105
|
-
videos(id: number, options?: LanguageOption): Promise<Videos>;
|
|
106
|
-
/**
|
|
107
|
-
* Retrieves watch providers of a specific movie asynchronously.
|
|
108
|
-
* @param {number} id - The ID of the movie.
|
|
109
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
|
|
110
|
-
*/
|
|
111
|
-
watchProviders(id: number): Promise<WatchProviders>;
|
|
112
|
-
/**
|
|
113
|
-
* Retrieves details of the latest movie asynchronously.
|
|
114
|
-
* @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
|
|
115
|
-
*/
|
|
116
|
-
latest(): Promise<LatestMovie>;
|
|
117
|
-
/**
|
|
118
|
-
* Retrieves movies playing now asynchronously.
|
|
119
|
-
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
120
|
-
* @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
|
|
121
|
-
*/
|
|
122
|
-
nowPlaying(options?: PageOption & LanguageOption & RegionOption): Promise<MoviesPlayingNow>;
|
|
123
|
-
/**
|
|
124
|
-
* Retrieves popular movies asynchronously.
|
|
125
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
126
|
-
* @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
|
|
127
|
-
*/
|
|
128
|
-
popular(options?: LanguageOption & PageOption): Promise<PopularMovies>;
|
|
129
|
-
/**
|
|
130
|
-
* Retrieves top rated movies asynchronously.
|
|
131
|
-
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
132
|
-
* @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
|
|
133
|
-
*/
|
|
134
|
-
topRated(options?: PageOption & LanguageOption & RegionOption): Promise<TopRatedMovies>;
|
|
135
|
-
/**
|
|
136
|
-
* Retrieves upcoming movies asynchronously.
|
|
137
|
-
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
138
|
-
* @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
|
|
139
|
-
*/
|
|
140
|
-
upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=movies.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../src/endpoints/movies.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AlternativeNames, BaseEndpoint, NetworkDetails, NetworkImages } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing network details.
|
|
4
|
-
*/
|
|
5
|
-
export declare class NetworksEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new NetworksEndpoint 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 network asynchronously.
|
|
14
|
-
* @param {number} id - The ID of the network.
|
|
15
|
-
* @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
|
|
16
|
-
*/
|
|
17
|
-
details(id: number): Promise<NetworkDetails>;
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves alternative names of a specific network asynchronously.
|
|
20
|
-
* @param {number} id - The ID of the network.
|
|
21
|
-
* @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
|
|
22
|
-
*/
|
|
23
|
-
alternativeNames(id: number): Promise<AlternativeNames>;
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves images of a specific network asynchronously.
|
|
26
|
-
* @param {number} id - The ID of the network.
|
|
27
|
-
* @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
|
|
28
|
-
*/
|
|
29
|
-
images(id: number): Promise<NetworkImages>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=networks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/endpoints/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1F;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKpC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;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;IAI7D;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjD"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { AppendToResponse, AppendToResponsePersonKey, BaseEndpoint, ChangeOption, Changes, ExternalIds, LanguageOption, PageOption, PeopleImages, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCredit, PersonTranslations, PersonTvShowCredit, PopularPersons, TaggedImages } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing information about people.
|
|
4
|
-
*/
|
|
5
|
-
export declare class PeopleEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new PeopleEndpoint 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 person asynchronously.
|
|
13
|
-
* @param {number} id - The ID of the person.
|
|
14
|
-
* @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
15
|
-
* @param {string} [language] - Optional parameter for specifying the language.
|
|
16
|
-
* @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
|
|
17
|
-
*/
|
|
18
|
-
details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<PersonDetails, T, "person">>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves changes made to a specific person asynchronously.
|
|
21
|
-
* @param {number} id - The ID of the person.
|
|
22
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
23
|
-
* @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
|
|
24
|
-
*/
|
|
25
|
-
changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves movie credits of a specific person asynchronously.
|
|
28
|
-
* @param {number} id - The ID of the person.
|
|
29
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
30
|
-
* @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
|
|
31
|
-
*/
|
|
32
|
-
movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves TV show credits of a specific person asynchronously.
|
|
35
|
-
* @param {number} id - The ID of the person.
|
|
36
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
37
|
-
* @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
|
|
38
|
-
*/
|
|
39
|
-
tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves combined credits of a specific person asynchronously.
|
|
42
|
-
* @param {number} id - The ID of the person.
|
|
43
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
44
|
-
* @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
|
|
45
|
-
*/
|
|
46
|
-
combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves external IDs of a specific person asynchronously.
|
|
49
|
-
* @param {number} id - The ID of the person.
|
|
50
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
|
|
51
|
-
*/
|
|
52
|
-
externalId(id: number): Promise<ExternalIds>;
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves images of a specific person asynchronously.
|
|
55
|
-
* @param {number} id - The ID of the person.
|
|
56
|
-
* @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
|
|
57
|
-
*/
|
|
58
|
-
images(id: number): Promise<PeopleImages>;
|
|
59
|
-
/**
|
|
60
|
-
* Retrieves tagged images of a specific person asynchronously.
|
|
61
|
-
* @param {number} id - The ID of the person.
|
|
62
|
-
* @param {PageOption} [options] - Optional parameters for specifying pagination options.
|
|
63
|
-
* @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
|
|
64
|
-
*/
|
|
65
|
-
taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
|
|
66
|
-
/**
|
|
67
|
-
* Retrieves translations of a specific person asynchronously.
|
|
68
|
-
* @param {number} id - The ID of the person.
|
|
69
|
-
* @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
|
|
70
|
-
*/
|
|
71
|
-
translation(id: number): Promise<PersonTranslations>;
|
|
72
|
-
/**
|
|
73
|
-
* Retrieves details of the latest person asynchronously.
|
|
74
|
-
* @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
|
|
75
|
-
*/
|
|
76
|
-
latest(): Promise<PersonDetails>;
|
|
77
|
-
/**
|
|
78
|
-
* Retrieves popular persons asynchronously.
|
|
79
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
80
|
-
* @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
|
|
81
|
-
*/
|
|
82
|
-
popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=people.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../src/endpoints/people.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACb,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;;;OAMG;IACG,OAAO,CAAC,CAAC,SAAS,yBAAyB,EAAE,GAAG,SAAS,EAC7D,EAAE,EAAE,MAAM,EACV,gBAAgB,CAAC,EAAE,CAAC,EACpB,QAAQ,CAAC,EAAE,MAAM;IASnB;;;;;OAKG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAItF;;;;;OAKG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpF;;;;;OAKG;IACG,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAItF;;;;;OAKG;IACG,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI3F;;;;OAIG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlD;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/C;;;;;OAKG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAI3E;;;;OAIG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI1D;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;IAItC;;;;OAIG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC;CAG9E"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, ReviewDetails } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing review details.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ReviewEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new ReviewEndpoint 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 review asynchronously.
|
|
13
|
-
* @param {string} id - The ID of the review.
|
|
14
|
-
* @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
|
|
15
|
-
*/
|
|
16
|
-
details(id: string): Promise<ReviewDetails>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=review.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/endpoints/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAExD;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGlD"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, Collection, Company, Movie, MovieSearchOptions, MultiSearchOptions, MultiSearchResult, PeopleSearchOptions, Person, Search, SearchOptions, TV, TvSearchOptions } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for performing various search operations.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SearchEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: string;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new SearchEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: string);
|
|
12
|
-
/**
|
|
13
|
-
* Searches for companies asynchronously.
|
|
14
|
-
* @param {SearchOptions} options - The search options.
|
|
15
|
-
* @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
|
|
16
|
-
*/
|
|
17
|
-
companies(options: SearchOptions): Promise<Search<Company>>;
|
|
18
|
-
/**
|
|
19
|
-
* Searches for collections asynchronously.
|
|
20
|
-
* @param {SearchOptions} options - The search options.
|
|
21
|
-
* @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
|
|
22
|
-
*/
|
|
23
|
-
collections(options: SearchOptions): Promise<Search<Collection>>;
|
|
24
|
-
/**
|
|
25
|
-
* Searches for keywords asynchronously.
|
|
26
|
-
* @param {SearchOptions} options - The search options.
|
|
27
|
-
* @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
|
|
28
|
-
*/
|
|
29
|
-
keywords(options: SearchOptions): Promise<Search<{
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
}>>;
|
|
33
|
-
/**
|
|
34
|
-
* Searches for movies asynchronously.
|
|
35
|
-
* @param {MovieSearchOptions} options - The search options.
|
|
36
|
-
* @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
|
|
37
|
-
*/
|
|
38
|
-
movies(options: MovieSearchOptions): Promise<Search<Movie>>;
|
|
39
|
-
/**
|
|
40
|
-
* Searches for people asynchronously.
|
|
41
|
-
* @param {PeopleSearchOptions} options - The search options.
|
|
42
|
-
* @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
|
|
43
|
-
*/
|
|
44
|
-
people(options: PeopleSearchOptions): Promise<Search<Person>>;
|
|
45
|
-
/**
|
|
46
|
-
* Searches for TV shows asynchronously.
|
|
47
|
-
* @param {TvSearchOptions} options - The search options.
|
|
48
|
-
* @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
|
|
49
|
-
*/
|
|
50
|
-
tv(options: TvSearchOptions): Promise<Search<TV>>;
|
|
51
|
-
/**
|
|
52
|
-
* Performs a multi-search asynchronously.
|
|
53
|
-
* @param {MultiSearchOptions} options - The search options.
|
|
54
|
-
* @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
|
|
55
|
-
*/
|
|
56
|
-
multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,OAAO,EACP,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,MAAM,EACN,aAAa,EACb,EAAE,EACF,eAAe,EAChB,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKlC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;OAIG;IACG,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAIjE;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAItE;;;;OAIG;IACG,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAIrF;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAIjE;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAInE;;;;OAIG;IACG,EAAE,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAIvD;;;;OAIG;IACG,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAG7E"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, LanguageOption, PageOption, TimeWindow, TrendingMediaType, TrendingResults } from '../@types';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for retrieving trending content.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TrendingEndpoint extends BaseEndpoint {
|
|
6
|
-
/**
|
|
7
|
-
* Constructs a new TrendingEndpoint instance.
|
|
8
|
-
* @param {string} access_token - The access token used for authentication.
|
|
9
|
-
*/
|
|
10
|
-
constructor(access_token: string);
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves trending content asynchronously based on media type and time window.
|
|
13
|
-
* @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
|
|
14
|
-
* @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
|
|
15
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
|
|
16
|
-
* @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
|
|
17
|
-
* @template T - The type of media being searched for (e.g., 'movie', 'tv').
|
|
18
|
-
*/
|
|
19
|
-
trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption): Promise<TrendingResults<T>>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=trending.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trending.d.ts","sourceRoot":"","sources":["../../src/endpoints/trending.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAErH;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAChD;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;;;;;OAOG;IACG,QAAQ,CAAC,CAAC,SAAS,iBAAiB,EACxC,SAAS,EAAE,CAAC,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACpC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAG/B"}
|