udp-schema 0.2.0 → 1.0.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/field-helpers.d.ts +10 -38
- package/dist/field-helpers.d.ts.map +1 -1
- package/dist/field-helpers.js +40 -66
- package/dist/field-helpers.js.map +1 -1
- package/dist/field-meta.d.ts +46 -28
- package/dist/field-meta.d.ts.map +1 -1
- package/dist/field-meta.js +304 -1016
- package/dist/field-meta.js.map +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/dist/onboarding-config.d.ts +44 -0
- package/dist/onboarding-config.d.ts.map +1 -0
- package/dist/onboarding-config.js +705 -0
- package/dist/onboarding-config.js.map +1 -0
- package/dist/progress-fields.d.ts +3 -3
- package/dist/progress-fields.d.ts.map +1 -1
- package/dist/progress-fields.js +73 -101
- package/dist/progress-fields.js.map +1 -1
- package/dist/step-01.schema.d.ts +84 -111
- package/dist/step-01.schema.d.ts.map +1 -1
- package/dist/step-01.schema.js +94 -101
- package/dist/step-01.schema.js.map +1 -1
- package/dist/step-02.schema.d.ts +31 -21
- package/dist/step-02.schema.d.ts.map +1 -1
- package/dist/step-02.schema.js +34 -27
- package/dist/step-02.schema.js.map +1 -1
- package/dist/step-03.schema.d.ts +24 -300
- package/dist/step-03.schema.d.ts.map +1 -1
- package/dist/step-03.schema.js +24 -60
- package/dist/step-03.schema.js.map +1 -1
- package/dist/step-04.schema.d.ts +56 -50
- package/dist/step-04.schema.d.ts.map +1 -1
- package/dist/step-04.schema.js +48 -43
- package/dist/step-04.schema.js.map +1 -1
- package/dist/step-05.schema.d.ts +13 -52
- package/dist/step-05.schema.d.ts.map +1 -1
- package/dist/step-05.schema.js +19 -40
- package/dist/step-05.schema.js.map +1 -1
- package/dist/step-06.schema.d.ts +101 -117
- package/dist/step-06.schema.d.ts.map +1 -1
- package/dist/step-06.schema.js +70 -75
- package/dist/step-06.schema.js.map +1 -1
- package/dist/step-07.schema.d.ts +44 -95
- package/dist/step-07.schema.d.ts.map +1 -1
- package/dist/step-07.schema.js +51 -78
- package/dist/step-07.schema.js.map +1 -1
- package/dist/step-08.schema.d.ts +31 -44
- package/dist/step-08.schema.d.ts.map +1 -1
- package/dist/step-08.schema.js +30 -47
- package/dist/step-08.schema.js.map +1 -1
- package/dist/step-09.schema.d.ts +48 -85
- package/dist/step-09.schema.d.ts.map +1 -1
- package/dist/step-09.schema.js +42 -120
- package/dist/step-09.schema.js.map +1 -1
- package/dist/step-10.schema.d.ts +32 -86
- package/dist/step-10.schema.d.ts.map +1 -1
- package/dist/step-10.schema.js +44 -120
- package/dist/step-10.schema.js.map +1 -1
- package/dist/step-11.schema.d.ts +36 -92
- package/dist/step-11.schema.d.ts.map +1 -1
- package/dist/step-11.schema.js +32 -111
- package/dist/step-11.schema.js.map +1 -1
- package/dist/step-12.schema.d.ts +56 -93
- package/dist/step-12.schema.d.ts.map +1 -1
- package/dist/step-12.schema.js +77 -133
- package/dist/step-12.schema.js.map +1 -1
- package/package.json +1 -1
package/dist/step-04.schema.js
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step 04 — Leadership & Ambitions
|
|
3
|
+
*
|
|
4
|
+
* Fields: participateInRevolution, desiredPoliticalPosition, leadershipSkillset,
|
|
5
|
+
* politicalExposure, comfortWithVisibility, socialInfluenceLevel,
|
|
6
|
+
* pastExperience, changesYouWantToBring
|
|
7
|
+
*
|
|
8
|
+
* @module udp-schema/step-04
|
|
9
|
+
*/
|
|
1
10
|
import { z } from 'zod';
|
|
2
|
-
// ─── Step 04
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export const step04IdentitySchema = z.object({
|
|
8
|
-
// ── 4.1 Religion ─────────────────────────────────────────────────────────
|
|
9
|
-
/** Family religion */
|
|
10
|
-
familyReligion: z.enum(['HINDU', 'MUSLIM', 'CHRISTIAN', 'SIKH', 'BUDDHIST', 'JAIN', 'OTHER'], {
|
|
11
|
-
message: 'Please select family religion.',
|
|
12
|
-
}),
|
|
13
|
-
/** Individual religion (may differ from family) */
|
|
14
|
-
individualReligion: z.enum(['SAME_AS_FAMILY', 'HINDU', 'MUSLIM', 'CHRISTIAN', 'SIKH', 'BUDDHIST', 'JAIN', 'OTHER'], { message: 'Please select your religion.' }),
|
|
15
|
-
// ── 4.2 Caste & Community ────────────────────────────────────────────────
|
|
16
|
-
/** Caste / community (free text, optional) */
|
|
17
|
-
casteCommunity: z.string().trim().optional(),
|
|
18
|
-
/** Government reservation category */
|
|
19
|
-
casteCategoryReservation: z.enum(['SC', 'ST', 'OBC_NC', 'OBC_C', 'EWS', 'GENERAL', 'DONT_KNOW', 'PREFER_NOT_SAY'], { message: 'Please select your reservation category.' }),
|
|
20
|
-
/** Minority community status */
|
|
21
|
-
minorityStatus: z.enum(['NO', 'RELIGIOUS', 'LINGUISTIC', 'NOT_SURE'], {
|
|
22
|
-
message: 'Please select if you are from a minority community.',
|
|
23
|
-
}),
|
|
24
|
-
/** Tribal / indigenous community affiliation (optional free text) */
|
|
25
|
-
tribalOrIndigenousAffiliation: z.string().trim().optional(),
|
|
26
|
-
// ── 4.3 Discrimination Experience ────────────────────────────────────────
|
|
27
|
-
// Shown when casteCategoryReservation ∈ {SC, ST, OBC_NC, OBC_C}
|
|
28
|
-
/** Do you face social discrimination as SC/ST/OBC? */
|
|
29
|
-
facingCasteDiscrimination: z
|
|
30
|
-
.enum(['YES_OFTEN', 'YES_SOMETIMES', 'NO', 'PREFER_NOT_SAY'])
|
|
11
|
+
// ─── Main Step 04 Schema ────────────────────────────────────────────────────
|
|
12
|
+
export const step04LeadershipSchema = z.object({
|
|
13
|
+
/** Willingness to participate in the revolution of change */
|
|
14
|
+
participateInRevolution: z
|
|
15
|
+
.enum(['yes_definitely', 'maybe', 'not_sure', 'no'])
|
|
31
16
|
.optional(),
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
17
|
+
/** Desired political position */
|
|
18
|
+
desiredPoliticalPosition: z
|
|
19
|
+
.enum([
|
|
20
|
+
'sarpanch',
|
|
21
|
+
'block_pramukh',
|
|
22
|
+
'zila_panchayat',
|
|
23
|
+
'mla',
|
|
24
|
+
'mp',
|
|
25
|
+
'municipal_councillor',
|
|
26
|
+
'mayor',
|
|
27
|
+
'none',
|
|
28
|
+
'other',
|
|
29
|
+
])
|
|
30
|
+
.optional(),
|
|
31
|
+
/** Leadership skillset (multi-select string array) */
|
|
32
|
+
leadershipSkillset: z.array(z.string().trim()).optional(),
|
|
33
|
+
/** Level of political exposure */
|
|
34
|
+
politicalExposure: z
|
|
35
|
+
.enum(['none', 'minimal', 'moderate', 'high', 'very_high'])
|
|
36
|
+
.optional(),
|
|
37
|
+
/** Comfort with public visibility */
|
|
38
|
+
comfortWithVisibility: z
|
|
39
|
+
.enum(['very_comfortable', 'somewhat', 'prefer_behind_scenes', 'not_comfortable'])
|
|
40
|
+
.optional(),
|
|
41
|
+
/** Social influence level */
|
|
42
|
+
socialInfluenceLevel: z
|
|
43
|
+
.enum(['very_influential', 'somewhat', 'average', 'low', 'not_sure'])
|
|
44
|
+
.optional(),
|
|
45
|
+
/** Past political or social experience */
|
|
46
|
+
pastExperience: z
|
|
47
|
+
.enum(['yes_party_work', 'yes_social_work', 'yes_student_politics', 'no_experience', 'other'])
|
|
48
|
+
.optional(),
|
|
49
|
+
/** Changes you want to bring — free text */
|
|
50
|
+
changesYouWantToBring: z.string().trim().max(1000).optional(),
|
|
46
51
|
});
|
|
47
52
|
//# sourceMappingURL=step-04.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-04.schema.js","sourceRoot":"","sources":["../src/step-04.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
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;SACvB,IAAI,CAAC,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;SACnD,QAAQ,EAAE;IAEb,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;SACjB,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;SAC1D,QAAQ,EAAE;IAEb,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\n .enum(['yes_definitely', 'maybe', 'not_sure', 'no'])\n .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\n .enum(['none', 'minimal', 'moderate', 'high', 'very_high'])\n .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/dist/step-05.schema.d.ts
CHANGED
|
@@ -1,60 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Step 05 —
|
|
2
|
+
* Step 05 — Psychological Assessment
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Fields: mbtiType, oceanScores
|
|
5
|
+
* Reuses the same MBTI + Big Five pattern from dating-schema.
|
|
5
6
|
*
|
|
6
7
|
* @module udp-schema/step-05
|
|
7
8
|
*/
|
|
8
9
|
import { z } from 'zod';
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
NO: "NO";
|
|
19
|
-
YES_FULLY: "YES_FULLY";
|
|
20
|
-
YES_NEED_INFO: "YES_NEED_INFO";
|
|
21
|
-
MAYBE_LATER: "MAYBE_LATER";
|
|
22
|
-
NO_OTHER_PARTY_PREFERRED: "NO_OTHER_PARTY_PREFERRED";
|
|
23
|
-
}>;
|
|
24
|
-
preferredPartyIfNotUs: z.ZodOptional<z.ZodString>;
|
|
25
|
-
visionChangesYouWillBring: z.ZodString;
|
|
26
|
-
leadershipSkillset: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
-
politicalExposureLevel: z.ZodOptional<z.ZodEnum<{
|
|
28
|
-
VERY_HIGH: "VERY_HIGH";
|
|
29
|
-
MODERATE: "MODERATE";
|
|
30
|
-
BASIC: "BASIC";
|
|
31
|
-
NONE: "NONE";
|
|
32
|
-
}>>;
|
|
33
|
-
publicVisibilityComfort: z.ZodEnum<{
|
|
34
|
-
VERY_COMFORTABLE: "VERY_COMFORTABLE";
|
|
35
|
-
SOMEWHAT_COMFORTABLE: "SOMEWHAT_COMFORTABLE";
|
|
36
|
-
LIMITED_VISIBILITY: "LIMITED_VISIBILITY";
|
|
37
|
-
NOT_COMFORTABLE: "NOT_COMFORTABLE";
|
|
38
|
-
}>;
|
|
39
|
-
leadershipTrainingInterest: z.ZodEnum<{
|
|
40
|
-
NO: "NO";
|
|
41
|
-
YES: "YES";
|
|
42
|
-
MAYBE: "MAYBE";
|
|
43
|
-
}>;
|
|
44
|
-
pastLeadershipRoles: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
NO: "NO";
|
|
46
|
-
YES: "YES";
|
|
47
|
-
}>>;
|
|
48
|
-
previousLeadershipDescription: z.ZodOptional<z.ZodString>;
|
|
49
|
-
leadershipAchievements: z.ZodOptional<z.ZodString>;
|
|
50
|
-
socialInfluenceLevel: z.ZodOptional<z.ZodEnum<{
|
|
51
|
-
UP_TO_10: "UP_TO_10";
|
|
52
|
-
"10_TO_50": "10_TO_50";
|
|
53
|
-
"50_TO_200": "50_TO_200";
|
|
54
|
-
"200_TO_500": "200_TO_500";
|
|
55
|
-
MORE_THAN_500: "MORE_THAN_500";
|
|
56
|
-
}>>;
|
|
57
|
-
whyJoinMovement: z.ZodString;
|
|
10
|
+
export declare const step05PsychologicalSchema: z.ZodObject<{
|
|
11
|
+
mbtiType: z.ZodOptional<z.ZodString>;
|
|
12
|
+
oceanScores: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
openness: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
conscientiousness: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
extraversion: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
agreeableness: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
neuroticism: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
58
19
|
}, z.core.$strip>;
|
|
59
|
-
export type
|
|
20
|
+
export type Step05PsychologicalInput = z.infer<typeof step05PsychologicalSchema>;
|
|
60
21
|
//# sourceMappingURL=step-05.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-05.schema.d.ts","sourceRoot":"","sources":["../src/step-05.schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"step-05.schema.d.ts","sourceRoot":"","sources":["../src/step-05.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB;;;;;;;;;iBAiBpC,CAAC;AAIH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/step-05.schema.js
CHANGED
|
@@ -1,49 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Step 05 —
|
|
2
|
+
* Step 05 — Psychological Assessment
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Fields: mbtiType, oceanScores
|
|
5
|
+
* Reuses the same MBTI + Big Five pattern from dating-schema.
|
|
5
6
|
*
|
|
6
7
|
* @module udp-schema/step-05
|
|
7
8
|
*/
|
|
8
9
|
import { z } from 'zod';
|
|
9
|
-
// ─── Main
|
|
10
|
-
export const
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
.min(1, 'Please briefly describe what changes you want to bring.'),
|
|
26
|
-
/** 3.6 — Which strengths describe you? */
|
|
27
|
-
leadershipSkillset: z.array(z.string()).optional(),
|
|
28
|
-
/** 3.7 — How much exposure do you have to politics / public life? */
|
|
29
|
-
politicalExposureLevel: z.enum(['VERY_HIGH', 'MODERATE', 'BASIC', 'NONE']).optional(),
|
|
30
|
-
/** 3.8 — Are you comfortable with public visibility? */
|
|
31
|
-
publicVisibilityComfort: z.enum(['VERY_COMFORTABLE', 'SOMEWHAT_COMFORTABLE', 'LIMITED_VISIBILITY', 'NOT_COMFORTABLE'], { message: 'Please tell how comfortable you are with public visibility.' }),
|
|
32
|
-
/** 3.9 — Are you interested in leadership mentoring & training? */
|
|
33
|
-
leadershipTrainingInterest: z.enum(['YES', 'NO', 'MAYBE'], {
|
|
34
|
-
message: 'Please select an answer.',
|
|
35
|
-
}),
|
|
36
|
-
/** 3.10 — Have you ever led a team, group or community? */
|
|
37
|
-
pastLeadershipRoles: z.enum(['YES', 'NO']).optional(),
|
|
38
|
-
/** 3.10 — Describe past leadership roles (shown when pastLeadershipRoles == YES) */
|
|
39
|
-
previousLeadershipDescription: z.string().trim().optional(),
|
|
40
|
-
/** 3.10 — Any achievements you are proud of? (shown when pastLeadershipRoles == YES) */
|
|
41
|
-
leadershipAchievements: z.string().trim().optional(),
|
|
42
|
-
/** 3.11 — Approximately how many people follow your opinion? */
|
|
43
|
-
socialInfluenceLevel: z
|
|
44
|
-
.enum(['UP_TO_10', '10_TO_50', '50_TO_200', '200_TO_500', 'MORE_THAN_500'])
|
|
10
|
+
// ─── Main Step 05 Schema ────────────────────────────────────────────────────
|
|
11
|
+
export const step05PsychologicalSchema = z.object({
|
|
12
|
+
/** MBTI type code (e.g., "INTJ", "ENFP") — derived from 4 binary questions */
|
|
13
|
+
mbtiType: z.string().trim().max(4).optional(),
|
|
14
|
+
/**
|
|
15
|
+
* Big Five / OCEAN scores — 5 dimensions, each 1–100.
|
|
16
|
+
* Same structure as dating-schema.
|
|
17
|
+
*/
|
|
18
|
+
oceanScores: z
|
|
19
|
+
.object({
|
|
20
|
+
openness: z.number().min(1).max(100).optional(),
|
|
21
|
+
conscientiousness: z.number().min(1).max(100).optional(),
|
|
22
|
+
extraversion: z.number().min(1).max(100).optional(),
|
|
23
|
+
agreeableness: z.number().min(1).max(100).optional(),
|
|
24
|
+
neuroticism: z.number().min(1).max(100).optional(),
|
|
25
|
+
})
|
|
45
26
|
.optional(),
|
|
46
|
-
/** 3.12 — Why do you want to join this movement? */
|
|
47
|
-
whyJoinMovement: z.string().trim().min(1, 'Please write why you want to join this movement.'),
|
|
48
27
|
});
|
|
49
28
|
//# sourceMappingURL=step-05.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-05.schema.js","sourceRoot":"","sources":["../src/step-05.schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"step-05.schema.js","sourceRoot":"","sources":["../src/step-05.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,8EAA8E;IAC9E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAE7C;;;OAGG;IACH,WAAW,EAAE,CAAC;SACX,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC/C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QACxD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QACnD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QACpD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KACnD,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["/**\n * Step 05 — Psychological Assessment\n *\n * Fields: mbtiType, oceanScores\n * Reuses the same MBTI + Big Five pattern from dating-schema.\n *\n * @module udp-schema/step-05\n */\n\nimport { z } from 'zod';\n\n// ─── Main Step 05 Schema ────────────────────────────────────────────────────\n\nexport const step05PsychologicalSchema = z.object({\n /** MBTI type code (e.g., \"INTJ\", \"ENFP\") — derived from 4 binary questions */\n mbtiType: z.string().trim().max(4).optional(),\n\n /**\n * Big Five / OCEAN scores — 5 dimensions, each 1–100.\n * Same structure as dating-schema.\n */\n oceanScores: z\n .object({\n openness: z.number().min(1).max(100).optional(),\n conscientiousness: z.number().min(1).max(100).optional(),\n extraversion: z.number().min(1).max(100).optional(),\n agreeableness: z.number().min(1).max(100).optional(),\n neuroticism: z.number().min(1).max(100).optional(),\n })\n .optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step05PsychologicalInput = z.infer<typeof step05PsychologicalSchema>;\n"]}
|
package/dist/step-06.schema.d.ts
CHANGED
|
@@ -1,122 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step 06 — Education History
|
|
3
|
+
*
|
|
4
|
+
* KEPT from old step-07 schema. Same structure: highest qualification,
|
|
5
|
+
* Class 10 & 12 details, degree repeaters, certificates, notes.
|
|
6
|
+
*
|
|
7
|
+
* @module udp-schema/step-06
|
|
8
|
+
*/
|
|
1
9
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
FORMER_NRI: "FORMER_NRI";
|
|
27
|
-
}>>;
|
|
28
|
-
internationalMigrationHistory: z.ZodOptional<z.ZodString>;
|
|
29
|
-
maritalStatus: z.ZodEnum<{
|
|
30
|
-
OTHER: "OTHER";
|
|
31
|
-
SINGLE: "SINGLE";
|
|
32
|
-
ENGAGED: "ENGAGED";
|
|
33
|
-
MARRIED: "MARRIED";
|
|
34
|
-
DIVORCED: "DIVORCED";
|
|
35
|
-
WIDOWED: "WIDOWED";
|
|
36
|
-
}>;
|
|
37
|
-
planningMarriageTimeline: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
NOT_THINKING: "NOT_THINKING";
|
|
39
|
-
WITHIN_1_YEAR: "WITHIN_1_YEAR";
|
|
40
|
-
WITHIN_2_YEARS: "WITHIN_2_YEARS";
|
|
41
|
-
AFTER_2_YEARS: "AFTER_2_YEARS";
|
|
42
|
-
ALREADY_MARRIED: "ALREADY_MARRIED";
|
|
43
|
-
}>>;
|
|
44
|
-
lookingForMarriagePartner: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
NO: "NO";
|
|
46
|
-
YES_ACTIVE: "YES_ACTIVE";
|
|
47
|
-
YES_CASUAL: "YES_CASUAL";
|
|
48
|
-
FAMILY_LOOKING: "FAMILY_LOOKING";
|
|
49
|
-
}>>;
|
|
50
|
-
familyStructureType: z.ZodEnum<{
|
|
51
|
-
NUCLEAR: "NUCLEAR";
|
|
52
|
-
JOINT: "JOINT";
|
|
53
|
-
EXTENDED: "EXTENDED";
|
|
54
|
-
SINGLE_PERSON: "SINGLE_PERSON";
|
|
55
|
-
}>;
|
|
56
|
-
householdSize: z.ZodNumber;
|
|
57
|
-
housingType: z.ZodEnum<{
|
|
10
|
+
export declare const degreeEntrySchema: z.ZodObject<{
|
|
11
|
+
degreeName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
13
|
+
university: z.ZodOptional<z.ZodString>;
|
|
14
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
15
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
16
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
17
|
+
isCurrentlyStudying: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const certificateEntrySchema: z.ZodObject<{
|
|
20
|
+
certificateName: z.ZodOptional<z.ZodString>;
|
|
21
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
22
|
+
yearOfCompletion: z.ZodOptional<z.ZodString>;
|
|
23
|
+
fieldOrSubject: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const step06EducationSchema: z.ZodObject<{
|
|
26
|
+
highestQualification: z.ZodEnum<{
|
|
27
|
+
CLASS_10: "CLASS_10";
|
|
28
|
+
CLASS_12: "CLASS_12";
|
|
29
|
+
DIPLOMA: "DIPLOMA";
|
|
30
|
+
GRADUATION: "GRADUATION";
|
|
31
|
+
POST_GRAD: "POST_GRAD";
|
|
32
|
+
PHD: "PHD";
|
|
33
|
+
POST_DOCTORATE: "POST_DOCTORATE";
|
|
58
34
|
OTHER: "OTHER";
|
|
59
|
-
KUTCHA: "KUTCHA";
|
|
60
|
-
SEMI_PUCCA: "SEMI_PUCCA";
|
|
61
|
-
PUCCA: "PUCCA";
|
|
62
|
-
APARTMENT: "APARTMENT";
|
|
63
|
-
}>;
|
|
64
|
-
familyMemberSettledElsewhere: z.ZodOptional<z.ZodEnum<{
|
|
65
|
-
NO: "NO";
|
|
66
|
-
NOT_SURE: "NOT_SURE";
|
|
67
|
-
YES: "YES";
|
|
68
|
-
}>>;
|
|
69
|
-
bplRationCardHolder: z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
NO: "NO";
|
|
71
|
-
NOT_SURE: "NOT_SURE";
|
|
72
|
-
YES: "YES";
|
|
73
|
-
}>>;
|
|
74
|
-
hasLifeInsurance: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
NO: "NO";
|
|
76
|
-
NOT_SURE: "NOT_SURE";
|
|
77
|
-
YES: "YES";
|
|
78
|
-
}>>;
|
|
79
|
-
lifeInsuranceDetails: z.ZodOptional<z.ZodString>;
|
|
80
|
-
annualPersonalIncomeRange: z.ZodEnum<{
|
|
81
|
-
PREFER_NOT_SAY: "PREFER_NOT_SAY";
|
|
82
|
-
NO_INCOME: "NO_INCOME";
|
|
83
|
-
BELOW_1L: "BELOW_1L";
|
|
84
|
-
"1_2L": "1_2L";
|
|
85
|
-
"2_3L": "2_3L";
|
|
86
|
-
"3_5L": "3_5L";
|
|
87
|
-
"5_10L": "5_10L";
|
|
88
|
-
ABOVE_10L: "ABOVE_10L";
|
|
89
|
-
}>;
|
|
90
|
-
annualHouseholdIncomeRange: z.ZodEnum<{
|
|
91
|
-
PREFER_NOT_SAY: "PREFER_NOT_SAY";
|
|
92
|
-
BELOW_1L: "BELOW_1L";
|
|
93
|
-
"1_2L": "1_2L";
|
|
94
|
-
"2_3L": "2_3L";
|
|
95
|
-
"3_5L": "3_5L";
|
|
96
|
-
"5_10L": "5_10L";
|
|
97
|
-
"10_20L": "10_20L";
|
|
98
|
-
ABOVE_20L: "ABOVE_20L";
|
|
99
|
-
}>;
|
|
100
|
-
digitalAccess: z.ZodArray<z.ZodString>;
|
|
101
|
-
digitalSkillLevel: z.ZodEnum<{
|
|
102
|
-
BASIC: "BASIC";
|
|
103
|
-
CANT_USE_SMARTPHONE: "CANT_USE_SMARTPHONE";
|
|
104
|
-
COMFORTABLE_APPS_UPI: "COMFORTABLE_APPS_UPI";
|
|
105
|
-
ADVANCED_TOOLS_CONTENT: "ADVANCED_TOOLS_CONTENT";
|
|
106
|
-
}>;
|
|
107
|
-
literacyLevel: z.ZodEnum<{
|
|
108
|
-
CANT_READ_WRITE: "CANT_READ_WRITE";
|
|
109
|
-
CAN_READ_ONLY: "CAN_READ_ONLY";
|
|
110
|
-
READ_WRITE_BASIC: "READ_WRITE_BASIC";
|
|
111
|
-
FLUENT_ONE_LANGUAGE: "FLUENT_ONE_LANGUAGE";
|
|
112
35
|
}>;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}>>;
|
|
36
|
+
education10th: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
board: z.ZodOptional<z.ZodString>;
|
|
38
|
+
schoolName: z.ZodOptional<z.ZodString>;
|
|
39
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
40
|
+
subjects: z.ZodOptional<z.ZodString>;
|
|
41
|
+
marksObtained: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
education12th: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
45
|
+
boardOrUniversity: z.ZodOptional<z.ZodString>;
|
|
46
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
47
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
48
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
diplomas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
degreeName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
53
|
+
university: z.ZodOptional<z.ZodString>;
|
|
54
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
55
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
56
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
57
|
+
isCurrentlyStudying: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
graduations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
degreeName: z.ZodOptional<z.ZodString>;
|
|
61
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
62
|
+
university: z.ZodOptional<z.ZodString>;
|
|
63
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
64
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
65
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
66
|
+
isCurrentlyStudying: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
postGraduations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
degreeName: z.ZodOptional<z.ZodString>;
|
|
70
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
71
|
+
university: z.ZodOptional<z.ZodString>;
|
|
72
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
73
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
74
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
75
|
+
isCurrentlyStudying: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
77
|
+
doctorates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
degreeName: z.ZodOptional<z.ZodString>;
|
|
79
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
80
|
+
university: z.ZodOptional<z.ZodString>;
|
|
81
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
82
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
83
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
84
|
+
isCurrentlyStudying: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
postDoctorates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
|
+
degreeName: z.ZodOptional<z.ZodString>;
|
|
88
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
89
|
+
university: z.ZodOptional<z.ZodString>;
|
|
90
|
+
yearOfPassing: z.ZodOptional<z.ZodString>;
|
|
91
|
+
courseOrStream: z.ZodOptional<z.ZodString>;
|
|
92
|
+
marksOrGrade: z.ZodOptional<z.ZodString>;
|
|
93
|
+
isCurrentlyStudying: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
otherCertificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
certificateName: z.ZodOptional<z.ZodString>;
|
|
97
|
+
institutionName: z.ZodOptional<z.ZodString>;
|
|
98
|
+
yearOfCompletion: z.ZodOptional<z.ZodString>;
|
|
99
|
+
fieldOrSubject: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>>>;
|
|
101
|
+
educationNotes: z.ZodOptional<z.ZodString>;
|
|
120
102
|
}, z.core.$strip>;
|
|
121
|
-
export type
|
|
103
|
+
export type DegreeEntryInput = z.infer<typeof degreeEntrySchema>;
|
|
104
|
+
export type CertificateEntryInput = z.infer<typeof certificateEntrySchema>;
|
|
105
|
+
export type Step06EducationInput = z.infer<typeof step06EducationSchema>;
|
|
122
106
|
//# sourceMappingURL=step-06.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-06.schema.d.ts","sourceRoot":"","sources":["../src/step-06.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"step-06.schema.d.ts","sourceRoot":"","sources":["../src/step-06.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0DhC,CAAC;AAIH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|