@chopkola/common 1.0.132 → 1.0.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LucideIcon } from "lucide-react";
|
|
1
2
|
import { CategoryI } from "./category";
|
|
2
3
|
import { Timestamps, UUID } from "./global";
|
|
3
4
|
export declare enum StockStatusEnum {
|
|
@@ -30,6 +31,12 @@ export type BackendVendorProductStatistics = {
|
|
|
30
31
|
icon: VendorProductsStatisticsIconEnum;
|
|
31
32
|
color?: string;
|
|
32
33
|
};
|
|
34
|
+
export type VendorProductStatistics = {
|
|
35
|
+
title: string;
|
|
36
|
+
value: string | number;
|
|
37
|
+
icon: LucideIcon;
|
|
38
|
+
color?: string;
|
|
39
|
+
};
|
|
33
40
|
export type VendorProductsStats = {
|
|
34
41
|
total_products: BackendVendorProductStatistics;
|
|
35
42
|
low_stock: BackendVendorProductStatistics;
|
|
@@ -106,6 +113,7 @@ export type InventoryLink = {
|
|
|
106
113
|
};
|
|
107
114
|
export interface VendorProductsManagementData {
|
|
108
115
|
inventoriesWithProducts: InventoryItemWithProductI[];
|
|
116
|
+
stats: VendorProductsStats;
|
|
109
117
|
}
|
|
110
118
|
export interface VendorCreateOrEditProductPageData {
|
|
111
119
|
categories: CategoryI[];
|