/* GRAPH PROPS */ /* eslint-disable @typescript-eslint/no-explicit-any */ export interface StockGraphProps { data: Array; configuration: ConfigurationProps; isLoading?: boolean; unit: string; hasNoInventoryStockOfEntity: boolean; currentDate?: string; singleBarGraph?: boolean; theme?: any; graphEmptyStateLabel: string; hideUnit?: boolean; timezone?: string; } export interface GraphBarsProps { nbColumn: number; value: any; color: string; unit: string; height: number; valuePosition?: string | number; hideUnit?: boolean; hideValue?: boolean; } export interface ItemGraph { x: string; y: ItemGraphData; tooltip: string; } export interface ItemGraphData { stock: Array; loss?: ItemGraphLossData; consumption?: ItemGraphConsumptionData; order?: ItemGraphOrderData; } export interface ItemGraphStockData { value: number; color: string; overlappedStocks: Array; isHighlighted?: boolean; } export interface ItemGraphLossData { inventoryDate: string; totUnit: number; totTurnover: number; } export interface ItemGraphConsumptionData { createdAt: string; totUnit: number; totTurnover: number; } export interface ItemGraphOrderData { startOrderDate: string; totUnit: number; totTurnover: number; orderId: number; type: string; } export interface GraphDisplayProps { graph: ItemGraph; nbColumn: number; maxHeight: number; unit: string; columnHeight: number; isSelectedDay: boolean; singleBarGraph?: boolean; hideUnit?: boolean; timezone?: string; } export interface LegendProps { color: string; name: string; propertyKey: string; } export interface ConfigurationProps { title: string; tooltiptext?: string; subtitle?: string; metric: string; legends: Array; } export interface ComponentLoaderProps { width: number; height: number; } export interface YAxisProps { height: number; }