@saeris/tmdbkit 0.0.0 → 0.1.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/CHANGELOG.md +7 -0
- package/LICENSE.md +21 -0
- package/README.md +385 -4
- package/dist/certification/getMovieCertifications.d.mts +9 -0
- package/dist/certification/getMovieCertifications.d.mts.map +1 -0
- package/dist/certification/getMovieCertifications.mjs +11 -0
- package/dist/certification/getMovieCertifications.mjs.map +1 -0
- package/dist/certification/getTvCertifications.d.mts +9 -0
- package/dist/certification/getTvCertifications.d.mts.map +1 -0
- package/dist/certification/getTvCertifications.mjs +11 -0
- package/dist/certification/getTvCertifications.mjs.map +1 -0
- package/dist/certification/index.d.mts +5 -0
- package/dist/certification/index.mjs +4 -0
- package/dist/certification/types/Certifications.d.mts +23 -0
- package/dist/certification/types/Certifications.d.mts.map +1 -0
- package/dist/certification/types/Certifications.mjs +24 -0
- package/dist/certification/types/Certifications.mjs.map +1 -0
- package/dist/certification/types/index.d.mts +2 -0
- package/dist/certification/types/index.mjs +1 -0
- package/dist/collection/getCollection.d.mts +37 -0
- package/dist/collection/getCollection.d.mts.map +1 -0
- package/dist/collection/getCollection.mjs +17 -0
- package/dist/collection/getCollection.mjs.map +1 -0
- package/dist/collection/getCollectionImages.d.mts +45 -0
- package/dist/collection/getCollectionImages.d.mts.map +1 -0
- package/dist/collection/getCollectionImages.mjs +21 -0
- package/dist/collection/getCollectionImages.mjs.map +1 -0
- package/dist/collection/getCollectionTranslations.d.mts +13 -0
- package/dist/collection/getCollectionTranslations.d.mts.map +1 -0
- package/dist/collection/getCollectionTranslations.mjs +14 -0
- package/dist/collection/getCollectionTranslations.mjs.map +1 -0
- package/dist/collection/index.d.mts +8 -0
- package/dist/collection/index.mjs +7 -0
- package/dist/collection/types/CollectionDetails.d.mts +23 -0
- package/dist/collection/types/CollectionDetails.d.mts.map +1 -0
- package/dist/collection/types/CollectionDetails.mjs +25 -0
- package/dist/collection/types/CollectionDetails.mjs.map +1 -0
- package/dist/collection/types/CollectionListItem.d.mts +24 -0
- package/dist/collection/types/CollectionListItem.d.mts.map +1 -0
- package/dist/collection/types/CollectionListItem.mjs +26 -0
- package/dist/collection/types/CollectionListItem.mjs.map +1 -0
- package/dist/collection/types/CollectionTranslations.d.mts +17 -0
- package/dist/collection/types/CollectionTranslations.d.mts.map +1 -0
- package/dist/collection/types/CollectionTranslations.mjs +18 -0
- package/dist/collection/types/CollectionTranslations.mjs.map +1 -0
- package/dist/collection/types/index.d.mts +4 -0
- package/dist/collection/types/index.mjs +4 -0
- package/dist/company/getCompany.d.mts +13 -0
- package/dist/company/getCompany.d.mts.map +1 -0
- package/dist/company/getCompany.mjs +14 -0
- package/dist/company/getCompany.mjs.map +1 -0
- package/dist/company/getCompanyAlternativeNames.d.mts +13 -0
- package/dist/company/getCompanyAlternativeNames.d.mts.map +1 -0
- package/dist/company/getCompanyAlternativeNames.mjs +14 -0
- package/dist/company/getCompanyAlternativeNames.mjs.map +1 -0
- package/dist/company/getCompanyImages.d.mts +13 -0
- package/dist/company/getCompanyImages.d.mts.map +1 -0
- package/dist/company/getCompanyImages.mjs +14 -0
- package/dist/company/getCompanyImages.mjs.map +1 -0
- package/dist/company/index.d.mts +7 -0
- package/dist/company/index.mjs +6 -0
- package/dist/company/types/CompanyDetails.d.mts +23 -0
- package/dist/company/types/CompanyDetails.d.mts.map +1 -0
- package/dist/company/types/CompanyDetails.mjs +26 -0
- package/dist/company/types/CompanyDetails.mjs.map +1 -0
- package/dist/company/types/CompanyListItem.d.mts +10 -0
- package/dist/company/types/CompanyListItem.d.mts.map +1 -0
- package/dist/company/types/CompanyListItem.mjs +13 -0
- package/dist/company/types/CompanyListItem.mjs.map +1 -0
- package/dist/company/types/index.d.mts +3 -0
- package/dist/company/types/index.mjs +3 -0
- package/dist/configuration/getConfiguration.d.mts +9 -0
- package/dist/configuration/getConfiguration.d.mts.map +1 -0
- package/dist/configuration/getConfiguration.mjs +11 -0
- package/dist/configuration/getConfiguration.mjs.map +1 -0
- package/dist/configuration/getCountries.d.mts +36 -0
- package/dist/configuration/getCountries.d.mts.map +1 -0
- package/dist/configuration/getCountries.mjs +13 -0
- package/dist/configuration/getCountries.mjs.map +1 -0
- package/dist/configuration/getJobs.d.mts +9 -0
- package/dist/configuration/getJobs.d.mts.map +1 -0
- package/dist/configuration/getJobs.mjs +11 -0
- package/dist/configuration/getJobs.mjs.map +1 -0
- package/dist/configuration/getLanguages.d.mts +9 -0
- package/dist/configuration/getLanguages.d.mts.map +1 -0
- package/dist/configuration/getLanguages.mjs +11 -0
- package/dist/configuration/getLanguages.mjs.map +1 -0
- package/dist/configuration/getPrimaryTranslations.d.mts +9 -0
- package/dist/configuration/getPrimaryTranslations.d.mts.map +1 -0
- package/dist/configuration/getPrimaryTranslations.mjs +11 -0
- package/dist/configuration/getPrimaryTranslations.mjs.map +1 -0
- package/dist/configuration/getTimezones.d.mts +9 -0
- package/dist/configuration/getTimezones.d.mts.map +1 -0
- package/dist/configuration/getTimezones.mjs +11 -0
- package/dist/configuration/getTimezones.mjs.map +1 -0
- package/dist/configuration/imageUrl.d.mts +26 -0
- package/dist/configuration/imageUrl.d.mts.map +1 -0
- package/dist/configuration/imageUrl.mjs +50 -0
- package/dist/configuration/imageUrl.mjs.map +1 -0
- package/dist/configuration/index.d.mts +15 -0
- package/dist/configuration/index.mjs +14 -0
- package/dist/configuration/types/ConfigurationDetails.d.mts +26 -0
- package/dist/configuration/types/ConfigurationDetails.d.mts.map +1 -0
- package/dist/configuration/types/ConfigurationDetails.mjs +28 -0
- package/dist/configuration/types/ConfigurationDetails.mjs.map +1 -0
- package/dist/configuration/types/Country.d.mts +27 -0
- package/dist/configuration/types/Country.d.mts.map +1 -0
- package/dist/configuration/types/Country.mjs +22 -0
- package/dist/configuration/types/Country.mjs.map +1 -0
- package/dist/configuration/types/DepartmentJobs.d.mts +15 -0
- package/dist/configuration/types/DepartmentJobs.d.mts.map +1 -0
- package/dist/configuration/types/DepartmentJobs.mjs +16 -0
- package/dist/configuration/types/DepartmentJobs.mjs.map +1 -0
- package/dist/configuration/types/Language.d.mts +10 -0
- package/dist/configuration/types/Language.d.mts.map +1 -0
- package/dist/configuration/types/Language.mjs +13 -0
- package/dist/configuration/types/Language.mjs.map +1 -0
- package/dist/configuration/types/PrimaryTranslations.d.mts +9 -0
- package/dist/configuration/types/PrimaryTranslations.d.mts.map +1 -0
- package/dist/configuration/types/PrimaryTranslations.mjs +12 -0
- package/dist/configuration/types/PrimaryTranslations.mjs.map +1 -0
- package/dist/configuration/types/Timezone.d.mts +17 -0
- package/dist/configuration/types/Timezone.d.mts.map +1 -0
- package/dist/configuration/types/Timezone.mjs +18 -0
- package/dist/configuration/types/Timezone.mjs.map +1 -0
- package/dist/configuration/types/index.d.mts +7 -0
- package/dist/configuration/types/index.mjs +7 -0
- package/dist/credit/getCredit.d.mts +37 -0
- package/dist/credit/getCredit.d.mts.map +1 -0
- package/dist/credit/getCredit.mjs +16 -0
- package/dist/credit/getCredit.mjs.map +1 -0
- package/dist/credit/index.d.mts +4 -0
- package/dist/credit/index.mjs +3 -0
- package/dist/credit/types/CreditDetails.d.mts +62 -0
- package/dist/credit/types/CreditDetails.d.mts.map +1 -0
- package/dist/credit/types/CreditDetails.mjs +35 -0
- package/dist/credit/types/CreditDetails.mjs.map +1 -0
- package/dist/credit/types/index.d.mts +2 -0
- package/dist/credit/types/index.mjs +1 -0
- package/dist/discover/discoverMovies.d.mts +708 -0
- package/dist/discover/discoverMovies.d.mts.map +1 -0
- package/dist/discover/discoverMovies.mjs +93 -0
- package/dist/discover/discoverMovies.mjs.map +1 -0
- package/dist/discover/discoverTvSeries.d.mts +608 -0
- package/dist/discover/discoverTvSeries.d.mts.map +1 -0
- package/dist/discover/discoverTvSeries.mjs +80 -0
- package/dist/discover/discoverTvSeries.mjs.map +1 -0
- package/dist/discover/index.d.mts +3 -0
- package/dist/discover/index.mjs +3 -0
- package/dist/find/findByExternalId.d.mts +38 -0
- package/dist/find/findByExternalId.d.mts.map +1 -0
- package/dist/find/findByExternalId.mjs +29 -0
- package/dist/find/findByExternalId.mjs.map +1 -0
- package/dist/find/index.d.mts +4 -0
- package/dist/find/index.mjs +3 -0
- package/dist/find/types/FindResults.d.mts +47 -0
- package/dist/find/types/FindResults.d.mts.map +1 -0
- package/dist/find/types/FindResults.mjs +39 -0
- package/dist/find/types/FindResults.mjs.map +1 -0
- package/dist/find/types/index.d.mts +2 -0
- package/dist/find/types/index.mjs +1 -0
- package/dist/genre/getMovieGenres.d.mts +36 -0
- package/dist/genre/getMovieGenres.d.mts.map +1 -0
- package/dist/genre/getMovieGenres.mjs +13 -0
- package/dist/genre/getMovieGenres.mjs.map +1 -0
- package/dist/genre/getTvGenres.d.mts +36 -0
- package/dist/genre/getTvGenres.d.mts.map +1 -0
- package/dist/genre/getTvGenres.mjs +13 -0
- package/dist/genre/getTvGenres.mjs.map +1 -0
- package/dist/genre/index.d.mts +5 -0
- package/dist/genre/index.mjs +4 -0
- package/dist/genre/types/GenreList.d.mts +15 -0
- package/dist/genre/types/GenreList.d.mts.map +1 -0
- package/dist/genre/types/GenreList.mjs +14 -0
- package/dist/genre/types/GenreList.mjs.map +1 -0
- package/dist/genre/types/index.d.mts +2 -0
- package/dist/genre/types/index.mjs +1 -0
- package/dist/index.d.mts +213 -0
- package/dist/index.mjs +192 -0
- package/dist/keyword/getKeyword.d.mts +13 -0
- package/dist/keyword/getKeyword.d.mts.map +1 -0
- package/dist/keyword/getKeyword.mjs +14 -0
- package/dist/keyword/getKeyword.mjs.map +1 -0
- package/dist/keyword/getKeywordMovies.d.mts +51 -0
- package/dist/keyword/getKeywordMovies.d.mts.map +1 -0
- package/dist/keyword/getKeywordMovies.mjs +21 -0
- package/dist/keyword/getKeywordMovies.mjs.map +1 -0
- package/dist/keyword/index.d.mts +3 -0
- package/dist/keyword/index.mjs +3 -0
- package/dist/list/getList.d.mts +44 -0
- package/dist/list/getList.d.mts.map +1 -0
- package/dist/list/getList.mjs +20 -0
- package/dist/list/getList.mjs.map +1 -0
- package/dist/list/getListItemStatus.d.mts +44 -0
- package/dist/list/getListItemStatus.d.mts.map +1 -0
- package/dist/list/getListItemStatus.mjs +20 -0
- package/dist/list/getListItemStatus.mjs.map +1 -0
- package/dist/list/index.d.mts +7 -0
- package/dist/list/index.mjs +6 -0
- package/dist/list/types/ListDetails.d.mts +29 -0
- package/dist/list/types/ListDetails.d.mts.map +1 -0
- package/dist/list/types/ListDetails.mjs +31 -0
- package/dist/list/types/ListDetails.mjs.map +1 -0
- package/dist/list/types/ListItemStatus.d.mts +15 -0
- package/dist/list/types/ListItemStatus.d.mts.map +1 -0
- package/dist/list/types/ListItemStatus.mjs +18 -0
- package/dist/list/types/ListItemStatus.mjs.map +1 -0
- package/dist/list/types/ListsContaining.d.mts +31 -0
- package/dist/list/types/ListsContaining.d.mts.map +1 -0
- package/dist/list/types/ListsContaining.mjs +32 -0
- package/dist/list/types/ListsContaining.mjs.map +1 -0
- package/dist/list/types/index.d.mts +4 -0
- package/dist/list/types/index.mjs +4 -0
- package/dist/movie/getLatestMovie.d.mts +9 -0
- package/dist/movie/getLatestMovie.d.mts.map +1 -0
- package/dist/movie/getLatestMovie.mjs +11 -0
- package/dist/movie/getLatestMovie.mjs.map +1 -0
- package/dist/movie/getMovie.d.mts +45 -0
- package/dist/movie/getMovie.d.mts.map +1 -0
- package/dist/movie/getMovie.mjs +36 -0
- package/dist/movie/getMovie.mjs.map +1 -0
- package/dist/movie/getMovieAlternativeTitles.d.mts +38 -0
- package/dist/movie/getMovieAlternativeTitles.d.mts.map +1 -0
- package/dist/movie/getMovieAlternativeTitles.mjs +19 -0
- package/dist/movie/getMovieAlternativeTitles.mjs.map +1 -0
- package/dist/movie/getMovieChangeList.d.mts +50 -0
- package/dist/movie/getMovieChangeList.d.mts.map +1 -0
- package/dist/movie/getMovieChangeList.mjs +19 -0
- package/dist/movie/getMovieChangeList.mjs.map +1 -0
- package/dist/movie/getMovieChanges.d.mts +51 -0
- package/dist/movie/getMovieChanges.d.mts.map +1 -0
- package/dist/movie/getMovieChanges.mjs +22 -0
- package/dist/movie/getMovieChanges.mjs.map +1 -0
- package/dist/movie/getMovieCredits.d.mts +37 -0
- package/dist/movie/getMovieCredits.d.mts.map +1 -0
- package/dist/movie/getMovieCredits.mjs +17 -0
- package/dist/movie/getMovieCredits.mjs.map +1 -0
- package/dist/movie/getMovieExternalIds.d.mts +13 -0
- package/dist/movie/getMovieExternalIds.d.mts.map +1 -0
- package/dist/movie/getMovieExternalIds.mjs +14 -0
- package/dist/movie/getMovieExternalIds.mjs.map +1 -0
- package/dist/movie/getMovieImages.d.mts +45 -0
- package/dist/movie/getMovieImages.d.mts.map +1 -0
- package/dist/movie/getMovieImages.mjs +21 -0
- package/dist/movie/getMovieImages.mjs.map +1 -0
- package/dist/movie/getMovieKeywords.d.mts +13 -0
- package/dist/movie/getMovieKeywords.d.mts.map +1 -0
- package/dist/movie/getMovieKeywords.mjs +13 -0
- package/dist/movie/getMovieKeywords.mjs.map +1 -0
- package/dist/movie/getMovieLists.d.mts +44 -0
- package/dist/movie/getMovieLists.d.mts.map +1 -0
- package/dist/movie/getMovieLists.mjs +20 -0
- package/dist/movie/getMovieLists.mjs.map +1 -0
- package/dist/movie/getMovieRecommendations.d.mts +44 -0
- package/dist/movie/getMovieRecommendations.d.mts.map +1 -0
- package/dist/movie/getMovieRecommendations.mjs +20 -0
- package/dist/movie/getMovieRecommendations.mjs.map +1 -0
- package/dist/movie/getMovieReleaseDates.d.mts +13 -0
- package/dist/movie/getMovieReleaseDates.d.mts.map +1 -0
- package/dist/movie/getMovieReleaseDates.mjs +14 -0
- package/dist/movie/getMovieReleaseDates.mjs.map +1 -0
- package/dist/movie/getMovieReviews.d.mts +44 -0
- package/dist/movie/getMovieReviews.d.mts.map +1 -0
- package/dist/movie/getMovieReviews.mjs +20 -0
- package/dist/movie/getMovieReviews.mjs.map +1 -0
- package/dist/movie/getMovieTranslations.d.mts +13 -0
- package/dist/movie/getMovieTranslations.d.mts.map +1 -0
- package/dist/movie/getMovieTranslations.mjs +14 -0
- package/dist/movie/getMovieTranslations.mjs.map +1 -0
- package/dist/movie/getMovieVideos.d.mts +37 -0
- package/dist/movie/getMovieVideos.d.mts.map +1 -0
- package/dist/movie/getMovieVideos.mjs +17 -0
- package/dist/movie/getMovieVideos.mjs.map +1 -0
- package/dist/movie/getMovieWatchProviders.d.mts +13 -0
- package/dist/movie/getMovieWatchProviders.d.mts.map +1 -0
- package/dist/movie/getMovieWatchProviders.mjs +14 -0
- package/dist/movie/getMovieWatchProviders.mjs.map +1 -0
- package/dist/movie/getNowPlayingMovies.d.mts +51 -0
- package/dist/movie/getNowPlayingMovies.d.mts.map +1 -0
- package/dist/movie/getNowPlayingMovies.mjs +19 -0
- package/dist/movie/getNowPlayingMovies.mjs.map +1 -0
- package/dist/movie/getPopularMovies.d.mts +51 -0
- package/dist/movie/getPopularMovies.d.mts.map +1 -0
- package/dist/movie/getPopularMovies.mjs +19 -0
- package/dist/movie/getPopularMovies.mjs.map +1 -0
- package/dist/movie/getSimilarMovies.d.mts +44 -0
- package/dist/movie/getSimilarMovies.d.mts.map +1 -0
- package/dist/movie/getSimilarMovies.mjs +20 -0
- package/dist/movie/getSimilarMovies.mjs.map +1 -0
- package/dist/movie/getTopRatedMovies.d.mts +51 -0
- package/dist/movie/getTopRatedMovies.d.mts.map +1 -0
- package/dist/movie/getTopRatedMovies.mjs +19 -0
- package/dist/movie/getTopRatedMovies.mjs.map +1 -0
- package/dist/movie/getUpcomingMovies.d.mts +51 -0
- package/dist/movie/getUpcomingMovies.d.mts.map +1 -0
- package/dist/movie/getUpcomingMovies.mjs +19 -0
- package/dist/movie/getUpcomingMovies.mjs.map +1 -0
- package/dist/movie/index.d.mts +31 -0
- package/dist/movie/index.mjs +30 -0
- package/dist/movie/types/MovieAlternativeTitles.d.mts +20 -0
- package/dist/movie/types/MovieAlternativeTitles.d.mts.map +1 -0
- package/dist/movie/types/MovieAlternativeTitles.mjs +23 -0
- package/dist/movie/types/MovieAlternativeTitles.mjs.map +1 -0
- package/dist/movie/types/MovieCredits.d.mts +39 -0
- package/dist/movie/types/MovieCredits.d.mts.map +1 -0
- package/dist/movie/types/MovieCredits.mjs +30 -0
- package/dist/movie/types/MovieCredits.mjs.map +1 -0
- package/dist/movie/types/MovieDetails.d.mts +145 -0
- package/dist/movie/types/MovieDetails.d.mts.map +1 -0
- package/dist/movie/types/MovieDetails.mjs +94 -0
- package/dist/movie/types/MovieDetails.mjs.map +1 -0
- package/dist/movie/types/MovieExternalIds.d.mts +19 -0
- package/dist/movie/types/MovieExternalIds.d.mts.map +1 -0
- package/dist/movie/types/MovieExternalIds.mjs +22 -0
- package/dist/movie/types/MovieExternalIds.mjs.map +1 -0
- package/dist/movie/types/MovieKeywords.d.mts +16 -0
- package/dist/movie/types/MovieKeywords.d.mts.map +1 -0
- package/dist/movie/types/MovieKeywords.mjs +18 -0
- package/dist/movie/types/MovieKeywords.mjs.map +1 -0
- package/dist/movie/types/MovieListItem.d.mts +116 -0
- package/dist/movie/types/MovieListItem.d.mts.map +1 -0
- package/dist/movie/types/MovieListItem.mjs +57 -0
- package/dist/movie/types/MovieListItem.mjs.map +1 -0
- package/dist/movie/types/MovieReleaseDates.d.mts +36 -0
- package/dist/movie/types/MovieReleaseDates.d.mts.map +1 -0
- package/dist/movie/types/MovieReleaseDates.mjs +45 -0
- package/dist/movie/types/MovieReleaseDates.mjs.map +1 -0
- package/dist/movie/types/MovieTranslations.d.mts +20 -0
- package/dist/movie/types/MovieTranslations.d.mts.map +1 -0
- package/dist/movie/types/MovieTranslations.mjs +22 -0
- package/dist/movie/types/MovieTranslations.mjs.map +1 -0
- package/dist/movie/types/index.d.mts +9 -0
- package/dist/movie/types/index.mjs +9 -0
- package/dist/network/getNetwork.d.mts +13 -0
- package/dist/network/getNetwork.d.mts.map +1 -0
- package/dist/network/getNetwork.mjs +14 -0
- package/dist/network/getNetwork.mjs.map +1 -0
- package/dist/network/getNetworkAlternativeNames.d.mts +13 -0
- package/dist/network/getNetworkAlternativeNames.d.mts.map +1 -0
- package/dist/network/getNetworkAlternativeNames.mjs +14 -0
- package/dist/network/getNetworkAlternativeNames.mjs.map +1 -0
- package/dist/network/getNetworkImages.d.mts +13 -0
- package/dist/network/getNetworkImages.d.mts.map +1 -0
- package/dist/network/getNetworkImages.mjs +14 -0
- package/dist/network/getNetworkImages.mjs.map +1 -0
- package/dist/network/index.d.mts +6 -0
- package/dist/network/index.mjs +5 -0
- package/dist/network/types/NetworkDetails.d.mts +19 -0
- package/dist/network/types/NetworkDetails.d.mts.map +1 -0
- package/dist/network/types/NetworkDetails.mjs +22 -0
- package/dist/network/types/NetworkDetails.mjs.map +1 -0
- package/dist/network/types/index.d.mts +2 -0
- package/dist/network/types/index.mjs +1 -0
- package/dist/person/getLatestPerson.d.mts +9 -0
- package/dist/person/getLatestPerson.d.mts.map +1 -0
- package/dist/person/getLatestPerson.mjs +11 -0
- package/dist/person/getLatestPerson.mjs.map +1 -0
- package/dist/person/getPerson.d.mts +45 -0
- package/dist/person/getPerson.d.mts.map +1 -0
- package/dist/person/getPerson.mjs +30 -0
- package/dist/person/getPerson.mjs.map +1 -0
- package/dist/person/getPersonChangeList.d.mts +50 -0
- package/dist/person/getPersonChangeList.d.mts.map +1 -0
- package/dist/person/getPersonChangeList.mjs +19 -0
- package/dist/person/getPersonChangeList.mjs.map +1 -0
- package/dist/person/getPersonChanges.d.mts +51 -0
- package/dist/person/getPersonChanges.d.mts.map +1 -0
- package/dist/person/getPersonChanges.mjs +22 -0
- package/dist/person/getPersonChanges.mjs.map +1 -0
- package/dist/person/getPersonCombinedCredits.d.mts +37 -0
- package/dist/person/getPersonCombinedCredits.d.mts.map +1 -0
- package/dist/person/getPersonCombinedCredits.mjs +16 -0
- package/dist/person/getPersonCombinedCredits.mjs.map +1 -0
- package/dist/person/getPersonExternalIds.d.mts +13 -0
- package/dist/person/getPersonExternalIds.d.mts.map +1 -0
- package/dist/person/getPersonExternalIds.mjs +14 -0
- package/dist/person/getPersonExternalIds.mjs.map +1 -0
- package/dist/person/getPersonImages.d.mts +13 -0
- package/dist/person/getPersonImages.d.mts.map +1 -0
- package/dist/person/getPersonImages.mjs +14 -0
- package/dist/person/getPersonImages.mjs.map +1 -0
- package/dist/person/getPersonMovieCredits.d.mts +37 -0
- package/dist/person/getPersonMovieCredits.d.mts.map +1 -0
- package/dist/person/getPersonMovieCredits.mjs +17 -0
- package/dist/person/getPersonMovieCredits.mjs.map +1 -0
- package/dist/person/getPersonTaggedImages.d.mts +37 -0
- package/dist/person/getPersonTaggedImages.d.mts.map +1 -0
- package/dist/person/getPersonTaggedImages.mjs +17 -0
- package/dist/person/getPersonTaggedImages.mjs.map +1 -0
- package/dist/person/getPersonTranslations.d.mts +13 -0
- package/dist/person/getPersonTranslations.d.mts.map +1 -0
- package/dist/person/getPersonTranslations.mjs +14 -0
- package/dist/person/getPersonTranslations.mjs.map +1 -0
- package/dist/person/getPersonTvCredits.d.mts +37 -0
- package/dist/person/getPersonTvCredits.d.mts.map +1 -0
- package/dist/person/getPersonTvCredits.mjs +17 -0
- package/dist/person/getPersonTvCredits.mjs.map +1 -0
- package/dist/person/getPopularPeople.d.mts +43 -0
- package/dist/person/getPopularPeople.d.mts.map +1 -0
- package/dist/person/getPopularPeople.mjs +17 -0
- package/dist/person/getPopularPeople.mjs.map +1 -0
- package/dist/person/index.d.mts +20 -0
- package/dist/person/index.mjs +19 -0
- package/dist/person/types/PersonCredits.d.mts +127 -0
- package/dist/person/types/PersonCredits.d.mts.map +1 -0
- package/dist/person/types/PersonCredits.mjs +81 -0
- package/dist/person/types/PersonCredits.mjs.map +1 -0
- package/dist/person/types/PersonDetails.d.mts +78 -0
- package/dist/person/types/PersonDetails.d.mts.map +1 -0
- package/dist/person/types/PersonDetails.mjs +55 -0
- package/dist/person/types/PersonDetails.mjs.map +1 -0
- package/dist/person/types/PersonExternalIds.d.mts +26 -0
- package/dist/person/types/PersonExternalIds.d.mts.map +1 -0
- package/dist/person/types/PersonExternalIds.mjs +30 -0
- package/dist/person/types/PersonExternalIds.mjs.map +1 -0
- package/dist/person/types/PersonListItem.d.mts +75 -0
- package/dist/person/types/PersonListItem.d.mts.map +1 -0
- package/dist/person/types/PersonListItem.mjs +46 -0
- package/dist/person/types/PersonListItem.mjs.map +1 -0
- package/dist/person/types/PersonTranslations.d.mts +18 -0
- package/dist/person/types/PersonTranslations.d.mts.map +1 -0
- package/dist/person/types/PersonTranslations.mjs +19 -0
- package/dist/person/types/PersonTranslations.mjs.map +1 -0
- package/dist/person/types/TaggedImages.d.mts +36 -0
- package/dist/person/types/TaggedImages.d.mts.map +1 -0
- package/dist/person/types/TaggedImages.mjs +31 -0
- package/dist/person/types/TaggedImages.mjs.map +1 -0
- package/dist/person/types/index.d.mts +7 -0
- package/dist/person/types/index.mjs +7 -0
- package/dist/requests/TmdbSession.d.mts +91 -0
- package/dist/requests/TmdbSession.d.mts.map +1 -0
- package/dist/requests/TmdbSession.mjs +203 -0
- package/dist/requests/TmdbSession.mjs.map +1 -0
- package/dist/requests/addParams.d.mts +15 -0
- package/dist/requests/addParams.d.mts.map +1 -0
- package/dist/requests/addParams.mjs +27 -0
- package/dist/requests/addParams.mjs.map +1 -0
- package/dist/requests/buildURL.d.mts +11 -0
- package/dist/requests/buildURL.d.mts.map +1 -0
- package/dist/requests/buildURL.mjs +15 -0
- package/dist/requests/buildURL.mjs.map +1 -0
- package/dist/requests/index.d.mts +7 -0
- package/dist/requests/index.mjs +7 -0
- package/dist/requests/methods.d.mts +22 -0
- package/dist/requests/methods.d.mts.map +1 -0
- package/dist/requests/methods.mjs +16 -0
- package/dist/requests/methods.mjs.map +1 -0
- package/dist/requests/request.d.mts +28 -0
- package/dist/requests/request.d.mts.map +1 -0
- package/dist/requests/request.mjs +62 -0
- package/dist/requests/request.mjs.map +1 -0
- package/dist/requests/toValidated.d.mts +11 -0
- package/dist/requests/toValidated.d.mts.map +1 -0
- package/dist/requests/toValidated.mjs +24 -0
- package/dist/requests/toValidated.mjs.map +1 -0
- package/dist/review/getReview.d.mts +13 -0
- package/dist/review/getReview.d.mts.map +1 -0
- package/dist/review/getReview.mjs +13 -0
- package/dist/review/getReview.mjs.map +1 -0
- package/dist/review/index.d.mts +4 -0
- package/dist/review/index.mjs +3 -0
- package/dist/review/types/Review.d.mts +79 -0
- package/dist/review/types/Review.d.mts.map +1 -0
- package/dist/review/types/Review.mjs +49 -0
- package/dist/review/types/Review.mjs.map +1 -0
- package/dist/review/types/index.d.mts +2 -0
- package/dist/review/types/index.mjs +1 -0
- package/dist/search/index.d.mts +8 -0
- package/dist/search/index.mjs +8 -0
- package/dist/search/searchCollections.d.mts +58 -0
- package/dist/search/searchCollections.d.mts.map +1 -0
- package/dist/search/searchCollections.mjs +25 -0
- package/dist/search/searchCollections.mjs.map +1 -0
- package/dist/search/searchCompanies.d.mts +37 -0
- package/dist/search/searchCompanies.d.mts.map +1 -0
- package/dist/search/searchCompanies.mjs +20 -0
- package/dist/search/searchCompanies.mjs.map +1 -0
- package/dist/search/searchKeywords.d.mts +37 -0
- package/dist/search/searchKeywords.d.mts.map +1 -0
- package/dist/search/searchKeywords.mjs +20 -0
- package/dist/search/searchKeywords.mjs.map +1 -0
- package/dist/search/searchMovies.d.mts +73 -0
- package/dist/search/searchMovies.d.mts.map +1 -0
- package/dist/search/searchMovies.mjs +28 -0
- package/dist/search/searchMovies.mjs.map +1 -0
- package/dist/search/searchMulti.d.mts +51 -0
- package/dist/search/searchMulti.d.mts.map +1 -0
- package/dist/search/searchMulti.mjs +24 -0
- package/dist/search/searchMulti.mjs.map +1 -0
- package/dist/search/searchPeople.d.mts +51 -0
- package/dist/search/searchPeople.d.mts.map +1 -0
- package/dist/search/searchPeople.mjs +24 -0
- package/dist/search/searchPeople.mjs.map +1 -0
- package/dist/search/searchTvSeries.d.mts +67 -0
- package/dist/search/searchTvSeries.d.mts.map +1 -0
- package/dist/search/searchTvSeries.mjs +28 -0
- package/dist/search/searchTvSeries.mjs.map +1 -0
- package/dist/trending/getTrending.d.mts +38 -0
- package/dist/trending/getTrending.d.mts.map +1 -0
- package/dist/trending/getTrending.mjs +18 -0
- package/dist/trending/getTrending.mjs.map +1 -0
- package/dist/trending/getTrendingMovies.d.mts +38 -0
- package/dist/trending/getTrendingMovies.d.mts.map +1 -0
- package/dist/trending/getTrendingMovies.mjs +18 -0
- package/dist/trending/getTrendingMovies.mjs.map +1 -0
- package/dist/trending/getTrendingPeople.d.mts +38 -0
- package/dist/trending/getTrendingPeople.d.mts.map +1 -0
- package/dist/trending/getTrendingPeople.mjs +18 -0
- package/dist/trending/getTrendingPeople.mjs.map +1 -0
- package/dist/trending/getTrendingTvSeries.d.mts +38 -0
- package/dist/trending/getTrendingTvSeries.d.mts.map +1 -0
- package/dist/trending/getTrendingTvSeries.mjs +18 -0
- package/dist/trending/getTrendingTvSeries.mjs.map +1 -0
- package/dist/trending/index.d.mts +5 -0
- package/dist/trending/index.mjs +5 -0
- package/dist/tv/getLatestTvSeries.d.mts +9 -0
- package/dist/tv/getLatestTvSeries.d.mts.map +1 -0
- package/dist/tv/getLatestTvSeries.mjs +11 -0
- package/dist/tv/getLatestTvSeries.mjs.map +1 -0
- package/dist/tv/getPopularTvSeries.d.mts +43 -0
- package/dist/tv/getPopularTvSeries.d.mts.map +1 -0
- package/dist/tv/getPopularTvSeries.mjs +17 -0
- package/dist/tv/getPopularTvSeries.mjs.map +1 -0
- package/dist/tv/getSimilarTvSeries.d.mts +44 -0
- package/dist/tv/getSimilarTvSeries.d.mts.map +1 -0
- package/dist/tv/getSimilarTvSeries.mjs +20 -0
- package/dist/tv/getSimilarTvSeries.mjs.map +1 -0
- package/dist/tv/getTopRatedTvSeries.d.mts +43 -0
- package/dist/tv/getTopRatedTvSeries.d.mts.map +1 -0
- package/dist/tv/getTopRatedTvSeries.mjs +17 -0
- package/dist/tv/getTopRatedTvSeries.mjs.map +1 -0
- package/dist/tv/getTvChangeList.d.mts +50 -0
- package/dist/tv/getTvChangeList.d.mts.map +1 -0
- package/dist/tv/getTvChangeList.mjs +19 -0
- package/dist/tv/getTvChangeList.mjs.map +1 -0
- package/dist/tv/getTvEpisode.d.mts +47 -0
- package/dist/tv/getTvEpisode.d.mts.map +1 -0
- package/dist/tv/getTvEpisode.mjs +29 -0
- package/dist/tv/getTvEpisode.mjs.map +1 -0
- package/dist/tv/getTvEpisodeChanges.d.mts +13 -0
- package/dist/tv/getTvEpisodeChanges.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeChanges.mjs +14 -0
- package/dist/tv/getTvEpisodeChanges.mjs.map +1 -0
- package/dist/tv/getTvEpisodeCredits.d.mts +39 -0
- package/dist/tv/getTvEpisodeCredits.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeCredits.mjs +19 -0
- package/dist/tv/getTvEpisodeCredits.mjs.map +1 -0
- package/dist/tv/getTvEpisodeExternalIds.d.mts +15 -0
- package/dist/tv/getTvEpisodeExternalIds.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeExternalIds.mjs +18 -0
- package/dist/tv/getTvEpisodeExternalIds.mjs.map +1 -0
- package/dist/tv/getTvEpisodeGroup.d.mts +13 -0
- package/dist/tv/getTvEpisodeGroup.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeGroup.mjs +13 -0
- package/dist/tv/getTvEpisodeGroup.mjs.map +1 -0
- package/dist/tv/getTvEpisodeImages.d.mts +47 -0
- package/dist/tv/getTvEpisodeImages.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeImages.mjs +23 -0
- package/dist/tv/getTvEpisodeImages.mjs.map +1 -0
- package/dist/tv/getTvEpisodeTranslations.d.mts +15 -0
- package/dist/tv/getTvEpisodeTranslations.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeTranslations.mjs +18 -0
- package/dist/tv/getTvEpisodeTranslations.mjs.map +1 -0
- package/dist/tv/getTvEpisodeVideos.d.mts +47 -0
- package/dist/tv/getTvEpisodeVideos.d.mts.map +1 -0
- package/dist/tv/getTvEpisodeVideos.mjs +23 -0
- package/dist/tv/getTvEpisodeVideos.mjs.map +1 -0
- package/dist/tv/getTvSeason.d.mts +46 -0
- package/dist/tv/getTvSeason.d.mts.map +1 -0
- package/dist/tv/getTvSeason.mjs +30 -0
- package/dist/tv/getTvSeason.mjs.map +1 -0
- package/dist/tv/getTvSeasonAggregateCredits.d.mts +38 -0
- package/dist/tv/getTvSeasonAggregateCredits.d.mts.map +1 -0
- package/dist/tv/getTvSeasonAggregateCredits.mjs +18 -0
- package/dist/tv/getTvSeasonAggregateCredits.mjs.map +1 -0
- package/dist/tv/getTvSeasonChanges.d.mts +51 -0
- package/dist/tv/getTvSeasonChanges.d.mts.map +1 -0
- package/dist/tv/getTvSeasonChanges.mjs +21 -0
- package/dist/tv/getTvSeasonChanges.mjs.map +1 -0
- package/dist/tv/getTvSeasonCredits.d.mts +38 -0
- package/dist/tv/getTvSeasonCredits.d.mts.map +1 -0
- package/dist/tv/getTvSeasonCredits.mjs +18 -0
- package/dist/tv/getTvSeasonCredits.mjs.map +1 -0
- package/dist/tv/getTvSeasonExternalIds.d.mts +14 -0
- package/dist/tv/getTvSeasonExternalIds.d.mts.map +1 -0
- package/dist/tv/getTvSeasonExternalIds.mjs +17 -0
- package/dist/tv/getTvSeasonExternalIds.mjs.map +1 -0
- package/dist/tv/getTvSeasonImages.d.mts +46 -0
- package/dist/tv/getTvSeasonImages.d.mts.map +1 -0
- package/dist/tv/getTvSeasonImages.mjs +22 -0
- package/dist/tv/getTvSeasonImages.mjs.map +1 -0
- package/dist/tv/getTvSeasonTranslations.d.mts +14 -0
- package/dist/tv/getTvSeasonTranslations.d.mts.map +1 -0
- package/dist/tv/getTvSeasonTranslations.mjs +17 -0
- package/dist/tv/getTvSeasonTranslations.mjs.map +1 -0
- package/dist/tv/getTvSeasonVideos.d.mts +46 -0
- package/dist/tv/getTvSeasonVideos.d.mts.map +1 -0
- package/dist/tv/getTvSeasonVideos.mjs +22 -0
- package/dist/tv/getTvSeasonVideos.mjs.map +1 -0
- package/dist/tv/getTvSeasonWatchProviders.d.mts +38 -0
- package/dist/tv/getTvSeasonWatchProviders.d.mts.map +1 -0
- package/dist/tv/getTvSeasonWatchProviders.mjs +18 -0
- package/dist/tv/getTvSeasonWatchProviders.mjs.map +1 -0
- package/dist/tv/getTvSeries.d.mts +45 -0
- package/dist/tv/getTvSeries.d.mts.map +1 -0
- package/dist/tv/getTvSeries.mjs +39 -0
- package/dist/tv/getTvSeries.mjs.map +1 -0
- package/dist/tv/getTvSeriesAggregateCredits.d.mts +37 -0
- package/dist/tv/getTvSeriesAggregateCredits.d.mts.map +1 -0
- package/dist/tv/getTvSeriesAggregateCredits.mjs +17 -0
- package/dist/tv/getTvSeriesAggregateCredits.mjs.map +1 -0
- package/dist/tv/getTvSeriesAiringToday.d.mts +50 -0
- package/dist/tv/getTvSeriesAiringToday.d.mts.map +1 -0
- package/dist/tv/getTvSeriesAiringToday.mjs +18 -0
- package/dist/tv/getTvSeriesAiringToday.mjs.map +1 -0
- package/dist/tv/getTvSeriesAlternativeTitles.d.mts +13 -0
- package/dist/tv/getTvSeriesAlternativeTitles.d.mts.map +1 -0
- package/dist/tv/getTvSeriesAlternativeTitles.mjs +14 -0
- package/dist/tv/getTvSeriesAlternativeTitles.mjs.map +1 -0
- package/dist/tv/getTvSeriesChanges.d.mts +51 -0
- package/dist/tv/getTvSeriesChanges.d.mts.map +1 -0
- package/dist/tv/getTvSeriesChanges.mjs +21 -0
- package/dist/tv/getTvSeriesChanges.mjs.map +1 -0
- package/dist/tv/getTvSeriesContentRatings.d.mts +13 -0
- package/dist/tv/getTvSeriesContentRatings.d.mts.map +1 -0
- package/dist/tv/getTvSeriesContentRatings.mjs +14 -0
- package/dist/tv/getTvSeriesContentRatings.mjs.map +1 -0
- package/dist/tv/getTvSeriesCredits.d.mts +37 -0
- package/dist/tv/getTvSeriesCredits.d.mts.map +1 -0
- package/dist/tv/getTvSeriesCredits.mjs +17 -0
- package/dist/tv/getTvSeriesCredits.mjs.map +1 -0
- package/dist/tv/getTvSeriesEpisodeGroups.d.mts +13 -0
- package/dist/tv/getTvSeriesEpisodeGroups.d.mts.map +1 -0
- package/dist/tv/getTvSeriesEpisodeGroups.mjs +14 -0
- package/dist/tv/getTvSeriesEpisodeGroups.mjs.map +1 -0
- package/dist/tv/getTvSeriesExternalIds.d.mts +13 -0
- package/dist/tv/getTvSeriesExternalIds.d.mts.map +1 -0
- package/dist/tv/getTvSeriesExternalIds.mjs +14 -0
- package/dist/tv/getTvSeriesExternalIds.mjs.map +1 -0
- package/dist/tv/getTvSeriesImages.d.mts +45 -0
- package/dist/tv/getTvSeriesImages.d.mts.map +1 -0
- package/dist/tv/getTvSeriesImages.mjs +21 -0
- package/dist/tv/getTvSeriesImages.mjs.map +1 -0
- package/dist/tv/getTvSeriesKeywords.d.mts +13 -0
- package/dist/tv/getTvSeriesKeywords.d.mts.map +1 -0
- package/dist/tv/getTvSeriesKeywords.mjs +14 -0
- package/dist/tv/getTvSeriesKeywords.mjs.map +1 -0
- package/dist/tv/getTvSeriesLists.d.mts +44 -0
- package/dist/tv/getTvSeriesLists.d.mts.map +1 -0
- package/dist/tv/getTvSeriesLists.mjs +20 -0
- package/dist/tv/getTvSeriesLists.mjs.map +1 -0
- package/dist/tv/getTvSeriesOnTheAir.d.mts +50 -0
- package/dist/tv/getTvSeriesOnTheAir.d.mts.map +1 -0
- package/dist/tv/getTvSeriesOnTheAir.mjs +18 -0
- package/dist/tv/getTvSeriesOnTheAir.mjs.map +1 -0
- package/dist/tv/getTvSeriesRecommendations.d.mts +44 -0
- package/dist/tv/getTvSeriesRecommendations.d.mts.map +1 -0
- package/dist/tv/getTvSeriesRecommendations.mjs +20 -0
- package/dist/tv/getTvSeriesRecommendations.mjs.map +1 -0
- package/dist/tv/getTvSeriesReviews.d.mts +44 -0
- package/dist/tv/getTvSeriesReviews.d.mts.map +1 -0
- package/dist/tv/getTvSeriesReviews.mjs +20 -0
- package/dist/tv/getTvSeriesReviews.mjs.map +1 -0
- package/dist/tv/getTvSeriesScreenedTheatrically.d.mts +13 -0
- package/dist/tv/getTvSeriesScreenedTheatrically.d.mts.map +1 -0
- package/dist/tv/getTvSeriesScreenedTheatrically.mjs +14 -0
- package/dist/tv/getTvSeriesScreenedTheatrically.mjs.map +1 -0
- package/dist/tv/getTvSeriesTranslations.d.mts +13 -0
- package/dist/tv/getTvSeriesTranslations.d.mts.map +1 -0
- package/dist/tv/getTvSeriesTranslations.mjs +14 -0
- package/dist/tv/getTvSeriesTranslations.mjs.map +1 -0
- package/dist/tv/getTvSeriesVideos.d.mts +45 -0
- package/dist/tv/getTvSeriesVideos.d.mts.map +1 -0
- package/dist/tv/getTvSeriesVideos.mjs +21 -0
- package/dist/tv/getTvSeriesVideos.mjs.map +1 -0
- package/dist/tv/getTvSeriesWatchProviders.d.mts +13 -0
- package/dist/tv/getTvSeriesWatchProviders.d.mts.map +1 -0
- package/dist/tv/getTvSeriesWatchProviders.mjs +14 -0
- package/dist/tv/getTvSeriesWatchProviders.mjs.map +1 -0
- package/dist/tv/index.d.mts +57 -0
- package/dist/tv/index.mjs +56 -0
- package/dist/tv/types/AggregateCredits.d.mts +53 -0
- package/dist/tv/types/AggregateCredits.d.mts.map +1 -0
- package/dist/tv/types/AggregateCredits.mjs +41 -0
- package/dist/tv/types/AggregateCredits.mjs.map +1 -0
- package/dist/tv/types/ContentRatings.d.mts +21 -0
- package/dist/tv/types/ContentRatings.d.mts.map +1 -0
- package/dist/tv/types/ContentRatings.mjs +24 -0
- package/dist/tv/types/ContentRatings.mjs.map +1 -0
- package/dist/tv/types/EpisodeGroups.d.mts +64 -0
- package/dist/tv/types/EpisodeGroups.d.mts.map +1 -0
- package/dist/tv/types/EpisodeGroups.mjs +52 -0
- package/dist/tv/types/EpisodeGroups.mjs.map +1 -0
- package/dist/tv/types/ScreenedTheatrically.d.mts +19 -0
- package/dist/tv/types/ScreenedTheatrically.d.mts.map +1 -0
- package/dist/tv/types/ScreenedTheatrically.mjs +22 -0
- package/dist/tv/types/ScreenedTheatrically.mjs.map +1 -0
- package/dist/tv/types/TvAlternativeTitles.d.mts +20 -0
- package/dist/tv/types/TvAlternativeTitles.d.mts.map +1 -0
- package/dist/tv/types/TvAlternativeTitles.mjs +23 -0
- package/dist/tv/types/TvAlternativeTitles.mjs.map +1 -0
- package/dist/tv/types/TvCredits.d.mts +26 -0
- package/dist/tv/types/TvCredits.d.mts.map +1 -0
- package/dist/tv/types/TvCredits.mjs +27 -0
- package/dist/tv/types/TvCredits.mjs.map +1 -0
- package/dist/tv/types/TvEpisode.d.mts +48 -0
- package/dist/tv/types/TvEpisode.d.mts.map +1 -0
- package/dist/tv/types/TvEpisode.mjs +36 -0
- package/dist/tv/types/TvEpisode.mjs.map +1 -0
- package/dist/tv/types/TvEpisodeDetails.d.mts +62 -0
- package/dist/tv/types/TvEpisodeDetails.d.mts.map +1 -0
- package/dist/tv/types/TvEpisodeDetails.mjs +36 -0
- package/dist/tv/types/TvEpisodeDetails.mjs.map +1 -0
- package/dist/tv/types/TvExternalIds.d.mts +47 -0
- package/dist/tv/types/TvExternalIds.d.mts.map +1 -0
- package/dist/tv/types/TvExternalIds.mjs +50 -0
- package/dist/tv/types/TvExternalIds.mjs.map +1 -0
- package/dist/tv/types/TvKeywords.d.mts +16 -0
- package/dist/tv/types/TvKeywords.d.mts.map +1 -0
- package/dist/tv/types/TvKeywords.mjs +18 -0
- package/dist/tv/types/TvKeywords.mjs.map +1 -0
- package/dist/tv/types/TvListItem.d.mts +106 -0
- package/dist/tv/types/TvListItem.d.mts.map +1 -0
- package/dist/tv/types/TvListItem.mjs +47 -0
- package/dist/tv/types/TvListItem.mjs.map +1 -0
- package/dist/tv/types/TvSeasonDetails.d.mts +99 -0
- package/dist/tv/types/TvSeasonDetails.d.mts.map +1 -0
- package/dist/tv/types/TvSeasonDetails.mjs +57 -0
- package/dist/tv/types/TvSeasonDetails.mjs.map +1 -0
- package/dist/tv/types/TvSeriesDetails.d.mts +193 -0
- package/dist/tv/types/TvSeriesDetails.d.mts.map +1 -0
- package/dist/tv/types/TvSeriesDetails.mjs +120 -0
- package/dist/tv/types/TvSeriesDetails.mjs.map +1 -0
- package/dist/tv/types/TvTranslations.d.mts +26 -0
- package/dist/tv/types/TvTranslations.d.mts.map +1 -0
- package/dist/tv/types/TvTranslations.mjs +25 -0
- package/dist/tv/types/TvTranslations.mjs.map +1 -0
- package/dist/tv/types/index.d.mts +15 -0
- package/dist/tv/types/index.mjs +15 -0
- package/dist/types/AlternativeNames.d.mts +18 -0
- package/dist/types/AlternativeNames.d.mts.map +1 -0
- package/dist/types/AlternativeNames.mjs +21 -0
- package/dist/types/AlternativeNames.mjs.map +1 -0
- package/dist/types/ChangeList.d.mts +17 -0
- package/dist/types/ChangeList.d.mts.map +1 -0
- package/dist/types/ChangeList.mjs +19 -0
- package/dist/types/ChangeList.mjs.map +1 -0
- package/dist/types/Changes.d.mts +46 -0
- package/dist/types/Changes.d.mts.map +1 -0
- package/dist/types/Changes.mjs +32 -0
- package/dist/types/Changes.mjs.map +1 -0
- package/dist/types/Credit.d.mts +89 -0
- package/dist/types/Credit.d.mts.map +1 -0
- package/dist/types/Credit.mjs +47 -0
- package/dist/types/Credit.mjs.map +1 -0
- package/dist/types/Genre.d.mts +18 -0
- package/dist/types/Genre.d.mts.map +1 -0
- package/dist/types/Genre.mjs +18 -0
- package/dist/types/Genre.mjs.map +1 -0
- package/dist/types/Images.d.mts +99 -0
- package/dist/types/Images.d.mts.map +1 -0
- package/dist/types/Images.mjs +75 -0
- package/dist/types/Images.mjs.map +1 -0
- package/dist/types/Keyword.d.mts +22 -0
- package/dist/types/Keyword.d.mts.map +1 -0
- package/dist/types/Keyword.mjs +21 -0
- package/dist/types/Keyword.mjs.map +1 -0
- package/dist/types/MediaListItem.d.mts +15 -0
- package/dist/types/MediaListItem.d.mts.map +1 -0
- package/dist/types/MediaListItem.mjs +21 -0
- package/dist/types/MediaListItem.mjs.map +1 -0
- package/dist/types/PagedResults.d.mts +26 -0
- package/dist/types/PagedResults.d.mts.map +1 -0
- package/dist/types/PagedResults.mjs +22 -0
- package/dist/types/PagedResults.mjs.map +1 -0
- package/dist/types/ProductionCompany.d.mts +24 -0
- package/dist/types/ProductionCompany.d.mts.map +1 -0
- package/dist/types/ProductionCompany.mjs +21 -0
- package/dist/types/ProductionCompany.mjs.map +1 -0
- package/dist/types/ProductionCountry.d.mts +20 -0
- package/dist/types/ProductionCountry.d.mts.map +1 -0
- package/dist/types/ProductionCountry.mjs +18 -0
- package/dist/types/ProductionCountry.mjs.map +1 -0
- package/dist/types/SpokenLanguage.d.mts +24 -0
- package/dist/types/SpokenLanguage.d.mts.map +1 -0
- package/dist/types/SpokenLanguage.mjs +20 -0
- package/dist/types/SpokenLanguage.mjs.map +1 -0
- package/dist/types/Translation.d.mts +27 -0
- package/dist/types/Translation.d.mts.map +1 -0
- package/dist/types/Translation.mjs +30 -0
- package/dist/types/Translation.mjs.map +1 -0
- package/dist/types/Video.d.mts +51 -0
- package/dist/types/Video.d.mts.map +1 -0
- package/dist/types/Video.mjs +37 -0
- package/dist/types/Video.mjs.map +1 -0
- package/dist/types/index.d.mts +15 -0
- package/dist/types/index.mjs +15 -0
- package/dist/utils/isNonNullable.d.mts +8 -0
- package/dist/utils/isNonNullable.d.mts.map +1 -0
- package/dist/utils/isNonNullable.mjs +10 -0
- package/dist/utils/isNonNullable.mjs.map +1 -0
- package/dist/utils/isObject.d.mts +2 -0
- package/dist/utils/isObject.d.mts.map +1 -0
- package/dist/utils/isObject.mjs +5 -0
- package/dist/utils/isObject.mjs.map +1 -0
- package/dist/utils/sleep.d.mts +5 -0
- package/dist/utils/sleep.d.mts.map +1 -0
- package/dist/utils/sleep.mjs +29 -0
- package/dist/utils/sleep.mjs.map +1 -0
- package/dist/utils/toCamelCase.d.mts +8 -0
- package/dist/utils/toCamelCase.d.mts.map +1 -0
- package/dist/utils/toCamelCase.mjs +11 -0
- package/dist/utils/toCamelCase.mjs.map +1 -0
- package/dist/utils/toCamelKeys.d.mts +17 -0
- package/dist/utils/toCamelKeys.d.mts.map +1 -0
- package/dist/utils/toCamelKeys.mjs +18 -0
- package/dist/utils/toCamelKeys.mjs.map +1 -0
- package/dist/utils/toSnakeCase.d.mts +2 -0
- package/dist/utils/toSnakeCase.d.mts.map +1 -0
- package/dist/utils/toSnakeCase.mjs +5 -0
- package/dist/utils/toSnakeCase.mjs.map +1 -0
- package/dist/utils/toSnakeKeys.d.mts +21 -0
- package/dist/utils/toSnakeKeys.d.mts.map +1 -0
- package/dist/utils/toSnakeKeys.mjs +18 -0
- package/dist/utils/toSnakeKeys.mjs.map +1 -0
- package/dist/validations/index.d.mts +4 -0
- package/dist/validations/index.mjs +4 -0
- package/dist/validations/integer.d.mts +8 -0
- package/dist/validations/integer.d.mts.map +1 -0
- package/dist/validations/integer.mjs +11 -0
- package/dist/validations/integer.mjs.map +1 -0
- package/dist/validations/isoDate.d.mts +4 -0
- package/dist/validations/isoDate.d.mts.map +1 -0
- package/dist/validations/isoDate.mjs +7 -0
- package/dist/validations/isoDate.mjs.map +1 -0
- package/dist/validations/schema.d.mts +96 -0
- package/dist/validations/schema.d.mts.map +1 -0
- package/dist/validations/schema.mjs +118 -0
- package/dist/validations/schema.mjs.map +1 -0
- package/dist/watch-providers/getMovieWatchProviderList.d.mts +43 -0
- package/dist/watch-providers/getMovieWatchProviderList.d.mts.map +1 -0
- package/dist/watch-providers/getMovieWatchProviderList.mjs +16 -0
- package/dist/watch-providers/getMovieWatchProviderList.mjs.map +1 -0
- package/dist/watch-providers/getTvWatchProviderList.d.mts +43 -0
- package/dist/watch-providers/getTvWatchProviderList.d.mts.map +1 -0
- package/dist/watch-providers/getTvWatchProviderList.mjs +16 -0
- package/dist/watch-providers/getTvWatchProviderList.mjs.map +1 -0
- package/dist/watch-providers/getWatchProviderRegions.d.mts +36 -0
- package/dist/watch-providers/getWatchProviderRegions.d.mts.map +1 -0
- package/dist/watch-providers/getWatchProviderRegions.mjs +13 -0
- package/dist/watch-providers/getWatchProviderRegions.mjs.map +1 -0
- package/dist/watch-providers/index.d.mts +8 -0
- package/dist/watch-providers/index.mjs +7 -0
- package/dist/watch-providers/types/WatchProviderList.d.mts +22 -0
- package/dist/watch-providers/types/WatchProviderList.d.mts.map +1 -0
- package/dist/watch-providers/types/WatchProviderList.mjs +22 -0
- package/dist/watch-providers/types/WatchProviderList.mjs.map +1 -0
- package/dist/watch-providers/types/WatchProviderRegion.d.mts +15 -0
- package/dist/watch-providers/types/WatchProviderRegion.d.mts.map +1 -0
- package/dist/watch-providers/types/WatchProviderRegion.mjs +14 -0
- package/dist/watch-providers/types/WatchProviderRegion.mjs.map +1 -0
- package/dist/watch-providers/types/WatchProviders.d.mts +33 -0
- package/dist/watch-providers/types/WatchProviders.d.mts.map +1 -0
- package/dist/watch-providers/types/WatchProviders.mjs +35 -0
- package/dist/watch-providers/types/WatchProviders.mjs.map +1 -0
- package/dist/watch-providers/types/index.d.mts +4 -0
- package/dist/watch-providers/types/index.mjs +4 -0
- package/package.json +39 -3
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const imageEntries: {
|
|
3
|
+
readonly aspectRatio: v.NumberSchema<undefined>;
|
|
4
|
+
/** Append to an image base URL (see `getConfiguration`) to load the file. */
|
|
5
|
+
readonly filePath: v.StringSchema<undefined>;
|
|
6
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
7
|
+
/** Region the image is for, or `null`. */
|
|
8
|
+
readonly iso_3166_1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
/** Language of the image's text, or `null` for images without text (most backdrops). */
|
|
10
|
+
readonly iso_639_1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
12
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
13
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
14
|
+
};
|
|
15
|
+
declare const _imageSchema: v.ObjectSchema<{
|
|
16
|
+
readonly aspectRatio: v.NumberSchema<undefined>;
|
|
17
|
+
/** Append to an image base URL (see `getConfiguration`) to load the file. */
|
|
18
|
+
readonly filePath: v.StringSchema<undefined>;
|
|
19
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
20
|
+
/** Region the image is for, or `null`. */
|
|
21
|
+
readonly iso_3166_1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
/** Language of the image's text, or `null` for images without text (most backdrops). */
|
|
23
|
+
readonly iso_639_1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
25
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
26
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
export interface Image extends v.InferOutput<typeof _imageSchema> {}
|
|
29
|
+
/**
|
|
30
|
+
* ### Image
|
|
31
|
+
*
|
|
32
|
+
* One image (poster, backdrop, logo, still or profile) with its dimensions, language and votes.
|
|
33
|
+
*/
|
|
34
|
+
export declare const imageSchema: v.GenericSchema<Image>;
|
|
35
|
+
declare const _mediaImagesSchema: v.ObjectSchema<{
|
|
36
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
37
|
+
readonly backdrops: v.ArraySchema<v.GenericSchema<Image>, undefined>;
|
|
38
|
+
/** Absent for collections, which have no logos. */
|
|
39
|
+
readonly logos: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<Image>, undefined>, undefined>;
|
|
40
|
+
readonly posters: v.ArraySchema<v.GenericSchema<Image>, undefined>;
|
|
41
|
+
}, undefined>;
|
|
42
|
+
export interface MediaImages extends v.InferOutput<typeof _mediaImagesSchema> {}
|
|
43
|
+
/** Images of a movie, TV series or collection (`getMovieImages`, `getTvSeriesImages`, `getCollectionImages`). */
|
|
44
|
+
export declare const mediaImagesSchema: v.GenericSchema<MediaImages>;
|
|
45
|
+
declare const _posterImagesSchema: v.ObjectSchema<{
|
|
46
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
47
|
+
readonly posters: v.ArraySchema<v.GenericSchema<Image>, undefined>;
|
|
48
|
+
}, undefined>;
|
|
49
|
+
export interface PosterImages extends v.InferOutput<typeof _posterImagesSchema> {}
|
|
50
|
+
/** A season's posters (`getTvSeasonImages`). */
|
|
51
|
+
export declare const posterImagesSchema: v.GenericSchema<PosterImages>;
|
|
52
|
+
declare const _stillImagesSchema: v.ObjectSchema<{
|
|
53
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
54
|
+
readonly stills: v.ArraySchema<v.GenericSchema<Image>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
export interface StillImages extends v.InferOutput<typeof _stillImagesSchema> {}
|
|
57
|
+
/** An episode's stills (`getTvEpisodeImages`). */
|
|
58
|
+
export declare const stillImagesSchema: v.GenericSchema<StillImages>;
|
|
59
|
+
declare const _profileImagesSchema: v.ObjectSchema<{
|
|
60
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
61
|
+
readonly profiles: v.ArraySchema<v.GenericSchema<Image>, undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
export interface ProfileImages extends v.InferOutput<typeof _profileImagesSchema> {}
|
|
64
|
+
/** A person's profile photos (`getPersonImages`). */
|
|
65
|
+
export declare const profileImagesSchema: v.GenericSchema<ProfileImages>;
|
|
66
|
+
export declare const logoImageEntries: {
|
|
67
|
+
readonly aspectRatio: v.NumberSchema<undefined>;
|
|
68
|
+
readonly filePath: v.StringSchema<undefined>;
|
|
69
|
+
/** `.png` or `.svg`. */
|
|
70
|
+
readonly fileType: v.StringSchema<undefined>;
|
|
71
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
72
|
+
readonly id: v.StringSchema<undefined>;
|
|
73
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
74
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
75
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
76
|
+
};
|
|
77
|
+
declare const _logoImageSchema: v.ObjectSchema<{
|
|
78
|
+
readonly aspectRatio: v.NumberSchema<undefined>;
|
|
79
|
+
readonly filePath: v.StringSchema<undefined>;
|
|
80
|
+
/** `.png` or `.svg`. */
|
|
81
|
+
readonly fileType: v.StringSchema<undefined>;
|
|
82
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
83
|
+
readonly id: v.StringSchema<undefined>;
|
|
84
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
85
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
86
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
87
|
+
}, undefined>;
|
|
88
|
+
export interface LogoImage extends v.InferOutput<typeof _logoImageSchema> {}
|
|
89
|
+
/** A company or network logo: unlike media images it has its own id and a file type, and no language. */
|
|
90
|
+
export declare const logoImageSchema: v.GenericSchema<LogoImage>;
|
|
91
|
+
declare const _logoImagesSchema: v.ObjectSchema<{
|
|
92
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
93
|
+
readonly logos: v.ArraySchema<v.GenericSchema<LogoImage>, undefined>;
|
|
94
|
+
}, undefined>;
|
|
95
|
+
export interface LogoImages extends v.InferOutput<typeof _logoImagesSchema> {}
|
|
96
|
+
/** A company's or network's logos (`getCompanyImages`, `getNetworkImages`). */
|
|
97
|
+
export declare const logoImagesSchema: v.GenericSchema<LogoImages>;
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=Images.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Images.d.mts","names":[],"sources":["../../src/types/Images.ts"],"mappings":";qBAIa;;;;;;;;;;;;;cAcP,cAAY,EAAA;;;;;;;;;;;;;iBAED,cAAc,EAAE,mBAAmB;;;;;;qBAOvC,aAAW,EAAA,cAAA;cAIlB,oBAAkB,EAAA;;;;;;;iBAQP,oBAAoB,EAAE,mBAAmB;;qBAG7C,mBAAiB,EAAA,cAAA;cAExB,qBAAmB,EAAA;;;;iBAER,qBAAqB,EAAE,mBAC/B;;qBAII,oBAAkB,EAAA,cAAA;cAEzB,oBAAkB,EAAA;;;;iBAEP,oBAAoB,EAAE,mBAAmB;;qBAG7C,mBAAiB,EAAA,cAAA;cAExB,sBAAoB,EAAA;;;;iBAET,sBAAsB,EAAE,mBAChC;;qBAII,qBAAmB,EAAA,cAAA;qBAEnB;;;;;;;;;;;cAYP,kBAAgB,EAAA;;;;;;;;;;;iBAEL,kBAAkB,EAAE,mBAAmB;;qBAG3C,iBAAe,EAAA,cAAA;cAEtB,mBAAiB,EAAA;;;;iBAKN,mBAAmB,EAAE,mBAAmB;;qBAG5C,kBAAgB,EAAA,cAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { schema } from "../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/types/Images.ts
|
|
5
|
+
const imageEntries = {
|
|
6
|
+
aspectRatio: v.number(),
|
|
7
|
+
/** Append to an image base URL (see `getConfiguration`) to load the file. */
|
|
8
|
+
filePath: v.string(),
|
|
9
|
+
height: integer,
|
|
10
|
+
/** Region the image is for, or `null`. */
|
|
11
|
+
iso_3166_1: v.nullable(v.string()),
|
|
12
|
+
/** Language of the image's text, or `null` for images without text (most backdrops). */
|
|
13
|
+
iso_639_1: v.nullable(v.string()),
|
|
14
|
+
voteAverage: v.number(),
|
|
15
|
+
voteCount: integer,
|
|
16
|
+
width: integer
|
|
17
|
+
};
|
|
18
|
+
const _imageSchema = v.object(imageEntries);
|
|
19
|
+
/**
|
|
20
|
+
* ### Image
|
|
21
|
+
*
|
|
22
|
+
* One image (poster, backdrop, logo, still or profile) with its dimensions, language and votes.
|
|
23
|
+
*/
|
|
24
|
+
const imageSchema = schema(_imageSchema);
|
|
25
|
+
const images = v.array(imageSchema);
|
|
26
|
+
const _mediaImagesSchema = v.object({
|
|
27
|
+
id: integer,
|
|
28
|
+
backdrops: images,
|
|
29
|
+
/** Absent for collections, which have no logos. */
|
|
30
|
+
logos: v.exactOptional(images),
|
|
31
|
+
posters: images
|
|
32
|
+
});
|
|
33
|
+
/** Images of a movie, TV series or collection (`getMovieImages`, `getTvSeriesImages`, `getCollectionImages`). */
|
|
34
|
+
const mediaImagesSchema = schema(_mediaImagesSchema);
|
|
35
|
+
const _posterImagesSchema = v.object({
|
|
36
|
+
id: integer,
|
|
37
|
+
posters: images
|
|
38
|
+
});
|
|
39
|
+
/** A season's posters (`getTvSeasonImages`). */
|
|
40
|
+
const posterImagesSchema = schema(_posterImagesSchema);
|
|
41
|
+
const _stillImagesSchema = v.object({
|
|
42
|
+
id: integer,
|
|
43
|
+
stills: images
|
|
44
|
+
});
|
|
45
|
+
/** An episode's stills (`getTvEpisodeImages`). */
|
|
46
|
+
const stillImagesSchema = schema(_stillImagesSchema);
|
|
47
|
+
const _profileImagesSchema = v.object({
|
|
48
|
+
id: integer,
|
|
49
|
+
profiles: images
|
|
50
|
+
});
|
|
51
|
+
/** A person's profile photos (`getPersonImages`). */
|
|
52
|
+
const profileImagesSchema = schema(_profileImagesSchema);
|
|
53
|
+
const logoImageEntries = {
|
|
54
|
+
aspectRatio: v.number(),
|
|
55
|
+
filePath: v.string(),
|
|
56
|
+
/** `.png` or `.svg`. */
|
|
57
|
+
fileType: v.string(),
|
|
58
|
+
height: integer,
|
|
59
|
+
id: v.string(),
|
|
60
|
+
voteAverage: v.number(),
|
|
61
|
+
voteCount: integer,
|
|
62
|
+
width: integer
|
|
63
|
+
};
|
|
64
|
+
const _logoImageSchema = v.object(logoImageEntries);
|
|
65
|
+
/** A company or network logo: unlike media images it has its own id and a file type, and no language. */
|
|
66
|
+
const logoImageSchema = schema(_logoImageSchema);
|
|
67
|
+
const _logoImagesSchema = v.object({
|
|
68
|
+
id: integer,
|
|
69
|
+
logos: v.array(logoImageSchema)
|
|
70
|
+
});
|
|
71
|
+
/** A company's or network's logos (`getCompanyImages`, `getNetworkImages`). */
|
|
72
|
+
const logoImagesSchema = schema(_logoImagesSchema);
|
|
73
|
+
export { imageEntries, imageSchema, logoImageEntries, logoImageSchema, logoImagesSchema, mediaImagesSchema, posterImagesSchema, profileImagesSchema, stillImagesSchema };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=Images.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Images.mjs","names":[],"sources":["../../src/types/Images.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../validations/schema.js\";\nimport { integer } from \"../validations/integer.js\";\n\nexport const imageEntries = {\n aspectRatio: v.number(),\n /** Append to an image base URL (see `getConfiguration`) to load the file. */\n filePath: v.string(),\n height: integer,\n /** Region the image is for, or `null`. */\n iso_3166_1: v.nullable(v.string()),\n /** Language of the image's text, or `null` for images without text (most backdrops). */\n iso_639_1: v.nullable(v.string()),\n voteAverage: v.number(),\n voteCount: integer,\n width: integer\n} as const;\n\nconst _imageSchema = v.object(imageEntries);\n\nexport interface Image extends v.InferOutput<typeof _imageSchema> {}\n\n/**\n * ### Image\n *\n * One image (poster, backdrop, logo, still or profile) with its dimensions, language and votes.\n */\nexport const imageSchema = schema<Image>(_imageSchema);\n\nconst images = v.array(imageSchema);\n\nconst _mediaImagesSchema = v.object({\n id: integer,\n backdrops: images,\n /** Absent for collections, which have no logos. */\n logos: v.exactOptional(images),\n posters: images\n});\n\nexport interface MediaImages extends v.InferOutput<typeof _mediaImagesSchema> {}\n\n/** Images of a movie, TV series or collection (`getMovieImages`, `getTvSeriesImages`, `getCollectionImages`). */\nexport const mediaImagesSchema = schema<MediaImages>(_mediaImagesSchema);\n\nconst _posterImagesSchema = v.object({ id: integer, posters: images });\n\nexport interface PosterImages extends v.InferOutput<\n typeof _posterImagesSchema\n> {}\n\n/** A season's posters (`getTvSeasonImages`). */\nexport const posterImagesSchema = schema<PosterImages>(_posterImagesSchema);\n\nconst _stillImagesSchema = v.object({ id: integer, stills: images });\n\nexport interface StillImages extends v.InferOutput<typeof _stillImagesSchema> {}\n\n/** An episode's stills (`getTvEpisodeImages`). */\nexport const stillImagesSchema = schema<StillImages>(_stillImagesSchema);\n\nconst _profileImagesSchema = v.object({ id: integer, profiles: images });\n\nexport interface ProfileImages extends v.InferOutput<\n typeof _profileImagesSchema\n> {}\n\n/** A person's profile photos (`getPersonImages`). */\nexport const profileImagesSchema = schema<ProfileImages>(_profileImagesSchema);\n\nexport const logoImageEntries = {\n aspectRatio: v.number(),\n filePath: v.string(),\n /** `.png` or `.svg`. */\n fileType: v.string(),\n height: integer,\n id: v.string(),\n voteAverage: v.number(),\n voteCount: integer,\n width: integer\n} as const;\n\nconst _logoImageSchema = v.object(logoImageEntries);\n\nexport interface LogoImage extends v.InferOutput<typeof _logoImageSchema> {}\n\n/** A company or network logo: unlike media images it has its own id and a file type, and no language. */\nexport const logoImageSchema = schema<LogoImage>(_logoImageSchema);\n\nconst _logoImagesSchema = v.object({\n id: integer,\n logos: v.array(logoImageSchema)\n});\n\nexport interface LogoImages extends v.InferOutput<typeof _logoImagesSchema> {}\n\n/** A company's or network's logos (`getCompanyImages`, `getNetworkImages`). */\nexport const logoImagesSchema = schema<LogoImages>(_logoImagesSchema);\n"],"mappings":";;;;AAIA,MAAa,eAAe;CAC1B,aAAa,EAAE,OAAO;;CAEtB,UAAU,EAAE,OAAO;CACnB,QAAQ;;CAER,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC;;CAEjC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC;CAChC,aAAa,EAAE,OAAO;CACtB,WAAW;CACX,OAAO;AACT;AAEA,MAAM,eAAe,EAAE,OAAO,YAAY;;;;;;AAS1C,MAAa,cAAc,OAAc,YAAY;AAErD,MAAM,SAAS,EAAE,MAAM,WAAW;AAElC,MAAM,qBAAqB,EAAE,OAAO;CAClC,IAAI;CACJ,WAAW;;CAEX,OAAO,EAAE,cAAc,MAAM;CAC7B,SAAS;AACX,CAAC;;AAKD,MAAa,oBAAoB,OAAoB,kBAAkB;AAEvE,MAAM,sBAAsB,EAAE,OAAO;CAAE,IAAI;CAAS,SAAS;AAAO,CAAC;;AAOrE,MAAa,qBAAqB,OAAqB,mBAAmB;AAE1E,MAAM,qBAAqB,EAAE,OAAO;CAAE,IAAI;CAAS,QAAQ;AAAO,CAAC;;AAKnE,MAAa,oBAAoB,OAAoB,kBAAkB;AAEvE,MAAM,uBAAuB,EAAE,OAAO;CAAE,IAAI;CAAS,UAAU;AAAO,CAAC;;AAOvE,MAAa,sBAAsB,OAAsB,oBAAoB;AAE7E,MAAa,mBAAmB;CAC9B,aAAa,EAAE,OAAO;CACtB,UAAU,EAAE,OAAO;;CAEnB,UAAU,EAAE,OAAO;CACnB,QAAQ;CACR,IAAI,EAAE,OAAO;CACb,aAAa,EAAE,OAAO;CACtB,WAAW;CACX,OAAO;AACT;AAEA,MAAM,mBAAmB,EAAE,OAAO,gBAAgB;;AAKlD,MAAa,kBAAkB,OAAkB,gBAAgB;AAEjE,MAAM,oBAAoB,EAAE,OAAO;CACjC,IAAI;CACJ,OAAO,EAAE,MAAM,eAAe;AAChC,CAAC;;AAKD,MAAa,mBAAmB,OAAmB,iBAAiB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PagedResults } from "./PagedResults.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
export declare const keywordEntries: {
|
|
4
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
5
|
+
readonly name: v.StringSchema<undefined>;
|
|
6
|
+
};
|
|
7
|
+
declare const _keywordSchema: v.ObjectSchema<{
|
|
8
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
9
|
+
readonly name: v.StringSchema<undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
export interface Keyword extends v.InferOutput<typeof _keywordSchema> {}
|
|
12
|
+
/**
|
|
13
|
+
* ### Keyword
|
|
14
|
+
*
|
|
15
|
+
* A keyword (tag) attached to movies and TV series, as returned by `getKeyword` and inside keyword lists.
|
|
16
|
+
*/
|
|
17
|
+
export declare const keywordSchema: v.GenericSchema<Keyword>;
|
|
18
|
+
export interface PagedKeywordResults extends PagedResults<Keyword> {}
|
|
19
|
+
/** A page of {@link Keyword}s (`searchKeywords`). */
|
|
20
|
+
export declare const pagedKeywordResultsSchema: v.GenericSchema<PagedKeywordResults>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Keyword.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Keyword.d.mts","names":[],"sources":["../../src/types/Keyword.ts"],"mappings":";;qBAKa;;;;cAKP,gBAAc,EAAA;;;;iBAEH,gBAAgB,EAAE,mBAAmB;;;;;;qBAOzC,eAAa,EAAA,cAAA;iBAET,4BAA4B,aAAa;;qBAG7C,2BAAyB,EAAA,cAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { schema } from "../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import { pagedResults } from "./PagedResults.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
// src/types/Keyword.ts
|
|
6
|
+
const keywordEntries = {
|
|
7
|
+
id: integer,
|
|
8
|
+
name: v.string()
|
|
9
|
+
};
|
|
10
|
+
const _keywordSchema = v.object(keywordEntries);
|
|
11
|
+
/**
|
|
12
|
+
* ### Keyword
|
|
13
|
+
*
|
|
14
|
+
* A keyword (tag) attached to movies and TV series, as returned by `getKeyword` and inside keyword lists.
|
|
15
|
+
*/
|
|
16
|
+
const keywordSchema = schema(_keywordSchema);
|
|
17
|
+
/** A page of {@link Keyword}s (`searchKeywords`). */
|
|
18
|
+
const pagedKeywordResultsSchema = schema(pagedResults(keywordSchema));
|
|
19
|
+
export { keywordEntries, keywordSchema, pagedKeywordResultsSchema };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=Keyword.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Keyword.mjs","names":[],"sources":["../../src/types/Keyword.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../validations/schema.js\";\nimport { integer } from \"../validations/integer.js\";\nimport { pagedResults, type PagedResults } from \"./PagedResults.js\";\n\nexport const keywordEntries = {\n id: integer,\n name: v.string()\n} as const;\n\nconst _keywordSchema = v.object(keywordEntries);\n\nexport interface Keyword extends v.InferOutput<typeof _keywordSchema> {}\n\n/**\n * ### Keyword\n *\n * A keyword (tag) attached to movies and TV series, as returned by `getKeyword` and inside keyword lists.\n */\nexport const keywordSchema = schema<Keyword>(_keywordSchema);\n\nexport interface PagedKeywordResults extends PagedResults<Keyword> {}\n\n/** A page of {@link Keyword}s (`searchKeywords`). */\nexport const pagedKeywordResultsSchema = schema<PagedKeywordResults>(\n pagedResults(keywordSchema)\n);\n"],"mappings":";;;;;AAKA,MAAa,iBAAiB;CAC5B,IAAI;CACJ,MAAM,EAAE,OAAO;AACjB;AAEA,MAAM,iBAAiB,EAAE,OAAO,cAAc;;;;;;AAS9C,MAAa,gBAAgB,OAAgB,cAAc;;AAK3D,MAAa,4BAA4B,OACvC,aAAa,aAAa,CAC5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PagedResults } from "./PagedResults.mjs";
|
|
2
|
+
import { MovieMediaListItem } from "../movie/types/MovieListItem.mjs";
|
|
3
|
+
import { TvMediaListItem } from "../tv/types/TvListItem.mjs";
|
|
4
|
+
import { PersonMediaListItem } from "../person/types/PersonListItem.mjs";
|
|
5
|
+
export type MediaListItem = MovieMediaListItem | TvMediaListItem | PersonMediaListItem;
|
|
6
|
+
/**
|
|
7
|
+
* ### Media List Item
|
|
8
|
+
*
|
|
9
|
+
* A movie, TV series or person in a mixed list, told apart by `mediaType` (`searchMulti`, `getTrending`).
|
|
10
|
+
*/
|
|
11
|
+
export declare const mediaListItemSchema: import("valibot").GenericSchema<MediaListItem>;
|
|
12
|
+
export interface PagedMediaResults extends PagedResults<MediaListItem> {}
|
|
13
|
+
/** A page of {@link MediaListItem}s. */
|
|
14
|
+
export declare const pagedMediaResultsSchema: import("valibot").GenericSchema<PagedMediaResults>;
|
|
15
|
+
//# sourceMappingURL=MediaListItem.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaListItem.d.mts","names":[],"sources":["../../src/types/MediaListItem.ts"],"mappings":";;;;YAeY,gBACR,qBACA,kBACA;;;;;;qBAOS,uCAAmB,cAAA;iBAMf,0BAA0B,aAAa;;qBAG3C,2CAAuB,cAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { schema, variantSchema } from "../validations/schema.mjs";
|
|
2
|
+
import { pagedResults } from "./PagedResults.mjs";
|
|
3
|
+
import { movieMediaListItemSchema } from "../movie/types/MovieListItem.mjs";
|
|
4
|
+
import { tvMediaListItemSchema } from "../tv/types/TvListItem.mjs";
|
|
5
|
+
import { personMediaListItemSchema } from "../person/types/PersonListItem.mjs";
|
|
6
|
+
// src/types/MediaListItem.ts
|
|
7
|
+
/**
|
|
8
|
+
* ### Media List Item
|
|
9
|
+
*
|
|
10
|
+
* A movie, TV series or person in a mixed list, told apart by `mediaType` (`searchMulti`, `getTrending`).
|
|
11
|
+
*/
|
|
12
|
+
const mediaListItemSchema = variantSchema(`mediaType`, [
|
|
13
|
+
movieMediaListItemSchema,
|
|
14
|
+
tvMediaListItemSchema,
|
|
15
|
+
personMediaListItemSchema
|
|
16
|
+
]);
|
|
17
|
+
/** A page of {@link MediaListItem}s. */
|
|
18
|
+
const pagedMediaResultsSchema = schema(pagedResults(mediaListItemSchema));
|
|
19
|
+
export { mediaListItemSchema, pagedMediaResultsSchema };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=MediaListItem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaListItem.mjs","names":[],"sources":["../../src/types/MediaListItem.ts"],"sourcesContent":["import { schema, variantSchema } from \"../validations/schema.js\";\nimport { pagedResults, type PagedResults } from \"./PagedResults.js\";\nimport {\n movieMediaListItemSchema,\n type MovieMediaListItem\n} from \"../movie/types/MovieListItem.js\";\nimport {\n tvMediaListItemSchema,\n type TvMediaListItem\n} from \"../tv/types/TvListItem.js\";\nimport {\n personMediaListItemSchema,\n type PersonMediaListItem\n} from \"../person/types/PersonListItem.js\";\n\nexport type MediaListItem =\n | MovieMediaListItem\n | TvMediaListItem\n | PersonMediaListItem;\n\n/**\n * ### Media List Item\n *\n * A movie, TV series or person in a mixed list, told apart by `mediaType` (`searchMulti`, `getTrending`).\n */\nexport const mediaListItemSchema = variantSchema<MediaListItem>(`mediaType`, [\n movieMediaListItemSchema,\n tvMediaListItemSchema,\n personMediaListItemSchema\n]);\n\nexport interface PagedMediaResults extends PagedResults<MediaListItem> {}\n\n/** A page of {@link MediaListItem}s. */\nexport const pagedMediaResultsSchema = schema<PagedMediaResults>(\n pagedResults(mediaListItemSchema)\n);\n"],"mappings":";;;;;;;;;;;AAyBA,MAAa,sBAAsB,cAA6B,aAAa;CAC3E;CACA;CACA;AACF,CAAC;;AAKD,MAAa,0BAA0B,OACrC,aAAa,mBAAmB,CAClC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/** The paging fields TMDB puts beside `results` on every list endpoint. */
|
|
3
|
+
export declare const pageEntries: {
|
|
4
|
+
/** The page returned, from 1. */
|
|
5
|
+
readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
6
|
+
readonly totalPages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
7
|
+
readonly totalResults: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A page of results: `{ page, results, total_pages, total_results }`, the shape of every TMDB list, search and discover response.
|
|
11
|
+
*
|
|
12
|
+
* @typeParam T - the schema for each item in the `results` array
|
|
13
|
+
*/
|
|
14
|
+
export declare const pagedResults: <T extends v.GenericSchema>(itemSchema: T) => v.GenericSchema<PagedResults<v.InferOutput<T>>>;
|
|
15
|
+
/**
|
|
16
|
+
* The type of a {@link pagedResults} page.
|
|
17
|
+
*
|
|
18
|
+
* @typeParam T - the type of each item in the `results` array
|
|
19
|
+
*/
|
|
20
|
+
export interface PagedResults<T> {
|
|
21
|
+
page: number;
|
|
22
|
+
results: T[];
|
|
23
|
+
totalPages: number;
|
|
24
|
+
totalResults: number;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=PagedResults.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagedResults.d.mts","names":[],"sources":["../../src/types/PagedResults.ts"],"mappings":";;qBAIa;;;;;;;;;;;qBAYA,eAAgB,UAAU,EAAE,eACvC,YAAY,MACX,EAAE,cAAc,aAAa,EAAE,YAAY;;;;;;iBAQ7B,aAAa;EAC5B;EACA,SAAS;EACT;EACA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { integer } from "../validations/integer.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/types/PagedResults.ts
|
|
4
|
+
/** The paging fields TMDB puts beside `results` on every list endpoint. */
|
|
5
|
+
const pageEntries = {
|
|
6
|
+
/** The page returned, from 1. */
|
|
7
|
+
page: integer,
|
|
8
|
+
totalPages: integer,
|
|
9
|
+
totalResults: integer
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A page of results: `{ page, results, total_pages, total_results }`, the shape of every TMDB list, search and discover response.
|
|
13
|
+
*
|
|
14
|
+
* @typeParam T - the schema for each item in the `results` array
|
|
15
|
+
*/
|
|
16
|
+
const pagedResults = (itemSchema) => v.object({
|
|
17
|
+
...pageEntries,
|
|
18
|
+
results: v.array(itemSchema)
|
|
19
|
+
});
|
|
20
|
+
export { pageEntries, pagedResults };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=PagedResults.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagedResults.mjs","names":[],"sources":["../../src/types/PagedResults.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { integer } from \"../validations/integer.js\";\n\n/** The paging fields TMDB puts beside `results` on every list endpoint. */\nexport const pageEntries = {\n /** The page returned, from 1. */\n page: integer,\n totalPages: integer,\n totalResults: integer\n} as const;\n\n/**\n * A page of results: `{ page, results, total_pages, total_results }`, the shape of every TMDB list, search and discover response.\n *\n * @typeParam T - the schema for each item in the `results` array\n */\nexport const pagedResults = <T extends v.GenericSchema>(\n itemSchema: T\n): v.GenericSchema<PagedResults<v.InferOutput<T>>> =>\n v.object({ ...pageEntries, results: v.array(itemSchema) });\n\n/**\n * The type of a {@link pagedResults} page.\n *\n * @typeParam T - the type of each item in the `results` array\n */\nexport interface PagedResults<T> {\n page: number;\n results: T[];\n totalPages: number;\n totalResults: number;\n}\n"],"mappings":";;;;AAIA,MAAa,cAAc;;CAEzB,MAAM;CACN,YAAY;CACZ,cAAc;AAChB;;;;;;AAOA,MAAa,gBACX,eAEA,EAAE,OAAO;CAAE,GAAG;CAAa,SAAS,EAAE,MAAM,UAAU;AAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const productionCompanyEntries: {
|
|
3
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
4
|
+
readonly logoPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5
|
+
readonly name: v.StringSchema<undefined>;
|
|
6
|
+
/** ISO 3166-1 code, or `""` when TMDB doesn't know it. */
|
|
7
|
+
readonly originCountry: v.StringSchema<undefined>;
|
|
8
|
+
};
|
|
9
|
+
declare const _productionCompanySchema: v.ObjectSchema<{
|
|
10
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
11
|
+
readonly logoPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly name: v.StringSchema<undefined>;
|
|
13
|
+
/** ISO 3166-1 code, or `""` when TMDB doesn't know it. */
|
|
14
|
+
readonly originCountry: v.StringSchema<undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
export interface ProductionCompany extends v.InferOutput<typeof _productionCompanySchema> {}
|
|
17
|
+
/**
|
|
18
|
+
* ### Production Company
|
|
19
|
+
*
|
|
20
|
+
* A company credited on a movie or TV series. TV networks share this shape.
|
|
21
|
+
*/
|
|
22
|
+
export declare const productionCompanySchema: v.GenericSchema<ProductionCompany>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=ProductionCompany.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductionCompany.d.mts","names":[],"sources":["../../src/types/ProductionCompany.ts"],"mappings":";qBAIa;;;;;;;cAQP,0BAAwB,EAAA;;;;;;;iBAEb,0BAA0B,EAAE,mBACpC;;;;;;qBAQI,yBAAuB,EAAA,cAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { schema } from "../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/types/ProductionCompany.ts
|
|
5
|
+
const productionCompanyEntries = {
|
|
6
|
+
id: integer,
|
|
7
|
+
logoPath: v.nullable(v.string()),
|
|
8
|
+
name: v.string(),
|
|
9
|
+
/** ISO 3166-1 code, or `""` when TMDB doesn't know it. */
|
|
10
|
+
originCountry: v.string()
|
|
11
|
+
};
|
|
12
|
+
const _productionCompanySchema = v.object(productionCompanyEntries);
|
|
13
|
+
/**
|
|
14
|
+
* ### Production Company
|
|
15
|
+
*
|
|
16
|
+
* A company credited on a movie or TV series. TV networks share this shape.
|
|
17
|
+
*/
|
|
18
|
+
const productionCompanySchema = schema(_productionCompanySchema);
|
|
19
|
+
export { productionCompanyEntries, productionCompanySchema };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=ProductionCompany.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductionCompany.mjs","names":[],"sources":["../../src/types/ProductionCompany.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../validations/schema.js\";\nimport { integer } from \"../validations/integer.js\";\n\nexport const productionCompanyEntries = {\n id: integer,\n logoPath: v.nullable(v.string()),\n name: v.string(),\n /** ISO 3166-1 code, or `\"\"` when TMDB doesn't know it. */\n originCountry: v.string()\n} as const;\n\nconst _productionCompanySchema = v.object(productionCompanyEntries);\n\nexport interface ProductionCompany extends v.InferOutput<\n typeof _productionCompanySchema\n> {}\n\n/**\n * ### Production Company\n *\n * A company credited on a movie or TV series. TV networks share this shape.\n */\nexport const productionCompanySchema = schema<ProductionCompany>(\n _productionCompanySchema\n);\n"],"mappings":";;;;AAIA,MAAa,2BAA2B;CACtC,IAAI;CACJ,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;CAC/B,MAAM,EAAE,OAAO;;CAEf,eAAe,EAAE,OAAO;AAC1B;AAEA,MAAM,2BAA2B,EAAE,OAAO,wBAAwB;;;;;;AAWlE,MAAa,0BAA0B,OACrC,wBACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const productionCountryEntries: {
|
|
3
|
+
/** ISO 3166-1 code. */
|
|
4
|
+
readonly iso_3166_1: v.StringSchema<undefined>;
|
|
5
|
+
readonly name: v.StringSchema<undefined>;
|
|
6
|
+
};
|
|
7
|
+
declare const _productionCountrySchema: v.ObjectSchema<{
|
|
8
|
+
/** ISO 3166-1 code. */
|
|
9
|
+
readonly iso_3166_1: v.StringSchema<undefined>;
|
|
10
|
+
readonly name: v.StringSchema<undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
export interface ProductionCountry extends v.InferOutput<typeof _productionCountrySchema> {}
|
|
13
|
+
/**
|
|
14
|
+
* ### Production Country
|
|
15
|
+
*
|
|
16
|
+
* A country a movie or TV series was produced in.
|
|
17
|
+
*/
|
|
18
|
+
export declare const productionCountrySchema: v.GenericSchema<ProductionCountry>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ProductionCountry.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductionCountry.d.mts","names":[],"sources":["../../src/types/ProductionCountry.ts"],"mappings":";qBAGa;;;;;cAMP,0BAAwB,EAAA;;;;;iBAEb,0BAA0B,EAAE,mBACpC;;;;;;qBAQI,yBAAuB,EAAA,cAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { schema } from "../validations/schema.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/types/ProductionCountry.ts
|
|
4
|
+
const productionCountryEntries = {
|
|
5
|
+
/** ISO 3166-1 code. */
|
|
6
|
+
iso_3166_1: v.string(),
|
|
7
|
+
name: v.string()
|
|
8
|
+
};
|
|
9
|
+
const _productionCountrySchema = v.object(productionCountryEntries);
|
|
10
|
+
/**
|
|
11
|
+
* ### Production Country
|
|
12
|
+
*
|
|
13
|
+
* A country a movie or TV series was produced in.
|
|
14
|
+
*/
|
|
15
|
+
const productionCountrySchema = schema(_productionCountrySchema);
|
|
16
|
+
export { productionCountryEntries, productionCountrySchema };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=ProductionCountry.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductionCountry.mjs","names":[],"sources":["../../src/types/ProductionCountry.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../validations/schema.js\";\n\nexport const productionCountryEntries = {\n /** ISO 3166-1 code. */\n iso_3166_1: v.string(),\n name: v.string()\n} as const;\n\nconst _productionCountrySchema = v.object(productionCountryEntries);\n\nexport interface ProductionCountry extends v.InferOutput<\n typeof _productionCountrySchema\n> {}\n\n/**\n * ### Production Country\n *\n * A country a movie or TV series was produced in.\n */\nexport const productionCountrySchema = schema<ProductionCountry>(\n _productionCountrySchema\n);\n"],"mappings":";;;AAGA,MAAa,2BAA2B;;CAEtC,YAAY,EAAE,OAAO;CACrB,MAAM,EAAE,OAAO;AACjB;AAEA,MAAM,2BAA2B,EAAE,OAAO,wBAAwB;;;;;;AAWlE,MAAa,0BAA0B,OACrC,wBACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const spokenLanguageEntries: {
|
|
3
|
+
readonly englishName: v.StringSchema<undefined>;
|
|
4
|
+
/** ISO 639-1 code. */
|
|
5
|
+
readonly iso_639_1: v.StringSchema<undefined>;
|
|
6
|
+
/** The language's name in itself, or `""` when TMDB doesn't have one. */
|
|
7
|
+
readonly name: v.StringSchema<undefined>;
|
|
8
|
+
};
|
|
9
|
+
declare const _spokenLanguageSchema: v.ObjectSchema<{
|
|
10
|
+
readonly englishName: v.StringSchema<undefined>;
|
|
11
|
+
/** ISO 639-1 code. */
|
|
12
|
+
readonly iso_639_1: v.StringSchema<undefined>;
|
|
13
|
+
/** The language's name in itself, or `""` when TMDB doesn't have one. */
|
|
14
|
+
readonly name: v.StringSchema<undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
export interface SpokenLanguage extends v.InferOutput<typeof _spokenLanguageSchema> {}
|
|
17
|
+
/**
|
|
18
|
+
* ### Spoken Language
|
|
19
|
+
*
|
|
20
|
+
* A language spoken in a movie or TV series. `getLanguages` returns the same shape.
|
|
21
|
+
*/
|
|
22
|
+
export declare const spokenLanguageSchema: v.GenericSchema<SpokenLanguage>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=SpokenLanguage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpokenLanguage.d.mts","names":[],"sources":["../../src/types/SpokenLanguage.ts"],"mappings":";qBAGa;;;;;;;cAQP,uBAAqB,EAAA;;;;;;;iBAEV,uBAAuB,EAAE,mBACjC;;;;;;qBAQI,sBAAoB,EAAA,cAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { schema } from "../validations/schema.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/types/SpokenLanguage.ts
|
|
4
|
+
const spokenLanguageEntries = {
|
|
5
|
+
englishName: v.string(),
|
|
6
|
+
/** ISO 639-1 code. */
|
|
7
|
+
iso_639_1: v.string(),
|
|
8
|
+
/** The language's name in itself, or `""` when TMDB doesn't have one. */
|
|
9
|
+
name: v.string()
|
|
10
|
+
};
|
|
11
|
+
const _spokenLanguageSchema = v.object(spokenLanguageEntries);
|
|
12
|
+
/**
|
|
13
|
+
* ### Spoken Language
|
|
14
|
+
*
|
|
15
|
+
* A language spoken in a movie or TV series. `getLanguages` returns the same shape.
|
|
16
|
+
*/
|
|
17
|
+
const spokenLanguageSchema = schema(_spokenLanguageSchema);
|
|
18
|
+
export { spokenLanguageEntries, spokenLanguageSchema };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=SpokenLanguage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpokenLanguage.mjs","names":[],"sources":["../../src/types/SpokenLanguage.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../validations/schema.js\";\n\nexport const spokenLanguageEntries = {\n englishName: v.string(),\n /** ISO 639-1 code. */\n iso_639_1: v.string(),\n /** The language's name in itself, or `\"\"` when TMDB doesn't have one. */\n name: v.string()\n} as const;\n\nconst _spokenLanguageSchema = v.object(spokenLanguageEntries);\n\nexport interface SpokenLanguage extends v.InferOutput<\n typeof _spokenLanguageSchema\n> {}\n\n/**\n * ### Spoken Language\n *\n * A language spoken in a movie or TV series. `getLanguages` returns the same shape.\n */\nexport const spokenLanguageSchema = schema<SpokenLanguage>(\n _spokenLanguageSchema\n);\n"],"mappings":";;;AAGA,MAAa,wBAAwB;CACnC,aAAa,EAAE,OAAO;;CAEtB,WAAW,EAAE,OAAO;;CAEpB,MAAM,EAAE,OAAO;AACjB;AAEA,MAAM,wBAAwB,EAAE,OAAO,qBAAqB;;;;;;AAW5D,MAAa,uBAAuB,OAClC,qBACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/**
|
|
3
|
+
* One translation of a title or person: the language and region it's in, plus the translated fields in `data`, whose shape depends on what was translated. Untranslated fields are `""`.
|
|
4
|
+
*
|
|
5
|
+
* @typeParam T - the schema of the translated fields
|
|
6
|
+
*/
|
|
7
|
+
export declare const translation: <T extends v.GenericSchema>(data: T) => v.GenericSchema<Translation<v.InferOutput<T>>>;
|
|
8
|
+
/** The type of one {@link translation}. */
|
|
9
|
+
export interface Translation<T> {
|
|
10
|
+
iso_3166_1: string;
|
|
11
|
+
iso_639_1: string;
|
|
12
|
+
name: string;
|
|
13
|
+
englishName: string;
|
|
14
|
+
data: T;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The `{ id, translations }` response every translations endpoint returns.
|
|
18
|
+
*
|
|
19
|
+
* @typeParam T - the schema of the translated fields
|
|
20
|
+
*/
|
|
21
|
+
export declare const translations: <T extends v.GenericSchema>(data: T) => v.GenericSchema<Translations<v.InferOutput<T>>>;
|
|
22
|
+
/** The type of a {@link translations} response. */
|
|
23
|
+
export interface Translations<T> {
|
|
24
|
+
id: number;
|
|
25
|
+
translations: Array<Translation<T>>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=Translation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Translation.d.mts","names":[],"sources":["../../src/types/Translation.ts"],"mappings":";;;;;;qBAQa,cAAe,UAAU,EAAE,eACtC,MAAM,MACL,EAAE,cAAc,YAAY,EAAE,YAAY;;iBAe5B,YAAY;EAC3B;EACA;EACA;EACA;EACA,MAAM;;;;;;;qBAQK,eAAgB,UAAU,EAAE,eACvC,MAAM,MACL,EAAE,cAAc,aAAa,EAAE,YAAY;;iBAI7B,aAAa;EAC5B;EACA,cAAc,MAAM,YAAY"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { integer } from "../validations/integer.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/types/Translation.ts
|
|
4
|
+
/**
|
|
5
|
+
* One translation of a title or person: the language and region it's in, plus the translated fields in `data`, whose shape depends on what was translated. Untranslated fields are `""`.
|
|
6
|
+
*
|
|
7
|
+
* @typeParam T - the schema of the translated fields
|
|
8
|
+
*/
|
|
9
|
+
const translation = (data) => v.object({
|
|
10
|
+
/** ISO 3166-1 region code. */
|
|
11
|
+
iso_3166_1: v.string(),
|
|
12
|
+
/** ISO 639-1 language code. */
|
|
13
|
+
iso_639_1: v.string(),
|
|
14
|
+
/** The language's name in itself. */
|
|
15
|
+
name: v.string(),
|
|
16
|
+
englishName: v.string(),
|
|
17
|
+
data
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* The `{ id, translations }` response every translations endpoint returns.
|
|
21
|
+
*
|
|
22
|
+
* @typeParam T - the schema of the translated fields
|
|
23
|
+
*/
|
|
24
|
+
const translations = (data) => v.object({
|
|
25
|
+
id: integer,
|
|
26
|
+
translations: v.array(translation(data))
|
|
27
|
+
});
|
|
28
|
+
export { translation, translations };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=Translation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Translation.mjs","names":[],"sources":["../../src/types/Translation.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { integer } from \"../validations/integer.js\";\n\n/**\n * One translation of a title or person: the language and region it's in, plus the translated fields in `data`, whose shape depends on what was translated. Untranslated fields are `\"\"`.\n *\n * @typeParam T - the schema of the translated fields\n */\nexport const translation = <T extends v.GenericSchema>(\n data: T\n): v.GenericSchema<Translation<v.InferOutput<T>>> =>\n // `v.object` infers `data` as `InferInput<T>` on the input side, which TypeScript can't equate with the published `InferOutput<T>`; tmdbkit schemas have no transforms, so they are the same type (see validations/schema.ts).\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n v.object({\n /** ISO 3166-1 region code. */\n iso_3166_1: v.string(),\n /** ISO 639-1 language code. */\n iso_639_1: v.string(),\n /** The language's name in itself. */\n name: v.string(),\n englishName: v.string(),\n data\n }) as unknown as v.GenericSchema<Translation<v.InferOutput<T>>>;\n\n/** The type of one {@link translation}. */\nexport interface Translation<T> {\n iso_3166_1: string;\n iso_639_1: string;\n name: string;\n englishName: string;\n data: T;\n}\n\n/**\n * The `{ id, translations }` response every translations endpoint returns.\n *\n * @typeParam T - the schema of the translated fields\n */\nexport const translations = <T extends v.GenericSchema>(\n data: T\n): v.GenericSchema<Translations<v.InferOutput<T>>> =>\n v.object({ id: integer, translations: v.array(translation(data)) });\n\n/** The type of a {@link translations} response. */\nexport interface Translations<T> {\n id: number;\n translations: Array<Translation<T>>;\n}\n"],"mappings":";;;;;;;;AAQA,MAAa,eACX,SAIA,EAAE,OAAO;;CAEP,YAAY,EAAE,OAAO;;CAErB,WAAW,EAAE,OAAO;;CAEpB,MAAM,EAAE,OAAO;CACf,aAAa,EAAE,OAAO;CACtB;AACF,CAAC;;;;;;AAgBH,MAAa,gBACX,SAEA,EAAE,OAAO;CAAE,IAAI;CAAS,cAAc,EAAE,MAAM,YAAY,IAAI,CAAC;AAAE,CAAC"}
|