@kuriousdesign/machine-sdk 1.0.87 → 1.0.88
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.
|
@@ -32,6 +32,7 @@ var DeviceTypes;
|
|
|
32
32
|
DeviceTypes[DeviceTypes["Vision"] = 10] = "Vision";
|
|
33
33
|
DeviceTypes[DeviceTypes["TwoPos"] = 11] = "TwoPos";
|
|
34
34
|
DeviceTypes[DeviceTypes["TwoPosGantry"] = 12] = "TwoPosGantry";
|
|
35
|
+
DeviceTypes[DeviceTypes["ExtService"] = 13] = "ExtService";
|
|
35
36
|
})(DeviceTypes || (exports.DeviceTypes = DeviceTypes = {}));
|
|
36
37
|
function deviceTypeToString(deviceType) {
|
|
37
38
|
switch (deviceType) {
|
|
@@ -56,6 +57,9 @@ function deviceTypeToString(deviceType) {
|
|
|
56
57
|
case DeviceTypes.TwoPos:
|
|
57
58
|
return 'Two Position';
|
|
58
59
|
case DeviceTypes.TwoPosGantry:
|
|
60
|
+
return 'Two Position Gantry';
|
|
61
|
+
case DeviceTypes.ExtService:
|
|
62
|
+
return 'External Service';
|
|
59
63
|
default:
|
|
60
64
|
return 'Unknown';
|
|
61
65
|
}
|
package/package.json
CHANGED
|
@@ -29,7 +29,8 @@ export enum DeviceTypes {
|
|
|
29
29
|
Robot = 8,
|
|
30
30
|
Vision = 10,
|
|
31
31
|
TwoPos = 11,
|
|
32
|
-
TwoPosGantry = 12
|
|
32
|
+
TwoPosGantry = 12,
|
|
33
|
+
ExtService = 13
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export function deviceTypeToString(deviceType: DeviceTypes): string {
|
|
@@ -55,6 +56,9 @@ export function deviceTypeToString(deviceType: DeviceTypes): string {
|
|
|
55
56
|
case DeviceTypes.TwoPos:
|
|
56
57
|
return 'Two Position';
|
|
57
58
|
case DeviceTypes.TwoPosGantry:
|
|
59
|
+
return 'Two Position Gantry';
|
|
60
|
+
case DeviceTypes.ExtService:
|
|
61
|
+
return 'External Service';
|
|
58
62
|
default:
|
|
59
63
|
return 'Unknown';
|
|
60
64
|
}
|