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