@bluedot-innovation/models 1.0.7 → 1.0.9
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/.npmignore +3 -3
- package/Models.js +13 -11
- package/models/AdminPortalUser.js +26 -24
- package/models/AdminUser.js +9 -9
- package/models/Application.js +38 -38
- package/models/ApplicationNotificationAction.js +29 -29
- package/models/ApplicationUsage.js +10 -10
- package/models/Beacon.js +36 -36
- package/models/BeaconFilter.js +23 -23
- package/models/BearingFilter.js +18 -18
- package/models/BoundingBox.js +16 -16
- package/models/Circle.js +20 -20
- package/models/Contract.js +41 -41
- package/models/Customer.js +38 -38
- package/models/DBEvent.js +21 -21
- package/models/DateRangeFilter.js +19 -19
- package/models/Fence.js +21 -21
- package/models/FormattedBeacon.js +15 -15
- package/models/FormattedCircle.js +11 -11
- package/models/FormattedConditions.js +10 -10
- package/models/FormattedDateRange.js +10 -10
- package/models/FormattedPercentageCrossed.js +11 -11
- package/models/FormattedPoint.js +9 -9
- package/models/FormattedPolygon.js +10 -10
- package/models/FormattedPolyline.js +10 -10
- package/models/FormattedRectangle.js +11 -11
- package/models/FormattedTimeActive.js +16 -16
- package/models/FormattedZone.js +27 -27
- package/models/GeoFence.js +23 -23
- package/models/Geofeature.js +26 -26
- package/models/MessageAction.js +28 -28
- package/models/NotificationLogEntry.js +19 -19
- package/models/POILocation.js +20 -20
- package/models/POILookup.js +30 -30
- package/models/POIResult.js +20 -20
- package/models/PartnerCustomer.js +35 -35
- package/models/PartnerPasswordReset.js +20 -20
- package/models/PartnerUser.js +30 -30
- package/models/Partners.js +18 -18
- package/models/PercentageCrossedFilter.js +18 -18
- package/models/Point.js +20 -20
- package/models/Polygon.js +17 -17
- package/models/Polyline.js +17 -17
- package/models/PropertyMapping.js +17 -17
- package/models/Reference.js +19 -19
- package/models/SequenceFilter.js +17 -17
- package/models/SimpleCheckInZone.js +29 -29
- package/models/SingleUseToken.js +19 -19
- package/models/SoundAction.js +27 -27
- package/models/SpeedFilter.js +18 -18
- package/models/TestDevice.js +35 -35
- package/models/TestDeviceCluster.js +24 -24
- package/models/TestInstance.js +33 -33
- package/models/TestScenario.js +29 -29
- package/models/TimeOfDayRange.js +21 -21
- package/models/TimeOfDayRangeFilter.js +18 -18
- package/models/URLAction.js +30 -30
- package/models/VibrationAction.js +27 -27
- package/models/ZoneUIState.js +24 -24
- package/models/property.js +25 -25
- package/package.json +15 -15
package/models/DBEvent.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Andrew on 25/07/2016.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
Schema = mongoose.Schema;
|
|
8
|
-
|
|
9
|
-
var DBEventSchema = new mongoose.Schema({
|
|
10
|
-
_class : {type: String, default:"au.com.bluedot.application.spring.DBEvent"},
|
|
11
|
-
customerId : String,
|
|
12
|
-
customerEmail : String,
|
|
13
|
-
actionName : String,
|
|
14
|
-
referenceId: String,
|
|
15
|
-
creationTime: {type: Date, select: false, default: Date.now},
|
|
16
|
-
},
|
|
17
|
-
{ collection : 'dbevent' }
|
|
18
|
-
);
|
|
19
|
-
var DBEvent = mongoose.model('DBEvent', DBEventSchema);
|
|
20
|
-
|
|
21
|
-
module.exports = DBEvent;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Andrew on 25/07/2016.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
Schema = mongoose.Schema;
|
|
8
|
+
|
|
9
|
+
var DBEventSchema = new mongoose.Schema({
|
|
10
|
+
_class : {type: String, default:"au.com.bluedot.application.spring.DBEvent"},
|
|
11
|
+
customerId : String,
|
|
12
|
+
customerEmail : String,
|
|
13
|
+
actionName : String,
|
|
14
|
+
referenceId: String,
|
|
15
|
+
creationTime: {type: Date, select: false, default: Date.now},
|
|
16
|
+
},
|
|
17
|
+
{ collection : 'dbevent' }
|
|
18
|
+
);
|
|
19
|
+
var DBEvent = mongoose.model('DBEvent', DBEventSchema);
|
|
20
|
+
|
|
21
|
+
module.exports = DBEvent;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 30/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
var SchemaTypes = mongoose.Schema.Types;
|
|
8
|
-
|
|
9
|
-
var DateRangeFilter = mongoose.model('DateRangeFilter', mongoose.Schema({
|
|
10
|
-
guid: {type: String},
|
|
11
|
-
_class : {type: String, default:"au.com.bluedot.application.spring.filter.action.DateRangeFilter"},
|
|
12
|
-
startDate: {type: String},
|
|
13
|
-
endDate: {type: String},
|
|
14
|
-
type : {type: String, default:"dateRangeFilter"},
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
_id: false
|
|
18
|
-
}
|
|
19
|
-
));
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 30/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
var SchemaTypes = mongoose.Schema.Types;
|
|
8
|
+
|
|
9
|
+
var DateRangeFilter = mongoose.model('DateRangeFilter', mongoose.Schema({
|
|
10
|
+
guid: {type: String},
|
|
11
|
+
_class : {type: String, default:"au.com.bluedot.application.spring.filter.action.DateRangeFilter"},
|
|
12
|
+
startDate: {type: String},
|
|
13
|
+
endDate: {type: String},
|
|
14
|
+
type : {type: String, default:"dateRangeFilter"},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
_id: false
|
|
18
|
+
}
|
|
19
|
+
));
|
|
20
20
|
module.exports = DateRangeFilter;
|
package/models/Fence.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
Schema = mongoose.Schema;
|
|
8
|
-
|
|
9
|
-
var FenceSchema = new mongoose.Schema({
|
|
10
|
-
"_id" : {type: String},
|
|
11
|
-
"creationTime" : {type: Date, default: Date.now},
|
|
12
|
-
"lastUpdateTime" : {type: Date, default: Date.now},
|
|
13
|
-
"type" : {type:String, default: "Feature"},
|
|
14
|
-
"dataSource" : {type:String, select: false, default : 'openApi'},
|
|
15
|
-
"geometry" : {type: Schema.Types.Mixed, default: {}}
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
var Fence = mongoose.model('Fence', FenceSchema);
|
|
20
|
-
|
|
21
|
-
module.exports = Fence;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
Schema = mongoose.Schema;
|
|
8
|
+
|
|
9
|
+
var FenceSchema = new mongoose.Schema({
|
|
10
|
+
"_id" : {type: String},
|
|
11
|
+
"creationTime" : {type: Date, default: Date.now},
|
|
12
|
+
"lastUpdateTime" : {type: Date, default: Date.now},
|
|
13
|
+
"type" : {type:String, default: "Feature"},
|
|
14
|
+
"dataSource" : {type:String, select: false, default : 'openApi'},
|
|
15
|
+
"geometry" : {type: Schema.Types.Mixed, default: {}}
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
var Fence = mongoose.model('Fence', FenceSchema);
|
|
20
|
+
|
|
21
|
+
module.exports = Fence;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedBeacon = function () {
|
|
7
|
-
this.beaconId = null;
|
|
8
|
-
this.name = null;
|
|
9
|
-
this.proximityUUID = null;
|
|
10
|
-
this.longitude = null;
|
|
11
|
-
this.latitude = null;
|
|
12
|
-
this.major = null;
|
|
13
|
-
this.minor = null;
|
|
14
|
-
this.macAddress = null;
|
|
15
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedBeacon = function () {
|
|
7
|
+
this.beaconId = null;
|
|
8
|
+
this.name = null;
|
|
9
|
+
this.proximityUUID = null;
|
|
10
|
+
this.longitude = null;
|
|
11
|
+
this.latitude = null;
|
|
12
|
+
this.major = null;
|
|
13
|
+
this.minor = null;
|
|
14
|
+
this.macAddress = null;
|
|
15
|
+
};
|
|
16
16
|
module.exports = FormattedBeacon;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedCircle = function () {
|
|
7
|
-
this.name = null;
|
|
8
|
-
this.color = null;
|
|
9
|
-
this.radius = null;
|
|
10
|
-
this.center = null;
|
|
11
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedCircle = function () {
|
|
7
|
+
this.name = null;
|
|
8
|
+
this.color = null;
|
|
9
|
+
this.radius = null;
|
|
10
|
+
this.center = null;
|
|
11
|
+
};
|
|
12
12
|
module.exports = FormattedCircle;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedConditions = function () {
|
|
7
|
-
this.percentageCrossed = [];
|
|
8
|
-
this.dateRange = [];
|
|
9
|
-
this.timeActive = [];
|
|
10
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedConditions = function () {
|
|
7
|
+
this.percentageCrossed = [];
|
|
8
|
+
this.dateRange = [];
|
|
9
|
+
this.timeActive = [];
|
|
10
|
+
};
|
|
11
11
|
module.exports = FormattedConditions;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedDateRange = function (id, start, end) {
|
|
7
|
-
this.conditionId = id;
|
|
8
|
-
this.start = start;
|
|
9
|
-
this.end = end;
|
|
10
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedDateRange = function (id, start, end) {
|
|
7
|
+
this.conditionId = id;
|
|
8
|
+
this.start = start;
|
|
9
|
+
this.end = end;
|
|
10
|
+
};
|
|
11
11
|
module.exports = FormattedDateRange;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
var FormattedPercentageCrossed = function (id, percentage, timeout) {
|
|
8
|
-
this.conditionId = id;
|
|
9
|
-
this.percentage = percentage;
|
|
10
|
-
this.timeoutPeriod = timeout;
|
|
11
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
var FormattedPercentageCrossed = function (id, percentage, timeout) {
|
|
8
|
+
this.conditionId = id;
|
|
9
|
+
this.percentage = percentage;
|
|
10
|
+
this.timeoutPeriod = timeout;
|
|
11
|
+
};
|
|
12
12
|
module.exports = FormattedPercentageCrossed;
|
package/models/FormattedPoint.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedPoint = function (latitude,longitude) {
|
|
7
|
-
this.latitude = latitude;
|
|
8
|
-
this.longitude = longitude;
|
|
9
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedPoint = function (latitude,longitude) {
|
|
7
|
+
this.latitude = latitude;
|
|
8
|
+
this.longitude = longitude;
|
|
9
|
+
};
|
|
10
10
|
module.exports = FormattedPoint;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedPolygon = function () {
|
|
7
|
-
this.name = null;
|
|
8
|
-
this.color = null;
|
|
9
|
-
this.vertices = [];
|
|
10
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedPolygon = function () {
|
|
7
|
+
this.name = null;
|
|
8
|
+
this.color = null;
|
|
9
|
+
this.vertices = [];
|
|
10
|
+
};
|
|
11
11
|
module.exports = FormattedPolygon;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedPolyline = function () {
|
|
7
|
-
this.name = null;
|
|
8
|
-
this.color = null;
|
|
9
|
-
this.vertices = [];
|
|
10
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedPolyline = function () {
|
|
7
|
+
this.name = null;
|
|
8
|
+
this.color = null;
|
|
9
|
+
this.vertices = [];
|
|
10
|
+
};
|
|
11
11
|
module.exports = FormattedPolyline;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedRectangle = function () {
|
|
7
|
-
this.name = null;
|
|
8
|
-
this.color = null;
|
|
9
|
-
this.northEast = null;
|
|
10
|
-
this.southWest = null;
|
|
11
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedRectangle = function () {
|
|
7
|
+
this.name = null;
|
|
8
|
+
this.color = null;
|
|
9
|
+
this.northEast = null;
|
|
10
|
+
this.southWest = null;
|
|
11
|
+
};
|
|
12
12
|
module.exports = FormattedRectangle;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedTimeActive = function (id, fromTime, fromPhase, toTime, toPhase) {
|
|
7
|
-
this.conditionId = id;
|
|
8
|
-
this.from = {
|
|
9
|
-
"time": fromTime,
|
|
10
|
-
"period": fromPhase
|
|
11
|
-
};
|
|
12
|
-
this.to = {
|
|
13
|
-
"time": toTime,
|
|
14
|
-
"period": toPhase
|
|
15
|
-
}
|
|
16
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedTimeActive = function (id, fromTime, fromPhase, toTime, toPhase) {
|
|
7
|
+
this.conditionId = id;
|
|
8
|
+
this.from = {
|
|
9
|
+
"time": fromTime,
|
|
10
|
+
"period": fromPhase
|
|
11
|
+
};
|
|
12
|
+
this.to = {
|
|
13
|
+
"time": toTime,
|
|
14
|
+
"period": toPhase
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
module.exports = FormattedTimeActive;
|
package/models/FormattedZone.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var FormattedZone = function () {
|
|
7
|
-
this.zoneName = null;
|
|
8
|
-
this.zoneId = null;
|
|
9
|
-
this.minimumRetriggerTime = null;
|
|
10
|
-
this.timeActive = null;
|
|
11
|
-
this.checkout = null;
|
|
12
|
-
this.actions = {
|
|
13
|
-
soundActions: [],
|
|
14
|
-
customActions: [],
|
|
15
|
-
vibrationActions: [],
|
|
16
|
-
messageActions: [],
|
|
17
|
-
urlActions: []
|
|
18
|
-
};
|
|
19
|
-
this.fences =
|
|
20
|
-
{
|
|
21
|
-
circles: [],
|
|
22
|
-
rectangles: [],
|
|
23
|
-
polygons: [],
|
|
24
|
-
polylines: []
|
|
25
|
-
};
|
|
26
|
-
this.beacons = [];
|
|
27
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var FormattedZone = function () {
|
|
7
|
+
this.zoneName = null;
|
|
8
|
+
this.zoneId = null;
|
|
9
|
+
this.minimumRetriggerTime = null;
|
|
10
|
+
this.timeActive = null;
|
|
11
|
+
this.checkout = null;
|
|
12
|
+
this.actions = {
|
|
13
|
+
soundActions: [],
|
|
14
|
+
customActions: [],
|
|
15
|
+
vibrationActions: [],
|
|
16
|
+
messageActions: [],
|
|
17
|
+
urlActions: []
|
|
18
|
+
};
|
|
19
|
+
this.fences =
|
|
20
|
+
{
|
|
21
|
+
circles: [],
|
|
22
|
+
rectangles: [],
|
|
23
|
+
polygons: [],
|
|
24
|
+
polylines: []
|
|
25
|
+
};
|
|
26
|
+
this.beacons = [];
|
|
27
|
+
};
|
|
28
28
|
module.exports = FormattedZone;
|
package/models/GeoFence.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
Schema = mongoose.Schema;
|
|
8
|
-
|
|
9
|
-
var FenceSchema = new mongoose.Schema({
|
|
10
|
-
_id : {type: String},
|
|
11
|
-
"geometry": {
|
|
12
|
-
"type": { type: String, required: true },
|
|
13
|
-
"coordinates": { type: Array, required: true}
|
|
14
|
-
},
|
|
15
|
-
"fenceId" : String,
|
|
16
|
-
"fenceName" : String
|
|
17
|
-
},
|
|
18
|
-
{ collection : 'GeoFence' }
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
var GeoFence = mongoose.model('GeoFence', FenceSchema);
|
|
22
|
-
|
|
23
|
-
module.exports = GeoFence;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
Schema = mongoose.Schema;
|
|
8
|
+
|
|
9
|
+
var FenceSchema = new mongoose.Schema({
|
|
10
|
+
_id : {type: String},
|
|
11
|
+
"geometry": {
|
|
12
|
+
"type": { type: String, required: true },
|
|
13
|
+
"coordinates": { type: Array, required: true}
|
|
14
|
+
},
|
|
15
|
+
"fenceId" : String,
|
|
16
|
+
"fenceName" : String
|
|
17
|
+
},
|
|
18
|
+
{ collection : 'GeoFence' }
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
var GeoFence = mongoose.model('GeoFence', FenceSchema);
|
|
22
|
+
|
|
23
|
+
module.exports = GeoFence;
|
package/models/Geofeature.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Andrew on 7/06/2016.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose'),
|
|
7
|
-
Schema = mongoose.Schema;
|
|
8
|
-
|
|
9
|
-
var GeofeatureSchema = new Schema({
|
|
10
|
-
_id: Schema.Types.ObjectId,
|
|
11
|
-
_class: {type: String, default: "au.com.bluedot.application.spring.GeoFeature"},
|
|
12
|
-
geometry: Schema.Types.Mixed,
|
|
13
|
-
referenceId: String,
|
|
14
|
-
apiKey: String,
|
|
15
|
-
zoneId: String,
|
|
16
|
-
type: String,
|
|
17
|
-
name: String,
|
|
18
|
-
beaconType: String,
|
|
19
|
-
creationTime : {type: Date, default: Date.now},
|
|
20
|
-
lastUpdateTime : {type: Date, default: Date.now},
|
|
21
|
-
},
|
|
22
|
-
{ collection : 'geofeature' });
|
|
23
|
-
|
|
24
|
-
var Geofeature = mongoose.model('Geofeature', GeofeatureSchema);
|
|
25
|
-
|
|
26
|
-
module.exports = Geofeature;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Andrew on 7/06/2016.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose'),
|
|
7
|
+
Schema = mongoose.Schema;
|
|
8
|
+
|
|
9
|
+
var GeofeatureSchema = new Schema({
|
|
10
|
+
_id: Schema.Types.ObjectId,
|
|
11
|
+
_class: {type: String, default: "au.com.bluedot.application.spring.GeoFeature"},
|
|
12
|
+
geometry: Schema.Types.Mixed,
|
|
13
|
+
referenceId: String,
|
|
14
|
+
apiKey: String,
|
|
15
|
+
zoneId: String,
|
|
16
|
+
type: String,
|
|
17
|
+
name: String,
|
|
18
|
+
beaconType: String,
|
|
19
|
+
creationTime : {type: Date, default: Date.now},
|
|
20
|
+
lastUpdateTime : {type: Date, default: Date.now},
|
|
21
|
+
},
|
|
22
|
+
{ collection : 'geofeature' });
|
|
23
|
+
|
|
24
|
+
var Geofeature = mongoose.model('Geofeature', GeofeatureSchema);
|
|
25
|
+
|
|
26
|
+
module.exports = Geofeature;
|
package/models/MessageAction.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
var StateEnum = require('@bluedot-innovation/enums').StateEnum;
|
|
8
|
-
|
|
9
|
-
var MessageActionSchema = new mongoose.Schema({
|
|
10
|
-
guid : {type: String},
|
|
11
|
-
title : {type: String},
|
|
12
|
-
creationTime : {type: Date, default: Date.now},
|
|
13
|
-
actionName : String,
|
|
14
|
-
type: {type: String, default: 'message'},
|
|
15
|
-
_class: {type: String, default: 'au.com.bluedot.application.spring.action.MessageAction'},
|
|
16
|
-
description : {type: String, default: ''},
|
|
17
|
-
message : String,
|
|
18
|
-
dataSource: {type:String, select: false, default : 'openApi'},
|
|
19
|
-
lastUpdateTime : {type: Date, default: Date.now},
|
|
20
|
-
state: {type: String, default : StateEnum.active, select: false},
|
|
21
|
-
filters: []
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
_id: false
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
var MessageAction = mongoose.model('MessageAction', MessageActionSchema);
|
|
28
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
var StateEnum = require('@bluedot-innovation/enums').StateEnum;
|
|
8
|
+
|
|
9
|
+
var MessageActionSchema = new mongoose.Schema({
|
|
10
|
+
guid : {type: String},
|
|
11
|
+
title : {type: String},
|
|
12
|
+
creationTime : {type: Date, default: Date.now},
|
|
13
|
+
actionName : String,
|
|
14
|
+
type: {type: String, default: 'message'},
|
|
15
|
+
_class: {type: String, default: 'au.com.bluedot.application.spring.action.MessageAction'},
|
|
16
|
+
description : {type: String, default: ''},
|
|
17
|
+
message : String,
|
|
18
|
+
dataSource: {type:String, select: false, default : 'openApi'},
|
|
19
|
+
lastUpdateTime : {type: Date, default: Date.now},
|
|
20
|
+
state: {type: String, default : StateEnum.active, select: false},
|
|
21
|
+
filters: []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
_id: false
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
var MessageAction = mongoose.model('MessageAction', MessageActionSchema);
|
|
28
|
+
|
|
29
29
|
module.exports = MessageAction;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var NotificationLogEntry = mongoose.model('NotificationLogEntry', new mongoose.Schema(
|
|
10
|
-
{
|
|
11
|
-
_id: String,
|
|
12
|
-
"notification.zoneId": String,
|
|
13
|
-
creationTime: {type: Date }
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
collection : 'notificationLogEntry'
|
|
17
|
-
}
|
|
18
|
-
));
|
|
19
|
-
module.exports = NotificationLogEntry;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var NotificationLogEntry = mongoose.model('NotificationLogEntry', new mongoose.Schema(
|
|
10
|
+
{
|
|
11
|
+
_id: String,
|
|
12
|
+
"notification.zoneId": String,
|
|
13
|
+
creationTime: {type: Date }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
collection : 'notificationLogEntry'
|
|
17
|
+
}
|
|
18
|
+
));
|
|
19
|
+
module.exports = NotificationLogEntry;
|