import type { RailDeckDirectIntegrationClient as Client } from '@raildeck/frontend-sdk/direct-integration'; /** * Read readiness and capabilities before opening an event and its layouts. * @param client - Configured client; the caller owns current authority. * @param accountId - Authorised account for this workflow. * @param eventId - Explicitly selected event. * @returns Event context for review; no activation or guest capability is created. */ export async function prepareEventReview( client: Client, accountId: string, eventId: string, ) { const readiness = await client.events.getReadiness(accountId); const capabilities = await client.events.getCapabilities(accountId); const event = await client.events.get(accountId, eventId); const layouts = await client.events.listLayouts(accountId, eventId); return { readiness, capabilities, event, layouts }; }