@burdenoff/microfe-movethewheels 2026.1107.2 → 2026.1107.3

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.
@@ -2,21 +2,22 @@ import { Filter as e } from "../node_modules/lucide-react/dist/esm/icons/filter.
2
2
  import { Navigation as t } from "../node_modules/lucide-react/dist/esm/icons/navigation.js";
3
3
  import { Plus as n } from "../node_modules/lucide-react/dist/esm/icons/plus.js";
4
4
  import { RefreshCw as r } from "../node_modules/lucide-react/dist/esm/icons/refresh-cw.js";
5
- import { joinPath as i } from "../utils/navigation.js";
6
- import { useMoveTheWheels as a } from "../providers/MoveTheWheelsProvider.js";
7
- import { formatDate as o, formatDistance as s } from "../utils/formatters.js";
8
- import { useRouteStats as c, useRoutes as l } from "../hooks/useRoutes.js";
9
- import { Badge as u, Button as d, Card as f, CardContent as p, Select as m, SelectContent as h, SelectItem as g, SelectTrigger as _, SelectValue as v } from "../components/ui.js";
10
- import { PageLayout as y } from "../components/PageLayout.js";
11
- import { ROUTE_STATUS_COLORS as b } from "../constants/index.js";
12
- import { StatusBadge as x } from "../components/StatusBadge.js";
13
- import { DataTable as S } from "../components/DataTable.js";
14
- import { useDebouncedValue as C } from "../hooks/useDebouncedValue.js";
15
- import { useState as w } from "react";
16
- import { jsx as T, jsxs as E } from "react/jsx-runtime";
17
- import { CTAOverflowMenu as D, EmphasisPanel as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
5
+ import { WandSparkles as i } from "../node_modules/lucide-react/dist/esm/icons/wand-sparkles.js";
6
+ import { joinPath as a } from "../utils/navigation.js";
7
+ import { useMoveTheWheels as o } from "../providers/MoveTheWheelsProvider.js";
8
+ import { formatDate as s, formatDistance as c } from "../utils/formatters.js";
9
+ import { useRouteStats as l, useRoutes as u } from "../hooks/useRoutes.js";
10
+ import { Badge as d, Button as f, Card as p, CardContent as m, Select as h, SelectContent as g, SelectItem as _, SelectTrigger as v, SelectValue as y } from "../components/ui.js";
11
+ import { PageLayout as b } from "../components/PageLayout.js";
12
+ import { ROUTE_STATUS_COLORS as x } from "../constants/index.js";
13
+ import { StatusBadge as S } from "../components/StatusBadge.js";
14
+ import { DataTable as C } from "../components/DataTable.js";
15
+ import { useDebouncedValue as w } from "../hooks/useDebouncedValue.js";
16
+ import { useState as T } from "react";
17
+ import { jsx as E, jsxs as D } from "react/jsx-runtime";
18
+ import { CTAOverflowMenu as O, EmphasisPanel as k, PagePurpose as A } from "@burdenoff/fe-libs/ui";
18
19
  //#region src/movethewheels/pages/RoutesPage.tsx
19
- var A = [
20
+ var j = [
20
21
  {
21
22
  value: "all",
22
23
  label: "All statuses"
@@ -38,110 +39,114 @@ var A = [
38
39
  label: "Cancelled"
39
40
  }
40
41
  ];
41
- function j() {
42
- let { basePath: j, navigate: M } = a(), [N, P] = w(0), [F, I] = w(25), [L, R] = w(""), [z, B] = w("all"), V = C(L), { routes: H, totalRoutes: U, hasMore: W, isLoading: G, error: K, refetch: q } = l({
43
- limit: F,
44
- offset: N * F,
45
- search: V || void 0,
46
- status: z === "all" ? void 0 : z
47
- }), J = z !== "all" || L.length > 0, { stats: Y } = c(), X = (e) => M?.(i(j, e));
48
- return /* @__PURE__ */ E(y, {
42
+ function M() {
43
+ let { basePath: M, navigate: N } = o(), [P, F] = T(0), [I, L] = T(25), [R, z] = T(""), [B, V] = T("all"), H = w(R), { routes: U, totalRoutes: W, hasMore: G, isLoading: K, error: q, refetch: J } = u({
44
+ limit: I,
45
+ offset: P * I,
46
+ search: H || void 0,
47
+ status: B === "all" ? void 0 : B
48
+ }), Y = B !== "all" || R.length > 0, { stats: X } = l(), Z = (e) => N?.(a(M, e));
49
+ return /* @__PURE__ */ D(b, {
49
50
  title: "Routes",
50
- subtitle: `${Y.totalRoutes} routes`,
51
- icon: /* @__PURE__ */ T(t, { size: 24 }),
52
- headerActions: /* @__PURE__ */ T(D, {
51
+ subtitle: `${X.totalRoutes} routes`,
52
+ icon: /* @__PURE__ */ E(t, { size: 24 }),
53
+ headerActions: /* @__PURE__ */ E(O, {
53
54
  primary: {
54
55
  label: "Create Route",
55
- icon: /* @__PURE__ */ T(n, { size: 16 }),
56
- onSelect: () => X("routes/new")
56
+ icon: /* @__PURE__ */ E(n, { size: 16 }),
57
+ onSelect: () => Z("routes/new")
57
58
  },
58
59
  actions: [{
60
+ label: "Plan dispatch",
61
+ icon: /* @__PURE__ */ E(i, { size: 16 }),
62
+ onSelect: () => Z("routes/dispatch-plan")
63
+ }, {
59
64
  label: "Refresh",
60
- icon: /* @__PURE__ */ T(r, { size: 16 }),
61
- onSelect: () => q()
65
+ icon: /* @__PURE__ */ E(r, { size: 16 }),
66
+ onSelect: () => J()
62
67
  }]
63
68
  }),
64
69
  children: [
65
- /* @__PURE__ */ T(k, {
66
- icon: /* @__PURE__ */ T(t, { size: 18 }),
70
+ /* @__PURE__ */ E(A, {
71
+ icon: /* @__PURE__ */ E(t, { size: 18 }),
67
72
  children: "Routes group multiple delivery stops into an optimized driving plan. Build a route to batch nearby drop-offs, cut distance and fuel, and give drivers a single ordered itinerary — then open one to review stops, distance and optimization status."
68
73
  }),
69
- /* @__PURE__ */ E(O, { children: [/* @__PURE__ */ T("p", {
74
+ /* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E("p", {
70
75
  className: "text-sm font-medium text-text-secondary",
71
76
  children: "Routes at a glance"
72
- }), /* @__PURE__ */ E("div", {
77
+ }), /* @__PURE__ */ D("div", {
73
78
  className: "mt-3 grid grid-cols-3 gap-4",
74
79
  children: [
75
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
80
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
76
81
  className: "text-2xl font-bold text-text-primary tabular-nums",
77
- children: Y.totalRoutes
78
- }), /* @__PURE__ */ T("p", {
82
+ children: X.totalRoutes
83
+ }), /* @__PURE__ */ E("p", {
79
84
  className: "text-xs text-text-secondary",
80
85
  children: "Total routes"
81
86
  })] }),
82
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
87
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
83
88
  className: "text-2xl font-bold text-text-primary tabular-nums",
84
- children: Y.inProgressRoutes
85
- }), /* @__PURE__ */ T("p", {
89
+ children: X.inProgressRoutes
90
+ }), /* @__PURE__ */ E("p", {
86
91
  className: "text-xs text-text-secondary",
87
92
  children: "In progress"
88
93
  })] }),
89
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
94
+ /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
90
95
  className: "text-2xl font-bold text-text-primary tabular-nums",
91
- children: Y.optimizedRoutes
92
- }), /* @__PURE__ */ T("p", {
96
+ children: X.optimizedRoutes
97
+ }), /* @__PURE__ */ E("p", {
93
98
  className: "text-xs text-text-secondary",
94
99
  children: "Optimized"
95
100
  })] })
96
101
  ]
97
102
  })] }),
98
- /* @__PURE__ */ T(f, { children: /* @__PURE__ */ T(p, {
103
+ /* @__PURE__ */ E(p, { children: /* @__PURE__ */ E(m, {
99
104
  className: "p-4",
100
- children: /* @__PURE__ */ E("div", {
105
+ children: /* @__PURE__ */ D("div", {
101
106
  className: "flex flex-wrap items-center gap-4",
102
107
  children: [
103
- /* @__PURE__ */ E("div", {
108
+ /* @__PURE__ */ D("div", {
104
109
  className: "flex items-center gap-2",
105
- children: [/* @__PURE__ */ T(e, {
110
+ children: [/* @__PURE__ */ E(e, {
106
111
  size: 16,
107
112
  className: "text-text-secondary"
108
- }), /* @__PURE__ */ T("span", {
113
+ }), /* @__PURE__ */ E("span", {
109
114
  className: "text-sm font-medium",
110
115
  children: "Filters:"
111
116
  })]
112
117
  }),
113
- /* @__PURE__ */ E(m, {
114
- value: z,
118
+ /* @__PURE__ */ D(h, {
119
+ value: B,
115
120
  onValueChange: (e) => {
116
- B(e), P(0);
121
+ V(e), F(0);
117
122
  },
118
- children: [/* @__PURE__ */ T(_, {
123
+ children: [/* @__PURE__ */ E(v, {
119
124
  className: "w-[180px]",
120
- children: /* @__PURE__ */ T(v, { placeholder: "Status" })
121
- }), /* @__PURE__ */ T(h, { children: A.map((e) => /* @__PURE__ */ T(g, {
125
+ children: /* @__PURE__ */ E(y, { placeholder: "Status" })
126
+ }), /* @__PURE__ */ E(g, { children: j.map((e) => /* @__PURE__ */ E(_, {
122
127
  value: e.value,
123
128
  children: e.label
124
129
  }, e.value)) })]
125
130
  }),
126
- J && /* @__PURE__ */ T(d, {
131
+ Y && /* @__PURE__ */ E(f, {
127
132
  variant: "ghost",
128
133
  size: "sm",
129
134
  onClick: () => {
130
- B("all"), R(""), P(0);
135
+ V("all"), z(""), F(0);
131
136
  },
132
137
  children: "Clear filters"
133
138
  })
134
139
  ]
135
140
  })
136
141
  }) }),
137
- /* @__PURE__ */ T(S, {
142
+ /* @__PURE__ */ E(C, {
138
143
  columns: [
139
144
  {
140
145
  id: "name",
141
146
  header: "Route Name",
142
147
  accessorKey: "name",
143
148
  sortable: !0,
144
- cell: (e) => /* @__PURE__ */ T("span", {
149
+ cell: (e) => /* @__PURE__ */ E("span", {
145
150
  className: "font-medium",
146
151
  children: e.name
147
152
  })
@@ -151,15 +156,15 @@ function j() {
151
156
  header: "Status",
152
157
  accessorKey: "status",
153
158
  sortable: !0,
154
- cell: (e) => /* @__PURE__ */ T(x, {
159
+ cell: (e) => /* @__PURE__ */ E(S, {
155
160
  status: e.status,
156
- customColors: b[e.status]
161
+ customColors: x[e.status]
157
162
  })
158
163
  },
159
164
  {
160
165
  id: "stops",
161
166
  header: "Stops",
162
- cell: (e) => /* @__PURE__ */ E(u, {
167
+ cell: (e) => /* @__PURE__ */ D(d, {
163
168
  variant: "secondary",
164
169
  children: [e.stops.length, " stops"]
165
170
  })
@@ -169,7 +174,7 @@ function j() {
169
174
  header: "Distance",
170
175
  accessorKey: "distance",
171
176
  sortable: !0,
172
- cell: (e) => s(e.distance)
177
+ cell: (e) => c(e.distance)
173
178
  },
174
179
  {
175
180
  id: "duration",
@@ -179,7 +184,7 @@ function j() {
179
184
  {
180
185
  id: "optimized",
181
186
  header: "Optimized",
182
- cell: (e) => /* @__PURE__ */ T(u, {
187
+ cell: (e) => /* @__PURE__ */ E(d, {
183
188
  variant: e.optimized === void 0 ? "outline" : e.optimized ? "default" : "outline",
184
189
  children: e.optimized === void 0 ? "Unknown" : e.optimized ? "Yes" : "No"
185
190
  })
@@ -189,36 +194,36 @@ function j() {
189
194
  header: "Created",
190
195
  accessorKey: "createdAt",
191
196
  sortable: !0,
192
- cell: (e) => o(e.createdAt, "short")
197
+ cell: (e) => s(e.createdAt, "short")
193
198
  }
194
199
  ],
195
- data: H,
196
- isLoading: G,
197
- error: K,
198
- onRetry: q,
200
+ data: U,
201
+ isLoading: K,
202
+ error: q,
203
+ onRetry: J,
199
204
  searchable: !0,
200
205
  searchPlaceholder: "Search routes...",
201
206
  searchFields: ["name"],
202
- searchQuery: L,
207
+ searchQuery: R,
203
208
  onSearchQueryChange: (e) => {
204
- R(e), P(0);
209
+ z(e), F(0);
205
210
  },
206
- onRowClick: (e) => X(`routes/${e.id}`),
211
+ onRowClick: (e) => Z(`routes/${e.id}`),
207
212
  getRowId: (e) => e.id,
208
- pageIndex: N,
209
- pageSize: F,
210
- onPageChange: P,
213
+ pageIndex: P,
214
+ pageSize: I,
215
+ onPageChange: F,
211
216
  onPageSizeChange: (e) => {
212
- I(e), P(0);
217
+ L(e), F(0);
213
218
  },
214
- totalItems: U,
215
- hasNextPage: W,
219
+ totalItems: W,
220
+ hasNextPage: G,
216
221
  emptyIllustration: "empty-data",
217
222
  emptyTitle: "No routes yet",
218
223
  emptyDescription: "Create a route to batch deliveries into an optimized driving plan.",
219
- emptyAction: /* @__PURE__ */ E(d, {
220
- onClick: () => X("routes/new"),
221
- children: [/* @__PURE__ */ T(n, {
224
+ emptyAction: /* @__PURE__ */ D(f, {
225
+ onClick: () => Z("routes/new"),
226
+ children: [/* @__PURE__ */ E(n, {
222
227
  size: 16,
223
228
  className: "mr-1.5"
224
229
  }), "Create Route"]
@@ -228,4 +233,4 @@ function j() {
228
233
  });
229
234
  }
230
235
  //#endregion
231
- export { j as default };
236
+ export { M as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-movethewheels",
3
- "version": "2026.1107.2",
3
+ "version": "2026.1107.3",
4
4
  "description": "Burdenoff MoveTheWheels Microfrontend - Logistics & Supply Chain Management Platform",
5
5
  "type": "module",
6
6
  "files": [
@@ -1287,6 +1287,20 @@ export type MtwDashboardMetrics = {
1287
1287
  totalRevenue: Scalars['Float']['output'];
1288
1288
  };
1289
1289
 
1290
+ export type MtwDecisionRationaleStatus =
1291
+ /** AI is switched off for this environment; the planner's own rationale is shown. */
1292
+ | 'AI_DISABLED'
1293
+ /** A model-written summary and rationale are attached. */
1294
+ | 'AVAILABLE'
1295
+ /** The workspace has spent its MoveTheWheels AI credits; no model call was made. */
1296
+ | 'CREDITS_EXHAUSTED'
1297
+ /** The workspace reached its daily AI cap; no model call was made. */
1298
+ | 'DAILY_CAP_REACHED'
1299
+ /** There was nothing to explain (no assignments). */
1300
+ | 'NOT_NEEDED'
1301
+ /** The model could not produce a rationale this time; the plan is unchanged. */
1302
+ | 'UNAVAILABLE';
1303
+
1290
1304
  /**
1291
1305
  * MoveTheWheels-owned operational dispatch unit. It is intentionally not a cart/order
1292
1306
  * system; checkout and order of record remain in global-store-svc StoreOrder.
@@ -1416,6 +1430,84 @@ export type MtwDemandForecastVariance = {
1416
1430
  volumeVariance: Scalars['Int']['output'];
1417
1431
  };
1418
1432
 
1433
+ /** One proposed shipment -> vehicle + driver pairing. */
1434
+ export type MtwDispatchAssignment = {
1435
+ __typename?: 'MtwDispatchAssignment';
1436
+ /** Model-written rationale, when AI produced one. */
1437
+ aiRationale?: Maybe<Scalars['String']['output']>;
1438
+ /** Planner confidence from 0 to 1, from how much of what the pairing depends on is recorded and favourable. Not a probability of on-time delivery. */
1439
+ confidence: Scalars['Float']['output'];
1440
+ decidedAt?: Maybe<Scalars['DateTime']['output']>;
1441
+ decision: MtwDispatchAssignmentDecision;
1442
+ decisionReason?: Maybe<Scalars['String']['output']>;
1443
+ driverId: Scalars['ID']['output'];
1444
+ driverName?: Maybe<Scalars['String']['output']>;
1445
+ estimatedDelivery?: Maybe<Scalars['DateTime']['output']>;
1446
+ estimatedDistanceKm?: Maybe<Scalars['Float']['output']>;
1447
+ estimatedDurationMinutes?: Maybe<Scalars['Float']['output']>;
1448
+ id: Scalars['ID']['output'];
1449
+ planId: Scalars['ID']['output'];
1450
+ /** The planner's own factual rationale. */
1451
+ rationale: Scalars['String']['output'];
1452
+ /** Reason codes behind the pairing, e.g. MAINTENANCE_OK, CAPACITY_FITS, LINKED_PAIR. */
1453
+ reasons: Array<Scalars['String']['output']>;
1454
+ routeId?: Maybe<Scalars['ID']['output']>;
1455
+ sequence: Scalars['Int']['output'];
1456
+ shipmentId: Scalars['ID']['output'];
1457
+ shipmentNumber?: Maybe<Scalars['String']['output']>;
1458
+ vehicleId: Scalars['ID']['output'];
1459
+ vehicleNumber?: Maybe<Scalars['String']['output']>;
1460
+ vehicleType?: Maybe<Scalars['String']['output']>;
1461
+ waypoints: Scalars['JSON']['output'];
1462
+ };
1463
+
1464
+ export type MtwDispatchAssignmentDecision =
1465
+ /** Accepted; routeId is the route that was created. */
1466
+ | 'ACCEPTED'
1467
+ | 'PENDING'
1468
+ | 'REJECTED'
1469
+ /** Accepted, but the shipment, vehicle or driver changed since the proposal; decisionReason says how. No route was created. */
1470
+ | 'STALE';
1471
+
1472
+ export type MtwDispatchPlan = {
1473
+ __typename?: 'MtwDispatchPlan';
1474
+ acceptedCount: Scalars['Int']['output'];
1475
+ /** Provider-qualified model that wrote the rationale, when one did. */
1476
+ aiModel?: Maybe<Scalars['String']['output']>;
1477
+ aiStatus: MtwDecisionRationaleStatus;
1478
+ aiSummary?: Maybe<Scalars['String']['output']>;
1479
+ assignments: Array<MtwDispatchAssignment>;
1480
+ createdAt: Scalars['DateTime']['output'];
1481
+ createdBy: Scalars['String']['output'];
1482
+ decidedAt?: Maybe<Scalars['DateTime']['output']>;
1483
+ decidedBy?: Maybe<Scalars['String']['output']>;
1484
+ expiresAt: Scalars['DateTime']['output'];
1485
+ id: Scalars['ID']['output'];
1486
+ /** The deterministic planner that produced the assignments. */
1487
+ method: Scalars['String']['output'];
1488
+ pendingCount: Scalars['Int']['output'];
1489
+ rejectedCount: Scalars['Int']['output'];
1490
+ staleCount: Scalars['Int']['output'];
1491
+ status: MtwDispatchPlanStatus;
1492
+ unassigned: Array<MtwUnassignedShipment>;
1493
+ windowEnd?: Maybe<Scalars['DateTime']['output']>;
1494
+ windowStart?: Maybe<Scalars['DateTime']['output']>;
1495
+ };
1496
+
1497
+ export type MtwDispatchPlanStatus =
1498
+ /** Every assignment was accepted and has a route. */
1499
+ | 'APPLIED'
1500
+ /** A decision is being applied right now. */
1501
+ | 'APPLYING'
1502
+ /** The plan was superseded by a newer one or passed its expiry without a decision. */
1503
+ | 'EXPIRED'
1504
+ /** Some assignments were accepted; the rest were rejected or had gone stale. */
1505
+ | 'PARTIALLY_APPLIED'
1506
+ /** Waiting for a decision. */
1507
+ | 'PROPOSED'
1508
+ /** No assignment was accepted; nothing was written. */
1509
+ | 'REJECTED';
1510
+
1419
1511
  /** Unit MoveTheWheels shows distances in. */
1420
1512
  export type MtwDistanceUnit =
1421
1513
  /** Kilometres */
@@ -3402,6 +3494,17 @@ export type MtwPickTaskStatus =
3402
3494
  export type MtwPickTaskWorkflow =
3403
3495
  | 'PICK_TO_STAGING';
3404
3496
 
3497
+ export type MtwPlanDispatchInput = {
3498
+ /** Only shipments due at or after this time (shipments with no due date are always considered). */
3499
+ from?: InputMaybe<Scalars['DateTime']['input']>;
3500
+ /** At most this many assignments, 1 to 50. Default 25. */
3501
+ maxAssignments?: InputMaybe<Scalars['Int']['input']>;
3502
+ /** Plan only these shipments (at most 100). */
3503
+ shipmentIds?: InputMaybe<Array<Scalars['ID']['input']>>;
3504
+ /** Only shipments due at or before this time. */
3505
+ to?: InputMaybe<Scalars['DateTime']['input']>;
3506
+ };
3507
+
3405
3508
  export type MtwProcedureApplicability = {
3406
3509
  __typename?: 'MtwProcedureApplicability';
3407
3510
  enforcement: MtwProcedureRecordingBoundary;
@@ -5014,6 +5117,14 @@ export type MtwTripUtilizationSummary = {
5014
5117
  unknownFactsSegmentCount: Scalars['Int']['output'];
5015
5118
  };
5016
5119
 
5120
+ export type MtwUnassignedShipment = {
5121
+ __typename?: 'MtwUnassignedShipment';
5122
+ /** NO_ELIGIBLE_PAIR, FLEET_FULLY_ASSIGNED, OVER_CAPACITY, PLAN_LIMIT_REACHED or NOT_PLANNABLE. */
5123
+ reason: Scalars['String']['output'];
5124
+ shipmentId: Scalars['ID']['output'];
5125
+ shipmentNumber?: Maybe<Scalars['String']['output']>;
5126
+ };
5127
+
5017
5128
  export type MtwUpdateReportInput = {
5018
5129
  description?: InputMaybe<Scalars['String']['input']>;
5019
5130
  frequency?: InputMaybe<MtwReportFrequency>;
@@ -5297,6 +5408,12 @@ export type Mutation = {
5297
5408
  importMtwDrivers: MtwImportResult;
5298
5409
  importMtwVehicles: MtwImportResult;
5299
5410
  importMtwWarehouses: MtwImportResult;
5411
+ /**
5412
+ * Accept the listed assignments of an open plan and reject the rest. One PLANNED
5413
+ * route is created per accepted assignment, through the normal route checks.
5414
+ * An empty list rejects the whole plan.
5415
+ */
5416
+ mtwApplyDispatchPlan: MtwDispatchPlan;
5300
5417
  /** Register, verify or repair the workspace's scheduled-reports job. Idempotent. */
5301
5418
  mtwEnsureReportSchedule?: Maybe<MtwReportSchedule>;
5302
5419
  /**
@@ -5311,6 +5428,14 @@ export type Mutation = {
5311
5428
  * makes no model call; `narrationStatus` says why.
5312
5429
  */
5313
5430
  mtwNarrateShipmentRiskForecast: MtwRiskForecast;
5431
+ /**
5432
+ * Propose vehicle + driver assignments for PLANNED shipments that have no live
5433
+ * route. Proposal only: no route or delivery job is written. A new proposal
5434
+ * expires any older open one.
5435
+ */
5436
+ mtwPlanDispatch: MtwDispatchPlan;
5437
+ /** Reject every assignment of an open plan. Writes no route or delivery job. */
5438
+ mtwRejectDispatchPlan: MtwDispatchPlan;
5314
5439
  /**
5315
5440
  * Re-forecast every in-flight shipment of the workspace and notify for any that
5316
5441
  * started slipping. Fired by wspace-scheduler-svc as this service's own service
@@ -5650,11 +5775,27 @@ export type MutationImportMtwWarehousesArgs = {
5650
5775
  };
5651
5776
 
5652
5777
 
5778
+ export type MutationMtwApplyDispatchPlanArgs = {
5779
+ accept: Array<Scalars['ID']['input']>;
5780
+ planId: Scalars['ID']['input'];
5781
+ };
5782
+
5783
+
5653
5784
  export type MutationMtwNarrateShipmentRiskForecastArgs = {
5654
5785
  shipmentId: Scalars['ID']['input'];
5655
5786
  };
5656
5787
 
5657
5788
 
5789
+ export type MutationMtwPlanDispatchArgs = {
5790
+ input?: InputMaybe<MtwPlanDispatchInput>;
5791
+ };
5792
+
5793
+
5794
+ export type MutationMtwRejectDispatchPlanArgs = {
5795
+ planId: Scalars['ID']['input'];
5796
+ };
5797
+
5798
+
5658
5799
  export type MutationMtwRunRiskSweepArgs = {
5659
5800
  input?: InputMaybe<MtwRunRiskSweepInput>;
5660
5801
  };
@@ -6147,6 +6288,8 @@ export type Query = {
6147
6288
  mtwCustomerNotificationSettings: MtwCustomerNotificationSettings;
6148
6289
  /** Customer notifications sent or attempted in this workspace, newest first. */
6149
6290
  mtwCustomerNotifications: MtwCustomerNotificationPage;
6291
+ mtwDispatchPlan?: Maybe<MtwDispatchPlan>;
6292
+ mtwDispatchPlans: Array<MtwDispatchPlan>;
6150
6293
  /** Exact immutable instruction, including a proposal's historical owner; not a current-eligibility claim. */
6151
6294
  mtwEmptyReturnInstruction: MtwEmptyReturnInstruction;
6152
6295
  mtwEmptyReturnInstructionPage: MtwEmptyReturnInstructionPage;
@@ -6172,6 +6315,8 @@ export type Query = {
6172
6315
  * entity create permission.
6173
6316
  */
6174
6317
  mtwImportSpec: Array<MtwImportEntitySpec>;
6318
+ /** The workspace's most recent dispatch plan, whatever its status. */
6319
+ mtwLatestDispatchPlan?: Maybe<MtwDispatchPlan>;
6175
6320
  /** The workspace's MoveTheWheels operational defaults; platform defaults when none were saved. */
6176
6321
  mtwModuleSettings: MtwModuleSettings;
6177
6322
  mtwPalletGeometryPreview: MtwPalletGeometryPreview;
@@ -6555,6 +6700,17 @@ export type QueryMtwCustomerNotificationsArgs = {
6555
6700
  };
6556
6701
 
6557
6702
 
6703
+ export type QueryMtwDispatchPlanArgs = {
6704
+ id: Scalars['ID']['input'];
6705
+ };
6706
+
6707
+
6708
+ export type QueryMtwDispatchPlansArgs = {
6709
+ pagination?: InputMaybe<PaginationInput>;
6710
+ status?: InputMaybe<MtwDispatchPlanStatus>;
6711
+ };
6712
+
6713
+
6558
6714
  export type QueryMtwEmptyReturnInstructionArgs = {
6559
6715
  id: Scalars['ID']['input'];
6560
6716
  };
@@ -95,6 +95,7 @@ const PendingPickPage = lazy(() => import('./pages/PendingPickPage'));
95
95
  const StockObservationsPage = lazy(() => import('./pages/StockObservationsPage'));
96
96
  const StockBindingPage = lazy(() => import('./pages/StockBindingPage'));
97
97
  const TripUtilizationPage = lazy(() => import('./pages/TripUtilizationPage'));
98
+ const DispatchPlanPage = lazy(() => import('./pages/DispatchPlanPage'));
98
99
  const ConsumedFuelPreviewPage = lazy(() => import('./pages/ConsumedFuelPreviewPage'));
99
100
  const EmptyReusePage = lazy(() => import('./pages/EmptyReusePage'));
100
101
 
@@ -183,6 +184,7 @@ export function MoveTheWheelsRoutes() {
183
184
  {/* Routes */}
184
185
  <Route path="routes" element={<RoutesPage />} />
185
186
  <Route path="routes/trip-utilization" element={<TripUtilizationPage />} />
187
+ <Route path="routes/dispatch-plan" element={<DispatchPlanPage />} />
186
188
  <Route path="fuel-preview" element={<ConsumedFuelPreviewPage />} />
187
189
  <Route path="routes/new" element={<RouteDetailsPage />} />
188
190
  <Route path="routes/:routeId" element={<RouteDetailsPage />} />