Skip to content

Commit fc9fe84

Browse files
authored
Merge pull request #49 from fleetbase/codex/geofence-trigger-model-attrs
Add geofence trigger attrs to zone and service area models
2 parents 999e7c9 + aea184d commit fc9fe84

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

addon/models/service-area.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export default class ServiceAreaModel extends Model {
1919
@attr('string') color;
2020
@attr('string') stroke_color;
2121
@attr('string') status;
22+
@attr('boolean') trigger_on_entry;
23+
@attr('boolean') trigger_on_exit;
24+
@attr('number') dwell_threshold_minutes;
25+
@attr('number') speed_limit_kmh;
2226
@attr('multi-polygon') border;
2327
@attr('point') center;
2428

addon/models/zone.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export default class ZoneModel extends Model {
1717
@attr('string') color;
1818
@attr('string') stroke_color;
1919
@attr('string') status;
20+
@attr('boolean') trigger_on_entry;
21+
@attr('boolean') trigger_on_exit;
22+
@attr('number') dwell_threshold_minutes;
23+
@attr('number') speed_limit_kmh;
2024
@attr('polygon') border;
2125
@attr('point') center;
2226

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fleetbase/fleetops-data",
3-
"version": "0.1.28",
3+
"version": "0.1.29",
44
"description": "Fleetbase Fleet-Ops based models, serializers, transforms, adapters and GeoJson utility functions.",
55
"keywords": [
66
"fleetbase-data",

0 commit comments

Comments
 (0)