@bluedot-innovation/models 2.0.19-alpha.21 → 2.0.19-alpha.23

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.
Files changed (2) hide show
  1. package/models/Zone.js +5 -5
  2. package/package.json +1 -1
package/models/Zone.js CHANGED
@@ -83,11 +83,11 @@ zoneSchema.path('filters').discriminator('percentageCrossed', new Schema(percent
83
83
  zoneSchema.path('filters').discriminator('speed', new Schema(speedFilterSchema))
84
84
  zoneSchema.path('filters').discriminator('timeOfDayRange', new Schema(timeOfDayRangeFilterSchema))
85
85
 
86
- zoneSchema.path('geofeatures').discriminator('beacon', new Schema(beaconSchema))
87
- zoneSchema.path('geofeatures').discriminator('circle', new Schema(circleSchema))
88
- zoneSchema.path('geofeatures').discriminator('polygon', new Schema(polygonSchema))
89
- zoneSchema.path('geofeatures').discriminator('polyline', new Schema(polylineSchema))
90
- zoneSchema.path('geofeatures').discriminator('boundingBox', new Schema(boundingBoxSchema))
86
+ zoneSchema.path('geofeatures').discriminator('beacon', new Schema(beaconSchema).plugin(mongooseHidden))
87
+ zoneSchema.path('geofeatures').discriminator('circle', new Schema(circleSchema).plugin(mongooseHidden))
88
+ zoneSchema.path('geofeatures').discriminator('polygon', new Schema(polygonSchema).plugin(mongooseHidden))
89
+ zoneSchema.path('geofeatures').discriminator('polyline', new Schema(polylineSchema).plugin(mongooseHidden))
90
+ zoneSchema.path('geofeatures').discriminator('boundingBox', new Schema(boundingBoxSchema).plugin(mongooseHidden))
91
91
 
92
92
  // optional mongoose
93
93
  const model = (mongooseInstance) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.19-alpha.21",
3
+ "version": "2.0.19-alpha.23",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {