@bluedot-innovation/models 1.0.3 → 1.0.5
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/models/BeaconFilter.js +2 -2
- package/models/BearingFilter.js +2 -2
- package/models/Customer.js +2 -0
- package/models/POILocation.js +20 -0
- package/models/POILookup.js +30 -0
- package/package.json +1 -1
package/models/BeaconFilter.js
CHANGED
|
@@ -18,6 +18,6 @@ var BeaconFilterSchema = new mongoose.Schema(
|
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var BeaconFilter = mongoose.model('BeaconFilter', BeaconFilterSchema);
|
|
22
22
|
|
|
23
|
-
module.exports =
|
|
23
|
+
module.exports = BeaconFilter;
|
package/models/BearingFilter.js
CHANGED
|
@@ -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
|
-
|
|
12
|
-
|
|
11
|
+
fromAngle : Number,
|
|
12
|
+
toAngle : Number,
|
|
13
13
|
type : {type: String, default:"bearingFilter"}
|
|
14
14
|
},
|
|
15
15
|
{
|
package/models/Customer.js
CHANGED
|
@@ -23,8 +23,10 @@ var Customer = mongoose.model('Customer', new mongoose.Schema(
|
|
|
23
23
|
lastName: String,
|
|
24
24
|
oldPassword: String,
|
|
25
25
|
organisationWebsite: String,
|
|
26
|
+
organisationName: String,
|
|
26
27
|
phoneNumber: String,
|
|
27
28
|
createdBy: String,
|
|
29
|
+
poiCredits: {type: Number, default: 0},
|
|
28
30
|
address: []
|
|
29
31
|
},
|
|
30
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;
|