@bluedot-innovation/models 1.0.4 → 1.0.6

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.
@@ -18,6 +18,6 @@ var BeaconFilterSchema = new mongoose.Schema(
18
18
  }
19
19
  );
20
20
 
21
- var FenceFilter = mongoose.model('BeaconFilter', BeaconFilterSchema);
21
+ var BeaconFilter = mongoose.model('BeaconFilter', BeaconFilterSchema);
22
22
 
23
- module.exports = FenceFilter;
23
+ module.exports = BeaconFilter;
@@ -8,8 +8,8 @@ var mongoose = require('mongoose');
8
8
  var BearingFilter = mongoose.model('BearingFilter', mongoose.Schema({
9
9
  guid: {type: String},
10
10
  _class : {type: String, default:"au.com.bluedot.application.spring.filter.action.BearingFilter"},
11
- minimumAngle : Number,
12
- maximumAngle : Number,
11
+ fromAngle : Number,
12
+ toAngle : Number,
13
13
  type : {type: String, default:"bearingFilter"}
14
14
  },
15
15
  {
@@ -26,6 +26,7 @@ var Customer = mongoose.model('Customer', new mongoose.Schema(
26
26
  organisationName: String,
27
27
  phoneNumber: String,
28
28
  createdBy: String,
29
+ poiCredits: {type: Number, default: 0},
29
30
  address: []
30
31
  },
31
32
  {
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Created by Andrew on 13/02/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var POILocation = mongoose.model('POILocation', new mongoose.Schema(
9
+ {
10
+ type: String,
11
+ properties: {},
12
+ geometryId: String
13
+ },
14
+ {
15
+ collection : 'poiLocation'
16
+ }
17
+ )
18
+ );
19
+
20
+ module.exports = POILocation;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Created by Andrew on 13/02/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var POILookup = mongoose.model('POILookup', new mongoose.Schema(
9
+ {
10
+ _id: String,
11
+ customerId: String,
12
+ applicationId: String,
13
+ keyword: String,
14
+ location: String,
15
+ locationId: String,
16
+ type: String,
17
+ status: String,
18
+ errorMessage: String,
19
+ "creationTime" : {type: Date, default: Date.now},
20
+ "lastUpdateTime" : {type: Date, default: Date.now},
21
+ creditsUsed: {type: Number, default: 0},
22
+ results: []
23
+ },
24
+ {
25
+ collection : 'poiLookup'
26
+ }
27
+ )
28
+ );
29
+
30
+ module.exports = POILookup;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Created by Andrew on 01/03/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var TestDevice = mongoose.model('TestDevice', new mongoose.Schema(
10
+ {
11
+ name: String,
12
+ identifier: String,
13
+ os: String,
14
+ osVersion: String,
15
+ hostToken: String,
16
+ batteryToken: String,
17
+ trackingDevice: {type: Boolean, default : false},
18
+ "creationTime" : {type: Date, default: Date.now},
19
+ "lastUpdateTime" : {type: Date, default: Date.now},
20
+ "serialNumber": String,
21
+ mobileNumber: String,
22
+ deviceType: String,
23
+ state: {type:String, default: StateEnum.active},
24
+ comments: String
25
+ },
26
+ {
27
+ collection : 'testDevice'
28
+ }
29
+ )
30
+ );
31
+
32
+ module.exports = TestDevice;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Created by Andrew on 02/03/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var TestDeviceCluster = mongoose.model('TestDeviceCluster', new mongoose.Schema(
10
+ {
11
+ name: String,
12
+ devices: [],
13
+ "creationTime" : {type: Date, default: Date.now},
14
+ "lastUpdateTime" : {type: Date, default: Date.now},
15
+ comments: String,
16
+ state: {type: String, default: StateEnum.active}
17
+ },
18
+ {
19
+ collection : 'testDeviceCluster'
20
+ }
21
+ )
22
+ );
23
+
24
+ module.exports = TestDeviceCluster;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Created by Andrew on 02/03/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var TestInstance = mongoose.model('TestInstance', new mongoose.Schema(
10
+ {
11
+ name: String,
12
+ scenarioId: String,
13
+ devices: {},
14
+ mode: String,
15
+ startTime: Date,
16
+ endTime: Date,
17
+ endPoint: String,
18
+ trackedLocations: {type: Array, default: []},
19
+ "creationTime" : {type: Date, default: Date.now},
20
+ "lastUpdateTime" : {type: Date, default: Date.now},
21
+ state: {type: String, default: StateEnum.active},
22
+ comments: String
23
+ },
24
+ {
25
+ collection : 'testInstance'
26
+ }
27
+ )
28
+ );
29
+
30
+ module.exports = TestInstance;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Created by Andrew on 02/03/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+ var StateEnum = require('@bluedot-innovation/enums').StateEnum;
8
+
9
+ var TestScenario = mongoose.model('TestScenario', new mongoose.Schema(
10
+ {
11
+ name: String,
12
+ apiKey: String,
13
+ email: String,
14
+ package: String,
15
+ "creationTime" : {type: Date, default: Date.now},
16
+ "lastUpdateTime" : {type: Date, default: Date.now},
17
+ state: {type: String, default: StateEnum.active},
18
+ comments: String,
19
+ environment: String
20
+ },
21
+ {
22
+ collection : 'testScenario'
23
+ }
24
+ )
25
+ );
26
+
27
+ module.exports = TestScenario;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {