@kuriousdesign/machine-sdk 1.0.14 → 1.0.16
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": "@kuriousdesign/machine-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
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",
|
|
@@ -27,7 +27,12 @@
|
|
|
27
27
|
"url": "https://github.com/kuriousDesign/machine-sdk/issues"
|
|
28
28
|
},
|
|
29
29
|
"exports": {
|
|
30
|
-
"
|
|
30
|
+
".": {
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./styles/*": "./dist/styles/*"
|
|
31
36
|
},
|
|
32
37
|
"homepage": "https://github.com/kuriousDesign/machine-sdk#readme"
|
|
33
38
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface DeviceCfg {
|
|
2
|
-
mnemonic: string;
|
|
3
|
-
id: number;
|
|
4
|
-
childId: number;
|
|
5
|
-
parentId: number;
|
|
6
|
-
}
|
|
7
|
-
export interface DeviceFaultData {
|
|
8
|
-
list: number[];
|
|
9
|
-
present: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface DeviceInputs {
|
|
12
|
-
instantKill_ON: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface DeviceParentCmds {
|
|
15
|
-
reset: boolean;
|
|
16
|
-
stop: boolean;
|
|
17
|
-
clearFlts: boolean;
|
|
18
|
-
start: boolean;
|
|
19
|
-
abort: boolean;
|
|
20
|
-
kill: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface DeviceStatus {
|
|
23
|
-
state: number;
|
|
24
|
-
stepNum: number;
|
|
25
|
-
colorCode: number;
|
|
26
|
-
}
|
|
27
|
-
export interface Device {
|
|
28
|
-
cfg: DeviceCfg;
|
|
29
|
-
is: DeviceStatus;
|
|
30
|
-
cmds: DeviceParentCmds;
|
|
31
|
-
errors: DeviceFaultData;
|
|
32
|
-
warnings: DeviceFaultData;
|
|
33
|
-
i: DeviceInputs;
|
|
34
|
-
}
|
|
File without changes
|
|
File without changes
|