@bluedot-innovation/models 5.1.8 → 5.1.9

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
+ ## 5.1.9
2
+ - Update TestInstance and TestDeviceCluster to work with new TMP
3
+
1
4
  ## 5.1.8
2
5
  - Added blue connect models in Models.js
3
6
 
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Created by Andrew on 02/03/2017.
3
- * Copyright : Bluedot Innovations.
4
- * Owner :
3
+ * Copyright : Bluedot Innovation.
5
4
  */
6
5
  let mongoose = require('mongoose')
7
6
  let StateEnum = require('@bluedot-innovation/enums').StateEnum
@@ -13,11 +12,11 @@ let TestDeviceCluster = mongoose.model('TestDeviceCluster', new mongoose.Schema(
13
12
  'creationTime': {type: Date, default: Date.now},
14
13
  'lastUpdateTime': {type: Date, default: Date.now},
15
14
  comments: String,
16
- state: {type: String, default: StateEnum.active}
15
+ state: {type: String, default: StateEnum.ACTIVE}
17
16
  },
18
17
  {
19
18
  collection: 'testDeviceCluster'
20
19
  })
21
20
  )
22
21
 
23
- module.exports = TestDeviceCluster
22
+ module.exports = TestDeviceCluster
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Created by Andrew on 02/03/2017.
3
- * Copyright : Bluedot Innovations.
4
- * Owner :
3
+ * Copyright : Bluedot Innovation.
5
4
  */
6
5
  let mongoose = require('mongoose')
7
6
  let StateEnum = require('@bluedot-innovation/enums').StateEnum
@@ -19,7 +18,8 @@ let TestInstance = mongoose.model('TestInstance', new mongoose.Schema(
19
18
  trackedLocations: {type: Array, default: []},
20
19
  'creationTime': {type: Date, default: Date.now},
21
20
  'lastUpdateTime': {type: Date, default: Date.now},
22
- state: {type: String, default: StateEnum.active},
21
+ state: {type: String, default: StateEnum.ACTIVE},
22
+ isValid: {type: Boolean, default: true},
23
23
  comments: String,
24
24
  isProduction: Boolean,
25
25
  sdkVersion: String
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "5.1.8",
3
+ "version": "5.1.9",
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",