Heegaard Floer invariants in codimension one