@kuriousdesign/machine-sdk 1.0.108 → 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/dist/enums/DeviceId.d.ts
CHANGED
package/dist/enums/DeviceId.js
CHANGED
|
@@ -11,6 +11,7 @@ var DeviceId;
|
|
|
11
11
|
DeviceId[DeviceId["CON"] = 4] = "CON";
|
|
12
12
|
DeviceId[DeviceId["DIAG"] = 5] = "DIAG";
|
|
13
13
|
DeviceId[DeviceId["UDP"] = 6] = "UDP";
|
|
14
|
+
DeviceId[DeviceId["FEED"] = 7] = "FEED";
|
|
14
15
|
// 0 - 9 ARE RESERVED FOR SYSTEM LEVEL STUFF
|
|
15
16
|
DeviceId[DeviceId["ROB"] = 10] = "ROB";
|
|
16
17
|
DeviceId[DeviceId["ABB"] = 11] = "ABB";
|
|
@@ -66,6 +67,7 @@ function deviceIdToString(deviceId) {
|
|
|
66
67
|
case DeviceId.CON: return "CON";
|
|
67
68
|
case DeviceId.DIAG: return "DIAG";
|
|
68
69
|
case DeviceId.UDP: return "UDP";
|
|
70
|
+
case DeviceId.FEED: return "FEED";
|
|
69
71
|
case DeviceId.ROB: return "ROB";
|
|
70
72
|
case DeviceId.ABB: return "ABB";
|
|
71
73
|
case DeviceId.EOAT: return "EOAT";
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuriousdesign/machine-sdk",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22.16.0 <23"
|
|
9
|
+
},
|
|
7
10
|
"scripts": {
|
|
8
11
|
"build": "tsc && copyfiles -u 1 \"styles/**/*\" dist/styles",
|
|
9
12
|
"prepublishOnly": "npm run build",
|
package/src/custom-types/Part.ts
CHANGED
|
@@ -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
|
-
|
|
122
|
-
|
|
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,
|
package/src/enums/DeviceId.ts
CHANGED
|
@@ -6,6 +6,7 @@ export enum DeviceId {
|
|
|
6
6
|
CON = 4,
|
|
7
7
|
DIAG = 5,
|
|
8
8
|
UDP = 6, //Robot Controller
|
|
9
|
+
FEED = 7,
|
|
9
10
|
// 0 - 9 ARE RESERVED FOR SYSTEM LEVEL STUFF
|
|
10
11
|
|
|
11
12
|
ROB = 10,
|
|
@@ -68,6 +69,7 @@ export function deviceIdToString(deviceId: DeviceId | number): string {
|
|
|
68
69
|
case DeviceId.CON: return "CON";
|
|
69
70
|
case DeviceId.DIAG: return "DIAG";
|
|
70
71
|
case DeviceId.UDP: return "UDP";
|
|
72
|
+
case DeviceId.FEED: return "FEED";
|
|
71
73
|
case DeviceId.ROB: return "ROB";
|
|
72
74
|
case DeviceId.ABB: return "ABB";
|
|
73
75
|
case DeviceId.EOAT: return "EOAT";
|