/* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT DIRECTLY. */ import { Family } from "../../../Definitions/Global/index.js"; import type { NodeInfo } from "../../../Model/NodeInfo.js"; import { ISY } from "../../../ISY.js"; import { ISYNode } from "../../../ISYNode.js"; import { ISYDeviceNode } from "../../ISYDeviceNode.js"; import { Base } from "../index.js"; import { NodeFactory } from "../../NodeFactory.js"; type Commands = BasicAssociation.Commands.Type; type Drivers = BasicAssociation.Drivers.Type; type Events = BasicAssociation.Events.Type; export class BasicAssociation extends Base implements BasicAssociation.Interface { public override readonly commands = { QUERY: this.query }; static override nodeDefId = "252"; static override implements = ['252', "259"]; declare readonly nodeDefId: '252'; constructor (isy: ISY, nodeInfo: NodeInfo) { super(isy, nodeInfo); } async query() { return this.sendCommand("QUERY"); } } NodeFactory.register(BasicAssociation); export namespace BasicAssociation { export interface Interface extends Omit, keyof ISYDeviceNode> { } export function is(node: ISYNode): node is BasicAssociation { return ['252'].includes(node.nodeDefId); } export function isImplementedBy(node: ISYNode): node is BasicAssociation { return ['252', "137", "147"].includes(node.nodeDefId); } export function create(isy: ISY, nodeInfo: NodeInfo) { return new BasicAssociation(isy, nodeInfo); } export const Node = BasicAssociation; export const Class = BasicAssociation; export namespace Commands { export type Type = { QUERY: (() => Promise) & { label: "Query"; name: "query"; }; }; } export enum Commands { query = 'QUERY' } export namespace Drivers { export type Type = {}; } export enum Drivers { } export namespace Events { export type Type = { DON: { label: "On"; name: "on"; }; DOF: { label: "Off"; name: "off"; }; }; } export enum Events { on = 'DON', off = 'DOF' } }