agrs-sequelize-sdk 1.2.78 → 1.2.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,21 +23,27 @@ module.exports = (sequelize) => {
23
23
  allowNull: false,
24
24
  comment: "Field to evaluate (e.g., roi, ctr, campaign_name)",
25
25
  },
26
+ type: {
27
+ type: DataTypes.ENUM("DIMENSION", "METRIC"),
28
+ allowNull: false,
29
+ defaultValue: "DIMENSION",
30
+ comment: "Type of field - DIMENSION for filtering, METRIC for calculations",
31
+ },
26
32
  operator: {
27
33
  type: DataTypes.ENUM(
28
- "eq",
29
- "ne",
30
- "gt",
31
- "lt",
32
- "gte",
33
- "lte",
34
- "between",
35
- "in",
36
- "not_in",
37
- "contains",
38
- "not_contains",
39
- "is_null",
40
- "is_not_null"
34
+ "EQUALS",
35
+ "NOT_EQUALS",
36
+ "GREATER_THAN",
37
+ "LESS_THAN",
38
+ "GREATER_THAN_OR_EQUAL",
39
+ "LESS_THAN_OR_EQUAL",
40
+ "BETWEEN",
41
+ "IN",
42
+ "NOT_IN",
43
+ "CONTAINS",
44
+ "NOT_CONTAINS",
45
+ "IS_NULL",
46
+ "IS_NOT_NULL"
41
47
  ),
42
48
  allowNull: false,
43
49
  comment: "Comparison operator",
@@ -77,6 +77,11 @@ module.exports = (sequelize) => {
77
77
  allowNull: true,
78
78
  comment: "Detailed execution results and logs",
79
79
  },
80
+ matchedItems: {
81
+ type: DataTypes.JSONB,
82
+ allowNull: true,
83
+ comment: "List of items that matched the rule conditions and had actions applied",
84
+ },
80
85
  triggeredBy: {
81
86
  type: DataTypes.STRING(255),
82
87
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.2.78",
3
+ "version": "1.2.79",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",