@tmdb-graphql-api/resolvers 0.0.14 → 0.0.16
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/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/production.analysis.txt +148 -148
- package/dist/types/cjs/helpers/decodeId.d.cts +1 -1
- package/dist/types/cjs/helpers/decodeId.d.cts.map +1 -1
- package/dist/types/cjs/helpers/encodeId.d.cts +1 -1
- package/dist/types/cjs/helpers/encodeId.d.cts.map +1 -1
- package/dist/types/cjs/helpers/formatDirectionalSuffixes.d.cts +1 -1
- package/dist/types/cjs/helpers/formatDirectionalSuffixes.d.cts.map +1 -1
- package/dist/types/cjs/helpers/formatQueryParams.d.cts +1 -1
- package/dist/types/cjs/helpers/formatQueryParams.d.cts.map +1 -1
- package/dist/types/cjs/helpers/getAppendToResponseKeys.d.cts +2 -2
- package/dist/types/cjs/helpers/getAppendToResponseKeys.d.cts.map +1 -1
- package/dist/types/cjs/helpers/getTvIdSeasonAndEpisode.d.cts +2 -2
- package/dist/types/cjs/helpers/getTvIdSeasonAndEpisode.d.cts.map +1 -1
- package/dist/types/cjs/helpers/makeFallbackFieldResolvers.d.cts +1 -1
- package/dist/types/cjs/helpers/makeFallbackFieldResolvers.d.cts.map +1 -1
- package/dist/types/cjs/helpers/snakeCasePropNames.d.cts +2 -2
- package/dist/types/cjs/helpers/snakeCasePropNames.d.cts.map +1 -1
- package/dist/types/cjs/main.d.cts +1 -1
- package/dist/types/cjs/main.d.cts.map +1 -1
- package/dist/types/cjs/queries/certifications.d.cts +3 -3
- package/dist/types/cjs/queries/certifications.d.cts.map +1 -1
- package/dist/types/cjs/queries/collection.d.cts +1708 -1708
- package/dist/types/cjs/queries/collection.d.cts.map +1 -1
- package/dist/types/cjs/queries/collectionImages.d.cts +10 -10
- package/dist/types/cjs/queries/collectionImages.d.cts.map +1 -1
- package/dist/types/cjs/queries/collectionTranslations.d.cts +7 -7
- package/dist/types/cjs/queries/collectionTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/company.d.cts +8 -8
- package/dist/types/cjs/queries/company.d.cts.map +1 -1
- package/dist/types/cjs/queries/companyAlternativeNames.d.cts +5 -5
- package/dist/types/cjs/queries/companyAlternativeNames.d.cts.map +1 -1
- package/dist/types/cjs/queries/companyLogos.d.cts +8 -8
- package/dist/types/cjs/queries/configuration.d.cts +8 -8
- package/dist/types/cjs/queries/configuration.d.cts.map +1 -1
- package/dist/types/cjs/queries/configurationCountries.d.cts +2 -2
- package/dist/types/cjs/queries/configurationCountries.d.cts.map +1 -1
- package/dist/types/cjs/queries/configurationJobs.d.cts +2 -2
- package/dist/types/cjs/queries/configurationJobs.d.cts.map +1 -1
- package/dist/types/cjs/queries/configurationLanguages.d.cts +2 -2
- package/dist/types/cjs/queries/configurationLanguages.d.cts.map +1 -1
- package/dist/types/cjs/queries/configurationPrimaryTranslations.d.cts +2 -2
- package/dist/types/cjs/queries/configurationPrimaryTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/configurationTimezones.d.cts +2 -2
- package/dist/types/cjs/queries/configurationTimezones.d.cts.map +1 -1
- package/dist/types/cjs/queries/credit.d.cts +2054 -2054
- package/dist/types/cjs/queries/credit.d.cts.map +1 -1
- package/dist/types/cjs/queries/discoverMovies.d.cts +2 -2
- package/dist/types/cjs/queries/discoverMovies.d.cts.map +1 -1
- package/dist/types/cjs/queries/discoverTv.d.cts +2 -2
- package/dist/types/cjs/queries/discoverTv.d.cts.map +1 -1
- package/dist/types/cjs/queries/episode.d.cts +50 -50
- package/dist/types/cjs/queries/episode.d.cts.map +1 -1
- package/dist/types/cjs/queries/episodeCredits.d.cts +21 -21
- package/dist/types/cjs/queries/episodeCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/episodeExternalIds.d.cts +10 -10
- package/dist/types/cjs/queries/episodeExternalIds.d.cts.map +1 -1
- package/dist/types/cjs/queries/episodeStills.d.cts +3 -3
- package/dist/types/cjs/queries/episodeStills.d.cts.map +1 -1
- package/dist/types/cjs/queries/episodeTranslations.d.cts +7 -7
- package/dist/types/cjs/queries/episodeTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/episodeVideos.d.cts +4 -4
- package/dist/types/cjs/queries/episodeVideos.d.cts.map +1 -1
- package/dist/types/cjs/queries/find.d.cts +897 -897
- package/dist/types/cjs/queries/find.d.cts.map +1 -1
- package/dist/types/cjs/queries/genres.d.cts +3 -3
- package/dist/types/cjs/queries/genres.d.cts.map +1 -1
- package/dist/types/cjs/queries/keyword.d.cts +3 -3
- package/dist/types/cjs/queries/keyword.d.cts.map +1 -1
- package/dist/types/cjs/queries/movie.d.cts +1799 -1799
- package/dist/types/cjs/queries/movie.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieAlternativeTitles.d.cts +4 -4
- package/dist/types/cjs/queries/movieAlternativeTitles.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieCredits.d.cts +21 -21
- package/dist/types/cjs/queries/movieCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieExternalIds.d.cts +10 -10
- package/dist/types/cjs/queries/movieExternalIds.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieImages.d.cts +3 -3
- package/dist/types/cjs/queries/movieImages.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieKeywords.d.cts +3 -3
- package/dist/types/cjs/queries/movieKeywords.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieRecommendations.d.cts +921 -921
- package/dist/types/cjs/queries/movieRecommendations.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieReleaseDates.d.cts +2 -2
- package/dist/types/cjs/queries/movieReleaseDates.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieReviews.d.cts +921 -921
- package/dist/types/cjs/queries/movieReviews.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieSimilarMovies.d.cts +921 -921
- package/dist/types/cjs/queries/movieSimilarMovies.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieTranslations.d.cts +7 -7
- package/dist/types/cjs/queries/movieTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieVideos.d.cts +4 -4
- package/dist/types/cjs/queries/movieVideos.d.cts.map +1 -1
- package/dist/types/cjs/queries/movieWatchProviders.d.cts +722 -722
- package/dist/types/cjs/queries/movieWatchProviders.d.cts.map +1 -1
- package/dist/types/cjs/queries/network.d.cts +13 -13
- package/dist/types/cjs/queries/network.d.cts.map +1 -1
- package/dist/types/cjs/queries/networkAlternativeNames.d.cts +5 -5
- package/dist/types/cjs/queries/networkAlternativeNames.d.cts.map +1 -1
- package/dist/types/cjs/queries/networkLogos.d.cts +10 -10
- package/dist/types/cjs/queries/networkLogos.d.cts.map +1 -1
- package/dist/types/cjs/queries/person.d.cts +17 -17
- package/dist/types/cjs/queries/person.d.cts.map +1 -1
- package/dist/types/cjs/queries/personCombinedCredits.d.cts +2 -2
- package/dist/types/cjs/queries/personCombinedCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/personExternalIds.d.cts +2 -2
- package/dist/types/cjs/queries/personExternalIds.d.cts.map +1 -1
- package/dist/types/cjs/queries/personMovieCredits.d.cts +2 -2
- package/dist/types/cjs/queries/personMovieCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/personProfiles.d.cts +3 -3
- package/dist/types/cjs/queries/personProfiles.d.cts.map +1 -1
- package/dist/types/cjs/queries/personTranslations.d.cts +7 -7
- package/dist/types/cjs/queries/personTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/personTvCredits.d.cts +2 -2
- package/dist/types/cjs/queries/personTvCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/rated.d.cts +2 -2
- package/dist/types/cjs/queries/rated.d.cts.map +1 -1
- package/dist/types/cjs/queries/review.d.cts +14 -14
- package/dist/types/cjs/queries/review.d.cts.map +1 -1
- package/dist/types/cjs/queries/search.d.cts +2 -2
- package/dist/types/cjs/queries/search.d.cts.map +1 -1
- package/dist/types/cjs/queries/season.d.cts +145 -145
- package/dist/types/cjs/queries/season.d.cts.map +1 -1
- package/dist/types/cjs/queries/seasonCredits.d.cts +21 -21
- package/dist/types/cjs/queries/seasonCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/seasonEpisodeCount.d.cts +1 -1
- package/dist/types/cjs/queries/seasonEpisodeCount.d.cts.map +1 -1
- package/dist/types/cjs/queries/seasonExternalIds.d.cts +2 -2
- package/dist/types/cjs/queries/seasonExternalIds.d.cts.map +1 -1
- package/dist/types/cjs/queries/seasonPosters.d.cts +3 -3
- package/dist/types/cjs/queries/seasonPosters.d.cts.map +1 -1
- package/dist/types/cjs/queries/seasonTranslations.d.cts +7 -7
- package/dist/types/cjs/queries/seasonTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/seasonVideos.d.cts +4 -4
- package/dist/types/cjs/queries/seasonVideos.d.cts.map +1 -1
- package/dist/types/cjs/queries/trending.d.cts +2 -2
- package/dist/types/cjs/queries/trending.d.cts.map +1 -1
- package/dist/types/cjs/queries/tv.d.cts +5179 -5179
- package/dist/types/cjs/queries/tv.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvAlternativeTitles.d.cts +5 -5
- package/dist/types/cjs/queries/tvAlternativeTitles.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvContentRatings.d.cts +2 -2
- package/dist/types/cjs/queries/tvContentRatings.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvCredits.d.cts +21 -21
- package/dist/types/cjs/queries/tvCredits.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvEpisodeGroups.d.cts +16 -16
- package/dist/types/cjs/queries/tvEpisodeGroups.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvExternalIds.d.cts +10 -10
- package/dist/types/cjs/queries/tvExternalIds.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvImages.d.cts +10 -10
- package/dist/types/cjs/queries/tvImages.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvKeywords.d.cts +2 -2
- package/dist/types/cjs/queries/tvKeywords.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvRecommendations.d.cts +2651 -2651
- package/dist/types/cjs/queries/tvRecommendations.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvReviews.d.cts +2651 -2651
- package/dist/types/cjs/queries/tvReviews.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvSimilarTvShows.d.cts +2651 -2651
- package/dist/types/cjs/queries/tvSimilarTvShows.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvTranslations.d.cts +7 -7
- package/dist/types/cjs/queries/tvTranslations.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvVideos.d.cts +4 -4
- package/dist/types/cjs/queries/tvVideos.d.cts.map +1 -1
- package/dist/types/cjs/queries/tvWatchProviders.d.cts +722 -722
- package/dist/types/cjs/queries/tvWatchProviders.d.cts.map +1 -1
- package/dist/types/cjs/queries/videoType.d.cts +1 -1
- package/dist/types/cjs/queries/videoType.d.cts.map +1 -1
- package/dist/types/cjs/types.d.cts +6 -10
- package/dist/types/cjs/types.d.cts.map +1 -1
- package/dist/types/esm/helpers/decodeId.d.ts +1 -1
- package/dist/types/esm/helpers/decodeId.d.ts.map +1 -1
- package/dist/types/esm/helpers/encodeId.d.ts +1 -1
- package/dist/types/esm/helpers/encodeId.d.ts.map +1 -1
- package/dist/types/esm/helpers/formatDirectionalSuffixes.d.ts +1 -1
- package/dist/types/esm/helpers/formatDirectionalSuffixes.d.ts.map +1 -1
- package/dist/types/esm/helpers/formatQueryParams.d.ts +1 -1
- package/dist/types/esm/helpers/formatQueryParams.d.ts.map +1 -1
- package/dist/types/esm/helpers/getAppendToResponseKeys.d.ts +2 -2
- package/dist/types/esm/helpers/getAppendToResponseKeys.d.ts.map +1 -1
- package/dist/types/esm/helpers/getTvIdSeasonAndEpisode.d.ts +2 -2
- package/dist/types/esm/helpers/getTvIdSeasonAndEpisode.d.ts.map +1 -1
- package/dist/types/esm/helpers/makeFallbackFieldResolvers.d.ts +1 -1
- package/dist/types/esm/helpers/makeFallbackFieldResolvers.d.ts.map +1 -1
- package/dist/types/esm/helpers/snakeCasePropNames.d.ts +2 -2
- package/dist/types/esm/helpers/snakeCasePropNames.d.ts.map +1 -1
- package/dist/types/esm/main.d.ts +1 -1
- package/dist/types/esm/main.d.ts.map +1 -1
- package/dist/types/esm/queries/certifications.d.ts +3 -3
- package/dist/types/esm/queries/certifications.d.ts.map +1 -1
- package/dist/types/esm/queries/collection.d.ts +1708 -1708
- package/dist/types/esm/queries/collection.d.ts.map +1 -1
- package/dist/types/esm/queries/collectionImages.d.ts +10 -10
- package/dist/types/esm/queries/collectionImages.d.ts.map +1 -1
- package/dist/types/esm/queries/collectionTranslations.d.ts +7 -7
- package/dist/types/esm/queries/collectionTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/company.d.ts +8 -8
- package/dist/types/esm/queries/company.d.ts.map +1 -1
- package/dist/types/esm/queries/companyAlternativeNames.d.ts +5 -5
- package/dist/types/esm/queries/companyAlternativeNames.d.ts.map +1 -1
- package/dist/types/esm/queries/companyLogos.d.ts +8 -8
- package/dist/types/esm/queries/configuration.d.ts +8 -8
- package/dist/types/esm/queries/configuration.d.ts.map +1 -1
- package/dist/types/esm/queries/configurationCountries.d.ts +2 -2
- package/dist/types/esm/queries/configurationCountries.d.ts.map +1 -1
- package/dist/types/esm/queries/configurationJobs.d.ts +2 -2
- package/dist/types/esm/queries/configurationJobs.d.ts.map +1 -1
- package/dist/types/esm/queries/configurationLanguages.d.ts +2 -2
- package/dist/types/esm/queries/configurationLanguages.d.ts.map +1 -1
- package/dist/types/esm/queries/configurationPrimaryTranslations.d.ts +2 -2
- package/dist/types/esm/queries/configurationPrimaryTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/configurationTimezones.d.ts +2 -2
- package/dist/types/esm/queries/configurationTimezones.d.ts.map +1 -1
- package/dist/types/esm/queries/credit.d.ts +2054 -2054
- package/dist/types/esm/queries/credit.d.ts.map +1 -1
- package/dist/types/esm/queries/discoverMovies.d.ts +2 -2
- package/dist/types/esm/queries/discoverMovies.d.ts.map +1 -1
- package/dist/types/esm/queries/discoverTv.d.ts +2 -2
- package/dist/types/esm/queries/discoverTv.d.ts.map +1 -1
- package/dist/types/esm/queries/episode.d.ts +50 -50
- package/dist/types/esm/queries/episode.d.ts.map +1 -1
- package/dist/types/esm/queries/episodeCredits.d.ts +21 -21
- package/dist/types/esm/queries/episodeCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/episodeExternalIds.d.ts +10 -10
- package/dist/types/esm/queries/episodeExternalIds.d.ts.map +1 -1
- package/dist/types/esm/queries/episodeStills.d.ts +3 -3
- package/dist/types/esm/queries/episodeStills.d.ts.map +1 -1
- package/dist/types/esm/queries/episodeTranslations.d.ts +7 -7
- package/dist/types/esm/queries/episodeTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/episodeVideos.d.ts +4 -4
- package/dist/types/esm/queries/episodeVideos.d.ts.map +1 -1
- package/dist/types/esm/queries/find.d.ts +897 -897
- package/dist/types/esm/queries/find.d.ts.map +1 -1
- package/dist/types/esm/queries/genres.d.ts +3 -3
- package/dist/types/esm/queries/genres.d.ts.map +1 -1
- package/dist/types/esm/queries/keyword.d.ts +3 -3
- package/dist/types/esm/queries/keyword.d.ts.map +1 -1
- package/dist/types/esm/queries/movie.d.ts +1799 -1799
- package/dist/types/esm/queries/movie.d.ts.map +1 -1
- package/dist/types/esm/queries/movieAlternativeTitles.d.ts +4 -4
- package/dist/types/esm/queries/movieAlternativeTitles.d.ts.map +1 -1
- package/dist/types/esm/queries/movieCredits.d.ts +21 -21
- package/dist/types/esm/queries/movieCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/movieExternalIds.d.ts +10 -10
- package/dist/types/esm/queries/movieExternalIds.d.ts.map +1 -1
- package/dist/types/esm/queries/movieImages.d.ts +3 -3
- package/dist/types/esm/queries/movieImages.d.ts.map +1 -1
- package/dist/types/esm/queries/movieKeywords.d.ts +3 -3
- package/dist/types/esm/queries/movieKeywords.d.ts.map +1 -1
- package/dist/types/esm/queries/movieRecommendations.d.ts +921 -921
- package/dist/types/esm/queries/movieRecommendations.d.ts.map +1 -1
- package/dist/types/esm/queries/movieReleaseDates.d.ts +2 -2
- package/dist/types/esm/queries/movieReleaseDates.d.ts.map +1 -1
- package/dist/types/esm/queries/movieReviews.d.ts +921 -921
- package/dist/types/esm/queries/movieReviews.d.ts.map +1 -1
- package/dist/types/esm/queries/movieSimilarMovies.d.ts +921 -921
- package/dist/types/esm/queries/movieSimilarMovies.d.ts.map +1 -1
- package/dist/types/esm/queries/movieTranslations.d.ts +7 -7
- package/dist/types/esm/queries/movieTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/movieVideos.d.ts +4 -4
- package/dist/types/esm/queries/movieVideos.d.ts.map +1 -1
- package/dist/types/esm/queries/movieWatchProviders.d.ts +722 -722
- package/dist/types/esm/queries/movieWatchProviders.d.ts.map +1 -1
- package/dist/types/esm/queries/network.d.ts +13 -13
- package/dist/types/esm/queries/network.d.ts.map +1 -1
- package/dist/types/esm/queries/networkAlternativeNames.d.ts +5 -5
- package/dist/types/esm/queries/networkAlternativeNames.d.ts.map +1 -1
- package/dist/types/esm/queries/networkLogos.d.ts +10 -10
- package/dist/types/esm/queries/networkLogos.d.ts.map +1 -1
- package/dist/types/esm/queries/person.d.ts +17 -17
- package/dist/types/esm/queries/person.d.ts.map +1 -1
- package/dist/types/esm/queries/personCombinedCredits.d.ts +2 -2
- package/dist/types/esm/queries/personCombinedCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/personExternalIds.d.ts +2 -2
- package/dist/types/esm/queries/personExternalIds.d.ts.map +1 -1
- package/dist/types/esm/queries/personMovieCredits.d.ts +2 -2
- package/dist/types/esm/queries/personMovieCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/personProfiles.d.ts +3 -3
- package/dist/types/esm/queries/personProfiles.d.ts.map +1 -1
- package/dist/types/esm/queries/personTranslations.d.ts +7 -7
- package/dist/types/esm/queries/personTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/personTvCredits.d.ts +2 -2
- package/dist/types/esm/queries/personTvCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/rated.d.ts +2 -2
- package/dist/types/esm/queries/rated.d.ts.map +1 -1
- package/dist/types/esm/queries/review.d.ts +14 -14
- package/dist/types/esm/queries/review.d.ts.map +1 -1
- package/dist/types/esm/queries/search.d.ts +2 -2
- package/dist/types/esm/queries/search.d.ts.map +1 -1
- package/dist/types/esm/queries/season.d.ts +145 -145
- package/dist/types/esm/queries/season.d.ts.map +1 -1
- package/dist/types/esm/queries/seasonCredits.d.ts +21 -21
- package/dist/types/esm/queries/seasonCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/seasonEpisodeCount.d.ts +1 -1
- package/dist/types/esm/queries/seasonEpisodeCount.d.ts.map +1 -1
- package/dist/types/esm/queries/seasonExternalIds.d.ts +2 -2
- package/dist/types/esm/queries/seasonExternalIds.d.ts.map +1 -1
- package/dist/types/esm/queries/seasonPosters.d.ts +3 -3
- package/dist/types/esm/queries/seasonPosters.d.ts.map +1 -1
- package/dist/types/esm/queries/seasonTranslations.d.ts +7 -7
- package/dist/types/esm/queries/seasonTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/seasonVideos.d.ts +4 -4
- package/dist/types/esm/queries/seasonVideos.d.ts.map +1 -1
- package/dist/types/esm/queries/trending.d.ts +2 -2
- package/dist/types/esm/queries/trending.d.ts.map +1 -1
- package/dist/types/esm/queries/tv.d.ts +5179 -5179
- package/dist/types/esm/queries/tv.d.ts.map +1 -1
- package/dist/types/esm/queries/tvAlternativeTitles.d.ts +5 -5
- package/dist/types/esm/queries/tvAlternativeTitles.d.ts.map +1 -1
- package/dist/types/esm/queries/tvContentRatings.d.ts +2 -2
- package/dist/types/esm/queries/tvContentRatings.d.ts.map +1 -1
- package/dist/types/esm/queries/tvCredits.d.ts +21 -21
- package/dist/types/esm/queries/tvCredits.d.ts.map +1 -1
- package/dist/types/esm/queries/tvEpisodeGroups.d.ts +16 -16
- package/dist/types/esm/queries/tvEpisodeGroups.d.ts.map +1 -1
- package/dist/types/esm/queries/tvExternalIds.d.ts +10 -10
- package/dist/types/esm/queries/tvExternalIds.d.ts.map +1 -1
- package/dist/types/esm/queries/tvImages.d.ts +10 -10
- package/dist/types/esm/queries/tvImages.d.ts.map +1 -1
- package/dist/types/esm/queries/tvKeywords.d.ts +2 -2
- package/dist/types/esm/queries/tvKeywords.d.ts.map +1 -1
- package/dist/types/esm/queries/tvRecommendations.d.ts +2651 -2651
- package/dist/types/esm/queries/tvRecommendations.d.ts.map +1 -1
- package/dist/types/esm/queries/tvReviews.d.ts +2651 -2651
- package/dist/types/esm/queries/tvReviews.d.ts.map +1 -1
- package/dist/types/esm/queries/tvSimilarTvShows.d.ts +2651 -2651
- package/dist/types/esm/queries/tvSimilarTvShows.d.ts.map +1 -1
- package/dist/types/esm/queries/tvTranslations.d.ts +7 -7
- package/dist/types/esm/queries/tvTranslations.d.ts.map +1 -1
- package/dist/types/esm/queries/tvVideos.d.ts +4 -4
- package/dist/types/esm/queries/tvVideos.d.ts.map +1 -1
- package/dist/types/esm/queries/tvWatchProviders.d.ts +722 -722
- package/dist/types/esm/queries/tvWatchProviders.d.ts.map +1 -1
- package/dist/types/esm/queries/videoType.d.ts +1 -1
- package/dist/types/esm/queries/videoType.d.ts.map +1 -1
- package/dist/types/esm/types.d.ts +6 -10
- package/dist/types/esm/types.d.ts.map +1 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/__testUtils__/helpers/buildEndpoint.ts +1 -1
- package/src/helpers/decodeId.ts +1 -1
- package/src/helpers/encodeId.ts +1 -1
- package/src/helpers/formatDirectionalSuffixes.ts +2 -2
- package/src/helpers/formatQueryParams.ts +1 -1
- package/src/helpers/getAppendToResponseKeys.ts +2 -2
- package/src/helpers/getTvIdSeasonAndEpisode.ts +2 -2
- package/src/helpers/makeFallbackFieldResolvers.ts +1 -1
- package/src/helpers/snakeCasePropNames.ts +2 -2
- package/src/main.ts +8 -2
- package/src/queries/certifications.test.ts +8 -7
- package/src/queries/certifications.ts +3 -4
- package/src/queries/collection.test.ts +3 -3
- package/src/queries/collection.ts +3 -4
- package/src/queries/collectionImages.test.ts +2 -2
- package/src/queries/collectionImages.ts +2 -3
- package/src/queries/collectionTranslations.test.ts +3 -3
- package/src/queries/collectionTranslations.ts +2 -3
- package/src/queries/company.test.ts +3 -3
- package/src/queries/company.ts +3 -4
- package/src/queries/companyAlternativeNames.test.ts +3 -3
- package/src/queries/companyAlternativeNames.ts +2 -3
- package/src/queries/companyLogos.test.ts +3 -3
- package/src/queries/configuration.test.ts +3 -3
- package/src/queries/configuration.ts +2 -3
- package/src/queries/configurationCountries.test.ts +3 -3
- package/src/queries/configurationCountries.ts +2 -3
- package/src/queries/configurationJobs.test.ts +3 -3
- package/src/queries/configurationJobs.ts +2 -3
- package/src/queries/configurationLanguages.test.ts +3 -3
- package/src/queries/configurationLanguages.ts +2 -3
- package/src/queries/configurationPrimaryTranslations.test.ts +3 -3
- package/src/queries/configurationPrimaryTranslations.ts +2 -3
- package/src/queries/configurationTimezones.test.ts +3 -3
- package/src/queries/configurationTimezones.ts +2 -3
- package/src/queries/credit.test.ts +3 -3
- package/src/queries/credit.ts +3 -4
- package/src/queries/discoverMovies.test.ts +5 -5
- package/src/queries/discoverMovies.ts +2 -2
- package/src/queries/discoverTv.test.ts +5 -5
- package/src/queries/discoverTv.ts +2 -2
- package/src/queries/episode.test.ts +3 -3
- package/src/queries/episode.ts +3 -4
- package/src/queries/episodeCredits.test.ts +4 -4
- package/src/queries/episodeCredits.ts +2 -3
- package/src/queries/episodeExternalIds.test.ts +4 -4
- package/src/queries/episodeExternalIds.ts +2 -3
- package/src/queries/episodeStills.test.ts +4 -4
- package/src/queries/episodeStills.ts +2 -3
- package/src/queries/episodeTranslations.test.ts +4 -4
- package/src/queries/episodeTranslations.ts +2 -3
- package/src/queries/episodeVideos.test.ts +4 -4
- package/src/queries/episodeVideos.ts +2 -3
- package/src/queries/find.test.ts +4 -4
- package/src/queries/find.ts +3 -4
- package/src/queries/genres.test.ts +8 -7
- package/src/queries/genres.ts +3 -4
- package/src/queries/keyword.test.ts +3 -3
- package/src/queries/keyword.ts +3 -4
- package/src/queries/movie.test.ts +3 -3
- package/src/queries/movie.ts +3 -4
- package/src/queries/movieAlternativeTitles.test.ts +4 -4
- package/src/queries/movieAlternativeTitles.ts +3 -4
- package/src/queries/movieCredits.test.ts +4 -4
- package/src/queries/movieCredits.ts +2 -3
- package/src/queries/movieExternalIds.test.ts +4 -4
- package/src/queries/movieExternalIds.ts +2 -3
- package/src/queries/movieImages.test.ts +4 -4
- package/src/queries/movieImages.ts +2 -3
- package/src/queries/movieKeywords.test.ts +4 -4
- package/src/queries/movieKeywords.ts +2 -3
- package/src/queries/movieRecommendations.test.ts +4 -4
- package/src/queries/movieRecommendations.ts +8 -3
- package/src/queries/movieReleaseDates.test.ts +4 -4
- package/src/queries/movieReleaseDates.ts +2 -3
- package/src/queries/movieReviews.test.ts +4 -4
- package/src/queries/movieReviews.ts +9 -3
- package/src/queries/movieSimilarMovies.test.ts +4 -4
- package/src/queries/movieSimilarMovies.ts +8 -3
- package/src/queries/movieTranslations.test.ts +4 -4
- package/src/queries/movieTranslations.ts +2 -3
- package/src/queries/movieVideos.test.ts +4 -4
- package/src/queries/movieVideos.ts +2 -3
- package/src/queries/movieWatchProviders.test.ts +4 -4
- package/src/queries/movieWatchProviders.ts +2 -3
- package/src/queries/network.test.ts +3 -3
- package/src/queries/network.ts +3 -4
- package/src/queries/networkAlternativeNames.test.ts +3 -3
- package/src/queries/networkAlternativeNames.ts +2 -3
- package/src/queries/networkLogos.test.ts +3 -3
- package/src/queries/networkLogos.ts +2 -3
- package/src/queries/person.test.ts +3 -3
- package/src/queries/person.ts +3 -4
- package/src/queries/personCombinedCredits.test.ts +4 -4
- package/src/queries/personCombinedCredits.ts +2 -3
- package/src/queries/personExternalIds.test.ts +4 -4
- package/src/queries/personExternalIds.ts +2 -3
- package/src/queries/personMovieCredits.test.ts +4 -4
- package/src/queries/personMovieCredits.ts +2 -3
- package/src/queries/personProfiles.test.ts +4 -4
- package/src/queries/personProfiles.ts +2 -3
- package/src/queries/personTranslations.test.ts +4 -4
- package/src/queries/personTranslations.ts +2 -3
- package/src/queries/personTvCredits.test.ts +4 -4
- package/src/queries/personTvCredits.ts +2 -3
- package/src/queries/rated.test.ts +8 -7
- package/src/queries/rated.ts +2 -2
- package/src/queries/review.test.ts +3 -3
- package/src/queries/review.ts +3 -4
- package/src/queries/search.test.ts +68 -53
- package/src/queries/search.ts +2 -2
- package/src/queries/season.test.ts +3 -3
- package/src/queries/season.ts +3 -4
- package/src/queries/seasonCredits.test.ts +4 -4
- package/src/queries/seasonCredits.ts +2 -3
- package/src/queries/seasonEpisodeCount.ts +1 -1
- package/src/queries/seasonExternalIds.test.ts +4 -4
- package/src/queries/seasonExternalIds.ts +2 -3
- package/src/queries/seasonPosters.test.ts +4 -4
- package/src/queries/seasonPosters.ts +2 -3
- package/src/queries/seasonTranslations.test.ts +4 -4
- package/src/queries/seasonTranslations.ts +2 -3
- package/src/queries/seasonVideos.test.ts +4 -4
- package/src/queries/seasonVideos.ts +2 -3
- package/src/queries/trending.test.ts +7 -7
- package/src/queries/trending.ts +2 -2
- package/src/queries/tv.test.ts +3 -3
- package/src/queries/tv.ts +3 -4
- package/src/queries/tvAlternativeTitles.test.ts +4 -4
- package/src/queries/tvAlternativeTitles.ts +2 -3
- package/src/queries/tvContentRatings.test.ts +4 -4
- package/src/queries/tvContentRatings.ts +2 -3
- package/src/queries/tvCredits.test.ts +4 -4
- package/src/queries/tvCredits.ts +2 -3
- package/src/queries/tvEpisodeGroups.test.ts +4 -4
- package/src/queries/tvEpisodeGroups.ts +2 -3
- package/src/queries/tvExternalIds.test.ts +4 -4
- package/src/queries/tvExternalIds.ts +2 -3
- package/src/queries/tvImages.test.ts +4 -4
- package/src/queries/tvImages.ts +2 -3
- package/src/queries/tvKeywords.test.ts +4 -4
- package/src/queries/tvKeywords.ts +2 -3
- package/src/queries/tvRecommendations.test.ts +4 -4
- package/src/queries/tvRecommendations.ts +3 -3
- package/src/queries/tvReviews.test.ts +4 -4
- package/src/queries/tvReviews.ts +9 -3
- package/src/queries/tvSimilarTvShows.test.ts +4 -4
- package/src/queries/tvSimilarTvShows.ts +3 -3
- package/src/queries/tvTranslations.test.ts +4 -4
- package/src/queries/tvTranslations.ts +2 -3
- package/src/queries/tvVideos.test.ts +4 -4
- package/src/queries/tvVideos.ts +2 -3
- package/src/queries/tvWatchProviders.test.ts +4 -4
- package/src/queries/tvWatchProviders.ts +2 -3
- package/src/queries/videoType.ts +1 -1
- package/src/types.ts +38 -43
package/src/queries/tv.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { getChildFields, getOperationDefinitions } from '@graphql-box/helpers';
|
|
3
3
|
import { jest } from '@jest/globals';
|
|
4
4
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
@@ -6,12 +6,12 @@ import { tvDetails as tvDetailsQuery } from '@tmdb-graphql-api/test-utils/reques
|
|
|
6
6
|
import { tvDetailsLg as tvDetailsLgQuery } from '@tmdb-graphql-api/test-utils/requests/queries/tv/detailsLg.ts';
|
|
7
7
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
8
8
|
import { mockFetch } from 'fetch-mocked';
|
|
9
|
-
import type
|
|
9
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
10
10
|
import { type GraphQLResolveInfo, OperationTypeNode, parse } from 'graphql';
|
|
11
11
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
12
12
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
13
13
|
import { TV } from '../constants.ts';
|
|
14
|
-
import type
|
|
14
|
+
import { type Context } from '../types.ts';
|
|
15
15
|
import { resolveTv } from './tv.ts';
|
|
16
16
|
|
|
17
17
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/tv.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryTvArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { isUndefined, snakeCase } from 'lodash-es';
|
|
5
4
|
import {
|
|
6
5
|
ALTERNATIVE_TITLES,
|
|
@@ -25,7 +24,7 @@ import {
|
|
|
25
24
|
WATCH_PROVIDERS,
|
|
26
25
|
} from '../constants.ts';
|
|
27
26
|
import { getAppendToResponseKeys } from '../helpers/getAppendToResponseKeys.ts';
|
|
28
|
-
import type
|
|
27
|
+
import { type Context, type RawTv, type RawTvWithAppendToResponse } from '../types.ts';
|
|
29
28
|
|
|
30
29
|
const appendToResponse = {
|
|
31
30
|
[ALTERNATIVE_TITLES]: snakeCase(ALTERNATIVE_TITLES),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvAlternativeTitles from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/alternativeTitles.json';
|
|
5
5
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvAlternativeTitles } from './tvAlternativeTitles.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { snakeCase } from 'lodash-es';
|
|
4
3
|
import { ALTERNATIVE_TITLES, TV } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawTvAlternativeTitles, type RawTvWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveTvAlternativeTitles = async (
|
|
8
7
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvContentRatings from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/contentRatings.json';
|
|
5
5
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvContentRatings } from './tvContentRatings.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { snakeCase } from 'lodash-es';
|
|
4
3
|
import { CONTENT_RATINGS, TV } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawTvContentRatings, type RawTvWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveTvContentRatings = async (
|
|
8
7
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvCredits from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/credits.json';
|
|
5
5
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvCredits } from './tvCredits.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/tvCredits.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { CREDITS, TV } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawTvCredits, type RawTvWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveTvCredits = async (
|
|
7
6
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvEpisodeGroups from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/episodeGroups.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvEpisodeGroups } from './tvEpisodeGroups.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { snakeCase } from 'lodash-es';
|
|
4
3
|
import { EPISODE_GROUPS, TV } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawTvEpisodeGroups, type RawTvWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveTvEpisodeGroups = async (
|
|
8
7
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvExternalIds from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/externalIds.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvExternalIds } from './tvExternalIds.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { snakeCase } from 'lodash-es';
|
|
4
3
|
import { EXTERNAL_IDS, TV } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawTvExternalIds, type RawTvWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveTvExternalIds = async (
|
|
8
7
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvImages from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/images.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvImages } from './tvImages.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/tvImages.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { TV } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawTvImages, type RawTvWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveTvImages = async (
|
|
7
6
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvKeywords from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/keywords.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvKeywords } from './tvKeywords.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { KEYWORDS, TV } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawTvKeywords, type RawTvWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveTvKeywords = async (
|
|
7
6
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvRecommendations from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/recommendations.json';
|
|
6
6
|
import { type Jsonifiable, mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { decode } from 'js-base64';
|
|
10
10
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
11
11
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
12
12
|
import { RECOMMENDATIONS, TV } from '../constants.ts';
|
|
13
|
-
import type
|
|
13
|
+
import { type Context, type RawTv, type RawTvWithAppendToResponse } from '../types.ts';
|
|
14
14
|
import {
|
|
15
15
|
createMakeCursors,
|
|
16
16
|
createResourceResolver,
|
|
@@ -2,11 +2,11 @@ import { Core } from '@cachemap/core';
|
|
|
2
2
|
import { init as map } from '@cachemap/map';
|
|
3
3
|
import { init as reaper } from '@cachemap/reaper';
|
|
4
4
|
import { type Getters, makeConnectionResolver } from '@graphql-box/connection-resolver';
|
|
5
|
-
import type
|
|
6
|
-
import type
|
|
5
|
+
import { type TvRecommendationsArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
|
+
import { type FetchResponse } from 'getta';
|
|
7
7
|
import { encode } from 'js-base64';
|
|
8
8
|
import { RECOMMENDATIONS, TV } from '../constants.ts';
|
|
9
|
-
import type
|
|
9
|
+
import { type Context, type RawTv, type RawTvRecommendations, type RawTvWithAppendToResponse } from '../types.ts';
|
|
10
10
|
|
|
11
11
|
/* eslint-disable camelcase */
|
|
12
12
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvReviews from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/reviews.json';
|
|
6
6
|
import { type Jsonifiable, mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { decode } from 'js-base64';
|
|
10
10
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
11
11
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
12
12
|
import { REVIEWS, TV } from '../constants.ts';
|
|
13
|
-
import type
|
|
13
|
+
import { type Context, type RawTv, type RawTvWithAppendToResponse } from '../types.ts';
|
|
14
14
|
import { createMakeCursors, createResourceResolver, cursorCache, resolveTvReviews } from './tvReviews.ts';
|
|
15
15
|
|
|
16
16
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/tvReviews.ts
CHANGED
|
@@ -2,11 +2,17 @@ import { Core } from '@cachemap/core';
|
|
|
2
2
|
import { init as map } from '@cachemap/map';
|
|
3
3
|
import { init as reaper } from '@cachemap/reaper';
|
|
4
4
|
import { type Getters, makeConnectionResolver } from '@graphql-box/connection-resolver';
|
|
5
|
-
import type
|
|
6
|
-
import type
|
|
5
|
+
import { type TvReviewsArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
|
+
import { type FetchResponse } from 'getta';
|
|
7
7
|
import { encode } from 'js-base64';
|
|
8
8
|
import { REVIEWS, TV } from '../constants.ts';
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
type Context,
|
|
11
|
+
type RawReview,
|
|
12
|
+
type RawTv,
|
|
13
|
+
type RawTvReviews,
|
|
14
|
+
type RawTvWithAppendToResponse,
|
|
15
|
+
} from '../types.ts';
|
|
10
16
|
|
|
11
17
|
/* eslint-disable camelcase */
|
|
12
18
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvSimilarTvShows from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/similarTvShows.json';
|
|
6
6
|
import { type Jsonifiable, mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { decode } from 'js-base64';
|
|
10
10
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
11
11
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
12
12
|
import { SIMILAR, TV } from '../constants.ts';
|
|
13
|
-
import type
|
|
13
|
+
import { type Context, type RawTv, type RawTvWithAppendToResponse } from '../types.ts';
|
|
14
14
|
import { createMakeCursors, createResourceResolver, cursorCache, resolveTvSimilarTvShows } from './tvSimilarTvShows.ts';
|
|
15
15
|
|
|
16
16
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -2,11 +2,11 @@ import { Core } from '@cachemap/core';
|
|
|
2
2
|
import { init as map } from '@cachemap/map';
|
|
3
3
|
import { init as reaper } from '@cachemap/reaper';
|
|
4
4
|
import { type Getters, makeConnectionResolver } from '@graphql-box/connection-resolver';
|
|
5
|
-
import type
|
|
6
|
-
import type
|
|
5
|
+
import { type TvSimilarTvShowsArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
|
+
import { type FetchResponse } from 'getta';
|
|
7
7
|
import { encode } from 'js-base64';
|
|
8
8
|
import { SIMILAR, SIMILAR_TV_SHOWS, TV } from '../constants.ts';
|
|
9
|
-
import type
|
|
9
|
+
import { type Context, type RawTv, type RawTvSimilarTvShows, type RawTvWithAppendToResponse } from '../types.ts';
|
|
10
10
|
|
|
11
11
|
/* eslint-disable camelcase */
|
|
12
12
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvTranslations from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/translations.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvTranslations } from './tvTranslations.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { TRANSLATIONS, TV } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawTvTranslations, type RawTvWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveTvTranslations = async (
|
|
7
6
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvVideos from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/videos.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvVideos } from './tvVideos.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/tvVideos.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { TV, VIDEOS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawTvVideos, type RawTvWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveTvVideos = async (
|
|
7
6
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PlainArray } from '@graphql-box/core';
|
|
2
2
|
import { jest } from '@jest/globals';
|
|
3
3
|
import { type ShortcutMethodNames, WATCH_PROVIDER_PATH } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
|
|
5
5
|
import tvWatchProviders from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/watchProviders.json';
|
|
6
6
|
import { mockFetch } from 'fetch-mocked';
|
|
7
|
-
import type
|
|
8
|
-
import type
|
|
7
|
+
import { type FetchResponse, type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
9
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
10
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context, type RawTvWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveTvWatchProviders } from './tvWatchProviders.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GraphQLError } from 'graphql';
|
|
2
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { TV, WATCH_PROVIDERS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawTvWithAppendToResponse, type RawWatchProviders } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveTvWatchProviders = async (
|
|
7
6
|
obj: RawTvWithAppendToResponse & { __headers?: Headers },
|
package/src/queries/videoType.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -1,47 +1,42 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import
|
|
5
|
-
AlternativeName,
|
|
6
|
-
Collection,
|
|
7
|
-
Company,
|
|
8
|
-
Configuration,
|
|
9
|
-
ContentRating,
|
|
10
|
-
Credit,
|
|
11
|
-
CreditCombinedCast,
|
|
12
|
-
CreditCombinedCrew,
|
|
13
|
-
CreditMovieCast,
|
|
14
|
-
CreditMovieCrew,
|
|
15
|
-
CreditTvCast,
|
|
16
|
-
CreditTvCrew,
|
|
17
|
-
Episode,
|
|
18
|
-
EpisodeGroup,
|
|
19
|
-
ExternalIds,
|
|
20
|
-
Genre,
|
|
21
|
-
Keyword,
|
|
22
|
-
MediaType,
|
|
23
|
-
Movie,
|
|
24
|
-
Network,
|
|
25
|
-
Person,
|
|
26
|
-
RatedMovie,
|
|
27
|
-
RatedTvShow,
|
|
28
|
-
ReleaseDate,
|
|
29
|
-
Review,
|
|
30
|
-
Scalars,
|
|
31
|
-
SearchType,
|
|
32
|
-
Season,
|
|
33
|
-
Tv,
|
|
34
|
-
Video,
|
|
35
|
-
WatchProviderCategories,
|
|
36
|
-
} from '@tmdb-graphql-api/schema';
|
|
37
|
-
import type
|
|
38
|
-
import type
|
|
39
|
-
import type
|
|
40
|
-
|
|
41
|
-
export enum ScreenType {
|
|
42
|
-
MOVIE = 'MOVIE',
|
|
43
|
-
TV = 'TV',
|
|
44
|
-
}
|
|
2
|
+
import { type ExecutionContext, type PlainObject } from '@graphql-box/core';
|
|
3
|
+
import { type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
|
+
import {
|
|
5
|
+
type AlternativeName,
|
|
6
|
+
type Collection,
|
|
7
|
+
type Company,
|
|
8
|
+
type Configuration,
|
|
9
|
+
type ContentRating,
|
|
10
|
+
type Credit,
|
|
11
|
+
type CreditCombinedCast,
|
|
12
|
+
type CreditCombinedCrew,
|
|
13
|
+
type CreditMovieCast,
|
|
14
|
+
type CreditMovieCrew,
|
|
15
|
+
type CreditTvCast,
|
|
16
|
+
type CreditTvCrew,
|
|
17
|
+
type Episode,
|
|
18
|
+
type EpisodeGroup,
|
|
19
|
+
type ExternalIds,
|
|
20
|
+
type Genre,
|
|
21
|
+
type Keyword,
|
|
22
|
+
type MediaType,
|
|
23
|
+
type Movie,
|
|
24
|
+
type Network,
|
|
25
|
+
type Person,
|
|
26
|
+
type RatedMovie,
|
|
27
|
+
type RatedTvShow,
|
|
28
|
+
type ReleaseDate,
|
|
29
|
+
type Review,
|
|
30
|
+
type Scalars,
|
|
31
|
+
type SearchType,
|
|
32
|
+
type Season,
|
|
33
|
+
type Tv,
|
|
34
|
+
type Video,
|
|
35
|
+
type WatchProviderCategories,
|
|
36
|
+
} from '@tmdb-graphql-api/schema/types';
|
|
37
|
+
import { type Getta, type ShortcutProperties } from 'getta';
|
|
38
|
+
import { type GraphQLFieldResolver } from 'graphql';
|
|
39
|
+
import { type SnakeCasedPropertiesDeep } from 'type-fest';
|
|
45
40
|
|
|
46
41
|
export type Context = ExecutionContext & {
|
|
47
42
|
restClient: Getta & ShortcutProperties<ShortcutMethodNames>;
|