# Generated by ariadne-codegen
# Source: operations/

from typing import Any, Optional

from pydantic import Field

from .base_model import BaseModel
from .enums import GroupByEntity


class Usages(BaseModel):
    usages: Optional["UsagesUsages"]


class UsagesUsages(BaseModel):
    data: list["UsagesUsagesData"]
    categories: list[str]


class UsagesUsagesData(BaseModel):
    id: Any
    name: str
    group_by_entity: GroupByEntity = Field(alias="groupByEntity")
    usage_of_entity: list[float] = Field(alias="usageOfEntity")


Usages.model_rebuild()
UsagesUsages.model_rebuild()
