@tdanks2000/tmdb-wrapper 1.0.3 → 1.1.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 (185) hide show
  1. package/README.md +334 -148
  2. package/dist/endpoints/account.js +2 -13
  3. package/dist/endpoints/certification.js +4 -17
  4. package/dist/endpoints/changes.js +6 -21
  5. package/dist/endpoints/collections.js +10 -26
  6. package/dist/endpoints/companies.js +6 -21
  7. package/dist/endpoints/configuration.js +2 -13
  8. package/dist/endpoints/credits.js +2 -13
  9. package/dist/endpoints/discover.js +4 -17
  10. package/dist/endpoints/find.js +2 -13
  11. package/dist/endpoints/genre.js +4 -17
  12. package/dist/endpoints/index.js +3 -0
  13. package/dist/endpoints/keywords.js +4 -17
  14. package/dist/endpoints/movies.js +48 -98
  15. package/dist/endpoints/networks.js +6 -21
  16. package/dist/endpoints/people.js +26 -57
  17. package/dist/endpoints/review.js +2 -13
  18. package/dist/endpoints/search.js +14 -37
  19. package/dist/endpoints/trending.js +2 -13
  20. package/dist/endpoints/tvEpisodes.js +26 -48
  21. package/dist/endpoints/tvSeasons.js +28 -52
  22. package/dist/endpoints/tvShows.js +58 -115
  23. package/dist/endpoints/watchProviders.js +46 -0
  24. package/dist/index.js +3 -0
  25. package/dist/utils/api.js +12 -23
  26. package/dist/utils/getimagePath.js +39 -8
  27. package/package.json +59 -41
  28. package/.github/workflows/npm-publish.yml +0 -33
  29. package/dist/@types/endpoints/account.d.ts +0 -16
  30. package/dist/@types/endpoints/account.d.ts.map +0 -1
  31. package/dist/@types/endpoints/certification.d.ts +0 -19
  32. package/dist/@types/endpoints/certification.d.ts.map +0 -1
  33. package/dist/@types/endpoints/changes.d.ts +0 -26
  34. package/dist/@types/endpoints/changes.d.ts.map +0 -1
  35. package/dist/@types/endpoints/collection.d.ts +0 -21
  36. package/dist/@types/endpoints/collection.d.ts.map +0 -1
  37. package/dist/@types/endpoints/companies.d.ts +0 -29
  38. package/dist/@types/endpoints/companies.d.ts.map +0 -1
  39. package/dist/@types/endpoints/configuration.d.ts +0 -106
  40. package/dist/@types/endpoints/configuration.d.ts.map +0 -1
  41. package/dist/@types/endpoints/credits.d.ts +0 -135
  42. package/dist/@types/endpoints/credits.d.ts.map +0 -1
  43. package/dist/@types/endpoints/discover.d.ts +0 -68
  44. package/dist/@types/endpoints/discover.d.ts.map +0 -1
  45. package/dist/@types/endpoints/find.d.ts +0 -20
  46. package/dist/@types/endpoints/find.d.ts.map +0 -1
  47. package/dist/@types/endpoints/genre.d.ts +0 -7
  48. package/dist/@types/endpoints/genre.d.ts.map +0 -1
  49. package/dist/@types/endpoints/index.d.ts +0 -23
  50. package/dist/@types/endpoints/index.d.ts.map +0 -1
  51. package/dist/@types/endpoints/keywords.d.ts +0 -21
  52. package/dist/@types/endpoints/keywords.d.ts.map +0 -1
  53. package/dist/@types/endpoints/movies.d.ts +0 -150
  54. package/dist/@types/endpoints/movies.d.ts.map +0 -1
  55. package/dist/@types/endpoints/networks.d.ts +0 -14
  56. package/dist/@types/endpoints/networks.d.ts.map +0 -1
  57. package/dist/@types/endpoints/options.d.ts +0 -73
  58. package/dist/@types/endpoints/options.d.ts.map +0 -1
  59. package/dist/@types/endpoints/people.d.ts +0 -135
  60. package/dist/@types/endpoints/people.d.ts.map +0 -1
  61. package/dist/@types/endpoints/review.d.ts +0 -8
  62. package/dist/@types/endpoints/review.d.ts.map +0 -1
  63. package/dist/@types/endpoints/search.d.ts +0 -32
  64. package/dist/@types/endpoints/search.d.ts.map +0 -1
  65. package/dist/@types/endpoints/trending.d.ts +0 -12
  66. package/dist/@types/endpoints/trending.d.ts.map +0 -1
  67. package/dist/@types/endpoints/tvEpisode.d.ts +0 -65
  68. package/dist/@types/endpoints/tvEpisode.d.ts.map +0 -1
  69. package/dist/@types/endpoints/tvSeasons.d.ts +0 -31
  70. package/dist/@types/endpoints/tvSeasons.d.ts.map +0 -1
  71. package/dist/@types/endpoints/tvShows.d.ts +0 -260
  72. package/dist/@types/endpoints/tvShows.d.ts.map +0 -1
  73. package/dist/@types/endpoints/watchProviders.d.ts +0 -295
  74. package/dist/@types/endpoints/watchProviders.d.ts.map +0 -1
  75. package/dist/@types/index.d.ts +0 -4
  76. package/dist/@types/index.d.ts.map +0 -1
  77. package/dist/@types/models/baseEndpoint.d.ts +0 -7
  78. package/dist/@types/models/baseEndpoint.d.ts.map +0 -1
  79. package/dist/@types/models/index.d.ts +0 -2
  80. package/dist/@types/models/index.d.ts.map +0 -1
  81. package/dist/@types/types.d.ts +0 -174
  82. package/dist/@types/types.d.ts.map +0 -1
  83. package/dist/endpoints/account.d.ts +0 -17
  84. package/dist/endpoints/account.d.ts.map +0 -1
  85. package/dist/endpoints/certification.d.ts +0 -23
  86. package/dist/endpoints/certification.d.ts.map +0 -1
  87. package/dist/endpoints/changes.d.ts +0 -31
  88. package/dist/endpoints/changes.d.ts.map +0 -1
  89. package/dist/endpoints/collections.d.ts +0 -34
  90. package/dist/endpoints/collections.d.ts.map +0 -1
  91. package/dist/endpoints/companies.d.ts +0 -31
  92. package/dist/endpoints/companies.d.ts.map +0 -1
  93. package/dist/endpoints/configuration.d.ts +0 -18
  94. package/dist/endpoints/configuration.d.ts.map +0 -1
  95. package/dist/endpoints/credits.d.ts +0 -19
  96. package/dist/endpoints/credits.d.ts.map +0 -1
  97. package/dist/endpoints/discover.d.ts +0 -24
  98. package/dist/endpoints/discover.d.ts.map +0 -1
  99. package/dist/endpoints/find.d.ts +0 -19
  100. package/dist/endpoints/find.d.ts.map +0 -1
  101. package/dist/endpoints/genre.d.ts +0 -25
  102. package/dist/endpoints/genre.d.ts.map +0 -1
  103. package/dist/endpoints/index.d.ts +0 -19
  104. package/dist/endpoints/index.d.ts.map +0 -1
  105. package/dist/endpoints/keywords.d.ts +0 -25
  106. package/dist/endpoints/keywords.d.ts.map +0 -1
  107. package/dist/endpoints/movies.d.ts +0 -142
  108. package/dist/endpoints/movies.d.ts.map +0 -1
  109. package/dist/endpoints/networks.d.ts +0 -31
  110. package/dist/endpoints/networks.d.ts.map +0 -1
  111. package/dist/endpoints/people.d.ts +0 -84
  112. package/dist/endpoints/people.d.ts.map +0 -1
  113. package/dist/endpoints/review.d.ts +0 -18
  114. package/dist/endpoints/review.d.ts.map +0 -1
  115. package/dist/endpoints/search.d.ts +0 -58
  116. package/dist/endpoints/search.d.ts.map +0 -1
  117. package/dist/endpoints/trending.d.ts +0 -21
  118. package/dist/endpoints/trending.d.ts.map +0 -1
  119. package/dist/endpoints/tvEpisodes.d.ts +0 -61
  120. package/dist/endpoints/tvEpisodes.d.ts.map +0 -1
  121. package/dist/endpoints/tvSeasons.d.ts +0 -70
  122. package/dist/endpoints/tvSeasons.d.ts.map +0 -1
  123. package/dist/endpoints/tvShows.d.ts +0 -164
  124. package/dist/endpoints/tvShows.d.ts.map +0 -1
  125. package/dist/index.d.ts +0 -26
  126. package/dist/index.d.ts.map +0 -1
  127. package/dist/utils/api.d.ts +0 -7
  128. package/dist/utils/api.d.ts.map +0 -1
  129. package/dist/utils/getimagePath.d.ts +0 -12
  130. package/dist/utils/getimagePath.d.ts.map +0 -1
  131. package/dist/utils/index.d.ts +0 -3
  132. package/dist/utils/index.d.ts.map +0 -1
  133. package/src/@types/endpoints/account.ts +0 -17
  134. package/src/@types/endpoints/certification.ts +0 -19
  135. package/src/@types/endpoints/changes.ts +0 -29
  136. package/src/@types/endpoints/collection.ts +0 -23
  137. package/src/@types/endpoints/companies.ts +0 -33
  138. package/src/@types/endpoints/configuration.ts +0 -112
  139. package/src/@types/endpoints/credits.ts +0 -149
  140. package/src/@types/endpoints/discover.ts +0 -87
  141. package/src/@types/endpoints/find.ts +0 -28
  142. package/src/@types/endpoints/genre.ts +0 -3
  143. package/src/@types/endpoints/index.ts +0 -22
  144. package/src/@types/endpoints/keywords.ts +0 -24
  145. package/src/@types/endpoints/movies.ts +0 -169
  146. package/src/@types/endpoints/networks.ts +0 -15
  147. package/src/@types/endpoints/options.ts +0 -189
  148. package/src/@types/endpoints/people.ts +0 -151
  149. package/src/@types/endpoints/review.ts +0 -8
  150. package/src/@types/endpoints/search.ts +0 -39
  151. package/src/@types/endpoints/trending.ts +0 -20
  152. package/src/@types/endpoints/tvEpisode.ts +0 -72
  153. package/src/@types/endpoints/tvSeasons.ts +0 -37
  154. package/src/@types/endpoints/tvShows.ts +0 -284
  155. package/src/@types/endpoints/watchProviders.ts +0 -298
  156. package/src/@types/index.ts +0 -3
  157. package/src/@types/models/baseEndpoint.ts +0 -9
  158. package/src/@types/models/index.ts +0 -1
  159. package/src/@types/types.ts +0 -199
  160. package/src/endpoints/account.ts +0 -22
  161. package/src/endpoints/certification.ts +0 -30
  162. package/src/endpoints/changes.ts +0 -41
  163. package/src/endpoints/collections.ts +0 -57
  164. package/src/endpoints/companies.ts +0 -41
  165. package/src/endpoints/configuration.ts +0 -22
  166. package/src/endpoints/credits.ts +0 -23
  167. package/src/endpoints/discover.ts +0 -40
  168. package/src/endpoints/find.ts +0 -24
  169. package/src/endpoints/genre.ts +0 -32
  170. package/src/endpoints/index.ts +0 -18
  171. package/src/endpoints/keywords.ts +0 -35
  172. package/src/endpoints/movies.ts +0 -244
  173. package/src/endpoints/networks.ts +0 -41
  174. package/src/endpoints/people.ts +0 -147
  175. package/src/endpoints/review.ts +0 -23
  176. package/src/endpoints/search.ts +0 -93
  177. package/src/endpoints/trending.ts +0 -30
  178. package/src/endpoints/tvEpisodes.ts +0 -125
  179. package/src/endpoints/tvSeasons.ts +0 -138
  180. package/src/endpoints/tvShows.ts +0 -286
  181. package/src/index.ts +0 -66
  182. package/src/utils/api.ts +0 -31
  183. package/src/utils/getimagePath.ts +0 -16
  184. package/src/utils/index.ts +0 -2
  185. package/tsconfig.json +0 -101
@@ -1,164 +0,0 @@
1
- import { AggregateCredits, AlternativeTitles, AppendToResponse, AppendToResponseTvKey, BaseEndpoint, ChangeOption, Changes, ContentRatings, Credits, EpisodeGroups, ExternalIds, Images, Keywords, LanguageOption, Latesttv, OnTheAir, PageOption, Populartv, Recommendations, Reviews, ScreenedTheatrically, SeasonDetails, Similartv, TimezoneOption, TopRatedtv, Translations, TvShowChangeValue, TvShowDetails, TvShowImageOptions, TvShowVideoOptions, Videos, WatchProviders, tvAiringToday } from '../@types';
2
- /**
3
- * Represents an endpoint for accessing TV show-related information.
4
- */
5
- export declare class TvShowsEndpoint extends BaseEndpoint {
6
- protected readonly access_token: string;
7
- /**
8
- * Constructs a new TvShowsEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: string);
12
- /**
13
- * Retrieves details of a specific TV show asynchronously.
14
- * @param {number} id - The ID of the TV show.
15
- * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
16
- * @param {string} [language] - The language for the response.
17
- * @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
18
- * A Promise that resolves with the details of the TV show.
19
- */
20
- details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, 'tvShow'>>;
21
- /**
22
- * Retrieves alternative titles of a specific TV show asynchronously.
23
- * @param {number} id - The ID of the TV show.
24
- * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the TV show.
25
- */
26
- alternativeTitles(id: number): Promise<AlternativeTitles>;
27
- /**
28
- * Retrieves changes for a specific TV show asynchronously.
29
- * @param {number} id - The ID of the TV show.
30
- * @param {ChangeOption} [options] - Additional options for the request.
31
- * @returns {Promise<Changes<TvShowChangeValue>>}
32
- * A Promise that resolves with the changes for the TV show.
33
- */
34
- changes(id: number, options?: ChangeOption): Promise<Changes<TvShowChangeValue>>;
35
- /**
36
- * Retrieves content ratings for a specific TV show asynchronously.
37
- * @param {number} id - The ID of the TV show.
38
- * @returns {Promise<ContentRatings>} A Promise that resolves with the content ratings of the TV show.
39
- */
40
- contentRatings(id: number): Promise<ContentRatings>;
41
- /**
42
- * Retrieves aggregate credits for a specific TV show asynchronously.
43
- * @param {number} id - The ID of the TV show.
44
- * @param {LanguageOption} [options] - Additional options for the request.
45
- * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits of the TV show.
46
- */
47
- aggregateCredits(id: number, options?: LanguageOption): Promise<AggregateCredits>;
48
- /**
49
- * Retrieves credits for a specific TV show asynchronously.
50
- * @param {number} id - The ID of the TV show.
51
- * @param {LanguageOption} [options] - Additional options for the request.
52
- * @returns {Promise<Credits>} A Promise that resolves with the credits of the TV show.
53
- */
54
- credits(id: number, options?: LanguageOption): Promise<Credits>;
55
- /**
56
- * Retrieves details of a specific season of a TV show asynchronously.
57
- * @param {number} tvId - The ID of the TV show.
58
- * @param {number} seasonNumber - The season number.
59
- * @returns {Promise<SeasonDetails>} A Promise that resolves with the details of the season.
60
- */
61
- season(tvId: number, seasonNumber: number): Promise<SeasonDetails>;
62
- /**
63
- * Retrieves episode groups for a specific TV show asynchronously.
64
- * @param {number} id - The ID of the TV show.
65
- * @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode groups of the TV show.
66
- */
67
- episodeGroups(id: number): Promise<EpisodeGroups>;
68
- /**
69
- * Retrieves external IDs for a specific TV show asynchronously.
70
- * @param {number} id - The ID of the TV show.
71
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the TV show.
72
- */
73
- externalIds(id: number): Promise<ExternalIds>;
74
- /**
75
- * Retrieves images for a specific TV show asynchronously.
76
- * @param {number} id - The ID of the TV show.
77
- * @param {TvShowImageOptions} [options] - Additional options for the request.
78
- * @returns {Promise<Images>} A Promise that resolves with the images of the TV show.
79
- */
80
- images(id: number, options?: TvShowImageOptions): Promise<Images>;
81
- /**
82
- * Retrieves keywords for a specific TV show asynchronously.
83
- * @param {number} id - The ID of the TV show.
84
- * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the TV show.
85
- */
86
- keywords(id: number): Promise<Keywords>;
87
- /**
88
- * Retrieves recommendations for a specific TV show asynchronously.
89
- * @param {number} id - The ID of the TV show.
90
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
91
- * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the TV show.
92
- */
93
- recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
94
- /**
95
- * Retrieves reviews for a specific TV show asynchronously.
96
- * @param {number} id - The ID of the TV show.
97
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
98
- * @returns {Promise<Reviews>} A Promise that resolves with the reviews of the TV show.
99
- */
100
- reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
101
- /**
102
- * Retrieves information about whether the TV show was screened theatrically asynchronously.
103
- * @param {number} id - The ID of the TV show.
104
- * @returns {Promise<ScreenedTheatrically>} A Promise that resolves with information about theatrical screenings.
105
- */
106
- screenedTheatrically(id: number): Promise<ScreenedTheatrically>;
107
- /**
108
- * Retrieves similar TV shows for a specific TV show asynchronously.
109
- * @param {number} id - The ID of the TV show.
110
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
111
- * @returns {Promise<Similartv>} A Promise that resolves with the similar TV shows.
112
- */
113
- similar(id: number, options?: LanguageOption & PageOption): Promise<Similartv>;
114
- /**
115
- * Retrieves translations for a specific TV show asynchronously.
116
- * @param {number} id - The ID of the TV show.
117
- * @returns {Promise<Translations>} A Promise that resolves with the translations of the TV show.
118
- */
119
- translations(id: number): Promise<Translations>;
120
- /**
121
- * Retrieves videos for a specific TV show asynchronously.
122
- * @param {number} id - The ID of the TV show.
123
- * @param {TvShowVideoOptions} [options] - Additional options for the request.
124
- * @returns {Promise<Videos>} A Promise that resolves with the videos of the TV show.
125
- */
126
- videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
127
- /**
128
- * Retrieves watch providers for a specific TV show asynchronously.
129
- * Powered by JustWatch.
130
- * @param {number} id - The ID of the TV show.
131
- * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the TV show.
132
- */
133
- watchProviders(id: number): Promise<WatchProviders>;
134
- /**
135
- * Retrieves the latest TV show asynchronously.
136
- * @returns {Promise<Latesttv>} A Promise that resolves with the latest TV show.
137
- */
138
- latest(): Promise<Latesttv>;
139
- /**
140
- * Retrieves TV shows that are currently on the air asynchronously.
141
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
142
- * @returns {Promise<OnTheAir>} A Promise that resolves with TV shows currently on the air.
143
- */
144
- onTheAir(options?: PageOption & LanguageOption & TimezoneOption): Promise<OnTheAir>;
145
- /**
146
- * Retrieves TV shows that are airing today asynchronously.
147
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
148
- * @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows airing today.
149
- */
150
- airingToday(options?: PageOption & LanguageOption & TimezoneOption): Promise<tvAiringToday>;
151
- /**
152
- * Retrieves popular TV shows asynchronously.
153
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
154
- * @returns {Promise<Populartv>} A Promise that resolves with popular TV shows.
155
- */
156
- popular(options?: PageOption & LanguageOption): Promise<Populartv>;
157
- /**
158
- * Retrieves top-rated TV shows asynchronously.
159
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
160
- * @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV shows.
161
- */
162
- topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
163
- }
164
- //# sourceMappingURL=tvShows.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tvShows.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvShows.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,cAAc,EACd,OAAO,EACP,aAAa,EACb,WAAW,EACX,MAAM,EACN,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,EACd,UAAU,EACV,YAAY,EACZ,i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,GAAG,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAIjG;;;;OAIG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAIxE;;;;OAIG;IACG,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;CAG3E"}
package/dist/index.d.ts DELETED
@@ -1,26 +0,0 @@
1
- import { AccountEndpoint, CertificationEndpoint, ChangeEndpoint, CollectionsEndpoint, ConfigurationEndpoint, CreditsEndpoint, DiscoverEndpoint, FindEndpoint, GenreEndpoint, KeywordsEndpoint, MoviesEndpoint, PeopleEndpoint, ReviewEndpoint, SearchEndpoint, TrendingEndpoint, TvEpisodesEndpoint, TvSeasonsEndpoint, TvShowsEndpoint } from './endpoints';
2
- declare class TMDB {
3
- constructor(access_token: string);
4
- account: AccountEndpoint;
5
- certification: CertificationEndpoint;
6
- changes: ChangeEndpoint;
7
- collections: CollectionsEndpoint;
8
- configuration: ConfigurationEndpoint;
9
- credits: CreditsEndpoint;
10
- discover: DiscoverEndpoint;
11
- find: FindEndpoint;
12
- genre: GenreEndpoint;
13
- keywords: KeywordsEndpoint;
14
- movies: MoviesEndpoint;
15
- people: PeopleEndpoint;
16
- review: ReviewEndpoint;
17
- search: SearchEndpoint;
18
- trending: TrendingEndpoint;
19
- tvEpisodes: TvEpisodesEndpoint;
20
- tvSeasons: TvSeasonsEndpoint;
21
- tvShows: TvShowsEndpoint;
22
- }
23
- export * from './@types';
24
- export * from './utils';
25
- export { TMDB };
26
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,cAAM,IAAI;gBACI,YAAY,EAAE,MAAM;IAqBhC,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,qBAAqB,CAAC;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,WAAW,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,qBAAqB,CAAC;IACrC,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare class API {
2
- private access_token;
3
- constructor(access_token: string);
4
- get<T>(path: string, options?: Record<string, any>): Promise<T>;
5
- }
6
- export declare const parseOptions: (options?: Record<string, any>) => string;
7
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAIA,qBAAa,GAAG;IACd,OAAO,CAAC,YAAY,CAAS;gBACjB,YAAY,EAAE,MAAM;IAI1B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAgBtE;AAED,eAAO,MAAM,YAAY,aAAc,OAAO,MAAM,EAAE,GAAG,CAAC,KAAG,MAE5D,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Utility method to construct full url for image
3
- * based on configuration
4
- *
5
- * https://developers.themoviedb.org/3/getting-started/images
6
- * @param {string} baseUrl base image url
7
- * @param {string} fileSize file size
8
- * @param {string} imagePath raw image path
9
- * @param {boolean} svg get svg version if true
10
- */
11
- export declare const getFullImagePath: (baseUrl: string, fileSize: string, imagePath: string, svg?: boolean) => string;
12
- //# sourceMappingURL=getimagePath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getimagePath.d.ts","sourceRoot":"","sources":["../../src/utils/getimagePath.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,YAAa,MAAM,YAAY,MAAM,aAAa,MAAM,oBAAgB,MAKpG,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './api';
2
- export * from './getimagePath';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC"}
@@ -1,17 +0,0 @@
1
- export interface Gravatar {
2
- hash: string;
3
- }
4
-
5
- export interface Avatar {
6
- gravatar: Gravatar;
7
- }
8
-
9
- export interface AccountDetails {
10
- avatar: Avatar;
11
- id: number;
12
- include_adult: boolean;
13
- iso_3166_1: string;
14
- iso_639_1: string;
15
- name: string;
16
- username: string;
17
- }
@@ -1,19 +0,0 @@
1
- export interface Certification {
2
- certification: string;
3
- meaning: string;
4
- order: number;
5
- }
6
-
7
- export interface Certifications {
8
- certifications: {
9
- US: Certification[];
10
- CA: Certification[];
11
- DE: Certification[];
12
- GB: Certification[];
13
- AU: Certification[];
14
- BR: Certification[];
15
- FR: Certification[];
16
- NZ: Certification[];
17
- IN: Certification[];
18
- };
19
- }
@@ -1,29 +0,0 @@
1
- export interface MediaChange {
2
- id: number;
3
- adult: boolean | undefined;
4
- }
5
-
6
- export interface MediaChanges {
7
- results: MediaChange[];
8
- page: number;
9
- total_pages: number;
10
- total_results: number;
11
- }
12
-
13
- export interface Changes<T> {
14
- changes: Change<T>[];
15
- }
16
-
17
- export interface Change<T> {
18
- key: string;
19
- items: ChangeItem<T>[];
20
- }
21
-
22
- export interface ChangeItem<T> {
23
- id: string;
24
- action: string;
25
- time: string;
26
- value: T;
27
- iso_639_1: string;
28
- original_value: T;
29
- }
@@ -1,23 +0,0 @@
1
- import { LanguageOption, Movie } from '..';
2
-
3
- export interface Collection {
4
- id: number;
5
- backdrop_path: string;
6
- name: string;
7
- poster_path: string;
8
- adult: boolean;
9
- original_language: string;
10
- original_name: string;
11
- overview: string;
12
- }
13
-
14
- export interface DetailedCollection extends Collection {
15
- parts: Movie[];
16
- }
17
-
18
- export interface CollectionImageOptions extends LanguageOption {
19
- /**
20
- * a list of ISO-639-1 values to query
21
- */
22
- include_image_language?: string[];
23
- }
@@ -1,33 +0,0 @@
1
- import { Image } from '..';
2
-
3
- export interface CompanyDetails {
4
- description: string;
5
- headquarters: string;
6
- homepage: string;
7
- id: number;
8
- logo_path: string;
9
- name: string;
10
- origin_country: string;
11
- parent_company: ParentCompany;
12
- }
13
-
14
- export interface ParentCompany {
15
- name: string;
16
- id: number;
17
- logo_path: string;
18
- }
19
-
20
- export interface AlternativeNames {
21
- id: number;
22
- results: Name[];
23
- }
24
-
25
- export interface Name {
26
- name: string;
27
- type: string;
28
- }
29
-
30
- export interface CompanyImages {
31
- id: number;
32
- logos: Image[];
33
- }
@@ -1,112 +0,0 @@
1
- export interface ImageConfiguration {
2
- base_url: string;
3
- secure_base_url: string;
4
- backdrop_sizes: BackdropSizes[];
5
- logo_sizes: LogoSizes[];
6
- poster_sizes: PosterSizes[];
7
- profile_sizes: ProfileSizes[];
8
- still_sizes: StillSizes[];
9
- }
10
-
11
- export interface Configuration {
12
- images: ImageConfiguration;
13
- change_keys: ChangeKeys[];
14
- }
15
-
16
- export const enum BackdropSizes {
17
- W300 = 'w300',
18
- W500 = 'w500',
19
- W780 = 'w780',
20
- W1280 = 'w1280',
21
- ORIGINAL = 'original',
22
- }
23
-
24
- export const enum LogoSizes {
25
- W45 = 'w45',
26
- W92 = 'w92',
27
- W154 = 'w154',
28
- W185 = 'w185',
29
- W300 = 'w300',
30
- W500 = 'w500',
31
- ORIGINAL = 'original',
32
- }
33
-
34
- export const enum PosterSizes {
35
- W92 = 'w92',
36
- W154 = 'w154',
37
- W185 = 'w185',
38
- W300 = 'w300',
39
- W500 = 'w500',
40
- W780 = 'w780',
41
- ORIGINAL = 'original',
42
- }
43
-
44
- export const enum ProfileSizes {
45
- W45 = 'w45',
46
- W185 = 'w185',
47
- W632 = 'w632',
48
- ORIGINAL = 'original',
49
- }
50
-
51
- export const enum StillSizes {
52
- W92 = 'w92',
53
- W185 = 'w185',
54
- W300 = 'w300',
55
- ORIGINAL = 'original',
56
- }
57
-
58
- export const enum ChangeKeys {
59
- ADULT = 'adult',
60
- AIR_DATE = 'air_date',
61
- ALSO_KNOWN_AS = 'also_known_as',
62
- ALTERNATIVE_TITLES = 'alternative_titles',
63
- BIOGRAPHY = 'biography',
64
- BIRTHDAY = 'birthday',
65
- BUDGET = 'budget',
66
- CAST = 'cast',
67
- CERTIFICATIONS = 'certifications',
68
- CHARACTER_NAMES = 'character_names',
69
- CREATED_BY = 'created_by',
70
- CREW = 'crew',
71
- DEATHDAY = 'deathday',
72
- EPISODE = 'episode',
73
- EPISODE_NUMBER = 'episode_number',
74
- EPISODE_RUN_TIME = 'episode_run_time',
75
- FREEBASE_ID = 'freebase_id',
76
- FREEBASE_MID = 'freebase_mid',
77
- GENERAL = 'general',
78
- GENRES = 'genres',
79
- GUEST_STARS = 'guest_stars',
80
- HOMEPAGE = 'homepage',
81
- IMAGES = 'images',
82
- IMDB_ID = 'imdb_id',
83
- LANGUAGES = 'languages',
84
- NAME = 'name',
85
- NETWORK = 'network',
86
- ORIGIN_COUNTRY = 'origin_country',
87
- ORIGINAL_NAME = 'original_name',
88
- ORIGINAL_TITLE = 'original_title',
89
- OVERVIEW = 'overview',
90
- PARTS = 'parts',
91
- PLACE_OF_BIRTH = 'place_of_birth',
92
- PLOT_KEYWORDS = 'plot_keywords',
93
- PRODUCTION_CODE = 'production_code',
94
- PRODUCTION_COMPANIES = 'production_companies',
95
- PRODUCTION_COUNTRIES = 'production_countries',
96
- RELEASES = 'releases',
97
- REVENUE = 'revenue',
98
- RUNTIME = 'runtime',
99
- SEASON = 'season',
100
- SEASON_NUMBER = 'season_number',
101
- SEASON_REGULAR = 'season_regular',
102
- SPOKEN_LANGUAGES = 'spoken_languages',
103
- STATUS = 'status',
104
- TAGLINE = 'tagline',
105
- TITLE = 'title',
106
- TRANSLATIONS = 'translations',
107
- TVDB_ID = 'tvdb_id',
108
- TVRAGE_ID = 'tvrage_id',
109
- TYPE = 'type',
110
- VIDEO = 'video',
111
- VIDEOS = 'videos',
112
- }
@@ -1,149 +0,0 @@
1
- import { Image, Person } from '..';
2
-
3
- export interface CreditSeason {
4
- air_date?: string;
5
- poster_path?: string;
6
- season_number?: number;
7
- }
8
-
9
- export interface Media {
10
- i?: number;
11
- name?: string;
12
- first_air_date?: string;
13
- vote_count?: number;
14
- overview?: string;
15
- vote_average?: number;
16
- backdrop_path?: string;
17
- genre_ids?: number[];
18
- original_name?: string;
19
- origin_country?: string[];
20
- poster_path?: string;
21
- original_language?: string;
22
- popularity?: number;
23
- character?: string;
24
- episodes?: string[];
25
- seasons?: CreditSeason[];
26
- }
27
-
28
- export interface CreditResponse {
29
- credit_type?: string;
30
- department?: string;
31
- job?: string;
32
- media?: Media;
33
- media_type?: string;
34
- id?: string;
35
- person?: Person;
36
- }
37
-
38
- export interface Title {
39
- iso_3166_1: string;
40
- title: string;
41
- type: string;
42
- }
43
-
44
- export interface AlternativeTitles {
45
- id: number;
46
- titles: Title[];
47
- }
48
-
49
- export interface Cast {
50
- adult: boolean;
51
- gender: number;
52
- id: number;
53
- known_for_department: string;
54
- name: string;
55
- original_name: string;
56
- popularity: number;
57
- profile_path: string;
58
- cast_id: number;
59
- character: string;
60
- credit_id: string;
61
- order: number;
62
- }
63
-
64
- export interface Crew {
65
- adult: boolean;
66
- gender: number;
67
- id: number;
68
- known_for_department: string;
69
- name: string;
70
- original_name: string;
71
- popularity: number;
72
- profile_path: string;
73
- credit_id: string;
74
- department: string;
75
- job: string;
76
- }
77
-
78
- export interface Credits {
79
- id: number;
80
- cast: Cast[];
81
- crew: Crew[];
82
- }
83
-
84
- export interface ImageCollection {
85
- id: number;
86
- backdrops: Image[];
87
- posters: Image[];
88
- }
89
- export interface Video {
90
- id: string;
91
- iso_639_1: string;
92
- iso_3166_1: string;
93
- key: string;
94
- name: string;
95
- site: string;
96
- size: number;
97
- type: string;
98
- }
99
-
100
- export interface Videos {
101
- id: number;
102
- results: Video[];
103
- }
104
-
105
- export interface AggregateCredits {
106
- id: number;
107
- cast: AggregateCast[];
108
- crew: AggregateCrew[];
109
- }
110
-
111
- export interface CastRole {
112
- credit_id: string;
113
- character: string;
114
- episode_count: number;
115
- }
116
-
117
- export interface AggregateCast {
118
- adult: boolean;
119
- gender: number;
120
- id: number;
121
- known_for_department: string;
122
- name: string;
123
- original_name: string;
124
- popularity: number;
125
- profile_path: string;
126
- roles: CastRole[];
127
- total_episode_count: number;
128
- order: number;
129
- }
130
-
131
- export interface CrewJob {
132
- credit_id: string;
133
- job: string;
134
- episode_count: number;
135
- }
136
-
137
- export interface AggregateCrew {
138
- adult: boolean;
139
- gender: number;
140
- id: number;
141
- known_for_department: string;
142
- name: string;
143
- original_name: string;
144
- popularity: number;
145
- profile_path: string;
146
- jobs: CrewJob[];
147
- department: string;
148
- total_episode_count: number;
149
- }