import { AKListFilter } from './index.js';
export class AKSingleFieldListFilter extends AKListFilter {
    field;
    operator;
    constructor(field, operator) {
        super();
        this.field = field;
        this.operator = operator;
    }
    matches(qsFilters) {
        return Object.hasOwn(qsFilters, this.field);
    }
    apply(dbQuery, qsFilters, model) {
        this.operator(dbQuery, this.field, qsFilters[this.field], model);
    }
    clear(qsFilters) {
        delete qsFilters[this.field];
    }
}
//# sourceMappingURL=single_field.js.map