ff-admin/src/viewmodels/admin/user/user.models.ts

30 lines
619 B
TypeScript
Raw Normal View History

2024-09-17 16:44:02 +02:00
import type { PermissionObject } from "@/types/permissionTypes";
2024-09-15 13:52:54 +02:00
import type { RoleViewModel } from "./role.models";
2024-09-01 14:54:49 +02:00
export interface UserViewModel {
2025-01-29 08:53:42 +01:00
id: string;
2024-09-01 14:54:49 +02:00
username: string;
mail: string;
firstname: string;
lastname: string;
2024-10-07 18:09:18 +02:00
isOwner: boolean;
2024-09-01 14:54:49 +02:00
permissions: PermissionObject;
roles: Array<RoleViewModel>;
permissions_total: PermissionObject;
}
2024-09-02 15:57:03 +02:00
2024-09-15 13:52:54 +02:00
export interface CreateUserViewModel {
username: string;
mail: string;
firstname: string;
lastname: string;
}
export interface UpdateUserViewModel {
2025-01-29 08:53:42 +01:00
id: string;
2024-09-02 15:57:03 +02:00
username: string;
mail: string;
firstname: string;
lastname: string;
}