agrs-sequelize-sdk 1.2.35 → 1.2.37

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.
@@ -0,0 +1,90 @@
1
+ module.exports = (sequelize, DataTypes) => {
2
+ const DynamicFeed = sequelize.define(
3
+ "DynamicFeed",
4
+ {
5
+ id: {
6
+ type: DataTypes.INTEGER,
7
+ primaryKey: true,
8
+ autoIncrement: true,
9
+ },
10
+ // Feed Details
11
+ feed_type: {
12
+ type: DataTypes.ENUM('NXS', 'Type-In', 'AFD', 'RSOC'),
13
+ allowNull: true,
14
+ },
15
+ feed: {
16
+ type: DataTypes.ENUM('Direct', 'Partner', '3rd Party'),
17
+ allowNull: true,
18
+ },
19
+ feed_name: {
20
+ type: DataTypes.STRING,
21
+ allowNull: false,
22
+ },
23
+ feed_short_name: {
24
+ type: DataTypes.STRING,
25
+ allowNull: true,
26
+ },
27
+ feed_logo: {
28
+ type: DataTypes.TEXT,
29
+ allowNull: true,
30
+ },
31
+ // Targeting Rules
32
+ accepted_devices: {
33
+ type: DataTypes.JSON,
34
+ allowNull: true,
35
+ },
36
+ search_engine: {
37
+ type: DataTypes.JSON,
38
+ allowNull: true,
39
+ },
40
+ country: {
41
+ type: DataTypes.STRING,
42
+ allowNull: true,
43
+ },
44
+ generated_url: {
45
+ type: DataTypes.STRING,
46
+ allowNull: false,
47
+ },
48
+ token: {
49
+ type: DataTypes.STRING,
50
+ allowNull: true,
51
+ },
52
+ is_active: {
53
+ type: DataTypes.BOOLEAN,
54
+ defaultValue: true,
55
+ allowNull: true,
56
+ },
57
+ },
58
+ {
59
+ tableName: "dynamic_feeds",
60
+ indexes: [
61
+ {
62
+ fields: ["token"],
63
+ },
64
+ {
65
+ fields: ["generated_url"],
66
+ },
67
+ {
68
+ fields: ["is_active"],
69
+ },
70
+ {
71
+ fields: ["feed_type"],
72
+ },
73
+ {
74
+ fields: ["country"],
75
+ },
76
+ ],
77
+ }
78
+ );
79
+
80
+ DynamicFeed.associate = (models) => {
81
+ // Add associations here when needed
82
+ // Example:
83
+ // DynamicFeed.hasMany(models.FeedLogs, {
84
+ // foreignKey: "feed_id",
85
+ // as: "Logs",
86
+ // });
87
+ };
88
+
89
+ return DynamicFeed;
90
+ };
@@ -67,6 +67,38 @@ module.exports = (sequelize, DataTypes) => {
67
67
  allowNull: true,
68
68
  defaultValue: false,
69
69
  },
70
+ freeText: {
71
+ type: DataTypes.STRING,
72
+ allowNull: true,
73
+ },
74
+ style: {
75
+ type: DataTypes.STRING,
76
+ allowNull: true,
77
+ },
78
+ ratio: {
79
+ type: DataTypes.STRING,
80
+ allowNull: true,
81
+ },
82
+ notes: {
83
+ type: DataTypes.STRING,
84
+ allowNull: true,
85
+ },
86
+ headline: {
87
+ type: DataTypes.STRING,
88
+ allowNull: true,
89
+ },
90
+ subtext: {
91
+ type: DataTypes.STRING,
92
+ allowNull: true,
93
+ },
94
+ cta: {
95
+ type: DataTypes.STRING,
96
+ allowNull: true,
97
+ },
98
+ script: {
99
+ type: DataTypes.STRING,
100
+ allowNull: true,
101
+ },
70
102
  });
71
103
 
72
104
  return NewFiles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",