Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typescript annotations #376

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion types/openzwave-shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@ declare module "openzwave-shared" {
NodeFailed = 10,
}

export enum ControllerError {
None = 0,
ButtonNotFound = 1, /* Button */
NodeNotFound = 2, /* Button */
NotBridge = 3, /* Button */
NotSUC = 4, /* CreateNewPrimary */
NotSecondary = 5, /* CreateNewPrimary */
NotPrimary = 6, /* RemoveFailedNode, AddNodeToNetwork */
IsPrimary = 7, /* ReceiveConfiguration */
NotFound = 8, /* RemoveFailedNode */
Busy = 9, /* RemoveFailedNode, RequestNetworkUpdate */
Failed = 10, /* RemoveFailedNode, RequestNetworkUpdate */
Disabled = 11, /* RequestNetworkUpdate error */
Overflow = 12, /* RequestNetworkUpdate error */
}

export enum LogLevel {
NoLogging = 0,
AllMessages = 1,
Expand Down Expand Up @@ -340,7 +356,7 @@ declare module "openzwave-shared" {
listener: (
nodeId: number,
state: ZWave.ControllerState,
notif: number,
notif: ZWave.ControllerError,
message: string,
command: number,
) => void,
Expand Down Expand Up @@ -494,6 +510,12 @@ declare module "openzwave-shared" {
*/
requestNodeNeighborUpdate(nodeId: number): boolean;

/**
* Ask a Node to update its update its Return Route to the Controller
* This command will ask a Node to update its Return Route to the Controller.
*/
assignReturnRoute(nodeId: number): boolean;

/**
* Ask a Node to delete all Return Route.
* This command will ask a Node to delete all its return routes, and will
Expand Down