Member Junction
    Preparing search index...

    Base class for all JotForm actions. Handles JotForm-specific authentication and API interaction patterns.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • Create a new submission

      Parameters

      • formId: string
      • apiKey: string
      • submissionData: Record<string, any>
      • Optionalregion: "us" | "eu" | "hipaa"

      Returns Promise<any>

    • Get all submissions with automatic pagination

      Parameters

      • formId: string
      • apiKey: string
      • Optionaloptions: {
            filter?: Record<string, string>;
            maxSubmissions?: number;
            orderby?: string;
            region?: "us" | "eu" | "hipaa";
        }

      Returns Promise<JotFormSubmission[]>

    • 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

    • Get submissions from a JotForm

      Parameters

      • formId: string
      • apiKey: string
      • Optionaloptions: {
            filter?: Record<string, string>;
            limit?: number;
            offset?: number;
            orderby?: string;
            region?: "us" | "eu" | "hipaa";
        }

      Returns Promise<JotFormSubmissionsResult>

    • 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