type GET_trending__media_type___time_window_ResultsEntry {
  adult: Boolean
  backdrop_path: String
  genre_ids: [Int]
  id: Int
  media_type: String
  original_language: String
  original_title: String
  overview: String
  popularity: Float
  poster_path: String
  release_date: Date
  title: String
  video: Boolean
  vote_average: Float
  vote_count: Int
}

type GET_trending__media_type___time_window_Root {
  page: Int
  results: [GET_trending__media_type___time_window_ResultsEntry]
  total_pages: Int
  total_results: Int
}

type Query {
  GET_trending__media_type___time_window_(
    media_type: String!
    time_window: String!
    tmdb_access_token: String!
  ): GET_trending__media_type___time_window_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/trending/$media_type;/$time_window;"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_tv__tv_id__images_BackdropsEntry {
  aspect_ratio: Float
  file_path: String
  height: Int
  iso_639_1: String
  vote_average: Float
  vote_count: Int
  width: Int
}

type GET_tv__tv_id__images_LogosEntry {
  aspect_ratio: Float
  file_path: String
  height: Int
  iso_639_1: String
  vote_average: Float
  vote_count: Int
  width: Int
}

type GET_tv__tv_id__images_PostersEntry {
  aspect_ratio: Float
  file_path: String
  height: Int
  iso_639_1: String
  vote_average: Float
  vote_count: Int
  width: Int
}

type GET_tv__tv_id__images_Root {
  backdrops: [GET_tv__tv_id__images_BackdropsEntry]
  id: Int
  logos: [GET_tv__tv_id__images_LogosEntry]
  posters: [GET_tv__tv_id__images_PostersEntry]
}

type Query {
  GET_tv__tv_id__images(
    tmdb_access_token: String!
    tv_id: String!
  ): GET_tv__tv_id__images_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/tv/$tv_id;/images"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
