@kenzuya/tmdb-ts 2.0.4 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -84,46 +84,81 @@ class ChangeEndpoint extends BaseEndpoint {
84
84
  return await this.api.get("/person/changes", options);
85
85
  }
86
86
  }
87
- // src/endpoints/credits.ts
88
- class CreditsEndpoint extends BaseEndpoint {
87
+ // src/endpoints/collections.ts
88
+ var BASE_COLLECTION = "/collection";
89
+
90
+ class CollectionsEndpoint extends BaseEndpoint {
89
91
  accessToken;
90
92
  constructor(accessToken) {
91
93
  super(accessToken);
92
94
  this.accessToken = accessToken;
93
95
  }
94
- async getById(id) {
95
- return await this.api.get(`/credit/${id}`);
96
+ async details(id, options) {
97
+ return await this.api.get(`${BASE_COLLECTION}/${id}`, options);
98
+ }
99
+ async images(id, options) {
100
+ const computedOptions = {
101
+ include_image_language: options?.include_image_language?.join(","),
102
+ language: options?.language
103
+ };
104
+ return await this.api.get(`${BASE_COLLECTION}/${id}/images`, computedOptions);
105
+ }
106
+ async translations(id, options) {
107
+ return await this.api.get(`${BASE_COLLECTION}/${id}/translations`, options);
96
108
  }
97
109
  }
98
- // src/endpoints/search.ts
99
- var BASE_SEARCH = "/search";
100
-
101
- class SearchEndpoint extends BaseEndpoint {
110
+ // src/endpoints/configuration.ts
111
+ class ConfigurationEndpoint extends BaseEndpoint {
102
112
  accessToken;
103
113
  constructor(accessToken) {
104
114
  super(accessToken);
105
115
  this.accessToken = accessToken;
106
116
  }
107
- async companies(options) {
108
- return await this.api.get(`${BASE_SEARCH}/company`, options);
117
+ async getApiConfiguration() {
118
+ return await this.api.get("/configuration");
109
119
  }
110
- async collections(options) {
111
- return await this.api.get(`${BASE_SEARCH}/collection`, options);
120
+ async getCountries() {
121
+ return await this.api.get("/configuration/countries");
112
122
  }
113
- async keywords(options) {
114
- return await this.api.get(`${BASE_SEARCH}/keyword`, options);
123
+ async getLanguages() {
124
+ return await this.api.get("/configuration/languages");
115
125
  }
116
- async movies(options) {
117
- return await this.api.get(`${BASE_SEARCH}/movie`, options);
126
+ async getJobs() {
127
+ return await this.api.get("/configuration/jobs");
118
128
  }
119
- async people(options) {
120
- return await this.api.get(`${BASE_SEARCH}/person`, options);
129
+ async getPrimaryTranslations() {
130
+ return await this.api.get("/configuration/primary_translations");
121
131
  }
122
- async tvShows(options) {
123
- return await this.api.get(`${BASE_SEARCH}/tv`, options);
132
+ async getTimezones() {
133
+ return await this.api.get("/configuration/timezones");
124
134
  }
125
- async multi(options) {
126
- return await this.api.get(`${BASE_SEARCH}/multi`, options);
135
+ }
136
+ // src/endpoints/credits.ts
137
+ class CreditsEndpoint extends BaseEndpoint {
138
+ accessToken;
139
+ constructor(accessToken) {
140
+ super(accessToken);
141
+ this.accessToken = accessToken;
142
+ }
143
+ async getById(id) {
144
+ return await this.api.get(`/credit/${id}`);
145
+ }
146
+ }
147
+ // src/endpoints/discover.ts
148
+ var BASE_DISCOVER = "/discover";
149
+
150
+ class DiscoverEndpoint extends BaseEndpoint {
151
+ async movie(options) {
152
+ return await this.api.get(`${BASE_DISCOVER}/movie`, options);
153
+ }
154
+ async tvShow(options) {
155
+ return await this.api.get(`${BASE_DISCOVER}/tv`, options);
156
+ }
157
+ }
158
+ // src/endpoints/find.ts
159
+ class FindEndpoint extends BaseEndpoint {
160
+ async byExternalId(id, options) {
161
+ return await this.api.get(`/find/${id}`, options);
127
162
  }
128
163
  }
129
164
  // src/endpoints/genre.ts
@@ -140,6 +175,17 @@ class GenreEndpoint extends BaseEndpoint {
140
175
  return await this.api.get("/genre/tv/list", options);
141
176
  }
142
177
  }
178
+ // src/endpoints/keywords.ts
179
+ var BASE_Keyword = "/keyword";
180
+
181
+ class KeywordsEndpoint extends BaseEndpoint {
182
+ async details(keywordId) {
183
+ return await this.api.get(`${BASE_Keyword}/${keywordId}`);
184
+ }
185
+ async belongingMovies(keywordId, options) {
186
+ return await this.api.get(`${BASE_Keyword}/${keywordId}/movies`, options);
187
+ }
188
+ }
143
189
  // src/endpoints/movies.ts
144
190
  var BASE_MOVIE = "/movie";
145
191
 
@@ -218,134 +264,6 @@ class MoviesEndpoint extends BaseEndpoint {
218
264
  return await this.api.get(`${BASE_MOVIE}/upcoming`, options);
219
265
  }
220
266
  }
221
- // src/endpoints/configuration.ts
222
- class ConfigurationEndpoint extends BaseEndpoint {
223
- accessToken;
224
- constructor(accessToken) {
225
- super(accessToken);
226
- this.accessToken = accessToken;
227
- }
228
- async getApiConfiguration() {
229
- return await this.api.get("/configuration");
230
- }
231
- async getCountries() {
232
- return await this.api.get("/configuration/countries");
233
- }
234
- async getLanguages() {
235
- return await this.api.get("/configuration/languages");
236
- }
237
- async getJobs() {
238
- return await this.api.get("/configuration/jobs");
239
- }
240
- async getPrimaryTranslations() {
241
- return await this.api.get("/configuration/primary_translations");
242
- }
243
- async getTimezones() {
244
- return await this.api.get("/configuration/timezones");
245
- }
246
- }
247
- // src/endpoints/tv-shows.ts
248
- var BASE_TV = "/tv";
249
-
250
- class TvShowsEndpoint extends BaseEndpoint {
251
- accessToken;
252
- constructor(accessToken) {
253
- super(accessToken);
254
- this.accessToken = accessToken;
255
- }
256
- async details(id, appendToResponse, language) {
257
- const options = {
258
- append_to_response: appendToResponse ? appendToResponse.join(",") : undefined,
259
- language
260
- };
261
- return await this.api.get(`${BASE_TV}/${id}`, options);
262
- }
263
- async alternativeTitles(id) {
264
- return await this.api.get(`${BASE_TV}/${id}/alternative_titles`);
265
- }
266
- async changes(id, options) {
267
- return await this.api.get(`${BASE_TV}/${id}/changes`, options);
268
- }
269
- async contentRatings(id) {
270
- return await this.api.get(`${BASE_TV}/${id}/content_ratings`);
271
- }
272
- async aggregateCredits(id, options) {
273
- return await this.api.get(`${BASE_TV}/${id}/aggregate_credits`, options);
274
- }
275
- async credits(id, options) {
276
- return await this.api.get(`${BASE_TV}/${id}/credits`, options);
277
- }
278
- async season(tvId, seasonNumber) {
279
- return await this.api.get(`${BASE_TV}/${tvId}/season/${seasonNumber}`);
280
- }
281
- async episodeGroups(id) {
282
- return await this.api.get(`${BASE_TV}/${id}/episode_groups`);
283
- }
284
- async externalIds(id) {
285
- return await this.api.get(`${BASE_TV}/${id}/external_ids`);
286
- }
287
- async images(id, options) {
288
- const computedOptions = {
289
- include_image_language: options?.include_image_language?.join(","),
290
- language: options?.language
291
- };
292
- return await this.api.get(`${BASE_TV}/${id}/images`, computedOptions);
293
- }
294
- async keywords(id) {
295
- return await this.api.get(`${BASE_TV}/${id}/keywords`);
296
- }
297
- async recommendations(id, options) {
298
- return await this.api.get(`${BASE_TV}/${id}/recommendations`, options);
299
- }
300
- async reviews(id, options) {
301
- return await this.api.get(`${BASE_TV}/${id}/reviews`, options);
302
- }
303
- async screenedTheatrically(id) {
304
- return await this.api.get(`${BASE_TV}/${id}/screened_theatrically`);
305
- }
306
- async similar(id, options) {
307
- return await this.api.get(`${BASE_TV}/${id}/similar`, options);
308
- }
309
- async translations(id) {
310
- return await this.api.get(`${BASE_TV}/${id}/translations`);
311
- }
312
- async videos(id, options) {
313
- const computedOptions = {
314
- include_video_language: options?.include_video_language?.join(","),
315
- language: options?.language
316
- };
317
- return await this.api.get(`${BASE_TV}/${id}/videos`, computedOptions);
318
- }
319
- async watchProviders(id) {
320
- return await this.api.get(`${BASE_TV}/${id}/watch/providers`);
321
- }
322
- async latest() {
323
- return await this.api.get(`${BASE_TV}/latest`);
324
- }
325
- async onTheAir(options) {
326
- return await this.api.get(`${BASE_TV}/on_the_air`, options);
327
- }
328
- async airingToday(options) {
329
- return await this.api.get(`${BASE_TV}/airing_today`, options);
330
- }
331
- async popular(options) {
332
- return await this.api.get(`${BASE_TV}/popular`, options);
333
- }
334
- async topRated(options) {
335
- return await this.api.get(`${BASE_TV}/top_rated`, options);
336
- }
337
- }
338
- // src/endpoints/discover.ts
339
- var BASE_DISCOVER = "/discover";
340
-
341
- class DiscoverEndpoint extends BaseEndpoint {
342
- async movie(options) {
343
- return await this.api.get(`${BASE_DISCOVER}/movie`, options);
344
- }
345
- async tvShow(options) {
346
- return await this.api.get(`${BASE_DISCOVER}/tv`, options);
347
- }
348
- }
349
267
  // src/endpoints/people.ts
350
268
  var BASE_PERSON = "/person";
351
269
 
@@ -394,50 +312,81 @@ class ReviewEndpoint extends BaseEndpoint {
394
312
  return await this.api.get(`/review/${id}`);
395
313
  }
396
314
  }
315
+ // src/endpoints/search.ts
316
+ var BASE_SEARCH = "/search";
317
+
318
+ class SearchEndpoint extends BaseEndpoint {
319
+ accessToken;
320
+ constructor(accessToken) {
321
+ super(accessToken);
322
+ this.accessToken = accessToken;
323
+ }
324
+ async companies(options) {
325
+ return await this.api.get(`${BASE_SEARCH}/company`, options);
326
+ }
327
+ async collections(options) {
328
+ return await this.api.get(`${BASE_SEARCH}/collection`, options);
329
+ }
330
+ async keywords(options) {
331
+ return await this.api.get(`${BASE_SEARCH}/keyword`, options);
332
+ }
333
+ async movies(options) {
334
+ return await this.api.get(`${BASE_SEARCH}/movie`, options);
335
+ }
336
+ async people(options) {
337
+ return await this.api.get(`${BASE_SEARCH}/person`, options);
338
+ }
339
+ async tvShows(options) {
340
+ return await this.api.get(`${BASE_SEARCH}/tv`, options);
341
+ }
342
+ async multi(options) {
343
+ return await this.api.get(`${BASE_SEARCH}/multi`, options);
344
+ }
345
+ }
397
346
  // src/endpoints/trending.ts
398
347
  class TrendingEndpoint extends BaseEndpoint {
399
348
  async trending(mediaType, timeWindow, options) {
400
349
  return await this.api.get(`/trending/${mediaType}/${timeWindow}`, options);
401
350
  }
402
351
  }
403
- // src/endpoints/find.ts
404
- class FindEndpoint extends BaseEndpoint {
405
- async byExternalId(id, options) {
406
- return await this.api.get(`/find/${id}`, options);
407
- }
408
- }
409
- // src/endpoints/keywords.ts
410
- var BASE_Keyword = "/keyword";
352
+ // src/endpoints/tv-episode.ts
353
+ var BASE_EPISODE = (episodeSelection) => {
354
+ return `/tv/${episodeSelection.tvShowID}/season/${episodeSelection.seasonNumber}/episode/${episodeSelection.episodeNumber}`;
355
+ };
411
356
 
412
- class KeywordsEndpoint extends BaseEndpoint {
413
- async details(keywordId) {
414
- return await this.api.get(`${BASE_Keyword}/${keywordId}`);
357
+ class TvEpisodesEndpoint extends BaseEndpoint {
358
+ async details(episodeSelection, appendToResponse, options) {
359
+ const combinedOptions = {
360
+ append_to_response: appendToResponse ? appendToResponse.join(",") : undefined,
361
+ ...options
362
+ };
363
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}`, combinedOptions);
415
364
  }
416
- async belongingMovies(keywordId, options) {
417
- return await this.api.get(`${BASE_Keyword}/${keywordId}/movies`, options);
365
+ async changes(episodeID, options) {
366
+ return await this.api.get(`/tv/episode/${episodeID}/changes`, options);
418
367
  }
419
- }
420
- // src/endpoints/collections.ts
421
- var BASE_COLLECTION = "/collection";
422
-
423
- class CollectionsEndpoint extends BaseEndpoint {
424
- accessToken;
425
- constructor(accessToken) {
426
- super(accessToken);
427
- this.accessToken = accessToken;
368
+ async credits(episodeSelection, options) {
369
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/credits`, options);
428
370
  }
429
- async details(id, options) {
430
- return await this.api.get(`${BASE_COLLECTION}/${id}`, options);
371
+ async externalIds(episodeSelection) {
372
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/external_ids`);
431
373
  }
432
- async images(id, options) {
374
+ async images(episodeSelection, options) {
433
375
  const computedOptions = {
434
376
  include_image_language: options?.include_image_language?.join(","),
435
377
  language: options?.language
436
378
  };
437
- return await this.api.get(`${BASE_COLLECTION}/${id}/images`, computedOptions);
379
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/images`, computedOptions);
438
380
  }
439
- async translations(id, options) {
440
- return await this.api.get(`${BASE_COLLECTION}/${id}/translations`, options);
381
+ async translations(episodeSelection) {
382
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/translations`);
383
+ }
384
+ async videos(episodeSelection, options) {
385
+ const computedOptions = {
386
+ include_video_language: options?.include_video_language?.join(","),
387
+ language: options?.language
388
+ };
389
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/videos`, computedOptions);
441
390
  }
442
391
  }
443
392
  // src/endpoints/tv-seasons.ts
@@ -483,44 +432,95 @@ class TvSeasonsEndpoint extends BaseEndpoint {
483
432
  return await this.api.get(`${BASE_SEASON(seasonSelection)}/translations`, options);
484
433
  }
485
434
  }
486
- // src/endpoints/tv-episode.ts
487
- var BASE_EPISODE = (episodeSelection) => {
488
- return `/tv/${episodeSelection.tvShowID}/season/${episodeSelection.seasonNumber}/episode/${episodeSelection.episodeNumber}`;
489
- };
435
+ // src/endpoints/tv-shows.ts
436
+ var BASE_TV = "/tv";
490
437
 
491
- class TvEpisodesEndpoint extends BaseEndpoint {
492
- async details(episodeSelection, appendToResponse, options) {
493
- const combinedOptions = {
438
+ class TvShowsEndpoint extends BaseEndpoint {
439
+ accessToken;
440
+ constructor(accessToken) {
441
+ super(accessToken);
442
+ this.accessToken = accessToken;
443
+ }
444
+ async details(id, appendToResponse, language) {
445
+ const options = {
494
446
  append_to_response: appendToResponse ? appendToResponse.join(",") : undefined,
495
- ...options
447
+ language
496
448
  };
497
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}`, combinedOptions);
449
+ return await this.api.get(`${BASE_TV}/${id}`, options);
498
450
  }
499
- async changes(episodeID, options) {
500
- return await this.api.get(`/tv/episode/${episodeID}/changes`, options);
451
+ async alternativeTitles(id) {
452
+ return await this.api.get(`${BASE_TV}/${id}/alternative_titles`);
501
453
  }
502
- async credits(episodeSelection, options) {
503
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/credits`, options);
454
+ async changes(id, options) {
455
+ return await this.api.get(`${BASE_TV}/${id}/changes`, options);
504
456
  }
505
- async externalIds(episodeSelection) {
506
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/external_ids`);
457
+ async contentRatings(id) {
458
+ return await this.api.get(`${BASE_TV}/${id}/content_ratings`);
507
459
  }
508
- async images(episodeSelection, options) {
460
+ async aggregateCredits(id, options) {
461
+ return await this.api.get(`${BASE_TV}/${id}/aggregate_credits`, options);
462
+ }
463
+ async credits(id, options) {
464
+ return await this.api.get(`${BASE_TV}/${id}/credits`, options);
465
+ }
466
+ async season(tvId, seasonNumber) {
467
+ return await this.api.get(`${BASE_TV}/${tvId}/season/${seasonNumber}`);
468
+ }
469
+ async episodeGroups(id) {
470
+ return await this.api.get(`${BASE_TV}/${id}/episode_groups`);
471
+ }
472
+ async externalIds(id) {
473
+ return await this.api.get(`${BASE_TV}/${id}/external_ids`);
474
+ }
475
+ async images(id, options) {
509
476
  const computedOptions = {
510
477
  include_image_language: options?.include_image_language?.join(","),
511
478
  language: options?.language
512
479
  };
513
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/images`, computedOptions);
480
+ return await this.api.get(`${BASE_TV}/${id}/images`, computedOptions);
481
+ }
482
+ async keywords(id) {
483
+ return await this.api.get(`${BASE_TV}/${id}/keywords`);
484
+ }
485
+ async recommendations(id, options) {
486
+ return await this.api.get(`${BASE_TV}/${id}/recommendations`, options);
487
+ }
488
+ async reviews(id, options) {
489
+ return await this.api.get(`${BASE_TV}/${id}/reviews`, options);
490
+ }
491
+ async screenedTheatrically(id) {
492
+ return await this.api.get(`${BASE_TV}/${id}/screened_theatrically`);
493
+ }
494
+ async similar(id, options) {
495
+ return await this.api.get(`${BASE_TV}/${id}/similar`, options);
496
+ }
497
+ async translations(id) {
498
+ return await this.api.get(`${BASE_TV}/${id}/translations`);
499
+ }
500
+ async videos(id, options) {
501
+ const computedOptions = {
502
+ include_video_language: options?.include_video_language?.join(","),
503
+ language: options?.language
504
+ };
505
+ return await this.api.get(`${BASE_TV}/${id}/videos`, computedOptions);
506
+ }
507
+ async watchProviders(id) {
508
+ return await this.api.get(`${BASE_TV}/${id}/watch/providers`);
509
+ }
510
+ async latest() {
511
+ return await this.api.get(`${BASE_TV}/latest`);
512
+ }
513
+ async onTheAir(options) {
514
+ return await this.api.get(`${BASE_TV}/on_the_air`, options);
515
+ }
516
+ async airingToday(options) {
517
+ return await this.api.get(`${BASE_TV}/airing_today`, options);
514
518
  }
515
- async translations(episodeSelection) {
516
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/translations`);
519
+ async popular(options) {
520
+ return await this.api.get(`${BASE_TV}/popular`, options);
517
521
  }
518
- async videos(episodeSelection, options) {
519
- const computedOptions = {
520
- include_video_language: options?.include_video_language?.join(","),
521
- language: options?.language
522
- };
523
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/videos`, computedOptions);
522
+ async topRated(options) {
523
+ return await this.api.get(`${BASE_TV}/top_rated`, options);
524
524
  }
525
525
  }
526
526
  // src/endpoints/watch-providers.ts
@@ -646,7 +646,127 @@ class TMDB {
646
646
  return new WatchProvidersEndpoint(this.accessToken);
647
647
  }
648
648
  }
649
-
649
+ // src/types/configuration.ts
650
+ var MediaSize = {
651
+ W45: "w45",
652
+ W92: "w92",
653
+ W154: "w154",
654
+ W185: "w185",
655
+ W300: "w300",
656
+ W342: "w342",
657
+ W500: "w500",
658
+ W632: "w632",
659
+ W780: "w780",
660
+ W1280: "w1280",
661
+ ORIGINAL: "original"
662
+ };
663
+ var BackdropSize = {
664
+ W45: "w45",
665
+ W92: "w92",
666
+ W154: "w154",
667
+ W185: "w185",
668
+ W300: "w300",
669
+ W500: "w500",
670
+ W780: "w780",
671
+ W1280: "w1280",
672
+ ORIGINAL: "original"
673
+ };
674
+ var LogoSize = {
675
+ W45: "w45",
676
+ W92: "w92",
677
+ W154: "w154",
678
+ W185: "w185",
679
+ W300: "w300",
680
+ W500: "w500",
681
+ ORIGINAL: "original"
682
+ };
683
+ var PosterSize = {
684
+ W92: "w92",
685
+ W154: "w154",
686
+ W185: "w185",
687
+ W300: "w300",
688
+ W342: "w342",
689
+ W500: "w500",
690
+ W780: "w780",
691
+ ORIGINAL: "original"
692
+ };
693
+ var ProfileSize = {
694
+ W45: "w45",
695
+ W185: "w185",
696
+ W632: "w632",
697
+ ORIGINAL: "original"
698
+ };
699
+ var StillSize = {
700
+ W92: "w92",
701
+ W185: "w185",
702
+ W300: "w300",
703
+ ORIGINAL: "original"
704
+ };
705
+ var ChangeKey = {
706
+ ADULT: "adult",
707
+ AIR_DATE: "air_date",
708
+ ALSO_KNOWN_AS: "also_known_as",
709
+ ALTERNATIVE_TITLES: "alternative_titles",
710
+ BIOGRAPHY: "biography",
711
+ BIRTHDAY: "birthday",
712
+ BUDGET: "budget",
713
+ CAST: "cast",
714
+ CERTIFICATIONS: "certifications",
715
+ CHARACTER_NAMES: "character_names",
716
+ CREATED_BY: "created_by",
717
+ CREW: "crew",
718
+ DEATHDAY: "deathday",
719
+ EPISODE: "episode",
720
+ EPISODE_NUMBER: "episode_number",
721
+ EPISODE_RUN_TIME: "episode_run_time",
722
+ FREEBASE_ID: "freebase_id",
723
+ FREEBASE_MID: "freebase_mid",
724
+ GENERAL: "general",
725
+ GENRES: "genres",
726
+ GUEST_STARS: "guest_stars",
727
+ HOMEPAGE: "homepage",
728
+ IMAGES: "images",
729
+ IMDB_ID: "imdb_id",
730
+ LANGUAGES: "languages",
731
+ NAME: "name",
732
+ NETWORK: "network",
733
+ ORIGIN_COUNTRY: "origin_country",
734
+ ORIGINAL_NAME: "original_name",
735
+ ORIGINAL_TITLE: "original_title",
736
+ OVERVIEW: "overview",
737
+ PARTS: "parts",
738
+ PLACE_OF_BIRTH: "place_of_birth",
739
+ PLOT_KEYWORDS: "plot_keywords",
740
+ PRODUCTION_CODE: "production_code",
741
+ PRODUCTION_COMPANIES: "production_companies",
742
+ PRODUCTION_COUNTRIES: "production_countries",
743
+ RELEASES: "releases",
744
+ REVENUE: "revenue",
745
+ RUNTIME: "runtime",
746
+ SEASON: "season",
747
+ SEASON_NUMBER: "season_number",
748
+ SEASON_REGULAR: "season_regular",
749
+ SPOKEN_LANGUAGES: "spoken_languages",
750
+ STATUS: "status",
751
+ TAGLINE: "tagline",
752
+ TITLE: "title",
753
+ TRANSLATIONS: "translations",
754
+ TVDB_ID: "tvdb_id",
755
+ TVRAGE_ID: "tvrage_id",
756
+ TYPE: "type",
757
+ VIDEO: "video",
758
+ VIDEOS: "videos"
759
+ };
760
+ // src/types/movies.ts
761
+ var ReleaseDateType;
762
+ ((ReleaseDateType2) => {
763
+ ReleaseDateType2[ReleaseDateType2["Premiere"] = 1] = "Premiere";
764
+ ReleaseDateType2[ReleaseDateType2["Theatrical (limited)"] = 2] = "Theatrical (limited)";
765
+ ReleaseDateType2[ReleaseDateType2["Theatrical"] = 3] = "Theatrical";
766
+ ReleaseDateType2[ReleaseDateType2["Digital"] = 4] = "Digital";
767
+ ReleaseDateType2[ReleaseDateType2["Physical"] = 5] = "Physical";
768
+ ReleaseDateType2[ReleaseDateType2["TV"] = 6] = "TV";
769
+ })(ReleaseDateType ||= {});
650
770
  // src/types/options.ts
651
771
  var AvailableLanguages = [
652
772
  "af-ZA",
@@ -787,127 +907,6 @@ var AvailableLanguages = [
787
907
  "zh-TW",
788
908
  "zu-ZA"
789
909
  ];
790
- // src/types/configuration.ts
791
- var MediaSize = {
792
- W45: "w45",
793
- W92: "w92",
794
- W154: "w154",
795
- W185: "w185",
796
- W300: "w300",
797
- W342: "w342",
798
- W500: "w500",
799
- W632: "w632",
800
- W780: "w780",
801
- W1280: "w1280",
802
- ORIGINAL: "original"
803
- };
804
- var BackdropSize = {
805
- W45: "w45",
806
- W92: "w92",
807
- W154: "w154",
808
- W185: "w185",
809
- W300: "w300",
810
- W500: "w500",
811
- W780: "w780",
812
- W1280: "w1280",
813
- ORIGINAL: "original"
814
- };
815
- var LogoSize = {
816
- W45: "w45",
817
- W92: "w92",
818
- W154: "w154",
819
- W185: "w185",
820
- W300: "w300",
821
- W500: "w500",
822
- ORIGINAL: "original"
823
- };
824
- var PosterSize = {
825
- W92: "w92",
826
- W154: "w154",
827
- W185: "w185",
828
- W300: "w300",
829
- W342: "w342",
830
- W500: "w500",
831
- W780: "w780",
832
- ORIGINAL: "original"
833
- };
834
- var ProfileSize = {
835
- W45: "w45",
836
- W185: "w185",
837
- W632: "w632",
838
- ORIGINAL: "original"
839
- };
840
- var StillSize = {
841
- W92: "w92",
842
- W185: "w185",
843
- W300: "w300",
844
- ORIGINAL: "original"
845
- };
846
- var ChangeKey = {
847
- ADULT: "adult",
848
- AIR_DATE: "air_date",
849
- ALSO_KNOWN_AS: "also_known_as",
850
- ALTERNATIVE_TITLES: "alternative_titles",
851
- BIOGRAPHY: "biography",
852
- BIRTHDAY: "birthday",
853
- BUDGET: "budget",
854
- CAST: "cast",
855
- CERTIFICATIONS: "certifications",
856
- CHARACTER_NAMES: "character_names",
857
- CREATED_BY: "created_by",
858
- CREW: "crew",
859
- DEATHDAY: "deathday",
860
- EPISODE: "episode",
861
- EPISODE_NUMBER: "episode_number",
862
- EPISODE_RUN_TIME: "episode_run_time",
863
- FREEBASE_ID: "freebase_id",
864
- FREEBASE_MID: "freebase_mid",
865
- GENERAL: "general",
866
- GENRES: "genres",
867
- GUEST_STARS: "guest_stars",
868
- HOMEPAGE: "homepage",
869
- IMAGES: "images",
870
- IMDB_ID: "imdb_id",
871
- LANGUAGES: "languages",
872
- NAME: "name",
873
- NETWORK: "network",
874
- ORIGIN_COUNTRY: "origin_country",
875
- ORIGINAL_NAME: "original_name",
876
- ORIGINAL_TITLE: "original_title",
877
- OVERVIEW: "overview",
878
- PARTS: "parts",
879
- PLACE_OF_BIRTH: "place_of_birth",
880
- PLOT_KEYWORDS: "plot_keywords",
881
- PRODUCTION_CODE: "production_code",
882
- PRODUCTION_COMPANIES: "production_companies",
883
- PRODUCTION_COUNTRIES: "production_countries",
884
- RELEASES: "releases",
885
- REVENUE: "revenue",
886
- RUNTIME: "runtime",
887
- SEASON: "season",
888
- SEASON_NUMBER: "season_number",
889
- SEASON_REGULAR: "season_regular",
890
- SPOKEN_LANGUAGES: "spoken_languages",
891
- STATUS: "status",
892
- TAGLINE: "tagline",
893
- TITLE: "title",
894
- TRANSLATIONS: "translations",
895
- TVDB_ID: "tvdb_id",
896
- TVRAGE_ID: "tvrage_id",
897
- TYPE: "type",
898
- VIDEO: "video",
899
- VIDEOS: "videos"
900
- };
901
- // src/types/movies.ts
902
- var ReleaseDateType;
903
- ((ReleaseDateType2) => {
904
- ReleaseDateType2[ReleaseDateType2["Premiere"] = 1] = "Premiere";
905
- ReleaseDateType2[ReleaseDateType2["Theatrical (limited)"] = 2] = "Theatrical (limited)";
906
- ReleaseDateType2[ReleaseDateType2["Theatrical"] = 3] = "Theatrical";
907
- ReleaseDateType2[ReleaseDateType2["Digital"] = 4] = "Digital";
908
- ReleaseDateType2[ReleaseDateType2["Physical"] = 5] = "Physical";
909
- ReleaseDateType2[ReleaseDateType2["TV"] = 6] = "TV";
910
- })(ReleaseDateType ||= {});
911
910
 
912
911
  // src/types/index.ts
913
912
  var CountryCodes = [
@@ -991,4 +990,4 @@ export {
991
990
  AvailableLanguages
992
991
  };
993
992
 
994
- //# debugId=A791860F75BAC1E764756E2164756E21
993
+ //# debugId=9557027969ACC9D464756E2164756E21