mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-12 01:29:35 +00:00
feat(automation): create global triggers with automations
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -34,6 +34,7 @@ export type {
|
||||
AutomationDTO,
|
||||
AutomationFilter,
|
||||
AutomationSettings,
|
||||
AutomationTriggerDTO,
|
||||
AutomationOutput,
|
||||
FilterRule,
|
||||
HTTPOutput,
|
||||
|
||||
Reference in New Issue
Block a user