@chopkola/common 1.0.131 → 1.0.133
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.
- package/build/types/products.d.ts +19 -0
- package/build/types/products.js +8 -1
- package/package.json +1 -1
|
@@ -18,6 +18,24 @@ export declare enum StockMovementReasonEnum {
|
|
|
18
18
|
TRANSFER_IN = "transfer_in",
|
|
19
19
|
INITIAL_STOCK = "initial_stock"
|
|
20
20
|
}
|
|
21
|
+
export declare enum VendorProductsStatisticsIconEnum {
|
|
22
|
+
PACKAGE = "package",
|
|
23
|
+
ALERT_TRIANGLE = "alert_triangle",
|
|
24
|
+
TRASH_2 = "trash_2",
|
|
25
|
+
FILTER = "filter"
|
|
26
|
+
}
|
|
27
|
+
export type BackendVendorProductStatistics = {
|
|
28
|
+
title: string;
|
|
29
|
+
value: string | number;
|
|
30
|
+
icon: VendorProductsStatisticsIconEnum;
|
|
31
|
+
color?: string;
|
|
32
|
+
};
|
|
33
|
+
export type VendorProductsStats = {
|
|
34
|
+
total_products: BackendVendorProductStatistics;
|
|
35
|
+
low_stock: BackendVendorProductStatistics;
|
|
36
|
+
out_of_stock: BackendVendorProductStatistics;
|
|
37
|
+
top_category: BackendVendorProductStatistics;
|
|
38
|
+
};
|
|
21
39
|
export interface ProductI extends Timestamps {
|
|
22
40
|
id: UUID;
|
|
23
41
|
vendor_id: UUID;
|
|
@@ -88,6 +106,7 @@ export type InventoryLink = {
|
|
|
88
106
|
};
|
|
89
107
|
export interface VendorProductsManagementData {
|
|
90
108
|
inventoriesWithProducts: InventoryItemWithProductI[];
|
|
109
|
+
stats: VendorProductsStats;
|
|
91
110
|
}
|
|
92
111
|
export interface VendorCreateOrEditProductPageData {
|
|
93
112
|
categories: CategoryI[];
|
package/build/types/products.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StockMovementReasonEnum = exports.StockStatusEnum = void 0;
|
|
3
|
+
exports.VendorProductsStatisticsIconEnum = exports.StockMovementReasonEnum = exports.StockStatusEnum = void 0;
|
|
4
4
|
var StockStatusEnum;
|
|
5
5
|
(function (StockStatusEnum) {
|
|
6
6
|
StockStatusEnum["IN_STOCK"] = "in_stock";
|
|
@@ -21,3 +21,10 @@ var StockMovementReasonEnum;
|
|
|
21
21
|
StockMovementReasonEnum["TRANSFER_IN"] = "transfer_in";
|
|
22
22
|
StockMovementReasonEnum["INITIAL_STOCK"] = "initial_stock";
|
|
23
23
|
})(StockMovementReasonEnum || (exports.StockMovementReasonEnum = StockMovementReasonEnum = {}));
|
|
24
|
+
var VendorProductsStatisticsIconEnum;
|
|
25
|
+
(function (VendorProductsStatisticsIconEnum) {
|
|
26
|
+
VendorProductsStatisticsIconEnum["PACKAGE"] = "package";
|
|
27
|
+
VendorProductsStatisticsIconEnum["ALERT_TRIANGLE"] = "alert_triangle";
|
|
28
|
+
VendorProductsStatisticsIconEnum["TRASH_2"] = "trash_2";
|
|
29
|
+
VendorProductsStatisticsIconEnum["FILTER"] = "filter";
|
|
30
|
+
})(VendorProductsStatisticsIconEnum || (exports.VendorProductsStatisticsIconEnum = VendorProductsStatisticsIconEnum = {}));
|