import { tallyTriggerDefinitions } from "@automate.ax/catalog/triggers/tally" import type { IntegrationAccountReference } from "../../automation/integrations" import { createTrigger } from "../../automation/create-trigger" /** Selects the Tally account and form watched by a managed webhook. */ export interface TallyFormTriggerOptions { account?: string | IntegrationAccountReference<"tally"> formId: string } export const onTallyFormEvent = createTrigger( tallyTriggerDefinitions.tallyFormEvent, ) export const onTallyFormResponse = createTrigger( tallyTriggerDefinitions.tallyFormResponse, )