udp-schema 2.22.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/onboarding-config.d.ts.map +1 -1
- package/dist/onboarding-config.js +5 -29
- package/dist/onboarding-config.js.map +1 -1
- package/dist/onboarding-form.d.ts +144 -18
- package/dist/onboarding-form.d.ts.map +1 -1
- package/dist/profile-fields/04-leadership.d.ts.map +1 -1
- package/dist/profile-fields/04-leadership.js +9 -19
- package/dist/profile-fields/04-leadership.js.map +1 -1
- package/dist/profile-fields/06-education.d.ts.map +1 -1
- package/dist/profile-fields/06-education.js +0 -9
- package/dist/profile-fields/06-education.js.map +1 -1
- package/dist/profile-fields/07-employment.d.ts +168 -0
- package/dist/profile-fields/07-employment.d.ts.map +1 -1
- package/dist/profile-fields/07-employment.js +72 -3
- package/dist/profile-fields/07-employment.js.map +1 -1
- package/dist/profile-fields/10-worldview.d.ts.map +1 -1
- package/dist/profile-fields/10-worldview.js +3 -23
- package/dist/profile-fields/10-worldview.js.map +1 -1
- package/dist/profile-fields/index.d.ts +1 -1
- package/dist/profile-fields/index.d.ts.map +1 -1
- package/dist/profile-fields/index.js +1 -1
- package/dist/profile-fields/index.js.map +1 -1
- package/dist/progress-fields.d.ts.map +1 -1
- package/dist/progress-fields.js +1 -5
- package/dist/progress-fields.js.map +1 -1
- package/dist/step-04.schema.d.ts +4 -4
- package/dist/step-04.schema.d.ts.map +1 -1
- package/dist/step-04.schema.js +4 -5
- package/dist/step-04.schema.js.map +1 -1
- package/dist/step-06.schema.d.ts +0 -1
- package/dist/step-06.schema.d.ts.map +1 -1
- package/dist/step-06.schema.js +0 -2
- package/dist/step-06.schema.js.map +1 -1
- package/dist/step-07.schema.d.ts +84 -2
- package/dist/step-07.schema.d.ts.map +1 -1
- package/dist/step-07.schema.js +114 -4
- package/dist/step-07.schema.js.map +1 -1
- package/dist/step-10.schema.d.ts +3 -5
- package/dist/step-10.schema.d.ts.map +1 -1
- package/dist/step-10.schema.js +3 -7
- package/dist/step-10.schema.js.map +1 -1
- package/dist/step-11.schema.d.ts +75 -15
- package/dist/step-11.schema.d.ts.map +1 -1
- package/dist/step-11.schema.js +30 -2
- package/dist/step-11.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"07-employment.js","sourceRoot":"","sources":["../../src/profile-fields/07-employment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;IACxC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAClD,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;IAC1C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,mBAAmB,EAAE;IACnD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CAC1B,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;IAC1C,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE;IAC/C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAC9C,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK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BAAiB;YACtB,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,GAAG;SACf;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const employmentStatusOptions = [\n { value: 'employed', label: 'Employed' },\n { value: 'self_employed', label: 'Self-employed' },\n { value: 'unemployed', label: 'Unemployed' },\n { value: 'student', label: 'Student' },\n { value: 'homemaker', label: 'Homemaker' },\n { value: 'retired', label: 'Retired' },\n { value: 'daily_wage', label: 'Daily wage worker' },\n { value: 'other', label: 'Other' },\n] as const;\n\nexport const shiftOptions = [\n { value: 'day_shift', label: 'Day shift' },\n { value: 'night_shift', label: 'Night shift' },\n { value: 'rotating', label: 'Rotating shifts' },\n { value: 'flexible', label: 'Flexible hours' },\n { value: 'work_from_home', label: 'Work from home' },\n { value: 'not_applicable', label: 'Not applicable' },\n] as const;\n\nexport const incomeRangeOptions = [\n { value: 'below_5k', label: 'Below ₹5,000' },\n { value: '5k_10k', label: '₹5,000 – ₹10,000' },\n { value: '10k_25k', label: '₹10,000 – ₹25,000' },\n { value: '25k_50k', label: '₹25,000 – ₹50,000' },\n { value: '50k_1L', label: '₹50,000 – ₹1 Lakh' },\n { value: '1L_2_5L', label: '₹1 Lakh – ₹2.5 Lakh' },\n { value: '2_5L_5L', label: '₹2.5 Lakh – ₹5 Lakh' },\n { value: 'above_5L', label: 'Above ₹5 Lakh' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const comfortableWithShiftOptions = [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'somewhat', label: 'Somewhat' },\n] as const;\n\nexport const employment: FieldGroup = {\n key: 'employment',\n label: 'Employment & Occupation',\n step: 7,\n description: 'Current job, shift, income, and dream occupation.',\n fields: [\n {\n order: 1,\n key: 'employmentStatus',\n label: 'Employment Status',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...employmentStatusOptions],\n },\n {\n order: 2,\n key: 'occupation',\n label: 'Occupation',\n type: 'text',\n step: 7,\n isOnboarding: true,\n optional: true,\n },\n {\n order: 3,\n key: 'workShift',\n label: 'Work Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...shiftOptions],\n },\n {\n order: 4,\n key: 'comfortableWithShift',\n label: 'Comfortable with Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...comfortableWithShiftOptions],\n },\n {\n order: 5,\n key: 'desiredShift',\n label: 'Desired Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...shiftOptions],\n },\n {\n order: 6,\n key: 'incomeRange',\n label: 'Income Range',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...incomeRangeOptions],\n sensitive: true,\n },\n {\n order: 7,\n key: 'dreamOccupation',\n label: 'Dream Occupation',\n type: 'textarea',\n step: 7,\n isOnboarding: true,\n optional: true,\n maxLength: 500,\n },\n ],\n};\n"]}
|
|
1
|
+
{"version":3,"file":"07-employment.js","sourceRoot":"","sources":["../../src/profile-fields/07-employment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;IACxC,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAClD,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;IAC5C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;IAC1C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,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E,wBAAwB;YAC/B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,2BAA2B,CAAC;SAC1C;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,YAAY,CAAC;SAC3B;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC;YAChC,SAAS,EAAE,IAAI;SAChB;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,iBAAiB;YACtB,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,gEAAgE;YAChE,iEAAiE;YACjE,gEAAgE;YAChE,wDAAwD;YACxD,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC;SAChC;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const employmentStatusOptions = [\n { value: 'employed', label: 'Employed' },\n { value: 'self_employed', label: 'Self-employed' },\n { value: 'unemployed', label: 'Unemployed' },\n { value: 'student', label: 'Student' },\n { value: 'homemaker', label: 'Homemaker' },\n { value: 'retired', label: 'Retired' },\n { value: 'daily_wage', label: 'Daily wage worker' },\n { value: 'other', label: 'Other' },\n] as const;\n\n/**\n * Occupation / Profession — exhaustive Indian profession list.\n * Mirrored from `dating-schema/src/profile-fields/03-basics.ts` (the\n * `profession` field, order 35) so cross-product profile data agrees on\n * the same canonical occupation values. Keep this list in sync with\n * dating-schema if either side adds a category.\n */\nexport const occupationOptions = [\n // Technology\n { value: 'it_software', label: 'IT & Software', description: 'Developer, data scientist, IT support, DevOps, etc.' },\n { value: 'engineering', label: 'Engineering', description: 'Civil, mechanical, electrical, chemical, etc.' },\n // Healthcare & Medicine\n { value: 'healthcare_doctor', label: 'Doctor / Physician', description: 'MBBS, MD, surgeon, dentist, etc.' },\n { value: 'healthcare_nursing', label: 'Nursing & Allied Health', description: 'Nurse, physiotherapist, lab tech, etc.' },\n { value: 'healthcare_pharma', label: 'Pharma & Biotech', description: 'Pharmaceutical, biotech, clinical research' },\n { value: 'psychology_therapy', label: 'Psychology & Therapy', description: 'Psychologist, counsellor, therapist' },\n // Education & Research\n { value: 'education_teaching', label: 'Teaching & Training', description: 'School teacher, professor, corporate trainer' },\n { value: 'science_research', label: 'Science & Research', description: 'Scientist, lab researcher, academic scholar' },\n // Finance & Business\n { value: 'finance_banking', label: 'Finance & Banking', description: 'Banking, investment, stock market, insurance' },\n { value: 'chartered_accountant', label: 'Chartered Accountant (CA)', description: 'CA, CS, CMA, auditor' },\n { value: 'business_management', label: 'Business & Management', description: 'Operations, consulting, HR, MBA roles' },\n // Creative & Media\n { value: 'arts_entertainment', label: 'Arts & Entertainment', description: 'Music, film, dance, fine arts, theatre' },\n { value: 'media_communication', label: 'Media & Communication', description: 'Journalism, PR, advertising, content' },\n { value: 'design_creative', label: 'Design & Creative', description: 'Graphic design, UI/UX, fashion design, architecture' },\n // Government & Public Service\n { value: 'civil_services', label: 'Civil Services (IAS/IPS/IFS)', description: 'Government officer cadre — IAS, IPS, IRS, IFS' },\n { value: 'government_public', label: 'Government / Public Sector', description: 'PSU, state govt, municipal, railway, postal' },\n { value: 'defence_military', label: 'Defence / Military', description: 'Army, Navy, Air Force, paramilitary, coast guard' },\n { value: 'police_law_enforcement', label: 'Police & Law Enforcement', description: 'Police, CBI, NIA, customs, excise' },\n // Legal\n { value: 'legal', label: 'Legal & Law', description: 'Lawyer, advocate, judge, legal advisor, notary' },\n // Trades & Services\n { value: 'skilled_trades', label: 'Skilled Trades', description: 'Electrician, plumber, carpenter, welder, mechanic' },\n { value: 'transport_logistics', label: 'Transport & Logistics', description: 'Driver, delivery, warehouse, supply chain' },\n { value: 'hospitality_travel', label: 'Hospitality & Tourism', description: 'Hotels, restaurants, airlines, travel agency' },\n { value: 'beauty_wellness', label: 'Beauty & Wellness', description: 'Salon, spa, fitness trainer, yoga instructor' },\n // Agriculture & Rural\n { value: 'agriculture_farming', label: 'Agriculture & Farming', description: 'Farming, agri-business, dairy, fisheries' },\n // Real Estate & Construction\n { value: 'real_estate', label: 'Real Estate & Construction', description: 'Property, builder, interior design, architecture' },\n // Retail & Commerce\n { value: 'retail_ecommerce', label: 'Retail & E-commerce', description: 'Shops, online stores, wholesale, distribution' },\n { value: 'manufacturing', label: 'Manufacturing & Production', description: 'Factory, production, quality control, industrial' },\n // Maritime\n { value: 'merchant_navy', label: 'Merchant Navy', description: 'Commercial shipping, maritime, offshore' },\n // Social & NGO\n { value: 'ngo_social_work', label: 'NGO & Social Work', description: 'Non-profit, social worker, community development' },\n { value: 'religious_spiritual', label: 'Religious / Spiritual Work', description: 'Priest, pujari, maulvi, pastor, monk, spiritual guide' },\n // Independent\n { value: 'freelancer_gig', label: 'Freelancer / Gig Worker', description: 'Independent contractor, gig economy, Uber/Ola driver' },\n { value: 'content_creator', label: 'Content Creator / Influencer', description: 'YouTuber, blogger, podcaster, Instagram creator' },\n { value: 'self_employed', label: 'Self-employed / Entrepreneur', description: 'Own business, startup founder, shop owner' },\n // Non-working\n { value: 'student', label: 'Student', description: 'Currently pursuing education' },\n { value: 'homemaker', label: 'Homemaker', description: 'Managing the household full-time' },\n { value: 'retired', label: 'Retired', description: 'No longer working professionally' },\n { value: 'not_working', label: 'Not Currently Working', description: 'Between jobs, career break, or job seeking' },\n { value: 'differently_abled_pension', label: 'On Disability / Pension', description: 'Receiving disability benefits or pension' },\n { value: 'other', label: 'Other', description: 'Something not listed above' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say', description: 'Keep this private' },\n] as const;\n\nexport const shiftOptions = [\n { value: 'day_shift', label: 'Day shift' },\n { value: 'night_shift', label: 'Night shift' },\n { value: 'rotating', label: 'Rotating shifts' },\n { value: 'flexible', label: 'Flexible hours' },\n { value: 'work_from_home', label: 'Work from home' },\n { value: 'not_applicable', label: 'Not applicable' },\n] as const;\n\nexport const incomeRangeOptions = [\n { value: 'below_5k', label: 'Below ₹5,000' },\n { value: '5k_10k', label: '₹5,000 – ₹10,000' },\n { value: '10k_25k', label: '₹10,000 – ₹25,000' },\n { value: '25k_50k', label: '₹25,000 – ₹50,000' },\n { value: '50k_1L', label: '₹50,000 – ₹1 Lakh' },\n { value: '1L_2_5L', label: '₹1 Lakh – ₹2.5 Lakh' },\n { value: '2_5L_5L', label: '₹2.5 Lakh – ₹5 Lakh' },\n { value: 'above_5L', label: 'Above ₹5 Lakh' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const comfortableWithShiftOptions = [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'somewhat', label: 'Somewhat' },\n] as const;\n\nexport const employment: FieldGroup = {\n key: 'employment',\n label: 'Employment & Occupation',\n step: 7,\n description: 'Current job, shift, income, and dream occupation.',\n fields: [\n {\n order: 1,\n key: 'employmentStatus',\n label: 'Employment Status',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...employmentStatusOptions],\n },\n {\n order: 2,\n key: 'occupation',\n label: 'Occupation',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...occupationOptions],\n },\n {\n order: 3,\n key: 'workShift',\n label: 'Work Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...shiftOptions],\n },\n {\n order: 4,\n key: 'comfortableWithShift',\n label: 'Comfortable with Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...comfortableWithShiftOptions],\n },\n {\n order: 5,\n key: 'desiredShift',\n label: 'Desired Shift',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...shiftOptions],\n },\n {\n order: 6,\n key: 'incomeRange',\n label: 'Income Range',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n options: [...incomeRangeOptions],\n sensitive: true,\n },\n {\n order: 7,\n key: 'dreamOccupation',\n label: 'Dream Occupation',\n type: 'single_select',\n step: 7,\n isOnboarding: true,\n optional: true,\n // Same option set as `occupation` above — answers \"If you could\n // start over, what would you do?\" using the canonical profession\n // enum (mirrored from dating-schema). The two fields share both\n // values and translations via `optionNs: 'occupation'`.\n options: [...occupationOptions],\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"10-worldview.d.ts","sourceRoot":"","sources":["../../src/profile-fields/10-worldview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAY9B,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAMvB,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAK7B,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAMxB,CAAC;AAEX,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"10-worldview.d.ts","sourceRoot":"","sources":["../../src/profile-fields/10-worldview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAY9B,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAMvB,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAK7B,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAMxB,CAAC;AAEX,eAAO,MAAM,SAAS,EAAE,UAqEvB,CAAC"}
|
|
@@ -78,16 +78,6 @@ export const worldView = {
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
order: 3,
|
|
81
|
-
key: 'viewOnLgbtqOpinion',
|
|
82
|
-
label: 'LGBTQ+ Opinion',
|
|
83
|
-
type: 'textarea',
|
|
84
|
-
step: 10,
|
|
85
|
-
isOnboarding: true,
|
|
86
|
-
optional: true,
|
|
87
|
-
maxLength: 500,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
order: 4,
|
|
91
81
|
key: 'viewOnTransgenderInclusion',
|
|
92
82
|
label: 'Views on Transgender Inclusion',
|
|
93
83
|
type: 'multi_select',
|
|
@@ -97,17 +87,7 @@ export const worldView = {
|
|
|
97
87
|
options: [...transgenderStatementOptions],
|
|
98
88
|
},
|
|
99
89
|
{
|
|
100
|
-
order:
|
|
101
|
-
key: 'viewOnTransgenderOpinion',
|
|
102
|
-
label: 'Transgender Opinion',
|
|
103
|
-
type: 'textarea',
|
|
104
|
-
step: 10,
|
|
105
|
-
isOnboarding: true,
|
|
106
|
-
optional: true,
|
|
107
|
-
maxLength: 500,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
order: 6,
|
|
90
|
+
order: 4,
|
|
111
91
|
key: 'facingCasteDiscrimination',
|
|
112
92
|
label: 'Caste Discrimination Experience',
|
|
113
93
|
type: 'single_select',
|
|
@@ -118,7 +98,7 @@ export const worldView = {
|
|
|
118
98
|
options: [...casteDiscriminationOptions],
|
|
119
99
|
},
|
|
120
100
|
{
|
|
121
|
-
order:
|
|
101
|
+
order: 5,
|
|
122
102
|
key: 'casteDiscriminationPlaces',
|
|
123
103
|
label: 'Where Discrimination Faced',
|
|
124
104
|
type: 'multi_select',
|
|
@@ -129,7 +109,7 @@ export const worldView = {
|
|
|
129
109
|
conditionalOn: { field: 'facingCasteDiscrimination', values: ['YES_OFTEN', 'YES_SOMETIMES'] },
|
|
130
110
|
},
|
|
131
111
|
{
|
|
132
|
-
order:
|
|
112
|
+
order: 6,
|
|
133
113
|
key: 'viewOnGenderEquality',
|
|
134
114
|
label: 'View on Gender Equality',
|
|
135
115
|
type: 'single_select',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"10-worldview.js","sourceRoot":"","sources":["../../src/profile-fields/10-worldview.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,oCAAoC,EAAE;IAC5E,EAAE,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,qCAAqC,EAAE;IAClF,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,uBAAuB,EAAE;IACjE,EAAE,KAAK,EAAE,mCAAmC,EAAE,KAAK,EAAE,qCAAqC,EAAE;IAC5F,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,kCAAkC,EAAE;IAChF,EAAE,KAAK,EAAE,uBAAuB,EAAE,KAAK,EAAE,6BAA6B,EAAE;IACxE,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,8BAA8B,EAAE;IACnE,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,mBAAmB,EAAE;CACrD,CAAC;AAEX,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC;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AK,EAAE,gCAAgC;YACvC,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,2BAA2B,CAAC;SAC1C;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,2BAA2B;YAChC,KAAK,EAAE,iCAAiC;YACxC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,CAAC,GAAG,0BAA0B,CAAC;SACzC;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,2BAA2B;YAChC,KAAK,EAAE,4BAA4B;YACnC,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,+BAA+B,CAAC;YAC7C,aAAa,EAAE,EAAE,KAAK,EAAE,2BAA2B,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC,EAAE;SAC9F;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,sBAAsB;YAC3B,KAAK,EAAE,yBAAyB;YAChC,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,qBAAqB,CAAC;SACpC;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const lgbtqStatementOptions = [\n { value: 'LGBTQ_EQUAL_RIGHTS', label: 'LGBTQ+ people deserve equal rights' },\n { value: 'LGBTQ_SOCIAL_ACCEPTANCE', label: 'Society should accept LGBTQ+ people' },\n { value: 'LGBTQ_PRIVATE_MATTER', label: \"It's a private matter\" },\n { value: 'LGBTQ_SHOULD_NOT_BE_DISCRIMINATED', label: 'They should not face discrimination' },\n { value: 'LGBTQ_TRADITION_CONFLICT', label: 'It conflicts with our traditions' },\n { value: 'LGBTQ_NOT_COMFORTABLE', label: \"I'm not comfortable with it\" },\n { value: 'LGBTQ_DONT_KNOW', label: \"I don't know enough about it\" },\n { value: 'LGBTQ_PREFER_NOT_SAY', label: 'Prefer not to say' },\n] as const;\n\nexport const transgenderStatementOptions = [\n {\n value: 'TRANS_CHILD_KEEP_IN_FAMILY',\n label: 'A transgender child should be kept in the family',\n },\n { value: 'TRANS_EQUAL_RIGHTS', label: 'Transgender people deserve equal rights' },\n { value: 'TRANS_PART_OF_NORMAL_SOCIETY', label: 'They are part of normal society' },\n { value: 'TRANS_NO_ABANDONMENT', label: 'No one should abandon a transgender family member' },\n { value: 'TRANS_ONLY_SPECIAL_COMMUNITY', label: 'They belong to their own special community' },\n { value: 'TRANS_UNCOMFORTABLE', label: \"I'm uncomfortable around transgender people\" },\n { value: 'TRANS_DONT_KNOW', label: \"I don't know enough\" },\n { value: 'TRANS_PREFER_NOT_SAY', label: 'Prefer not to say' },\n] as const;\n\nexport const casteDiscriminationPlaceOptions = [\n { value: 'SCHOOL_EDUCATION', label: 'School / Education' },\n { value: 'WORKPLACE', label: 'Workplace' },\n { value: 'LOCALITY', label: 'Locality / Neighborhood' },\n { value: 'GOVT_OFFICES', label: 'Government offices' },\n { value: 'MARKET', label: 'Market / Shops' },\n { value: 'RELIGIOUS_SPACE', label: 'Religious spaces' },\n { value: 'OTHER', label: 'Other' },\n] as const;\n\nexport const animalCrueltyOptions = [\n { value: 'strongly_against', label: 'Strongly against all forms' },\n { value: 'against_but_food', label: 'Against, but accept for food' },\n { value: 'neutral', label: 'Neutral' },\n { value: 'acceptable_in_tradition', label: 'Acceptable in tradition/culture' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const casteDiscriminationOptions = [\n { value: 'YES_OFTEN', label: 'Yes, often' },\n { value: 'YES_SOMETIMES', label: 'Yes, sometimes' },\n { value: 'NO', label: 'No' },\n { value: 'PREFER_NOT_SAY', label: 'Prefer not to say' },\n] as const;\n\nexport const genderEqualityOptions = [\n { value: 'strong_advocate', label: 'Strong advocate for equality' },\n { value: 'supportive', label: 'Supportive' },\n { value: 'traditional_values', label: 'I prefer traditional values' },\n { value: 'no_opinion', label: 'No opinion' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const worldView: FieldGroup = {\n key: 'world_view',\n label: 'World View & Experience',\n step: 10,\n description: 'Views on social issues, equality, and discrimination.',\n fields: [\n {\n order: 1,\n key: 'viewOnAnimalCruelty',\n label: 'View on Animal Cruelty',\n type: 'single_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...animalCrueltyOptions],\n },\n {\n order: 2,\n key: 'viewOnLgbtqStatements',\n label: 'Views on LGBTQ+ Rights',\n type: 'multi_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...lgbtqStatementOptions],\n },\n {\n order: 3,\n key: 'viewOnTransgenderInclusion',\n label: 'Views on Transgender Inclusion',\n type: 'multi_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...transgenderStatementOptions],\n },\n {\n order: 4,\n key: 'facingCasteDiscrimination',\n label: 'Caste Discrimination Experience',\n type: 'single_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n sensitive: true,\n options: [...casteDiscriminationOptions],\n },\n {\n order: 5,\n key: 'casteDiscriminationPlaces',\n label: 'Where Discrimination Faced',\n type: 'multi_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...casteDiscriminationPlaceOptions],\n conditionalOn: { field: 'facingCasteDiscrimination', values: ['YES_OFTEN', 'YES_SOMETIMES'] },\n },\n {\n order: 6,\n key: 'viewOnGenderEquality',\n label: 'View on Gender Equality',\n type: 'single_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...genderEqualityOptions],\n },\n ],\n};\n"]}
|
|
@@ -11,7 +11,7 @@ export { electoralBehaviour, votingFrequencyOptions, votingIssueOptions, willVot
|
|
|
11
11
|
export { comfortWithVisibilityOptions, desiredPoliticalPositionOptions, leadershipAmbitions, leadershipSkillsetOptions, participateOptions, pastExperienceOptions, politicalExposureOptions, socialInfluenceOptions, } from './04-leadership.js';
|
|
12
12
|
export { mbtiOptions, psychologicalAssessment } from './05-psychological.js';
|
|
13
13
|
export { boardOptions, DEGREE_VALUES_BY_LEVEL, degreeNameOptions, education, qualificationOptions, streamOptions, subjectOptions, } from './06-education.js';
|
|
14
|
-
export { comfortableWithShiftOptions, employment, employmentStatusOptions, incomeRangeOptions, shiftOptions, } from './07-employment.js';
|
|
14
|
+
export { comfortableWithShiftOptions, employment, employmentStatusOptions, incomeRangeOptions, occupationOptions, shiftOptions, } from './07-employment.js';
|
|
15
15
|
export { ageOfRealizationOptions, cognitiveStrengthOptions, communicationPreferenceOptions, executiveFunctionChallengeOptions, impactOnLifeOptions, learningStyleOptions, maskingBurnoutOptions, mentalHealthConditionOptions, neurodevelopmentalConditionOptions, neurodiverseIdentityOptions, neurodiversity, neurologicalChronicConditionOptions, personalityPatternOptions, sensoryProfileOptions, supportAccommodationOptions, } from './08-neurodiversity.js';
|
|
16
16
|
export { dietOptions, disabilityOptions, generalHealthOptions, healthInsuranceOptions, healthLifestyle, physicalActivityOptions, sleepQualityOptions, stressLevelOptions, substanceUseOptions, } from './09-health.js';
|
|
17
17
|
export { animalCrueltyOptions, casteDiscriminationOptions, casteDiscriminationPlaceOptions, genderEqualityOptions, lgbtqStatementOptions, transgenderStatementOptions, worldView, } from './10-worldview.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profile-fields/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,SAAS,GACV,MAAM,YAAY,CAAC;AAIpB,OAAO,E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B,EACpB,0BAA0B,EAC1B,+BAA+B,EAC/B,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAgB3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,cAAc,EAAE,SAAS,UAAU,EAa/C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profile-fields/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,YAAY,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,SAAS,GACV,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,4BAA4B,EAC5B,+BAA+B,EAC/B,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,uBAAuB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, willVot
|
|
|
11
11
|
export { comfortWithVisibilityOptions, desiredPoliticalPositionOptions, leadershipAmbitions, leadershipSkillsetOptions, participateOptions, pastExperienceOptions, politicalExposureOptions, socialInfluenceOptions, } from './04-leadership.js';
|
|
12
12
|
export { mbtiOptions, psychologicalAssessment } from './05-psychological.js';
|
|
13
13
|
export { boardOptions, DEGREE_VALUES_BY_LEVEL, degreeNameOptions, education, qualificationOptions, streamOptions, subjectOptions, } from './06-education.js';
|
|
14
|
-
export { comfortableWithShiftOptions, employment, employmentStatusOptions, incomeRangeOptions, shiftOptions, } from './07-employment.js';
|
|
14
|
+
export { comfortableWithShiftOptions, employment, employmentStatusOptions, incomeRangeOptions, occupationOptions, shiftOptions, } from './07-employment.js';
|
|
15
15
|
export { ageOfRealizationOptions, cognitiveStrengthOptions, communicationPreferenceOptions, executiveFunctionChallengeOptions, impactOnLifeOptions, learningStyleOptions, maskingBurnoutOptions, mentalHealthConditionOptions, neurodevelopmentalConditionOptions, neurodiverseIdentityOptions, neurodiversity, neurologicalChronicConditionOptions, personalityPatternOptions, sensoryProfileOptions, supportAccommodationOptions, } from './08-neurodiversity.js';
|
|
16
16
|
export { dietOptions, disabilityOptions, generalHealthOptions, healthInsuranceOptions, healthLifestyle, physicalActivityOptions, sleepQualityOptions, stressLevelOptions, substanceUseOptions, } from './09-health.js';
|
|
17
17
|
export { animalCrueltyOptions, casteDiscriminationOptions, casteDiscriminationPlaceOptions, genderEqualityOptions, lgbtqStatementOptions, transgenderStatementOptions, worldView, } from './10-worldview.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/profile-fields/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,+EAA+E;AAE/E,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1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AS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,+EAA+E;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,OAAO;IACP,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,uBAAuB;IACvB,SAAS;IACT,UAAU;IACV,cAAc;IACd,eAAe;IACf,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAC","sourcesContent":["/**\n * UDP Profile Fields — barrel export.\n *\n * Mirrors the dating-schema profile-fields pattern.\n * Each file defines a FieldGroup with rich field metadata and options.\n */\n\nexport type {\n BaseField,\n FieldGroup,\n FieldOption,\n MultiSelectField,\n NumberField,\n ProfileField,\n SelectField,\n TextField,\n} from './types.js';\n\n// ── Field groups ────────────────────────────────────────────────────────────\n\nexport {\n genderOptions,\n languageOptions,\n minorityOptions,\n profile,\n religionOptions,\n reservationOptions,\n} from './01-profile.js';\nexport {\n civicEngagementOptions,\n officeElectionLevelOptions,\n partyAssociationRoleOptions,\n partyOptions,\n politicalAssociation,\n politicalSpectrumOptions,\n relativesInPoliticsOptions,\n} from './02-political.js';\nexport {\n electoralBehaviour,\n votingFrequencyOptions,\n votingIssueOptions,\n willVoteOptions,\n yesNoPreferOptions,\n} from './03-electoral.js';\nexport {\n comfortWithVisibilityOptions,\n desiredPoliticalPositionOptions,\n leadershipAmbitions,\n leadershipSkillsetOptions,\n participateOptions,\n pastExperienceOptions,\n politicalExposureOptions,\n socialInfluenceOptions,\n} from './04-leadership.js';\nexport { mbtiOptions, psychologicalAssessment } from './05-psychological.js';\nexport {\n boardOptions,\n DEGREE_VALUES_BY_LEVEL,\n degreeNameOptions,\n education,\n qualificationOptions,\n streamOptions,\n subjectOptions,\n} from './06-education.js';\nexport {\n comfortableWithShiftOptions,\n employment,\n employmentStatusOptions,\n incomeRangeOptions,\n shiftOptions,\n} from './07-employment.js';\nexport {\n ageOfRealizationOptions,\n cognitiveStrengthOptions,\n communicationPreferenceOptions,\n executiveFunctionChallengeOptions,\n impactOnLifeOptions,\n learningStyleOptions,\n maskingBurnoutOptions,\n mentalHealthConditionOptions,\n neurodevelopmentalConditionOptions,\n neurodiverseIdentityOptions,\n neurodiversity,\n neurologicalChronicConditionOptions,\n personalityPatternOptions,\n sensoryProfileOptions,\n supportAccommodationOptions,\n} from './08-neurodiversity.js';\nexport {\n dietOptions,\n disabilityOptions,\n generalHealthOptions,\n healthInsuranceOptions,\n healthLifestyle,\n physicalActivityOptions,\n sleepQualityOptions,\n stressLevelOptions,\n substanceUseOptions,\n} from './09-health.js';\nexport {\n animalCrueltyOptions,\n casteDiscriminationOptions,\n casteDiscriminationPlaceOptions,\n genderEqualityOptions,\n lgbtqStatementOptions,\n transgenderStatementOptions,\n worldView,\n} from './10-worldview.js';\nexport { residence } from './11-residence.js';\nexport {\n bplCardOptions,\n digitalAccessOptions,\n familyMemberOptions,\n household,\n householdIncomeOptions,\n housingTypeOptions,\n landOwnershipOptions,\n maritalStatusOptions,\n migrationStatusOptions,\n primaryIncomeSourceOptions,\n} from './12-household.js';\n\n// ── All field groups (for building lookup maps) ─────────────────────────────\n\nimport { profile } from './01-profile.js';\nimport { politicalAssociation } from './02-political.js';\nimport { electoralBehaviour } from './03-electoral.js';\nimport { leadershipAmbitions } from './04-leadership.js';\nimport { psychologicalAssessment } from './05-psychological.js';\nimport { education } from './06-education.js';\nimport { employment } from './07-employment.js';\nimport { neurodiversity } from './08-neurodiversity.js';\nimport { healthLifestyle } from './09-health.js';\nimport { worldView } from './10-worldview.js';\nimport { residence } from './11-residence.js';\nimport { household } from './12-household.js';\nimport type { FieldGroup } from './types.js';\n\nexport const allFieldGroups: readonly FieldGroup[] = [\n profile,\n politicalAssociation,\n electoralBehaviour,\n leadershipAmbitions,\n psychologicalAssessment,\n education,\n employment,\n neurodiversity,\n healthLifestyle,\n worldView,\n residence,\n household,\n];\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/profile-fields/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,+EAA+E;AAE/E,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,4BAA4B,EAC5B,+BAA+B,EAC/B,mBAAmB,EACnB,yBA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AAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,OAAO;IACP,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,uBAAuB;IACvB,SAAS;IACT,UAAU;IACV,cAAc;IACd,eAAe;IACf,SAAS;IACT,SAAS;IACT,SAAS;CACV,CAAC","sourcesContent":["/**\n * UDP Profile Fields — barrel export.\n *\n * Mirrors the dating-schema profile-fields pattern.\n * Each file defines a FieldGroup with rich field metadata and options.\n */\n\nexport type {\n BaseField,\n FieldGroup,\n FieldOption,\n MultiSelectField,\n NumberField,\n ProfileField,\n SelectField,\n TextField,\n} from './types.js';\n\n// ── Field groups ────────────────────────────────────────────────────────────\n\nexport {\n genderOptions,\n languageOptions,\n minorityOptions,\n profile,\n religionOptions,\n reservationOptions,\n} from './01-profile.js';\nexport {\n civicEngagementOptions,\n officeElectionLevelOptions,\n partyAssociationRoleOptions,\n partyOptions,\n politicalAssociation,\n politicalSpectrumOptions,\n relativesInPoliticsOptions,\n} from './02-political.js';\nexport {\n electoralBehaviour,\n votingFrequencyOptions,\n votingIssueOptions,\n willVoteOptions,\n yesNoPreferOptions,\n} from './03-electoral.js';\nexport {\n comfortWithVisibilityOptions,\n desiredPoliticalPositionOptions,\n leadershipAmbitions,\n leadershipSkillsetOptions,\n participateOptions,\n pastExperienceOptions,\n politicalExposureOptions,\n socialInfluenceOptions,\n} from './04-leadership.js';\nexport { mbtiOptions, psychologicalAssessment } from './05-psychological.js';\nexport {\n boardOptions,\n DEGREE_VALUES_BY_LEVEL,\n degreeNameOptions,\n education,\n qualificationOptions,\n streamOptions,\n subjectOptions,\n} from './06-education.js';\nexport {\n comfortableWithShiftOptions,\n employment,\n employmentStatusOptions,\n incomeRangeOptions,\n occupationOptions,\n shiftOptions,\n} from './07-employment.js';\nexport {\n ageOfRealizationOptions,\n cognitiveStrengthOptions,\n communicationPreferenceOptions,\n executiveFunctionChallengeOptions,\n impactOnLifeOptions,\n learningStyleOptions,\n maskingBurnoutOptions,\n mentalHealthConditionOptions,\n neurodevelopmentalConditionOptions,\n neurodiverseIdentityOptions,\n neurodiversity,\n neurologicalChronicConditionOptions,\n personalityPatternOptions,\n sensoryProfileOptions,\n supportAccommodationOptions,\n} from './08-neurodiversity.js';\nexport {\n dietOptions,\n disabilityOptions,\n generalHealthOptions,\n healthInsuranceOptions,\n healthLifestyle,\n physicalActivityOptions,\n sleepQualityOptions,\n stressLevelOptions,\n substanceUseOptions,\n} from './09-health.js';\nexport {\n animalCrueltyOptions,\n casteDiscriminationOptions,\n casteDiscriminationPlaceOptions,\n genderEqualityOptions,\n lgbtqStatementOptions,\n transgenderStatementOptions,\n worldView,\n} from './10-worldview.js';\nexport { residence } from './11-residence.js';\nexport {\n bplCardOptions,\n digitalAccessOptions,\n familyMemberOptions,\n household,\n householdIncomeOptions,\n housingTypeOptions,\n landOwnershipOptions,\n maritalStatusOptions,\n migrationStatusOptions,\n primaryIncomeSourceOptions,\n} from './12-household.js';\n\n// ── All field groups (for building lookup maps) ─────────────────────────────\n\nimport { profile } from './01-profile.js';\nimport { politicalAssociation } from './02-political.js';\nimport { electoralBehaviour } from './03-electoral.js';\nimport { leadershipAmbitions } from './04-leadership.js';\nimport { psychologicalAssessment } from './05-psychological.js';\nimport { education } from './06-education.js';\nimport { employment } from './07-employment.js';\nimport { neurodiversity } from './08-neurodiversity.js';\nimport { healthLifestyle } from './09-health.js';\nimport { worldView } from './10-worldview.js';\nimport { residence } from './11-residence.js';\nimport { household } from './12-household.js';\nimport type { FieldGroup } from './types.js';\n\nexport const allFieldGroups: readonly FieldGroup[] = [\n profile,\n politicalAssociation,\n electoralBehaviour,\n leadershipAmbitions,\n psychologicalAssessment,\n education,\n employment,\n neurodiversity,\n healthLifestyle,\n worldView,\n residence,\n household,\n];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-fields.d.ts","sourceRoot":"","sources":["../src/progress-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"progress-fields.d.ts","sourceRoot":"","sources":["../src/progress-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAuIxD,CAAC;AAEX,gCAAgC;AAChC,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAE3D,CAAC;AAEX;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAYlF;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAcrD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,GACnD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAuBnC;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GACnE;IACD,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAeA"}
|
package/dist/progress-fields.js
CHANGED
|
@@ -44,13 +44,12 @@ export const UDP_PROGRESS_FIELDS = {
|
|
|
44
44
|
],
|
|
45
45
|
4: [
|
|
46
46
|
'participateInRevolution',
|
|
47
|
-
'desiredPoliticalPosition',
|
|
48
47
|
'leadershipSkillset',
|
|
49
48
|
'politicalExposure',
|
|
50
49
|
'comfortWithVisibility',
|
|
51
50
|
'socialInfluenceLevel',
|
|
52
51
|
'pastExperience',
|
|
53
|
-
'
|
|
52
|
+
'desiredPoliticalPosition',
|
|
54
53
|
],
|
|
55
54
|
5: ['mbtiType', 'oceanScores'],
|
|
56
55
|
6: [
|
|
@@ -75,7 +74,6 @@ export const UDP_PROGRESS_FIELDS = {
|
|
|
75
74
|
'doctorates',
|
|
76
75
|
'postDoctorates',
|
|
77
76
|
'otherCertificates',
|
|
78
|
-
'educationNotes',
|
|
79
77
|
],
|
|
80
78
|
7: [
|
|
81
79
|
'employmentStatus',
|
|
@@ -115,9 +113,7 @@ export const UDP_PROGRESS_FIELDS = {
|
|
|
115
113
|
10: [
|
|
116
114
|
'viewOnAnimalCruelty',
|
|
117
115
|
'viewOnLgbtqStatements',
|
|
118
|
-
'viewOnLgbtqOpinion',
|
|
119
116
|
'viewOnTransgenderInclusion',
|
|
120
|
-
'viewOnTransgenderOpinion',
|
|
121
117
|
'facingCasteDiscrimination',
|
|
122
118
|
'casteDiscriminationPlaces',
|
|
123
119
|
'viewOnGenderEquality',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-fields.js","sourceRoot":"","sources":["../src/progress-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAsC;IACpE,CAAC,EAAE;QACD,6DAA6D;QAC7D,wEAAwE;QACxE,UAAU;QACV,QAAQ;QACR,aAAa;QACb,gBAAgB;QAChB,iBAAiB;QACjB,oBAAoB;QACpB,gBAAgB;QAChB,kBAAkB;QAClB,mBAAmB;QACnB,gBAAgB;KACjB;IACD,CAAC,EAAE;QACD,mBAAmB;QACnB,sBAAsB;QACtB,sBAAsB;QACtB,wBAAwB;QACxB,qBAAqB;QACrB,oEAAoE;QACpE,qEAAqE;QACrE,8DAA8D;QAC9D,sBAAsB;QACtB,qBAAqB;QACrB,2BAA2B;KAC5B;IACD,CAAC,EAAE;QACD,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,qBAAqB;KACtB;IACD,CAAC,EAAE;QACD,yBAAyB;QACzB,0BAA0B;QAC1B,oBAAoB;QACpB,mBAAmB;QACnB,uBAAuB;QACvB,sBAAsB;QACtB,gBAAgB;QAChB,uBAAuB;KACxB;IACD,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC;IAC9B,CAAC,EAAE;QACD,sBAAsB;QACtB,WAAW;QACX,qBAAqB;QACrB,0BAA0B;QAC1B,6BAA6B;QAC7B,wBAAwB;QACxB,6BAA6B;QAC7B,WAAW;QACX,+BAA+B;QAC/B,iCAAiC;QACjC,6BAA6B;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U,EAAE,EAAE,CAAC;QACrE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,qBAAqB,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;QAClF,KAAK,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1C,WAAW,IAAI,MAAM,CAAC;QACtB,WAAW,IAAI,KAAK,CAAC;IACvB,CAAC;IAED,MAAM,OAAO,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AACtD,CAAC","sourcesContent":["/**\n * UDP Progress Fields — Single source of truth for step progress counting.\n *\n * Used by both frontend (stepper UI) and backend (computeStepProgressCounts).\n * Each step lists the curated fields that determine filled/total progress.\n *\n * Dot-paths (e.g., \"currentAddress.state\") resolve nested subdocument fields.\n * Only these fields count toward progress — extra fields in the schema are ignored.\n */\n\nexport const UDP_PROGRESS_FIELDS: Record<number, readonly string[]> = {\n 1: [\n // 'fullName' is a synthetic key — counts as filled if ANY of\n // firstName / middleName / lastName is set. See UDP_PROGRESS_SYNTHETIC.\n 'fullName',\n 'gender',\n 'dateOfBirth',\n 'whatsappNumber',\n 'primaryLanguage',\n 'secondaryLanguages',\n 'familyReligion',\n 'personalReligion',\n 'reservationStatus',\n 'minorityStatus',\n ],\n 2: [\n 'politicalSpectrum',\n 'selfPartyAssociation',\n 'partyAssociationRole',\n 'familyPartyAssociation',\n 'relativesInPolitics',\n // Level/year are inline within the parent yes/no screens — only the\n // 2 parent fields contribute to step progress (the user can complete\n // the screen by answering yes/no without filling level/year).\n 'hasContestedElection',\n 'hasHeldPublicOffice',\n 'networkAndCivicEngagement',\n ],\n 3: [\n 'epicNumber',\n 'willVoteThisTime',\n 'didVoteLastTime',\n 'votingFrequency',\n 'primaryVotingIssues',\n ],\n 4: [\n 'participateInRevolution',\n 'desiredPoliticalPosition',\n 'leadershipSkillset',\n 'politicalExposure',\n 'comfortWithVisibility',\n 'socialInfluenceLevel',\n 'pastExperience',\n 'changesYouWantToBring',\n ],\n 5: ['mbtiType', 'oceanScores'],\n 6: [\n 'highestQualification',\n // Class 10\n 'education10th.board',\n 'education10th.schoolName',\n 'education10th.yearOfPassing',\n 'education10th.subjects',\n 'education10th.marksObtained',\n // Class 12\n 'education12th.institutionName',\n 'education12th.boardOrUniversity',\n 'education12th.yearOfPassing',\n 'education12th.courseOrStream',\n 'education12th.subjects',\n 'education12th.marksOrGrade',\n // Degree repeaters + certificates + notes\n 'diplomas',\n 'graduations',\n 'postGraduations',\n 'doctorates',\n 'postDoctorates',\n 'otherCertificates',\n 'educationNotes',\n ],\n 7: [\n 'employmentStatus',\n 'occupation',\n 'workShift',\n 'comfortableWithShift',\n 'desiredShift',\n 'incomeRange',\n 'dreamOccupation',\n ],\n 8: [\n 'neurodiverseIdentity',\n 'neurodevelopmentalConditions',\n 'mentalHealthConditions',\n 'personalityPatterns',\n 'neurologicalChronicConditions',\n 'ageOfRealization',\n 'sensoryProfile',\n 'cognitiveStrengths',\n 'executiveFunctionChallenges',\n 'learningStyle',\n 'communicationPreference',\n 'supportAndAccommodations',\n 'maskingAndBurnout',\n 'impactOnLife',\n ],\n 9: [\n 'disabilityStatus',\n 'generalHealth',\n 'healthInsurance',\n 'diet',\n 'physicalActivity',\n 'sleepQuality',\n 'substanceUse',\n 'stressLevel',\n ],\n 10: [\n 'viewOnAnimalCruelty',\n 'viewOnLgbtqStatements',\n 'viewOnLgbtqOpinion',\n 'viewOnTransgenderInclusion',\n 'viewOnTransgenderOpinion',\n 'facingCasteDiscrimination',\n 'casteDiscriminationPlaces',\n 'viewOnGenderEquality',\n ],\n 11: [\n 'currentAddress.state',\n 'currentAddress.district',\n 'currentAddress.village',\n 'permanentAddress.state',\n 'permanentAddress.district',\n 'permanentAddress.village',\n 'homeNativePlace.state',\n 'homeNativePlace.district',\n 'ancestralPlace.state',\n 'ancestralPlace.district',\n ],\n 12: [\n 'maritalStatus',\n 'familyMembers',\n 'numberOfDependents',\n 'housingType',\n 'householdIncome',\n 'bplCard',\n 'digitalAccess',\n 'migrationStatus',\n 'landOwnership',\n 'primaryIncomeSource',\n ],\n} as const;\n\n/** Total number of UDP steps */\nexport const UDP_TOTAL_STEPS = 12;\n\n/**\n * Synthetic progress keys — keys that aren't real fields but represent\n * a group of underlying fields. Counted as \"filled\" if ANY underlying\n * field is filled. Used for UI sub-steps that collect multiple fields\n * at once (e.g. the fullName sub-step that saves firstName, middleName,\n * and lastName).\n */\nexport const UDP_PROGRESS_SYNTHETIC: Record<string, readonly string[]> = {\n fullName: ['firstName', 'middleName', 'lastName'],\n} as const;\n\n/**\n * Resolve a dot-path (e.g., \"currentAddress.state\") against a data object.\n * Works with both plain objects and Mongoose subdocuments.\n */\nexport function getNestedValue(obj: Record<string, unknown>, path: string): unknown {\n const parts = path.split('.');\n let current: unknown = obj;\n\n for (const part of parts) {\n if (current === null || current === undefined || typeof current !== 'object') {\n return undefined;\n }\n current = (current as Record<string, unknown>)[part];\n }\n\n return current;\n}\n\n/** Determine if a field value counts as \"filled\" for progress */\nexport function isFieldFilled(value: unknown): boolean {\n if (value === null || value === undefined) return false;\n if (typeof value === 'string') return value.trim().length > 0;\n if (typeof value === 'number') return true;\n if (typeof value === 'boolean') return true;\n if (Array.isArray(value)) return value.length > 0;\n if (typeof value === 'object') {\n // Area entity ref - check for name\n if ('name' in value && typeof (value as Record<string, unknown>).name === 'string') {\n return (value as Record<string, unknown>).name !== '';\n }\n return Object.keys(value).length > 0;\n }\n return false;\n}\n\n/**\n * Calculate progress for a single step.\n * Shared between frontend (stepper UI) and backend (API response).\n */\nexport function calculateStepProgress(\n stepNumber: number,\n formData: Record<string, unknown> | undefined | null,\n): { filled: number; total: number } {\n const fields = UDP_PROGRESS_FIELDS[stepNumber];\n if (!fields) return { filled: 0, total: 0 };\n\n const total = fields.length;\n if (!formData || total === 0) return { filled: 0, total };\n\n let filled = 0;\n for (const fieldPath of fields) {\n // Synthetic keys (e.g., \"fullName\") — filled if ANY underlying field is filled.\n const syntheticPaths = UDP_PROGRESS_SYNTHETIC[fieldPath];\n if (syntheticPaths) {\n if (syntheticPaths.some((p) => isFieldFilled(getNestedValue(formData, p)))) {\n filled++;\n }\n continue;\n }\n if (isFieldFilled(getNestedValue(formData, fieldPath))) {\n filled++;\n }\n }\n\n return { filled, total };\n}\n\n/**\n * Calculate overall progress across all steps.\n * Returns per-step breakdown + overall percentage.\n *\n * Mirrors dating-schema's calculateDatingOverallProgress().\n *\n * @param stepData - Map of step number → form data (e.g., { 1: {...}, 2: {...} })\n */\nexport function calculateOverallProgress(\n stepData: Record<number, Record<string, unknown> | undefined | null>,\n): {\n steps: { stepNumber: number; filled: number; total: number }[];\n totalFilled: number;\n totalFields: number;\n percent: number;\n} {\n const steps: { stepNumber: number; filled: number; total: number }[] = [];\n let totalFilled = 0;\n let totalFields = 0;\n\n for (let stepNumber = 1; stepNumber <= UDP_TOTAL_STEPS; stepNumber++) {\n const { filled, total } = calculateStepProgress(stepNumber, stepData[stepNumber]);\n steps.push({ stepNumber, filled, total });\n totalFilled += filled;\n totalFields += total;\n }\n\n const percent = totalFields > 0 ? Math.round((totalFilled / totalFields) * 100) : 0;\n\n return { steps, totalFilled, totalFields, percent };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"progress-fields.js","sourceRoot":"","sources":["../src/progress-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAsC;IACpE,CAAC,EAAE;QACD,6DAA6D;QAC7D,wEAAwE;QACxE,UAAU;QACV,QAAQ;QACR,aAAa;QACb,gBAAgB;QAChB,iBAAiB;QACjB,oBAAoB;QACpB,gBAAgB;QAChB,kBA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AAI,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3E,MAAM,EAAE,CAAC;YACX,CAAC;YACD,SAAS;QACX,CAAC;QACD,IAAI,aAAa,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC;YACvD,MAAM,EAAE,CAAC;QACX,CAAC;IACH,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAC3B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CACtC,QAAoE;IAOpE,MAAM,KAAK,GAA4D,EAAE,CAAC;IAC1E,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,WAAW,GAAG,CAAC,CAAC;IAEpB,KAAK,IAAI,UAAU,GAAG,CAAC,EAAE,UAAU,IAAI,eAAe,EAAE,UAAU,EAAE,EAAE,CAAC;QACrE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,qBAAqB,CAAC,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;QAClF,KAAK,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1C,WAAW,IAAI,MAAM,CAAC;QACtB,WAAW,IAAI,KAAK,CAAC;IACvB,CAAC;IAED,MAAM,OAAO,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AACtD,CAAC","sourcesContent":["/**\n * UDP Progress Fields — Single source of truth for step progress counting.\n *\n * Used by both frontend (stepper UI) and backend (computeStepProgressCounts).\n * Each step lists the curated fields that determine filled/total progress.\n *\n * Dot-paths (e.g., \"currentAddress.state\") resolve nested subdocument fields.\n * Only these fields count toward progress — extra fields in the schema are ignored.\n */\n\nexport const UDP_PROGRESS_FIELDS: Record<number, readonly string[]> = {\n 1: [\n // 'fullName' is a synthetic key — counts as filled if ANY of\n // firstName / middleName / lastName is set. See UDP_PROGRESS_SYNTHETIC.\n 'fullName',\n 'gender',\n 'dateOfBirth',\n 'whatsappNumber',\n 'primaryLanguage',\n 'secondaryLanguages',\n 'familyReligion',\n 'personalReligion',\n 'reservationStatus',\n 'minorityStatus',\n ],\n 2: [\n 'politicalSpectrum',\n 'selfPartyAssociation',\n 'partyAssociationRole',\n 'familyPartyAssociation',\n 'relativesInPolitics',\n // Level/year are inline within the parent yes/no screens — only the\n // 2 parent fields contribute to step progress (the user can complete\n // the screen by answering yes/no without filling level/year).\n 'hasContestedElection',\n 'hasHeldPublicOffice',\n 'networkAndCivicEngagement',\n ],\n 3: [\n 'epicNumber',\n 'willVoteThisTime',\n 'didVoteLastTime',\n 'votingFrequency',\n 'primaryVotingIssues',\n ],\n 4: [\n 'participateInRevolution',\n 'leadershipSkillset',\n 'politicalExposure',\n 'comfortWithVisibility',\n 'socialInfluenceLevel',\n 'pastExperience',\n 'desiredPoliticalPosition',\n ],\n 5: ['mbtiType', 'oceanScores'],\n 6: [\n 'highestQualification',\n // Class 10\n 'education10th.board',\n 'education10th.schoolName',\n 'education10th.yearOfPassing',\n 'education10th.subjects',\n 'education10th.marksObtained',\n // Class 12\n 'education12th.institutionName',\n 'education12th.boardOrUniversity',\n 'education12th.yearOfPassing',\n 'education12th.courseOrStream',\n 'education12th.subjects',\n 'education12th.marksOrGrade',\n // Degree repeaters + certificates + notes\n 'diplomas',\n 'graduations',\n 'postGraduations',\n 'doctorates',\n 'postDoctorates',\n 'otherCertificates',\n ],\n 7: [\n 'employmentStatus',\n 'occupation',\n 'workShift',\n 'comfortableWithShift',\n 'desiredShift',\n 'incomeRange',\n 'dreamOccupation',\n ],\n 8: [\n 'neurodiverseIdentity',\n 'neurodevelopmentalConditions',\n 'mentalHealthConditions',\n 'personalityPatterns',\n 'neurologicalChronicConditions',\n 'ageOfRealization',\n 'sensoryProfile',\n 'cognitiveStrengths',\n 'executiveFunctionChallenges',\n 'learningStyle',\n 'communicationPreference',\n 'supportAndAccommodations',\n 'maskingAndBurnout',\n 'impactOnLife',\n ],\n 9: [\n 'disabilityStatus',\n 'generalHealth',\n 'healthInsurance',\n 'diet',\n 'physicalActivity',\n 'sleepQuality',\n 'substanceUse',\n 'stressLevel',\n ],\n 10: [\n 'viewOnAnimalCruelty',\n 'viewOnLgbtqStatements',\n 'viewOnTransgenderInclusion',\n 'facingCasteDiscrimination',\n 'casteDiscriminationPlaces',\n 'viewOnGenderEquality',\n ],\n 11: [\n 'currentAddress.state',\n 'currentAddress.district',\n 'currentAddress.village',\n 'permanentAddress.state',\n 'permanentAddress.district',\n 'permanentAddress.village',\n 'homeNativePlace.state',\n 'homeNativePlace.district',\n 'ancestralPlace.state',\n 'ancestralPlace.district',\n ],\n 12: [\n 'maritalStatus',\n 'familyMembers',\n 'numberOfDependents',\n 'housingType',\n 'householdIncome',\n 'bplCard',\n 'digitalAccess',\n 'migrationStatus',\n 'landOwnership',\n 'primaryIncomeSource',\n ],\n} as const;\n\n/** Total number of UDP steps */\nexport const UDP_TOTAL_STEPS = 12;\n\n/**\n * Synthetic progress keys — keys that aren't real fields but represent\n * a group of underlying fields. Counted as \"filled\" if ANY underlying\n * field is filled. Used for UI sub-steps that collect multiple fields\n * at once (e.g. the fullName sub-step that saves firstName, middleName,\n * and lastName).\n */\nexport const UDP_PROGRESS_SYNTHETIC: Record<string, readonly string[]> = {\n fullName: ['firstName', 'middleName', 'lastName'],\n} as const;\n\n/**\n * Resolve a dot-path (e.g., \"currentAddress.state\") against a data object.\n * Works with both plain objects and Mongoose subdocuments.\n */\nexport function getNestedValue(obj: Record<string, unknown>, path: string): unknown {\n const parts = path.split('.');\n let current: unknown = obj;\n\n for (const part of parts) {\n if (current === null || current === undefined || typeof current !== 'object') {\n return undefined;\n }\n current = (current as Record<string, unknown>)[part];\n }\n\n return current;\n}\n\n/** Determine if a field value counts as \"filled\" for progress */\nexport function isFieldFilled(value: unknown): boolean {\n if (value === null || value === undefined) return false;\n if (typeof value === 'string') return value.trim().length > 0;\n if (typeof value === 'number') return true;\n if (typeof value === 'boolean') return true;\n if (Array.isArray(value)) return value.length > 0;\n if (typeof value === 'object') {\n // Area entity ref - check for name\n if ('name' in value && typeof (value as Record<string, unknown>).name === 'string') {\n return (value as Record<string, unknown>).name !== '';\n }\n return Object.keys(value).length > 0;\n }\n return false;\n}\n\n/**\n * Calculate progress for a single step.\n * Shared between frontend (stepper UI) and backend (API response).\n */\nexport function calculateStepProgress(\n stepNumber: number,\n formData: Record<string, unknown> | undefined | null,\n): { filled: number; total: number } {\n const fields = UDP_PROGRESS_FIELDS[stepNumber];\n if (!fields) return { filled: 0, total: 0 };\n\n const total = fields.length;\n if (!formData || total === 0) return { filled: 0, total };\n\n let filled = 0;\n for (const fieldPath of fields) {\n // Synthetic keys (e.g., \"fullName\") — filled if ANY underlying field is filled.\n const syntheticPaths = UDP_PROGRESS_SYNTHETIC[fieldPath];\n if (syntheticPaths) {\n if (syntheticPaths.some((p) => isFieldFilled(getNestedValue(formData, p)))) {\n filled++;\n }\n continue;\n }\n if (isFieldFilled(getNestedValue(formData, fieldPath))) {\n filled++;\n }\n }\n\n return { filled, total };\n}\n\n/**\n * Calculate overall progress across all steps.\n * Returns per-step breakdown + overall percentage.\n *\n * Mirrors dating-schema's calculateDatingOverallProgress().\n *\n * @param stepData - Map of step number → form data (e.g., { 1: {...}, 2: {...} })\n */\nexport function calculateOverallProgress(\n stepData: Record<number, Record<string, unknown> | undefined | null>,\n): {\n steps: { stepNumber: number; filled: number; total: number }[];\n totalFilled: number;\n totalFields: number;\n percent: number;\n} {\n const steps: { stepNumber: number; filled: number; total: number }[] = [];\n let totalFilled = 0;\n let totalFields = 0;\n\n for (let stepNumber = 1; stepNumber <= UDP_TOTAL_STEPS; stepNumber++) {\n const { filled, total } = calculateStepProgress(stepNumber, stepData[stepNumber]);\n steps.push({ stepNumber, filled, total });\n totalFilled += filled;\n totalFields += total;\n }\n\n const percent = totalFields > 0 ? Math.round((totalFilled / totalFields) * 100) : 0;\n\n return { steps, totalFilled, totalFields, percent };\n}\n"]}
|
package/dist/step-04.schema.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Step 04 — Leadership & Ambitions
|
|
3
3
|
*
|
|
4
|
-
* Fields
|
|
5
|
-
*
|
|
6
|
-
* pastExperience
|
|
4
|
+
* Fields (in onboarding sub-step order):
|
|
5
|
+
* participateInRevolution → leadershipSkillset → politicalExposure
|
|
6
|
+
* → comfortWithVisibility → socialInfluenceLevel → pastExperience
|
|
7
|
+
* → desiredPoliticalPosition
|
|
7
8
|
*
|
|
8
9
|
* @module udp-schema/step-04
|
|
9
10
|
*/
|
|
@@ -80,7 +81,6 @@ export declare const step04LeadershipSchema: z.ZodObject<{
|
|
|
80
81
|
yes_student_politics: "yes_student_politics";
|
|
81
82
|
no_experience: "no_experience";
|
|
82
83
|
}>>;
|
|
83
|
-
changesYouWantToBring: z.ZodOptional<z.ZodString>;
|
|
84
84
|
}, z.core.$strip>;
|
|
85
85
|
export type Step04LeadershipInput = z.infer<typeof step04LeadershipSchema>;
|
|
86
86
|
//# sourceMappingURL=step-04.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-04.schema.d.ts","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"step-04.schema.d.ts","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwEjC,CAAC;AAIH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
package/dist/step-04.schema.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Step 04 — Leadership & Ambitions
|
|
3
3
|
*
|
|
4
|
-
* Fields
|
|
5
|
-
*
|
|
6
|
-
* pastExperience
|
|
4
|
+
* Fields (in onboarding sub-step order):
|
|
5
|
+
* participateInRevolution → leadershipSkillset → politicalExposure
|
|
6
|
+
* → comfortWithVisibility → socialInfluenceLevel → pastExperience
|
|
7
|
+
* → desiredPoliticalPosition
|
|
7
8
|
*
|
|
8
9
|
* @module udp-schema/step-04
|
|
9
10
|
*/
|
|
@@ -75,7 +76,5 @@ export const step04LeadershipSchema = z.object({
|
|
|
75
76
|
pastExperience: z
|
|
76
77
|
.enum(['yes_party_work', 'yes_social_work', 'yes_student_politics', 'no_experience', 'other'])
|
|
77
78
|
.optional(),
|
|
78
|
-
/** Changes you want to bring — free text */
|
|
79
|
-
changesYouWantToBring: z.string().trim().max(1000).optional(),
|
|
80
79
|
});
|
|
81
80
|
//# sourceMappingURL=step-04.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-04.schema.js","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"step-04.schema.js","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,6DAA6D;IAC7D,uBAAuB,EAAE,CAAC,CAAC,IAAI,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AS,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;SACpE,QAAQ,EAAE;IAEb,0CAA0C;IAC1C,cAAc,EAAE,CAAC;SACd,IAAI,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;SAC7F,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["/**\n * Step 04 — Leadership & Ambitions\n *\n * Fields (in onboarding sub-step order):\n * participateInRevolution → leadershipSkillset → politicalExposure\n * → comfortWithVisibility → socialInfluenceLevel → pastExperience\n * → desiredPoliticalPosition\n *\n * @module udp-schema/step-04\n */\n\nimport { z } from 'zod';\n\n// ─── Main Step 04 Schema ────────────────────────────────────────────────────\n\nexport const step04LeadershipSchema = z.object({\n /** Willingness to participate in the revolution of change */\n participateInRevolution: z.enum(['yes_definitely', 'maybe', 'not_sure', 'no']).optional(),\n\n /** Desired political position — exhaustive enum covering all levels of Indian political office. */\n desiredPoliticalPosition: z\n .enum([\n // Rural local body\n 'ward_member',\n 'sarpanch',\n 'panchayat_samiti_member',\n 'block_pramukh',\n 'zila_panchayat_member',\n 'zila_pramukh',\n // Urban local body\n 'municipal_councillor',\n 'deputy_mayor',\n 'mayor',\n 'municipal_chairperson',\n // State\n 'mla',\n 'mlc',\n 'state_minister',\n 'deputy_cm',\n 'chief_minister',\n 'state_speaker',\n 'state_opposition_leader',\n // National\n 'mp_lok_sabha',\n 'mp_rajya_sabha',\n 'union_minister',\n 'deputy_pm',\n 'prime_minister',\n 'lok_sabha_speaker',\n 'opposition_leader',\n // Party roles\n 'booth_worker',\n 'mandal_president',\n 'district_party_president',\n 'state_party_president',\n 'national_party_president',\n 'party_spokesperson',\n // Constitutional\n 'governor',\n 'vice_president',\n 'president',\n // Meta\n 'none',\n 'other',\n ])\n .optional(),\n\n /** Leadership skillset (multi-select string array) */\n leadershipSkillset: z.array(z.string().trim()).optional(),\n\n /** Level of political exposure */\n politicalExposure: z.enum(['none', 'minimal', 'moderate', 'high', 'very_high']).optional(),\n\n /** Comfort with public visibility */\n comfortWithVisibility: z\n .enum(['very_comfortable', 'somewhat', 'prefer_behind_scenes', 'not_comfortable'])\n .optional(),\n\n /** Social influence level */\n socialInfluenceLevel: z\n .enum(['very_influential', 'somewhat', 'average', 'low', 'not_sure'])\n .optional(),\n\n /** Past political or social experience */\n pastExperience: z\n .enum(['yes_party_work', 'yes_social_work', 'yes_student_politics', 'no_experience', 'other'])\n .optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step04LeadershipInput = z.infer<typeof step04LeadershipSchema>;\n"]}
|
package/dist/step-06.schema.d.ts
CHANGED
|
@@ -99,7 +99,6 @@ export declare const step06EducationSchema: z.ZodObject<{
|
|
|
99
99
|
yearOfCompletion: z.ZodOptional<z.ZodString>;
|
|
100
100
|
fieldOrSubject: z.ZodOptional<z.ZodString>;
|
|
101
101
|
}, z.core.$strip>>>;
|
|
102
|
-
educationNotes: z.ZodOptional<z.ZodString>;
|
|
103
102
|
}, z.core.$strip>;
|
|
104
103
|
export type DegreeEntryInput = z.infer<typeof degreeEntrySchema>;
|
|
105
104
|
export type CertificateEntryInput = z.infer<typeof certificateEntrySchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-06.schema.d.ts","sourceRoot":"","sources":["../src/step-06.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAIH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"step-06.schema.d.ts","sourceRoot":"","sources":["../src/step-06.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgEhC,CAAC;AAIH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/step-06.schema.js
CHANGED
|
@@ -81,7 +81,5 @@ export const step06EducationSchema = z.object({
|
|
|
81
81
|
postDoctorates: z.array(degreeEntrySchema).optional(),
|
|
82
82
|
/** Other certificates, short courses, or professional qualifications */
|
|
83
83
|
otherCertificates: z.array(certificateEntrySchema).optional(),
|
|
84
|
-
/** Any additional notes about education background */
|
|
85
|
-
educationNotes: z.string().trim().optional(),
|
|
86
84
|
});
|
|
87
85
|
//# sourceMappingURL=step-06.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-06.schema.js","sourceRoot":"","sources":["../src/step-06.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,gFAAgF;AAEhF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC7C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,EAAE;IAEb,mDAAmD;IACnD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAE/C,4DAA4D;IAC5D,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAElD,+DAA+D;IAC/D,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAEtD,6CAA6C;IAC7C,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAEjD,oDAAoD;IACpD,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IAErD,wEAAwE;IACxE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC","sourcesContent":["/**\n * Step 06 — Education History\n *\n * KEPT from old step-07 schema. Same structure: highest qualification,\n * Class 10 & 12 details, degree repeaters, certificates, notes.\n *\n * @module udp-schema/step-06\n */\n\nimport { z } from 'zod';\nimport { optionalYearSchema } from './zod-helpers.js';\n\n// ─── Reusable sub-schemas ────────────────────────────────────────────────────\n\nexport const degreeEntrySchema = z.object({\n degreeName: z.string().trim().optional(),\n institutionName: z.string().trim().optional(),\n university: z.string().trim().optional(),\n yearOfPassing: optionalYearSchema,\n courseOrStream: z.string().trim().optional(),\n marksOrGrade: z.string().trim().optional(),\n isCurrentlyStudying: z.boolean().optional(),\n});\n\nexport const certificateEntrySchema = z.object({\n certificateName: z.string().trim().optional(),\n institutionName: z.string().trim().optional(),\n yearOfCompletion: optionalYearSchema,\n fieldOrSubject: z.string().trim().optional(),\n});\n\n// ─── Main Step 06 Schema ────────────────────────────────────────────────────\n\nexport const step06EducationSchema = z.object({\n /** Highest level of formal education completed or in progress */\n highestQualification: z\n .enum([\n 'CLASS_10',\n 'CLASS_12',\n 'DIPLOMA',\n 'GRADUATION',\n 'POST_GRAD',\n 'PHD',\n 'POST_DOCTORATE',\n 'OTHER',\n ])\n .optional(),\n\n /**\n * Class 10 / Secondary school details.\n * `board` is a string value from boardOptions (cbse / icse / state_board / ...).\n * `subjects` is a multi-select array of subject keys from subjectOptions.\n */\n education10th: z\n .object({\n board: z.string().trim().optional(),\n schoolName: z.string().trim().optional(),\n yearOfPassing: optionalYearSchema,\n subjects: z.array(z.string().trim()).optional(),\n marksObtained: z.string().trim().optional(),\n })\n .optional(),\n\n /**\n * Class 12 / Higher Secondary details.\n * `boardOrUniversity` is a string value from boardOptions.\n * `courseOrStream` is a string value from streamOptions.\n * `subjects` is a multi-select array of subject keys.\n */\n education12th: z\n .object({\n institutionName: z.string().trim().optional(),\n boardOrUniversity: z.string().trim().optional(),\n yearOfPassing: optionalYearSchema,\n courseOrStream: z.string().trim().optional(),\n subjects: z.array(z.string().trim()).optional(),\n marksOrGrade: z.string().trim().optional(),\n })\n .optional(),\n\n /** List of Diploma qualifications (one or more) */\n diplomas: z.array(degreeEntrySchema).optional(),\n\n /** List of Graduation / Bachelor's degree qualifications */\n graduations: z.array(degreeEntrySchema).optional(),\n\n /** List of Post Graduation / Master's degree qualifications */\n postGraduations: z.array(degreeEntrySchema).optional(),\n\n /** List of Doctorate / PhD qualifications */\n doctorates: z.array(degreeEntrySchema).optional(),\n\n /** List of Post Doctoral research or fellowships */\n postDoctorates: z.array(degreeEntrySchema).optional(),\n\n /** Other certificates, short courses, or professional qualifications */\n otherCertificates: z.array(certificateEntrySchema).optional(),\n});\n\n// ─── Inferred types ──────────────────────────────────────────────────────────\n\nexport type DegreeEntryInput = z.infer<typeof degreeEntrySchema>;\nexport type CertificateEntryInput = z.infer<typeof certificateEntrySchema>;\nexport type Step06EducationInput = z.infer<typeof step06EducationSchema>;\n"]}
|
package/dist/step-07.schema.d.ts
CHANGED
|
@@ -18,7 +18,48 @@ export declare const step07EmploymentSchema: z.ZodObject<{
|
|
|
18
18
|
retired: "retired";
|
|
19
19
|
daily_wage: "daily_wage";
|
|
20
20
|
}>>;
|
|
21
|
-
occupation: z.ZodOptional<z.
|
|
21
|
+
occupation: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
other: "other";
|
|
23
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
24
|
+
self_employed: "self_employed";
|
|
25
|
+
student: "student";
|
|
26
|
+
homemaker: "homemaker";
|
|
27
|
+
retired: "retired";
|
|
28
|
+
it_software: "it_software";
|
|
29
|
+
engineering: "engineering";
|
|
30
|
+
healthcare_doctor: "healthcare_doctor";
|
|
31
|
+
healthcare_nursing: "healthcare_nursing";
|
|
32
|
+
healthcare_pharma: "healthcare_pharma";
|
|
33
|
+
psychology_therapy: "psychology_therapy";
|
|
34
|
+
education_teaching: "education_teaching";
|
|
35
|
+
science_research: "science_research";
|
|
36
|
+
finance_banking: "finance_banking";
|
|
37
|
+
chartered_accountant: "chartered_accountant";
|
|
38
|
+
business_management: "business_management";
|
|
39
|
+
arts_entertainment: "arts_entertainment";
|
|
40
|
+
media_communication: "media_communication";
|
|
41
|
+
design_creative: "design_creative";
|
|
42
|
+
civil_services: "civil_services";
|
|
43
|
+
government_public: "government_public";
|
|
44
|
+
defence_military: "defence_military";
|
|
45
|
+
police_law_enforcement: "police_law_enforcement";
|
|
46
|
+
legal: "legal";
|
|
47
|
+
skilled_trades: "skilled_trades";
|
|
48
|
+
transport_logistics: "transport_logistics";
|
|
49
|
+
hospitality_travel: "hospitality_travel";
|
|
50
|
+
beauty_wellness: "beauty_wellness";
|
|
51
|
+
agriculture_farming: "agriculture_farming";
|
|
52
|
+
real_estate: "real_estate";
|
|
53
|
+
retail_ecommerce: "retail_ecommerce";
|
|
54
|
+
manufacturing: "manufacturing";
|
|
55
|
+
merchant_navy: "merchant_navy";
|
|
56
|
+
ngo_social_work: "ngo_social_work";
|
|
57
|
+
religious_spiritual: "religious_spiritual";
|
|
58
|
+
freelancer_gig: "freelancer_gig";
|
|
59
|
+
content_creator: "content_creator";
|
|
60
|
+
not_working: "not_working";
|
|
61
|
+
differently_abled_pension: "differently_abled_pension";
|
|
62
|
+
}>>;
|
|
22
63
|
workShift: z.ZodOptional<z.ZodEnum<{
|
|
23
64
|
day_shift: "day_shift";
|
|
24
65
|
night_shift: "night_shift";
|
|
@@ -41,7 +82,48 @@ export declare const step07EmploymentSchema: z.ZodObject<{
|
|
|
41
82
|
not_applicable: "not_applicable";
|
|
42
83
|
}>>;
|
|
43
84
|
incomeRange: z.ZodOptional<z.ZodString>;
|
|
44
|
-
dreamOccupation: z.ZodOptional<z.
|
|
85
|
+
dreamOccupation: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
other: "other";
|
|
87
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
88
|
+
self_employed: "self_employed";
|
|
89
|
+
student: "student";
|
|
90
|
+
homemaker: "homemaker";
|
|
91
|
+
retired: "retired";
|
|
92
|
+
it_software: "it_software";
|
|
93
|
+
engineering: "engineering";
|
|
94
|
+
healthcare_doctor: "healthcare_doctor";
|
|
95
|
+
healthcare_nursing: "healthcare_nursing";
|
|
96
|
+
healthcare_pharma: "healthcare_pharma";
|
|
97
|
+
psychology_therapy: "psychology_therapy";
|
|
98
|
+
education_teaching: "education_teaching";
|
|
99
|
+
science_research: "science_research";
|
|
100
|
+
finance_banking: "finance_banking";
|
|
101
|
+
chartered_accountant: "chartered_accountant";
|
|
102
|
+
business_management: "business_management";
|
|
103
|
+
arts_entertainment: "arts_entertainment";
|
|
104
|
+
media_communication: "media_communication";
|
|
105
|
+
design_creative: "design_creative";
|
|
106
|
+
civil_services: "civil_services";
|
|
107
|
+
government_public: "government_public";
|
|
108
|
+
defence_military: "defence_military";
|
|
109
|
+
police_law_enforcement: "police_law_enforcement";
|
|
110
|
+
legal: "legal";
|
|
111
|
+
skilled_trades: "skilled_trades";
|
|
112
|
+
transport_logistics: "transport_logistics";
|
|
113
|
+
hospitality_travel: "hospitality_travel";
|
|
114
|
+
beauty_wellness: "beauty_wellness";
|
|
115
|
+
agriculture_farming: "agriculture_farming";
|
|
116
|
+
real_estate: "real_estate";
|
|
117
|
+
retail_ecommerce: "retail_ecommerce";
|
|
118
|
+
manufacturing: "manufacturing";
|
|
119
|
+
merchant_navy: "merchant_navy";
|
|
120
|
+
ngo_social_work: "ngo_social_work";
|
|
121
|
+
religious_spiritual: "religious_spiritual";
|
|
122
|
+
freelancer_gig: "freelancer_gig";
|
|
123
|
+
content_creator: "content_creator";
|
|
124
|
+
not_working: "not_working";
|
|
125
|
+
differently_abled_pension: "differently_abled_pension";
|
|
126
|
+
}>>;
|
|
45
127
|
}, z.core.$strip>;
|
|
46
128
|
export type Step07EmploymentInput = z.infer<typeof step07EmploymentSchema>;
|
|
47
129
|
//# sourceMappingURL=step-07.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-07.schema.d.ts","sourceRoot":"","sources":["../src/step-07.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"step-07.schema.d.ts","sourceRoot":"","sources":["../src/step-07.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkJjC,CAAC;AAIH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|