Hierarchy

Constructors

  • Sets the controllerName to 'Traversals'.

    Parameters

    • baseURL: string

      The service's base URL

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

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

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

    Returns TraversalsService

Properties

axios: AxiosInstance

The axios instance used by this service.

create: ((body: TraversalsBaseCreate) => Promise<AxiosResponse<TraversalsResponse>>)

Type declaration

get: ((traversalId: string) => Promise<AxiosResponse<TraversalsResponse>>)

Type declaration

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

previous: ((traversalId: string) => Promise<AxiosResponse<TraversalsResponse>>)

Type declaration

respond: ((traversalId: string, body: TraversalsBaseRespond[]) => Promise<AxiosResponse<TraversalsResponse>>)

Type declaration

revisit: ((traversalId: string, body: undefined | TraversalsBaseRevisit) => Promise<AxiosResponse<TraversalsResponse>>)

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