from __future__ import annotations from dataclasses import dataclass from typing import Any from uuid import UUID @dataclass(frozen=True, slots=True) class FacetDefinitionRecord: id: UUID code: str label: str category: str description: str | None control_type: str allow_multiple_values: bool value_source: str sort_order: int metadata: dict[str, Any] @dataclass(frozen=True, slots=True) class FacetMappingRecord: id: UUID facet_id: UUID facet_code: str attribute_definition_id: UUID attribute_key: str template_code: str module_code: str | None content_kind: str | None mapping_strategy: str weight: float metadata: dict[str, Any] @dataclass(frozen=True, slots=True) class ProjectionValue: value_key: str value_label: str value_text: str | None value_number: float | None = None source_value: Any = None