Hierarchy

Constructors

  • Sets the controllerName to 'Reports'.

    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 HealthRiskAssessmentService

Properties

axios: AxiosInstance

The axios instance used by this service.

getComparison: ((traversalId: string, compareTraversalId: string, riskAtAge: number) => Promise<AxiosResponse<any>>)

Type declaration

getHealthRisk: ((traversalId: string, ages: number[], conclusions: number[]) => Promise<AxiosResponse<any>>)

Type declaration

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

Type declaration

getWellness: ((traversalId: string, conclusions: number[]) => 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