# Generated by ariadne-codegen
# Source: operations/

from typing import Optional

from pydantic import Field

from .base_model import BaseModel


class Templates(BaseModel):
    templates: "TemplatesTemplates"


class TemplatesTemplates(BaseModel):
    page_info: "TemplatesTemplatesPageInfo" = Field(alias="pageInfo")
    edges: list[Optional["TemplatesTemplatesEdges"]]


class TemplatesTemplatesPageInfo(BaseModel):
    total_count: int = Field(alias="totalCount")
    has_next_page: bool = Field(alias="hasNextPage")
    has_previous_page: bool = Field(alias="hasPreviousPage")
    start_cursor: str = Field(alias="startCursor")
    end_cursor: str = Field(alias="endCursor")


class TemplatesTemplatesEdges(BaseModel):
    cursor: str


Templates.model_rebuild()
TemplatesTemplates.model_rebuild()
