zwave-js 15.7.0 → 15.8.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/_version.d.ts +1 -1
- package/build/cjs/lib/_version.js +1 -1
- package/build/cjs/lib/_version.js.map +1 -1
- package/build/cjs/lib/controller/Controller.d.ts +33 -23
- package/build/cjs/lib/controller/Controller.js +695 -469
- package/build/cjs/lib/controller/Controller.js.map +3 -3
- package/build/cjs/lib/driver/Driver.d.ts +10 -34
- package/build/cjs/lib/driver/Driver.js +49 -35
- package/build/cjs/lib/driver/Driver.js.map +2 -2
- package/build/cjs/lib/driver/Task.d.ts +10 -0
- package/build/cjs/lib/driver/Task.js.map +2 -2
- package/build/cjs/lib/node/Node.d.ts +7 -2
- package/build/cjs/lib/node/Node.js +14 -3
- package/build/cjs/lib/node/Node.js.map +2 -2
- package/build/cjs/lib/node/NodeStatistics.d.ts +1 -1
- package/build/cjs/lib/node/NodeStatistics.js +9 -1
- package/build/cjs/lib/node/NodeStatistics.js.map +2 -2
- package/build/cjs/lib/node/mixins/70_FirmwareUpdate.js +7 -6
- package/build/cjs/lib/node/mixins/70_FirmwareUpdate.js.map +2 -2
- package/build/esm/lib/_version.d.ts +1 -1
- package/build/esm/lib/_version.js +1 -1
- package/build/esm/lib/controller/Controller.d.ts +33 -23
- package/build/esm/lib/controller/Controller.d.ts.map +1 -1
- package/build/esm/lib/controller/Controller.js +901 -609
- package/build/esm/lib/controller/Controller.js.map +1 -1
- package/build/esm/lib/driver/Driver.d.ts +10 -34
- package/build/esm/lib/driver/Driver.d.ts.map +1 -1
- package/build/esm/lib/driver/Driver.js +52 -35
- package/build/esm/lib/driver/Driver.js.map +1 -1
- package/build/esm/lib/driver/Task.d.ts +10 -0
- package/build/esm/lib/driver/Task.d.ts.map +1 -1
- package/build/esm/lib/driver/Task.js.map +1 -1
- package/build/esm/lib/node/Node.d.ts +7 -2
- package/build/esm/lib/node/Node.d.ts.map +1 -1
- package/build/esm/lib/node/Node.js +15 -3
- package/build/esm/lib/node/Node.js.map +1 -1
- package/build/esm/lib/node/NodeStatistics.d.ts +1 -1
- package/build/esm/lib/node/NodeStatistics.d.ts.map +1 -1
- package/build/esm/lib/node/NodeStatistics.js +10 -1
- package/build/esm/lib/node/NodeStatistics.js.map +1 -1
- package/build/esm/lib/node/mixins/70_FirmwareUpdate.d.ts.map +1 -1
- package/build/esm/lib/node/mixins/70_FirmwareUpdate.js +7 -6
- package/build/esm/lib/node/mixins/70_FirmwareUpdate.js.map +1 -1
- package/package.json +7 -7
|
@@ -22,7 +22,7 @@ __export(version_exports, {
|
|
|
22
22
|
PACKAGE_VERSION: () => PACKAGE_VERSION
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(version_exports);
|
|
25
|
-
const PACKAGE_VERSION = "15.
|
|
25
|
+
const PACKAGE_VERSION = "15.8.0";
|
|
26
26
|
const PACKAGE_NAME = "zwave-js";
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/_version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"15.
|
|
4
|
+
"sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"15.8.0\";\nexport const PACKAGE_NAME = \"zwave-js\";\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;;;;;;AACO,MAAM,kBAAkB;AACxB,MAAM,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -222,13 +222,6 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
222
222
|
private _inclusionState;
|
|
223
223
|
get inclusionState(): InclusionState;
|
|
224
224
|
private _smartStartEnabled;
|
|
225
|
-
private _includeController;
|
|
226
|
-
private _exclusionOptions;
|
|
227
|
-
private _inclusionOptions;
|
|
228
|
-
private _nodePendingInclusion;
|
|
229
|
-
private _nodePendingExclusion;
|
|
230
|
-
private _nodePendingReplace;
|
|
231
|
-
private _replaceFailedPromise;
|
|
232
225
|
/**
|
|
233
226
|
* Starts the inclusion process of new nodes.
|
|
234
227
|
* Resolves to true when the process was started, and false if the inclusion was already active.
|
|
@@ -236,6 +229,15 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
236
229
|
* @param options Defines the inclusion strategy to use.
|
|
237
230
|
*/
|
|
238
231
|
beginInclusion(options?: InclusionOptions): Promise<boolean>;
|
|
232
|
+
/**
|
|
233
|
+
* Returns the task to handle the complete classic inclusion process
|
|
234
|
+
*/
|
|
235
|
+
private getBeginClassicInclusionTask;
|
|
236
|
+
/**
|
|
237
|
+
* Returns the task to handle the complete classic inclusion process
|
|
238
|
+
*/
|
|
239
|
+
private getBeginSmartStartInclusionTask;
|
|
240
|
+
private performInclusion;
|
|
239
241
|
/**
|
|
240
242
|
* Finishes an inclusion process. This must only be called after the ProtocolDone status is received.
|
|
241
243
|
* Returns the ID of the newly added node.
|
|
@@ -246,6 +248,12 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
246
248
|
* and false if the inclusion was not active.
|
|
247
249
|
*/
|
|
248
250
|
stopInclusion(): Promise<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Stops an active inclusion process, but does not remove the corresponding task.
|
|
253
|
+
* This should only be used from within an inclusion task, or other methods that
|
|
254
|
+
* handle task removal
|
|
255
|
+
*/
|
|
256
|
+
private stopInclusionInternal;
|
|
249
257
|
/**
|
|
250
258
|
* Puts the controller into listening mode for Smart Start inclusion.
|
|
251
259
|
* Whenever a node on the provisioning list announces itself, it will automatically be added.
|
|
@@ -269,9 +277,20 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
269
277
|
beginExclusion(options?: ExclusionOptions): Promise<boolean>;
|
|
270
278
|
/**
|
|
271
279
|
* Stops an active exclusion process. Resolves to true when the controller leaves exclusion mode,
|
|
272
|
-
* and false if the
|
|
280
|
+
* and false if the exclusion was not active.
|
|
273
281
|
*/
|
|
274
282
|
stopExclusion(): Promise<boolean>;
|
|
283
|
+
/**
|
|
284
|
+
* Stops an active exclusion process, but does not remove the corresponding task.
|
|
285
|
+
* This should only be used from within an exclusion task, or other methods that
|
|
286
|
+
* handle task removal
|
|
287
|
+
*/
|
|
288
|
+
private stopExclusionInternal;
|
|
289
|
+
/**
|
|
290
|
+
* Returns the task to handle the complete exclusion process
|
|
291
|
+
*/
|
|
292
|
+
private getExclusionTask;
|
|
293
|
+
private performExclusion;
|
|
275
294
|
private _proxyInclusionMachine;
|
|
276
295
|
private _proxyInclusionInitiateTimeout;
|
|
277
296
|
private updateProxyInclusionMachine;
|
|
@@ -284,21 +303,6 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
284
303
|
private cancelBootstrapS2Promise;
|
|
285
304
|
cancelSecureBootstrapS2(reason: KEXFailType): void;
|
|
286
305
|
private secureBootstrapS2;
|
|
287
|
-
/**
|
|
288
|
-
* Is called when an AddNode request is received from the controller.
|
|
289
|
-
* Handles and controls the inclusion process.
|
|
290
|
-
*/
|
|
291
|
-
private handleAddNodeStatusReport;
|
|
292
|
-
/**
|
|
293
|
-
* Is called when an ReplaceFailed request is received from the controller.
|
|
294
|
-
* Handles and controls the replace process.
|
|
295
|
-
*/
|
|
296
|
-
private handleReplaceNodeStatusReport;
|
|
297
|
-
/**
|
|
298
|
-
* Is called when a RemoveNode request is received from the controller.
|
|
299
|
-
* Handles and controls the exclusion process.
|
|
300
|
-
*/
|
|
301
|
-
private handleRemoveNodeStatusReport;
|
|
302
306
|
private _rebuildRoutesProgress;
|
|
303
307
|
/**
|
|
304
308
|
* If routes are currently being rebuilt for the entire network, this returns the current progress.
|
|
@@ -518,12 +522,18 @@ export declare class ZWaveController extends TypedEventTarget<ControllerEventCal
|
|
|
518
522
|
* @param nodeId The id of the node to remove
|
|
519
523
|
*/
|
|
520
524
|
removeFailedNode(nodeId: number): Promise<void>;
|
|
525
|
+
private getRemoveFailedNodeTask;
|
|
521
526
|
/**
|
|
522
527
|
* Replace a failed node from the controller's memory. If the process fails, this will throw an exception with the details why.
|
|
523
528
|
* @param nodeId The id of the node to replace
|
|
524
529
|
* @param options Defines the inclusion strategy to use for the replacement node
|
|
525
530
|
*/
|
|
526
531
|
replaceFailedNode(nodeId: number, options?: ReplaceNodeOptions): Promise<boolean>;
|
|
532
|
+
/**
|
|
533
|
+
* Returns the task to handle the complete exclusion process
|
|
534
|
+
*/
|
|
535
|
+
private getReplaceFailedNodeTask;
|
|
536
|
+
private replaceFailedNodeTask;
|
|
527
537
|
/** Configure the RF region at the Z-Wave API Module */
|
|
528
538
|
setRFRegion(region: RFRegion): Promise<boolean>;
|
|
529
539
|
/** Configure the RF region at the Z-Wave API Module */
|