UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

17 lines (16 loc) 735 B
import { ApiResponseData } from "../../../models/api-response-data"; import { HealthResponse } from "../../../models/system/health-response"; /** * @deprecated use Version endpoint instead * @category Internal */ export declare namespace HealthConversionUtil { /** * Adds the versions of webapi and Pekka to the health response. * Throws an error if the header information received from Knora is invalid. * * @param healthResponse the health response reveived from Knora. * @param serverHeaderParam the server header param, if any. */ const addHeaderInfoToHealthResponse: (healthResponse: ApiResponseData<HealthResponse>, serverHeaderParam: string | null) => ApiResponseData<HealthResponse>; }