@duet3d/objectmodel 3.7.0-beta.1 → 3.7.0-beta.3
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/dist/boards/index.d.ts +1 -0
- package/dist/boards/index.js +1 -0
- package/dist/documentation.json +6 -2
- package/dist/sbc/Upgrade.d.ts +6 -0
- package/dist/sbc/Upgrade.js +9 -0
- package/dist/sbc/index.d.ts +4 -0
- package/dist/sbc/index.js +5 -1
- package/dist/state/RestorePoint.js +1 -1
- package/package.json +8 -8
package/dist/boards/index.d.ts
CHANGED
package/dist/boards/index.js
CHANGED
package/dist/documentation.json
CHANGED
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"boards[].supportsDirectDisplay": "Indicates if this board supports external displays",
|
|
77
|
+
"boards[].timeout": "Connection timeout of this board (in s)",
|
|
77
78
|
"boards[].uniqueId": "Unique identifier of the board or null if unknown",
|
|
78
79
|
"boards[].v12": "Minimum, maximum, and current voltages on the 12V rail or null if unknown",
|
|
79
80
|
"boards[].v12.current": "Current value",
|
|
@@ -578,7 +579,7 @@
|
|
|
578
579
|
"move.motionSystems[].restorePoints[].extruderPos": "The virtual extruder position at the start of this move",
|
|
579
580
|
"move.motionSystems[].restorePoints[].fanPwm": "PWM value of the tool fan (0..1)",
|
|
580
581
|
"move.motionSystems[].restorePoints[].feedRate": "Requested feedrate (in mm/s)",
|
|
581
|
-
"move.motionSystems[].restorePoints[].gCommandNumber": "Which of G0/G1/G2/G3 generated the move at this restore point",
|
|
582
|
+
"move.motionSystems[].restorePoints[].gCommandNumber": "Which of G0/G1/G2/G3 generated the move at this restore point, or -1 if unknown",
|
|
582
583
|
"move.motionSystems[].restorePoints[].ioBits": "The output port bits setting for this move or null if not applicable",
|
|
583
584
|
"move.motionSystems[].restorePoints[].laserPwm": "Laser PWM value (0..1) or null if not applicable",
|
|
584
585
|
"move.motionSystems[].restorePoints[].toolNumber": "The tool number that was active",
|
|
@@ -782,6 +783,9 @@
|
|
|
782
783
|
"sbc.memory.total": "Total memory (in bytes)",
|
|
783
784
|
"sbc.model": "SBC model or null if unknown",
|
|
784
785
|
"sbc.serial": "Serial of the SBC or null if unknown",
|
|
786
|
+
"sbc.upgrade": "Details about a software upgrade in progress or null if no upgrade is running",
|
|
787
|
+
"sbc.upgrade.message": "Description of the current upgrade step",
|
|
788
|
+
"sbc.upgrade.progress": "Progress of the current upgrade step (0..1) or null if indeterminate",
|
|
785
789
|
"sbc.uptime": "Uptime of the running system (in s)",
|
|
786
790
|
"sensors": "Information about connected sensors including Z-probes and endstops",
|
|
787
791
|
"sensors.analog": "List of analog sensors",
|
|
@@ -1047,7 +1051,7 @@
|
|
|
1047
1051
|
"state.restorePoints[].extruderPos": "The virtual extruder position at the start of this move",
|
|
1048
1052
|
"state.restorePoints[].fanPwm": "PWM value of the tool fan (0..1)",
|
|
1049
1053
|
"state.restorePoints[].feedRate": "Requested feedrate (in mm/s)",
|
|
1050
|
-
"state.restorePoints[].gCommandNumber": "Which of G0/G1/G2/G3 generated the move at this restore point",
|
|
1054
|
+
"state.restorePoints[].gCommandNumber": "Which of G0/G1/G2/G3 generated the move at this restore point, or -1 if unknown",
|
|
1051
1055
|
"state.restorePoints[].ioBits": "The output port bits setting for this move or null if not applicable",
|
|
1052
1056
|
"state.restorePoints[].laserPwm": "Laser PWM value (0..1) or null if not applicable",
|
|
1053
1057
|
"state.restorePoints[].toolNumber": "The tool number that was active",
|
package/dist/sbc/index.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import ModelObject from "../ModelObject";
|
|
|
2
2
|
import DSF from "./dsf";
|
|
3
3
|
import CPU from "./CPU";
|
|
4
4
|
import Memory from "./Memory";
|
|
5
|
+
import Upgrade from "./Upgrade";
|
|
5
6
|
export declare class SBC extends ModelObject {
|
|
7
|
+
constructor();
|
|
6
8
|
appArmor: boolean;
|
|
7
9
|
readonly cpu: CPU;
|
|
8
10
|
readonly dsf: DSF;
|
|
@@ -11,9 +13,11 @@ export declare class SBC extends ModelObject {
|
|
|
11
13
|
readonly memory: Memory;
|
|
12
14
|
model: string | null;
|
|
13
15
|
serial: string | null;
|
|
16
|
+
upgrade: Upgrade | null;
|
|
14
17
|
uptime: number | null;
|
|
15
18
|
}
|
|
16
19
|
export default SBC;
|
|
17
20
|
export * from "./dsf";
|
|
18
21
|
export * from "./CPU";
|
|
19
22
|
export * from "./Memory";
|
|
23
|
+
export * from "./Upgrade";
|
package/dist/sbc/index.js
CHANGED
|
@@ -2,9 +2,10 @@ import ModelObject from "../ModelObject";
|
|
|
2
2
|
import DSF from "./dsf";
|
|
3
3
|
import CPU from "./CPU";
|
|
4
4
|
import Memory from "./Memory";
|
|
5
|
+
import Upgrade from "./Upgrade";
|
|
5
6
|
export class SBC extends ModelObject {
|
|
6
7
|
constructor() {
|
|
7
|
-
super(
|
|
8
|
+
super();
|
|
8
9
|
this.appArmor = false;
|
|
9
10
|
this.cpu = new CPU();
|
|
10
11
|
this.dsf = new DSF();
|
|
@@ -13,10 +14,13 @@ export class SBC extends ModelObject {
|
|
|
13
14
|
this.memory = new Memory();
|
|
14
15
|
this.model = null;
|
|
15
16
|
this.serial = null;
|
|
17
|
+
this.upgrade = null;
|
|
16
18
|
this.uptime = null;
|
|
19
|
+
ModelObject.wrapModelProperty(this, "upgrade", Upgrade);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
export default SBC;
|
|
20
23
|
export * from "./dsf";
|
|
21
24
|
export * from "./CPU";
|
|
22
25
|
export * from "./Memory";
|
|
26
|
+
export * from "./Upgrade";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duet3d/objectmodel",
|
|
3
|
-
"version": "3.7.0-beta.
|
|
3
|
+
"version": "3.7.0-beta.3",
|
|
4
4
|
"description": "TypeScript implementation of the Duet3D Object Model",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"./documentation.json": "./dist/documentation.json"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"test": "jest --config jestconfig.json",
|
|
19
|
-
"build": "tsc &&
|
|
18
|
+
"test": "tsc -p tsconfig.test.json --noEmit && jest --config jestconfig.json",
|
|
19
|
+
"build": "tsc && node scripts/extract-metadata.ts",
|
|
20
20
|
"prepare": "npm run build",
|
|
21
21
|
"prepublishOnly": "npm test"
|
|
22
22
|
},
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Duet3D/ObjectModel#readme",
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@swc/core": "^1.15.43",
|
|
35
|
+
"@swc/jest": "^0.2.39",
|
|
34
36
|
"@types/jest": "^30.0.0",
|
|
35
|
-
"@types/node": "^
|
|
36
|
-
"jest": "^30.2
|
|
37
|
-
"
|
|
38
|
-
"tsx": "^4.20.0",
|
|
39
|
-
"typescript": "^6.0.3"
|
|
37
|
+
"@types/node": "^26.1.1",
|
|
38
|
+
"jest": "^30.4.2",
|
|
39
|
+
"typescript": "^7.0.2"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"/dist"
|