Add nuxt-skills and update auto quotes to use new policy API structure
- 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
This commit is contained in:
@@ -2,16 +2,6 @@ export type AutoQuoteMode = 'single' | 'comparative_pdf'
|
||||
|
||||
export type AutoQuoteSegment = 'individual' | 'corporate' | 'fleet'
|
||||
|
||||
export type AutoQuoteClient = {
|
||||
fullName: string
|
||||
email: string
|
||||
phone: string
|
||||
/** Cédula / pasaporte / ID */
|
||||
documentId: string
|
||||
/** Used when segment is corporate or fleet */
|
||||
organizationName: string
|
||||
}
|
||||
|
||||
export type AutoQuoteVehicle = {
|
||||
subRamo: string
|
||||
clase: string
|
||||
@@ -21,7 +11,11 @@ export type AutoQuoteVehicle = {
|
||||
placa: string
|
||||
year: string | null
|
||||
capacidadPasajeros: string
|
||||
valorVehiculo: string
|
||||
rc_limits: string
|
||||
market_value: number
|
||||
requested_value: number
|
||||
chassis_number?: string
|
||||
engine_number?: string
|
||||
}
|
||||
|
||||
export type AutoQuoteSolicit = {
|
||||
@@ -32,15 +26,16 @@ export type AutoQuoteSolicit = {
|
||||
export type AutoQuoteDraft = {
|
||||
quoteMode: AutoQuoteMode | null
|
||||
segment: AutoQuoteSegment | null
|
||||
client: AutoQuoteClient
|
||||
insured: any | null
|
||||
buyer: any | null
|
||||
vehicle: AutoQuoteVehicle
|
||||
solicit: AutoQuoteSolicit
|
||||
}
|
||||
|
||||
export type AutoQuoteIntakePayload = {
|
||||
quoteMode: AutoQuoteMode
|
||||
segment: AutoQuoteSegment
|
||||
client: AutoQuoteClient
|
||||
vehicle: AutoQuoteVehicle
|
||||
solicit: AutoQuoteSolicit
|
||||
policy_type: 'car'
|
||||
insured: any
|
||||
buyer: any
|
||||
policy_details: AutoQuoteVehicle
|
||||
selected_providers: Array<{ provider_id: string; email: string }>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user