Add super admin user management
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m46s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m46s
This commit is contained in:
23
src/types.ts
23
src/types.ts
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user