This commit is contained in:
ZacharyZhang-NY committed 2026-04-17 14:03:56 -04:00
1 parent 806200b3d1
commit 5547c29491
216 files changed
+5043 -3352

No files matched your search

+14
View File
@@ -15,3 +15,17 @@ export const DEPARTMENT_IDS = z.enum([
export const MESSAGE_CHANNELS = z.enum([
"direct", "department", "company", "project", "incident",
]);
/**
* Canonical automation trigger enum shared by `automationRuleInputSchema` and
* `workflowInputSchema`. Single source of truth: the TS `AutomationTrigger`
* alias in `types/enums.ts` derives from this enum.
*/
export const automationTriggerEnum = z.enum([
"task_status_changed", "task_created", "task_blocked", "task_reassigned",
"run_completed", "run_failed", "approval_created", "approval_resolved",
"budget_threshold", "agent_idle", "comment_posted", "document_created",
"schedule", "hire_approved", "sprint_started", "sprint_ended",
]);
export type AutomationTrigger = z.infer<typeof automationTriggerEnum>;