From cdba4743456d93a2f42f1e45572e4261620d0375 Mon Sep 17 00:00:00 2001 From: Ronald A Richardson Date: Tue, 14 Apr 2026 01:19:04 -0400 Subject: [PATCH] feat: add orchestrator capacity and constraint fields to Vehicle and Order models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Vehicle model: add payload_capacity_volume, payload_capacity_pallets, payload_capacity_parcels (following Fleetbase payload_capacity_* naming convention) and orchestrator constraint fields: skills, max_tasks, time_window_start, time_window_end, return_to_depot - Order model: add orchestrator constraint fields: time_window_start, time_window_end, required_skills, orchestrator_priority - Entity model already has weight, weight_unit, length, width, height, dimensions_unit — no changes needed --- addon/models/order.js | 6 ++++++ addon/models/vehicle.js | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/addon/models/order.js b/addon/models/order.js index 890a49d..55b1d45 100644 --- a/addon/models/order.js +++ b/addon/models/order.js @@ -94,6 +94,12 @@ export default class OrderModel extends Model { @attr('raw') tracker_data; @attr('raw') eta; + /** Orchestrator constraints */ + @attr('date') time_window_start; + @attr('date') time_window_end; + @attr('raw') required_skills; + @attr('number') orchestrator_priority; + /** @dates */ @attr('date') scheduled_at; @attr('date') dispatched_at; diff --git a/addon/models/vehicle.js b/addon/models/vehicle.js index 90f1117..5ea3860 100644 --- a/addon/models/vehicle.js +++ b/addon/models/vehicle.js @@ -98,11 +98,21 @@ export default class VehicleModel extends Model { @attr('number') height; @attr('number') towing_capacity; @attr('number') payload_capacity; + @attr('number') payload_capacity_volume; + @attr('number') payload_capacity_pallets; + @attr('number') payload_capacity_parcels; @attr('number') seating_capacity; @attr('number') ground_clearance; @attr('number') bed_length; @attr('number') fuel_capacity; + /** Orchestrator constraints */ + @attr('raw') skills; + @attr('number') max_tasks; + @attr('string') time_window_start; + @attr('string') time_window_end; + @attr('boolean') return_to_depot; + /** Regulatory / compliance */ @attr('string') emission_standard; @attr('boolean') dpf_equipped;