Files
policy-ui/app/types/customer-profile.ts
Jordan Weingarten 67482f6629 WIP jordan
2026-04-16 11:11:44 -05:00

56 lines
1.1 KiB
TypeScript

export type CustomerProfileVault = {
version: number
full_name: string
document_id: string
document_expiry: string
nationality: string
smoking: boolean
height_cm: string
weight_kg: string
medical_conditions: string
plate: string
vin: string
year: string
use_type: string
declared_value: string
network: string
deductible_usd: string
preexisting_disclosure: string
coverage_zone: string
usa_cover: string
repatriation: string
address: string
construction_type: string
contents_sum: string
updatedAt: string
}
export function emptyCustomerProfile(): CustomerProfileVault {
return {
version: 1,
full_name: '',
document_id: '',
document_expiry: '',
nationality: '',
smoking: false,
height_cm: '',
weight_kg: '',
medical_conditions: '',
plate: '',
vin: '',
year: '',
use_type: '',
declared_value: '',
network: '',
deductible_usd: '',
preexisting_disclosure: '',
coverage_zone: '',
usa_cover: '',
repatriation: '',
address: '',
construction_type: '',
contents_sum: '',
updatedAt: new Date().toISOString()
}
}