Thermal valve of superconductor heterostructures with different pairing types