@lorenzopant/tmdb 1.13.0 → 1.13.1

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 (247) hide show
  1. package/dist/endpoints/collections.d.ts +1 -1
  2. package/dist/endpoints/collections.d.ts.map +1 -1
  3. package/dist/endpoints/companies.d.ts +1 -1
  4. package/dist/endpoints/companies.d.ts.map +1 -1
  5. package/dist/endpoints/credits.d.ts +1 -1
  6. package/dist/endpoints/credits.d.ts.map +1 -1
  7. package/dist/endpoints/movies.d.ts +2 -3
  8. package/dist/endpoints/movies.d.ts.map +1 -1
  9. package/dist/endpoints/networks.d.ts +2 -1
  10. package/dist/endpoints/networks.d.ts.map +1 -1
  11. package/dist/endpoints/search.d.ts +1 -6
  12. package/dist/endpoints/search.d.ts.map +1 -1
  13. package/dist/endpoints/tv_episode_groups.d.ts +1 -1
  14. package/dist/endpoints/tv_episode_groups.d.ts.map +1 -1
  15. package/dist/endpoints/tv_episodes.d.ts +1 -8
  16. package/dist/endpoints/tv_episodes.d.ts.map +1 -1
  17. package/dist/endpoints/tv_series.d.ts +1 -8
  18. package/dist/endpoints/tv_series.d.ts.map +1 -1
  19. package/dist/endpoints/tv_series_lists.d.ts +1 -1
  20. package/dist/endpoints/tv_series_lists.d.ts.map +1 -1
  21. package/dist/types/{other/collections.d.ts → collections.d.ts} +4 -4
  22. package/dist/types/collections.d.ts.map +1 -0
  23. package/dist/types/common/media.d.ts +1 -1
  24. package/dist/types/{other/companies.d.ts → companies.d.ts} +4 -4
  25. package/dist/types/companies.d.ts.map +1 -0
  26. package/dist/types/{other/credits.d.ts → credits.d.ts} +2 -2
  27. package/dist/types/credits.d.ts.map +1 -0
  28. package/dist/types/discover.d.ts +131 -0
  29. package/dist/types/discover.d.ts.map +1 -0
  30. package/dist/types/{other/find.d.ts → find.d.ts} +3 -3
  31. package/dist/types/find.d.ts.map +1 -0
  32. package/dist/types/index.d.ts +10 -3
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/index.js +10 -3
  35. package/dist/types/{other/keywords.d.ts → keywords.d.ts} +1 -1
  36. package/dist/types/keywords.d.ts.map +1 -0
  37. package/dist/types/movies.d.ts +305 -0
  38. package/dist/types/movies.d.ts.map +1 -0
  39. package/dist/types/{other/networks.d.ts → networks.d.ts} +2 -2
  40. package/dist/types/networks.d.ts.map +1 -0
  41. package/dist/types/search.d.ts +167 -0
  42. package/dist/types/search.d.ts.map +1 -0
  43. package/dist/types/{other/tv_episode_groups.d.ts → tv-episode-groups.d.ts} +2 -2
  44. package/dist/types/tv-episode-groups.d.ts.map +1 -0
  45. package/dist/types/{tv-episodes/tv_episodes.d.ts → tv-episodes.d.ts} +44 -7
  46. package/dist/types/tv-episodes.d.ts.map +1 -0
  47. package/dist/types/{tv-seasons/params.d.ts → tv-seasons.d.ts} +2 -2
  48. package/dist/types/tv-seasons.d.ts.map +1 -0
  49. package/dist/types/tv-series.d.ts +446 -0
  50. package/dist/types/tv-series.d.ts.map +1 -0
  51. package/dist/types/{other/watch_providers.d.ts → watch-providers.d.ts} +5 -5
  52. package/dist/types/watch-providers.d.ts.map +1 -0
  53. package/package.json +1 -1
  54. package/dist/types/discover/index.d.ts +0 -4
  55. package/dist/types/discover/index.d.ts.map +0 -1
  56. package/dist/types/discover/index.js +0 -3
  57. package/dist/types/discover/movie.d.ts +0 -6
  58. package/dist/types/discover/movie.d.ts.map +0 -1
  59. package/dist/types/discover/params.d.ts +0 -81
  60. package/dist/types/discover/params.d.ts.map +0 -1
  61. package/dist/types/discover/tv.d.ts +0 -50
  62. package/dist/types/discover/tv.d.ts.map +0 -1
  63. package/dist/types/movies/alternative_titles.d.ts +0 -11
  64. package/dist/types/movies/alternative_titles.d.ts.map +0 -1
  65. package/dist/types/movies/changes.d.ts +0 -3
  66. package/dist/types/movies/changes.d.ts.map +0 -1
  67. package/dist/types/movies/credits.d.ts +0 -13
  68. package/dist/types/movies/credits.d.ts.map +0 -1
  69. package/dist/types/movies/external_ids.d.ts +0 -16
  70. package/dist/types/movies/external_ids.d.ts.map +0 -1
  71. package/dist/types/movies/images.d.ts +0 -6
  72. package/dist/types/movies/images.d.ts.map +0 -1
  73. package/dist/types/movies/index.d.ts +0 -15
  74. package/dist/types/movies/index.d.ts.map +0 -1
  75. package/dist/types/movies/index.js +0 -14
  76. package/dist/types/movies/keywords.d.ts +0 -11
  77. package/dist/types/movies/keywords.d.ts.map +0 -1
  78. package/dist/types/movies/movie.d.ts +0 -106
  79. package/dist/types/movies/movie.d.ts.map +0 -1
  80. package/dist/types/movies/movie.js +0 -1
  81. package/dist/types/movies/params.d.ts +0 -94
  82. package/dist/types/movies/params.d.ts.map +0 -1
  83. package/dist/types/movies/params.js +0 -1
  84. package/dist/types/movies/recommendations.d.ts +0 -7
  85. package/dist/types/movies/recommendations.d.ts.map +0 -1
  86. package/dist/types/movies/recommendations.js +0 -1
  87. package/dist/types/movies/release_dates.d.ts +0 -37
  88. package/dist/types/movies/release_dates.d.ts.map +0 -1
  89. package/dist/types/movies/release_dates.js +0 -1
  90. package/dist/types/movies/reviews.d.ts +0 -6
  91. package/dist/types/movies/reviews.d.ts.map +0 -1
  92. package/dist/types/movies/reviews.js +0 -1
  93. package/dist/types/movies/similar.d.ts +0 -7
  94. package/dist/types/movies/similar.d.ts.map +0 -1
  95. package/dist/types/movies/similar.js +0 -1
  96. package/dist/types/movies/translations.d.ts +0 -21
  97. package/dist/types/movies/translations.d.ts.map +0 -1
  98. package/dist/types/movies/translations.js +0 -1
  99. package/dist/types/movies/videos.d.ts +0 -6
  100. package/dist/types/movies/videos.d.ts.map +0 -1
  101. package/dist/types/movies/videos.js +0 -1
  102. package/dist/types/other/collections.d.ts.map +0 -1
  103. package/dist/types/other/companies.d.ts.map +0 -1
  104. package/dist/types/other/credits.d.ts.map +0 -1
  105. package/dist/types/other/credits.js +0 -1
  106. package/dist/types/other/find.d.ts.map +0 -1
  107. package/dist/types/other/index.d.ts +0 -9
  108. package/dist/types/other/index.d.ts.map +0 -1
  109. package/dist/types/other/index.js +0 -8
  110. package/dist/types/other/keywords.d.ts.map +0 -1
  111. package/dist/types/other/keywords.js +0 -1
  112. package/dist/types/other/networks.d.ts.map +0 -1
  113. package/dist/types/other/tv_episode_groups.d.ts.map +0 -1
  114. package/dist/types/other/watch_providers.d.ts.map +0 -1
  115. package/dist/types/other/watch_providers.js +0 -1
  116. package/dist/types/search/collection.d.ts +0 -22
  117. package/dist/types/search/collection.d.ts.map +0 -1
  118. package/dist/types/search/collection.js +0 -1
  119. package/dist/types/search/company.d.ts +0 -15
  120. package/dist/types/search/company.d.ts.map +0 -1
  121. package/dist/types/search/company.js +0 -1
  122. package/dist/types/search/index.d.ts +0 -7
  123. package/dist/types/search/index.d.ts.map +0 -1
  124. package/dist/types/search/index.js +0 -6
  125. package/dist/types/search/keyword.d.ts +0 -6
  126. package/dist/types/search/keyword.d.ts.map +0 -1
  127. package/dist/types/search/keyword.js +0 -1
  128. package/dist/types/search/movie.d.ts +0 -34
  129. package/dist/types/search/movie.d.ts.map +0 -1
  130. package/dist/types/search/movie.js +0 -1
  131. package/dist/types/search/multi.d.ts +0 -1
  132. package/dist/types/search/multi.d.ts.map +0 -1
  133. package/dist/types/search/multi.js +0 -1
  134. package/dist/types/search/params.d.ts +0 -37
  135. package/dist/types/search/params.d.ts.map +0 -1
  136. package/dist/types/search/params.js +0 -1
  137. package/dist/types/search/person.d.ts +0 -13
  138. package/dist/types/search/person.d.ts.map +0 -1
  139. package/dist/types/search/person.js +0 -1
  140. package/dist/types/search/tv.d.ts +0 -39
  141. package/dist/types/search/tv.d.ts.map +0 -1
  142. package/dist/types/search/tv.js +0 -1
  143. package/dist/types/tv/aggregate_credits.d.ts +0 -58
  144. package/dist/types/tv/aggregate_credits.d.ts.map +0 -1
  145. package/dist/types/tv/aggregate_credits.js +0 -1
  146. package/dist/types/tv/alternative_titles.d.ts +0 -11
  147. package/dist/types/tv/alternative_titles.d.ts.map +0 -1
  148. package/dist/types/tv/alternative_titles.js +0 -1
  149. package/dist/types/tv/changes.d.ts +0 -3
  150. package/dist/types/tv/changes.d.ts.map +0 -1
  151. package/dist/types/tv/changes.js +0 -1
  152. package/dist/types/tv/content_ratings.d.ts +0 -5
  153. package/dist/types/tv/content_ratings.d.ts.map +0 -1
  154. package/dist/types/tv/content_ratings.js +0 -1
  155. package/dist/types/tv/credits.d.ts +0 -15
  156. package/dist/types/tv/credits.d.ts.map +0 -1
  157. package/dist/types/tv/credits.js +0 -1
  158. package/dist/types/tv/episode_groups.d.ts +0 -30
  159. package/dist/types/tv/episode_groups.d.ts.map +0 -1
  160. package/dist/types/tv/episode_groups.js +0 -1
  161. package/dist/types/tv/episodes.d.ts +0 -27
  162. package/dist/types/tv/episodes.d.ts.map +0 -1
  163. package/dist/types/tv/episodes.js +0 -1
  164. package/dist/types/tv/external_ids.d.ts +0 -26
  165. package/dist/types/tv/external_ids.d.ts.map +0 -1
  166. package/dist/types/tv/external_ids.js +0 -1
  167. package/dist/types/tv/images.d.ts +0 -15
  168. package/dist/types/tv/images.d.ts.map +0 -1
  169. package/dist/types/tv/images.js +0 -1
  170. package/dist/types/tv/index.d.ts +0 -21
  171. package/dist/types/tv/index.d.ts.map +0 -1
  172. package/dist/types/tv/index.js +0 -20
  173. package/dist/types/tv/keywords.d.ts +0 -11
  174. package/dist/types/tv/keywords.d.ts.map +0 -1
  175. package/dist/types/tv/keywords.js +0 -1
  176. package/dist/types/tv/lists.d.ts +0 -32
  177. package/dist/types/tv/lists.d.ts.map +0 -1
  178. package/dist/types/tv/lists.js +0 -1
  179. package/dist/types/tv/params.d.ts +0 -74
  180. package/dist/types/tv/params.d.ts.map +0 -1
  181. package/dist/types/tv/params.js +0 -1
  182. package/dist/types/tv/recommendations.d.ts +0 -5
  183. package/dist/types/tv/recommendations.d.ts.map +0 -1
  184. package/dist/types/tv/recommendations.js +0 -1
  185. package/dist/types/tv/reviews.d.ts +0 -6
  186. package/dist/types/tv/reviews.d.ts.map +0 -1
  187. package/dist/types/tv/reviews.js +0 -1
  188. package/dist/types/tv/screened_theatrically.d.ts +0 -21
  189. package/dist/types/tv/screened_theatrically.d.ts.map +0 -1
  190. package/dist/types/tv/screened_theatrically.js +0 -1
  191. package/dist/types/tv/seasons.d.ts +0 -17
  192. package/dist/types/tv/seasons.d.ts.map +0 -1
  193. package/dist/types/tv/seasons.js +0 -1
  194. package/dist/types/tv/similar.d.ts +0 -5
  195. package/dist/types/tv/similar.d.ts.map +0 -1
  196. package/dist/types/tv/similar.js +0 -1
  197. package/dist/types/tv/translations.d.ts +0 -20
  198. package/dist/types/tv/translations.d.ts.map +0 -1
  199. package/dist/types/tv/translations.js +0 -1
  200. package/dist/types/tv/tv_series.d.ts +0 -104
  201. package/dist/types/tv/tv_series.d.ts.map +0 -1
  202. package/dist/types/tv/tv_series.js +0 -1
  203. package/dist/types/tv/videos.d.ts +0 -9
  204. package/dist/types/tv/videos.d.ts.map +0 -1
  205. package/dist/types/tv/videos.js +0 -1
  206. package/dist/types/tv-episodes/credits.d.ts +0 -8
  207. package/dist/types/tv-episodes/credits.d.ts.map +0 -1
  208. package/dist/types/tv-episodes/credits.js +0 -1
  209. package/dist/types/tv-episodes/external_ids.d.ts +0 -3
  210. package/dist/types/tv-episodes/external_ids.d.ts.map +0 -1
  211. package/dist/types/tv-episodes/external_ids.js +0 -1
  212. package/dist/types/tv-episodes/images.d.ts +0 -3
  213. package/dist/types/tv-episodes/images.d.ts.map +0 -1
  214. package/dist/types/tv-episodes/images.js +0 -1
  215. package/dist/types/tv-episodes/index.d.ts +0 -4
  216. package/dist/types/tv-episodes/index.d.ts.map +0 -1
  217. package/dist/types/tv-episodes/index.js +0 -3
  218. package/dist/types/tv-episodes/params.d.ts +0 -30
  219. package/dist/types/tv-episodes/params.d.ts.map +0 -1
  220. package/dist/types/tv-episodes/params.js +0 -1
  221. package/dist/types/tv-episodes/translations.d.ts +0 -7
  222. package/dist/types/tv-episodes/translations.d.ts.map +0 -1
  223. package/dist/types/tv-episodes/translations.js +0 -1
  224. package/dist/types/tv-episodes/tv_episodes.d.ts.map +0 -1
  225. package/dist/types/tv-episodes/tv_episodes.js +0 -1
  226. package/dist/types/tv-episodes/videos.d.ts +0 -3
  227. package/dist/types/tv-episodes/videos.d.ts.map +0 -1
  228. package/dist/types/tv-episodes/videos.js +0 -1
  229. package/dist/types/tv-seasons/params.d.ts.map +0 -1
  230. package/dist/types/tv-seasons/params.js +0 -1
  231. package/dist/types/tv-seasons/tv-season.d.ts +0 -1
  232. package/dist/types/tv-seasons/tv-season.d.ts.map +0 -1
  233. package/dist/types/tv-seasons/tv-season.js +0 -1
  234. /package/dist/types/{other/collections.js → collections.js} +0 -0
  235. /package/dist/types/{other/companies.js → companies.js} +0 -0
  236. /package/dist/types/{movies/credits.js → credits.js} +0 -0
  237. /package/dist/types/{discover/tv.js → discover.js} +0 -0
  238. /package/dist/types/{other/find.js → find.js} +0 -0
  239. /package/dist/types/{movies/keywords.js → keywords.js} +0 -0
  240. /package/dist/types/{discover/movie.js → movies.js} +0 -0
  241. /package/dist/types/{other/networks.js → networks.js} +0 -0
  242. /package/dist/types/{discover/params.js → search.js} +0 -0
  243. /package/dist/types/{other/tv_episode_groups.js → tv-episode-groups.js} +0 -0
  244. /package/dist/types/{movies/alternative_titles.js → tv-episodes.js} +0 -0
  245. /package/dist/types/{movies/changes.js → tv-seasons.js} +0 -0
  246. /package/dist/types/{movies/external_ids.js → tv-series.js} +0 -0
  247. /package/dist/types/{movies/images.js → watch-providers.js} +0 -0
@@ -0,0 +1,305 @@
1
+ import { AlternativeTitle, Cast, Changes, Crew, DateRange, Genre, ImageItem, ImagesResult, Keyword, MovieCollection, PaginatedResponse, ProductionCompany, ProductionCountry, Review, SpokenLanguage, TMDBQueryParams, TranslationResults, VideoResults, WithLanguagePage, WithParams } from "./common";
2
+ import { CountryISO3166_1, Language, LanguageISO6391 } from "./config";
3
+ import { ReleaseType } from "./enums";
4
+ import { MovieResultItem } from "./search";
5
+ import { Prettify } from "./utility";
6
+ /**
7
+ * Complete movie details with metadata, production info, and statistics
8
+ */
9
+ export type MovieDetails = {
10
+ /** Whether the movie is marked as adult content */
11
+ adult: boolean;
12
+ /** Path to backdrop image, null if not available */
13
+ backdrop_path: string | null;
14
+ /** Collection the movie belongs to (e.g., "The Lord of the Rings Collection"), null if standalone */
15
+ belongs_to_collection: MovieCollection | null;
16
+ /** Production budget in US dollars */
17
+ budget: number;
18
+ /** Array of genres associated with the movie */
19
+ genres: Genre[];
20
+ /** Official homepage URL, null if not available */
21
+ homepage: string | null;
22
+ /** Unique movie identifier in TMDB */
23
+ id: number;
24
+ /** IMDb identifier (e.g., "tt0133093"), null if not linked */
25
+ imdb_id: string | null;
26
+ /** Array of origin country codes (ISO 3166-1) */
27
+ origin_country: string[];
28
+ /** Original language of the movie (ISO 639-1 code) */
29
+ original_language: string;
30
+ /** Original title in the original language */
31
+ original_title: string;
32
+ /** Plot synopsis/overview, null if not available */
33
+ overview: string | null;
34
+ /** Popularity score calculated by TMDB */
35
+ popularity: number;
36
+ /** Path to poster image, null if not available */
37
+ poster_path: string | null;
38
+ /** Array of companies that produced the movie */
39
+ production_companies: ProductionCompany[];
40
+ /** Array of countries where the movie was produced */
41
+ production_countries: ProductionCountry[];
42
+ /** Release date in ISO 8601 format (YYYY-MM-DD) */
43
+ release_date: string;
44
+ /** Box office revenue in US dollars */
45
+ revenue: number;
46
+ /** Runtime in minutes, null if not set */
47
+ runtime: number | null;
48
+ /** Array of languages spoken in the movie */
49
+ spoken_languages: SpokenLanguage[];
50
+ /** Release status (e.g., "Released", "Post Production", "In Production") */
51
+ status: string;
52
+ /** Movie tagline/slogan, null if not available */
53
+ tagline: string | null;
54
+ /** Movie title (localized if language parameter was provided) */
55
+ title: string;
56
+ /** Whether a video is available on TMDB */
57
+ video: boolean;
58
+ /** Average user rating (0-10 scale) */
59
+ vote_average: number;
60
+ /** Total number of votes received */
61
+ vote_count: number;
62
+ };
63
+ /**
64
+ * Available endpoints that can be appended to movie details requests
65
+ */
66
+ export type MovieAppendToResponseNamespace = "alternative_titles" | "changes" | "credits" | "external_ids" | "images" | "keywords" | "recommendations" | "release_dates" | "reviews" | "similar" | "translations" | "videos";
67
+ /**
68
+ * Mapping of append-to-response keys to their return types
69
+ */
70
+ export type MovieAppendableMap = {
71
+ alternative_titles: MovieAlternativeTitles;
72
+ changes: MovieChanges;
73
+ credits: MovieCredits;
74
+ external_ids: MovieExternalIDs;
75
+ images: MovieImages;
76
+ keywords: MovieKeywords;
77
+ recommendations: MovieRecommendations;
78
+ release_dates: MovieReleaseDates;
79
+ reviews: MovieReviews;
80
+ similar: MovieSimilar;
81
+ translations: MovieTranslations;
82
+ videos: MovieVideos;
83
+ };
84
+ /**
85
+ * Movie details with additional appended data
86
+ * @template T - Array of namespace strings to append
87
+ * @example
88
+ * ```typescript
89
+ * // Get movie details with credits and videos
90
+ * const movie: MovieDetailsWithAppends<['credits', 'videos']> = await getMovie(550, {
91
+ * append_to_response: ['credits','videos']
92
+ * });
93
+ * ```
94
+ */
95
+ export type MovieDetailsWithAppends<T extends readonly MovieAppendToResponseNamespace[]> = MovieDetails & {
96
+ [K in T[number]]: MovieAppendableMap[K];
97
+ };
98
+ /**
99
+ * Alternative titles for a movie in different countries/languages
100
+ */
101
+ export type MovieAlternativeTitles = {
102
+ /** Movie identifier */
103
+ id: number;
104
+ /** Array of alternative titles */
105
+ titles: AlternativeTitle[];
106
+ };
107
+ export type MovieChanges = Changes;
108
+ /**
109
+ * Cast and crew credits for a movie
110
+ */
111
+ export type MovieCredits = {
112
+ /** Movie identifier */
113
+ id: number;
114
+ /** Array of cast members (actors) */
115
+ cast: Cast[];
116
+ /** Array of crew members (directors, writers, etc.) */
117
+ crew: Crew[];
118
+ };
119
+ /**
120
+ * External platform identifiers for a movie
121
+ */
122
+ export type MovieExternalIDs = {
123
+ /** Movie identifier in TMDB */
124
+ id: number;
125
+ /** IMDb identifier (e.g., "tt0133093"), null if not available */
126
+ imdb_id?: string | null;
127
+ /** Facebook page identifier, null if not available */
128
+ facebook_id?: string | null;
129
+ /** Twitter/X handle, null if not available */
130
+ twitter_id?: string | null;
131
+ /** Instagram handle, null if not available */
132
+ instagram_id?: string | null;
133
+ };
134
+ /**
135
+ * Collection of movie images (backdrops, logos, posters)
136
+ */
137
+ export type MovieImages = ImagesResult<ImageItem, "backdrops" | "logos" | "posters">;
138
+ /**
139
+ * Keywords/tags associated with a movie
140
+ */
141
+ export type MovieKeywords = {
142
+ /** Movie identifier */
143
+ id: number;
144
+ /** Array of keyword objects */
145
+ keywords: Keyword[];
146
+ };
147
+ /**
148
+ * Paginated list of recommended movies based on this movie
149
+ */
150
+ export type MovieRecommendations = PaginatedResponse<MovieResultItem>;
151
+ /**
152
+ * Release dates and certifications across different countries
153
+ */
154
+ export type MovieReleaseDates = {
155
+ /** Movie identifier */
156
+ id: number;
157
+ /** Array of release date results grouped by country */
158
+ results: MovieReleaseDateResult[];
159
+ };
160
+ /**
161
+ * Release dates for a specific country
162
+ */
163
+ export type MovieReleaseDateResult = {
164
+ /** ISO 3166-1 country code */
165
+ iso_3166_1: string;
166
+ /** Array of release dates (movies can have multiple releases per country) */
167
+ release_dates: MovieReleaseDate[];
168
+ };
169
+ /**
170
+ * Individual release date entry with certification
171
+ */
172
+ export type MovieReleaseDate = {
173
+ /** Age certification/rating (e.g., "PG-13", "R", "12A") */
174
+ certification: string;
175
+ /** ISO 639-1 language code */
176
+ iso_639_1: string;
177
+ /** Release date and time in ISO 8601 format */
178
+ release_date: string;
179
+ /** Type of release (1=Premiere, 2=Theatrical (limited), 3=Theatrical, 4=Digital, 5=Physical, 6=TV) */
180
+ type: ReleaseType | number;
181
+ /** Additional notes about this release */
182
+ note: string;
183
+ /** Content descriptors (currently unused by TMDB) */
184
+ descriptors: unknown[];
185
+ };
186
+ /**
187
+ * Paginated list of user reviews for a movie
188
+ */
189
+ export type MovieReviews = PaginatedResponse<Review>;
190
+ /**
191
+ * Paginated list of movies similar to this movie
192
+ */
193
+ export type MovieSimilar = PaginatedResponse<MovieResultItem>;
194
+ /**
195
+ * Movie translations containing all available language versions
196
+ */
197
+ export type MovieTranslations = TranslationResults<MovieTranslationData>;
198
+ /**
199
+ * Translation data for a specific language
200
+ */
201
+ export type MovieTranslationData = {
202
+ /** Translated homepage URL */
203
+ homepage?: string;
204
+ /** Translated synopsis/overview */
205
+ overview?: string;
206
+ /** Movie runtime in minutes */
207
+ runtime?: number;
208
+ /** Translated tagline */
209
+ tagline?: string;
210
+ /** Translated movie title */
211
+ title?: string;
212
+ };
213
+ /**
214
+ * Collection of videos (trailers, teasers, clips) for a movie
215
+ */
216
+ export type MovieVideos = VideoResults;
217
+ /**
218
+ * Parameters for movie list endpoints (popular, top rated, now playing, upcoming).
219
+ */
220
+ export type MovieListParams = TMDBQueryParams;
221
+ /**
222
+ * Almost every query within the Movie domain
223
+ * will take this required param to identify the movie.
224
+ */
225
+ type MovieBaseParam = {
226
+ movie_id: number;
227
+ };
228
+ /**
229
+ * Parameters for fetching movie details with optional additional data appended.
230
+ */
231
+ export type MovieDetailsParams = Prettify<MovieBaseParam & {
232
+ append_to_response?: MovieAppendToResponseNamespace | MovieAppendToResponseNamespace[];
233
+ } & WithParams<"language">>;
234
+ /**
235
+ * Parameters for fetching alternative titles for a movie.
236
+ */
237
+ export type MovieAlternativeTitlesParams = Prettify<MovieBaseParam & {
238
+ country?: CountryISO3166_1;
239
+ }>;
240
+ /**
241
+ * Parameters for fetching movie credits (cast and crew).
242
+ */
243
+ export type MovieCreditsParams = Prettify<MovieBaseParam & WithParams<"language">>;
244
+ /**
245
+ * Parameters for fetching movie keywords.
246
+ */
247
+ export type MovieKeywordsParams = MovieBaseParam;
248
+ /**
249
+ * Parameters for fetching external IDs (IMDb, Facebook, Twitter, Instagram).
250
+ */
251
+ export type MovieExternalIDsParams = MovieBaseParam;
252
+ /**
253
+ * Parameters for fetching release dates and certifications.
254
+ */
255
+ export type MovieReleaseDatesParams = MovieBaseParam;
256
+ /**
257
+ * Parameters for fetching movie translations.
258
+ */
259
+ export type MovieTranslationsParams = MovieBaseParam;
260
+ /**
261
+ * Parameters for fetching watch provider availability.
262
+ */
263
+ export type MovieWatchProvidersParams = MovieBaseParam;
264
+ /**
265
+ * Parameters for fetching movie change history.
266
+ */
267
+ export type MovieChangesParams = Prettify<MovieBaseParam & WithParams<"page"> & DateRange>;
268
+ /**
269
+ * Parameters for fetching movie images (backdrops, logos, posters).
270
+ *
271
+ * Note: language and include_image_language params still only support
272
+ * ISO-639-1 language definition according to TMDB docs:
273
+ *
274
+ * "These are all specified as IETF tags to identify the languages we use on TMDB.
275
+ * There is one exception which is image languages.
276
+ * They are currently only designated by a ISO-639-1 tag. This is a planned upgrade for the future."
277
+ * https://developer.themoviedb.org/reference/configuration-primary-translations
278
+ *
279
+ * However, in practice, language in format "en-US" is still accepted.
280
+ * So we allow for both formats.
281
+ */
282
+ export type MovieImagesParams = Prettify<MovieBaseParam & {
283
+ /** Language for image metadata (supports both ISO-639-1 and full Language format) */
284
+ language?: Language | LanguageISO6391;
285
+ /** Include images with specific language tags (comma-separated, e.g., "en,null") */
286
+ include_image_language?: Language | LanguageISO6391;
287
+ }>;
288
+ /**
289
+ * Parameters for fetching movie recommendations.
290
+ */
291
+ export type MovieRecommendationsParams = Prettify<MovieBaseParam & WithLanguagePage>;
292
+ /**
293
+ * Parameters for fetching similar movies.
294
+ */
295
+ export type MovieSimilarParams = MovieRecommendationsParams;
296
+ /**
297
+ * Parameters for fetching movie videos (trailers, teasers, clips).
298
+ */
299
+ export type MovieVideosParams = Prettify<MovieBaseParam & WithParams<"language">>;
300
+ /**
301
+ * Parameters for fetching movie reviews.
302
+ */
303
+ export type MovieReviewsParams = Prettify<MovieBaseParam & WithLanguagePage>;
304
+ export {};
305
+ //# sourceMappingURL=movies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../src/types/movies.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,I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e,CAAC;CACpD,CACD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC,cAAc,GAAG,gBAAgB,CAAC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,cAAc,GAAG,gBAAgB,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ImagesResult, OrganizationImage } from "../common/images";
2
- import { CountryISO3166_1 } from "../config/countries";
1
+ import { ImagesResult, OrganizationImage } from "./common";
2
+ import { CountryISO3166_1 } from "./config";
3
3
  /**
4
4
  * Represents a network entry as returned in search results or list responses.
5
5
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/types/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,cAAc,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG;IACnC,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,167 @@
1
+ import { Keyword, KnownForItem } from "./common";
2
+ import { CountryISO3166_1, Language } from "./config";
3
+ /**
4
+ * Collection information in search results
5
+ */
6
+ export type CollectionResultItem = {
7
+ /** Whether the collection contains adult content */
8
+ adult: boolean;
9
+ /** Path to backdrop image */
10
+ backdrop_path: string;
11
+ /** Unique collection identifier */
12
+ id: number;
13
+ /** Collection name (localized) */
14
+ name: string;
15
+ /** Original collection name in the original language */
16
+ original_name: string;
17
+ /** Original language of the collection (ISO 639-1 code) */
18
+ original_language: string;
19
+ /** Collection overview/description */
20
+ overview: string;
21
+ /** Path to poster image */
22
+ poster_path?: string | null;
23
+ };
24
+ /**
25
+ * Company information in search results
26
+ */
27
+ export type CompanyResultItem = {
28
+ /** Unique company identifier */
29
+ id: number;
30
+ /** Path to company logo image */
31
+ logo_path?: string | null;
32
+ /** Company name */
33
+ name: string;
34
+ /** ISO 3166-1 country code of company's origin */
35
+ origin_country: CountryISO3166_1;
36
+ };
37
+ /**
38
+ * Keyword information in search results
39
+ */
40
+ export type KeywordResultItem = Keyword;
41
+ /**
42
+ * Person information in search results
43
+ */
44
+ export type PersonResultItem = {
45
+ /** Whether the person is flagged as adult content creator */
46
+ adult: boolean;
47
+ /** Gender code: 0 = Not specified, 1 = Female, 2 = Male, 3 = Non-binary */
48
+ gender: number;
49
+ /** Unique person identifier */
50
+ id: number;
51
+ /** Primary department the person is known for (e.g. "Acting", "Directing") */
52
+ known_for_department: string;
53
+ /** Localized display name */
54
+ name: string;
55
+ /** Original name, typically in the person's native language */
56
+ original_name: string;
57
+ /** TMDB popularity score based on views, votes, and activity */
58
+ popularity: number;
59
+ /** Path to person's profile image */
60
+ profile_path?: string | null;
61
+ /** List of notable movies or TV shows the person is known for */
62
+ known_for: KnownForItem[];
63
+ };
64
+ /**
65
+ * A single TV series result as returned by TMDB APIs.
66
+ *
67
+ * Contains identifiers, localized and original titles, image path references,
68
+ * release and origin information, genre ids, and popularity/vote statistics.
69
+ * It is a partial representation of the TVDetails type.
70
+ */
71
+ export type TVSeriesResultItem = {
72
+ /** Relative path to the backdrop image for the series (nullable on some responses). */
73
+ backdrop_path?: string | null;
74
+ /** First air date of the series (YYYY-MM-DD). */
75
+ first_air_date: string;
76
+ /** Array of genre ids associated with the series. */
77
+ genre_ids: number[];
78
+ /** Unique TMDB id for the series. */
79
+ id: number;
80
+ /** Series name (localized). */
81
+ name: string;
82
+ /** Origin country codes for the series (ISO 3166-1). */
83
+ origin_country: CountryISO3166_1[];
84
+ /** Original language code (ISO 639-1). */
85
+ original_language: string;
86
+ /** Brief synopsis/overview of the series. */
87
+ overview: string;
88
+ /** Popularity score as returned by TMDB. */
89
+ popularity: number;
90
+ /** Relative path to the poster image for the series (nullable on some responses). */
91
+ poster_path?: string | null;
92
+ /** Average vote score for the series. */
93
+ vote_average: number;
94
+ /** Total number of votes the series has received. */
95
+ vote_count: number;
96
+ /** Original (non-localized) title of the series. */
97
+ original_name: string;
98
+ };
99
+ /**
100
+ * Simplified movie information used in lists and search results
101
+ */
102
+ export type MovieResultItem = {
103
+ /** Path to backdrop image */
104
+ backdrop_path?: string | null;
105
+ /** Unique movie identifier */
106
+ id: number;
107
+ /** Movie title (localized) */
108
+ title: string;
109
+ /** Original title in the original language */
110
+ original_title: string;
111
+ /** Plot synopsis/overview */
112
+ overview: string;
113
+ /** Path to poster image */
114
+ poster_path?: string | null;
115
+ /** Whether the movie is marked as adult content */
116
+ adult: boolean;
117
+ /** Original language of the movie (ISO 639-1 code) */
118
+ original_language: string;
119
+ /** Array of genre IDs (use /genre/movie/list to map to names) */
120
+ genre_ids: number[];
121
+ /** Popularity score calculated by TMDB */
122
+ popularity: number;
123
+ /** Release date in ISO 8601 format (YYYY-MM-DD) */
124
+ release_date: string;
125
+ /** Whether a video is available on TMDB */
126
+ video: boolean;
127
+ /** Average user rating (0-10 scale) */
128
+ vote_average: number;
129
+ /** Total number of votes received */
130
+ vote_count: number;
131
+ };
132
+ /**
133
+ * Parameters for searching movies
134
+ */
135
+ export type SearchMoviesParams = {
136
+ /** Search query text */
137
+ query: string;
138
+ /** Include adult (18+) content in results (default: false) */
139
+ include_adult?: boolean;
140
+ /** ISO 639-1 language code with optional region (e.g., "en-US") */
141
+ language?: Language;
142
+ /** Page number for paginated results (default: 1) */
143
+ page?: number;
144
+ /** Filter results by primary release year (YYYY format) */
145
+ primary_release_year?: string;
146
+ /** ISO 3166-1 country code to filter results by region */
147
+ region?: CountryISO3166_1;
148
+ /** Filter results by any release year (YYYY format) */
149
+ year?: string;
150
+ };
151
+ /**
152
+ * Parameters for searching collections
153
+ */
154
+ export type SearchCollectionsParams = Omit<SearchMoviesParams, "primary_release_year" | "year">;
155
+ /**
156
+ * Parameters for searching keywords
157
+ */
158
+ export type SearchKeywordsParams = Pick<SearchMoviesParams, "query" | "page">;
159
+ /**
160
+ * Parameters for searching companies
161
+ */
162
+ export type SearchCompanyParams = Pick<SearchMoviesParams, "query" | "page">;
163
+ /**
164
+ * Parameters for searching people
165
+ */
166
+ export type SearchPersonParams = Pick<SearchMoviesParams, "query" | "page" | "include_adult" | "language">;
167
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/types/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,oDAAoD;IACpD,KAAK,EAAE,OAAO,CAAC;IACf,6BAA6B;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,mCA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M,CAAC;IACrB,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,EAAE,sBAAsB,GAAG,MAAM,CAAC,CAAC;AAEhG;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { NetworkItem } from "./networks";
2
- import { TVEpisode } from "../tv-episodes/tv_episodes";
2
+ import { TVEpisode } from "./tv-episodes";
3
3
  /**
4
4
  * Full details for a TV episode group, including grouped episode lists.
5
5
  */
@@ -61,4 +61,4 @@ export type TVEpisodeGroupParams = {
61
61
  /** Episode group identifier */
62
62
  episode_group_id: string;
63
63
  };
64
- //# sourceMappingURL=tv_episode_groups.d.ts.map
64
+ //# sourceMappingURL=tv-episode-groups.d.ts.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AAI;IACZ,GAAG,IAAI;IACP,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,UAAU,IAAI;IACd,EAAE,IAAI;CACN;AAED,MAAM,MAAM,oBAAoB,GAAG;IAClC,+BAA+B;IAC/B,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -1,9 +1,8 @@
1
- import { Cast, Crew } from "../common";
2
- import { TVEpisodeCredits } from "./credits";
3
- import { TVEpisodeExternalIDs } from "./external_ids";
4
- import { TVEpisodeImages } from "./images";
5
- import { TVEpisodeTranslations } from "./translations";
6
- import { TVEpisodeVideos } from "./videos";
1
+ import { Cast, Crew, ImageItem, ImagesResult, TranslationResults, VideoResults, WithLanguage, WithParams } from "./common";
2
+ import { Language } from "./config";
3
+ import { TVSeasonBaseParams } from "./tv-seasons";
4
+ import { TVExternalIDs } from "./tv-series";
5
+ import { Prettify } from "./utility";
7
6
  /**
8
7
  * Represents a single episode of a TV series from the TMDB API.
9
8
  * Contains detailed metadata including crew, guest stars, and voting stats.
@@ -58,4 +57,42 @@ export type TVEpisodeAppendableMap = {
58
57
  export type TVEpisodeDetailsWithAppends<T extends readonly TVEpisodeAppendToResponseNamespace[]> = TVEpisode & {
59
58
  [K in T[number]]: TVEpisodeAppendableMap[K];
60
59
  };
61
- //# sourceMappingURL=tv_episodes.d.ts.map
60
+ export type TVEpisodeCredits = {
61
+ id: number | string;
62
+ cast: Omit<Cast, "cast_id">[];
63
+ crew: Crew[];
64
+ guest_stars: Omit<Cast, "cast_id">[];
65
+ };
66
+ export type TVEpisodeExternalIDs = Omit<TVExternalIDs, "facebook_id" | "instagram_id" | "twitter_id">;
67
+ export type TVEpisodeImages = ImagesResult<ImageItem, "stills">;
68
+ export type TVEpisodeTranslations = TranslationResults<TVEpisodeTranslationData>;
69
+ export type TVEpisodeTranslationData = {
70
+ name?: string | null;
71
+ overview?: string | null;
72
+ };
73
+ export type TVEpisodeVideos = VideoResults;
74
+ /**
75
+ * Almost every query within the TV Episodes domain
76
+ * will take this required param to identify the
77
+ * tv show episode.
78
+ */
79
+ export type TVEpisodeBaseParams = TVSeasonBaseParams & {
80
+ /** Episode number */
81
+ episode_number: number;
82
+ };
83
+ /** Uniquely identifies an episode across different tv shows. */
84
+ export type TVEpisodeId = {
85
+ episode_id: string | number;
86
+ };
87
+ /**
88
+ * Parameters for fetching TV episode details with optional additional data appended.
89
+ */
90
+ export type TVEpisodeDetailsParams = Prettify<TVEpisodeBaseParams & {
91
+ append_to_response?: TVEpisodeAppendToResponseNamespace[];
92
+ } & WithParams<"language">>;
93
+ /** Parameters for tv episode credits endpoint */
94
+ export type TVEpisodeCreditsParams = TVEpisodeBaseParams & WithLanguage;
95
+ export type TVEpisodeImagesParams = TVEpisodeBaseParams & WithLanguage & {
96
+ include_image_language?: Language;
97
+ };
98
+ //# sourceMappingURL=tv-episodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tv-episodes.d.ts","sourceRoot":"","sources":["../../src/types/tv-episodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3H,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IACrC,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AAoB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC,CAAC;AAEtG,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,CAAC;AAEjF,MAAM,MAAM,wBAAwB,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAI3C;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG;IACtD,qBAAqB;IACrB,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gEAAgE;AAChE,MAAM,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC5C,mBAAmB,GAAG;IAAE,kBAAkB,CAAC,EAAE,kCAAkC,EAAE,CAAA;CAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CAC5G,CAAC;AAEF,iDAAiD;AACjD,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GACtD,YAAY,GAAG;IACd,sBAAsB,CAAC,EAAE,QAAQ,CAAC;CAClC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { TVBaseParam } from "../tv/params";
1
+ import { TVBaseParam } from "./tv-series";
2
2
  /**
3
3
  * Almost every query within the TV Series Seasons domain
4
4
  * will take this required param to identify the
@@ -12,4 +12,4 @@ export type TVSeasonBaseParams = TVBaseParam & {
12
12
  export type TVSeasonId = {
13
13
  season_id: string;
14
14
  };
15
- //# sourceMappingURL=params.d.ts.map
15
+ //# sourceMappingURL=tv-seasons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tv-seasons.d.ts","sourceRoot":"","sources":["../../src/types/tv-seasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC9C,iBAAiB;IACjB,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,UAAU,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC"}