param { string } entityToRefresh returns { Promise . < void > } export async function RefreshEntity ( entityToRefresh ) { if ( ! entityToRefresh ) { return Promise . reject ( new Error ( "EntityToRefresh parameter is required" ) ) ; } return new Promise ( resolve => { mx . data . update ( { entity : entityToRefresh , callback : ( ) => resolve ( true ) } ) ; } ) ; }