import type { IModel, IUser, IWorkgroup, IWorkgroupUnit } from "."; export declare const LegalPersonTypes: { readonly person: "person"; readonly company: "company"; }; export type LegalPersonTypes = typeof LegalPersonTypes[keyof typeof LegalPersonTypes]; export declare const LegalPersonTypeOptions: Record; export interface ILegalPerson extends IModel { uuid: string; type: LegalPersonTypes; name: string; nationalId: string; nationalIdIdentityDocumentUuid: string; nationalIdIdentityDocument?: IIdentityDocument; phone1: string; phone2?: string; email?: string; identityDocuments?: ILegalPersonIdentityDocument[]; addresses?: ILegalPersonAddress[]; personData?: IPerson; companyData?: ICompany; workgroupUuid: string; workgroup?: IWorkgroup; workgroupUnit?: IWorkgroupUnit; users?: IUser[]; } export interface ILegalPersonAddress { uuid: string; legalPersonUuid: string; legalPerson?: ILegalPerson; street: string; number: string; neighborhood: string; complement?: string; postalCode: string; reference?: string; } export interface IIdentityDocument extends IModel { uuid: string; workgroupUuid: string; workgroup?: IWorkgroup; name: string; legalPersonType?: LegalPersonTypes; validationRegex?: string; mask?: string; replacement?: Record; legalPersonIdentityDocuments?: ILegalPersonIdentityDocument[]; legalPersons?: ILegalPerson[]; } export interface IIdentityDocumentIssuer { uuid: string; name: string; code?: string; legalPersonIdentityDocuments?: ILegalPersonIdentityDocument[]; } export interface ILegalPersonIdentityDocument { uuid: string; legalPersonUuid: string; legalPerson?: ILegalPerson; identityDocumentUuid: string; identityDocument?: IIdentityDocument; identityDocumentIssuerUuid: string; identityDocumentIssuer?: IIdentityDocumentIssuer; value: string; issuedAt?: Date; expiresAt?: Date; } export declare const Gender: { readonly male: "male"; readonly female: "female"; readonly other: "other"; }; export type Gender = typeof Gender[keyof typeof Gender]; export declare const MaritalStatus: { readonly single: "single"; readonly married: "married"; readonly divorced: "divorced"; readonly widowed: "widowed"; readonly civil_union: "civil_union"; }; export type MaritalStatus = typeof MaritalStatus[keyof typeof MaritalStatus]; export interface IEthnicity { uuid: string; name: string; description: string; persons?: IPerson[]; } export declare const Handedness: { readonly right: "right"; readonly left: "left"; readonly ambidextrous: "ambidextrous"; }; export type Handedness = typeof Handedness[keyof typeof Handedness]; export interface IPerson extends IPersonHealth { legalPersonUuid: string; legalPerson?: ILegalPerson; ethnicityUuid?: string; ethnicity?: IEthnicity; dateOfBirth?: Date; gender?: Gender; birthCity?: string; fatherLegalPersonUuid?: string; father?: ILegalPerson; motherLegalPersonUuid?: string; mother?: ILegalPerson; maritalStatus?: MaritalStatus; occupation?: string; handedness?: Handedness; } export interface IPersonHealth { bloodType?: BloodType; healthInsuranceName?: string; healthInsuranceNumber?: string; emergencyInstructions?: string; healthConditions?: IPersonHealthCondition[]; medications?: IPersonMedication[]; } export declare const BloodType: { readonly "A+": "A+"; readonly "A-": "A-"; readonly "B+": "B+"; readonly "B-": "B-"; readonly "AB+": "AB+"; readonly "AB-": "AB-"; readonly "O+": "O+"; readonly "O-": "O-"; }; export type BloodType = typeof BloodType[keyof typeof BloodType]; export declare const HealthConditionType: { readonly allergy: "allergy"; readonly medical_condition: "medical_condition"; readonly disability: "disability"; readonly physical_restriction: "physical_restriction"; readonly other: "other"; }; export type HealthConditionType = typeof HealthConditionType[keyof typeof HealthConditionType]; export interface IHealthConditionCatalog { uuid: string; workgroupUuid: string; workgroup?: IWorkgroup; name: string; type: HealthConditionType; description?: string; persons?: IPersonHealthCondition[]; } export interface IPersonHealthCondition { uuid: string; personUuid: string; person?: IPerson; healthConditionCatalogUuid: string; healthConditionCatalog?: IHealthConditionCatalog; } export interface IMedication { uuid: string; workgroupUuid: string; workgroup?: IWorkgroup; name: string; persons?: IPersonMedication[]; } export interface IPersonMedication { uuid: string; personUuid: string; person?: IPerson; medicationUuid: string; medication?: IMedication; } export interface ICompany { legalPersonUuid: string; legalPerson?: ILegalPerson; tradeName?: string; registrationDate?: Date; }