export class ValidationService {
    state;
    constructor(state) {
        this.state = state;
    }
    list(runId, status) {
        return this.state.listValidationGates({ runId, status }, 50);
    }
    record(input) {
        return this.state.createValidationGate(input);
    }
    passed(runId) {
        return this.list(runId, "passed").length;
    }
    failed(runId) {
        return this.list(runId, "failed").length;
    }
}
