40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
export type ContractType = 'CDI' | 'CDD' | 'STAGE' | 'ALTERNANCE' | 'AUTRE'
|
|
|
|
export type UserData = {
|
|
id: number
|
|
'@id'?: string
|
|
username: string
|
|
firstName?: string | null
|
|
lastName?: string | null
|
|
roles: string[]
|
|
effectivePermissions?: 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
|
|
}
|
|
|
|
export type UserWrite = {
|
|
username: string
|
|
firstName?: string | null
|
|
lastName?: string | null
|
|
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
|
|
}
|