(filters = {}, mapping = {})
| 533 | }, |
| 534 | |
| 535 | toPayload(filters = {}, mapping = {}) { |
| 536 | const normalized = this.normalize(filters); |
| 537 | const payload = {}; |
| 538 | Object.entries(normalized).forEach(([key, value]) => { |
| 539 | const targetKey = String(mapping[key] || key); |
| 540 | if (!targetKey) return; |
| 541 | payload[targetKey] = value; |
| 542 | }); |
| 543 | return payload; |
| 544 | }, |
| 545 | |
| 546 | pickSort(value, allowed = [], fallback = '') { |
| 547 | const candidate = String(value || '').trim(); |
nothing calls this directly
no outgoing calls
no test coverage detected