- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
29 lines
796 B
TypeScript
29 lines
796 B
TypeScript
import { DataSource } from 'typeorm';
|
|
export interface WidgetSummary {
|
|
salesToday: number;
|
|
transactionsCount: number;
|
|
pendingOrders: number;
|
|
lowStockCount: number;
|
|
pendingCredits: number;
|
|
updatedAt: string;
|
|
}
|
|
export interface WidgetAlert {
|
|
type: 'low_stock' | 'pending_order' | 'overdue_credit' | 'new_message';
|
|
title: string;
|
|
message: string;
|
|
count: number;
|
|
priority: 'low' | 'medium' | 'high';
|
|
}
|
|
export declare class WidgetsService {
|
|
private readonly dataSource;
|
|
constructor(dataSource: DataSource);
|
|
getSummary(tenantId: string): Promise<WidgetSummary>;
|
|
getAlerts(tenantId: string): Promise<WidgetAlert[]>;
|
|
getQuickActions(): {
|
|
id: string;
|
|
title: string;
|
|
icon: string;
|
|
deepLink: string;
|
|
}[];
|
|
}
|