dating-schema 0.49.1 → 0.51.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/common.d.ts +26 -3
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +13 -2
- package/dist/common.js.map +1 -1
- package/dist/onboarding-progress.js +1 -1
- package/dist/onboarding-progress.js.map +1 -1
- package/dist/profile-fields/01-hero-identity.d.ts.map +1 -1
- package/dist/profile-fields/01-hero-identity.js +25 -1
- package/dist/profile-fields/01-hero-identity.js.map +1 -1
- package/dist/profile.d.ts +44 -36
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +24 -87
- package/dist/profile.js.map +1 -1
- package/dist/responses/common.d.ts +1 -1
- package/dist/responses/common.d.ts.map +1 -1
- package/dist/responses/common.js.map +1 -1
- package/dist/responses/profile.d.ts +2 -0
- package/dist/responses/profile.d.ts.map +1 -1
- package/dist/responses/profile.js.map +1 -1
- package/package.json +4 -1
package/dist/profile.d.ts
CHANGED
|
@@ -18,10 +18,9 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
18
18
|
displayName: z.ZodOptional<z.ZodString>;
|
|
19
19
|
dateOfBirth: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
20
20
|
gender: z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
non_binary: "non_binary";
|
|
22
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
23
21
|
man: "man";
|
|
24
22
|
woman: "woman";
|
|
23
|
+
non_binary: "non_binary";
|
|
25
24
|
trans_man: "trans_man";
|
|
26
25
|
trans_woman: "trans_woman";
|
|
27
26
|
genderfluid: "genderfluid";
|
|
@@ -35,9 +34,12 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
35
34
|
two_spirit: "two_spirit";
|
|
36
35
|
hijra: "hijra";
|
|
37
36
|
other: "other";
|
|
37
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
38
38
|
}>>;
|
|
39
39
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
40
40
|
phoneVisible: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
personalPhone: z.ZodOptional<z.ZodString>;
|
|
42
|
+
familyPhone: z.ZodOptional<z.ZodString>;
|
|
41
43
|
guardianContact: z.ZodOptional<z.ZodObject<{
|
|
42
44
|
name: z.ZodOptional<z.ZodString>;
|
|
43
45
|
phoneNumber: z.ZodString;
|
|
@@ -57,8 +59,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
57
59
|
visible: z.ZodDefault<z.ZodBoolean>;
|
|
58
60
|
}, z.core.$strip>>;
|
|
59
61
|
pronouns: z.ZodOptional<z.ZodEnum<{
|
|
60
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
61
62
|
other: "other";
|
|
63
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
62
64
|
he_him: "he_him";
|
|
63
65
|
she_her: "she_her";
|
|
64
66
|
they_them: "they_them";
|
|
@@ -292,8 +294,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
292
294
|
very_dark: "very_dark";
|
|
293
295
|
}>>;
|
|
294
296
|
familyReligion: z.ZodOptional<z.ZodEnum<{
|
|
295
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
296
297
|
other: "other";
|
|
298
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
297
299
|
spiritual: "spiritual";
|
|
298
300
|
hindu: "hindu";
|
|
299
301
|
muslim_sunni: "muslim_sunni";
|
|
@@ -316,8 +318,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
316
318
|
inter_religion: "inter_religion";
|
|
317
319
|
}>>;
|
|
318
320
|
personalReligion: z.ZodOptional<z.ZodEnum<{
|
|
319
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
320
321
|
other: "other";
|
|
322
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
321
323
|
spiritual: "spiritual";
|
|
322
324
|
hindu: "hindu";
|
|
323
325
|
muslim_sunni: "muslim_sunni";
|
|
@@ -461,8 +463,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
461
463
|
open_distance: "open_distance";
|
|
462
464
|
}>>;
|
|
463
465
|
profession: z.ZodOptional<z.ZodEnum<{
|
|
464
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
465
466
|
other: "other";
|
|
467
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
466
468
|
it_software: "it_software";
|
|
467
469
|
engineering: "engineering";
|
|
468
470
|
healthcare_doctor: "healthcare_doctor";
|
|
@@ -515,8 +517,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
515
517
|
its_complicated: "its_complicated";
|
|
516
518
|
}>>;
|
|
517
519
|
diet: z.ZodOptional<z.ZodEnum<{
|
|
518
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
519
520
|
other: "other";
|
|
521
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
520
522
|
vegetarian: "vegetarian";
|
|
521
523
|
vegan: "vegan";
|
|
522
524
|
eggetarian: "eggetarian";
|
|
@@ -632,10 +634,9 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
632
634
|
hometownDistrictId: z.ZodOptional<z.ZodString>;
|
|
633
635
|
myStory: z.ZodOptional<z.ZodString>;
|
|
634
636
|
preferredGenders: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
635
|
-
non_binary: "non_binary";
|
|
636
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
637
637
|
man: "man";
|
|
638
638
|
woman: "woman";
|
|
639
|
+
non_binary: "non_binary";
|
|
639
640
|
trans_man: "trans_man";
|
|
640
641
|
trans_woman: "trans_woman";
|
|
641
642
|
genderfluid: "genderfluid";
|
|
@@ -649,6 +650,7 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
649
650
|
two_spirit: "two_spirit";
|
|
650
651
|
hijra: "hijra";
|
|
651
652
|
other: "other";
|
|
653
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
652
654
|
}>>>;
|
|
653
655
|
horoscopeMatchRequired: z.ZodOptional<z.ZodString>;
|
|
654
656
|
varna: z.ZodOptional<z.ZodString>;
|
|
@@ -1033,8 +1035,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1033
1035
|
once_a_year: "once_a_year";
|
|
1034
1036
|
}>>;
|
|
1035
1037
|
livingSituation: z.ZodOptional<z.ZodEnum<{
|
|
1036
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1037
1038
|
other: "other";
|
|
1039
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1038
1040
|
alone: "alone";
|
|
1039
1041
|
roommates: "roommates";
|
|
1040
1042
|
family: "family";
|
|
@@ -1241,8 +1243,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1241
1243
|
mixed: "mixed";
|
|
1242
1244
|
}>>;
|
|
1243
1245
|
knowledgeAreas: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1244
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1245
1246
|
other: "other";
|
|
1247
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1246
1248
|
languages: "languages";
|
|
1247
1249
|
science: "science";
|
|
1248
1250
|
history: "history";
|
|
@@ -1480,8 +1482,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1480
1482
|
}>>;
|
|
1481
1483
|
parentsContactNumber: z.ZodOptional<z.ZodString>;
|
|
1482
1484
|
fatherOccupation: z.ZodOptional<z.ZodEnum<{
|
|
1483
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1484
1485
|
other: "other";
|
|
1486
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1485
1487
|
it_software: "it_software";
|
|
1486
1488
|
engineering: "engineering";
|
|
1487
1489
|
science_research: "science_research";
|
|
@@ -1504,8 +1506,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1504
1506
|
deceased: "deceased";
|
|
1505
1507
|
}>>;
|
|
1506
1508
|
motherOccupation: z.ZodOptional<z.ZodEnum<{
|
|
1507
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1508
1509
|
other: "other";
|
|
1510
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1509
1511
|
it_software: "it_software";
|
|
1510
1512
|
engineering: "engineering";
|
|
1511
1513
|
science_research: "science_research";
|
|
@@ -1638,8 +1640,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1638
1640
|
employer: "employer";
|
|
1639
1641
|
}>>;
|
|
1640
1642
|
citizenship: z.ZodOptional<z.ZodEnum<{
|
|
1641
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1642
1643
|
other: "other";
|
|
1644
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1643
1645
|
citizen: "citizen";
|
|
1644
1646
|
permanent_resident: "permanent_resident";
|
|
1645
1647
|
work_visa: "work_visa";
|
|
@@ -1670,8 +1672,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1670
1672
|
}>>;
|
|
1671
1673
|
grewUpIn: z.ZodOptional<z.ZodString>;
|
|
1672
1674
|
countryOfResidence: z.ZodOptional<z.ZodEnum<{
|
|
1673
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1674
1675
|
other: "other";
|
|
1676
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1675
1677
|
india: "india";
|
|
1676
1678
|
usa: "usa";
|
|
1677
1679
|
uk: "uk";
|
|
@@ -1690,8 +1692,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1690
1692
|
oman: "oman";
|
|
1691
1693
|
}>>;
|
|
1692
1694
|
visaType: z.ZodOptional<z.ZodEnum<{
|
|
1693
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1694
1695
|
other: "other";
|
|
1696
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1695
1697
|
student: "student";
|
|
1696
1698
|
not_applicable: "not_applicable";
|
|
1697
1699
|
citizen: "citizen";
|
|
@@ -1715,8 +1717,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1715
1717
|
chronic_condition: "chronic_condition";
|
|
1716
1718
|
}>>;
|
|
1717
1719
|
chronicCondition: z.ZodOptional<z.ZodEnum<{
|
|
1718
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1719
1720
|
other: "other";
|
|
1721
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1720
1722
|
mental_health: "mental_health";
|
|
1721
1723
|
none: "none";
|
|
1722
1724
|
multiple: "multiple";
|
|
@@ -1735,8 +1737,8 @@ export declare const fullProfileSchema: z.ZodObject<{
|
|
|
1735
1737
|
currently_treating: "currently_treating";
|
|
1736
1738
|
}>>;
|
|
1737
1739
|
neurodiversity: z.ZodOptional<z.ZodEnum<{
|
|
1738
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
1739
1740
|
other: "other";
|
|
1741
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
1740
1742
|
multiple: "multiple";
|
|
1741
1743
|
neurotypical: "neurotypical";
|
|
1742
1744
|
adhd: "adhd";
|
|
@@ -1929,6 +1931,8 @@ export declare const createProfileSchema: z.ZodObject<{
|
|
|
1929
1931
|
gender: z.ZodString;
|
|
1930
1932
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1931
1933
|
phoneVisible: z.ZodOptional<z.ZodBoolean>;
|
|
1934
|
+
personalPhone: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
familyPhone: z.ZodOptional<z.ZodString>;
|
|
1932
1936
|
guardianContact: z.ZodOptional<z.ZodObject<{
|
|
1933
1937
|
name: z.ZodOptional<z.ZodString>;
|
|
1934
1938
|
phoneNumber: z.ZodString;
|
|
@@ -2079,10 +2083,9 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2079
2083
|
displayName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2080
2084
|
dateOfBirth: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
2081
2085
|
gender: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
2082
|
-
non_binary: "non_binary";
|
|
2083
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2084
2086
|
man: "man";
|
|
2085
2087
|
woman: "woman";
|
|
2088
|
+
non_binary: "non_binary";
|
|
2086
2089
|
trans_man: "trans_man";
|
|
2087
2090
|
trans_woman: "trans_woman";
|
|
2088
2091
|
genderfluid: "genderfluid";
|
|
@@ -2096,9 +2099,12 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2096
2099
|
two_spirit: "two_spirit";
|
|
2097
2100
|
hijra: "hijra";
|
|
2098
2101
|
other: "other";
|
|
2102
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2099
2103
|
}>>>;
|
|
2100
2104
|
phoneNumber: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2101
2105
|
phoneVisible: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2106
|
+
personalPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2107
|
+
familyPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2102
2108
|
guardianContact: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2103
2109
|
name: z.ZodOptional<z.ZodString>;
|
|
2104
2110
|
phoneNumber: z.ZodString;
|
|
@@ -2118,8 +2124,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2118
2124
|
visible: z.ZodDefault<z.ZodBoolean>;
|
|
2119
2125
|
}, z.core.$strip>>>;
|
|
2120
2126
|
pronouns: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
2121
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2122
2127
|
other: "other";
|
|
2128
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2123
2129
|
he_him: "he_him";
|
|
2124
2130
|
she_her: "she_her";
|
|
2125
2131
|
they_them: "they_them";
|
|
@@ -2353,8 +2359,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2353
2359
|
very_dark: "very_dark";
|
|
2354
2360
|
}>>>;
|
|
2355
2361
|
familyReligion: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
2356
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2357
2362
|
other: "other";
|
|
2363
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2358
2364
|
spiritual: "spiritual";
|
|
2359
2365
|
hindu: "hindu";
|
|
2360
2366
|
muslim_sunni: "muslim_sunni";
|
|
@@ -2377,8 +2383,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2377
2383
|
inter_religion: "inter_religion";
|
|
2378
2384
|
}>>>;
|
|
2379
2385
|
personalReligion: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
2380
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2381
2386
|
other: "other";
|
|
2387
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2382
2388
|
spiritual: "spiritual";
|
|
2383
2389
|
hindu: "hindu";
|
|
2384
2390
|
muslim_sunni: "muslim_sunni";
|
|
@@ -2522,8 +2528,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2522
2528
|
open_distance: "open_distance";
|
|
2523
2529
|
}>>>;
|
|
2524
2530
|
profession: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
2525
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2526
2531
|
other: "other";
|
|
2532
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2527
2533
|
it_software: "it_software";
|
|
2528
2534
|
engineering: "engineering";
|
|
2529
2535
|
healthcare_doctor: "healthcare_doctor";
|
|
@@ -2576,8 +2582,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2576
2582
|
its_complicated: "its_complicated";
|
|
2577
2583
|
}>>>;
|
|
2578
2584
|
diet: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
2579
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2580
2585
|
other: "other";
|
|
2586
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2581
2587
|
vegetarian: "vegetarian";
|
|
2582
2588
|
vegan: "vegan";
|
|
2583
2589
|
eggetarian: "eggetarian";
|
|
@@ -2693,10 +2699,9 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2693
2699
|
hometownDistrictId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2694
2700
|
myStory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2695
2701
|
preferredGenders: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2696
|
-
non_binary: "non_binary";
|
|
2697
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
2698
2702
|
man: "man";
|
|
2699
2703
|
woman: "woman";
|
|
2704
|
+
non_binary: "non_binary";
|
|
2700
2705
|
trans_man: "trans_man";
|
|
2701
2706
|
trans_woman: "trans_woman";
|
|
2702
2707
|
genderfluid: "genderfluid";
|
|
@@ -2710,6 +2715,7 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
2710
2715
|
two_spirit: "two_spirit";
|
|
2711
2716
|
hijra: "hijra";
|
|
2712
2717
|
other: "other";
|
|
2718
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
2713
2719
|
}>>>>;
|
|
2714
2720
|
horoscopeMatchRequired: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2715
2721
|
varna: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -3094,8 +3100,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3094
3100
|
once_a_year: "once_a_year";
|
|
3095
3101
|
}>>>;
|
|
3096
3102
|
livingSituation: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3097
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3098
3103
|
other: "other";
|
|
3104
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3099
3105
|
alone: "alone";
|
|
3100
3106
|
roommates: "roommates";
|
|
3101
3107
|
family: "family";
|
|
@@ -3302,8 +3308,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3302
3308
|
mixed: "mixed";
|
|
3303
3309
|
}>>>;
|
|
3304
3310
|
knowledgeAreas: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3305
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3306
3311
|
other: "other";
|
|
3312
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3307
3313
|
languages: "languages";
|
|
3308
3314
|
science: "science";
|
|
3309
3315
|
history: "history";
|
|
@@ -3541,8 +3547,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3541
3547
|
}>>>;
|
|
3542
3548
|
parentsContactNumber: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3543
3549
|
fatherOccupation: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3544
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3545
3550
|
other: "other";
|
|
3551
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3546
3552
|
it_software: "it_software";
|
|
3547
3553
|
engineering: "engineering";
|
|
3548
3554
|
science_research: "science_research";
|
|
@@ -3565,8 +3571,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3565
3571
|
deceased: "deceased";
|
|
3566
3572
|
}>>>;
|
|
3567
3573
|
motherOccupation: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3568
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3569
3574
|
other: "other";
|
|
3575
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3570
3576
|
it_software: "it_software";
|
|
3571
3577
|
engineering: "engineering";
|
|
3572
3578
|
science_research: "science_research";
|
|
@@ -3699,8 +3705,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3699
3705
|
employer: "employer";
|
|
3700
3706
|
}>>>;
|
|
3701
3707
|
citizenship: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3702
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3703
3708
|
other: "other";
|
|
3709
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3704
3710
|
citizen: "citizen";
|
|
3705
3711
|
permanent_resident: "permanent_resident";
|
|
3706
3712
|
work_visa: "work_visa";
|
|
@@ -3731,8 +3737,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3731
3737
|
}>>>;
|
|
3732
3738
|
grewUpIn: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3733
3739
|
countryOfResidence: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3734
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3735
3740
|
other: "other";
|
|
3741
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3736
3742
|
india: "india";
|
|
3737
3743
|
usa: "usa";
|
|
3738
3744
|
uk: "uk";
|
|
@@ -3751,8 +3757,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3751
3757
|
oman: "oman";
|
|
3752
3758
|
}>>>;
|
|
3753
3759
|
visaType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3754
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3755
3760
|
other: "other";
|
|
3761
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3756
3762
|
student: "student";
|
|
3757
3763
|
not_applicable: "not_applicable";
|
|
3758
3764
|
citizen: "citizen";
|
|
@@ -3776,8 +3782,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3776
3782
|
chronic_condition: "chronic_condition";
|
|
3777
3783
|
}>>>;
|
|
3778
3784
|
chronicCondition: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3779
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3780
3785
|
other: "other";
|
|
3786
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3781
3787
|
mental_health: "mental_health";
|
|
3782
3788
|
none: "none";
|
|
3783
3789
|
multiple: "multiple";
|
|
@@ -3796,8 +3802,8 @@ export declare const updateProfileSchema: z.ZodObject<{
|
|
|
3796
3802
|
currently_treating: "currently_treating";
|
|
3797
3803
|
}>>>;
|
|
3798
3804
|
neurodiversity: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
3799
|
-
prefer_not_to_say: "prefer_not_to_say";
|
|
3800
3805
|
other: "other";
|
|
3806
|
+
prefer_not_to_say: "prefer_not_to_say";
|
|
3801
3807
|
multiple: "multiple";
|
|
3802
3808
|
neurotypical: "neurotypical";
|
|
3803
3809
|
adhd: "adhd";
|
|
@@ -3986,6 +3992,8 @@ export declare const onboardingFormSchema: z.ZodObject<{
|
|
|
3986
3992
|
gender: z.ZodString;
|
|
3987
3993
|
phoneNumber: z.ZodDefault<z.ZodString>;
|
|
3988
3994
|
phoneVisible: z.ZodDefault<z.ZodBoolean>;
|
|
3995
|
+
personalPhone: z.ZodDefault<z.ZodString>;
|
|
3996
|
+
familyPhone: z.ZodDefault<z.ZodString>;
|
|
3989
3997
|
guardianPhone: z.ZodDefault<z.ZodString>;
|
|
3990
3998
|
guardianRelation: z.ZodDefault<z.ZodString>;
|
|
3991
3999
|
guardianVisible: z.ZodDefault<z.ZodBoolean>;
|
package/dist/profile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA09DxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC;AAChE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAIpF;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/profile.js
CHANGED
|
@@ -6,31 +6,18 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module dating-schema/profile
|
|
8
8
|
*/
|
|
9
|
+
import { GENDER_VALUES, OCCUPATION_VALUES, RELIGION_VALUES } from 'udp-schema';
|
|
9
10
|
import { z } from 'zod';
|
|
10
11
|
import { photoSchema } from './common.js';
|
|
11
12
|
// ─── Helper: extract option values from field config ─────────────────────────
|
|
12
13
|
/** Build a z.enum() from a field config's options array values. */
|
|
13
14
|
const opts = (values) => z.enum(values);
|
|
14
15
|
// ─── 01. Hero & Identity ─────────────────────────────────────────────────────
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'trans_woman',
|
|
21
|
-
'genderfluid',
|
|
22
|
-
'genderqueer',
|
|
23
|
-
'agender',
|
|
24
|
-
'bigender',
|
|
25
|
-
'pangender',
|
|
26
|
-
'androgynous',
|
|
27
|
-
'intersex',
|
|
28
|
-
'gender_nonconforming',
|
|
29
|
-
'two_spirit',
|
|
30
|
-
'hijra',
|
|
31
|
-
'other',
|
|
32
|
-
'prefer_not_to_say',
|
|
33
|
-
]);
|
|
16
|
+
/** Gender — imported from udp-schema/shared-enums to keep the
|
|
17
|
+
* 17-value enum in lockstep with UDP step-01 + future service
|
|
18
|
+
* profiles. NEVER duplicate the values here — `udp-schema`'s
|
|
19
|
+
* `GENDER_VALUES` is the canonical source. */
|
|
20
|
+
const genderOpts = z.enum(GENDER_VALUES);
|
|
34
21
|
const pronounsOpts = opts([
|
|
35
22
|
'he_him',
|
|
36
23
|
'she_her',
|
|
@@ -162,30 +149,9 @@ const complexionOpts = opts([
|
|
|
162
149
|
'very_dark',
|
|
163
150
|
'prefer_not_to_say',
|
|
164
151
|
]);
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
'muslim_shia',
|
|
169
|
-
'muslim_sufi',
|
|
170
|
-
'muslim_other',
|
|
171
|
-
'christian_catholic',
|
|
172
|
-
'christian_protestant',
|
|
173
|
-
'christian_other',
|
|
174
|
-
'sikh',
|
|
175
|
-
'jain_digambar',
|
|
176
|
-
'jain_shwetambar',
|
|
177
|
-
'buddhist',
|
|
178
|
-
'parsi_zoroastrian',
|
|
179
|
-
'jewish',
|
|
180
|
-
'bahai',
|
|
181
|
-
'spiritual',
|
|
182
|
-
'atheist',
|
|
183
|
-
'agnostic',
|
|
184
|
-
'no_religion',
|
|
185
|
-
'inter_religion',
|
|
186
|
-
'other',
|
|
187
|
-
'prefer_not_to_say',
|
|
188
|
-
]);
|
|
152
|
+
/** Religion — imported from udp-schema/shared-enums. 22 denominated
|
|
153
|
+
* values shared with UDP step-01's familyReligion + personalReligion. */
|
|
154
|
+
const religionOpts = z.enum(RELIGION_VALUES);
|
|
189
155
|
const religionPracticeLevelOpts = opts([
|
|
190
156
|
'devout',
|
|
191
157
|
'weekly',
|
|
@@ -306,48 +272,10 @@ const institutionTierOpts = opts([
|
|
|
306
272
|
'open_distance',
|
|
307
273
|
'prefer_not_to_say',
|
|
308
274
|
]);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
'healthcare_nursing',
|
|
314
|
-
'healthcare_pharma',
|
|
315
|
-
'psychology_therapy',
|
|
316
|
-
'education_teaching',
|
|
317
|
-
'science_research',
|
|
318
|
-
'finance_banking',
|
|
319
|
-
'chartered_accountant',
|
|
320
|
-
'business_management',
|
|
321
|
-
'arts_entertainment',
|
|
322
|
-
'media_communication',
|
|
323
|
-
'design_creative',
|
|
324
|
-
'civil_services',
|
|
325
|
-
'government_public',
|
|
326
|
-
'defence_military',
|
|
327
|
-
'police_law_enforcement',
|
|
328
|
-
'legal',
|
|
329
|
-
'skilled_trades',
|
|
330
|
-
'transport_logistics',
|
|
331
|
-
'hospitality_travel',
|
|
332
|
-
'beauty_wellness',
|
|
333
|
-
'agriculture_farming',
|
|
334
|
-
'real_estate',
|
|
335
|
-
'retail_ecommerce',
|
|
336
|
-
'manufacturing',
|
|
337
|
-
'merchant_navy',
|
|
338
|
-
'ngo_social_work',
|
|
339
|
-
'religious_spiritual',
|
|
340
|
-
'freelancer_gig',
|
|
341
|
-
'content_creator',
|
|
342
|
-
'self_employed',
|
|
343
|
-
'student',
|
|
344
|
-
'homemaker',
|
|
345
|
-
'retired',
|
|
346
|
-
'not_working',
|
|
347
|
-
'differently_abled_pension',
|
|
348
|
-
'other',
|
|
349
|
-
'prefer_not_to_say',
|
|
350
|
-
]);
|
|
275
|
+
/** Profession / occupation — imported from udp-schema/shared-enums.
|
|
276
|
+
* 39-value taxonomy shared with UDP step-07's `occupation` +
|
|
277
|
+
* `dreamOccupation`. */
|
|
278
|
+
const professionOpts = z.enum(OCCUPATION_VALUES);
|
|
351
279
|
const relationshipStatusOpts = opts([
|
|
352
280
|
'never_married',
|
|
353
281
|
'dating',
|
|
@@ -465,7 +393,7 @@ const rashiOpts = opts([
|
|
|
465
393
|
'dont_know',
|
|
466
394
|
'prefer_not_to_say',
|
|
467
395
|
]);
|
|
468
|
-
// hometownState uses z.string() — no enum needed (values come from area
|
|
396
|
+
// hometownState uses z.string() — no enum needed (values come from area search API)
|
|
469
397
|
// ─── 04. What I'm Looking For ────────────────────────────────────────────────
|
|
470
398
|
const relationshipRoleOpts = opts([
|
|
471
399
|
'mentor',
|
|
@@ -1886,7 +1814,7 @@ const areaRefSchema = z.object({
|
|
|
1886
1814
|
const currentLocationSchema = z.object({
|
|
1887
1815
|
displayName: z.string().optional(),
|
|
1888
1816
|
country: areaRefSchema.optional(),
|
|
1889
|
-
// Full area hierarchy — each { _id, name, type } traces back to
|
|
1817
|
+
// Full area hierarchy — each { _id, name, type } traces back to Area in location-db
|
|
1890
1818
|
state: areaRefSchema.optional(),
|
|
1891
1819
|
district: areaRefSchema.optional(),
|
|
1892
1820
|
areaType: z.enum(['RURAL', 'URBAN']).optional(),
|
|
@@ -1918,8 +1846,11 @@ export const fullProfileSchema = z.object({
|
|
|
1918
1846
|
displayName: z.string().trim().max(50).optional(),
|
|
1919
1847
|
dateOfBirth: z.coerce.date().optional(),
|
|
1920
1848
|
gender: genderOpts.optional(),
|
|
1849
|
+
// Phone: phoneNumber kept one release as alias of personalPhone; familyPhone is new dating-only field.
|
|
1921
1850
|
phoneNumber: z.string().trim().max(15).optional(),
|
|
1922
1851
|
phoneVisible: z.boolean().optional(),
|
|
1852
|
+
personalPhone: z.string().trim().max(15).optional(),
|
|
1853
|
+
familyPhone: z.string().trim().max(15).optional(),
|
|
1923
1854
|
guardianContact: z
|
|
1924
1855
|
.object({
|
|
1925
1856
|
name: z.string().trim().max(50).optional(),
|
|
@@ -2234,8 +2165,11 @@ export const createProfileSchema = z.object({
|
|
|
2234
2165
|
displayName: z.string().trim().max(50),
|
|
2235
2166
|
dateOfBirth: z.coerce.date(),
|
|
2236
2167
|
gender: z.string(),
|
|
2168
|
+
// Phone: phoneNumber kept one release as alias of personalPhone; familyPhone is new dating-only field.
|
|
2237
2169
|
phoneNumber: z.string().trim().max(15).optional(),
|
|
2238
2170
|
phoneVisible: z.boolean().optional(),
|
|
2171
|
+
personalPhone: z.string().trim().max(15).optional(),
|
|
2172
|
+
familyPhone: z.string().trim().max(15).optional(),
|
|
2239
2173
|
guardianContact: z
|
|
2240
2174
|
.object({
|
|
2241
2175
|
name: z.string().trim().max(50).optional(),
|
|
@@ -2347,8 +2281,11 @@ export const onboardingFormSchema = z.object({
|
|
|
2347
2281
|
// String fields (enums validated at submit, not in form)
|
|
2348
2282
|
dateOfBirth: z.string(),
|
|
2349
2283
|
gender: z.string(),
|
|
2284
|
+
// Phone: phoneNumber kept one release as alias of personalPhone; familyPhone is new dating-only field.
|
|
2350
2285
|
phoneNumber: z.string().default(''),
|
|
2351
2286
|
phoneVisible: z.boolean().default(false),
|
|
2287
|
+
personalPhone: z.string().default(''),
|
|
2288
|
+
familyPhone: z.string().default(''),
|
|
2352
2289
|
guardianPhone: z.string().default(''),
|
|
2353
2290
|
guardianRelation: z.string().default(''),
|
|
2354
2291
|
guardianVisible: z.boolean().default(false),
|