# generated by datamodel-codegen:
#   filename:  multiple-aliases.graphql
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Literal

from pydantic import AliasChoices, BaseModel, Field
from typing_extensions import TypeAliasType

Boolean = TypeAliasType("Boolean", bool)
"""
The `Boolean` scalar type represents `true` or `false`.
"""


DateTime = TypeAliasType("DateTime", str)


String = TypeAliasType("String", str)
"""
The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
"""


class Event(BaseModel):
    end_date: DateTime = Field(
        ..., validation_alias=AliasChoices('endDate', 'end_date')
    )
    name: String
    start_date: DateTime = Field(
        ...,
        serialization_alias='startsAt',
        validation_alias=AliasChoices('startDate', 'start_date'),
    )
    typename__: Literal['Event'] | None = Field(
        'Event', alias='__typename', serialization_alias='__typename'
    )
