Skip to content

ConditionJSON

ConditionJSON = ConditionLeaf | ConditionCombinator | ConditionFn | string

Defined in: src/types/ICondition.ts:45

A declarative condition attached to a grant. May be:

  • a comparison leaf ([lhs, op, rhs]),
  • a combinator object ({ and | or | not }),
  • a custom-fn reference ({ fn, args }),
  • or the string sugar form (e.g. '$.order.value > 100000', or '$.now during "T0900:1800 E1:5"' for a temporal schedule) which compiles to the canonical JSON above.