import { IR8Phone } from './IR8Phone'; import { IR8Address } from './IR8Address'; /** FireStore Database Member JSON Format. Same as IR8Member. */ export declare type IR8MemberFS = IR8Member; /** * Etab Members * * objClass: 200 * firestore.path: $etab/members/$numcarte */ export interface IR8Member { guid: string; numcarte: string; barcode: string; description?: string; tariff?: number; phoneNumbers?: { [key: string]: IR8Phone; }; addresses?: { [key: string]: IR8Address; }; } export declare function MemberInitialValue(): Partial; /** Default Validation Member * Throw Error if fail */ export declare function CheckMemberIsValid(Obj: Partial | Partial): void; /** Default Validation Member * return Error message if failure */ export declare function MemberIsValid(Obj: Partial | Partial): string; /** Serialize IR8Member to Firestore JSON */ export declare function Member2JSON(Obj: Partial): IR8MemberFS; /** Serialize Firestore JSON to IR8Member. json can be undefined */ export declare function JSON2Member(json: Partial | undefined, target: IR8Member): void; /** New Member from Firestore JSON */ export declare function JSONAsMember(json?: Partial): IR8Member;