TorbatYar/backend/services/experience/app/queries/analytics.py
Mortezakoohjani 203671a7bf feat(experience): ship Experience Platform phases 11.0-11.10
Add the experience service with sites through analytics/AI hooks, migrations through 0011, and phase docs/manifests marking the track complete.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 11:43:10 +03:30

20 lines
791 B
Python

"""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)