@duet3d/objectmodel 3.6.0-alpha.7 → 3.6.0-beta.1
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.
|
@@ -33,6 +33,8 @@ export declare class NetworkInterface extends ModelObject {
|
|
|
33
33
|
gateway: string | null;
|
|
34
34
|
mac: string | null;
|
|
35
35
|
numReconnects: number | null;
|
|
36
|
+
rssi: number | null;
|
|
37
|
+
/** @deprecated use rssi instead */
|
|
36
38
|
signal: number | null;
|
|
37
39
|
speed: number | null;
|
|
38
40
|
ssid: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ModelObject from "../ModelObject";
|
|
1
|
+
import ModelObject, { IModelObject } from "../ModelObject";
|
|
2
2
|
import ModelSet from "../ModelSet";
|
|
3
3
|
export declare enum SbcPermission {
|
|
4
4
|
none = "none",
|
|
@@ -62,5 +62,6 @@ export declare class PluginManifest extends ModelObject {
|
|
|
62
62
|
rrfVersion: string | null;
|
|
63
63
|
data: Map<string, any>;
|
|
64
64
|
static checkVersion(actual: string, required: string): boolean;
|
|
65
|
+
update(jsonElement: any): IModelObject | null;
|
|
65
66
|
}
|
|
66
67
|
export default PluginManifest;
|
|
@@ -111,6 +111,15 @@ class PluginManifest extends ModelObject_1.default {
|
|
|
111
111
|
}
|
|
112
112
|
return true;
|
|
113
113
|
}
|
|
114
|
+
update(jsonElement) {
|
|
115
|
+
if (typeof jsonElement.data === "object") {
|
|
116
|
+
for (const key in jsonElement.data) {
|
|
117
|
+
this.data.set(key, jsonElement.data[key]);
|
|
118
|
+
}
|
|
119
|
+
delete jsonElement.data;
|
|
120
|
+
}
|
|
121
|
+
return super.update(jsonElement);
|
|
122
|
+
}
|
|
114
123
|
}
|
|
115
124
|
exports.PluginManifest = PluginManifest;
|
|
116
125
|
exports.default = PluginManifest;
|