@bluedot-innovation/models 5.1.45 → 5.1.46

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.46
2
+ - Save Scenario details in TestInstance
3
+
1
4
  ## 5.1.45
2
5
  - Removed Schemas from TestInstance
3
6
 
@@ -7,6 +7,7 @@ let StateEnum = require('@bluedot-innovation/enums').StateEnum
7
7
  let TestStatusEnum = require('@bluedot-innovation/enums').TestStatusEnum
8
8
 
9
9
  const Schema = mongoose.Schema
10
+ let Scenario = require('./TestScenario').Schema
10
11
 
11
12
  let TestInstanceSchema = new mongoose.Schema(
12
13
  {
@@ -34,7 +35,8 @@ let TestInstanceSchema = new mongoose.Schema(
34
35
  roundNumber: Number,
35
36
  useCaseType: String,
36
37
  groupOfDevices: String,
37
- configurationParameters:{type: Schema.Types.Mixed, default: null}
38
+ configurationParameters:{type: Schema.Types.Mixed, default: null},
39
+ scenario: Scenario
38
40
  },
39
41
  { collection: 'testInstance' }
40
42
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "5.1.45",
3
+ "version": "5.1.46",
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",