@bluedot-innovation/models 1.0.9 → 1.0.10
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 -13
- package/models/AdminPortalUser.js +26 -26
- 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/CustomerLogin.js +28 -0
- 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/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;
|
package/models/POILocation.js
CHANGED
|
@@ -1,20 +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;
|
|
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;
|
package/models/POILookup.js
CHANGED
|
@@ -1,30 +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;
|
|
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;
|
package/models/POIResult.js
CHANGED
|
@@ -1,20 +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;
|
|
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;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright : Bluedot Innovations.
|
|
3
|
-
*/
|
|
4
|
-
var mongoose = require('mongoose');
|
|
5
|
-
var StateEnum = require('@bluedot-innovation/enums').StateEnum;
|
|
6
|
-
|
|
7
|
-
var PartnerCustomer = mongoose.model('PartnerCustomer', new mongoose.Schema(
|
|
8
|
-
{
|
|
9
|
-
emailAddress: { type : String , unique : true },
|
|
10
|
-
password: String,
|
|
11
|
-
firstName: String,
|
|
12
|
-
lastName: String,
|
|
13
|
-
companyName: String,
|
|
14
|
-
website: String,
|
|
15
|
-
jobTitle: String,
|
|
16
|
-
phoneNumber: String,
|
|
17
|
-
country: String,
|
|
18
|
-
city: String,
|
|
19
|
-
isAppPublished: Boolean,
|
|
20
|
-
hasDemonstrated: Boolean,
|
|
21
|
-
isUsingGeofencing: Boolean,
|
|
22
|
-
additionalComments: String,
|
|
23
|
-
referredBy:mongoose.Schema.Types.ObjectId,
|
|
24
|
-
state: {type:String, default: StateEnum.active},
|
|
25
|
-
"creationTime" : {type: Date, default: Date.now},
|
|
26
|
-
"dataSource" : {type:String, select: false, default : 'PartnerPortal'},
|
|
27
|
-
partnerId: String
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
collection : 'partnerCustomer'
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
module.exports = PartnerCustomer;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright : Bluedot Innovations.
|
|
3
|
+
*/
|
|
4
|
+
var mongoose = require('mongoose');
|
|
5
|
+
var StateEnum = require('@bluedot-innovation/enums').StateEnum;
|
|
6
|
+
|
|
7
|
+
var PartnerCustomer = mongoose.model('PartnerCustomer', new mongoose.Schema(
|
|
8
|
+
{
|
|
9
|
+
emailAddress: { type : String , unique : true },
|
|
10
|
+
password: String,
|
|
11
|
+
firstName: String,
|
|
12
|
+
lastName: String,
|
|
13
|
+
companyName: String,
|
|
14
|
+
website: String,
|
|
15
|
+
jobTitle: String,
|
|
16
|
+
phoneNumber: String,
|
|
17
|
+
country: String,
|
|
18
|
+
city: String,
|
|
19
|
+
isAppPublished: Boolean,
|
|
20
|
+
hasDemonstrated: Boolean,
|
|
21
|
+
isUsingGeofencing: Boolean,
|
|
22
|
+
additionalComments: String,
|
|
23
|
+
referredBy:mongoose.Schema.Types.ObjectId,
|
|
24
|
+
state: {type:String, default: StateEnum.active},
|
|
25
|
+
"creationTime" : {type: Date, default: Date.now},
|
|
26
|
+
"dataSource" : {type:String, select: false, default : 'PartnerPortal'},
|
|
27
|
+
partnerId: String
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
collection : 'partnerCustomer'
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
module.exports = PartnerCustomer;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright : Bluedot Innovations.
|
|
3
|
-
*/
|
|
4
|
-
var mongoose = require('mongoose');
|
|
5
|
-
|
|
6
|
-
var PartnerPasswordReset = mongoose.model('PartnerPasswordReset', new mongoose.Schema(
|
|
7
|
-
{
|
|
8
|
-
emailAddress: String,
|
|
9
|
-
partnerUserId: String,
|
|
10
|
-
token: String,
|
|
11
|
-
"creationTime" : {type: Date, default: Date.now},
|
|
12
|
-
"dataSource" : {type:String, select: false, default : 'PartnerPortal'}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
collection : 'partnerPasswordReset'
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
module.exports = PartnerPasswordReset;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright : Bluedot Innovations.
|
|
3
|
+
*/
|
|
4
|
+
var mongoose = require('mongoose');
|
|
5
|
+
|
|
6
|
+
var PartnerPasswordReset = mongoose.model('PartnerPasswordReset', new mongoose.Schema(
|
|
7
|
+
{
|
|
8
|
+
emailAddress: String,
|
|
9
|
+
partnerUserId: String,
|
|
10
|
+
token: String,
|
|
11
|
+
"creationTime" : {type: Date, default: Date.now},
|
|
12
|
+
"dataSource" : {type:String, select: false, default : 'PartnerPortal'}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
collection : 'partnerPasswordReset'
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
module.exports = PartnerPasswordReset;
|
package/models/PartnerUser.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright : Bluedot Innovations.
|
|
3
|
-
*/
|
|
4
|
-
var mongoose = require('mongoose');
|
|
5
|
-
var StateEnum = require('@bluedot-innovation/enums').StateEnum;
|
|
6
|
-
|
|
7
|
-
var PartnerUser = mongoose.model('PartnerUser', new mongoose.Schema(
|
|
8
|
-
{
|
|
9
|
-
emailAddress: String,
|
|
10
|
-
password: String,
|
|
11
|
-
firstName: String,
|
|
12
|
-
lastName: String,
|
|
13
|
-
companyName: String,
|
|
14
|
-
jobTitle: String,
|
|
15
|
-
activationToken: String,
|
|
16
|
-
approvalToken: String,
|
|
17
|
-
phoneNumber: String,
|
|
18
|
-
partnerCompany: String,
|
|
19
|
-
state: {type:String, default: StateEnum.active},
|
|
20
|
-
"creationTime" : {type: Date, default: Date.now},
|
|
21
|
-
"dataSource" : {type:String, select: false, default : 'PartnerPortal'},
|
|
22
|
-
partnerId: String
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
collection : 'partnerUser'
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
module.exports = PartnerUser;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright : Bluedot Innovations.
|
|
3
|
+
*/
|
|
4
|
+
var mongoose = require('mongoose');
|
|
5
|
+
var StateEnum = require('@bluedot-innovation/enums').StateEnum;
|
|
6
|
+
|
|
7
|
+
var PartnerUser = mongoose.model('PartnerUser', new mongoose.Schema(
|
|
8
|
+
{
|
|
9
|
+
emailAddress: String,
|
|
10
|
+
password: String,
|
|
11
|
+
firstName: String,
|
|
12
|
+
lastName: String,
|
|
13
|
+
companyName: String,
|
|
14
|
+
jobTitle: String,
|
|
15
|
+
activationToken: String,
|
|
16
|
+
approvalToken: String,
|
|
17
|
+
phoneNumber: String,
|
|
18
|
+
partnerCompany: String,
|
|
19
|
+
state: {type:String, default: StateEnum.active},
|
|
20
|
+
"creationTime" : {type: Date, default: Date.now},
|
|
21
|
+
"dataSource" : {type:String, select: false, default : 'PartnerPortal'},
|
|
22
|
+
partnerId: String
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
collection : 'partnerUser'
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
module.exports = PartnerUser;
|
package/models/Partners.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Ram on 8/12/2016.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
var mongoose = require('mongoose');
|
|
6
|
-
|
|
7
|
-
var Partners = mongoose.model('Partners', new mongoose.Schema(
|
|
8
|
-
{
|
|
9
|
-
name: String,
|
|
10
|
-
notificationEmail: String
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
collection : 'partners'
|
|
14
|
-
}
|
|
15
|
-
)
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
module.exports = Partners;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Ram on 8/12/2016.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
var mongoose = require('mongoose');
|
|
6
|
+
|
|
7
|
+
var Partners = mongoose.model('Partners', new mongoose.Schema(
|
|
8
|
+
{
|
|
9
|
+
name: String,
|
|
10
|
+
notificationEmail: String
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
collection : 'partners'
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
module.exports = Partners;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 30/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var PercentageCrossedFilter = mongoose.model('PercentageCrossedFilter', mongoose.Schema({
|
|
9
|
-
guid: {type: String},
|
|
10
|
-
_class : {type: String, default:"au.com.bluedot.application.spring.filter.action.PercentageCrossedFilter"},
|
|
11
|
-
percentage : Number,
|
|
12
|
-
timeOutSeconds : Number,
|
|
13
|
-
type : {type: String, default:"percentageCrossedFilter"},
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
_id: false
|
|
17
|
-
}
|
|
18
|
-
));
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 30/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
|
|
8
|
+
var PercentageCrossedFilter = mongoose.model('PercentageCrossedFilter', mongoose.Schema({
|
|
9
|
+
guid: {type: String},
|
|
10
|
+
_class : {type: String, default:"au.com.bluedot.application.spring.filter.action.PercentageCrossedFilter"},
|
|
11
|
+
percentage : Number,
|
|
12
|
+
timeOutSeconds : Number,
|
|
13
|
+
type : {type: String, default:"percentageCrossedFilter"},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
_id: false
|
|
17
|
+
}
|
|
18
|
+
));
|
|
19
19
|
module.exports = PercentageCrossedFilter;
|
package/models/Point.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 30/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
var mongoose = require('mongoose');
|
|
8
|
-
Schema = mongoose.Schema;
|
|
9
|
-
|
|
10
|
-
var Point = mongoose.model('Point', mongoose.Schema(
|
|
11
|
-
{
|
|
12
|
-
"type" : {type:String, default : "Point"},
|
|
13
|
-
"coordinates" : Array
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
_id: false
|
|
17
|
-
}
|
|
18
|
-
));
|
|
19
|
-
|
|
20
|
-
module.exports = Point;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 30/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
var mongoose = require('mongoose');
|
|
8
|
+
Schema = mongoose.Schema;
|
|
9
|
+
|
|
10
|
+
var Point = mongoose.model('Point', mongoose.Schema(
|
|
11
|
+
{
|
|
12
|
+
"type" : {type:String, default : "Point"},
|
|
13
|
+
"coordinates" : Array
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
_id: false
|
|
17
|
+
}
|
|
18
|
+
));
|
|
19
|
+
|
|
20
|
+
module.exports = Point;
|
package/models/Polygon.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 30/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
Schema = mongoose.Schema;
|
|
9
|
-
var Polygon = mongoose.model('Polygon', mongoose.Schema(
|
|
10
|
-
{
|
|
11
|
-
type: {type: String, default: "MultiLineString"},
|
|
12
|
-
"coordinates" : Array
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
_id: false
|
|
16
|
-
}));
|
|
17
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 30/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
|
|
8
|
+
Schema = mongoose.Schema;
|
|
9
|
+
var Polygon = mongoose.model('Polygon', mongoose.Schema(
|
|
10
|
+
{
|
|
11
|
+
type: {type: String, default: "MultiLineString"},
|
|
12
|
+
"coordinates" : Array
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
_id: false
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
18
|
module.exports = Polygon;
|
package/models/Polyline.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 30/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
Schema = mongoose.Schema;
|
|
9
|
-
var Polyline = mongoose.model('Polyline', mongoose.Schema(
|
|
10
|
-
{
|
|
11
|
-
type: {type: String, default: "LineString"},
|
|
12
|
-
"coordinates" : Array
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
_id: false
|
|
16
|
-
}));
|
|
17
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 30/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
|
|
8
|
+
Schema = mongoose.Schema;
|
|
9
|
+
var Polyline = mongoose.model('Polyline', mongoose.Schema(
|
|
10
|
+
{
|
|
11
|
+
type: {type: String, default: "LineString"},
|
|
12
|
+
"coordinates" : Array
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
_id: false
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
18
|
module.exports = Polyline;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
var PropertyMapping = new mongoose.Schema({
|
|
8
|
-
_id : String,
|
|
9
|
-
first_property : String,
|
|
10
|
-
second_property : String,
|
|
11
|
-
frequency : Number,
|
|
12
|
-
dateUpdated : Date
|
|
13
|
-
}, { collection : 'PropertyMapping' });
|
|
14
|
-
|
|
15
|
-
var PropertyMapping = mongoose.model('PropertyMapping', PropertyMapping);
|
|
16
|
-
|
|
17
|
-
module.exports = PropertyMapping;
|
|
1
|
+
/**
|
|
2
|
+
* Created by Arun on 10/09/2014.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
* Owner :
|
|
5
|
+
*/
|
|
6
|
+
var mongoose = require('mongoose');
|
|
7
|
+
var PropertyMapping = new mongoose.Schema({
|
|
8
|
+
_id : String,
|
|
9
|
+
first_property : String,
|
|
10
|
+
second_property : String,
|
|
11
|
+
frequency : Number,
|
|
12
|
+
dateUpdated : Date
|
|
13
|
+
}, { collection : 'PropertyMapping' });
|
|
14
|
+
|
|
15
|
+
var PropertyMapping = mongoose.model('PropertyMapping', PropertyMapping);
|
|
16
|
+
|
|
17
|
+
module.exports = PropertyMapping;
|