{"version":3,"file":"mongrule.mjs","names":[],"sources":["../../../src/types/mongrule.ts"],"sourcesContent":["type OrCondition = {\n  $or: ConditionInterface[];\n};\ntype NorCondition = {\n  $nor: ConditionInterface[];\n};\ntype AndCondition = {\n  $and: ConditionInterface[];\n};\ntype NotCondition = {\n  $not: ConditionInterface;\n};\nexport type Operator =\n  | \"$in\"\n  | \"$ini\"\n  | \"$inGroup\"\n  | \"$nin\"\n  | \"$nini\"\n  | \"$notInGroup\"\n  | \"$gt\"\n  | \"$gte\"\n  | \"$lt\"\n  | \"$lte\"\n  | \"$regex\"\n  | \"$regexi\"\n  | \"$ne\"\n  | \"$eq\"\n  | \"$size\"\n  | \"$elemMatch\"\n  | \"$all\"\n  | \"$alli\"\n  | \"$not\"\n  | \"$type\"\n  | \"$exists\"\n  | \"$vgt\"\n  | \"$vgte\"\n  | \"$vlt\"\n  | \"$vlte\"\n  | \"$vne\"\n  | \"$veq\";\nexport type VarType =\n  | \"string\"\n  | \"number\"\n  | \"boolean\"\n  | \"array\"\n  | \"object\"\n  | \"null\"\n  | \"undefined\";\nexport type OperatorConditionValue = {\n  $in?: (string | number)[];\n  $ini?: (string | number)[];\n  $inGroup?: string;\n  $nin?: (string | number)[];\n  $nini?: (string | number)[];\n  $notInGroup?: string;\n  $gt?: number | string;\n  $gte?: number | string;\n  $lt?: number | string;\n  $lte?: number | string;\n  $regex?: string;\n  $regexi?: string;\n  $ne?: number | string;\n  $eq?: number | string;\n  $exists?: boolean;\n  $all?: ConditionValue[];\n  $alli?: ConditionValue[];\n  $size?: number | ConditionValue;\n  $type?: VarType;\n  $elemMatch?: ConditionInterface | OperatorConditionValue;\n  $not?: ConditionValue;\n};\n\nexport type ConditionValue =\n  | OperatorConditionValue\n  | string\n  | number\n  | boolean\n  // eslint-disable-next-line\n  | Array<any>\n  // eslint-disable-next-line\n  | Record<string, any>\n  | null;\n\nexport type OperatorCondition = {\n  [key: string]: ConditionValue;\n};\n\nexport type ConditionInterface =\n  | OrCondition\n  | NorCondition\n  | AndCondition\n  | NotCondition\n  | OperatorCondition;\n\nexport type ParentConditionInterface = {\n  id: string;\n  condition: ConditionInterface;\n  gate?: boolean;\n};\n\n// eslint-disable-next-line\nexport type TestedObj = Record<string, any>;\n"],"mappings":"","ignoreList":[]}