@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
|
@@ -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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/details.json';
|
|
5
5
|
import movieReleaseDates from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/releaseDates.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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieReleaseDates } from './movieReleaseDates.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 { MOVIE, RELEASE_DATES } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawMovieReleaseDates, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveMovieReleaseDates = async (
|
|
8
7
|
obj: RawMovieWithAppendToResponse & { __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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/details.json';
|
|
5
5
|
import movieReviews from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 { MOVIE, REVIEWS } from '../constants.ts';
|
|
13
|
-
import type
|
|
13
|
+
import { type Context, type RawMovie, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
14
14
|
import { createMakeCursors, createResourceResolver, cursorCache, resolveMovieReviews } from './movieReviews.ts';
|
|
15
15
|
|
|
16
16
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -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 MovieReviewsArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
|
+
import { type FetchResponse } from 'getta';
|
|
7
7
|
import { encode } from 'js-base64';
|
|
8
8
|
import { MOVIE, REVIEWS } from '../constants.ts';
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
type Context,
|
|
11
|
+
type RawMovie,
|
|
12
|
+
type RawMovieReviews,
|
|
13
|
+
type RawMovieWithAppendToResponse,
|
|
14
|
+
type RawReview,
|
|
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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/details.json';
|
|
5
5
|
import movieSimilarMovies from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/similarMovies.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 { MOVIE, SIMILAR } from '../constants.ts';
|
|
13
|
-
import type
|
|
13
|
+
import { type Context, type RawMovie, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
14
14
|
import {
|
|
15
15
|
createMakeCursors,
|
|
16
16
|
createResourceResolver,
|
|
@@ -2,11 +2,16 @@ 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 MovieSimilarMoviesArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
|
+
import { type FetchResponse } from 'getta';
|
|
7
7
|
import { encode } from 'js-base64';
|
|
8
8
|
import { MOVIE, SIMILAR, SIMILAR_MOVIES } from '../constants.ts';
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
type Context,
|
|
11
|
+
type RawMovie,
|
|
12
|
+
type RawMovieSimilarMovies,
|
|
13
|
+
type RawMovieWithAppendToResponse,
|
|
14
|
+
} from '../types.ts';
|
|
10
15
|
|
|
11
16
|
/* eslint-disable camelcase */
|
|
12
17
|
|
|
@@ -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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/details.json';
|
|
5
5
|
import movieTranslations from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieTranslations } from './movieTranslations.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 { MOVIE, TRANSLATIONS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawMovieTranslations, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveMovieTranslations = async (
|
|
7
6
|
obj: RawMovieWithAppendToResponse & { __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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/details.json';
|
|
5
5
|
import movieVideos from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieVideos } from './movieVideos.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 { MOVIE, VIDEOS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawMovieVideos, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveMovieVideos = async (
|
|
7
6
|
obj: RawMovieWithAppendToResponse & { __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 movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/details.json';
|
|
5
5
|
import movieWatchProviders from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieWatchProviders } from './movieWatchProviders.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 { MOVIE, WATCH_PROVIDERS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawMovieWithAppendToResponse, type RawWatchProviders } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveMovieWatchProviders = async (
|
|
7
6
|
obj: RawMovieWithAppendToResponse & { __headers?: Headers },
|
|
@@ -2,11 +2,11 @@ import { jest } from '@jest/globals';
|
|
|
2
2
|
import { NETWORK_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
3
3
|
import networkDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/network/details.json';
|
|
4
4
|
import { mockFetch } from 'fetch-mocked';
|
|
5
|
-
import type
|
|
6
|
-
import type
|
|
5
|
+
import { type Getta, type ShortcutProperties } from 'getta';
|
|
6
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
7
7
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
8
8
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
9
|
-
import type
|
|
9
|
+
import { type Context } from '../types.ts';
|
|
10
10
|
import { resolveNetwork } from './network.ts';
|
|
11
11
|
|
|
12
12
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/network.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryNetworkArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { isUndefined, snakeCase } from 'lodash-es';
|
|
5
4
|
import { NETWORK } from '../constants.ts';
|
|
6
|
-
import type
|
|
5
|
+
import { type Context, type RawNetwork } from '../types.ts';
|
|
7
6
|
|
|
8
7
|
export const resolveNetwork = async (
|
|
9
8
|
obj: RawNetwork | undefined,
|
|
@@ -3,11 +3,11 @@ import { NETWORK_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-c
|
|
|
3
3
|
import networkAlterativeNames from '@tmdb-graphql-api/test-utils/responses/themoviedb/network/alternativeNames.json';
|
|
4
4
|
import networkDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/network/details.json';
|
|
5
5
|
import { mockFetch } from 'fetch-mocked';
|
|
6
|
-
import type
|
|
7
|
-
import type
|
|
6
|
+
import { type Getta, type ShortcutProperties } from 'getta';
|
|
7
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
8
8
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
9
9
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
10
|
-
import type
|
|
10
|
+
import { type Context, type RawNetwork } from '../types.ts';
|
|
11
11
|
import { resolveNetworkAlternativeNames } from './networkAlternativeNames.ts';
|
|
12
12
|
|
|
13
13
|
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_NAMES, NETWORK } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawNetwork, type RawNetworkAlternativeNames } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveNetworkAlternativeNames = async (
|
|
8
7
|
{ id }: RawNetwork,
|
|
@@ -3,11 +3,11 @@ import { NETWORK_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-c
|
|
|
3
3
|
import networkDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/network/details.json';
|
|
4
4
|
import networkLogos from '@tmdb-graphql-api/test-utils/responses/themoviedb/network/images.json';
|
|
5
5
|
import { mockFetch } from 'fetch-mocked';
|
|
6
|
-
import type
|
|
7
|
-
import type
|
|
6
|
+
import { type Getta, type ShortcutProperties } from 'getta';
|
|
7
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
8
8
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
9
9
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
10
|
-
import type
|
|
10
|
+
import { type Context, type RawNetwork } from '../types.ts';
|
|
11
11
|
import { resolveNetworkLogos } from './networkLogos.ts';
|
|
12
12
|
|
|
13
13
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { IMAGES, LOGOS, NETWORK } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawNetwork, type RawNetworkLogos } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveNetworkLogos = async (
|
|
7
6
|
{ id }: RawNetwork,
|
|
@@ -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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
@@ -6,12 +6,12 @@ import { personDetails as personDetailsQuery } from '@tmdb-graphql-api/test-util
|
|
|
6
6
|
import { personDetailsLg as personDetailsLgQuery } from '@tmdb-graphql-api/test-utils/requests/queries/person/detailsLg.ts';
|
|
7
7
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/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 { PERSON } from '../constants.ts';
|
|
14
|
-
import type
|
|
14
|
+
import { type Context } from '../types.ts';
|
|
15
15
|
import { resolvePerson } from './person.ts';
|
|
16
16
|
|
|
17
17
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/person.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryPersonArgs } 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
|
COMBINED_CREDITS,
|
|
@@ -13,7 +12,7 @@ import {
|
|
|
13
12
|
TV_CREDITS,
|
|
14
13
|
} from '../constants.ts';
|
|
15
14
|
import { getAppendToResponseKeys } from '../helpers/getAppendToResponseKeys.ts';
|
|
16
|
-
import type
|
|
15
|
+
import { type Context, type RawPerson, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
17
16
|
|
|
18
17
|
const appendToResponse = {
|
|
19
18
|
[COMBINED_CREDITS]: snakeCase(COMBINED_CREDITS),
|
|
@@ -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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import personCombinedCredits from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/combinedCredits.json';
|
|
5
5
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/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 RawPerson, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolvePersonCombinedCredits } from './personCombinedCredits.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 { COMBINED_CREDITS, PERSON } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawPersonCombinedCredits, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolvePersonCombinedCredits = async (
|
|
8
7
|
obj: RawPersonWithAppendToResponse & { __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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/details.json';
|
|
5
5
|
import personExternalIds from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/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 RawPerson, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolvePersonExternalIds } from './personExternalIds.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, PERSON } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawPersonExternalIds, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolvePersonExternalIds = async (
|
|
8
7
|
obj: RawPersonWithAppendToResponse & { __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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/details.json';
|
|
5
5
|
import personMovieCredits from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/movieCredits.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 RawPerson, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolvePersonMovieCredits } from './personMovieCredits.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 { MOVIE_CREDITS, PERSON } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawPersonMovieCredits, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolvePersonMovieCredits = async (
|
|
8
7
|
obj: RawPersonWithAppendToResponse & { __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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/details.json';
|
|
5
5
|
import personProfiles from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/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 RawPerson, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolvePersonProfiles } from './personProfiles.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
1
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
3
2
|
import { IMAGES, PERSON, PROFILES } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawPersonProfiles, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolvePersonProfiles = async (
|
|
7
6
|
obj: RawPersonWithAppendToResponse & { __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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/details.json';
|
|
5
5
|
import personTranslations from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/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 } from '../types.ts';
|
|
12
12
|
import { resolvePersonTranslations } from './personTranslations.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 { PERSON, TRANSLATIONS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawPersonTranslations, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolvePersonTranslations = async (
|
|
7
6
|
obj: RawPersonWithAppendToResponse & { __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 { PERSON_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import personDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/details.json';
|
|
5
5
|
import personTvCredits from '@tmdb-graphql-api/test-utils/responses/themoviedb/person/3/tvCredits.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 RawPersonWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolvePersonTvCredits } from './personTvCredits.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 { PERSON, TV_CREDITS } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawPersonTvCredits, type RawPersonWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolvePersonTvCredits = async (
|
|
8
7
|
obj: RawPersonWithAppendToResponse & { __headers?: Headers },
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { removeConnectionInputOptions } from '@graphql-box/connection-resolver';
|
|
2
|
-
import type
|
|
2
|
+
import { type PlainObject } from '@graphql-box/core';
|
|
3
3
|
import { jest } from '@jest/globals';
|
|
4
4
|
import { RATED_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
5
|
+
import { ScreenType } from '@tmdb-graphql-api/schema/types';
|
|
5
6
|
import ratedMovies from '@tmdb-graphql-api/test-utils/responses/themoviedb/rated/movies.json';
|
|
6
7
|
import ratedTv from '@tmdb-graphql-api/test-utils/responses/themoviedb/rated/tv.json';
|
|
7
8
|
import { type Jsonifiable, mockFetch } from 'fetch-mocked';
|
|
8
|
-
import type
|
|
9
|
-
import type
|
|
9
|
+
import { type Getta, type ShortcutProperties } from 'getta';
|
|
10
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
10
11
|
import { decode } from 'js-base64';
|
|
11
12
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
12
13
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
13
14
|
import { RATED } from '../constants.ts';
|
|
14
|
-
import type
|
|
15
|
+
import { type Context } from '../types.ts';
|
|
15
16
|
import { createMakeCursors, createResourceResolver, cursorCache, resolveRated } from './rated.ts';
|
|
16
17
|
|
|
17
18
|
const mockedFetch = mockFetch(jest.fn);
|
|
18
19
|
|
|
19
20
|
const baseArgs = {
|
|
20
|
-
screenType:
|
|
21
|
+
screenType: ScreenType.Movie,
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
describe('createMakeCursors', () => {
|
|
@@ -141,7 +142,7 @@ describe('resolveRated', () => {
|
|
|
141
142
|
await expect(
|
|
142
143
|
resolveRated(
|
|
143
144
|
undefined,
|
|
144
|
-
{ first: 5, screenType:
|
|
145
|
+
{ first: 5, screenType: ScreenType.Tv },
|
|
145
146
|
{ restClient, setCacheMetadata, tmdbGuestSessionId } as unknown as Context,
|
|
146
147
|
{} as GraphQLResolveInfo
|
|
147
148
|
)
|
|
@@ -158,7 +159,7 @@ describe('resolveRated', () => {
|
|
|
158
159
|
|
|
159
160
|
await resolveRated(
|
|
160
161
|
undefined,
|
|
161
|
-
{ first: 5, screenType:
|
|
162
|
+
{ first: 5, screenType: ScreenType.Tv },
|
|
162
163
|
{ restClient, setCacheMetadata, tmdbGuestSessionId } as unknown as Context,
|
|
163
164
|
{} as GraphQLResolveInfo
|
|
164
165
|
);
|
package/src/queries/rated.ts
CHANGED
|
@@ -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, removeConnectionInputOptions } from '@graphql-box/connection-resolver';
|
|
5
|
-
import type
|
|
5
|
+
import { type QueryRatedArgs, type ScreenType } from '@tmdb-graphql-api/schema/types';
|
|
6
6
|
import { encode } from 'js-base64';
|
|
7
7
|
import { capitalize } from 'lodash-es';
|
|
8
8
|
import { RATED } from '../constants.ts';
|
|
9
|
-
import type
|
|
9
|
+
import { type Context, type RawRated, type RawRatedScreen } from '../types.ts';
|
|
10
10
|
|
|
11
11
|
/* eslint-disable camelcase */
|
|
12
12
|
|