AbstractProtected AbstractcrmThe CRM provider this action is designed for (e.g., 'HubSpot', 'Salesforce', etc.)
Protected AbstractintegrationThe integration name to look up in the Integration entity
ProtectedbuildHelper to build consistent error messages for CRM operations
OptionalsystemError: anyProtectedformatStandard date format for CRM systems (ISO 8601)
ProtectedformatFormat phone numbers to E.164 format if possible
ProtectedgetGets the base URL for API calls
ProtectedgetGets API credentials - first tries environment variables, then falls back to database
ProtectedgetCommon CRM parameters that many actions will need
ProtectedgetGets the company integration record for the specified company and CRM
ProtectedgetGets credentials from environment variables Format: BIZAPPS_{PROVIDER}{COMPANY_ID}{CREDENTIAL_TYPE} Example: BIZAPPS_HUBSPOT_12345_API_KEY
ProtectedgetHelper to get parameter value with type safety
Protected AbstractInternalInternal method that must be implemented by derived action classes. This is where the actual action logic should be implemented.
The action execution parameters including typed context
Promise resolving to the action result
ProtectedisValidate email format
ProtectedmapCommon activity types mapping
ProtectedmapMap deal/opportunity stages to common statuses
ProtectedparseParse date from CRM format
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Base class for all CRM-related actions. Provides common functionality and patterns for interacting with Customer Relationship Management systems.