udp-schema 2.9.0 → 2.11.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 CHANGED
@@ -19,7 +19,7 @@
19
19
  export { type OnboardingFormData, udpOnboardingFormSchema, } from './onboarding-form.js';
20
20
  export { canProceed } from './validation.js';
21
21
  export { calcAge, isFieldVisible, labelFor, labelsFor } from './helpers.js';
22
- export { allFieldGroups, type BaseField, casteDiscriminationPlaceOptions, civicEngagementOptions, dietOptions, digitalAccessOptions, disabilityOptions, education, electoralBehaviour, employment, employmentStatusOptions, type FieldGroup, type FieldOption, familyMemberOptions, genderOptions, healthLifestyle, household, householdIncomeOptions, incomeRangeOptions, languageOptions, leadershipAmbitions, leadershipSkillsetOptions, lgbtqStatementOptions, type MultiSelectField, mbtiOptions, minorityOptions, type NumberField, neurodiversity, neurodiversityConditionOptions, type ProfileField, partyAssociationRoleOptions, partyOptions, politicalAssociation, politicalSpectrumOptions, relativesInPoliticsOptions, officeElectionLevelOptions, electionResultOptions, profile, psychologicalAssessment, qualificationOptions, religionOptions, reservationOptions, residence, type SelectField, sensoryPreferenceOptions, shiftOptions, substanceUseOptions, supportNeedOptions, type TextField, transgenderStatementOptions, votingIssueOptions, worldView, } from './profile-fields/index.js';
22
+ export { allFieldGroups, type BaseField, casteDiscriminationPlaceOptions, civicEngagementOptions, dietOptions, digitalAccessOptions, disabilityOptions, education, electionResultOptions, electoralBehaviour, employment, employmentStatusOptions, type FieldGroup, type FieldOption, familyMemberOptions, genderOptions, healthLifestyle, household, householdIncomeOptions, incomeRangeOptions, languageOptions, desiredPoliticalPositionOptions, leadershipAmbitions, leadershipSkillsetOptions, lgbtqStatementOptions, type MultiSelectField, mbtiOptions, minorityOptions, type NumberField, neurodiversity, neurodiversityConditionOptions, officeElectionLevelOptions, type ProfileField, partyAssociationRoleOptions, partyOptions, politicalAssociation, politicalSpectrumOptions, profile, psychologicalAssessment, qualificationOptions, relativesInPoliticsOptions, religionOptions, reservationOptions, residence, type SelectField, sensoryPreferenceOptions, shiftOptions, substanceUseOptions, supportNeedOptions, type TextField, transgenderStatementOptions, votingIssueOptions, worldView, } from './profile-fields/index.js';
23
23
  export { getFieldMeta, getFieldOptions, getImmutableFields, getStepSchema, } from './field-helpers.js';
24
24
  export { getUdpOnboardingFieldConfig, UDP_ONBOARDING_FIELDS, UDP_ONBOARDING_STEP_GROUPS, UDP_TOTAL_MAIN_STEPS, UDP_TOTAL_SUB_STEPS, type UdpOnboardingFieldConfig, type UdpOnboardingStepGroup, } from './onboarding-config.js';
25
25
  export { calculateOverallProgress as calculateUdpOverallProgress, calculateStepProgress as calculateUdpStepProgress, getNestedValue, isFieldFilled, UDP_PROGRESS_FIELDS, UDP_TOTAL_STEPS, } from './progress-fields.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,EACL,KAAK,kBAAkB,EACvB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAI7C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI5E,OAAO,EAEL,cAAc,EAEd,KAAK,SAAS,EACd,+BAA+B,EAC/B,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,uBAAuB,EACvB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,mBAAmB,EAEnB,aAAa,EACb,eAAe,EACf,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,WAAW,EACX,eAAe,EACf,KAAK,WAAW,EAChB,cAAc,EACd,8BA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ACL,KAAK,qBAAqB,EAC1B,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,KAAK,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,KAAK,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,KAAK,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAIvF,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -25,9 +25,9 @@ export { calcAge, isFieldVisible, labelFor, labelsFor } from './helpers.js';
25
25
  // ─── Profile Fields (rich metadata — like dating-schema) ────────────────────
26
26
  export {
27
27
  // Field groups
28
- allFieldGroups, casteDiscriminationPlaceOptions, civicEngagementOptions, dietOptions, digitalAccessOptions, disabilityOptions, education, electoralBehaviour, employment, employmentStatusOptions, familyMemberOptions,
28
+ allFieldGroups, casteDiscriminationPlaceOptions, civicEngagementOptions, dietOptions, digitalAccessOptions, disabilityOptions, education, electionResultOptions, electoralBehaviour, employment, employmentStatusOptions, familyMemberOptions,
29
29
  // Option arrays (with labels + descriptions)
30
- genderOptions, healthLifestyle, household, householdIncomeOptions, incomeRangeOptions, languageOptions, leadershipAmbitions, leadershipSkillsetOptions, lgbtqStatementOptions, mbtiOptions, minorityOptions, neurodiversity, neurodiversityConditionOptions, partyAssociationRoleOptions, partyOptions, politicalAssociation, politicalSpectrumOptions, relativesInPoliticsOptions, officeElectionLevelOptions, electionResultOptions, profile, psychologicalAssessment, qualificationOptions, religionOptions, reservationOptions, residence, sensoryPreferenceOptions, shiftOptions, substanceUseOptions, supportNeedOptions, transgenderStatementOptions, votingIssueOptions, worldView, } from './profile-fields/index.js';
30
+ genderOptions, healthLifestyle, household, householdIncomeOptions, incomeRangeOptions, languageOptions, desiredPoliticalPositionOptions, leadershipAmbitions, leadershipSkillsetOptions, lgbtqStatementOptions, mbtiOptions, minorityOptions, neurodiversity, neurodiversityConditionOptions, officeElectionLevelOptions, partyAssociationRoleOptions, partyOptions, politicalAssociation, politicalSpectrumOptions, profile, psychologicalAssessment, qualificationOptions, relativesInPoliticsOptions, religionOptions, reservationOptions, residence, sensoryPreferenceOptions, shiftOptions, substanceUseOptions, supportNeedOptions, transgenderStatementOptions, votingIssueOptions, worldView, } from './profile-fields/index.js';
31
31
  // ─── Field Helpers (like dating-schema) ─────────────────────────────────────
32
32
  export { getFieldMeta, getFieldOptions, getImmutableFields, getStepSchema, } from './field-helpers.js';
33
33
  // ─── Onboarding Configuration ───────────────────────────────────────────────
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,+EAA+E;AAE/E,OAAO,EAEL,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,+EAA+E;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,+EAA+E;AAE/E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,+EAA+E;AAE/E,OAAO;AACL,eAAe;AACf,cAAc,EAGd,+BAA+B,EAC/B,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB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AAC;AAC/F,OAAO,EAEL,sBAAsB,EAEtB,iBAAiB,EAEjB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA8B,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAkC,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAA0B,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAA6B,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAGL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA6B,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEvF,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC","sourcesContent":["/**\n * udp-schema — Shared schemas for User Detailed Profile (v2)\n *\n * Single source of truth consumed by both reform frontends and reform-backend.\n * 12-step \"1 question per screen\" architecture.\n *\n * Follows the same pattern as dating-schema:\n * - profile-fields/ with rich FieldGroup definitions\n * - getFieldOptions() / getFieldMeta() for runtime introspection\n * - Unified onboarding form schema (udpOnboardingFormSchema)\n * - Validation (canProceed) exported for frontend + backend\n * - Helpers (calcAge, labelFor, labelsFor) shared across codebases\n * - Onboarding-config for step grouping\n * - Zod step schemas for per-step validation\n * - Progress tracking (per-step + overall)\n *\n * @module udp-schema\n */\n\n// ─── Unified Form Schema (like dating's onboardingFormSchema) ───────────────\n\nexport {\n type OnboardingFormData,\n udpOnboardingFormSchema,\n} from './onboarding-form.js';\n\n// ─── Validation (single source of truth — used by frontend + backend) ───────\n\nexport { canProceed } from './validation.js';\n\n// ─── Shared Helpers ─────────────────────────────────────────────────────────\n\nexport { calcAge, isFieldVisible, labelFor, labelsFor } from './helpers.js';\n\n// ─── Profile Fields (rich metadata — like dating-schema) ────────────────────\n\nexport {\n // Field groups\n allFieldGroups,\n // Types\n type BaseField,\n casteDiscriminationPlaceOptions,\n civicEngagementOptions,\n dietOptions,\n digitalAccessOptions,\n disabilityOptions,\n education,\n electoralBehaviour,\n employment,\n employmentStatusOptions,\n type FieldGroup,\n type FieldOption,\n familyMemberOptions,\n // Option arrays (with labels + descriptions)\n genderOptions,\n healthLifestyle,\n household,\n householdIncomeOptions,\n incomeRangeOptions,\n languageOptions,\n leadershipAmbitions,\n leadershipSkillsetOptions,\n lgbtqStatementOptions,\n type MultiSelectField,\n mbtiOptions,\n minorityOptions,\n type NumberField,\n neurodiversity,\n neurodiversityConditionOptions,\n type ProfileField,\n partyAssociationRoleOptions,\n partyOptions,\n politicalAssociation,\n politicalSpectrumOptions,\n relativesInPoliticsOptions,\n officeElectionLevelOptions,\n electionResultOptions,\n profile,\n psychologicalAssessment,\n qualificationOptions,\n religionOptions,\n reservationOptions,\n residence,\n type SelectField,\n sensoryPreferenceOptions,\n shiftOptions,\n substanceUseOptions,\n supportNeedOptions,\n type TextField,\n transgenderStatementOptions,\n votingIssueOptions,\n worldView,\n} from './profile-fields/index.js';\n\n// ─── Field Helpers (like dating-schema) ─────────────────────────────────────\n\nexport {\n getFieldMeta,\n getFieldOptions,\n getImmutableFields,\n getStepSchema,\n} from './field-helpers.js';\n\n// ─── Onboarding Configuration ───────────────────────────────────────────────\n\nexport {\n getUdpOnboardingFieldConfig,\n UDP_ONBOARDING_FIELDS,\n UDP_ONBOARDING_STEP_GROUPS,\n UDP_TOTAL_MAIN_STEPS,\n UDP_TOTAL_SUB_STEPS,\n type UdpOnboardingFieldConfig,\n type UdpOnboardingStepGroup,\n} from './onboarding-config.js';\n\n// ─── Progress Fields ────────────────────────────────────────────────────────\n\nexport {\n calculateOverallProgress as calculateUdpOverallProgress,\n calculateStepProgress as calculateUdpStepProgress,\n getNestedValue,\n isFieldFilled,\n UDP_PROGRESS_FIELDS,\n UDP_TOTAL_STEPS,\n} from './progress-fields.js';\n\n// ─── Step Schemas (Zod validation) ──────────────────────────────────────────\n\nexport { type Step01ProfileInput, step01ProfileSchema } from './step-01.schema.js';\nexport { type Step02PoliticalInput, step02PoliticalSchema } from './step-02.schema.js';\nexport { type Step03ElectoralInput, step03ElectoralSchema } from './step-03.schema.js';\nexport { type Step04LeadershipInput, step04LeadershipSchema } from './step-04.schema.js';\nexport { type Step05PsychologicalInput, step05PsychologicalSchema } from './step-05.schema.js';\nexport {\n type CertificateEntryInput,\n certificateEntrySchema,\n type DegreeEntryInput,\n degreeEntrySchema,\n type Step06EducationInput,\n step06EducationSchema,\n} from './step-06.schema.js';\nexport { type Step07EmploymentInput, step07EmploymentSchema } from './step-07.schema.js';\nexport { type Step08NeurodiversityInput, step08NeurodiversitySchema } from './step-08.schema.js';\nexport { type Step09HealthInput, step09HealthSchema } from './step-09.schema.js';\nexport { type Step10WorldViewInput, step10WorldViewSchema } from './step-10.schema.js';\nexport {\n type SimplifiedAddressInput,\n type Step11ResidenceInput,\n simplifiedAddressSchema,\n step11ResidenceSchema,\n} from './step-11.schema.js';\nexport { type Step12HouseholdInput, step12HouseholdSchema } from './step-12.schema.js';\n\n// ─── Zod Helpers ────────────────────────────────────────────────────────────\n\nexport {\n emptyStringToUndefined,\n optionalPhoneSchema,\n optionalTrimmedString,\n optionalYearSchema,\n} from './zod-helpers.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,+EAA+E;AAE/E,OAAO,EAEL,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,+EAA+E;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,+EAA+E;AAE/E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,+EAA+E;AAE/E,OAAO;AACL,eAAe;AACf,cAAc,EAGd,+BAA+B,EAC/B,sBAAsB,EACtB,WAAW,EACX,o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AAyB,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EAEL,sBAAsB,EAEtB,iBAAiB,EAEjB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA8B,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAkC,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAA0B,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAA6B,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAGL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAA6B,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEvF,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC","sourcesContent":["/**\n * udp-schema — Shared schemas for User Detailed Profile (v2)\n *\n * Single source of truth consumed by both reform frontends and reform-backend.\n * 12-step \"1 question per screen\" architecture.\n *\n * Follows the same pattern as dating-schema:\n * - profile-fields/ with rich FieldGroup definitions\n * - getFieldOptions() / getFieldMeta() for runtime introspection\n * - Unified onboarding form schema (udpOnboardingFormSchema)\n * - Validation (canProceed) exported for frontend + backend\n * - Helpers (calcAge, labelFor, labelsFor) shared across codebases\n * - Onboarding-config for step grouping\n * - Zod step schemas for per-step validation\n * - Progress tracking (per-step + overall)\n *\n * @module udp-schema\n */\n\n// ─── Unified Form Schema (like dating's onboardingFormSchema) ───────────────\n\nexport {\n type OnboardingFormData,\n udpOnboardingFormSchema,\n} from './onboarding-form.js';\n\n// ─── Validation (single source of truth — used by frontend + backend) ───────\n\nexport { canProceed } from './validation.js';\n\n// ─── Shared Helpers ─────────────────────────────────────────────────────────\n\nexport { calcAge, isFieldVisible, labelFor, labelsFor } from './helpers.js';\n\n// ─── Profile Fields (rich metadata — like dating-schema) ────────────────────\n\nexport {\n // Field groups\n allFieldGroups,\n // Types\n type BaseField,\n casteDiscriminationPlaceOptions,\n civicEngagementOptions,\n dietOptions,\n digitalAccessOptions,\n disabilityOptions,\n education,\n electionResultOptions,\n electoralBehaviour,\n employment,\n employmentStatusOptions,\n type FieldGroup,\n type FieldOption,\n familyMemberOptions,\n // Option arrays (with labels + descriptions)\n genderOptions,\n healthLifestyle,\n household,\n householdIncomeOptions,\n incomeRangeOptions,\n languageOptions,\n desiredPoliticalPositionOptions,\n leadershipAmbitions,\n leadershipSkillsetOptions,\n lgbtqStatementOptions,\n type MultiSelectField,\n mbtiOptions,\n minorityOptions,\n type NumberField,\n neurodiversity,\n neurodiversityConditionOptions,\n officeElectionLevelOptions,\n type ProfileField,\n partyAssociationRoleOptions,\n partyOptions,\n politicalAssociation,\n politicalSpectrumOptions,\n profile,\n psychologicalAssessment,\n qualificationOptions,\n relativesInPoliticsOptions,\n religionOptions,\n reservationOptions,\n residence,\n type SelectField,\n sensoryPreferenceOptions,\n shiftOptions,\n substanceUseOptions,\n supportNeedOptions,\n type TextField,\n transgenderStatementOptions,\n votingIssueOptions,\n worldView,\n} from './profile-fields/index.js';\n\n// ─── Field Helpers (like dating-schema) ─────────────────────────────────────\n\nexport {\n getFieldMeta,\n getFieldOptions,\n getImmutableFields,\n getStepSchema,\n} from './field-helpers.js';\n\n// ─── Onboarding Configuration ───────────────────────────────────────────────\n\nexport {\n getUdpOnboardingFieldConfig,\n UDP_ONBOARDING_FIELDS,\n UDP_ONBOARDING_STEP_GROUPS,\n UDP_TOTAL_MAIN_STEPS,\n UDP_TOTAL_SUB_STEPS,\n type UdpOnboardingFieldConfig,\n type UdpOnboardingStepGroup,\n} from './onboarding-config.js';\n\n// ─── Progress Fields ────────────────────────────────────────────────────────\n\nexport {\n calculateOverallProgress as calculateUdpOverallProgress,\n calculateStepProgress as calculateUdpStepProgress,\n getNestedValue,\n isFieldFilled,\n UDP_PROGRESS_FIELDS,\n UDP_TOTAL_STEPS,\n} from './progress-fields.js';\n\n// ─── Step Schemas (Zod validation) ──────────────────────────────────────────\n\nexport { type Step01ProfileInput, step01ProfileSchema } from './step-01.schema.js';\nexport { type Step02PoliticalInput, step02PoliticalSchema } from './step-02.schema.js';\nexport { type Step03ElectoralInput, step03ElectoralSchema } from './step-03.schema.js';\nexport { type Step04LeadershipInput, step04LeadershipSchema } from './step-04.schema.js';\nexport { type Step05PsychologicalInput, step05PsychologicalSchema } from './step-05.schema.js';\nexport {\n type CertificateEntryInput,\n certificateEntrySchema,\n type DegreeEntryInput,\n degreeEntrySchema,\n type Step06EducationInput,\n step06EducationSchema,\n} from './step-06.schema.js';\nexport { type Step07EmploymentInput, step07EmploymentSchema } from './step-07.schema.js';\nexport { type Step08NeurodiversityInput, step08NeurodiversitySchema } from './step-08.schema.js';\nexport { type Step09HealthInput, step09HealthSchema } from './step-09.schema.js';\nexport { type Step10WorldViewInput, step10WorldViewSchema } from './step-10.schema.js';\nexport {\n type SimplifiedAddressInput,\n type Step11ResidenceInput,\n simplifiedAddressSchema,\n step11ResidenceSchema,\n} from './step-11.schema.js';\nexport { type Step12HouseholdInput, step12HouseholdSchema } from './step-12.schema.js';\n\n// ─── Zod Helpers ────────────────────────────────────────────────────────────\n\nexport {\n emptyStringToUndefined,\n optionalPhoneSchema,\n optionalTrimmedString,\n optionalYearSchema,\n} from './zod-helpers.js';\n"]}
@@ -311,13 +311,39 @@ export declare const udpOnboardingFormSchema: z.ZodObject<{
311
311
  desiredPoliticalPosition: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
312
312
  other: "other";
313
313
  none: "none";
314
+ ward_member: "ward_member";
314
315
  sarpanch: "sarpanch";
316
+ panchayat_samiti_member: "panchayat_samiti_member";
315
317
  block_pramukh: "block_pramukh";
316
- zila_panchayat: "zila_panchayat";
317
- mla: "mla";
318
- mp: "mp";
318
+ zila_panchayat_member: "zila_panchayat_member";
319
+ zila_pramukh: "zila_pramukh";
319
320
  municipal_councillor: "municipal_councillor";
321
+ deputy_mayor: "deputy_mayor";
320
322
  mayor: "mayor";
323
+ municipal_chairperson: "municipal_chairperson";
324
+ mla: "mla";
325
+ mlc: "mlc";
326
+ state_minister: "state_minister";
327
+ deputy_cm: "deputy_cm";
328
+ chief_minister: "chief_minister";
329
+ state_speaker: "state_speaker";
330
+ state_opposition_leader: "state_opposition_leader";
331
+ mp_lok_sabha: "mp_lok_sabha";
332
+ mp_rajya_sabha: "mp_rajya_sabha";
333
+ union_minister: "union_minister";
334
+ deputy_pm: "deputy_pm";
335
+ prime_minister: "prime_minister";
336
+ lok_sabha_speaker: "lok_sabha_speaker";
337
+ opposition_leader: "opposition_leader";
338
+ booth_worker: "booth_worker";
339
+ mandal_president: "mandal_president";
340
+ district_party_president: "district_party_president";
341
+ state_party_president: "state_party_president";
342
+ national_party_president: "national_party_president";
343
+ party_spokesperson: "party_spokesperson";
344
+ governor: "governor";
345
+ vice_president: "vice_president";
346
+ president: "president";
321
347
  }>>>;
322
348
  leadershipSkillset: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
323
349
  politicalExposure: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-form.d.ts","sourceRoot":"","sources":["../src/onboarding-form.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoCxB,CAAC;AAEb,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,7 +1,34 @@
1
1
  import type { FieldGroup } from './types.js';
2
+ /**
3
+ * Primary voting issues — exhaustive list of issues that shape voting
4
+ * decisions in Indian elections. Grouped below by theme (economic,
5
+ * social, governance, identity, environment, development) but kept flat
6
+ * in the exported array so they can be multi-selected freely.
7
+ */
2
8
  export declare const votingIssueOptions: readonly [{
3
9
  readonly value: "economy";
4
10
  readonly label: "Economy & Jobs";
11
+ }, {
12
+ readonly value: "unemployment";
13
+ readonly label: "Unemployment";
14
+ }, {
15
+ readonly value: "inflation";
16
+ readonly label: "Inflation / Cost of Living";
17
+ }, {
18
+ readonly value: "farmer_issues";
19
+ readonly label: "Farmer Issues / MSP";
20
+ }, {
21
+ readonly value: "labour_wages";
22
+ readonly label: "Labour Rights & Wages";
23
+ }, {
24
+ readonly value: "poverty";
25
+ readonly label: "Poverty Alleviation";
26
+ }, {
27
+ readonly value: "business_msme";
28
+ readonly label: "Business / MSME Development";
29
+ }, {
30
+ readonly value: "tax_policy";
31
+ readonly label: "Tax Policy";
5
32
  }, {
6
33
  readonly value: "healthcare";
7
34
  readonly label: "Healthcare";
@@ -9,35 +36,107 @@ export declare const votingIssueOptions: readonly [{
9
36
  readonly value: "education";
10
37
  readonly label: "Education";
11
38
  }, {
12
- readonly value: "unemployment";
13
- readonly label: "Unemployment";
39
+ readonly value: "housing";
40
+ readonly label: "Housing & Shelter";
14
41
  }, {
15
- readonly value: "corruption";
16
- readonly label: "Corruption";
42
+ readonly value: "welfare_schemes";
43
+ readonly label: "Welfare Schemes (PDS, MGNREGA, PMAY)";
44
+ }, {
45
+ readonly value: "pension_social_security";
46
+ readonly label: "Pension & Social Security";
47
+ }, {
48
+ readonly value: "infrastructure";
49
+ readonly label: "Roads, Bridges & Infrastructure";
50
+ }, {
51
+ readonly value: "water_sanitation";
52
+ readonly label: "Water & Sanitation";
53
+ }, {
54
+ readonly value: "electricity";
55
+ readonly label: "Electricity / Power Supply";
56
+ }, {
57
+ readonly value: "public_transport";
58
+ readonly label: "Public Transport";
59
+ }, {
60
+ readonly value: "digital_infrastructure";
61
+ readonly label: "Digital & Internet Access";
17
62
  }, {
18
63
  readonly value: "womens_safety";
19
64
  readonly label: "Women's Safety";
20
65
  }, {
21
- readonly value: "environment";
22
- readonly label: "Environment";
66
+ readonly value: "womens_rights";
67
+ readonly label: "Women's Rights & Empowerment";
23
68
  }, {
24
69
  readonly value: "caste_issues";
25
- readonly label: "Caste Issues";
70
+ readonly label: "Caste & Reservation";
26
71
  }, {
27
72
  readonly value: "religious_issues";
28
- readonly label: "Religious Issues";
73
+ readonly label: "Religion & Secularism";
29
74
  }, {
30
- readonly value: "infrastructure";
31
- readonly label: "Infrastructure";
75
+ readonly value: "minority_rights";
76
+ readonly label: "Minority Rights";
77
+ }, {
78
+ readonly value: "lgbtq_rights";
79
+ readonly label: "LGBTQ+ Rights";
80
+ }, {
81
+ readonly value: "tribal_rights";
82
+ readonly label: "Tribal / Adivasi Rights";
83
+ }, {
84
+ readonly value: "corruption";
85
+ readonly label: "Corruption";
86
+ }, {
87
+ readonly value: "law_order";
88
+ readonly label: "Law & Order";
89
+ }, {
90
+ readonly value: "judicial_reform";
91
+ readonly label: "Judicial Reform";
92
+ }, {
93
+ readonly value: "bureaucratic_reform";
94
+ readonly label: "Bureaucratic Reform / Red Tape";
95
+ }, {
96
+ readonly value: "electoral_reform";
97
+ readonly label: "Electoral Reform";
32
98
  }, {
33
99
  readonly value: "national_security";
34
- readonly label: "National Security";
100
+ readonly label: "National Security / Defence";
35
101
  }, {
36
- readonly value: "farmer_issues";
37
- readonly label: "Farmer Issues";
102
+ readonly value: "foreign_policy";
103
+ readonly label: "Foreign Policy";
38
104
  }, {
39
- readonly value: "water_sanitation";
40
- readonly label: "Water & Sanitation";
105
+ readonly value: "nationalism";
106
+ readonly label: "Nationalism / Cultural Identity";
107
+ }, {
108
+ readonly value: "citizenship_caa_nrc";
109
+ readonly label: "Citizenship (CAA / NRC)";
110
+ }, {
111
+ readonly value: "border_security";
112
+ readonly label: "Border Security / Terrorism";
113
+ }, {
114
+ readonly value: "uniform_civil_code";
115
+ readonly label: "Uniform Civil Code";
116
+ }, {
117
+ readonly value: "environment";
118
+ readonly label: "Environment & Climate";
119
+ }, {
120
+ readonly value: "pollution";
121
+ readonly label: "Air & Water Pollution";
122
+ }, {
123
+ readonly value: "renewable_energy";
124
+ readonly label: "Renewable Energy";
125
+ }, {
126
+ readonly value: "urban_development";
127
+ readonly label: "Urban Development / Smart Cities";
128
+ }, {
129
+ readonly value: "rural_development";
130
+ readonly label: "Rural Development";
131
+ }, {
132
+ readonly value: "youth_issues";
133
+ readonly label: "Youth Issues & Aspirations";
134
+ }, {
135
+ readonly value: "drug_abuse";
136
+ readonly label: "Drug Abuse & Trafficking";
137
+ }, {
138
+ readonly value: "local_issues";
139
+ readonly label: "Local / Constituency Issues";
41
140
  }, {
42
141
  readonly value: "other";
43
142
  readonly label: "Other";
@@ -1 +1 @@
1
- {"version":3,"file":"03-electoral.d.ts","sourceRoot":"","sources":["../../src/profile-fields/03-electoral.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerB,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,UAyEhC,CAAC"}
1
+ {"version":3,"file":"03-electoral.d.ts","sourceRoot":"","sources":["../../src/profile-fields/03-electoral.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8DrB,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,UAyEhC,CAAC"}
@@ -1,17 +1,62 @@
1
+ /**
2
+ * Primary voting issues — exhaustive list of issues that shape voting
3
+ * decisions in Indian elections. Grouped below by theme (economic,
4
+ * social, governance, identity, environment, development) but kept flat
5
+ * in the exported array so they can be multi-selected freely.
6
+ */
1
7
  export const votingIssueOptions = [
8
+ // ── Economic ──
2
9
  { value: 'economy', label: 'Economy & Jobs' },
10
+ { value: 'unemployment', label: 'Unemployment' },
11
+ { value: 'inflation', label: 'Inflation / Cost of Living' },
12
+ { value: 'farmer_issues', label: 'Farmer Issues / MSP' },
13
+ { value: 'labour_wages', label: 'Labour Rights & Wages' },
14
+ { value: 'poverty', label: 'Poverty Alleviation' },
15
+ { value: 'business_msme', label: 'Business / MSME Development' },
16
+ { value: 'tax_policy', label: 'Tax Policy' },
17
+ // ── Social services & welfare ──
3
18
  { value: 'healthcare', label: 'Healthcare' },
4
19
  { value: 'education', label: 'Education' },
5
- { value: 'unemployment', label: 'Unemployment' },
6
- { value: 'corruption', label: 'Corruption' },
7
- { value: 'womens_safety', label: "Women's Safety" },
8
- { value: 'environment', label: 'Environment' },
9
- { value: 'caste_issues', label: 'Caste Issues' },
10
- { value: 'religious_issues', label: 'Religious Issues' },
11
- { value: 'infrastructure', label: 'Infrastructure' },
12
- { value: 'national_security', label: 'National Security' },
13
- { value: 'farmer_issues', label: 'Farmer Issues' },
20
+ { value: 'housing', label: 'Housing & Shelter' },
21
+ { value: 'welfare_schemes', label: 'Welfare Schemes (PDS, MGNREGA, PMAY)' },
22
+ { value: 'pension_social_security', label: 'Pension & Social Security' },
23
+ // ── Infrastructure ──
24
+ { value: 'infrastructure', label: 'Roads, Bridges & Infrastructure' },
14
25
  { value: 'water_sanitation', label: 'Water & Sanitation' },
26
+ { value: 'electricity', label: 'Electricity / Power Supply' },
27
+ { value: 'public_transport', label: 'Public Transport' },
28
+ { value: 'digital_infrastructure', label: 'Digital & Internet Access' },
29
+ // ── Social issues ──
30
+ { value: 'womens_safety', label: "Women's Safety" },
31
+ { value: 'womens_rights', label: "Women's Rights & Empowerment" },
32
+ { value: 'caste_issues', label: 'Caste & Reservation' },
33
+ { value: 'religious_issues', label: 'Religion & Secularism' },
34
+ { value: 'minority_rights', label: 'Minority Rights' },
35
+ { value: 'lgbtq_rights', label: 'LGBTQ+ Rights' },
36
+ { value: 'tribal_rights', label: 'Tribal / Adivasi Rights' },
37
+ // ── Governance ──
38
+ { value: 'corruption', label: 'Corruption' },
39
+ { value: 'law_order', label: 'Law & Order' },
40
+ { value: 'judicial_reform', label: 'Judicial Reform' },
41
+ { value: 'bureaucratic_reform', label: 'Bureaucratic Reform / Red Tape' },
42
+ { value: 'electoral_reform', label: 'Electoral Reform' },
43
+ // ── National / identity ──
44
+ { value: 'national_security', label: 'National Security / Defence' },
45
+ { value: 'foreign_policy', label: 'Foreign Policy' },
46
+ { value: 'nationalism', label: 'Nationalism / Cultural Identity' },
47
+ { value: 'citizenship_caa_nrc', label: 'Citizenship (CAA / NRC)' },
48
+ { value: 'border_security', label: 'Border Security / Terrorism' },
49
+ { value: 'uniform_civil_code', label: 'Uniform Civil Code' },
50
+ // ── Environment ──
51
+ { value: 'environment', label: 'Environment & Climate' },
52
+ { value: 'pollution', label: 'Air & Water Pollution' },
53
+ { value: 'renewable_energy', label: 'Renewable Energy' },
54
+ // ── Development ──
55
+ { value: 'urban_development', label: 'Urban Development / Smart Cities' },
56
+ { value: 'rural_development', label: 'Rural Development' },
57
+ { value: 'youth_issues', label: 'Youth Issues & Aspirations' },
58
+ { value: 'drug_abuse', label: 'Drug Abuse & Trafficking' },
59
+ { value: 'local_issues', label: 'Local / Constituency Issues' },
15
60
  { value: 'other', label: 'Other' },
16
61
  ];
17
62
  export const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gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;gBACpD,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;gBACpD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;gBAC1C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACpC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;gBAClC,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,kBAAkB,EAAE;aACzD;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,qBAAqB;YAC1B,KAAK,EAAE,uBAAuB;YAC9B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC;SACjC;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const votingIssueOptions = [\n { value: 'economy', label: 'Economy & Jobs' },\n { value: 'healthcare', label: 'Healthcare' },\n { value: 'education', label: 'Education' },\n { value: 'unemployment', label: 'Unemployment' },\n { value: 'corruption', label: 'Corruption' },\n { value: 'womens_safety', label: \"Women's Safety\" },\n { value: 'environment', label: 'Environment' },\n { value: 'caste_issues', label: 'Caste Issues' },\n { value: 'religious_issues', label: 'Religious Issues' },\n { value: 'infrastructure', label: 'Infrastructure' },\n { value: 'national_security', label: 'National Security' },\n { value: 'farmer_issues', label: 'Farmer Issues' },\n { value: 'water_sanitation', label: 'Water & Sanitation' },\n { value: 'other', label: 'Other' },\n] as const;\n\nexport const electoralBehaviour: FieldGroup = {\n key: 'electoral_behaviour',\n label: 'Electoral Behaviour',\n step: 3,\n description: 'Your voter ID, voting history, and the issues that matter to you.',\n fields: [\n {\n order: 1,\n key: 'epicNumber',\n label: 'Voter ID (EPIC)',\n type: 'text',\n step: 3,\n isOnboarding: true,\n optional: true,\n maxLength: 20,\n },\n {\n order: 2,\n key: 'willVoteThisTime',\n label: 'Will Vote This Time',\n type: 'single_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'maybe', label: 'Maybe' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 3,\n key: 'didVoteLastTime',\n label: 'Voted Last Time',\n type: 'single_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 4,\n key: 'votingFrequency',\n label: 'Voting Frequency',\n type: 'single_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'every_election', label: 'Every election' },\n { value: 'most_elections', label: 'Most elections' },\n { value: 'sometimes', label: 'Sometimes' },\n { value: 'rarely', label: 'Rarely' },\n { value: 'never', label: 'Never' },\n { value: 'first_time_voter', label: 'First-time voter' },\n ],\n },\n {\n order: 5,\n key: 'primaryVotingIssues',\n label: 'Primary Voting Issues',\n type: 'multi_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [...votingIssueOptions],\n },\n ],\n};\n"]}
1
+ {"version":3,"file":"03-electoral.js","sourceRoot":"","sources":["../../src/profile-fields/03-electoral.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,iBAAiB;IACjB,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAC7C,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAChD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,4BAA4B,EAAE;IAC3D,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,qBAAqB,EAAE;IACxD,EAAE,KA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,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;gBAC5B,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;aAC3D;SACF;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,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;gBACpD,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;gBACpD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;gBAC1C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACpC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;gBAClC,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,kBAAkB,EAAE;aACzD;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,qBAAqB;YAC1B,KAAK,EAAE,uBAAuB;YAC9B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC;SACjC;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\n/**\n * Primary voting issues — exhaustive list of issues that shape voting\n * decisions in Indian elections. Grouped below by theme (economic,\n * social, governance, identity, environment, development) but kept flat\n * in the exported array so they can be multi-selected freely.\n */\nexport const votingIssueOptions = [\n // ── Economic ──\n { value: 'economy', label: 'Economy & Jobs' },\n { value: 'unemployment', label: 'Unemployment' },\n { value: 'inflation', label: 'Inflation / Cost of Living' },\n { value: 'farmer_issues', label: 'Farmer Issues / MSP' },\n { value: 'labour_wages', label: 'Labour Rights & Wages' },\n { value: 'poverty', label: 'Poverty Alleviation' },\n { value: 'business_msme', label: 'Business / MSME Development' },\n { value: 'tax_policy', label: 'Tax Policy' },\n\n // ── Social services & welfare ──\n { value: 'healthcare', label: 'Healthcare' },\n { value: 'education', label: 'Education' },\n { value: 'housing', label: 'Housing & Shelter' },\n { value: 'welfare_schemes', label: 'Welfare Schemes (PDS, MGNREGA, PMAY)' },\n { value: 'pension_social_security', label: 'Pension & Social Security' },\n\n // ── Infrastructure ──\n { value: 'infrastructure', label: 'Roads, Bridges & Infrastructure' },\n { value: 'water_sanitation', label: 'Water & Sanitation' },\n { value: 'electricity', label: 'Electricity / Power Supply' },\n { value: 'public_transport', label: 'Public Transport' },\n { value: 'digital_infrastructure', label: 'Digital & Internet Access' },\n\n // ── Social issues ──\n { value: 'womens_safety', label: \"Women's Safety\" },\n { value: 'womens_rights', label: \"Women's Rights & Empowerment\" },\n { value: 'caste_issues', label: 'Caste & Reservation' },\n { value: 'religious_issues', label: 'Religion & Secularism' },\n { value: 'minority_rights', label: 'Minority Rights' },\n { value: 'lgbtq_rights', label: 'LGBTQ+ Rights' },\n { value: 'tribal_rights', label: 'Tribal / Adivasi Rights' },\n\n // ── Governance ──\n { value: 'corruption', label: 'Corruption' },\n { value: 'law_order', label: 'Law & Order' },\n { value: 'judicial_reform', label: 'Judicial Reform' },\n { value: 'bureaucratic_reform', label: 'Bureaucratic Reform / Red Tape' },\n { value: 'electoral_reform', label: 'Electoral Reform' },\n\n // ── National / identity ──\n { value: 'national_security', label: 'National Security / Defence' },\n { value: 'foreign_policy', label: 'Foreign Policy' },\n { value: 'nationalism', label: 'Nationalism / Cultural Identity' },\n { value: 'citizenship_caa_nrc', label: 'Citizenship (CAA / NRC)' },\n { value: 'border_security', label: 'Border Security / Terrorism' },\n { value: 'uniform_civil_code', label: 'Uniform Civil Code' },\n\n // ── Environment ──\n { value: 'environment', label: 'Environment & Climate' },\n { value: 'pollution', label: 'Air & Water Pollution' },\n { value: 'renewable_energy', label: 'Renewable Energy' },\n\n // ── Development ──\n { value: 'urban_development', label: 'Urban Development / Smart Cities' },\n { value: 'rural_development', label: 'Rural Development' },\n { value: 'youth_issues', label: 'Youth Issues & Aspirations' },\n { value: 'drug_abuse', label: 'Drug Abuse & Trafficking' },\n { value: 'local_issues', label: 'Local / Constituency Issues' },\n\n { value: 'other', label: 'Other' },\n] as const;\n\nexport const electoralBehaviour: FieldGroup = {\n key: 'electoral_behaviour',\n label: 'Electoral Behaviour',\n step: 3,\n description: 'Your voter ID, voting history, and the issues that matter to you.',\n fields: [\n {\n order: 1,\n key: 'epicNumber',\n label: 'Voter ID (EPIC)',\n type: 'text',\n step: 3,\n isOnboarding: true,\n optional: true,\n maxLength: 20,\n },\n {\n order: 2,\n key: 'willVoteThisTime',\n label: 'Will Vote This Time',\n type: 'single_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'maybe', label: 'Maybe' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 3,\n key: 'didVoteLastTime',\n label: 'Voted Last Time',\n type: 'single_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 4,\n key: 'votingFrequency',\n label: 'Voting Frequency',\n type: 'single_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'every_election', label: 'Every election' },\n { value: 'most_elections', label: 'Most elections' },\n { value: 'sometimes', label: 'Sometimes' },\n { value: 'rarely', label: 'Rarely' },\n { value: 'never', label: 'Never' },\n { value: 'first_time_voter', label: 'First-time voter' },\n ],\n },\n {\n order: 5,\n key: 'primaryVotingIssues',\n label: 'Primary Voting Issues',\n type: 'multi_select',\n step: 3,\n isOnboarding: true,\n optional: true,\n options: [...votingIssueOptions],\n },\n ],\n};\n"]}
@@ -1,4 +1,116 @@
1
1
  import type { FieldGroup } from './types.js';
2
+ /**
3
+ * Desired political position — exhaustive list of elected, appointed, and
4
+ * party positions in the Indian political system. Organized by level
5
+ * (rural local body → urban local body → state → national → party roles
6
+ * → constitutional). Respondents select one aspiration.
7
+ */
8
+ export declare const desiredPoliticalPositionOptions: readonly [{
9
+ readonly value: "ward_member";
10
+ readonly label: "Ward Member / Panch";
11
+ }, {
12
+ readonly value: "sarpanch";
13
+ readonly label: "Sarpanch / Village Head";
14
+ }, {
15
+ readonly value: "panchayat_samiti_member";
16
+ readonly label: "Panchayat Samiti Member";
17
+ }, {
18
+ readonly value: "block_pramukh";
19
+ readonly label: "Block Pramukh / Panchayat Samiti Chairperson";
20
+ }, {
21
+ readonly value: "zila_panchayat_member";
22
+ readonly label: "Zila Panchayat / Parishad Member";
23
+ }, {
24
+ readonly value: "zila_pramukh";
25
+ readonly label: "Zila Panchayat Chairperson / Zila Pramukh";
26
+ }, {
27
+ readonly value: "municipal_councillor";
28
+ readonly label: "Municipal Councillor / Corporator";
29
+ }, {
30
+ readonly value: "deputy_mayor";
31
+ readonly label: "Deputy Mayor";
32
+ }, {
33
+ readonly value: "mayor";
34
+ readonly label: "Mayor";
35
+ }, {
36
+ readonly value: "municipal_chairperson";
37
+ readonly label: "Municipal Chairperson / Nagar Adhyaksha";
38
+ }, {
39
+ readonly value: "mla";
40
+ readonly label: "MLA (State Legislative Assembly)";
41
+ }, {
42
+ readonly value: "mlc";
43
+ readonly label: "MLC (State Legislative Council)";
44
+ }, {
45
+ readonly value: "state_minister";
46
+ readonly label: "State Minister (Cabinet / MoS)";
47
+ }, {
48
+ readonly value: "deputy_cm";
49
+ readonly label: "Deputy Chief Minister";
50
+ }, {
51
+ readonly value: "chief_minister";
52
+ readonly label: "Chief Minister";
53
+ }, {
54
+ readonly value: "state_speaker";
55
+ readonly label: "Speaker / Deputy Speaker (State Assembly)";
56
+ }, {
57
+ readonly value: "state_opposition_leader";
58
+ readonly label: "Leader of Opposition (State)";
59
+ }, {
60
+ readonly value: "mp_lok_sabha";
61
+ readonly label: "MP (Lok Sabha)";
62
+ }, {
63
+ readonly value: "mp_rajya_sabha";
64
+ readonly label: "MP (Rajya Sabha)";
65
+ }, {
66
+ readonly value: "union_minister";
67
+ readonly label: "Union Minister (Cabinet / MoS)";
68
+ }, {
69
+ readonly value: "deputy_pm";
70
+ readonly label: "Deputy Prime Minister";
71
+ }, {
72
+ readonly value: "prime_minister";
73
+ readonly label: "Prime Minister";
74
+ }, {
75
+ readonly value: "lok_sabha_speaker";
76
+ readonly label: "Speaker / Deputy Speaker (Lok Sabha)";
77
+ }, {
78
+ readonly value: "opposition_leader";
79
+ readonly label: "Leader of Opposition (Lok Sabha)";
80
+ }, {
81
+ readonly value: "booth_worker";
82
+ readonly label: "Booth-level Worker";
83
+ }, {
84
+ readonly value: "mandal_president";
85
+ readonly label: "Mandal / Block Party President";
86
+ }, {
87
+ readonly value: "district_party_president";
88
+ readonly label: "District Party President";
89
+ }, {
90
+ readonly value: "state_party_president";
91
+ readonly label: "State Party President";
92
+ }, {
93
+ readonly value: "national_party_president";
94
+ readonly label: "National Party President";
95
+ }, {
96
+ readonly value: "party_spokesperson";
97
+ readonly label: "Party Spokesperson";
98
+ }, {
99
+ readonly value: "governor";
100
+ readonly label: "Governor (State)";
101
+ }, {
102
+ readonly value: "vice_president";
103
+ readonly label: "Vice President of India";
104
+ }, {
105
+ readonly value: "president";
106
+ readonly label: "President of India";
107
+ }, {
108
+ readonly value: "none";
109
+ readonly label: "None — I'm not interested in office";
110
+ }, {
111
+ readonly value: "other";
112
+ readonly label: "Other";
113
+ }];
2
114
  export declare const leadershipSkillsetOptions: readonly [{
3
115
  readonly value: "public_speaking";
4
116
  readonly label: "Public Speaking";
@@ -1 +1 @@
1
- {"version":3,"file":"04-leadership.d.ts","sourceRoot":"","sources":["../../src/profile-fields/04-leadership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAEX,eAAO,MAAM,mBAAmB,EAAE,UA6HjC,CAAC"}
1
+ {"version":3,"file":"04-leadership.d.ts","sourceRoot":"","sources":["../../src/profile-fields/04-leadership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDlC,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAEX,eAAO,MAAM,mBAAmB,EAAE,UAmHjC,CAAC"}
@@ -1,3 +1,53 @@
1
+ /**
2
+ * Desired political position — exhaustive list of elected, appointed, and
3
+ * party positions in the Indian political system. Organized by level
4
+ * (rural local body → urban local body → state → national → party roles
5
+ * → constitutional). Respondents select one aspiration.
6
+ */
7
+ export const desiredPoliticalPositionOptions = [
8
+ // ── Rural local body ──
9
+ { value: 'ward_member', label: 'Ward Member / Panch' },
10
+ { value: 'sarpanch', label: 'Sarpanch / Village Head' },
11
+ { value: 'panchayat_samiti_member', label: 'Panchayat Samiti Member' },
12
+ { value: 'block_pramukh', label: 'Block Pramukh / Panchayat Samiti Chairperson' },
13
+ { value: 'zila_panchayat_member', label: 'Zila Panchayat / Parishad Member' },
14
+ { value: 'zila_pramukh', label: 'Zila Panchayat Chairperson / Zila Pramukh' },
15
+ // ── Urban local body ──
16
+ { value: 'municipal_councillor', label: 'Municipal Councillor / Corporator' },
17
+ { value: 'deputy_mayor', label: 'Deputy Mayor' },
18
+ { value: 'mayor', label: 'Mayor' },
19
+ { value: 'municipal_chairperson', label: 'Municipal Chairperson / Nagar Adhyaksha' },
20
+ // ── State level ──
21
+ { value: 'mla', label: 'MLA (State Legislative Assembly)' },
22
+ { value: 'mlc', label: 'MLC (State Legislative Council)' },
23
+ { value: 'state_minister', label: 'State Minister (Cabinet / MoS)' },
24
+ { value: 'deputy_cm', label: 'Deputy Chief Minister' },
25
+ { value: 'chief_minister', label: 'Chief Minister' },
26
+ { value: 'state_speaker', label: 'Speaker / Deputy Speaker (State Assembly)' },
27
+ { value: 'state_opposition_leader', label: 'Leader of Opposition (State)' },
28
+ // ── National / Parliament ──
29
+ { value: 'mp_lok_sabha', label: 'MP (Lok Sabha)' },
30
+ { value: 'mp_rajya_sabha', label: 'MP (Rajya Sabha)' },
31
+ { value: 'union_minister', label: 'Union Minister (Cabinet / MoS)' },
32
+ { value: 'deputy_pm', label: 'Deputy Prime Minister' },
33
+ { value: 'prime_minister', label: 'Prime Minister' },
34
+ { value: 'lok_sabha_speaker', label: 'Speaker / Deputy Speaker (Lok Sabha)' },
35
+ { value: 'opposition_leader', label: 'Leader of Opposition (Lok Sabha)' },
36
+ // ── Party roles ──
37
+ { value: 'booth_worker', label: 'Booth-level Worker' },
38
+ { value: 'mandal_president', label: 'Mandal / Block Party President' },
39
+ { value: 'district_party_president', label: 'District Party President' },
40
+ { value: 'state_party_president', label: 'State Party President' },
41
+ { value: 'national_party_president', label: 'National Party President' },
42
+ { value: 'party_spokesperson', label: 'Party Spokesperson' },
43
+ // ── Constitutional (highest) ──
44
+ { value: 'governor', label: 'Governor (State)' },
45
+ { value: 'vice_president', label: 'Vice President of India' },
46
+ { value: 'president', label: 'President of India' },
47
+ // ── Meta ──
48
+ { value: 'none', label: "None — I'm not interested in office" },
49
+ { value: 'other', label: 'Other' },
50
+ ];
1
51
  export const leadershipSkillsetOptions = [
2
52
  { value: 'public_speaking', label: 'Public Speaking' },
3
53
  { value: 'community_organizing', label: 'Community Organizing' },
@@ -39,17 +89,7 @@ export const leadershipAmbitions = {
39
89
  step: 4,
40
90
  isOnboarding: true,
41
91
  optional: true,
42
- options: [
43
- { value: 'sarpanch', label: 'Sarpanch / Village Head' },
44
- { value: 'block_pramukh', label: 'Block Pramukh' },
45
- { value: 'zila_panchayat', label: 'Zila Panchayat Member' },
46
- { value: 'mla', label: 'MLA (State Assembly)' },
47
- { value: 'mp', label: 'MP (Parliament)' },
48
- { value: 'municipal_councillor', label: 'Municipal Councillor' },
49
- { value: 'mayor', label: 'Mayor' },
50
- { value: 'none', label: 'None' },
51
- { value: 'other', label: 'Other' },
52
- ],
92
+ options: [...desiredPoliticalPositionOptions],
53
93
  },
54
94
  {
55
95
  order: 3,
@@ -1 +1 @@
1
- {"version":3,"file":"04-leadership.js","sourceRoot":"","sources":["../../src/profile-fields/04-leadership.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACtD,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;IAChE,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE;IAC9D,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9C,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACpD,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;IACtD,EAAE,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,yBAAyB,EAAE;IACtE,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE;IAC9D,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EA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AAK,EAAE,OAAO,EAAE;aACnC;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE,2BAA2B;YAClC,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,IAAI;SAChB;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const leadershipSkillsetOptions = [\n { value: 'public_speaking', label: 'Public Speaking' },\n { value: 'community_organizing', label: 'Community Organizing' },\n { value: 'conflict_resolution', label: 'Conflict Resolution' },\n { value: 'fundraising', label: 'Fundraising' },\n { value: 'media_handling', label: 'Media Handling' },\n { value: 'legal_awareness', label: 'Legal Awareness' },\n { value: 'grassroots_mobilization', label: 'Grassroots Mobilization' },\n { value: 'digital_campaigning', label: 'Digital Campaigning' },\n { value: 'negotiation', label: 'Negotiation' },\n { value: 'event_management', label: 'Event Management' },\n] as const;\n\nexport const leadershipAmbitions: FieldGroup = {\n key: 'leadership_ambitions',\n label: 'Leadership & Ambitions',\n step: 4,\n description: 'Your desire to lead, political aspirations, and skills.',\n fields: [\n {\n order: 1,\n key: 'participateInRevolution',\n label: 'Participate in Revolution',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes_definitely', label: 'Yes, definitely!' },\n { value: 'maybe', label: 'Maybe' },\n { value: 'not_sure', label: 'Not sure yet' },\n { value: 'no', label: 'No' },\n ],\n },\n {\n order: 2,\n key: 'desiredPoliticalPosition',\n label: 'Desired Political Position',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'sarpanch', label: 'Sarpanch / Village Head' },\n { value: 'block_pramukh', label: 'Block Pramukh' },\n { value: 'zila_panchayat', label: 'Zila Panchayat Member' },\n { value: 'mla', label: 'MLA (State Assembly)' },\n { value: 'mp', label: 'MP (Parliament)' },\n { value: 'municipal_councillor', label: 'Municipal Councillor' },\n { value: 'mayor', label: 'Mayor' },\n { value: 'none', label: 'None' },\n { value: 'other', label: 'Other' },\n ],\n },\n {\n order: 3,\n key: 'leadershipSkillset',\n label: 'Leadership Skills',\n type: 'multi_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [...leadershipSkillsetOptions],\n },\n {\n order: 4,\n key: 'politicalExposure',\n label: 'Political Exposure',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'none', label: 'None' },\n { value: 'minimal', label: 'Minimal' },\n { value: 'moderate', label: 'Moderate' },\n { value: 'high', label: 'High' },\n { value: 'very_high', label: 'Very High' },\n ],\n },\n {\n order: 5,\n key: 'comfortWithVisibility',\n label: 'Comfort with Visibility',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'very_comfortable', label: 'Very comfortable' },\n { value: 'somewhat', label: 'Somewhat' },\n { value: 'prefer_behind_scenes', label: 'Prefer behind the scenes' },\n { value: 'not_comfortable', label: 'Not comfortable' },\n ],\n },\n {\n order: 6,\n key: 'socialInfluenceLevel',\n label: 'Social Influence Level',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'very_influential', label: 'Very influential' },\n { value: 'somewhat', label: 'Somewhat' },\n { value: 'average', label: 'Average' },\n { value: 'low', label: 'Low' },\n { value: 'not_sure', label: 'Not sure' },\n ],\n },\n {\n order: 7,\n key: 'pastExperience',\n label: 'Past Experience',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes_party_work', label: 'Yes — Party work' },\n { value: 'yes_social_work', label: 'Yes — Social work / NGO' },\n { value: 'yes_student_politics', label: 'Yes — Student politics' },\n { value: 'no_experience', label: 'No experience' },\n { value: 'other', label: 'Other' },\n ],\n },\n {\n order: 8,\n key: 'changesYouWantToBring',\n label: 'Changes You Want to Bring',\n type: 'textarea',\n step: 4,\n isOnboarding: true,\n optional: true,\n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wB,EAAE;gBAClE,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;gBAClD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;aACnC;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,uBAAuB;YAC5B,KAAK,EAAE,2BAA2B;YAClC,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,IAAI;SAChB;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\n/**\n * Desired political position — exhaustive list of elected, appointed, and\n * party positions in the Indian political system. Organized by level\n * (rural local body → urban local body → state → national → party roles\n * → constitutional). Respondents select one aspiration.\n */\nexport const desiredPoliticalPositionOptions = [\n // ── Rural local body ──\n { value: 'ward_member', label: 'Ward Member / Panch' },\n { value: 'sarpanch', label: 'Sarpanch / Village Head' },\n { value: 'panchayat_samiti_member', label: 'Panchayat Samiti Member' },\n { value: 'block_pramukh', label: 'Block Pramukh / Panchayat Samiti Chairperson' },\n { value: 'zila_panchayat_member', label: 'Zila Panchayat / Parishad Member' },\n { value: 'zila_pramukh', label: 'Zila Panchayat Chairperson / Zila Pramukh' },\n\n // ── Urban local body ──\n { value: 'municipal_councillor', label: 'Municipal Councillor / Corporator' },\n { value: 'deputy_mayor', label: 'Deputy Mayor' },\n { value: 'mayor', label: 'Mayor' },\n { value: 'municipal_chairperson', label: 'Municipal Chairperson / Nagar Adhyaksha' },\n\n // ── State level ──\n { value: 'mla', label: 'MLA (State Legislative Assembly)' },\n { value: 'mlc', label: 'MLC (State Legislative Council)' },\n { value: 'state_minister', label: 'State Minister (Cabinet / MoS)' },\n { value: 'deputy_cm', label: 'Deputy Chief Minister' },\n { value: 'chief_minister', label: 'Chief Minister' },\n { value: 'state_speaker', label: 'Speaker / Deputy Speaker (State Assembly)' },\n { value: 'state_opposition_leader', label: 'Leader of Opposition (State)' },\n\n // ── National / Parliament ──\n { value: 'mp_lok_sabha', label: 'MP (Lok Sabha)' },\n { value: 'mp_rajya_sabha', label: 'MP (Rajya Sabha)' },\n { value: 'union_minister', label: 'Union Minister (Cabinet / MoS)' },\n { value: 'deputy_pm', label: 'Deputy Prime Minister' },\n { value: 'prime_minister', label: 'Prime Minister' },\n { value: 'lok_sabha_speaker', label: 'Speaker / Deputy Speaker (Lok Sabha)' },\n { value: 'opposition_leader', label: 'Leader of Opposition (Lok Sabha)' },\n\n // ── Party roles ──\n { value: 'booth_worker', label: 'Booth-level Worker' },\n { value: 'mandal_president', label: 'Mandal / Block Party President' },\n { value: 'district_party_president', label: 'District Party President' },\n { value: 'state_party_president', label: 'State Party President' },\n { value: 'national_party_president', label: 'National Party President' },\n { value: 'party_spokesperson', label: 'Party Spokesperson' },\n\n // ── Constitutional (highest) ──\n { value: 'governor', label: 'Governor (State)' },\n { value: 'vice_president', label: 'Vice President of India' },\n { value: 'president', label: 'President of India' },\n\n // ── Meta ──\n { value: 'none', label: \"None — I'm not interested in office\" },\n { value: 'other', label: 'Other' },\n] as const;\n\nexport const leadershipSkillsetOptions = [\n { value: 'public_speaking', label: 'Public Speaking' },\n { value: 'community_organizing', label: 'Community Organizing' },\n { value: 'conflict_resolution', label: 'Conflict Resolution' },\n { value: 'fundraising', label: 'Fundraising' },\n { value: 'media_handling', label: 'Media Handling' },\n { value: 'legal_awareness', label: 'Legal Awareness' },\n { value: 'grassroots_mobilization', label: 'Grassroots Mobilization' },\n { value: 'digital_campaigning', label: 'Digital Campaigning' },\n { value: 'negotiation', label: 'Negotiation' },\n { value: 'event_management', label: 'Event Management' },\n] as const;\n\nexport const leadershipAmbitions: FieldGroup = {\n key: 'leadership_ambitions',\n label: 'Leadership & Ambitions',\n step: 4,\n description: 'Your desire to lead, political aspirations, and skills.',\n fields: [\n {\n order: 1,\n key: 'participateInRevolution',\n label: 'Participate in Revolution',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes_definitely', label: 'Yes, definitely!' },\n { value: 'maybe', label: 'Maybe' },\n { value: 'not_sure', label: 'Not sure yet' },\n { value: 'no', label: 'No' },\n ],\n },\n {\n order: 2,\n key: 'desiredPoliticalPosition',\n label: 'Desired Political Position',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [...desiredPoliticalPositionOptions],\n },\n {\n order: 3,\n key: 'leadershipSkillset',\n label: 'Leadership Skills',\n type: 'multi_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [...leadershipSkillsetOptions],\n },\n {\n order: 4,\n key: 'politicalExposure',\n label: 'Political Exposure',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'none', label: 'None' },\n { value: 'minimal', label: 'Minimal' },\n { value: 'moderate', label: 'Moderate' },\n { value: 'high', label: 'High' },\n { value: 'very_high', label: 'Very High' },\n ],\n },\n {\n order: 5,\n key: 'comfortWithVisibility',\n label: 'Comfort with Visibility',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'very_comfortable', label: 'Very comfortable' },\n { value: 'somewhat', label: 'Somewhat' },\n { value: 'prefer_behind_scenes', label: 'Prefer behind the scenes' },\n { value: 'not_comfortable', label: 'Not comfortable' },\n ],\n },\n {\n order: 6,\n key: 'socialInfluenceLevel',\n label: 'Social Influence Level',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'very_influential', label: 'Very influential' },\n { value: 'somewhat', label: 'Somewhat' },\n { value: 'average', label: 'Average' },\n { value: 'low', label: 'Low' },\n { value: 'not_sure', label: 'Not sure' },\n ],\n },\n {\n order: 7,\n key: 'pastExperience',\n label: 'Past Experience',\n type: 'single_select',\n step: 4,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes_party_work', label: 'Yes — Party work' },\n { value: 'yes_social_work', label: 'Yes — Social work / NGO' },\n { value: 'yes_student_politics', label: 'Yes — Student politics' },\n { value: 'no_experience', label: 'No experience' },\n { value: 'other', label: 'Other' },\n ],\n },\n {\n order: 8,\n key: 'changesYouWantToBring',\n label: 'Changes You Want to Bring',\n type: 'textarea',\n step: 4,\n isOnboarding: true,\n optional: true,\n maxLength: 1000,\n },\n ],\n};\n"]}
@@ -8,7 +8,7 @@ export type { BaseField, FieldGroup, FieldOption, MultiSelectField, NumberField,
8
8
  export { genderOptions, languageOptions, minorityOptions, profile, religionOptions, reservationOptions, } from './01-profile.js';
9
9
  export { civicEngagementOptions, electionResultOptions, officeElectionLevelOptions, partyAssociationRoleOptions, partyOptions, politicalAssociation, politicalSpectrumOptions, relativesInPoliticsOptions, } from './02-political.js';
10
10
  export { electoralBehaviour, votingIssueOptions } from './03-electoral.js';
11
- export { leadershipAmbitions, leadershipSkillsetOptions } from './04-leadership.js';
11
+ export { desiredPoliticalPositionOptions, leadershipAmbitions, leadershipSkillsetOptions, } from './04-leadership.js';
12
12
  export { mbtiOptions, psychologicalAssessment } from './05-psychological.js';
13
13
  export { education, qualificationOptions } from './06-education.js';
14
14
  export { employment, employmentStatusOptions, incomeRangeOptions, shiftOptions, } from './07-employment.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,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,sBAAsB,GACvB,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,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAgB3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,cAAc,EAAE,SAAS,UAAU,EAa/C,CAAC"}
@@ -8,7 +8,7 @@
8
8
  export { genderOptions, languageOptions, minorityOptions, profile, religionOptions, reservationOptions, } from './01-profile.js';
9
9
  export { civicEngagementOptions, electionResultOptions, officeElectionLevelOptions, partyAssociationRoleOptions, partyOptions, politicalAssociation, politicalSpectrumOptions, relativesInPoliticsOptions, } from './02-political.js';
10
10
  export { electoralBehaviour, votingIssueOptions } from './03-electoral.js';
11
- export { leadershipAmbitions, leadershipSkillsetOptions } from './04-leadership.js';
11
+ export { desiredPoliticalPositionOptions, leadershipAmbitions, leadershipSkillsetOptions, } from './04-leadership.js';
12
12
  export { mbtiOptions, psychologicalAssessment } from './05-psychological.js';
13
13
  export { education, qualificationOptions } from './06-education.js';
14
14
  export { employment, employmentStatusOptions, incomeRangeOptions, shiftOptions, } from './07-employment.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,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,sBAAsB,GACvB,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 electionResultOptions,\n officeElectionLevelOptions,\n partyAssociationRoleOptions,\n partyOptions,\n politicalAssociation,\n politicalSpectrumOptions,\n relativesInPoliticsOptions,\n} from './02-political.js';\nexport { electoralBehaviour, votingIssueOptions } from './03-electoral.js';\nexport { leadershipAmbitions, leadershipSkillsetOptions } from './04-leadership.js';\nexport { mbtiOptions, psychologicalAssessment } from './05-psychological.js';\nexport { education, qualificationOptions } from './06-education.js';\nexport {\n employment,\n employmentStatusOptions,\n incomeRangeOptions,\n shiftOptions,\n} from './07-employment.js';\nexport {\n neurodiversity,\n neurodiversityConditionOptions,\n sensoryPreferenceOptions,\n supportNeedOptions,\n} from './08-neurodiversity.js';\nexport {\n dietOptions,\n disabilityOptions,\n healthLifestyle,\n substanceUseOptions,\n} from './09-health.js';\nexport {\n casteDiscriminationPlaceOptions,\n lgbtqStatementOptions,\n transgenderStatementOptions,\n worldView,\n} from './10-worldview.js';\nexport { residence } from './11-residence.js';\nexport {\n digitalAccessOptions,\n familyMemberOptions,\n household,\n householdIncomeOptions,\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,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,+BAA+B,EAC/B,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,sBAAsB,GACvB,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 electionResultOptions,\n officeElectionLevelOptions,\n partyAssociationRoleOptions,\n partyOptions,\n politicalAssociation,\n politicalSpectrumOptions,\n relativesInPoliticsOptions,\n} from './02-political.js';\nexport { electoralBehaviour, votingIssueOptions } from './03-electoral.js';\nexport {\n desiredPoliticalPositionOptions,\n leadershipAmbitions,\n leadershipSkillsetOptions,\n} from './04-leadership.js';\nexport { mbtiOptions, psychologicalAssessment } from './05-psychological.js';\nexport { education, qualificationOptions } from './06-education.js';\nexport {\n employment,\n employmentStatusOptions,\n incomeRangeOptions,\n shiftOptions,\n} from './07-employment.js';\nexport {\n neurodiversity,\n neurodiversityConditionOptions,\n sensoryPreferenceOptions,\n supportNeedOptions,\n} from './08-neurodiversity.js';\nexport {\n dietOptions,\n disabilityOptions,\n healthLifestyle,\n substanceUseOptions,\n} from './09-health.js';\nexport {\n casteDiscriminationPlaceOptions,\n lgbtqStatementOptions,\n transgenderStatementOptions,\n worldView,\n} from './10-worldview.js';\nexport { residence } from './11-residence.js';\nexport {\n digitalAccessOptions,\n familyMemberOptions,\n household,\n householdIncomeOptions,\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":"types.d.ts","sourceRoot":"","sources":["../../src/profile-fields/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAA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;;GAKG","sourcesContent":["/**\n * Type definitions for UDP profile field configuration.\n *\n * Mirrors the dating-schema profile-fields/types.ts pattern.\n * These types describe field metadata — NOT the user's actual profile data.\n */\n\nexport interface FieldOption {\n value: string;\n label: string;\n /** Short description — shown on chips/cards */\n description?: string;\n}\n\nexport interface BaseField {\n /** Display order within the step */\n order: number;\n /** Unique key — maps to DB field name */\n key: string;\n /** Human-readable label */\n label: string;\n /** Field type for form rendering */\n type:\n | 'text'\n | 'textarea'\n | 'number'\n | 'date'\n | 'single_select'\n | 'multi_select'\n | 'object'\n | 'object_array'\n | 'address';\n /** Step number (1-12) this field belongs to */\n step: number;\n /** Whether this field is collected during onboarding */\n isOnboarding: boolean;\n /**\n * All UDP fields are optional — users can skip any question.\n * This flag is kept for metadata/documentation but does not affect form flow.\n */\n optional?: boolean;\n /** Help text shown below the field */\n description?: string;\n /** Mark as sensitive (shown with privacy notice) */\n sensitive?: boolean;\n /**\n * If set, field visibility is conditional on another field's value.\n * - `values`: positive match — only visible when referenced field's value is in the list.\n * - `notIn`: negative match — only visible when referenced field's value is NOT in the list.\n * An undefined referenced value counts as \"not in the list\" (field is shown).\n */\n conditionalOn?:\n | { field: string; values: string[] }\n | { field: string; notIn: string[] };\n}\n\nexport interface SelectField extends BaseField {\n type: 'single_select';\n options: FieldOption[];\n}\n\nexport interface MultiSelectField extends BaseField {\n type: 'multi_select';\n options: FieldOption[];\n maxSelect?: number;\n}\n\nexport interface TextField extends BaseField {\n type: 'text' | 'textarea';\n maxLength?: number;\n}\n\nexport interface NumberField extends BaseField {\n type: 'number';\n min?: number;\n max?: number;\n}\n\nexport type ProfileField =\n | SelectField\n | MultiSelectField\n | TextField\n | NumberField\n | (BaseField & { type: 'date' | 'object' | 'object_array' | 'address' });\n\nexport interface FieldGroup {\n key: string;\n label: string;\n description?: string;\n step: number;\n fields: ProfileField[];\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/profile-fields/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG","sourcesContent":["/**\n * Type definitions for UDP profile field configuration.\n *\n * Mirrors the dating-schema profile-fields/types.ts pattern.\n * These types describe field metadata — NOT the user's actual profile data.\n */\n\nexport interface FieldOption {\n value: string;\n label: string;\n /** Short description — shown on chips/cards */\n description?: string;\n}\n\nexport interface BaseField {\n /** Display order within the step */\n order: number;\n /** Unique key — maps to DB field name */\n key: string;\n /** Human-readable label */\n label: string;\n /** Field type for form rendering */\n type:\n | 'text'\n | 'textarea'\n | 'number'\n | 'date'\n | 'single_select'\n | 'multi_select'\n | 'object'\n | 'object_array'\n | 'address';\n /** Step number (1-12) this field belongs to */\n step: number;\n /** Whether this field is collected during onboarding */\n isOnboarding: boolean;\n /**\n * All UDP fields are optional — users can skip any question.\n * This flag is kept for metadata/documentation but does not affect form flow.\n */\n optional?: boolean;\n /** Help text shown below the field */\n description?: string;\n /** Mark as sensitive (shown with privacy notice) */\n sensitive?: boolean;\n /**\n * If set, field visibility is conditional on another field's value.\n * - `values`: positive match — only visible when referenced field's value is in the list.\n * - `notIn`: negative match — only visible when referenced field's value is NOT in the list.\n * An undefined referenced value counts as \"not in the list\" (field is shown).\n */\n conditionalOn?: { field: string; values: string[] } | { field: string; notIn: string[] };\n}\n\nexport interface SelectField extends BaseField {\n type: 'single_select';\n options: FieldOption[];\n}\n\nexport interface MultiSelectField extends BaseField {\n type: 'multi_select';\n options: FieldOption[];\n maxSelect?: number;\n}\n\nexport interface TextField extends BaseField {\n type: 'text' | 'textarea';\n maxLength?: number;\n}\n\nexport interface NumberField extends BaseField {\n type: 'number';\n min?: number;\n max?: number;\n}\n\nexport type ProfileField =\n | SelectField\n | MultiSelectField\n | TextField\n | NumberField\n | (BaseField & { type: 'date' | 'object' | 'object_array' | 'address' });\n\nexport interface FieldGroup {\n key: string;\n label: string;\n description?: string;\n step: number;\n fields: ProfileField[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"step-02.schema.d.ts","sourceRoot":"","sources":["../src/step-02.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyFhC,CAAC;AAIH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"step-02.schema.d.ts","sourceRoot":"","sources":["../src/step-02.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkFhC,CAAC;AAIH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -45,14 +45,7 @@ export const step02PoliticalSchema = z.object({
45
45
  familyPartyAssociation: optionalTrimmedString,
46
46
  /** Relatives in politics (immediate / extended / both / none / prefer-not). */
47
47
  relativesInPolitics: z
48
- .enum([
49
- 'none',
50
- 'immediate_family',
51
- 'extended_family',
52
- 'both',
53
- 'dont_know',
54
- 'prefer_not_to_say',
55
- ])
48
+ .enum(['none', 'immediate_family', 'extended_family', 'both', 'dont_know', 'prefer_not_to_say'])
56
49
  .optional(),
57
50
  /** Public office and elections history. */
58
51
  publicOfficeAndElections: z
@@ -1 +1 @@
1
- {"version":3,"file":"step-02.schema.js","sourceRoot":"","sources":["../src/step-02.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,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E;QACnD,aAAa,EAAE,CAAC;aACb,IAAI,CAAC;YACJ,WAAW;YACX,MAAM;YACN,cAAc;YACd,OAAO;YACP,UAAU;YACV,UAAU;YACV,YAAY;YACZ,OAAO;SACR,CAAC;aACD,QAAQ,EAAE;QACb,YAAY,EAAE,qBAAqB,EAAE,cAAc;QACnD,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzE,eAAe,EAAE,qBAAqB;KACvC,CAAC;SACD,QAAQ,EAAE;IAEb,kDAAkD;IAClD,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC","sourcesContent":["/**\n * Step 02 — Political Association & History\n *\n * Fields: politicalSpectrum, selfPartyAssociation, familyPartyAssociation,\n * publicOfficeAndElections, networkAndCivicEngagement\n *\n * @module udp-schema/step-02\n */\n\nimport { z } from 'zod';\nimport { optionalTrimmedString } from './zod-helpers.js';\n\n// ─── Main Step 02 Schema ────────────────────────────────────────────────────\n\nexport const step02PoliticalSchema = z.object({\n /** Political spectrum — left/right axis (matches dating-schema politicalOrientation values) */\n politicalSpectrum: z\n .enum([\n 'far_left',\n 'left',\n 'centre_left',\n 'centrist',\n 'centre_right',\n 'right',\n 'far_right',\n 'libertarian',\n 'apolitical',\n 'prefer_not_to_say',\n ])\n .optional(),\n\n /** Self party association — party key (e.g. \"bjp\", \"inc\", \"none\") */\n selfPartyAssociation: optionalTrimmedString,\n\n /** Nature of association with the party — only meaningful when selfPartyAssociation is a real party. */\n partyAssociationRole: z\n .enum([\n 'member',\n 'active_worker',\n 'office_bearer',\n 'candidate',\n 'spokesperson',\n 'volunteer',\n 'sympathizer',\n 'none',\n 'prefer_not_to_say',\n ])\n .optional(),\n\n /** Family party association — same party-key enum via free string. */\n familyPartyAssociation: optionalTrimmedString,\n\n /** Relatives in politics (immediate / extended / both / none / prefer-not). */\n relativesInPolitics: z\n .enum([\n 'none',\n 'immediate_family',\n 'extended_family',\n 'both',\n 'dont_know',\n 'prefer_not_to_say',\n ])\n .optional(),\n\n /** Public office and elections history. */\n publicOfficeAndElections: z\n .object({\n hasHeldOffice: z.enum(['yes', 'no', 'prefer_not_to_say']).optional(),\n officeLevel: z\n .enum([\n 'panchayat',\n 'ward',\n 'municipality',\n 'block',\n 'district',\n 'assembly',\n 'parliament',\n 'other',\n ])\n .optional(),\n officeYears: optionalTrimmedString, // e.g. \"2018-2023\"\n officeDetails: optionalTrimmedString, // free text — position name / notes\n electionContested: z.enum(['yes', 'no']).optional(),\n electionLevel: z\n .enum([\n 'panchayat',\n 'ward',\n 'municipality',\n 'block',\n 'district',\n 'assembly',\n 'parliament',\n 'other',\n ])\n .optional(),\n electionYear: optionalTrimmedString, // e.g. \"2023\"\n electionResult: z.enum(['won', 'lost', 'withdrew', 'ongoing']).optional(),\n electionDetails: optionalTrimmedString,\n })\n .optional(),\n\n /** Network and civic engagement (multi-select) */\n networkAndCivicEngagement: z.array(z.string().trim()).optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step02PoliticalInput = z.infer<typeof step02PoliticalSchema>;\n"]}
1
+ {"version":3,"file":"step-02.schema.js","sourceRoot":"","sources":["../src/step-02.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,+EAA+E;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,+FAA+F;IAC/F,iBAAiB,EAAE,CAAC;SACjB,IAAI,CAAC;QACJ,UAAU;QACV,MAAM;QACN,aAAa;QACb,UAAU;QACV,cAAc;QACd,OAAO;QACP,WAAW;QACX,aAA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AE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzE,eAAe,EAAE,qBAAqB;KACvC,CAAC;SACD,QAAQ,EAAE;IAEb,kDAAkD;IAClD,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAC","sourcesContent":["/**\n * Step 02 — Political Association & History\n *\n * Fields: politicalSpectrum, selfPartyAssociation, familyPartyAssociation,\n * publicOfficeAndElections, networkAndCivicEngagement\n *\n * @module udp-schema/step-02\n */\n\nimport { z } from 'zod';\nimport { optionalTrimmedString } from './zod-helpers.js';\n\n// ─── Main Step 02 Schema ────────────────────────────────────────────────────\n\nexport const step02PoliticalSchema = z.object({\n /** Political spectrum — left/right axis (matches dating-schema politicalOrientation values) */\n politicalSpectrum: z\n .enum([\n 'far_left',\n 'left',\n 'centre_left',\n 'centrist',\n 'centre_right',\n 'right',\n 'far_right',\n 'libertarian',\n 'apolitical',\n 'prefer_not_to_say',\n ])\n .optional(),\n\n /** Self party association — party key (e.g. \"bjp\", \"inc\", \"none\") */\n selfPartyAssociation: optionalTrimmedString,\n\n /** Nature of association with the party — only meaningful when selfPartyAssociation is a real party. */\n partyAssociationRole: z\n .enum([\n 'member',\n 'active_worker',\n 'office_bearer',\n 'candidate',\n 'spokesperson',\n 'volunteer',\n 'sympathizer',\n 'none',\n 'prefer_not_to_say',\n ])\n .optional(),\n\n /** Family party association — same party-key enum via free string. */\n familyPartyAssociation: optionalTrimmedString,\n\n /** Relatives in politics (immediate / extended / both / none / prefer-not). */\n relativesInPolitics: z\n .enum(['none', 'immediate_family', 'extended_family', 'both', 'dont_know', 'prefer_not_to_say'])\n .optional(),\n\n /** Public office and elections history. */\n publicOfficeAndElections: z\n .object({\n hasHeldOffice: z.enum(['yes', 'no', 'prefer_not_to_say']).optional(),\n officeLevel: z\n .enum([\n 'panchayat',\n 'ward',\n 'municipality',\n 'block',\n 'district',\n 'assembly',\n 'parliament',\n 'other',\n ])\n .optional(),\n officeYears: optionalTrimmedString, // e.g. \"2018-2023\"\n officeDetails: optionalTrimmedString, // free text — position name / notes\n electionContested: z.enum(['yes', 'no']).optional(),\n electionLevel: z\n .enum([\n 'panchayat',\n 'ward',\n 'municipality',\n 'block',\n 'district',\n 'assembly',\n 'parliament',\n 'other',\n ])\n .optional(),\n electionYear: optionalTrimmedString, // e.g. \"2023\"\n electionResult: z.enum(['won', 'lost', 'withdrew', 'ongoing']).optional(),\n electionDetails: optionalTrimmedString,\n })\n .optional(),\n\n /** Network and civic engagement (multi-select) */\n networkAndCivicEngagement: z.array(z.string().trim()).optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step02PoliticalInput = z.infer<typeof step02PoliticalSchema>;\n"]}
@@ -18,13 +18,39 @@ export declare const step04LeadershipSchema: z.ZodObject<{
18
18
  desiredPoliticalPosition: z.ZodOptional<z.ZodEnum<{
19
19
  other: "other";
20
20
  none: "none";
21
+ ward_member: "ward_member";
21
22
  sarpanch: "sarpanch";
23
+ panchayat_samiti_member: "panchayat_samiti_member";
22
24
  block_pramukh: "block_pramukh";
23
- zila_panchayat: "zila_panchayat";
24
- mla: "mla";
25
- mp: "mp";
25
+ zila_panchayat_member: "zila_panchayat_member";
26
+ zila_pramukh: "zila_pramukh";
26
27
  municipal_councillor: "municipal_councillor";
28
+ deputy_mayor: "deputy_mayor";
27
29
  mayor: "mayor";
30
+ municipal_chairperson: "municipal_chairperson";
31
+ mla: "mla";
32
+ mlc: "mlc";
33
+ state_minister: "state_minister";
34
+ deputy_cm: "deputy_cm";
35
+ chief_minister: "chief_minister";
36
+ state_speaker: "state_speaker";
37
+ state_opposition_leader: "state_opposition_leader";
38
+ mp_lok_sabha: "mp_lok_sabha";
39
+ mp_rajya_sabha: "mp_rajya_sabha";
40
+ union_minister: "union_minister";
41
+ deputy_pm: "deputy_pm";
42
+ prime_minister: "prime_minister";
43
+ lok_sabha_speaker: "lok_sabha_speaker";
44
+ opposition_leader: "opposition_leader";
45
+ booth_worker: "booth_worker";
46
+ mandal_president: "mandal_president";
47
+ district_party_president: "district_party_president";
48
+ state_party_president: "state_party_president";
49
+ national_party_president: "national_party_president";
50
+ party_spokesperson: "party_spokesperson";
51
+ governor: "governor";
52
+ vice_president: "vice_president";
53
+ president: "president";
28
54
  }>>;
29
55
  leadershipSkillset: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
56
  politicalExposure: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"step-04.schema.d.ts","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CjC,CAAC;AAIH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"step-04.schema.d.ts","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2EjC,CAAC;AAIH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -12,16 +12,49 @@ import { z } from 'zod';
12
12
  export const step04LeadershipSchema = z.object({
13
13
  /** Willingness to participate in the revolution of change */
14
14
  participateInRevolution: z.enum(['yes_definitely', 'maybe', 'not_sure', 'no']).optional(),
15
- /** Desired political position */
15
+ /** Desired political position — exhaustive enum covering all levels of Indian political office. */
16
16
  desiredPoliticalPosition: z
17
17
  .enum([
18
+ // Rural local body
19
+ 'ward_member',
18
20
  'sarpanch',
21
+ 'panchayat_samiti_member',
19
22
  'block_pramukh',
20
- 'zila_panchayat',
21
- 'mla',
22
- 'mp',
23
+ 'zila_panchayat_member',
24
+ 'zila_pramukh',
25
+ // Urban local body
23
26
  'municipal_councillor',
27
+ 'deputy_mayor',
24
28
  'mayor',
29
+ 'municipal_chairperson',
30
+ // State
31
+ 'mla',
32
+ 'mlc',
33
+ 'state_minister',
34
+ 'deputy_cm',
35
+ 'chief_minister',
36
+ 'state_speaker',
37
+ 'state_opposition_leader',
38
+ // National
39
+ 'mp_lok_sabha',
40
+ 'mp_rajya_sabha',
41
+ 'union_minister',
42
+ 'deputy_pm',
43
+ 'prime_minister',
44
+ 'lok_sabha_speaker',
45
+ 'opposition_leader',
46
+ // Party roles
47
+ 'booth_worker',
48
+ 'mandal_president',
49
+ 'district_party_president',
50
+ 'state_party_president',
51
+ 'national_party_president',
52
+ 'party_spokesperson',
53
+ // Constitutional
54
+ 'governor',
55
+ 'vice_president',
56
+ 'president',
57
+ // Meta
25
58
  'none',
26
59
  'other',
27
60
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"step-04.schema.js","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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,CAAC,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEzF,iCAAiC;IACjC,wBAAwB,EAAE,CAAC;SACxB,IAAI,CAAC;QACJ,UAAU;QACV,eAAe;QACf,gBAAgB;QAChB,KAAK;QACL,IAAI;QACJ,sBAAsB;QACtB,OAAO;QACP,MAAM;QACN,OAAO;KACR,CAAC;SACD,QAAQ,EAAE;IAEb,sDAAsD;IACtD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEzD,kCAAkC;IAClC,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;IAE1F,qCAAqC;IACrC,qBAAqB,EAAE,CAAC;SACrB,IAAI,CAAC,CAAC,kBAAkB,EAAE,UAAU,EAAE,sBAAsB,EAAE,iBAAiB,CAAC,CAAC;SACjF,QAAQ,EAAE;IAEb,6BAA6B;IAC7B,oBAAoB,EAAE,CAAC;SACpB,IAAI,CAAC,CAAC,kBAAkB,EAAE,UAAU,EAAE,SAAS,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;IAEb,4CAA4C;IAC5C,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC","sourcesContent":["/**\n * Step 04 — Leadership & Ambitions\n *\n * Fields: participateInRevolution, desiredPoliticalPosition, leadershipSkillset,\n * politicalExposure, comfortWithVisibility, socialInfluenceLevel,\n * pastExperience, changesYouWantToBring\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 */\n desiredPoliticalPosition: z\n .enum([\n 'sarpanch',\n 'block_pramukh',\n 'zila_panchayat',\n 'mla',\n 'mp',\n 'municipal_councillor',\n 'mayor',\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 /** Changes you want to bring — free text */\n changesYouWantToBring: z.string().trim().max(1000).optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step04LeadershipInput = z.infer<typeof step04LeadershipSchema>;\n"]}
1
+ {"version":3,"file":"step-04.schema.js","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;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,CAAC,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEzF,mGAAmG;IACnG,wBAAwB,EAAE,CAAC;SACxB,IAAI,CAAC;QACJ,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AsB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;SAC7F,QAAQ,EAAE;IAEb,4CAA4C;IAC5C,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC","sourcesContent":["/**\n * Step 04 — Leadership & Ambitions\n *\n * Fields: participateInRevolution, desiredPoliticalPosition, leadershipSkillset,\n * politicalExposure, comfortWithVisibility, socialInfluenceLevel,\n * pastExperience, changesYouWantToBring\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 /** Changes you want to bring — free text */\n changesYouWantToBring: z.string().trim().max(1000).optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step04LeadershipInput = z.infer<typeof step04LeadershipSchema>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udp-schema",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "Shared Zod schemas for User Detailed Profile (frontend + backend).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",