UNPKG

@iobroker/plugin-base

Version:

Base module for plugins for js-controller and adapters

38 lines (36 loc) 1.72 kB
declare module "@iobroker/plugin-base/types" { export interface PluginHandlerSettings { /** The scope in which the plugin will be executed */ scope: "adapter" | "controller"; /** The object namespace for the plugin, e.g. `system.adapter.<adaptername>.0.plugins.name`, or `system.host.<hostname>.plugins.name` */ namespace: string; /** The namespace which will be used for logging */ logNamespace: string; /** The logger object to use for logging */ log: ioBroker.Logger; /** The complete ioBroker configuration object */ iobrokerConfig: Record<string, any>; /** The package.json contents from the "parent" (adapter/controller) which uses this plugin */ parentPackage: Record<string, any>; /** The version of the installed JS-Controller */ controllerVersion: string; } export interface PluginSettings { /** The scope in which the plugin will be executed */ pluginScope: "adapter" | "controller"; /** The object namespace for the parent of the plugin, e.g. `system.adapter.<adaptername>.0`, or `system.host.<hostname>.` */ parentNamespace: string; /** The object namespace for the plugin, e.g. `system.adapter.<adaptername>.0.plugins.name`, or `system.host.<hostname>.plugins.name` */ pluginNamespace: string; /** The namespace which will be used for logging */ pluginLogNamespace: string; /** The logger object to use for logging */ log: ioBroker.Logger; /** The complete ioBroker configuration object */ iobrokerConfig: Record<string, any>; /** The package.json contents from the "parent" (adapter/controller) which uses this plugin */ parentPackage: Record<string, any>; /** The version of the installed JS-Controller */ controllerVersion: string; } }