@kenzuya/tmdb-ts 2.0.5 → 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.cjs CHANGED
@@ -144,46 +144,81 @@ class ChangeEndpoint extends BaseEndpoint {
144
144
  return await this.api.get("/person/changes", options);
145
145
  }
146
146
  }
147
- // src/endpoints/credits.ts
148
- class CreditsEndpoint extends BaseEndpoint {
147
+ // src/endpoints/collections.ts
148
+ var BASE_COLLECTION = "/collection";
149
+
150
+ class CollectionsEndpoint extends BaseEndpoint {
149
151
  accessToken;
150
152
  constructor(accessToken) {
151
153
  super(accessToken);
152
154
  this.accessToken = accessToken;
153
155
  }
154
- async getById(id) {
155
- return await this.api.get(`/credit/${id}`);
156
+ async details(id, options) {
157
+ return await this.api.get(`${BASE_COLLECTION}/${id}`, options);
158
+ }
159
+ async images(id, options) {
160
+ const computedOptions = {
161
+ include_image_language: options?.include_image_language?.join(","),
162
+ language: options?.language
163
+ };
164
+ return await this.api.get(`${BASE_COLLECTION}/${id}/images`, computedOptions);
165
+ }
166
+ async translations(id, options) {
167
+ return await this.api.get(`${BASE_COLLECTION}/${id}/translations`, options);
156
168
  }
157
169
  }
158
- // src/endpoints/search.ts
159
- var BASE_SEARCH = "/search";
160
-
161
- class SearchEndpoint extends BaseEndpoint {
170
+ // src/endpoints/configuration.ts
171
+ class ConfigurationEndpoint extends BaseEndpoint {
162
172
  accessToken;
163
173
  constructor(accessToken) {
164
174
  super(accessToken);
165
175
  this.accessToken = accessToken;
166
176
  }
167
- async companies(options) {
168
- return await this.api.get(`${BASE_SEARCH}/company`, options);
177
+ async getApiConfiguration() {
178
+ return await this.api.get("/configuration");
169
179
  }
170
- async collections(options) {
171
- return await this.api.get(`${BASE_SEARCH}/collection`, options);
180
+ async getCountries() {
181
+ return await this.api.get("/configuration/countries");
172
182
  }
173
- async keywords(options) {
174
- return await this.api.get(`${BASE_SEARCH}/keyword`, options);
183
+ async getLanguages() {
184
+ return await this.api.get("/configuration/languages");
175
185
  }
176
- async movies(options) {
177
- return await this.api.get(`${BASE_SEARCH}/movie`, options);
186
+ async getJobs() {
187
+ return await this.api.get("/configuration/jobs");
178
188
  }
179
- async people(options) {
180
- return await this.api.get(`${BASE_SEARCH}/person`, options);
189
+ async getPrimaryTranslations() {
190
+ return await this.api.get("/configuration/primary_translations");
181
191
  }
182
- async tvShows(options) {
183
- return await this.api.get(`${BASE_SEARCH}/tv`, options);
192
+ async getTimezones() {
193
+ return await this.api.get("/configuration/timezones");
184
194
  }
185
- async multi(options) {
186
- return await this.api.get(`${BASE_SEARCH}/multi`, options);
195
+ }
196
+ // src/endpoints/credits.ts
197
+ class CreditsEndpoint extends BaseEndpoint {
198
+ accessToken;
199
+ constructor(accessToken) {
200
+ super(accessToken);
201
+ this.accessToken = accessToken;
202
+ }
203
+ async getById(id) {
204
+ return await this.api.get(`/credit/${id}`);
205
+ }
206
+ }
207
+ // src/endpoints/discover.ts
208
+ var BASE_DISCOVER = "/discover";
209
+
210
+ class DiscoverEndpoint extends BaseEndpoint {
211
+ async movie(options) {
212
+ return await this.api.get(`${BASE_DISCOVER}/movie`, options);
213
+ }
214
+ async tvShow(options) {
215
+ return await this.api.get(`${BASE_DISCOVER}/tv`, options);
216
+ }
217
+ }
218
+ // src/endpoints/find.ts
219
+ class FindEndpoint extends BaseEndpoint {
220
+ async byExternalId(id, options) {
221
+ return await this.api.get(`/find/${id}`, options);
187
222
  }
188
223
  }
189
224
  // src/endpoints/genre.ts
@@ -200,6 +235,17 @@ class GenreEndpoint extends BaseEndpoint {
200
235
  return await this.api.get("/genre/tv/list", options);
201
236
  }
202
237
  }
238
+ // src/endpoints/keywords.ts
239
+ var BASE_Keyword = "/keyword";
240
+
241
+ class KeywordsEndpoint extends BaseEndpoint {
242
+ async details(keywordId) {
243
+ return await this.api.get(`${BASE_Keyword}/${keywordId}`);
244
+ }
245
+ async belongingMovies(keywordId, options) {
246
+ return await this.api.get(`${BASE_Keyword}/${keywordId}/movies`, options);
247
+ }
248
+ }
203
249
  // src/endpoints/movies.ts
204
250
  var BASE_MOVIE = "/movie";
205
251
 
@@ -278,134 +324,6 @@ class MoviesEndpoint extends BaseEndpoint {
278
324
  return await this.api.get(`${BASE_MOVIE}/upcoming`, options);
279
325
  }
280
326
  }
281
- // src/endpoints/configuration.ts
282
- class ConfigurationEndpoint extends BaseEndpoint {
283
- accessToken;
284
- constructor(accessToken) {
285
- super(accessToken);
286
- this.accessToken = accessToken;
287
- }
288
- async getApiConfiguration() {
289
- return await this.api.get("/configuration");
290
- }
291
- async getCountries() {
292
- return await this.api.get("/configuration/countries");
293
- }
294
- async getLanguages() {
295
- return await this.api.get("/configuration/languages");
296
- }
297
- async getJobs() {
298
- return await this.api.get("/configuration/jobs");
299
- }
300
- async getPrimaryTranslations() {
301
- return await this.api.get("/configuration/primary_translations");
302
- }
303
- async getTimezones() {
304
- return await this.api.get("/configuration/timezones");
305
- }
306
- }
307
- // src/endpoints/tv-shows.ts
308
- var BASE_TV = "/tv";
309
-
310
- class TvShowsEndpoint extends BaseEndpoint {
311
- accessToken;
312
- constructor(accessToken) {
313
- super(accessToken);
314
- this.accessToken = accessToken;
315
- }
316
- async details(id, appendToResponse, language) {
317
- const options = {
318
- append_to_response: appendToResponse ? appendToResponse.join(",") : undefined,
319
- language
320
- };
321
- return await this.api.get(`${BASE_TV}/${id}`, options);
322
- }
323
- async alternativeTitles(id) {
324
- return await this.api.get(`${BASE_TV}/${id}/alternative_titles`);
325
- }
326
- async changes(id, options) {
327
- return await this.api.get(`${BASE_TV}/${id}/changes`, options);
328
- }
329
- async contentRatings(id) {
330
- return await this.api.get(`${BASE_TV}/${id}/content_ratings`);
331
- }
332
- async aggregateCredits(id, options) {
333
- return await this.api.get(`${BASE_TV}/${id}/aggregate_credits`, options);
334
- }
335
- async credits(id, options) {
336
- return await this.api.get(`${BASE_TV}/${id}/credits`, options);
337
- }
338
- async season(tvId, seasonNumber) {
339
- return await this.api.get(`${BASE_TV}/${tvId}/season/${seasonNumber}`);
340
- }
341
- async episodeGroups(id) {
342
- return await this.api.get(`${BASE_TV}/${id}/episode_groups`);
343
- }
344
- async externalIds(id) {
345
- return await this.api.get(`${BASE_TV}/${id}/external_ids`);
346
- }
347
- async images(id, options) {
348
- const computedOptions = {
349
- include_image_language: options?.include_image_language?.join(","),
350
- language: options?.language
351
- };
352
- return await this.api.get(`${BASE_TV}/${id}/images`, computedOptions);
353
- }
354
- async keywords(id) {
355
- return await this.api.get(`${BASE_TV}/${id}/keywords`);
356
- }
357
- async recommendations(id, options) {
358
- return await this.api.get(`${BASE_TV}/${id}/recommendations`, options);
359
- }
360
- async reviews(id, options) {
361
- return await this.api.get(`${BASE_TV}/${id}/reviews`, options);
362
- }
363
- async screenedTheatrically(id) {
364
- return await this.api.get(`${BASE_TV}/${id}/screened_theatrically`);
365
- }
366
- async similar(id, options) {
367
- return await this.api.get(`${BASE_TV}/${id}/similar`, options);
368
- }
369
- async translations(id) {
370
- return await this.api.get(`${BASE_TV}/${id}/translations`);
371
- }
372
- async videos(id, options) {
373
- const computedOptions = {
374
- include_video_language: options?.include_video_language?.join(","),
375
- language: options?.language
376
- };
377
- return await this.api.get(`${BASE_TV}/${id}/videos`, computedOptions);
378
- }
379
- async watchProviders(id) {
380
- return await this.api.get(`${BASE_TV}/${id}/watch/providers`);
381
- }
382
- async latest() {
383
- return await this.api.get(`${BASE_TV}/latest`);
384
- }
385
- async onTheAir(options) {
386
- return await this.api.get(`${BASE_TV}/on_the_air`, options);
387
- }
388
- async airingToday(options) {
389
- return await this.api.get(`${BASE_TV}/airing_today`, options);
390
- }
391
- async popular(options) {
392
- return await this.api.get(`${BASE_TV}/popular`, options);
393
- }
394
- async topRated(options) {
395
- return await this.api.get(`${BASE_TV}/top_rated`, options);
396
- }
397
- }
398
- // src/endpoints/discover.ts
399
- var BASE_DISCOVER = "/discover";
400
-
401
- class DiscoverEndpoint extends BaseEndpoint {
402
- async movie(options) {
403
- return await this.api.get(`${BASE_DISCOVER}/movie`, options);
404
- }
405
- async tvShow(options) {
406
- return await this.api.get(`${BASE_DISCOVER}/tv`, options);
407
- }
408
- }
409
327
  // src/endpoints/people.ts
410
328
  var BASE_PERSON = "/person";
411
329
 
@@ -454,50 +372,81 @@ class ReviewEndpoint extends BaseEndpoint {
454
372
  return await this.api.get(`/review/${id}`);
455
373
  }
456
374
  }
375
+ // src/endpoints/search.ts
376
+ var BASE_SEARCH = "/search";
377
+
378
+ class SearchEndpoint extends BaseEndpoint {
379
+ accessToken;
380
+ constructor(accessToken) {
381
+ super(accessToken);
382
+ this.accessToken = accessToken;
383
+ }
384
+ async companies(options) {
385
+ return await this.api.get(`${BASE_SEARCH}/company`, options);
386
+ }
387
+ async collections(options) {
388
+ return await this.api.get(`${BASE_SEARCH}/collection`, options);
389
+ }
390
+ async keywords(options) {
391
+ return await this.api.get(`${BASE_SEARCH}/keyword`, options);
392
+ }
393
+ async movies(options) {
394
+ return await this.api.get(`${BASE_SEARCH}/movie`, options);
395
+ }
396
+ async people(options) {
397
+ return await this.api.get(`${BASE_SEARCH}/person`, options);
398
+ }
399
+ async tvShows(options) {
400
+ return await this.api.get(`${BASE_SEARCH}/tv`, options);
401
+ }
402
+ async multi(options) {
403
+ return await this.api.get(`${BASE_SEARCH}/multi`, options);
404
+ }
405
+ }
457
406
  // src/endpoints/trending.ts
458
407
  class TrendingEndpoint extends BaseEndpoint {
459
408
  async trending(mediaType, timeWindow, options) {
460
409
  return await this.api.get(`/trending/${mediaType}/${timeWindow}`, options);
461
410
  }
462
411
  }
463
- // src/endpoints/find.ts
464
- class FindEndpoint extends BaseEndpoint {
465
- async byExternalId(id, options) {
466
- return await this.api.get(`/find/${id}`, options);
467
- }
468
- }
469
- // src/endpoints/keywords.ts
470
- var BASE_Keyword = "/keyword";
412
+ // src/endpoints/tv-episode.ts
413
+ var BASE_EPISODE = (episodeSelection) => {
414
+ return `/tv/${episodeSelection.tvShowID}/season/${episodeSelection.seasonNumber}/episode/${episodeSelection.episodeNumber}`;
415
+ };
471
416
 
472
- class KeywordsEndpoint extends BaseEndpoint {
473
- async details(keywordId) {
474
- return await this.api.get(`${BASE_Keyword}/${keywordId}`);
417
+ class TvEpisodesEndpoint extends BaseEndpoint {
418
+ async details(episodeSelection, appendToResponse, options) {
419
+ const combinedOptions = {
420
+ append_to_response: appendToResponse ? appendToResponse.join(",") : undefined,
421
+ ...options
422
+ };
423
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}`, combinedOptions);
475
424
  }
476
- async belongingMovies(keywordId, options) {
477
- return await this.api.get(`${BASE_Keyword}/${keywordId}/movies`, options);
425
+ async changes(episodeID, options) {
426
+ return await this.api.get(`/tv/episode/${episodeID}/changes`, options);
478
427
  }
479
- }
480
- // src/endpoints/collections.ts
481
- var BASE_COLLECTION = "/collection";
482
-
483
- class CollectionsEndpoint extends BaseEndpoint {
484
- accessToken;
485
- constructor(accessToken) {
486
- super(accessToken);
487
- this.accessToken = accessToken;
428
+ async credits(episodeSelection, options) {
429
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/credits`, options);
488
430
  }
489
- async details(id, options) {
490
- return await this.api.get(`${BASE_COLLECTION}/${id}`, options);
431
+ async externalIds(episodeSelection) {
432
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/external_ids`);
491
433
  }
492
- async images(id, options) {
434
+ async images(episodeSelection, options) {
493
435
  const computedOptions = {
494
436
  include_image_language: options?.include_image_language?.join(","),
495
437
  language: options?.language
496
438
  };
497
- return await this.api.get(`${BASE_COLLECTION}/${id}/images`, computedOptions);
439
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/images`, computedOptions);
498
440
  }
499
- async translations(id, options) {
500
- return await this.api.get(`${BASE_COLLECTION}/${id}/translations`, options);
441
+ async translations(episodeSelection) {
442
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/translations`);
443
+ }
444
+ async videos(episodeSelection, options) {
445
+ const computedOptions = {
446
+ include_video_language: options?.include_video_language?.join(","),
447
+ language: options?.language
448
+ };
449
+ return await this.api.get(`${BASE_EPISODE(episodeSelection)}/videos`, computedOptions);
501
450
  }
502
451
  }
503
452
  // src/endpoints/tv-seasons.ts
@@ -543,44 +492,95 @@ class TvSeasonsEndpoint extends BaseEndpoint {
543
492
  return await this.api.get(`${BASE_SEASON(seasonSelection)}/translations`, options);
544
493
  }
545
494
  }
546
- // src/endpoints/tv-episode.ts
547
- var BASE_EPISODE = (episodeSelection) => {
548
- return `/tv/${episodeSelection.tvShowID}/season/${episodeSelection.seasonNumber}/episode/${episodeSelection.episodeNumber}`;
549
- };
495
+ // src/endpoints/tv-shows.ts
496
+ var BASE_TV = "/tv";
550
497
 
551
- class TvEpisodesEndpoint extends BaseEndpoint {
552
- async details(episodeSelection, appendToResponse, options) {
553
- const combinedOptions = {
498
+ class TvShowsEndpoint extends BaseEndpoint {
499
+ accessToken;
500
+ constructor(accessToken) {
501
+ super(accessToken);
502
+ this.accessToken = accessToken;
503
+ }
504
+ async details(id, appendToResponse, language) {
505
+ const options = {
554
506
  append_to_response: appendToResponse ? appendToResponse.join(",") : undefined,
555
- ...options
507
+ language
556
508
  };
557
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}`, combinedOptions);
509
+ return await this.api.get(`${BASE_TV}/${id}`, options);
558
510
  }
559
- async changes(episodeID, options) {
560
- return await this.api.get(`/tv/episode/${episodeID}/changes`, options);
511
+ async alternativeTitles(id) {
512
+ return await this.api.get(`${BASE_TV}/${id}/alternative_titles`);
561
513
  }
562
- async credits(episodeSelection, options) {
563
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/credits`, options);
514
+ async changes(id, options) {
515
+ return await this.api.get(`${BASE_TV}/${id}/changes`, options);
564
516
  }
565
- async externalIds(episodeSelection) {
566
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/external_ids`);
517
+ async contentRatings(id) {
518
+ return await this.api.get(`${BASE_TV}/${id}/content_ratings`);
567
519
  }
568
- async images(episodeSelection, options) {
520
+ async aggregateCredits(id, options) {
521
+ return await this.api.get(`${BASE_TV}/${id}/aggregate_credits`, options);
522
+ }
523
+ async credits(id, options) {
524
+ return await this.api.get(`${BASE_TV}/${id}/credits`, options);
525
+ }
526
+ async season(tvId, seasonNumber) {
527
+ return await this.api.get(`${BASE_TV}/${tvId}/season/${seasonNumber}`);
528
+ }
529
+ async episodeGroups(id) {
530
+ return await this.api.get(`${BASE_TV}/${id}/episode_groups`);
531
+ }
532
+ async externalIds(id) {
533
+ return await this.api.get(`${BASE_TV}/${id}/external_ids`);
534
+ }
535
+ async images(id, options) {
569
536
  const computedOptions = {
570
537
  include_image_language: options?.include_image_language?.join(","),
571
538
  language: options?.language
572
539
  };
573
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/images`, computedOptions);
540
+ return await this.api.get(`${BASE_TV}/${id}/images`, computedOptions);
541
+ }
542
+ async keywords(id) {
543
+ return await this.api.get(`${BASE_TV}/${id}/keywords`);
544
+ }
545
+ async recommendations(id, options) {
546
+ return await this.api.get(`${BASE_TV}/${id}/recommendations`, options);
547
+ }
548
+ async reviews(id, options) {
549
+ return await this.api.get(`${BASE_TV}/${id}/reviews`, options);
550
+ }
551
+ async screenedTheatrically(id) {
552
+ return await this.api.get(`${BASE_TV}/${id}/screened_theatrically`);
553
+ }
554
+ async similar(id, options) {
555
+ return await this.api.get(`${BASE_TV}/${id}/similar`, options);
556
+ }
557
+ async translations(id) {
558
+ return await this.api.get(`${BASE_TV}/${id}/translations`);
559
+ }
560
+ async videos(id, options) {
561
+ const computedOptions = {
562
+ include_video_language: options?.include_video_language?.join(","),
563
+ language: options?.language
564
+ };
565
+ return await this.api.get(`${BASE_TV}/${id}/videos`, computedOptions);
566
+ }
567
+ async watchProviders(id) {
568
+ return await this.api.get(`${BASE_TV}/${id}/watch/providers`);
569
+ }
570
+ async latest() {
571
+ return await this.api.get(`${BASE_TV}/latest`);
572
+ }
573
+ async onTheAir(options) {
574
+ return await this.api.get(`${BASE_TV}/on_the_air`, options);
575
+ }
576
+ async airingToday(options) {
577
+ return await this.api.get(`${BASE_TV}/airing_today`, options);
574
578
  }
575
- async translations(episodeSelection) {
576
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/translations`);
579
+ async popular(options) {
580
+ return await this.api.get(`${BASE_TV}/popular`, options);
577
581
  }
578
- async videos(episodeSelection, options) {
579
- const computedOptions = {
580
- include_video_language: options?.include_video_language?.join(","),
581
- language: options?.language
582
- };
583
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/videos`, computedOptions);
582
+ async topRated(options) {
583
+ return await this.api.get(`${BASE_TV}/top_rated`, options);
584
584
  }
585
585
  }
586
586
  // src/endpoints/watch-providers.ts
@@ -706,7 +706,127 @@ class TMDB {
706
706
  return new WatchProvidersEndpoint(this.accessToken);
707
707
  }
708
708
  }
709
-
709
+ // src/types/configuration.ts
710
+ var MediaSize = {
711
+ W45: "w45",
712
+ W92: "w92",
713
+ W154: "w154",
714
+ W185: "w185",
715
+ W300: "w300",
716
+ W342: "w342",
717
+ W500: "w500",
718
+ W632: "w632",
719
+ W780: "w780",
720
+ W1280: "w1280",
721
+ ORIGINAL: "original"
722
+ };
723
+ var BackdropSize = {
724
+ W45: "w45",
725
+ W92: "w92",
726
+ W154: "w154",
727
+ W185: "w185",
728
+ W300: "w300",
729
+ W500: "w500",
730
+ W780: "w780",
731
+ W1280: "w1280",
732
+ ORIGINAL: "original"
733
+ };
734
+ var LogoSize = {
735
+ W45: "w45",
736
+ W92: "w92",
737
+ W154: "w154",
738
+ W185: "w185",
739
+ W300: "w300",
740
+ W500: "w500",
741
+ ORIGINAL: "original"
742
+ };
743
+ var PosterSize = {
744
+ W92: "w92",
745
+ W154: "w154",
746
+ W185: "w185",
747
+ W300: "w300",
748
+ W342: "w342",
749
+ W500: "w500",
750
+ W780: "w780",
751
+ ORIGINAL: "original"
752
+ };
753
+ var ProfileSize = {
754
+ W45: "w45",
755
+ W185: "w185",
756
+ W632: "w632",
757
+ ORIGINAL: "original"
758
+ };
759
+ var StillSize = {
760
+ W92: "w92",
761
+ W185: "w185",
762
+ W300: "w300",
763
+ ORIGINAL: "original"
764
+ };
765
+ var ChangeKey = {
766
+ ADULT: "adult",
767
+ AIR_DATE: "air_date",
768
+ ALSO_KNOWN_AS: "also_known_as",
769
+ ALTERNATIVE_TITLES: "alternative_titles",
770
+ BIOGRAPHY: "biography",
771
+ BIRTHDAY: "birthday",
772
+ BUDGET: "budget",
773
+ CAST: "cast",
774
+ CERTIFICATIONS: "certifications",
775
+ CHARACTER_NAMES: "character_names",
776
+ CREATED_BY: "created_by",
777
+ CREW: "crew",
778
+ DEATHDAY: "deathday",
779
+ EPISODE: "episode",
780
+ EPISODE_NUMBER: "episode_number",
781
+ EPISODE_RUN_TIME: "episode_run_time",
782
+ FREEBASE_ID: "freebase_id",
783
+ FREEBASE_MID: "freebase_mid",
784
+ GENERAL: "general",
785
+ GENRES: "genres",
786
+ GUEST_STARS: "guest_stars",
787
+ HOMEPAGE: "homepage",
788
+ IMAGES: "images",
789
+ IMDB_ID: "imdb_id",
790
+ LANGUAGES: "languages",
791
+ NAME: "name",
792
+ NETWORK: "network",
793
+ ORIGIN_COUNTRY: "origin_country",
794
+ ORIGINAL_NAME: "original_name",
795
+ ORIGINAL_TITLE: "original_title",
796
+ OVERVIEW: "overview",
797
+ PARTS: "parts",
798
+ PLACE_OF_BIRTH: "place_of_birth",
799
+ PLOT_KEYWORDS: "plot_keywords",
800
+ PRODUCTION_CODE: "production_code",
801
+ PRODUCTION_COMPANIES: "production_companies",
802
+ PRODUCTION_COUNTRIES: "production_countries",
803
+ RELEASES: "releases",
804
+ REVENUE: "revenue",
805
+ RUNTIME: "runtime",
806
+ SEASON: "season",
807
+ SEASON_NUMBER: "season_number",
808
+ SEASON_REGULAR: "season_regular",
809
+ SPOKEN_LANGUAGES: "spoken_languages",
810
+ STATUS: "status",
811
+ TAGLINE: "tagline",
812
+ TITLE: "title",
813
+ TRANSLATIONS: "translations",
814
+ TVDB_ID: "tvdb_id",
815
+ TVRAGE_ID: "tvrage_id",
816
+ TYPE: "type",
817
+ VIDEO: "video",
818
+ VIDEOS: "videos"
819
+ };
820
+ // src/types/movies.ts
821
+ var ReleaseDateType;
822
+ ((ReleaseDateType2) => {
823
+ ReleaseDateType2[ReleaseDateType2["Premiere"] = 1] = "Premiere";
824
+ ReleaseDateType2[ReleaseDateType2["Theatrical (limited)"] = 2] = "Theatrical (limited)";
825
+ ReleaseDateType2[ReleaseDateType2["Theatrical"] = 3] = "Theatrical";
826
+ ReleaseDateType2[ReleaseDateType2["Digital"] = 4] = "Digital";
827
+ ReleaseDateType2[ReleaseDateType2["Physical"] = 5] = "Physical";
828
+ ReleaseDateType2[ReleaseDateType2["TV"] = 6] = "TV";
829
+ })(ReleaseDateType ||= {});
710
830
  // src/types/options.ts
711
831
  var AvailableLanguages = [
712
832
  "af-ZA",
@@ -847,127 +967,6 @@ var AvailableLanguages = [
847
967
  "zh-TW",
848
968
  "zu-ZA"
849
969
  ];
850
- // src/types/configuration.ts
851
- var MediaSize = {
852
- W45: "w45",
853
- W92: "w92",
854
- W154: "w154",
855
- W185: "w185",
856
- W300: "w300",
857
- W342: "w342",
858
- W500: "w500",
859
- W632: "w632",
860
- W780: "w780",
861
- W1280: "w1280",
862
- ORIGINAL: "original"
863
- };
864
- var BackdropSize = {
865
- W45: "w45",
866
- W92: "w92",
867
- W154: "w154",
868
- W185: "w185",
869
- W300: "w300",
870
- W500: "w500",
871
- W780: "w780",
872
- W1280: "w1280",
873
- ORIGINAL: "original"
874
- };
875
- var LogoSize = {
876
- W45: "w45",
877
- W92: "w92",
878
- W154: "w154",
879
- W185: "w185",
880
- W300: "w300",
881
- W500: "w500",
882
- ORIGINAL: "original"
883
- };
884
- var PosterSize = {
885
- W92: "w92",
886
- W154: "w154",
887
- W185: "w185",
888
- W300: "w300",
889
- W342: "w342",
890
- W500: "w500",
891
- W780: "w780",
892
- ORIGINAL: "original"
893
- };
894
- var ProfileSize = {
895
- W45: "w45",
896
- W185: "w185",
897
- W632: "w632",
898
- ORIGINAL: "original"
899
- };
900
- var StillSize = {
901
- W92: "w92",
902
- W185: "w185",
903
- W300: "w300",
904
- ORIGINAL: "original"
905
- };
906
- var ChangeKey = {
907
- ADULT: "adult",
908
- AIR_DATE: "air_date",
909
- ALSO_KNOWN_AS: "also_known_as",
910
- ALTERNATIVE_TITLES: "alternative_titles",
911
- BIOGRAPHY: "biography",
912
- BIRTHDAY: "birthday",
913
- BUDGET: "budget",
914
- CAST: "cast",
915
- CERTIFICATIONS: "certifications",
916
- CHARACTER_NAMES: "character_names",
917
- CREATED_BY: "created_by",
918
- CREW: "crew",
919
- DEATHDAY: "deathday",
920
- EPISODE: "episode",
921
- EPISODE_NUMBER: "episode_number",
922
- EPISODE_RUN_TIME: "episode_run_time",
923
- FREEBASE_ID: "freebase_id",
924
- FREEBASE_MID: "freebase_mid",
925
- GENERAL: "general",
926
- GENRES: "genres",
927
- GUEST_STARS: "guest_stars",
928
- HOMEPAGE: "homepage",
929
- IMAGES: "images",
930
- IMDB_ID: "imdb_id",
931
- LANGUAGES: "languages",
932
- NAME: "name",
933
- NETWORK: "network",
934
- ORIGIN_COUNTRY: "origin_country",
935
- ORIGINAL_NAME: "original_name",
936
- ORIGINAL_TITLE: "original_title",
937
- OVERVIEW: "overview",
938
- PARTS: "parts",
939
- PLACE_OF_BIRTH: "place_of_birth",
940
- PLOT_KEYWORDS: "plot_keywords",
941
- PRODUCTION_CODE: "production_code",
942
- PRODUCTION_COMPANIES: "production_companies",
943
- PRODUCTION_COUNTRIES: "production_countries",
944
- RELEASES: "releases",
945
- REVENUE: "revenue",
946
- RUNTIME: "runtime",
947
- SEASON: "season",
948
- SEASON_NUMBER: "season_number",
949
- SEASON_REGULAR: "season_regular",
950
- SPOKEN_LANGUAGES: "spoken_languages",
951
- STATUS: "status",
952
- TAGLINE: "tagline",
953
- TITLE: "title",
954
- TRANSLATIONS: "translations",
955
- TVDB_ID: "tvdb_id",
956
- TVRAGE_ID: "tvrage_id",
957
- TYPE: "type",
958
- VIDEO: "video",
959
- VIDEOS: "videos"
960
- };
961
- // src/types/movies.ts
962
- var ReleaseDateType;
963
- ((ReleaseDateType2) => {
964
- ReleaseDateType2[ReleaseDateType2["Premiere"] = 1] = "Premiere";
965
- ReleaseDateType2[ReleaseDateType2["Theatrical (limited)"] = 2] = "Theatrical (limited)";
966
- ReleaseDateType2[ReleaseDateType2["Theatrical"] = 3] = "Theatrical";
967
- ReleaseDateType2[ReleaseDateType2["Digital"] = 4] = "Digital";
968
- ReleaseDateType2[ReleaseDateType2["Physical"] = 5] = "Physical";
969
- ReleaseDateType2[ReleaseDateType2["TV"] = 6] = "TV";
970
- })(ReleaseDateType ||= {});
971
970
 
972
971
  // src/types/index.ts
973
972
  var CountryCodes = [
@@ -1036,4 +1035,4 @@ var CountryCodes = [
1036
1035
  "ZA"
1037
1036
  ];
1038
1037
 
1039
- //# debugId=710DDB1422E7DE4564756E2164756E21
1038
+ //# debugId=98E2E317F57A3B8A64756E2164756E21