@bluedot-innovation/models 2.0.17 → 2.0.18

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,5 +1,5 @@
1
1
  ## 2.0.18
2
- - Tag model added
2
+ - `password` on `user` model no longer required. We will rely on cognito to throw an error
3
3
 
4
4
  ## 2.0.17
5
5
  - Tag model added
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- requiredFields: ['username', 'password', 'firstName', 'lastName', 'isAdmin', 'accountId'],
2
+ requiredFields: ['username', 'firstName', 'lastName', 'isAdmin', 'accountId'],
3
3
  customValidators: [
4
4
  {name: 'phoneNumber', invalidInputs: ['409203492039284232034398']},
5
5
  {name: 'creationTime', invalidInputs: ['21/07/2017', 'thursday']},
package/models/User.js CHANGED
@@ -26,7 +26,7 @@ let UserSchema = new mongoose.Schema({
26
26
  message: '{VALUE} is not a valid email'
27
27
  }
28
28
  },
29
- password: {type: String, required: true},
29
+ password: {type: String},
30
30
  firstName: {type: String, required: true},
31
31
  lastName: {type: String, required: true},
32
32
  phoneNumber: {type: String, maxlength: 20},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {