agrs-sequelize-sdk 1.4.48 → 1.4.50

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.
package/models/Domain.js CHANGED
@@ -30,6 +30,11 @@ module.exports = (sequelize, DataTypes) => {
30
30
  type: DataTypes.STRING,
31
31
  allowNull: true,
32
32
  },
33
+ ws_code: {
34
+ type: DataTypes.STRING(32),
35
+ allowNull: true,
36
+ comment: "Mine redirect ws= parameter code for this publisher domain",
37
+ },
33
38
  },
34
39
  {
35
40
  tableName: "Domain",
@@ -0,0 +1,40 @@
1
+ module.exports = (sequelize, DataTypes) => {
2
+ const MineBrandBlocklist = sequelize.define(
3
+ "MineBrandBlocklist",
4
+ {
5
+ id: {
6
+ type: DataTypes.INTEGER,
7
+ primaryKey: true,
8
+ autoIncrement: true,
9
+ },
10
+ keyword: {
11
+ type: DataTypes.STRING(255),
12
+ allowNull: false,
13
+ unique: true,
14
+ comment: "Lowercase normalized keyword",
15
+ },
16
+ is_blocked: {
17
+ type: DataTypes.BOOLEAN,
18
+ allowNull: false,
19
+ defaultValue: true,
20
+ comment: "true = use redirect URL; false = cached non-brand result",
21
+ },
22
+ ai_checked: {
23
+ type: DataTypes.BOOLEAN,
24
+ allowNull: false,
25
+ defaultValue: false,
26
+ },
27
+ notes: {
28
+ type: DataTypes.TEXT,
29
+ allowNull: true,
30
+ },
31
+ },
32
+ {
33
+ tableName: "mine_brand_blocklist",
34
+ timestamps: true,
35
+ createdAt: "added_at",
36
+ updatedAt: false,
37
+ }
38
+ );
39
+ return MineBrandBlocklist;
40
+ };
@@ -0,0 +1,36 @@
1
+ module.exports = (sequelize, DataTypes) => {
2
+ const MineRedirectDomain = sequelize.define(
3
+ "MineRedirectDomain",
4
+ {
5
+ id: {
6
+ type: DataTypes.INTEGER,
7
+ primaryKey: true,
8
+ autoIncrement: true,
9
+ },
10
+ domain: {
11
+ type: DataTypes.STRING(255),
12
+ allowNull: false,
13
+ unique: true,
14
+ comment: "Redirect domain, e.g. searchitallday.com",
15
+ },
16
+ weight: {
17
+ type: DataTypes.INTEGER,
18
+ allowNull: false,
19
+ defaultValue: 33,
20
+ comment: "Traffic weight for weighted-random selection among active rows",
21
+ },
22
+ active: {
23
+ type: DataTypes.BOOLEAN,
24
+ allowNull: false,
25
+ defaultValue: true,
26
+ },
27
+ },
28
+ {
29
+ tableName: "mine_redirect_domains",
30
+ timestamps: true,
31
+ createdAt: "created_at",
32
+ updatedAt: false,
33
+ }
34
+ );
35
+ return MineRedirectDomain;
36
+ };
@@ -185,6 +185,12 @@ module.exports = (sequelize, DataTypes) => {
185
185
  allowNull: true,
186
186
  comment: "ID referencing DynamicFeed.id for dynamic feeds",
187
187
  },
188
+ brand_name_hold: {
189
+ type: DataTypes.BOOLEAN,
190
+ allowNull: false,
191
+ defaultValue: false,
192
+ comment: "When true, nightly channel-release crons must skip this campaign",
193
+ },
188
194
  },
189
195
  {
190
196
  tableName: "rsoc_feed_campaigns",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.4.48",
3
+ "version": "1.4.50",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",