# Generated by ariadne-codegen
# Source: queries/central-data

from typing import Any, List, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import SeriesType


class GetSeriesIdsByTeam(BaseModel):
    all_series: "GetSeriesIdsByTeamAllSeries" = Field(alias="allSeries")


class GetSeriesIdsByTeamAllSeries(BaseModel):
    total_count: int = Field(alias="totalCount")
    edges: List["GetSeriesIdsByTeamAllSeriesEdges"]
    page_info: "GetSeriesIdsByTeamAllSeriesPageInfo" = Field(alias="pageInfo")


class GetSeriesIdsByTeamAllSeriesEdges(BaseModel):
    node: "GetSeriesIdsByTeamAllSeriesEdgesNode"


class GetSeriesIdsByTeamAllSeriesEdgesNode(BaseModel):
    id: str
    type: SeriesType
    tournament: "GetSeriesIdsByTeamAllSeriesEdgesNodeTournament"
    teams: List["GetSeriesIdsByTeamAllSeriesEdgesNodeTeams"]
    start_time_scheduled: Any = Field(alias="startTimeScheduled")


class GetSeriesIdsByTeamAllSeriesEdgesNodeTournament(BaseModel):
    id: str
    end_date: Optional[Any] = Field(alias="endDate")
    logo_url: Any = Field(alias="logoUrl")
    name: str
    name_shortened: str = Field(alias="nameShortened")
    start_date: Optional[Any] = Field(alias="startDate")


class GetSeriesIdsByTeamAllSeriesEdgesNodeTeams(BaseModel):
    base_info: "GetSeriesIdsByTeamAllSeriesEdgesNodeTeamsBaseInfo" = Field(
        alias="baseInfo"
    )


class GetSeriesIdsByTeamAllSeriesEdgesNodeTeamsBaseInfo(BaseModel):
    id: str
    name: str
    name_shortened: Optional[str] = Field(alias="nameShortened")


class GetSeriesIdsByTeamAllSeriesPageInfo(BaseModel):
    end_cursor: Optional[Any] = Field(alias="endCursor")
    has_next_page: bool = Field(alias="hasNextPage")
    has_previous_page: bool = Field(alias="hasPreviousPage")
    start_cursor: Optional[Any] = Field(alias="startCursor")


GetSeriesIdsByTeam.model_rebuild()
GetSeriesIdsByTeamAllSeries.model_rebuild()
GetSeriesIdsByTeamAllSeriesEdges.model_rebuild()
GetSeriesIdsByTeamAllSeriesEdgesNode.model_rebuild()
GetSeriesIdsByTeamAllSeriesEdgesNodeTeams.model_rebuild()
