Member Junction
    Preparing search index...

    Base class for all form builder-related actions. Provides common functionality and patterns for interacting with form/survey platforms.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    formPlatform: string

    The form platform this action is designed for (e.g., 'Typeform', 'Google Forms', etc.)

    integrationName: string

    The integration name to look up in the Integration entity

    Methods

    • Helper to build consistent error messages for form operations

      Parameters

      • operation: string
      • details: string
      • OptionalsystemError: any

      Returns string

    • Gets credentials from environment variables Format: BIZAPPS_{PROVIDER}{COMPANY_ID}{CREDENTIAL_TYPE} Example: BIZAPPS_TYPEFORM_12345_API_TOKEN

      Falls back to: BIZAPPS_{PROVIDER}_{CREDENTIAL_TYPE} if no company-specific credential found Example fallback: BIZAPPS_TYPEFORM_API_TOKEN

      Parameters

      • companyId: string
      • credentialType: string

      Returns string

    • Helper to securely retrieve API token for a company. This method should be used by all form builder actions instead of accepting tokens as parameters.

      Parameters

      • companyId: string

        The MemberJunction company ID (required)

      • contextUser: UserInfo

        The user context for database queries

      Returns Promise<string>

      The API token for the specified company

      Error if no credentials are found or company integration is not configured