@tdanks2000/tmdb-wrapper 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/@types/endpoints/account.d.ts +16 -0
  2. package/dist/@types/endpoints/account.d.ts.map +1 -0
  3. package/dist/@types/endpoints/certification.d.ts +19 -0
  4. package/dist/@types/endpoints/certification.d.ts.map +1 -0
  5. package/dist/@types/endpoints/changes.d.ts +26 -0
  6. package/dist/@types/endpoints/changes.d.ts.map +1 -0
  7. package/dist/@types/endpoints/collection.d.ts +21 -0
  8. package/dist/@types/endpoints/collection.d.ts.map +1 -0
  9. package/dist/@types/endpoints/companies.d.ts +29 -0
  10. package/dist/@types/endpoints/companies.d.ts.map +1 -0
  11. package/dist/@types/endpoints/configuration.d.ts +106 -0
  12. package/dist/@types/endpoints/configuration.d.ts.map +1 -0
  13. package/dist/@types/endpoints/credits.d.ts +135 -0
  14. package/dist/@types/endpoints/credits.d.ts.map +1 -0
  15. package/dist/@types/endpoints/discover.d.ts +68 -0
  16. package/dist/@types/endpoints/discover.d.ts.map +1 -0
  17. package/dist/@types/endpoints/find.d.ts +20 -0
  18. package/dist/@types/endpoints/find.d.ts.map +1 -0
  19. package/dist/@types/endpoints/genre.d.ts +7 -0
  20. package/dist/@types/endpoints/genre.d.ts.map +1 -0
  21. package/dist/@types/endpoints/index.d.ts +23 -0
  22. package/dist/@types/endpoints/index.d.ts.map +1 -0
  23. package/dist/@types/endpoints/keywords.d.ts +21 -0
  24. package/dist/@types/endpoints/keywords.d.ts.map +1 -0
  25. package/dist/@types/endpoints/movies.d.ts +150 -0
  26. package/dist/@types/endpoints/movies.d.ts.map +1 -0
  27. package/dist/@types/endpoints/networks.d.ts +14 -0
  28. package/dist/@types/endpoints/networks.d.ts.map +1 -0
  29. package/dist/@types/endpoints/options.d.ts +71 -0
  30. package/dist/@types/endpoints/options.d.ts.map +1 -0
  31. package/dist/@types/endpoints/people.d.ts +135 -0
  32. package/dist/@types/endpoints/people.d.ts.map +1 -0
  33. package/dist/@types/endpoints/review.d.ts +8 -0
  34. package/dist/@types/endpoints/review.d.ts.map +1 -0
  35. package/dist/@types/endpoints/search.d.ts +32 -0
  36. package/dist/@types/endpoints/search.d.ts.map +1 -0
  37. package/dist/@types/endpoints/trending.d.ts +12 -0
  38. package/dist/@types/endpoints/trending.d.ts.map +1 -0
  39. package/dist/@types/endpoints/tvEpisode.d.ts +65 -0
  40. package/dist/@types/endpoints/tvEpisode.d.ts.map +1 -0
  41. package/dist/@types/endpoints/tvSeasons.d.ts +31 -0
  42. package/dist/@types/endpoints/tvSeasons.d.ts.map +1 -0
  43. package/dist/@types/endpoints/tvShows.d.ts +260 -0
  44. package/dist/@types/endpoints/tvShows.d.ts.map +1 -0
  45. package/dist/@types/endpoints/watchProviders.d.ts +303 -0
  46. package/dist/@types/endpoints/watchProviders.d.ts.map +1 -0
  47. package/dist/@types/index.d.ts +4 -0
  48. package/dist/@types/index.d.ts.map +1 -0
  49. package/dist/@types/models/baseEndpoint.d.ts +8 -0
  50. package/dist/@types/models/baseEndpoint.d.ts.map +1 -0
  51. package/dist/@types/models/index.d.ts +2 -0
  52. package/dist/@types/models/index.d.ts.map +1 -0
  53. package/dist/@types/types.d.ts +179 -0
  54. package/dist/@types/types.d.ts.map +1 -0
  55. package/dist/endpoints/account.d.ts +18 -0
  56. package/dist/endpoints/account.d.ts.map +1 -0
  57. package/dist/endpoints/certification.d.ts +23 -0
  58. package/dist/endpoints/certification.d.ts.map +1 -0
  59. package/dist/endpoints/changes.d.ts +31 -0
  60. package/dist/endpoints/changes.d.ts.map +1 -0
  61. package/dist/endpoints/collections.d.ts +34 -0
  62. package/dist/endpoints/collections.d.ts.map +1 -0
  63. package/dist/endpoints/companies.d.ts +31 -0
  64. package/dist/endpoints/companies.d.ts.map +1 -0
  65. package/dist/endpoints/configuration.d.ts +18 -0
  66. package/dist/endpoints/configuration.d.ts.map +1 -0
  67. package/dist/endpoints/credits.d.ts +19 -0
  68. package/dist/endpoints/credits.d.ts.map +1 -0
  69. package/dist/endpoints/discover.d.ts +25 -0
  70. package/dist/endpoints/discover.d.ts.map +1 -0
  71. package/dist/endpoints/find.d.ts +20 -0
  72. package/dist/endpoints/find.d.ts.map +1 -0
  73. package/dist/endpoints/genre.d.ts +25 -0
  74. package/dist/endpoints/genre.d.ts.map +1 -0
  75. package/dist/endpoints/index.d.ts +22 -0
  76. package/dist/endpoints/index.d.ts.map +1 -0
  77. package/dist/endpoints/keywords.d.ts +26 -0
  78. package/dist/endpoints/keywords.d.ts.map +1 -0
  79. package/dist/endpoints/movies.d.ts +142 -0
  80. package/dist/endpoints/movies.d.ts.map +1 -0
  81. package/dist/endpoints/networks.d.ts +31 -0
  82. package/dist/endpoints/networks.d.ts.map +1 -0
  83. package/dist/endpoints/people.d.ts +85 -0
  84. package/dist/endpoints/people.d.ts.map +1 -0
  85. package/dist/endpoints/review.d.ts +19 -0
  86. package/dist/endpoints/review.d.ts.map +1 -0
  87. package/dist/endpoints/search.d.ts +58 -0
  88. package/dist/endpoints/search.d.ts.map +1 -0
  89. package/dist/endpoints/trending.d.ts +22 -0
  90. package/dist/endpoints/trending.d.ts.map +1 -0
  91. package/dist/endpoints/tvEpisodes.d.ts +62 -0
  92. package/dist/endpoints/tvEpisodes.d.ts.map +1 -0
  93. package/dist/endpoints/tvSeasons.d.ts +71 -0
  94. package/dist/endpoints/tvSeasons.d.ts.map +1 -0
  95. package/dist/endpoints/tvShows.d.ts +164 -0
  96. package/dist/endpoints/tvShows.d.ts.map +1 -0
  97. package/dist/endpoints/watchProviders.d.ts +33 -0
  98. package/dist/endpoints/watchProviders.d.ts.map +1 -0
  99. package/dist/index.d.ts +30 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/utils/api.d.ts +14 -0
  102. package/dist/utils/api.d.ts.map +1 -0
  103. package/dist/utils/getimagePath.d.ts +32 -0
  104. package/dist/utils/getimagePath.d.ts.map +1 -0
  105. package/dist/utils/index.d.ts +3 -0
  106. package/dist/utils/index.d.ts.map +1 -0
  107. package/package.json +4 -4
@@ -0,0 +1,142 @@
1
+ import { AlternativeTitles, AppendToResponse, AppendToResponseMovieKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, Keywords, LanguageOption, LatestMovie, MovieChangeValue, MovieDetails, MovieLists, MoviesImageSearchOptions, MoviesPlayingNow, PageOption, PopularMovies, Recommendations, RegionOption, ReleaseDates, Reviews, SimilarMovies, TokenType, TopRatedMovies, Translations, UpcomingMovies, Videos, WatchProviders } from "../@types";
2
+ /**
3
+ * Represents an endpoint for accessing movie-related information.
4
+ */
5
+ export declare class MoviesEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new MoviesEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves details of a specific movie asynchronously.
14
+ * @param {number} id - The ID of the movie.
15
+ * @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
16
+ * @param {string} [language] - Optional parameter for specifying the language.
17
+ * @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
18
+ */
19
+ details<T extends AppendToResponseMovieKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<MovieDetails, T, "movie">>;
20
+ /**
21
+ * Retrieves alternative titles of a specific movie asynchronously.
22
+ * @param {number} id - The ID of the movie.
23
+ * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
24
+ */
25
+ alternativeTitles(id: number): Promise<AlternativeTitles>;
26
+ /**
27
+ * Retrieves changes made to a specific movie asynchronously.
28
+ * @param {number} id - The ID of the movie.
29
+ * @param {ChangeOption} [options] - Optional parameters for filtering changes.
30
+ * @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
31
+ */
32
+ changes(id: number, options?: ChangeOption): Promise<Changes<MovieChangeValue>>;
33
+ /**
34
+ * Retrieves credits of a specific movie asynchronously.
35
+ * @param {number} id - The ID of the movie.
36
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
37
+ * @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
38
+ */
39
+ credits(id: number, options?: LanguageOption): Promise<Credits>;
40
+ /**
41
+ * Retrieves external IDs of a specific movie asynchronously.
42
+ * @param {number} id - The ID of the movie.
43
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
44
+ */
45
+ externalIds(id: number): Promise<ExternalIds>;
46
+ /**
47
+ * Retrieves images of a specific movie asynchronously.
48
+ * @param {number} id - The ID of the movie.
49
+ * @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
50
+ * @returns {Promise<Images>} A Promise that resolves with the images of the movie.
51
+ */
52
+ images(id: number, options?: MoviesImageSearchOptions): Promise<Images>;
53
+ /**
54
+ * Retrieves keywords of a specific movie asynchronously.
55
+ * @param {number} id - The ID of the movie.
56
+ * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
57
+ */
58
+ keywords(id: number): Promise<Keywords>;
59
+ /**
60
+ * Retrieves lists containing a specific movie asynchronously.
61
+ * @param {number} id - The ID of the movie.
62
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
63
+ * @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
64
+ */
65
+ lists(id: number, options?: LanguageOption & PageOption): Promise<MovieLists>;
66
+ /**
67
+ * Retrieves recommendations for a specific movie asynchronously.
68
+ * @param {number} id - The ID of the movie.
69
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
70
+ * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
71
+ */
72
+ recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
73
+ /**
74
+ * Retrieves release dates of a specific movie asynchronously.
75
+ * @param {number} id - The ID of the movie.
76
+ * @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
77
+ */
78
+ releaseDates(id: number): Promise<ReleaseDates>;
79
+ /**
80
+ * Retrieves reviews for a specific movie asynchronously.
81
+ * @param {number} id - The ID of the movie.
82
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
83
+ * @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
84
+ */
85
+ reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
86
+ /**
87
+ * Retrieves similar movies for a specific movie asynchronously.
88
+ * @param {number} id - The ID of the movie.
89
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
90
+ * @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
91
+ */
92
+ similar(id: number, options?: LanguageOption & PageOption): Promise<SimilarMovies>;
93
+ /**
94
+ * Retrieves translations of a specific movie asynchronously.
95
+ * @param {number} id - The ID of the movie.
96
+ * @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
97
+ */
98
+ translations(id: number): Promise<Translations>;
99
+ /**
100
+ * Retrieves videos of a specific movie asynchronously.
101
+ * @param {number} id - The ID of the movie.
102
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
103
+ * @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
104
+ */
105
+ videos(id: number, options?: LanguageOption): Promise<Videos>;
106
+ /**
107
+ * Retrieves watch providers of a specific movie asynchronously.
108
+ * @param {number} id - The ID of the movie.
109
+ * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
110
+ */
111
+ watchProviders(id: number): Promise<WatchProviders>;
112
+ /**
113
+ * Retrieves details of the latest movie asynchronously.
114
+ * @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
115
+ */
116
+ latest(): Promise<LatestMovie>;
117
+ /**
118
+ * Retrieves movies playing now asynchronously.
119
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
120
+ * @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
121
+ */
122
+ nowPlaying(options?: PageOption & LanguageOption & RegionOption): Promise<MoviesPlayingNow>;
123
+ /**
124
+ * Retrieves popular movies asynchronously.
125
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
126
+ * @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
127
+ */
128
+ popular(options?: LanguageOption & PageOption): Promise<PopularMovies>;
129
+ /**
130
+ * Retrieves top rated movies asynchronously.
131
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
132
+ * @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
133
+ */
134
+ topRated(options?: PageOption & LanguageOption & RegionOption): Promise<TopRatedMovies>;
135
+ /**
136
+ * Retrieves upcoming movies asynchronously.
137
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
138
+ * @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
139
+ */
140
+ upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
141
+ }
142
+ //# sourceMappingURL=movies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../src/endpoints/movies.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,QAAQ,EACR,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,wBAAwB,EACxB,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,aAAa,EACb,SAAS,EACT,cAAc,EACd,YAAY,EACZ,cAAc,EACd,MAAM,EACN,cAAc,EACd,MAAM,WAAW,CAAC;AAInB;;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MrD;;;;;OAKG;IACG,OAAO,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACnC,OAAO,CAAC,OAAO,CAAC;IAOnB;;;;;OAKG;IACG,OAAO,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACnC,OAAO,CAAC,aAAa,CAAC;IAQzB;;;;OAIG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIrD;;;;;OAKG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAOnE;;;;OAIG;IACG,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAMzD;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC;IAIpC;;;;OAIG;IACG,UAAU,CACf,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,YAAY,GAClD,OAAO,CAAC,gBAAgB,CAAC;IAQ5B;;;;OAIG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC;IAO5E;;;;OAIG;IACG,QAAQ,CACb,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,YAAY,GAClD,OAAO,CAAC,cAAc,CAAC;IAQ1B;;;;OAIG;IACG,QAAQ,CACb,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,YAAY,GAClD,OAAO,CAAC,cAAc,CAAC;CAO1B"}
@@ -0,0 +1,31 @@
1
+ import { AlternativeNames, BaseEndpoint, NetworkDetails, NetworkImages, TokenType } from "../@types";
2
+ /**
3
+ * Represents an endpoint for accessing network details.
4
+ */
5
+ export declare class NetworksEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new NetworksEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves details of a specific network asynchronously.
14
+ * @param {number} id - The ID of the network.
15
+ * @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
16
+ */
17
+ details(id: number): Promise<NetworkDetails>;
18
+ /**
19
+ * Retrieves alternative names of a specific network asynchronously.
20
+ * @param {number} id - The ID of the network.
21
+ * @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
22
+ */
23
+ alternativeNames(id: number): Promise<AlternativeNames>;
24
+ /**
25
+ * Retrieves images of a specific network asynchronously.
26
+ * @param {number} id - The ID of the network.
27
+ * @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
28
+ */
29
+ images(id: number): Promise<NetworkImages>;
30
+ }
31
+ //# sourceMappingURL=networks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/endpoints/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIlD;;;;OAIG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAM7D;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGhD"}
@@ -0,0 +1,85 @@
1
+ import { AppendToResponse, AppendToResponsePersonKey, BaseEndpoint, ChangeOption, Changes, ExternalIds, LanguageOption, PageOption, PeopleImages, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCredit, PersonTranslations, PersonTvShowCredit, PopularPersons, TaggedImages, TokenType } from "../@types";
2
+ /**
3
+ * Represents an endpoint for accessing information about people.
4
+ */
5
+ export declare class PeopleEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new PeopleEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves details of a specific person asynchronously.
14
+ * @param {number} id - The ID of the person.
15
+ * @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
16
+ * @param {string} [language] - Optional parameter for specifying the language.
17
+ * @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
18
+ */
19
+ details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<PersonDetails, T, "person">>;
20
+ /**
21
+ * Retrieves changes made to a specific person asynchronously.
22
+ * @param {number} id - The ID of the person.
23
+ * @param {ChangeOption} [options] - Optional parameters for filtering changes.
24
+ * @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
25
+ */
26
+ changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
27
+ /**
28
+ * Retrieves movie credits of a specific person asynchronously.
29
+ * @param {number} id - The ID of the person.
30
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
31
+ * @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
32
+ */
33
+ movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
34
+ /**
35
+ * Retrieves TV show credits of a specific person asynchronously.
36
+ * @param {number} id - The ID of the person.
37
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
38
+ * @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
39
+ */
40
+ tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
41
+ /**
42
+ * Retrieves combined credits of a specific person asynchronously.
43
+ * @param {number} id - The ID of the person.
44
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
45
+ * @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
46
+ */
47
+ combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
48
+ /**
49
+ * Retrieves external IDs of a specific person asynchronously.
50
+ * @param {number} id - The ID of the person.
51
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
52
+ */
53
+ externalId(id: number): Promise<ExternalIds>;
54
+ /**
55
+ * Retrieves images of a specific person asynchronously.
56
+ * @param {number} id - The ID of the person.
57
+ * @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
58
+ */
59
+ images(id: number): Promise<PeopleImages>;
60
+ /**
61
+ * Retrieves tagged images of a specific person asynchronously.
62
+ * @param {number} id - The ID of the person.
63
+ * @param {PageOption} [options] - Optional parameters for specifying pagination options.
64
+ * @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
65
+ */
66
+ taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
67
+ /**
68
+ * Retrieves translations of a specific person asynchronously.
69
+ * @param {number} id - The ID of the person.
70
+ * @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
71
+ */
72
+ translation(id: number): Promise<PersonTranslations>;
73
+ /**
74
+ * Retrieves details of the latest person asynchronously.
75
+ * @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
76
+ */
77
+ latest(): Promise<PersonDetails>;
78
+ /**
79
+ * Retrieves popular persons asynchronously.
80
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
81
+ * @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
82
+ */
83
+ popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
84
+ }
85
+ //# sourceMappingURL=people.d.ts.map
@@ -0,0 +1 @@
1
+ {"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AAG,OAAO,CAAC,YAAY,CAAC;IAI/C;;;;;OAKG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAO3E;;;;OAIG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAM1D;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;IAItC;;;;OAIG;IACG,OAAO,CACZ,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACnC,OAAO,CAAC,cAAc,CAAC;CAM1B"}
@@ -0,0 +1,19 @@
1
+ import { BaseEndpoint, ReviewDetails, TokenType } from "../@types";
2
+ /**
3
+ * Represents an endpoint for accessing review details.
4
+ */
5
+ export declare class ReviewEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new ReviewEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves details of a specific review asynchronously.
14
+ * @param {string} id - The ID of the review.
15
+ * @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
16
+ */
17
+ details(id: string): Promise<ReviewDetails>;
18
+ }
19
+ //# sourceMappingURL=review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/endpoints/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEnE;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjD"}
@@ -0,0 +1,58 @@
1
+ import { BaseEndpoint, Collection, Company, Movie, MovieSearchOptions, MultiSearchOptions, MultiSearchResult, PeopleSearchOptions, Person, Search, SearchOptions, TokenType, TV, TvSearchOptions } from "../@types";
2
+ /**
3
+ * Represents an endpoint for performing various search operations.
4
+ */
5
+ export declare class SearchEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new SearchEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Searches for companies asynchronously.
14
+ * @param {SearchOptions} options - The search options.
15
+ * @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
16
+ */
17
+ companies(options: SearchOptions): Promise<Search<Company>>;
18
+ /**
19
+ * Searches for collections asynchronously.
20
+ * @param {SearchOptions} options - The search options.
21
+ * @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
22
+ */
23
+ collections(options: SearchOptions): Promise<Search<Collection>>;
24
+ /**
25
+ * Searches for keywords asynchronously.
26
+ * @param {SearchOptions} options - The search options.
27
+ * @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
28
+ */
29
+ keywords(options: SearchOptions): Promise<Search<{
30
+ id: string;
31
+ name: string;
32
+ }>>;
33
+ /**
34
+ * Searches for movies asynchronously.
35
+ * @param {MovieSearchOptions} options - The search options.
36
+ * @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
37
+ */
38
+ movies(options: MovieSearchOptions): Promise<Search<Movie>>;
39
+ /**
40
+ * Searches for people asynchronously.
41
+ * @param {PeopleSearchOptions} options - The search options.
42
+ * @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
43
+ */
44
+ people(options: PeopleSearchOptions): Promise<Search<Person>>;
45
+ /**
46
+ * Searches for TV shows asynchronously.
47
+ * @param {TvSearchOptions} options - The search options.
48
+ * @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
49
+ */
50
+ tv(options: TvSearchOptions): Promise<Search<TV>>;
51
+ /**
52
+ * Performs a multi-search asynchronously.
53
+ * @param {MultiSearchOptions} options - The search options.
54
+ * @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
55
+ */
56
+ multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
57
+ }
58
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,UAAU,EACV,OAAO,EACP,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,MAAM,EACN,aAAa,EACb,SAAS,EACT,EAAE,EACF,eAAe,EACf,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAQjE;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAQtE;;;;OAIG;IACG,QAAQ,CACb,OAAO,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQhD;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAQjE;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAQnE;;;;OAIG;IACG,EAAE,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAQvD;;;;OAIG;IACG,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAO5E"}
@@ -0,0 +1,22 @@
1
+ import { BaseEndpoint, LanguageOption, PageOption, TimeWindow, TokenType, TrendingMediaType, TrendingResults } from "../@types";
2
+ /**
3
+ * Represents an endpoint for retrieving trending content.
4
+ */
5
+ export declare class TrendingEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new TrendingEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves trending content asynchronously based on media type and time window.
14
+ * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
15
+ * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
16
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
17
+ * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
18
+ * @template T - The type of media being searched for (e.g., 'movie', 'tv').
19
+ */
20
+ trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption): Promise<TrendingResults<T>>;
21
+ }
22
+ //# sourceMappingURL=trending.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trending.d.ts","sourceRoot":"","sources":["../../src/endpoints/trending.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;;;OAOG;IACG,QAAQ,CAAC,CAAC,SAAS,iBAAiB,EACzC,SAAS,EAAE,CAAC,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACnC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAM9B"}
@@ -0,0 +1,62 @@
1
+ import { AppendToResponse, AppendToResponseTvEpisodeKey, BaseEndpoint, ChangeOption, Changes, Episode, EpisodeSelection, ExternalIds, Images, LanguageOption, TokenType, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, Videos } from "../@types";
2
+ /**
3
+ * Represents an endpoint for accessing TV episode-related information.
4
+ */
5
+ export declare class TvEpisodesEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new TvEpisodesEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves details of a specific TV episode asynchronously.
14
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
15
+ * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
16
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
17
+ * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
18
+ * A Promise that resolves with the details of the TV episode.
19
+ */
20
+ details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
21
+ /**
22
+ * Retrieves changes related to a specific TV episode asynchronously.
23
+ * @param {number} episodeID - The ID of the TV episode.
24
+ * @param {ChangeOption} [options] - Optional parameters for specifying changes.
25
+ * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
26
+ */
27
+ changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
28
+ /**
29
+ * Retrieves credits for a specific TV episode asynchronously.
30
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
31
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
32
+ * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
33
+ */
34
+ credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
35
+ /**
36
+ * Retrieves external IDs for a specific TV episode asynchronously.
37
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
38
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
39
+ */
40
+ externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
41
+ /**
42
+ * Retrieves images for a specific TV episode asynchronously.
43
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
44
+ * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
45
+ * @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
46
+ */
47
+ images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
48
+ /**
49
+ * Retrieves translations for a specific TV episode asynchronously.
50
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
51
+ * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
52
+ */
53
+ translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
54
+ /**
55
+ * Retrieves videos for a specific TV episode asynchronously.
56
+ * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
57
+ * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
58
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
59
+ */
60
+ videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
61
+ }
62
+ //# sourceMappingURL=tvEpisodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tvEpisodes.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvEpisodes.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,4BAA4B,EAC5B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,cAAc,EACd,SAAS,EAET,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,MAAM,EACN,MAAM,WAAW,CAAC;AAMnB;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,YAAY;IAKvC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,SAAS,4BAA4B,EAAE,GAAG,SAAS,EACjE,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,CAAC,EAAE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAczB;;;;;OAKG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAOvD;;;;;OAKG;IACG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc;IAO1E;;;;OAIG;IACG,WAAW,CAAC,gBAAgB,EAAE,gBAAgB;IAMpD;;;;;OAKG;IACG,MAAM,CACX,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,2BAA2B;IAYtC;;;;OAIG;IACG,YAAY,CAAC,gBAAgB,EAAE,gBAAgB;IAMrD;;;;;OAKG;IACG,MAAM,CACX,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,2BAA2B;CAWtC"}
@@ -0,0 +1,71 @@
1
+ import { AggregateCredits, AppendToResponse, AppendToResponseTvSeasonKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, LanguageOption, SeasonDetails, SeasonSelection, TokenType, Translations, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, Videos } from "../@types";
2
+ /**
3
+ * Represents an endpoint for accessing TV season-related information.
4
+ */
5
+ export declare class TvSeasonsEndpoint extends BaseEndpoint {
6
+ protected readonly access_token: TokenType;
7
+ /**
8
+ * Constructs a new TvSeasonsEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
11
+ constructor(access_token: TokenType);
12
+ /**
13
+ * Retrieves details of a specific TV season asynchronously.
14
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
15
+ * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
16
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
17
+ * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
18
+ * A Promise that resolves with the details of the TV season.
19
+ */
20
+ details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
21
+ /**
22
+ * Retrieves aggregate credits for a specific TV season asynchronously.
23
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
24
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
25
+ * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
26
+ */
27
+ aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
28
+ /**
29
+ * Retrieves changes related to a specific TV season asynchronously.
30
+ * @param {number} seasonId - The ID of the TV season.
31
+ * @param {ChangeOption} [options] - Optional parameters for specifying changes.
32
+ * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
33
+ */
34
+ changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
35
+ /**
36
+ * Retrieves credits for a specific TV season asynchronously.
37
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
38
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
39
+ * @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
40
+ */
41
+ credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
42
+ /**
43
+ * Retrieves external IDs for a specific TV season asynchronously.
44
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
45
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
46
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
47
+ */
48
+ externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
49
+ /**
50
+ * Retrieves images for a specific TV season asynchronously.
51
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
52
+ * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
53
+ * @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
54
+ */
55
+ images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
56
+ /**
57
+ * Retrieves videos for a specific TV season asynchronously.
58
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
59
+ * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
60
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
61
+ */
62
+ videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
63
+ /**
64
+ * Retrieves translations for a specific TV season asynchronously.
65
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
66
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
67
+ * @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
68
+ */
69
+ translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
70
+ }
71
+ //# sourceMappingURL=tvSeasons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tvSeasons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