Files
eu/lib/citizenship/types.ts
T

41 lines
1.1 KiB
TypeScript

export const CITIZENSHIP_APPLICATION_STATUSES = ["PENDING", "APPROVED", "REJECTED"] as const;
export type CitizenshipApplicationStatus = typeof CITIZENSHIP_APPLICATION_STATUSES[number];
export const APPLICATION_TYPES = ["PREVIOUS_CITIZENSHIP", "NATURALIZATION"] as const;
export type ApplicationType = typeof APPLICATION_TYPES[number];
export const EYE_COLORS = [
"Blue",
"Green",
"Brown",
"Hazel",
"Gray",
"Amber",
] as const;
export type EyeColor = typeof EYE_COLORS[number];
export type CitizenshipApplication = {
id: string;
userId: string;
surname: string;
givenNames: string;
sex: "MALE" | "FEMALE";
birthDate: Date;
applicationType: ApplicationType;
previousCountry: string | null;
previousRegion: string | null;
naturalizationReason: string | null;
address: string;
height: string;
eyeColor: string;
status: CitizenshipApplicationStatus;
rejectionReason: string | null;
reviewedAt: Date | null;
reviewedBy: string | null;
createdAt: Date;
updatedAt: Date;
};
export type CitizenshipApplicationWithWarning = CitizenshipApplication & {
nameMismatch: boolean
}