JSONAPIXtreamSeason: {
    type: "season";
    id: string;
    attributes: { number: number; cover: string; releaseDate: Date | null };
    relationships: {
        show: { data: { type: "show"; id: string } };
        episodes: { data: { type: "episode"; id: string }[] };
    };
}

JSON:API Xtream season information

This type represents a season of a show in the Xtream system in JSON:API format

Type declaration

  • type: "season"

    The resource type (season)

  • id: string

    The unique identifier for the season

  • attributes: { number: number; cover: string; releaseDate: Date | null }

    The season attributes

    • number: number

      The season number

    • cover: string

      The URL for the season's cover image

    • releaseDate: Date | null

      The date when the season first aired

  • relationships: {
        show: { data: { type: "show"; id: string } };
        episodes: { data: { type: "episode"; id: string }[] };
    }

    The season relationships

    • show: { data: { type: "show"; id: string } }

      The show relationship

      • data: { type: "show"; id: string }
        • type: "show"

          The show type

        • id: string

          The show ID

    • episodes: { data: { type: "episode"; id: string }[] }

      The episodes relationship