import { HasId } from './types'; import { UserData } from './user'; import { FormData } from './form'; import { KycData } from './kyc'; import { AddressData } from './address'; type PersonRelation = { user?: UserData; form?: FormData; kyc?: KycData; address?: AddressData; }; export type PersonData = HasId & { id?: number; firstName?: string; middleName?: string; lastName?: string; gender?: string; birthDate?: Date; ssn?: string; income?: number; incomeCurrency?: string; maritalStatus?: string; userId?: number; formId?: number; mainApplicant: boolean; applicant: boolean; addressId?: number; } & PersonRelation;