@lorenzopant/tmdb 1.17.1 → 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.
Files changed (141) hide show
  1. package/dist/index.d.ts +5087 -4
  2. package/dist/index.js +3721 -5
  3. package/package.json +12 -5
  4. package/dist/client.d.ts +0 -51
  5. package/dist/client.js +0 -166
  6. package/dist/endpoints/base.d.ts +0 -22
  7. package/dist/endpoints/base.js +0 -32
  8. package/dist/endpoints/certifications.d.ts +0 -20
  9. package/dist/endpoints/certifications.js +0 -24
  10. package/dist/endpoints/changes.d.ts +0 -40
  11. package/dist/endpoints/changes.js +0 -46
  12. package/dist/endpoints/collections.d.ts +0 -39
  13. package/dist/endpoints/collections.js +0 -52
  14. package/dist/endpoints/companies.d.ts +0 -37
  15. package/dist/endpoints/companies.js +0 -49
  16. package/dist/endpoints/configuration.d.ts +0 -72
  17. package/dist/endpoints/configuration.js +0 -83
  18. package/dist/endpoints/credits.d.ts +0 -16
  19. package/dist/endpoints/credits.js +0 -22
  20. package/dist/endpoints/discover.d.ts +0 -36
  21. package/dist/endpoints/discover.js +0 -61
  22. package/dist/endpoints/find.d.ts +0 -16
  23. package/dist/endpoints/find.js +0 -21
  24. package/dist/endpoints/genres.d.ts +0 -25
  25. package/dist/endpoints/genres.js +0 -28
  26. package/dist/endpoints/keywords.d.ts +0 -29
  27. package/dist/endpoints/keywords.js +0 -38
  28. package/dist/endpoints/movie_lists.d.ts +0 -53
  29. package/dist/endpoints/movie_lists.js +0 -65
  30. package/dist/endpoints/movies.d.ts +0 -202
  31. package/dist/endpoints/movies.js +0 -255
  32. package/dist/endpoints/networks.d.ts +0 -36
  33. package/dist/endpoints/networks.js +0 -46
  34. package/dist/endpoints/people.d.ts +0 -91
  35. package/dist/endpoints/people.js +0 -128
  36. package/dist/endpoints/people_lists.d.ts +0 -16
  37. package/dist/endpoints/people_lists.js +0 -16
  38. package/dist/endpoints/reviews.d.ts +0 -14
  39. package/dist/endpoints/reviews.js +0 -16
  40. package/dist/endpoints/search.d.ts +0 -88
  41. package/dist/endpoints/search.js +0 -102
  42. package/dist/endpoints/trending.d.ts +0 -36
  43. package/dist/endpoints/trending.js +0 -48
  44. package/dist/endpoints/tv_episode_groups.d.ts +0 -13
  45. package/dist/endpoints/tv_episode_groups.js +0 -16
  46. package/dist/endpoints/tv_episodes.d.ts +0 -110
  47. package/dist/endpoints/tv_episodes.js +0 -136
  48. package/dist/endpoints/tv_seasons.d.ts +0 -128
  49. package/dist/endpoints/tv_seasons.js +0 -164
  50. package/dist/endpoints/tv_series.d.ts +0 -244
  51. package/dist/endpoints/tv_series.js +0 -311
  52. package/dist/endpoints/tv_series_lists.d.ts +0 -51
  53. package/dist/endpoints/tv_series_lists.js +0 -63
  54. package/dist/endpoints/watch_providers.d.ts +0 -34
  55. package/dist/endpoints/watch_providers.js +0 -46
  56. package/dist/errors/messages.d.ts +0 -15
  57. package/dist/errors/messages.js +0 -47
  58. package/dist/errors/tmdb.d.ts +0 -45
  59. package/dist/errors/tmdb.js +0 -39
  60. package/dist/images/images.d.ts +0 -12
  61. package/dist/images/images.js +0 -26
  62. package/dist/routes.d.ts +0 -157
  63. package/dist/routes.js +0 -157
  64. package/dist/tmdb.d.ts +0 -61
  65. package/dist/tmdb.js +0 -94
  66. package/dist/types/collections.d.ts +0 -72
  67. package/dist/types/collections.js +0 -1
  68. package/dist/types/common/certifications.d.ts +0 -19
  69. package/dist/types/common/certifications.js +0 -1
  70. package/dist/types/common/changes.d.ts +0 -44
  71. package/dist/types/common/changes.js +0 -1
  72. package/dist/types/common/images.d.ts +0 -64
  73. package/dist/types/common/images.js +0 -1
  74. package/dist/types/common/index.d.ts +0 -6
  75. package/dist/types/common/index.js +0 -6
  76. package/dist/types/common/media.d.ts +0 -305
  77. package/dist/types/common/media.js +0 -1
  78. package/dist/types/common/pagination.d.ts +0 -6
  79. package/dist/types/common/pagination.js +0 -1
  80. package/dist/types/common/params.d.ts +0 -27
  81. package/dist/types/common/params.js +0 -1
  82. package/dist/types/companies.d.ts +0 -53
  83. package/dist/types/companies.js +0 -1
  84. package/dist/types/config/configuration.d.ts +0 -56
  85. package/dist/types/config/configuration.js +0 -1
  86. package/dist/types/config/countries.d.ts +0 -3
  87. package/dist/types/config/countries.js +0 -1257
  88. package/dist/types/config/images.d.ts +0 -49
  89. package/dist/types/config/images.js +0 -13
  90. package/dist/types/config/index.d.ts +0 -6
  91. package/dist/types/config/index.js +0 -6
  92. package/dist/types/config/languages.d.ts +0 -11
  93. package/dist/types/config/languages.js +0 -1
  94. package/dist/types/config/options.d.ts +0 -46
  95. package/dist/types/config/options.js +0 -1
  96. package/dist/types/config/timezones.d.ts +0 -751
  97. package/dist/types/config/timezones.js +0 -1149
  98. package/dist/types/credits.d.ts +0 -148
  99. package/dist/types/credits.js +0 -1
  100. package/dist/types/discover.d.ts +0 -130
  101. package/dist/types/discover.js +0 -27
  102. package/dist/types/enums.d.ts +0 -8
  103. package/dist/types/enums.js +0 -9
  104. package/dist/types/find.d.ts +0 -103
  105. package/dist/types/find.js +0 -1
  106. package/dist/types/index.d.ts +0 -21
  107. package/dist/types/index.js +0 -21
  108. package/dist/types/keywords.d.ts +0 -19
  109. package/dist/types/keywords.js +0 -1
  110. package/dist/types/movies.d.ts +0 -304
  111. package/dist/types/movies.js +0 -1
  112. package/dist/types/networks.d.ts +0 -45
  113. package/dist/types/networks.js +0 -1
  114. package/dist/types/people-lists.d.ts +0 -5
  115. package/dist/types/people-lists.js +0 -1
  116. package/dist/types/people.d.ts +0 -214
  117. package/dist/types/people.js +0 -1
  118. package/dist/types/reviews.d.ts +0 -22
  119. package/dist/types/reviews.js +0 -1
  120. package/dist/types/search.d.ts +0 -198
  121. package/dist/types/search.js +0 -1
  122. package/dist/types/trending.d.ts +0 -55
  123. package/dist/types/trending.js +0 -1
  124. package/dist/types/tv-episode-groups.d.ts +0 -63
  125. package/dist/types/tv-episode-groups.js +0 -13
  126. package/dist/types/tv-episodes.d.ts +0 -98
  127. package/dist/types/tv-episodes.js +0 -1
  128. package/dist/types/tv-seasons.d.ts +0 -133
  129. package/dist/types/tv-seasons.js +0 -1
  130. package/dist/types/tv-series.d.ts +0 -445
  131. package/dist/types/tv-series.js +0 -1
  132. package/dist/types/utility.d.ts +0 -16
  133. package/dist/types/utility.js +0 -10
  134. package/dist/types/watch-providers.d.ts +0 -34
  135. package/dist/types/watch-providers.js +0 -1
  136. package/dist/utils/index.d.ts +0 -2
  137. package/dist/utils/index.js +0 -2
  138. package/dist/utils/jwt.d.ts +0 -1
  139. package/dist/utils/jwt.js +0 -61
  140. package/dist/utils/logger.d.ts +0 -18
  141. package/dist/utils/logger.js +0 -40
@@ -1,148 +0,0 @@
1
- import { Credit, MediaType, WithLanguage } from "./common";
2
- import type { LiteralUnion } from "./utility";
3
- /**
4
- * Base params used by all credit queries.
5
- */
6
- export type CreditBaseParam = {
7
- /** TMDB credit identifier. */
8
- credit_id: string;
9
- };
10
- export type CreditDetailsParams = CreditBaseParam & WithLanguage;
11
- /**
12
- * Person data attached to a credit details response.
13
- */
14
- export type CreditDetailsPerson = Omit<Credit, "credit_id">;
15
- type CreditDetailsMediaBase = {
16
- /** Indicates whether the title is marked for adult content. */
17
- adult: boolean;
18
- /** Relative path to the backdrop image, if available. */
19
- backdrop_path?: string | null;
20
- /** Character name when the credit belongs to cast. */
21
- character?: string;
22
- /** Genre identifiers attached to the media item. */
23
- genre_ids: number[];
24
- /** TMDB media identifier. */
25
- id: number;
26
- /** Original language code. */
27
- original_language: string;
28
- /** Plot summary. */
29
- overview: string;
30
- /** Relative path to the poster image, if available. */
31
- poster_path?: string | null;
32
- /** Popularity score. */
33
- popularity: number;
34
- /** Average vote score. */
35
- vote_average: number;
36
- /** Total vote count. */
37
- vote_count: number;
38
- };
39
- /**
40
- * Movie data attached to a credit details response.
41
- */
42
- export type CreditDetailsMovieMedia = CreditDetailsMediaBase & {
43
- /** Media type discriminator. */
44
- media_type: "movie";
45
- /** Original movie title. */
46
- original_title: string;
47
- /** Release date in ISO 8601 format. */
48
- release_date: string;
49
- /** Localized movie title. */
50
- title: string;
51
- /** Whether the movie has an associated video. */
52
- video: boolean;
53
- };
54
- /**
55
- * TV episode summary embedded in a TV credit details response.
56
- */
57
- export type CreditDetailsTVEpisode = {
58
- /** Indicates whether the episode is marked for adult content. */
59
- adult: boolean;
60
- /** Episode air date in ISO 8601 format, if available. */
61
- air_date?: string | null;
62
- /** Episode number within the season. */
63
- episode_number: number;
64
- /** Episode type reported by TMDB. */
65
- episode_type: string;
66
- /** Unique episode identifier. */
67
- id: number;
68
- /** Episode title. */
69
- name: string;
70
- /** Plot summary. */
71
- overview: string;
72
- /** Production code if available. */
73
- production_code: string;
74
- /** Runtime in minutes, if available. */
75
- runtime?: number | null;
76
- /** Season number for the episode. */
77
- season_number: number;
78
- /** Episode still image path, if available. */
79
- still_path?: string | null;
80
- /** Average vote score. */
81
- vote_average: number;
82
- /** Total vote count. */
83
- vote_count: number;
84
- };
85
- /**
86
- * TV season summary embedded in a TV credit details response.
87
- */
88
- export type CreditDetailsTVSeason = {
89
- /** Season air date in ISO 8601 format, if available. */
90
- air_date?: string | null;
91
- /** Total number of episodes in the season. */
92
- episode_count: number;
93
- /** Unique season identifier. */
94
- id: number;
95
- /** Season title. */
96
- name: string;
97
- /** Plot summary. */
98
- overview: string;
99
- /** Relative path to the season poster, if available. */
100
- poster_path?: string | null;
101
- /** Season number within the series. */
102
- season_number: number;
103
- /** Average vote score. */
104
- vote_average: number;
105
- };
106
- /**
107
- * TV series data attached to a credit details response.
108
- */
109
- export type CreditDetailsTVMedia = CreditDetailsMediaBase & {
110
- /** TV episodes attached to the specific credit. */
111
- episodes: CreditDetailsTVEpisode[];
112
- /** First air date in ISO 8601 format. */
113
- first_air_date: string;
114
- /** Localized series name. */
115
- name: string;
116
- /** Origin country codes. */
117
- origin_country: string[];
118
- /** Original series name. */
119
- original_name: string;
120
- /** Seasons attached to the specific credit. */
121
- seasons: CreditDetailsTVSeason[];
122
- /** Media type discriminator. */
123
- media_type: "tv";
124
- };
125
- /**
126
- * Media item returned by `/credit/{credit_id}`.
127
- */
128
- export type CreditDetailsMedia = CreditDetailsMovieMedia | CreditDetailsTVMedia;
129
- /**
130
- * Detailed credit information returned by `/credit/{credit_id}`.
131
- */
132
- export type CreditDetails = {
133
- /** Cast or crew discriminator returned by TMDB. */
134
- credit_type: LiteralUnion<"cast" | "crew">;
135
- /** Department associated with the credit. */
136
- department: string;
137
- /** Unique credit identifier. */
138
- id: string;
139
- /** Job associated with the credit. */
140
- job: string;
141
- /** Media type discriminator for the attached media payload. */
142
- media_type: MediaType;
143
- /** Movie or TV title linked to the credit. */
144
- media: CreditDetailsMedia;
145
- /** Person linked to the credit. */
146
- person: CreditDetailsPerson;
147
- };
148
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,130 +0,0 @@
1
- import { WatchMonetizationType } from "./common";
2
- import { CountryISO3166_1, Language, LanguageISO6391 } from "./config";
3
- import { ReleaseType } from "./enums";
4
- import { LiteralUnion, Prettify } from "./utility";
5
- /**
6
- * Supported sort options for the movie discover endpoint.
7
- * @reference https://developer.themoviedb.org/reference/discover-movie
8
- */
9
- export type DiscoverMovieSortBy = "original_title.asc" | "original_title.desc" | "popularity.asc" | "popularity.desc" | "revenue.asc" | "revenue.desc" | "primary_release_date.asc" | "primary_release_date.desc" | "title.asc" | "title.desc" | "vote_average.asc" | "vote_average.desc" | "vote_count.asc" | "vote_count.desc";
10
- /**
11
- * Supported sort options for the TV discover endpoint.
12
- * @reference https://developer.themoviedb.org/reference/discover-tv
13
- */
14
- export type DiscoverTVSortBy = "first_air_date.asc" | "first_air_date.desc" | "name.asc" | "name.desc" | "original_name.asc" | "original_name.desc" | "popularity.asc" | "popularity.desc" | "vote_average.asc" | "vote_average.desc" | "vote_count.asc" | "vote_count.desc";
15
- /**
16
- * TV status values accepted by TMDB discover filters.
17
- * @reference https://developer.themoviedb.org/reference/discover-tv
18
- */
19
- export declare enum DiscoverTVStatus {
20
- ReturningSeries = 0,
21
- Planned = 1,
22
- InProduction = 2,
23
- Ended = 3,
24
- Canceled = 4,
25
- Pilot = 5
26
- }
27
- /**
28
- * TV type values accepted by TMDB discover filters.
29
- * @reference https://developer.themoviedb.org/reference/discover-tv
30
- */
31
- export declare enum DiscoverTVType {
32
- Documentary = 0,
33
- News = 1,
34
- Miniseries = 2,
35
- Reality = 3,
36
- Scripted = 4,
37
- TalkShow = 5,
38
- Video = 6
39
- }
40
- /**
41
- * A TV result item as returned by discover endpoints.
42
- */
43
- export type DiscoverTVResultItem = {
44
- backdrop_path: string | null;
45
- first_air_date: string;
46
- genre_ids: number[];
47
- id: number;
48
- name: string;
49
- origin_country: CountryISO3166_1[];
50
- original_language: string;
51
- original_name: string;
52
- overview: string;
53
- popularity: number;
54
- poster_path: string | null;
55
- vote_average: number;
56
- vote_count: number;
57
- };
58
- /**
59
- * Comma-separated values are treated as AND filters by TMDB.
60
- * Pipe-separated values are treated as OR filters by TMDB.
61
- *
62
- * The API expects these values serialized as query strings, not arrays.
63
- */
64
- export type DiscoverFilterExpression<T extends string | number = string | number> = T | `${T}` | string;
65
- type DiscoverBaseParams = {
66
- include_adult?: boolean;
67
- language?: Language;
68
- page?: number;
69
- sort_by?: string;
70
- "vote_average.gte"?: number;
71
- "vote_average.lte"?: number;
72
- "vote_count.gte"?: number;
73
- "vote_count.lte"?: number;
74
- with_companies?: DiscoverFilterExpression<number>;
75
- with_genres?: DiscoverFilterExpression<number>;
76
- with_keywords?: DiscoverFilterExpression<number>;
77
- with_origin_country?: CountryISO3166_1;
78
- with_original_language?: LanguageISO6391;
79
- with_watch_monetization_types?: DiscoverFilterExpression<WatchMonetizationType>;
80
- with_watch_providers?: DiscoverFilterExpression<number>;
81
- without_companies?: DiscoverFilterExpression<number>;
82
- without_genres?: DiscoverFilterExpression<number>;
83
- without_keywords?: DiscoverFilterExpression<number>;
84
- without_watch_providers?: DiscoverFilterExpression<number>;
85
- watch_region?: CountryISO3166_1;
86
- };
87
- /**
88
- * Query parameters supported by the movie discover endpoint.
89
- * @reference https://developer.themoviedb.org/reference/discover-movie
90
- */
91
- export type DiscoverMovieParams = Prettify<Omit<DiscoverBaseParams, "sort_by"> & {
92
- certification?: string;
93
- "certification.gte"?: string;
94
- "certification.lte"?: string;
95
- certification_country?: CountryISO3166_1;
96
- include_video?: boolean;
97
- "primary_release_date.gte"?: string;
98
- "primary_release_date.lte"?: string;
99
- primary_release_year?: number;
100
- region?: CountryISO3166_1;
101
- "release_date.gte"?: string;
102
- "release_date.lte"?: string;
103
- sort_by?: DiscoverMovieSortBy;
104
- with_cast?: DiscoverFilterExpression<number>;
105
- with_crew?: DiscoverFilterExpression<number>;
106
- with_people?: DiscoverFilterExpression<number>;
107
- with_release_type?: DiscoverFilterExpression<ReleaseType>;
108
- "with_runtime.gte"?: number;
109
- "with_runtime.lte"?: number;
110
- year?: number;
111
- }>;
112
- /**
113
- * Query parameters supported by the TV discover endpoint.
114
- * @reference https://developer.themoviedb.org/reference/discover-tv
115
- */
116
- export type DiscoverTVParams = Prettify<Omit<DiscoverBaseParams, "sort_by"> & {
117
- "air_date.gte"?: string;
118
- "air_date.lte"?: string;
119
- "first_air_date.gte"?: string;
120
- "first_air_date.lte"?: string;
121
- first_air_date_year?: number;
122
- include_null_first_air_dates?: boolean;
123
- sort_by?: DiscoverTVSortBy;
124
- screened_theatrically?: boolean;
125
- timezone?: LiteralUnion<string>;
126
- with_networks?: DiscoverFilterExpression<number>;
127
- with_status?: DiscoverFilterExpression<DiscoverTVStatus>;
128
- with_type?: DiscoverFilterExpression<DiscoverTVType>;
129
- }>;
130
- export {};
@@ -1,27 +0,0 @@
1
- /**
2
- * TV status values accepted by TMDB discover filters.
3
- * @reference https://developer.themoviedb.org/reference/discover-tv
4
- */
5
- export var DiscoverTVStatus;
6
- (function (DiscoverTVStatus) {
7
- DiscoverTVStatus[DiscoverTVStatus["ReturningSeries"] = 0] = "ReturningSeries";
8
- DiscoverTVStatus[DiscoverTVStatus["Planned"] = 1] = "Planned";
9
- DiscoverTVStatus[DiscoverTVStatus["InProduction"] = 2] = "InProduction";
10
- DiscoverTVStatus[DiscoverTVStatus["Ended"] = 3] = "Ended";
11
- DiscoverTVStatus[DiscoverTVStatus["Canceled"] = 4] = "Canceled";
12
- DiscoverTVStatus[DiscoverTVStatus["Pilot"] = 5] = "Pilot";
13
- })(DiscoverTVStatus || (DiscoverTVStatus = {}));
14
- /**
15
- * TV type values accepted by TMDB discover filters.
16
- * @reference https://developer.themoviedb.org/reference/discover-tv
17
- */
18
- export var DiscoverTVType;
19
- (function (DiscoverTVType) {
20
- DiscoverTVType[DiscoverTVType["Documentary"] = 0] = "Documentary";
21
- DiscoverTVType[DiscoverTVType["News"] = 1] = "News";
22
- DiscoverTVType[DiscoverTVType["Miniseries"] = 2] = "Miniseries";
23
- DiscoverTVType[DiscoverTVType["Reality"] = 3] = "Reality";
24
- DiscoverTVType[DiscoverTVType["Scripted"] = 4] = "Scripted";
25
- DiscoverTVType[DiscoverTVType["TalkShow"] = 5] = "TalkShow";
26
- DiscoverTVType[DiscoverTVType["Video"] = 6] = "Video";
27
- })(DiscoverTVType || (DiscoverTVType = {}));
@@ -1,8 +0,0 @@
1
- export declare enum ReleaseType {
2
- Premiere = 1,
3
- TheatricalLimited = 2,
4
- Theatrical = 3,
5
- Digital = 4,
6
- Physical = 5,
7
- TV = 6
8
- }
@@ -1,9 +0,0 @@
1
- export var ReleaseType;
2
- (function (ReleaseType) {
3
- ReleaseType[ReleaseType["Premiere"] = 1] = "Premiere";
4
- ReleaseType[ReleaseType["TheatricalLimited"] = 2] = "TheatricalLimited";
5
- ReleaseType[ReleaseType["Theatrical"] = 3] = "Theatrical";
6
- ReleaseType[ReleaseType["Digital"] = 4] = "Digital";
7
- ReleaseType[ReleaseType["Physical"] = 5] = "Physical";
8
- ReleaseType[ReleaseType["TV"] = 6] = "TV";
9
- })(ReleaseType || (ReleaseType = {}));
@@ -1,103 +0,0 @@
1
- import { CountryISO3166_1 } from "./config";
2
- import { Language } from "./config/languages";
3
- import { LiteralUnion } from "./utility";
4
- /**
5
- * External source values accepted by TMDB's find-by-id endpoint.
6
- * @reference https://developer.themoviedb.org/reference/find-by-id
7
- */
8
- export type FindExternalSource = LiteralUnion<"imdb_id" | "tvdb_id" | "freebase_mid" | "freebase_id" | "tvrage_id" | "facebook_id" | "instagram_id" | "twitter_id">;
9
- /**
10
- * Parameters for TMDB's find-by-id endpoint.
11
- * `external_id` is sent in the request path and `external_source` as a query param.
12
- */
13
- export type FindByIDParams = {
14
- external_id: string;
15
- external_source: FindExternalSource;
16
- language?: Language;
17
- };
18
- type FindMediaResultBase = {
19
- adult: boolean;
20
- backdrop_path: string | null;
21
- id: number;
22
- original_language: string;
23
- overview: string;
24
- poster_path: string | null;
25
- popularity: number;
26
- vote_average: number;
27
- vote_count: number;
28
- };
29
- /**
30
- * Movie item returned inside `movie_results`.
31
- */
32
- export type FindMovieResultItem = FindMediaResultBase & {
33
- media_type: "movie";
34
- original_title: string;
35
- release_date: string;
36
- title: string;
37
- video: boolean;
38
- };
39
- /**
40
- * Person item returned inside `person_results`.
41
- */
42
- export type FindPersonResultItem = {
43
- adult: boolean;
44
- gender: number | null;
45
- id: number;
46
- known_for_department: string;
47
- media_type: "person";
48
- name: string;
49
- original_name: string;
50
- popularity: number;
51
- profile_path: string | null;
52
- };
53
- /**
54
- * TV series item returned inside `tv_results`.
55
- */
56
- export type FindTVResultItem = FindMediaResultBase & {
57
- media_type: "tv";
58
- first_air_date: string;
59
- name: string;
60
- origin_country: CountryISO3166_1[];
61
- original_name: string;
62
- };
63
- /**
64
- * TV episode item returned inside `tv_episode_results`.
65
- */
66
- export type FindTVEpisodeResultItem = {
67
- air_date: string;
68
- episode_number: number;
69
- id: number;
70
- media_type: "tv_episode";
71
- name: string;
72
- overview: string;
73
- production_code: string;
74
- season_number: number;
75
- show_id: number;
76
- still_path: string | null;
77
- vote_average: number;
78
- vote_count: number;
79
- };
80
- /**
81
- * TV season item returned inside `tv_season_results`.
82
- */
83
- export type FindTVSeasonResultItem = {
84
- air_date: string;
85
- episode_count: number;
86
- id: number;
87
- media_type: "tv_season";
88
- name: string;
89
- overview: string;
90
- poster_path: string | null;
91
- season_number: number;
92
- };
93
- /**
94
- * Response returned by TMDB's find-by-id endpoint.
95
- */
96
- export type FindResults = {
97
- movie_results: FindMovieResultItem[];
98
- person_results: FindPersonResultItem[];
99
- tv_results: FindTVResultItem[];
100
- tv_episode_results: FindTVEpisodeResultItem[];
101
- tv_season_results: FindTVSeasonResultItem[];
102
- };
103
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- export * from "./common";
2
- export * from "./config";
3
- export * from "./discover";
4
- export * from "./trending";
5
- export * from "./movies";
6
- export * from "./search";
7
- export * from "./tv-series";
8
- export * from "./tv-seasons";
9
- export * from "./tv-episodes";
10
- export * from "./utility";
11
- export * from "./collections";
12
- export * from "./companies";
13
- export * from "./networks";
14
- export * from "./tv-episode-groups";
15
- export * from "./find";
16
- export * from "./watch-providers";
17
- export * from "./keywords";
18
- export * from "./credits";
19
- export * from "./reviews";
20
- export * from "./people-lists";
21
- export * from "./people";
@@ -1,21 +0,0 @@
1
- export * from "./common";
2
- export * from "./config";
3
- export * from "./discover";
4
- export * from "./trending";
5
- export * from "./movies";
6
- export * from "./search";
7
- export * from "./tv-series";
8
- export * from "./tv-seasons";
9
- export * from "./tv-episodes";
10
- export * from "./utility";
11
- export * from "./collections";
12
- export * from "./companies";
13
- export * from "./networks";
14
- export * from "./tv-episode-groups";
15
- export * from "./find";
16
- export * from "./watch-providers";
17
- export * from "./keywords";
18
- export * from "./credits";
19
- export * from "./reviews";
20
- export * from "./people-lists";
21
- export * from "./people";
@@ -1,19 +0,0 @@
1
- import { TMDBQueryParams } from "./common";
2
- /**
3
- * Base params used by keyword endpoints.
4
- */
5
- export type KeywordBaseParam = {
6
- /** TMDB keyword identifier. */
7
- keyword_id: number;
8
- };
9
- /**
10
- * Parameters for fetching keyword details.
11
- */
12
- export type KeywordDetailsParams = KeywordBaseParam;
13
- /**
14
- * Parameters for fetching movies associated with a keyword.
15
- * @reference https://developer.themoviedb.org/reference/keyword-movies
16
- */
17
- export type KeywordMoviesParams = KeywordBaseParam & Pick<TMDBQueryParams, "language" | "page"> & {
18
- include_adult?: boolean;
19
- };
@@ -1 +0,0 @@
1
- export {};