TorbatYar/backend/services/experience/app/commands/bundles.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

44 lines
2.3 KiB
Python

"""Command handlers for Phase 11.8."""
from app.services.bundles import ExperienceBundlesService
class BundlesCommands:
def __init__(self, session):
self.service = ExperienceBundlesService(session)
async def create_bundle_definition(self, tenant_id, body, *, actor=None):
return await self.service.create_bundle_definition(tenant_id, body, actor=actor)
async def update_bundle_definition(self, tenant_id, entity_id, body, *, actor=None):
return await self.service.update_bundle_definition(tenant_id, entity_id, body, actor=actor)
async def delete_bundle_definition(self, tenant_id, entity_id, *, actor=None):
return await self.service.delete_bundle_definition(tenant_id, entity_id, actor=actor)
async def create_tenant_bundle(self, tenant_id, body, *, actor=None):
return await self.service.create_tenant_bundle(tenant_id, body, actor=actor)
async def update_tenant_bundle(self, tenant_id, entity_id, body, *, actor=None):
return await self.service.update_tenant_bundle(tenant_id, entity_id, body, actor=actor)
async def delete_tenant_bundle(self, tenant_id, entity_id, *, actor=None):
return await self.service.delete_tenant_bundle(tenant_id, entity_id, actor=actor)
async def create_license_binding(self, tenant_id, body, *, actor=None):
return await self.service.create_license_binding(tenant_id, body, actor=actor)
async def update_license_binding(self, tenant_id, entity_id, body, *, actor=None):
return await self.service.update_license_binding(tenant_id, entity_id, body, actor=actor)
async def delete_license_binding(self, tenant_id, entity_id, *, actor=None):
return await self.service.delete_license_binding(tenant_id, entity_id, actor=actor)
async def create_feature_toggle(self, tenant_id, body, *, actor=None):
return await self.service.create_feature_toggle(tenant_id, body, actor=actor)
async def update_feature_toggle(self, tenant_id, entity_id, body, *, actor=None):
return await self.service.update_feature_toggle(tenant_id, entity_id, body, actor=actor)
async def delete_feature_toggle(self, tenant_id, entity_id, *, actor=None):
return await self.service.delete_feature_toggle(tenant_id, entity_id, actor=actor)