@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,127 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
declare const _personMovieCastSchema: v.ObjectSchema<{
|
|
3
|
+
readonly order: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
4
|
+
/** The role played, or `""` when unknown. */
|
|
5
|
+
readonly character: v.StringSchema<undefined>;
|
|
6
|
+
readonly creditId: v.StringSchema<undefined>;
|
|
7
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
8
|
+
readonly backdropPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly genreIds: v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
10
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
11
|
+
readonly originalLanguage: v.StringSchema<undefined>;
|
|
12
|
+
readonly originalTitle: v.StringSchema<undefined>;
|
|
13
|
+
readonly overview: v.StringSchema<undefined>;
|
|
14
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
15
|
+
readonly posterPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly releaseDate: v.StringSchema<undefined>;
|
|
17
|
+
readonly softcore: v.BooleanSchema<undefined>;
|
|
18
|
+
readonly title: v.StringSchema<undefined>;
|
|
19
|
+
readonly video: v.BooleanSchema<undefined>;
|
|
20
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
21
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
declare const _personMovieCrewSchema: v.ObjectSchema<{
|
|
24
|
+
readonly creditId: v.StringSchema<undefined>;
|
|
25
|
+
readonly department: v.StringSchema<undefined>;
|
|
26
|
+
readonly job: v.StringSchema<undefined>;
|
|
27
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
28
|
+
readonly backdropPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly genreIds: v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
30
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
31
|
+
readonly originalLanguage: v.StringSchema<undefined>;
|
|
32
|
+
readonly originalTitle: v.StringSchema<undefined>;
|
|
33
|
+
readonly overview: v.StringSchema<undefined>;
|
|
34
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
35
|
+
readonly posterPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly releaseDate: v.StringSchema<undefined>;
|
|
37
|
+
readonly softcore: v.BooleanSchema<undefined>;
|
|
38
|
+
readonly title: v.StringSchema<undefined>;
|
|
39
|
+
readonly video: v.BooleanSchema<undefined>;
|
|
40
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
41
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
42
|
+
}, undefined>;
|
|
43
|
+
declare const _personTvCastSchema: v.ObjectSchema<{
|
|
44
|
+
readonly episodeCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
45
|
+
/** `YYYY-MM-DD` of the person's first episode, or `null`. */
|
|
46
|
+
readonly firstCreditAirDate: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
/** The role played, or `""` when unknown. */
|
|
48
|
+
readonly character: v.StringSchema<undefined>;
|
|
49
|
+
readonly creditId: v.StringSchema<undefined>;
|
|
50
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
51
|
+
readonly backdropPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly firstAirDate: v.StringSchema<undefined>;
|
|
53
|
+
readonly genreIds: v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
54
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
55
|
+
readonly name: v.StringSchema<undefined>;
|
|
56
|
+
readonly originCountry: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly originalLanguage: v.StringSchema<undefined>;
|
|
58
|
+
readonly originalName: v.StringSchema<undefined>;
|
|
59
|
+
readonly overview: v.StringSchema<undefined>;
|
|
60
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
61
|
+
readonly posterPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly softcore: v.BooleanSchema<undefined>;
|
|
63
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
64
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
65
|
+
}, undefined>;
|
|
66
|
+
declare const _personTvCrewSchema: v.ObjectSchema<{
|
|
67
|
+
readonly episodeCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
68
|
+
/** `YYYY-MM-DD` of the person's first episode, or `null`. */
|
|
69
|
+
readonly firstCreditAirDate: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly creditId: v.StringSchema<undefined>;
|
|
71
|
+
readonly department: v.StringSchema<undefined>;
|
|
72
|
+
readonly job: v.StringSchema<undefined>;
|
|
73
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
74
|
+
readonly backdropPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly firstAirDate: v.StringSchema<undefined>;
|
|
76
|
+
readonly genreIds: v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
77
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
78
|
+
readonly name: v.StringSchema<undefined>;
|
|
79
|
+
readonly originCountry: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly originalLanguage: v.StringSchema<undefined>;
|
|
81
|
+
readonly originalName: v.StringSchema<undefined>;
|
|
82
|
+
readonly overview: v.StringSchema<undefined>;
|
|
83
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
84
|
+
readonly posterPath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly softcore: v.BooleanSchema<undefined>;
|
|
86
|
+
readonly voteAverage: v.NumberSchema<undefined>;
|
|
87
|
+
readonly voteCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
export interface PersonMovieCast extends v.InferOutput<typeof _personMovieCastSchema> {}
|
|
90
|
+
export interface PersonMovieCrew extends v.InferOutput<typeof _personMovieCrewSchema> {}
|
|
91
|
+
export interface PersonTvCast extends v.InferOutput<typeof _personTvCastSchema> {}
|
|
92
|
+
export interface PersonTvCrew extends v.InferOutput<typeof _personTvCrewSchema> {}
|
|
93
|
+
declare const _personMovieCreditsSchema: v.ObjectSchema<{
|
|
94
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
95
|
+
readonly cast: v.ArraySchema<v.GenericSchema<PersonMovieCast>, undefined>;
|
|
96
|
+
readonly crew: v.ArraySchema<v.GenericSchema<PersonMovieCrew>, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
export interface PersonMovieCredits extends v.InferOutput<typeof _personMovieCreditsSchema> {}
|
|
99
|
+
/**
|
|
100
|
+
* ### Person Movie Credits
|
|
101
|
+
*
|
|
102
|
+
* The movies a person acted in or worked on (`getPersonMovieCredits`).
|
|
103
|
+
*/
|
|
104
|
+
export declare const personMovieCreditsSchema: v.GenericSchema<PersonMovieCredits>;
|
|
105
|
+
declare const _personTvCreditsSchema: v.ObjectSchema<{
|
|
106
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
107
|
+
readonly cast: v.ArraySchema<v.GenericSchema<PersonTvCast>, undefined>;
|
|
108
|
+
readonly crew: v.ArraySchema<v.GenericSchema<PersonTvCrew>, undefined>;
|
|
109
|
+
}, undefined>;
|
|
110
|
+
export interface PersonTvCredits extends v.InferOutput<typeof _personTvCreditsSchema> {}
|
|
111
|
+
/** The TV series a person appeared in or worked on, with episode counts (`getPersonTvCredits`). */
|
|
112
|
+
export declare const personTvCreditsSchema: v.GenericSchema<PersonTvCredits>;
|
|
113
|
+
type Tagged<T, M extends string> = T & {
|
|
114
|
+
mediaType: M;
|
|
115
|
+
};
|
|
116
|
+
export type PersonCombinedCast = Tagged<PersonMovieCast, `movie`> | Tagged<PersonTvCast, `tv`>;
|
|
117
|
+
export type PersonCombinedCrew = Tagged<PersonMovieCrew, `movie`> | Tagged<PersonTvCrew, `tv`>;
|
|
118
|
+
declare const _personCombinedCreditsSchema: v.ObjectSchema<{
|
|
119
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
120
|
+
readonly cast: v.ArraySchema<v.GenericSchema<PersonCombinedCast>, undefined>;
|
|
121
|
+
readonly crew: v.ArraySchema<v.GenericSchema<PersonCombinedCrew>, undefined>;
|
|
122
|
+
}, undefined>;
|
|
123
|
+
export interface PersonCombinedCredits extends v.InferOutput<typeof _personCombinedCreditsSchema> {}
|
|
124
|
+
/** A person's movie and TV credits together, each tagged with its `mediaType` (`getPersonCombinedCredits`). */
|
|
125
|
+
export declare const personCombinedCreditsSchema: v.GenericSchema<PersonCombinedCredits>;
|
|
126
|
+
export {};
|
|
127
|
+
//# sourceMappingURL=PersonCredits.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonCredits.d.mts","names":[],"sources":["../../../src/person/types/PersonCredits.ts"],"mappings":";cAyBM,wBAAsB,EAAA;;;;;;;;;;;;;;;;;;;;;cAKtB,wBAAsB,EAAA;;;;;;;;;;;;;;;;;;;;cAItB,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;cAKnB,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;iBAMR,wBAAwB,EAAE,mBAClC;iBAEQ,wBAAwB,EAAE,mBAClC;iBAEQ,qBAAqB,EAAE,mBAC/B;iBAEQ,qBAAqB,EAAE,mBAC/B;cAGH,2BAAyB,EAAA;;;;;iBAMd,2BAA2B,EAAE,mBACrC;;;;;;qBAQI,0BAAwB,EAAA,cAAA;cAI/B,wBAAsB,EAAA;;;;;iBAMX,wBAAwB,EAAE,mBAClC;;qBAII,uBAAqB,EAAA,cAAA;KAI7B,OAAO,GAAG,oBAAoB;EAAM,WAAW;;YAExC,qBACR,OAAO,4BACP,OAAO;YACC,qBACR,OAAO,4BACP,OAAO;cAEL,8BAA4B,EAAA;;;;;iBAsBjB,8BAA8B,EAAE,mBACxC;;qBAII,6BAA2B,EAAA,cAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { schema, variantSchema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import { movieListItemEntries } from "../../movie/types/MovieListItem.mjs";
|
|
4
|
+
import { tvListItemEntries } from "../../tv/types/TvListItem.mjs";
|
|
5
|
+
import * as v from "valibot";
|
|
6
|
+
// src/person/types/PersonCredits.ts
|
|
7
|
+
const castRole = {
|
|
8
|
+
/** The role played, or `""` when unknown. */
|
|
9
|
+
character: v.string(),
|
|
10
|
+
creditId: v.string()
|
|
11
|
+
};
|
|
12
|
+
const crewRole = {
|
|
13
|
+
creditId: v.string(),
|
|
14
|
+
department: v.string(),
|
|
15
|
+
job: v.string()
|
|
16
|
+
};
|
|
17
|
+
/** How much of a series a TV credit covers. */
|
|
18
|
+
const tvCreditSpan = {
|
|
19
|
+
episodeCount: integer,
|
|
20
|
+
/** `YYYY-MM-DD` of the person's first episode, or `null`. */
|
|
21
|
+
firstCreditAirDate: v.nullable(v.string())
|
|
22
|
+
};
|
|
23
|
+
const _personMovieCastSchema = v.object({
|
|
24
|
+
...movieListItemEntries,
|
|
25
|
+
...castRole,
|
|
26
|
+
order: integer
|
|
27
|
+
});
|
|
28
|
+
const _personMovieCrewSchema = v.object({
|
|
29
|
+
...movieListItemEntries,
|
|
30
|
+
...crewRole
|
|
31
|
+
});
|
|
32
|
+
const _personTvCastSchema = v.object({
|
|
33
|
+
...tvListItemEntries,
|
|
34
|
+
...castRole,
|
|
35
|
+
...tvCreditSpan
|
|
36
|
+
});
|
|
37
|
+
const _personTvCrewSchema = v.object({
|
|
38
|
+
...tvListItemEntries,
|
|
39
|
+
...crewRole,
|
|
40
|
+
...tvCreditSpan
|
|
41
|
+
});
|
|
42
|
+
const _personMovieCreditsSchema = v.object({
|
|
43
|
+
id: integer,
|
|
44
|
+
cast: v.array(schema(_personMovieCastSchema)),
|
|
45
|
+
crew: v.array(schema(_personMovieCrewSchema))
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* ### Person Movie Credits
|
|
49
|
+
*
|
|
50
|
+
* The movies a person acted in or worked on (`getPersonMovieCredits`).
|
|
51
|
+
*/
|
|
52
|
+
const personMovieCreditsSchema = schema(_personMovieCreditsSchema);
|
|
53
|
+
const _personTvCreditsSchema = v.object({
|
|
54
|
+
id: integer,
|
|
55
|
+
cast: v.array(schema(_personTvCastSchema)),
|
|
56
|
+
crew: v.array(schema(_personTvCrewSchema))
|
|
57
|
+
});
|
|
58
|
+
/** The TV series a person appeared in or worked on, with episode counts (`getPersonTvCredits`). */
|
|
59
|
+
const personTvCreditsSchema = schema(_personTvCreditsSchema);
|
|
60
|
+
const _personCombinedCreditsSchema = v.object({
|
|
61
|
+
id: integer,
|
|
62
|
+
cast: v.array(variantSchema(`mediaType`, [v.object({
|
|
63
|
+
..._personMovieCastSchema.entries,
|
|
64
|
+
mediaType: v.literal(`movie`)
|
|
65
|
+
}), v.object({
|
|
66
|
+
..._personTvCastSchema.entries,
|
|
67
|
+
mediaType: v.literal(`tv`)
|
|
68
|
+
})])),
|
|
69
|
+
crew: v.array(variantSchema(`mediaType`, [v.object({
|
|
70
|
+
..._personMovieCrewSchema.entries,
|
|
71
|
+
mediaType: v.literal(`movie`)
|
|
72
|
+
}), v.object({
|
|
73
|
+
..._personTvCrewSchema.entries,
|
|
74
|
+
mediaType: v.literal(`tv`)
|
|
75
|
+
})]))
|
|
76
|
+
});
|
|
77
|
+
/** A person's movie and TV credits together, each tagged with its `mediaType` (`getPersonCombinedCredits`). */
|
|
78
|
+
const personCombinedCreditsSchema = schema(_personCombinedCreditsSchema);
|
|
79
|
+
export { personCombinedCreditsSchema, personMovieCreditsSchema, personTvCreditsSchema };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=PersonCredits.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonCredits.mjs","names":[],"sources":["../../../src/person/types/PersonCredits.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema, variantSchema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\nimport { movieListItemEntries } from \"../../movie/types/MovieListItem.js\";\nimport { tvListItemEntries } from \"../../tv/types/TvListItem.js\";\n\nconst castRole = {\n /** The role played, or `\"\"` when unknown. */\n character: v.string(),\n creditId: v.string()\n} as const;\n\nconst crewRole = {\n creditId: v.string(),\n department: v.string(),\n job: v.string()\n} as const;\n\n/** How much of a series a TV credit covers. */\nconst tvCreditSpan = {\n episodeCount: integer,\n /** `YYYY-MM-DD` of the person's first episode, or `null`. */\n firstCreditAirDate: v.nullable(v.string())\n} as const;\n\nconst _personMovieCastSchema = v.object({\n ...movieListItemEntries,\n ...castRole,\n order: integer\n});\nconst _personMovieCrewSchema = v.object({\n ...movieListItemEntries,\n ...crewRole\n});\nconst _personTvCastSchema = v.object({\n ...tvListItemEntries,\n ...castRole,\n ...tvCreditSpan\n});\nconst _personTvCrewSchema = v.object({\n ...tvListItemEntries,\n ...crewRole,\n ...tvCreditSpan\n});\n\nexport interface PersonMovieCast extends v.InferOutput<\n typeof _personMovieCastSchema\n> {}\nexport interface PersonMovieCrew extends v.InferOutput<\n typeof _personMovieCrewSchema\n> {}\nexport interface PersonTvCast extends v.InferOutput<\n typeof _personTvCastSchema\n> {}\nexport interface PersonTvCrew extends v.InferOutput<\n typeof _personTvCrewSchema\n> {}\n\nconst _personMovieCreditsSchema = v.object({\n id: integer,\n cast: v.array(schema<PersonMovieCast>(_personMovieCastSchema)),\n crew: v.array(schema<PersonMovieCrew>(_personMovieCrewSchema))\n});\n\nexport interface PersonMovieCredits extends v.InferOutput<\n typeof _personMovieCreditsSchema\n> {}\n\n/**\n * ### Person Movie Credits\n *\n * The movies a person acted in or worked on (`getPersonMovieCredits`).\n */\nexport const personMovieCreditsSchema = schema<PersonMovieCredits>(\n _personMovieCreditsSchema\n);\n\nconst _personTvCreditsSchema = v.object({\n id: integer,\n cast: v.array(schema<PersonTvCast>(_personTvCastSchema)),\n crew: v.array(schema<PersonTvCrew>(_personTvCrewSchema))\n});\n\nexport interface PersonTvCredits extends v.InferOutput<\n typeof _personTvCreditsSchema\n> {}\n\n/** The TV series a person appeared in or worked on, with episode counts (`getPersonTvCredits`). */\nexport const personTvCreditsSchema = schema<PersonTvCredits>(\n _personTvCreditsSchema\n);\n\ntype Tagged<T, M extends string> = T & { mediaType: M };\n\nexport type PersonCombinedCast =\n | Tagged<PersonMovieCast, `movie`>\n | Tagged<PersonTvCast, `tv`>;\nexport type PersonCombinedCrew =\n | Tagged<PersonMovieCrew, `movie`>\n | Tagged<PersonTvCrew, `tv`>;\n\nconst _personCombinedCreditsSchema = v.object({\n id: integer,\n cast: v.array(\n variantSchema<PersonCombinedCast>(`mediaType`, [\n v.object({\n ..._personMovieCastSchema.entries,\n mediaType: v.literal(`movie`)\n }),\n v.object({ ..._personTvCastSchema.entries, mediaType: v.literal(`tv`) })\n ])\n ),\n crew: v.array(\n variantSchema<PersonCombinedCrew>(`mediaType`, [\n v.object({\n ..._personMovieCrewSchema.entries,\n mediaType: v.literal(`movie`)\n }),\n v.object({ ..._personTvCrewSchema.entries, mediaType: v.literal(`tv`) })\n ])\n )\n});\n\nexport interface PersonCombinedCredits extends v.InferOutput<\n typeof _personCombinedCreditsSchema\n> {}\n\n/** A person's movie and TV credits together, each tagged with its `mediaType` (`getPersonCombinedCredits`). */\nexport const personCombinedCreditsSchema = schema<PersonCombinedCredits>(\n _personCombinedCreditsSchema\n);\n"],"mappings":";;;;;;AAMA,MAAM,WAAW;;CAEf,WAAW,EAAE,OAAO;CACpB,UAAU,EAAE,OAAO;AACrB;AAEA,MAAM,WAAW;CACf,UAAU,EAAE,OAAO;CACnB,YAAY,EAAE,OAAO;CACrB,KAAK,EAAE,OAAO;AAChB;;AAGA,MAAM,eAAe;CACnB,cAAc;;CAEd,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC;AAC3C;AAEA,MAAM,yBAAyB,EAAE,OAAO;CACtC,GAAG;CACH,GAAG;CACH,OAAO;AACT,CAAC;AACD,MAAM,yBAAyB,EAAE,OAAO;CACtC,GAAG;CACH,GAAG;AACL,CAAC;AACD,MAAM,sBAAsB,EAAE,OAAO;CACnC,GAAG;CACH,GAAG;CACH,GAAG;AACL,CAAC;AACD,MAAM,sBAAsB,EAAE,OAAO;CACnC,GAAG;CACH,GAAG;CACH,GAAG;AACL,CAAC;AAeD,MAAM,4BAA4B,EAAE,OAAO;CACzC,IAAI;CACJ,MAAM,EAAE,MAAM,OAAwB,sBAAsB,CAAC;CAC7D,MAAM,EAAE,MAAM,OAAwB,sBAAsB,CAAC;AAC/D,CAAC;;;;;;AAWD,MAAa,2BAA2B,OACtC,yBACF;AAEA,MAAM,yBAAyB,EAAE,OAAO;CACtC,IAAI;CACJ,MAAM,EAAE,MAAM,OAAqB,mBAAmB,CAAC;CACvD,MAAM,EAAE,MAAM,OAAqB,mBAAmB,CAAC;AACzD,CAAC;;AAOD,MAAa,wBAAwB,OACnC,sBACF;AAWA,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI;CACJ,MAAM,EAAE,MACN,cAAkC,aAAa,CAC7C,EAAE,OAAO;EACP,GAAG,uBAAuB;EAC1B,WAAW,EAAE,QAAQ,OAAO;CAC9B,CAAC,GACD,EAAE,OAAO;EAAE,GAAG,oBAAoB;EAAS,WAAW,EAAE,QAAQ,IAAI;CAAE,CAAC,CACzE,CAAC,CACH;CACA,MAAM,EAAE,MACN,cAAkC,aAAa,CAC7C,EAAE,OAAO;EACP,GAAG,uBAAuB;EAC1B,WAAW,EAAE,QAAQ,OAAO;CAC9B,CAAC,GACD,EAAE,OAAO;EAAE,GAAG,oBAAoB;EAAS,WAAW,EAAE,QAAQ,IAAI;CAAE,CAAC,CACzE,CAAC,CACH;AACF,CAAC;;AAOD,MAAa,8BAA8B,OACzC,4BACF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ProfileImages } from "../../types/Images.mjs";
|
|
2
|
+
import { Changes } from "../../types/Changes.mjs";
|
|
3
|
+
import { PersonCombinedCredits, PersonMovieCredits, PersonTvCredits } from "./PersonCredits.mjs";
|
|
4
|
+
import { PersonExternalIds } from "./PersonExternalIds.mjs";
|
|
5
|
+
import { TaggedImages } from "./TaggedImages.mjs";
|
|
6
|
+
import { PersonTranslations } from "./PersonTranslations.mjs";
|
|
7
|
+
import "../../index.mjs";
|
|
8
|
+
import * as v from "valibot";
|
|
9
|
+
export declare const personDetailsEntries: {
|
|
10
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
11
|
+
/** Other names, often in other scripts. */
|
|
12
|
+
readonly alsoKnownAs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
13
|
+
/** `""` when TMDB has none. */
|
|
14
|
+
readonly biography: v.StringSchema<undefined>;
|
|
15
|
+
/** `YYYY-MM-DD`, or `null` when unknown. */
|
|
16
|
+
readonly birthday: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
/** `YYYY-MM-DD`, or `null` for the living (and the unknown). */
|
|
18
|
+
readonly deathday: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
/** TMDB's gender code (`0` when not set). */
|
|
20
|
+
readonly gender: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
21
|
+
readonly homepage: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
23
|
+
readonly imdbId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly knownForDepartment: v.StringSchema<undefined>;
|
|
25
|
+
readonly name: v.StringSchema<undefined>;
|
|
26
|
+
readonly placeOfBirth: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
28
|
+
readonly profilePath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
};
|
|
30
|
+
/** What `appendToResponse` adds: each key holds the matching endpoint's response without its `id`. */
|
|
31
|
+
export declare const personAppendedEntries: {
|
|
32
|
+
readonly changes: v.ExactOptionalSchema<v.GenericSchema<Changes>, undefined>;
|
|
33
|
+
readonly combinedCredits: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonCombinedCredits, "id">>, undefined>;
|
|
34
|
+
readonly externalIds: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonExternalIds, "id">>, undefined>;
|
|
35
|
+
readonly images: v.ExactOptionalSchema<v.GenericSchema<Omit<ProfileImages, "id">>, undefined>;
|
|
36
|
+
readonly movieCredits: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonMovieCredits, "id">>, undefined>;
|
|
37
|
+
readonly taggedImages: v.ExactOptionalSchema<v.GenericSchema<Omit<TaggedImages, "id">>, undefined>;
|
|
38
|
+
readonly translations: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonTranslations, "id">>, undefined>;
|
|
39
|
+
readonly tvCredits: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonTvCredits, "id">>, undefined>;
|
|
40
|
+
};
|
|
41
|
+
declare const _personDetailsSchema: v.ObjectSchema<{
|
|
42
|
+
readonly changes: v.ExactOptionalSchema<v.GenericSchema<Changes>, undefined>;
|
|
43
|
+
readonly combinedCredits: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonCombinedCredits, "id">>, undefined>;
|
|
44
|
+
readonly externalIds: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonExternalIds, "id">>, undefined>;
|
|
45
|
+
readonly images: v.ExactOptionalSchema<v.GenericSchema<Omit<ProfileImages, "id">>, undefined>;
|
|
46
|
+
readonly movieCredits: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonMovieCredits, "id">>, undefined>;
|
|
47
|
+
readonly taggedImages: v.ExactOptionalSchema<v.GenericSchema<Omit<TaggedImages, "id">>, undefined>;
|
|
48
|
+
readonly translations: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonTranslations, "id">>, undefined>;
|
|
49
|
+
readonly tvCredits: v.ExactOptionalSchema<v.GenericSchema<Omit<PersonTvCredits, "id">>, undefined>;
|
|
50
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
51
|
+
/** Other names, often in other scripts. */
|
|
52
|
+
readonly alsoKnownAs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
/** `""` when TMDB has none. */
|
|
54
|
+
readonly biography: v.StringSchema<undefined>;
|
|
55
|
+
/** `YYYY-MM-DD`, or `null` when unknown. */
|
|
56
|
+
readonly birthday: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
/** `YYYY-MM-DD`, or `null` for the living (and the unknown). */
|
|
58
|
+
readonly deathday: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
/** TMDB's gender code (`0` when not set). */
|
|
60
|
+
readonly gender: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
61
|
+
readonly homepage: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
63
|
+
readonly imdbId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
64
|
+
readonly knownForDepartment: v.StringSchema<undefined>;
|
|
65
|
+
readonly name: v.StringSchema<undefined>;
|
|
66
|
+
readonly placeOfBirth: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
67
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
68
|
+
readonly profilePath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
export interface PersonDetails extends v.InferOutput<typeof _personDetailsSchema> {}
|
|
71
|
+
/**
|
|
72
|
+
* ### Person Details
|
|
73
|
+
*
|
|
74
|
+
* A person (`getPerson`, `getLatestPerson`), plus whatever `appendToResponse` asked for.
|
|
75
|
+
*/
|
|
76
|
+
export declare const personDetailsSchema: v.GenericSchema<PersonDetails>;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=PersonDetails.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonDetails.d.mts","names":["_$______index_js0.Changes","_$__PersonCredits_js0.PersonCombinedCredits","_$__PersonExternalIds_js0.PersonExternalIds","_$______index_js0.ProfileImages","_$__PersonCredits_js0.PersonMovieCredits","_$__TaggedImages_js0.TaggedImages","_$__PersonTranslations_js0.PersonTranslations","_$__PersonCredits_js0.PersonTvCredits"],"sources":["../../../src/person/types/PersonDetails.ts"],"mappings":";;;;;;;;qBAca;;;;;;;;;;;;;;;;;;;;;;qBAuBA;W,+CAAAA;;;;;;;;;cAaP,sBAAoB,EAAA;W,+CAApBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKW,sBAAsB,EAAE,mBAChC;;;;;;qBAQI,qBAAmB,EAAA,cAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { omitFields, schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import { changesSchema } from "../../types/Changes.mjs";
|
|
4
|
+
import { profileImagesSchema } from "../../types/Images.mjs";
|
|
5
|
+
import { personCombinedCreditsSchema, personMovieCreditsSchema, personTvCreditsSchema } from "./PersonCredits.mjs";
|
|
6
|
+
import { personExternalIdsSchema } from "./PersonExternalIds.mjs";
|
|
7
|
+
import { personTranslationsSchema } from "./PersonTranslations.mjs";
|
|
8
|
+
import { taggedImagesSchema } from "./TaggedImages.mjs";
|
|
9
|
+
import * as v from "valibot";
|
|
10
|
+
// src/person/types/PersonDetails.ts
|
|
11
|
+
const personDetailsEntries = {
|
|
12
|
+
adult: v.boolean(),
|
|
13
|
+
/** Other names, often in other scripts. */
|
|
14
|
+
alsoKnownAs: v.array(v.string()),
|
|
15
|
+
/** `""` when TMDB has none. */
|
|
16
|
+
biography: v.string(),
|
|
17
|
+
/** `YYYY-MM-DD`, or `null` when unknown. */
|
|
18
|
+
birthday: v.nullable(v.string()),
|
|
19
|
+
/** `YYYY-MM-DD`, or `null` for the living (and the unknown). */
|
|
20
|
+
deathday: v.nullable(v.string()),
|
|
21
|
+
/** TMDB's gender code (`0` when not set). */
|
|
22
|
+
gender: integer,
|
|
23
|
+
homepage: v.nullable(v.string()),
|
|
24
|
+
id: integer,
|
|
25
|
+
imdbId: v.nullable(v.string()),
|
|
26
|
+
knownForDepartment: v.string(),
|
|
27
|
+
name: v.string(),
|
|
28
|
+
placeOfBirth: v.nullable(v.string()),
|
|
29
|
+
popularity: v.number(),
|
|
30
|
+
profilePath: v.nullable(v.string())
|
|
31
|
+
};
|
|
32
|
+
/** What `appendToResponse` adds: each key holds the matching endpoint's response without its `id`. */
|
|
33
|
+
const personAppendedEntries = {
|
|
34
|
+
changes: v.exactOptional(changesSchema),
|
|
35
|
+
combinedCredits: v.exactOptional(omitFields(personCombinedCreditsSchema, [`id`])),
|
|
36
|
+
externalIds: v.exactOptional(omitFields(personExternalIdsSchema, [`id`])),
|
|
37
|
+
images: v.exactOptional(omitFields(profileImagesSchema, [`id`])),
|
|
38
|
+
movieCredits: v.exactOptional(omitFields(personMovieCreditsSchema, [`id`])),
|
|
39
|
+
taggedImages: v.exactOptional(omitFields(taggedImagesSchema, [`id`])),
|
|
40
|
+
translations: v.exactOptional(omitFields(personTranslationsSchema, [`id`])),
|
|
41
|
+
tvCredits: v.exactOptional(omitFields(personTvCreditsSchema, [`id`]))
|
|
42
|
+
};
|
|
43
|
+
const _personDetailsSchema = v.object({
|
|
44
|
+
...personDetailsEntries,
|
|
45
|
+
...personAppendedEntries
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* ### Person Details
|
|
49
|
+
*
|
|
50
|
+
* A person (`getPerson`, `getLatestPerson`), plus whatever `appendToResponse` asked for.
|
|
51
|
+
*/
|
|
52
|
+
const personDetailsSchema = schema(_personDetailsSchema);
|
|
53
|
+
export { personAppendedEntries, personDetailsEntries, personDetailsSchema };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=PersonDetails.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonDetails.mjs","names":[],"sources":["../../../src/person/types/PersonDetails.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { omitFields, schema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\nimport { changesSchema } from \"../../types/Changes.js\";\nimport { profileImagesSchema } from \"../../types/Images.js\";\nimport {\n personCombinedCreditsSchema,\n personMovieCreditsSchema,\n personTvCreditsSchema\n} from \"./PersonCredits.js\";\nimport { personExternalIdsSchema } from \"./PersonExternalIds.js\";\nimport { personTranslationsSchema } from \"./PersonTranslations.js\";\nimport { taggedImagesSchema } from \"./TaggedImages.js\";\n\nexport const personDetailsEntries = {\n adult: v.boolean(),\n /** Other names, often in other scripts. */\n alsoKnownAs: v.array(v.string()),\n /** `\"\"` when TMDB has none. */\n biography: v.string(),\n /** `YYYY-MM-DD`, or `null` when unknown. */\n birthday: v.nullable(v.string()),\n /** `YYYY-MM-DD`, or `null` for the living (and the unknown). */\n deathday: v.nullable(v.string()),\n /** TMDB's gender code (`0` when not set). */\n gender: integer,\n homepage: v.nullable(v.string()),\n id: integer,\n imdbId: v.nullable(v.string()),\n knownForDepartment: v.string(),\n name: v.string(),\n placeOfBirth: v.nullable(v.string()),\n popularity: v.number(),\n profilePath: v.nullable(v.string())\n} as const;\n\n/** What `appendToResponse` adds: each key holds the matching endpoint's response without its `id`. */\nexport const personAppendedEntries = {\n changes: v.exactOptional(changesSchema),\n combinedCredits: v.exactOptional(\n omitFields(personCombinedCreditsSchema, [`id`])\n ),\n externalIds: v.exactOptional(omitFields(personExternalIdsSchema, [`id`])),\n images: v.exactOptional(omitFields(profileImagesSchema, [`id`])),\n movieCredits: v.exactOptional(omitFields(personMovieCreditsSchema, [`id`])),\n taggedImages: v.exactOptional(omitFields(taggedImagesSchema, [`id`])),\n translations: v.exactOptional(omitFields(personTranslationsSchema, [`id`])),\n tvCredits: v.exactOptional(omitFields(personTvCreditsSchema, [`id`]))\n} as const;\n\nconst _personDetailsSchema = v.object({\n ...personDetailsEntries,\n ...personAppendedEntries\n});\n\nexport interface PersonDetails extends v.InferOutput<\n typeof _personDetailsSchema\n> {}\n\n/**\n * ### Person Details\n *\n * A person (`getPerson`, `getLatestPerson`), plus whatever `appendToResponse` asked for.\n */\nexport const personDetailsSchema = schema<PersonDetails>(_personDetailsSchema);\n"],"mappings":";;;;;;;;;;AAcA,MAAa,uBAAuB;CAClC,OAAO,EAAE,QAAQ;;CAEjB,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC;;CAE/B,WAAW,EAAE,OAAO;;CAEpB,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;;CAE/B,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;;CAE/B,QAAQ;CACR,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;CAC/B,IAAI;CACJ,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;CAC7B,oBAAoB,EAAE,OAAO;CAC7B,MAAM,EAAE,OAAO;CACf,cAAc,EAAE,SAAS,EAAE,OAAO,CAAC;CACnC,YAAY,EAAE,OAAO;CACrB,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;AACpC;;AAGA,MAAa,wBAAwB;CACnC,SAAS,EAAE,cAAc,aAAa;CACtC,iBAAiB,EAAE,cACjB,WAAW,6BAA6B,CAAC,IAAI,CAAC,CAChD;CACA,aAAa,EAAE,cAAc,WAAW,yBAAyB,CAAC,IAAI,CAAC,CAAC;CACxE,QAAQ,EAAE,cAAc,WAAW,qBAAqB,CAAC,IAAI,CAAC,CAAC;CAC/D,cAAc,EAAE,cAAc,WAAW,0BAA0B,CAAC,IAAI,CAAC,CAAC;CAC1E,cAAc,EAAE,cAAc,WAAW,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACpE,cAAc,EAAE,cAAc,WAAW,0BAA0B,CAAC,IAAI,CAAC,CAAC;CAC1E,WAAW,EAAE,cAAc,WAAW,uBAAuB,CAAC,IAAI,CAAC,CAAC;AACtE;AAEA,MAAM,uBAAuB,EAAE,OAAO;CACpC,GAAG;CACH,GAAG;AACL,CAAC;;;;;;AAWD,MAAa,sBAAsB,OAAsB,oBAAoB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
declare const _personExternalIdsSchema: v.ObjectSchema<{
|
|
3
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
4
|
+
/** `nm…`, or `null` when unknown. */
|
|
5
|
+
readonly imdbId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly freebaseMid: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
7
|
+
readonly freebaseId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly tvrageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>;
|
|
9
|
+
readonly wikidataId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly facebookId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly instagramId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
/** `""` or `null` when unknown: TMDB returns both. */
|
|
13
|
+
readonly tiktokId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly twitterId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
/** `""` or `null` when unknown: TMDB returns both. */
|
|
16
|
+
readonly youtubeId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
export interface PersonExternalIds extends v.InferOutput<typeof _personExternalIdsSchema> {}
|
|
19
|
+
/**
|
|
20
|
+
* ### Person External IDs
|
|
21
|
+
*
|
|
22
|
+
* A person's ids and social handles on other sites (`getPersonExternalIds`).
|
|
23
|
+
*/
|
|
24
|
+
export declare const personExternalIdsSchema: v.GenericSchema<PersonExternalIds>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=PersonExternalIds.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonExternalIds.d.mts","names":[],"sources":["../../../src/person/types/PersonExternalIds.ts"],"mappings":";cAMM,0BAAwB,EAAA;;;;;;;;;;;;;;;;iBAiBb,0BAA0B,EAAE,mBACpC;;;;;;qBAQI,yBAAuB,EAAA,cAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/person/types/PersonExternalIds.ts
|
|
5
|
+
const id = v.nullable(v.string());
|
|
6
|
+
const _personExternalIdsSchema = v.object({
|
|
7
|
+
id: integer,
|
|
8
|
+
/** `nm…`, or `null` when unknown. */
|
|
9
|
+
imdbId: id,
|
|
10
|
+
freebaseMid: id,
|
|
11
|
+
freebaseId: id,
|
|
12
|
+
tvrageId: v.nullable(integer),
|
|
13
|
+
wikidataId: id,
|
|
14
|
+
facebookId: id,
|
|
15
|
+
instagramId: id,
|
|
16
|
+
/** `""` or `null` when unknown: TMDB returns both. */
|
|
17
|
+
tiktokId: id,
|
|
18
|
+
twitterId: id,
|
|
19
|
+
/** `""` or `null` when unknown: TMDB returns both. */
|
|
20
|
+
youtubeId: id
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* ### Person External IDs
|
|
24
|
+
*
|
|
25
|
+
* A person's ids and social handles on other sites (`getPersonExternalIds`).
|
|
26
|
+
*/
|
|
27
|
+
const personExternalIdsSchema = schema(_personExternalIdsSchema);
|
|
28
|
+
export { personExternalIdsSchema };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=PersonExternalIds.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonExternalIds.mjs","names":[],"sources":["../../../src/person/types/PersonExternalIds.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\n\nconst id = v.nullable(v.string());\n\nconst _personExternalIdsSchema = v.object({\n id: integer,\n /** `nm…`, or `null` when unknown. */\n imdbId: id,\n freebaseMid: id,\n freebaseId: id,\n tvrageId: v.nullable(integer),\n wikidataId: id,\n facebookId: id,\n instagramId: id,\n /** `\"\"` or `null` when unknown: TMDB returns both. */\n tiktokId: id,\n twitterId: id,\n /** `\"\"` or `null` when unknown: TMDB returns both. */\n youtubeId: id\n});\n\nexport interface PersonExternalIds extends v.InferOutput<\n typeof _personExternalIdsSchema\n> {}\n\n/**\n * ### Person External IDs\n *\n * A person's ids and social handles on other sites (`getPersonExternalIds`).\n */\nexport const personExternalIdsSchema = schema<PersonExternalIds>(\n _personExternalIdsSchema\n);\n"],"mappings":";;;;AAIA,MAAM,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC;AAEhC,MAAM,2BAA2B,EAAE,OAAO;CACxC,IAAI;;CAEJ,QAAQ;CACR,aAAa;CACb,YAAY;CACZ,UAAU,EAAE,SAAS,OAAO;CAC5B,YAAY;CACZ,YAAY;CACZ,aAAa;;CAEb,UAAU;CACV,WAAW;;CAEX,WAAW;AACb,CAAC;;;;;;AAWD,MAAa,0BAA0B,OACrC,wBACF"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { PagedResults } from "../../types/PagedResults.mjs";
|
|
2
|
+
import { MovieMediaListItem } from "../../movie/types/MovieListItem.mjs";
|
|
3
|
+
import { TvMediaListItem } from "../../tv/types/TvListItem.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
export declare const personListItemEntries: {
|
|
6
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
7
|
+
/** TMDB's gender code (`0` when not set). */
|
|
8
|
+
readonly gender: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
9
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
10
|
+
readonly knownForDepartment: v.StringSchema<undefined>;
|
|
11
|
+
readonly name: v.StringSchema<undefined>;
|
|
12
|
+
readonly originalName: v.StringSchema<undefined>;
|
|
13
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
14
|
+
readonly profilePath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
};
|
|
16
|
+
/** The titles a person is best known for, each tagged with its `mediaType`. */
|
|
17
|
+
export declare const knownFor: v.ArraySchema<v.GenericSchema<MovieMediaListItem | TvMediaListItem>, undefined>;
|
|
18
|
+
declare const _personListItemSchema: v.ObjectSchema<{
|
|
19
|
+
readonly knownFor: v.ArraySchema<v.GenericSchema<MovieMediaListItem | TvMediaListItem>, undefined>;
|
|
20
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
21
|
+
/** TMDB's gender code (`0` when not set). */
|
|
22
|
+
readonly gender: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
23
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
24
|
+
readonly knownForDepartment: v.StringSchema<undefined>;
|
|
25
|
+
readonly name: v.StringSchema<undefined>;
|
|
26
|
+
readonly originalName: v.StringSchema<undefined>;
|
|
27
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
28
|
+
readonly profilePath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
export interface PersonListItem extends v.InferOutput<typeof _personListItemSchema> {}
|
|
31
|
+
/**
|
|
32
|
+
* ### Person List Item
|
|
33
|
+
*
|
|
34
|
+
* The summary of a person that `getPopularPeople` and `searchPeople` return, with the titles they're known for. Fetch `getPerson` for the details.
|
|
35
|
+
*/
|
|
36
|
+
export declare const personListItemSchema: v.GenericSchema<PersonListItem>;
|
|
37
|
+
export declare const personMediaListItemEntries: {
|
|
38
|
+
readonly mediaType: v.LiteralSchema<"person", undefined>;
|
|
39
|
+
/** Present in `searchMulti` results, absent from `getTrendingPeople`. */
|
|
40
|
+
readonly knownFor: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<MovieMediaListItem | TvMediaListItem>, undefined>, undefined>;
|
|
41
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
42
|
+
/** TMDB's gender code (`0` when not set). */
|
|
43
|
+
readonly gender: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
44
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
45
|
+
readonly knownForDepartment: v.StringSchema<undefined>;
|
|
46
|
+
readonly name: v.StringSchema<undefined>;
|
|
47
|
+
readonly originalName: v.StringSchema<undefined>;
|
|
48
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
49
|
+
readonly profilePath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
};
|
|
51
|
+
declare const _personMediaListItemSchema: v.ObjectSchema<{
|
|
52
|
+
readonly mediaType: v.LiteralSchema<"person", undefined>;
|
|
53
|
+
/** Present in `searchMulti` results, absent from `getTrendingPeople`. */
|
|
54
|
+
readonly knownFor: v.ExactOptionalSchema<v.ArraySchema<v.GenericSchema<MovieMediaListItem | TvMediaListItem>, undefined>, undefined>;
|
|
55
|
+
readonly adult: v.BooleanSchema<undefined>;
|
|
56
|
+
/** TMDB's gender code (`0` when not set). */
|
|
57
|
+
readonly gender: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
58
|
+
readonly id: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>;
|
|
59
|
+
readonly knownForDepartment: v.StringSchema<undefined>;
|
|
60
|
+
readonly name: v.StringSchema<undefined>;
|
|
61
|
+
readonly originalName: v.StringSchema<undefined>;
|
|
62
|
+
readonly popularity: v.NumberSchema<undefined>;
|
|
63
|
+
readonly profilePath: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
export interface PersonMediaListItem extends v.InferOutput<typeof _personMediaListItemSchema> {}
|
|
66
|
+
/** A person tagged with `mediaType: "person"`, as endpoints that can mix media types return them. */
|
|
67
|
+
export declare const personMediaListItemSchema: v.GenericSchema<PersonMediaListItem>;
|
|
68
|
+
export interface PagedPersonResults extends PagedResults<PersonListItem> {}
|
|
69
|
+
/** A page of {@link PersonListItem}s. */
|
|
70
|
+
export declare const pagedPersonResultsSchema: v.GenericSchema<PagedPersonResults>;
|
|
71
|
+
export interface PagedPersonMediaResults extends PagedResults<PersonMediaListItem> {}
|
|
72
|
+
/** A page of {@link PersonMediaListItem}s (`getTrendingPeople`). */
|
|
73
|
+
export declare const pagedPersonMediaResultsSchema: v.GenericSchema<PagedPersonMediaResults>;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=PersonListItem.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonListItem.d.mts","names":[],"sources":["../../../src/person/types/PersonListItem.ts"],"mappings":";;;;qBAaa;;;;;;;;;;;;qBAaA,UAAQ,EAAA,YAAA,EAAA,cAAA,qBAAA;cAOf,uBAAqB,EAAA;;;;;;;;;;;;iBAKV,uBAAuB,EAAE,mBACjC;;;;;;qBAQI,sBAAoB,EAAA,cAAA;qBAIpB;;;;;;;;;;;;;;cAOP,4BAA0B,EAAA;;;;;;;;;;;;;;iBAEf,4BAA4B,EAAE,mBACtC;;qBAII,2BAAyB,EAAA,cAAA;iBAIrB,2BAA2B,aAAa;;qBAG5C,0BAAwB,EAAA,cAAA;iBAIpB,gCAAgC,aAAa;;qBAGjD,+BAA6B,EAAA,cAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { schema, variantSchema } from "../../validations/schema.mjs";
|
|
2
|
+
import { integer } from "../../validations/integer.mjs";
|
|
3
|
+
import { pagedResults } from "../../types/PagedResults.mjs";
|
|
4
|
+
import { movieMediaListItemSchema } from "../../movie/types/MovieListItem.mjs";
|
|
5
|
+
import { tvMediaListItemSchema } from "../../tv/types/TvListItem.mjs";
|
|
6
|
+
import * as v from "valibot";
|
|
7
|
+
// src/person/types/PersonListItem.ts
|
|
8
|
+
const personListItemEntries = {
|
|
9
|
+
adult: v.boolean(),
|
|
10
|
+
/** TMDB's gender code (`0` when not set). */
|
|
11
|
+
gender: integer,
|
|
12
|
+
id: integer,
|
|
13
|
+
knownForDepartment: v.string(),
|
|
14
|
+
name: v.string(),
|
|
15
|
+
originalName: v.string(),
|
|
16
|
+
popularity: v.number(),
|
|
17
|
+
profilePath: v.nullable(v.string())
|
|
18
|
+
};
|
|
19
|
+
/** The titles a person is best known for, each tagged with its `mediaType`. */
|
|
20
|
+
const knownFor = v.array(variantSchema(`mediaType`, [movieMediaListItemSchema, tvMediaListItemSchema]));
|
|
21
|
+
const _personListItemSchema = v.object({
|
|
22
|
+
...personListItemEntries,
|
|
23
|
+
knownFor
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* ### Person List Item
|
|
27
|
+
*
|
|
28
|
+
* The summary of a person that `getPopularPeople` and `searchPeople` return, with the titles they're known for. Fetch `getPerson` for the details.
|
|
29
|
+
*/
|
|
30
|
+
const personListItemSchema = schema(_personListItemSchema);
|
|
31
|
+
const personMediaListItemEntries = {
|
|
32
|
+
...personListItemEntries,
|
|
33
|
+
mediaType: v.literal(`person`),
|
|
34
|
+
/** Present in `searchMulti` results, absent from `getTrendingPeople`. */
|
|
35
|
+
knownFor: v.exactOptional(knownFor)
|
|
36
|
+
};
|
|
37
|
+
const _personMediaListItemSchema = v.object(personMediaListItemEntries);
|
|
38
|
+
/** A person tagged with `mediaType: "person"`, as endpoints that can mix media types return them. */
|
|
39
|
+
const personMediaListItemSchema = schema(_personMediaListItemSchema);
|
|
40
|
+
/** A page of {@link PersonListItem}s. */
|
|
41
|
+
const pagedPersonResultsSchema = schema(pagedResults(personListItemSchema));
|
|
42
|
+
/** A page of {@link PersonMediaListItem}s (`getTrendingPeople`). */
|
|
43
|
+
const pagedPersonMediaResultsSchema = schema(pagedResults(personMediaListItemSchema));
|
|
44
|
+
export { knownFor, pagedPersonMediaResultsSchema, pagedPersonResultsSchema, personListItemEntries, personListItemSchema, personMediaListItemEntries, personMediaListItemSchema };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=PersonListItem.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonListItem.mjs","names":[],"sources":["../../../src/person/types/PersonListItem.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema, variantSchema } from \"../../validations/schema.js\";\nimport { integer } from \"../../validations/integer.js\";\nimport { pagedResults, type PagedResults } from \"../../types/PagedResults.js\";\nimport {\n movieMediaListItemSchema,\n type MovieMediaListItem\n} from \"../../movie/types/MovieListItem.js\";\nimport {\n tvMediaListItemSchema,\n type TvMediaListItem\n} from \"../../tv/types/TvListItem.js\";\n\nexport const personListItemEntries = {\n adult: v.boolean(),\n /** TMDB's gender code (`0` when not set). */\n gender: integer,\n id: integer,\n knownForDepartment: v.string(),\n name: v.string(),\n originalName: v.string(),\n popularity: v.number(),\n profilePath: v.nullable(v.string())\n} as const;\n\n/** The titles a person is best known for, each tagged with its `mediaType`. */\nexport const knownFor = v.array(\n variantSchema<MovieMediaListItem | TvMediaListItem>(`mediaType`, [\n movieMediaListItemSchema,\n tvMediaListItemSchema\n ])\n);\n\nconst _personListItemSchema = v.object({\n ...personListItemEntries,\n knownFor\n});\n\nexport interface PersonListItem extends v.InferOutput<\n typeof _personListItemSchema\n> {}\n\n/**\n * ### Person List Item\n *\n * The summary of a person that `getPopularPeople` and `searchPeople` return, with the titles they're known for. Fetch `getPerson` for the details.\n */\nexport const personListItemSchema = schema<PersonListItem>(\n _personListItemSchema\n);\n\nexport const personMediaListItemEntries = {\n ...personListItemEntries,\n mediaType: v.literal(`person`),\n /** Present in `searchMulti` results, absent from `getTrendingPeople`. */\n knownFor: v.exactOptional(knownFor)\n} as const;\n\nconst _personMediaListItemSchema = v.object(personMediaListItemEntries);\n\nexport interface PersonMediaListItem extends v.InferOutput<\n typeof _personMediaListItemSchema\n> {}\n\n/** A person tagged with `mediaType: \"person\"`, as endpoints that can mix media types return them. */\nexport const personMediaListItemSchema = schema<PersonMediaListItem>(\n _personMediaListItemSchema\n);\n\nexport interface PagedPersonResults extends PagedResults<PersonListItem> {}\n\n/** A page of {@link PersonListItem}s. */\nexport const pagedPersonResultsSchema = schema<PagedPersonResults>(\n pagedResults(personListItemSchema)\n);\n\nexport interface PagedPersonMediaResults extends PagedResults<PersonMediaListItem> {}\n\n/** A page of {@link PersonMediaListItem}s (`getTrendingPeople`). */\nexport const pagedPersonMediaResultsSchema = schema<PagedPersonMediaResults>(\n pagedResults(personMediaListItemSchema)\n);\n"],"mappings":";;;;;;;AAaA,MAAa,wBAAwB;CACnC,OAAO,EAAE,QAAQ;;CAEjB,QAAQ;CACR,IAAI;CACJ,oBAAoB,EAAE,OAAO;CAC7B,MAAM,EAAE,OAAO;CACf,cAAc,EAAE,OAAO;CACvB,YAAY,EAAE,OAAO;CACrB,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;AACpC;;AAGA,MAAa,WAAW,EAAE,MACxB,cAAoD,aAAa,CAC/D,0BACA,qBACF,CAAC,CACH;AAEA,MAAM,wBAAwB,EAAE,OAAO;CACrC,GAAG;CACH;AACF,CAAC;;;;;;AAWD,MAAa,uBAAuB,OAClC,qBACF;AAEA,MAAa,6BAA6B;CACxC,GAAG;CACH,WAAW,EAAE,QAAQ,QAAQ;;CAE7B,UAAU,EAAE,cAAc,QAAQ;AACpC;AAEA,MAAM,6BAA6B,EAAE,OAAO,0BAA0B;;AAOtE,MAAa,4BAA4B,OACvC,0BACF;;AAKA,MAAa,2BAA2B,OACtC,aAAa,oBAAoB,CACnC;;AAKA,MAAa,gCAAgC,OAC3C,aAAa,yBAAyB,CACxC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Translations } from "../../types/Translation.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
declare const _personTranslationDataSchema: v.ObjectSchema<{
|
|
4
|
+
readonly name: v.StringSchema<undefined>;
|
|
5
|
+
readonly biography: v.StringSchema<undefined>;
|
|
6
|
+
/** Whether this is the person's primary language. */
|
|
7
|
+
readonly primary: v.BooleanSchema<undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
export interface PersonTranslationData extends v.InferOutput<typeof _personTranslationDataSchema> {}
|
|
10
|
+
export interface PersonTranslations extends Translations<PersonTranslationData> {}
|
|
11
|
+
/**
|
|
12
|
+
* ### Person Translations
|
|
13
|
+
*
|
|
14
|
+
* A person's name and biography in each language TMDB has them in (`getPersonTranslations`). Untranslated fields are `""`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const personTranslationsSchema: v.GenericSchema<PersonTranslations>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=PersonTranslations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonTranslations.d.mts","names":[],"sources":["../../../src/person/types/PersonTranslations.ts"],"mappings":";;cAIM,8BAA4B,EAAA;;;;;;iBAOjB,8BAA8B,EAAE,mBACxC;iBAGQ,2BAA2B,aAAa;;;;;;qBAO5C,0BAAwB,EAAA,cAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { schema } from "../../validations/schema.mjs";
|
|
2
|
+
import { translations } from "../../types/Translation.mjs";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// src/person/types/PersonTranslations.ts
|
|
5
|
+
const _personTranslationDataSchema = v.object({
|
|
6
|
+
name: v.string(),
|
|
7
|
+
biography: v.string(),
|
|
8
|
+
/** Whether this is the person's primary language. */
|
|
9
|
+
primary: v.boolean()
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* ### Person Translations
|
|
13
|
+
*
|
|
14
|
+
* A person's name and biography in each language TMDB has them in (`getPersonTranslations`). Untranslated fields are `""`.
|
|
15
|
+
*/
|
|
16
|
+
const personTranslationsSchema = schema(translations(_personTranslationDataSchema));
|
|
17
|
+
export { personTranslationsSchema };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=PersonTranslations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonTranslations.mjs","names":[],"sources":["../../../src/person/types/PersonTranslations.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { schema } from \"../../validations/schema.js\";\nimport { translations, type Translations } from \"../../types/Translation.js\";\n\nconst _personTranslationDataSchema = v.object({\n name: v.string(),\n biography: v.string(),\n /** Whether this is the person's primary language. */\n primary: v.boolean()\n});\n\nexport interface PersonTranslationData extends v.InferOutput<\n typeof _personTranslationDataSchema\n> {}\n\nexport interface PersonTranslations extends Translations<PersonTranslationData> {}\n\n/**\n * ### Person Translations\n *\n * A person's name and biography in each language TMDB has them in (`getPersonTranslations`). Untranslated fields are `\"\"`.\n */\nexport const personTranslationsSchema = schema<PersonTranslations>(\n translations(_personTranslationDataSchema)\n);\n"],"mappings":";;;;AAIA,MAAM,+BAA+B,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO;CACf,WAAW,EAAE,OAAO;;CAEpB,SAAS,EAAE,QAAQ;AACrB,CAAC;;;;;;AAaD,MAAa,2BAA2B,OACtC,aAAa,4BAA4B,CAC3C"}
|