TorbatYar/backend/services/experience/app/queries/ai_hooks.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
793 B
Python

"""Query handlers for Phase 11.10 AI content hooks."""
from app.services.ai_hooks import ExperienceAiHooksService
class AiHooksQueries:
def __init__(self, session):
self.service = ExperienceAiHooksService(session)
async def get_hook_registration(self, tenant_id, entity_id):
return await self.service.get_hook_registration(tenant_id, entity_id)
async def list_hook_registrations(self, tenant_id, **kwargs):
return await self.service.list_hook_registrations(tenant_id, **kwargs)
async def get_dispatch(self, tenant_id, entity_id):
return await self.service.get_dispatch(tenant_id, entity_id)
async def list_dispatches(self, tenant_id, **kwargs):
return await self.service.list_dispatches(tenant_id, **kwargs)