opticedge-types 1.0.56 → 1.0.58

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.
@@ -31,6 +31,7 @@ export type FbCard = {
31
31
  category: string;
32
32
  centering_grading?: number;
33
33
  corner_grading?: number;
34
+ defect_map?: DefectMap;
34
35
  edge_grading?: number;
35
36
  frontGrading?: SubGrades;
36
37
  frontImage: string;
@@ -41,7 +42,6 @@ export type FbCard = {
41
42
  grading_confidence?: number;
42
43
  grading_environment?: number;
43
44
  grading_rationale?: string;
44
- grading_defect_map?: DefectMap;
45
45
  hp: number;
46
46
  identifier: string;
47
47
  isCustomize?: boolean;
@@ -20,12 +20,13 @@ interface BBox {
20
20
  }
21
21
  type DefectType = 'corner_whitening' | 'edge_whitening' | 'surface_scratch' | 'holo_or_foil_scratching' | 'crease' | 'foil_wear' | 'edge_chip' | 'corner_rounding' | 'staining_or_ink_bleed' | 'post_factory_dents' | 'scuffing';
22
22
  type DefectSeverity = 'minimal' | 'moderate' | 'major';
23
+ type DefectLocationZone = 'front_top_left_corner' | 'front_top_right_corner' | 'front_bottom_left_corner' | 'front_bottom_right_corner' | 'front_top_edge_left' | 'front_top_edge_center' | 'front_top_edge_right' | 'front_bottom_edge_left' | 'front_bottom_edge_center' | 'front_bottom_edge_right' | 'front_left_edge_upper' | 'front_left_edge_center' | 'front_left_edge_lower' | 'front_right_edge_upper' | 'front_right_edge_center' | 'front_right_edge_lower' | 'front_inner_top_left' | 'front_inner_top_center' | 'front_inner_top_right' | 'front_inner_middle_left' | 'front_inner_middle_center' | 'front_inner_middle_right' | 'front_inner_bottom_left' | 'front_inner_bottom_center' | 'front_inner_bottom_right';
23
24
  interface Defect {
24
25
  defect_type: DefectType;
25
26
  severity: DefectSeverity;
26
27
  confidence: number;
28
+ location_zone: DefectLocationZone;
27
29
  bbox_norm: BBox;
28
- qualitative_location: string;
29
30
  notes: string;
30
31
  }
31
32
  export interface DefectMap {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types/card.ts CHANGED
@@ -33,6 +33,7 @@ export type FbCard = {
33
33
  category: string
34
34
  centering_grading?: number
35
35
  corner_grading?: number
36
+ defect_map?: DefectMap
36
37
  edge_grading?: number
37
38
  frontGrading?: SubGrades
38
39
  frontImage: string
@@ -43,7 +44,6 @@ export type FbCard = {
43
44
  grading_confidence?: number
44
45
  grading_environment?: number
45
46
  grading_rationale?: string
46
- grading_defect_map?: DefectMap
47
47
  hp: number
48
48
  identifier: string
49
49
  isCustomize?: boolean
@@ -53,12 +53,39 @@ type DefectType =
53
53
 
54
54
  type DefectSeverity = 'minimal' | 'moderate' | 'major'
55
55
 
56
+ type DefectLocationZone =
57
+ | 'front_top_left_corner'
58
+ | 'front_top_right_corner'
59
+ | 'front_bottom_left_corner'
60
+ | 'front_bottom_right_corner'
61
+ | 'front_top_edge_left'
62
+ | 'front_top_edge_center'
63
+ | 'front_top_edge_right'
64
+ | 'front_bottom_edge_left'
65
+ | 'front_bottom_edge_center'
66
+ | 'front_bottom_edge_right'
67
+ | 'front_left_edge_upper'
68
+ | 'front_left_edge_center'
69
+ | 'front_left_edge_lower'
70
+ | 'front_right_edge_upper'
71
+ | 'front_right_edge_center'
72
+ | 'front_right_edge_lower'
73
+ | 'front_inner_top_left'
74
+ | 'front_inner_top_center'
75
+ | 'front_inner_top_right'
76
+ | 'front_inner_middle_left'
77
+ | 'front_inner_middle_center'
78
+ | 'front_inner_middle_right'
79
+ | 'front_inner_bottom_left'
80
+ | 'front_inner_bottom_center'
81
+ | 'front_inner_bottom_right'
82
+
56
83
  interface Defect {
57
84
  defect_type: DefectType
58
85
  severity: DefectSeverity
59
86
  confidence: number
87
+ location_zone: DefectLocationZone
60
88
  bbox_norm: BBox
61
- qualitative_location: string
62
89
  notes: string
63
90
  }
64
91