@bluedot-innovation/models 1.0.6 → 1.0.7

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Created by andrewstirling on 12/4/17.
3
+ */
4
+ var mongoose = require('mongoose');
5
+
6
+ var POIResult = mongoose.model('POIResult', new mongoose.Schema(
7
+ {
8
+ _id: String,
9
+ lookupId: String,
10
+ page: Number,
11
+ "lastUpdateTime" : {type: Date, default: Date.now},
12
+ results: []
13
+ },
14
+ {
15
+ collection : 'poiResult'
16
+ }
17
+ )
18
+ );
19
+
20
+ module.exports = POIResult;
@@ -14,14 +14,17 @@ var TestDevice = mongoose.model('TestDevice', new mongoose.Schema(
14
14
  osVersion: String,
15
15
  hostToken: String,
16
16
  batteryToken: String,
17
+ model: String,
17
18
  trackingDevice: {type: Boolean, default : false},
18
- "creationTime" : {type: Date, default: Date.now},
19
- "lastUpdateTime" : {type: Date, default: Date.now},
20
- "serialNumber": String,
19
+ creationTime : {type: Date, default: Date.now},
20
+ lastUpdateTime : {type: Date, default: Date.now},
21
+ serialNumber: String,
21
22
  mobileNumber: String,
22
23
  deviceType: String,
23
24
  state: {type:String, default: StateEnum.active},
24
- comments: String
25
+ comments: String,
26
+ imei: String,
27
+ udid: String
25
28
  },
26
29
  {
27
30
  collection : 'testDevice'
@@ -19,7 +19,10 @@ var TestInstance = mongoose.model('TestInstance', new mongoose.Schema(
19
19
  "creationTime" : {type: Date, default: Date.now},
20
20
  "lastUpdateTime" : {type: Date, default: Date.now},
21
21
  state: {type: String, default: StateEnum.active},
22
- comments: String
22
+ comments: String,
23
+ isProduction: Boolean,
24
+ running: {type: Boolean, default : false},
25
+ sdkVersion: String
23
26
  },
24
27
  {
25
28
  collection : 'testInstance'
@@ -15,6 +15,8 @@ var TestScenario = mongoose.model('TestScenario', new mongoose.Schema(
15
15
  "creationTime" : {type: Date, default: Date.now},
16
16
  "lastUpdateTime" : {type: Date, default: Date.now},
17
17
  state: {type: String, default: StateEnum.active},
18
+ testMode: String,
19
+ numberZones: String,
18
20
  comments: String,
19
21
  environment: String
20
22
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {