import type { Contact } from '../contacts/types' import type { Organization } from '../organizations/types' export type Person = { id: string name: string | null document: string | null accountId: string createdAt: string updatedAt: string // relationships organizations?: Organization[] contacts?: Contact[] } export type PersonRelationships = 'organizations' | 'contacts' export type CreatePersonPayload = { name: string document?: string } export type UpdatePersonPayload = { name?: string document?: string | null }