@tdanks2000/tmdb-wrapper 1.4.0 → 1.6.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.
- package/README.md +7 -7
- package/dist/index.cjs +233 -127
- package/dist/index.d.cts +201 -377
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +201 -377
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +233 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -23,17 +23,7 @@ interface Certification {
|
|
|
23
23
|
order: number;
|
|
24
24
|
}
|
|
25
25
|
interface Certifications {
|
|
26
|
-
certifications:
|
|
27
|
-
US: Certification[];
|
|
28
|
-
CA: Certification[];
|
|
29
|
-
DE: Certification[];
|
|
30
|
-
GB: Certification[];
|
|
31
|
-
AU: Certification[];
|
|
32
|
-
BR: Certification[];
|
|
33
|
-
FR: Certification[];
|
|
34
|
-
NZ: Certification[];
|
|
35
|
-
IN: Certification[];
|
|
36
|
-
};
|
|
26
|
+
certifications: Record<string, Certification[]>;
|
|
37
27
|
}
|
|
38
28
|
//# sourceMappingURL=certification.d.ts.map
|
|
39
29
|
//#endregion
|
|
@@ -65,12 +55,18 @@ interface ChangeItem<T> {
|
|
|
65
55
|
}
|
|
66
56
|
//# sourceMappingURL=changes.d.ts.map
|
|
67
57
|
//#endregion
|
|
58
|
+
//#region src/@types/wire.d.ts
|
|
59
|
+
type TMDBDate = string;
|
|
60
|
+
type TMDBDateTime = string;
|
|
61
|
+
type Nullable<T> = T | null;
|
|
62
|
+
//# sourceMappingURL=wire.d.ts.map
|
|
63
|
+
//#endregion
|
|
68
64
|
//#region src/@types/endpoints/collection.d.ts
|
|
69
65
|
interface Collection {
|
|
70
66
|
id: number;
|
|
71
|
-
backdrop_path: string
|
|
67
|
+
backdrop_path: Nullable<string>;
|
|
72
68
|
name: string;
|
|
73
|
-
poster_path: string
|
|
69
|
+
poster_path: Nullable<string>;
|
|
74
70
|
adult: boolean;
|
|
75
71
|
original_language: string;
|
|
76
72
|
original_name: string;
|
|
@@ -228,7 +224,7 @@ declare enum ChangeKeys {
|
|
|
228
224
|
//#region src/@types/endpoints/credits.d.ts
|
|
229
225
|
interface CreditSeason {
|
|
230
226
|
air_date?: string;
|
|
231
|
-
poster_path
|
|
227
|
+
poster_path: Nullable<string>;
|
|
232
228
|
season_number?: number;
|
|
233
229
|
}
|
|
234
230
|
interface Media$1 {
|
|
@@ -238,11 +234,11 @@ interface Media$1 {
|
|
|
238
234
|
vote_count?: number;
|
|
239
235
|
overview?: string;
|
|
240
236
|
vote_average?: number;
|
|
241
|
-
backdrop_path
|
|
237
|
+
backdrop_path: Nullable<string>;
|
|
242
238
|
genre_ids?: number[];
|
|
243
239
|
original_name?: string;
|
|
244
240
|
origin_country?: string[];
|
|
245
|
-
poster_path
|
|
241
|
+
poster_path: Nullable<string>;
|
|
246
242
|
original_language?: string;
|
|
247
243
|
popularity?: number;
|
|
248
244
|
character?: string;
|
|
@@ -275,7 +271,7 @@ interface Cast {
|
|
|
275
271
|
name: string;
|
|
276
272
|
original_name: string;
|
|
277
273
|
popularity: number;
|
|
278
|
-
profile_path: string
|
|
274
|
+
profile_path: Nullable<string>;
|
|
279
275
|
cast_id: number;
|
|
280
276
|
character: string;
|
|
281
277
|
credit_id: string;
|
|
@@ -289,7 +285,7 @@ interface Crew {
|
|
|
289
285
|
name: string;
|
|
290
286
|
original_name: string;
|
|
291
287
|
popularity: number;
|
|
292
|
-
profile_path: string
|
|
288
|
+
profile_path: Nullable<string>;
|
|
293
289
|
credit_id: string;
|
|
294
290
|
department: string;
|
|
295
291
|
job: string;
|
|
@@ -336,7 +332,7 @@ interface AggregateCast {
|
|
|
336
332
|
name: string;
|
|
337
333
|
original_name: string;
|
|
338
334
|
popularity: number;
|
|
339
|
-
profile_path: string
|
|
335
|
+
profile_path: Nullable<string>;
|
|
340
336
|
roles: CastRole[];
|
|
341
337
|
total_episode_count: number;
|
|
342
338
|
order: number;
|
|
@@ -354,7 +350,7 @@ interface AggregateCrew {
|
|
|
354
350
|
name: string;
|
|
355
351
|
original_name: string;
|
|
356
352
|
popularity: number;
|
|
357
|
-
profile_path: string
|
|
353
|
+
profile_path: Nullable<string>;
|
|
358
354
|
jobs: CrewJob[];
|
|
359
355
|
department: string;
|
|
360
356
|
total_episode_count: number;
|
|
@@ -362,7 +358,8 @@ interface AggregateCrew {
|
|
|
362
358
|
//# sourceMappingURL=credits.d.ts.map
|
|
363
359
|
//#endregion
|
|
364
360
|
//#region src/@types/endpoints/discover.d.ts
|
|
365
|
-
type
|
|
361
|
+
type MovieSortOption = "original_title.asc" | "original_title.desc" | "popularity.asc" | "popularity.desc" | "revenue.asc" | "revenue.desc" | "primary_release_date.asc" | "primary_release_date.desc" | "title.asc" | "title.desc" | "vote_average.asc" | "vote_average.desc" | "vote_count.asc" | "vote_count.desc";
|
|
362
|
+
type TvSortOption = "first_air_date.asc" | "first_air_date.desc" | "name.asc" | "name.desc" | "original_name.asc" | "original_name.desc" | "popularity.asc" | "popularity.desc" | "vote_average.asc" | "vote_average.desc" | "vote_count.asc" | "vote_count.desc";
|
|
366
363
|
interface MovieDiscoverResult {
|
|
367
364
|
page: number;
|
|
368
365
|
results: Movie[];
|
|
@@ -375,29 +372,31 @@ interface TvShowDiscoverResult {
|
|
|
375
372
|
total_results: number;
|
|
376
373
|
total_pages: number;
|
|
377
374
|
}
|
|
375
|
+
type WatchMonetizationType = "flatrate" | "free" | "ads" | "rent" | "buy";
|
|
378
376
|
interface DiscoverQueryOptions {
|
|
379
377
|
language?: string;
|
|
380
|
-
sort_by?: SortOption;
|
|
381
378
|
page?: number;
|
|
382
379
|
"vote_average.gte"?: number;
|
|
380
|
+
"vote_average.lte"?: number;
|
|
383
381
|
"vote_count.gte"?: number;
|
|
384
382
|
"vote_count.lte"?: number;
|
|
385
|
-
"vote_average.lte"?: number;
|
|
386
383
|
with_watch_providers?: string;
|
|
384
|
+
without_watch_providers?: string;
|
|
387
385
|
watch_region?: string;
|
|
388
|
-
|
|
389
|
-
with_watch_monetization_types?: "flatrate" | "free" | "ads" | "rent" | "buy";
|
|
386
|
+
with_watch_monetization_types?: WatchMonetizationType | string;
|
|
390
387
|
"with_runtime.gte"?: number;
|
|
391
388
|
"with_runtime.lte"?: number;
|
|
392
389
|
with_genres?: string;
|
|
393
390
|
without_genres?: string;
|
|
394
|
-
with_original_language?: string;
|
|
395
|
-
without_keywords?: string;
|
|
396
391
|
with_keywords?: string;
|
|
392
|
+
without_keywords?: string;
|
|
397
393
|
with_companies?: string;
|
|
394
|
+
without_companies?: string;
|
|
395
|
+
with_original_language?: string;
|
|
398
396
|
with_text_query?: string;
|
|
399
397
|
}
|
|
400
|
-
interface MovieQueryOptions extends DiscoverQueryOptions {
|
|
398
|
+
interface MovieQueryOptions extends Omit<DiscoverQueryOptions, "with_text_query"> {
|
|
399
|
+
sort_by?: MovieSortOption;
|
|
401
400
|
region?: string;
|
|
402
401
|
certification_country?: string;
|
|
403
402
|
certification?: string;
|
|
@@ -410,22 +409,25 @@ interface MovieQueryOptions extends DiscoverQueryOptions {
|
|
|
410
409
|
"primary_release_date.lte"?: string;
|
|
411
410
|
"release_date.gte"?: string;
|
|
412
411
|
"release_date.lte"?: string;
|
|
413
|
-
with_release_type?: string;
|
|
412
|
+
with_release_type?: number | string;
|
|
414
413
|
year?: number;
|
|
415
414
|
with_cast?: string;
|
|
416
415
|
with_crew?: string;
|
|
417
416
|
with_people?: string;
|
|
418
417
|
}
|
|
419
418
|
interface TvShowQueryOptions extends DiscoverQueryOptions {
|
|
419
|
+
sort_by?: TvSortOption;
|
|
420
420
|
"air_date.gte"?: string;
|
|
421
421
|
"air_date.lte"?: string;
|
|
422
422
|
"first_air_date.gte"?: string;
|
|
423
423
|
"first_air_date.lte"?: string;
|
|
424
424
|
first_air_date_year?: number;
|
|
425
|
-
|
|
426
|
-
with_networks?: string;
|
|
425
|
+
include_adult?: boolean;
|
|
427
426
|
include_null_first_air_dates?: boolean;
|
|
428
427
|
screened_theatrically?: boolean;
|
|
428
|
+
timezone?: string;
|
|
429
|
+
with_networks?: number | string;
|
|
430
|
+
with_origin_country?: string;
|
|
429
431
|
with_status?: string;
|
|
430
432
|
with_type?: string;
|
|
431
433
|
}
|
|
@@ -473,8 +475,8 @@ interface PageOption {
|
|
|
473
475
|
page?: number;
|
|
474
476
|
}
|
|
475
477
|
interface ChangeOption extends PageOption {
|
|
476
|
-
start_date?:
|
|
477
|
-
end_date?:
|
|
478
|
+
start_date?: TMDBDate;
|
|
479
|
+
end_date?: TMDBDate;
|
|
478
480
|
}
|
|
479
481
|
type AppendToResponseMovieKey = "images" | "videos" | "credits" | "recommendations" | "reviews" | "changes" | "similar" | "lists" | "release_dates" | "alternative_titles" | "external_ids" | "translations" | "watch/providers" | "keywords";
|
|
480
482
|
type AppendToResponseTvKey = "content_ratings" | "images" | "videos" | "credits" | "recommendations" | "reviews" | "changes" | "similar" | "alternative_titles" | "external_ids" | "translations" | "watch/providers" | "aggregate_credits" | "episode_groups" | "screened_theatrically" | "keywords";
|
|
@@ -554,12 +556,12 @@ interface Keywords {
|
|
|
554
556
|
interface BelongsToCollection {
|
|
555
557
|
id: number;
|
|
556
558
|
name: string;
|
|
557
|
-
poster_path: string
|
|
558
|
-
backdrop_path: string
|
|
559
|
+
poster_path: Nullable<string>;
|
|
560
|
+
backdrop_path: Nullable<string>;
|
|
559
561
|
}
|
|
560
562
|
interface MovieDetails {
|
|
561
563
|
adult: boolean;
|
|
562
|
-
backdrop_path: string
|
|
564
|
+
backdrop_path: Nullable<string>;
|
|
563
565
|
belongs_to_collection?: BelongsToCollection;
|
|
564
566
|
budget: number;
|
|
565
567
|
genres: Genre[];
|
|
@@ -570,7 +572,7 @@ interface MovieDetails {
|
|
|
570
572
|
original_title: string;
|
|
571
573
|
overview: string;
|
|
572
574
|
popularity: number;
|
|
573
|
-
poster_path
|
|
575
|
+
poster_path: Nullable<string>;
|
|
574
576
|
production_companies: ProductionCompany[];
|
|
575
577
|
production_countries: ProductionCountry[];
|
|
576
578
|
release_date: string;
|
|
@@ -595,7 +597,7 @@ declare enum ReleaseDateType {
|
|
|
595
597
|
interface ReleaseDate {
|
|
596
598
|
certification: string;
|
|
597
599
|
iso_639_1: string;
|
|
598
|
-
release_date:
|
|
600
|
+
release_date: TMDBDateTime;
|
|
599
601
|
type: ReleaseDateType;
|
|
600
602
|
note: string;
|
|
601
603
|
}
|
|
@@ -621,7 +623,7 @@ interface MovieList {
|
|
|
621
623
|
iso_639_1: string;
|
|
622
624
|
list_type: string;
|
|
623
625
|
name: string;
|
|
624
|
-
poster_path: string
|
|
626
|
+
poster_path: Nullable<string>;
|
|
625
627
|
}
|
|
626
628
|
interface MovieLists {
|
|
627
629
|
id: number;
|
|
@@ -632,7 +634,7 @@ interface MovieLists {
|
|
|
632
634
|
}
|
|
633
635
|
interface LatestMovie {
|
|
634
636
|
adult: boolean;
|
|
635
|
-
backdrop_path
|
|
637
|
+
backdrop_path: Nullable<string>;
|
|
636
638
|
belongs_to_collection?: BelongsToCollection;
|
|
637
639
|
budget: number;
|
|
638
640
|
genres: Genre[];
|
|
@@ -643,7 +645,7 @@ interface LatestMovie {
|
|
|
643
645
|
original_title: string;
|
|
644
646
|
overview: string;
|
|
645
647
|
popularity: number;
|
|
646
|
-
poster_path: string
|
|
648
|
+
poster_path: Nullable<string>;
|
|
647
649
|
production_companies: ProductionCompany[];
|
|
648
650
|
production_countries: ProductionCountry[];
|
|
649
651
|
release_date: string;
|
|
@@ -722,8 +724,8 @@ interface Cast$1 {
|
|
|
722
724
|
credit_id: string;
|
|
723
725
|
vote_count: number;
|
|
724
726
|
id: number;
|
|
725
|
-
backdrop_path: string
|
|
726
|
-
poster_path: string
|
|
727
|
+
backdrop_path: Nullable<string>;
|
|
728
|
+
poster_path: Nullable<string>;
|
|
727
729
|
original_language: string;
|
|
728
730
|
vote_average: number;
|
|
729
731
|
genre_ids: number[];
|
|
@@ -737,8 +739,8 @@ interface Crew$1 {
|
|
|
737
739
|
credit_id: string;
|
|
738
740
|
overview: string;
|
|
739
741
|
vote_count: number;
|
|
740
|
-
poster_path: string
|
|
741
|
-
backdrop_path: string
|
|
742
|
+
poster_path: Nullable<string>;
|
|
743
|
+
backdrop_path: Nullable<string>;
|
|
742
744
|
popularity: number;
|
|
743
745
|
genre_ids: number[];
|
|
744
746
|
job: string;
|
|
@@ -798,14 +800,14 @@ interface PersonDetails {
|
|
|
798
800
|
biography: string;
|
|
799
801
|
popularity: number;
|
|
800
802
|
place_of_birth: string;
|
|
801
|
-
profile_path: string
|
|
803
|
+
profile_path: Nullable<string>;
|
|
802
804
|
adult: boolean;
|
|
803
805
|
imdb_id: string;
|
|
804
806
|
homepage: string;
|
|
805
807
|
}
|
|
806
808
|
type PersonChangeValue = string | {
|
|
807
809
|
profile: {
|
|
808
|
-
file_path: string
|
|
810
|
+
file_path: Nullable<string>;
|
|
809
811
|
};
|
|
810
812
|
};
|
|
811
813
|
interface PopularPersons {
|
|
@@ -820,7 +822,7 @@ interface PeopleImages {
|
|
|
820
822
|
}
|
|
821
823
|
interface TaggedImage {
|
|
822
824
|
aspect_ratio: number;
|
|
823
|
-
file_path: string
|
|
825
|
+
file_path: Nullable<string>;
|
|
824
826
|
height: number;
|
|
825
827
|
id: string;
|
|
826
828
|
iso_639_1: string;
|
|
@@ -839,7 +841,7 @@ interface TaggedImages {
|
|
|
839
841
|
}
|
|
840
842
|
interface PersonTranslations {
|
|
841
843
|
id: number;
|
|
842
|
-
translations: {
|
|
844
|
+
translations: Array<{
|
|
843
845
|
iso_3166_1: string;
|
|
844
846
|
iso_639_1: string;
|
|
845
847
|
name: string;
|
|
@@ -847,14 +849,14 @@ interface PersonTranslations {
|
|
|
847
849
|
data: {
|
|
848
850
|
biography: string;
|
|
849
851
|
};
|
|
850
|
-
}
|
|
852
|
+
}>;
|
|
851
853
|
}
|
|
852
854
|
//#endregion
|
|
853
855
|
//#region src/@types/endpoints/review.d.ts
|
|
854
856
|
interface ReviewDetails extends Review {
|
|
855
857
|
iso_639_1: string;
|
|
856
858
|
media_id: number;
|
|
857
|
-
media_title:
|
|
859
|
+
media_title: string;
|
|
858
860
|
media_type: number;
|
|
859
861
|
}
|
|
860
862
|
//# sourceMappingURL=review.d.ts.map
|
|
@@ -980,7 +982,7 @@ interface SeasonDetails {
|
|
|
980
982
|
name: string;
|
|
981
983
|
overview: string;
|
|
982
984
|
id: number;
|
|
983
|
-
poster_path: string
|
|
985
|
+
poster_path: Nullable<string>;
|
|
984
986
|
season_number: number;
|
|
985
987
|
}
|
|
986
988
|
type TvSeasonChangeValue = string | {
|
|
@@ -1007,7 +1009,7 @@ interface CreatedBy {
|
|
|
1007
1009
|
credit_id: string;
|
|
1008
1010
|
name: string;
|
|
1009
1011
|
gender: number;
|
|
1010
|
-
profile_path: string
|
|
1012
|
+
profile_path: Nullable<string>;
|
|
1011
1013
|
}
|
|
1012
1014
|
interface NextEpisodeToAir {
|
|
1013
1015
|
id: number;
|
|
@@ -1021,7 +1023,7 @@ interface NextEpisodeToAir {
|
|
|
1021
1023
|
runtime: number;
|
|
1022
1024
|
season_number: number;
|
|
1023
1025
|
show_id: number;
|
|
1024
|
-
still_path: string
|
|
1026
|
+
still_path: Nullable<string>;
|
|
1025
1027
|
}
|
|
1026
1028
|
interface LastEpisodeToAir {
|
|
1027
1029
|
air_date: string;
|
|
@@ -1031,14 +1033,14 @@ interface LastEpisodeToAir {
|
|
|
1031
1033
|
overview: string;
|
|
1032
1034
|
production_code: string;
|
|
1033
1035
|
season_number: number;
|
|
1034
|
-
still_path: string
|
|
1036
|
+
still_path: Nullable<string>;
|
|
1035
1037
|
vote_average: number;
|
|
1036
1038
|
vote_count: number;
|
|
1037
1039
|
}
|
|
1038
1040
|
interface Network {
|
|
1039
1041
|
name: string;
|
|
1040
1042
|
id: number;
|
|
1041
|
-
logo_path: string
|
|
1043
|
+
logo_path: Nullable<string>;
|
|
1042
1044
|
origin_country: string;
|
|
1043
1045
|
}
|
|
1044
1046
|
interface Season {
|
|
@@ -1047,11 +1049,11 @@ interface Season {
|
|
|
1047
1049
|
id: number;
|
|
1048
1050
|
name: string;
|
|
1049
1051
|
overview: string;
|
|
1050
|
-
poster_path: string
|
|
1052
|
+
poster_path: Nullable<string>;
|
|
1051
1053
|
season_number: number;
|
|
1052
1054
|
}
|
|
1053
1055
|
interface TvShowDetails {
|
|
1054
|
-
backdrop_path: string
|
|
1056
|
+
backdrop_path: Nullable<string>;
|
|
1055
1057
|
created_by: CreatedBy[];
|
|
1056
1058
|
episode_run_time: number[];
|
|
1057
1059
|
first_air_date: string;
|
|
@@ -1072,7 +1074,7 @@ interface TvShowDetails {
|
|
|
1072
1074
|
original_name: string;
|
|
1073
1075
|
overview: string;
|
|
1074
1076
|
popularity: number;
|
|
1075
|
-
poster_path: string
|
|
1077
|
+
poster_path: Nullable<string>;
|
|
1076
1078
|
production_companies: ProductionCompany[];
|
|
1077
1079
|
production_countries: ProductionCountry[];
|
|
1078
1080
|
seasons: Season[];
|
|
@@ -1085,7 +1087,7 @@ interface TvShowDetails {
|
|
|
1085
1087
|
}
|
|
1086
1088
|
interface Network {
|
|
1087
1089
|
id: number;
|
|
1088
|
-
logo_path: string
|
|
1090
|
+
logo_path: Nullable<string>;
|
|
1089
1091
|
name: string;
|
|
1090
1092
|
origin_country: string;
|
|
1091
1093
|
}
|
|
@@ -1112,7 +1114,7 @@ interface ScreenedTheatrically {
|
|
|
1112
1114
|
results: ScreenedTheatricallyResult[];
|
|
1113
1115
|
}
|
|
1114
1116
|
interface SimilarTvShow {
|
|
1115
|
-
backdrop_path: string
|
|
1117
|
+
backdrop_path: Nullable<string>;
|
|
1116
1118
|
first_air_date: string;
|
|
1117
1119
|
genre_ids: number[];
|
|
1118
1120
|
id: number;
|
|
@@ -1120,7 +1122,7 @@ interface SimilarTvShow {
|
|
|
1120
1122
|
original_name: string;
|
|
1121
1123
|
overview: string;
|
|
1122
1124
|
origin_country: string[];
|
|
1123
|
-
poster_path: string
|
|
1125
|
+
poster_path: Nullable<string>;
|
|
1124
1126
|
popularity: number;
|
|
1125
1127
|
name: string;
|
|
1126
1128
|
vote_average: number;
|
|
@@ -1133,7 +1135,7 @@ interface Similartv {
|
|
|
1133
1135
|
total_results: number;
|
|
1134
1136
|
}
|
|
1135
1137
|
interface Latesttv {
|
|
1136
|
-
backdrop_path
|
|
1138
|
+
backdrop_path: Nullable<string>;
|
|
1137
1139
|
created_by: CreatedBy[];
|
|
1138
1140
|
episode_run_time: number[];
|
|
1139
1141
|
first_air_date: string;
|
|
@@ -1152,7 +1154,7 @@ interface Latesttv {
|
|
|
1152
1154
|
original_name: string;
|
|
1153
1155
|
overview?: string;
|
|
1154
1156
|
popularity: number;
|
|
1155
|
-
poster_path
|
|
1157
|
+
poster_path: Nullable<string>;
|
|
1156
1158
|
production_companies: ProductionCompany[];
|
|
1157
1159
|
seasons: Season[];
|
|
1158
1160
|
status: string;
|
|
@@ -1161,10 +1163,10 @@ interface Latesttv {
|
|
|
1161
1163
|
vote_count: number;
|
|
1162
1164
|
}
|
|
1163
1165
|
interface OnTheAirResult {
|
|
1164
|
-
poster_path: string
|
|
1166
|
+
poster_path: Nullable<string>;
|
|
1165
1167
|
popularity: number;
|
|
1166
1168
|
id: number;
|
|
1167
|
-
backdrop_path: string
|
|
1169
|
+
backdrop_path: Nullable<string>;
|
|
1168
1170
|
vote_average: number;
|
|
1169
1171
|
overview: string;
|
|
1170
1172
|
first_air_date: string;
|
|
@@ -1182,10 +1184,10 @@ interface OnTheAir {
|
|
|
1182
1184
|
total_pages: number;
|
|
1183
1185
|
}
|
|
1184
1186
|
interface AiringTodayResult {
|
|
1185
|
-
poster_path: string
|
|
1187
|
+
poster_path: Nullable<string>;
|
|
1186
1188
|
popularity: number;
|
|
1187
1189
|
id: number;
|
|
1188
|
-
backdrop_path: string
|
|
1190
|
+
backdrop_path: Nullable<string>;
|
|
1189
1191
|
vote_average: number;
|
|
1190
1192
|
overview: string;
|
|
1191
1193
|
first_air_date: string;
|
|
@@ -1203,10 +1205,10 @@ interface tvAiringToday {
|
|
|
1203
1205
|
total_pages: number;
|
|
1204
1206
|
}
|
|
1205
1207
|
interface PopularTvShowResult {
|
|
1206
|
-
poster_path: string
|
|
1208
|
+
poster_path: Nullable<string>;
|
|
1207
1209
|
popularity: number;
|
|
1208
1210
|
id: number;
|
|
1209
|
-
backdrop_path: string
|
|
1211
|
+
backdrop_path: Nullable<string>;
|
|
1210
1212
|
vote_average: number;
|
|
1211
1213
|
overview: string;
|
|
1212
1214
|
first_air_date: string;
|
|
@@ -1224,10 +1226,10 @@ interface Populartv {
|
|
|
1224
1226
|
total_pages: number;
|
|
1225
1227
|
}
|
|
1226
1228
|
interface TopRatedTvShowResult {
|
|
1227
|
-
poster_path: string
|
|
1229
|
+
poster_path: Nullable<string>;
|
|
1228
1230
|
popularity: number;
|
|
1229
1231
|
id: number;
|
|
1230
|
-
backdrop_path: string
|
|
1232
|
+
backdrop_path: Nullable<string>;
|
|
1231
1233
|
vote_average: number;
|
|
1232
1234
|
overview: string;
|
|
1233
1235
|
first_air_date: string;
|
|
@@ -1289,297 +1291,59 @@ interface WatchRegion {
|
|
|
1289
1291
|
interface WatchRegionsResponse {
|
|
1290
1292
|
results: WatchRegion[];
|
|
1291
1293
|
}
|
|
1292
|
-
interface
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
buy: Buy[];
|
|
1298
|
-
};
|
|
1299
|
-
AT: {
|
|
1300
|
-
link: string;
|
|
1301
|
-
rent: Rent[];
|
|
1302
|
-
buy: Buy[];
|
|
1303
|
-
};
|
|
1304
|
-
AU: {
|
|
1305
|
-
link: string;
|
|
1306
|
-
flatrate: Flatrate[];
|
|
1307
|
-
rent: Rent[];
|
|
1308
|
-
buy: Buy[];
|
|
1309
|
-
};
|
|
1310
|
-
BE: {
|
|
1311
|
-
link: string;
|
|
1312
|
-
buy: Buy[];
|
|
1313
|
-
flatrate: Flatrate[];
|
|
1314
|
-
rent: Rent[];
|
|
1315
|
-
};
|
|
1316
|
-
BR: {
|
|
1317
|
-
link: string;
|
|
1318
|
-
rent: Rent[];
|
|
1319
|
-
buy: Buy[];
|
|
1320
|
-
flatrate: Flatrate[];
|
|
1321
|
-
};
|
|
1322
|
-
CA: {
|
|
1323
|
-
link: string;
|
|
1324
|
-
rent: Rent[];
|
|
1325
|
-
flatrate: Flatrate[];
|
|
1326
|
-
buy: Buy[];
|
|
1327
|
-
};
|
|
1328
|
-
CH: {
|
|
1329
|
-
link: string;
|
|
1330
|
-
rent: Rent[];
|
|
1331
|
-
buy: Buy[];
|
|
1332
|
-
flatrate: Flatrate[];
|
|
1333
|
-
};
|
|
1334
|
-
CL: {
|
|
1335
|
-
link: string;
|
|
1336
|
-
flatrate: Flatrate[];
|
|
1337
|
-
buy: Buy[];
|
|
1338
|
-
rent: Rent[];
|
|
1339
|
-
};
|
|
1340
|
-
CO: {
|
|
1341
|
-
link: string;
|
|
1342
|
-
flatrate: Flatrate[];
|
|
1343
|
-
rent: Rent[];
|
|
1344
|
-
buy: Buy[];
|
|
1345
|
-
};
|
|
1346
|
-
CZ: {
|
|
1347
|
-
link: string;
|
|
1348
|
-
buy: Buy[];
|
|
1349
|
-
flatrate: Flatrate[];
|
|
1350
|
-
rent: Rent[];
|
|
1351
|
-
};
|
|
1352
|
-
DE: {
|
|
1353
|
-
link: string;
|
|
1354
|
-
rent: Rent[];
|
|
1355
|
-
buy: Buy[];
|
|
1356
|
-
};
|
|
1357
|
-
DK: {
|
|
1358
|
-
link: string;
|
|
1359
|
-
rent: Rent[];
|
|
1360
|
-
buy: Buy[];
|
|
1361
|
-
flatrate: Flatrate[];
|
|
1362
|
-
};
|
|
1363
|
-
EC: {
|
|
1364
|
-
link: string;
|
|
1365
|
-
flatrate: Flatrate[];
|
|
1366
|
-
buy: Buy[];
|
|
1367
|
-
rent: Rent[];
|
|
1368
|
-
};
|
|
1369
|
-
EE: {
|
|
1370
|
-
link: string;
|
|
1371
|
-
flatrate: Flatrate[];
|
|
1372
|
-
buy: Buy[];
|
|
1373
|
-
rent: Rent[];
|
|
1374
|
-
};
|
|
1375
|
-
ES: {
|
|
1376
|
-
link: string;
|
|
1377
|
-
rent: Rent[];
|
|
1378
|
-
flatrate: Flatrate[];
|
|
1379
|
-
buy: Buy[];
|
|
1380
|
-
};
|
|
1381
|
-
FI: {
|
|
1382
|
-
link: string;
|
|
1383
|
-
buy: Buy[];
|
|
1384
|
-
flatrate: Flatrate[];
|
|
1385
|
-
rent: Rent[];
|
|
1386
|
-
};
|
|
1387
|
-
FR: {
|
|
1388
|
-
link: string;
|
|
1389
|
-
flatrate: Flatrate[];
|
|
1390
|
-
buy: Buy[];
|
|
1391
|
-
rent: Rent[];
|
|
1392
|
-
};
|
|
1393
|
-
GB: {
|
|
1394
|
-
link: string;
|
|
1395
|
-
rent: Rent[];
|
|
1396
|
-
flatrate: Flatrate[];
|
|
1397
|
-
buy: Buy[];
|
|
1398
|
-
};
|
|
1399
|
-
GR: {
|
|
1400
|
-
link: string;
|
|
1401
|
-
flatrate: Flatrate[];
|
|
1402
|
-
rent: Rent[];
|
|
1403
|
-
buy: Buy[];
|
|
1404
|
-
};
|
|
1405
|
-
HU: {
|
|
1406
|
-
link: string;
|
|
1407
|
-
rent: Rent[];
|
|
1408
|
-
buy: Buy[];
|
|
1409
|
-
flatrate: Flatrate[];
|
|
1410
|
-
};
|
|
1411
|
-
ID: {
|
|
1412
|
-
link: string;
|
|
1413
|
-
flatrate: Flatrate[];
|
|
1414
|
-
rent: Rent[];
|
|
1415
|
-
buy: Buy[];
|
|
1416
|
-
};
|
|
1417
|
-
IE: {
|
|
1418
|
-
link: string;
|
|
1419
|
-
rent: Rent[];
|
|
1420
|
-
flatrate: Flatrate[];
|
|
1421
|
-
buy: Buy[];
|
|
1422
|
-
};
|
|
1423
|
-
IN: {
|
|
1424
|
-
link: string;
|
|
1425
|
-
buy: Buy[];
|
|
1426
|
-
flatrate: Flatrate[];
|
|
1427
|
-
rent: Rent[];
|
|
1428
|
-
};
|
|
1429
|
-
IT: {
|
|
1430
|
-
link: string;
|
|
1431
|
-
buy: Buy[];
|
|
1432
|
-
flatrate: Flatrate[];
|
|
1433
|
-
rent: Rent[];
|
|
1434
|
-
};
|
|
1435
|
-
JP: {
|
|
1436
|
-
link: string;
|
|
1437
|
-
rent: Rent[];
|
|
1438
|
-
flatrate: Flatrate[];
|
|
1439
|
-
buy: Buy[];
|
|
1440
|
-
};
|
|
1441
|
-
KR: {
|
|
1442
|
-
link: string;
|
|
1443
|
-
buy: Buy[];
|
|
1444
|
-
rent: Rent[];
|
|
1445
|
-
flatrate: Flatrate[];
|
|
1446
|
-
};
|
|
1447
|
-
LT: {
|
|
1448
|
-
link: string;
|
|
1449
|
-
buy: Buy[];
|
|
1450
|
-
flatrate: Flatrate[];
|
|
1451
|
-
};
|
|
1452
|
-
LV: {
|
|
1453
|
-
link: string;
|
|
1454
|
-
buy: Buy[];
|
|
1455
|
-
flatrate: Flatrate[];
|
|
1456
|
-
};
|
|
1457
|
-
MX: {
|
|
1458
|
-
link: string;
|
|
1459
|
-
flatrate: Flatrate[];
|
|
1460
|
-
rent: Rent[];
|
|
1461
|
-
buy: Buy[];
|
|
1462
|
-
};
|
|
1463
|
-
MY: {
|
|
1464
|
-
link: string;
|
|
1465
|
-
rent: Rent[];
|
|
1466
|
-
flatrate: Flatrate[];
|
|
1467
|
-
buy: Buy[];
|
|
1468
|
-
};
|
|
1469
|
-
NL: {
|
|
1470
|
-
link: string;
|
|
1471
|
-
flatrate: Flatrate[];
|
|
1472
|
-
buy: Buy[];
|
|
1473
|
-
rent: Rent[];
|
|
1474
|
-
};
|
|
1475
|
-
NO: {
|
|
1476
|
-
link: string;
|
|
1477
|
-
buy: Buy[];
|
|
1478
|
-
rent: Rent[];
|
|
1479
|
-
flatrate: Flatrate[];
|
|
1480
|
-
};
|
|
1481
|
-
NZ: {
|
|
1482
|
-
link: string;
|
|
1483
|
-
buy: Buy[];
|
|
1484
|
-
rent: Rent[];
|
|
1485
|
-
flatrate: Flatrate[];
|
|
1486
|
-
};
|
|
1487
|
-
PE: {
|
|
1488
|
-
link: string;
|
|
1489
|
-
flatrate: Flatrate[];
|
|
1490
|
-
rent: Rent[];
|
|
1491
|
-
buy: Buy[];
|
|
1492
|
-
};
|
|
1493
|
-
PH: {
|
|
1494
|
-
link: string;
|
|
1495
|
-
rent: Rent[];
|
|
1496
|
-
buy: Buy[];
|
|
1497
|
-
flatrate: Flatrate[];
|
|
1498
|
-
};
|
|
1499
|
-
PL: {
|
|
1500
|
-
link: string;
|
|
1501
|
-
rent: Rent[];
|
|
1502
|
-
flatrate: Flatrate[];
|
|
1503
|
-
buy: Buy[];
|
|
1504
|
-
};
|
|
1505
|
-
PT: {
|
|
1506
|
-
link: string;
|
|
1507
|
-
rent: Rent[];
|
|
1508
|
-
flatrate: Flatrate[];
|
|
1509
|
-
buy: Buy[];
|
|
1510
|
-
};
|
|
1511
|
-
RO: {
|
|
1512
|
-
link: string;
|
|
1513
|
-
flatrate: Flatrate[];
|
|
1514
|
-
};
|
|
1515
|
-
RU: {
|
|
1516
|
-
link: string;
|
|
1517
|
-
rent: Rent[];
|
|
1518
|
-
flatrate: Flatrate[];
|
|
1519
|
-
buy: Buy[];
|
|
1520
|
-
};
|
|
1521
|
-
SE: {
|
|
1522
|
-
link: string;
|
|
1523
|
-
rent: Rent[];
|
|
1524
|
-
flatrate: Flatrate[];
|
|
1525
|
-
buy: Buy[];
|
|
1526
|
-
};
|
|
1527
|
-
SG: {
|
|
1528
|
-
link: string;
|
|
1529
|
-
flatrate: Flatrate[];
|
|
1530
|
-
buy: Buy[];
|
|
1531
|
-
rent: Rent[];
|
|
1532
|
-
};
|
|
1533
|
-
TH: {
|
|
1534
|
-
link: string;
|
|
1535
|
-
flatrate: Flatrate[];
|
|
1536
|
-
rent: Rent[];
|
|
1537
|
-
buy: Buy[];
|
|
1538
|
-
};
|
|
1539
|
-
TR: {
|
|
1540
|
-
link: string;
|
|
1541
|
-
buy: Buy[];
|
|
1542
|
-
rent: Rent[];
|
|
1543
|
-
flatrate: Flatrate[];
|
|
1544
|
-
};
|
|
1545
|
-
US: {
|
|
1546
|
-
link: string;
|
|
1547
|
-
rent: Rent[];
|
|
1548
|
-
buy: Buy[];
|
|
1549
|
-
flatrate: Flatrate[];
|
|
1550
|
-
};
|
|
1551
|
-
VE: {
|
|
1552
|
-
link: string;
|
|
1553
|
-
flatrate: Flatrate[];
|
|
1554
|
-
rent: Rent[];
|
|
1555
|
-
buy: Buy[];
|
|
1556
|
-
};
|
|
1557
|
-
ZA: {
|
|
1558
|
-
link: string;
|
|
1559
|
-
rent: Rent[];
|
|
1560
|
-
buy: Buy[];
|
|
1561
|
-
flatrate: Flatrate[];
|
|
1562
|
-
};
|
|
1294
|
+
interface WatchProviderEntry {
|
|
1295
|
+
display_priority: number;
|
|
1296
|
+
logo_path: string | null;
|
|
1297
|
+
provider_id: number;
|
|
1298
|
+
provider_name: string;
|
|
1563
1299
|
}
|
|
1300
|
+
type WatchLocale = Record<string, {
|
|
1301
|
+
link: string;
|
|
1302
|
+
flatrate?: WatchProviderEntry[];
|
|
1303
|
+
rent?: WatchProviderEntry[];
|
|
1304
|
+
buy?: WatchProviderEntry[];
|
|
1305
|
+
free?: WatchProviderEntry[];
|
|
1306
|
+
ads?: WatchProviderEntry[];
|
|
1307
|
+
}>;
|
|
1564
1308
|
interface WatchProviders {
|
|
1565
1309
|
id: number;
|
|
1566
1310
|
results: WatchLocale;
|
|
1567
1311
|
}
|
|
1312
|
+
interface WatchProviderListItem {
|
|
1313
|
+
display_priority: number;
|
|
1314
|
+
logo_path: string | null;
|
|
1315
|
+
provider_id: number;
|
|
1316
|
+
provider_name: string;
|
|
1317
|
+
}
|
|
1318
|
+
interface WatchProviderListResponse {
|
|
1319
|
+
results: WatchProviderListItem[];
|
|
1320
|
+
}
|
|
1568
1321
|
//# sourceMappingURL=watchProviders.d.ts.map
|
|
1569
1322
|
//#endregion
|
|
1570
1323
|
//#region src/utils/api.d.ts
|
|
1324
|
+
type Primitive = string | number | boolean;
|
|
1325
|
+
type QueryValue = Primitive | null | undefined | Array<Primitive | null | undefined>;
|
|
1326
|
+
type Query = Record<string, QueryValue>;
|
|
1327
|
+
interface RequestOptions<Q extends object = object> {
|
|
1328
|
+
query?: Q;
|
|
1329
|
+
signal?: AbortSignal;
|
|
1330
|
+
timeoutMs?: number;
|
|
1331
|
+
retries?: number;
|
|
1332
|
+
retryDelayMs?: number;
|
|
1333
|
+
}
|
|
1334
|
+
declare class TMDBError extends Error {
|
|
1335
|
+
readonly status: number;
|
|
1336
|
+
readonly url: string;
|
|
1337
|
+
readonly payload?: unknown | undefined;
|
|
1338
|
+
constructor(message: string, status: number, url: string, payload?: unknown | undefined);
|
|
1339
|
+
}
|
|
1340
|
+
declare const parseOptions: (options?: Query) => string;
|
|
1571
1341
|
declare class API {
|
|
1572
1342
|
private apiKey?;
|
|
1573
1343
|
private accessToken?;
|
|
1574
1344
|
constructor(auth: TokenType);
|
|
1575
|
-
|
|
1576
|
-
* Generic GET:
|
|
1577
|
-
* @template T — response type
|
|
1578
|
-
* @template O — options (query params) type
|
|
1579
|
-
*/
|
|
1580
|
-
get<T, O extends Record<string, unknown> = Record<string, unknown>>(path: string, options?: O): Promise<T>;
|
|
1345
|
+
get<T, Q extends object = object>(path: string, opts?: RequestOptions<Q>): Promise<T>;
|
|
1581
1346
|
}
|
|
1582
|
-
declare const parseOptions: (options?: Record<string, unknown>) => string;
|
|
1583
1347
|
//# sourceMappingURL=api.d.ts.map
|
|
1584
1348
|
//#endregion
|
|
1585
1349
|
//#region src/utils/getimagePath.d.ts
|
|
@@ -1643,7 +1407,7 @@ interface PersonWithMediaType extends Person {
|
|
|
1643
1407
|
}
|
|
1644
1408
|
interface Movie {
|
|
1645
1409
|
id: number;
|
|
1646
|
-
poster_path: string
|
|
1410
|
+
poster_path: Nullable<string>;
|
|
1647
1411
|
adult: boolean;
|
|
1648
1412
|
overview: string;
|
|
1649
1413
|
release_date: string;
|
|
@@ -1651,7 +1415,7 @@ interface Movie {
|
|
|
1651
1415
|
original_title: string;
|
|
1652
1416
|
original_language: string;
|
|
1653
1417
|
title: string;
|
|
1654
|
-
backdrop_path: string
|
|
1418
|
+
backdrop_path: Nullable<string>;
|
|
1655
1419
|
popularity: number;
|
|
1656
1420
|
vote_count: number;
|
|
1657
1421
|
video: boolean;
|
|
@@ -1670,13 +1434,13 @@ interface TV {
|
|
|
1670
1434
|
id: number;
|
|
1671
1435
|
name: string;
|
|
1672
1436
|
first_air_date: string;
|
|
1673
|
-
backdrop_path: string
|
|
1437
|
+
backdrop_path: Nullable<string>;
|
|
1674
1438
|
genre_ids: number[];
|
|
1675
1439
|
origin_country: string[];
|
|
1676
1440
|
original_language: string;
|
|
1677
1441
|
original_name: string;
|
|
1678
1442
|
overview: string;
|
|
1679
|
-
poster_path: string
|
|
1443
|
+
poster_path: Nullable<string>;
|
|
1680
1444
|
popularity: number;
|
|
1681
1445
|
vote_count: number;
|
|
1682
1446
|
vote_average: number;
|
|
@@ -1745,9 +1509,9 @@ interface Review {
|
|
|
1745
1509
|
author: string;
|
|
1746
1510
|
author_details: AuthorDetails;
|
|
1747
1511
|
content: string;
|
|
1748
|
-
created_at:
|
|
1512
|
+
created_at: TMDBDateTime;
|
|
1749
1513
|
id: string;
|
|
1750
|
-
updated_at:
|
|
1514
|
+
updated_at: TMDBDateTime;
|
|
1751
1515
|
url: string;
|
|
1752
1516
|
}
|
|
1753
1517
|
interface Reviews {
|
|
@@ -1796,9 +1560,24 @@ type TokenType = string | TMDBConfig;
|
|
|
1796
1560
|
//# sourceMappingURL=types.d.ts.map
|
|
1797
1561
|
//#endregion
|
|
1798
1562
|
//#region src/@types/models/baseEndpoint.d.ts
|
|
1563
|
+
/**
|
|
1564
|
+
* Base class for all TMDB API endpoints.
|
|
1565
|
+
*
|
|
1566
|
+
* Provides a configured {@link API} client instance to subclasses.
|
|
1567
|
+
*/
|
|
1799
1568
|
declare class BaseEndpoint {
|
|
1800
1569
|
protected readonly auth: TokenType;
|
|
1801
|
-
|
|
1570
|
+
/**
|
|
1571
|
+
* Low-level HTTP client wrapper used by all endpoints.
|
|
1572
|
+
*/
|
|
1573
|
+
protected readonly api: API;
|
|
1574
|
+
/**
|
|
1575
|
+
* Create a new endpoint instance.
|
|
1576
|
+
*
|
|
1577
|
+
* @param {TokenType} auth - Authentication information.
|
|
1578
|
+
* - If a string: treated as a v4 API Read Access Token (Bearer token).
|
|
1579
|
+
* - If an object: can include an API key and/or access token.
|
|
1580
|
+
*/
|
|
1802
1581
|
constructor(auth: TokenType);
|
|
1803
1582
|
}
|
|
1804
1583
|
//# sourceMappingURL=baseEndpoint.d.ts.map
|
|
@@ -1806,40 +1585,64 @@ declare class BaseEndpoint {
|
|
|
1806
1585
|
//#region src/endpoints/account.d.ts
|
|
1807
1586
|
/**
|
|
1808
1587
|
* Represents an endpoint for retrieving account details.
|
|
1588
|
+
*
|
|
1589
|
+
* TMDB v3 reference:
|
|
1590
|
+
* - GET /account/{account_id}
|
|
1591
|
+
*
|
|
1592
|
+
* Note:
|
|
1593
|
+
* TMDB does not expose a generic "GET /account" for account details. You must
|
|
1594
|
+
* provide an `account_id`. Most apps obtain it from an auth flow and then cache
|
|
1595
|
+
* it for subsequent requests.
|
|
1809
1596
|
*/
|
|
1810
1597
|
declare class AccountEndpoint extends BaseEndpoint {
|
|
1811
1598
|
protected readonly access_token: TokenType;
|
|
1812
1599
|
/**
|
|
1813
1600
|
* Constructs a new AccountEndpoint instance.
|
|
1814
|
-
*
|
|
1601
|
+
*
|
|
1602
|
+
* @param {TokenType} access_token - The access token used for authentication.
|
|
1815
1603
|
*/
|
|
1816
1604
|
constructor(access_token: TokenType);
|
|
1817
1605
|
/**
|
|
1818
1606
|
* Retrieves account details asynchronously.
|
|
1607
|
+
*
|
|
1608
|
+
* TMDB: GET /account/{account_id}
|
|
1609
|
+
*
|
|
1610
|
+
* @param {number} accountId - The TMDB account ID.
|
|
1819
1611
|
* @returns {Promise<AccountDetails>} A Promise that resolves with the account details.
|
|
1820
1612
|
*/
|
|
1821
|
-
details(): Promise<AccountDetails>;
|
|
1613
|
+
details(accountId: number): Promise<AccountDetails>;
|
|
1822
1614
|
}
|
|
1823
1615
|
//# sourceMappingURL=account.d.ts.map
|
|
1824
1616
|
//#endregion
|
|
1825
1617
|
//#region src/endpoints/certification.d.ts
|
|
1826
1618
|
/**
|
|
1827
1619
|
* Represents an endpoint for retrieving certifications for movies and TV shows.
|
|
1620
|
+
*
|
|
1621
|
+
* TMDB v3 reference:
|
|
1622
|
+
* - GET /certification/movie/list
|
|
1623
|
+
* - GET /certification/tv/list
|
|
1828
1624
|
*/
|
|
1829
1625
|
declare class CertificationEndpoint extends BaseEndpoint {
|
|
1830
1626
|
protected readonly access_token: TokenType;
|
|
1831
1627
|
/**
|
|
1832
1628
|
* Constructs a new CertificationEndpoint instance.
|
|
1833
|
-
*
|
|
1629
|
+
*
|
|
1630
|
+
* @param {TokenType} access_token - The access token used for authentication.
|
|
1834
1631
|
*/
|
|
1835
1632
|
constructor(access_token: TokenType);
|
|
1836
1633
|
/**
|
|
1837
1634
|
* Retrieves certifications for movies asynchronously.
|
|
1635
|
+
*
|
|
1636
|
+
* TMDB: GET /certification/movie/list
|
|
1637
|
+
*
|
|
1838
1638
|
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for movies.
|
|
1839
1639
|
*/
|
|
1840
1640
|
movies(): Promise<Certifications>;
|
|
1841
1641
|
/**
|
|
1842
1642
|
* Retrieves certifications for TV shows asynchronously.
|
|
1643
|
+
*
|
|
1644
|
+
* TMDB: GET /certification/tv/list
|
|
1645
|
+
*
|
|
1843
1646
|
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for TV shows.
|
|
1844
1647
|
*/
|
|
1845
1648
|
tv(): Promise<Certifications>;
|
|
@@ -1849,28 +1652,43 @@ declare class CertificationEndpoint extends BaseEndpoint {
|
|
|
1849
1652
|
//#region src/endpoints/changes.d.ts
|
|
1850
1653
|
/**
|
|
1851
1654
|
* Represents an endpoint for retrieving changes in movies, TV shows, and persons.
|
|
1655
|
+
*
|
|
1656
|
+
* TMDB v3 reference:
|
|
1657
|
+
* - GET /movie/changes
|
|
1658
|
+
* - GET /tv/changes
|
|
1659
|
+
* - GET /person/changes
|
|
1852
1660
|
*/
|
|
1853
1661
|
declare class ChangeEndpoint extends BaseEndpoint {
|
|
1854
1662
|
protected readonly access_token: TokenType;
|
|
1855
1663
|
/**
|
|
1856
1664
|
* Constructs a new ChangeEndpoint instance.
|
|
1857
|
-
*
|
|
1665
|
+
*
|
|
1666
|
+
* @param {TokenType} access_token - The access token used for authentication.
|
|
1858
1667
|
*/
|
|
1859
1668
|
constructor(access_token: TokenType);
|
|
1860
1669
|
/**
|
|
1861
1670
|
* Retrieves changes in movies asynchronously.
|
|
1671
|
+
*
|
|
1672
|
+
* TMDB: GET /movie/changes
|
|
1673
|
+
*
|
|
1862
1674
|
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
1863
1675
|
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in movies.
|
|
1864
1676
|
*/
|
|
1865
1677
|
movies(options?: ChangeOption): Promise<MediaChanges>;
|
|
1866
1678
|
/**
|
|
1867
1679
|
* Retrieves changes in TV shows asynchronously.
|
|
1680
|
+
*
|
|
1681
|
+
* TMDB: GET /tv/changes
|
|
1682
|
+
*
|
|
1868
1683
|
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
1869
1684
|
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in TV shows.
|
|
1870
1685
|
*/
|
|
1871
1686
|
tv(options?: ChangeOption): Promise<MediaChanges>;
|
|
1872
1687
|
/**
|
|
1873
1688
|
* Retrieves changes related to persons asynchronously.
|
|
1689
|
+
*
|
|
1690
|
+
* TMDB: GET /person/changes
|
|
1691
|
+
*
|
|
1874
1692
|
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
1875
1693
|
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes related to persons.
|
|
1876
1694
|
*/
|
|
@@ -1987,22 +1805,33 @@ declare class CreditsEndpoint extends BaseEndpoint {
|
|
|
1987
1805
|
//#region src/endpoints/discover.d.ts
|
|
1988
1806
|
/**
|
|
1989
1807
|
* Represents an endpoint for discovering movies and TV shows based on various criteria.
|
|
1808
|
+
*
|
|
1809
|
+
* TMDB v3 reference:
|
|
1810
|
+
* - GET /discover/movie
|
|
1811
|
+
* - GET /discover/tv
|
|
1990
1812
|
*/
|
|
1991
1813
|
declare class DiscoverEndpoint extends BaseEndpoint {
|
|
1992
1814
|
protected readonly access_token: TokenType;
|
|
1993
1815
|
/**
|
|
1994
1816
|
* Constructs a new DiscoverEndpoint instance.
|
|
1995
|
-
*
|
|
1817
|
+
*
|
|
1818
|
+
* @param {TokenType} access_token - The access token used for authentication.
|
|
1996
1819
|
*/
|
|
1997
1820
|
constructor(access_token: TokenType);
|
|
1998
1821
|
/**
|
|
1999
1822
|
* Retrieves a list of movies based on the provided query options asynchronously.
|
|
1823
|
+
*
|
|
1824
|
+
* TMDB: GET /discover/movie
|
|
1825
|
+
*
|
|
2000
1826
|
* @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
|
|
2001
1827
|
* @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
|
|
2002
1828
|
*/
|
|
2003
1829
|
movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
|
|
2004
1830
|
/**
|
|
2005
1831
|
* Retrieves a list of TV shows based on the provided query options asynchronously.
|
|
1832
|
+
*
|
|
1833
|
+
* TMDB: GET /discover/tv
|
|
1834
|
+
*
|
|
2006
1835
|
* @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
|
|
2007
1836
|
* @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
|
|
2008
1837
|
*/
|
|
@@ -2758,26 +2587,21 @@ declare class WatchProvidersEndpoint extends BaseEndpoint {
|
|
|
2758
2587
|
* @param {string} access_token - The access token used for authentication.
|
|
2759
2588
|
*/
|
|
2760
2589
|
constructor(access_token: TokenType);
|
|
2761
|
-
/**
|
|
2762
|
-
* Retrieves a list of all available watch providers (streaming services).
|
|
2763
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of watch providers.
|
|
2764
|
-
*/
|
|
2765
|
-
available(): Promise<WatchProviders>;
|
|
2766
|
-
/**
|
|
2767
|
-
* Retrieves a list of available regions for watch providers.
|
|
2768
|
-
* @returns {Promise<WatchRegionsResponse>} A Promise that resolves with the list of available regions.
|
|
2769
|
-
*/
|
|
2770
|
-
regions(): Promise<WatchRegionsResponse>;
|
|
2771
2590
|
/**
|
|
2772
2591
|
* Retrieves a list of watch providers for movies.
|
|
2773
|
-
* @returns {Promise<
|
|
2592
|
+
* @returns {Promise<WatchProviderListResponse>} A Promise that resolves with the list of movie watch providers.
|
|
2774
2593
|
*/
|
|
2775
|
-
movie(): Promise<
|
|
2594
|
+
movie(): Promise<WatchProviderListResponse>;
|
|
2776
2595
|
/**
|
|
2777
2596
|
* Retrieves a list of watch providers for TV shows.
|
|
2778
|
-
* @returns {Promise<
|
|
2597
|
+
* @returns {Promise<WatchProviderListResponse>} A Promise that resolves with the list of TV watch providers.
|
|
2598
|
+
*/
|
|
2599
|
+
tv(): Promise<WatchProviderListResponse>;
|
|
2600
|
+
/**
|
|
2601
|
+
* Retrieves a list of available regions for watch providers.
|
|
2602
|
+
* @returns {Promise<WatchProviderListResponse>} A Promise that resolves with the list of available regions.
|
|
2779
2603
|
*/
|
|
2780
|
-
|
|
2604
|
+
regions(): Promise<WatchProviderListResponse>;
|
|
2781
2605
|
}
|
|
2782
2606
|
//# sourceMappingURL=watchProviders.d.ts.map
|
|
2783
2607
|
//#endregion
|
|
@@ -2807,5 +2631,5 @@ declare class TMDB {
|
|
|
2807
2631
|
watchProviders: WatchProvidersEndpoint;
|
|
2808
2632
|
}
|
|
2809
2633
|
//#endregion
|
|
2810
|
-
export { API, AccountDetails, AggregateCast, AggregateCredits, AggregateCrew, AiringTodayResult, AlternativeNames, AlternativeTitles, AppendToResponse, AppendToResponseMediaType, AppendToResponseMovieKey, AppendToResponsePersonKey, AppendToResponseTvEpisodeKey, AppendToResponseTvKey, AppendToResponseTvSeasonKey, AuthorDetails, Avatar, BackdropSizes, BaseEndpoint, BelongingMovies, BelongsToCollection, Buy, Cast, CastRole, Certification, Certifications, Change, ChangeItem, ChangeKeys, ChangeOption, Changes, Collection, CollectionImageOptions, CollectionSearchOptions, Company, CompanyDetails, CompanyImages, Configuration, ContentRatings, ContentRatingsResult, CreatedBy, CreditResponse, CreditSeason, Credits, Crew, CrewJob, Dates, DetailedCollection, DiscoverQueryOptions, Episode, EpisodeGroup, EpisodeGroups, EpisodeSelection, ErrorResponse, ExternalIdOptions, ExternalIds, ExternalSource, FindResult, Flatrate, Genre, Genres, Gravatar, GuestStar, Image, ImageCollection, ImageConfiguration, ImageFormat, ImageFormats, ImageSize, ImageSizes, Images, Keyword, Keywords, KeywordsOptions, KnownFor, LanguageOption, LastEpisodeToAir, LatestMovie, Latesttv, LogoSizes, Media$1 as Media, MediaChange, MediaChanges, MediaType, Movie, MovieChangeValue, MovieDetails, MovieDiscoverResult, MovieList, MovieLists, MovieQueryOptions, MovieSearchOptions, MovieWithMediaType, MoviesImageSearchOptions, MoviesPlayingNow, MultiSearchOptions, MultiSearchResult, Name, Network, NetworkDetails, NetworkImages, NextEpisodeToAir, OnTheAir, OnTheAirResult, PageOption, ParentCompany, PeopleImages, PeopleSearchOptions, Person, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCast, PersonMovieCredit, PersonMovieCrew, PersonTranslations, PersonTvShowCast, PersonTvShowCredit, PersonTvShowCrew, PersonWithMediaType, PopularMovies, PopularPersons, PopularTvShowResult, Populartv, PosterSizes, ProductionCompany, ProductionCountry, ProfileSizes, Recommendation, Recommendations, RegionOption, ReleaseDate, ReleaseDateResult, ReleaseDateType, ReleaseDates, Rent, Review, ReviewDetails, Reviews, ScreenedTheatrically, ScreenedTheatricallyResult, Search, SearchOptions, Season, SeasonDetails, SeasonSelection, SimilarMovies, SimilarTvShow, Similartv,
|
|
2634
|
+
export { API, AccountDetails, AggregateCast, AggregateCredits, AggregateCrew, AiringTodayResult, AlternativeNames, AlternativeTitles, AppendToResponse, AppendToResponseMediaType, AppendToResponseMovieKey, AppendToResponsePersonKey, AppendToResponseTvEpisodeKey, AppendToResponseTvKey, AppendToResponseTvSeasonKey, AuthorDetails, Avatar, BackdropSizes, BaseEndpoint, BelongingMovies, BelongsToCollection, Buy, Cast, CastRole, Certification, Certifications, Change, ChangeItem, ChangeKeys, ChangeOption, Changes, Collection, CollectionImageOptions, CollectionSearchOptions, Company, CompanyDetails, CompanyImages, Configuration, ContentRatings, ContentRatingsResult, CreatedBy, CreditResponse, CreditSeason, Credits, Crew, CrewJob, Dates, DetailedCollection, DiscoverQueryOptions, Episode, EpisodeGroup, EpisodeGroups, EpisodeSelection, ErrorResponse, ExternalIdOptions, ExternalIds, ExternalSource, FindResult, Flatrate, Genre, Genres, Gravatar, GuestStar, Image, ImageCollection, ImageConfiguration, ImageFormat, ImageFormats, ImageSize, ImageSizes, Images, Keyword, Keywords, KeywordsOptions, KnownFor, LanguageOption, LastEpisodeToAir, LatestMovie, Latesttv, LogoSizes, Media$1 as Media, MediaChange, MediaChanges, MediaType, Movie, MovieChangeValue, MovieDetails, MovieDiscoverResult, MovieList, MovieLists, MovieQueryOptions, MovieSearchOptions, MovieSortOption, MovieWithMediaType, MoviesImageSearchOptions, MoviesPlayingNow, MultiSearchOptions, MultiSearchResult, Name, Network, NetworkDetails, NetworkImages, NextEpisodeToAir, OnTheAir, OnTheAirResult, PageOption, ParentCompany, PeopleImages, PeopleSearchOptions, Person, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCast, PersonMovieCredit, PersonMovieCrew, PersonTranslations, PersonTvShowCast, PersonTvShowCredit, PersonTvShowCrew, PersonWithMediaType, PopularMovies, PopularPersons, PopularTvShowResult, Populartv, PosterSizes, Primitive, ProductionCompany, ProductionCountry, ProfileSizes, Query, QueryValue, Recommendation, Recommendations, RegionOption, ReleaseDate, ReleaseDateResult, ReleaseDateType, ReleaseDates, Rent, RequestOptions, Review, ReviewDetails, Reviews, ScreenedTheatrically, ScreenedTheatricallyResult, Search, SearchOptions, Season, SeasonDetails, SeasonSelection, SimilarMovies, SimilarTvShow, Similartv, SpokenLanguage, StillSizes, TMDB, TMDBConfig, TMDBError, TMDB_IMAGE_BASE_URL, TV, TVWithMediaType, TaggedImage, TaggedImages, TimeWindow, TimezoneOption, Title, TokenType, TopRatedMovies, TopRatedTvShowResult, TopRatedtv, Translation, TranslationData, Translations, TrendingMediaType, TrendingResults, TvEpisodeChangeValue, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, TvSearchOptions, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, TvShowChangeValue, TvShowDetails, TvShowDiscoverResult, TvShowImageOptions, TvShowQueryOptions, TvShowVideoOptions, TvSortOption, UpcomingMovies, Video, Videos, WatchLocale, WatchMonetizationType, WatchProviderEntry, WatchProviderListItem, WatchProviderListResponse, WatchProviders, WatchRegion, WatchRegionsResponse, formImage, getFullImagePath, parseOptions, tvAiringToday };
|
|
2811
2635
|
//# sourceMappingURL=index.d.mts.map
|