- Update life quote types to use insured/buyer instead of client - Update life fields: add coverage_type, coverage_amount, coverage_years, smoker, medications, surgeries, weight, height - Remove deprecated fields: dateOfBirth, age, gender, preexistingConditions, preexistingDetails, beneficiaryName, beneficiaryRelationship - Update life quote SetupStep component to use customer selection - Add Insured and Buyer sections with customer search and selection - Add health questionnaire with smoker, medications, surgeries, weight, height fields - Add coverage_type field (banking | protection) - Update life quote page to use new composables and API structure - Update validation to use insured/buyer validation - Update submission to use policy API with new structure
30 lines
593 B
TypeScript
30 lines
593 B
TypeScript
import type { LifeQuoteDraft } from '~/types/life-quote-intake'
|
|
|
|
export function emptyLifeQuoteDraft(): LifeQuoteDraft {
|
|
return {
|
|
quoteMode: null,
|
|
segment: null,
|
|
insured: null,
|
|
buyer: null,
|
|
life: {
|
|
coverage_type: 'banking',
|
|
coverage_amount: 0,
|
|
coverage_years: 10,
|
|
smoker: false,
|
|
medications: '',
|
|
surgeries: '',
|
|
weight: 0,
|
|
height: 0
|
|
},
|
|
forms: {
|
|
medicalQuestionnaire: false,
|
|
beneficiaryDesignation: false,
|
|
groupCensus: false
|
|
},
|
|
solicit: {
|
|
carrierIds: [],
|
|
planIds: []
|
|
}
|
|
}
|
|
}
|