feat: Introduce AI analysis engine for product A/Z recommendations based on detailed business rules.

This commit is contained in:
Michael committed 2026-03-18 22:15:14 +01:00
1 parent e96bfa818d
commit 95795ce7e3
6 files changed
+199 -90

No files matched your search

+11 -1
View File
@@ -56,9 +56,19 @@ export interface ProductRow {
totalCa: number;
totalMarge: number;
tauxMarge: number;
/** Combined performance score (0-10) */
/** Score de performance hybride (0-100) */
score: number;
workingStores: string[];
/** Rotation normalisée : unités vendues / magasin / mois */
unitsPerStorePerMonth?: number;
/** CA normalisé : € / magasin / an */
caPerStorePerYear?: number;
/** Produit récent (≤ 3 mois de données) */
isRecent?: boolean;
/** Seul produit du fournisseur dans le lot */
isLastProduct?: boolean;
/** Top 30% CA du lot fournisseur */
isTop30Supplier?: boolean;
aiRecommendation?: string | null;
/** SQL Server internal ID — nécessaire pour /api/articles/:noid/mensuel */
noid?: number;