@zwave-js/nvmedit 14.0.0-beta.4 → 14.0.0
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/build/cjs/lib/nvm3/files/ApplicationCCsFile.js +105 -58
- package/build/cjs/lib/nvm3/files/ApplicationCCsFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/ApplicationDataFile.js +69 -22
- package/build/cjs/lib/nvm3/files/ApplicationDataFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/ApplicationNameFile.js +71 -24
- package/build/cjs/lib/nvm3/files/ApplicationNameFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/ApplicationRFConfigFile.js +140 -93
- package/build/cjs/lib/nvm3/files/ApplicationRFConfigFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/ApplicationTypeFile.js +92 -45
- package/build/cjs/lib/nvm3/files/ApplicationTypeFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/ControllerInfoFile.js +176 -129
- package/build/cjs/lib/nvm3/files/ControllerInfoFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/NVMFile.d.ts +3 -3
- package/build/cjs/lib/nvm3/files/NVMFile.js.map +1 -1
- package/build/cjs/lib/nvm3/files/NodeInfoFiles.js +186 -111
- package/build/cjs/lib/nvm3/files/NodeInfoFiles.js.map +2 -2
- package/build/cjs/lib/nvm3/files/ProtocolNodeMaskFiles.js +243 -84
- package/build/cjs/lib/nvm3/files/ProtocolNodeMaskFiles.js.map +2 -2
- package/build/cjs/lib/nvm3/files/RouteCacheFiles.js +143 -82
- package/build/cjs/lib/nvm3/files/RouteCacheFiles.js.map +2 -2
- package/build/cjs/lib/nvm3/files/SUCUpdateEntriesFile.js +134 -73
- package/build/cjs/lib/nvm3/files/SUCUpdateEntriesFile.js.map +2 -2
- package/build/cjs/lib/nvm3/files/VersionFiles.js +98 -23
- package/build/cjs/lib/nvm3/files/VersionFiles.js.map +2 -2
- package/build/esm/lib/nvm3/files/ApplicationCCsFile.js +106 -66
- package/build/esm/lib/nvm3/files/ApplicationCCsFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/ApplicationDataFile.js +63 -23
- package/build/esm/lib/nvm3/files/ApplicationDataFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/ApplicationNameFile.js +66 -26
- package/build/esm/lib/nvm3/files/ApplicationNameFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/ApplicationRFConfigFile.js +137 -97
- package/build/esm/lib/nvm3/files/ApplicationRFConfigFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/ApplicationTypeFile.js +87 -47
- package/build/esm/lib/nvm3/files/ApplicationTypeFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/ControllerInfoFile.js +172 -132
- package/build/esm/lib/nvm3/files/ControllerInfoFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/NVMFile.d.ts +3 -3
- package/build/esm/lib/nvm3/files/NVMFile.d.ts.map +1 -1
- package/build/esm/lib/nvm3/files/NodeInfoFiles.js +191 -127
- package/build/esm/lib/nvm3/files/NodeInfoFiles.js.map +1 -1
- package/build/esm/lib/nvm3/files/ProtocolNodeMaskFiles.js +221 -85
- package/build/esm/lib/nvm3/files/ProtocolNodeMaskFiles.js.map +1 -1
- package/build/esm/lib/nvm3/files/RouteCacheFiles.js +143 -91
- package/build/esm/lib/nvm3/files/RouteCacheFiles.js.map +1 -1
- package/build/esm/lib/nvm3/files/SUCUpdateEntriesFile.js +126 -74
- package/build/esm/lib/nvm3/files/SUCUpdateEntriesFile.js.map +1 -1
- package/build/esm/lib/nvm3/files/VersionFiles.js +87 -23
- package/build/esm/lib/nvm3/files/VersionFiles.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,148 +1,188 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
2
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
5
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
6
|
+
var _, done = false;
|
|
7
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8
|
+
var context = {};
|
|
9
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
11
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
12
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
13
|
+
if (kind === "accessor") {
|
|
14
|
+
if (result === void 0) continue;
|
|
15
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
16
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
17
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
18
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
19
|
+
}
|
|
20
|
+
else if (_ = accept(result)) {
|
|
21
|
+
if (kind === "field") initializers.unshift(_);
|
|
22
|
+
else descriptor[key] = _;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
26
|
+
done = true;
|
|
27
|
+
};
|
|
28
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
29
|
+
var useValue = arguments.length > 2;
|
|
30
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
31
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
32
|
+
}
|
|
33
|
+
return useValue ? value : void 0;
|
|
6
34
|
};
|
|
7
35
|
import { ZWaveError, ZWaveErrorCodes, stripUndefined, } from "@zwave-js/core/safe";
|
|
8
36
|
import { Bytes, buffer2hex } from "@zwave-js/shared";
|
|
9
37
|
import { NVMFile, gotDeserializationOptions, nvmFileID, nvmSection, } from "./NVMFile.js";
|
|
10
38
|
export const ControllerInfoFileID = 0x50004;
|
|
11
|
-
let ControllerInfoFile =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
let ControllerInfoFile = (() => {
|
|
40
|
+
let _classDecorators = [nvmFileID(ControllerInfoFileID), nvmSection("protocol")];
|
|
41
|
+
let _classDescriptor;
|
|
42
|
+
let _classExtraInitializers = [];
|
|
43
|
+
let _classThis;
|
|
44
|
+
let _classSuper = NVMFile;
|
|
45
|
+
var ControllerInfoFile = class extends _classSuper {
|
|
46
|
+
static { _classThis = this; }
|
|
47
|
+
static {
|
|
48
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
49
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
50
|
+
ControllerInfoFile = _classThis = _classDescriptor.value;
|
|
51
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
52
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
53
|
+
}
|
|
54
|
+
constructor(options) {
|
|
55
|
+
super(options);
|
|
56
|
+
if (gotDeserializationOptions(options)) {
|
|
57
|
+
this.homeId = this.payload.subarray(0, 4);
|
|
58
|
+
if (this.payload.length === 13) {
|
|
59
|
+
this.nodeId = this.payload[4];
|
|
60
|
+
this.lastNodeId = this.payload[5];
|
|
61
|
+
this.staticControllerNodeId = this.payload[6];
|
|
62
|
+
this.sucLastIndex = this.payload[7];
|
|
63
|
+
this.controllerConfiguration = this.payload[8];
|
|
64
|
+
this.sucAwarenessPushNeeded = this.payload[9];
|
|
65
|
+
this.maxNodeId = this.payload[10];
|
|
66
|
+
this.reservedId = this.payload[11];
|
|
67
|
+
this.systemState = this.payload[12];
|
|
68
|
+
}
|
|
69
|
+
else if (this.payload.length === 22) {
|
|
70
|
+
this.nodeId = this.payload.readUInt16LE(4);
|
|
71
|
+
this.staticControllerNodeId = this.payload.readUInt16LE(6);
|
|
72
|
+
this.lastNodeIdLR = this.payload.readUInt16LE(8);
|
|
73
|
+
this.lastNodeId = this.payload[10];
|
|
74
|
+
this.sucLastIndex = this.payload[11];
|
|
75
|
+
this.maxNodeIdLR = this.payload.readUInt16LE(12);
|
|
76
|
+
this.maxNodeId = this.payload[14];
|
|
77
|
+
this.controllerConfiguration = this.payload[15];
|
|
78
|
+
this.reservedIdLR = this.payload.readUInt16LE(16);
|
|
79
|
+
this.reservedId = this.payload[18];
|
|
80
|
+
this.systemState = this.payload[19];
|
|
81
|
+
this.primaryLongRangeChannelId = this.payload[20];
|
|
82
|
+
this.dcdcConfig = this.payload[21];
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
throw new ZWaveError(`Unsupported payload length`, ZWaveErrorCodes.NVM_InvalidFormat);
|
|
86
|
+
}
|
|
41
87
|
}
|
|
42
88
|
else {
|
|
43
|
-
|
|
89
|
+
this.homeId = Bytes.view(options.homeId);
|
|
90
|
+
this.nodeId = options.nodeId;
|
|
91
|
+
this.lastNodeId = options.lastNodeId;
|
|
92
|
+
this.staticControllerNodeId = options.staticControllerNodeId;
|
|
93
|
+
this.sucLastIndex = options.sucLastIndex;
|
|
94
|
+
this.controllerConfiguration = options.controllerConfiguration;
|
|
95
|
+
this.maxNodeId = options.maxNodeId;
|
|
96
|
+
this.reservedId = options.reservedId;
|
|
97
|
+
this.systemState = options.systemState;
|
|
98
|
+
if ("lastNodeIdLR" in options) {
|
|
99
|
+
this.lastNodeIdLR = options.lastNodeIdLR;
|
|
100
|
+
this.maxNodeIdLR = options.maxNodeIdLR;
|
|
101
|
+
this.reservedIdLR = options.reservedIdLR;
|
|
102
|
+
this.primaryLongRangeChannelId =
|
|
103
|
+
options.primaryLongRangeChannelId;
|
|
104
|
+
this.dcdcConfig = options.dcdcConfig;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this.sucAwarenessPushNeeded = options.sucAwarenessPushNeeded;
|
|
108
|
+
}
|
|
44
109
|
}
|
|
45
110
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
111
|
+
homeId;
|
|
112
|
+
nodeId;
|
|
113
|
+
lastNodeId;
|
|
114
|
+
staticControllerNodeId;
|
|
115
|
+
sucLastIndex;
|
|
116
|
+
controllerConfiguration; // TODO: Figure out what this is
|
|
117
|
+
sucAwarenessPushNeeded;
|
|
118
|
+
maxNodeId;
|
|
119
|
+
reservedId;
|
|
120
|
+
systemState;
|
|
121
|
+
lastNodeIdLR;
|
|
122
|
+
maxNodeIdLR;
|
|
123
|
+
reservedIdLR;
|
|
124
|
+
primaryLongRangeChannelId;
|
|
125
|
+
dcdcConfig;
|
|
126
|
+
serialize() {
|
|
127
|
+
if (this.lastNodeIdLR != undefined) {
|
|
128
|
+
this.payload = new Bytes(22);
|
|
129
|
+
this.payload.set(this.homeId, 0);
|
|
130
|
+
this.payload.writeUInt16LE(this.nodeId, 4);
|
|
131
|
+
this.payload.writeUInt16LE(this.staticControllerNodeId, 6);
|
|
132
|
+
this.payload.writeUInt16LE(this.lastNodeIdLR, 8);
|
|
133
|
+
this.payload[10] = this.lastNodeId;
|
|
134
|
+
this.payload[11] = this.sucLastIndex;
|
|
135
|
+
this.payload.writeUInt16LE(this.maxNodeIdLR, 12);
|
|
136
|
+
this.payload[14] = this.maxNodeId;
|
|
137
|
+
this.payload[15] = this.controllerConfiguration;
|
|
138
|
+
this.payload.writeUInt16LE(this.reservedIdLR, 16);
|
|
139
|
+
this.payload[18] = this.reservedId;
|
|
140
|
+
this.payload[19] = this.systemState;
|
|
141
|
+
this.payload[20] = this.primaryLongRangeChannelId;
|
|
142
|
+
this.payload[21] = this.dcdcConfig;
|
|
63
143
|
}
|
|
64
144
|
else {
|
|
65
|
-
|
|
145
|
+
// V0
|
|
146
|
+
this.payload = Bytes.concat([
|
|
147
|
+
this.homeId,
|
|
148
|
+
Bytes.from([
|
|
149
|
+
this.nodeId,
|
|
150
|
+
this.lastNodeId,
|
|
151
|
+
this.staticControllerNodeId,
|
|
152
|
+
this.sucLastIndex,
|
|
153
|
+
this.controllerConfiguration,
|
|
154
|
+
this.sucAwarenessPushNeeded ?? 0,
|
|
155
|
+
this.maxNodeId,
|
|
156
|
+
this.reservedId,
|
|
157
|
+
this.systemState,
|
|
158
|
+
]),
|
|
159
|
+
]);
|
|
66
160
|
}
|
|
161
|
+
return super.serialize();
|
|
67
162
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
this.payload.writeUInt16LE(this.nodeId, 4);
|
|
89
|
-
this.payload.writeUInt16LE(this.staticControllerNodeId, 6);
|
|
90
|
-
this.payload.writeUInt16LE(this.lastNodeIdLR, 8);
|
|
91
|
-
this.payload[10] = this.lastNodeId;
|
|
92
|
-
this.payload[11] = this.sucLastIndex;
|
|
93
|
-
this.payload.writeUInt16LE(this.maxNodeIdLR, 12);
|
|
94
|
-
this.payload[14] = this.maxNodeId;
|
|
95
|
-
this.payload[15] = this.controllerConfiguration;
|
|
96
|
-
this.payload.writeUInt16LE(this.reservedIdLR, 16);
|
|
97
|
-
this.payload[18] = this.reservedId;
|
|
98
|
-
this.payload[19] = this.systemState;
|
|
99
|
-
this.payload[20] = this.primaryLongRangeChannelId;
|
|
100
|
-
this.payload[21] = this.dcdcConfig;
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
// V0
|
|
104
|
-
this.payload = Bytes.concat([
|
|
105
|
-
this.homeId,
|
|
106
|
-
Bytes.from([
|
|
107
|
-
this.nodeId,
|
|
108
|
-
this.lastNodeId,
|
|
109
|
-
this.staticControllerNodeId,
|
|
110
|
-
this.sucLastIndex,
|
|
111
|
-
this.controllerConfiguration,
|
|
112
|
-
this.sucAwarenessPushNeeded ?? 0,
|
|
113
|
-
this.maxNodeId,
|
|
114
|
-
this.reservedId,
|
|
115
|
-
this.systemState,
|
|
116
|
-
]),
|
|
117
|
-
]);
|
|
163
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
164
|
+
toJSON() {
|
|
165
|
+
return stripUndefined({
|
|
166
|
+
...super.toJSON(),
|
|
167
|
+
homeId: buffer2hex(this.homeId),
|
|
168
|
+
nodeId: this.nodeId,
|
|
169
|
+
lastNodeId: this.lastNodeId,
|
|
170
|
+
staticControllerNodeId: this.staticControllerNodeId,
|
|
171
|
+
sucLastIndex: this.sucLastIndex,
|
|
172
|
+
controllerConfiguration: this.controllerConfiguration,
|
|
173
|
+
sucAwarenessPushNeeded: this.sucAwarenessPushNeeded,
|
|
174
|
+
maxNodeId: this.maxNodeId,
|
|
175
|
+
reservedId: this.reservedId,
|
|
176
|
+
systemState: this.systemState,
|
|
177
|
+
lastNodeIdLR: this.lastNodeIdLR,
|
|
178
|
+
maxNodeIdLR: this.maxNodeIdLR,
|
|
179
|
+
reservedIdLR: this.reservedIdLR,
|
|
180
|
+
primaryLongRangeChannelId: this.primaryLongRangeChannelId,
|
|
181
|
+
dcdcConfig: this.dcdcConfig,
|
|
182
|
+
});
|
|
118
183
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
toJSON() {
|
|
123
|
-
return stripUndefined({
|
|
124
|
-
...super.toJSON(),
|
|
125
|
-
homeId: buffer2hex(this.homeId),
|
|
126
|
-
nodeId: this.nodeId,
|
|
127
|
-
lastNodeId: this.lastNodeId,
|
|
128
|
-
staticControllerNodeId: this.staticControllerNodeId,
|
|
129
|
-
sucLastIndex: this.sucLastIndex,
|
|
130
|
-
controllerConfiguration: this.controllerConfiguration,
|
|
131
|
-
sucAwarenessPushNeeded: this.sucAwarenessPushNeeded,
|
|
132
|
-
maxNodeId: this.maxNodeId,
|
|
133
|
-
reservedId: this.reservedId,
|
|
134
|
-
systemState: this.systemState,
|
|
135
|
-
lastNodeIdLR: this.lastNodeIdLR,
|
|
136
|
-
maxNodeIdLR: this.maxNodeIdLR,
|
|
137
|
-
reservedIdLR: this.reservedIdLR,
|
|
138
|
-
primaryLongRangeChannelId: this.primaryLongRangeChannelId,
|
|
139
|
-
dcdcConfig: this.dcdcConfig,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
ControllerInfoFile = __decorate([
|
|
144
|
-
nvmFileID(ControllerInfoFileID),
|
|
145
|
-
nvmSection("protocol")
|
|
146
|
-
], ControllerInfoFile);
|
|
184
|
+
};
|
|
185
|
+
return ControllerInfoFile = _classThis;
|
|
186
|
+
})();
|
|
147
187
|
export { ControllerInfoFile };
|
|
148
188
|
//# sourceMappingURL=ControllerInfoFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControllerInfoFile.js","sourceRoot":"","sources":["../../../../../src/lib/nvm3/files/ControllerInfoFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ControllerInfoFile.js","sourceRoot":"","sources":["../../../../../src/lib/nvm3/files/ControllerInfoFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACN,UAAU,EACV,eAAe,EACf,cAAc,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EACN,OAAO,EAGP,yBAAyB,EACzB,SAAS,EACT,UAAU,GACV,MAAM,cAAc,CAAC;AA4BtB,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;IAI/B,kBAAkB;4BAF9B,SAAS,CAAC,oBAAoB,CAAC,EAC/B,UAAU,CAAC,UAAU,CAAC;;;;sBACiB,OAAO;kCAAf,SAAQ,WAAO;;;;YAA/C,6KAsIC;;;YAtIY,uDAAkB;;QAC9B,YACC,OAAkE;YAElE,KAAK,CAAC,OAAO,CAAC,CAAC;YACf,IAAI,yBAAyB,CAAC,OAAO,CAAC,EAAE,CAAC;gBACxC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC1C,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;oBAChC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBAClC,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC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I,CAAC,UAAU;gBAC3B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;gBACnD,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;gBACrD,sBAAsB,EAAE,IAAI,CAAC,sBAAsB;gBACnD,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,yBAAyB,EAAE,IAAI,CAAC,yBAAyB;gBACzD,UAAU,EAAE,IAAI,CAAC,UAAU;aAC3B,CAAC,CAAC;QACJ,CAAC;;;;SArIW,kBAAkB"}
|
|
@@ -35,7 +35,7 @@ export type NVMFileConstructor<T extends NVMFile> = typeof NVMFile & {
|
|
|
35
35
|
/**
|
|
36
36
|
* Defines the ID associated with a NVM file class
|
|
37
37
|
*/
|
|
38
|
-
export declare function nvmFileID(id: number | ((id: number) => boolean)): TypedClassDecorator<
|
|
38
|
+
export declare function nvmFileID<Class extends typeof NVMFile>(id: number | ((id: number) => boolean)): TypedClassDecorator<Class>;
|
|
39
39
|
/**
|
|
40
40
|
* Retrieves the file ID defined for a NVM file class
|
|
41
41
|
*/
|
|
@@ -50,11 +50,11 @@ export declare function getNVMFileConstructor(id: number): NVMFileConstructor<NV
|
|
|
50
50
|
export declare function getNVMFileIDStatic<T extends NVMFileConstructor<NVMFile>>(classConstructor: T): number | ((id: number) => boolean);
|
|
51
51
|
export type NVMSection = "application" | "protocol";
|
|
52
52
|
/** Defines in which section an NVM file is stored */
|
|
53
|
-
export declare const nvmSection: <TTarget extends NVMFile>(section: NVMSection) => TypedClassDecorator<TTarget>;
|
|
53
|
+
export declare const nvmSection: <TTarget extends typeof NVMFile>(section: NVMSection) => TypedClassDecorator<TTarget>;
|
|
54
54
|
/** Returns in which section an NVM file is stored (using an instance of the file) */
|
|
55
55
|
export declare const getNVMSection: (target: NVMFile) => NVMSection | undefined;
|
|
56
56
|
/** Returns in which section an NVM file is stored (using the constructor of the file) */
|
|
57
|
-
export declare const getNVMSectionStatic: (constr:
|
|
57
|
+
export declare const getNVMSectionStatic: (constr: typeof NVMFile) => NVMSection | undefined;
|
|
58
58
|
/** Returns in which NVM section the file with the given ID resides in */
|
|
59
59
|
export declare function getNVMSectionByFileID(fileId: number): NVMSection;
|
|
60
60
|
//# sourceMappingURL=NVMFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NVMFile.d.ts","sourceRoot":"","sources":["../../../../../src/lib/nvm3/files/NVMFile.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,KAAK,EACL,KAAK,mBAAmB,EAGxB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,6BAA8B,SAAQ,kBAAkB;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;CACZ;AAED,wBAAgB,yBAAyB,CACxC,OAAO,EAAE,cAAc,GACrB,OAAO,IAAI,6BAA6B,CAE1C;AAGD,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;CAAG;AAErE,MAAM,MAAM,cAAc,GACvB,sBAAsB,GACtB,6BAA6B,CAAC;AAEjC,qBAAa,OAAO;gBACA,OAAO,EAAE,cAAc;IAe1C,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,MAAM,CAAK;IACnB,WAAW,EAAE,MAAM,CAAC;IAE3B;;OAEG;WACW,IAAI,CACjB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EA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