export interface DetailViewField { key: string; label: string; type?: 'text' | 'date' | 'currency' | 'badge'; } export interface Schema { project: string; name: string; resource: string; route: string; /** * JSON string on the real CLI (Nx's array-typed CLI coercion only supports * comma-separated primitives, not JSON -- see schema.json). A real array is * also accepted for programmatic callers (e.g. tests). */ fields: string | DetailViewField[]; heading?: string; requiresAuth?: boolean; } export interface NormalizedSchema extends Omit { projectRoot: string; /** PascalCase view name with a "View" suffix, e.g. ApplicationDetailView. */ viewFileName: string; fields: DetailViewField[]; heading: string; requiresAuth: boolean; }