Documentation
    Preparing search index...

    A class that contains methods for interacting with the Amplify API

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ctx

    Accessors

    • set errorFunction(error: (errors: string[] | number[] | object[]) => void): void

      Parameters

      • error: (errors: string[] | number[] | object[]) => void

      Returns void

    Methods

    • Parameters

      • path: string
      • handleError: (errors: string[] | number[] | object[]) => void = ...
          • (errors: string[] | number[] | object[]): void
            • Protected Members **

            Parameters

            • errors: string[] | number[] | object[]

            Returns void

      Returns Promise<boolean>

    • Executes a lambda function

      Parameters

      • functionName: string

        The name of the lambda function to execute

      • functionArgs: any

        The arguments to pass to the lambda function

      Returns Promise<{ logs: string; result: string }>

      • The API response or error
    • Get all the parameters for a lambda function

      Parameters

      • functionName: string

        The name of the lambda function to execute

      Returns Promise<{ logs: string; result: string }>

      this.executeLambda

    • Parameters

      • path: string
      • handleError: (errors: string[] | number[] | object[]) => void = ...
          • (errors: string[] | number[] | object[]): void
            • Protected Members **

            Parameters

            • errors: string[] | number[] | object[]

            Returns void

      Returns Promise<string>

    • Check if the full data for a run is available. Note that most browsers will show a 403 error in the console if the data is not available.

      Parameters

      • runID: number

        The ID of the run to check

      Returns Promise<boolean>

      true if the full data is available, false otherwise

    • Parameters

      • path: string
      • handleError: (errors: string[] | number[] | object[]) => void = ...
          • (errors: string[] | number[] | object[]): void
            • Protected Members **

            Parameters

            • errors: string[] | number[] | object[]

            Returns void

      Returns Promise<string>

    • Load the full data for a run from S3

      Parameters

      • url: string

        The URL of the full data

      • completion: (m: (string | number | boolean)[][]) => void

        The completion handler

      Returns Promise<void>

      use the completion handler and this.#fullRunData