@bluedot-innovation/models 5.1.40 → 5.1.42
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.42
|
|
2
|
+
- Added accountId, projectId, zoneName and zoneId to TestScenario
|
|
3
|
+
|
|
4
|
+
## 5.1.41
|
|
5
|
+
- Added `disableBackgroundLocation` to IosConfig schema
|
|
6
|
+
|
|
1
7
|
## 5.1.40
|
|
2
8
|
- Rename and updated the `DailyStats`, `MonthlyStats` and `RuleRequestAggregation` models to:
|
|
3
9
|
- `RulesRequestAgregation` to `Daily Stats`
|
package/models/TestScenario.js
CHANGED
|
@@ -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
package/schemas/IosConfig.js
CHANGED
|
@@ -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
|
})
|