@duet3d/objectmodel 3.5.0-beta.40 → 3.5.0-beta.41
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/package.json +1 -1
- package/package.json +1 -1
- package/dist/ModelCollection.d.ts +0 -37
- package/dist/ModelCollection.js +0 -103
- package/dist/ModelDictionary.d.ts +0 -46
- package/dist/ModelDictionary.js +0 -108
- package/dist/ModelObject.d.ts +0 -47
- package/dist/ModelObject.js +0 -212
- package/dist/ModelSet.d.ts +0 -11
- package/dist/ModelSet.js +0 -15
- package/dist/ObjectModel.d.ts +0 -46
- package/dist/ObjectModel.js +0 -53
- package/dist/boards/index.d.ts +0 -52
- package/dist/boards/index.js +0 -81
- package/dist/directories/index.d.ts +0 -11
- package/dist/directories/index.js +0 -18
- package/dist/fans/index.d.ts +0 -19
- package/dist/fans/index.js +0 -30
- package/dist/heat/Heater.d.ts +0 -28
- package/dist/heat/Heater.js +0 -36
- package/dist/heat/HeaterModel.d.ts +0 -21
- package/dist/heat/HeaterModel.js +0 -32
- package/dist/heat/HeaterMonitor.d.ts +0 -18
- package/dist/heat/HeaterMonitor.js +0 -27
- package/dist/heat/index.d.ts +0 -14
- package/dist/heat/index.js +0 -35
- package/dist/httpEndpoints/index.d.ts +0 -19
- package/dist/httpEndpoints/index.js +0 -27
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -55
- package/dist/inputs/CodeChannel.d.ts +0 -18
- package/dist/inputs/CodeChannel.js +0 -22
- package/dist/inputs/Compatibility.d.ts +0 -10
- package/dist/inputs/Compatibility.js +0 -14
- package/dist/inputs/InputChannel.d.ts +0 -30
- package/dist/inputs/InputChannel.js +0 -39
- package/dist/inputs/index.d.ts +0 -3
- package/dist/inputs/index.js +0 -19
- package/dist/job/Build.d.ts +0 -15
- package/dist/job/Build.js +0 -26
- package/dist/job/GCodeFileInfo.d.ts +0 -17
- package/dist/job/GCodeFileInfo.js +0 -24
- package/dist/job/ThumbnailInfo.d.ts +0 -15
- package/dist/job/ThumbnailInfo.js +0 -23
- package/dist/job/index.d.ts +0 -40
- package/dist/job/index.js +0 -70
- package/dist/limits/index.d.ts +0 -29
- package/dist/limits/index.js +0 -36
- package/dist/messages/index.d.ts +0 -13
- package/dist/messages/index.js +0 -27
- package/dist/move/Axis.d.ts +0 -47
- package/dist/move/Axis.js +0 -55
- package/dist/move/DriverId.d.ts +0 -10
- package/dist/move/DriverId.js +0 -49
- package/dist/move/Extruder.d.ts +0 -28
- package/dist/move/Extruder.js +0 -39
- package/dist/move/InputShaping.d.ts +0 -20
- package/dist/move/InputShaping.js +0 -28
- package/dist/move/KeepoutZone.d.ts +0 -10
- package/dist/move/KeepoutZone.js +0 -21
- package/dist/move/Microstepping.d.ts +0 -6
- package/dist/move/Microstepping.js +0 -13
- package/dist/move/MoveCalibration.d.ts +0 -11
- package/dist/move/MoveCalibration.js +0 -22
- package/dist/move/MoveCompensation.d.ts +0 -30
- package/dist/move/MoveCompensation.js +0 -47
- package/dist/move/index.d.ts +0 -61
- package/dist/move/index.js +0 -98
- package/dist/move/kinematics/CoreKinematics.d.ts +0 -9
- package/dist/move/kinematics/CoreKinematics.js +0 -31
- package/dist/move/kinematics/DeltaKinematics.d.ts +0 -20
- package/dist/move/kinematics/DeltaKinematics.js +0 -40
- package/dist/move/kinematics/HangprinterKinematics.d.ts +0 -9
- package/dist/move/kinematics/HangprinterKinematics.js +0 -28
- package/dist/move/kinematics/KinematicsBase.d.ts +0 -37
- package/dist/move/kinematics/KinematicsBase.js +0 -56
- package/dist/move/kinematics/PolarKinematics.d.ts +0 -7
- package/dist/move/kinematics/PolarKinematics.js +0 -21
- package/dist/move/kinematics/ScaraKinematics.d.ts +0 -6
- package/dist/move/kinematics/ScaraKinematics.js +0 -18
- package/dist/move/kinematics/index.d.ts +0 -14
- package/dist/move/kinematics/index.js +0 -73
- package/dist/network/NetworkInterface.d.ts +0 -41
- package/dist/network/NetworkInterface.js +0 -51
- package/dist/network/index.d.ts +0 -14
- package/dist/network/index.js +0 -35
- package/dist/plugins/PluginManifest.d.ts +0 -64
- package/dist/plugins/PluginManifest.js +0 -114
- package/dist/plugins/index.d.ts +0 -9
- package/dist/plugins/index.js +0 -30
- package/dist/sensors/AnalogSensor.d.ts +0 -48
- package/dist/sensors/AnalogSensor.js +0 -57
- package/dist/sensors/Endstop.d.ts +0 -15
- package/dist/sensors/Endstop.js +0 -23
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.d.ts +0 -24
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.js +0 -32
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.d.ts +0 -22
- package/dist/sensors/FilamentMonitors/LaserFilamentMonitor.js +0 -46
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.d.ts +0 -21
- package/dist/sensors/FilamentMonitors/PulsedFilamentMonitor.js +0 -45
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.d.ts +0 -22
- package/dist/sensors/FilamentMonitors/RotatingMagnetFilamentMonitor.js +0 -46
- package/dist/sensors/FilamentMonitors/index.d.ts +0 -11
- package/dist/sensors/FilamentMonitors/index.js +0 -51
- package/dist/sensors/Probe.d.ts +0 -33
- package/dist/sensors/Probe.js +0 -41
- package/dist/sensors/index.d.ts +0 -21
- package/dist/sensors/index.js +0 -46
- package/dist/spindles/index.d.ts +0 -20
- package/dist/spindles/index.js +0 -28
- package/dist/state/MachineStatus.d.ts +0 -17
- package/dist/state/MachineStatus.js +0 -21
- package/dist/state/MessageBox.d.ts +0 -26
- package/dist/state/MessageBox.js +0 -39
- package/dist/state/RestorePoint.d.ts +0 -12
- package/dist/state/RestorePoint.js +0 -19
- package/dist/state/index.d.ts +0 -63
- package/dist/state/index.js +0 -100
- package/dist/tools/index.d.ts +0 -26
- package/dist/tools/index.js +0 -34
- package/dist/userSessions/index.d.ts +0 -18
- package/dist/userSessions/index.js +0 -27
- package/dist/volumes/index.d.ts +0 -11
- package/dist/volumes/index.js +0 -18
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PolarKinematics = void 0;
|
|
4
|
-
const KinematicsBase_1 = require("./KinematicsBase");
|
|
5
|
-
const index_1 = require("./index");
|
|
6
|
-
class PolarKinematics extends KinematicsBase_1.default {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(KinematicsBase_1.KinematicsName.polar);
|
|
9
|
-
}
|
|
10
|
-
update(jsonElement) {
|
|
11
|
-
if (jsonElement === null) {
|
|
12
|
-
throw new Error("Kinematics must not be null");
|
|
13
|
-
}
|
|
14
|
-
if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
|
|
15
|
-
return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
|
|
16
|
-
}
|
|
17
|
-
return super.update(jsonElement);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.PolarKinematics = PolarKinematics;
|
|
21
|
-
exports.default = PolarKinematics;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScaraKinematics = void 0;
|
|
4
|
-
const KinematicsBase_1 = require("./KinematicsBase");
|
|
5
|
-
const index_1 = require("./index");
|
|
6
|
-
class ScaraKinematics extends KinematicsBase_1.ZLeadscrewKinematics {
|
|
7
|
-
update(jsonElement) {
|
|
8
|
-
if (jsonElement === null) {
|
|
9
|
-
throw new Error("Kinematics must not be null");
|
|
10
|
-
}
|
|
11
|
-
if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
|
|
12
|
-
return (0, index_1.getKinematics)(jsonElement.name).update(jsonElement);
|
|
13
|
-
}
|
|
14
|
-
return super.update(jsonElement);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ScaraKinematics = ScaraKinematics;
|
|
18
|
-
exports.default = ScaraKinematics;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IModelObject } from "../../ModelObject";
|
|
2
|
-
import KinematicsBase, { KinematicsName } from "./KinematicsBase";
|
|
3
|
-
export declare class Kinematics extends KinematicsBase {
|
|
4
|
-
constructor(name?: KinematicsName);
|
|
5
|
-
update(jsonElement: any): IModelObject | null;
|
|
6
|
-
}
|
|
7
|
-
export default Kinematics;
|
|
8
|
-
export declare function getKinematics(name: KinematicsName): KinematicsBase;
|
|
9
|
-
export * from "./CoreKinematics";
|
|
10
|
-
export * from "./DeltaKinematics";
|
|
11
|
-
export * from "./HangprinterKinematics";
|
|
12
|
-
export * from "./KinematicsBase";
|
|
13
|
-
export * from "./PolarKinematics";
|
|
14
|
-
export * from "./ScaraKinematics";
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.getKinematics = exports.Kinematics = void 0;
|
|
18
|
-
const KinematicsBase_1 = require("./KinematicsBase");
|
|
19
|
-
const CoreKinematics_1 = require("./CoreKinematics");
|
|
20
|
-
const DeltaKinematics_1 = require("./DeltaKinematics");
|
|
21
|
-
const HangprinterKinematics_1 = require("./HangprinterKinematics");
|
|
22
|
-
const ScaraKinematics_1 = require("./ScaraKinematics");
|
|
23
|
-
const PolarKinematics_1 = require("./PolarKinematics");
|
|
24
|
-
class Kinematics extends KinematicsBase_1.default {
|
|
25
|
-
constructor(name = KinematicsBase_1.KinematicsName.cartesian) {
|
|
26
|
-
super(name);
|
|
27
|
-
}
|
|
28
|
-
update(jsonElement) {
|
|
29
|
-
if (jsonElement === null) {
|
|
30
|
-
throw new Error("Kinematics must not be null");
|
|
31
|
-
}
|
|
32
|
-
if (typeof jsonElement.name === "string" && this.name !== jsonElement.name) {
|
|
33
|
-
return getKinematics(jsonElement.name).update(jsonElement);
|
|
34
|
-
}
|
|
35
|
-
return super.update(jsonElement);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.Kinematics = Kinematics;
|
|
39
|
-
exports.default = Kinematics;
|
|
40
|
-
function getKinematics(name) {
|
|
41
|
-
switch (name) {
|
|
42
|
-
case KinematicsBase_1.KinematicsName.cartesian:
|
|
43
|
-
case KinematicsBase_1.KinematicsName.coreXY:
|
|
44
|
-
case KinematicsBase_1.KinematicsName.coreXYU:
|
|
45
|
-
case KinematicsBase_1.KinematicsName.coreXYUV:
|
|
46
|
-
case KinematicsBase_1.KinematicsName.coreXZ:
|
|
47
|
-
case KinematicsBase_1.KinematicsName.markForged:
|
|
48
|
-
return new CoreKinematics_1.default(name);
|
|
49
|
-
case KinematicsBase_1.KinematicsName.delta:
|
|
50
|
-
return new DeltaKinematics_1.default(name);
|
|
51
|
-
case KinematicsBase_1.KinematicsName.rotaryDelta:
|
|
52
|
-
return new Kinematics(name);
|
|
53
|
-
case KinematicsBase_1.KinematicsName.hangprinter:
|
|
54
|
-
return new HangprinterKinematics_1.default();
|
|
55
|
-
case KinematicsBase_1.KinematicsName.fiveBarScara:
|
|
56
|
-
case KinematicsBase_1.KinematicsName.scara:
|
|
57
|
-
return new ScaraKinematics_1.default(name);
|
|
58
|
-
case KinematicsBase_1.KinematicsName.polar:
|
|
59
|
-
return new PolarKinematics_1.default();
|
|
60
|
-
default:
|
|
61
|
-
const _exhaustiveCheck = name;
|
|
62
|
-
case KinematicsBase_1.KinematicsName.unknown:
|
|
63
|
-
console.warn(`Kinematics '${name}' is not supported, falling back to cartesian`);
|
|
64
|
-
return new CoreKinematics_1.default(name);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.getKinematics = getKinematics;
|
|
68
|
-
__exportStar(require("./CoreKinematics"), exports);
|
|
69
|
-
__exportStar(require("./DeltaKinematics"), exports);
|
|
70
|
-
__exportStar(require("./HangprinterKinematics"), exports);
|
|
71
|
-
__exportStar(require("./KinematicsBase"), exports);
|
|
72
|
-
__exportStar(require("./PolarKinematics"), exports);
|
|
73
|
-
__exportStar(require("./ScaraKinematics"), exports);
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
import ModelSet from "../ModelSet";
|
|
3
|
-
export declare enum NetworkProtocol {
|
|
4
|
-
HTTP = "http",
|
|
5
|
-
HTTPS = "https",
|
|
6
|
-
FTP = "ftp",
|
|
7
|
-
SFTP = "sftp",
|
|
8
|
-
Telnet = "telnet",
|
|
9
|
-
SSH = "ssh"
|
|
10
|
-
}
|
|
11
|
-
export declare enum NetworkInterfaceState {
|
|
12
|
-
disabled = "disabled",
|
|
13
|
-
enabled = "enabled",
|
|
14
|
-
starting1 = "starting1",
|
|
15
|
-
starting2 = "starting2",
|
|
16
|
-
changingMode = "changingMode",
|
|
17
|
-
establishingLink = "establishingLink",
|
|
18
|
-
obtainingIP = "obtainingIP",
|
|
19
|
-
connected = "connected",
|
|
20
|
-
active = "active"
|
|
21
|
-
}
|
|
22
|
-
export declare enum NetworkInterfaceType {
|
|
23
|
-
lan = "lan",
|
|
24
|
-
wifi = "wifi"
|
|
25
|
-
}
|
|
26
|
-
export declare class NetworkInterface extends ModelObject {
|
|
27
|
-
activeProtocols: ModelSet<NetworkProtocol>;
|
|
28
|
-
actualIP: string | null;
|
|
29
|
-
configuredIP: string | null;
|
|
30
|
-
dnsServer: string | null;
|
|
31
|
-
firmwareVersion: string | null;
|
|
32
|
-
gateway: string | null;
|
|
33
|
-
mac: string | null;
|
|
34
|
-
numReconnects: number | null;
|
|
35
|
-
signal: number | null;
|
|
36
|
-
speed: number | null;
|
|
37
|
-
state: NetworkInterfaceState | null;
|
|
38
|
-
subnet: string | null;
|
|
39
|
-
type: NetworkInterfaceType;
|
|
40
|
-
}
|
|
41
|
-
export default NetworkInterface;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NetworkInterface = exports.NetworkInterfaceType = exports.NetworkInterfaceState = exports.NetworkProtocol = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
const ModelSet_1 = require("../ModelSet");
|
|
6
|
-
var NetworkProtocol;
|
|
7
|
-
(function (NetworkProtocol) {
|
|
8
|
-
NetworkProtocol["HTTP"] = "http";
|
|
9
|
-
NetworkProtocol["HTTPS"] = "https";
|
|
10
|
-
NetworkProtocol["FTP"] = "ftp";
|
|
11
|
-
NetworkProtocol["SFTP"] = "sftp";
|
|
12
|
-
NetworkProtocol["Telnet"] = "telnet";
|
|
13
|
-
NetworkProtocol["SSH"] = "ssh";
|
|
14
|
-
})(NetworkProtocol = exports.NetworkProtocol || (exports.NetworkProtocol = {}));
|
|
15
|
-
var NetworkInterfaceState;
|
|
16
|
-
(function (NetworkInterfaceState) {
|
|
17
|
-
NetworkInterfaceState["disabled"] = "disabled";
|
|
18
|
-
NetworkInterfaceState["enabled"] = "enabled";
|
|
19
|
-
NetworkInterfaceState["starting1"] = "starting1";
|
|
20
|
-
NetworkInterfaceState["starting2"] = "starting2";
|
|
21
|
-
NetworkInterfaceState["changingMode"] = "changingMode";
|
|
22
|
-
NetworkInterfaceState["establishingLink"] = "establishingLink";
|
|
23
|
-
NetworkInterfaceState["obtainingIP"] = "obtainingIP";
|
|
24
|
-
NetworkInterfaceState["connected"] = "connected";
|
|
25
|
-
NetworkInterfaceState["active"] = "active";
|
|
26
|
-
})(NetworkInterfaceState = exports.NetworkInterfaceState || (exports.NetworkInterfaceState = {}));
|
|
27
|
-
var NetworkInterfaceType;
|
|
28
|
-
(function (NetworkInterfaceType) {
|
|
29
|
-
NetworkInterfaceType["lan"] = "lan";
|
|
30
|
-
NetworkInterfaceType["wifi"] = "wifi";
|
|
31
|
-
})(NetworkInterfaceType = exports.NetworkInterfaceType || (exports.NetworkInterfaceType = {}));
|
|
32
|
-
class NetworkInterface extends ModelObject_1.default {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(...arguments);
|
|
35
|
-
this.activeProtocols = new ModelSet_1.default();
|
|
36
|
-
this.actualIP = null;
|
|
37
|
-
this.configuredIP = null;
|
|
38
|
-
this.dnsServer = null;
|
|
39
|
-
this.firmwareVersion = null;
|
|
40
|
-
this.gateway = null;
|
|
41
|
-
this.mac = null;
|
|
42
|
-
this.numReconnects = null;
|
|
43
|
-
this.signal = null;
|
|
44
|
-
this.speed = null;
|
|
45
|
-
this.state = null;
|
|
46
|
-
this.subnet = null;
|
|
47
|
-
this.type = NetworkInterfaceType.wifi;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.NetworkInterface = NetworkInterface;
|
|
51
|
-
exports.default = NetworkInterface;
|
package/dist/network/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
import ModelCollection from "../ModelCollection";
|
|
3
|
-
import NetworkInterface from "./NetworkInterface";
|
|
4
|
-
export declare const DefaultName = "My Duet";
|
|
5
|
-
export declare const DefaultHostname = "duet";
|
|
6
|
-
export declare const DefaultPassword = "reprap";
|
|
7
|
-
export declare class Network extends ModelObject {
|
|
8
|
-
corsSite: string | null;
|
|
9
|
-
hostname: string;
|
|
10
|
-
readonly interfaces: ModelCollection<NetworkInterface>;
|
|
11
|
-
name: string;
|
|
12
|
-
}
|
|
13
|
-
export default Network;
|
|
14
|
-
export * from "./NetworkInterface";
|
package/dist/network/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Network = exports.DefaultPassword = exports.DefaultHostname = exports.DefaultName = void 0;
|
|
18
|
-
const ModelObject_1 = require("../ModelObject");
|
|
19
|
-
const ModelCollection_1 = require("../ModelCollection");
|
|
20
|
-
const NetworkInterface_1 = require("./NetworkInterface");
|
|
21
|
-
exports.DefaultName = "My Duet";
|
|
22
|
-
exports.DefaultHostname = "duet";
|
|
23
|
-
exports.DefaultPassword = "reprap";
|
|
24
|
-
class Network extends ModelObject_1.default {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(...arguments);
|
|
27
|
-
this.corsSite = null;
|
|
28
|
-
this.hostname = exports.DefaultHostname;
|
|
29
|
-
this.interfaces = new ModelCollection_1.default(NetworkInterface_1.default);
|
|
30
|
-
this.name = exports.DefaultName;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Network = Network;
|
|
34
|
-
exports.default = Network;
|
|
35
|
-
__exportStar(require("./NetworkInterface"), exports);
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
import ModelSet from "../ModelSet";
|
|
3
|
-
export declare enum SbcPermission {
|
|
4
|
-
none = "none",
|
|
5
|
-
commandExecution = "commandExecution",
|
|
6
|
-
codeInterceptionRead = "codeInterceptionRead",
|
|
7
|
-
codeInterceptionReadWrite = "codeInterceptionReadWrite",
|
|
8
|
-
managePlugins = "managePlugins",
|
|
9
|
-
servicePlugins = "servicePlugins",
|
|
10
|
-
manageUserSessions = "manageUserSessions",
|
|
11
|
-
objectModelRead = "objectModelRead",
|
|
12
|
-
objectModelReadWrite = "objectModelReadWrite",
|
|
13
|
-
registerHttpEndpoints = "registerHttpEndpoints",
|
|
14
|
-
readFilaments = "readFilaments",
|
|
15
|
-
writeFilaments = "writeFilaments",
|
|
16
|
-
readFirmware = "readFirmware",
|
|
17
|
-
writeFirmware = "writeFirmware",
|
|
18
|
-
readGCodes = "readGCodes",
|
|
19
|
-
writeGCodes = "writeGCodes",
|
|
20
|
-
readMacros = "readMacros",
|
|
21
|
-
writeMacros = "writeMacros",
|
|
22
|
-
readMenu = "readMenu",
|
|
23
|
-
writeMenu = "writeMenu",
|
|
24
|
-
readSystem = "readSystem",
|
|
25
|
-
writeSystem = "writeSystem",
|
|
26
|
-
readWeb = "readWeb",
|
|
27
|
-
writeWeb = "writeWeb",
|
|
28
|
-
fileSystemAccess = "fileSystemAccess",
|
|
29
|
-
launchProcesses = "launchProcesses",
|
|
30
|
-
networkAccess = "networkAccess",
|
|
31
|
-
webcamAccess = "webcamAccess",
|
|
32
|
-
gpioAccess = "gpioAccess",
|
|
33
|
-
superUser = "superUser"
|
|
34
|
-
}
|
|
35
|
-
export declare class PluginManifest extends ModelObject {
|
|
36
|
-
/**
|
|
37
|
-
* Constructor of this class
|
|
38
|
-
* @param itemConstructor Item constructor type that items must derive from
|
|
39
|
-
*/
|
|
40
|
-
constructor();
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
author: string;
|
|
44
|
-
version: string;
|
|
45
|
-
license: string;
|
|
46
|
-
homepage: string | null;
|
|
47
|
-
tags: Array<string>;
|
|
48
|
-
dwcVersion: string | null;
|
|
49
|
-
dwcDependencies: Array<string>;
|
|
50
|
-
sbcRequired: boolean;
|
|
51
|
-
sbcDsfVersion: string | null;
|
|
52
|
-
sbcExecutable: string | null;
|
|
53
|
-
sbcExecutableArguments: string | null;
|
|
54
|
-
sbcExtraExecutables: Array<string>;
|
|
55
|
-
sbcOutputRedirected: boolean;
|
|
56
|
-
sbcPermissions: ModelSet<SbcPermission>;
|
|
57
|
-
sbcPackageDependencies: Array<string>;
|
|
58
|
-
sbcPluginDependencies: Array<string>;
|
|
59
|
-
sbcPythonDependencies: Array<string>;
|
|
60
|
-
rrfVersion: string | null;
|
|
61
|
-
data: Map<string, any>;
|
|
62
|
-
static checkVersion(actual: string, required: string): boolean;
|
|
63
|
-
}
|
|
64
|
-
export default PluginManifest;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PluginManifest = exports.SbcPermission = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
const ModelSet_1 = require("../ModelSet");
|
|
6
|
-
var SbcPermission;
|
|
7
|
-
(function (SbcPermission) {
|
|
8
|
-
SbcPermission["none"] = "none";
|
|
9
|
-
SbcPermission["commandExecution"] = "commandExecution";
|
|
10
|
-
SbcPermission["codeInterceptionRead"] = "codeInterceptionRead";
|
|
11
|
-
SbcPermission["codeInterceptionReadWrite"] = "codeInterceptionReadWrite";
|
|
12
|
-
SbcPermission["managePlugins"] = "managePlugins";
|
|
13
|
-
SbcPermission["servicePlugins"] = "servicePlugins";
|
|
14
|
-
SbcPermission["manageUserSessions"] = "manageUserSessions";
|
|
15
|
-
SbcPermission["objectModelRead"] = "objectModelRead";
|
|
16
|
-
SbcPermission["objectModelReadWrite"] = "objectModelReadWrite";
|
|
17
|
-
SbcPermission["registerHttpEndpoints"] = "registerHttpEndpoints";
|
|
18
|
-
SbcPermission["readFilaments"] = "readFilaments";
|
|
19
|
-
SbcPermission["writeFilaments"] = "writeFilaments";
|
|
20
|
-
SbcPermission["readFirmware"] = "readFirmware";
|
|
21
|
-
SbcPermission["writeFirmware"] = "writeFirmware";
|
|
22
|
-
SbcPermission["readGCodes"] = "readGCodes";
|
|
23
|
-
SbcPermission["writeGCodes"] = "writeGCodes";
|
|
24
|
-
SbcPermission["readMacros"] = "readMacros";
|
|
25
|
-
SbcPermission["writeMacros"] = "writeMacros";
|
|
26
|
-
SbcPermission["readMenu"] = "readMenu";
|
|
27
|
-
SbcPermission["writeMenu"] = "writeMenu";
|
|
28
|
-
SbcPermission["readSystem"] = "readSystem";
|
|
29
|
-
SbcPermission["writeSystem"] = "writeSystem";
|
|
30
|
-
SbcPermission["readWeb"] = "readWeb";
|
|
31
|
-
SbcPermission["writeWeb"] = "writeWeb";
|
|
32
|
-
SbcPermission["fileSystemAccess"] = "fileSystemAccess";
|
|
33
|
-
SbcPermission["launchProcesses"] = "launchProcesses";
|
|
34
|
-
SbcPermission["networkAccess"] = "networkAccess";
|
|
35
|
-
SbcPermission["webcamAccess"] = "webcamAccess";
|
|
36
|
-
SbcPermission["gpioAccess"] = "gpioAccess";
|
|
37
|
-
SbcPermission["superUser"] = "superUser";
|
|
38
|
-
})(SbcPermission = exports.SbcPermission || (exports.SbcPermission = {}));
|
|
39
|
-
class PluginManifest extends ModelObject_1.default {
|
|
40
|
-
/**
|
|
41
|
-
* Constructor of this class
|
|
42
|
-
* @param itemConstructor Item constructor type that items must derive from
|
|
43
|
-
*/
|
|
44
|
-
constructor() {
|
|
45
|
-
super();
|
|
46
|
-
this.id = "";
|
|
47
|
-
this.name = "";
|
|
48
|
-
this.author = "";
|
|
49
|
-
this.version = "1.0.0";
|
|
50
|
-
this.license = "LGPL-3.0-or-later";
|
|
51
|
-
this.homepage = null;
|
|
52
|
-
this.tags = [];
|
|
53
|
-
this.dwcVersion = null;
|
|
54
|
-
this.dwcDependencies = [];
|
|
55
|
-
this.sbcRequired = false;
|
|
56
|
-
this.sbcDsfVersion = null;
|
|
57
|
-
this.sbcExecutable = null;
|
|
58
|
-
this.sbcExecutableArguments = null;
|
|
59
|
-
this.sbcExtraExecutables = [];
|
|
60
|
-
this.sbcOutputRedirected = true;
|
|
61
|
-
this.sbcPermissions = new ModelSet_1.default();
|
|
62
|
-
this.sbcPackageDependencies = [];
|
|
63
|
-
this.sbcPluginDependencies = [];
|
|
64
|
-
this.sbcPythonDependencies = [];
|
|
65
|
-
this.rrfVersion = null;
|
|
66
|
-
this.data = new Map();
|
|
67
|
-
let id = "";
|
|
68
|
-
Object.defineProperty(this, "id", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get() { return id; },
|
|
71
|
-
set(value) {
|
|
72
|
-
if (!value || value.length > 32) {
|
|
73
|
-
throw new Error("Invalid plugin identifier");
|
|
74
|
-
}
|
|
75
|
-
for (const c in value.split("")) {
|
|
76
|
-
if (!/\w/.test(c)) {
|
|
77
|
-
throw new Error("Illegal plugin identifier");
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
id = value;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
let name = "";
|
|
84
|
-
Object.defineProperty(this, "name", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get() { return name; },
|
|
87
|
-
set(value) {
|
|
88
|
-
if (!value || value.length > 64) {
|
|
89
|
-
throw new Error("Invalid plugin name");
|
|
90
|
-
}
|
|
91
|
-
for (const c in value.split("")) {
|
|
92
|
-
if (!/[\w -_]/.test(c)) {
|
|
93
|
-
throw new Error("Illegal plugin name");
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
name = value;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
static checkVersion(actual, required) {
|
|
101
|
-
if (required) {
|
|
102
|
-
const actualItems = actual.split(/[.\-+]/);
|
|
103
|
-
const requiredItems = required.split(/[.\-+]/);
|
|
104
|
-
for (let i = 0; i < Math.min(actualItems.length, requiredItems.length); i++) {
|
|
105
|
-
if (actualItems[i] !== requiredItems[i]) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return true;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.PluginManifest = PluginManifest;
|
|
114
|
-
exports.default = PluginManifest;
|
package/dist/plugins/index.d.ts
DELETED
package/dist/plugins/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Plugin = void 0;
|
|
18
|
-
const PluginManifest_1 = require("./PluginManifest");
|
|
19
|
-
class Plugin extends PluginManifest_1.default {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
this.dsfFiles = [];
|
|
23
|
-
this.dwcFiles = [];
|
|
24
|
-
this.sdFiles = [];
|
|
25
|
-
this.pid = -1;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.Plugin = Plugin;
|
|
29
|
-
exports.default = Plugin;
|
|
30
|
-
__exportStar(require("./PluginManifest"), exports);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
export declare enum AnalogSensorType {
|
|
3
|
-
thermistor = "thermistor",
|
|
4
|
-
pt1000 = "pt1000",
|
|
5
|
-
max31865 = "rtdmax31865",
|
|
6
|
-
max31855 = "thermocouplemax31855",
|
|
7
|
-
max31856 = "thermocouplemax31856",
|
|
8
|
-
linearAnalog = "linearanalog",
|
|
9
|
-
dht21 = "dht21",
|
|
10
|
-
dht22 = "dht22",
|
|
11
|
-
dhtHumidity = "dhthumidity",
|
|
12
|
-
bme280 = "bme280",
|
|
13
|
-
bme280pressure = "bme280-pressure",
|
|
14
|
-
bme280humidity = "bme280-humidity",
|
|
15
|
-
currentLoop = "currentloooppyro",
|
|
16
|
-
mcuTemp = "mcutemp",
|
|
17
|
-
drivers = "drivers",
|
|
18
|
-
driversDuex = "driversduex",
|
|
19
|
-
unknown = "unknown"
|
|
20
|
-
}
|
|
21
|
-
export declare enum TemperatureError {
|
|
22
|
-
ok = "ok",
|
|
23
|
-
shortCircuit = "shortCircuit",
|
|
24
|
-
shortToVcc = "shortToVcc",
|
|
25
|
-
shortToGround = "shortToGround",
|
|
26
|
-
openCircuit = "openCircuit",
|
|
27
|
-
timeout = "timeout",
|
|
28
|
-
ioError = "ioError",
|
|
29
|
-
hardwareError = "hardwareError",
|
|
30
|
-
notReady = "notReady",
|
|
31
|
-
invalidOutputNumber = "invalidOutputNumber",
|
|
32
|
-
busBusy = "busBusy",
|
|
33
|
-
badResponse = "badResponse",
|
|
34
|
-
unknownPort = "unknownPort",
|
|
35
|
-
notInitialised = "notInitialised",
|
|
36
|
-
unknownSensor = "unknownSensor",
|
|
37
|
-
overOrUnderVoltage = "overOrUnderVoltage",
|
|
38
|
-
badVref = "badVref",
|
|
39
|
-
badVssa = "badVssa",
|
|
40
|
-
unknownError = "unknownError"
|
|
41
|
-
}
|
|
42
|
-
export declare class AnalogSensor extends ModelObject {
|
|
43
|
-
lastReading: number | null;
|
|
44
|
-
name: string | null;
|
|
45
|
-
state: TemperatureError;
|
|
46
|
-
type: AnalogSensorType;
|
|
47
|
-
}
|
|
48
|
-
export default AnalogSensor;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnalogSensor = exports.TemperatureError = exports.AnalogSensorType = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
var AnalogSensorType;
|
|
6
|
-
(function (AnalogSensorType) {
|
|
7
|
-
AnalogSensorType["thermistor"] = "thermistor";
|
|
8
|
-
AnalogSensorType["pt1000"] = "pt1000";
|
|
9
|
-
AnalogSensorType["max31865"] = "rtdmax31865";
|
|
10
|
-
AnalogSensorType["max31855"] = "thermocouplemax31855";
|
|
11
|
-
AnalogSensorType["max31856"] = "thermocouplemax31856";
|
|
12
|
-
AnalogSensorType["linearAnalog"] = "linearanalog";
|
|
13
|
-
AnalogSensorType["dht21"] = "dht21";
|
|
14
|
-
AnalogSensorType["dht22"] = "dht22";
|
|
15
|
-
AnalogSensorType["dhtHumidity"] = "dhthumidity";
|
|
16
|
-
AnalogSensorType["bme280"] = "bme280";
|
|
17
|
-
AnalogSensorType["bme280pressure"] = "bme280-pressure";
|
|
18
|
-
AnalogSensorType["bme280humidity"] = "bme280-humidity";
|
|
19
|
-
AnalogSensorType["currentLoop"] = "currentloooppyro";
|
|
20
|
-
AnalogSensorType["mcuTemp"] = "mcutemp";
|
|
21
|
-
AnalogSensorType["drivers"] = "drivers";
|
|
22
|
-
AnalogSensorType["driversDuex"] = "driversduex";
|
|
23
|
-
AnalogSensorType["unknown"] = "unknown";
|
|
24
|
-
})(AnalogSensorType = exports.AnalogSensorType || (exports.AnalogSensorType = {}));
|
|
25
|
-
var TemperatureError;
|
|
26
|
-
(function (TemperatureError) {
|
|
27
|
-
TemperatureError["ok"] = "ok";
|
|
28
|
-
TemperatureError["shortCircuit"] = "shortCircuit";
|
|
29
|
-
TemperatureError["shortToVcc"] = "shortToVcc";
|
|
30
|
-
TemperatureError["shortToGround"] = "shortToGround";
|
|
31
|
-
TemperatureError["openCircuit"] = "openCircuit";
|
|
32
|
-
TemperatureError["timeout"] = "timeout";
|
|
33
|
-
TemperatureError["ioError"] = "ioError";
|
|
34
|
-
TemperatureError["hardwareError"] = "hardwareError";
|
|
35
|
-
TemperatureError["notReady"] = "notReady";
|
|
36
|
-
TemperatureError["invalidOutputNumber"] = "invalidOutputNumber";
|
|
37
|
-
TemperatureError["busBusy"] = "busBusy";
|
|
38
|
-
TemperatureError["badResponse"] = "badResponse";
|
|
39
|
-
TemperatureError["unknownPort"] = "unknownPort";
|
|
40
|
-
TemperatureError["notInitialised"] = "notInitialised";
|
|
41
|
-
TemperatureError["unknownSensor"] = "unknownSensor";
|
|
42
|
-
TemperatureError["overOrUnderVoltage"] = "overOrUnderVoltage";
|
|
43
|
-
TemperatureError["badVref"] = "badVref";
|
|
44
|
-
TemperatureError["badVssa"] = "badVssa";
|
|
45
|
-
TemperatureError["unknownError"] = "unknownError";
|
|
46
|
-
})(TemperatureError = exports.TemperatureError || (exports.TemperatureError = {}));
|
|
47
|
-
class AnalogSensor extends ModelObject_1.default {
|
|
48
|
-
constructor() {
|
|
49
|
-
super(...arguments);
|
|
50
|
-
this.lastReading = null;
|
|
51
|
-
this.name = null;
|
|
52
|
-
this.state = TemperatureError.ok;
|
|
53
|
-
this.type = AnalogSensorType.unknown;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.AnalogSensor = AnalogSensor;
|
|
57
|
-
exports.default = AnalogSensor;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
2
|
-
export declare enum EndstopType {
|
|
3
|
-
InputPin = "inputPin",
|
|
4
|
-
ZProbeAsEndstop = "zProbeAsEndstop",
|
|
5
|
-
motorStallAny = "motorStallAny",
|
|
6
|
-
motorStallIndividual = "motorStallIndividual",
|
|
7
|
-
unknown = "unknown"
|
|
8
|
-
}
|
|
9
|
-
export declare class Endstop extends ModelObject {
|
|
10
|
-
highEnd: boolean;
|
|
11
|
-
probe: number | null;
|
|
12
|
-
triggered: boolean;
|
|
13
|
-
type: EndstopType;
|
|
14
|
-
}
|
|
15
|
-
export default Endstop;
|
package/dist/sensors/Endstop.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Endstop = exports.EndstopType = void 0;
|
|
4
|
-
const ModelObject_1 = require("../ModelObject");
|
|
5
|
-
var EndstopType;
|
|
6
|
-
(function (EndstopType) {
|
|
7
|
-
EndstopType["InputPin"] = "inputPin";
|
|
8
|
-
EndstopType["ZProbeAsEndstop"] = "zProbeAsEndstop";
|
|
9
|
-
EndstopType["motorStallAny"] = "motorStallAny";
|
|
10
|
-
EndstopType["motorStallIndividual"] = "motorStallIndividual";
|
|
11
|
-
EndstopType["unknown"] = "unknown";
|
|
12
|
-
})(EndstopType = exports.EndstopType || (exports.EndstopType = {}));
|
|
13
|
-
class Endstop extends ModelObject_1.default {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.highEnd = false;
|
|
17
|
-
this.probe = null;
|
|
18
|
-
this.triggered = false;
|
|
19
|
-
this.type = EndstopType.unknown;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Endstop = Endstop;
|
|
23
|
-
exports.default = Endstop;
|