@saeris/tmdbkit 0.0.0-stage → 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 +389 -2
- 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 +54 -3
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { tmdb } from "./TmdbSession.mjs";
|
|
2
|
+
import { isObject } from "../utils/isObject.mjs";
|
|
3
|
+
import { toCamelKeys } from "../utils/toCamelKeys.mjs";
|
|
4
|
+
import { toSnakeKeys } from "../utils/toSnakeKeys.mjs";
|
|
5
|
+
// src/requests/request.ts
|
|
6
|
+
/**
|
|
7
|
+
* A structured error thrown when the TMDB API responds with a non-2xx status. TMDB reports failures as `{ status_code, status_message }` in the body; `statusCode` is `0` when the body didn't carry one.
|
|
8
|
+
*
|
|
9
|
+
* The message names the method and path but never the query string, which can hold a v3 `api_key`.
|
|
10
|
+
*/
|
|
11
|
+
var TmdbApiError = class extends Error {
|
|
12
|
+
status;
|
|
13
|
+
statusCode;
|
|
14
|
+
statusMessage;
|
|
15
|
+
constructor(status, statusCode, statusMessage, request) {
|
|
16
|
+
const where = request ? ` for ${request.method} ${request.path}` : ``;
|
|
17
|
+
super(`TMDB API error ${status} (${statusCode})${where}: ${statusMessage}`);
|
|
18
|
+
this.name = `TmdbApiError`;
|
|
19
|
+
this.status = status;
|
|
20
|
+
this.statusCode = statusCode;
|
|
21
|
+
this.statusMessage = statusMessage;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const request = async (resource, method = `GET`, body, options) => {
|
|
25
|
+
if (!tmdb.hasAuth) tmdb.resolveAuth();
|
|
26
|
+
/**
|
|
27
|
+
* Serialize the body. TMDB expects snake_case keys, so the (camelCase) request object is converted before it is stringified.
|
|
28
|
+
*/
|
|
29
|
+
const serializeBody = () => {
|
|
30
|
+
if (!body) return body;
|
|
31
|
+
try {
|
|
32
|
+
return JSON.stringify(toSnakeKeys(body));
|
|
33
|
+
} catch (cause) {
|
|
34
|
+
throw new Error(`Failed to serialize request body!`, { cause });
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const res = await tmdb.fetch(resource, {
|
|
38
|
+
method,
|
|
39
|
+
body: serializeBody(),
|
|
40
|
+
signal: options?.signal
|
|
41
|
+
});
|
|
42
|
+
if (!res.ok) {
|
|
43
|
+
let statusCode = 0;
|
|
44
|
+
let statusMessage = res.statusText;
|
|
45
|
+
try {
|
|
46
|
+
const err = await res.json();
|
|
47
|
+
if (isObject(err)) {
|
|
48
|
+
if (typeof err.status_code === `number`) statusCode = err.status_code;
|
|
49
|
+
if (typeof err.status_message === `string`) statusMessage = err.status_message;
|
|
50
|
+
}
|
|
51
|
+
} catch {}
|
|
52
|
+
throw new TmdbApiError(res.status, statusCode, statusMessage, {
|
|
53
|
+
method,
|
|
54
|
+
path: resource.pathname
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
if (res.status === 204) return;
|
|
58
|
+
return toCamelKeys(await res.json());
|
|
59
|
+
};
|
|
60
|
+
export { TmdbApiError, request };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=request.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.mjs","names":[],"sources":["../../src/requests/request.ts"],"sourcesContent":["import { tmdb } from \"./TmdbSession.js\";\nimport { isObject } from \"../utils/isObject.js\";\nimport { toCamelKeys } from \"../utils/toCamelKeys.js\";\nimport { toSnakeKeys } from \"../utils/toSnakeKeys.js\";\n\nexport type RequestBody = object | null | undefined;\n\n/**\n * The HTTP methods the TMDB REST API uses, and the only ones the typed helpers in `methods.ts` emit. Most of TMDB is read-only `GET`; the account, list, rating and session endpoints also `POST` and `DELETE`.\n */\nexport type RequestMethod = `GET` | `POST` | `PUT` | `PATCH` | `DELETE`;\n\n/**\n * Per-call options a {@link Fetcher} accepts as its last argument and forwards to the request layer.\n */\nexport interface RequestOptions {\n /** Abort the request: while it waits for a rate-limit slot, while it is in flight, or while it backs off before a retry. */\n signal?: AbortSignal;\n}\n\n/**\n * A structured error thrown when the TMDB API responds with a non-2xx status. TMDB reports failures as `{ status_code, status_message }` in the body; `statusCode` is `0` when the body didn't carry one.\n *\n * The message names the method and path but never the query string, which can hold a v3 `api_key`.\n */\nexport class TmdbApiError extends Error {\n readonly status: number;\n readonly statusCode: number;\n readonly statusMessage: string;\n\n constructor(\n status: number,\n statusCode: number,\n statusMessage: string,\n request?: { method: RequestMethod; path: string }\n ) {\n const where = request ? ` for ${request.method} ${request.path}` : ``;\n super(`TMDB API error ${status} (${statusCode})${where}: ${statusMessage}`);\n this.name = `TmdbApiError`;\n this.status = status;\n this.statusCode = statusCode;\n this.statusMessage = statusMessage;\n }\n}\n\nexport const request = async <T>(\n resource: URL,\n method: RequestMethod = `GET`,\n body?: RequestBody,\n options?: RequestOptions\n): Promise<T> => {\n // Fail early with a clear message if no credentials are configured.\n if (!tmdb.hasAuth) {\n tmdb.resolveAuth(); // throws the canonical \"No TMDB credentials\" error\n }\n\n /**\n * Serialize the body. TMDB expects snake_case keys, so the (camelCase) request object is converted before it is stringified.\n */\n const serializeBody = (): string | null | undefined => {\n if (!body) return body;\n try {\n return JSON.stringify(toSnakeKeys(body));\n } catch (cause) {\n throw new Error(`Failed to serialize request body!`, { cause });\n }\n };\n\n const res = await tmdb.fetch(resource, {\n method,\n body: serializeBody(),\n signal: options?.signal\n });\n\n if (!res.ok) {\n let statusCode = 0;\n let statusMessage = res.statusText;\n try {\n const err: unknown = await res.json();\n if (isObject(err)) {\n if (typeof err.status_code === `number`) statusCode = err.status_code;\n if (typeof err.status_message === `string`) {\n statusMessage = err.status_message;\n }\n }\n } catch {\n // Body was not JSON — fall back to the status text.\n }\n throw new TmdbApiError(res.status, statusCode, statusMessage, {\n method,\n path: resource.pathname\n });\n }\n\n // Return `void` on `204 No Content` responses.\n if (res.status === 204) {\n // @ts-expect-error\n return;\n }\n\n // TMDB is snake_case on the wire; convert to camelCase at the boundary so the rest of the app is camelCase.\n return toCamelKeys(await res.json());\n};\n"],"mappings":";;;;;;;;;;AAyBA,IAAa,eAAb,cAAkC,MAAM;CACtC;CACA;CACA;CAEA,YACE,QACA,YACA,eACA,SACA;EACA,MAAM,QAAQ,UAAU,QAAQ,QAAQ,OAAO,GAAG,QAAQ,SAAS;EACnE,MAAM,kBAAkB,OAAO,IAAI,WAAW,GAAG,MAAM,IAAI,eAAe;EAC1E,KAAK,OAAO;EACZ,KAAK,SAAS;EACd,KAAK,aAAa;EAClB,KAAK,gBAAgB;CACvB;AACF;AAEA,MAAa,UAAU,OACrB,UACA,SAAwB,OACxB,MACA,YACe;CAEf,IAAI,CAAC,KAAK,SACR,KAAK,YAAY;;;;CAMnB,MAAM,sBAAiD;EACrD,IAAI,CAAC,MAAM,OAAO;EAClB,IAAI;GACF,OAAO,KAAK,UAAU,YAAY,IAAI,CAAC;EACzC,SAAS,OAAO;GACd,MAAM,IAAI,MAAM,qCAAqC,EAAE,MAAM,CAAC;EAChE;CACF;CAEA,MAAM,MAAM,MAAM,KAAK,MAAM,UAAU;EACrC;EACA,MAAM,cAAc;EACpB,QAAQ,SAAS;CACnB,CAAC;CAED,IAAI,CAAC,IAAI,IAAI;EACX,IAAI,aAAa;EACjB,IAAI,gBAAgB,IAAI;EACxB,IAAI;GACF,MAAM,MAAe,MAAM,IAAI,KAAK;GACpC,IAAI,SAAS,GAAG,GAAG;IACjB,IAAI,OAAO,IAAI,gBAAgB,UAAU,aAAa,IAAI;IAC1D,IAAI,OAAO,IAAI,mBAAmB,UAChC,gBAAgB,IAAI;GAExB;EACF,QAAQ,CAER;EACA,MAAM,IAAI,aAAa,IAAI,QAAQ,YAAY,eAAe;GAC5D;GACA,MAAM,SAAS;EACjB,CAAC;CACH;CAGA,IAAI,IAAI,WAAW,KAEjB;CAIF,OAAO,YAAY,MAAM,IAAI,KAAK,CAAC;AACrC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Fetcher } from "./methods.mjs";
|
|
2
|
+
import { GenericSchema, GenericSchemaAsync } from "valibot";
|
|
3
|
+
/**
|
|
4
|
+
* Given a {@link Fetcher} and its input and output Valibot schemas, return a new {@link Fetcher} that validates its input before the request is sent and its result before it resolves. Useful wherever the input comes from outside your app, or wherever you want a TMDB response shape change to fail loudly at the boundary.
|
|
5
|
+
*
|
|
6
|
+
* The resolved value is the fetched value itself (as in discordkit): tmdbkit's schemas have no transforms, so the parsed and fetched values are the same.
|
|
7
|
+
*
|
|
8
|
+
* @__NO_SIDE_EFFECTS__
|
|
9
|
+
*/
|
|
10
|
+
export declare const toValidated: <S extends GenericSchema | GenericSchemaAsync | null = null, R = void>(fn: Fetcher<S, R>, input?: S | null, output?: GenericSchema<unknown, R> | GenericSchemaAsync<unknown, R>) => Fetcher<S, R>;
|
|
11
|
+
//# sourceMappingURL=toValidated.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toValidated.d.mts","names":[],"sources":["../../src/requests/toValidated.ts"],"mappings":";;;;;;;;;qBAgBa,cACX,UAAU,gBAAgB,kCAC1B,UAEA,IAAI,QAAQ,GAAG,IACf,QAAQ,UACR,SAAS,uBAAuB,KAAK,4BAA4B,OAChE,QAAQ,GAAG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isOfKind, safeParseAsync, summarize } from "valibot";
|
|
2
|
+
// src/requests/toValidated.ts
|
|
3
|
+
/**
|
|
4
|
+
* Given a {@link Fetcher} and its input and output Valibot schemas, return a new {@link Fetcher} that validates its input before the request is sent and its result before it resolves. Useful wherever the input comes from outside your app, or wherever you want a TMDB response shape change to fail loudly at the boundary.
|
|
5
|
+
*
|
|
6
|
+
* The resolved value is the fetched value itself (as in discordkit): tmdbkit's schemas have no transforms, so the parsed and fetched values are the same.
|
|
7
|
+
*
|
|
8
|
+
* @__NO_SIDE_EFFECTS__
|
|
9
|
+
*/
|
|
10
|
+
const toValidated = (fn, input, output) => new Proxy(fn, { async apply(target, _, args) {
|
|
11
|
+
if (input && isOfKind(`schema`, input)) {
|
|
12
|
+
const { issues } = await safeParseAsync(input, args[0]);
|
|
13
|
+
if (issues) throw new Error(`Failed to parse input schema: ${input.reference.name}\n\n${summarize(issues)}`);
|
|
14
|
+
}
|
|
15
|
+
const result = await target(...args);
|
|
16
|
+
if (output && isOfKind(`schema`, output)) {
|
|
17
|
+
const { issues } = await safeParseAsync(output, result);
|
|
18
|
+
if (issues) throw new Error(`Failed to parse output schema: ${output.reference.name}\n\n${summarize(issues)}`);
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
} });
|
|
22
|
+
export { toValidated };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=toValidated.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toValidated.mjs","names":["call"],"sources":["../../src/requests/toValidated.ts"],"sourcesContent":["import {\n type GenericSchema,\n type GenericSchemaAsync,\n isOfKind,\n safeParseAsync,\n summarize\n} from \"valibot\";\nimport type { Fetcher } from \"./methods.js\";\n\n/**\n * Given a {@link Fetcher} and its input and output Valibot schemas, return a new {@link Fetcher} that validates its input before the request is sent and its result before it resolves. Useful wherever the input comes from outside your app, or wherever you want a TMDB response shape change to fail loudly at the boundary.\n *\n * The resolved value is the fetched value itself (as in discordkit): tmdbkit's schemas have no transforms, so the parsed and fetched values are the same.\n *\n * @__NO_SIDE_EFFECTS__\n */\nexport const toValidated = <\n S extends GenericSchema | GenericSchemaAsync | null = null,\n R = void\n>(\n fn: Fetcher<S, R>,\n input?: S | null,\n output?: GenericSchema<unknown, R> | GenericSchemaAsync<unknown, R>\n): Fetcher<S, R> =>\n new Proxy<Fetcher<S, R>>(fn, {\n async apply(target, _, args: unknown[]): Promise<R> {\n // Validate the fetcher args before fetching. Fetchers without an input schema take only the options.\n if (input && isOfKind(`schema`, input)) {\n const { issues } = await safeParseAsync(input, args[0]);\n if (issues) {\n throw new Error(\n `Failed to parse input schema: ${input.reference.name}\\n\\n${summarize(issues)}`\n );\n }\n }\n\n // Forward every argument, including the per-call options (signal). `Fetcher<S, R>` is a conditional type, so the proxy target can't be called without erasing it first; the result is `R` by the fetcher's own signature.\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const call = target as unknown as (\n ...rest: unknown[]\n ) => Promise<unknown>;\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const result = (await call(...args)) as R;\n\n // Validate the result of the fetch call before returning.\n if (output && isOfKind(`schema`, output)) {\n const { issues } = await safeParseAsync(output, result);\n if (issues) {\n throw new Error(\n `Failed to parse output schema: ${output.reference.name}\\n\\n${summarize(issues)}`\n );\n }\n }\n\n return result;\n }\n });\n"],"mappings":";;;;;;;;;AAgBA,MAAa,eAIX,IACA,OACA,WAEA,IAAI,MAAqB,IAAI,EAC3B,MAAM,MAAM,QAAQ,GAAG,MAA6B;CAElD,IAAI,SAAS,SAAS,UAAU,KAAK,GAAG;EACtC,MAAM,EAAE,WAAW,MAAM,eAAe,OAAO,KAAK,EAAE;EACtD,IAAI,QACF,MAAM,IAAI,MACR,iCAAiC,MAAM,UAAU,KAAK,MAAM,UAAU,MAAM,GAC9E;CAEJ;CAQA,MAAM,SAAU,MAAMA,OAAK,GAAG,IAAI;CAGlC,IAAI,UAAU,SAAS,UAAU,MAAM,GAAG;EACxC,MAAM,EAAE,WAAW,MAAM,eAAe,QAAQ,MAAM;EACtD,IAAI,QACF,MAAM,IAAI,MACR,kCAAkC,OAAO,UAAU,KAAK,MAAM,UAAU,MAAM,GAChF;CAEJ;CAEA,OAAO;AACT,EACF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { ReviewDetails } from "./types/Review.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const getReviewSchema: v.ObjectSchema<{
|
|
5
|
+
readonly reviewId: v.StringSchema<undefined>;
|
|
6
|
+
}, undefined>;
|
|
7
|
+
/**
|
|
8
|
+
* ### [Details](https://developer.themoviedb.org/reference/review-details)
|
|
9
|
+
*
|
|
10
|
+
* **GET** `/review/{review_id}`
|
|
11
|
+
*/
|
|
12
|
+
export declare const getReview: Fetcher<typeof getReviewSchema, ReviewDetails>;
|
|
13
|
+
//# sourceMappingURL=getReview.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReview.d.mts","names":[],"sources":["../../src/review/getReview.ts"],"mappings":";;;qBAIa,iBAAe,EAAA;;;;;;;;qBASf,WAAW,eAAe,iBAAiB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
// src/review/getReview.ts
|
|
4
|
+
const getReviewSchema = v.object({ reviewId: v.string() });
|
|
5
|
+
/**
|
|
6
|
+
* ### [Details](https://developer.themoviedb.org/reference/review-details)
|
|
7
|
+
*
|
|
8
|
+
* **GET** `/review/{review_id}`
|
|
9
|
+
*/
|
|
10
|
+
const getReview = async ({ reviewId }, options) => get(`/review/${encodeURIComponent(reviewId)}`, void 0, options);
|
|
11
|
+
export { getReview, getReviewSchema };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=getReview.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReview.mjs","names":[],"sources":["../../src/review/getReview.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport type { ReviewDetails } from \"./types/Review.js\";\n\nexport const getReviewSchema = v.object({\n reviewId: v.string()\n});\n\n/**\n * ### [Details](https://developer.themoviedb.org/reference/review-details)\n *\n * **GET** `/review/{review_id}`\n */\nexport const getReview: Fetcher<typeof getReviewSchema, ReviewDetails> = async (\n { reviewId },\n options\n) => get(`/review/${encodeURIComponent(reviewId)}`, undefined, options);\n"],"mappings":";;;AAIA,MAAa,kBAAkB,EAAE,OAAO,EACtC,UAAU,EAAE,OAAO,EACrB,CAAC;;;;;;AAOD,MAAa,YAA4D,OACvE,EAAE,YACF,YACG,IAAI,WAAW,mBAAmB,QAAQ,KAAK,KAAA,GAAW,OAAO"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Review, ReviewDetails, Reviews, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema } from "./types/Review.mjs";
|
|
2
|
+
import { getReview, getReviewSchema } from "./getReview.mjs";
|
|
3
|
+
import "./types/index.mjs";
|
|
4
|
+
export { Review, ReviewDetails, Reviews, getReview, getReviewSchema, reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const reviewEntries: {
|
|
3
|
+
readonly id: v.StringSchema<undefined>;
|
|
4
|
+
readonly author: v.StringSchema<undefined>;
|
|
5
|
+
readonly authorDetails: v.ObjectSchema<{
|
|
6
|
+
/** `""` when the author hasn't set one. */
|
|
7
|
+
readonly name: v.StringSchema<undefined>;
|
|
8
|
+
readonly username: v.StringSchema<undefined>;
|
|
9
|
+
readonly avatarPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
/** Out of 10, or `null` when the review has no rating. */
|
|
11
|
+
readonly rating: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
readonly content: v.StringSchema<undefined>;
|
|
14
|
+
/** ISO 8601 timestamp. */
|
|
15
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
16
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
17
|
+
readonly url: v.StringSchema<undefined>;
|
|
18
|
+
};
|
|
19
|
+
declare const _reviewSchema: v.ObjectSchema<{
|
|
20
|
+
readonly id: v.StringSchema<undefined>;
|
|
21
|
+
readonly author: v.StringSchema<undefined>;
|
|
22
|
+
readonly authorDetails: v.ObjectSchema<{
|
|
23
|
+
/** `""` when the author hasn't set one. */
|
|
24
|
+
readonly name: v.StringSchema<undefined>;
|
|
25
|
+
readonly username: v.StringSchema<undefined>;
|
|
26
|
+
readonly avatarPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
/** Out of 10, or `null` when the review has no rating. */
|
|
28
|
+
readonly rating: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly content: v.StringSchema<undefined>;
|
|
31
|
+
/** ISO 8601 timestamp. */
|
|
32
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
33
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
34
|
+
readonly url: v.StringSchema<undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
export interface Review extends v.InferOutput<typeof _reviewSchema> {}
|
|
37
|
+
/**
|
|
38
|
+
* ### Review
|
|
39
|
+
*
|
|
40
|
+
* A user review of a movie or TV series.
|
|
41
|
+
*/
|
|
42
|
+
export declare const reviewSchema: v.GenericSchema<Review>;
|
|
43
|
+
declare const _reviewsSchema: v.ObjectSchema<{
|
|
44
|
+
readonly results: v.ArraySchema<v.GenericSchema<Review>, undefined>;
|
|
45
|
+
readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
46
|
+
readonly totalPages: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
47
|
+
readonly totalResults: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
48
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
export interface Reviews extends v.InferOutput<typeof _reviewsSchema> {}
|
|
51
|
+
/** A page of a movie's or TV series' reviews (`getMovieReviews`, `getTvSeriesReviews`). */
|
|
52
|
+
export declare const reviewsSchema: v.GenericSchema<Reviews>;
|
|
53
|
+
declare const _reviewDetailsSchema: v.ObjectSchema<{
|
|
54
|
+
readonly iso_639_1: v.StringSchema<undefined>;
|
|
55
|
+
readonly mediaId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
56
|
+
readonly mediaTitle: v.StringSchema<undefined>;
|
|
57
|
+
/** `movie` or `tv`. */
|
|
58
|
+
readonly mediaType: v.StringSchema<undefined>;
|
|
59
|
+
readonly id: v.StringSchema<undefined>;
|
|
60
|
+
readonly author: v.StringSchema<undefined>;
|
|
61
|
+
readonly authorDetails: v.ObjectSchema<{
|
|
62
|
+
/** `""` when the author hasn't set one. */
|
|
63
|
+
readonly name: v.StringSchema<undefined>;
|
|
64
|
+
readonly username: v.StringSchema<undefined>;
|
|
65
|
+
readonly avatarPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
66
|
+
/** Out of 10, or `null` when the review has no rating. */
|
|
67
|
+
readonly rating: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
readonly content: v.StringSchema<undefined>;
|
|
70
|
+
/** ISO 8601 timestamp. */
|
|
71
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
72
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
73
|
+
readonly url: v.StringSchema<undefined>;
|
|
74
|
+
}, undefined>;
|
|
75
|
+
export interface ReviewDetails extends v.InferOutput<typeof _reviewDetailsSchema> {}
|
|
76
|
+
/** One review with the title it's about (`getReview`). */
|
|
77
|
+
export declare const reviewDetailsSchema: v.GenericSchema<ReviewDetails>;
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=Review.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Review.d.mts","names":[],"sources":["../../../src/review/types/Review.ts"],"mappings":";qBAKa;;;;;;;;;;;;;;;;;cAkBP,eAAa,EAAA;;;;;;;;;;;;;;;;;iBAEF,eAAe,EAAE,mBAAmB;;;;;;qBAOxC,cAAY,EAAA,cAAA;cAEnB,gBAAc,EAAA;;;;;;;iBAMH,gBAAgB,EAAE,mBAAmB;;qBAGzC,eAAa,EAAA,cAAA;cAEpB,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;iBAST,sBAAsB,EAAE,mBAChC;;qBAII,qBAAmB,EAAA,cAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import { pageEntries } from "../../types/PagedResults.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
// src/review/types/Review.ts
|
|
6
|
+
const reviewEntries = {
|
|
7
|
+
id: v.string(),
|
|
8
|
+
author: v.string(),
|
|
9
|
+
authorDetails: v.object({
|
|
10
|
+
/** `""` when the author hasn't set one. */
|
|
11
|
+
name: v.string(),
|
|
12
|
+
username: v.string(),
|
|
13
|
+
avatarPath: v.nullable(v.string()),
|
|
14
|
+
/** Out of 10, or `null` when the review has no rating. */
|
|
15
|
+
rating: v.nullable(v.number())
|
|
16
|
+
}),
|
|
17
|
+
content: v.string(),
|
|
18
|
+
/** ISO 8601 timestamp. */
|
|
19
|
+
createdAt: v.string(),
|
|
20
|
+
updatedAt: v.string(),
|
|
21
|
+
url: v.string()
|
|
22
|
+
};
|
|
23
|
+
const _reviewSchema = v.object(reviewEntries);
|
|
24
|
+
/**
|
|
25
|
+
* ### Review
|
|
26
|
+
*
|
|
27
|
+
* A user review of a movie or TV series.
|
|
28
|
+
*/
|
|
29
|
+
const reviewSchema = schema(_reviewSchema);
|
|
30
|
+
const _reviewsSchema = v.object({
|
|
31
|
+
id: integer,
|
|
32
|
+
...pageEntries,
|
|
33
|
+
results: v.array(reviewSchema)
|
|
34
|
+
});
|
|
35
|
+
/** A page of a movie's or TV series' reviews (`getMovieReviews`, `getTvSeriesReviews`). */
|
|
36
|
+
const reviewsSchema = schema(_reviewsSchema);
|
|
37
|
+
const _reviewDetailsSchema = v.object({
|
|
38
|
+
...reviewEntries,
|
|
39
|
+
iso_639_1: v.string(),
|
|
40
|
+
mediaId: integer,
|
|
41
|
+
mediaTitle: v.string(),
|
|
42
|
+
/** `movie` or `tv`. */
|
|
43
|
+
mediaType: v.string()
|
|
44
|
+
});
|
|
45
|
+
/** One review with the title it's about (`getReview`). */
|
|
46
|
+
const reviewDetailsSchema = schema(_reviewDetailsSchema);
|
|
47
|
+
export { reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=Review.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Review.mjs","names":[],"sources":["../../../src/review/types/Review.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\nimport { pageEntries } from \"../../types/PagedResults.js\";\n\nexport const reviewEntries = {\n id: v.string(),\n author: v.string(),\n authorDetails: v.object({\n /** `\"\"` when the author hasn't set one. */\n name: v.string(),\n username: v.string(),\n avatarPath: v.nullable(v.string()),\n /** Out of 10, or `null` when the review has no rating. */\n rating: v.nullable(v.number())\n }),\n content: v.string(),\n /** ISO 8601 timestamp. */\n createdAt: v.string(),\n updatedAt: v.string(),\n url: v.string()\n} as const;\n\nconst _reviewSchema = v.object(reviewEntries);\n\nexport interface Review extends v.InferOutput<typeof _reviewSchema> {}\n\n/**\n * ### Review\n *\n * A user review of a movie or TV series.\n */\nexport const reviewSchema = schema<Review>(_reviewSchema);\n\nconst _reviewsSchema = v.object({\n id: integer,\n ...pageEntries,\n results: v.array(reviewSchema)\n});\n\nexport interface Reviews extends v.InferOutput<typeof _reviewsSchema> {}\n\n/** A page of a movie's or TV series' reviews (`getMovieReviews`, `getTvSeriesReviews`). */\nexport const reviewsSchema = schema<Reviews>(_reviewsSchema);\n\nconst _reviewDetailsSchema = v.object({\n ...reviewEntries,\n iso_639_1: v.string(),\n mediaId: integer,\n mediaTitle: v.string(),\n /** `movie` or `tv`. */\n mediaType: v.string()\n});\n\nexport interface ReviewDetails extends v.InferOutput<\n typeof _reviewDetailsSchema\n> {}\n\n/** One review with the title it's about (`getReview`). */\nexport const reviewDetailsSchema = schema<ReviewDetails>(_reviewDetailsSchema);\n"],"mappings":";;;;;AAKA,MAAa,gBAAgB;CAC3B,IAAI,EAAE,OAAO;CACb,QAAQ,EAAE,OAAO;CACjB,eAAe,EAAE,OAAO;;EAEtB,MAAM,EAAE,OAAO;EACf,UAAU,EAAE,OAAO;EACnB,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC;;EAEjC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;CAC/B,CAAC;CACD,SAAS,EAAE,OAAO;;CAElB,WAAW,EAAE,OAAO;CACpB,WAAW,EAAE,OAAO;CACpB,KAAK,EAAE,OAAO;AAChB;AAEA,MAAM,gBAAgB,EAAE,OAAO,aAAa;;;;;;AAS5C,MAAa,eAAe,OAAe,aAAa;AAExD,MAAM,iBAAiB,EAAE,OAAO;CAC9B,IAAI;CACJ,GAAG;CACH,SAAS,EAAE,MAAM,YAAY;AAC/B,CAAC;;AAKD,MAAa,gBAAgB,OAAgB,cAAc;AAE3D,MAAM,uBAAuB,EAAE,OAAO;CACpC,GAAG;CACH,WAAW,EAAE,OAAO;CACpB,SAAS;CACT,YAAY,EAAE,OAAO;;CAErB,WAAW,EAAE,OAAO;AACtB,CAAC;;AAOD,MAAa,sBAAsB,OAAsB,oBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { reviewDetailsSchema, reviewEntries, reviewSchema, reviewsSchema } from "./Review.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { searchCollections, searchCollectionsSchema } from "./searchCollections.mjs";
|
|
2
|
+
import { searchCompanies, searchCompaniesSchema } from "./searchCompanies.mjs";
|
|
3
|
+
import { searchKeywords, searchKeywordsSchema } from "./searchKeywords.mjs";
|
|
4
|
+
import { searchMovies, searchMoviesSchema } from "./searchMovies.mjs";
|
|
5
|
+
import { searchMulti, searchMultiSchema } from "./searchMulti.mjs";
|
|
6
|
+
import { searchPeople, searchPeopleSchema } from "./searchPeople.mjs";
|
|
7
|
+
import { searchTvSeries, searchTvSeriesSchema } from "./searchTvSeries.mjs";
|
|
8
|
+
export { searchCollections, searchCollectionsSchema, searchCompanies, searchCompaniesSchema, searchKeywords, searchKeywordsSchema, searchMovies, searchMoviesSchema, searchMulti, searchMultiSchema, searchPeople, searchPeopleSchema, searchTvSeries, searchTvSeriesSchema };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { searchCollections, searchCollectionsSchema } from "./searchCollections.mjs";
|
|
2
|
+
import { searchCompanies, searchCompaniesSchema } from "./searchCompanies.mjs";
|
|
3
|
+
import { searchKeywords, searchKeywordsSchema } from "./searchKeywords.mjs";
|
|
4
|
+
import { searchMovies, searchMoviesSchema } from "./searchMovies.mjs";
|
|
5
|
+
import { searchMulti, searchMultiSchema } from "./searchMulti.mjs";
|
|
6
|
+
import { searchPeople, searchPeopleSchema } from "./searchPeople.mjs";
|
|
7
|
+
import { searchTvSeries, searchTvSeriesSchema } from "./searchTvSeries.mjs";
|
|
8
|
+
export { searchCollections, searchCollectionsSchema, searchCompanies, searchCompaniesSchema, searchKeywords, searchKeywordsSchema, searchMovies, searchMoviesSchema, searchMulti, searchMultiSchema, searchPeople, searchPeopleSchema, searchTvSeries, searchTvSeriesSchema };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { PagedCollectionResults } from "../collection/types/CollectionListItem.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const searchCollectionsSchema: v.ObjectSchema<{
|
|
5
|
+
readonly query: v.StringSchema<undefined>;
|
|
6
|
+
readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
|
|
7
|
+
readonly includeAdult: v.BooleanSchema<undefined>;
|
|
8
|
+
readonly language: v.StringSchema<undefined>;
|
|
9
|
+
readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
10
|
+
readonly region: v.StringSchema<undefined>;
|
|
11
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
12
|
+
readonly entries: {
|
|
13
|
+
readonly includeAdult: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
14
|
+
readonly language: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
16
|
+
readonly region: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
};
|
|
18
|
+
readonly "~standard": v.StandardProps<{
|
|
19
|
+
includeAdult?: boolean | undefined;
|
|
20
|
+
language?: string | undefined;
|
|
21
|
+
page?: number | undefined;
|
|
22
|
+
region?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
includeAdult?: boolean | undefined;
|
|
25
|
+
language?: string | undefined;
|
|
26
|
+
page?: number | undefined;
|
|
27
|
+
region?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
30
|
+
includeAdult?: boolean | undefined;
|
|
31
|
+
language?: string | undefined;
|
|
32
|
+
page?: number | undefined;
|
|
33
|
+
region?: string | undefined;
|
|
34
|
+
}, v.StringIssue | v.ObjectIssue | v.BooleanIssue | v.NumberIssue | v.IntegerIssue<number>>;
|
|
35
|
+
readonly "~types"?: {
|
|
36
|
+
readonly input: {
|
|
37
|
+
includeAdult?: boolean | undefined;
|
|
38
|
+
language?: string | undefined;
|
|
39
|
+
page?: number | undefined;
|
|
40
|
+
region?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
readonly output: {
|
|
43
|
+
includeAdult?: boolean | undefined;
|
|
44
|
+
language?: string | undefined;
|
|
45
|
+
page?: number | undefined;
|
|
46
|
+
region?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
readonly issue: v.StringIssue | v.ObjectIssue | v.BooleanIssue | v.NumberIssue | v.IntegerIssue<number>;
|
|
49
|
+
} | undefined;
|
|
50
|
+
}, undefined>;
|
|
51
|
+
}, undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* ### [Collection](https://developer.themoviedb.org/reference/search-collection)
|
|
54
|
+
*
|
|
55
|
+
* **GET** `/search/collection`
|
|
56
|
+
*/
|
|
57
|
+
export declare const searchCollections: Fetcher<typeof searchCollectionsSchema, PagedCollectionResults>;
|
|
58
|
+
//# sourceMappingURL=searchCollections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchCollections.d.mts","names":[],"sources":["../../src/search/searchCollections.ts"],"mappings":";;;qBAKa,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAmBvB,mBAAmB,eACvB,yBACP"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/search/searchCollections.ts
|
|
5
|
+
const searchCollectionsSchema = v.object({
|
|
6
|
+
query: v.string(),
|
|
7
|
+
params: v.exactOptional(v.partial(v.object({
|
|
8
|
+
includeAdult: v.boolean(),
|
|
9
|
+
language: v.string(),
|
|
10
|
+
page: integer,
|
|
11
|
+
region: v.string()
|
|
12
|
+
})))
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* ### [Collection](https://developer.themoviedb.org/reference/search-collection)
|
|
16
|
+
*
|
|
17
|
+
* **GET** `/search/collection`
|
|
18
|
+
*/
|
|
19
|
+
const searchCollections = async ({ query, params }, options) => get(`/search/collection`, {
|
|
20
|
+
...params,
|
|
21
|
+
query
|
|
22
|
+
}, options);
|
|
23
|
+
export { searchCollections, searchCollectionsSchema };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=searchCollections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchCollections.mjs","names":[],"sources":["../../src/search/searchCollections.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport { integer } from \"../validations/integer.js\";\nimport type { PagedCollectionResults } from \"../collection/types/CollectionListItem.js\";\n\nexport const searchCollectionsSchema = v.object({\n query: v.string(),\n params: v.exactOptional(\n v.partial(\n v.object({\n includeAdult: v.boolean(),\n language: v.string(),\n page: integer,\n region: v.string()\n })\n )\n )\n});\n\n/**\n * ### [Collection](https://developer.themoviedb.org/reference/search-collection)\n *\n * **GET** `/search/collection`\n */\nexport const searchCollections: Fetcher<\n typeof searchCollectionsSchema,\n PagedCollectionResults\n> = async ({ query, params }, options) =>\n get(`/search/collection`, { ...params, query }, options);\n"],"mappings":";;;;AAKA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO;CAChB,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO;EACP,cAAc,EAAE,QAAQ;EACxB,UAAU,EAAE,OAAO;EACnB,MAAM;EACN,QAAQ,EAAE,OAAO;CACnB,CAAC,CACH,CACF;AACF,CAAC;;;;;;AAOD,MAAa,oBAGT,OAAO,EAAE,OAAO,UAAU,YAC5B,IAAI,sBAAsB;CAAE,GAAG;CAAQ;AAAM,GAAG,OAAO"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { PagedCompanyResults } from "../company/types/CompanyListItem.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const searchCompaniesSchema: v.ObjectSchema<{
|
|
5
|
+
readonly query: v.StringSchema<undefined>;
|
|
6
|
+
readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
|
|
7
|
+
readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
8
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
9
|
+
readonly entries: {
|
|
10
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
11
|
+
};
|
|
12
|
+
readonly "~standard": v.StandardProps<{
|
|
13
|
+
page?: number | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
18
|
+
page?: number | undefined;
|
|
19
|
+
}, v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>>;
|
|
20
|
+
readonly "~types"?: {
|
|
21
|
+
readonly input: {
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
readonly output: {
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly issue: v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>;
|
|
28
|
+
} | undefined;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* ### [Company](https://developer.themoviedb.org/reference/search-company)
|
|
33
|
+
*
|
|
34
|
+
* **GET** `/search/company`
|
|
35
|
+
*/
|
|
36
|
+
export declare const searchCompanies: Fetcher<typeof searchCompaniesSchema, PagedCompanyResults>;
|
|
37
|
+
//# sourceMappingURL=searchCompanies.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchCompanies.d.mts","names":[],"sources":["../../src/search/searchCompanies.ts"],"mappings":";;;qBAKa,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgBrB,iBAAiB,eACrB,uBACP"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/search/searchCompanies.ts
|
|
5
|
+
const searchCompaniesSchema = v.object({
|
|
6
|
+
query: v.string(),
|
|
7
|
+
params: v.exactOptional(v.partial(v.object({ page: integer })))
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* ### [Company](https://developer.themoviedb.org/reference/search-company)
|
|
11
|
+
*
|
|
12
|
+
* **GET** `/search/company`
|
|
13
|
+
*/
|
|
14
|
+
const searchCompanies = async ({ query, params }, options) => get(`/search/company`, {
|
|
15
|
+
...params,
|
|
16
|
+
query
|
|
17
|
+
}, options);
|
|
18
|
+
export { searchCompanies, searchCompaniesSchema };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=searchCompanies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchCompanies.mjs","names":[],"sources":["../../src/search/searchCompanies.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport { integer } from \"../validations/integer.js\";\nimport type { PagedCompanyResults } from \"../company/types/CompanyListItem.js\";\n\nexport const searchCompaniesSchema = v.object({\n query: v.string(),\n params: v.exactOptional(\n v.partial(\n v.object({\n page: integer\n })\n )\n )\n});\n\n/**\n * ### [Company](https://developer.themoviedb.org/reference/search-company)\n *\n * **GET** `/search/company`\n */\nexport const searchCompanies: Fetcher<\n typeof searchCompaniesSchema,\n PagedCompanyResults\n> = async ({ query, params }, options) =>\n get(`/search/company`, { ...params, query }, options);\n"],"mappings":";;;;AAKA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,OAAO,EAAE,OAAO;CAChB,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO,EACP,MAAM,QACR,CAAC,CACH,CACF;AACF,CAAC;;;;;;AAOD,MAAa,kBAGT,OAAO,EAAE,OAAO,UAAU,YAC5B,IAAI,mBAAmB;CAAE,GAAG;CAAQ;AAAM,GAAG,OAAO"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Fetcher } from "../requests/methods.mjs";
|
|
2
|
+
import { PagedKeywordResults } from "../types/Keyword.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export declare const searchKeywordsSchema: v.ObjectSchema<{
|
|
5
|
+
readonly query: v.StringSchema<undefined>;
|
|
6
|
+
readonly params: v.ExactOptionalSchema<Omit<v.ObjectSchema<{
|
|
7
|
+
readonly page: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
8
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
9
|
+
readonly entries: {
|
|
10
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
11
|
+
};
|
|
12
|
+
readonly "~standard": v.StandardProps<{
|
|
13
|
+
page?: number | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
18
|
+
page?: number | undefined;
|
|
19
|
+
}, v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>>;
|
|
20
|
+
readonly "~types"?: {
|
|
21
|
+
readonly input: {
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
readonly output: {
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly issue: v.ObjectIssue | v.NumberIssue | v.IntegerIssue<number>;
|
|
28
|
+
} | undefined;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* ### [Keyword](https://developer.themoviedb.org/reference/search-keyword)
|
|
33
|
+
*
|
|
34
|
+
* **GET** `/search/keyword`
|
|
35
|
+
*/
|
|
36
|
+
export declare const searchKeywords: Fetcher<typeof searchKeywordsSchema, PagedKeywordResults>;
|
|
37
|
+
//# sourceMappingURL=searchKeywords.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchKeywords.d.mts","names":[],"sources":["../../src/search/searchKeywords.ts"],"mappings":";;;qBAKa,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgBpB,gBAAgB,eACpB,sBACP"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { get } from "../requests/methods.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/search/searchKeywords.ts
|
|
5
|
+
const searchKeywordsSchema = v.object({
|
|
6
|
+
query: v.string(),
|
|
7
|
+
params: v.exactOptional(v.partial(v.object({ page: integer })))
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* ### [Keyword](https://developer.themoviedb.org/reference/search-keyword)
|
|
11
|
+
*
|
|
12
|
+
* **GET** `/search/keyword`
|
|
13
|
+
*/
|
|
14
|
+
const searchKeywords = async ({ query, params }, options) => get(`/search/keyword`, {
|
|
15
|
+
...params,
|
|
16
|
+
query
|
|
17
|
+
}, options);
|
|
18
|
+
export { searchKeywords, searchKeywordsSchema };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=searchKeywords.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchKeywords.mjs","names":[],"sources":["../../src/search/searchKeywords.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { get, type Fetcher } from \"../requests/methods.js\";\nimport { integer } from \"../validations/integer.js\";\nimport type { PagedKeywordResults } from \"../types/Keyword.js\";\n\nexport const searchKeywordsSchema = v.object({\n query: v.string(),\n params: v.exactOptional(\n v.partial(\n v.object({\n page: integer\n })\n )\n )\n});\n\n/**\n * ### [Keyword](https://developer.themoviedb.org/reference/search-keyword)\n *\n * **GET** `/search/keyword`\n */\nexport const searchKeywords: Fetcher<\n typeof searchKeywordsSchema,\n PagedKeywordResults\n> = async ({ query, params }, options) =>\n get(`/search/keyword`, { ...params, query }, options);\n"],"mappings":";;;;AAKA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,EAAE,OAAO;CAChB,QAAQ,EAAE,cACR,EAAE,QACA,EAAE,OAAO,EACP,MAAM,QACR,CAAC,CACH,CACF;AACF,CAAC;;;;;;AAOD,MAAa,iBAGT,OAAO,EAAE,OAAO,UAAU,YAC5B,IAAI,mBAAmB;CAAE,GAAG;CAAQ;AAAM,GAAG,OAAO"}
|