agrs-sequelize-sdk 1.3.0 → 1.3.1

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.
@@ -83,37 +83,49 @@ module.exports = (sequelize, DataTypes) => {
83
83
  allowNull: true,
84
84
  comment: "User who created this rule",
85
85
  },
86
- updatedBy: {
87
- type: DataTypes.STRING(255),
88
- allowNull: true,
89
- comment: "User who last updated this rule",
90
- },
91
- mediaBuyer: {
92
- type: DataTypes.STRING(255),
93
- allowNull: true,
94
- comment: "Media buyer assigned to this rule for permissions",
95
- },
96
- dateRangeType: {
97
- type: DataTypes.ENUM("LAST_N_DAYS", "CUSTOM_RANGE", "CURRENT_MONTH", "LAST_MONTH"),
98
- allowNull: true,
99
- defaultValue: "LAST_N_DAYS",
100
- comment: "Type of date range for rule evaluation",
101
- },
102
- dateRangeValue: {
103
- type: DataTypes.INTEGER,
104
- allowNull: true,
105
- defaultValue: 7,
106
- comment: "Number of days for LAST_N_DAYS type",
107
- },
108
- customStartDate: {
109
- type: DataTypes.DATEONLY,
86
+ updatedBy: {
87
+ type: DataTypes.STRING(255),
88
+ allowNull: true,
89
+ comment: "User who last updated this rule",
90
+ },
91
+ mediaBuyer: {
92
+ type: DataTypes.STRING(255),
93
+ allowNull: true,
94
+ comment: "Media buyer assigned to this rule for permissions",
95
+ },
96
+ dateRangeType: {
97
+ type: DataTypes.ENUM("LAST_N_DAYS", "CUSTOM_RANGE"),
98
+ allowNull: true,
99
+ defaultValue: "LAST_N_DAYS",
100
+ comment: "Type of date range for rule evaluation",
101
+ },
102
+ dateRangeValue: {
103
+ type: DataTypes.INTEGER,
104
+ allowNull: true,
105
+ defaultValue: 7,
106
+ comment: "Number of days for LAST_N_DAYS type",
107
+ },
108
+ customStartDate: {
109
+ type: DataTypes.DATEONLY,
110
+ allowNull: true,
111
+ comment: "Custom start date for CUSTOM_RANGE type",
112
+ },
113
+ customEndDate: {
114
+ type: DataTypes.DATEONLY,
115
+ allowNull: true,
116
+ comment: "Custom end date for CUSTOM_RANGE type",
117
+ },
118
+ allowedAccounts: {
119
+ type: DataTypes.ARRAY(DataTypes.STRING),
110
120
  allowNull: true,
111
- comment: "Custom start date for CUSTOM_RANGE type",
121
+ defaultValue: [],
122
+ comment: "Array of account IDs that this rule can run on",
112
123
  },
113
- customEndDate: {
114
- type: DataTypes.DATEONLY,
124
+ allowedMediaBuyers: {
125
+ type: DataTypes.ARRAY(DataTypes.STRING),
115
126
  allowNull: true,
116
- comment: "Custom end date for CUSTOM_RANGE type",
127
+ defaultValue: [],
128
+ comment: "Array of media buyer codes that this rule can be assigned to",
117
129
  },
118
130
  },
119
131
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",