import { defineAccount } from "../../automation/integrations" import * as activities from "./activity-actions" import * as metadata from "./metadata-actions" import * as objects from "./object-actions" import * as triggers from "./triggers" /** Declares a named HubSpot account binding for an automation. */ export const hubspotAccount = defineAccount("hubspot") /** HubSpot CRM callables. */ export const hubspot = { archiveCompany: objects.archiveHubSpotCompany, archiveContact: objects.archiveHubSpotContact, archiveDeal: objects.archiveHubSpotDeal, archiveTicket: objects.archiveHubSpotTicket, associateCompany: metadata.associateHubSpotCompany, associateContact: metadata.associateHubSpotContact, associateDeal: metadata.associateHubSpotDeal, associateTicket: metadata.associateHubSpotTicket, createCompany: objects.createHubSpotCompany, createContact: objects.createHubSpotContact, createDeal: objects.createHubSpotDeal, createMeeting: activities.createHubSpotMeeting, createNote: activities.createHubSpotNote, createTask: activities.createHubSpotTask, createTicket: objects.createHubSpotTicket, getCompany: objects.getHubSpotCompany, getContact: objects.getHubSpotContact, getDeal: objects.getHubSpotDeal, getOwner: metadata.getHubSpotOwner, getTicket: objects.getHubSpotTicket, listAssociationLabels: metadata.listHubSpotAssociationLabels, listCompanies: objects.listHubSpotCompanies, listContacts: objects.listHubSpotContacts, listDeals: objects.listHubSpotDeals, listOwners: metadata.listHubSpotOwners, listPipelines: metadata.listHubSpotPipelines, listProperties: metadata.listHubSpotProperties, listTickets: objects.listHubSpotTickets, logCall: activities.logHubSpotCall, logEmail: activities.logHubSpotEmail, onCompanyAssociationAdded: triggers.onHubSpotCompanyAssociationAdded, onCompanyAssociationRemoved: triggers.onHubSpotCompanyAssociationRemoved, onCompanyCreated: triggers.onHubSpotCompanyCreated, onCompanyDeleted: triggers.onHubSpotCompanyDeleted, onCompanyMerged: triggers.onHubSpotCompanyMerged, onCompanyRestored: triggers.onHubSpotCompanyRestored, onCompanyUpdated: triggers.onHubSpotCompanyUpdated, onContactAssociationAdded: triggers.onHubSpotContactAssociationAdded, onContactAssociationRemoved: triggers.onHubSpotContactAssociationRemoved, onContactCreated: triggers.onHubSpotContactCreated, onContactDeleted: triggers.onHubSpotContactDeleted, onContactMerged: triggers.onHubSpotContactMerged, onContactRestored: triggers.onHubSpotContactRestored, onContactUpdated: triggers.onHubSpotContactUpdated, onCrmEvent: triggers.onHubSpotCrmEvent, onDealAssociationAdded: triggers.onHubSpotDealAssociationAdded, onDealAssociationRemoved: triggers.onHubSpotDealAssociationRemoved, onDealCreated: triggers.onHubSpotDealCreated, onDealDeleted: triggers.onHubSpotDealDeleted, onDealMerged: triggers.onHubSpotDealMerged, onDealRestored: triggers.onHubSpotDealRestored, onDealUpdated: triggers.onHubSpotDealUpdated, onTicketAssociationAdded: triggers.onHubSpotTicketAssociationAdded, onTicketAssociationRemoved: triggers.onHubSpotTicketAssociationRemoved, onTicketCreated: triggers.onHubSpotTicketCreated, onTicketDeleted: triggers.onHubSpotTicketDeleted, onTicketMerged: triggers.onHubSpotTicketMerged, onTicketRestored: triggers.onHubSpotTicketRestored, onTicketUpdated: triggers.onHubSpotTicketUpdated, removeCompanyAssociation: metadata.removeHubSpotCompanyAssociation, removeContactAssociation: metadata.removeHubSpotContactAssociation, removeDealAssociation: metadata.removeHubSpotDealAssociation, removeTicketAssociation: metadata.removeHubSpotTicketAssociation, searchCompanies: objects.searchHubSpotCompanies, searchContacts: objects.searchHubSpotContacts, searchDeals: objects.searchHubSpotDeals, searchTickets: objects.searchHubSpotTickets, updateCompany: objects.updateHubSpotCompany, updateContact: objects.updateHubSpotContact, updateDeal: objects.updateHubSpotDeal, updateTicket: objects.updateHubSpotTicket, upsertContacts: objects.upsertHubSpotContacts, } export * from "./activity-actions" export * from "./metadata-actions" export * from "./object-actions" export * from "./triggers" export * from "@automate.ax/integration-contracts/hubspot"