mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 12:53:32 +00:00
chore: rename feature elements
rename automations > triggers rename blueprints > automations chore: add link to documentation
This commit is contained in:
committed by
Carlos Valente
parent
f4f266dbd4
commit
efe5ac16f2
@@ -4,33 +4,33 @@ export type AutomationSettings = {
|
||||
enabledAutomations: boolean;
|
||||
enabledOscIn: boolean;
|
||||
oscPortIn: number;
|
||||
automations: Automation[];
|
||||
blueprints: NormalisedAutomationBlueprint;
|
||||
triggers: Trigger[];
|
||||
automations: NormalisedAutomation;
|
||||
};
|
||||
|
||||
type BlueprintId = string;
|
||||
type AutomationId = string;
|
||||
export type FilterRule = 'all' | 'any';
|
||||
|
||||
export type AutomationBlueprint = {
|
||||
id: BlueprintId;
|
||||
export type Automation = {
|
||||
id: AutomationId;
|
||||
title: string;
|
||||
filterRule: FilterRule;
|
||||
filters: AutomationFilter[];
|
||||
outputs: AutomationOutput[];
|
||||
};
|
||||
|
||||
export type AutomationBlueprintDTO = Omit<AutomationBlueprint, 'id'>;
|
||||
export type AutomationDTO = Omit<Automation, 'id'>;
|
||||
|
||||
export type NormalisedAutomationBlueprint = Record<BlueprintId, AutomationBlueprint>;
|
||||
export type NormalisedAutomation = Record<AutomationId, Automation>;
|
||||
|
||||
export type Automation = {
|
||||
export type Trigger = {
|
||||
id: string;
|
||||
title: string;
|
||||
trigger: TimerLifeCycle;
|
||||
blueprintId: BlueprintId;
|
||||
automationId: AutomationId;
|
||||
};
|
||||
|
||||
export type AutomationDTO = Omit<Automation, 'id'>;
|
||||
export type TriggerDTO = Omit<Trigger, 'id'>;
|
||||
|
||||
export type AutomationFilter = {
|
||||
field: string; // this should be a key of a OntimeEvent + custom fields
|
||||
|
||||
@@ -18,17 +18,17 @@ export { TimerType } from './definitions/TimerType.type.js';
|
||||
|
||||
// ---> Automations
|
||||
export type {
|
||||
AutomationSettings,
|
||||
AutomationBlueprint,
|
||||
AutomationBlueprintDTO,
|
||||
Automation,
|
||||
AutomationDTO,
|
||||
AutomationFilter,
|
||||
AutomationSettings,
|
||||
AutomationOutput,
|
||||
FilterRule,
|
||||
HTTPOutput,
|
||||
NormalisedAutomationBlueprint,
|
||||
NormalisedAutomation,
|
||||
OSCOutput,
|
||||
Trigger,
|
||||
TriggerDTO,
|
||||
} from './definitions/core/Automation.type.js';
|
||||
|
||||
// ---> Project Data
|
||||
|
||||
Reference in New Issue
Block a user