import { API } from '../core/api' ; extends API export default class Config extends API { param path returns async get ( path ? ) { const cleanPath = path ? `/${ path . replace ( /\./g , '/' ) }` : '' ; const response = await this . sendGet ( `config${ cleanPath }` ) ; return response . json ( ) as Promise < object | string > ; } param path param value returns async set ( path , value ) { const cleanPath = `/${ path . replace ( /\./g , '/' ) }` ; const patch = [ { op : 'replace' , path : cleanPath , value } ] ; const response = await this . sendPatch ( `config` , undefined , undefined , patch ) ; return response . status === 204 ; } }