"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConditionType = exports.ConditionFormula = exports.operations = exports.gtQqRelations = exports.ltEqRelations = exports.eqRelations = exports.ConditionTypeEnum = void 0;
var ConditionTypeEnum;
(function (ConditionTypeEnum) {
    ConditionTypeEnum[ConditionTypeEnum["empty"] = 0] = "empty";
    ConditionTypeEnum[ConditionTypeEnum["and"] = 1] = "and";
    ConditionTypeEnum[ConditionTypeEnum["or"] = 2] = "or";
})(ConditionTypeEnum = exports.ConditionTypeEnum || (exports.ConditionTypeEnum = {}));
exports.eqRelations = { value: 'eq', desc: 'equals' };
exports.ltEqRelations = { value: 'lt_eq', desc: 'less than or equal to' };
exports.gtQqRelations = { value: 'gt_eq', desc: 'greater than or equal to' };
exports.operations = [
    { key: 1, value: 'and' },
    { key: 2, value: 'or' },
];
const ConditionType = Object.freeze(['and', 'or']);
exports.ConditionType = ConditionType;
const ConditionFormula = Object.freeze([
    { value: 'eq', label: 'equals' },
    { value: 'ct', label: 'contains' },
    { value: 'sw', label: 'start with' },
    { value: 'ew', label: 'end with' },
    { value: 'regex', label: 'matches RegEx' },
    { value: 'regex_uncase', label: 'matches RegEx (ignore case)' },
    { value: 'un_eq', label: 'does not equal' },
    { value: 'un_ct', label: 'does not contain' },
    { value: 'un_sw', label: 'does not start with' },
    { value: 'un_ew', label: 'does not end with' },
    { value: 'un_regex', label: 'does not matches RegEx' },
    { value: 'un_regex_uncase', label: 'does not matches RegEx(ignore case)' },
    { value: 'lt', label: 'less than' },
    { value: 'lt_eq', label: 'less than or equal to' },
    { value: 'gt', label: 'greater than' },
    { value: 'gt_eq', label: 'greater than or equal to' },
    { value: 'in_array', label: 'in array' },
    { value: 'un_in_array', label: 'not in array' },
]);
exports.ConditionFormula = ConditionFormula;
