@sales-planner/shared 0.17.0 → 0.17.1
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.
|
@@ -11,10 +11,25 @@ export interface SkuMetrics {
|
|
|
11
11
|
tenant_id: number;
|
|
12
12
|
sku_code: string;
|
|
13
13
|
sku_title: string;
|
|
14
|
+
/** Group ID (null if not assigned) */
|
|
15
|
+
group_id: number | null;
|
|
16
|
+
/** Category ID (null if not assigned) */
|
|
17
|
+
category_id: number | null;
|
|
18
|
+
/** Brand ID (null if not assigned) */
|
|
19
|
+
brand_id: number | null;
|
|
20
|
+
/** Status ID (null if not assigned) */
|
|
21
|
+
status_id: number | null;
|
|
22
|
+
/** Supplier ID (null if not assigned) */
|
|
23
|
+
supplier_id: number | null;
|
|
24
|
+
/** Group code (for export convenience) */
|
|
14
25
|
group_code: string | null;
|
|
26
|
+
/** Category code (for export convenience) */
|
|
15
27
|
category_code: string | null;
|
|
28
|
+
/** Brand code (for export convenience) */
|
|
16
29
|
brand_code: string | null;
|
|
30
|
+
/** Status code (for export convenience) */
|
|
17
31
|
status_code: string | null;
|
|
32
|
+
/** Supplier code (for export convenience) */
|
|
18
33
|
supplier_code: string | null;
|
|
19
34
|
/** Period in YYYY-MM format */
|
|
20
35
|
last_period: string;
|
|
@@ -31,4 +46,23 @@ export interface SkuMetrics {
|
|
|
31
46
|
/** When this metric was last computed */
|
|
32
47
|
computed_at: Date;
|
|
33
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* SKU Metrics export item - uses codes instead of IDs
|
|
51
|
+
* Follows same naming pattern as SkuExportItem (simple field names)
|
|
52
|
+
*/
|
|
53
|
+
export interface SkuMetricsExportItem {
|
|
54
|
+
code: string;
|
|
55
|
+
title: string;
|
|
56
|
+
group: string | null;
|
|
57
|
+
category: string | null;
|
|
58
|
+
brand: string | null;
|
|
59
|
+
status: string | null;
|
|
60
|
+
supplier: string | null;
|
|
61
|
+
lastPeriod: string;
|
|
62
|
+
lastPeriodSales: number;
|
|
63
|
+
currentStock: number;
|
|
64
|
+
daysOfStock: number | null;
|
|
65
|
+
abcClass: 'A' | 'B' | 'C';
|
|
66
|
+
salesRank: number;
|
|
67
|
+
}
|
|
34
68
|
//# sourceMappingURL=sku-metrics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sku-metrics.d.ts","sourceRoot":"","sources":["../../src/entities/sku-metrics.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,oEAAoE;IACpE,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC3B,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,WAAW,EAAE,IAAI,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"sku-metrics.d.ts","sourceRoot":"","sources":["../../src/entities/sku-metrics.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,UAAU;IACzB,E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