michangarrito/apps/backend/dist/modules/widgets/widgets.service.d.ts
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

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;
}[];
}