# #region SupersetClientModule [C:5] [TYPE Module] [SEMANTICS superset, package, superset-client]
# @LAYER Service
# @BRIEF Предоставляет высокоуровневый клиент для взаимодействия с Superset REST API, инкапсулируя логику запросов, обработку ошибок и пагинацию.
# @RELATION DEPENDS_ON -> [ConfigModels]
# @RELATION DEPENDS_ON -> [APIClient]
# @RELATION DEPENDS_ON -> [SupersetAPIError]
# @RELATION DEPENDS_ON -> [get_filename_from_headers]
# @RELATION DEPENDS_ON -> [SupersetDatasetsPreviewFiltersMixin]
#
# @INVARIANT  All network operations must use the internal APIClient instance.
# @PUBLIC_API  SupersetClient
#
# @RATIONALE  Decomposed from monolithic superset_client.py (2145 lines) into
# domain-scoped mixins to satisfy INV_7 (module < 400 lines). The composed class
# preserves the original public API surface — all consumers continue to import
# `from src.core.superset_client import SupersetClient` without changes.
# @REJECTED  Keeping a single 2145-line file — violates fractal limit INV_7.
# @PRE  Superset instance URL and credentials configured
# @POST  SupersetClient class exported
# @SIDE_EFFECT  Establishes HTTP connection pool to Superset
# @DATA_CONTRACT  SupersetConfig -> SupersetClient

from ._base import SupersetClientBase
from ._charts import SupersetChartsMixin
from ._dashboards_crud import SupersetDashboardsCrudMixin
from ._dashboards_filters import SupersetDashboardsFiltersMixin
from ._dashboards_list import SupersetDashboardsListMixin
from ._dashboards_write import SupersetDashboardsWriteMixin
from ._databases import SupersetDatabasesMixin
from ._datasets import SupersetDatasetsMixin
from ._datasets_preview import SupersetDatasetsPreviewMixin
from ._datasets_preview_filters import SupersetDatasetsPreviewFiltersMixin
from ._user_projection import SupersetUserProjectionMixin


# #region SupersetClient [C:3] [TYPE Class]
# @BRIEF Класс-обёртка над Superset REST API, предоставляющий методы для работы с дашбордами и датасетами.
# @RELATION DEPENDS_ON -> [ConfigModels]
# @RELATION DEPENDS_ON -> [APIClient]
# @RELATION DEPENDS_ON -> [SupersetAPIError]
# @RELATION INHERITS -> [SupersetClientBase]
# @RELATION INHERITS -> [SupersetUserProjectionMixin]
# @RELATION INHERITS -> [SupersetDashboardsListMixin]
# @RELATION INHERITS -> [SupersetDashboardsFiltersMixin]
# @RELATION INHERITS -> [SupersetDashboardsCrudMixin]
# @RELATION INHERITS -> [SupersetChartsMixin]
# @RELATION INHERITS -> [SupersetDatasetsMixin]
# @RELATION INHERITS -> [SupersetDatasetsPreviewMixin]
# @RELATION INHERITS -> [SupersetDatasetsPreviewFiltersMixin]
# @RELATION INHERITS -> [SupersetDatabasesMixin]
# @RELATION INHERITS -> [SupersetDashboardsWriteMixin]
class SupersetClient(
    SupersetDatabasesMixin,
    SupersetDatasetsPreviewFiltersMixin,
    SupersetDatasetsPreviewMixin,
    SupersetDatasetsMixin,
    SupersetChartsMixin,
    SupersetDashboardsCrudMixin,
    SupersetDashboardsFiltersMixin,
    SupersetDashboardsListMixin,
    SupersetDashboardsWriteMixin,
    SupersetUserProjectionMixin,
    SupersetClientBase,
):
    """Composed Superset REST API client.

    MRO order ensures domain mixins resolve before base class.
    All consumers continue to use: from src.core.superset_client import SupersetClient
    """
    pass


# #endregion SupersetClient

# #endregion SupersetClientModule
