17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
export type UserData = {
|
|
id: number
|
|
'@id'?: string
|
|
username: string
|
|
roles: string[]
|
|
client?: { '@id'?: string; id: number; name: string } | null
|
|
allowedProjects?: { '@id'?: string; id: number; name: string }[]
|
|
}
|
|
|
|
export type UserWrite = {
|
|
username: string
|
|
password?: string
|
|
roles: string[]
|
|
client?: string | null
|
|
allowedProjects?: string[]
|
|
}
|