@bluedot-innovation/models 1.0.11 → 1.0.12

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,37 @@
1
+ /**
2
+ * Created by Daniel on 03/06/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var DeviceRulesRequest = mongoose.model('DeviceRulesRequest', new mongoose.Schema(
9
+ {
10
+ _id : String,
11
+ _class : {type: String, default:"au.com.bluedot.application.model.client.DeviceRulesRequest"},
12
+ currentDeviceLocation : {
13
+ "longitude" : Number,
14
+ "latitude" : Number,
15
+ "geometryType" : String
16
+ },
17
+ installationReference : String,
18
+ apiKey : String,
19
+ packageName : String,
20
+ clientEmail : String,
21
+ batteryStatus : String,
22
+ deviceType : String,
23
+ locationMethod : String,
24
+ platform : String,
25
+ sdkVersion : String,
26
+ osVersion : String,
27
+ speed : Number,
28
+ creationTime : { type: Date, default: Date.now },
29
+ lastUpdateTime : { type: Date, default: Date.now }
30
+ },
31
+ {
32
+ collection: 'deviceRulesRequest'
33
+ }
34
+ )
35
+ );
36
+
37
+ module.exports = DeviceRulesRequest;
@@ -11,6 +11,7 @@ var POILookup = mongoose.model('POILookup', new mongoose.Schema(
11
11
  customerId: String,
12
12
  applicationId: String,
13
13
  keyword: String,
14
+ area: {},
14
15
  location: String,
15
16
  locationId: String,
16
17
  type: String,
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Created by Daniel on 04/06/2017.
3
+ * Copyright : Bluedot Innovations.
4
+ * Owner :
5
+ */
6
+ var mongoose = require('mongoose');
7
+
8
+ var RuleRequestAggregation = mongoose.model('RuleRequestAggregation', new mongoose.Schema(
9
+ {
10
+ _id : String,
11
+ _class : {type: String, default:"au.com.bluedot.application.model.client.RuleRequestAggregation"},
12
+ date : {type: Date, default: Date.now },
13
+ users : []
14
+ },
15
+ {
16
+ collection: 'ruleRequestAggregation',
17
+ versionKey: false
18
+ }
19
+ )
20
+ );
21
+
22
+ module.exports = RuleRequestAggregation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {