Files
Lesstime/frontend/services/dto/user-data.ts
T
Matthieu a18e1f575f
Pull Request — Quality gate / Backend (PHP CS + PHPUnit) (pull_request) Successful in 1m11s
Pull Request — Quality gate / Frontend (build) (pull_request) Successful in 1m17s
refactor(client-portal) : remove client portal feature entirely
- drop ClientPortal module, ClientTicket entity, ROLE_CLIENT and all couplings (Task, TaskDocument, User, Notification) back to an internal-only model

- migration drops client_ticket / user_allowed_projects / related FK columns and removes leftover external client accounts (would otherwise be promoted to ROLE_USER)

- remove client-portal frontend module, admin tickets tab, user portal section, portal nav item and portal/clientTicket i18n keys

- fix directory nav icon (invalid mdi:contact-multiple-outline -> mdi:card-account-details-outline)

- add 'make sync-permissions' target, wire it into install/db-reset and the prod deploy script
2026-06-22 09:49:44 +02:00

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
}