fix: automações (gatilhos, histórico) e chat desktop

This commit is contained in:
esdrasrenan 2025-12-13 11:26:42 -03:00
parent 8ab510bfe9
commit e4d0c95791
7 changed files with 670 additions and 53 deletions

View file

@ -1,6 +1,12 @@
import type { Doc } from "./_generated/dataModel"
export type AutomationTrigger = "TICKET_CREATED" | "STATUS_CHANGED" | "COMMENT_ADDED" | "TICKET_RESOLVED"
export type AutomationTrigger =
| "TICKET_CREATED"
| "STATUS_CHANGED"
| "PRIORITY_CHANGED"
| "QUEUE_CHANGED"
| "COMMENT_ADDED"
| "TICKET_RESOLVED"
export type AutomationConditionOperator = "AND" | "OR"
@ -130,4 +136,3 @@ export function evaluateAutomationConditions(
return op === "OR" ? results.some(Boolean) : results.every(Boolean)
}