@bluedot-innovation/models 7.4.0 → 7.5.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.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
let mongoose = require('mongoose')
|
|
2
2
|
let AccountTempoSchema = require('./AccountTempo')
|
|
3
3
|
let AccountBasicFeatureSchema = require('./AccountBasicFeature')
|
|
4
|
+
let AccountScreensSchema = require('./AccountScreens')
|
|
4
5
|
|
|
5
6
|
let AccountFeaturesSchema = new mongoose.Schema({
|
|
6
7
|
tempo: AccountTempoSchema,
|
|
7
8
|
realTimeDashboard: AccountBasicFeatureSchema,
|
|
8
|
-
screens:
|
|
9
|
+
screens: AccountScreensSchema,
|
|
9
10
|
insights: AccountBasicFeatureSchema
|
|
10
11
|
}, {
|
|
11
12
|
_id: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
let mongoose = require('mongoose')
|
|
2
|
+
const HelloConfigurationSchema = require('./HelloConfiguration')
|
|
3
|
+
|
|
4
|
+
function validateScreensFeatureState() {
|
|
5
|
+
return this.enabled
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
let AccountScreensSchema = new mongoose.Schema({
|
|
9
|
+
enabled: {type: Boolean},
|
|
10
|
+
configuration: HelloConfigurationSchema
|
|
11
|
+
}, {
|
|
12
|
+
_id: false
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
module.exports = AccountScreensSchema
|