Cinq schémas dans src/commun/schemas.ts (source de vérité, schemas/*.json réécrits par npm run build) ; options reçoit entretien_h_mois, entretien_fondement, reparabilite et source_verifiee, facultatifs jusqu'à leur publication par NocoDB. Aucun moteur touché, aucune étiquette : v0.2.0 viendra avec P1.3-moteurs. 50/50 tests verts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VyW8ty2Ejp84FwCeN75oiT
15 lines
625 B
TypeScript
15 lines
625 B
TypeScript
export type TypeJson = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'object' | 'array';
|
|
export interface Schema {
|
|
$id?: string;
|
|
description?: string;
|
|
type: TypeJson | TypeJson[];
|
|
required?: string[];
|
|
properties?: Record<string, Schema>;
|
|
items?: Schema;
|
|
enum?: (string | number | boolean | null)[];
|
|
minItems?: number;
|
|
}
|
|
export type NomTable = 'postes' | 'options' | 'france_climat' | 'algo_config' | 'isolants' | 'techniques_isolation' | 'aides' | 'pret' | 'tarifs_accompagnement';
|
|
export declare const SCHEMAS: Record<NomTable, Schema>;
|
|
export declare const NOMS_TABLES: NomTable[];
|