import type * as Extend from "../index"; export interface RuleValidationResultRulesItem { /** The name of the validation rule. */ name: string; /** Indicates whether this validation rule passed or not. This field will be `true` only if the formula evaluates to `true`. If the rule's formula is array valued, then this field will only be `true` if the formula evaluates to `true` for every item in the array. */ valid: boolean; /** Present if the validation rule's formula is array valued. This field contains the formula's evaluated result for every item in the array. */ validArray?: boolean[]; /** * If the validation rule is not valid, then this describes why the rule failed. * * `"RULE_FAILED"` - The formula evaluated to `false` or `null` * * `"PARSE_ERROR"` - The formula could not be parsed * * `"VALUE_ERROR"` - An error occurred while evaluating the formula */ failureReason?: Extend.RuleValidationResultRulesItemFailureReason; /** If the `failureReason` is `PARSE_ERROR` or `VALUE_ERROR`, then this field contains the error's details. */ error?: string; }