56 lines
1.1 KiB
TypeScript
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()
|
|
}
|
|
}
|