import { IR8Salle } from './IR8Salle'; import { IR8Tbl } from './IR8Tbl'; import { IR8SalleBtn } from './IR8SalleBtn'; /** FireStore Database PlanSalle JSON Format. Converted to/from IR8PlanSalle. */ export interface IR8PlanSalleFS { salles?: Array; tbls?: Array; btns?: Array; description?: string; configs?: { [key: string]: any; }; } /** * Le PlanSalle contain Salles,Tbls, .... * - Singleton Doc, Firestore.docId === 'plansalle' * * objClass: 300 * firestore.path: $etab/data/plansalle */ export interface IR8PlanSalle { salles?: { [salle: string]: IR8Salle; }; tbls?: { [tbl: string]: IR8Tbl; }; btns?: { [btnId: number]: IR8SalleBtn; }; description?: string; configs?: { [key: string]: any; }; } export declare function PlanSalleInitialValue(): Partial; /** Default Validation PlanSalle * Throw Error if fail */ export declare function CheckPlanSalleIsValid(Obj: Partial | Partial): void; /** Default Validation PlanSalle * return Error message if failure */ export declare function PlanSalleIsValid(Obj: Partial | Partial): string; /** Serialize IR8PlanSalle to Firestore JSON */ export declare function PlanSalle2JSON(Obj: Partial): IR8PlanSalleFS; /** Serialize Firestore JSON to IR8PlanSalle. json can be undefined */ export declare function JSON2PlanSalle(json: Partial | undefined, target: IR8PlanSalle): void; /** New PlanSalle from Firestore JSON */ export declare function JSONAsPlanSalle(json?: Partial): IR8PlanSalle;