"""Query handlers for Phase 11.10 analytics."""
from app.services.analytics import ExperienceAnalyticsService


class AnalyticsQueries:
    def __init__(self, session):
        self.service = ExperienceAnalyticsService(session)

    async def get_report_definition(self, tenant_id, entity_id):
        return await self.service.get_report_definition(tenant_id, entity_id)

    async def list_report_definitions(self, tenant_id, **kwargs):
        return await self.service.list_report_definitions(tenant_id, **kwargs)

    async def get_snapshot(self, tenant_id, entity_id):
        return await self.service.get_snapshot(tenant_id, entity_id)

    async def list_snapshots(self, tenant_id, **kwargs):
        return await self.service.list_snapshots(tenant_id, **kwargs)
