@duet3d/objectmodel 3.7.0-alpha.5 → 3.7.0-alpha.6

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.
@@ -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
+ }
@@ -7,7 +7,7 @@ export declare class ExtruderNonlinear extends ModelObject {
7
7
  upperLimit: number;
8
8
  }
9
9
  export declare class ExtruderPressureAdvance extends ModelObject {
10
- d: number;
10
+ d: number | null;
11
11
  k0: number;
12
12
  k1: number;
13
13
  }
@@ -16,7 +16,7 @@ exports.ExtruderNonlinear = ExtruderNonlinear;
16
16
  class ExtruderPressureAdvance extends ModelObject_1.default {
17
17
  constructor() {
18
18
  super(...arguments);
19
- this.d = 0;
19
+ this.d = null;
20
20
  this.k0 = 0;
21
21
  this.k1 = 0;
22
22
  }
@@ -10,7 +10,7 @@ export declare class Tool extends ModelObject {
10
10
  axes: Array<Array<number>>;
11
11
  extruders: Array<number>;
12
12
  fans: Array<number>;
13
- /** @deprecated Use feedForwardPwm instead */
13
+ /** @deprecated use feedForwardPwm instead */
14
14
  feedForward: Array<number>;
15
15
  feedForwardAdvance: number;
16
16
  feedForwardPwm: Array<number>;
@@ -16,7 +16,7 @@ class Tool extends ModelObject_1.default {
16
16
  this.axes = [];
17
17
  this.extruders = [];
18
18
  this.fans = [];
19
- /** @deprecated Use feedForwardPwm instead */
19
+ /** @deprecated use feedForwardPwm instead */
20
20
  this.feedForward = [];
21
21
  this.feedForwardAdvance = 0;
22
22
  this.feedForwardPwm = [];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.7.0-alpha.5",
3
+ "version": "3.7.0-alpha.6",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "test": "jest --config jestconfig.json",
9
- "build": "tsc",
9
+ "build": "tsc && ts-node scripts/extract-metadata.ts",
10
10
  "prepare": "npm run build",
11
11
  "prepublishOnly": "npm test"
12
12
  },
@@ -24,6 +24,7 @@
24
24
  "@types/jest": "^30.0.0",
25
25
  "jest": "^30.2.0",
26
26
  "ts-jest": "^29.1.2",
27
+ "ts-node": "^10.9.2",
27
28
  "typescript": "^5.4.5"
28
29
  },
29
30
  "files": [
@@ -1,19 +0,0 @@
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;
@@ -1,27 +0,0 @@
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;
@@ -1,18 +0,0 @@
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;
@@ -1,27 +0,0 @@
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;