From 6c411ce2b62dc461568d7efda2a39bf32eab582e Mon Sep 17 00:00:00 2001 From: HaimKortovich Date: Mon, 27 Apr 2026 15:03:43 -0500 Subject: [PATCH] Update life quotes to use new policy API structure - 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 --- app/components/quotes/life/SetupStep.vue | 308 ++++++++++++++++------- app/composables/useLifeQuoteDraft.ts | 25 +- app/pages/quotes/life/index.vue | 78 +++--- app/types/life-quote-intake.ts | 31 ++- 4 files changed, 289 insertions(+), 153 deletions(-) diff --git a/app/components/quotes/life/SetupStep.vue b/app/components/quotes/life/SetupStep.vue index 6dee215..bcc3d9f 100644 --- a/app/components/quotes/life/SetupStep.vue +++ b/app/components/quotes/life/SetupStep.vue @@ -1,11 +1,10 @@