@bluedot-innovation/models 7.3.1 → 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,6 @@
1
+ ## 7.4.0
2
+ - Added mfaRequired flag to user model
3
+
1
4
  ## 7.3.1
2
5
  - Renamed dataInsights feature to insights
3
6
 
@@ -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.1",
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",