// Wire DTOs for the stamdata maintenance reads (ADR-0004). Generic by design: a table is // a reflected column schema + opaque JSON rows, so ONE contract serves every table. Field // names mirror the backend Contracts/Dtos.cs 1:1; this file imports NOTHING (the wire seam). export interface StamdataColumnDto { name: string; type: string; isKey: boolean; options?: string[]; } export interface StamdataTableSummaryDto { id: string; label: string; columns: StamdataColumnDto[]; temporal: boolean; } // A cell is whatever JSON the data-file holds for that column (string/date, number, or // null for an open-ended geldigTot). The adapter narrows each to editable text. export type StamdataCellDto = string | number | boolean | null; export type StamdataRowDto = Record; export interface StamdataTableDto { id: string; label: string; columns: StamdataColumnDto[]; temporal: boolean; rows: StamdataRowDto[]; }