@lorenzopant/tmdb 1.17.0 → 1.17.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.d.ts +5087 -4
- package/dist/index.js +3721 -5
- package/package.json +12 -5
- package/dist/client.d.ts +0 -17
- package/dist/client.js +0 -114
- package/dist/endpoints/base.d.ts +0 -22
- package/dist/endpoints/base.js +0 -32
- package/dist/endpoints/certifications.d.ts +0 -20
- package/dist/endpoints/certifications.js +0 -24
- package/dist/endpoints/changes.d.ts +0 -40
- package/dist/endpoints/changes.js +0 -46
- package/dist/endpoints/collections.d.ts +0 -39
- package/dist/endpoints/collections.js +0 -52
- package/dist/endpoints/companies.d.ts +0 -37
- package/dist/endpoints/companies.js +0 -49
- package/dist/endpoints/configuration.d.ts +0 -72
- package/dist/endpoints/configuration.js +0 -83
- package/dist/endpoints/credits.d.ts +0 -16
- package/dist/endpoints/credits.js +0 -22
- package/dist/endpoints/discover.d.ts +0 -36
- package/dist/endpoints/discover.js +0 -61
- package/dist/endpoints/find.d.ts +0 -16
- package/dist/endpoints/find.js +0 -21
- package/dist/endpoints/genres.d.ts +0 -25
- package/dist/endpoints/genres.js +0 -28
- package/dist/endpoints/keywords.d.ts +0 -29
- package/dist/endpoints/keywords.js +0 -38
- package/dist/endpoints/movie_lists.d.ts +0 -53
- package/dist/endpoints/movie_lists.js +0 -65
- package/dist/endpoints/movies.d.ts +0 -202
- package/dist/endpoints/movies.js +0 -255
- package/dist/endpoints/networks.d.ts +0 -36
- package/dist/endpoints/networks.js +0 -46
- package/dist/endpoints/people.d.ts +0 -91
- package/dist/endpoints/people.js +0 -128
- package/dist/endpoints/people_lists.d.ts +0 -16
- package/dist/endpoints/people_lists.js +0 -16
- package/dist/endpoints/reviews.d.ts +0 -14
- package/dist/endpoints/reviews.js +0 -16
- package/dist/endpoints/search.d.ts +0 -88
- package/dist/endpoints/search.js +0 -102
- package/dist/endpoints/trending.d.ts +0 -36
- package/dist/endpoints/trending.js +0 -48
- package/dist/endpoints/tv_episode_groups.d.ts +0 -13
- package/dist/endpoints/tv_episode_groups.js +0 -16
- package/dist/endpoints/tv_episodes.d.ts +0 -110
- package/dist/endpoints/tv_episodes.js +0 -136
- package/dist/endpoints/tv_seasons.d.ts +0 -128
- package/dist/endpoints/tv_seasons.js +0 -164
- package/dist/endpoints/tv_series.d.ts +0 -244
- package/dist/endpoints/tv_series.js +0 -311
- package/dist/endpoints/tv_series_lists.d.ts +0 -51
- package/dist/endpoints/tv_series_lists.js +0 -63
- package/dist/endpoints/watch_providers.d.ts +0 -34
- package/dist/endpoints/watch_providers.js +0 -46
- package/dist/errors/messages.d.ts +0 -15
- package/dist/errors/messages.js +0 -47
- package/dist/errors/tmdb.d.ts +0 -45
- package/dist/errors/tmdb.js +0 -39
- package/dist/images/images.d.ts +0 -12
- package/dist/images/images.js +0 -26
- package/dist/routes.d.ts +0 -157
- package/dist/routes.js +0 -157
- package/dist/tmdb.d.ts +0 -61
- package/dist/tmdb.js +0 -94
- package/dist/types/collections.d.ts +0 -72
- package/dist/types/collections.js +0 -1
- package/dist/types/common/certifications.d.ts +0 -19
- package/dist/types/common/certifications.js +0 -1
- package/dist/types/common/changes.d.ts +0 -44
- package/dist/types/common/changes.js +0 -1
- package/dist/types/common/images.d.ts +0 -64
- package/dist/types/common/images.js +0 -1
- package/dist/types/common/index.d.ts +0 -6
- package/dist/types/common/index.js +0 -6
- package/dist/types/common/media.d.ts +0 -305
- package/dist/types/common/media.js +0 -1
- package/dist/types/common/pagination.d.ts +0 -6
- package/dist/types/common/pagination.js +0 -1
- package/dist/types/common/params.d.ts +0 -27
- package/dist/types/common/params.js +0 -1
- package/dist/types/companies.d.ts +0 -53
- package/dist/types/companies.js +0 -1
- package/dist/types/config/configuration.d.ts +0 -56
- package/dist/types/config/configuration.js +0 -1
- package/dist/types/config/countries.d.ts +0 -3
- package/dist/types/config/countries.js +0 -1257
- package/dist/types/config/images.d.ts +0 -49
- package/dist/types/config/images.js +0 -13
- package/dist/types/config/index.d.ts +0 -6
- package/dist/types/config/index.js +0 -6
- package/dist/types/config/languages.d.ts +0 -11
- package/dist/types/config/languages.js +0 -1
- package/dist/types/config/options.d.ts +0 -36
- package/dist/types/config/options.js +0 -1
- package/dist/types/config/timezones.d.ts +0 -751
- package/dist/types/config/timezones.js +0 -1149
- package/dist/types/credits.d.ts +0 -148
- package/dist/types/credits.js +0 -1
- package/dist/types/discover.d.ts +0 -130
- package/dist/types/discover.js +0 -27
- package/dist/types/enums.d.ts +0 -8
- package/dist/types/enums.js +0 -9
- package/dist/types/find.d.ts +0 -103
- package/dist/types/find.js +0 -1
- package/dist/types/index.d.ts +0 -21
- package/dist/types/index.js +0 -21
- package/dist/types/keywords.d.ts +0 -19
- package/dist/types/keywords.js +0 -1
- package/dist/types/movies.d.ts +0 -304
- package/dist/types/movies.js +0 -1
- package/dist/types/networks.d.ts +0 -45
- package/dist/types/networks.js +0 -1
- package/dist/types/people-lists.d.ts +0 -5
- package/dist/types/people-lists.js +0 -1
- package/dist/types/people.d.ts +0 -214
- package/dist/types/people.js +0 -1
- package/dist/types/reviews.d.ts +0 -22
- package/dist/types/reviews.js +0 -1
- package/dist/types/search.d.ts +0 -198
- package/dist/types/search.js +0 -1
- package/dist/types/trending.d.ts +0 -55
- package/dist/types/trending.js +0 -1
- package/dist/types/tv-episode-groups.d.ts +0 -63
- package/dist/types/tv-episode-groups.js +0 -13
- package/dist/types/tv-episodes.d.ts +0 -98
- package/dist/types/tv-episodes.js +0 -1
- package/dist/types/tv-seasons.d.ts +0 -133
- package/dist/types/tv-seasons.js +0 -1
- package/dist/types/tv-series.d.ts +0 -445
- package/dist/types/tv-series.js +0 -1
- package/dist/types/utility.d.ts +0 -16
- package/dist/types/utility.js +0 -10
- package/dist/types/watch-providers.d.ts +0 -34
- package/dist/types/watch-providers.js +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -2
- package/dist/utils/jwt.d.ts +0 -1
- package/dist/utils/jwt.js +0 -61
- package/dist/utils/logger.d.ts +0 -18
- package/dist/utils/logger.js +0 -40
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export declare const IMAGE_BASE_URL = "http://image.tmdb.org/t/p/";
|
|
2
|
-
export declare const IMAGE_SECURE_BASE_URL = "https://image.tmdb.org/t/p/";
|
|
3
|
-
export declare const BACKDROP_SIZES: readonly ["w300", "w780", "w1280", "original"];
|
|
4
|
-
export type BackdropSize = (typeof BACKDROP_SIZES)[number];
|
|
5
|
-
export declare const LOGO_SIZES: readonly ["w45", "w92", "w154", "w185", "w300", "w500", "original"];
|
|
6
|
-
export type LogoSize = (typeof LOGO_SIZES)[number];
|
|
7
|
-
export declare const POSTER_SIZES: readonly ["w92", "w154", "w185", "w342", "w500", "w780", "original"];
|
|
8
|
-
export type PosterSize = (typeof POSTER_SIZES)[number];
|
|
9
|
-
export declare const PROFILE_SIZES: readonly ["w45", "w185", "h632", "original"];
|
|
10
|
-
export type ProfileSize = (typeof PROFILE_SIZES)[number];
|
|
11
|
-
export declare const STILL_SIZES: readonly ["w92", "w185", "w300", "original"];
|
|
12
|
-
export type StillSize = (typeof STILL_SIZES)[number];
|
|
13
|
-
export type ImageSize = BackdropSize | LogoSize | PosterSize | ProfileSize | StillSize;
|
|
14
|
-
/**
|
|
15
|
-
* Image size type definitions
|
|
16
|
-
*/
|
|
17
|
-
export type ImageSizeTypes = {
|
|
18
|
-
/** Size options for backdrop images: "w300", "w780", "w1280", "original" */
|
|
19
|
-
BackdropSize: BackdropSize;
|
|
20
|
-
/** Size options for logo images: "w45", "w92", "w154", "w185", "w300", "w500", "original" */
|
|
21
|
-
LogoSize: LogoSize;
|
|
22
|
-
/** Size options for poster images: "w92", "w154", "w185", "w342", "w500", "w780", "original" */
|
|
23
|
-
PosterSize: PosterSize;
|
|
24
|
-
/** Size options for profile images: "w45", "w185", "h632", "original" */
|
|
25
|
-
ProfileSize: ProfileSize;
|
|
26
|
-
/** Size options for still images: "w92", "w185", "w300", "original" */
|
|
27
|
-
StillSize: StillSize;
|
|
28
|
-
/** Union of all available image sizes */
|
|
29
|
-
ImageSize: ImageSize;
|
|
30
|
-
};
|
|
31
|
-
export type DefaultImageSizesConfig = {
|
|
32
|
-
posters?: PosterSize;
|
|
33
|
-
backdrops?: BackdropSize;
|
|
34
|
-
logos?: LogoSize;
|
|
35
|
-
profiles?: ProfileSize;
|
|
36
|
-
still?: StillSize;
|
|
37
|
-
};
|
|
38
|
-
export type ImagesConfig = {
|
|
39
|
-
/**
|
|
40
|
-
* Whether to use the secure (HTTPS) image base URL.
|
|
41
|
-
* Defaults to true. Set to false only if working in an environment where HTTPS is not supported
|
|
42
|
-
* or where you explicitly need non-secure image URLs.
|
|
43
|
-
*/
|
|
44
|
-
secure_images_url?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Provide default image size configuration for each type of images.
|
|
47
|
-
*/
|
|
48
|
-
default_image_sizes?: Partial<DefaultImageSizesConfig>;
|
|
49
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Image base URLs
|
|
2
|
-
export const IMAGE_BASE_URL = "http://image.tmdb.org/t/p/";
|
|
3
|
-
export const IMAGE_SECURE_BASE_URL = "https://image.tmdb.org/t/p/";
|
|
4
|
-
// Backdrop sizes
|
|
5
|
-
export const BACKDROP_SIZES = ["w300", "w780", "w1280", "original"];
|
|
6
|
-
// Logo sizes
|
|
7
|
-
export const LOGO_SIZES = ["w45", "w92", "w154", "w185", "w300", "w500", "original"];
|
|
8
|
-
// Poster sizes
|
|
9
|
-
export const POSTER_SIZES = ["w92", "w154", "w185", "w342", "w500", "w780", "original"];
|
|
10
|
-
// Profile sizes
|
|
11
|
-
export const PROFILE_SIZES = ["w45", "w185", "h632", "original"];
|
|
12
|
-
// Still sizes
|
|
13
|
-
export const STILL_SIZES = ["w92", "w185", "w300", "original"];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type LanguageISO6391 = "ay" | "ch" | "fj" | "it" | "nv" | "qu" | "ru" | "sc" | "sw" | "tn" | "ur" | "ho" | "km" | "kj" | "tt" | "ps" | "cn" | "mk" | "yo" | "fo" | "ff" | "ig" | "io" | "id" | "ko" | "mo" | "nr" | "pi" | "so" | "sq" | "ta" | "tl" | "th" | "ve" | "vo" | "cu" | "kw" | "fr" | "fy" | "ht" | "ie" | "ia" | "mh" | "rn" | "se" | "gd" | "ii" | "lo" | "la" | "ny" | "oj" | "ab" | "ar" | "ee" | "hi" | "an" | "ba" | "bn" | "bi" | "et" | "eu" | "gl" | "ha" | "hz" | "iu" | "jv" | "kr" | "mn" | "my" | "na" | "pt" | "sd" | "zu" | "ak" | "hu" | "ik" | "ks" | "ka" | "lg" | "oc" | "uz" | "xh" | "za" | "zh" | "el" | "ga" | "gn" | "gu" | "kl" | "kn" | "ky" | "nl" | "sl" | "sr" | "ss" | "ug" | "bg" | "co" | "cy" | "dv" | "ki" | "mt" | "ne" | "si" | "sn" | "su" | "to" | "wa" | "cr" | "fi" | "hr" | "mg" | "nb" | "ts" | "vi" | "hy" | "av" | "az" | "gv" | "sh" | "lv" | "mr" | "pl" | "rm" | "tr" | "xx" | "ca" | "de" | "rw" | "ln" | "ro" | "ty" | "ti" | "he" | "as" | "bo" | "dz" | "eo" | "ja" | "ng" | "no" | "pa" | "sa" | "am" | "fa" | "aa" | "ae" | "br" | "is" | "kk" | "lt" | "mi" | "ms" | "or" | "st" | "tk" | "af" | "bm" | "bs" | "cs" | "ce" | "kv" | "lb" | "nd" | "sk" | "sm" | "tg" | "wo" | "yi" | "be" | "cv" | "da" | "en" | "kg" | "ku" | "li" | "lu" | "ml" | "nn" | "om" | "os" | "sg" | "es" | "sv" | "te" | "tw" | "uk";
|
|
2
|
-
/**
|
|
3
|
-
* Defined as const for utility purposes.
|
|
4
|
-
* Last update: 20 Nov 2025
|
|
5
|
-
*/
|
|
6
|
-
export type PrimaryTranslations = "af-ZA" | "ar-AE" | "ar-SA" | "be-BY" | "bg-BG" | "bn-BD" | "ca-ES" | "ch-GU" | "cn-CN" | "cs-CZ" | "cy-GB" | "da-DK" | "de-AT" | "de-CH" | "de-DE" | "el-GR" | "en-AU" | "en-CA" | "en-GB" | "en-IE" | "en-NZ" | "en-US" | "eo-EO" | "es-ES" | "es-MX" | "et-EE" | "eu-ES" | "fa-IR" | "fi-FI" | "fr-CA" | "fr-FR" | "ga-IE" | "gd-GB" | "gl-ES" | "he-IL" | "hi-IN" | "hr-HR" | "hu-HU" | "id-ID" | "it-IT" | "ja-JP" | "ka-GE" | "kk-KZ" | "kn-IN" | "ko-KR" | "ky-KG" | "lt-LT" | "lv-LV" | "ml-IN" | "mr-IN" | "ms-MY" | "ms-SG" | "nb-NO" | "nl-BE" | "nl-NL" | "no-NO" | "pa-IN" | "pl-PL" | "pt-BR" | "pt-PT" | "ro-RO" | "ru-RU" | "si-LK" | "sk-SK" | "sl-SI" | "sq-AL" | "sr-RS" | "sv-SE" | "ta-IN" | "te-IN" | "th-TH" | "tl-PH" | "tr-TR" | "uk-UA" | "vi-VN" | "zh-CN" | "zh-HK" | "zh-SG" | "zh-TW" | "zu-ZA";
|
|
7
|
-
/**
|
|
8
|
-
* As per TMDB documentation:
|
|
9
|
-
* https://developer.themoviedb.org/reference/configuration-primary-translations
|
|
10
|
-
*/
|
|
11
|
-
export type Language = PrimaryTranslations | LanguageISO6391;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { TMDBLoggerFn } from "../../utils/logger";
|
|
2
|
-
import { CountryISO3166_1 } from "./countries";
|
|
3
|
-
import { ImagesConfig } from "./images";
|
|
4
|
-
import { Language } from "./languages";
|
|
5
|
-
import { Timezone } from "./timezones";
|
|
6
|
-
export type TMDBOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* The language to use for requests (ISO 639-1 code)
|
|
9
|
-
* This provides localization and translated data.
|
|
10
|
-
*/
|
|
11
|
-
language?: Language;
|
|
12
|
-
/**
|
|
13
|
-
* Region codes follow ISO 3166-1 (e.g. 'US', 'IT', 'JP') and are used to localize results.
|
|
14
|
-
* They affect release dates, age certifications, watch providers, and filtered movie lists.
|
|
15
|
-
* Example: 'region=IT' returns Italian-specific results for now playing, watch providers, etc.
|
|
16
|
-
* If not set, TMDB may fall back to a default or global data.
|
|
17
|
-
*/
|
|
18
|
-
region?: CountryISO3166_1;
|
|
19
|
-
/**
|
|
20
|
-
* Provide images default configuration
|
|
21
|
-
*/
|
|
22
|
-
images?: ImagesConfig;
|
|
23
|
-
/**
|
|
24
|
-
* Provide a timezone default for all the TV Series related queries
|
|
25
|
-
* which support the timezone param.
|
|
26
|
-
* The timezone is used to calculate the “today” for airing TV shows.
|
|
27
|
-
* Read more: https://www.themoviedb.org/talk/54c554679251416eae010d6d
|
|
28
|
-
*/
|
|
29
|
-
timezone?: Timezone;
|
|
30
|
-
/**
|
|
31
|
-
* Enable request logging for debugging.
|
|
32
|
-
* - `true` uses a built-in console logger.
|
|
33
|
-
* - Pass a function to customize logging output.
|
|
34
|
-
*/
|
|
35
|
-
logger?: boolean | TMDBLoggerFn;
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|