@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.
@@ -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 = HeaterMonitorAction.generateFault;
21
+ this.action = null;
22
22
  this.condition = HeaterMonitorCondition.disabled;
23
- this.limit = 2000;
23
+ this.limit = null;
24
24
  }
25
25
  }
26
26
  exports.HeaterMonitor = HeaterMonitor;
@@ -22,7 +22,7 @@ export declare class InputChannel extends ModelObject {
22
22
  name: string;
23
23
  stackDepth: number;
24
24
  state: InputChannelState;
25
- lineNumber: bigint;
25
+ lineNumber: number | bigint;
26
26
  volumetric: boolean;
27
27
  }
28
28
  export default InputChannel;
@@ -29,7 +29,7 @@ class InputChannel extends ModelObject_1.default {
29
29
  this.name = "";
30
30
  this.stackDepth = 0;
31
31
  this.state = InputChannelState.idle;
32
- this.lineNumber = 0n;
32
+ this.lineNumber = 0;
33
33
  this.volumetric = false;
34
34
  }
35
35
  }
@@ -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;
@@ -16,7 +16,7 @@ class GCodeFileInfo extends ModelObject_1.default {
16
16
  this.numLayers = 0;
17
17
  this.printTime = null;
18
18
  this.simulatedTime = null;
19
- this.size = 0n;
19
+ this.size = 0;
20
20
  this.thumbnails = new ModelCollection_1.default(ThumbnailInfo_1.default);
21
21
  }
22
22
  }
@@ -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;
@@ -6,7 +6,6 @@ export declare enum AnalogSensorType {
6
6
  max31855 = "thermocouplemax31855",
7
7
  max31856 = "thermocouplemax31856",
8
8
  linearAnalog = "linearanalog",
9
- dht11 = "dht11",
10
9
  dht21 = "dht21",
11
10
  dht22 = "dht22",
12
11
  dhtHumidity = "dhthumidity",
@@ -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";
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.4.0-b22",
3
+ "version": "3.4.0-b24",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",