Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
- Nouvelle entité InterimAgency (table interim_agencies, API lecture seule) - Sélecteur agence conditionnel dans les formulaires création employé et ajout contrat - Affichage "Intérim (NomAgence)" sur la liste employés et l'historique contrat - Date de fin obligatoire côté frontend pour CDD et INTERIM (aligné backend) - Renommage "Types d'absence" → "Types de statut" (sidebar, page, titre) - Renommage en-tête "Absence" → "Statut" sur les vues jour heures et conducteurs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import type { Site } from './site'
|
|
import type { Contract } from './contract'
|
|
|
|
export type ContractSuspension = {
|
|
id: number
|
|
startDate: string
|
|
endDate?: string | null
|
|
comment?: string | null
|
|
}
|
|
|
|
export type ContractHistoryItem = {
|
|
contractId?: number | null
|
|
contractName?: string | null
|
|
weeklyHours?: number | null
|
|
contractNature: 'CDI' | 'CDD' | 'INTERIM'
|
|
startDate: string
|
|
endDate?: string | null
|
|
comment?: string | null
|
|
periodId?: number | null
|
|
suspensions?: ContractSuspension[]
|
|
isDriver?: boolean
|
|
workDaysHours?: Record<number, number> | null
|
|
interimAgencyId?: number | null
|
|
interimAgencyName?: string | null
|
|
}
|
|
|
|
export type Employee = {
|
|
id: number
|
|
firstName: string
|
|
lastName: string
|
|
site: Site
|
|
contract?: Contract | null
|
|
hasActiveContract?: boolean
|
|
isDriver?: boolean
|
|
currentContractNature?: 'CDI' | 'CDD' | 'INTERIM'
|
|
currentContractStartDate?: string | null
|
|
currentContractEndDate?: string | null
|
|
contractHistory?: ContractHistoryItem[]
|
|
displayOrder?: number
|
|
entryDate?: string | null
|
|
currentSuspensions?: ContractSuspension[]
|
|
currentInterimAgencyId?: number | null
|
|
currentInterimAgencyName?: string | null
|
|
}
|