@lorenzopant/tmdb 1.13.0 → 1.14.0

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 (277) hide show
  1. package/README.md +20 -1
  2. package/dist/client.d.ts +5 -1
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +47 -8
  5. package/dist/endpoints/base.d.ts +1 -0
  6. package/dist/endpoints/base.d.ts.map +1 -1
  7. package/dist/endpoints/base.js +3 -1
  8. package/dist/endpoints/collections.d.ts +1 -1
  9. package/dist/endpoints/collections.d.ts.map +1 -1
  10. package/dist/endpoints/companies.d.ts +1 -1
  11. package/dist/endpoints/companies.d.ts.map +1 -1
  12. package/dist/endpoints/credits.d.ts +1 -1
  13. package/dist/endpoints/credits.d.ts.map +1 -1
  14. package/dist/endpoints/movies.d.ts +4 -10
  15. package/dist/endpoints/movies.d.ts.map +1 -1
  16. package/dist/endpoints/movies.js +2 -7
  17. package/dist/endpoints/networks.d.ts +2 -1
  18. package/dist/endpoints/networks.d.ts.map +1 -1
  19. package/dist/endpoints/search.d.ts +1 -6
  20. package/dist/endpoints/search.d.ts.map +1 -1
  21. package/dist/endpoints/tv_episode_groups.d.ts +1 -1
  22. package/dist/endpoints/tv_episode_groups.d.ts.map +1 -1
  23. package/dist/endpoints/tv_episodes.d.ts +1 -8
  24. package/dist/endpoints/tv_episodes.d.ts.map +1 -1
  25. package/dist/endpoints/tv_seasons.d.ts +129 -0
  26. package/dist/endpoints/tv_seasons.d.ts.map +1 -0
  27. package/dist/endpoints/tv_seasons.js +164 -0
  28. package/dist/endpoints/tv_series.d.ts +1 -8
  29. package/dist/endpoints/tv_series.d.ts.map +1 -1
  30. package/dist/endpoints/tv_series_lists.d.ts +3 -7
  31. package/dist/endpoints/tv_series_lists.d.ts.map +1 -1
  32. package/dist/endpoints/tv_series_lists.js +2 -7
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +1 -0
  36. package/dist/routes.d.ts +8 -0
  37. package/dist/routes.d.ts.map +1 -1
  38. package/dist/routes.js +8 -0
  39. package/dist/tmdb.d.ts +2 -0
  40. package/dist/tmdb.d.ts.map +1 -1
  41. package/dist/tmdb.js +4 -1
  42. package/dist/types/{other/collections.d.ts → collections.d.ts} +4 -4
  43. package/dist/types/collections.d.ts.map +1 -0
  44. package/dist/types/common/media.d.ts +1 -1
  45. package/dist/types/{other/companies.d.ts → companies.d.ts} +4 -4
  46. package/dist/types/companies.d.ts.map +1 -0
  47. package/dist/types/config/options.d.ts +7 -0
  48. package/dist/types/config/options.d.ts.map +1 -1
  49. package/dist/types/{other/credits.d.ts → credits.d.ts} +2 -2
  50. package/dist/types/credits.d.ts.map +1 -0
  51. package/dist/types/discover.d.ts +131 -0
  52. package/dist/types/discover.d.ts.map +1 -0
  53. package/dist/types/{other/find.d.ts → find.d.ts} +3 -3
  54. package/dist/types/find.d.ts.map +1 -0
  55. package/dist/types/index.d.ts +11 -3
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/dist/types/index.js +11 -3
  58. package/dist/types/{other/keywords.d.ts → keywords.d.ts} +1 -1
  59. package/dist/types/keywords.d.ts.map +1 -0
  60. package/dist/types/movies.d.ts +305 -0
  61. package/dist/types/movies.d.ts.map +1 -0
  62. package/dist/types/{other/networks.d.ts → networks.d.ts} +2 -2
  63. package/dist/types/networks.d.ts.map +1 -0
  64. package/dist/types/search.d.ts +167 -0
  65. package/dist/types/search.d.ts.map +1 -0
  66. package/dist/types/{other/tv_episode_groups.d.ts → tv-episode-groups.d.ts} +2 -2
  67. package/dist/types/tv-episode-groups.d.ts.map +1 -0
  68. package/dist/types/{tv-episodes/tv_episodes.d.ts → tv-episodes.d.ts} +44 -7
  69. package/dist/types/tv-episodes.d.ts.map +1 -0
  70. package/dist/types/tv-seasons.d.ts +132 -0
  71. package/dist/types/tv-seasons.d.ts.map +1 -0
  72. package/dist/types/tv-series.d.ts +446 -0
  73. package/dist/types/tv-series.d.ts.map +1 -0
  74. package/dist/types/{other/watch_providers.d.ts → watch-providers.d.ts} +5 -5
  75. package/dist/types/watch-providers.d.ts.map +1 -0
  76. package/dist/utils/index.d.ts +2 -0
  77. package/dist/utils/index.d.ts.map +1 -0
  78. package/dist/utils/index.js +1 -0
  79. package/dist/utils/logger.d.ts +19 -0
  80. package/dist/utils/logger.d.ts.map +1 -0
  81. package/dist/utils/logger.js +41 -0
  82. package/package.json +1 -1
  83. package/dist/types/discover/index.d.ts +0 -4
  84. package/dist/types/discover/index.d.ts.map +0 -1
  85. package/dist/types/discover/index.js +0 -3
  86. package/dist/types/discover/movie.d.ts +0 -6
  87. package/dist/types/discover/movie.d.ts.map +0 -1
  88. package/dist/types/discover/params.d.ts +0 -81
  89. package/dist/types/discover/params.d.ts.map +0 -1
  90. package/dist/types/discover/tv.d.ts +0 -50
  91. package/dist/types/discover/tv.d.ts.map +0 -1
  92. package/dist/types/movies/alternative_titles.d.ts +0 -11
  93. package/dist/types/movies/alternative_titles.d.ts.map +0 -1
  94. package/dist/types/movies/changes.d.ts +0 -3
  95. package/dist/types/movies/changes.d.ts.map +0 -1
  96. package/dist/types/movies/credits.d.ts +0 -13
  97. package/dist/types/movies/credits.d.ts.map +0 -1
  98. package/dist/types/movies/external_ids.d.ts +0 -16
  99. package/dist/types/movies/external_ids.d.ts.map +0 -1
  100. package/dist/types/movies/images.d.ts +0 -6
  101. package/dist/types/movies/images.d.ts.map +0 -1
  102. package/dist/types/movies/index.d.ts +0 -15
  103. package/dist/types/movies/index.d.ts.map +0 -1
  104. package/dist/types/movies/index.js +0 -14
  105. package/dist/types/movies/keywords.d.ts +0 -11
  106. package/dist/types/movies/keywords.d.ts.map +0 -1
  107. package/dist/types/movies/movie.d.ts +0 -106
  108. package/dist/types/movies/movie.d.ts.map +0 -1
  109. package/dist/types/movies/movie.js +0 -1
  110. package/dist/types/movies/params.d.ts +0 -94
  111. package/dist/types/movies/params.d.ts.map +0 -1
  112. package/dist/types/movies/params.js +0 -1
  113. package/dist/types/movies/recommendations.d.ts +0 -7
  114. package/dist/types/movies/recommendations.d.ts.map +0 -1
  115. package/dist/types/movies/recommendations.js +0 -1
  116. package/dist/types/movies/release_dates.d.ts +0 -37
  117. package/dist/types/movies/release_dates.d.ts.map +0 -1
  118. package/dist/types/movies/release_dates.js +0 -1
  119. package/dist/types/movies/reviews.d.ts +0 -6
  120. package/dist/types/movies/reviews.d.ts.map +0 -1
  121. package/dist/types/movies/reviews.js +0 -1
  122. package/dist/types/movies/similar.d.ts +0 -7
  123. package/dist/types/movies/similar.d.ts.map +0 -1
  124. package/dist/types/movies/similar.js +0 -1
  125. package/dist/types/movies/translations.d.ts +0 -21
  126. package/dist/types/movies/translations.d.ts.map +0 -1
  127. package/dist/types/movies/translations.js +0 -1
  128. package/dist/types/movies/videos.d.ts +0 -6
  129. package/dist/types/movies/videos.d.ts.map +0 -1
  130. package/dist/types/movies/videos.js +0 -1
  131. package/dist/types/other/collections.d.ts.map +0 -1
  132. package/dist/types/other/companies.d.ts.map +0 -1
  133. package/dist/types/other/credits.d.ts.map +0 -1
  134. package/dist/types/other/credits.js +0 -1
  135. package/dist/types/other/find.d.ts.map +0 -1
  136. package/dist/types/other/index.d.ts +0 -9
  137. package/dist/types/other/index.d.ts.map +0 -1
  138. package/dist/types/other/index.js +0 -8
  139. package/dist/types/other/keywords.d.ts.map +0 -1
  140. package/dist/types/other/keywords.js +0 -1
  141. package/dist/types/other/networks.d.ts.map +0 -1
  142. package/dist/types/other/tv_episode_groups.d.ts.map +0 -1
  143. package/dist/types/other/watch_providers.d.ts.map +0 -1
  144. package/dist/types/other/watch_providers.js +0 -1
  145. package/dist/types/search/collection.d.ts +0 -22
  146. package/dist/types/search/collection.d.ts.map +0 -1
  147. package/dist/types/search/collection.js +0 -1
  148. package/dist/types/search/company.d.ts +0 -15
  149. package/dist/types/search/company.d.ts.map +0 -1
  150. package/dist/types/search/company.js +0 -1
  151. package/dist/types/search/index.d.ts +0 -7
  152. package/dist/types/search/index.d.ts.map +0 -1
  153. package/dist/types/search/index.js +0 -6
  154. package/dist/types/search/keyword.d.ts +0 -6
  155. package/dist/types/search/keyword.d.ts.map +0 -1
  156. package/dist/types/search/keyword.js +0 -1
  157. package/dist/types/search/movie.d.ts +0 -34
  158. package/dist/types/search/movie.d.ts.map +0 -1
  159. package/dist/types/search/movie.js +0 -1
  160. package/dist/types/search/multi.d.ts +0 -1
  161. package/dist/types/search/multi.d.ts.map +0 -1
  162. package/dist/types/search/multi.js +0 -1
  163. package/dist/types/search/params.d.ts +0 -37
  164. package/dist/types/search/params.d.ts.map +0 -1
  165. package/dist/types/search/params.js +0 -1
  166. package/dist/types/search/person.d.ts +0 -13
  167. package/dist/types/search/person.d.ts.map +0 -1
  168. package/dist/types/search/person.js +0 -1
  169. package/dist/types/search/tv.d.ts +0 -39
  170. package/dist/types/search/tv.d.ts.map +0 -1
  171. package/dist/types/search/tv.js +0 -1
  172. package/dist/types/tv/aggregate_credits.d.ts +0 -58
  173. package/dist/types/tv/aggregate_credits.d.ts.map +0 -1
  174. package/dist/types/tv/aggregate_credits.js +0 -1
  175. package/dist/types/tv/alternative_titles.d.ts +0 -11
  176. package/dist/types/tv/alternative_titles.d.ts.map +0 -1
  177. package/dist/types/tv/alternative_titles.js +0 -1
  178. package/dist/types/tv/changes.d.ts +0 -3
  179. package/dist/types/tv/changes.d.ts.map +0 -1
  180. package/dist/types/tv/changes.js +0 -1
  181. package/dist/types/tv/content_ratings.d.ts +0 -5
  182. package/dist/types/tv/content_ratings.d.ts.map +0 -1
  183. package/dist/types/tv/content_ratings.js +0 -1
  184. package/dist/types/tv/credits.d.ts +0 -15
  185. package/dist/types/tv/credits.d.ts.map +0 -1
  186. package/dist/types/tv/credits.js +0 -1
  187. package/dist/types/tv/episode_groups.d.ts +0 -30
  188. package/dist/types/tv/episode_groups.d.ts.map +0 -1
  189. package/dist/types/tv/episode_groups.js +0 -1
  190. package/dist/types/tv/episodes.d.ts +0 -27
  191. package/dist/types/tv/episodes.d.ts.map +0 -1
  192. package/dist/types/tv/episodes.js +0 -1
  193. package/dist/types/tv/external_ids.d.ts +0 -26
  194. package/dist/types/tv/external_ids.d.ts.map +0 -1
  195. package/dist/types/tv/external_ids.js +0 -1
  196. package/dist/types/tv/images.d.ts +0 -15
  197. package/dist/types/tv/images.d.ts.map +0 -1
  198. package/dist/types/tv/images.js +0 -1
  199. package/dist/types/tv/index.d.ts +0 -21
  200. package/dist/types/tv/index.d.ts.map +0 -1
  201. package/dist/types/tv/index.js +0 -20
  202. package/dist/types/tv/keywords.d.ts +0 -11
  203. package/dist/types/tv/keywords.d.ts.map +0 -1
  204. package/dist/types/tv/keywords.js +0 -1
  205. package/dist/types/tv/lists.d.ts +0 -32
  206. package/dist/types/tv/lists.d.ts.map +0 -1
  207. package/dist/types/tv/lists.js +0 -1
  208. package/dist/types/tv/params.d.ts +0 -74
  209. package/dist/types/tv/params.d.ts.map +0 -1
  210. package/dist/types/tv/params.js +0 -1
  211. package/dist/types/tv/recommendations.d.ts +0 -5
  212. package/dist/types/tv/recommendations.d.ts.map +0 -1
  213. package/dist/types/tv/recommendations.js +0 -1
  214. package/dist/types/tv/reviews.d.ts +0 -6
  215. package/dist/types/tv/reviews.d.ts.map +0 -1
  216. package/dist/types/tv/reviews.js +0 -1
  217. package/dist/types/tv/screened_theatrically.d.ts +0 -21
  218. package/dist/types/tv/screened_theatrically.d.ts.map +0 -1
  219. package/dist/types/tv/screened_theatrically.js +0 -1
  220. package/dist/types/tv/seasons.d.ts +0 -17
  221. package/dist/types/tv/seasons.d.ts.map +0 -1
  222. package/dist/types/tv/seasons.js +0 -1
  223. package/dist/types/tv/similar.d.ts +0 -5
  224. package/dist/types/tv/similar.d.ts.map +0 -1
  225. package/dist/types/tv/similar.js +0 -1
  226. package/dist/types/tv/translations.d.ts +0 -20
  227. package/dist/types/tv/translations.d.ts.map +0 -1
  228. package/dist/types/tv/translations.js +0 -1
  229. package/dist/types/tv/tv_series.d.ts +0 -104
  230. package/dist/types/tv/tv_series.d.ts.map +0 -1
  231. package/dist/types/tv/tv_series.js +0 -1
  232. package/dist/types/tv/videos.d.ts +0 -9
  233. package/dist/types/tv/videos.d.ts.map +0 -1
  234. package/dist/types/tv/videos.js +0 -1
  235. package/dist/types/tv-episodes/credits.d.ts +0 -8
  236. package/dist/types/tv-episodes/credits.d.ts.map +0 -1
  237. package/dist/types/tv-episodes/credits.js +0 -1
  238. package/dist/types/tv-episodes/external_ids.d.ts +0 -3
  239. package/dist/types/tv-episodes/external_ids.d.ts.map +0 -1
  240. package/dist/types/tv-episodes/external_ids.js +0 -1
  241. package/dist/types/tv-episodes/images.d.ts +0 -3
  242. package/dist/types/tv-episodes/images.d.ts.map +0 -1
  243. package/dist/types/tv-episodes/images.js +0 -1
  244. package/dist/types/tv-episodes/index.d.ts +0 -4
  245. package/dist/types/tv-episodes/index.d.ts.map +0 -1
  246. package/dist/types/tv-episodes/index.js +0 -3
  247. package/dist/types/tv-episodes/params.d.ts +0 -30
  248. package/dist/types/tv-episodes/params.d.ts.map +0 -1
  249. package/dist/types/tv-episodes/params.js +0 -1
  250. package/dist/types/tv-episodes/translations.d.ts +0 -7
  251. package/dist/types/tv-episodes/translations.d.ts.map +0 -1
  252. package/dist/types/tv-episodes/translations.js +0 -1
  253. package/dist/types/tv-episodes/tv_episodes.d.ts.map +0 -1
  254. package/dist/types/tv-episodes/tv_episodes.js +0 -1
  255. package/dist/types/tv-episodes/videos.d.ts +0 -3
  256. package/dist/types/tv-episodes/videos.d.ts.map +0 -1
  257. package/dist/types/tv-episodes/videos.js +0 -1
  258. package/dist/types/tv-seasons/params.d.ts +0 -15
  259. package/dist/types/tv-seasons/params.d.ts.map +0 -1
  260. package/dist/types/tv-seasons/params.js +0 -1
  261. package/dist/types/tv-seasons/tv-season.d.ts +0 -1
  262. package/dist/types/tv-seasons/tv-season.d.ts.map +0 -1
  263. package/dist/types/tv-seasons/tv-season.js +0 -1
  264. /package/dist/types/{other/collections.js → collections.js} +0 -0
  265. /package/dist/types/{other/companies.js → companies.js} +0 -0
  266. /package/dist/types/{movies/credits.js → credits.js} +0 -0
  267. /package/dist/types/{discover/tv.js → discover.js} +0 -0
  268. /package/dist/types/{other/find.js → find.js} +0 -0
  269. /package/dist/types/{movies/keywords.js → keywords.js} +0 -0
  270. /package/dist/types/{discover/movie.js → movies.js} +0 -0
  271. /package/dist/types/{other/networks.js → networks.js} +0 -0
  272. /package/dist/types/{discover/params.js → search.js} +0 -0
  273. /package/dist/types/{other/tv_episode_groups.js → tv-episode-groups.js} +0 -0
  274. /package/dist/types/{movies/alternative_titles.js → tv-episodes.js} +0 -0
  275. /package/dist/types/{movies/changes.js → tv-seasons.js} +0 -0
  276. /package/dist/types/{movies/external_ids.js → tv-series.js} +0 -0
  277. /package/dist/types/{movies/images.js → watch-providers.js} +0 -0
@@ -0,0 +1,132 @@
1
+ import { Cast, Crew, DateRange, ImageItem, ImagesResult, TranslationResults, VideoResults, WithLanguage, WithParams } from "./common";
2
+ import { TVAggregateCredits, TVBaseParam, TVEpisodeItem, TVExternalIDs } from "./tv-series";
3
+ import { MediaWatchProviders } from "./common/media";
4
+ import { NetworkItem } from "./networks";
5
+ import { LiteralUnion, Prettify } from "./utility";
6
+ /**
7
+ * Almost every query within the TV Series Seasons domain
8
+ * will take this required param to identify the
9
+ * tv show season.
10
+ */
11
+ export type TVSeasonBaseParams = TVBaseParam & {
12
+ /** The Season */
13
+ season_number: number;
14
+ };
15
+ /** Uniquely identifies a season across different tv shows. */
16
+ export type TVSeasonId = {
17
+ season_id: string | number;
18
+ };
19
+ /**
20
+ * Represents a single episode within a TV season from the TMDB API.
21
+ * Extends {@link TVEpisodeItem} (rather than `TVEpisode`) with crew, guest stars, and episode type.
22
+ *
23
+ * NOTE: `TVEpisode` is intentionally not used here to avoid a circular dependency:
24
+ * `tv-episodes.ts` imports `TVSeasonBaseParams` from this file, so importing
25
+ * `TVEpisode` back would form a cycle. `TVEpisodeItem` carries the same scalar
26
+ * fields (including `show_id`) and produces an identical runtime shape.
27
+ */
28
+ export type TVSeasonEpisode = TVEpisodeItem & {
29
+ /** Array of crew members for this episode */
30
+ crew: Crew[];
31
+ /** Episode type */
32
+ episode_type: LiteralUnion<"standard" | "finale">;
33
+ /** Array of guest stars in this episode */
34
+ guest_stars: Omit<Cast, "cast_id">[];
35
+ };
36
+ /**
37
+ * Detailed information about a TV season returned by the TMDB API.
38
+ */
39
+ export type TVSeason = {
40
+ /** ISO 8601 date when the season first aired */
41
+ air_date?: string | null;
42
+ /** Array of episodes in this season */
43
+ episodes: TVSeasonEpisode[];
44
+ /** Unique TMDB identifier for the season */
45
+ id: number;
46
+ /** Season name */
47
+ name: string;
48
+ /** Networks that broadcast this season */
49
+ networks: NetworkItem[];
50
+ /** Season overview/description */
51
+ overview: string;
52
+ /** Relative path to the season poster */
53
+ poster_path?: string | null;
54
+ /** Season number within the TV show */
55
+ season_number: number;
56
+ /** Average user rating (0–10) */
57
+ vote_average: number;
58
+ };
59
+ /**
60
+ * Available append-to-response options for TV season details.
61
+ * These allow fetching additional related data in a single API request.
62
+ */
63
+ export type TVSeasonAppendToResponseNamespace = "aggregate_credits" | "credits" | "external_ids" | "images" | "translations" | "videos" | "watch_providers";
64
+ /**
65
+ * Maps append-to-response keys to their corresponding response types.
66
+ */
67
+ export type TVSeasonAppendableMap = {
68
+ aggregate_credits: TVSeasonAggregateCredits;
69
+ credits: TVSeasonCredits;
70
+ external_ids: TVSeasonExternalIDs;
71
+ images: TVSeasonImages;
72
+ translations: TVSeasonTranslations;
73
+ videos: TVSeasonVideos;
74
+ watch_providers: MediaWatchProviders;
75
+ };
76
+ /**
77
+ * TV season details with additional appended data based on the requested namespaces.
78
+ * @template T - Array of append-to-response namespace keys to include
79
+ */
80
+ export type TVSeasonDetailsWithAppends<T extends readonly TVSeasonAppendToResponseNamespace[]> = TVSeason & {
81
+ [K in T[number]]: TVSeasonAppendableMap[K];
82
+ };
83
+ /** Aggregate cast and crew credits for a TV season across all its episodes. */
84
+ export type TVSeasonAggregateCredits = TVAggregateCredits;
85
+ /** Season change history, using the same structure as other TMDB change responses. */
86
+ export type TVSeasonChanges = import("./common").Changes;
87
+ /** Credits (cast & crew) for a TV season, mirroring the series-level credits shape. */
88
+ export type TVSeasonCredits = {
89
+ /** TMDB unique identifier */
90
+ id: number;
91
+ /** Cast members */
92
+ cast: Cast[];
93
+ /** Crew members */
94
+ crew: Crew[];
95
+ };
96
+ /** External platform identifiers for a TV season (subset of TV series external IDs). */
97
+ export type TVSeasonExternalIDs = Pick<TVExternalIDs, "id" | "freebase_mid" | "freebase_id" | "tvdb_id" | "tvrage_id" | "wikidata_id">;
98
+ /**
99
+ * Images associated with a TV season.
100
+ * Contains posters only.
101
+ */
102
+ export type TVSeasonImages = ImagesResult<ImageItem, "posters">;
103
+ /** Translation data for a TV season. */
104
+ export type TVSeasonTranslationData = {
105
+ name?: string | null;
106
+ overview?: string | null;
107
+ };
108
+ /** Collection of all available translations for a TV season. */
109
+ export type TVSeasonTranslations = TranslationResults<TVSeasonTranslationData>;
110
+ /** Videos (trailers, teasers, clips) for a TV season. */
111
+ export type TVSeasonVideos = VideoResults;
112
+ /** Parameters for the season details endpoint. */
113
+ export type TVSeasonDetailsParams = Prettify<TVSeasonBaseParams & {
114
+ append_to_response?: TVSeasonAppendToResponseNamespace[];
115
+ } & WithParams<"language">>;
116
+ /** Parameters for the season aggregate credits endpoint. */
117
+ export type TVSeasonAggregateCreditsParams = TVSeasonBaseParams & WithLanguage;
118
+ /** Parameters for the season credits endpoint. */
119
+ export type TVSeasonCreditsParams = TVSeasonBaseParams & WithLanguage;
120
+ /** Parameters for the season images endpoint, with optional language filtering. */
121
+ export type TVSeasonImagesParams = TVSeasonBaseParams & WithLanguage & {
122
+ include_image_language?: string;
123
+ };
124
+ /** Parameters for the season videos endpoint, with optional language filtering. */
125
+ export type TVSeasonVideosParams = TVSeasonBaseParams & WithLanguage & {
126
+ include_video_language?: string;
127
+ };
128
+ /** Parameters for the season watch providers endpoint. */
129
+ export type TVSeasonWatchProvidersParams = TVSeasonBaseParams & WithLanguage;
130
+ /** Parameters for the season changes endpoint. */
131
+ export type TVSeasonChangesParams = TVSeasonId & Prettify<WithParams<"page"> & DateRange>;
132
+ //# 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,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtI,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEnD;;;;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,GAAG,MAAM,CAAC;CAC3B,CAAC;AAIF;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC7C,6CAA6C;IAC7C,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,mBAAmB;IACnB,YAAY,EAAE,YAAY,CAAC,UAAU,GAAG,QAAQ,CAAC,CAAC;IAClD,2CAA2C;IAC3C,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB,gDAAgD;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AAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3G,0DAA0D;AAC1D,MAAM,MAAM,4BAA4B,GAAG,kBAAkB,GAAG,YAAY,CAAC;AAE7E,kDAAkD;AAClD,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC"}
@@ -0,0 +1,446 @@
1
+ import { AlternativeTitle, Cast, Changes, ContentRating, Credit, Crew, DateRange, Genre, ImageItem, ImagesResult, Keyword, PaginatedResponse, ProductionCompany, ProductionCountry, Review, SpokenLanguage, TranslationResults, WithLanguage, WithLanguagePage, WithParams } from "./common";
2
+ import { CountryISO3166_1 } from "./config/countries";
3
+ import { NetworkItem } from "./networks";
4
+ import { VideoItem } from "./common";
5
+ import { Language, LanguageISO6391, Timezone } from "./config";
6
+ import { TVSeriesResultItem } from "./search";
7
+ import { Prettify } from "./utility";
8
+ /**
9
+ * Represent the detailed information about a TV show.
10
+ */
11
+ export type TVSeriesDetails = {
12
+ /** The path to the backdrop image, or null if not available */
13
+ backdrop_path: string | null;
14
+ /** Array of creators who developed the TV show */
15
+ created_by: Pick<Credit, "id" | "credit_id" | "gender" | "name" | "profile_path">[];
16
+ /** Array of typical episode runtimes in minutes */
17
+ episode_run_time: number[];
18
+ /** The date the first episode aired */
19
+ first_air_date: string;
20
+ /** Array of genres associated with the TV show */
21
+ genres: Genre[];
22
+ /** The official homepage URL for the TV show, or null if not available */
23
+ homepage: string | null;
24
+ /** The unique identifier for the TV show */
25
+ id: number;
26
+ /** Indicates whether the TV show is currently in production */
27
+ in_production: boolean;
28
+ /** Array of language codes used in the TV show */
29
+ languages: string[];
30
+ /** The date the most recent episode aired */
31
+ last_air_date: string;
32
+ /** Details of the last episode that aired, if available */
33
+ last_episode_to_air?: TVEpisodeItem | null;
34
+ /** The title of the TV show */
35
+ name: string;
36
+ /** Details of the next episode to air, if available */
37
+ next_episode_to_air?: TVEpisodeItem;
38
+ /** Array of networks that broadcast the TV show */
39
+ networks?: NetworkItem[];
40
+ /** The total number of episodes across all seasons */
41
+ number_of_episodes: number;
42
+ /** The total number of seasons */
43
+ number_of_seasons: number;
44
+ /** Array of country codes where the show originated (ISO 3166-1 format) */
45
+ origin_country: CountryISO3166_1[];
46
+ /** The original language code of the TV show */
47
+ original_language: string;
48
+ /** The original title of the TV show */
49
+ original_name: string;
50
+ /** A brief description or summary of the TV show, or null if not available */
51
+ overview: string | null;
52
+ /** The popularity score of the TV show */
53
+ popularity: number;
54
+ /** The path to the poster image, or null if not available */
55
+ poster_path: string | null;
56
+ /** Array of companies that produced the TV show */
57
+ production_companies?: ProductionCompany[];
58
+ /** Array of countries where the TV show was produced */
59
+ production_countries?: ProductionCountry[];
60
+ /** Array of all seasons in the TV show */
61
+ seasons?: TVSeasonItem[];
62
+ /** Array of languages spoken in the TV show with full names */
63
+ spoken_languages?: SpokenLanguage[];
64
+ /** The current status of the TV show (e.g., "Returning Series", "Ended") */
65
+ status?: string;
66
+ /** The type of TV show (e.g., "Scripted", "Documentary", "Reality") */
67
+ type?: string;
68
+ /** The average rating score for the TV show (0-10 scale) */
69
+ vote_average: number;
70
+ /** The total number of votes received for the TV show */
71
+ vote_count: number;
72
+ };
73
+ export type TVEpisodeItem = {
74
+ /** The unique identifier for the episode */
75
+ id: number;
76
+ /** The title of the episode */
77
+ name: string;
78
+ /** A brief description or summary of the episode's plot */
79
+ overview: string;
80
+ /** The average rating score for the episode (0-10 scale) */
81
+ vote_average: number;
82
+ /** The total number of votes received for the episode */
83
+ vote_count: number;
84
+ /** The date the episode first aired */
85
+ air_date?: string | null;
86
+ /** The episode number within its season */
87
+ episode_number: number;
88
+ /** The production code used internally during filming */
89
+ production_code?: string | null;
90
+ /** The runtime of the episode in minutes */
91
+ runtime?: number | null;
92
+ /** The season number this episode belongs to */
93
+ season_number: number;
94
+ /** The unique identifier of the TV show this episode belongs to */
95
+ show_id: number;
96
+ /** The path to the episode's still image (screenshot) */
97
+ still_path?: string | null;
98
+ };
99
+ export type TVSeasonItem = {
100
+ /** The date the season first aired, or null if not available */
101
+ air_date?: string;
102
+ /** The total number of episodes in the season */
103
+ episode_count: number;
104
+ /** The unique identifier for the season */
105
+ id: number;
106
+ /** The title of the season */
107
+ name: string;
108
+ /** A brief description or summary of the season */
109
+ overview: string;
110
+ /** The path to the season's poster image, or null if not available */
111
+ poster_path?: string;
112
+ /** The season number within the TV show */
113
+ season_number: number;
114
+ };
115
+ /**
116
+ * Available append-to-response options for TV show details.
117
+ * These allow fetching additional related data in a single API request.
118
+ */
119
+ export type TVAppendToResponseNamespace = "credits" | "external_ids" | "images" | "keywords" | "recommendations" | "similar" | "translations" | "videos";
120
+ /**
121
+ * Maps append-to-response keys to their corresponding response types.
122
+ */
123
+ export type TVAppendableMap = {
124
+ credits: TVCredits;
125
+ external_ids: TVExternalIDs;
126
+ images: TVImages;
127
+ keywords: TVKeywords;
128
+ recommendations: TVRecommendations;
129
+ similar: TVSimilar;
130
+ translations: TVTranslations;
131
+ videos: TVVideos;
132
+ };
133
+ /**
134
+ * TV show details with additional appended data based on the requested namespaces.
135
+ * @template T - Array of append-to-response namespace keys to include
136
+ */
137
+ export type TVDetailsWithAppends<T extends readonly TVAppendToResponseNamespace[]> = TVSeriesDetails & {
138
+ [K in T[number]]: TVAppendableMap[K];
139
+ };
140
+ /**
141
+ * Aggregate credits for a TV show, including cast and crew across all seasons and episodes.
142
+ */
143
+ export type TVAggregateCredits = {
144
+ /** TMDB unique identifier for the TV show. */
145
+ id: number;
146
+ /** List of all the known cast for the TV show. */
147
+ cast: TVAggregateCreditsCastItem[];
148
+ /** List of all the known crew members for the TV show. */
149
+ crew: TVAggregateCreditsCrewItem[];
150
+ };
151
+ /**
152
+ * Cast member in TV show aggregate credits with their roles across all seasons.
153
+ */
154
+ export type TVAggregateCreditsCastItem = Omit<Credit, "credit_id"> & {
155
+ /** Array of roles played by this cast member across different episodes */
156
+ roles: TVCreditRole[];
157
+ /** Total number of episodes this cast member appeared in */
158
+ total_episode_count: number;
159
+ /** Position in the cast list */
160
+ order: number;
161
+ };
162
+ /**
163
+ * Crew member in TV show aggregate credits with their jobs across all seasons.
164
+ */
165
+ export type TVAggregateCreditsCrewItem = Omit<Credit, "credit_id"> & {
166
+ /** Array of jobs performed by this crew member across different episodes */
167
+ jobs: TVCreditJob[];
168
+ /** Total number of episodes this crew member worked on */
169
+ total_episode_count: number;
170
+ /** Department the crew member belongs to (e.g., "Directing", "Writing") */
171
+ department: string;
172
+ };
173
+ /**
174
+ * Represents a specific role a cast member played in a TV show.
175
+ */
176
+ export type TVCreditRole = {
177
+ /** Unique identifier for this specific credit */
178
+ credit_id: string;
179
+ /** Character name played in this role */
180
+ character: string;
181
+ /** Number of episodes in which this character appeared */
182
+ episode_count: number;
183
+ };
184
+ /**
185
+ * Represents a specific job a crew member performed on a TV show.
186
+ */
187
+ export type TVCreditJob = {
188
+ /** Unique identifier for this specific credit */
189
+ credit_id: string;
190
+ /** Job title (e.g., "Director", "Writer", "Producer") */
191
+ job: string;
192
+ /** Number of episodes for which this job was performed */
193
+ episode_count: number;
194
+ };
195
+ /**
196
+ * Alternative titles for a tv show in different countries/languages
197
+ */
198
+ export type TVAlternativeTitles = {
199
+ /** Movie identifier */
200
+ id: number;
201
+ /** Array of alternative titles */
202
+ results: AlternativeTitle[];
203
+ };
204
+ export type TVSeriesChanges = Changes;
205
+ export type TVContentRatings = {
206
+ results: ContentRating[];
207
+ };
208
+ /**
209
+ * This is the original TV credits method which returns the latest season credit data.
210
+ * If you would like to request the aggregate view (which is what you see on the TMDB website)
211
+ * you should use the aggregate_credits method.
212
+ */
213
+ export type TVCredits = {
214
+ /** TMDB unique identifier for the TV show. */
215
+ id: number;
216
+ /** List of all the known cast for the TV show. */
217
+ cast: Cast[];
218
+ /** List of all the known crew members for the TV show. */
219
+ crew: Crew[];
220
+ };
221
+ /**
222
+ * Collection of episode groups for a TV series
223
+ */
224
+ export type TVEpisodeGroups = {
225
+ /** TV series identifier */
226
+ id: number;
227
+ /** Array of episode group items */
228
+ results: TVEpisodeGroupItem[];
229
+ };
230
+ /**
231
+ * Alternative grouping of episodes (e.g., chronological order, director's cut)
232
+ */
233
+ export type TVEpisodeGroupItem = {
234
+ /** Description explaining the purpose of this episode grouping */
235
+ description: string;
236
+ /** Total number of episodes in this group */
237
+ episode_count: number;
238
+ /** Number of sub-groups within this episode group */
239
+ group_count: number;
240
+ /** Unique episode group identifier */
241
+ id: string;
242
+ /** Name of the episode group */
243
+ name: string;
244
+ /** Network that created or distributed this episode grouping */
245
+ network: NetworkItem;
246
+ /** Type of grouping (1=Original air date, 2=Absolute, 3=DVD, 4=Digital, 5=Story arc, 6=Production, 7=TV) */
247
+ type: number;
248
+ };
249
+ /**
250
+ * External platform identifiers for a TV series
251
+ */
252
+ export type TVExternalIDs = {
253
+ /** TV series identifier in TMDB */
254
+ id: number;
255
+ /** IMDb identifier (e.g., "tt0944947"), null if not available */
256
+ imdb_id?: string | null;
257
+ /** Freebase MID identifier (deprecated), null if not available */
258
+ freebase_mid?: string | null;
259
+ /** Freebase ID (deprecated), null if not available */
260
+ freebase_id?: string | null;
261
+ /** TheTVDB identifier, null if not available */
262
+ tvdb_id?: number | null;
263
+ /** TVRage identifier (service discontinued), null if not available */
264
+ tvrage_id?: number | null;
265
+ /** Wikidata identifier (e.g., "Q23572"), null if not available */
266
+ wikidata_id?: string | null;
267
+ /** Facebook page identifier, null if not available */
268
+ facebook_id?: string | null;
269
+ /** Instagram handle, null if not available */
270
+ instagram_id?: string | null;
271
+ /** Twitter/X handle, null if not available */
272
+ twitter_id?: string | null;
273
+ };
274
+ /**
275
+ * Images related to a TV show.
276
+ * Contains backdrops, logos, posters and stills.
277
+ */
278
+ export type TVImages = ImagesResult<TVImageItem, "backdrops" | "logos" | "posters">;
279
+ /**
280
+ * Image items for TVShows have an undocumented "iso_3166_1" property
281
+ * I decided to put it anyway as an optional property,
282
+ * but only for tv shows images.
283
+ */
284
+ export type TVImageItem = ImageItem & {
285
+ iso_3166_1?: string;
286
+ };
287
+ /**
288
+ * List of keywords related to the TV show.
289
+ */
290
+ export type TVKeywords = {
291
+ /** TMDB unique identifier for the TV show. */
292
+ id: number;
293
+ /** List of keywords related to the TV show. */
294
+ results: Keyword[];
295
+ };
296
+ /**
297
+ * Represents a paginated collection of TV series lists, extended with a unique identifier.
298
+ * Combines a standard `PaginatedResponse<TVSeriesListItem>` with an `id` field
299
+ * that uniquely identifies the tv show.
300
+ */
301
+ export type TVSeriesLists = PaginatedResponse<TVSeriesListItem> & {
302
+ id: number;
303
+ };
304
+ /**
305
+ * Represents a single TV series list entry as returned by the TMDB API.
306
+ */
307
+ export type TVSeriesListItem = {
308
+ /** A brief description of the list provided by its creator. */
309
+ description: string;
310
+ /** The number of times this list has been marked as a favorite by TMDB users. */
311
+ favorite_count: number;
312
+ /** The unique identifier for this list on TMDB. */
313
+ id: number;
314
+ /** The total number of items (TV series) currently in this list. */
315
+ item_count: number;
316
+ /** The primary language of the list content as an ISO 639-1 code (e.g. `"en"`). */
317
+ iso_639_1: string | LanguageISO6391;
318
+ /** The country associated with the list as an ISO 3166-1 alpha-2 code (e.g. `"US"`). */
319
+ iso_3166_1: string | CountryISO3166_1;
320
+ /** The display name of the list. */
321
+ name: string;
322
+ /** Path to the list's poster image on the TMDB CDN. Combine with a base URL to get the full image path. */
323
+ poster_path?: string;
324
+ };
325
+ /** List of TV shows that are recommended for a TV show. */
326
+ export type TVRecommendations = PaginatedResponse<TVSeriesResultItem>;
327
+ /**
328
+ * Paginated list of user reviews for a tv show
329
+ */
330
+ export type TVReviews = PaginatedResponse<Review>;
331
+ /**
332
+ * Represents the response for TV episodes that have been screened theatrically.
333
+ */
334
+ export type TVScreenedTheatrically = {
335
+ /** The unique identifier of the TV series. */
336
+ id: number;
337
+ /** The list of episodes that received a theatrical screening. */
338
+ results: TVScreeningItem[];
339
+ };
340
+ /**
341
+ * Represents a single TV episode that was screened theatrically.
342
+ */
343
+ export type TVScreeningItem = {
344
+ /** The unique identifier of the episode. */
345
+ id: number;
346
+ /** The episode number within its season. */
347
+ episode_number: number;
348
+ /** The season number the episode belongs to. */
349
+ season_number: number;
350
+ };
351
+ /** List of TV shows that are similar to a TV show. */
352
+ export type TVSimilar = PaginatedResponse<TVSeriesResultItem>;
353
+ /**
354
+ * Represents the collection of available translations for a TV series.
355
+ */
356
+ export type TVTranslations = TranslationResults<TVTranslationData>;
357
+ /**
358
+ * The translated text fields for a TV series in a specific language.
359
+ * All fields are optional as not every translation may provide all values.
360
+ */
361
+ export type TVTranslationData = {
362
+ /** The translated name of the TV series. */
363
+ name?: string;
364
+ /** The translated overview or synopsis of the TV series. */
365
+ overview?: string;
366
+ /** The translated homepage URL for the TV series. */
367
+ homepage?: string;
368
+ /** The translated tagline of the TV series. */
369
+ tagline?: string;
370
+ };
371
+ /** List of videos related to a TV show. */
372
+ export type TVVideos = {
373
+ /** TMDB unique identifier for the TV show. */
374
+ id: number;
375
+ /** List of video results. */
376
+ results: VideoItem[];
377
+ };
378
+ /**
379
+ * Almost every query within the TV Series domain
380
+ * will take this required param to identify the
381
+ * tv show.
382
+ */
383
+ export type TVBaseParam = {
384
+ series_id: number;
385
+ };
386
+ /**
387
+ * Parameters for TV series list endpoints (popular, top rated, airing today, on the air).
388
+ */
389
+ export type TVSeriesListParams = Prettify<WithLanguagePage & {
390
+ timezone?: Timezone;
391
+ }>;
392
+ /**
393
+ * Parameters for fetching TV show details with optional additional data appended.
394
+ */
395
+ export type TVDetailsParams = Prettify<TVBaseParam & {
396
+ append_to_response?: TVAppendToResponseNamespace[];
397
+ } & WithParams<"language">>;
398
+ /**
399
+ * Parameters for fetching aggregate credits for a TV show (cast and crew across all seasons).
400
+ */
401
+ export type TVAggregateCreditsParams = Prettify<TVBaseParam & WithParams<"language">>;
402
+ /**
403
+ * Parameters for fetching tv show change history.
404
+ */
405
+ export type TVChangeParams = Prettify<TVBaseParam & WithParams<"page"> & DateRange>;
406
+ /**
407
+ * Parameters for fetching tv show credits (cast and crew last season).
408
+ */
409
+ export type TVCreditsParams = Prettify<TVBaseParam & WithLanguage>;
410
+ /**
411
+ * Parameters for fetching tv shows images (backdrops, logos, posters).
412
+ *
413
+ * Note: language and include_image_language params still only support
414
+ * ISO-639-1 language definition according to TMDB docs:
415
+ *
416
+ * "These are all specified as IETF tags to identify the languages we use on TMDB.
417
+ * There is one exception which is image languages.
418
+ * They are currently only designated by a ISO-639-1 tag. This is a planned upgrade for the future."
419
+ * https://developer.themoviedb.org/reference/configuration-primary-translations
420
+ *
421
+ * However, in practice, language in format "en-US" is still accepted.
422
+ * So we allow for both formats.
423
+ */
424
+ export type TVImagesParams = Prettify<TVBaseParam & {
425
+ /** Language for image metadata (supports both ISO-639-1 and full Language format) */
426
+ language?: Language | LanguageISO6391;
427
+ /** Include images with specific language tags (comma-separated, e.g., "en,null") */
428
+ include_image_language?: Language | LanguageISO6391;
429
+ }>;
430
+ /**
431
+ * Parameters for fetching TV series lists (lists endpoint, different from airing_today ecc...).
432
+ */
433
+ export type TVSeriesListsParams = Prettify<TVBaseParam & WithLanguagePage>;
434
+ /**
435
+ * Parameters for fetching tv shows recommendations.
436
+ */
437
+ export type TVRecommendationsParams = Prettify<TVBaseParam & WithLanguagePage>;
438
+ /**
439
+ * Parameters for fetching similar tv shows.
440
+ */
441
+ export type TVSimilarParams = Prettify<TVBaseParam & WithLanguagePage>;
442
+ /**
443
+ * Parameters for fetching tv show reviews.
444
+ */
445
+ export type TVReviewsParams = Prettify<TVBaseParam & WithLanguagePage>;
446
+ //# sourceMappingURL=tv-series.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tv-series.d.ts","sourceRoot":"","sources":["../../src/types/tv-series.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,IAAI,EACJ,OAAO,EACP,aAAa,EACb,MAAM,EACN,IAAI,EACJ,SAAS,EACT,KAAK,EACL,SAAS,EACT,YAAY,EACZ,OAAO,EACP,iBAAiB,EACjB,iBAA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7 +1,7 @@
1
- import { WithLanguage } from "../common";
2
- import { WatchProviderItem } from "../common/media";
3
- import { CountryISO3166_1 } from "../config";
4
- import { ConfigurationCountry } from "../config/configuration";
1
+ import { WithLanguage } from "./common";
2
+ import { WatchProviderItem } from "./common/media";
3
+ import { CountryISO3166_1 } from "./config";
4
+ import { ConfigurationCountry } from "./config/configuration";
5
5
  /**
6
6
  * Parameters supported by watch provider namespace endpoints.
7
7
  */
@@ -32,4 +32,4 @@ export type WatchProviderListResponse = {
32
32
  export type WatchProviderRegionsResponse = {
33
33
  results: ConfigurationCountry[];
34
34
  };
35
- //# sourceMappingURL=watch_providers.d.ts.map
35
+ //# sourceMappingURL=watch-providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch-providers.d.ts","sourceRoot":"","sources":["../../src/types/watch-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG;IACvD,kBAAkB,EAAE,8BAA8B,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,qBAAqB,EAAE,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAC1C,OAAO,EAAE,oBAAoB,EAAE,CAAC;CAChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./logger";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./logger";
@@ -0,0 +1,19 @@
1
+ export type TMDBLoggerEntry = {
2
+ type: "request" | "response" | "error";
3
+ method: "GET";
4
+ endpoint: string;
5
+ status?: number;
6
+ statusText?: string;
7
+ durationMs?: number;
8
+ tmdbStatusCode?: number;
9
+ errorMessage?: string;
10
+ };
11
+ export type TMDBLoggerFn = (entry: TMDBLoggerEntry) => void;
12
+ export declare class TMDBLogger {
13
+ private logger?;
14
+ constructor(logger?: TMDBLoggerFn);
15
+ static from(logger?: boolean | TMDBLoggerFn): TMDBLogger | undefined;
16
+ log(entry: TMDBLoggerEntry): void;
17
+ private static defaultLogger;
18
+ }
19
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IACvC,MAAM,EAAE,KAAK,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;AAE5D,qBAAa,UAAU;IACtB,OAAO,CAAC,MAAM,CAAC,CAAe;gBAElB,MAAM,CAAC,EAAE,YAAY;IAIjC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS;IAOpE,GAAG,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAUjC,OAAO,CAAC,MAAM,CAAC,aAAa;CAoB5B"}