@bluedot-innovation/models 2.0.3-alpha.3 → 2.0.3

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.
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- requiredFields: ['name', 'lastUpdateTime', 'creationTime'],
2
+ requiredFields: ['name'],
3
3
  customValidators: [
4
4
  {name: 'poiCredits', invalidInputs: ['a string']},
5
5
  {name: 'creationTime', invalidInputs: ['21/07/2017', 'thursday']},
@@ -1,5 +1,5 @@
1
1
  {
2
- "requiredFields": ["name", "nextRuleUpdateInterval", "lastUpdateTime", "creationTime", "accountId"],
2
+ "requiredFields": ["name", "nextRuleUpdateInterval", "accountId"],
3
3
  "customValidators": [
4
4
  {"name": "nextRuleUpdateInterval", "invalidInput": [5000.5556]},
5
5
  {"name": "lastUpdateTime", "invalidInput": ["21/07/2017", "saturday"]},
package/models/Beacon.js CHANGED
@@ -33,7 +33,7 @@ let schema = {
33
33
  location: {type: Point},
34
34
  proximity: {type: String, default: 'Far'},
35
35
  accountId: {
36
- type: String, required: false
36
+ type: String, required: true
37
37
  },
38
38
  // These must be unique
39
39
  major: {type: Number, validate: [{validator: validateMajorMinor, msg: 'Major needs to be within range(1-65535)'}]},
@@ -1,3 +1,4 @@
1
+ // In V2 this is becoming "Travel Path" filter
1
2
  let mongoose = require('mongoose')
2
3
  let uuidv4 = require('uuid/v4')
3
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.3-alpha.3",
3
+ "version": "2.0.3",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  "sinon": "^4.1.2"
28
28
  },
29
29
  "dependencies": {
30
- "@bluedot-innovation/enums": "^1.0.2",
30
+ "@bluedot-innovation/enums": "2.0.0",
31
31
  "mongoose": "^4.13.9",
32
32
  "mongoose-error-helper": "0.0.2",
33
33
  "mongoose-json-patch": "^1.1.1",