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