@bluedot-innovation/models 10.3.0 → 10.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
+ ## 10.4.0
2
+ - Adds verificationCodeEnabled to project
3
+
1
4
  ## 10.3.0
2
5
  - Adds service type Users
3
6
 
@@ -124,7 +124,8 @@
124
124
  "hello": {
125
125
  "activeTtl": 604800,
126
126
  "finalTtl": 86400,
127
- "ssoLinkingCode": "HGDUS69SDJJ0"
127
+ "ssoLinkingCode": "HGDUS69SDJJ0",
128
+ "verificationCodeEnabled": true
128
129
  },
129
130
  "reportConfigurations": [
130
131
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "10.3.0",
3
+ "version": "10.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",
@@ -4,7 +4,8 @@ const helpers = require('../helpers')
4
4
  let ProjectHelloSchema = new mongoose.Schema({
5
5
  activeTtl: {type: Number, min: 0, max: 1209600, validate: { validator: Number.isInteger, msg: 'hello.activeTtl should be an integer number' }},
6
6
  finalTtl: {type: Number, min: 0, max: 1209600, validate: { validator: Number.isInteger, msg: 'hello.finalTtl should be an integer number' }},
7
- ssoLinkingCode: {type: String, validate: {validator: helpers.validateSsoLinkingCode, msg: 'SSO linking code must be a 12 character capital alphanumeric text'}}
7
+ ssoLinkingCode: {type: String, validate: {validator: helpers.validateSsoLinkingCode, msg: 'SSO linking code must be a 12 character capital alphanumeric text'}},
8
+ verificationCodeEnabled: { type: Boolean }
8
9
  }, {
9
10
  _id: false
10
11
  })