import { API } from '../core/api' ; import { Versions , Summary } from '../models' ; extends API export default class Utils extends API { returns async version ( ) { const response = await this . sendGet ( '../../' ) ; return response . json ( ) as Promise < Versions > ; } returns async summary ( ) { const response = await this . sendGet ( 'summary' ) ; return response . json ( ) as Promise < Summary > ; } param id returns async ping ( id ) { const response = await this . sendGet ( 'ping' , [ id ] ) ; return response . text ( ) ; } returns async online ( ) { const response = await this . sendGet ( '../../health' ) ; return response . status === 204 ; } }