Skip to content

Commit 99d1ea2

Browse files
authored
fix: update typescript annotations (#376)
1 parent 998fedd commit 99d1ea2

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

types/openzwave-shared.d.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ declare module "openzwave-shared" {
5757
NodeFailed = 10,
5858
}
5959

60+
export enum ControllerError {
61+
None = 0,
62+
ButtonNotFound = 1, /* Button */
63+
NodeNotFound = 2, /* Button */
64+
NotBridge = 3, /* Button */
65+
NotSUC = 4, /* CreateNewPrimary */
66+
NotSecondary = 5, /* CreateNewPrimary */
67+
NotPrimary = 6, /* RemoveFailedNode, AddNodeToNetwork */
68+
IsPrimary = 7, /* ReceiveConfiguration */
69+
NotFound = 8, /* RemoveFailedNode */
70+
Busy = 9, /* RemoveFailedNode, RequestNetworkUpdate */
71+
Failed = 10, /* RemoveFailedNode, RequestNetworkUpdate */
72+
Disabled = 11, /* RequestNetworkUpdate error */
73+
Overflow = 12, /* RequestNetworkUpdate error */
74+
}
75+
6076
export enum LogLevel {
6177
NoLogging = 0,
6278
AllMessages = 1,
@@ -340,7 +356,7 @@ declare module "openzwave-shared" {
340356
listener: (
341357
nodeId: number,
342358
state: ZWave.ControllerState,
343-
notif: number,
359+
notif: ZWave.ControllerError,
344360
message: string,
345361
command: number,
346362
) => void,
@@ -494,6 +510,12 @@ declare module "openzwave-shared" {
494510
*/
495511
requestNodeNeighborUpdate(nodeId: number): boolean;
496512

513+
/**
514+
* Ask a Node to update its update its Return Route to the Controller
515+
* This command will ask a Node to update its Return Route to the Controller.
516+
*/
517+
assignReturnRoute(nodeId: number): boolean;
518+
497519
/**
498520
* Ask a Node to delete all Return Route.
499521
* This command will ask a Node to delete all its return routes, and will

0 commit comments

Comments
 (0)