@secondcloset/types 2.7.37 → 2.7.40
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/package.json
CHANGED
package/src/warehouse/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./locationTemplate";
|
|
|
6
6
|
export * from "./organization";
|
|
7
7
|
export * from "./pallet";
|
|
8
8
|
export * from "./product";
|
|
9
|
+
export * from "./productQuantum";
|
|
9
10
|
export * from "./shipmentProductsTracking";
|
|
10
11
|
export * from "./supply";
|
|
11
12
|
export * from "./supplyStock";
|
package/src/warehouse/product.ts
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Product } from "./product";
|
|
2
|
+
|
|
3
|
+
enum ProductQuantumTypeEnum {
|
|
4
|
+
EACH = "EACH",
|
|
5
|
+
CASE = "CASE",
|
|
6
|
+
INNER_PACK = "INNER_PACK",
|
|
7
|
+
MASTER_PACK = "MASTER_PACK",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
enum ContainsTypeEnum {
|
|
11
|
+
EACH = "EACH",
|
|
12
|
+
INNER_PACK = "INNER_PACK",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
enum WeightUnitEnum {
|
|
16
|
+
LB = "LB",
|
|
17
|
+
OZ = "OZ",
|
|
18
|
+
G = "G",
|
|
19
|
+
KG = "KG",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
enum DimensionsUnitEnum {
|
|
23
|
+
IN = "IN",
|
|
24
|
+
FT = "FT",
|
|
25
|
+
CM = "CM",
|
|
26
|
+
M = "M",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ProductQuantum {
|
|
30
|
+
id: string;
|
|
31
|
+
type: ProductQuantumTypeEnum;
|
|
32
|
+
quantity: number;
|
|
33
|
+
sku: string;
|
|
34
|
+
upc?: string;
|
|
35
|
+
contains_type: ContainsTypeEnum | null;
|
|
36
|
+
weight: number;
|
|
37
|
+
height: number;
|
|
38
|
+
length: number;
|
|
39
|
+
width: number;
|
|
40
|
+
weight_unit: WeightUnitEnum;
|
|
41
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
42
|
+
product_id: string;
|
|
43
|
+
product: Product;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ProductQuantumUpdateBody {
|
|
47
|
+
type: ProductQuantumTypeEnum;
|
|
48
|
+
contains_type: ContainsTypeEnum;
|
|
49
|
+
quantity: number;
|
|
50
|
+
sku: string;
|
|
51
|
+
upc: string;
|
|
52
|
+
length: number;
|
|
53
|
+
height: number;
|
|
54
|
+
weight: number;
|
|
55
|
+
width: number;
|
|
56
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
57
|
+
weight_unit: WeightUnitEnum;
|
|
58
|
+
product_id: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface CreateProductQuantumBody {
|
|
62
|
+
type: ProductQuantumTypeEnum;
|
|
63
|
+
upc: string;
|
|
64
|
+
sku: string;
|
|
65
|
+
product_id: string;
|
|
66
|
+
contains_type: ProductQuantumTypeEnum;
|
|
67
|
+
quantity: number;
|
|
68
|
+
weight: number;
|
|
69
|
+
weight_unit: WeightUnitEnum;
|
|
70
|
+
height: number;
|
|
71
|
+
width: number;
|
|
72
|
+
length: number;
|
|
73
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
74
|
+
}
|