Artifact quality: what does it affect?

I was wondering: does artifact quality affect “Afflict debuff…” and “Gain buff…” enchantments’ probability? Or does it only affect stat boost?

only stats, including mana