mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-17 12:03:03 +00:00
feat(automation): add composer
This commit is contained in:
@@ -22,6 +22,19 @@ export type Automation = {
|
||||
|
||||
export type AutomationDTO = Omit<Automation, 'id'>;
|
||||
|
||||
/** Creates one reusable definition and optional global lifecycle bindings in a single operation. */
|
||||
export type AutomationCompositionDTO = {
|
||||
automation: AutomationDTO;
|
||||
lifecycles: TimerLifeCycle[];
|
||||
};
|
||||
|
||||
export type AutomationComposition = {
|
||||
automation: Automation;
|
||||
triggers: Trigger[];
|
||||
};
|
||||
|
||||
export type AutomationUsage = Record<AutomationId, { global: number; event: number }>;
|
||||
|
||||
export type NormalisedAutomation = Record<AutomationId, Automation>;
|
||||
|
||||
export type Trigger = {
|
||||
|
||||
@@ -31,9 +31,12 @@ export { ontimeActionKeyValues } from './definitions/core/Automation.type.js';
|
||||
export type {
|
||||
OntimeActionKey,
|
||||
Automation,
|
||||
AutomationComposition,
|
||||
AutomationCompositionDTO,
|
||||
AutomationDTO,
|
||||
AutomationFilter,
|
||||
AutomationSettings,
|
||||
AutomationUsage,
|
||||
AutomationOutput,
|
||||
FilterRule,
|
||||
HTTPOutput,
|
||||
|
||||
Reference in New Issue
Block a user