11 |
Mars Colonizer Application 🚀
12 |
Tell us about yourself and get a chance to join the first colonizer mission to Mars!
13 |
Please, keep in mind that this mission is one direction only. Once on Mars, there is no turning back.
14 |
15 |
73 |
74 |
75 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/src/application/validation.ts:
--------------------------------------------------------------------------------
1 | import type { ApplicationForm } from "./types";
2 | import type { ValidationRule, ValidationRules, ErrorMessages } from "../services/validation";
3 |
4 | import { all, some, createValidator } from "../services/validation";
5 | import { contains, exists, inRange, yearsOf } from "./utils";
6 | import {
7 | MIN_ALLOWED_AGE_YEARS as MIN_AGE,
8 | MAX_ALLOWED_AGE_YEARS as MAX_AGE,
9 | DEFAULT_SPECIALTIES,
10 | MAX_SPECIALTY_LENGTH,
11 | MIN_EXPERIENCE_YEARS,
12 | MIN_PASSWORD_SIZE,
13 | } from "./const";
14 |
15 | type Rule = ValidationRule