@kuriousdesign/machine-sdk 1.0.109 → 1.0.110

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.
@@ -42,11 +42,12 @@ export declare enum PartValidationStates {
42
42
  Scrapped_Failed_Weight_TOO_LIGHT = 701,
43
43
  Scrapped_Failed_Weight_TOO_HEAVY = 702,
44
44
  Scrapped_Failed_Image_Review_GENERAL = 800,
45
- Scrapped_Failed_Image_Review_GAPS_IN_SMEAR = 801,
45
+ Scrapped_Failed_Image_Review_GAPS_IN_SMEAR = 801,//SCRAPING
46
46
  Scrapped_Failed_Image_Review_BUBBLES = 802,
47
47
  PASSED = 1000
48
48
  }
49
49
  export interface PartValidationData {
50
+ serialNumber: string;
50
51
  weightSts: PartValidationStates;
51
52
  visionSts: PartValidationStates;
52
53
  timestampVision_sec: number;
@@ -95,6 +95,7 @@ var PartValidationStates;
95
95
  PartValidationStates[PartValidationStates["PASSED"] = 1000] = "PASSED";
96
96
  })(PartValidationStates || (exports.PartValidationStates = PartValidationStates = {}));
97
97
  exports.initialPartValidationData = {
98
+ serialNumber: "",
98
99
  weightSts: PartValidationStates.NONE,
99
100
  visionSts: PartValidationStates.NONE,
100
101
  timestampVision_sec: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.109",
3
+ "version": "1.0.110",
4
4
  "description": "Shared data types and helpers for machine-related repositories",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -101,8 +101,6 @@ export interface PartData {
101
101
  inFixture: boolean; // CurrentLocation = FixtureLocationWhenLoaded
102
102
  }
103
103
 
104
-
105
-
106
104
  export enum PartValidationStates {
107
105
  NONE = 0,
108
106
  Scrapped_Generic = 1,
@@ -111,15 +109,17 @@ export enum PartValidationStates {
111
109
  Scrapped_Failed_Weight_TOO_LIGHT = 701,
112
110
  Scrapped_Failed_Weight_TOO_HEAVY = 702,
113
111
  Scrapped_Failed_Image_Review_GENERAL = 800,
114
- Scrapped_Failed_Image_Review_GAPS_IN_SMEAR = 801,
112
+ Scrapped_Failed_Image_Review_GAPS_IN_SMEAR = 801, //SCRAPING
115
113
  Scrapped_Failed_Image_Review_BUBBLES = 802,
116
114
  PASSED = 1000
117
115
  }
118
116
 
119
117
 
118
+
120
119
  export interface PartValidationData {
121
- weightSts: PartValidationStates; //use PartValidationStates
122
- visionSts: PartValidationStates; //use PartValidationStates
120
+ serialNumber: string;
121
+ weightSts: PartValidationStates;
122
+ visionSts: PartValidationStates;
123
123
  timestampVision_sec: number;
124
124
  statusMsg: string;
125
125
  preWeightKg: number;
@@ -128,6 +128,7 @@ export interface PartValidationData {
128
128
  }
129
129
 
130
130
  export const initialPartValidationData: PartValidationData = {
131
+ serialNumber: "",
131
132
  weightSts: PartValidationStates.NONE,
132
133
  visionSts: PartValidationStates.NONE,
133
134
  timestampVision_sec: 0,