import { IR8Staff } from './IR8Staff'; import { IR8Phone } from './IR8Phone'; import { IR8Address } from './IR8Address'; import { IR8Config } from './IR8Config'; /** FireStore Database Staffs JSON Format. Converted to/from IR8Staffs. */ export interface IR8StaffsFS { staffs?: Array; description?: string; phoneNumbers?: { [key: string]: IR8Phone; }; addresses?: { [key: string]: IR8Address; }; config?: IR8Config; } /** * Contains Stafs * - Singleton Doc, Firestore.docId === 'staffs' * * objClass: 120 * firestore.path: $etab/data/staffs */ export interface IR8Staffs { staffs?: { [staff: number]: IR8Staff; }; description?: string; phoneNumbers?: { [key: string]: IR8Phone; }; addresses?: { [key: string]: IR8Address; }; config?: IR8Config; } export declare function StaffsInitialValue(): Partial; /** Default Validation Staffs * Throw Error if fail */ export declare function CheckStaffsIsValid(Obj: Partial | Partial): void; /** Default Validation Staffs * return Error message if failure */ export declare function StaffsIsValid(Obj: Partial | Partial): string; /** Serialize IR8Staffs to Firestore JSON */ export declare function Staffs2JSON(Obj: Partial): IR8StaffsFS; /** Serialize Firestore JSON to IR8Staffs. json can be undefined */ export declare function JSON2Staffs(json: Partial | undefined, target: IR8Staffs): void; /** New Staffs from Firestore JSON */ export declare function JSONAsStaffs(json?: Partial): IR8Staffs;