udp-schema 1.1.0 → 2.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/helpers.d.ts +33 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +60 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +16 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/dist/onboarding-form.d.ts +485 -0
- package/dist/onboarding-form.d.ts.map +1 -0
- package/dist/onboarding-form.js +69 -0
- package/dist/onboarding-form.js.map +1 -0
- package/dist/profile-fields/01-profile.d.ts.map +1 -1
- package/dist/profile-fields/01-profile.js +168 -23
- package/dist/profile-fields/01-profile.js.map +1 -1
- package/dist/profile-fields/02-political.d.ts.map +1 -1
- package/dist/profile-fields/02-political.js +119 -28
- package/dist/profile-fields/02-political.js.map +1 -1
- package/dist/profile-fields/03-electoral.d.ts.map +1 -1
- package/dist/profile-fields/03-electoral.js +83 -13
- package/dist/profile-fields/03-electoral.js.map +1 -1
- package/dist/profile-fields/04-leadership.d.ts.map +1 -1
- package/dist/profile-fields/04-leadership.js +131 -14
- package/dist/profile-fields/04-leadership.js.map +1 -1
- package/dist/profile-fields/05-psychological.d.ts.map +1 -1
- package/dist/profile-fields/05-psychological.js +41 -12
- package/dist/profile-fields/05-psychological.js.map +1 -1
- package/dist/profile-fields/06-education.d.ts.map +1 -1
- package/dist/profile-fields/06-education.js +128 -15
- package/dist/profile-fields/06-education.js.map +1 -1
- package/dist/profile-fields/07-employment.d.ts.map +1 -1
- package/dist/profile-fields/07-employment.js +99 -19
- package/dist/profile-fields/07-employment.js.map +1 -1
- package/dist/profile-fields/08-neurodiversity.d.ts.map +1 -1
- package/dist/profile-fields/08-neurodiversity.js +128 -21
- package/dist/profile-fields/08-neurodiversity.js.map +1 -1
- package/dist/profile-fields/09-health.d.ts.map +1 -1
- package/dist/profile-fields/09-health.js +141 -19
- package/dist/profile-fields/09-health.js.map +1 -1
- package/dist/profile-fields/10-worldview.d.ts.map +1 -1
- package/dist/profile-fields/10-worldview.js +112 -13
- package/dist/profile-fields/10-worldview.js.map +1 -1
- package/dist/profile-fields/11-residence.d.ts.map +1 -1
- package/dist/profile-fields/11-residence.js +39 -5
- package/dist/profile-fields/11-residence.js.map +1 -1
- package/dist/profile-fields/12-household.d.ts.map +1 -1
- package/dist/profile-fields/12-household.js +175 -25
- package/dist/profile-fields/12-household.js.map +1 -1
- package/dist/profile-fields/index.d.ts +8 -8
- package/dist/profile-fields/index.d.ts.map +1 -1
- package/dist/profile-fields/index.js +8 -8
- package/dist/profile-fields/index.js.map +1 -1
- package/dist/validation.d.ts +18 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +186 -0
- package/dist/validation.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,38 +1,160 @@
|
|
|
1
1
|
export const disabilityOptions = [
|
|
2
|
-
{ value: 'none', label: 'None' },
|
|
3
|
-
{ value: '
|
|
4
|
-
{ value: '
|
|
5
|
-
{ value: '
|
|
2
|
+
{ value: 'none', label: 'None' },
|
|
3
|
+
{ value: 'physical', label: 'Physical disability' },
|
|
4
|
+
{ value: 'visual', label: 'Visual impairment' },
|
|
5
|
+
{ value: 'hearing', label: 'Hearing impairment' },
|
|
6
|
+
{ value: 'speech', label: 'Speech disability' },
|
|
7
|
+
{ value: 'cognitive', label: 'Cognitive / Intellectual' },
|
|
8
|
+
{ value: 'multiple', label: 'Multiple disabilities' },
|
|
9
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
6
10
|
];
|
|
7
11
|
export const substanceUseOptions = [
|
|
8
|
-
{ value: 'none', label: 'None' },
|
|
9
|
-
{ value: '
|
|
10
|
-
{ value: '
|
|
12
|
+
{ value: 'none', label: 'None' },
|
|
13
|
+
{ value: 'tobacco_smoking', label: 'Tobacco (smoking)' },
|
|
14
|
+
{ value: 'tobacco_chewing', label: 'Tobacco (chewing / gutka)' },
|
|
15
|
+
{ value: 'alcohol', label: 'Alcohol' },
|
|
16
|
+
{ value: 'cannabis', label: 'Cannabis' },
|
|
17
|
+
{ value: 'other', label: 'Other' },
|
|
11
18
|
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
12
19
|
];
|
|
13
20
|
export const dietOptions = [
|
|
14
21
|
{ value: 'vegetarian', label: 'Vegetarian', description: 'No meat, fish, or eggs' },
|
|
15
22
|
{ value: 'vegan', label: 'Vegan', description: 'No animal products' },
|
|
16
23
|
{ value: 'eggetarian', label: 'Eggetarian', description: 'Vegetarian but eat eggs' },
|
|
17
|
-
{
|
|
24
|
+
{
|
|
25
|
+
value: 'non_vegetarian',
|
|
26
|
+
label: 'Non-Vegetarian',
|
|
27
|
+
description: 'Eat everything including meat',
|
|
28
|
+
},
|
|
18
29
|
{ value: 'pescatarian', label: 'Pescatarian', description: 'No meat, but eat fish' },
|
|
19
|
-
{
|
|
30
|
+
{
|
|
31
|
+
value: 'occasionally_non_veg',
|
|
32
|
+
label: 'Occasionally Non-Veg',
|
|
33
|
+
description: 'Mostly veg, meat on occasion',
|
|
34
|
+
},
|
|
20
35
|
{ value: 'jain', label: 'Jain', description: 'No root vegetables, strict Jain rules' },
|
|
21
36
|
{ value: 'halal', label: 'Halal', description: 'Only halal-certified food' },
|
|
22
|
-
{ value: 'other', label: 'Other' },
|
|
37
|
+
{ value: 'other', label: 'Other' },
|
|
38
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
23
39
|
];
|
|
24
40
|
export const healthLifestyle = {
|
|
25
|
-
key: 'health_lifestyle',
|
|
41
|
+
key: 'health_lifestyle',
|
|
42
|
+
label: 'Health & Lifestyle',
|
|
43
|
+
step: 9,
|
|
26
44
|
description: 'Health, diet, activity, and wellbeing.',
|
|
27
45
|
fields: [
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
46
|
+
{
|
|
47
|
+
order: 1,
|
|
48
|
+
key: 'disabilityStatus',
|
|
49
|
+
label: 'Disability Status',
|
|
50
|
+
type: 'multi_select',
|
|
51
|
+
step: 9,
|
|
52
|
+
isOnboarding: true,
|
|
53
|
+
optional: true,
|
|
54
|
+
options: [...disabilityOptions],
|
|
55
|
+
sensitive: true,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
order: 2,
|
|
59
|
+
key: 'generalHealth',
|
|
60
|
+
label: 'General Health',
|
|
61
|
+
type: 'single_select',
|
|
62
|
+
step: 9,
|
|
63
|
+
isOnboarding: true,
|
|
64
|
+
optional: true,
|
|
65
|
+
options: [
|
|
66
|
+
{ value: 'excellent', label: 'Excellent' },
|
|
67
|
+
{ value: 'good', label: 'Good' },
|
|
68
|
+
{ value: 'fair', label: 'Fair' },
|
|
69
|
+
{ value: 'poor', label: 'Poor' },
|
|
70
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
order: 3,
|
|
75
|
+
key: 'healthInsurance',
|
|
76
|
+
label: 'Health Insurance',
|
|
77
|
+
type: 'single_select',
|
|
78
|
+
step: 9,
|
|
79
|
+
isOnboarding: true,
|
|
80
|
+
optional: true,
|
|
81
|
+
options: [
|
|
82
|
+
{ value: 'yes_government', label: 'Yes — Government scheme' },
|
|
83
|
+
{ value: 'yes_private', label: 'Yes — Private insurance' },
|
|
84
|
+
{ value: 'yes_employer', label: 'Yes — Employer provided' },
|
|
85
|
+
{ value: 'no', label: 'No insurance' },
|
|
86
|
+
{ value: 'ayushman_bharat', label: 'Ayushman Bharat card' },
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
order: 4,
|
|
91
|
+
key: 'diet',
|
|
92
|
+
label: 'Diet',
|
|
93
|
+
type: 'single_select',
|
|
94
|
+
step: 9,
|
|
95
|
+
isOnboarding: true,
|
|
96
|
+
optional: true,
|
|
97
|
+
options: [...dietOptions],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
order: 5,
|
|
101
|
+
key: 'physicalActivity',
|
|
102
|
+
label: 'Physical Activity',
|
|
103
|
+
type: 'single_select',
|
|
104
|
+
step: 9,
|
|
105
|
+
isOnboarding: true,
|
|
106
|
+
optional: true,
|
|
107
|
+
options: [
|
|
108
|
+
{ value: 'daily', label: 'Daily' },
|
|
109
|
+
{ value: 'few_times_week', label: 'Few times a week' },
|
|
110
|
+
{ value: 'weekly', label: 'Weekly' },
|
|
111
|
+
{ value: 'rarely', label: 'Rarely' },
|
|
112
|
+
{ value: 'never', label: 'Never' },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
order: 6,
|
|
117
|
+
key: 'sleepQuality',
|
|
118
|
+
label: 'Sleep Quality',
|
|
119
|
+
type: 'single_select',
|
|
120
|
+
step: 9,
|
|
121
|
+
isOnboarding: true,
|
|
122
|
+
optional: true,
|
|
123
|
+
options: [
|
|
124
|
+
{ value: 'excellent', label: 'Excellent' },
|
|
125
|
+
{ value: 'good', label: 'Good' },
|
|
126
|
+
{ value: 'average', label: 'Average' },
|
|
127
|
+
{ value: 'poor', label: 'Poor' },
|
|
128
|
+
{ value: 'irregular', label: 'Irregular' },
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
order: 7,
|
|
133
|
+
key: 'substanceUse',
|
|
134
|
+
label: 'Substance Use',
|
|
135
|
+
type: 'multi_select',
|
|
136
|
+
step: 9,
|
|
137
|
+
isOnboarding: true,
|
|
138
|
+
optional: true,
|
|
139
|
+
options: [...substanceUseOptions],
|
|
140
|
+
sensitive: true,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
order: 8,
|
|
144
|
+
key: 'stressLevel',
|
|
145
|
+
label: 'Stress Level',
|
|
146
|
+
type: 'single_select',
|
|
147
|
+
step: 9,
|
|
148
|
+
isOnboarding: true,
|
|
149
|
+
optional: true,
|
|
150
|
+
options: [
|
|
151
|
+
{ value: 'very_low', label: 'Very low' },
|
|
152
|
+
{ value: 'low', label: 'Low' },
|
|
153
|
+
{ value: 'moderate', label: 'Moderate' },
|
|
154
|
+
{ value: 'high', label: 'High' },
|
|
155
|
+
{ value: 'very_high', label: 'Very high' },
|
|
156
|
+
],
|
|
157
|
+
},
|
|
36
158
|
],
|
|
37
159
|
};
|
|
38
160
|
//# sourceMappingURL=09-health.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"09-health.js","sourceRoot":"","sources":["../../src/profile-fields/09-health.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"09-health.js","sourceRoot":"","sources":["../../src/profile-fields/09-health.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAChC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE;IACnD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC/C,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,oBAAoB,EAAE;IACjD,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC/C,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,0BAA0B,EAAE;IACzD,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,uBAAuB,EAAE;IACrD,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;CAClD,CAAC;AAEX,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EA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,EAAE,WAAW,EAAE;gBAC1C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;aAC3C;SACF;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,cAAc;YACnB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC,GAAG,mBAAmB,CAAC;YACjC,SAAS,EAAE,IAAI;SAChB;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;gBACxC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;aAC3C;SACF;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const disabilityOptions = [\n { value: 'none', label: 'None' },\n { value: 'physical', label: 'Physical disability' },\n { value: 'visual', label: 'Visual impairment' },\n { value: 'hearing', label: 'Hearing impairment' },\n { value: 'speech', label: 'Speech disability' },\n { value: 'cognitive', label: 'Cognitive / Intellectual' },\n { value: 'multiple', label: 'Multiple disabilities' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const substanceUseOptions = [\n { value: 'none', label: 'None' },\n { value: 'tobacco_smoking', label: 'Tobacco (smoking)' },\n { value: 'tobacco_chewing', label: 'Tobacco (chewing / gutka)' },\n { value: 'alcohol', label: 'Alcohol' },\n { value: 'cannabis', label: 'Cannabis' },\n { value: 'other', label: 'Other' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const dietOptions = [\n { value: 'vegetarian', label: 'Vegetarian', description: 'No meat, fish, or eggs' },\n { value: 'vegan', label: 'Vegan', description: 'No animal products' },\n { value: 'eggetarian', label: 'Eggetarian', description: 'Vegetarian but eat eggs' },\n {\n value: 'non_vegetarian',\n label: 'Non-Vegetarian',\n description: 'Eat everything including meat',\n },\n { value: 'pescatarian', label: 'Pescatarian', description: 'No meat, but eat fish' },\n {\n value: 'occasionally_non_veg',\n label: 'Occasionally Non-Veg',\n description: 'Mostly veg, meat on occasion',\n },\n { value: 'jain', label: 'Jain', description: 'No root vegetables, strict Jain rules' },\n { value: 'halal', label: 'Halal', description: 'Only halal-certified food' },\n { value: 'other', label: 'Other' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n] as const;\n\nexport const healthLifestyle: FieldGroup = {\n key: 'health_lifestyle',\n label: 'Health & Lifestyle',\n step: 9,\n description: 'Health, diet, activity, and wellbeing.',\n fields: [\n {\n order: 1,\n key: 'disabilityStatus',\n label: 'Disability Status',\n type: 'multi_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [...disabilityOptions],\n sensitive: true,\n },\n {\n order: 2,\n key: 'generalHealth',\n label: 'General Health',\n type: 'single_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'excellent', label: 'Excellent' },\n { value: 'good', label: 'Good' },\n { value: 'fair', label: 'Fair' },\n { value: 'poor', label: 'Poor' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 3,\n key: 'healthInsurance',\n label: 'Health Insurance',\n type: 'single_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'yes_government', label: 'Yes — Government scheme' },\n { value: 'yes_private', label: 'Yes — Private insurance' },\n { value: 'yes_employer', label: 'Yes — Employer provided' },\n { value: 'no', label: 'No insurance' },\n { value: 'ayushman_bharat', label: 'Ayushman Bharat card' },\n ],\n },\n {\n order: 4,\n key: 'diet',\n label: 'Diet',\n type: 'single_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [...dietOptions],\n },\n {\n order: 5,\n key: 'physicalActivity',\n label: 'Physical Activity',\n type: 'single_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'daily', label: 'Daily' },\n { value: 'few_times_week', label: 'Few times a week' },\n { value: 'weekly', label: 'Weekly' },\n { value: 'rarely', label: 'Rarely' },\n { value: 'never', label: 'Never' },\n ],\n },\n {\n order: 6,\n key: 'sleepQuality',\n label: 'Sleep Quality',\n type: 'single_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'excellent', label: 'Excellent' },\n { value: 'good', label: 'Good' },\n { value: 'average', label: 'Average' },\n { value: 'poor', label: 'Poor' },\n { value: 'irregular', label: 'Irregular' },\n ],\n },\n {\n order: 7,\n key: 'substanceUse',\n label: 'Substance Use',\n type: 'multi_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [...substanceUseOptions],\n sensitive: true,\n },\n {\n order: 8,\n key: 'stressLevel',\n label: 'Stress Level',\n type: 'single_select',\n step: 9,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'very_low', label: 'Very low' },\n { value: 'low', label: 'Low' },\n { value: 'moderate', label: 'Moderate' },\n { value: 'high', label: 'High' },\n { value: 'very_high', label: 'Very high' },\n ],\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"10-worldview.d.ts","sourceRoot":"","sources":["../../src/profile-fields/10-worldview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"10-worldview.d.ts","sourceRoot":"","sources":["../../src/profile-fields/10-worldview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAY9B,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAC;AAEX,eAAO,MAAM,SAAS,EAAE,UA0GvB,CAAC"}
|
|
@@ -9,7 +9,10 @@ export const lgbtqStatementOptions = [
|
|
|
9
9
|
{ value: 'LGBTQ_PREFER_NOT_SAY', label: 'Prefer not to say' },
|
|
10
10
|
];
|
|
11
11
|
export const transgenderStatementOptions = [
|
|
12
|
-
{
|
|
12
|
+
{
|
|
13
|
+
value: 'TRANS_CHILD_KEEP_IN_FAMILY',
|
|
14
|
+
label: 'A transgender child should be kept in the family',
|
|
15
|
+
},
|
|
13
16
|
{ value: 'TRANS_EQUAL_RIGHTS', label: 'Transgender people deserve equal rights' },
|
|
14
17
|
{ value: 'TRANS_PART_OF_NORMAL_SOCIETY', label: 'They are part of normal society' },
|
|
15
18
|
{ value: 'TRANS_NO_ABANDONMENT', label: 'No one should abandon a transgender family member' },
|
|
@@ -19,23 +22,119 @@ export const transgenderStatementOptions = [
|
|
|
19
22
|
{ value: 'TRANS_PREFER_NOT_SAY', label: 'Prefer not to say' },
|
|
20
23
|
];
|
|
21
24
|
export const casteDiscriminationPlaceOptions = [
|
|
22
|
-
{ value: 'SCHOOL_EDUCATION', label: 'School / Education' },
|
|
23
|
-
{ value: '
|
|
24
|
-
{ value: '
|
|
25
|
+
{ value: 'SCHOOL_EDUCATION', label: 'School / Education' },
|
|
26
|
+
{ value: 'WORKPLACE', label: 'Workplace' },
|
|
27
|
+
{ value: 'LOCALITY', label: 'Locality / Neighborhood' },
|
|
28
|
+
{ value: 'GOVT_OFFICES', label: 'Government offices' },
|
|
29
|
+
{ value: 'MARKET', label: 'Market / Shops' },
|
|
30
|
+
{ value: 'RELIGIOUS_SPACE', label: 'Religious spaces' },
|
|
25
31
|
{ value: 'OTHER', label: 'Other' },
|
|
26
32
|
];
|
|
27
33
|
export const worldView = {
|
|
28
|
-
key: 'world_view',
|
|
34
|
+
key: 'world_view',
|
|
35
|
+
label: 'World View & Experience',
|
|
36
|
+
step: 10,
|
|
29
37
|
description: 'Views on social issues, equality, and discrimination.',
|
|
30
38
|
fields: [
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
{
|
|
40
|
+
order: 1,
|
|
41
|
+
key: 'viewOnAnimalCruelty',
|
|
42
|
+
label: 'View on Animal Cruelty',
|
|
43
|
+
type: 'single_select',
|
|
44
|
+
step: 10,
|
|
45
|
+
isOnboarding: true,
|
|
46
|
+
optional: true,
|
|
47
|
+
options: [
|
|
48
|
+
{ value: 'strongly_against', label: 'Strongly against all forms' },
|
|
49
|
+
{ value: 'against_but_food', label: 'Against, but accept for food' },
|
|
50
|
+
{ value: 'neutral', label: 'Neutral' },
|
|
51
|
+
{ value: 'acceptable_in_tradition', label: 'Acceptable in tradition/culture' },
|
|
52
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
order: 2,
|
|
57
|
+
key: 'viewOnLgbtqStatements',
|
|
58
|
+
label: 'Views on LGBTQ+ Rights',
|
|
59
|
+
type: 'multi_select',
|
|
60
|
+
step: 10,
|
|
61
|
+
isOnboarding: true,
|
|
62
|
+
optional: true,
|
|
63
|
+
options: [...lgbtqStatementOptions],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
order: 3,
|
|
67
|
+
key: 'viewOnLgbtqOpinion',
|
|
68
|
+
label: 'LGBTQ+ Opinion',
|
|
69
|
+
type: 'textarea',
|
|
70
|
+
step: 10,
|
|
71
|
+
isOnboarding: true,
|
|
72
|
+
optional: true,
|
|
73
|
+
maxLength: 500,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
order: 4,
|
|
77
|
+
key: 'viewOnTransgenderInclusion',
|
|
78
|
+
label: 'Views on Transgender Inclusion',
|
|
79
|
+
type: 'multi_select',
|
|
80
|
+
step: 10,
|
|
81
|
+
isOnboarding: true,
|
|
82
|
+
optional: true,
|
|
83
|
+
options: [...transgenderStatementOptions],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
order: 5,
|
|
87
|
+
key: 'viewOnTransgenderOpinion',
|
|
88
|
+
label: 'Transgender Opinion',
|
|
89
|
+
type: 'textarea',
|
|
90
|
+
step: 10,
|
|
91
|
+
isOnboarding: true,
|
|
92
|
+
optional: true,
|
|
93
|
+
maxLength: 500,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
order: 6,
|
|
97
|
+
key: 'facingCasteDiscrimination',
|
|
98
|
+
label: 'Caste Discrimination Experience',
|
|
99
|
+
type: 'single_select',
|
|
100
|
+
step: 10,
|
|
101
|
+
isOnboarding: true,
|
|
102
|
+
optional: true,
|
|
103
|
+
sensitive: true,
|
|
104
|
+
options: [
|
|
105
|
+
{ value: 'YES_OFTEN', label: 'Yes, often' },
|
|
106
|
+
{ value: 'YES_SOMETIMES', label: 'Yes, sometimes' },
|
|
107
|
+
{ value: 'NO', label: 'No' },
|
|
108
|
+
{ value: 'PREFER_NOT_SAY', label: 'Prefer not to say' },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
order: 7,
|
|
113
|
+
key: 'casteDiscriminationPlaces',
|
|
114
|
+
label: 'Where Discrimination Faced',
|
|
115
|
+
type: 'multi_select',
|
|
116
|
+
step: 10,
|
|
117
|
+
isOnboarding: true,
|
|
118
|
+
optional: true,
|
|
119
|
+
options: [...casteDiscriminationPlaceOptions],
|
|
120
|
+
conditionalOn: { field: 'facingCasteDiscrimination', values: ['YES_OFTEN', 'YES_SOMETIMES'] },
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
order: 8,
|
|
124
|
+
key: 'viewOnGenderEquality',
|
|
125
|
+
label: 'View on Gender Equality',
|
|
126
|
+
type: 'single_select',
|
|
127
|
+
step: 10,
|
|
128
|
+
isOnboarding: true,
|
|
129
|
+
optional: true,
|
|
130
|
+
options: [
|
|
131
|
+
{ value: 'strong_advocate', label: 'Strong advocate for equality' },
|
|
132
|
+
{ value: 'supportive', label: 'Supportive' },
|
|
133
|
+
{ value: 'traditional_values', label: 'I prefer traditional values' },
|
|
134
|
+
{ value: 'no_opinion', label: 'No opinion' },
|
|
135
|
+
{ value: 'prefer_not_to_say', label: 'Prefer not to say' },
|
|
136
|
+
],
|
|
137
|
+
},
|
|
39
138
|
],
|
|
40
139
|
};
|
|
41
140
|
//# sourceMappingURL=10-worldview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"10-worldview.js","sourceRoot":"","sources":["../../src/profile-fields/10-worldview.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,oCAAoC,EAAE;IAC5E,EAAE,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,qCAAqC,EAAE;IAClF,EAAE,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAAE,uBAAuB,EAAE;IACjE,EAAE,KAAK,EAAE,mCAAmC,EAAE,KA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mBAAmB,EAAE;aAC3D;SACF;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const lgbtqStatementOptions = [\n { value: 'LGBTQ_EQUAL_RIGHTS', label: 'LGBTQ+ people deserve equal rights' },\n { value: 'LGBTQ_SOCIAL_ACCEPTANCE', label: 'Society should accept LGBTQ+ people' },\n { value: 'LGBTQ_PRIVATE_MATTER', label: \"It's a private matter\" },\n { value: 'LGBTQ_SHOULD_NOT_BE_DISCRIMINATED', label: 'They should not face discrimination' },\n { value: 'LGBTQ_TRADITION_CONFLICT', label: 'It conflicts with our traditions' },\n { value: 'LGBTQ_NOT_COMFORTABLE', label: \"I'm not comfortable with it\" },\n { value: 'LGBTQ_DONT_KNOW', label: \"I don't know enough about it\" },\n { value: 'LGBTQ_PREFER_NOT_SAY', label: 'Prefer not to say' },\n] as const;\n\nexport const transgenderStatementOptions = [\n {\n value: 'TRANS_CHILD_KEEP_IN_FAMILY',\n label: 'A transgender child should be kept in the family',\n },\n { value: 'TRANS_EQUAL_RIGHTS', label: 'Transgender people deserve equal rights' },\n { value: 'TRANS_PART_OF_NORMAL_SOCIETY', label: 'They are part of normal society' },\n { value: 'TRANS_NO_ABANDONMENT', label: 'No one should abandon a transgender family member' },\n { value: 'TRANS_ONLY_SPECIAL_COMMUNITY', label: 'They belong to their own special community' },\n { value: 'TRANS_UNCOMFORTABLE', label: \"I'm uncomfortable around transgender people\" },\n { value: 'TRANS_DONT_KNOW', label: \"I don't know enough\" },\n { value: 'TRANS_PREFER_NOT_SAY', label: 'Prefer not to say' },\n] as const;\n\nexport const casteDiscriminationPlaceOptions = [\n { value: 'SCHOOL_EDUCATION', label: 'School / Education' },\n { value: 'WORKPLACE', label: 'Workplace' },\n { value: 'LOCALITY', label: 'Locality / Neighborhood' },\n { value: 'GOVT_OFFICES', label: 'Government offices' },\n { value: 'MARKET', label: 'Market / Shops' },\n { value: 'RELIGIOUS_SPACE', label: 'Religious spaces' },\n { value: 'OTHER', label: 'Other' },\n] as const;\n\nexport const worldView: FieldGroup = {\n key: 'world_view',\n label: 'World View & Experience',\n step: 10,\n description: 'Views on social issues, equality, and discrimination.',\n fields: [\n {\n order: 1,\n key: 'viewOnAnimalCruelty',\n label: 'View on Animal Cruelty',\n type: 'single_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'strongly_against', label: 'Strongly against all forms' },\n { value: 'against_but_food', label: 'Against, but accept for food' },\n { value: 'neutral', label: 'Neutral' },\n { value: 'acceptable_in_tradition', label: 'Acceptable in tradition/culture' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n {\n order: 2,\n key: 'viewOnLgbtqStatements',\n label: 'Views on LGBTQ+ Rights',\n type: 'multi_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...lgbtqStatementOptions],\n },\n {\n order: 3,\n key: 'viewOnLgbtqOpinion',\n label: 'LGBTQ+ Opinion',\n type: 'textarea',\n step: 10,\n isOnboarding: true,\n optional: true,\n maxLength: 500,\n },\n {\n order: 4,\n key: 'viewOnTransgenderInclusion',\n label: 'Views on Transgender Inclusion',\n type: 'multi_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...transgenderStatementOptions],\n },\n {\n order: 5,\n key: 'viewOnTransgenderOpinion',\n label: 'Transgender Opinion',\n type: 'textarea',\n step: 10,\n isOnboarding: true,\n optional: true,\n maxLength: 500,\n },\n {\n order: 6,\n key: 'facingCasteDiscrimination',\n label: 'Caste Discrimination Experience',\n type: 'single_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n sensitive: true,\n options: [\n { value: 'YES_OFTEN', label: 'Yes, often' },\n { value: 'YES_SOMETIMES', label: 'Yes, sometimes' },\n { value: 'NO', label: 'No' },\n { value: 'PREFER_NOT_SAY', label: 'Prefer not to say' },\n ],\n },\n {\n order: 7,\n key: 'casteDiscriminationPlaces',\n label: 'Where Discrimination Faced',\n type: 'multi_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [...casteDiscriminationPlaceOptions],\n conditionalOn: { field: 'facingCasteDiscrimination', values: ['YES_OFTEN', 'YES_SOMETIMES'] },\n },\n {\n order: 8,\n key: 'viewOnGenderEquality',\n label: 'View on Gender Equality',\n type: 'single_select',\n step: 10,\n isOnboarding: true,\n optional: true,\n options: [\n { value: 'strong_advocate', label: 'Strong advocate for equality' },\n { value: 'supportive', label: 'Supportive' },\n { value: 'traditional_values', label: 'I prefer traditional values' },\n { value: 'no_opinion', label: 'No opinion' },\n { value: 'prefer_not_to_say', label: 'Prefer not to say' },\n ],\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"11-residence.d.ts","sourceRoot":"","sources":["../../src/profile-fields/11-residence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"11-residence.d.ts","sourceRoot":"","sources":["../../src/profile-fields/11-residence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,SAAS,EAAE,UA2CvB,CAAC"}
|
|
@@ -1,11 +1,45 @@
|
|
|
1
1
|
export const residence = {
|
|
2
|
-
key: 'residence',
|
|
2
|
+
key: 'residence',
|
|
3
|
+
label: 'Residence & Address',
|
|
4
|
+
step: 11,
|
|
3
5
|
description: 'Current, permanent, native, and ancestral addresses.',
|
|
4
6
|
fields: [
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
{
|
|
8
|
+
order: 1,
|
|
9
|
+
key: 'currentAddress',
|
|
10
|
+
label: 'Current Address',
|
|
11
|
+
type: 'address',
|
|
12
|
+
step: 11,
|
|
13
|
+
isOnboarding: true,
|
|
14
|
+
description: 'State → District → Village / Colony',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
order: 2,
|
|
18
|
+
key: 'permanentAddress',
|
|
19
|
+
label: 'Permanent Address',
|
|
20
|
+
type: 'address',
|
|
21
|
+
step: 11,
|
|
22
|
+
isOnboarding: true,
|
|
23
|
+
optional: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
order: 3,
|
|
27
|
+
key: 'homeNativePlace',
|
|
28
|
+
label: 'Home Native Place',
|
|
29
|
+
type: 'address',
|
|
30
|
+
step: 11,
|
|
31
|
+
isOnboarding: true,
|
|
32
|
+
optional: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
order: 4,
|
|
36
|
+
key: 'ancestralPlace',
|
|
37
|
+
label: 'Ancestral Place',
|
|
38
|
+
type: 'address',
|
|
39
|
+
step: 11,
|
|
40
|
+
isOnboarding: true,
|
|
41
|
+
optional: true,
|
|
42
|
+
},
|
|
9
43
|
],
|
|
10
44
|
};
|
|
11
45
|
//# sourceMappingURL=11-residence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"11-residence.js","sourceRoot":"","sources":["../../src/profile-fields/11-residence.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,GAAG,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"11-residence.js","sourceRoot":"","sources":["../../src/profile-fields/11-residence.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAe;IACnC,GAAG,EAAE,WAAW;IAChB,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,sDAAsD;IACnE,MAAM,EAAE;QACN;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,gBAAgB;YACrB,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE,qCAAqC;SACnD;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,kBAAkB;YACvB,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,iBAAiB;YACtB,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;QACD;YACE,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,gBAAgB;YACrB,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE;YACR,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC","sourcesContent":["import type { FieldGroup } from './types.js';\n\nexport const residence: FieldGroup = {\n key: 'residence',\n label: 'Residence & Address',\n step: 11,\n description: 'Current, permanent, native, and ancestral addresses.',\n fields: [\n {\n order: 1,\n key: 'currentAddress',\n label: 'Current Address',\n type: 'address',\n step: 11,\n isOnboarding: true,\n description: 'State → District → Village / Colony',\n },\n {\n order: 2,\n key: 'permanentAddress',\n label: 'Permanent Address',\n type: 'address',\n step: 11,\n isOnboarding: true,\n optional: true,\n },\n {\n order: 3,\n key: 'homeNativePlace',\n label: 'Home Native Place',\n type: 'address',\n step: 11,\n isOnboarding: true,\n optional: true,\n },\n {\n order: 4,\n key: 'ancestralPlace',\n label: 'Ancestral Place',\n type: 'address',\n step: 11,\n isOnboarding: true,\n optional: true,\n },\n ],\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"12-household.d.ts","sourceRoot":"","sources":["../../src/profile-fields/12-household.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"12-household.d.ts","sourceRoot":"","sources":["../../src/profile-fields/12-household.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAOvB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EASzB,CAAC;AAEX,eAAO,MAAM,SAAS,EAAE,UAuJvB,CAAC"}
|