udp-schema 0.3.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 -1988
- package/dist/field-meta.js.map +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -32
- 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 +76 -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 +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-08.schema.d.ts
CHANGED
|
@@ -1,50 +1,37 @@
|
|
|
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
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
STUDENT: "STUDENT";
|
|
9
|
-
HOMEMAKER: "HOMEMAKER";
|
|
10
|
-
UNEMPLOYED_SEEKING: "UNEMPLOYED_SEEKING";
|
|
11
|
-
UNEMPLOYED_NOT_SEEKING: "UNEMPLOYED_NOT_SEEKING";
|
|
12
|
-
RETIRED: "RETIRED";
|
|
13
|
-
}>;
|
|
14
|
-
employedSince: z.ZodOptional<z.ZodString>;
|
|
15
|
-
jobOccupationType: z.ZodOptional<z.ZodString>;
|
|
16
|
-
currentWorkShift: z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
MORNING: "MORNING";
|
|
18
|
-
EVENING: "EVENING";
|
|
19
|
-
NIGHT: "NIGHT";
|
|
20
|
-
ROTATIONAL: "ROTATIONAL";
|
|
21
|
-
FLEXIBLE: "FLEXIBLE";
|
|
22
|
-
NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
10
|
+
export declare const step08NeurodiversitySchema: z.ZodObject<{
|
|
11
|
+
neurodiverseIdentity: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
13
|
+
yes: "yes";
|
|
14
|
+
no: "no";
|
|
15
|
+
exploring: "exploring";
|
|
23
16
|
}>>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
sensoryPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
learningStyle: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
visual: "visual";
|
|
21
|
+
auditory: "auditory";
|
|
22
|
+
kinesthetic: "kinesthetic";
|
|
23
|
+
reading_writing: "reading_writing";
|
|
24
|
+
mixed: "mixed";
|
|
28
25
|
}>>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
communicationPreference: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
28
|
+
face_to_face: "face_to_face";
|
|
29
|
+
written: "written";
|
|
30
|
+
visual_aids: "visual_aids";
|
|
31
|
+
phone_calls: "phone_calls";
|
|
32
|
+
small_groups_only: "small_groups_only";
|
|
36
33
|
}>>;
|
|
37
|
-
|
|
38
|
-
PREFER_NOT_SAY: "PREFER_NOT_SAY";
|
|
39
|
-
NO_INCOME: "NO_INCOME";
|
|
40
|
-
BELOW_5K: "BELOW_5K";
|
|
41
|
-
"5_10K": "5_10K";
|
|
42
|
-
"10_15K": "10_15K";
|
|
43
|
-
"15_25K": "15_25K";
|
|
44
|
-
"25_50K": "25_50K";
|
|
45
|
-
ABOVE_50K: "ABOVE_50K";
|
|
46
|
-
}>>;
|
|
47
|
-
workExperienceSummary: z.ZodOptional<z.ZodString>;
|
|
34
|
+
supportNeeds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
35
|
}, z.core.$strip>;
|
|
49
|
-
export type
|
|
36
|
+
export type Step08NeurodiversityInput = z.infer<typeof step08NeurodiversitySchema>;
|
|
50
37
|
//# sourceMappingURL=step-08.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-08.schema.d.ts","sourceRoot":"","sources":["../src/step-08.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"step-08.schema.d.ts","sourceRoot":"","sources":["../src/step-08.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BrC,CAAC;AAIH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
package/dist/step-08.schema.js
CHANGED
|
@@ -1,55 +1,38 @@
|
|
|
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
|
-
export const step08EmploymentSchema = z.object({
|
|
8
|
-
// ── 8.1 Employment Status ─────────────────────────────────────────────────
|
|
9
|
-
/** Current employment status (required) */
|
|
10
|
-
employmentStatus: z.enum([
|
|
11
|
-
'EMPLOYED_FULL_TIME',
|
|
12
|
-
'EMPLOYED_PART_TIME',
|
|
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
|
|
14
|
+
.enum(['yes', 'no', 'exploring', 'prefer_not_to_say'])
|
|
31
15
|
.optional(),
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
/** Specific conditions (multi-select string array) */
|
|
17
|
+
conditions: z.array(z.string().trim()).optional(),
|
|
18
|
+
/** Sensory preferences (multi-select string array) */
|
|
19
|
+
sensoryPreferences: z.array(z.string().trim()).optional(),
|
|
20
|
+
/** Learning style preference */
|
|
21
|
+
learningStyle: z
|
|
22
|
+
.enum(['visual', 'auditory', 'kinesthetic', 'reading_writing', 'mixed'])
|
|
37
23
|
.optional(),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
personalIncomeRange: z
|
|
24
|
+
/** Communication preference */
|
|
25
|
+
communicationPreference: z
|
|
41
26
|
.enum([
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'NO_INCOME',
|
|
49
|
-
'PREFER_NOT_SAY',
|
|
27
|
+
'face_to_face',
|
|
28
|
+
'written',
|
|
29
|
+
'visual_aids',
|
|
30
|
+
'phone_calls',
|
|
31
|
+
'small_groups_only',
|
|
32
|
+
'prefer_not_to_say',
|
|
50
33
|
])
|
|
51
34
|
.optional(),
|
|
52
|
-
/**
|
|
53
|
-
|
|
35
|
+
/** Support needs (multi-select string array) */
|
|
36
|
+
supportNeeds: z.array(z.string().trim()).optional(),
|
|
54
37
|
});
|
|
55
38
|
//# 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;SACpB,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,mBAAmB,CAAC,CAAC;SACrD,QAAQ,EAAE;IAEb,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\n .enum(['yes', 'no', 'exploring', 'prefer_not_to_say'])\n .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
|
+
never: "never";
|
|
29
|
+
rarely: "rarely";
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwC7B,CAAC;AAIH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/step-09.schema.js
CHANGED
|
@@ -1,123 +1,45 @@
|
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
16
|
+
.enum(['excellent', 'good', 'fair', 'poor', 'prefer_not_to_say'])
|
|
17
|
+
.optional(),
|
|
18
|
+
/** Health insurance status */
|
|
19
|
+
healthInsurance: z
|
|
20
|
+
.enum([
|
|
21
|
+
'yes_government',
|
|
22
|
+
'yes_private',
|
|
23
|
+
'yes_employer',
|
|
24
|
+
'no',
|
|
25
|
+
'ayushman_bharat',
|
|
26
|
+
])
|
|
27
|
+
.optional(),
|
|
28
|
+
/** Diet — uses dating-schema diet option values */
|
|
29
|
+
diet: z.string().trim().optional(),
|
|
30
|
+
/** Physical activity level */
|
|
31
|
+
physicalActivity: z
|
|
32
|
+
.enum(['daily', 'few_times_week', 'weekly', 'rarely', 'never'])
|
|
33
|
+
.optional(),
|
|
34
|
+
/** Sleep quality */
|
|
35
|
+
sleepQuality: z
|
|
36
|
+
.enum(['excellent', 'good', 'average', 'poor', 'irregular'])
|
|
37
|
+
.optional(),
|
|
38
|
+
/** Substance use (multi-select string array) */
|
|
39
|
+
substanceUse: z.array(z.string().trim()).optional(),
|
|
40
|
+
/** Stress level */
|
|
41
|
+
stressLevel: z
|
|
42
|
+
.enum(['very_low', 'low', 'moderate', 'high', 'very_high'])
|
|
43
|
+
.optional(),
|
|
122
44
|
});
|
|
123
45
|
//# 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;SACb,IAAI,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC;SAChE,QAAQ,EAAE;IAEb,8BAA8B;IAC9B,eAAe,EAAE,CAAC;SACf,IAAI,CAAC;QACJ,gBAAgB;QAChB,aAAa;QACb,cAAc;QACd,IAAI;QACJ,iBAAiB;KAClB,CAAC;SACD,QAAQ,EAAE;IAEb,mDAAmD;IACnD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAElC,8BAA8B;IAC9B,gBAAgB,EAAE,CAAC;SAChB,IAAI,CAAC,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;SAC9D,QAAQ,EAAE;IAEb,oBAAoB;IACpB,YAAY,EAAE,CAAC;SACZ,IAAI,CAAC,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;SAC3D,QAAQ,EAAE;IAEb,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;SACX,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;SAC1D,QAAQ,EAAE;CACd,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\n .enum(['excellent', 'good', 'fair', 'poor', 'prefer_not_to_say'])\n .optional(),\n\n /** Health insurance status */\n healthInsurance: z\n .enum([\n 'yes_government',\n 'yes_private',\n 'yes_employer',\n 'no',\n 'ayushman_bharat',\n ])\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\n .enum(['daily', 'few_times_week', 'weekly', 'rarely', 'never'])\n .optional(),\n\n /** Sleep quality */\n sleepQuality: z\n .enum(['excellent', 'good', 'average', 'poor', 'irregular'])\n .optional(),\n\n /** Substance use (multi-select string array) */\n substanceUse: z.array(z.string().trim()).optional(),\n\n /** Stress level */\n stressLevel: z\n .enum(['very_low', 'low', 'moderate', 'high', 'very_high'])\n .optional(),\n});\n\n// ─── Inferred types ─────────────────────────────────────────────────────────\n\nexport type Step09HealthInput = z.infer<typeof step09HealthSchema>;\n"]}
|