Skip to main content

Interface: BusinessRuleDateExpression

Defined in: type/BusinessRuleDateExpression.ts:6

Represents a business rule date expression

Properties

date?

optional date?: string

Defined in: type/BusinessRuleDateExpression.ts:14

Use when operator is before or after.


id

id: string | number

Defined in: type/BusinessRuleDateExpression.ts:8

id field


number?

optional number?: number

Defined in: type/BusinessRuleDateExpression.ts:12

Use when operator calculates days or minutes from now or today, or when targeting specific days, weeks or months


operator

operator: BusinessRuleDateExpressionOperators

Defined in: type/BusinessRuleDateExpression.ts:18

operator field


path?

optional path?: string

Defined in: type/BusinessRuleDateExpression.ts:25

Path to the field, can be used to add additional expressions and calulations on the field. Use $ to target the field's value. When omitted the field's value is used. The expression will be used on the left hand side of the operator. Can also be used to target a specific property in a complex expression's sub-expression Check https://gorules.io/docs/rules-engine/expression-language/date-and-time for options.


string?

optional string?: string

Defined in: type/BusinessRuleDateExpression.ts:16

Use on time based operators, 00:00:00 24h format.


type

type: BusinessRuleExpressionTypes

Defined in: type/BusinessRuleDateExpression.ts:10

type field