@duet3d/objectmodel 3.6.1 → 3.6.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.
@@ -16,7 +16,8 @@ export declare enum BoardState {
16
16
  flashing = "flashing",
17
17
  flashFailed = "flashFailed",
18
18
  resetting = "resetting",
19
- running = "running"
19
+ running = "running",
20
+ timedOut = "timedOut"
20
21
  }
21
22
  export declare class InductiveSensor extends ModelObject {
22
23
  }
@@ -42,6 +42,7 @@ var BoardState;
42
42
  BoardState["flashFailed"] = "flashFailed";
43
43
  BoardState["resetting"] = "resetting";
44
44
  BoardState["running"] = "running";
45
+ BoardState["timedOut"] = "timedOut";
45
46
  })(BoardState || (exports.BoardState = BoardState = {}));
46
47
  class InductiveSensor extends ModelObject_1.default {
47
48
  }
@@ -0,0 +1,18 @@
1
+ {
2
+ "heat.bedHeaters": "use bedHeaterMapping instead",
3
+ "heat.chamberHeaters": "use chamberHeaterMapping instead",
4
+ "job.layers[].filament": "use filamentUsage instead",
5
+ "move.extruders[].pressureAdvance": "use pressAdv instead",
6
+ "move.printingAcceleration": "use motionSystems[].printingAcceleration instead",
7
+ "move.rotation": "use motionSystems[].rotation instead",
8
+ "move.travelAcceleration": "use motionSystems[].travelAcceleration instead",
9
+ "move.virtualEPos": "use motionSystems[].virtualEPos instead",
10
+ "move.workplaceNumber": "use motionSystems[].workplaceNumber instead",
11
+ "network.interfaces[].signal": "use rssi instead",
12
+ "sensors.filamentMonitors[].enabled": "use enableMode instead",
13
+ "sensors.probes[].diveHeight": "use diveHeights[0] instead",
14
+ "state.nextTool": "use move.motionSystems[].nextTool instead",
15
+ "state.previousTool": "use move.motionSystems[].previousTool instead",
16
+ "state.restorePoints": "use move.motionSystems[].restorePoints instead",
17
+ "tools[].feedForward": "use feedForwardPwm instead"
18
+ }
@@ -0,0 +1,281 @@
1
+ {
2
+ "boards[].directDisplay.screen.controller": [
3
+ "ST7920",
4
+ "ST7567",
5
+ "ILI9488"
6
+ ],
7
+ "boards[].state": [
8
+ "unknown",
9
+ "flashing",
10
+ "flashFailed",
11
+ "resetting",
12
+ "running",
13
+ "timedOut"
14
+ ],
15
+ "heat.heaters[].monitors[].condition": [
16
+ "disabled",
17
+ "tooHigh",
18
+ "tooLow"
19
+ ],
20
+ "heat.heaters[].state": [
21
+ "off",
22
+ "standby",
23
+ "active",
24
+ "fault",
25
+ "tuning",
26
+ "offline"
27
+ ],
28
+ "inputs[].compatibility": [
29
+ "Default",
30
+ "RepRapFirmware",
31
+ "Marlin",
32
+ "Teacup",
33
+ "Sprinter",
34
+ "Repetier",
35
+ "NanoDLP"
36
+ ],
37
+ "inputs[].distanceUnit": [
38
+ "mm",
39
+ "in"
40
+ ],
41
+ "inputs[].state": [
42
+ "awaitingAcknowledgement",
43
+ "idle",
44
+ "executing",
45
+ "waiting",
46
+ "reading",
47
+ "unused"
48
+ ],
49
+ "job.file.thumbnails[].format": [
50
+ "jpeg",
51
+ "png",
52
+ "qoi"
53
+ ],
54
+ "ledStrips[].type": [
55
+ "DotStar",
56
+ "NeoPixel_RGB",
57
+ "NeoPixel_RGBW"
58
+ ],
59
+ "move.axes[].letter": [
60
+ "X",
61
+ "Y",
62
+ "Z",
63
+ "U",
64
+ "V",
65
+ "W",
66
+ "A",
67
+ "B",
68
+ "C",
69
+ "D",
70
+ "a",
71
+ "b",
72
+ "c",
73
+ "d",
74
+ "e",
75
+ "f",
76
+ "g",
77
+ "h",
78
+ "i",
79
+ "j",
80
+ "k",
81
+ "l",
82
+ "m",
83
+ "n",
84
+ "o",
85
+ "p",
86
+ "q",
87
+ "r",
88
+ "s",
89
+ "t",
90
+ "u",
91
+ "v",
92
+ "w",
93
+ "x",
94
+ "y",
95
+ "z"
96
+ ],
97
+ "move.compensation.type": [
98
+ "none",
99
+ "mesh"
100
+ ],
101
+ "move.kinematics.name": [
102
+ "cartesian",
103
+ "coreXY",
104
+ "coreXYU",
105
+ "coreXYUV",
106
+ "coreXZ",
107
+ "markForged",
108
+ "fiveBarScara",
109
+ "hangprinter",
110
+ "linearDelta",
111
+ "polar",
112
+ "rotaryDelta",
113
+ "scara",
114
+ "unknown"
115
+ ],
116
+ "move.shaping.type": [
117
+ "none",
118
+ "mzv",
119
+ "zvd",
120
+ "zvdd",
121
+ "zvddd",
122
+ "ei2",
123
+ "ei3",
124
+ "custom"
125
+ ],
126
+ "network.interfaces[].type": [
127
+ "lan",
128
+ "wifi"
129
+ ],
130
+ "sbc.dsf.httpEndpoints[].endpointType": [
131
+ "GET",
132
+ "POST",
133
+ "PUT",
134
+ "PATCH",
135
+ "TRACE",
136
+ "DELETE",
137
+ "OPTIONS",
138
+ "WebSocket"
139
+ ],
140
+ "sbc.dsf.userSessions[].accessLevel": [
141
+ "readOnly",
142
+ "readWrite"
143
+ ],
144
+ "sbc.dsf.userSessions[].sessionType": [
145
+ "local",
146
+ "http",
147
+ "telnet"
148
+ ],
149
+ "sensors.analog[].state": [
150
+ "ok",
151
+ "shortCircuit",
152
+ "shortToVcc",
153
+ "shortToGround",
154
+ "openCircuit",
155
+ "timeout",
156
+ "ioError",
157
+ "hardwareError",
158
+ "notReady",
159
+ "invalidOutputNumber",
160
+ "busBusy",
161
+ "badResponse",
162
+ "unknownPort",
163
+ "notInitialised",
164
+ "unknownSensor",
165
+ "overOrUnderVoltage",
166
+ "badVref",
167
+ "badVssa",
168
+ "unknownError"
169
+ ],
170
+ "sensors.analog[].type": [
171
+ "thermistor",
172
+ "pt1000",
173
+ "rtdmax31865",
174
+ "thermocouplemax31855",
175
+ "thermocouplemax31856",
176
+ "linearanalog",
177
+ "dht21",
178
+ "dht22",
179
+ "dhthumidity",
180
+ "bme280",
181
+ "bmepressure",
182
+ "bmehumidity",
183
+ "currentloooppyro",
184
+ "ads131.chan0",
185
+ "ads131.chan1",
186
+ "mcutemp",
187
+ "drivers",
188
+ "driversduex",
189
+ "unknown"
190
+ ],
191
+ "sensors.endstops[].type": [
192
+ "inputPin",
193
+ "zProbeAsEndstop",
194
+ "motorStallAny",
195
+ "motorStallIndividual",
196
+ "unknown"
197
+ ],
198
+ "sensors.filamentMonitors[].enableMode": [
199
+ "0",
200
+ "1",
201
+ "2"
202
+ ],
203
+ "sensors.filamentMonitors[].status": [
204
+ "noMonitor",
205
+ "ok",
206
+ "noDataReceived",
207
+ "noFilament",
208
+ "tooLittleMovement",
209
+ "tooMuchMovement",
210
+ "sensorError"
211
+ ],
212
+ "sensors.filamentMonitors[].type": [
213
+ "simple",
214
+ "laser",
215
+ "pulsed",
216
+ "rotatingMagnet",
217
+ "unknown"
218
+ ],
219
+ "sensors.probes[].type": [
220
+ "0",
221
+ "1",
222
+ "2",
223
+ "3",
224
+ "4",
225
+ "5",
226
+ "6",
227
+ "7",
228
+ "8",
229
+ "9",
230
+ "10",
231
+ "11"
232
+ ],
233
+ "spindles[].state": [
234
+ "unconfigured",
235
+ "stopped",
236
+ "forward",
237
+ "reverse"
238
+ ],
239
+ "state.logLevel": [
240
+ "debug",
241
+ "info",
242
+ "warn",
243
+ "off"
244
+ ],
245
+ "state.machineMode": [
246
+ "FFF",
247
+ "CNC",
248
+ "Laser"
249
+ ],
250
+ "state.messageBox.mode": [
251
+ "0",
252
+ "1",
253
+ "2",
254
+ "3",
255
+ "4",
256
+ "5",
257
+ "6",
258
+ "7"
259
+ ],
260
+ "state.status": [
261
+ "disconnected",
262
+ "starting",
263
+ "updating",
264
+ "off",
265
+ "halted",
266
+ "pausing",
267
+ "paused",
268
+ "resuming",
269
+ "cancelling",
270
+ "processing",
271
+ "simulating",
272
+ "busy",
273
+ "changingTool",
274
+ "idle"
275
+ ],
276
+ "tools[].state": [
277
+ "off",
278
+ "active",
279
+ "standby"
280
+ ]
281
+ }
@@ -0,0 +1,19 @@
1
+ import ModelObject from "../ModelObject";
2
+ export declare enum HttpEndpointType {
3
+ GET = "GET",
4
+ POST = "POST",
5
+ PUT = "PUT",
6
+ PATCH = "PATCH",
7
+ TRACE = "TRACE",
8
+ DELETE = "DELETE",
9
+ OPTIONS = "OPTIONS",
10
+ WebSocket = "WebSocket"
11
+ }
12
+ export declare class HttpEndpoint extends ModelObject {
13
+ endpointType: HttpEndpointType;
14
+ namespace: string;
15
+ path: string;
16
+ isUploadRequest: boolean;
17
+ unixSocket: string;
18
+ }
19
+ export default HttpEndpoint;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpEndpoint = exports.HttpEndpointType = void 0;
4
+ const ModelObject_1 = require("../ModelObject");
5
+ var HttpEndpointType;
6
+ (function (HttpEndpointType) {
7
+ HttpEndpointType["GET"] = "GET";
8
+ HttpEndpointType["POST"] = "POST";
9
+ HttpEndpointType["PUT"] = "PUT";
10
+ HttpEndpointType["PATCH"] = "PATCH";
11
+ HttpEndpointType["TRACE"] = "TRACE";
12
+ HttpEndpointType["DELETE"] = "DELETE";
13
+ HttpEndpointType["OPTIONS"] = "OPTIONS";
14
+ HttpEndpointType["WebSocket"] = "WebSocket";
15
+ })(HttpEndpointType = exports.HttpEndpointType || (exports.HttpEndpointType = {}));
16
+ class HttpEndpoint extends ModelObject_1.default {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.endpointType = HttpEndpointType.GET;
20
+ this.namespace = "";
21
+ this.path = "";
22
+ this.isUploadRequest = false;
23
+ this.unixSocket = "";
24
+ }
25
+ }
26
+ exports.HttpEndpoint = HttpEndpoint;
27
+ exports.default = HttpEndpoint;
@@ -0,0 +1,20 @@
1
+ import ModelObject from "../ModelObject";
2
+ import ModelCollection from "../ModelCollection";
3
+ import RestorePoint from "../state/RestorePoint";
4
+ import { CurrentMove, MoveRotation } from ".";
5
+ export declare class MotionSystem extends ModelObject {
6
+ readonly currentMove: CurrentMove;
7
+ currentObject: number | null;
8
+ currentTool: number;
9
+ nextTool: number;
10
+ previousTool: number;
11
+ printingAcceleration: number;
12
+ readonly restorePoints: ModelCollection<RestorePoint>;
13
+ readonly rotation: MoveRotation;
14
+ speedFactor: number;
15
+ travelAcceleration: number;
16
+ userPosition: Array<number>;
17
+ virtualEPos: number;
18
+ workplaceNumber: number;
19
+ }
20
+ export default MotionSystem;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MotionSystem = void 0;
4
+ const ModelObject_1 = require("../ModelObject");
5
+ const ModelCollection_1 = require("../ModelCollection");
6
+ const RestorePoint_1 = require("../state/RestorePoint");
7
+ const _1 = require(".");
8
+ class MotionSystem extends ModelObject_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.currentMove = new _1.CurrentMove();
12
+ this.currentObject = null;
13
+ this.currentTool = -1;
14
+ this.nextTool = -1;
15
+ this.previousTool = -1;
16
+ this.printingAcceleration = 10000;
17
+ this.restorePoints = new ModelCollection_1.default(RestorePoint_1.default);
18
+ this.rotation = new _1.MoveRotation();
19
+ this.speedFactor = 1;
20
+ this.travelAcceleration = 10000;
21
+ this.userPosition = [];
22
+ this.virtualEPos = 0;
23
+ this.workplaceNumber = 0;
24
+ }
25
+ }
26
+ exports.MotionSystem = MotionSystem;
27
+ exports.default = MotionSystem;
@@ -21,7 +21,7 @@ export declare enum NetworkInterfaceState {
21
21
  idle = "idle"
22
22
  }
23
23
  export declare enum NetworkInterfaceType {
24
- lan = "lan",
24
+ ethernet = "ethernet",
25
25
  wifi = "wifi"
26
26
  }
27
27
  export declare class NetworkInterface extends ModelObject {
@@ -27,7 +27,7 @@ var NetworkInterfaceState;
27
27
  })(NetworkInterfaceState || (exports.NetworkInterfaceState = NetworkInterfaceState = {}));
28
28
  var NetworkInterfaceType;
29
29
  (function (NetworkInterfaceType) {
30
- NetworkInterfaceType["lan"] = "lan";
30
+ NetworkInterfaceType["ethernet"] = "ethernet";
31
31
  NetworkInterfaceType["wifi"] = "wifi";
32
32
  })(NetworkInterfaceType || (exports.NetworkInterfaceType = NetworkInterfaceType = {}));
33
33
  class NetworkInterface extends ModelObject_1.default {
@@ -1,7 +1,6 @@
1
1
  import ModelObject, { IModelObject } from "../../ModelObject";
2
2
  import { Duet3DFilamentMonitor } from "./Duet3DFilamentMonitor";
3
3
  export declare class LaserFilamentMonitorCalibrated extends ModelObject {
4
- calibrationFactor: number;
5
4
  percentMax: number;
6
5
  percentMin: number;
7
6
  sensivity: number;
@@ -9,6 +8,7 @@ export declare class LaserFilamentMonitorCalibrated extends ModelObject {
9
8
  }
10
9
  export declare class LaserFilamentMonitorConfigured extends ModelObject {
11
10
  allMoves: boolean;
11
+ calibrationFactor: number;
12
12
  percentMax: number;
13
13
  percentMin: number;
14
14
  sampleDistance: number;
@@ -8,7 +8,6 @@ const index_1 = require("./index");
8
8
  class LaserFilamentMonitorCalibrated extends ModelObject_1.default {
9
9
  constructor() {
10
10
  super(...arguments);
11
- this.calibrationFactor = 0;
12
11
  this.percentMax = 0;
13
12
  this.percentMin = 0;
14
13
  this.sensivity = 0;
@@ -20,6 +19,7 @@ class LaserFilamentMonitorConfigured extends ModelObject_1.default {
20
19
  constructor() {
21
20
  super(...arguments);
22
21
  this.allMoves = false;
22
+ this.calibrationFactor = 0;
23
23
  this.percentMax = 0;
24
24
  this.percentMin = 0;
25
25
  this.sampleDistance = 0;
@@ -0,0 +1,18 @@
1
+ import ModelObject from "../ModelObject";
2
+ export declare enum AccessLevel {
3
+ readOnly = "readOnly",
4
+ readWrite = "readWrite"
5
+ }
6
+ export declare enum SessionType {
7
+ local = "local",
8
+ http = "http",
9
+ telnet = "telnet"
10
+ }
11
+ export declare class UserSession extends ModelObject {
12
+ accessLevel: AccessLevel;
13
+ id: number;
14
+ origin: string | null;
15
+ originId: number;
16
+ sessionType: SessionType;
17
+ }
18
+ export default UserSession;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserSession = exports.SessionType = exports.AccessLevel = void 0;
4
+ const ModelObject_1 = require("../ModelObject");
5
+ var AccessLevel;
6
+ (function (AccessLevel) {
7
+ AccessLevel["readOnly"] = "readOnly";
8
+ AccessLevel["readWrite"] = "readWrite";
9
+ })(AccessLevel = exports.AccessLevel || (exports.AccessLevel = {}));
10
+ var SessionType;
11
+ (function (SessionType) {
12
+ SessionType["local"] = "local";
13
+ SessionType["http"] = "http";
14
+ SessionType["telnet"] = "telnet";
15
+ })(SessionType = exports.SessionType || (exports.SessionType = {}));
16
+ class UserSession extends ModelObject_1.default {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.accessLevel = AccessLevel.readOnly;
20
+ this.id = 0;
21
+ this.origin = null;
22
+ this.originId = -1;
23
+ this.sessionType = SessionType.local;
24
+ }
25
+ }
26
+ exports.UserSession = UserSession;
27
+ exports.default = UserSession;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",