@bluedot-innovation/models 5.1.8 → 5.1.10

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
+ ## 5.1.10
2
+ - Fix enum typos in TestDevice and TestScenario
3
+
4
+ ## 5.1.9
5
+ - Update TestInstance and TestDeviceCluster to work with new TMP
6
+
1
7
  ## 5.1.8
2
8
  - Added blue connect models in Models.js
3
9
 
@@ -21,7 +21,7 @@ let TestDevice = mongoose.model('TestDevice', new mongoose.Schema(
21
21
  serialNumber: String,
22
22
  mobileNumber: String,
23
23
  deviceType: String,
24
- state: {type: String, default: StateEnum.active},
24
+ state: {type: String, default: StateEnum.ACTIVE},
25
25
  comments: String,
26
26
  imei: String,
27
27
  udid: String
@@ -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
@@ -15,7 +15,7 @@ let TestScenario = mongoose.model('TestScenario', new mongoose.Schema(
15
15
  package: String,
16
16
  'creationTime': {type: Date, default: Date.now},
17
17
  'lastUpdateTime': {type: Date, default: Date.now},
18
- state: {type: String, default: StateEnum.active},
18
+ state: {type: String, default: StateEnum.ACTIVE},
19
19
  numberZones: String,
20
20
  comments: String,
21
21
  environment: 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.10",
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",