Options
All
  • Public
  • Public/Protected
  • All
Menu

A base class for the Traversals and ChatTraversals controllers. These Services have common endpoints.

Hierarchy

Index

Constructors

constructor

  • new TraversalsBaseService(baseURL: string, controllerName: string, tokenFactory?: undefined | (() => Promise<string | null>)): TraversalsBaseService
  • Parameters

    • baseURL: string

      The service's [[baseURL]] including the trailing /

    • controllerName: string

      The service's [[controllerName]]

    • Optional tokenFactory: undefined | (() => Promise<string | null>)

      Optional factory to set axios instance's token before http calls.'

    Returns TraversalsBaseService

Properties

Protected axios

axios: AxiosInstance

The axios instance used by this service.

Methods

getConclusionReport

  • getConclusionReport(traversalId: string): Promise<AxiosResponse<any>>

getConclusions

  • getConclusions(traversalId: string): Promise<AxiosResponse<any>>

getHistoryLines

  • getHistoryLines(traversalId: string): Promise<AxiosResponse<any>>

getQuestions

  • getQuestions(traversalId: string): Promise<AxiosResponse<any>>

getSummary

  • getSummary(traversalId: string): Promise<AxiosResponse<any>>

getTrackfile

  • getTrackfile(traversalId: string): Promise<AxiosResponse<any>>

setBaseUrl

  • setBaseUrl(baseURL: string): void

setToken

  • setToken(token: string | null): void
  • Set the token to use in the service's axios instance

    Parameters

    • token: string | null

      Bearer token or null.

    Returns void