@secondcloset/types 2.7.37 → 2.7.38-beta-new-item-profiling-0

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",
3
+ "version": "2.7.38-beta-new-item-profiling-0",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -65,7 +65,6 @@ export interface Appointment {
65
65
  verification_images?: BaseImage[];
66
66
  delivery_type?: DeliveryType;
67
67
  shipping_labels?: LastMileShippingLabel[];
68
- signature_required?: boolean;
69
68
  }
70
69
 
71
70
  export interface Location {
@@ -77,7 +77,6 @@ export interface SecondClosetShippingMethod {
77
77
  verification_images?: BaseImage[];
78
78
  delivery_type?: DeliveryType;
79
79
  shipping_labels?: LastMileShippingLabel[];
80
- signature_required?: boolean;
81
80
  source?: {
82
81
  id: string;
83
82
  type: string;
@@ -57,7 +57,6 @@ export interface Appointment {
57
57
  items: AppointmentItem[];
58
58
  verification_images?: BaseImage[];
59
59
  delivery_type?: DeliveryType;
60
- signature_required?: boolean;
61
60
  }
62
61
 
63
62
  export type AppointmentSlot =
@@ -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";
@@ -11,4 +11,7 @@ export interface Product {
11
11
  organization?: Organization;
12
12
  location_item?: LocationItem;
13
13
  location_activity_log?: LocationActivityLog;
14
+ profiled: boolean;
15
+ created_at: string;
16
+ updated_at: string;
14
17
  }
@@ -0,0 +1,79 @@
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 CaseTypeEnum {
11
+ INNER_PACK = "INNER_PACK",
12
+ MASTER_PACK = "MASTER_PACK",
13
+ }
14
+
15
+ enum ContainsTypeEnum {
16
+ EACH = "EACH",
17
+ INNER_PACK = "INNER_PACK",
18
+ }
19
+
20
+ enum WeightUnitEnum {
21
+ LB = "LB",
22
+ OZ = "OZ",
23
+ G = "G",
24
+ KG = "KG",
25
+ }
26
+
27
+ enum DimensionsUnitEnum {
28
+ IN = "IN",
29
+ FT = "FT",
30
+ CM = "CM",
31
+ M = "M",
32
+ }
33
+
34
+ export interface ProductQuantum {
35
+ id: string;
36
+ type: ProductQuantumTypeEnum;
37
+ quantity: number;
38
+ sku: string;
39
+ upc?: string;
40
+ contains_type: ContainsTypeEnum | null;
41
+ weight: number;
42
+ height: number;
43
+ length: number;
44
+ width: number;
45
+ weight_unit: WeightUnitEnum;
46
+ dimensions_unit: DimensionsUnitEnum;
47
+ product_id: string;
48
+ product: Product;
49
+ }
50
+
51
+ export interface ProductQuantumUpdateBody {
52
+ type: ProductQuantumTypeEnum;
53
+ contains_type: ContainsTypeEnum;
54
+ quantity: number;
55
+ sku: string;
56
+ upc: string;
57
+ length: number;
58
+ height: number;
59
+ weight: number;
60
+ width: number;
61
+ dimensions_unit: DimensionsUnitEnum;
62
+ weight_unit: WeightUnitEnum;
63
+ product_id: string;
64
+ }
65
+
66
+ export interface CreateProductQuantumBody {
67
+ type: ProductQuantumTypeEnum;
68
+ upc: string;
69
+ sku: string;
70
+ product_id: string;
71
+ contains_type: ProductQuantumTypeEnum;
72
+ quantity: number;
73
+ weight: number;
74
+ weight_unit: WeightUnitEnum;
75
+ height: number;
76
+ width: number;
77
+ length: number;
78
+ dimensions_unit: DimensionsUnitEnum;
79
+ }