import type * as KioskSchema from './schema'; /** A published build, as stored. `profileExpiresAt` is the date it stops launching — see the schema. */ export type KioskBuild = typeof KioskSchema.kioskBuilds.$inferSelect; export type KioskBuildInsert = typeof KioskSchema.kioskBuilds.$inferInsert; export type KioskDevice = typeof KioskSchema.kioskDevices.$inferSelect; export type KioskDeviceInsert = typeof KioskSchema.kioskDevices.$inferInsert; /** * One app as the catalogue presents it: its newest build per platform. * * The mobile app opens with this, and the shape is deliberately flat — it decides for itself what is * installed (URL schemes) and at which version (the shared keychain), so the server does not model that. */ export type KioskApp = { appName: string; displayName: string; ios: KioskBuild | null; android: KioskBuild | null; };