@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,118 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
// src/validations/schema.ts
|
|
3
|
+
/**
|
|
4
|
+
* Annotate a schema's *published* type as `v.GenericSchema<T>` so
|
|
5
|
+
* downstream `.d.ts` emit stops inlining the inner `ObjectSchema`'s
|
|
6
|
+
* entries map and instead references `T` by name. The runtime value
|
|
7
|
+
* is unchanged.
|
|
8
|
+
*
|
|
9
|
+
* Use at every type-defining schema export:
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* const _movieSchema = v.object({...});
|
|
13
|
+
* export interface Movie extends v.InferOutput<typeof _movieSchema> {}
|
|
14
|
+
* export const movieSchema = schema<Movie>(_movieSchema);
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* **Why this exists**
|
|
18
|
+
*
|
|
19
|
+
* Without annotation, `typeof movieSchema` is the full
|
|
20
|
+
* `v.ObjectSchema<{ id: v.GenericSchema<number>, ... }>` shape. Every
|
|
21
|
+
* downstream file that references `movieSchema` (SearchResult,
|
|
22
|
+
* Recommendation, …) re-inlines that entries map into its own emitted
|
|
23
|
+
* declarations. This causes:
|
|
24
|
+
*
|
|
25
|
+
* - dramatic duplication of nested object shapes in `.d.ts` output
|
|
26
|
+
* - slow IDE hover (tsserver expands the full shape on every
|
|
27
|
+
* reference)
|
|
28
|
+
* - occasional TS2502 / type-too-complex errors on deeply circular
|
|
29
|
+
* schemas
|
|
30
|
+
*
|
|
31
|
+
* After annotation, downstream `.d.ts` files reference `Movie` by
|
|
32
|
+
* name from `./movie/types/Movie.d.mts` and never inline its body.
|
|
33
|
+
*
|
|
34
|
+
* **Trade-off**
|
|
35
|
+
*
|
|
36
|
+
* `v.partial(movieSchema)`, `v.pick(movieSchema, [...])`, `v.omit(...)`,
|
|
37
|
+
* and `movieSchema.entries.id` stop type-checking because the constraint
|
|
38
|
+
* is `GenericSchema<T>` not `ObjectSchema<...>`. Use the
|
|
39
|
+
* {@link partialSchema}, {@link pickFields}, {@link omitFields},
|
|
40
|
+
* {@link requiredFields}, and {@link variantSchema} helpers below for
|
|
41
|
+
* the common cases.
|
|
42
|
+
*
|
|
43
|
+
* @__NO_SIDE_EFFECTS__
|
|
44
|
+
*/
|
|
45
|
+
const schema = (s) => s;
|
|
46
|
+
/**
|
|
47
|
+
* Make every key of `T` optional, both at the type level and at
|
|
48
|
+
* runtime. Equivalent to Valibot's `v.partial`, but accepts an
|
|
49
|
+
* annotated `GenericSchema<T>` (which `v.partial` would reject because
|
|
50
|
+
* its constraint is `ObjectSchema<...>`).
|
|
51
|
+
*
|
|
52
|
+
* @__NO_SIDE_EFFECTS__
|
|
53
|
+
*/
|
|
54
|
+
const partialSchema = (s) => {
|
|
55
|
+
const erased = s;
|
|
56
|
+
return v.partial(erased);
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Pick a subset of fields from `T` at both type and runtime levels.
|
|
60
|
+
* Equivalent to Valibot's `v.pick`. See {@link partialSchema}.
|
|
61
|
+
*
|
|
62
|
+
* @__NO_SIDE_EFFECTS__
|
|
63
|
+
*/
|
|
64
|
+
const pickFields = (s, keys) => {
|
|
65
|
+
const erased = s;
|
|
66
|
+
const erasedKeys = keys;
|
|
67
|
+
return v.pick(erased, erasedKeys);
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Omit a subset of fields on `T` at both type and runtime levels.
|
|
71
|
+
* Equivalent to Valibot's `v.omit`. See {@link partialSchema}.
|
|
72
|
+
*
|
|
73
|
+
* @__NO_SIDE_EFFECTS__
|
|
74
|
+
*/
|
|
75
|
+
const omitFields = (s, keys) => {
|
|
76
|
+
const erased = s;
|
|
77
|
+
const erasedKeys = keys;
|
|
78
|
+
return v.omit(erased, erasedKeys);
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Mark a subset of fields on `T` as required at both type and runtime
|
|
82
|
+
* levels. Equivalent to Valibot's `v.required`. See {@link partialSchema}.
|
|
83
|
+
*
|
|
84
|
+
* @__NO_SIDE_EFFECTS__
|
|
85
|
+
*/
|
|
86
|
+
const requiredFields = (s, keys) => {
|
|
87
|
+
const erased = s;
|
|
88
|
+
const erasedKeys = keys;
|
|
89
|
+
return v.required(erased, erasedKeys);
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Build a discriminated union schema. Equivalent to Valibot's `v.variant`,
|
|
93
|
+
* but accepts annotated `GenericSchema<T>` variants (which `v.variant`
|
|
94
|
+
* would reject because its constraint is `ObjectSchema<...>`).
|
|
95
|
+
*
|
|
96
|
+
* Prefer `v.variant` whenever variants share a literal discriminator
|
|
97
|
+
* field — it dispatches on that field at runtime, producing focused
|
|
98
|
+
* error messages and O(1) validation, vs. {@link v.union}'s O(n)
|
|
99
|
+
* try-each behavior.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* export const multiSearchResultSchema = variantSchema<MultiSearchResult>(
|
|
104
|
+
* `mediaType`,
|
|
105
|
+
* [movieSearchResultSchema, tvSearchResultSchema, personSearchResultSchema]
|
|
106
|
+
* );
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @__NO_SIDE_EFFECTS__
|
|
110
|
+
*/
|
|
111
|
+
const variantSchema = (key, schemas) => {
|
|
112
|
+
const erasedSchemas = schemas;
|
|
113
|
+
const erasedKey = key;
|
|
114
|
+
return v.variant(erasedKey, erasedSchemas);
|
|
115
|
+
};
|
|
116
|
+
export { omitFields, partialSchema, pickFields, requiredFields, schema, variantSchema };
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":["../../src/validations/schema.ts"],"sourcesContent":["import * as v from \"valibot\";\n\n/**\n * Annotate a schema's *published* type as `v.GenericSchema<T>` so\n * downstream `.d.ts` emit stops inlining the inner `ObjectSchema`'s\n * entries map and instead references `T` by name. The runtime value\n * is unchanged.\n *\n * Use at every type-defining schema export:\n *\n * ```ts\n * const _movieSchema = v.object({...});\n * export interface Movie extends v.InferOutput<typeof _movieSchema> {}\n * export const movieSchema = schema<Movie>(_movieSchema);\n * ```\n *\n * **Why this exists**\n *\n * Without annotation, `typeof movieSchema` is the full\n * `v.ObjectSchema<{ id: v.GenericSchema<number>, ... }>` shape. Every\n * downstream file that references `movieSchema` (SearchResult,\n * Recommendation, …) re-inlines that entries map into its own emitted\n * declarations. This causes:\n *\n * - dramatic duplication of nested object shapes in `.d.ts` output\n * - slow IDE hover (tsserver expands the full shape on every\n * reference)\n * - occasional TS2502 / type-too-complex errors on deeply circular\n * schemas\n *\n * After annotation, downstream `.d.ts` files reference `Movie` by\n * name from `./movie/types/Movie.d.mts` and never inline its body.\n *\n * **Trade-off**\n *\n * `v.partial(movieSchema)`, `v.pick(movieSchema, [...])`, `v.omit(...)`,\n * and `movieSchema.entries.id` stop type-checking because the constraint\n * is `GenericSchema<T>` not `ObjectSchema<...>`. Use the\n * {@link partialSchema}, {@link pickFields}, {@link omitFields},\n * {@link requiredFields}, and {@link variantSchema} helpers below for\n * the common cases.\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const schema = <T>(s: v.GenericSchema): v.GenericSchema<T> =>\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n s as v.GenericSchema<T>;\n\n/**\n * Make every key of `T` optional, both at the type level and at\n * runtime. Equivalent to Valibot's `v.partial`, but accepts an\n * annotated `GenericSchema<T>` (which `v.partial` would reject because\n * its constraint is `ObjectSchema<...>`).\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const partialSchema = <T>(\n s: v.GenericSchema<T>\n): v.GenericSchema<Partial<T>> => {\n // The runtime cast is sound: schema<T>(...) returns an ObjectSchema\n // we only annotated as GenericSchema. v.partial reads from\n // ObjectSchema.entries, which is still there.\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erased = s as unknown as v.ObjectSchema<v.ObjectEntries, undefined>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return v.partial(erased) as unknown as v.GenericSchema<Partial<T>>;\n};\n\n/**\n * Pick a subset of fields from `T` at both type and runtime levels.\n * Equivalent to Valibot's `v.pick`. See {@link partialSchema}.\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const pickFields = <T, K extends keyof T & string>(\n s: v.GenericSchema<T>,\n keys: readonly K[]\n): v.GenericSchema<Pick<T, K>> => {\n type Erased = v.ObjectSchema<v.ObjectEntries, undefined>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erased = s as unknown as Erased;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erasedKeys = keys as unknown as v.ObjectKeys<Erased>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return v.pick(erased, erasedKeys) as unknown as v.GenericSchema<Pick<T, K>>;\n};\n\n/**\n * Omit a subset of fields on `T` at both type and runtime levels.\n * Equivalent to Valibot's `v.omit`. See {@link partialSchema}.\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const omitFields = <T, K extends keyof T & string>(\n s: v.GenericSchema<T>,\n keys: readonly K[]\n): v.GenericSchema<Omit<T, K>> => {\n type Erased = v.ObjectSchema<v.ObjectEntries, undefined>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erased = s as unknown as Erased;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erasedKeys = keys as unknown as v.ObjectKeys<Erased>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return v.omit(erased, erasedKeys) as unknown as v.GenericSchema<Omit<T, K>>;\n};\n\n/**\n * Mark a subset of fields on `T` as required at both type and runtime\n * levels. Equivalent to Valibot's `v.required`. See {@link partialSchema}.\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const requiredFields = <T, K extends keyof T & string>(\n s: v.GenericSchema<T>,\n keys: readonly K[]\n): v.GenericSchema<T & Required<Pick<T, K>>> => {\n type Erased = v.ObjectSchema<v.ObjectEntries, undefined>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erased = s as unknown as Erased;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erasedKeys = keys as unknown as v.ObjectKeys<Erased>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return v.required(erased, erasedKeys) as unknown as v.GenericSchema<\n T & Required<Pick<T, K>>\n >;\n};\n\n/**\n * Build a discriminated union schema. Equivalent to Valibot's `v.variant`,\n * but accepts annotated `GenericSchema<T>` variants (which `v.variant`\n * would reject because its constraint is `ObjectSchema<...>`).\n *\n * Prefer `v.variant` whenever variants share a literal discriminator\n * field — it dispatches on that field at runtime, producing focused\n * error messages and O(1) validation, vs. {@link v.union}'s O(n)\n * try-each behavior.\n *\n * @example\n * ```ts\n * export const multiSearchResultSchema = variantSchema<MultiSearchResult>(\n * `mediaType`,\n * [movieSearchResultSchema, tvSearchResultSchema, personSearchResultSchema]\n * );\n * ```\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const variantSchema = <T>(\n key: keyof T & string,\n schemas: readonly v.GenericSchema[]\n): v.GenericSchema<T> => {\n type Erased = v.ObjectSchema<v.ObjectEntries, undefined>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erasedSchemas = schemas as unknown as [Erased, Erased, ...Erased[]];\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const erasedKey = key as never;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return v.variant(erasedKey, erasedSchemas) as unknown as v.GenericSchema<T>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAa,UAAa,MAExB;;;;;;;;;AAUF,MAAa,iBACX,MACgC;CAKhC,MAAM,SAAS;CAEf,OAAO,EAAE,QAAQ,MAAM;AACzB;;;;;;;AAQA,MAAa,cACX,GACA,SACgC;CAGhC,MAAM,SAAS;CAEf,MAAM,aAAa;CAEnB,OAAO,EAAE,KAAK,QAAQ,UAAU;AAClC;;;;;;;AAQA,MAAa,cACX,GACA,SACgC;CAGhC,MAAM,SAAS;CAEf,MAAM,aAAa;CAEnB,OAAO,EAAE,KAAK,QAAQ,UAAU;AAClC;;;;;;;AAQA,MAAa,kBACX,GACA,SAC8C;CAG9C,MAAM,SAAS;CAEf,MAAM,aAAa;CAEnB,OAAO,EAAE,SAAS,QAAQ,UAAU;AAGtC;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,iBACX,KACA,YACuB;CAGvB,MAAM,gBAAgB;CAEtB,MAAM,YAAY;CAElB,OAAO,EAAE,QAAQ,WAAW,aAAa;AAC3C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { WatchProviderList } from "./types/WatchProviderList.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const getMovieWatchProviderListSchema: v.ObjectSchema<{
|
|
5
|
+
readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
|
|
6
|
+
readonly language: v.StringSchema<undefined>;
|
|
7
|
+
readonly watchRegion: v.StringSchema<undefined>;
|
|
8
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
9
|
+
readonly entries: {
|
|
10
|
+
readonly language: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly watchRegion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
};
|
|
13
|
+
readonly "~standard": v.StandardProps<{
|
|
14
|
+
language?: string | undefined;
|
|
15
|
+
watchRegion?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
language?: string | undefined;
|
|
18
|
+
watchRegion?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
21
|
+
language?: string | undefined;
|
|
22
|
+
watchRegion?: string | undefined;
|
|
23
|
+
}, v.StringIssue | v.ObjectIssue>;
|
|
24
|
+
readonly "~types"?: {
|
|
25
|
+
readonly input: {
|
|
26
|
+
language?: string | undefined;
|
|
27
|
+
watchRegion?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
readonly output: {
|
|
30
|
+
language?: string | undefined;
|
|
31
|
+
watchRegion?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
readonly issue: v.StringIssue | v.ObjectIssue;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* ### [Movie Providers](https://developer.themoviedb.org/reference/watch-providers-movie-list)
|
|
39
|
+
*
|
|
40
|
+
* **GET** `/watch/providers/movie`
|
|
41
|
+
*/
|
|
42
|
+
export declare const getMovieWatchProviderList: Fetcher<typeof getMovieWatchProviderListSchema, WatchProviderList>;
|
|
43
|
+
//# sourceMappingURL=getMovieWatchProviderList.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMovieWatchProviderList.d.mts","names":[],"sources":["../../src/watch-providers/getMovieWatchProviderList.ts"],"mappings":";;;qBAIa,iCAA+B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgB/B,2BAA2B,eAC/B,iCACP"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/watch-providers/getMovieWatchProviderList.ts
|
|
4
|
+
const getMovieWatchProviderListSchema = v.object({ params: v.exactOptional(v.partial(v.object({
|
|
5
|
+
language: v.string(),
|
|
6
|
+
watchRegion: v.string()
|
|
7
|
+
}))) });
|
|
8
|
+
/**
|
|
9
|
+
* ### [Movie Providers](https://developer.themoviedb.org/reference/watch-providers-movie-list)
|
|
10
|
+
*
|
|
11
|
+
* **GET** `/watch/providers/movie`
|
|
12
|
+
*/
|
|
13
|
+
const getMovieWatchProviderList = async ({ params }, options) => get(`/watch/providers/movie`, params, options);
|
|
14
|
+
export { getMovieWatchProviderList, getMovieWatchProviderListSchema };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=getMovieWatchProviderList.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMovieWatchProviderList.mjs","names":[],"sources":["../../src/watch-providers/getMovieWatchProviderList.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport type { WatchProviderList } from \"./types/WatchProviderList.js\";\n\nexport const getMovieWatchProviderListSchema = v.object({\n params: v.exactOptional(\n v.partial(\n v.object({\n language: v.string(),\n watchRegion: v.string()\n })\n )\n )\n});\n\n/**\n * ### [Movie Providers](https://developer.themoviedb.org/reference/watch-providers-movie-list)\n *\n * **GET** `/watch/providers/movie`\n */\nexport const getMovieWatchProviderList: Fetcher<\n typeof getMovieWatchProviderListSchema,\n WatchProviderList\n> = async ({ params }, options) =>\n get(`/watch/providers/movie`, params, options);\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO;CACP,UAAU,EAAE,OAAO;CACnB,aAAa,EAAE,OAAO;AACxB,CAAC,CACH,CACF,EACF,CAAC;;;;;;AAOD,MAAa,4BAGT,OAAO,EAAE,UAAU,YACrB,IAAI,0BAA0B,QAAQ,OAAO"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { WatchProviderList } from "./types/WatchProviderList.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const getTvWatchProviderListSchema: v.ObjectSchema<{
|
|
5
|
+
readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
|
|
6
|
+
readonly language: v.StringSchema<undefined>;
|
|
7
|
+
readonly watchRegion: v.StringSchema<undefined>;
|
|
8
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
9
|
+
readonly entries: {
|
|
10
|
+
readonly language: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly watchRegion: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
};
|
|
13
|
+
readonly "~standard": v.StandardProps<{
|
|
14
|
+
language?: string | undefined;
|
|
15
|
+
watchRegion?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
language?: string | undefined;
|
|
18
|
+
watchRegion?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
21
|
+
language?: string | undefined;
|
|
22
|
+
watchRegion?: string | undefined;
|
|
23
|
+
}, v.StringIssue | v.ObjectIssue>;
|
|
24
|
+
readonly "~types"?: {
|
|
25
|
+
readonly input: {
|
|
26
|
+
language?: string | undefined;
|
|
27
|
+
watchRegion?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
readonly output: {
|
|
30
|
+
language?: string | undefined;
|
|
31
|
+
watchRegion?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
readonly issue: v.StringIssue | v.ObjectIssue;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* ### [TV Providers](https://developer.themoviedb.org/reference/watch-provider-tv-list)
|
|
39
|
+
*
|
|
40
|
+
* **GET** `/watch/providers/tv`
|
|
41
|
+
*/
|
|
42
|
+
export declare const getTvWatchProviderList: Fetcher<typeof getTvWatchProviderListSchema, WatchProviderList>;
|
|
43
|
+
//# sourceMappingURL=getTvWatchProviderList.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTvWatchProviderList.d.mts","names":[],"sources":["../../src/watch-providers/getTvWatchProviderList.ts"],"mappings":";;;qBAIa,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgB5B,wBAAwB,eAC5B,8BACP"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/watch-providers/getTvWatchProviderList.ts
|
|
4
|
+
const getTvWatchProviderListSchema = v.object({ params: v.exactOptional(v.partial(v.object({
|
|
5
|
+
language: v.string(),
|
|
6
|
+
watchRegion: v.string()
|
|
7
|
+
}))) });
|
|
8
|
+
/**
|
|
9
|
+
* ### [TV Providers](https://developer.themoviedb.org/reference/watch-provider-tv-list)
|
|
10
|
+
*
|
|
11
|
+
* **GET** `/watch/providers/tv`
|
|
12
|
+
*/
|
|
13
|
+
const getTvWatchProviderList = async ({ params }, options) => get(`/watch/providers/tv`, params, options);
|
|
14
|
+
export { getTvWatchProviderList, getTvWatchProviderListSchema };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=getTvWatchProviderList.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTvWatchProviderList.mjs","names":[],"sources":["../../src/watch-providers/getTvWatchProviderList.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport type { WatchProviderList } from \"./types/WatchProviderList.js\";\n\nexport const getTvWatchProviderListSchema = v.object({\n params: v.exactOptional(\n v.partial(\n v.object({\n language: v.string(),\n watchRegion: v.string()\n })\n )\n )\n});\n\n/**\n * ### [TV Providers](https://developer.themoviedb.org/reference/watch-provider-tv-list)\n *\n * **GET** `/watch/providers/tv`\n */\nexport const getTvWatchProviderList: Fetcher<\n typeof getTvWatchProviderListSchema,\n WatchProviderList\n> = async ({ params }, options) => get(`/watch/providers/tv`, params, options);\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO;CACP,UAAU,EAAE,OAAO;CACnB,aAAa,EAAE,OAAO;AACxB,CAAC,CACH,CACF,EACF,CAAC;;;;;;AAOD,MAAa,yBAGT,OAAO,EAAE,UAAU,YAAY,IAAI,uBAAuB,QAAQ,OAAO"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { WatchProviderRegions } from "./types/WatchProviderRegion.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const getWatchProviderRegionsSchema: v.ObjectSchema<{
|
|
5
|
+
readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
|
|
6
|
+
readonly language: v.StringSchema<undefined>;
|
|
7
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
8
|
+
readonly entries: {
|
|
9
|
+
readonly language: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
};
|
|
11
|
+
readonly "~standard": v.StandardProps<{
|
|
12
|
+
language?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
language?: string | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
17
|
+
language?: string | undefined;
|
|
18
|
+
}, v.StringIssue | v.ObjectIssue>;
|
|
19
|
+
readonly "~types"?: {
|
|
20
|
+
readonly input: {
|
|
21
|
+
language?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly output: {
|
|
24
|
+
language?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
readonly issue: v.StringIssue | v.ObjectIssue;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* ### [Available Regions](https://developer.themoviedb.org/reference/watch-providers-available-regions)
|
|
32
|
+
*
|
|
33
|
+
* **GET** `/watch/providers/regions`
|
|
34
|
+
*/
|
|
35
|
+
export declare const getWatchProviderRegions: Fetcher<typeof getWatchProviderRegionsSchema, WatchProviderRegions>;
|
|
36
|
+
//# sourceMappingURL=getWatchProviderRegions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWatchProviderRegions.d.mts","names":[],"sources":["../../src/watch-providers/getWatchProviderRegions.ts"],"mappings":";;;qBAIa,+BAA6B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAe7B,yBAAyB,eAC7B,+BACP"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/watch-providers/getWatchProviderRegions.ts
|
|
4
|
+
const getWatchProviderRegionsSchema = v.object({ params: v.exactOptional(v.partial(v.object({ language: v.string() }))) });
|
|
5
|
+
/**
|
|
6
|
+
* ### [Available Regions](https://developer.themoviedb.org/reference/watch-providers-available-regions)
|
|
7
|
+
*
|
|
8
|
+
* **GET** `/watch/providers/regions`
|
|
9
|
+
*/
|
|
10
|
+
const getWatchProviderRegions = async ({ params }, options) => get(`/watch/providers/regions`, params, options);
|
|
11
|
+
export { getWatchProviderRegions, getWatchProviderRegionsSchema };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=getWatchProviderRegions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWatchProviderRegions.mjs","names":[],"sources":["../../src/watch-providers/getWatchProviderRegions.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport type { WatchProviderRegions } from \"./types/WatchProviderRegion.js\";\n\nexport const getWatchProviderRegionsSchema = v.object({\n params: v.exactOptional(\n v.partial(\n v.object({\n language: v.string()\n })\n )\n )\n});\n\n/**\n * ### [Available Regions](https://developer.themoviedb.org/reference/watch-providers-available-regions)\n *\n * **GET** `/watch/providers/regions`\n */\nexport const getWatchProviderRegions: Fetcher<\n typeof getWatchProviderRegionsSchema,\n WatchProviderRegions\n> = async ({ params }, options) =>\n get(`/watch/providers/regions`, params, options);\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO,EACP,UAAU,EAAE,OAAO,EACrB,CAAC,CACH,CACF,EACF,CAAC;;;;;;AAOD,MAAa,0BAGT,OAAO,EAAE,UAAU,YACrB,IAAI,4BAA4B,QAAQ,OAAO"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RegionWatchProviders, WatchOption, WatchProviders, watchProvidersSchema } from "./types/WatchProviders.mjs";
|
|
2
|
+
import { WatchProvider, WatchProviderList, watchProviderListSchema } from "./types/WatchProviderList.mjs";
|
|
3
|
+
import { getMovieWatchProviderList, getMovieWatchProviderListSchema } from "./getMovieWatchProviderList.mjs";
|
|
4
|
+
import { getTvWatchProviderList, getTvWatchProviderListSchema } from "./getTvWatchProviderList.mjs";
|
|
5
|
+
import { WatchProviderRegions, watchProviderRegionsSchema } from "./types/WatchProviderRegion.mjs";
|
|
6
|
+
import { getWatchProviderRegions, getWatchProviderRegionsSchema } from "./getWatchProviderRegions.mjs";
|
|
7
|
+
import "./types/index.mjs";
|
|
8
|
+
export { RegionWatchProviders, WatchOption, WatchProvider, WatchProviderList, WatchProviderRegions, WatchProviders, getMovieWatchProviderList, getMovieWatchProviderListSchema, getTvWatchProviderList, getTvWatchProviderListSchema, getWatchProviderRegions, getWatchProviderRegionsSchema, watchProviderListSchema, watchProviderRegionsSchema, watchProvidersSchema };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { watchProvidersSchema } from "./types/WatchProviders.mjs";
|
|
2
|
+
import { getMovieWatchProviderList, getMovieWatchProviderListSchema } from "./getMovieWatchProviderList.mjs";
|
|
3
|
+
import { getTvWatchProviderList, getTvWatchProviderListSchema } from "./getTvWatchProviderList.mjs";
|
|
4
|
+
import { getWatchProviderRegions, getWatchProviderRegionsSchema } from "./getWatchProviderRegions.mjs";
|
|
5
|
+
import { watchProviderListSchema } from "./types/WatchProviderList.mjs";
|
|
6
|
+
import { watchProviderRegionsSchema } from "./types/WatchProviderRegion.mjs";
|
|
7
|
+
export { getMovieWatchProviderList, getMovieWatchProviderListSchema, getTvWatchProviderList, getTvWatchProviderListSchema, getWatchProviderRegions, getWatchProviderRegionsSchema, watchProviderListSchema, watchProviderRegionsSchema, watchProvidersSchema };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
declare const _watchProviderSchema: v.ObjectSchema<{
|
|
3
|
+
/** Sort order per country, keyed by ISO 3166-1 code. */
|
|
4
|
+
readonly displayPriorities: v.RecordSchema<v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
5
|
+
readonly displayPriority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
6
|
+
readonly logoPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7
|
+
readonly providerId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
8
|
+
readonly providerName: v.StringSchema<undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
export interface WatchProvider extends v.InferOutput<typeof _watchProviderSchema> {}
|
|
11
|
+
declare const _watchProviderListSchema: v.ObjectSchema<{
|
|
12
|
+
readonly results: v.ArraySchema<v.GenericSchema<WatchProvider>, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
export interface WatchProviderList extends v.InferOutput<typeof _watchProviderListSchema> {}
|
|
15
|
+
/**
|
|
16
|
+
* ### Watch Provider List
|
|
17
|
+
*
|
|
18
|
+
* Every streaming, rental and purchase service TMDB tracks for movies or TV (`getMovieWatchProviderList`, `getTvWatchProviderList`).
|
|
19
|
+
*/
|
|
20
|
+
export declare const watchProviderListSchema: v.GenericSchema<WatchProviderList>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=WatchProviderList.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchProviderList.d.mts","names":[],"sources":["../../../src/watch-providers/types/WatchProviderList.ts"],"mappings":";cAIM,sBAAoB,EAAA;;;;;;;;iBAST,sBAAsB,EAAE,mBAChC;cAGH,0BAAwB,EAAA;;;iBAIb,0BAA0B,EAAE,mBACpC;;;;;;qBAQI,yBAAuB,EAAA,cAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/watch-providers/types/WatchProviderList.ts
|
|
5
|
+
const _watchProviderSchema = v.object({
|
|
6
|
+
/** Sort order per country, keyed by ISO 3166-1 code. */
|
|
7
|
+
displayPriorities: v.record(v.string(), integer),
|
|
8
|
+
displayPriority: integer,
|
|
9
|
+
logoPath: v.nullable(v.string()),
|
|
10
|
+
providerId: integer,
|
|
11
|
+
providerName: v.string()
|
|
12
|
+
});
|
|
13
|
+
const _watchProviderListSchema = v.object({ results: v.array(schema(_watchProviderSchema)) });
|
|
14
|
+
/**
|
|
15
|
+
* ### Watch Provider List
|
|
16
|
+
*
|
|
17
|
+
* Every streaming, rental and purchase service TMDB tracks for movies or TV (`getMovieWatchProviderList`, `getTvWatchProviderList`).
|
|
18
|
+
*/
|
|
19
|
+
const watchProviderListSchema = schema(_watchProviderListSchema);
|
|
20
|
+
export { watchProviderListSchema };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=WatchProviderList.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchProviderList.mjs","names":[],"sources":["../../../src/watch-providers/types/WatchProviderList.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\n\nconst _watchProviderSchema = v.object({\n /** Sort order per country, keyed by ISO 3166-1 code. */\n displayPriorities: v.record(v.string(), integer),\n displayPriority: integer,\n logoPath: v.nullable(v.string()),\n providerId: integer,\n providerName: v.string()\n});\n\nexport interface WatchProvider extends v.InferOutput<\n typeof _watchProviderSchema\n> {}\n\nconst _watchProviderListSchema = v.object({\n results: v.array(schema<WatchProvider>(_watchProviderSchema))\n});\n\nexport interface WatchProviderList extends v.InferOutput<\n typeof _watchProviderListSchema\n> {}\n\n/**\n * ### Watch Provider List\n *\n * Every streaming, rental and purchase service TMDB tracks for movies or TV (`getMovieWatchProviderList`, `getTvWatchProviderList`).\n */\nexport const watchProviderListSchema = schema<WatchProviderList>(\n _watchProviderListSchema\n);\n"],"mappings":";;;;AAIA,MAAM,uBAAuB,EAAE,OAAO;;CAEpC,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;CAC/C,iBAAiB;CACjB,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;CAC/B,YAAY;CACZ,cAAc,EAAE,OAAO;AACzB,CAAC;AAMD,MAAM,2BAA2B,EAAE,OAAO,EACxC,SAAS,EAAE,MAAM,OAAsB,oBAAoB,CAAC,EAC9D,CAAC;;;;;;AAWD,MAAa,0BAA0B,OACrC,wBACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Country } from "../../configuration/types/Country.mjs";
|
|
2
|
+
import "../../index.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
declare const _watchProviderRegionsSchema: v.ObjectSchema<{
|
|
5
|
+
readonly results: v.ArraySchema<v.GenericSchema<Country>, undefined>;
|
|
6
|
+
}, undefined>;
|
|
7
|
+
export interface WatchProviderRegions extends v.InferOutput<typeof _watchProviderRegionsSchema> {}
|
|
8
|
+
/**
|
|
9
|
+
* ### Watch Provider Regions
|
|
10
|
+
*
|
|
11
|
+
* The countries TMDB has watch-provider data for (`getWatchProviderRegions`).
|
|
12
|
+
*/
|
|
13
|
+
export declare const watchProviderRegionsSchema: v.GenericSchema<WatchProviderRegions>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=WatchProviderRegion.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchProviderRegion.d.mts","names":["_$______index_js0.Country"],"sources":["../../../src/watch-providers/types/WatchProviderRegion.ts"],"mappings":";;;cAIM,6BAA2B,EAAA;W,uCAA3BA;;iBAIW,6BAA6B,EAAE,mBACvC;;;;;;qBAQI,4BAA0B,EAAA,cAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { countrySchema } from "../../configuration/types/Country.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/watch-providers/types/WatchProviderRegion.ts
|
|
5
|
+
const _watchProviderRegionsSchema = v.object({ results: v.array(countrySchema) });
|
|
6
|
+
/**
|
|
7
|
+
* ### Watch Provider Regions
|
|
8
|
+
*
|
|
9
|
+
* The countries TMDB has watch-provider data for (`getWatchProviderRegions`).
|
|
10
|
+
*/
|
|
11
|
+
const watchProviderRegionsSchema = schema(_watchProviderRegionsSchema);
|
|
12
|
+
export { watchProviderRegionsSchema };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=WatchProviderRegion.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchProviderRegion.mjs","names":[],"sources":["../../../src/watch-providers/types/WatchProviderRegion.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { countrySchema } from \"../../configuration/types/Country.js\";\n\nconst _watchProviderRegionsSchema = v.object({\n results: v.array(countrySchema)\n});\n\nexport interface WatchProviderRegions extends v.InferOutput<\n typeof _watchProviderRegionsSchema\n> {}\n\n/**\n * ### Watch Provider Regions\n *\n * The countries TMDB has watch-provider data for (`getWatchProviderRegions`).\n */\nexport const watchProviderRegionsSchema = schema<WatchProviderRegions>(\n _watchProviderRegionsSchema\n);\n"],"mappings":";;;;AAIA,MAAM,8BAA8B,EAAE,OAAO,EAC3C,SAAS,EAAE,MAAM,aAAa,EAChC,CAAC;;;;;;AAWD,MAAa,6BAA6B,OACxC,2BACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
declare const _watchOptionSchema: v.ObjectSchema<{
|
|
3
|
+
readonly displayPriority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
4
|
+
readonly logoPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5
|
+
readonly providerId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
6
|
+
readonly providerName: v.StringSchema<undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
export interface WatchOption extends v.InferOutput<typeof _watchOptionSchema> {}
|
|
9
|
+
declare const _regionWatchProvidersSchema: v.ObjectSchema<{
|
|
10
|
+
/** TMDB's page for the title's providers in this region (the data comes from JustWatch). */
|
|
11
|
+
readonly link: v.StringSchema<undefined>;
|
|
12
|
+
/** Included with a subscription. */
|
|
13
|
+
readonly flatrate: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<WatchOption>, undefined>, undefined>;
|
|
14
|
+
readonly free: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<WatchOption>, undefined>, undefined>;
|
|
15
|
+
readonly ads: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<WatchOption>, undefined>, undefined>;
|
|
16
|
+
readonly rent: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<WatchOption>, undefined>, undefined>;
|
|
17
|
+
readonly buy: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<WatchOption>, undefined>, undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
export interface RegionWatchProviders extends v.InferOutput<typeof _regionWatchProvidersSchema> {}
|
|
20
|
+
declare const _watchProvidersSchema: v.ObjectSchema<{
|
|
21
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
22
|
+
/** Keyed by ISO 3166-1 country code. Each region lists only the monetization types it has (`flatrate`, `free`, `ads`, `rent`, `buy`). */
|
|
23
|
+
readonly results: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<RegionWatchProviders>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
export interface WatchProviders extends v.InferOutput<typeof _watchProvidersSchema> {}
|
|
26
|
+
/**
|
|
27
|
+
* ### Watch Providers
|
|
28
|
+
*
|
|
29
|
+
* Where a movie, TV series or season can be streamed, rented or bought, per country (`getMovieWatchProviders`, …).
|
|
30
|
+
*/
|
|
31
|
+
export declare const watchProvidersSchema: v.GenericSchema<WatchProviders>;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=WatchProviders.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchProviders.d.mts","names":[],"sources":["../../../src/watch-providers/types/WatchProviders.ts"],"mappings":";cAIM,oBAAkB,EAAA;;;;;;iBAOP,oBAAoB,EAAE,mBAAmB;cAMpD,6BAA2B,EAAA;;;;;;;;;;iBAWhB,6BAA6B,EAAE,mBACvC;cAGH,uBAAqB,EAAA;;;;;iBASV,uBAAuB,EAAE,mBACjC;;;;;;qBAQI,sBAAoB,EAAA,cAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/watch-providers/types/WatchProviders.ts
|
|
5
|
+
const _watchOptionSchema = v.object({
|
|
6
|
+
displayPriority: integer,
|
|
7
|
+
logoPath: v.nullable(v.string()),
|
|
8
|
+
providerId: integer,
|
|
9
|
+
providerName: v.string()
|
|
10
|
+
});
|
|
11
|
+
const watchOptions = v.exactOptional(v.array(schema(_watchOptionSchema)));
|
|
12
|
+
const _regionWatchProvidersSchema = v.object({
|
|
13
|
+
/** TMDB's page for the title's providers in this region (the data comes from JustWatch). */
|
|
14
|
+
link: v.string(),
|
|
15
|
+
/** Included with a subscription. */
|
|
16
|
+
flatrate: watchOptions,
|
|
17
|
+
free: watchOptions,
|
|
18
|
+
ads: watchOptions,
|
|
19
|
+
rent: watchOptions,
|
|
20
|
+
buy: watchOptions
|
|
21
|
+
});
|
|
22
|
+
const _watchProvidersSchema = v.object({
|
|
23
|
+
id: integer,
|
|
24
|
+
/** Keyed by ISO 3166-1 country code. Each region lists only the monetization types it has (`flatrate`, `free`, `ads`, `rent`, `buy`). */
|
|
25
|
+
results: v.record(v.string(), schema(_regionWatchProvidersSchema))
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* ### Watch Providers
|
|
29
|
+
*
|
|
30
|
+
* Where a movie, TV series or season can be streamed, rented or bought, per country (`getMovieWatchProviders`, …).
|
|
31
|
+
*/
|
|
32
|
+
const watchProvidersSchema = schema(_watchProvidersSchema);
|
|
33
|
+
export { watchProvidersSchema };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=WatchProviders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WatchProviders.mjs","names":[],"sources":["../../../src/watch-providers/types/WatchProviders.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\n\nconst _watchOptionSchema = v.object({\n displayPriority: integer,\n logoPath: v.nullable(v.string()),\n providerId: integer,\n providerName: v.string()\n});\n\nexport interface WatchOption extends v.InferOutput<typeof _watchOptionSchema> {}\n\nconst watchOptions = v.exactOptional(\n v.array(schema<WatchOption>(_watchOptionSchema))\n);\n\nconst _regionWatchProvidersSchema = v.object({\n /** TMDB's page for the title's providers in this region (the data comes from JustWatch). */\n link: v.string(),\n /** Included with a subscription. */\n flatrate: watchOptions,\n free: watchOptions,\n ads: watchOptions,\n rent: watchOptions,\n buy: watchOptions\n});\n\nexport interface RegionWatchProviders extends v.InferOutput<\n typeof _regionWatchProvidersSchema\n> {}\n\nconst _watchProvidersSchema = v.object({\n id: integer,\n /** Keyed by ISO 3166-1 country code. Each region lists only the monetization types it has (`flatrate`, `free`, `ads`, `rent`, `buy`). */\n results: v.record(\n v.string(),\n schema<RegionWatchProviders>(_regionWatchProvidersSchema)\n )\n});\n\nexport interface WatchProviders extends v.InferOutput<\n typeof _watchProvidersSchema\n> {}\n\n/**\n * ### Watch Providers\n *\n * Where a movie, TV series or season can be streamed, rented or bought, per country (`getMovieWatchProviders`, …).\n */\nexport const watchProvidersSchema = schema<WatchProviders>(\n _watchProvidersSchema\n);\n"],"mappings":";;;;AAIA,MAAM,qBAAqB,EAAE,OAAO;CAClC,iBAAiB;CACjB,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;CAC/B,YAAY;CACZ,cAAc,EAAE,OAAO;AACzB,CAAC;AAID,MAAM,eAAe,EAAE,cACrB,EAAE,MAAM,OAAoB,kBAAkB,CAAC,CACjD;AAEA,MAAM,8BAA8B,EAAE,OAAO;;CAE3C,MAAM,EAAE,OAAO;;CAEf,UAAU;CACV,MAAM;CACN,KAAK;CACL,MAAM;CACN,KAAK;AACP,CAAC;AAMD,MAAM,wBAAwB,EAAE,OAAO;CACrC,IAAI;;CAEJ,SAAS,EAAE,OACT,EAAE,OAAO,GACT,OAA6B,2BAA2B,CAC1D;AACF,CAAC;;;;;;AAWD,MAAa,uBAAuB,OAClC,qBACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RegionWatchProviders, WatchOption, WatchProviders, watchProvidersSchema } from "./WatchProviders.mjs";
|
|
2
|
+
import { WatchProvider, WatchProviderList, watchProviderListSchema } from "./WatchProviderList.mjs";
|
|
3
|
+
import { WatchProviderRegions, watchProviderRegionsSchema } from "./WatchProviderRegion.mjs";
|
|
4
|
+
export { RegionWatchProviders, WatchOption, WatchProvider, WatchProviderList, WatchProviderRegions, WatchProviders, watchProviderListSchema, watchProviderRegionsSchema, watchProvidersSchema };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { watchProvidersSchema } from "./WatchProviders.mjs";
|
|
2
|
+
import { watchProviderListSchema } from "./WatchProviderList.mjs";
|
|
3
|
+
import { watchProviderRegionsSchema } from "./WatchProviderRegion.mjs";
|
|
4
|
+
export { watchProviderListSchema, watchProviderRegionsSchema, watchProvidersSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saeris/tmdbkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "A modern, type-safe TMDB API client for Node.js and the browser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-client",
|
|
@@ -10,12 +10,48 @@
|
|
|
10
10
|
"tmdb",
|
|
11
11
|
"tv"
|
|
12
12
|
],
|
|
13
|
+
"homepage": "https://github.com/Saeris/tmdbkit#readme",
|
|
13
14
|
"license": "MIT",
|
|
14
15
|
"author": "Drake Costa <drake@saeris.gg> (https://saeris.gg)",
|
|
15
|
-
"homepage": "https://github.com/Saeris/tmdbkit#readme",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "https://github.com/Saeris/tmdbkit.git",
|
|
19
19
|
"directory": "packages/tmdbkit"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/**/*"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"imports": {
|
|
27
|
+
"#mocks": "./src/__mocks__/mockSchema.mock.ts",
|
|
28
|
+
"#fixtures": "./src/__mocks__/fixtures.ts"
|
|
29
|
+
},
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"@saeris/tmdbkit/source": "./src/index.ts",
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"import": "./dist/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./*": {
|
|
37
|
+
"@saeris/tmdbkit/source": "./src/*.ts",
|
|
38
|
+
"types": "./dist/*.d.mts",
|
|
39
|
+
"import": "./dist/*.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"registry": "https://registry.npmjs.org"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=22"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@saeris/tmdbkit-test-utils": "^0.0.0",
|
|
52
|
+
"valibot": "^1.4.2"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"valibot": ">= 1.4.0"
|
|
20
56
|
}
|
|
21
|
-
}
|
|
57
|
+
}
|