@bluedot-innovation/models 2.0.9-alpha.1 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.9-alpha.1",
3
+ "version": "2.0.9",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {
@@ -22,13 +22,12 @@
22
22
  "eslint-plugin-promise": "^3.6.0",
23
23
  "eslint-plugin-standard": "^3.0.1",
24
24
  "mocha": "^4.0.1",
25
- "mockgoose": "^7.3.3",
26
25
  "nyc": "^11.3.0",
27
26
  "sinon": "^4.1.2"
28
27
  },
29
28
  "dependencies": {
30
29
  "@bluedot-innovation/enums": "2.0.2",
31
- "lodash.clonedeep": "^4.5.0",
30
+ "lodash.clonedeep": "4.5.0",
32
31
  "mongoose": "^4.13.9",
33
32
  "mongoose-error-helper": "0.0.2",
34
33
  "mongoose-json-patch": "^1.1.1",
package/models/Fence.js DELETED
@@ -1,20 +0,0 @@
1
- /**
2
- * Created by Arun on 10/09/2014.
3
- * Copyright : Bluedot Innovations.
4
- * Owner :
5
- */
6
- let mongoose = require('mongoose')
7
- const Schema = mongoose.Schema
8
-
9
- let 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
- let Fence = mongoose.model('Fence', FenceSchema)
19
-
20
- module.exports = Fence
@@ -1,21 +0,0 @@
1
- /**
2
- * Created by Arun on 10/09/2014.
3
- * Copyright : Bluedot Innovations.
4
- * Owner :
5
- */
6
- let mongoose = require('mongoose')
7
-
8
- let FenceSchema = new mongoose.Schema({
9
- _id: {type: String},
10
- 'geometry': {
11
- 'type': { type: String, required: true },
12
- 'coordinates': {type: Array, required: true}
13
- },
14
- 'fenceId': String,
15
- 'fenceName': String
16
- },
17
- {collection: 'GeoFence'})
18
-
19
- let GeoFence = mongoose.model('GeoFence', FenceSchema)
20
-
21
- module.exports = GeoFence
@@ -1,24 +0,0 @@
1
- /**
2
- * Created by Andrew on 7/06/2016.
3
- * Copyright : Bluedot Innovations.
4
- * Owner :
5
- */
6
- let mongoose = require('mongoose')
7
- let Schema = mongoose.Schema
8
-
9
- let GeofeatureSchema = new Schema({
10
- geometry: Schema.Types.Mixed,
11
- referenceId: String,
12
- apiKey: String,
13
- zoneId: String,
14
- type: String,
15
- name: String,
16
- beaconType: String,
17
- creationTime: {type: Date, default: Date.now},
18
- lastUpdateTime: {type: Date, default: Date.now}
19
- },
20
- { collection: 'geofeature' })
21
-
22
- let Geofeature = mongoose.model('Geofeature', GeofeatureSchema)
23
-
24
- module.exports = Geofeature