feat(automation): persist lifecycle triggers atomically

Create and edit automation lifecycle bindings in the same settings save, and validate template-aware OSC and HTTP outputs consistently.
This commit is contained in:
Carlos Valente
2026-09-12 16:47:45 +02:00
parent 1175b3c641
commit 90217108d6
12 changed files with 321 additions and 71 deletions
@@ -33,6 +33,9 @@ export type Trigger = {
export type TriggerDTO = Omit<Trigger, 'id'>;
/** A global trigger whose automation ID is assigned during automation creation. */
export type AutomationTriggerDTO = Omit<TriggerDTO, 'automationId'>;
export type AutomationFilter = {
field: string; // this should be a key of a OntimeEvent + custom fields
operator: 'equals' | 'not_equals' | 'greater_than' | 'less_than' | 'contains' | 'not_contains';
+1
View File
@@ -34,6 +34,7 @@ export type {
AutomationDTO,
AutomationFilter,
AutomationSettings,
AutomationTriggerDTO,
AutomationOutput,
FilterRule,
HTTPOutput,