@bluedot-innovation/models 5.1.3-alpha.3 → 5.1.4
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 +12 -0
- package/__tests__/geofeature/boundingBox/boundingBox.rules.json +1 -1
- package/__tests__/geofeature/circle/circle.rules.json +1 -1
- package/__tests__/geofeature/geoline/geoline.rules.json +1 -1
- package/__tests__/geofeature/polygon/polygon.rules.json +1 -1
- package/models/geofeatures/BoundingBox.js +1 -1
- package/models/geofeatures/Circle.js +1 -1
- package/models/geofeatures/Geoline.js +1 -1
- package/models/geofeatures/Polygon.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 5.1.4
|
|
2
|
+
- Remove ProjectPermissions required validation
|
|
3
|
+
|
|
4
|
+
## 5.1.3
|
|
5
|
+
- Added bluedot's mongoose-json-patch
|
|
6
|
+
|
|
7
|
+
## 5.1.2
|
|
8
|
+
- Remove Accuracy required validation
|
|
9
|
+
|
|
10
|
+
## 5.1.1
|
|
11
|
+
- Added ProjectPermisisons as required
|
|
12
|
+
|
|
1
13
|
## 5.0.4
|
|
2
14
|
- Removed value 'configurationChanged' from typeEnum from Webhook schema
|
|
3
15
|
|
|
@@ -9,7 +9,7 @@ const schema = {
|
|
|
9
9
|
geometry: {type: {}},
|
|
10
10
|
name: {type: String, required: [true, 'name is required.']},
|
|
11
11
|
color: String,
|
|
12
|
-
accuracy: {type: String,
|
|
12
|
+
accuracy: {type: String, enum: Object.values(ZoneEnum.fenceAccuracy)},
|
|
13
13
|
northEast: {type: Point, required: [true, 'northEast is required.']},
|
|
14
14
|
southWest: {
|
|
15
15
|
type: Point, required: [true, 'southWest is required.'],
|
|
@@ -8,7 +8,7 @@ let schema = {
|
|
|
8
8
|
geometry: {type: {}},
|
|
9
9
|
name: {type: String, required: [true, 'name is required. ']},
|
|
10
10
|
color: String,
|
|
11
|
-
accuracy: {type: String,
|
|
11
|
+
accuracy: {type: String, enum: Object.values(ZoneEnum.fenceAccuracy)},
|
|
12
12
|
radius: {type: Number, required: [true, 'radius is required. '], min: 5},
|
|
13
13
|
center: {type: Point, required: [true, 'center is required. ']}
|
|
14
14
|
}
|
|
@@ -7,7 +7,7 @@ const schema = {
|
|
|
7
7
|
_id: {type: String, default: uuidv4},
|
|
8
8
|
geometry: {type: {}},
|
|
9
9
|
name: {type: String, required: [true, 'name is required. ']},
|
|
10
|
-
accuracy: {type: String,
|
|
10
|
+
accuracy: {type: String, default: ZoneEnum.fenceAccuracy.HIGH},
|
|
11
11
|
vertices: {type: [Point], required: [true, 'vertices are required. ']}
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -11,7 +11,7 @@ const schema = {
|
|
|
11
11
|
geometry: {type: {}},
|
|
12
12
|
name: {type: String, required: [true, 'name is required.']},
|
|
13
13
|
color: String,
|
|
14
|
-
accuracy: {type: String,
|
|
14
|
+
accuracy: {type: String, enum: Object.values(ZoneEnum.fenceAccuracy)},
|
|
15
15
|
vertices: {
|
|
16
16
|
type: [Point], required: [true, 'vertices is required.'],
|
|
17
17
|
validate: [{
|
package/package.json
CHANGED