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