# Generated by ariadne-codegen on 2024-06-04 14:46
# Source: graphql/queries.graphql

from typing import List, Optional

from pydantic import Field

from .base_model import BaseModel


class GetSingleCompetitorResultsDate(BaseModel):
    get_single_competitor_results_date: Optional[
        "GetSingleCompetitorResultsDateGetSingleCompetitorResultsDate"
    ] = Field(alias="getSingleCompetitorResultsDate")


class GetSingleCompetitorResultsDateGetSingleCompetitorResultsDate(BaseModel):
    parameters: Optional[
        "GetSingleCompetitorResultsDateGetSingleCompetitorResultsDateParameters"
    ]
    active_years: Optional[List[Optional[str]]] = Field(alias="activeYears")
    results_by_date: Optional[
        List[
            Optional[
                "GetSingleCompetitorResultsDateGetSingleCompetitorResultsDateResultsByDate"
            ]
        ]
    ] = Field(alias="resultsByDate")


class GetSingleCompetitorResultsDateGetSingleCompetitorResultsDateParameters(BaseModel):
    results_by_year: Optional[int] = Field(alias="resultsByYear")
    results_by_year_order_by: Optional[str] = Field(alias="resultsByYearOrderBy")


class GetSingleCompetitorResultsDateGetSingleCompetitorResultsDateResultsByDate(
    BaseModel
):
    date: Optional[str]
    competition: Optional[str]
    venue: Optional[str]
    indoor: Optional[bool]
    discipline_code: Optional[str] = Field(alias="disciplineCode")
    discipline_name_url_slug: Optional[str] = Field(alias="disciplineNameUrlSlug")
    type_name_url_slug: Optional[str] = Field(alias="typeNameUrlSlug")
    discipline: Optional[str]
    country: Optional[str]
    category: Optional[str]
    race: Optional[str]
    place: Optional[str]
    mark: Optional[str]
    wind: Optional[str]
    not_legal: Optional[bool] = Field(alias="notLegal")
    result_score: Optional[int] = Field(alias="resultScore")
    remark: Optional[str]
    competition_id: Optional[str] = Field(alias="competitionId")
    event_id: Optional[str] = Field(alias="eventId")


GetSingleCompetitorResultsDate.update_forward_refs()
GetSingleCompetitorResultsDateGetSingleCompetitorResultsDate.update_forward_refs()
GetSingleCompetitorResultsDateGetSingleCompetitorResultsDateParameters.update_forward_refs()
GetSingleCompetitorResultsDateGetSingleCompetitorResultsDateResultsByDate.update_forward_refs()
