- Add nuxt-skills (vue, nuxt, nuxt-ui) to .claude/skills/ - Create useCustomerSelection() composable for managing insured/buyer selection - Create usePolicyApi() composable for policy API operations - Update auto quote components to use insured/buyer instead of client - Update vehicle fields: remove valorVehiculo, add market_value, requested_value, rc_limits - Make chassis_number and engine_number optional - Update auto quote types and composables to match new API structure - Update auto quote page to submit to policy API with new structure
42 lines
904 B
TypeScript
42 lines
904 B
TypeScript
export type AutoQuoteMode = 'single' | 'comparative_pdf'
|
|
|
|
export type AutoQuoteSegment = 'individual' | 'corporate' | 'fleet'
|
|
|
|
export type AutoQuoteVehicle = {
|
|
subRamo: string
|
|
clase: string
|
|
uso: string
|
|
marca: string
|
|
modelo: string
|
|
placa: string
|
|
year: string | null
|
|
capacidadPasajeros: string
|
|
rc_limits: string
|
|
market_value: number
|
|
requested_value: number
|
|
chassis_number?: string
|
|
engine_number?: string
|
|
}
|
|
|
|
export type AutoQuoteSolicit = {
|
|
carrierIds: string[]
|
|
planIds: string[]
|
|
}
|
|
|
|
export type AutoQuoteDraft = {
|
|
quoteMode: AutoQuoteMode | null
|
|
segment: AutoQuoteSegment | null
|
|
insured: any | null
|
|
buyer: any | null
|
|
vehicle: AutoQuoteVehicle
|
|
solicit: AutoQuoteSolicit
|
|
}
|
|
|
|
export type AutoQuoteIntakePayload = {
|
|
policy_type: 'car'
|
|
insured: any
|
|
buyer: any
|
|
policy_details: AutoQuoteVehicle
|
|
selected_providers: Array<{ provider_id: string; email: string }>
|
|
}
|