It gained considerable institutional privileges between 1333 and 1370 during the reign of King Casimir III the Great