@duet3d/objectmodel 3.4.0-b22 → 3.4.0-b24
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/ModelObject.js +1 -1
- package/dist/heat/HeaterMonitor.d.ts +2 -2
- package/dist/heat/HeaterMonitor.js +2 -2
- package/dist/inputs/InputChannel.d.ts +1 -1
- package/dist/inputs/InputChannel.js +1 -1
- package/dist/job/GCodeFileInfo.d.ts +3 -3
- package/dist/job/GCodeFileInfo.js +1 -1
- package/dist/job/index.d.ts +1 -1
- package/dist/sensors/AnalogSensor.d.ts +0 -1
- package/dist/sensors/AnalogSensor.js +0 -1
- package/dist/volumes/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/ModelObject.js
CHANGED
|
@@ -114,7 +114,7 @@ class ModelObject {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
else if (propType === "number") {
|
|
117
|
-
if (typeof value === "number") {
|
|
117
|
+
if (typeof value === "number" || typeof value === "bigint") {
|
|
118
118
|
this[ownKey] = value;
|
|
119
119
|
}
|
|
120
120
|
else if (process.env.NODE_ENV !== "production") {
|
|
@@ -11,8 +11,8 @@ export declare enum HeaterMonitorCondition {
|
|
|
11
11
|
tooLow = "tooLow"
|
|
12
12
|
}
|
|
13
13
|
export declare class HeaterMonitor extends ModelObject {
|
|
14
|
-
action: HeaterMonitorAction;
|
|
14
|
+
action: HeaterMonitorAction | null;
|
|
15
15
|
condition: HeaterMonitorCondition;
|
|
16
|
-
limit: number;
|
|
16
|
+
limit: number | null;
|
|
17
17
|
}
|
|
18
18
|
export default HeaterMonitor;
|
|
@@ -18,9 +18,9 @@ var HeaterMonitorCondition;
|
|
|
18
18
|
class HeaterMonitor extends ModelObject_1.default {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
|
-
this.action =
|
|
21
|
+
this.action = null;
|
|
22
22
|
this.condition = HeaterMonitorCondition.disabled;
|
|
23
|
-
this.limit =
|
|
23
|
+
this.limit = null;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
exports.HeaterMonitor = HeaterMonitor;
|
|
@@ -9,9 +9,9 @@ export declare class GCodeFileInfo extends ModelObject {
|
|
|
9
9
|
lastModified: string | null;
|
|
10
10
|
layerHeight: number;
|
|
11
11
|
numLayers: number;
|
|
12
|
-
printTime: bigint | null;
|
|
13
|
-
simulatedTime: bigint | null;
|
|
14
|
-
size: bigint;
|
|
12
|
+
printTime: number | bigint | null;
|
|
13
|
+
simulatedTime: number | bigint | null;
|
|
14
|
+
size: number | bigint;
|
|
15
15
|
readonly thumbnails: ModelCollection<ThumbnailInfo>;
|
|
16
16
|
}
|
|
17
17
|
export default GCodeFileInfo;
|
package/dist/job/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class Job extends ModelObject {
|
|
|
20
20
|
build: Build;
|
|
21
21
|
duration: number | null;
|
|
22
22
|
file: GCodeFileInfo | null;
|
|
23
|
-
filePosition: bigint | null;
|
|
23
|
+
filePosition: number | bigint | null;
|
|
24
24
|
lastDuration: number | null;
|
|
25
25
|
lastFileName: string | null;
|
|
26
26
|
lastFileAborted: boolean;
|
|
@@ -10,7 +10,6 @@ var AnalogSensorType;
|
|
|
10
10
|
AnalogSensorType["max31855"] = "thermocouplemax31855";
|
|
11
11
|
AnalogSensorType["max31856"] = "thermocouplemax31856";
|
|
12
12
|
AnalogSensorType["linearAnalog"] = "linearanalog";
|
|
13
|
-
AnalogSensorType["dht11"] = "dht11";
|
|
14
13
|
AnalogSensorType["dht21"] = "dht21";
|
|
15
14
|
AnalogSensorType["dht22"] = "dht22";
|
|
16
15
|
AnalogSensorType["dhtHumidity"] = "dhthumidity";
|
package/dist/volumes/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
export declare class Volume extends ModelObject {
|
|
3
|
-
capacity: bigint | null;
|
|
4
|
-
freeSpace: bigint | null;
|
|
3
|
+
capacity: number | bigint | null;
|
|
4
|
+
freeSpace: number | bigint | null;
|
|
5
5
|
mounted: boolean;
|
|
6
6
|
name: string | null;
|
|
7
7
|
openFiles: number | null;
|