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

from typing import Any, List, Optional

from pydantic import Field

from .base_model import BaseModel


class GetLolTeamsByTeamCode(BaseModel):
    teams: "GetLolTeamsByTeamCodeTeams"


class GetLolTeamsByTeamCodeTeams(BaseModel):
    total_count: int = Field(alias="totalCount")
    edges: List["GetLolTeamsByTeamCodeTeamsEdges"]


class GetLolTeamsByTeamCodeTeamsEdges(BaseModel):
    cursor: Any
    node: "GetLolTeamsByTeamCodeTeamsEdgesNode"


class GetLolTeamsByTeamCodeTeamsEdgesNode(BaseModel):
    id: str
    color_primary: Any = Field(alias="colorPrimary")
    color_secondary: Any = Field(alias="colorSecondary")
    logo_url: Any = Field(alias="logoUrl")
    name: str
    name_shortened: Optional[str] = Field(alias="nameShortened")
    external_links: List["GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinks"] = Field(
        alias="externalLinks"
    )


class GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinks(BaseModel):
    external_entity: (
        "GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinksExternalEntity"
    ) = Field(alias="externalEntity")
    data_provider: "GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinksDataProvider" = (
        Field(alias="dataProvider")
    )


class GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinksExternalEntity(BaseModel):
    id: str


class GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinksDataProvider(BaseModel):
    description: Optional[str]
    name: str


GetLolTeamsByTeamCode.model_rebuild()
GetLolTeamsByTeamCodeTeams.model_rebuild()
GetLolTeamsByTeamCodeTeamsEdges.model_rebuild()
GetLolTeamsByTeamCodeTeamsEdgesNode.model_rebuild()
GetLolTeamsByTeamCodeTeamsEdgesNodeExternalLinks.model_rebuild()
