@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,51 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
export declare const videoEntries: {
|
|
3
|
+
readonly id: v.StringSchema<undefined>;
|
|
4
|
+
readonly iso_3166_1: v.StringSchema<undefined>;
|
|
5
|
+
readonly iso_639_1: v.StringSchema<undefined>;
|
|
6
|
+
/** The video's id on `site` (for YouTube, the `v=` value). */
|
|
7
|
+
readonly key: v.StringSchema<undefined>;
|
|
8
|
+
readonly name: v.StringSchema<undefined>;
|
|
9
|
+
readonly official: v.BooleanSchema<undefined>;
|
|
10
|
+
/** ISO 8601 timestamp. */
|
|
11
|
+
readonly publishedAt: v.StringSchema<undefined>;
|
|
12
|
+
/** Where the video is hosted, e.g. `YouTube`. */
|
|
13
|
+
readonly site: v.StringSchema<undefined>;
|
|
14
|
+
/** Vertical resolution, e.g. `1080`. */
|
|
15
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
16
|
+
/** `Trailer`, `Teaser`, `Clip`, `Featurette`, `Behind the Scenes`, … */
|
|
17
|
+
readonly type: v.StringSchema<undefined>;
|
|
18
|
+
};
|
|
19
|
+
declare const _videoSchema: v.ObjectSchema<{
|
|
20
|
+
readonly id: v.StringSchema<undefined>;
|
|
21
|
+
readonly iso_3166_1: v.StringSchema<undefined>;
|
|
22
|
+
readonly iso_639_1: v.StringSchema<undefined>;
|
|
23
|
+
/** The video's id on `site` (for YouTube, the `v=` value). */
|
|
24
|
+
readonly key: v.StringSchema<undefined>;
|
|
25
|
+
readonly name: v.StringSchema<undefined>;
|
|
26
|
+
readonly official: v.BooleanSchema<undefined>;
|
|
27
|
+
/** ISO 8601 timestamp. */
|
|
28
|
+
readonly publishedAt: v.StringSchema<undefined>;
|
|
29
|
+
/** Where the video is hosted, e.g. `YouTube`. */
|
|
30
|
+
readonly site: v.StringSchema<undefined>;
|
|
31
|
+
/** Vertical resolution, e.g. `1080`. */
|
|
32
|
+
readonly size: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
33
|
+
/** `Trailer`, `Teaser`, `Clip`, `Featurette`, `Behind the Scenes`, … */
|
|
34
|
+
readonly type: v.StringSchema<undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
export interface Video extends v.InferOutput<typeof _videoSchema> {}
|
|
37
|
+
/**
|
|
38
|
+
* ### Video
|
|
39
|
+
*
|
|
40
|
+
* A trailer, teaser, clip or featurette hosted elsewhere (usually YouTube).
|
|
41
|
+
*/
|
|
42
|
+
export declare const videoSchema: v.GenericSchema<Video>;
|
|
43
|
+
declare const _videosSchema: v.ObjectSchema<{
|
|
44
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
45
|
+
readonly results: v.ArraySchema<v.GenericSchema<Video>, undefined>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
export interface Videos extends v.InferOutput<typeof _videosSchema> {}
|
|
48
|
+
/** The videos of a movie, TV series, season or episode. */
|
|
49
|
+
export declare const videosSchema: v.GenericSchema<Videos>;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=Video.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Video.d.mts","names":[],"sources":["../../src/types/Video.ts"],"mappings":";qBAIa;;;;;;;;;;;;;;;;;cAkBP,cAAY,EAAA;;;;;;;;;;;;;;;;;iBAED,cAAc,EAAE,mBAAmB;;;;;;qBAOvC,aAAW,EAAA,cAAA;cAElB,eAAa,EAAA;;;;iBAEF,eAAe,EAAE,mBAAmB;;qBAGxC,cAAY,EAAA,cAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { schema } from "../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/types/Video.ts
|
|
5
|
+
const videoEntries = {
|
|
6
|
+
id: v.string(),
|
|
7
|
+
iso_3166_1: v.string(),
|
|
8
|
+
iso_639_1: v.string(),
|
|
9
|
+
/** The video's id on `site` (for YouTube, the `v=` value). */
|
|
10
|
+
key: v.string(),
|
|
11
|
+
name: v.string(),
|
|
12
|
+
official: v.boolean(),
|
|
13
|
+
/** ISO 8601 timestamp. */
|
|
14
|
+
publishedAt: v.string(),
|
|
15
|
+
/** Where the video is hosted, e.g. `YouTube`. */
|
|
16
|
+
site: v.string(),
|
|
17
|
+
/** Vertical resolution, e.g. `1080`. */
|
|
18
|
+
size: integer,
|
|
19
|
+
/** `Trailer`, `Teaser`, `Clip`, `Featurette`, `Behind the Scenes`, … */
|
|
20
|
+
type: v.string()
|
|
21
|
+
};
|
|
22
|
+
const _videoSchema = v.object(videoEntries);
|
|
23
|
+
/**
|
|
24
|
+
* ### Video
|
|
25
|
+
*
|
|
26
|
+
* A trailer, teaser, clip or featurette hosted elsewhere (usually YouTube).
|
|
27
|
+
*/
|
|
28
|
+
const videoSchema = schema(_videoSchema);
|
|
29
|
+
const _videosSchema = v.object({
|
|
30
|
+
id: integer,
|
|
31
|
+
results: v.array(videoSchema)
|
|
32
|
+
});
|
|
33
|
+
/** The videos of a movie, TV series, season or episode. */
|
|
34
|
+
const videosSchema = schema(_videosSchema);
|
|
35
|
+
export { videoEntries, videoSchema, videosSchema };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=Video.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Video.mjs","names":[],"sources":["../../src/types/Video.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../validations/schema.js\";\nimport { integer } from \"../validations/integer.js\";\n\nexport const videoEntries = {\n id: v.string(),\n iso_3166_1: v.string(),\n iso_639_1: v.string(),\n /** The video's id on `site` (for YouTube, the `v=` value). */\n key: v.string(),\n name: v.string(),\n official: v.boolean(),\n /** ISO 8601 timestamp. */\n publishedAt: v.string(),\n /** Where the video is hosted, e.g. `YouTube`. */\n site: v.string(),\n /** Vertical resolution, e.g. `1080`. */\n size: integer,\n /** `Trailer`, `Teaser`, `Clip`, `Featurette`, `Behind the Scenes`, … */\n type: v.string()\n} as const;\n\nconst _videoSchema = v.object(videoEntries);\n\nexport interface Video extends v.InferOutput<typeof _videoSchema> {}\n\n/**\n * ### Video\n *\n * A trailer, teaser, clip or featurette hosted elsewhere (usually YouTube).\n */\nexport const videoSchema = schema<Video>(_videoSchema);\n\nconst _videosSchema = v.object({ id: integer, results: v.array(videoSchema) });\n\nexport interface Videos extends v.InferOutput<typeof _videosSchema> {}\n\n/** The videos of a movie, TV series, season or episode. */\nexport const videosSchema = schema<Videos>(_videosSchema);\n"],"mappings":";;;;AAIA,MAAa,eAAe;CAC1B,IAAI,EAAE,OAAO;CACb,YAAY,EAAE,OAAO;CACrB,WAAW,EAAE,OAAO;;CAEpB,KAAK,EAAE,OAAO;CACd,MAAM,EAAE,OAAO;CACf,UAAU,EAAE,QAAQ;;CAEpB,aAAa,EAAE,OAAO;;CAEtB,MAAM,EAAE,OAAO;;CAEf,MAAM;;CAEN,MAAM,EAAE,OAAO;AACjB;AAEA,MAAM,eAAe,EAAE,OAAO,YAAY;;;;;;AAS1C,MAAa,cAAc,OAAc,YAAY;AAErD,MAAM,gBAAgB,EAAE,OAAO;CAAE,IAAI;CAAS,SAAS,EAAE,MAAM,WAAW;AAAE,CAAC;;AAK7E,MAAa,eAAe,OAAe,aAAa"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Image, LogoImage, LogoImages, MediaImages, PosterImages, ProfileImages, StillImages, imageEntries, imageSchema, logoImageEntries, logoImageSchema, logoImagesSchema, mediaImagesSchema, posterImagesSchema, profileImagesSchema, stillImagesSchema } from "./Images.mjs";
|
|
2
|
+
import { Translation, Translations, translation, translations } from "./Translation.mjs";
|
|
3
|
+
import { PagedResults, pageEntries, pagedResults } from "./PagedResults.mjs";
|
|
4
|
+
import { AlternativeNames, alternativeNamesSchema } from "./AlternativeNames.mjs";
|
|
5
|
+
import { ProductionCompany, productionCompanyEntries, productionCompanySchema } from "./ProductionCompany.mjs";
|
|
6
|
+
import { SpokenLanguage, spokenLanguageEntries, spokenLanguageSchema } from "./SpokenLanguage.mjs";
|
|
7
|
+
import { Keyword, PagedKeywordResults, keywordEntries, keywordSchema, pagedKeywordResultsSchema } from "./Keyword.mjs";
|
|
8
|
+
import { ChangeList, ChangedItem, changeListSchema } from "./ChangeList.mjs";
|
|
9
|
+
import { Changes, changeItemEntries, changesSchema } from "./Changes.mjs";
|
|
10
|
+
import { Video, Videos, videoEntries, videoSchema, videosSchema } from "./Video.mjs";
|
|
11
|
+
import { MediaListItem, PagedMediaResults, mediaListItemSchema, pagedMediaResultsSchema } from "./MediaListItem.mjs";
|
|
12
|
+
import { CastCredit, CrewCredit, castCreditEntries, castCreditSchema, creditPersonEntries, crewCreditEntries, crewCreditSchema } from "./Credit.mjs";
|
|
13
|
+
import { Genre, genreEntries, genreSchema } from "./Genre.mjs";
|
|
14
|
+
import { ProductionCountry, productionCountryEntries, productionCountrySchema } from "./ProductionCountry.mjs";
|
|
15
|
+
export { AlternativeNames, CastCredit, ChangeList, ChangedItem, Changes, CrewCredit, Genre, Image, Keyword, LogoImage, LogoImages, MediaImages, MediaListItem, PagedKeywordResults, PagedMediaResults, PagedResults, PosterImages, ProductionCompany, ProductionCountry, ProfileImages, SpokenLanguage, StillImages, Translation, Translations, Video, Videos, alternativeNamesSchema, castCreditEntries, castCreditSchema, changeItemEntries, changeListSchema, changesSchema, creditPersonEntries, crewCreditEntries, crewCreditSchema, genreEntries, genreSchema, imageEntries, imageSchema, keywordEntries, keywordSchema, logoImageEntries, logoImageSchema, logoImagesSchema, mediaImagesSchema, mediaListItemSchema, pageEntries, pagedKeywordResultsSchema, pagedMediaResultsSchema, pagedResults, posterImagesSchema, productionCompanyEntries, productionCompanySchema, productionCountryEntries, productionCountrySchema, profileImagesSchema, spokenLanguageEntries, spokenLanguageSchema, stillImagesSchema, translation, translations, videoEntries, videoSchema, videosSchema };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { pageEntries, pagedResults } from "./PagedResults.mjs";
|
|
2
|
+
import { translation, translations } from "./Translation.mjs";
|
|
3
|
+
import { productionCompanyEntries, productionCompanySchema } from "./ProductionCompany.mjs";
|
|
4
|
+
import { spokenLanguageEntries, spokenLanguageSchema } from "./SpokenLanguage.mjs";
|
|
5
|
+
import { genreEntries, genreSchema } from "./Genre.mjs";
|
|
6
|
+
import { castCreditEntries, castCreditSchema, creditPersonEntries, crewCreditEntries, crewCreditSchema } from "./Credit.mjs";
|
|
7
|
+
import { changeItemEntries, changesSchema } from "./Changes.mjs";
|
|
8
|
+
import { imageEntries, imageSchema, logoImageEntries, logoImageSchema, logoImagesSchema, mediaImagesSchema, posterImagesSchema, profileImagesSchema, stillImagesSchema } from "./Images.mjs";
|
|
9
|
+
import { productionCountryEntries, productionCountrySchema } from "./ProductionCountry.mjs";
|
|
10
|
+
import { videoEntries, videoSchema, videosSchema } from "./Video.mjs";
|
|
11
|
+
import { keywordEntries, keywordSchema, pagedKeywordResultsSchema } from "./Keyword.mjs";
|
|
12
|
+
import { alternativeNamesSchema } from "./AlternativeNames.mjs";
|
|
13
|
+
import { changeListSchema } from "./ChangeList.mjs";
|
|
14
|
+
import { mediaListItemSchema, pagedMediaResultsSchema } from "./MediaListItem.mjs";
|
|
15
|
+
export { alternativeNamesSchema, castCreditEntries, castCreditSchema, changeItemEntries, changeListSchema, changesSchema, creditPersonEntries, crewCreditEntries, crewCreditSchema, genreEntries, genreSchema, imageEntries, imageSchema, keywordEntries, keywordSchema, logoImageEntries, logoImageSchema, logoImagesSchema, mediaImagesSchema, mediaListItemSchema, pageEntries, pagedKeywordResultsSchema, pagedMediaResultsSchema, pagedResults, posterImagesSchema, productionCompanyEntries, productionCompanySchema, productionCountryEntries, productionCountrySchema, profileImagesSchema, spokenLanguageEntries, spokenLanguageSchema, stillImagesSchema, translation, translations, videoEntries, videoSchema, videosSchema };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Maybe<T> = T | null | undefined;
|
|
2
|
+
/**
|
|
3
|
+
* Used to test whether a `Maybe` typed value is `null` or `undefined`.
|
|
4
|
+
*
|
|
5
|
+
* When called, the given value's type is narrowed to `NonNullable<T>`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isNonNullable: <T extends Maybe<unknown>>(val?: T) => val is NonNullable<T>;
|
|
8
|
+
//# sourceMappingURL=isNonNullable.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNonNullable.d.mts","names":[],"sources":["../../src/utils/isNonNullable.ts"],"mappings":"A,YAAY,MAAM,KAAK;;;;;;qBAOV,gBAAiB,UAAU,gBACtC,MAAM,MACL,OAAO,YAAY"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/utils/isNonNullable.ts
|
|
2
|
+
/**
|
|
3
|
+
* Used to test whether a `Maybe` typed value is `null` or `undefined`.
|
|
4
|
+
*
|
|
5
|
+
* When called, the given value's type is narrowed to `NonNullable<T>`.
|
|
6
|
+
*/
|
|
7
|
+
const isNonNullable = (val) => typeof val !== `undefined` && val !== null;
|
|
8
|
+
export { isNonNullable };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=isNonNullable.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNonNullable.mjs","names":[],"sources":["../../src/utils/isNonNullable.ts"],"sourcesContent":["export type Maybe<T> = T | null | undefined;\n\n/**\n * Used to test whether a `Maybe` typed value is `null` or `undefined`.\n *\n * When called, the given value's type is narrowed to `NonNullable<T>`.\n */\nexport const isNonNullable = <T extends Maybe<unknown>>(\n val?: T\n): val is NonNullable<T> => typeof val !== `undefined` && val !== null;\n"],"mappings":";;;;;;AAOA,MAAa,iBACX,QAC0B,OAAO,QAAQ,eAAe,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isObject.d.mts","names":[],"sources":["../../src/utils/isObject.ts"],"mappings":"A,qBAAa,WAAY,iBAAe,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isObject.mjs","names":[],"sources":["../../src/utils/isObject.ts"],"sourcesContent":["export const isObject = (val: unknown): val is Record<string, unknown> =>\n Boolean(val) && typeof val === `object` && !Array.isArray(val);\n"],"mappings":";AAAA,MAAa,YAAY,QACvB,QAAQ,GAAG,KAAK,OAAO,QAAQ,YAAY,CAAC,MAAM,QAAQ,GAAG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sleep for a given number of milliseconds. When a `signal` is given, the sleep rejects as soon as it aborts, so a cancelled request doesn't sit out a rate-limit or retry wait.
|
|
3
|
+
*/
|
|
4
|
+
export declare const sleep: (ms: number, signal?: AbortSignal) => Promise<void>;
|
|
5
|
+
//# sourceMappingURL=sleep.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.d.mts","names":[],"sources":["../../src/utils/sleep.ts"],"mappings":";;;qBAgBa,QAAe,YAAY,SAAS,gBAAc"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// src/utils/sleep.ts
|
|
2
|
+
/**
|
|
3
|
+
* The error a sleep rejects with when its signal aborts: the signal's own reason when that is an `Error` (by default a `DOMException` named `AbortError`), so callers can tell an abort from a failure by `name`.
|
|
4
|
+
*/
|
|
5
|
+
const abortError = (signal) => {
|
|
6
|
+
const reason = signal.reason;
|
|
7
|
+
return reason instanceof Error ? reason : new DOMException(typeof reason === `string` ? reason : `This operation was aborted`, `AbortError`);
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Sleep for a given number of milliseconds. When a `signal` is given, the sleep rejects as soon as it aborts, so a cancelled request doesn't sit out a rate-limit or retry wait.
|
|
11
|
+
*/
|
|
12
|
+
const sleep = async (ms, signal) => new Promise((resolve, reject) => {
|
|
13
|
+
if (signal?.aborted) {
|
|
14
|
+
reject(abortError(signal));
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const onAbort = () => {
|
|
18
|
+
clearTimeout(timer);
|
|
19
|
+
if (signal) reject(abortError(signal));
|
|
20
|
+
};
|
|
21
|
+
const timer = setTimeout(() => {
|
|
22
|
+
signal?.removeEventListener(`abort`, onAbort);
|
|
23
|
+
resolve();
|
|
24
|
+
}, Math.max(0, ms));
|
|
25
|
+
signal?.addEventListener(`abort`, onAbort, { once: true });
|
|
26
|
+
});
|
|
27
|
+
export { sleep };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=sleep.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.mjs","names":[],"sources":["../../src/utils/sleep.ts"],"sourcesContent":["/**\n * The error a sleep rejects with when its signal aborts: the signal's own reason when that is an `Error` (by default a `DOMException` named `AbortError`), so callers can tell an abort from a failure by `name`.\n */\nconst abortError = (signal: AbortSignal): Error => {\n const reason: unknown = signal.reason;\n return reason instanceof Error\n ? reason\n : new DOMException(\n typeof reason === `string` ? reason : `This operation was aborted`,\n `AbortError`\n );\n};\n\n/**\n * Sleep for a given number of milliseconds. When a `signal` is given, the sleep rejects as soon as it aborts, so a cancelled request doesn't sit out a rate-limit or retry wait.\n */\nexport const sleep = async (ms: number, signal?: AbortSignal): Promise<void> =>\n new Promise((resolve, reject) => {\n if (signal?.aborted) {\n reject(abortError(signal));\n return;\n }\n const onAbort = (): void => {\n clearTimeout(timer);\n if (signal) reject(abortError(signal));\n };\n const timer = setTimeout(\n () => {\n signal?.removeEventListener(`abort`, onAbort);\n resolve();\n },\n Math.max(0, ms)\n );\n signal?.addEventListener(`abort`, onAbort, { once: true });\n });\n"],"mappings":";;;;AAGA,MAAM,cAAc,WAA+B;CACjD,MAAM,SAAkB,OAAO;CAC/B,OAAO,kBAAkB,QACrB,SACA,IAAI,aACF,OAAO,WAAW,WAAW,SAAS,8BACtC,YACF;AACN;;;;AAKA,MAAa,QAAQ,OAAO,IAAY,WACtC,IAAI,SAAS,SAAS,WAAW;CAC/B,IAAI,QAAQ,SAAS;EACnB,OAAO,WAAW,MAAM,CAAC;EACzB;CACF;CACA,MAAM,gBAAsB;EAC1B,aAAa,KAAK;EAClB,IAAI,QAAQ,OAAO,WAAW,MAAM,CAAC;CACvC;CACA,MAAM,QAAQ,iBACN;EACJ,QAAQ,oBAAoB,SAAS,OAAO;EAC5C,QAAQ;CACV,GACA,KAAK,IAAI,GAAG,EAAE,CAChB;CACA,QAAQ,iBAAiB,SAAS,SAAS,EAAE,MAAM,KAAK,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* camelCase a TMDB key: each `_` followed by a letter is dropped and the letter capitalised (`poster_path` → `posterPath`). Two kinds of key are left alone, by design (tmdbkit's plan, 2026-10-28):
|
|
3
|
+
*
|
|
4
|
+
* - an `_` before a digit, so ISO-code keys keep TMDB's documented names (`iso_3166_1`, not `iso31661`);
|
|
5
|
+
* - a leading `_`, which marks an internal key rather than a word break (`_id` stays `_id`).
|
|
6
|
+
*/
|
|
7
|
+
export declare const toCamelCase: (str: string) => string;
|
|
8
|
+
//# sourceMappingURL=toCamelCase.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toCamelCase.d.mts","names":[],"sources":["../../src/utils/toCamelCase.ts"],"mappings":";;;;;;qBAMa,cAAe"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/utils/toCamelCase.ts
|
|
2
|
+
/**
|
|
3
|
+
* camelCase a TMDB key: each `_` followed by a letter is dropped and the letter capitalised (`poster_path` → `posterPath`). Two kinds of key are left alone, by design (tmdbkit's plan, 2026-10-28):
|
|
4
|
+
*
|
|
5
|
+
* - an `_` before a digit, so ISO-code keys keep TMDB's documented names (`iso_3166_1`, not `iso31661`);
|
|
6
|
+
* - a leading `_`, which marks an internal key rather than a word break (`_id` stays `_id`).
|
|
7
|
+
*/
|
|
8
|
+
const toCamelCase = (str) => str.replace(/(?<!^)_(?<char>[a-zA-Z])/g, (g) => g[1].toUpperCase());
|
|
9
|
+
export { toCamelCase };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=toCamelCase.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toCamelCase.mjs","names":[],"sources":["../../src/utils/toCamelCase.ts"],"sourcesContent":["/**\n * camelCase a TMDB key: each `_` followed by a letter is dropped and the letter capitalised (`poster_path` → `posterPath`). Two kinds of key are left alone, by design (tmdbkit's plan, 2026-10-28):\n *\n * - an `_` before a digit, so ISO-code keys keep TMDB's documented names (`iso_3166_1`, not `iso31661`);\n * - a leading `_`, which marks an internal key rather than a word break (`_id` stays `_id`).\n */\nexport const toCamelCase = (str: string): string =>\n str.replace(/(?<!^)_(?<char>[a-zA-Z])/g, (g) => g[1].toUpperCase());\n"],"mappings":";;;;;;;AAMA,MAAa,eAAe,QAC1B,IAAI,QAAQ,8BAA8B,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Whether a one-character string is a letter (it has a case). */
|
|
2
|
+
type IsLetter<C extends string> = Lowercase<C> extends Uppercase<C> ? false : true;
|
|
3
|
+
/** {@link CamelCase} after any leading `_`: an `_` before a letter is dropped and the letter capitalised; an `_` before anything else stays. */
|
|
4
|
+
type CamelTail<S extends string> = S extends `${infer Head}_${infer Tail}` ? Tail extends `${infer First}${string}` ? IsLetter<First> extends true ? `${Head}${CamelTail<Capitalize<Tail>>}` : `${Head}_${CamelTail<Tail>}` : S : S;
|
|
5
|
+
/**
|
|
6
|
+
* Convert a `snake_case` string-literal type to `camelCase`, matching exactly what {@link toCamelCase} does at runtime: `poster_path` → `posterPath`, while `iso_3166_1` and `_id` are unchanged (see `toCamelCase` for why).
|
|
7
|
+
*/
|
|
8
|
+
type CamelCase<S extends string> = S extends `_${infer Rest}` ? `_${CamelTail<Rest>}` : CamelTail<S>;
|
|
9
|
+
/**
|
|
10
|
+
* Recursively camel-case the keys of an object/array type. Mirrors
|
|
11
|
+
* {@link toCamelKeys}'s runtime: arrays map element-wise, plain objects remap
|
|
12
|
+
* their keys, and leaf values pass through unchanged.
|
|
13
|
+
*/
|
|
14
|
+
export type CamelKeys<T> = T extends ReadonlyArray<infer U> ? Array<CamelKeys<U>> : T extends object ? { [K in keyof T as K extends string ? CamelCase<K> : K]: CamelKeys<T[K]>; } : T;
|
|
15
|
+
export declare const toCamelKeys: <T extends object>(o: T) => CamelKeys<T>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=toCamelKeys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toCamelKeys.d.mts","names":[],"sources":["../../src/utils/toCamelKeys.ts"],"mappings":";KAIK,SAAS,oBACZ,UAAU,WAAW,UAAU;;KAG5B,UAAU,oBAAoB,mBAAmB,cAAc,SAChE,sBAAsB,mBACpB,SAAS,yBACJ,OAAO,UAAU,WAAW,cAC5B,QAAQ,UAAU,UACvB,IACF;;;;KAKC,UAAU,oBAAoB,oBAAoB,aAC/C,UAAU,UACd,UAAU;;;;;;YAOF,UAAU,KACpB,UAAU,oBAAoB,KAC1B,MAAM,UAAU,MAChB,sBAEK,WAAW,KAAK,mBAAmB,UAAU,KAAK,IAAI,UACrD,EAAE,SAGN;qBAgBK,cAAe,kBAAkB,GAAG,MAAI,UAAU"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isObject } from "./isObject.mjs";
|
|
2
|
+
import { toCamelCase } from "./toCamelCase.mjs";
|
|
3
|
+
// src/utils/toCamelKeys.ts
|
|
4
|
+
const convert = (value) => {
|
|
5
|
+
if (Array.isArray(value)) return value.map(convert);
|
|
6
|
+
else if (isObject(value)) {
|
|
7
|
+
const result = {};
|
|
8
|
+
for (const [key, val] of Object.entries(value)) result[toCamelCase(key)] = convert(val);
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
};
|
|
13
|
+
const toCamelKeys = (o) => {
|
|
14
|
+
return convert(o);
|
|
15
|
+
};
|
|
16
|
+
export { toCamelKeys };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=toCamelKeys.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toCamelKeys.mjs","names":[],"sources":["../../src/utils/toCamelKeys.ts"],"sourcesContent":["import { isObject } from \"./isObject.js\";\nimport { toCamelCase } from \"./toCamelCase.js\";\n\n/** Whether a one-character string is a letter (it has a case). */\ntype IsLetter<C extends string> =\n Lowercase<C> extends Uppercase<C> ? false : true;\n\n/** {@link CamelCase} after any leading `_`: an `_` before a letter is dropped and the letter capitalised; an `_` before anything else stays. */\ntype CamelTail<S extends string> = S extends `${infer Head}_${infer Tail}`\n ? Tail extends `${infer First}${string}`\n ? IsLetter<First> extends true\n ? `${Head}${CamelTail<Capitalize<Tail>>}`\n : `${Head}_${CamelTail<Tail>}`\n : S\n : S;\n\n/**\n * Convert a `snake_case` string-literal type to `camelCase`, matching exactly what {@link toCamelCase} does at runtime: `poster_path` → `posterPath`, while `iso_3166_1` and `_id` are unchanged (see `toCamelCase` for why).\n */\ntype CamelCase<S extends string> = S extends `_${infer Rest}`\n ? `_${CamelTail<Rest>}`\n : CamelTail<S>;\n\n/**\n * Recursively camel-case the keys of an object/array type. Mirrors\n * {@link toCamelKeys}'s runtime: arrays map element-wise, plain objects remap\n * their keys, and leaf values pass through unchanged.\n */\nexport type CamelKeys<T> =\n T extends ReadonlyArray<infer U>\n ? Array<CamelKeys<U>>\n : T extends object\n ? {\n [K in keyof T as K extends string ? CamelCase<K> : K]: CamelKeys<\n T[K]\n >;\n }\n : T;\n\nconst convert = (value: unknown): unknown => {\n if (Array.isArray(value)) {\n return value.map(convert);\n } else if (isObject(value)) {\n const result: Record<string, unknown> = {};\n for (const [key, val] of Object.entries(value)) {\n result[toCamelCase(key)] = convert(val);\n }\n return result;\n }\n\n return value;\n};\n\nexport const toCamelKeys = <T extends object>(o: T): CamelKeys<T> => {\n // Recursive key remapping can't be proven at the type level.\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return convert(o) as CamelKeys<T>;\n};\n"],"mappings":";;;AAuCA,MAAM,WAAW,UAA4B;CAC3C,IAAI,MAAM,QAAQ,KAAK,GACrB,OAAO,MAAM,IAAI,OAAO;MACnB,IAAI,SAAS,KAAK,GAAG;EAC1B,MAAM,SAAkC,CAAC;EACzC,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,QAAQ,KAAK,GAC3C,OAAO,YAAY,GAAG,KAAK,QAAQ,GAAG;EAExC,OAAO;CACT;CAEA,OAAO;AACT;AAEA,MAAa,eAAiC,MAAuB;CAGnE,OAAO,QAAQ,CAAC;AAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toSnakeCase.d.mts","names":[],"sources":["../../src/utils/toSnakeCase.ts"],"mappings":"A,qBAAa,cAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toSnakeCase.mjs","names":[],"sources":["../../src/utils/toSnakeCase.ts"],"sourcesContent":["export const toSnakeCase = (str: string): string =>\n str\n .replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`)\n .substring(str.slice(0, 1).match(/(?<char>[A-Z])/g) ? 1 : 0);\n"],"mappings":";AAAA,MAAa,eAAe,QAC1B,IACG,QAAQ,WAAW,WAAW,IAAI,OAAO,YAAY,GAAG,CAAC,CACzD,UAAU,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,iBAAiB,IAAI,IAAI,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** The uppercase ASCII letters, for the camel→snake split. */
|
|
2
|
+
type Upper = `A` | `B` | `C` | `D` | `E` | `F` | `G` | `H` | `I` | `J` | `K` | `L` | `M` | `N` | `O` | `P` | `Q` | `R` | `S` | `T` | `U` | `V` | `W` | `X` | `Y` | `Z`;
|
|
3
|
+
/**
|
|
4
|
+
* Walk a `camelCase` literal, inserting `_` before each uppercase letter and
|
|
5
|
+
* lowercasing it — matching {@link toSnakeCase}'s runtime. `Started` tracks
|
|
6
|
+
* whether we've emitted any character yet, so a leading capital (e.g. `Foo`)
|
|
7
|
+
* doesn't get a leading underscore (→ `foo`, not `_foo`).
|
|
8
|
+
*/
|
|
9
|
+
type SnakeWalk<S extends string, Started extends boolean = false> = S extends `${infer Head}${infer Tail}` ? Head extends Upper ? `${Started extends true ? `_` : ``}${Lowercase<Head>}${SnakeWalk<Tail, true>}` : `${Head}${SnakeWalk<Tail, true>}` : S;
|
|
10
|
+
/** Convert a `camelCase` string-literal type to `snake_case`. Self-contained;
|
|
11
|
+
* mirrors {@link toSnakeCase} (the only transform we apply to API keys). */
|
|
12
|
+
type SnakeCase<S extends string> = SnakeWalk<S>;
|
|
13
|
+
/**
|
|
14
|
+
* Recursively snake-case the keys of an object/array type. Mirrors
|
|
15
|
+
* {@link toSnakeKeys}'s runtime. The only inputs are plain nested TMDB API
|
|
16
|
+
* JSON, so no Set/tuple/options handling is needed.
|
|
17
|
+
*/
|
|
18
|
+
export type SnakeKeys<T> = T extends ReadonlyArray<infer U> ? Array<SnakeKeys<U>> : T extends object ? { [K in keyof T as K extends string ? SnakeCase<K> : K]: SnakeKeys<T[K]>; } : T;
|
|
19
|
+
export declare const toSnakeKeys: <T extends object>(o: T) => SnakeKeys<T>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=toSnakeKeys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toSnakeKeys.d.mts","names":[],"sources":["../../src/utils/toSnakeKeys.ts"],"mappings":";KAIK;;;;;;;KAkCA,UACH,kBACA,mCACE,mBAAmB,aAAa,SAChC,aAAa,WACR,kCAAkC,UAAU,QAAQ,UAAU,mBAC9D,OAAO,UAAU,gBACtB;;;KAIC,UAAU,oBAAoB,UAAU;;;;;;YAOjC,UAAU,KACpB,UAAU,oBAAoB,KAC1B,MAAM,UAAU,MAChB,sBAEK,WAAW,KAAK,mBAAmB,UAAU,KAAK,IAAI,UACrD,EAAE,SAGN;qBAgBK,cAAe,kBAAkB,GAAG,MAAI,UAAU"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { toSnakeCase } from "./toSnakeCase.mjs";
|
|
2
|
+
import { isObject } from "./isObject.mjs";
|
|
3
|
+
// src/utils/toSnakeKeys.ts
|
|
4
|
+
const convert = (value) => {
|
|
5
|
+
if (Array.isArray(value)) return value.map(convert);
|
|
6
|
+
else if (isObject(value)) {
|
|
7
|
+
const result = {};
|
|
8
|
+
for (const [key, val] of Object.entries(value)) result[toSnakeCase(key)] = convert(val);
|
|
9
|
+
return result;
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
};
|
|
13
|
+
const toSnakeKeys = (o) => {
|
|
14
|
+
return convert(o);
|
|
15
|
+
};
|
|
16
|
+
export { toSnakeKeys };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=toSnakeKeys.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toSnakeKeys.mjs","names":[],"sources":["../../src/utils/toSnakeKeys.ts"],"sourcesContent":["import { isObject } from \"./isObject.js\";\nimport { toSnakeCase } from \"./toSnakeCase.js\";\n\n/** The uppercase ASCII letters, for the camel→snake split. */\ntype Upper =\n | `A`\n | `B`\n | `C`\n | `D`\n | `E`\n | `F`\n | `G`\n | `H`\n | `I`\n | `J`\n | `K`\n | `L`\n | `M`\n | `N`\n | `O`\n | `P`\n | `Q`\n | `R`\n | `S`\n | `T`\n | `U`\n | `V`\n | `W`\n | `X`\n | `Y`\n | `Z`;\n\n/**\n * Walk a `camelCase` literal, inserting `_` before each uppercase letter and\n * lowercasing it — matching {@link toSnakeCase}'s runtime. `Started` tracks\n * whether we've emitted any character yet, so a leading capital (e.g. `Foo`)\n * doesn't get a leading underscore (→ `foo`, not `_foo`).\n */\ntype SnakeWalk<\n S extends string,\n Started extends boolean = false\n> = S extends `${infer Head}${infer Tail}`\n ? Head extends Upper\n ? `${Started extends true ? `_` : ``}${Lowercase<Head>}${SnakeWalk<Tail, true>}`\n : `${Head}${SnakeWalk<Tail, true>}`\n : S;\n\n/** Convert a `camelCase` string-literal type to `snake_case`. Self-contained;\n * mirrors {@link toSnakeCase} (the only transform we apply to API keys). */\ntype SnakeCase<S extends string> = SnakeWalk<S>;\n\n/**\n * Recursively snake-case the keys of an object/array type. Mirrors\n * {@link toSnakeKeys}'s runtime. The only inputs are plain nested TMDB API\n * JSON, so no Set/tuple/options handling is needed.\n */\nexport type SnakeKeys<T> =\n T extends ReadonlyArray<infer U>\n ? Array<SnakeKeys<U>>\n : T extends object\n ? {\n [K in keyof T as K extends string ? SnakeCase<K> : K]: SnakeKeys<\n T[K]\n >;\n }\n : T;\n\nconst convert = (value: unknown): unknown => {\n if (Array.isArray(value)) {\n return value.map(convert);\n } else if (isObject(value)) {\n const result: Record<string, unknown> = {};\n for (const [key, val] of Object.entries(value)) {\n result[toSnakeCase(key)] = convert(val);\n }\n return result;\n }\n\n return value;\n};\n\nexport const toSnakeKeys = <T extends object>(o: T): SnakeKeys<T> => {\n // Recursive key remapping can't be proven at the type level.\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n return convert(o) as SnakeKeys<T>;\n};\n"],"mappings":";;;AAmEA,MAAM,WAAW,UAA4B;CAC3C,IAAI,MAAM,QAAQ,KAAK,GACrB,OAAO,MAAM,IAAI,OAAO;MACnB,IAAI,SAAS,KAAK,GAAG;EAC1B,MAAM,SAAkC,CAAC;EACzC,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,QAAQ,KAAK,GAC3C,OAAO,YAAY,GAAG,KAAK,QAAQ,GAAG;EAExC,OAAO;CACT;CAEA,OAAO;AACT;AAEA,MAAa,eAAiC,MAAuB;CAGnE,OAAO,QAAQ,CAAC;AAClB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { integer, ordinal, tmdbId } from "./integer.mjs";
|
|
2
|
+
import { isoDate } from "./isoDate.mjs";
|
|
3
|
+
import { omitFields, partialSchema, pickFields, requiredFields, schema, variantSchema } from "./schema.mjs";
|
|
4
|
+
export { integer, isoDate, omitFields, ordinal, partialSchema, pickFields, requiredFields, schema, tmdbId, variantSchema };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { omitFields, partialSchema, pickFields, requiredFields, schema, variantSchema } from "./schema.mjs";
|
|
2
|
+
import { integer, ordinal, tmdbId } from "./integer.mjs";
|
|
3
|
+
import { isoDate } from "./isoDate.mjs";
|
|
4
|
+
export { integer, isoDate, omitFields, ordinal, partialSchema, pickFields, requiredFields, schema, tmdbId, variantSchema };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/** A whole number. TMDB's ids, counts, sizes and ordinals are integers on the wire; validating that also keeps generated mocks realistic. */
|
|
3
|
+
export declare const integer: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
4
|
+
/** A TMDB numeric id: a positive integer. */
|
|
5
|
+
export declare const tmdbId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
6
|
+
/** A season or episode number. Season `0` holds a show's specials. */
|
|
7
|
+
export declare const ordinal: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
8
|
+
//# sourceMappingURL=integer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integer.d.mts","names":[],"sources":["../../src/validations/integer.ts"],"mappings":";;qBAGa,SAAO,EAAA,yBAAA,EAAA,yBAAA,EAAA;;qBAGP,QAAM,EAAA,yBAAA,EAAA,yBAAA,EAAA,kCAAA,EAAA;;qBAGN,SAAO,EAAA,yBAAA,EAAA,yBAAA,EAAA,kCAAA,EAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
// src/validations/integer.ts
|
|
3
|
+
/** A whole number. TMDB's ids, counts, sizes and ordinals are integers on the wire; validating that also keeps generated mocks realistic. */
|
|
4
|
+
const integer = v.pipe(v.number(), v.integer());
|
|
5
|
+
/** A TMDB numeric id: a positive integer. */
|
|
6
|
+
const tmdbId = v.pipe(v.number(), v.integer(), v.minValue(1));
|
|
7
|
+
/** A season or episode number. Season `0` holds a show's specials. */
|
|
8
|
+
const ordinal = v.pipe(v.number(), v.integer(), v.minValue(0));
|
|
9
|
+
export { integer, ordinal, tmdbId };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=integer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integer.mjs","names":[],"sources":["../../src/validations/integer.ts"],"sourcesContent":["import * as v from \"valibot\";\n\n/** A whole number. TMDB's ids, counts, sizes and ordinals are integers on the wire; validating that also keeps generated mocks realistic. */\nexport const integer = v.pipe(v.number(), v.integer());\n\n/** A TMDB numeric id: a positive integer. */\nexport const tmdbId = v.pipe(v.number(), v.integer(), v.minValue(1));\n\n/** A season or episode number. Season `0` holds a show's specials. */\nexport const ordinal = v.pipe(v.number(), v.integer(), v.minValue(0));\n"],"mappings":";;;AAGA,MAAa,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;;AAGrD,MAAa,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,CAAC;;AAGnE,MAAa,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isoDate.d.mts","names":[],"sources":["../../src/validations/isoDate.ts"],"mappings":";;qBAGa,SAAO,EAAA,yBAAA,EAAA,yBAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isoDate.mjs","names":[],"sources":["../../src/validations/isoDate.ts"],"sourcesContent":["import * as v from \"valibot\";\n\n/** A `YYYY-MM-DD` date, as TMDB's date query params expect. */\nexport const isoDate = v.pipe(v.string(), v.isoDate());\n"],"mappings":";;;AAGA,MAAa,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/**
|
|
3
|
+
* Annotate a schema's *published* type as `v.GenericSchema<T>` so
|
|
4
|
+
* downstream `.d.ts` emit stops inlining the inner `ObjectSchema`'s
|
|
5
|
+
* entries map and instead references `T` by name. The runtime value
|
|
6
|
+
* is unchanged.
|
|
7
|
+
*
|
|
8
|
+
* Use at every type-defining schema export:
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* const _movieSchema = v.object({...});
|
|
12
|
+
* export interface Movie extends v.InferOutput<typeof _movieSchema> {}
|
|
13
|
+
* export const movieSchema = schema<Movie>(_movieSchema);
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* **Why this exists**
|
|
17
|
+
*
|
|
18
|
+
* Without annotation, `typeof movieSchema` is the full
|
|
19
|
+
* `v.ObjectSchema<{ id: v.GenericSchema<number>, ... }>` shape. Every
|
|
20
|
+
* downstream file that references `movieSchema` (SearchResult,
|
|
21
|
+
* Recommendation, …) re-inlines that entries map into its own emitted
|
|
22
|
+
* declarations. This causes:
|
|
23
|
+
*
|
|
24
|
+
* - dramatic duplication of nested object shapes in `.d.ts` output
|
|
25
|
+
* - slow IDE hover (tsserver expands the full shape on every
|
|
26
|
+
* reference)
|
|
27
|
+
* - occasional TS2502 / type-too-complex errors on deeply circular
|
|
28
|
+
* schemas
|
|
29
|
+
*
|
|
30
|
+
* After annotation, downstream `.d.ts` files reference `Movie` by
|
|
31
|
+
* name from `./movie/types/Movie.d.mts` and never inline its body.
|
|
32
|
+
*
|
|
33
|
+
* **Trade-off**
|
|
34
|
+
*
|
|
35
|
+
* `v.partial(movieSchema)`, `v.pick(movieSchema, [...])`, `v.omit(...)`,
|
|
36
|
+
* and `movieSchema.entries.id` stop type-checking because the constraint
|
|
37
|
+
* is `GenericSchema<T>` not `ObjectSchema<...>`. Use the
|
|
38
|
+
* {@link partialSchema}, {@link pickFields}, {@link omitFields},
|
|
39
|
+
* {@link requiredFields}, and {@link variantSchema} helpers below for
|
|
40
|
+
* the common cases.
|
|
41
|
+
*
|
|
42
|
+
* @__NO_SIDE_EFFECTS__
|
|
43
|
+
*/
|
|
44
|
+
export declare const schema: <T>(s: v.GenericSchema) => v.GenericSchema<T>;
|
|
45
|
+
/**
|
|
46
|
+
* Make every key of `T` optional, both at the type level and at
|
|
47
|
+
* runtime. Equivalent to Valibot's `v.partial`, but accepts an
|
|
48
|
+
* annotated `GenericSchema<T>` (which `v.partial` would reject because
|
|
49
|
+
* its constraint is `ObjectSchema<...>`).
|
|
50
|
+
*
|
|
51
|
+
* @__NO_SIDE_EFFECTS__
|
|
52
|
+
*/
|
|
53
|
+
export declare const partialSchema: <T>(s: v.GenericSchema<T>) => v.GenericSchema<Partial<T>>;
|
|
54
|
+
/**
|
|
55
|
+
* Pick a subset of fields from `T` at both type and runtime levels.
|
|
56
|
+
* Equivalent to Valibot's `v.pick`. See {@link partialSchema}.
|
|
57
|
+
*
|
|
58
|
+
* @__NO_SIDE_EFFECTS__
|
|
59
|
+
*/
|
|
60
|
+
export declare const pickFields: <T, K extends keyof T & string>(s: v.GenericSchema<T>, keys: readonly K[]) => v.GenericSchema<Pick<T, K>>;
|
|
61
|
+
/**
|
|
62
|
+
* Omit a subset of fields on `T` at both type and runtime levels.
|
|
63
|
+
* Equivalent to Valibot's `v.omit`. See {@link partialSchema}.
|
|
64
|
+
*
|
|
65
|
+
* @__NO_SIDE_EFFECTS__
|
|
66
|
+
*/
|
|
67
|
+
export declare const omitFields: <T, K extends keyof T & string>(s: v.GenericSchema<T>, keys: readonly K[]) => v.GenericSchema<Omit<T, K>>;
|
|
68
|
+
/**
|
|
69
|
+
* Mark a subset of fields on `T` as required at both type and runtime
|
|
70
|
+
* levels. Equivalent to Valibot's `v.required`. See {@link partialSchema}.
|
|
71
|
+
*
|
|
72
|
+
* @__NO_SIDE_EFFECTS__
|
|
73
|
+
*/
|
|
74
|
+
export declare const requiredFields: <T, K extends keyof T & string>(s: v.GenericSchema<T>, keys: readonly K[]) => v.GenericSchema<T & Required<Pick<T, K>>>;
|
|
75
|
+
/**
|
|
76
|
+
* Build a discriminated union schema. Equivalent to Valibot's `v.variant`,
|
|
77
|
+
* but accepts annotated `GenericSchema<T>` variants (which `v.variant`
|
|
78
|
+
* would reject because its constraint is `ObjectSchema<...>`).
|
|
79
|
+
*
|
|
80
|
+
* Prefer `v.variant` whenever variants share a literal discriminator
|
|
81
|
+
* field — it dispatches on that field at runtime, producing focused
|
|
82
|
+
* error messages and O(1) validation, vs. {@link v.union}'s O(n)
|
|
83
|
+
* try-each behavior.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* export const multiSearchResultSchema = variantSchema<MultiSearchResult>(
|
|
88
|
+
* `mediaType`,
|
|
89
|
+
* [movieSearchResultSchema, tvSearchResultSchema, personSearchResultSchema]
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* @__NO_SIDE_EFFECTS__
|
|
94
|
+
*/
|
|
95
|
+
export declare const variantSchema: <T>(key: keyof T & string, schemas: readonly v.GenericSchema[]) => v.GenericSchema<T>;
|
|
96
|
+
//# sourceMappingURL=schema.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.mts","names":[],"sources":["../../src/validations/schema.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4Ca,SAAU,GAAG,GAAG,EAAE,kBAAgB,EAAE,cAAc;;;;;;;;;qBAYlD,gBAAiB,GAC5B,GAAG,EAAE,cAAc,OAClB,EAAE,cAAc,QAAQ;;;;;;;qBAgBd,aAAc,GAAG,gBAAgB,YAC5C,GAAG,EAAE,cAAc,IACnB,eAAe,QACd,EAAE,cAAc,KAAK,GAAG;;;;;;;qBAgBd,aAAc,GAAG,gBAAgB,YAC5C,GAAG,EAAE,cAAc,IACnB,eAAe,QACd,EAAE,cAAc,KAAK,GAAG;;;;;;;qBAgBd,iBAAkB,GAAG,gBAAgB,YAChD,GAAG,EAAE,cAAc,IACnB,eAAe,QACd,EAAE,cAAc,IAAI,SAAS,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;qBAgC3B,gBAAiB,GAC5B,WAAW,YACX,kBAAkB,EAAE,oBACnB,EAAE,cAAc"}
|