@duet3d/objectmodel 3.6.0-rc.4 → 3.6.0-rc.5
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/httpEndpoints/index.d.ts +19 -0
- package/dist/httpEndpoints/index.js +27 -0
- package/dist/move/Axis.d.ts +1 -0
- package/dist/move/Axis.js +1 -0
- package/dist/move/Extruder.d.ts +1 -0
- package/dist/move/Extruder.js +1 -0
- package/dist/move/index.d.ts +2 -0
- package/dist/move/index.js +2 -0
- package/dist/userSessions/index.d.ts +18 -0
- package/dist/userSessions/index.js +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export declare enum HttpEndpointType {
|
|
3
|
+
GET = "GET",
|
|
4
|
+
POST = "POST",
|
|
5
|
+
PUT = "PUT",
|
|
6
|
+
PATCH = "PATCH",
|
|
7
|
+
TRACE = "TRACE",
|
|
8
|
+
DELETE = "DELETE",
|
|
9
|
+
OPTIONS = "OPTIONS",
|
|
10
|
+
WebSocket = "WebSocket"
|
|
11
|
+
}
|
|
12
|
+
export declare class HttpEndpoint extends ModelObject {
|
|
13
|
+
endpointType: HttpEndpointType;
|
|
14
|
+
namespace: string;
|
|
15
|
+
path: string;
|
|
16
|
+
isUploadRequest: boolean;
|
|
17
|
+
unixSocket: string;
|
|
18
|
+
}
|
|
19
|
+
export default HttpEndpoint;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpEndpoint = exports.HttpEndpointType = void 0;
|
|
4
|
+
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
var HttpEndpointType;
|
|
6
|
+
(function (HttpEndpointType) {
|
|
7
|
+
HttpEndpointType["GET"] = "GET";
|
|
8
|
+
HttpEndpointType["POST"] = "POST";
|
|
9
|
+
HttpEndpointType["PUT"] = "PUT";
|
|
10
|
+
HttpEndpointType["PATCH"] = "PATCH";
|
|
11
|
+
HttpEndpointType["TRACE"] = "TRACE";
|
|
12
|
+
HttpEndpointType["DELETE"] = "DELETE";
|
|
13
|
+
HttpEndpointType["OPTIONS"] = "OPTIONS";
|
|
14
|
+
HttpEndpointType["WebSocket"] = "WebSocket";
|
|
15
|
+
})(HttpEndpointType = exports.HttpEndpointType || (exports.HttpEndpointType = {}));
|
|
16
|
+
class HttpEndpoint extends ModelObject_1.default {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.endpointType = HttpEndpointType.GET;
|
|
20
|
+
this.namespace = "";
|
|
21
|
+
this.path = "";
|
|
22
|
+
this.isUploadRequest = false;
|
|
23
|
+
this.unixSocket = "";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.HttpEndpoint = HttpEndpoint;
|
|
27
|
+
exports.default = HttpEndpoint;
|
package/dist/move/Axis.d.ts
CHANGED
package/dist/move/Axis.js
CHANGED
package/dist/move/Extruder.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare class Extruder extends ModelObject {
|
|
|
19
19
|
readonly nonlinear: ExtruderNonlinear;
|
|
20
20
|
percentCurrent: number;
|
|
21
21
|
percentStstCurrent: number | null;
|
|
22
|
+
phaseStep: boolean | null;
|
|
22
23
|
position: number;
|
|
23
24
|
pressureAdvance: number;
|
|
24
25
|
printingJerk: number;
|
package/dist/move/Extruder.js
CHANGED
package/dist/move/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class MoveRotation extends ModelObject {
|
|
|
28
28
|
centre: Array<number>;
|
|
29
29
|
}
|
|
30
30
|
export declare class Move extends ModelObject {
|
|
31
|
+
accelerationTime: number | null;
|
|
31
32
|
readonly axes: ModelCollection<Axis>;
|
|
32
33
|
backlashFactor: number;
|
|
33
34
|
readonly calibration: MoveCalibration;
|
|
@@ -45,6 +46,7 @@ export declare class Move extends ModelObject {
|
|
|
45
46
|
readonly shaping: InputShaping;
|
|
46
47
|
speedFactor: number;
|
|
47
48
|
travelAcceleration: number;
|
|
49
|
+
usingSCurve: boolean | null;
|
|
48
50
|
virtualEPos: number;
|
|
49
51
|
workplaceNumber: number;
|
|
50
52
|
}
|
package/dist/move/index.js
CHANGED
|
@@ -63,6 +63,7 @@ exports.MoveRotation = MoveRotation;
|
|
|
63
63
|
class Move extends ModelObject_1.default {
|
|
64
64
|
constructor() {
|
|
65
65
|
super(...arguments);
|
|
66
|
+
this.accelerationTime = null;
|
|
66
67
|
this.axes = new ModelCollection_1.default(Axis_1.default);
|
|
67
68
|
this.backlashFactor = 10;
|
|
68
69
|
this.calibration = new MoveCalibration_1.default();
|
|
@@ -80,6 +81,7 @@ class Move extends ModelObject_1.default {
|
|
|
80
81
|
this.shaping = new InputShaping_1.default();
|
|
81
82
|
this.speedFactor = 1;
|
|
82
83
|
this.travelAcceleration = 10000;
|
|
84
|
+
this.usingSCurve = null;
|
|
83
85
|
this.virtualEPos = 0;
|
|
84
86
|
this.workplaceNumber = 0;
|
|
85
87
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import ModelObject from "../ModelObject";
|
|
2
|
+
export declare enum AccessLevel {
|
|
3
|
+
readOnly = "readOnly",
|
|
4
|
+
readWrite = "readWrite"
|
|
5
|
+
}
|
|
6
|
+
export declare enum SessionType {
|
|
7
|
+
local = "local",
|
|
8
|
+
http = "http",
|
|
9
|
+
telnet = "telnet"
|
|
10
|
+
}
|
|
11
|
+
export declare class UserSession extends ModelObject {
|
|
12
|
+
accessLevel: AccessLevel;
|
|
13
|
+
id: number;
|
|
14
|
+
origin: string | null;
|
|
15
|
+
originId: number;
|
|
16
|
+
sessionType: SessionType;
|
|
17
|
+
}
|
|
18
|
+
export default UserSession;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserSession = exports.SessionType = exports.AccessLevel = void 0;
|
|
4
|
+
const ModelObject_1 = require("../ModelObject");
|
|
5
|
+
var AccessLevel;
|
|
6
|
+
(function (AccessLevel) {
|
|
7
|
+
AccessLevel["readOnly"] = "readOnly";
|
|
8
|
+
AccessLevel["readWrite"] = "readWrite";
|
|
9
|
+
})(AccessLevel = exports.AccessLevel || (exports.AccessLevel = {}));
|
|
10
|
+
var SessionType;
|
|
11
|
+
(function (SessionType) {
|
|
12
|
+
SessionType["local"] = "local";
|
|
13
|
+
SessionType["http"] = "http";
|
|
14
|
+
SessionType["telnet"] = "telnet";
|
|
15
|
+
})(SessionType = exports.SessionType || (exports.SessionType = {}));
|
|
16
|
+
class UserSession extends ModelObject_1.default {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.accessLevel = AccessLevel.readOnly;
|
|
20
|
+
this.id = 0;
|
|
21
|
+
this.origin = null;
|
|
22
|
+
this.originId = -1;
|
|
23
|
+
this.sessionType = SessionType.local;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.UserSession = UserSession;
|
|
27
|
+
exports.default = UserSession;
|