import { HasId } from './types'; import { AddressData } from './address'; import { CreditData } from './credit'; import { FormData } from './form'; import { KycData } from './kyc'; import { LoanPartData } from './loan-part'; import { PersonData } from './person'; import { TinkLoanData } from './tink-loan'; import { TinkAccountData } from './tink-account'; export type CredentialsData = { email: string; password: string; }; type UserRelations = { addresses?: AddressData[]; credits?: CreditData[]; forms?: FormData[]; kycs?: KycData[]; loanParts?: LoanPartData[]; persons?: PersonData[]; tinkLoans?: TinkLoanData[]; tinkAccounts: TinkAccountData[]; }; export type UserData = HasId & Partial & UserRelations;