Build a filter spec from conditions joined by ~and~, quoting each value. Unlike
string interpolation (Ort~eq~'${input}'), a value can't add conditions: one with a
~ (the register's separator, which has no escape) throws MastrValidationError, so
Münster'~and~Energieträger~eq~'2497 is refused instead of becoming a second
condition.
Build a filter spec from conditions joined by
~and~, quoting each value. Unlike string interpolation (Ort~eq~'${input}'), a value can't add conditions: one with a~(the register's separator, which has no escape) throwsMastrValidationError, soMünster'~and~Energieträger~eq~'2497is refused instead of becoming a second condition.buildFilter([{ name: "Ort", op: "eq", value: "Münster" }, { name: "Energieträger", op: "eq", value: ["2497", "2498"] }]) // → "Ort~eq~'Münster'~and~Energieträger~eq~'2497,2498'"