feat(types,utils): added promotion create with rules and application target rules (#5957)

* feat(types,utils): added promotion create with rules

* chore: add rules to promotion and application method

* chore: use common code for rule and values

* chore: address pr reviews

* chore: fix test
This commit is contained in:
Riqwan Thamir
2024-01-03 09:54:48 +01:00
committed by GitHub
parent d16d10619d
commit 42cc8ae3f8
33 changed files with 1560 additions and 122 deletions
+10
View File
@@ -18,3 +18,13 @@ export enum ApplicationMethodAllocation {
EACH = "each",
ACROSS = "across",
}
export enum PromotionRuleOperator {
GTE = "gte",
LTE = "lte",
GT = "gt",
LT = "lt",
EQ = "eq",
NE = "ne",
IN = "in",
}