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>
41 lines
1.9 KiB
Python
41 lines
1.9 KiB
Python
"""Query handlers for Phase 11.9."""
|
|
from app.services.integrations import ExperienceIntegrationsService
|
|
|
|
|
|
class IntegrationsQueries:
|
|
def __init__(self, session):
|
|
self.service = ExperienceIntegrationsService(session)
|
|
|
|
async def get_consumer_connector_registration(self, tenant_id, entity_id):
|
|
return await self.service.get_consumer_connector_registration(tenant_id, entity_id)
|
|
|
|
async def list_consumer_connector_registrations(self, tenant_id, **kwargs):
|
|
return await self.service.list_consumer_connector_registrations(tenant_id, **kwargs)
|
|
|
|
async def get_consumer_connector_dispatch(self, tenant_id, entity_id):
|
|
return await self.service.get_consumer_connector_dispatch(tenant_id, entity_id)
|
|
|
|
async def list_consumer_connector_dispatches(self, tenant_id, **kwargs):
|
|
return await self.service.list_consumer_connector_dispatches(tenant_id, **kwargs)
|
|
|
|
async def get_widget_definition(self, tenant_id, entity_id):
|
|
return await self.service.get_widget_definition(tenant_id, entity_id)
|
|
|
|
async def list_widget_definitions(self, tenant_id, **kwargs):
|
|
return await self.service.list_widget_definitions(tenant_id, **kwargs)
|
|
|
|
async def get_widget_instance(self, tenant_id, entity_id):
|
|
return await self.service.get_widget_instance(tenant_id, entity_id)
|
|
|
|
async def get_widget_instance_by_embed(self, tenant_id, embed_ref):
|
|
return await self.service.get_widget_instance_by_embed(tenant_id, embed_ref)
|
|
|
|
async def list_widget_instances(self, tenant_id, **kwargs):
|
|
return await self.service.list_widget_instances(tenant_id, **kwargs)
|
|
|
|
async def get_notify_dispatch(self, tenant_id, entity_id):
|
|
return await self.service.get_notify_dispatch(tenant_id, entity_id)
|
|
|
|
async def list_notify_dispatches(self, tenant_id, **kwargs):
|
|
return await self.service.list_notify_dispatches(tenant_id, **kwargs)
|