This commit is contained in:
2025-10-03 15:43:22 +05:00
commit 531e2d2e7e
54 changed files with 2943 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
export type RoleName = "admin" | "director" | "manager";
export interface User {
id: string;
email: string;
fullName: string;
role: RoleName;
createdAt: string;
}
export interface LoginData {
email: string;
password: string;
}
export interface RegisterData {
email: string;
password: string;
fullName: string;
}
export interface LoginResponse {
user: User;
session: {
id: string;
token: string;
expiresAt: string;
};
}
export interface RegisterResponse {
user: User;
}
export interface MeResponse {
user: User;
}