A base class for all automations. Allows for automations to be correctly registered and triggered.
A default constructor that registers this automation to the automations service.
A reference to automations service injected by the Nest.js Dependency Injection. Its value is not available in the constructor.
A name of the automation. Must be unique.
A list of not-yet-built triggers. Empty list means this automation won't be triggered.
A function called when an event matches any of automations triggers. This function is called by events services.
The event accepted by any of automations triggers. The event is generalized to the AutomationEvent type, but can be narrowed down back to the original event within the automation.
Generated using TypeDoc