@duet3d/objectmodel 3.5.0-beta.14 → 3.5.0-beta.16
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/ModelDictionary.js +1 -0
- package/dist/ModelSet.d.ts +10 -0
- package/dist/ModelSet.js +13 -0
- package/dist/job/index.d.ts +1 -0
- package/dist/job/index.js +1 -0
- package/dist/network/NetworkInterface.d.ts +2 -1
- package/dist/network/NetworkInterface.js +2 -1
- package/dist/plugins/PluginManifest.d.ts +2 -1
- package/dist/plugins/PluginManifest.js +2 -1
- package/package.json +1 -1
package/dist/ModelDictionary.js
CHANGED
package/dist/ModelSet.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper around a standard set to make sure it serializes to an array
|
|
5
|
+
*/
|
|
6
|
+
class ModelSet extends Set {
|
|
7
|
+
/**
|
|
8
|
+
* Convert this object to JSON
|
|
9
|
+
* @returns JSON object
|
|
10
|
+
*/
|
|
11
|
+
toJSON() { return Array.from(this); }
|
|
12
|
+
}
|
|
13
|
+
exports.default = ModelSet;
|
package/dist/job/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare class Job extends ModelObject {
|
|
|
25
25
|
lastFileAborted: boolean;
|
|
26
26
|
lastFileCancelled: boolean;
|
|
27
27
|
lastFileSimulated: boolean;
|
|
28
|
+
lastWarmUpDuration: number | null;
|
|
28
29
|
layer: number | null;
|
|
29
30
|
readonly layers: ModelCollection<Layer>;
|
|
30
31
|
layerTime: number | null;
|
package/dist/job/index.js
CHANGED
|
@@ -51,6 +51,7 @@ class Job extends ModelObject_1.default {
|
|
|
51
51
|
this.lastFileAborted = false;
|
|
52
52
|
this.lastFileCancelled = false;
|
|
53
53
|
this.lastFileSimulated = false;
|
|
54
|
+
this.lastWarmUpDuration = null;
|
|
54
55
|
this.layer = null;
|
|
55
56
|
this.layers = new ModelCollection_1.default(Layer);
|
|
56
57
|
this.layerTime = null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
|
+
import ModelSet from "../ModelSet";
|
|
2
3
|
export declare enum NetworkProtocol {
|
|
3
4
|
HTTP = "http",
|
|
4
5
|
HTTPS = "https",
|
|
@@ -23,7 +24,7 @@ export declare enum NetworkInterfaceType {
|
|
|
23
24
|
wifi = "wifi"
|
|
24
25
|
}
|
|
25
26
|
export declare class NetworkInterface extends ModelObject {
|
|
26
|
-
activeProtocols:
|
|
27
|
+
activeProtocols: ModelSet<NetworkProtocol>;
|
|
27
28
|
actualIP: string | null;
|
|
28
29
|
configuredIP: string | null;
|
|
29
30
|
dnsServer: string | null;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NetworkInterface = exports.NetworkInterfaceType = exports.NetworkInterfaceState = exports.NetworkProtocol = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
const ModelSet_1 = require("../ModelSet");
|
|
5
6
|
var NetworkProtocol;
|
|
6
7
|
(function (NetworkProtocol) {
|
|
7
8
|
NetworkProtocol["HTTP"] = "http";
|
|
@@ -31,7 +32,7 @@ var NetworkInterfaceType;
|
|
|
31
32
|
class NetworkInterface extends ModelObject_1.default {
|
|
32
33
|
constructor() {
|
|
33
34
|
super(...arguments);
|
|
34
|
-
this.activeProtocols = new
|
|
35
|
+
this.activeProtocols = new ModelSet_1.default();
|
|
35
36
|
this.actualIP = null;
|
|
36
37
|
this.configuredIP = null;
|
|
37
38
|
this.dnsServer = null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
|
+
import ModelSet from "../ModelSet";
|
|
2
3
|
export declare enum SbcPermission {
|
|
3
4
|
none = "none",
|
|
4
5
|
commandExecution = "commandExecution",
|
|
@@ -52,7 +53,7 @@ export declare class PluginManifest extends ModelObject {
|
|
|
52
53
|
sbcExecutableArguments: string | null;
|
|
53
54
|
sbcExtraExecutables: Array<string>;
|
|
54
55
|
sbcOutputRedirected: boolean;
|
|
55
|
-
sbcPermissions:
|
|
56
|
+
sbcPermissions: ModelSet<SbcPermission>;
|
|
56
57
|
sbcPackageDependencies: Array<string>;
|
|
57
58
|
sbcPluginDependencies: Array<string>;
|
|
58
59
|
sbcPythonDependencies: Array<string>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PluginManifest = exports.SbcPermission = void 0;
|
|
4
4
|
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
const ModelSet_1 = require("../ModelSet");
|
|
5
6
|
var SbcPermission;
|
|
6
7
|
(function (SbcPermission) {
|
|
7
8
|
SbcPermission["none"] = "none";
|
|
@@ -57,7 +58,7 @@ class PluginManifest extends ModelObject_1.default {
|
|
|
57
58
|
this.sbcExecutableArguments = null;
|
|
58
59
|
this.sbcExtraExecutables = [];
|
|
59
60
|
this.sbcOutputRedirected = true;
|
|
60
|
-
this.sbcPermissions = new
|
|
61
|
+
this.sbcPermissions = new ModelSet_1.default();
|
|
61
62
|
this.sbcPackageDependencies = [];
|
|
62
63
|
this.sbcPluginDependencies = [];
|
|
63
64
|
this.sbcPythonDependencies = [];
|