fix: automações (gatilhos, histórico) e chat desktop
This commit is contained in:
parent
8ab510bfe9
commit
e4d0c95791
7 changed files with 670 additions and 53 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue