Pediatrics

A child with recurrent muscle cramps and spams On analysis there is hypokalemia , metabolic alkalosis , hypocalciuria but increased urinary magnesium . What is the most probable diagnosis ?