"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidJobType = exports.isValidJobState = exports.jobStates = void 0;
const misc_1 = require("./misc");
const job_queue_1 = require("../../lib/job-queue/job-queue");
const jobStates = ['active', 'completed', 'failed', 'waiting', 'delayed', 'paused', 'waiting-children'];
exports.jobStates = jobStates;
function isValidJobState(value) {
    return (0, misc_1.exists)(value) && jobStates.includes(value);
}
exports.isValidJobState = isValidJobState;
function isValidJobType(value) {
    return (0, misc_1.exists)(value) && job_queue_1.jobTypes.includes(value);
}
exports.isValidJobType = isValidJobType;
//# sourceMappingURL=jobs.js.map