Files
marketplaces/src/app/features/admin/dashboard/models/admin-dashboard.model.ts

45 lines
961 B
TypeScript
Raw Normal View History

export type AdminDashboardCardStatus = 'loading' | 'ready' | 'empty' | 'error' | 'pending-backend';
export interface AdminDashboardCardState<T> {
status: AdminDashboardCardStatus;
value: T | null;
}
export interface AdminDashboardMetrics {
categoriesCount: number;
productsCount: number;
}
export type AdminDashboardQuickActionId =
| 'edit-project'
| 'categories'
| 'products'
| 'static-pages'
| 'transactions'
| 'orders'
| 'media-library'
| 'users'
| 'monitoring'
| 'preview-marketplace';
export interface AdminDashboardQuickAction {
id: AdminDashboardQuickActionId;
labelKey: string;
route: string[];
external?: boolean;
}
export type AdminDashboardActivityType = 'draft-saved' | 'published';
export interface AdminDashboardActivityEntry {
id: string;
type: AdminDashboardActivityType;
timestamp: number;
}
export interface AdminDashboardHealthCheck {
code: string;
labelKey: string;
healthy: boolean;
}