@duet3d/objectmodel 3.5.0-beta.32 → 3.5.0-beta.34
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/LICENSE +504 -504
- package/README.md +17 -17
- package/dist/ModelCollection.d.ts +37 -37
- package/dist/ModelCollection.js +103 -103
- package/dist/ModelDictionary.d.ts +46 -46
- package/dist/ModelDictionary.js +108 -108
- package/dist/ModelObject.d.ts +47 -47
- package/dist/ModelObject.js +212 -212
- package/dist/ModelSet.d.ts +11 -11
- package/dist/ModelSet.js +15 -15
- package/dist/ObjectModel.d.ts +46 -46
- package/dist/ObjectModel.js +53 -53
- package/dist/boards/index.d.ts +52 -52
- package/dist/boards/index.js +81 -81
- package/dist/directories/index.d.ts +12 -12
- package/dist/directories/index.js +19 -19
- package/dist/fans/index.d.ts +19 -19
- package/dist/fans/index.js +30 -30
- package/dist/heat/Heater.d.ts +28 -28
- package/dist/heat/Heater.js +36 -36
- package/dist/heat/HeaterModel.d.ts +21 -21
- package/dist/heat/HeaterModel.js +32 -32
- package/dist/heat/HeaterMonitor.d.ts +18 -18
- package/dist/heat/HeaterMonitor.js +27 -27
- package/dist/heat/index.d.ts +14 -14
- package/dist/heat/index.js +35 -35
- package/dist/httpEndpoints/index.d.ts +19 -19
- package/dist/httpEndpoints/index.js +27 -27
- package/dist/index.d.ts +26 -26
- package/dist/index.js +55 -55
- package/dist/inputs/CodeChannel.d.ts +18 -18
- package/dist/inputs/CodeChannel.js +22 -22
- package/dist/inputs/Compatibility.d.ts +10 -10
- package/dist/inputs/Compatibility.js +14 -14
- package/dist/inputs/InputChannel.d.ts +30 -30
- package/dist/inputs/InputChannel.js +39 -39
- package/dist/inputs/index.d.ts +3 -3
- package/dist/inputs/index.js +19 -19
- package/dist/job/Build.d.ts +15 -15
- package/dist/job/Build.js +26 -26
- package/dist/job/GCodeFileInfo.d.ts +17 -17
- package/dist/job/GCodeFileInfo.js +24 -24
- package/dist/job/ThumbnailInfo.d.ts +15 -15
- package/dist/job/ThumbnailInfo.js +23 -23
- package/dist/job/index.d.ts +40 -40
- package/dist/job/index.js +70 -70
- package/dist/limits/index.d.ts +29 -29
- package/dist/limits/index.js +36 -36
- package/dist/messages/index.d.ts +13 -13
- package/dist/messages/index.js +27 -27
- package/dist/move/Axis.d.ts +47 -47
- package/dist/move/Axis.js +55 -55
- package/dist/move/DriverId.d.ts +10 -10
- package/dist/move/DriverId.js +49 -49
- package/dist/move/Extruder.d.ts +28 -28
- package/dist/move/Extruder.js +39 -39
- package/dist/move/InputShaping.d.ts +20 -20
- package/dist/move/InputShaping.js +28 -28
- package/dist/move/KeepoutZone.d.ts +10 -10
- package/dist/move/KeepoutZone.js +21 -21
- package/dist/move/Microstepping.d.ts +6 -6
- package/dist/move/Microstepping.js +13 -13
- package/dist/move/MoveCalibration.d.ts +11 -11
- package/dist/move/MoveCalibration.js +22 -22
- package/dist/move/MoveCompensation.d.ts +30 -30
- package/dist/move/MoveCompensation.js +47 -47
- package/dist/move/index.d.ts +60 -60
- package/dist/move/index.js +97 -97
- package/dist/move/kinematics/CoreKinematics.d.ts +9 -9
- package/dist/move/kinematics/CoreKinematics.js +31 -31
- package/dist/move/kinematics/DeltaKinematics.d.ts +20 -20
- package/dist/move/kinematics/DeltaKinematics.js +40 -40
- package/dist/move/kinematics/HangprinterKinematics.d.ts +9 -9
- package/dist/move/kinematics/HangprinterKinematics.js +28 -28
- package/dist/move/kinematics/KinematicsBase.d.ts +36 -37
- package/dist/move/kinematics/KinematicsBase.js +55 -56
- package/dist/move/kinematics/PolarKinematics.d.ts +7 -7
- package/dist/move/kinematics/PolarKinematics.js +21 -21
- package/dist/move/kinematics/ScaraKinematics.d.ts +6 -6
- package/dist/move/kinematics/ScaraKinematics.js +18 -18
- package/dist/move/kinematics/index.d.ts +14 -14
- package/dist/move/kinematics/index.js +72 -70
- package/dist/network/NetworkInterface.d.ts +41 -41
- package/dist/network/NetworkInterface.js +51 -51
- package/dist/network/index.d.ts +14 -14
- package/dist/network/index.js +35 -35
- package/dist/plugins/PluginManifest.d.ts +64 -64
- package/dist/plugins/PluginManifest.js +114 -114
- package/dist/plugins/index.d.ts +9 -9
- package/dist/plugins/index.js +30 -30
- package/dist/sensors/AnalogSensor.d.ts +48 -48
- package/dist/sensors/AnalogSensor.js +57 -57
- package/dist/sensors/Endstop.d.ts +15 -15
- package/dist/sensors/Endstop.js +23 -23
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.d.ts +24 -24
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.js +32 -32
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.d.ts +22 -22
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.js +46 -46
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.d.ts +21 -21
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.js +45 -45
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.d.ts +22 -22
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.js +46 -46
- package/dist/sensors/FilamentMonitors/index.d.ts +11 -11
- package/dist/sensors/FilamentMonitors/index.js +51 -51
- package/dist/sensors/Probe.d.ts +33 -33
- package/dist/sensors/Probe.js +41 -41
- package/dist/sensors/index.d.ts +21 -21
- package/dist/sensors/index.js +46 -46
- package/dist/spindles/index.d.ts +20 -20
- package/dist/spindles/index.js +28 -28
- package/dist/state/MachineStatus.d.ts +17 -17
- package/dist/state/MachineStatus.js +21 -21
- package/dist/state/MessageBox.d.ts +26 -26
- package/dist/state/MessageBox.js +39 -39
- package/dist/state/RestorePoint.d.ts +12 -12
- package/dist/state/RestorePoint.js +19 -19
- package/dist/state/index.d.ts +63 -63
- package/dist/state/index.js +100 -100
- package/dist/tools/index.d.ts +26 -26
- package/dist/tools/index.js +34 -34
- package/dist/userSessions/index.d.ts +18 -18
- package/dist/userSessions/index.js +27 -27
- package/dist/volumes/index.d.ts +11 -11
- package/dist/volumes/index.js +18 -18
- package/package.json +32 -32
- package/dist/scanner/index.d.ts +0 -14
- package/dist/scanner/index.js +0 -22
package/dist/ObjectModel.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import ModelCollection from "./ModelCollection";
|
|
2
|
-
import ModelDictionary from "./ModelDictionary";
|
|
3
|
-
import ModelObject from "./ModelObject";
|
|
4
|
-
import Board from "./boards";
|
|
5
|
-
import Directories from "./directories";
|
|
6
|
-
import Fan from "./fans";
|
|
7
|
-
import Heat from "./heat";
|
|
8
|
-
import HttpEndpoint from "./httpEndpoints";
|
|
9
|
-
import InputChannel from "./inputs/InputChannel";
|
|
10
|
-
import Job from "./job";
|
|
11
|
-
import Limits from "./limits";
|
|
12
|
-
import Message from "./messages";
|
|
13
|
-
import Move from "./move";
|
|
14
|
-
import Network from "./network";
|
|
15
|
-
import Plugin from "./plugins";
|
|
16
|
-
import Sensors from "./sensors";
|
|
17
|
-
import Spindle from "./spindles";
|
|
18
|
-
import State from "./state";
|
|
19
|
-
import Tool from "./tools";
|
|
20
|
-
import UserSession from "./userSessions";
|
|
21
|
-
import Volume from "./volumes";
|
|
22
|
-
/**
|
|
23
|
-
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
24
|
-
*/
|
|
25
|
-
export declare class ObjectModel extends ModelObject {
|
|
26
|
-
readonly boards: ModelCollection<Board>;
|
|
27
|
-
readonly directories: Directories;
|
|
28
|
-
readonly fans: ModelCollection<Fan | null>;
|
|
29
|
-
readonly global: ModelDictionary<any>;
|
|
30
|
-
readonly heat: Heat;
|
|
31
|
-
readonly httpEndpoints: ModelCollection<HttpEndpoint>;
|
|
32
|
-
readonly inputs: ModelCollection<InputChannel | null>;
|
|
33
|
-
readonly job: Job;
|
|
34
|
-
readonly limits: Limits;
|
|
35
|
-
readonly messages: ModelCollection<Message>;
|
|
36
|
-
readonly move: Move;
|
|
37
|
-
readonly network: Network;
|
|
38
|
-
readonly plugins: ModelDictionary<Plugin>;
|
|
39
|
-
readonly sensors: Sensors;
|
|
40
|
-
readonly spindles: ModelCollection<Spindle | null>;
|
|
41
|
-
readonly state: State;
|
|
42
|
-
readonly tools: ModelCollection<Tool | null>;
|
|
43
|
-
readonly userSessions: ModelCollection<UserSession>;
|
|
44
|
-
readonly volumes: ModelCollection<Volume>;
|
|
45
|
-
}
|
|
46
|
-
export default ObjectModel;
|
|
1
|
+
import ModelCollection from "./ModelCollection";
|
|
2
|
+
import ModelDictionary from "./ModelDictionary";
|
|
3
|
+
import ModelObject from "./ModelObject";
|
|
4
|
+
import Board from "./boards";
|
|
5
|
+
import Directories from "./directories";
|
|
6
|
+
import Fan from "./fans";
|
|
7
|
+
import Heat from "./heat";
|
|
8
|
+
import HttpEndpoint from "./httpEndpoints";
|
|
9
|
+
import InputChannel from "./inputs/InputChannel";
|
|
10
|
+
import Job from "./job";
|
|
11
|
+
import Limits from "./limits";
|
|
12
|
+
import Message from "./messages";
|
|
13
|
+
import Move from "./move";
|
|
14
|
+
import Network from "./network";
|
|
15
|
+
import Plugin from "./plugins";
|
|
16
|
+
import Sensors from "./sensors";
|
|
17
|
+
import Spindle from "./spindles";
|
|
18
|
+
import State from "./state";
|
|
19
|
+
import Tool from "./tools";
|
|
20
|
+
import UserSession from "./userSessions";
|
|
21
|
+
import Volume from "./volumes";
|
|
22
|
+
/**
|
|
23
|
+
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
24
|
+
*/
|
|
25
|
+
export declare class ObjectModel extends ModelObject {
|
|
26
|
+
readonly boards: ModelCollection<Board>;
|
|
27
|
+
readonly directories: Directories;
|
|
28
|
+
readonly fans: ModelCollection<Fan | null>;
|
|
29
|
+
readonly global: ModelDictionary<any>;
|
|
30
|
+
readonly heat: Heat;
|
|
31
|
+
readonly httpEndpoints: ModelCollection<HttpEndpoint>;
|
|
32
|
+
readonly inputs: ModelCollection<InputChannel | null>;
|
|
33
|
+
readonly job: Job;
|
|
34
|
+
readonly limits: Limits;
|
|
35
|
+
readonly messages: ModelCollection<Message>;
|
|
36
|
+
readonly move: Move;
|
|
37
|
+
readonly network: Network;
|
|
38
|
+
readonly plugins: ModelDictionary<Plugin>;
|
|
39
|
+
readonly sensors: Sensors;
|
|
40
|
+
readonly spindles: ModelCollection<Spindle | null>;
|
|
41
|
+
readonly state: State;
|
|
42
|
+
readonly tools: ModelCollection<Tool | null>;
|
|
43
|
+
readonly userSessions: ModelCollection<UserSession>;
|
|
44
|
+
readonly volumes: ModelCollection<Volume>;
|
|
45
|
+
}
|
|
46
|
+
export default ObjectModel;
|
package/dist/ObjectModel.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectModel = void 0;
|
|
4
|
-
const ModelCollection_1 = require("./ModelCollection");
|
|
5
|
-
const ModelDictionary_1 = require("./ModelDictionary");
|
|
6
|
-
const ModelObject_1 = require("./ModelObject");
|
|
7
|
-
const boards_1 = require("./boards");
|
|
8
|
-
const directories_1 = require("./directories");
|
|
9
|
-
const fans_1 = require("./fans");
|
|
10
|
-
const heat_1 = require("./heat");
|
|
11
|
-
const httpEndpoints_1 = require("./httpEndpoints");
|
|
12
|
-
const InputChannel_1 = require("./inputs/InputChannel");
|
|
13
|
-
const job_1 = require("./job");
|
|
14
|
-
const limits_1 = require("./limits");
|
|
15
|
-
const messages_1 = require("./messages");
|
|
16
|
-
const move_1 = require("./move");
|
|
17
|
-
const network_1 = require("./network");
|
|
18
|
-
const plugins_1 = require("./plugins");
|
|
19
|
-
const sensors_1 = require("./sensors");
|
|
20
|
-
const spindles_1 = require("./spindles");
|
|
21
|
-
const state_1 = require("./state");
|
|
22
|
-
const tools_1 = require("./tools");
|
|
23
|
-
const userSessions_1 = require("./userSessions");
|
|
24
|
-
const volumes_1 = require("./volumes");
|
|
25
|
-
/**
|
|
26
|
-
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
27
|
-
*/
|
|
28
|
-
class ObjectModel extends ModelObject_1.default {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this.boards = new ModelCollection_1.default(boards_1.default);
|
|
32
|
-
this.directories = new directories_1.default();
|
|
33
|
-
this.fans = new ModelCollection_1.default(fans_1.default);
|
|
34
|
-
this.global = new ModelDictionary_1.default(false);
|
|
35
|
-
this.heat = new heat_1.default();
|
|
36
|
-
this.httpEndpoints = new ModelCollection_1.default(httpEndpoints_1.default);
|
|
37
|
-
this.inputs = new ModelCollection_1.default(InputChannel_1.default);
|
|
38
|
-
this.job = new job_1.default();
|
|
39
|
-
this.limits = new limits_1.default();
|
|
40
|
-
this.messages = new ModelCollection_1.default(messages_1.default); // must be manually cleared after updates
|
|
41
|
-
this.move = new move_1.default();
|
|
42
|
-
this.network = new network_1.default();
|
|
43
|
-
this.plugins = new ModelDictionary_1.default(true, plugins_1.default);
|
|
44
|
-
this.sensors = new sensors_1.default();
|
|
45
|
-
this.spindles = new ModelCollection_1.default(spindles_1.default);
|
|
46
|
-
this.state = new state_1.default();
|
|
47
|
-
this.tools = new ModelCollection_1.default(tools_1.default);
|
|
48
|
-
this.userSessions = new ModelCollection_1.default(userSessions_1.default);
|
|
49
|
-
this.volumes = new ModelCollection_1.default(volumes_1.default);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ObjectModel = ObjectModel;
|
|
53
|
-
exports.default = ObjectModel;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectModel = void 0;
|
|
4
|
+
const ModelCollection_1 = require("./ModelCollection");
|
|
5
|
+
const ModelDictionary_1 = require("./ModelDictionary");
|
|
6
|
+
const ModelObject_1 = require("./ModelObject");
|
|
7
|
+
const boards_1 = require("./boards");
|
|
8
|
+
const directories_1 = require("./directories");
|
|
9
|
+
const fans_1 = require("./fans");
|
|
10
|
+
const heat_1 = require("./heat");
|
|
11
|
+
const httpEndpoints_1 = require("./httpEndpoints");
|
|
12
|
+
const InputChannel_1 = require("./inputs/InputChannel");
|
|
13
|
+
const job_1 = require("./job");
|
|
14
|
+
const limits_1 = require("./limits");
|
|
15
|
+
const messages_1 = require("./messages");
|
|
16
|
+
const move_1 = require("./move");
|
|
17
|
+
const network_1 = require("./network");
|
|
18
|
+
const plugins_1 = require("./plugins");
|
|
19
|
+
const sensors_1 = require("./sensors");
|
|
20
|
+
const spindles_1 = require("./spindles");
|
|
21
|
+
const state_1 = require("./state");
|
|
22
|
+
const tools_1 = require("./tools");
|
|
23
|
+
const userSessions_1 = require("./userSessions");
|
|
24
|
+
const volumes_1 = require("./volumes");
|
|
25
|
+
/**
|
|
26
|
+
* Refer to the DSF/RRF documentation for descriptions of the object model fields
|
|
27
|
+
*/
|
|
28
|
+
class ObjectModel extends ModelObject_1.default {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.boards = new ModelCollection_1.default(boards_1.default);
|
|
32
|
+
this.directories = new directories_1.default();
|
|
33
|
+
this.fans = new ModelCollection_1.default(fans_1.default);
|
|
34
|
+
this.global = new ModelDictionary_1.default(false);
|
|
35
|
+
this.heat = new heat_1.default();
|
|
36
|
+
this.httpEndpoints = new ModelCollection_1.default(httpEndpoints_1.default);
|
|
37
|
+
this.inputs = new ModelCollection_1.default(InputChannel_1.default);
|
|
38
|
+
this.job = new job_1.default();
|
|
39
|
+
this.limits = new limits_1.default();
|
|
40
|
+
this.messages = new ModelCollection_1.default(messages_1.default); // must be manually cleared after updates
|
|
41
|
+
this.move = new move_1.default();
|
|
42
|
+
this.network = new network_1.default();
|
|
43
|
+
this.plugins = new ModelDictionary_1.default(true, plugins_1.default);
|
|
44
|
+
this.sensors = new sensors_1.default();
|
|
45
|
+
this.spindles = new ModelCollection_1.default(spindles_1.default);
|
|
46
|
+
this.state = new state_1.default();
|
|
47
|
+
this.tools = new ModelCollection_1.default(tools_1.default);
|
|
48
|
+
this.userSessions = new ModelCollection_1.default(userSessions_1.default);
|
|
49
|
+
this.volumes = new ModelCollection_1.default(volumes_1.default);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ObjectModel = ObjectModel;
|
|
53
|
+
exports.default = ObjectModel;
|
package/dist/boards/index.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
export declare class Accelerometer extends ModelObject {
|
|
3
|
-
points: number;
|
|
4
|
-
runs: number;
|
|
5
|
-
}
|
|
6
|
-
export declare enum BoardState {
|
|
7
|
-
unknown = "unknown",
|
|
8
|
-
flashing = "flashing",
|
|
9
|
-
flashFailed = "flashFailed",
|
|
10
|
-
resetting = "resetting",
|
|
11
|
-
running = "running"
|
|
12
|
-
}
|
|
13
|
-
export declare class ClosedLoop extends ModelObject {
|
|
14
|
-
points: number;
|
|
15
|
-
runs: number;
|
|
16
|
-
}
|
|
17
|
-
export declare class MinMaxCurrent extends ModelObject {
|
|
18
|
-
current: number;
|
|
19
|
-
min: number;
|
|
20
|
-
max: number;
|
|
21
|
-
}
|
|
22
|
-
export declare class DirectDisplay extends ModelObject {
|
|
23
|
-
pulsesPerClick: number;
|
|
24
|
-
spiFreq: number;
|
|
25
|
-
typeName: string;
|
|
26
|
-
}
|
|
27
|
-
export declare class Board extends ModelObject {
|
|
28
|
-
constructor();
|
|
29
|
-
accelerometer: Accelerometer | null;
|
|
30
|
-
bootloaderFileName: string | null;
|
|
31
|
-
canAddress: number | null;
|
|
32
|
-
closedLoop: ClosedLoop | null;
|
|
33
|
-
directDisplay: DirectDisplay | null;
|
|
34
|
-
firmwareDate: string;
|
|
35
|
-
firmwareFileName: string;
|
|
36
|
-
firmwareName: string;
|
|
37
|
-
firmwareVersion: string;
|
|
38
|
-
iapFileNameSBC: string | null;
|
|
39
|
-
iapFileNameSD: string | null;
|
|
40
|
-
maxHeaters: number;
|
|
41
|
-
maxMotors: number;
|
|
42
|
-
mcuTemp: MinMaxCurrent | null;
|
|
43
|
-
name: string;
|
|
44
|
-
shortName: string;
|
|
45
|
-
state: BoardState;
|
|
46
|
-
supportsDirectDisplay: boolean;
|
|
47
|
-
uniqueId: string | null;
|
|
48
|
-
v12: MinMaxCurrent | null;
|
|
49
|
-
vIn: MinMaxCurrent | null;
|
|
50
|
-
wifiFirmwareFileName: string | null;
|
|
51
|
-
}
|
|
52
|
-
export default Board;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export declare class Accelerometer extends ModelObject {
|
|
3
|
+
points: number;
|
|
4
|
+
runs: number;
|
|
5
|
+
}
|
|
6
|
+
export declare enum BoardState {
|
|
7
|
+
unknown = "unknown",
|
|
8
|
+
flashing = "flashing",
|
|
9
|
+
flashFailed = "flashFailed",
|
|
10
|
+
resetting = "resetting",
|
|
11
|
+
running = "running"
|
|
12
|
+
}
|
|
13
|
+
export declare class ClosedLoop extends ModelObject {
|
|
14
|
+
points: number;
|
|
15
|
+
runs: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class MinMaxCurrent extends ModelObject {
|
|
18
|
+
current: number;
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class DirectDisplay extends ModelObject {
|
|
23
|
+
pulsesPerClick: number;
|
|
24
|
+
spiFreq: number;
|
|
25
|
+
typeName: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class Board extends ModelObject {
|
|
28
|
+
constructor();
|
|
29
|
+
accelerometer: Accelerometer | null;
|
|
30
|
+
bootloaderFileName: string | null;
|
|
31
|
+
canAddress: number | null;
|
|
32
|
+
closedLoop: ClosedLoop | null;
|
|
33
|
+
directDisplay: DirectDisplay | null;
|
|
34
|
+
firmwareDate: string;
|
|
35
|
+
firmwareFileName: string;
|
|
36
|
+
firmwareName: string;
|
|
37
|
+
firmwareVersion: string;
|
|
38
|
+
iapFileNameSBC: string | null;
|
|
39
|
+
iapFileNameSD: string | null;
|
|
40
|
+
maxHeaters: number;
|
|
41
|
+
maxMotors: number;
|
|
42
|
+
mcuTemp: MinMaxCurrent | null;
|
|
43
|
+
name: string;
|
|
44
|
+
shortName: string;
|
|
45
|
+
state: BoardState;
|
|
46
|
+
supportsDirectDisplay: boolean;
|
|
47
|
+
uniqueId: string | null;
|
|
48
|
+
v12: MinMaxCurrent | null;
|
|
49
|
+
vIn: MinMaxCurrent | null;
|
|
50
|
+
wifiFirmwareFileName: string | null;
|
|
51
|
+
}
|
|
52
|
+
export default Board;
|
package/dist/boards/index.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Board = exports.DirectDisplay = exports.MinMaxCurrent = exports.ClosedLoop = exports.BoardState = exports.Accelerometer = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
class Accelerometer extends ModelObject_1.default {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.points = 0;
|
|
9
|
-
this.runs = 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.Accelerometer = Accelerometer;
|
|
13
|
-
var BoardState;
|
|
14
|
-
(function (BoardState) {
|
|
15
|
-
BoardState["unknown"] = "unknown";
|
|
16
|
-
BoardState["flashing"] = "flashing";
|
|
17
|
-
BoardState["flashFailed"] = "flashFailed";
|
|
18
|
-
BoardState["resetting"] = "resetting";
|
|
19
|
-
BoardState["running"] = "running";
|
|
20
|
-
})(BoardState = exports.BoardState || (exports.BoardState = {}));
|
|
21
|
-
class ClosedLoop extends ModelObject_1.default {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
|
-
this.points = 0;
|
|
25
|
-
this.runs = 0;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.ClosedLoop = ClosedLoop;
|
|
29
|
-
class MinMaxCurrent extends ModelObject_1.default {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(...arguments);
|
|
32
|
-
this.current = 0;
|
|
33
|
-
this.min = 0;
|
|
34
|
-
this.max = 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.MinMaxCurrent = MinMaxCurrent;
|
|
38
|
-
class DirectDisplay extends ModelObject_1.default {
|
|
39
|
-
constructor() {
|
|
40
|
-
super(...arguments);
|
|
41
|
-
this.pulsesPerClick = 0;
|
|
42
|
-
this.spiFreq = 0;
|
|
43
|
-
this.typeName = "";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.DirectDisplay = DirectDisplay;
|
|
47
|
-
class Board extends ModelObject_1.default {
|
|
48
|
-
constructor() {
|
|
49
|
-
super();
|
|
50
|
-
this.accelerometer = null;
|
|
51
|
-
this.bootloaderFileName = null;
|
|
52
|
-
this.canAddress = null;
|
|
53
|
-
this.closedLoop = null;
|
|
54
|
-
this.directDisplay = null;
|
|
55
|
-
this.firmwareDate = "";
|
|
56
|
-
this.firmwareFileName = "";
|
|
57
|
-
this.firmwareName = "";
|
|
58
|
-
this.firmwareVersion = "";
|
|
59
|
-
this.iapFileNameSBC = null;
|
|
60
|
-
this.iapFileNameSD = null;
|
|
61
|
-
this.maxHeaters = 0;
|
|
62
|
-
this.maxMotors = 0;
|
|
63
|
-
this.mcuTemp = null;
|
|
64
|
-
this.name = "";
|
|
65
|
-
this.shortName = "";
|
|
66
|
-
this.state = BoardState.unknown;
|
|
67
|
-
this.supportsDirectDisplay = false;
|
|
68
|
-
this.uniqueId = null;
|
|
69
|
-
this.v12 = null;
|
|
70
|
-
this.vIn = null;
|
|
71
|
-
this.wifiFirmwareFileName = null;
|
|
72
|
-
ModelObject_1.default.wrapModelProperty(this, "accelerometer", Accelerometer);
|
|
73
|
-
ModelObject_1.default.wrapModelProperty(this, "closedLoop", ClosedLoop);
|
|
74
|
-
ModelObject_1.default.wrapModelProperty(this, "directDisplay", DirectDisplay);
|
|
75
|
-
ModelObject_1.default.wrapModelProperty(this, "mcuTemp", MinMaxCurrent);
|
|
76
|
-
ModelObject_1.default.wrapModelProperty(this, "v12", MinMaxCurrent);
|
|
77
|
-
ModelObject_1.default.wrapModelProperty(this, "vIn", MinMaxCurrent);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exports.Board = Board;
|
|
81
|
-
exports.default = Board;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Board = exports.DirectDisplay = exports.MinMaxCurrent = exports.ClosedLoop = exports.BoardState = exports.Accelerometer = void 0;
|
|
4
|
+
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
class Accelerometer extends ModelObject_1.default {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.points = 0;
|
|
9
|
+
this.runs = 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.Accelerometer = Accelerometer;
|
|
13
|
+
var BoardState;
|
|
14
|
+
(function (BoardState) {
|
|
15
|
+
BoardState["unknown"] = "unknown";
|
|
16
|
+
BoardState["flashing"] = "flashing";
|
|
17
|
+
BoardState["flashFailed"] = "flashFailed";
|
|
18
|
+
BoardState["resetting"] = "resetting";
|
|
19
|
+
BoardState["running"] = "running";
|
|
20
|
+
})(BoardState = exports.BoardState || (exports.BoardState = {}));
|
|
21
|
+
class ClosedLoop extends ModelObject_1.default {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.points = 0;
|
|
25
|
+
this.runs = 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.ClosedLoop = ClosedLoop;
|
|
29
|
+
class MinMaxCurrent extends ModelObject_1.default {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
this.current = 0;
|
|
33
|
+
this.min = 0;
|
|
34
|
+
this.max = 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.MinMaxCurrent = MinMaxCurrent;
|
|
38
|
+
class DirectDisplay extends ModelObject_1.default {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
this.pulsesPerClick = 0;
|
|
42
|
+
this.spiFreq = 0;
|
|
43
|
+
this.typeName = "";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DirectDisplay = DirectDisplay;
|
|
47
|
+
class Board extends ModelObject_1.default {
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
50
|
+
this.accelerometer = null;
|
|
51
|
+
this.bootloaderFileName = null;
|
|
52
|
+
this.canAddress = null;
|
|
53
|
+
this.closedLoop = null;
|
|
54
|
+
this.directDisplay = null;
|
|
55
|
+
this.firmwareDate = "";
|
|
56
|
+
this.firmwareFileName = "";
|
|
57
|
+
this.firmwareName = "";
|
|
58
|
+
this.firmwareVersion = "";
|
|
59
|
+
this.iapFileNameSBC = null;
|
|
60
|
+
this.iapFileNameSD = null;
|
|
61
|
+
this.maxHeaters = 0;
|
|
62
|
+
this.maxMotors = 0;
|
|
63
|
+
this.mcuTemp = null;
|
|
64
|
+
this.name = "";
|
|
65
|
+
this.shortName = "";
|
|
66
|
+
this.state = BoardState.unknown;
|
|
67
|
+
this.supportsDirectDisplay = false;
|
|
68
|
+
this.uniqueId = null;
|
|
69
|
+
this.v12 = null;
|
|
70
|
+
this.vIn = null;
|
|
71
|
+
this.wifiFirmwareFileName = null;
|
|
72
|
+
ModelObject_1.default.wrapModelProperty(this, "accelerometer", Accelerometer);
|
|
73
|
+
ModelObject_1.default.wrapModelProperty(this, "closedLoop", ClosedLoop);
|
|
74
|
+
ModelObject_1.default.wrapModelProperty(this, "directDisplay", DirectDisplay);
|
|
75
|
+
ModelObject_1.default.wrapModelProperty(this, "mcuTemp", MinMaxCurrent);
|
|
76
|
+
ModelObject_1.default.wrapModelProperty(this, "v12", MinMaxCurrent);
|
|
77
|
+
ModelObject_1.default.wrapModelProperty(this, "vIn", MinMaxCurrent);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Board = Board;
|
|
81
|
+
exports.default = Board;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
export declare class Directories extends ModelObject {
|
|
3
|
-
filaments: string;
|
|
4
|
-
firmware: string;
|
|
5
|
-
gCodes: string;
|
|
6
|
-
macros: string;
|
|
7
|
-
menu: string;
|
|
8
|
-
scans: string;
|
|
9
|
-
system: string;
|
|
10
|
-
web: string;
|
|
11
|
-
}
|
|
12
|
-
export default Directories;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export declare class Directories extends ModelObject {
|
|
3
|
+
filaments: string;
|
|
4
|
+
firmware: string;
|
|
5
|
+
gCodes: string;
|
|
6
|
+
macros: string;
|
|
7
|
+
menu: string;
|
|
8
|
+
scans: string;
|
|
9
|
+
system: string;
|
|
10
|
+
web: string;
|
|
11
|
+
}
|
|
12
|
+
export default Directories;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Directories = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
class Directories extends ModelObject_1.default {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.filaments = "0:/filaments";
|
|
9
|
-
this.firmware = "0:/firmware";
|
|
10
|
-
this.gCodes = "0:/gcodes";
|
|
11
|
-
this.macros = "0:/macros";
|
|
12
|
-
this.menu = "0:/menu";
|
|
13
|
-
this.scans = "0:/scans";
|
|
14
|
-
this.system = "0:/sys";
|
|
15
|
-
this.web = "0:/www";
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.Directories = Directories;
|
|
19
|
-
exports.default = Directories;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Directories = void 0;
|
|
4
|
+
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
class Directories extends ModelObject_1.default {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.filaments = "0:/filaments";
|
|
9
|
+
this.firmware = "0:/firmware";
|
|
10
|
+
this.gCodes = "0:/gcodes";
|
|
11
|
+
this.macros = "0:/macros";
|
|
12
|
+
this.menu = "0:/menu";
|
|
13
|
+
this.scans = "0:/scans";
|
|
14
|
+
this.system = "0:/sys";
|
|
15
|
+
this.web = "0:/www";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Directories = Directories;
|
|
19
|
+
exports.default = Directories;
|
package/dist/fans/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
export declare class FanThermostaticControl extends ModelObject {
|
|
3
|
-
heaters: Array<number>;
|
|
4
|
-
highTemperature: number | null;
|
|
5
|
-
lowTemperature: number | null;
|
|
6
|
-
sensors: Array<number>;
|
|
7
|
-
}
|
|
8
|
-
export declare class Fan extends ModelObject {
|
|
9
|
-
actualValue: number;
|
|
10
|
-
blip: number;
|
|
11
|
-
frequency: number;
|
|
12
|
-
max: number;
|
|
13
|
-
min: number;
|
|
14
|
-
name: string;
|
|
15
|
-
requestedValue: number;
|
|
16
|
-
rpm: number;
|
|
17
|
-
readonly thermostatic: FanThermostaticControl;
|
|
18
|
-
}
|
|
19
|
-
export default Fan;
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export declare class FanThermostaticControl extends ModelObject {
|
|
3
|
+
heaters: Array<number>;
|
|
4
|
+
highTemperature: number | null;
|
|
5
|
+
lowTemperature: number | null;
|
|
6
|
+
sensors: Array<number>;
|
|
7
|
+
}
|
|
8
|
+
export declare class Fan extends ModelObject {
|
|
9
|
+
actualValue: number;
|
|
10
|
+
blip: number;
|
|
11
|
+
frequency: number;
|
|
12
|
+
max: number;
|
|
13
|
+
min: number;
|
|
14
|
+
name: string;
|
|
15
|
+
requestedValue: number;
|
|
16
|
+
rpm: number;
|
|
17
|
+
readonly thermostatic: FanThermostaticControl;
|
|
18
|
+
}
|
|
19
|
+
export default Fan;
|
package/dist/fans/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Fan = exports.FanThermostaticControl = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
class FanThermostaticControl extends ModelObject_1.default {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
this.heaters = []; // *** deprecated as of v3.5, use sensors instead
|
|
9
|
-
this.highTemperature = null;
|
|
10
|
-
this.lowTemperature = null;
|
|
11
|
-
this.sensors = [];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.FanThermostaticControl = FanThermostaticControl;
|
|
15
|
-
class Fan extends ModelObject_1.default {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.actualValue = 0;
|
|
19
|
-
this.blip = 0.1;
|
|
20
|
-
this.frequency = 250;
|
|
21
|
-
this.max = 1;
|
|
22
|
-
this.min = 0;
|
|
23
|
-
this.name = "";
|
|
24
|
-
this.requestedValue = 0;
|
|
25
|
-
this.rpm = -1;
|
|
26
|
-
this.thermostatic = new FanThermostaticControl();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Fan = Fan;
|
|
30
|
-
exports.default = Fan;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Fan = exports.FanThermostaticControl = void 0;
|
|
4
|
+
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
class FanThermostaticControl extends ModelObject_1.default {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.heaters = []; // *** deprecated as of v3.5, use sensors instead
|
|
9
|
+
this.highTemperature = null;
|
|
10
|
+
this.lowTemperature = null;
|
|
11
|
+
this.sensors = [];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.FanThermostaticControl = FanThermostaticControl;
|
|
15
|
+
class Fan extends ModelObject_1.default {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.actualValue = 0;
|
|
19
|
+
this.blip = 0.1;
|
|
20
|
+
this.frequency = 250;
|
|
21
|
+
this.max = 1;
|
|
22
|
+
this.min = 0;
|
|
23
|
+
this.name = "";
|
|
24
|
+
this.requestedValue = 0;
|
|
25
|
+
this.rpm = -1;
|
|
26
|
+
this.thermostatic = new FanThermostaticControl();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Fan = Fan;
|
|
30
|
+
exports.default = Fan;
|