@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 CHANGED
@@ -1 +1,3 @@
1
1
  .idea
2
+ node_modules
3
+ *.tgz
@@ -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
@@ -8,7 +8,7 @@ Schema = mongoose.Schema;
8
8
 
9
9
  var BoundingBox = mongoose.model('BoundingBox', mongoose.Schema({
10
10
  type: {type: String, default: "MultiLineString"},
11
- "coordinates" : [],
11
+ "coordinates" : []
12
12
  },
13
13
  {
14
14
  _id: false
package/models/Circle.js CHANGED
@@ -12,7 +12,7 @@ var mongoose = require('mongoose');
12
12
  Schema = mongoose.Schema;
13
13
  var Circle = mongoose.model('Circle', mongoose.Schema({
14
14
  "type": {type: String, default: "MultiLineString"},
15
- "coordinates" : Array,
15
+ "coordinates" : Array
16
16
  },
17
17
  {
18
18
  _id: false
@@ -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'
@@ -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
@@ -10,7 +10,7 @@ Schema = mongoose.Schema;
10
10
  var Point = mongoose.model('Point', mongoose.Schema(
11
11
  {
12
12
  "type" : {type:String, default : "Point"},
13
- "coordinates" : Array,
13
+ "coordinates" : Array
14
14
  },
15
15
  {
16
16
  _id: false
package/models/Polygon.js CHANGED
@@ -9,7 +9,7 @@ Schema = mongoose.Schema;
9
9
  var Polygon = mongoose.model('Polygon', mongoose.Schema(
10
10
  {
11
11
  type: {type: String, default: "MultiLineString"},
12
- "coordinates" : Array,
12
+ "coordinates" : Array
13
13
  },
14
14
  {
15
15
  _id: false
@@ -9,7 +9,7 @@ Schema = mongoose.Schema;
9
9
  var Polyline = mongoose.model('Polyline', mongoose.Schema(
10
10
  {
11
11
  type: {type: String, default: "LineString"},
12
- "coordinates" : Array,
12
+ "coordinates" : Array
13
13
  },
14
14
  {
15
15
  _id: false
@@ -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.1",
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.0",
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;
@@ -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
-
@@ -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;
@@ -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;
@@ -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
@@ -1,3 +0,0 @@
1
- /**
2
- * Created by andrewstirling on 22/12/16.
3
- */