Files
moteurs/dist/commun/schemas.d.ts
T

17 lines
778 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;
/** Expression régulière qu'une chaîne doit satisfaire (v0.5.0, `pluie_station.debut`). */
pattern?: string;
}
export type NomTable = 'postes' | 'options' | 'france_climat' | 'algo_config' | 'isolants' | 'techniques_isolation' | 'aides' | 'pret' | 'tarifs_accompagnement' | 'pluie_station' | 'eau_config';
export declare const SCHEMAS: Record<NomTable, Schema>;
export declare const NOMS_TABLES: NomTable[];