@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
|
@@ -2,12 +2,12 @@ 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 QueryDiscoverTvArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
6
|
import { encode } from 'js-base64';
|
|
7
7
|
import { DISCOVER_TV, TV } from '../constants.ts';
|
|
8
8
|
import { formatQueryParams } from '../helpers/formatQueryParams.ts';
|
|
9
9
|
import { removeNullValues } from '../helpers/removeNullValues.ts';
|
|
10
|
-
import type
|
|
10
|
+
import { type Context, type RawDiscoverTv, type RawTv } from '../types.ts';
|
|
11
11
|
|
|
12
12
|
/* eslint-disable camelcase */
|
|
13
13
|
|
|
@@ -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 { EPISODE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
@@ -6,13 +6,13 @@ import { episodeDetails as episodeDetailsQuery } from '@tmdb-graphql-api/test-ut
|
|
|
6
6
|
import { episodeDetailsLg as episodeDetailsLgQuery } from '@tmdb-graphql-api/test-utils/requests/queries/episode/detailsLg.ts';
|
|
7
7
|
import episodeDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/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 { EPISODE } from '../constants.ts';
|
|
14
14
|
import { encodeId } from '../helpers/encodeId.ts';
|
|
15
|
-
import type
|
|
15
|
+
import { type Context } from '../types.ts';
|
|
16
16
|
import { resolveEpisode } from './episode.ts';
|
|
17
17
|
|
|
18
18
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/episode.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryEpisodeArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { isUndefined, snakeCase } from 'lodash-es';
|
|
5
4
|
import { CREDITS, EPISODE, EXTERNAL_IDS, IMAGES, SEASON, TRANSLATIONS, TV, VIDEOS } from '../constants.ts';
|
|
6
5
|
import { encodeId } from '../helpers/encodeId.ts';
|
|
7
6
|
import { getAppendToResponseKeys } from '../helpers/getAppendToResponseKeys.ts';
|
|
8
7
|
import { getTvIdSeasonAndEpisode } from '../helpers/getTvIdSeasonAndEpisode.ts';
|
|
9
|
-
import type
|
|
8
|
+
import { type Context, type RawEpisode, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
10
9
|
|
|
11
10
|
const appendToResponse = {
|
|
12
11
|
[EXTERNAL_IDS]: snakeCase(EXTERNAL_IDS),
|
|
@@ -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 { EPISODE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import episodeCredits from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/credits.json';
|
|
5
5
|
import episodeDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/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 RawEpisode } from '../types.ts';
|
|
12
12
|
import { resolveEpisodeCredits } from './episodeCredits.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 { CREDITS, EPISODE, SEASON, TV } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawEpisodeCredits, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveEpisodeCredits = async (
|
|
8
7
|
obj: RawEpisodeWithAppendToResponse & { __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 { EPISODE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import episodeDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/details.json';
|
|
5
5
|
import seasonExternalIds from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/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 RawEpisode, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveEpisodeExternalIds } from './episodeExternalIds.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, EXTERNAL_IDS, SEASON, TV } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawEpisodeExternalIds, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveEpisodeExternalIds = async (
|
|
8
7
|
obj: RawEpisodeWithAppendToResponse & { __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 { EPISODE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import episodeDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/details.json';
|
|
5
5
|
import episodeStills from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/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 RawEpisode } from '../types.ts';
|
|
12
12
|
import { resolveEpisodeStills } from './episodeStills.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 { EPISODE, IMAGES, SEASON, STILLS, TV } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawEpisodeImages, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveEpisodeStills = async (
|
|
7
6
|
obj: RawEpisodeWithAppendToResponse & { __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 { EPISODE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import episodeDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/details.json';
|
|
5
5
|
import episodeTranslations from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/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 RawEpisode } from '../types.ts';
|
|
12
12
|
import { resolveEpisodeTranslations } from './episodeTranslations.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 { EPISODE, SEASON, TRANSLATIONS, TV } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawEpisodeTranslations, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveEpisodeTranslations = async (
|
|
7
6
|
obj: RawEpisodeWithAppendToResponse & { __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 { EPISODE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import episodeDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/details.json';
|
|
5
5
|
import episodeVideos from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/seasons/1/episodes/1/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 RawEpisode } from '../types.ts';
|
|
12
12
|
import { resolveEpisodeVideos } from './episodeVideos.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 { EPISODE, SEASON, TV, VIDEOS } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawEpisodeVideos, type RawEpisodeWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveEpisodeVideos = async (
|
|
7
6
|
obj: RawEpisodeWithAppendToResponse & { __headers?: Headers },
|
package/src/queries/find.test.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jest } from '@jest/globals';
|
|
2
2
|
import { FIND_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
3
|
-
import type
|
|
3
|
+
import { type ExternalSource } from '@tmdb-graphql-api/schema/types';
|
|
4
4
|
import findResults from '@tmdb-graphql-api/test-utils/responses/themoviedb/find/results.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
10
|
import { snakeCasePropNames } from '../helpers/snakeCasePropNames.ts';
|
|
11
|
-
import type
|
|
11
|
+
import { type Context } from '../types.ts';
|
|
12
12
|
import { resolveFind } from './find.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/find.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryFindArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { FIND } from '../constants.ts';
|
|
5
4
|
import { snakeCasePropNames } from '../helpers/snakeCasePropNames.ts';
|
|
6
|
-
import type
|
|
5
|
+
import { type Context, type RawFind } from '../types.ts';
|
|
7
6
|
|
|
8
7
|
export const resolveFind = async (
|
|
9
8
|
_obj: undefined,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jest } from '@jest/globals';
|
|
2
2
|
import { GENRE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
3
|
+
import { ScreenType } from '@tmdb-graphql-api/schema/types';
|
|
3
4
|
import movieGenres from '@tmdb-graphql-api/test-utils/responses/themoviedb/genres/movies.json';
|
|
4
5
|
import tvGenres from '@tmdb-graphql-api/test-utils/responses/themoviedb/genres/tv.json';
|
|
5
6
|
import { mockFetch } from 'fetch-mocked';
|
|
6
|
-
import type
|
|
7
|
-
import type
|
|
7
|
+
import { type Getta, type ShortcutProperties } from 'getta';
|
|
8
|
+
import { type GraphQLResolveInfo } from 'graphql';
|
|
8
9
|
import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
|
|
9
10
|
import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
|
|
10
|
-
import { type Context
|
|
11
|
+
import { type Context } from '../types.ts';
|
|
11
12
|
import { resolveGenres } from './genres.ts';
|
|
12
13
|
|
|
13
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -27,7 +28,7 @@ describe('resolveGenres >', () => {
|
|
|
27
28
|
|
|
28
29
|
describe("when the screenType is 'MOVIE' >", () => {
|
|
29
30
|
beforeEach(() => {
|
|
30
|
-
mockedFetch.mockGetOnce(buildEndpoint(GENRE_PATH, { type: ScreenType.
|
|
31
|
+
mockedFetch.mockGetOnce(buildEndpoint(GENRE_PATH, { type: ScreenType.Movie.toLowerCase() }), {
|
|
31
32
|
body: movieGenres,
|
|
32
33
|
});
|
|
33
34
|
});
|
|
@@ -36,7 +37,7 @@ describe('resolveGenres >', () => {
|
|
|
36
37
|
await expect(
|
|
37
38
|
resolveGenres(
|
|
38
39
|
undefined,
|
|
39
|
-
{ screenType: ScreenType.
|
|
40
|
+
{ screenType: ScreenType.Movie },
|
|
40
41
|
{ restClient, setCacheMetadata, tmdbGuestSessionId: 'mock-tmdbGuestSessionId' } as unknown as Context,
|
|
41
42
|
{} as GraphQLResolveInfo
|
|
42
43
|
)
|
|
@@ -46,7 +47,7 @@ describe('resolveGenres >', () => {
|
|
|
46
47
|
|
|
47
48
|
describe("when the screenType is 'TV' >", () => {
|
|
48
49
|
beforeEach(() => {
|
|
49
|
-
mockedFetch.mockGetOnce(buildEndpoint(GENRE_PATH, { type: ScreenType.
|
|
50
|
+
mockedFetch.mockGetOnce(buildEndpoint(GENRE_PATH, { type: ScreenType.Tv.toLowerCase() }), {
|
|
50
51
|
body: tvGenres,
|
|
51
52
|
});
|
|
52
53
|
});
|
|
@@ -55,7 +56,7 @@ describe('resolveGenres >', () => {
|
|
|
55
56
|
await expect(
|
|
56
57
|
resolveGenres(
|
|
57
58
|
undefined,
|
|
58
|
-
{ screenType: ScreenType.
|
|
59
|
+
{ screenType: ScreenType.Tv },
|
|
59
60
|
{ restClient, setCacheMetadata, tmdbGuestSessionId: 'mock-tmdbGuestSessionId' } as unknown as Context,
|
|
60
61
|
{} as GraphQLResolveInfo
|
|
61
62
|
)
|
package/src/queries/genres.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryGenresArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { GENRES } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawGenre } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveGenres = async (
|
|
8
7
|
_obj: undefined,
|
|
@@ -2,11 +2,11 @@ import { jest } from '@jest/globals';
|
|
|
2
2
|
import { KEYWORD_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
3
3
|
import keywordDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/keyword/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 { resolveKeyword } from './keyword.ts';
|
|
11
11
|
|
|
12
12
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/keyword.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryKeywordArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { KEYWORD } from '../constants.ts';
|
|
5
4
|
import { snakeCasePropNames } from '../helpers/snakeCasePropNames.ts';
|
|
6
|
-
import type
|
|
5
|
+
import { type Context, type RawKeyword } from '../types.ts';
|
|
7
6
|
|
|
8
7
|
export const resolveKeyword = async (
|
|
9
8
|
_obj: undefined,
|
|
@@ -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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
@@ -6,12 +6,12 @@ import { movieDetails as movieDetailsQuery } from '@tmdb-graphql-api/test-utils/
|
|
|
6
6
|
import { movieDetailsLg as movieDetailsLgQuery } from '@tmdb-graphql-api/test-utils/requests/queries/movie/detailsLg.ts';
|
|
7
7
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 { MOVIE } from '../constants.ts';
|
|
14
|
-
import type
|
|
14
|
+
import { type Context } from '../types.ts';
|
|
15
15
|
import { resolveMovie } from './movie.ts';
|
|
16
16
|
|
|
17
17
|
const mockedFetch = mockFetch(jest.fn);
|
package/src/queries/movie.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type QueryMovieArgs } 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,
|
|
@@ -24,7 +23,7 @@ import {
|
|
|
24
23
|
WATCH_PROVIDERS,
|
|
25
24
|
} from '../constants.ts';
|
|
26
25
|
import { getAppendToResponseKeys } from '../helpers/getAppendToResponseKeys.ts';
|
|
27
|
-
import type
|
|
26
|
+
import { type Context, type RawMovie, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
28
27
|
|
|
29
28
|
const appendToResponse = {
|
|
30
29
|
[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 { MOVIE_PATH, type ShortcutMethodNames } from '@tmdb-graphql-api/rest-client';
|
|
4
4
|
import movieAlternativeTitles from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/alternativeTitles.json';
|
|
5
5
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieAlternativeTitles } from './movieAlternativeTitles.ts';
|
|
13
13
|
|
|
14
14
|
const mockedFetch = mockFetch(jest.fn);
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
import type { GraphQLResolveInfo } from 'graphql';
|
|
1
|
+
import { type MovieAlternativeTitlesArgs } from '@tmdb-graphql-api/schema/types';
|
|
2
|
+
import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
|
|
4
3
|
import { snakeCase } from 'lodash-es';
|
|
5
4
|
import { ALTERNATIVE_TITLES, MOVIE } from '../constants.ts';
|
|
6
|
-
import type
|
|
5
|
+
import { type Context, type RawMovieAlternativeTitles, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
7
6
|
|
|
8
7
|
export const resolveMovieAlternativeTitles = async (
|
|
9
8
|
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 movieCredits from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/credits.json';
|
|
5
5
|
import movieDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieCredits } from './movieCredits.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 { CREDITS, MOVIE } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawMovieCredits, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveMovieCredits = 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 movieExternalIds from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieExternalIds } from './movieExternalIds.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, MOVIE } from '../constants.ts';
|
|
5
|
-
import type
|
|
4
|
+
import { type Context, type RawMovieExternalIds, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
6
5
|
|
|
7
6
|
export const resolveMovieExternalIds = async (
|
|
8
7
|
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 movieImages from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieImages } from './movieImages.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 } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawMovieImages, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveMovieImages = 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 movieKeywords from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 RawMovieWithAppendToResponse } from '../types.ts';
|
|
12
12
|
import { resolveMovieKeywords } from './movieKeywords.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, MOVIE } from '../constants.ts';
|
|
4
|
-
import type
|
|
3
|
+
import { type Context, type RawMovieKeywords, type RawMovieWithAppendToResponse } from '../types.ts';
|
|
5
4
|
|
|
6
5
|
export const resolveMovieKeywords = async (
|
|
7
6
|
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 movieRecommendations from '@tmdb-graphql-api/test-utils/responses/themoviedb/movie/1891/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 { MOVIE, RECOMMENDATIONS } 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 MovieRecommendationsArgs } from '@tmdb-graphql-api/schema/types';
|
|
6
|
+
import { type FetchResponse } from 'getta';
|
|
7
7
|
import { encode } from 'js-base64';
|
|
8
8
|
import { MOVIE, RECOMMENDATIONS } from '../constants.ts';
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
type Context,
|
|
11
|
+
type RawMovie,
|
|
12
|
+
type RawMovieRecommendations,
|
|
13
|
+
type RawMovieWithAppendToResponse,
|
|
14
|
+
} from '../types.ts';
|
|
10
15
|
|
|
11
16
|
/* eslint-disable camelcase */
|
|
12
17
|
|