import { defineAccount } from "../../automation/integrations" import * as actions from "./actions" import * as triggers from "./triggers" /** Declares a named Tally API-key binding for an automation. */ export const tallyAccount = defineAccount("tally") /** Named callable map keeps declaration emit on the exported callable types. */ type TallyCallables = { readonly cancelOrganizationInvite: typeof actions.cancelTallyOrganizationInvite readonly createFolder: typeof actions.createTallyFolder readonly createForm: typeof actions.createTallyForm readonly createOrganizationInvites: typeof actions.createTallyOrganizationInvites readonly createWebhook: typeof actions.createTallyWebhook readonly createWorkspace: typeof actions.createTallyWorkspace readonly deleteFolder: typeof actions.deleteTallyFolder readonly deleteForm: typeof actions.deleteTallyForm readonly deleteFormSubmission: typeof actions.deleteTallyFormSubmission readonly deleteWebhook: typeof actions.deleteTallyWebhook readonly deleteWorkspace: typeof actions.deleteTallyWorkspace readonly getCurrentUser: typeof actions.getTallyCurrentUser readonly getForm: typeof actions.getTallyForm readonly getFormDimensions: typeof actions.getTallyFormDimensions readonly getFormDropOff: typeof actions.getTallyFormDropOff readonly getFormMetrics: typeof actions.getTallyFormMetrics readonly getFormSubmission: typeof actions.getTallyFormSubmission readonly getFormSubmissionAnalytics: typeof actions.getTallyFormSubmissionAnalytics readonly getFormVisits: typeof actions.getTallyFormVisits readonly getWorkspace: typeof actions.getTallyWorkspace readonly listFolders: typeof actions.listTallyFolders readonly listFormQuestions: typeof actions.listTallyFormQuestions readonly listForms: typeof actions.listTallyForms readonly listFormSubmissions: typeof actions.listTallyFormSubmissions readonly listOrganizationInvites: typeof actions.listTallyOrganizationInvites readonly listOrganizationUsers: typeof actions.listTallyOrganizationUsers readonly listWebhookEvents: typeof actions.listTallyWebhookEvents readonly listWebhooks: typeof actions.listTallyWebhooks readonly listWorkspaces: typeof actions.listTallyWorkspaces readonly onFormEvent: typeof triggers.onTallyFormEvent readonly onFormResponse: typeof triggers.onTallyFormResponse readonly removeOrganizationUser: typeof actions.removeTallyOrganizationUser readonly retryWebhookEvent: typeof actions.retryTallyWebhookEvent readonly updateFolder: typeof actions.updateTallyFolder readonly updateForm: typeof actions.updateTallyForm readonly updateFormBlocks: typeof actions.updateTallyFormBlocks readonly updateWebhook: typeof actions.updateTallyWebhook readonly updateWorkspace: typeof actions.updateTallyWorkspace } /** Tally form, response, workspace, and webhook callables. */ export const tally: TallyCallables = { cancelOrganizationInvite: actions.cancelTallyOrganizationInvite, createFolder: actions.createTallyFolder, createForm: actions.createTallyForm, createOrganizationInvites: actions.createTallyOrganizationInvites, createWebhook: actions.createTallyWebhook, createWorkspace: actions.createTallyWorkspace, deleteFolder: actions.deleteTallyFolder, deleteForm: actions.deleteTallyForm, deleteFormSubmission: actions.deleteTallyFormSubmission, deleteWebhook: actions.deleteTallyWebhook, deleteWorkspace: actions.deleteTallyWorkspace, getCurrentUser: actions.getTallyCurrentUser, getForm: actions.getTallyForm, getFormDimensions: actions.getTallyFormDimensions, getFormDropOff: actions.getTallyFormDropOff, getFormMetrics: actions.getTallyFormMetrics, getFormSubmission: actions.getTallyFormSubmission, getFormSubmissionAnalytics: actions.getTallyFormSubmissionAnalytics, getFormVisits: actions.getTallyFormVisits, getWorkspace: actions.getTallyWorkspace, listFolders: actions.listTallyFolders, listFormQuestions: actions.listTallyFormQuestions, listForms: actions.listTallyForms, listFormSubmissions: actions.listTallyFormSubmissions, listOrganizationInvites: actions.listTallyOrganizationInvites, listOrganizationUsers: actions.listTallyOrganizationUsers, listWebhookEvents: actions.listTallyWebhookEvents, listWebhooks: actions.listTallyWebhooks, listWorkspaces: actions.listTallyWorkspaces, onFormEvent: triggers.onTallyFormEvent, onFormResponse: triggers.onTallyFormResponse, removeOrganizationUser: actions.removeTallyOrganizationUser, retryWebhookEvent: actions.retryTallyWebhookEvent, updateFolder: actions.updateTallyFolder, updateForm: actions.updateTallyForm, updateFormBlocks: actions.updateTallyFormBlocks, updateWebhook: actions.updateTallyWebhook, updateWorkspace: actions.updateTallyWorkspace, } export * from "./actions" export * from "./triggers" export * from "@automate.ax/integration-contracts/tally"