@bluedot-innovation/models 7.3.0 → 7.4.0

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,9 @@
1
+ ## 7.4.0
2
+ - Added mfaRequired flag to user model
3
+
4
+ ## 7.3.1
5
+ - Renamed dataInsights feature to insights
6
+
1
7
  ## 7.3.0
2
8
  - Added dataInsights feature to account
3
9
 
@@ -16,7 +16,7 @@
16
16
  "screens": {
17
17
  "enabled": true
18
18
  },
19
- "dataInsights": {
19
+ "insights": {
20
20
  "enabled": true
21
21
  }
22
22
  },
@@ -15,5 +15,6 @@ module.exports = {
15
15
  permissionLevel: 'READ_WRITE',
16
16
  projectId: '1dc621a1-7980-410b-839b-4bed63600139'
17
17
  }
18
- ]
18
+ ],
19
+ mfaRequired: true
19
20
  }
package/models/User.js CHANGED
@@ -40,7 +40,8 @@ let UserSchema = new mongoose.Schema({
40
40
  required: true,
41
41
  validator: helpers.validateUUIDv4
42
42
  },
43
- superAdmin: Boolean
43
+ superAdmin: Boolean,
44
+ mfaRequired: {type: Boolean, default: false},
44
45
  },
45
46
  {collection: 'user'})
46
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "7.3.0",
3
+ "version": "7.4.0",
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",
@@ -6,7 +6,7 @@ let AccountFeaturesSchema = new mongoose.Schema({
6
6
  tempo: AccountTempoSchema,
7
7
  realTimeDashboard: AccountBasicFeatureSchema,
8
8
  screens: AccountBasicFeatureSchema,
9
- dataInsights: AccountBasicFeatureSchema
9
+ insights: AccountBasicFeatureSchema
10
10
  }, {
11
11
  _id: false
12
12
  })