Add super admin user management
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m46s

This commit is contained in:
Cauê Faleiros
2026-06-16 15:46:04 -03:00
parent f811d3c0ab
commit c8d475808b
12 changed files with 1126 additions and 34 deletions

View File

@@ -24,6 +24,29 @@ export interface DateRange {
end: Date;
}
export type AuthRole = 'super_admin' | 'user';
export interface AuthUser {
id: number | null;
name: string;
email: string;
role: AuthRole;
}
export interface ManagedUser {
id: number;
name: string;
email: string;
isActive: boolean;
createdAt: string;
updatedAt: string;
}
export interface CreateUserResult {
user: ManagedUser;
temporaryPassword?: string;
}
export interface DashboardAnalytics {
totalRevenue: number;
totalOrders: number;