@bluedot-innovation/models 6.2.9-alpha.1 → 6.2.10

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/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 6.2.10
2
+ - Added screens feature to account model
3
+
1
4
  ## 6.2.9
2
5
  - Remove poiCredits from Account model
3
6
  - Remove activated field from account.integrations.sfmc
@@ -12,6 +12,9 @@
12
12
  },
13
13
  "realTimeDashboard": {
14
14
  "enabled": true
15
+ },
16
+ "screens": {
17
+ "enabled": true
15
18
  }
16
19
  },
17
20
  "integrations": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "6.2.9-alpha.1",
3
+ "version": "6.2.10",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",
@@ -0,0 +1,14 @@
1
+ let mongoose = require('mongoose')
2
+
3
+ /*
4
+ A basic feature is one that can only be enabled or disabled. When new features are added they generally
5
+ start with this structure. If extra attributes need to be added later that are feature specific then a new
6
+ schema should be created for that feature, such as the AccountTempo feature.
7
+ */
8
+ let BasicFeatureSchema = new mongoose.Schema({
9
+ enabled: {type: Boolean}
10
+ }, {
11
+ _id: false
12
+ })
13
+
14
+ module.exports = BasicFeatureSchema
@@ -1,10 +1,11 @@
1
1
  let mongoose = require('mongoose')
2
2
  let AccountTempoSchema = require('./AccountTempo')
3
- let AccountRealTimeDashboardSchema = require('./AccountRealTimeDashboard')
3
+ let AccountBasicFeatureSchema = require('./AccountBasicFeature')
4
4
 
5
5
  let AccountFeaturesSchema = new mongoose.Schema({
6
6
  tempo: AccountTempoSchema,
7
- realTimeDashboard: AccountRealTimeDashboardSchema
7
+ realTimeDashboard: AccountBasicFeatureSchema,
8
+ screens: AccountBasicFeatureSchema
8
9
  }, {
9
10
  _id: false
10
11
  })
@@ -1,9 +0,0 @@
1
- let mongoose = require('mongoose')
2
-
3
- let AccountRealTimeDashboardSchema = new mongoose.Schema({
4
- enabled: {type: Boolean}
5
- }, {
6
- _id: false
7
- })
8
-
9
- module.exports = AccountRealTimeDashboardSchema