Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Methods

  • delete(analysisID: string): Promise<string>
  • downloadScript(analysisID: string, options?: { version?: number }): Promise<{ expire_at: Date; size: number; size_unit: string; url: string }>
  • Get a url to download the analysis. If version is specified in options, downloads a specific version.

    Parameters

    • analysisID: string

      Analysis identification

    • Optional options: { version?: number }

      Options for the Analysis script to download

      • Optional version?: number

    Returns Promise<{ expire_at: Date; size: number; size_unit: string; url: string }>

  • Retrieves a list with all analyses from the account

    default

    json queryObj: { page: 1, fields: ["id", "name"], filter: {}, amount: 20, orderBy: "name,asc", } json

    Parameters

    Returns Promise<AnalysisInfo[]>

  • run(analysisID: string, scopeObj?: any): Promise<{ analysis_token: string }>
  • Force analyze to run

    Parameters

    • analysisID: string

      Analyze identification

    • Optional scopeObj: any

      simulate scope for analysis

    Returns Promise<{ analysis_token: string }>

  • tokenGenerate(analysisID: string): Promise<string>
  • uploadScript(analysisID: string, fileObj: ScriptFile): Promise<string>
  • Upload a file (base64) to Analysis. Automatically erase the old one

    Parameters

    • analysisID: string

      Analyze identification

    • fileObj: ScriptFile

      Object with name, language and content of the file

    Returns Promise<string>