export type ContractType = 'CDI' | 'CDD' | 'STAGE' | 'ALTERNANCE' | 'AUTRE' export type FamilySituation = 'CELIBATAIRE' | 'MARIE' | 'PACSE' | 'DIVORCE' | 'VEUF' export type UserData = { id: number '@id'?: string username: string roles: string[] avatarUrl?: string | null apiToken?: string | null // HR / absence management isEmployee?: boolean hireDate?: string | null endDate?: string | null contractType?: ContractType | null workTimeRatio?: number annualLeaveDays?: number referencePeriodStart?: string initialLeaveBalance?: number familySituation?: FamilySituation | null nbChildren?: number } export type UserWrite = { username: string plainPassword?: string roles: string[] // HR / absence management isEmployee?: boolean hireDate?: string | null endDate?: string | null contractType?: ContractType | null workTimeRatio?: number annualLeaveDays?: number referencePeriodStart?: string initialLeaveBalance?: number familySituation?: FamilySituation | null nbChildren?: number }