43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
import type { AutoQuoteClient } from '~/types/auto-quote-intake'
|
|
|
|
export type LifeQuoteMode = 'single' | 'comparative_pdf'
|
|
|
|
export type LifeQuoteSegment = 'individual' | 'corporate_keyman' | 'group'
|
|
|
|
export type LifeQuoteDraft = {
|
|
quoteMode: LifeQuoteMode | null
|
|
segment: LifeQuoteSegment | null
|
|
client: AutoQuoteClient
|
|
/** Life-specific subscriber details */
|
|
life: {
|
|
dateOfBirth: string
|
|
age: string
|
|
gender: string
|
|
smoker: boolean
|
|
preexistingConditions: boolean
|
|
preexistingDetails: string
|
|
coverageAmount: string
|
|
coverageTerm: string
|
|
beneficiaryName: string
|
|
beneficiaryRelationship: string
|
|
}
|
|
/** Mock: forms marked complete to proceed */
|
|
forms: {
|
|
medicalQuestionnaire: boolean
|
|
beneficiaryDesignation: boolean
|
|
groupCensus: boolean
|
|
}
|
|
solicit: {
|
|
carrierIds: string[]
|
|
planIds: string[]
|
|
}
|
|
}
|
|
|
|
export type LifeQuoteIntakePayload = {
|
|
quoteMode: LifeQuoteMode
|
|
segment: LifeQuoteSegment
|
|
client: AutoQuoteClient
|
|
life: LifeQuoteDraft['life']
|
|
solicit: LifeQuoteDraft['solicit']
|
|
}
|