feat(automation): create global triggers with automations

This commit is contained in:
Carlos Valente
2026-09-11 19:56:42 +02:00
parent 123692827c
commit 4601770d1d
8 changed files with 203 additions and 25 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,