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

Hierarchy

Constructors

  • Parameters

    • baseURL: string

      The service's base URL including the trailing /

    • controllerName: string

      The service's controllerName

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

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

        • (): Promise<null | string>
        • Returns Promise<null | string>

    Returns TraversalsBaseService

Properties

axios: AxiosInstance

The axios instance used by this service.

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

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

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

Type declaration

setBaseUrl: ((baseURL: string) => void)

Type declaration

setToken: ((token: null | string) => void)

Type declaration

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

      Parameters

      • token: null | string

        Bearer token or null.

      Returns void