@bluedot-innovation/models 3.0.1 → 3.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/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.2
2
+ - Remove `_id`'s on the actions and filters (for real this time)
3
+
1
4
  ## 3.0.1
2
5
  - DayRange must have at least startTime or endTime or both
3
6
 
package/models/Zone.js CHANGED
@@ -80,14 +80,14 @@ let zoneSchema = new Schema({
80
80
  // TODO: Test patcher and include for other schemas if required
81
81
  zoneSchema.plugin(patcher)
82
82
 
83
- zoneSchema.path('actions').discriminator('url', new Schema(urlActionSchema))
84
- zoneSchema.path('actions').discriminator('message', new Schema(messageActionSchema))
85
-
86
- zoneSchema.path('filters').discriminator('dayRange', new Schema(dayRangeRawSchema))
87
- zoneSchema.path('filters').discriminator('speed', new Schema(speedRawSchema))
88
- zoneSchema.path('filters').discriminator('timeActive', new Schema(timeActiveRawSchema))
89
- zoneSchema.path('filters').discriminator('travelDirection', new Schema(travelDirectionRawSchema))
90
- zoneSchema.path('filters').discriminator('travelPath', new Schema(travelPathRawSchema))
83
+ zoneSchema.path('actions').discriminator('url', new Schema(urlActionSchema, {_id: false}))
84
+ zoneSchema.path('actions').discriminator('message', new Schema(messageActionSchema, {_id: false}))
85
+
86
+ zoneSchema.path('filters').discriminator('dayRange', new Schema(dayRangeRawSchema, {_id: false}))
87
+ zoneSchema.path('filters').discriminator('speed', new Schema(speedRawSchema, {_id: false}))
88
+ zoneSchema.path('filters').discriminator('timeActive', new Schema(timeActiveRawSchema, {_id: false}))
89
+ zoneSchema.path('filters').discriminator('travelDirection', new Schema(travelDirectionRawSchema, {_id: false}))
90
+ zoneSchema.path('filters').discriminator('travelPath', new Schema(travelPathRawSchema, {_id: false}))
91
91
 
92
92
  zoneSchema.path('geofeatures').discriminator('beacon', new Schema(beaconSchema))
93
93
  zoneSchema.path('geofeatures').discriminator('circle', new Schema(circleSchema))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",