@bluedot-innovation/models 1.0.1 → 1.0.2
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 +2 -0
- package/models/BeaconFilter.js +1 -1
- package/models/BoundingBox.js +1 -1
- package/models/Circle.js +1 -1
- package/models/Contract.js +1 -1
- package/models/Customer.js +9 -1
- package/models/DBEvent.js +1 -1
- package/models/Fence.js +1 -2
- package/models/Point.js +1 -1
- package/models/Polygon.js +1 -1
- package/models/Polyline.js +1 -1
- package/models/SequenceFilter.js +18 -0
- package/package.json +2 -2
- package/bluedot-innovation-models-1.0.0.tgz +0 -0
- package/models/ConstrainAccuracyAction.js +0 -11
- package/models/CustomerSubscription.js +0 -11
- package/models/FenceCollection.js +0 -17
- package/models/Location.js +0 -31
- package/models/MetaData.js +0 -11
- package/models/Permission.js +0 -11
- package/models/Role.js +0 -11
- package/models/RuleSet.js +0 -11
- package/models/ServerNotificationAction.js +0 -11
- package/models/UserGroup.js +0 -11
- package/test.js +0 -3
package/.npmignore
CHANGED
package/models/BeaconFilter.js
CHANGED
|
@@ -11,7 +11,7 @@ var BeaconFilterSchema = new mongoose.Schema(
|
|
|
11
11
|
"_class" : {type:String, default : "au.com.bluedot.application.spring.filter.spatial.BeaconFilter"},
|
|
12
12
|
"beacon" : {},
|
|
13
13
|
"guid" : String,
|
|
14
|
-
"type" : {type:String, default: "beacon"}
|
|
14
|
+
"type" : {type:String, default: "beacon"}
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
_id: false
|
package/models/BoundingBox.js
CHANGED
package/models/Circle.js
CHANGED
package/models/Contract.js
CHANGED
|
@@ -30,7 +30,7 @@ var Contract = mongoose.model('Contract', new mongoose.Schema(
|
|
|
30
30
|
xeroContactId: String,
|
|
31
31
|
creationTime : {type: Date, default: Date.now},
|
|
32
32
|
lastUpdateTime : {type: Date, default: Date.now},
|
|
33
|
-
dataSource : {type:String, select: false, default : 'adminPortal'}
|
|
33
|
+
dataSource : {type:String, select: false, default : 'adminPortal'}
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
collection : 'contract'
|
package/models/Customer.js
CHANGED
|
@@ -16,8 +16,16 @@ var Customer = mongoose.model('Customer', new mongoose.Schema(
|
|
|
16
16
|
userName: String,
|
|
17
17
|
state: {type:String, default: StateEnum.active},
|
|
18
18
|
"creationTime" : {type: Date, default: Date.now},
|
|
19
|
+
"lastUpdateTime" : {type: Date, default: Date.now},
|
|
19
20
|
"dataSource" : {type:String, select: false, default : 'openApi'},
|
|
20
|
-
integrations: Schema.Types.Mixed
|
|
21
|
+
integrations: Schema.Types.Mixed,
|
|
22
|
+
firstName: String,
|
|
23
|
+
lastName: String,
|
|
24
|
+
oldPassword: String,
|
|
25
|
+
organisationWebsite: String,
|
|
26
|
+
phoneNumber: String,
|
|
27
|
+
createdBy: String,
|
|
28
|
+
address: []
|
|
21
29
|
},
|
|
22
30
|
{
|
|
23
31
|
collection : 'customer'
|
package/models/DBEvent.js
CHANGED
|
@@ -12,7 +12,7 @@ var DBEventSchema = new mongoose.Schema({
|
|
|
12
12
|
customerEmail : String,
|
|
13
13
|
actionName : String,
|
|
14
14
|
referenceId: String,
|
|
15
|
-
creationTime: {type: Date, select: false},
|
|
15
|
+
creationTime: {type: Date, select: false, default: Date.now},
|
|
16
16
|
},
|
|
17
17
|
{ collection : 'dbevent' }
|
|
18
18
|
);
|
package/models/Fence.js
CHANGED
|
@@ -13,8 +13,7 @@ var FenceSchema = new mongoose.Schema({
|
|
|
13
13
|
"type" : {type:String, default: "Feature"},
|
|
14
14
|
"dataSource" : {type:String, select: false, default : 'openApi'},
|
|
15
15
|
"geometry" : {type: Schema.Types.Mixed, default: {}}
|
|
16
|
-
}
|
|
17
|
-
{ collection : 'au.com.bluedot.application.model.geo.Fence' }
|
|
16
|
+
}
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
var Fence = mongoose.model('Fence', FenceSchema);
|
package/models/Point.js
CHANGED
package/models/Polygon.js
CHANGED
package/models/Polyline.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Andrew on 24/01/2017.
|
|
3
|
+
* Copyright : Bluedot Innovations.
|
|
4
|
+
*/
|
|
5
|
+
var mongoose = require('mongoose');
|
|
6
|
+
|
|
7
|
+
var SequenceFilter = mongoose.model('SequenceFilter', mongoose.Schema({
|
|
8
|
+
guid: {type: String},
|
|
9
|
+
_class : {type: String, default:"au.com.bluedot.application.spring.filter.action.SequenceFilter"},
|
|
10
|
+
percentage : Number,
|
|
11
|
+
timeOutSeconds : Number,
|
|
12
|
+
type : {type: String, default:"sequenceFilter"},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
_id: false
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
module.exports = SequenceFilter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluedot-innovation/models",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "Models.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"mongoose": "4.6
|
|
12
|
+
"mongoose": "4.7.6",
|
|
13
13
|
"@bluedot-innovation/enums": "1.0.0"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var ConstrainAccuracyAction = mongoose.model('ConstrainAccuracyAction', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.action.ConstrainAccuracyAction' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = ConstrainAccuracyAction;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var CustomerSubscription = mongoose.model('CustomerSubscription', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.subscription.CustomerSubscription' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = CustomerSubscription;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
Reference = require('./Reference');
|
|
8
|
-
Schema = mongoose.Schema;
|
|
9
|
-
var FenceCollection = mongoose.model('FenceCollection', new mongoose.Schema({
|
|
10
|
-
c : {type: String, default:'java.util.LinkedHashSet'},
|
|
11
|
-
d : [Reference]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
_id: false
|
|
15
|
-
}
|
|
16
|
-
));
|
|
17
|
-
module.exports = FenceCollection;
|
package/models/Location.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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 Location = mongoose.model('Location', mongoose.Schema(
|
|
11
|
-
{
|
|
12
|
-
"c" : {type:String, default : "au.com.bluedot.model.geo.Location"},
|
|
13
|
-
"d" : {
|
|
14
|
-
"accuracy" : {type: Number, default :0.0000000000000000},
|
|
15
|
-
"point" : {
|
|
16
|
-
"type" : {type:String, default:"Point"},
|
|
17
|
-
"coordinates" : [
|
|
18
|
-
Number
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"altitudeAccuracy" : {type:Number, default:0.0000000000000000},
|
|
22
|
-
"altitude" : {type:Number, default: 0.0000000000000000}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
_id: false
|
|
27
|
-
}
|
|
28
|
-
));
|
|
29
|
-
|
|
30
|
-
module.exports = Location;
|
|
31
|
-
|
package/models/MetaData.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var MetaData = mongoose.model('MetaData', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.ui.MetaData' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = MetaData;
|
package/models/Permission.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var Permission = mongoose.model('Permission', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.security.Permission' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = Permission;
|
package/models/Role.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var Role = mongoose.model('Role', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.security.Role' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = Role;
|
package/models/RuleSet.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var RuleSet = mongoose.model('RuleSet', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.ruleEngine.model.rule.RuleSet' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = RuleSet;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var ServerNotificationAction = mongoose.model('ServerNotificationAction', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.action.ServerNotificationAction' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = ServerNotificationAction;
|
package/models/UserGroup.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Arun on 10/09/2014.
|
|
3
|
-
* Copyright : Bluedot Innovations.
|
|
4
|
-
* Owner :
|
|
5
|
-
*/
|
|
6
|
-
var mongoose = require('mongoose');
|
|
7
|
-
|
|
8
|
-
var UserGroup = mongoose.model('UserGroup', new mongoose.Schema({},
|
|
9
|
-
{ collection : 'au.com.bluedot.application.model.security.UserGroup' }
|
|
10
|
-
));
|
|
11
|
-
module.exports = UserGroup;
|
package/test.js
DELETED