Skip to Content

The RuleConditionOption1 type of the TypeScript SDK, part of RuleCondition.

type RuleConditionOption1 = {
  field: ('from' | 'to' | 'cc' | 'toOrCc')
  not?: boolean
  op: ('contains' | 'is' | 'matches' | 'regex' | 'exists')
  value?: string
}

Fields

FieldTypeDescription
field('from' | 'to' | 'cc' | 'toOrCc')
notbooleanOptional. Invert this condition @default false
op('contains' | 'is' | 'matches' | 'regex' | 'exists')
valuestringOptional.

Used in

RuleCondition.

On this page