Kaizen
Browse modulesRulesrules/sharedTypes

Type Alias: PriceThresholdConfig

type PriceThresholdConfig = ZodObject<{
  condition_type: ZodLiteral<"PRICE_THRESHOLD">;
  operator: ZodUnion<readonly [ZodEnum<{
     gt: "gt";
     gte: "gte";
     lt: "lt";
     lte: "lte";
   }>, ZodEnum<{
     eq: "eq";
     neq: "neq";
  }>]>;
  price_field: ZodString;
  value: ZodNumber;
}, $strip>;

Defined in: shared/rules/types/conditions.ts:234

Compare the number at price_field against value using operator (a numeric or equality operator). Narrower than FIELD_COMPARISON: only number-to-number comparisons are valid.