@bluedot-innovation/models 5.1.40 → 5.1.43

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,12 @@
1
+ ## 5.1.43
2
+ - Added remote config details and other new fields to TestInstance
3
+
4
+ ## 5.1.42
5
+ - Added accountId, projectId, zoneName and zoneId to TestScenario
6
+
7
+ ## 5.1.41
8
+ - Added `disableBackgroundLocation` to IosConfig schema
9
+
1
10
  ## 5.1.40
2
11
  - Rename and updated the `DailyStats`, `MonthlyStats` and `RuleRequestAggregation` models to:
3
12
  - `RulesRequestAgregation` to `Daily Stats`
@@ -116,7 +116,8 @@
116
116
  "rulesDownloadEnd" ]
117
117
  },
118
118
  "maximumPageSize": 256,
119
- "triggerEngine": "BD"
119
+ "triggerEngine": "BD",
120
+ "disableBackgroundLocation": "None"
120
121
  }
121
122
  }
122
123
  }
@@ -6,6 +6,9 @@ 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')
11
+
9
12
  let TestInstanceSchema = new mongoose.Schema(
10
13
  {
11
14
  name: String,
@@ -24,7 +27,18 @@ let TestInstanceSchema = new mongoose.Schema(
24
27
  isValid: {type: Boolean, default: true},
25
28
  comments: String,
26
29
  isProduction: Boolean,
27
- sdkVersion: String
30
+ sdkVersion: String,
31
+ platform: String,
32
+ appVersion: String,
33
+ buildType: String,
34
+ locationPermission: String,
35
+ roundNumber: Number,
36
+ useCaseType: String,
37
+ groupOfDevices: String,
38
+ configurationParameters: {
39
+ iosConfig: iosConfig,
40
+ androidConfig: androidConfig
41
+ }
28
42
  },
29
43
  { collection: 'testInstance' }
30
44
  )
@@ -17,7 +17,10 @@ let TestScenarioSchema = new mongoose.Schema(
17
17
  state: {type: String, default: StateEnum.ACTIVE},
18
18
  numberZones: String,
19
19
  comments: String,
20
- environment: String
20
+ environment: String,
21
+ accountId: String,
22
+ projectId: String,
23
+ zones: []
21
24
  },
22
25
  { collection: 'testScenario' }
23
26
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "5.1.40",
3
+ "version": "5.1.43",
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",
@@ -14,6 +14,11 @@ let triggerEngineEnum = {
14
14
  message: 'enum validator failed for path `{PATH}` with value `{VALUE}`'
15
15
  }
16
16
 
17
+ let disableBackgroundLocationEnum = {
18
+ values: ['None', 'BD'],
19
+ message: 'enum validator failed for path `{PATH}` with value `{VALUE}`'
20
+ }
21
+
17
22
  let IosSchema = new mongoose.Schema({
18
23
  triggeringOnWifiAccuracyThreshold : {type: Number, required: true},
19
24
  triggeringOnGpsAccuracyThreshold : {type: Number, required: true},
@@ -35,7 +40,8 @@ let IosSchema = new mongoose.Schema({
35
40
  telemetry: telemetrySchema,
36
41
  accuracySuppression: accuracySuppressionSchema,
37
42
  starvationDetector: starvationDetectionSchema,
38
- triggerEngine: {type: String, enum: triggerEngineEnum, required: true}
43
+ triggerEngine: {type: String, enum: triggerEngineEnum, required: true},
44
+ disableBackgroundLocation: {type: String, enum: disableBackgroundLocationEnum, required: true}
39
45
  }, {
40
46
  _id: false
41
47
  })