AutoLoop / types /admin.ts
shubhjn's picture
feat: Implement core CMS features including workflow management, admin dashboard, API infrastructure, queueing system, and new UI components.
59697b4
export interface AdminStats {
totalUsers: number;
userGrowth: number; // percentage
activeUsers: number; // last 7 days
totalWorkflows: number;
systemHealth: "healthy" | "degraded" | "down";
}
export interface AdminUser {
id: string;
name: string | null;
email: string | null;
image: string | null;
role: "user" | "admin";
status: "active" | "inactive" | "suspended";
lastActive: Date | null;
createdAt: Date;
}
export interface SystemEvent {
id: string;
type: "info" | "warning" | "error" | "success";
message: string;
timestamp: Date;
metadata?: Record<string, unknown>;
}