20 lines
405 B
TypeScript
20 lines
405 B
TypeScript
import type { Project } from './project'
|
|
|
|
export type UserData = {
|
|
id: number
|
|
'@id'?: string
|
|
username: string
|
|
roles: string[]
|
|
client?: { id: number; name: string } | null
|
|
allowedProjects?: Project[]
|
|
avatarUrl?: string | null
|
|
}
|
|
|
|
export type UserWrite = {
|
|
username: string
|
|
password?: string
|
|
roles: string[]
|
|
client?: string | null
|
|
allowedProjects?: string[]
|
|
}
|