dating-schema 0.30.0 → 0.31.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/profile.js CHANGED
@@ -466,46 +466,7 @@ const rashiOpts = opts([
466
466
  'dont_know',
467
467
  'prefer_not_to_say',
468
468
  ]);
469
- const hometownStateOpts = opts([
470
- 'andhra_pradesh',
471
- 'arunachal_pradesh',
472
- 'assam',
473
- 'bihar',
474
- 'chhattisgarh',
475
- 'goa',
476
- 'gujarat',
477
- 'haryana',
478
- 'himachal_pradesh',
479
- 'jharkhand',
480
- 'karnataka',
481
- 'kerala',
482
- 'madhya_pradesh',
483
- 'maharashtra',
484
- 'manipur',
485
- 'meghalaya',
486
- 'mizoram',
487
- 'nagaland',
488
- 'odisha',
489
- 'punjab',
490
- 'rajasthan',
491
- 'sikkim',
492
- 'tamil_nadu',
493
- 'telangana',
494
- 'tripura',
495
- 'uttar_pradesh',
496
- 'uttarakhand',
497
- 'west_bengal',
498
- 'delhi',
499
- 'jammu_kashmir',
500
- 'ladakh',
501
- 'chandigarh',
502
- 'puducherry',
503
- 'andaman_nicobar',
504
- 'dadra_nagar_haveli',
505
- 'lakshadweep',
506
- 'international',
507
- 'prefer_not_to_say',
508
- ]);
469
+ // hometownState uses z.string() — no enum needed (values come from area-entity API)
509
470
  // ─── 04. What I'm Looking For ────────────────────────────────────────────────
510
471
  const relationshipRoleOpts = opts([
511
472
  'mentor',
@@ -1981,7 +1942,7 @@ export const fullProfileSchema = z.object({
1981
1942
  numberOfChildren: z.number().int().min(0).max(10).optional(),
1982
1943
  previousMarriages: z.number().int().min(0).max(5).optional(),
1983
1944
  nativePlace: z.string().trim().max(100).optional(),
1984
- hometownState: hometownStateOpts.optional(),
1945
+ hometownState: z.string().optional(),
1985
1946
  hometownStateId: z.string().optional(),
1986
1947
  hometownDistrict: z.string().trim().max(100).optional(),
1987
1948
  hometownDistrictId: z.string().optional(),