udp-schema 0.3.0 → 1.1.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 +18 -31
- package/dist/field-helpers.d.ts.map +1 -1
- package/dist/field-helpers.js +56 -51
- package/dist/field-helpers.js.map +1 -1
- package/dist/field-meta.d.ts +14 -34
- package/dist/field-meta.d.ts.map +1 -1
- package/dist/field-meta.js +13 -1991
- package/dist/field-meta.js.map +1 -1
- package/dist/index.d.ts +19 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -35
- 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/profile-fields/01-profile.d.ts +264 -0
- package/dist/profile-fields/01-profile.d.ts.map +1 -0
- package/dist/profile-fields/01-profile.js +113 -0
- package/dist/profile-fields/01-profile.js.map +1 -0
- package/dist/profile-fields/02-political.d.ts +133 -0
- package/dist/profile-fields/02-political.d.ts.map +1 -0
- package/dist/profile-fields/02-political.js +42 -0
- package/dist/profile-fields/02-political.js.map +1 -0
- package/dist/profile-fields/03-electoral.d.ts +46 -0
- package/dist/profile-fields/03-electoral.d.ts.map +1 -0
- package/dist/profile-fields/03-electoral.js +21 -0
- package/dist/profile-fields/03-electoral.js.map +1 -0
- package/dist/profile-fields/04-leadership.d.ts +34 -0
- package/dist/profile-fields/04-leadership.d.ts.map +1 -0
- package/dist/profile-fields/04-leadership.js +22 -0
- package/dist/profile-fields/04-leadership.js.map +1 -0
- package/dist/profile-fields/05-psychological.d.ts +58 -0
- package/dist/profile-fields/05-psychological.d.ts.map +1 -0
- package/dist/profile-fields/05-psychological.js +20 -0
- package/dist/profile-fields/05-psychological.js.map +1 -0
- package/dist/profile-fields/06-education.d.ts +28 -0
- package/dist/profile-fields/06-education.d.ts.map +1 -0
- package/dist/profile-fields/06-education.js +23 -0
- package/dist/profile-fields/06-education.js.map +1 -0
- package/dist/profile-fields/07-employment.d.ts +75 -0
- package/dist/profile-fields/07-employment.d.ts.map +1 -0
- package/dist/profile-fields/07-employment.js +32 -0
- package/dist/profile-fields/07-employment.js.map +1 -0
- package/dist/profile-fields/08-neurodiversity.d.ts +100 -0
- package/dist/profile-fields/08-neurodiversity.d.ts.map +1 -0
- package/dist/profile-fields/08-neurodiversity.js +39 -0
- package/dist/profile-fields/08-neurodiversity.js.map +1 -0
- package/dist/profile-fields/09-health.d.ts +89 -0
- package/dist/profile-fields/09-health.d.ts.map +1 -0
- package/dist/profile-fields/09-health.js +38 -0
- package/dist/profile-fields/09-health.js.map +1 -0
- package/dist/profile-fields/10-worldview.d.ts +75 -0
- package/dist/profile-fields/10-worldview.d.ts.map +1 -0
- package/dist/profile-fields/10-worldview.js +41 -0
- package/dist/profile-fields/10-worldview.js.map +1 -0
- package/dist/profile-fields/11-residence.d.ts +3 -0
- package/dist/profile-fields/11-residence.d.ts.map +1 -0
- package/dist/profile-fields/11-residence.js +11 -0
- package/dist/profile-fields/11-residence.js.map +1 -0
- package/dist/profile-fields/12-household.d.ts +90 -0
- package/dist/profile-fields/12-household.d.ts.map +1 -0
- package/dist/profile-fields/12-household.js +37 -0
- package/dist/profile-fields/12-household.js.map +1 -0
- package/dist/profile-fields/index.d.ts +22 -0
- package/dist/profile-fields/index.d.ts.map +1 -0
- package/dist/profile-fields/index.js +47 -0
- package/dist/profile-fields/index.js.map +1 -0
- package/dist/profile-fields/types.d.ts +66 -0
- package/dist/profile-fields/types.d.ts.map +1 -0
- package/dist/profile-fields/types.js +8 -0
- package/dist/profile-fields/types.js.map +1 -0
- package/dist/progress-fields.d.ts +21 -3
- package/dist/progress-fields.d.ts.map +1 -1
- package/dist/progress-fields.js +97 -94
- 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 +17 -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 +44 -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 +37 -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 +29 -48
- 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 +28 -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 +57 -133
- package/dist/step-12.schema.js.map +1 -1
- package/package.json +1 -1
package/dist/step-08.schema.js
CHANGED
|
@@ -1,55 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step 08 — Neurodiversity
|
|
3
|
+
*
|
|
4
|
+
* Fields: neurodiverseIdentity, conditions, sensoryPreferences,
|
|
5
|
+
* learningStyle, communicationPreference, supportNeeds
|
|
6
|
+
*
|
|
7
|
+
* @module udp-schema/step-08
|
|
8
|
+
*/
|
|
1
9
|
import { z } from 'zod';
|
|
2
|
-
// ─── Step 08
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'
|
|
13
|
-
'SELF_EMPLOYED',
|
|
14
|
-
'BUSINESS_OWNER',
|
|
15
|
-
'STUDENT',
|
|
16
|
-
'HOMEMAKER',
|
|
17
|
-
'UNEMPLOYED_SEEKING',
|
|
18
|
-
'UNEMPLOYED_NOT_SEEKING',
|
|
19
|
-
'RETIRED',
|
|
20
|
-
], { message: 'Please select your employment status.' }),
|
|
21
|
-
// ── 8.2 Employed Since ────────────────────────────────────────────────────
|
|
22
|
-
/** Month/year since employed (conditional: working statuses only) */
|
|
23
|
-
employedSince: z.string().trim().optional(),
|
|
24
|
-
// ── 8.3 Job / Occupation Type ─────────────────────────────────────────────
|
|
25
|
-
/** Main job title or occupation description */
|
|
26
|
-
jobOccupationType: z.string().trim().optional(),
|
|
27
|
-
// ── 8.4 Work Shift ────────────────────────────────────────────────────────
|
|
28
|
-
/** Current work shift */
|
|
29
|
-
currentWorkShift: z
|
|
30
|
-
.enum(['MORNING', 'EVENING', 'NIGHT', 'ROTATIONAL', 'FLEXIBLE', 'NOT_APPLICABLE'])
|
|
10
|
+
// ─── Main Step 08 Schema ────────────────────────────────────────────────────
|
|
11
|
+
export const step08NeurodiversitySchema = z.object({
|
|
12
|
+
/** Do you identify as neurodiverse? */
|
|
13
|
+
neurodiverseIdentity: z.enum(['yes', 'no', 'exploring', 'prefer_not_to_say']).optional(),
|
|
14
|
+
/** Specific conditions (multi-select string array) */
|
|
15
|
+
conditions: z.array(z.string().trim()).optional(),
|
|
16
|
+
/** Sensory preferences (multi-select string array) */
|
|
17
|
+
sensoryPreferences: z.array(z.string().trim()).optional(),
|
|
18
|
+
/** Learning style preference */
|
|
19
|
+
learningStyle: z
|
|
20
|
+
.enum(['visual', 'auditory', 'kinesthetic', 'reading_writing', 'mixed'])
|
|
31
21
|
.optional(),
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
/** Preferred / desired shift */
|
|
35
|
-
desiredShift: z
|
|
36
|
-
.enum(['MORNING', 'EVENING', 'NIGHT', 'ROTATIONAL_OK', 'FLEXIBLE', 'NO_PREFERENCE'])
|
|
37
|
-
.optional(),
|
|
38
|
-
// ── 8.5 Income & Work Summary ─────────────────────────────────────────────
|
|
39
|
-
/** Personal monthly income range (optional — annual captured in step 6) */
|
|
40
|
-
personalIncomeRange: z
|
|
22
|
+
/** Communication preference */
|
|
23
|
+
communicationPreference: z
|
|
41
24
|
.enum([
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'NO_INCOME',
|
|
49
|
-
'PREFER_NOT_SAY',
|
|
25
|
+
'face_to_face',
|
|
26
|
+
'written',
|
|
27
|
+
'visual_aids',
|
|
28
|
+
'phone_calls',
|
|
29
|
+
'small_groups_only',
|
|
30
|
+
'prefer_not_to_say',
|
|
50
31
|
])
|
|
51
32
|
.optional(),
|
|
52
|
-
/**
|
|
53
|
-
|
|
33
|
+
/** Support needs (multi-select string array) */
|
|
34
|
+
supportNeeds: z.array(z.string().trim()).optional(),
|
|
54
35
|
});
|
|
55
36
|
//# sourceMappingURL=step-08.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-08.schema.js","sourceRoot":"","sources":["../src/step-08.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"step-08.schema.js","sourceRoot":"","sources":["../src/step-08.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,uCAAuC;IACvC,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAExF,sDAAsD;IACtD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEjD,sDAAsD;IACtD,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEzD,gCAAgC;IAChC,aAAa,EAAE,CAAC;SACb,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;SACvE,QAAQ,EAAE;IAEb,+BAA+B;IAC/B,uBAAuB,EAAE,CAAC;SACvB,IAAI,CAAC;QACJ,cAAc;QACd,SAAS;QACT,aAAa;QACb,aAAa;QACb,mBAAmB;QACnB,mBAAmB;KACpB,CAAC;SACD,QAAQ,EAAE;IAEb,gDAAgD;IAChD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC","sourcesContent":["/**\n * Step 08 — Neurodiversity\n *\n * Fields: neurodiverseIdentity, conditions, sensoryPreferences,\n * learningStyle, communicationPreference, supportNeeds\n *\n * @module udp-schema/step-08\n */\n\nimport { z } from 'zod';\n\n// ─── Main Step 08 Schema ────────────────────────────────────────────────────\n\nexport const step08NeurodiversitySchema = z.object({\n /** Do you identify as neurodiverse? */\n neurodiverseIdentity: z.enum(['yes', 'no', 'exploring', 'prefer_not_to_say']).optional(),\n\n /** Specific conditions (multi-select string array) */\n conditions: z.array(z.string().trim()).optional(),\n\n /** Sensory preferences (multi-select string array) */\n sensoryPreferences: z.array(z.string().trim()).optional(),\n\n /** Learning style preference */\n learningStyle: z\n .enum(['visual', 'auditory', 'kinesthetic', 'reading_writing', 'mixed'])\n .optional(),\n\n /** Communication preference */\n communicationPreference: z\n .enum([\n 'face_to_face',\n 'written',\n 'visual_aids',\n 'phone_calls',\n 'small_groups_only',\n 'prefer_not_to_say',\n ])\n .optional(),\n\n /** Support needs (multi-select string array) */\n supportNeeds: z.array(z.string().trim()).optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step08NeurodiversityInput = z.infer<typeof step08NeurodiversitySchema>;\n"]}
|
package/dist/step-09.schema.d.ts
CHANGED
|
@@ -1,88 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step 09 — Health & Lifestyle
|
|
3
|
+
*
|
|
4
|
+
* Fields: disabilityStatus, generalHealth, healthInsurance,
|
|
5
|
+
* diet, physicalActivity, sleepQuality, substanceUse, stressLevel
|
|
6
|
+
*
|
|
7
|
+
* @module udp-schema/step-09
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
executiveFunctionChallenges: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
-
NONE: "NONE";
|
|
43
|
-
PLANNING: "PLANNING";
|
|
44
|
-
TIME_MANAGEMENT: "TIME_MANAGEMENT";
|
|
45
|
-
TASK_INITIATION: "TASK_INITIATION";
|
|
46
|
-
TASK_SWITCHING: "TASK_SWITCHING";
|
|
47
|
-
EMOTIONAL_REGULATION: "EMOTIONAL_REGULATION";
|
|
48
|
-
WORKING_MEMORY: "WORKING_MEMORY";
|
|
49
|
-
ORGANIZATION: "ORGANIZATION";
|
|
50
|
-
IMPULSE_CONTROL: "IMPULSE_CONTROL";
|
|
51
|
-
}>>>;
|
|
52
|
-
learningStylePreference: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
53
|
-
VISUAL: "VISUAL";
|
|
54
|
-
AUDITORY: "AUDITORY";
|
|
55
|
-
READING_WRITING: "READING_WRITING";
|
|
56
|
-
HANDS_ON: "HANDS_ON";
|
|
57
|
-
ONE_TO_ONE: "ONE_TO_ONE";
|
|
58
|
-
GROUP_DISCUSSION: "GROUP_DISCUSSION";
|
|
59
|
-
STORYTELLING: "STORYTELLING";
|
|
60
|
-
REPETITION_PRACTICE: "REPETITION_PRACTICE";
|
|
61
|
-
}>>>;
|
|
62
|
-
communicationPreferences: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
63
|
-
PREFER_WRITTEN: "PREFER_WRITTEN";
|
|
64
|
-
PREFER_VOICE: "PREFER_VOICE";
|
|
65
|
-
NEED_MORE_TIME: "NEED_MORE_TIME";
|
|
66
|
-
PREFER_STEP_BY_STEP: "PREFER_STEP_BY_STEP";
|
|
67
|
-
PREFER_EXAMPLES: "PREFER_EXAMPLES";
|
|
68
|
-
PREFER_SHORT_MEETINGS: "PREFER_SHORT_MEETINGS";
|
|
69
|
-
PREFER_REMINDERS: "PREFER_REMINDERS";
|
|
70
|
-
PREFER_VISUAL_AIDS: "PREFER_VISUAL_AIDS";
|
|
71
|
-
PREFER_DIRECT_LANGUAGE: "PREFER_DIRECT_LANGUAGE";
|
|
72
|
-
}>>>;
|
|
73
|
-
workplaceStudyAccommodations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
74
|
-
QUIET_SPACE: "QUIET_SPACE";
|
|
75
|
-
FLEXIBLE_DEADLINES: "FLEXIBLE_DEADLINES";
|
|
76
|
-
WRITTEN_INSTRUCTIONS: "WRITTEN_INSTRUCTIONS";
|
|
77
|
-
EXTRA_TIME: "EXTRA_TIME";
|
|
78
|
-
FREQUENT_BREAKS: "FREQUENT_BREAKS";
|
|
79
|
-
REDUCED_DISTRACTIONS: "REDUCED_DISTRACTIONS";
|
|
80
|
-
ASSISTIVE_TECHNOLOGY: "ASSISTIVE_TECHNOLOGY";
|
|
81
|
-
CLEAR_EXPECTATIONS: "CLEAR_EXPECTATIONS";
|
|
82
|
-
REGULAR_CHECK_INS: "REGULAR_CHECK_INS";
|
|
83
|
-
NONE_NEEDED: "NONE_NEEDED";
|
|
84
|
-
}>>>;
|
|
85
|
-
neurodiversitySupportNeeds: z.ZodOptional<z.ZodString>;
|
|
10
|
+
export declare const step09HealthSchema: z.ZodObject<{
|
|
11
|
+
disabilityStatus: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
generalHealth: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
14
|
+
excellent: "excellent";
|
|
15
|
+
good: "good";
|
|
16
|
+
fair: "fair";
|
|
17
|
+
poor: "poor";
|
|
18
|
+
}>>;
|
|
19
|
+
healthInsurance: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
no: "no";
|
|
21
|
+
yes_government: "yes_government";
|
|
22
|
+
yes_private: "yes_private";
|
|
23
|
+
yes_employer: "yes_employer";
|
|
24
|
+
ayushman_bharat: "ayushman_bharat";
|
|
25
|
+
}>>;
|
|
26
|
+
diet: z.ZodOptional<z.ZodString>;
|
|
27
|
+
physicalActivity: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
rarely: "rarely";
|
|
29
|
+
never: "never";
|
|
30
|
+
daily: "daily";
|
|
31
|
+
few_times_week: "few_times_week";
|
|
32
|
+
weekly: "weekly";
|
|
33
|
+
}>>;
|
|
34
|
+
sleepQuality: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
average: "average";
|
|
36
|
+
excellent: "excellent";
|
|
37
|
+
good: "good";
|
|
38
|
+
poor: "poor";
|
|
39
|
+
irregular: "irregular";
|
|
40
|
+
}>>;
|
|
41
|
+
substanceUse: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
+
stressLevel: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
moderate: "moderate";
|
|
44
|
+
high: "high";
|
|
45
|
+
very_high: "very_high";
|
|
46
|
+
low: "low";
|
|
47
|
+
very_low: "very_low";
|
|
48
|
+
}>>;
|
|
86
49
|
}, z.core.$strip>;
|
|
87
|
-
export type
|
|
50
|
+
export type Step09HealthInput = z.infer<typeof step09HealthSchema>;
|
|
88
51
|
//# sourceMappingURL=step-09.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-09.schema.d.ts","sourceRoot":"","sources":["../src/step-09.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"step-09.schema.d.ts","sourceRoot":"","sources":["../src/step-09.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0B7B,CAAC;AAIH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/step-09.schema.js
CHANGED
|
@@ -1,123 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step 09 — Health & Lifestyle
|
|
3
|
+
*
|
|
4
|
+
* Fields: disabilityStatus, generalHealth, healthInsurance,
|
|
5
|
+
* diet, physicalActivity, sleepQuality, substanceUse, stressLevel
|
|
6
|
+
*
|
|
7
|
+
* @module udp-schema/step-09
|
|
8
|
+
*/
|
|
1
9
|
import { z } from 'zod';
|
|
2
|
-
// ───
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'LOUD_NOISE',
|
|
23
|
-
'BRIGHT_LIGHT',
|
|
24
|
-
'STRONG_SMELLS',
|
|
25
|
-
'TOUCH',
|
|
26
|
-
'CROWDS',
|
|
27
|
-
'TEMPERATURE',
|
|
28
|
-
'TEXTURE_FOOD',
|
|
29
|
-
'TEXTURE_CLOTHING',
|
|
30
|
-
'OTHER',
|
|
31
|
-
'NONE',
|
|
32
|
-
];
|
|
33
|
-
export const LEARNING_STYLES = [
|
|
34
|
-
'VISUAL',
|
|
35
|
-
'AUDITORY',
|
|
36
|
-
'READING_WRITING',
|
|
37
|
-
'HANDS_ON',
|
|
38
|
-
'ONE_TO_ONE',
|
|
39
|
-
'GROUP_DISCUSSION',
|
|
40
|
-
'STORYTELLING',
|
|
41
|
-
'REPETITION_PRACTICE',
|
|
42
|
-
];
|
|
43
|
-
export const COMMUNICATION_PREFERENCES = [
|
|
44
|
-
'PREFER_WRITTEN',
|
|
45
|
-
'PREFER_VOICE',
|
|
46
|
-
'NEED_MORE_TIME',
|
|
47
|
-
'PREFER_STEP_BY_STEP',
|
|
48
|
-
'PREFER_EXAMPLES',
|
|
49
|
-
'PREFER_SHORT_MEETINGS',
|
|
50
|
-
'PREFER_REMINDERS',
|
|
51
|
-
'PREFER_VISUAL_AIDS',
|
|
52
|
-
'PREFER_DIRECT_LANGUAGE',
|
|
53
|
-
];
|
|
54
|
-
export const EXECUTIVE_FUNCTION_CHALLENGES = [
|
|
55
|
-
'PLANNING',
|
|
56
|
-
'TIME_MANAGEMENT',
|
|
57
|
-
'TASK_INITIATION',
|
|
58
|
-
'TASK_SWITCHING',
|
|
59
|
-
'EMOTIONAL_REGULATION',
|
|
60
|
-
'WORKING_MEMORY',
|
|
61
|
-
'ORGANIZATION',
|
|
62
|
-
'IMPULSE_CONTROL',
|
|
63
|
-
'NONE',
|
|
64
|
-
];
|
|
65
|
-
export const WORKPLACE_STUDY_ACCOMMODATIONS = [
|
|
66
|
-
'QUIET_SPACE',
|
|
67
|
-
'FLEXIBLE_DEADLINES',
|
|
68
|
-
'WRITTEN_INSTRUCTIONS',
|
|
69
|
-
'EXTRA_TIME',
|
|
70
|
-
'FREQUENT_BREAKS',
|
|
71
|
-
'REDUCED_DISTRACTIONS',
|
|
72
|
-
'ASSISTIVE_TECHNOLOGY',
|
|
73
|
-
'CLEAR_EXPECTATIONS',
|
|
74
|
-
'REGULAR_CHECK_INS',
|
|
75
|
-
'NONE_NEEDED',
|
|
76
|
-
];
|
|
77
|
-
// ─── Schema ───────────────────────────────────────────────────────────────────
|
|
78
|
-
export const step09NeurodiversitySchema = z.object({
|
|
79
|
-
/**
|
|
80
|
-
* 9.1 Self-identification — required.
|
|
81
|
-
* Anchors whether follow-up condition / source fields are shown.
|
|
82
|
-
*/
|
|
83
|
-
neurodivergentSelfIdentification: z.enum(NEURODIVERGENT_SELF_ID, {
|
|
84
|
-
message: 'Please select an option.',
|
|
85
|
-
}),
|
|
86
|
-
/**
|
|
87
|
-
* 9.2 Conditions — shown when self-ID is YES_DIAGNOSED, YES_SELF_IDENTIFIED, or NOT_SURE.
|
|
88
|
-
* Multi-select.
|
|
89
|
-
*/
|
|
90
|
-
neurodivergentConditions: z.array(z.enum(NEURODIVERGENT_CONDITIONS)).optional(),
|
|
91
|
-
/**
|
|
92
|
-
* 9.3 Diagnosis source — e.g. "school psychologist", "self-research", "therapist".
|
|
93
|
-
*/
|
|
94
|
-
neurodiversityDiagnosisSource: z.string().trim().optional(),
|
|
95
|
-
/**
|
|
96
|
-
* 9.4 Sensory sensitivities — multi-select.
|
|
97
|
-
* NONE is exclusive; selecting it clears the rest (enforced in UI).
|
|
98
|
-
*/
|
|
99
|
-
sensorySensitivities: z.array(z.enum(SENSORY_SENSITIVITIES)).optional(),
|
|
100
|
-
/**
|
|
101
|
-
* 9.5 Executive function challenges — multi-select (improved from original spec).
|
|
102
|
-
* Highly diagnostic for ADHD/ASD support planning.
|
|
103
|
-
*/
|
|
104
|
-
executiveFunctionChallenges: z.array(z.enum(EXECUTIVE_FUNCTION_CHALLENGES)).optional(),
|
|
105
|
-
/**
|
|
106
|
-
* 9.6 Learning style preference — multi-select.
|
|
107
|
-
*/
|
|
108
|
-
learningStylePreference: z.array(z.enum(LEARNING_STYLES)).optional(),
|
|
109
|
-
/**
|
|
110
|
-
* 9.7 Communication preferences — multi-select.
|
|
111
|
-
*/
|
|
112
|
-
communicationPreferences: z.array(z.enum(COMMUNICATION_PREFERENCES)).optional(),
|
|
113
|
-
/**
|
|
114
|
-
* 9.8 Workplace / study accommodations — multi-select (added beyond original spec).
|
|
115
|
-
* Actionable data for HR, educators, and support teams.
|
|
116
|
-
*/
|
|
117
|
-
workplaceStudyAccommodations: z.array(z.enum(WORKPLACE_STUDY_ACCOMMODATIONS)).optional(),
|
|
118
|
-
/**
|
|
119
|
-
* 9.9 Free-text support note — open-ended.
|
|
120
|
-
*/
|
|
121
|
-
neurodiversitySupportNeeds: z.string().trim().optional(),
|
|
10
|
+
// ─── Main Step 09 Schema ────────────────────────────────────────────────────
|
|
11
|
+
export const step09HealthSchema = z.object({
|
|
12
|
+
/** Disability status (multi-select string array) */
|
|
13
|
+
disabilityStatus: z.array(z.string().trim()).optional(),
|
|
14
|
+
/** General health self-assessment */
|
|
15
|
+
generalHealth: z.enum(['excellent', 'good', 'fair', 'poor', 'prefer_not_to_say']).optional(),
|
|
16
|
+
/** Health insurance status */
|
|
17
|
+
healthInsurance: z
|
|
18
|
+
.enum(['yes_government', 'yes_private', 'yes_employer', 'no', 'ayushman_bharat'])
|
|
19
|
+
.optional(),
|
|
20
|
+
/** Diet — uses dating-schema diet option values */
|
|
21
|
+
diet: z.string().trim().optional(),
|
|
22
|
+
/** Physical activity level */
|
|
23
|
+
physicalActivity: z.enum(['daily', 'few_times_week', 'weekly', 'rarely', 'never']).optional(),
|
|
24
|
+
/** Sleep quality */
|
|
25
|
+
sleepQuality: z.enum(['excellent', 'good', 'average', 'poor', 'irregular']).optional(),
|
|
26
|
+
/** Substance use (multi-select string array) */
|
|
27
|
+
substanceUse: z.array(z.string().trim()).optional(),
|
|
28
|
+
/** Stress level */
|
|
29
|
+
stressLevel: z.enum(['very_low', 'low', 'moderate', 'high', 'very_high']).optional(),
|
|
122
30
|
});
|
|
123
31
|
//# sourceMappingURL=step-09.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-09.schema.js","sourceRoot":"","sources":["../src/step-09.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"step-09.schema.js","sourceRoot":"","sources":["../src/step-09.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,oDAAoD;IACpD,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEvD,qCAAqC;IACrC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAE5F,8BAA8B;IAC9B,eAAe,EAAE,CAAC;SACf,IAAI,CAAC,CAAC,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;SAChF,QAAQ,EAAE;IAEb,mDAAmD;IACnD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAElC,8BAA8B;IAC9B,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IAE7F,oBAAoB;IACpB,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEtF,gDAAgD;IAChD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAEnD,mBAAmB;IACnB,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE;CACrF,CAAC,CAAC","sourcesContent":["/**\n * Step 09 — Health & Lifestyle\n *\n * Fields: disabilityStatus, generalHealth, healthInsurance,\n * diet, physicalActivity, sleepQuality, substanceUse, stressLevel\n *\n * @module udp-schema/step-09\n */\n\nimport { z } from 'zod';\n\n// ─── Main Step 09 Schema ────────────────────────────────────────────────────\n\nexport const step09HealthSchema = z.object({\n /** Disability status (multi-select string array) */\n disabilityStatus: z.array(z.string().trim()).optional(),\n\n /** General health self-assessment */\n generalHealth: z.enum(['excellent', 'good', 'fair', 'poor', 'prefer_not_to_say']).optional(),\n\n /** Health insurance status */\n healthInsurance: z\n .enum(['yes_government', 'yes_private', 'yes_employer', 'no', 'ayushman_bharat'])\n .optional(),\n\n /** Diet — uses dating-schema diet option values */\n diet: z.string().trim().optional(),\n\n /** Physical activity level */\n physicalActivity: z.enum(['daily', 'few_times_week', 'weekly', 'rarely', 'never']).optional(),\n\n /** Sleep quality */\n sleepQuality: z.enum(['excellent', 'good', 'average', 'poor', 'irregular']).optional(),\n\n /** Substance use (multi-select string array) */\n substanceUse: z.array(z.string().trim()).optional(),\n\n /** Stress level */\n stressLevel: z.enum(['very_low', 'low', 'moderate', 'high', 'very_high']).optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step09HealthInput = z.infer<typeof step09HealthSchema>;\n"]}
|
package/dist/step-10.schema.d.ts
CHANGED
|
@@ -1,93 +1,39 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* All 16 MBTI personality types plus NOT_SURE.
|
|
4
|
-
* Using a chip selector rather than free text prevents typos and enables analytics.
|
|
5
|
-
*/
|
|
6
|
-
export declare const MBTI_TYPES: readonly ["INTJ", "INTP", "ENTJ", "ENTP", "INFJ", "INFP", "ENFJ", "ENFP", "ISTJ", "ISFJ", "ESTJ", "ESFJ", "ISTP", "ISFP", "ESTP", "ESFP", "NOT_SURE"];
|
|
7
1
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
2
|
+
* Step 10 — World View & Experience
|
|
3
|
+
*
|
|
4
|
+
* Fields: viewOnAnimalCruelty, viewOnLgbtqStatements, viewOnLgbtqOpinion,
|
|
5
|
+
* viewOnTransgenderInclusion, viewOnTransgenderOpinion,
|
|
6
|
+
* facingCasteDiscrimination, casteDiscriminationPlaces, viewOnGenderEquality
|
|
7
|
+
*
|
|
8
|
+
* @module udp-schema/step-10
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare const ASSESSMENT_ACCURACY_RATINGS: readonly ["NOT_ACCURATE", "SOMEWHAT_ACCURATE", "MOSTLY_ACCURATE", "VERY_ACCURATE"];
|
|
20
|
-
export declare const step10PsychologicalSchema: z.ZodObject<{
|
|
21
|
-
mbtiType: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
NOT_SURE: "NOT_SURE";
|
|
23
|
-
INTJ: "INTJ";
|
|
24
|
-
INTP: "INTP";
|
|
25
|
-
ENTJ: "ENTJ";
|
|
26
|
-
ENTP: "ENTP";
|
|
27
|
-
INFJ: "INFJ";
|
|
28
|
-
INFP: "INFP";
|
|
29
|
-
ENFJ: "ENFJ";
|
|
30
|
-
ENFP: "ENFP";
|
|
31
|
-
ISTJ: "ISTJ";
|
|
32
|
-
ISFJ: "ISFJ";
|
|
33
|
-
ESTJ: "ESTJ";
|
|
34
|
-
ESFJ: "ESFJ";
|
|
35
|
-
ISTP: "ISTP";
|
|
36
|
-
ISFP: "ISFP";
|
|
37
|
-
ESTP: "ESTP";
|
|
38
|
-
ESFP: "ESFP";
|
|
39
|
-
}>>;
|
|
40
|
-
mbtiTestSource: z.ZodOptional<z.ZodString>;
|
|
41
|
-
mbtiTestYear: z.ZodOptional<z.ZodString>;
|
|
42
|
-
big5Scores: z.ZodOptional<z.ZodObject<{
|
|
43
|
-
openness: z.ZodOptional<z.ZodString>;
|
|
44
|
-
conscientiousness: z.ZodOptional<z.ZodString>;
|
|
45
|
-
extraversion: z.ZodOptional<z.ZodString>;
|
|
46
|
-
agreeableness: z.ZodOptional<z.ZodString>;
|
|
47
|
-
neuroticism: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
big5TestSource: z.ZodOptional<z.ZodString>;
|
|
50
|
-
enneagramType: z.ZodOptional<z.ZodEnum<{
|
|
51
|
-
NOT_SURE: "NOT_SURE";
|
|
52
|
-
TYPE_1: "TYPE_1";
|
|
53
|
-
TYPE_2: "TYPE_2";
|
|
54
|
-
TYPE_3: "TYPE_3";
|
|
55
|
-
TYPE_4: "TYPE_4";
|
|
56
|
-
TYPE_5: "TYPE_5";
|
|
57
|
-
TYPE_6: "TYPE_6";
|
|
58
|
-
TYPE_7: "TYPE_7";
|
|
59
|
-
TYPE_8: "TYPE_8";
|
|
60
|
-
TYPE_9: "TYPE_9";
|
|
61
|
-
}>>;
|
|
62
|
-
enneagramWing: z.ZodOptional<z.ZodString>;
|
|
63
|
-
enneagramSource: z.ZodOptional<z.ZodString>;
|
|
64
|
-
attachmentStyle: z.ZodOptional<z.ZodEnum<{
|
|
65
|
-
NOT_SURE: "NOT_SURE";
|
|
66
|
-
SECURE: "SECURE";
|
|
67
|
-
ANXIOUS_PREOCCUPIED: "ANXIOUS_PREOCCUPIED";
|
|
68
|
-
DISMISSIVE_AVOIDANT: "DISMISSIVE_AVOIDANT";
|
|
69
|
-
FEARFUL_AVOIDANT: "FEARFUL_AVOIDANT";
|
|
70
|
-
}>>;
|
|
71
|
-
discProfile: z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
NOT_SURE: "NOT_SURE";
|
|
73
|
-
D: "D";
|
|
74
|
-
I: "I";
|
|
75
|
-
S: "S";
|
|
76
|
-
C: "C";
|
|
77
|
-
}>>;
|
|
78
|
-
psychopathyScaleResult: z.ZodOptional<z.ZodString>;
|
|
79
|
-
narcissismScaleResult: z.ZodOptional<z.ZodString>;
|
|
80
|
-
assessmentAccuracyRating: z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
NOT_ACCURATE: "NOT_ACCURATE";
|
|
82
|
-
SOMEWHAT_ACCURATE: "SOMEWHAT_ACCURATE";
|
|
83
|
-
MOSTLY_ACCURATE: "MOSTLY_ACCURATE";
|
|
84
|
-
VERY_ACCURATE: "VERY_ACCURATE";
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
export declare const step10WorldViewSchema: z.ZodObject<{
|
|
12
|
+
viewOnAnimalCruelty: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
14
|
+
strongly_against: "strongly_against";
|
|
15
|
+
against_but_food: "against_but_food";
|
|
16
|
+
neutral: "neutral";
|
|
17
|
+
acceptable_in_tradition: "acceptable_in_tradition";
|
|
85
18
|
}>>;
|
|
86
|
-
|
|
19
|
+
viewOnLgbtqStatements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
viewOnLgbtqOpinion: z.ZodOptional<z.ZodString>;
|
|
21
|
+
viewOnTransgenderInclusion: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
viewOnTransgenderOpinion: z.ZodOptional<z.ZodString>;
|
|
23
|
+
facingCasteDiscrimination: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
PREFER_NOT_SAY: "PREFER_NOT_SAY";
|
|
87
25
|
NO: "NO";
|
|
88
|
-
|
|
26
|
+
YES_OFTEN: "YES_OFTEN";
|
|
27
|
+
YES_SOMETIMES: "YES_SOMETIMES";
|
|
28
|
+
}>>;
|
|
29
|
+
casteDiscriminationPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
viewOnGenderEquality: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
32
|
+
strong_advocate: "strong_advocate";
|
|
33
|
+
supportive: "supportive";
|
|
34
|
+
traditional_values: "traditional_values";
|
|
35
|
+
no_opinion: "no_opinion";
|
|
89
36
|
}>>;
|
|
90
|
-
assessmentNotes: z.ZodOptional<z.ZodString>;
|
|
91
37
|
}, z.core.$strip>;
|
|
92
|
-
export type
|
|
38
|
+
export type Step10WorldViewInput = z.infer<typeof step10WorldViewSchema>;
|
|
93
39
|
//# sourceMappingURL=step-10.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-10.schema.d.ts","sourceRoot":"","sources":["../src/step-10.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB
|
|
1
|
+
{"version":3,"file":"step-10.schema.d.ts","sourceRoot":"","sources":["../src/step-10.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0ChC,CAAC;AAIH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|