@burdenoff/microfe-movethewheels 2026.1114.1 → 2026.1123.1
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/dist/MoveTheWheelsRoot.js +149 -133
- package/dist/MoveTheWheelsRoutes.js +157 -139
- package/dist/components/EntityConversationsCard.js +145 -0
- package/dist/components/maps/MapCanvas.js +4 -3
- package/dist/events/rybbit.js +87 -0
- package/dist/generated/tracking-quality-operations.d.ts +342 -0
- package/dist/hooks/useEntityComments.js +111 -0
- package/dist/hooks/useFleet.js +394 -311
- package/dist/hooks/useInventory.js +378 -313
- package/dist/hooks/useMultiModalShipments.js +58 -53
- package/dist/hooks/useOrders.js +178 -158
- package/dist/hooks/useRoutes.js +146 -130
- package/dist/index.js +35 -34
- package/dist/movethewheels/components/EntityConversationsCard.d.ts +8 -0
- package/dist/movethewheels/events/rybbit.d.ts +27 -0
- package/dist/movethewheels/hooks/useEntityComments.d.ts +26 -0
- package/dist/movethewheels/hooks/useFleet.d.ts +73 -1
- package/dist/movethewheels/hooks/useInventory.d.ts +19 -0
- package/dist/movethewheels/index.d.ts +1 -0
- package/dist/movethewheels/pages/DocumentsLibraryPage.d.ts +1 -0
- package/dist/movethewheels/pages/NotificationsCenterPage.d.ts +1 -0
- package/dist/movethewheels/types/index.d.ts +95 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/check-check.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layers.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +10 -0
- package/dist/pages/DocumentsLibraryPage.js +235 -0
- package/dist/pages/DriverDetailsPage.js +625 -351
- package/dist/pages/NotificationsCenterPage.js +310 -0
- package/dist/pages/OrderDetailsPage.js +48 -42
- package/dist/pages/RouteDetailsPage.js +257 -251
- package/dist/pages/TrackingPage.js +202 -196
- package/dist/pages/VehicleDetailsPage.js +616 -314
- package/dist/pages/WarehouseDetailsPage.js +539 -253
- package/dist/stories/ControlTowerWidgets.stories.d.ts +10 -0
- package/dist/stories/DataTable.stories.d.ts +15 -0
- package/dist/stories/FleetCards.stories.d.ts +9 -0
- package/dist/stories/OrderForms.stories.d.ts +8 -0
- package/dist/stories/RouteMap.stories.d.ts +7 -0
- package/dist/stories/ShipmentTimeline.stories.d.ts +6 -0
- package/package.json +3 -2
- package/src/generated/tracking-quality-operations.ts +407 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +16 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +17 -2
- package/src/movethewheels/components/EntityConversationsCard.tsx +143 -0
- package/src/movethewheels/components/maps/MapCanvas.tsx +3 -3
- package/src/movethewheels/events/__tests__/rybbit.test.ts +98 -0
- package/src/movethewheels/events/rybbit.ts +191 -0
- package/src/movethewheels/hooks/useEntityComments.ts +258 -0
- package/src/movethewheels/hooks/useFleet.ts +300 -5
- package/src/movethewheels/hooks/useInventory.ts +231 -3
- package/src/movethewheels/hooks/useMultiModalShipments.ts +8 -1
- package/src/movethewheels/hooks/useOrders.ts +19 -3
- package/src/movethewheels/hooks/useRoutes.ts +14 -2
- package/src/movethewheels/index.ts +1 -0
- package/src/movethewheels/pages/DocumentsLibraryPage.tsx +229 -0
- package/src/movethewheels/pages/DriverDetailsPage.tsx +250 -1
- package/src/movethewheels/pages/NotificationsCenterPage.tsx +331 -0
- package/src/movethewheels/pages/OrderDetailsPage.tsx +8 -0
- package/src/movethewheels/pages/RouteDetailsPage.tsx +6 -0
- package/src/movethewheels/pages/TrackingPage.tsx +8 -0
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +255 -1
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +266 -2
- package/src/movethewheels/types/index.ts +103 -2
- package/src/stories/ControlTowerWidgets.stories.tsx +150 -0
- package/src/stories/DataTable.stories.tsx +94 -0
- package/src/stories/FleetCards.stories.tsx +77 -0
- package/src/stories/OrderForms.stories.tsx +84 -0
- package/src/stories/RouteMap.stories.tsx +43 -0
- package/src/stories/ShipmentTimeline.stories.tsx +128 -0
|
@@ -155,6 +155,17 @@ export type CreateDeliveryJobInput = {
|
|
|
155
155
|
vehicleId?: InputMaybe<Scalars['ID']['input']>;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
export type CreateDriverComplianceRecordInput = {
|
|
159
|
+
context?: InputMaybe<ContextInput>;
|
|
160
|
+
driverId: Scalars['ID']['input'];
|
|
161
|
+
expiresAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
162
|
+
issuedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
163
|
+
notes?: InputMaybe<Scalars['String']['input']>;
|
|
164
|
+
recordType: Scalars['String']['input'];
|
|
165
|
+
referenceNumber?: InputMaybe<Scalars['String']['input']>;
|
|
166
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
167
|
+
};
|
|
168
|
+
|
|
158
169
|
export type CreateDriverInput = {
|
|
159
170
|
baseSalary?: InputMaybe<Scalars['Float']['input']>;
|
|
160
171
|
bonusYtd?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -169,6 +180,7 @@ export type CreateDriverInput = {
|
|
|
169
180
|
licenseClass?: InputMaybe<Scalars['String']['input']>;
|
|
170
181
|
licenseExpiry?: InputMaybe<Scalars['DateTime']['input']>;
|
|
171
182
|
licenseNumber?: InputMaybe<Scalars['String']['input']>;
|
|
183
|
+
maxDrivingHoursPerShift?: InputMaybe<Scalars['Float']['input']>;
|
|
172
184
|
notes?: InputMaybe<Scalars['String']['input']>;
|
|
173
185
|
payCurrency?: InputMaybe<Scalars['String']['input']>;
|
|
174
186
|
performanceMetrics?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -180,6 +192,17 @@ export type CreateDriverInput = {
|
|
|
180
192
|
vehicleIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
181
193
|
};
|
|
182
194
|
|
|
195
|
+
export type CreateDriverShiftInput = {
|
|
196
|
+
context?: InputMaybe<ContextInput>;
|
|
197
|
+
driverId: Scalars['ID']['input'];
|
|
198
|
+
endTime: Scalars['String']['input'];
|
|
199
|
+
maxHours?: InputMaybe<Scalars['Float']['input']>;
|
|
200
|
+
notes?: InputMaybe<Scalars['String']['input']>;
|
|
201
|
+
shiftDate: Scalars['DateTime']['input'];
|
|
202
|
+
startTime: Scalars['String']['input'];
|
|
203
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
204
|
+
};
|
|
205
|
+
|
|
183
206
|
export type CreateIntegrationInput = {
|
|
184
207
|
apiKey?: InputMaybe<Scalars['String']['input']>;
|
|
185
208
|
apiSecret?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -265,6 +288,7 @@ export type CreateShipmentLegInput = {
|
|
|
265
288
|
currency?: InputMaybe<Scalars['String']['input']>;
|
|
266
289
|
destination: Scalars['JSON']['input'];
|
|
267
290
|
distanceKm?: InputMaybe<Scalars['Float']['input']>;
|
|
291
|
+
haulType?: InputMaybe<RoadHaulType>;
|
|
268
292
|
heightCm?: InputMaybe<Scalars['Float']['input']>;
|
|
269
293
|
lengthCm?: InputMaybe<Scalars['Float']['input']>;
|
|
270
294
|
mode: TransportMode;
|
|
@@ -284,6 +308,7 @@ export type CreateVehicleInput = {
|
|
|
284
308
|
capacity?: InputMaybe<Scalars['JSON']['input']>;
|
|
285
309
|
context?: InputMaybe<ContextInput>;
|
|
286
310
|
currentLocation?: InputMaybe<Scalars['JSON']['input']>;
|
|
311
|
+
diagnostics?: InputMaybe<Scalars['JSON']['input']>;
|
|
287
312
|
fuelEfficiencyLPer100Km?: InputMaybe<Scalars['Float']['input']>;
|
|
288
313
|
fuelLevel?: InputMaybe<Scalars['Float']['input']>;
|
|
289
314
|
fuelType?: InputMaybe<FuelType>;
|
|
@@ -301,6 +326,19 @@ export type CreateVehicleInput = {
|
|
|
301
326
|
year?: InputMaybe<Scalars['Int']['input']>;
|
|
302
327
|
};
|
|
303
328
|
|
|
329
|
+
export type CreateVehicleMaintenanceLogInput = {
|
|
330
|
+
context?: InputMaybe<ContextInput>;
|
|
331
|
+
cost?: InputMaybe<Scalars['Float']['input']>;
|
|
332
|
+
currency?: InputMaybe<Scalars['String']['input']>;
|
|
333
|
+
description: Scalars['String']['input'];
|
|
334
|
+
mileage?: InputMaybe<Scalars['Float']['input']>;
|
|
335
|
+
notes?: InputMaybe<Scalars['String']['input']>;
|
|
336
|
+
serviceDate: Scalars['DateTime']['input'];
|
|
337
|
+
serviceType?: InputMaybe<Scalars['String']['input']>;
|
|
338
|
+
vehicleId: Scalars['ID']['input'];
|
|
339
|
+
vendor?: InputMaybe<Scalars['String']['input']>;
|
|
340
|
+
};
|
|
341
|
+
|
|
304
342
|
export type CreateWarehouseInput = {
|
|
305
343
|
address: Scalars['JSON']['input'];
|
|
306
344
|
capabilities?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -329,6 +367,30 @@ export type CreateWarehouseLocationInput = {
|
|
|
329
367
|
zone?: InputMaybe<Scalars['String']['input']>;
|
|
330
368
|
};
|
|
331
369
|
|
|
370
|
+
export type CreateWarehouseStaffInput = {
|
|
371
|
+
contactEmail?: InputMaybe<Scalars['String']['input']>;
|
|
372
|
+
contactPhone?: InputMaybe<Scalars['String']['input']>;
|
|
373
|
+
context?: InputMaybe<ContextInput>;
|
|
374
|
+
name: Scalars['String']['input'];
|
|
375
|
+
role?: InputMaybe<Scalars['String']['input']>;
|
|
376
|
+
shift?: InputMaybe<Scalars['String']['input']>;
|
|
377
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
378
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
379
|
+
warehouseId: Scalars['ID']['input'];
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export type CreateWarehouseZoneInput = {
|
|
383
|
+
code: Scalars['String']['input'];
|
|
384
|
+
context?: InputMaybe<ContextInput>;
|
|
385
|
+
name: Scalars['String']['input'];
|
|
386
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
387
|
+
temperatureRange?: InputMaybe<Scalars['String']['input']>;
|
|
388
|
+
totalCapacity?: InputMaybe<Scalars['Float']['input']>;
|
|
389
|
+
usedCapacity?: InputMaybe<Scalars['Float']['input']>;
|
|
390
|
+
warehouseId: Scalars['ID']['input'];
|
|
391
|
+
zoneType?: InputMaybe<Scalars['String']['input']>;
|
|
392
|
+
};
|
|
393
|
+
|
|
332
394
|
export type CustomerFilterInput = {
|
|
333
395
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
334
396
|
type?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -407,6 +469,7 @@ export type FreightRateInput = {
|
|
|
407
469
|
containerType?: InputMaybe<OceanContainerType>;
|
|
408
470
|
currency?: InputMaybe<Scalars['String']['input']>;
|
|
409
471
|
distanceKm?: InputMaybe<Scalars['Float']['input']>;
|
|
472
|
+
haulType?: InputMaybe<RoadHaulType>;
|
|
410
473
|
heightCm?: InputMaybe<Scalars['Float']['input']>;
|
|
411
474
|
lengthCm?: InputMaybe<Scalars['Float']['input']>;
|
|
412
475
|
mode: TransportMode;
|
|
@@ -421,6 +484,7 @@ export type FreightRateOverridesInput = {
|
|
|
421
484
|
baseFare?: InputMaybe<Scalars['Float']['input']>;
|
|
422
485
|
fuelSurchargePct?: InputMaybe<Scalars['Float']['input']>;
|
|
423
486
|
handlingFee?: InputMaybe<Scalars['Float']['input']>;
|
|
487
|
+
ratePerCbm?: InputMaybe<Scalars['Float']['input']>;
|
|
424
488
|
ratePerContainer?: InputMaybe<Scalars['Float']['input']>;
|
|
425
489
|
ratePerKg?: InputMaybe<Scalars['Float']['input']>;
|
|
426
490
|
ratePerKm?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -1692,6 +1756,7 @@ export type MtwDriver = {
|
|
|
1692
1756
|
baseSalary?: Maybe<Scalars['Float']['output']>;
|
|
1693
1757
|
bonusYtd?: Maybe<Scalars['Float']['output']>;
|
|
1694
1758
|
certifications?: Maybe<Scalars['JSON']['output']>;
|
|
1759
|
+
complianceRecords: Array<MtwDriverComplianceRecord>;
|
|
1695
1760
|
context?: Maybe<OperationContext>;
|
|
1696
1761
|
createdAt: Scalars['DateTime']['output'];
|
|
1697
1762
|
createdBy: Scalars['String']['output'];
|
|
@@ -1706,6 +1771,8 @@ export type MtwDriver = {
|
|
|
1706
1771
|
licenseClass?: Maybe<Scalars['String']['output']>;
|
|
1707
1772
|
licenseExpiry?: Maybe<Scalars['DateTime']['output']>;
|
|
1708
1773
|
licenseNumber?: Maybe<Scalars['String']['output']>;
|
|
1774
|
+
/** Recorded daily driving limit in hours; route optimization checks the estimated run against it. */
|
|
1775
|
+
maxDrivingHoursPerShift?: Maybe<Scalars['Float']['output']>;
|
|
1709
1776
|
/** Free-text HR/performance notes. Encrypted at rest. */
|
|
1710
1777
|
notes?: Maybe<Scalars['String']['output']>;
|
|
1711
1778
|
onBehalfOf: Scalars['String']['output'];
|
|
@@ -1715,6 +1782,7 @@ export type MtwDriver = {
|
|
|
1715
1782
|
performanceMetrics?: Maybe<Scalars['JSON']['output']>;
|
|
1716
1783
|
phone?: Maybe<Scalars['String']['output']>;
|
|
1717
1784
|
rating?: Maybe<Scalars['Float']['output']>;
|
|
1785
|
+
shifts: Array<MtwDriverShift>;
|
|
1718
1786
|
status: DriverStatus;
|
|
1719
1787
|
terminatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1720
1788
|
/** Reason recorded when the driver was dismissed/terminated. Encrypted at rest. */
|
|
@@ -1732,6 +1800,31 @@ export type MtwDriver = {
|
|
|
1732
1800
|
workspaceId: Scalars['ID']['output'];
|
|
1733
1801
|
};
|
|
1734
1802
|
|
|
1803
|
+
|
|
1804
|
+
export type MtwDriverComplianceRecordsArgs = {
|
|
1805
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
1806
|
+
};
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
export type MtwDriverShiftsArgs = {
|
|
1810
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
1811
|
+
};
|
|
1812
|
+
|
|
1813
|
+
export type MtwDriverComplianceRecord = {
|
|
1814
|
+
__typename?: 'MtwDriverComplianceRecord';
|
|
1815
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1816
|
+
driverId: Scalars['ID']['output'];
|
|
1817
|
+
expiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1818
|
+
id: Scalars['ID']['output'];
|
|
1819
|
+
issuedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1820
|
+
notes?: Maybe<Scalars['String']['output']>;
|
|
1821
|
+
recordType: Scalars['String']['output'];
|
|
1822
|
+
referenceNumber?: Maybe<Scalars['String']['output']>;
|
|
1823
|
+
status: Scalars['String']['output'];
|
|
1824
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1825
|
+
workspaceId: Scalars['ID']['output'];
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1735
1828
|
/** The calling driver's delivery day: the mobile driver task list (BOFF-3991). */
|
|
1736
1829
|
export type MtwDriverDay = {
|
|
1737
1830
|
__typename?: 'MtwDriverDay';
|
|
@@ -1750,6 +1843,21 @@ export type MtwDriverDay = {
|
|
|
1750
1843
|
windowStart: Scalars['DateTime']['output'];
|
|
1751
1844
|
};
|
|
1752
1845
|
|
|
1846
|
+
export type MtwDriverShift = {
|
|
1847
|
+
__typename?: 'MtwDriverShift';
|
|
1848
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1849
|
+
driverId: Scalars['ID']['output'];
|
|
1850
|
+
endTime: Scalars['String']['output'];
|
|
1851
|
+
id: Scalars['ID']['output'];
|
|
1852
|
+
maxHours?: Maybe<Scalars['Float']['output']>;
|
|
1853
|
+
notes?: Maybe<Scalars['String']['output']>;
|
|
1854
|
+
shiftDate: Scalars['DateTime']['output'];
|
|
1855
|
+
startTime: Scalars['String']['output'];
|
|
1856
|
+
status: Scalars['String']['output'];
|
|
1857
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1858
|
+
workspaceId: Scalars['ID']['output'];
|
|
1859
|
+
};
|
|
1860
|
+
|
|
1753
1861
|
/** One stop in the calling driver's day, in driving sequence order. */
|
|
1754
1862
|
export type MtwDriverStop = {
|
|
1755
1863
|
__typename?: 'MtwDriverStop';
|
|
@@ -4646,6 +4754,7 @@ export type MtwRoute = {
|
|
|
4646
4754
|
estimatedDuration?: Maybe<Scalars['Float']['output']>;
|
|
4647
4755
|
fuelCost?: Maybe<Scalars['Float']['output']>;
|
|
4648
4756
|
id: Scalars['ID']['output'];
|
|
4757
|
+
lastOptimization?: Maybe<RouteOptimizationSummary>;
|
|
4649
4758
|
name: Scalars['String']['output'];
|
|
4650
4759
|
onBehalfOf: Scalars['String']['output'];
|
|
4651
4760
|
shipment?: Maybe<MtwShipment>;
|
|
@@ -5085,6 +5194,7 @@ export type MtwShipmentLeg = {
|
|
|
5085
5194
|
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
5086
5195
|
destination: Scalars['JSON']['output'];
|
|
5087
5196
|
distanceKm?: Maybe<Scalars['Float']['output']>;
|
|
5197
|
+
haulType?: Maybe<RoadHaulType>;
|
|
5088
5198
|
heightCm?: Maybe<Scalars['Float']['output']>;
|
|
5089
5199
|
id: Scalars['ID']['output'];
|
|
5090
5200
|
legNumber: Scalars['Int']['output'];
|
|
@@ -5790,6 +5900,7 @@ export type MtwVehicle = {
|
|
|
5790
5900
|
createdBy: Scalars['String']['output'];
|
|
5791
5901
|
currentLocation?: Maybe<Scalars['JSON']['output']>;
|
|
5792
5902
|
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
5903
|
+
diagnostics?: Maybe<Scalars['JSON']['output']>;
|
|
5793
5904
|
drivers: Array<MtwDriver>;
|
|
5794
5905
|
fuelEfficiencyLPer100Km?: Maybe<Scalars['Float']['output']>;
|
|
5795
5906
|
fuelLevel?: Maybe<Scalars['Float']['output']>;
|
|
@@ -5797,6 +5908,7 @@ export type MtwVehicle = {
|
|
|
5797
5908
|
id: Scalars['ID']['output'];
|
|
5798
5909
|
lastServiceDate?: Maybe<Scalars['DateTime']['output']>;
|
|
5799
5910
|
licensePlate?: Maybe<Scalars['String']['output']>;
|
|
5911
|
+
maintenanceLogs: Array<MtwVehicleMaintenanceLog>;
|
|
5800
5912
|
make?: Maybe<Scalars['String']['output']>;
|
|
5801
5913
|
mileage?: Maybe<Scalars['Float']['output']>;
|
|
5802
5914
|
model?: Maybe<Scalars['String']['output']>;
|
|
@@ -5808,11 +5920,34 @@ export type MtwVehicle = {
|
|
|
5808
5920
|
type: VehicleType;
|
|
5809
5921
|
updatedAt: Scalars['DateTime']['output'];
|
|
5810
5922
|
updatedBy?: Maybe<Scalars['String']['output']>;
|
|
5923
|
+
utilizationSummary: MtwVehicleUtilizationSummary;
|
|
5811
5924
|
vehicleNumber: Scalars['String']['output'];
|
|
5812
5925
|
workspaceId: Scalars['ID']['output'];
|
|
5813
5926
|
year?: Maybe<Scalars['Int']['output']>;
|
|
5814
5927
|
};
|
|
5815
5928
|
|
|
5929
|
+
|
|
5930
|
+
export type MtwVehicleMaintenanceLogsArgs = {
|
|
5931
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
5932
|
+
};
|
|
5933
|
+
|
|
5934
|
+
export type MtwVehicleMaintenanceLog = {
|
|
5935
|
+
__typename?: 'MtwVehicleMaintenanceLog';
|
|
5936
|
+
cost?: Maybe<Scalars['Float']['output']>;
|
|
5937
|
+
createdAt: Scalars['DateTime']['output'];
|
|
5938
|
+
currency?: Maybe<Scalars['String']['output']>;
|
|
5939
|
+
description: Scalars['String']['output'];
|
|
5940
|
+
id: Scalars['ID']['output'];
|
|
5941
|
+
mileage?: Maybe<Scalars['Float']['output']>;
|
|
5942
|
+
notes?: Maybe<Scalars['String']['output']>;
|
|
5943
|
+
serviceDate: Scalars['DateTime']['output'];
|
|
5944
|
+
serviceType: Scalars['String']['output'];
|
|
5945
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
5946
|
+
vehicleId: Scalars['ID']['output'];
|
|
5947
|
+
vendor?: Maybe<Scalars['String']['output']>;
|
|
5948
|
+
workspaceId: Scalars['ID']['output'];
|
|
5949
|
+
};
|
|
5950
|
+
|
|
5816
5951
|
export type MtwVehicleSuggestion = {
|
|
5817
5952
|
__typename?: 'MtwVehicleSuggestion';
|
|
5818
5953
|
reasons: Array<Scalars['String']['output']>;
|
|
@@ -5820,6 +5955,17 @@ export type MtwVehicleSuggestion = {
|
|
|
5820
5955
|
vehicle: MtwVehicle;
|
|
5821
5956
|
};
|
|
5822
5957
|
|
|
5958
|
+
export type MtwVehicleUtilizationSummary = {
|
|
5959
|
+
__typename?: 'MtwVehicleUtilizationSummary';
|
|
5960
|
+
activeRoutes: Scalars['Int']['output'];
|
|
5961
|
+
completedDeliveryJobs: Scalars['Int']['output'];
|
|
5962
|
+
completedRoutes: Scalars['Int']['output'];
|
|
5963
|
+
totalDeliveryJobs: Scalars['Int']['output'];
|
|
5964
|
+
totalDistanceKm: Scalars['Float']['output'];
|
|
5965
|
+
totalRoutes: Scalars['Int']['output'];
|
|
5966
|
+
utilizationRate?: Maybe<Scalars['Float']['output']>;
|
|
5967
|
+
};
|
|
5968
|
+
|
|
5823
5969
|
export type MtwWarehouse = {
|
|
5824
5970
|
__typename?: 'MtwWarehouse';
|
|
5825
5971
|
address: Scalars['JSON']['output'];
|
|
@@ -5832,9 +5978,11 @@ export type MtwWarehouse = {
|
|
|
5832
5978
|
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
5833
5979
|
id: Scalars['ID']['output'];
|
|
5834
5980
|
locations: Array<MtwWarehouseLocation>;
|
|
5981
|
+
metrics: MtwWarehouseMetrics;
|
|
5835
5982
|
name: Scalars['String']['output'];
|
|
5836
5983
|
onBehalfOf: Scalars['String']['output'];
|
|
5837
5984
|
operatingHours?: Maybe<Scalars['JSON']['output']>;
|
|
5985
|
+
staff: Array<MtwWarehouseStaff>;
|
|
5838
5986
|
status: Scalars['String']['output'];
|
|
5839
5987
|
totalCapacity?: Maybe<Scalars['Float']['output']>;
|
|
5840
5988
|
type: WarehouseType;
|
|
@@ -5842,6 +5990,7 @@ export type MtwWarehouse = {
|
|
|
5842
5990
|
updatedBy?: Maybe<Scalars['String']['output']>;
|
|
5843
5991
|
usedCapacity?: Maybe<Scalars['Float']['output']>;
|
|
5844
5992
|
workspaceId: Scalars['ID']['output'];
|
|
5993
|
+
zones: Array<MtwWarehouseZone>;
|
|
5845
5994
|
};
|
|
5846
5995
|
|
|
5847
5996
|
|
|
@@ -5849,6 +5998,16 @@ export type MtwWarehouseLocationsArgs = {
|
|
|
5849
5998
|
pagination?: InputMaybe<PaginationInput>;
|
|
5850
5999
|
};
|
|
5851
6000
|
|
|
6001
|
+
|
|
6002
|
+
export type MtwWarehouseStaffArgs = {
|
|
6003
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
6004
|
+
};
|
|
6005
|
+
|
|
6006
|
+
|
|
6007
|
+
export type MtwWarehouseZonesArgs = {
|
|
6008
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
6009
|
+
};
|
|
6010
|
+
|
|
5852
6011
|
export type MtwWarehouseLocation = {
|
|
5853
6012
|
__typename?: 'MtwWarehouseLocation';
|
|
5854
6013
|
aisle?: Maybe<Scalars['String']['output']>;
|
|
@@ -5872,6 +6031,35 @@ export type MtwWarehouseLocation = {
|
|
|
5872
6031
|
zone?: Maybe<Scalars['String']['output']>;
|
|
5873
6032
|
};
|
|
5874
6033
|
|
|
6034
|
+
export type MtwWarehouseMetrics = {
|
|
6035
|
+
__typename?: 'MtwWarehouseMetrics';
|
|
6036
|
+
activeLocations: Scalars['Int']['output'];
|
|
6037
|
+
lowStockCount: Scalars['Int']['output'];
|
|
6038
|
+
staffCount: Scalars['Int']['output'];
|
|
6039
|
+
totalAvailable: Scalars['Int']['output'];
|
|
6040
|
+
totalLocations: Scalars['Int']['output'];
|
|
6041
|
+
totalOnHand: Scalars['Int']['output'];
|
|
6042
|
+
totalSkus: Scalars['Int']['output'];
|
|
6043
|
+
utilizationPercent?: Maybe<Scalars['Float']['output']>;
|
|
6044
|
+
zoneCount: Scalars['Int']['output'];
|
|
6045
|
+
};
|
|
6046
|
+
|
|
6047
|
+
export type MtwWarehouseStaff = {
|
|
6048
|
+
__typename?: 'MtwWarehouseStaff';
|
|
6049
|
+
contactEmail?: Maybe<Scalars['String']['output']>;
|
|
6050
|
+
contactPhone?: Maybe<Scalars['String']['output']>;
|
|
6051
|
+
createdAt: Scalars['DateTime']['output'];
|
|
6052
|
+
id: Scalars['ID']['output'];
|
|
6053
|
+
name: Scalars['String']['output'];
|
|
6054
|
+
role: Scalars['String']['output'];
|
|
6055
|
+
shift?: Maybe<Scalars['String']['output']>;
|
|
6056
|
+
status: Scalars['String']['output'];
|
|
6057
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
6058
|
+
userId?: Maybe<Scalars['String']['output']>;
|
|
6059
|
+
warehouseId: Scalars['ID']['output'];
|
|
6060
|
+
workspaceId: Scalars['ID']['output'];
|
|
6061
|
+
};
|
|
6062
|
+
|
|
5875
6063
|
export type MtwWarehouseStats = {
|
|
5876
6064
|
__typename?: 'MtwWarehouseStats';
|
|
5877
6065
|
active: Scalars['Int']['output'];
|
|
@@ -5879,6 +6067,22 @@ export type MtwWarehouseStats = {
|
|
|
5879
6067
|
total: Scalars['Int']['output'];
|
|
5880
6068
|
};
|
|
5881
6069
|
|
|
6070
|
+
export type MtwWarehouseZone = {
|
|
6071
|
+
__typename?: 'MtwWarehouseZone';
|
|
6072
|
+
code: Scalars['String']['output'];
|
|
6073
|
+
createdAt: Scalars['DateTime']['output'];
|
|
6074
|
+
id: Scalars['ID']['output'];
|
|
6075
|
+
name: Scalars['String']['output'];
|
|
6076
|
+
status: Scalars['String']['output'];
|
|
6077
|
+
temperatureRange?: Maybe<Scalars['String']['output']>;
|
|
6078
|
+
totalCapacity?: Maybe<Scalars['Float']['output']>;
|
|
6079
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
6080
|
+
usedCapacity?: Maybe<Scalars['Float']['output']>;
|
|
6081
|
+
warehouseId: Scalars['ID']['output'];
|
|
6082
|
+
workspaceId: Scalars['ID']['output'];
|
|
6083
|
+
zoneType: Scalars['String']['output'];
|
|
6084
|
+
};
|
|
6085
|
+
|
|
5882
6086
|
/** Unit MoveTheWheels shows weights in. */
|
|
5883
6087
|
export type MtwWeightUnit =
|
|
5884
6088
|
/** Kilograms */
|
|
@@ -5916,6 +6120,8 @@ export type Mutation = {
|
|
|
5916
6120
|
createCustomer: MtwCustomer;
|
|
5917
6121
|
createDeliveryJob: MtwDeliveryJob;
|
|
5918
6122
|
createDriver: MtwDriver;
|
|
6123
|
+
createDriverComplianceRecord: MtwDriverComplianceRecord;
|
|
6124
|
+
createDriverShift: MtwDriverShift;
|
|
5919
6125
|
createIntegration: MtwIntegration;
|
|
5920
6126
|
createInventoryItem: MtwInventoryItem;
|
|
5921
6127
|
createInventoryTransaction: MtwInventoryTransaction;
|
|
@@ -5926,14 +6132,19 @@ export type Mutation = {
|
|
|
5926
6132
|
createServiceProvider: MtwServiceProvider;
|
|
5927
6133
|
createShipment: MtwShipment;
|
|
5928
6134
|
createVehicle: MtwVehicle;
|
|
6135
|
+
createVehicleMaintenanceLog: MtwVehicleMaintenanceLog;
|
|
5929
6136
|
createWarehouse: MtwWarehouse;
|
|
5930
6137
|
createWarehouseLocation: MtwWarehouseLocation;
|
|
6138
|
+
createWarehouseStaff: MtwWarehouseStaff;
|
|
6139
|
+
createWarehouseZone: MtwWarehouseZone;
|
|
5931
6140
|
/** Accept, accept with variance, or dispute the latest revision. The comparison author cannot decide. */
|
|
5932
6141
|
decideMtwFreightInvoice: MtwFreightInvoiceReview;
|
|
5933
6142
|
deleteCargoItem: Scalars['Boolean']['output'];
|
|
5934
6143
|
deleteCustomer: Scalars['Boolean']['output'];
|
|
5935
6144
|
deleteDeliveryJob: Scalars['Boolean']['output'];
|
|
5936
6145
|
deleteDriver: Scalars['Boolean']['output'];
|
|
6146
|
+
deleteDriverComplianceRecord: Scalars['Boolean']['output'];
|
|
6147
|
+
deleteDriverShift: Scalars['Boolean']['output'];
|
|
5937
6148
|
deleteIntegration: Scalars['Boolean']['output'];
|
|
5938
6149
|
deleteInventoryItem: Scalars['Boolean']['output'];
|
|
5939
6150
|
/** Soft-deletes the report and stops its schedule. Its past runs stay readable. */
|
|
@@ -5944,7 +6155,10 @@ export type Mutation = {
|
|
|
5944
6155
|
deleteServiceProvider: Scalars['Boolean']['output'];
|
|
5945
6156
|
deleteShipment: Scalars['Boolean']['output'];
|
|
5946
6157
|
deleteVehicle: Scalars['Boolean']['output'];
|
|
6158
|
+
deleteVehicleMaintenanceLog: Scalars['Boolean']['output'];
|
|
5947
6159
|
deleteWarehouse: Scalars['Boolean']['output'];
|
|
6160
|
+
deleteWarehouseStaff: Scalars['Boolean']['output'];
|
|
6161
|
+
deleteWarehouseZone: Scalars['Boolean']['output'];
|
|
5948
6162
|
exportMtwEntities: MtwExportJob;
|
|
5949
6163
|
/** Generate the report now and store the run. */
|
|
5950
6164
|
generateMtwReport: MtwReportRun;
|
|
@@ -6089,6 +6303,8 @@ export type Mutation = {
|
|
|
6089
6303
|
updateDeliveryJob: MtwDeliveryJob;
|
|
6090
6304
|
updateDeliveryJobStatus: MtwDeliveryJob;
|
|
6091
6305
|
updateDriver: MtwDriver;
|
|
6306
|
+
updateDriverComplianceRecord: MtwDriverComplianceRecord;
|
|
6307
|
+
updateDriverShift: MtwDriverShift;
|
|
6092
6308
|
updateDriverStatus: MtwDriver;
|
|
6093
6309
|
updateIntegration: MtwIntegration;
|
|
6094
6310
|
updateInventoryItem: MtwInventoryItem;
|
|
@@ -6103,9 +6319,12 @@ export type Mutation = {
|
|
|
6103
6319
|
updateShipment: MtwShipment;
|
|
6104
6320
|
updateVehicle: MtwVehicle;
|
|
6105
6321
|
updateVehicleLocation: MtwVehicle;
|
|
6322
|
+
updateVehicleMaintenanceLog: MtwVehicleMaintenanceLog;
|
|
6106
6323
|
updateVehicleStatus: MtwVehicle;
|
|
6107
6324
|
updateWarehouse: MtwWarehouse;
|
|
6108
6325
|
updateWarehouseLocation: MtwWarehouseLocation;
|
|
6326
|
+
updateWarehouseStaff: MtwWarehouseStaff;
|
|
6327
|
+
updateWarehouseZone: MtwWarehouseZone;
|
|
6109
6328
|
verifyMtwInspectorQualification: MtwInspectorQualification;
|
|
6110
6329
|
};
|
|
6111
6330
|
|
|
@@ -6195,6 +6414,16 @@ export type MutationCreateDriverArgs = {
|
|
|
6195
6414
|
};
|
|
6196
6415
|
|
|
6197
6416
|
|
|
6417
|
+
export type MutationCreateDriverComplianceRecordArgs = {
|
|
6418
|
+
input: CreateDriverComplianceRecordInput;
|
|
6419
|
+
};
|
|
6420
|
+
|
|
6421
|
+
|
|
6422
|
+
export type MutationCreateDriverShiftArgs = {
|
|
6423
|
+
input: CreateDriverShiftInput;
|
|
6424
|
+
};
|
|
6425
|
+
|
|
6426
|
+
|
|
6198
6427
|
export type MutationCreateIntegrationArgs = {
|
|
6199
6428
|
input: CreateIntegrationInput;
|
|
6200
6429
|
};
|
|
@@ -6245,6 +6474,11 @@ export type MutationCreateVehicleArgs = {
|
|
|
6245
6474
|
};
|
|
6246
6475
|
|
|
6247
6476
|
|
|
6477
|
+
export type MutationCreateVehicleMaintenanceLogArgs = {
|
|
6478
|
+
input: CreateVehicleMaintenanceLogInput;
|
|
6479
|
+
};
|
|
6480
|
+
|
|
6481
|
+
|
|
6248
6482
|
export type MutationCreateWarehouseArgs = {
|
|
6249
6483
|
input: CreateWarehouseInput;
|
|
6250
6484
|
};
|
|
@@ -6255,6 +6489,16 @@ export type MutationCreateWarehouseLocationArgs = {
|
|
|
6255
6489
|
};
|
|
6256
6490
|
|
|
6257
6491
|
|
|
6492
|
+
export type MutationCreateWarehouseStaffArgs = {
|
|
6493
|
+
input: CreateWarehouseStaffInput;
|
|
6494
|
+
};
|
|
6495
|
+
|
|
6496
|
+
|
|
6497
|
+
export type MutationCreateWarehouseZoneArgs = {
|
|
6498
|
+
input: CreateWarehouseZoneInput;
|
|
6499
|
+
};
|
|
6500
|
+
|
|
6501
|
+
|
|
6258
6502
|
export type MutationDecideMtwFreightInvoiceArgs = {
|
|
6259
6503
|
input: DecideMtwFreightInvoiceInput;
|
|
6260
6504
|
};
|
|
@@ -6280,6 +6524,16 @@ export type MutationDeleteDriverArgs = {
|
|
|
6280
6524
|
};
|
|
6281
6525
|
|
|
6282
6526
|
|
|
6527
|
+
export type MutationDeleteDriverComplianceRecordArgs = {
|
|
6528
|
+
id: Scalars['ID']['input'];
|
|
6529
|
+
};
|
|
6530
|
+
|
|
6531
|
+
|
|
6532
|
+
export type MutationDeleteDriverShiftArgs = {
|
|
6533
|
+
id: Scalars['ID']['input'];
|
|
6534
|
+
};
|
|
6535
|
+
|
|
6536
|
+
|
|
6283
6537
|
export type MutationDeleteIntegrationArgs = {
|
|
6284
6538
|
id: Scalars['ID']['input'];
|
|
6285
6539
|
};
|
|
@@ -6320,11 +6574,26 @@ export type MutationDeleteVehicleArgs = {
|
|
|
6320
6574
|
};
|
|
6321
6575
|
|
|
6322
6576
|
|
|
6577
|
+
export type MutationDeleteVehicleMaintenanceLogArgs = {
|
|
6578
|
+
id: Scalars['ID']['input'];
|
|
6579
|
+
};
|
|
6580
|
+
|
|
6581
|
+
|
|
6323
6582
|
export type MutationDeleteWarehouseArgs = {
|
|
6324
6583
|
id: Scalars['ID']['input'];
|
|
6325
6584
|
};
|
|
6326
6585
|
|
|
6327
6586
|
|
|
6587
|
+
export type MutationDeleteWarehouseStaffArgs = {
|
|
6588
|
+
id: Scalars['ID']['input'];
|
|
6589
|
+
};
|
|
6590
|
+
|
|
6591
|
+
|
|
6592
|
+
export type MutationDeleteWarehouseZoneArgs = {
|
|
6593
|
+
id: Scalars['ID']['input'];
|
|
6594
|
+
};
|
|
6595
|
+
|
|
6596
|
+
|
|
6328
6597
|
export type MutationExportMtwEntitiesArgs = {
|
|
6329
6598
|
input: ExportMtwEntitiesInput;
|
|
6330
6599
|
};
|
|
@@ -6453,6 +6722,7 @@ export type MutationOpenMtwFreeTimeClockArgs = {
|
|
|
6453
6722
|
|
|
6454
6723
|
export type MutationOptimizeRouteArgs = {
|
|
6455
6724
|
id: Scalars['ID']['input'];
|
|
6725
|
+
input?: InputMaybe<OptimizeRouteInput>;
|
|
6456
6726
|
};
|
|
6457
6727
|
|
|
6458
6728
|
|
|
@@ -6673,6 +6943,18 @@ export type MutationUpdateDriverArgs = {
|
|
|
6673
6943
|
};
|
|
6674
6944
|
|
|
6675
6945
|
|
|
6946
|
+
export type MutationUpdateDriverComplianceRecordArgs = {
|
|
6947
|
+
id: Scalars['ID']['input'];
|
|
6948
|
+
input: UpdateDriverComplianceRecordInput;
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
|
|
6952
|
+
export type MutationUpdateDriverShiftArgs = {
|
|
6953
|
+
id: Scalars['ID']['input'];
|
|
6954
|
+
input: UpdateDriverShiftInput;
|
|
6955
|
+
};
|
|
6956
|
+
|
|
6957
|
+
|
|
6676
6958
|
export type MutationUpdateDriverStatusArgs = {
|
|
6677
6959
|
id: Scalars['ID']['input'];
|
|
6678
6960
|
status: DriverStatus;
|
|
@@ -6743,6 +7025,12 @@ export type MutationUpdateVehicleLocationArgs = {
|
|
|
6743
7025
|
};
|
|
6744
7026
|
|
|
6745
7027
|
|
|
7028
|
+
export type MutationUpdateVehicleMaintenanceLogArgs = {
|
|
7029
|
+
id: Scalars['ID']['input'];
|
|
7030
|
+
input: UpdateVehicleMaintenanceLogInput;
|
|
7031
|
+
};
|
|
7032
|
+
|
|
7033
|
+
|
|
6746
7034
|
export type MutationUpdateVehicleStatusArgs = {
|
|
6747
7035
|
id: Scalars['ID']['input'];
|
|
6748
7036
|
status: VehicleStatus;
|
|
@@ -6761,6 +7049,18 @@ export type MutationUpdateWarehouseLocationArgs = {
|
|
|
6761
7049
|
};
|
|
6762
7050
|
|
|
6763
7051
|
|
|
7052
|
+
export type MutationUpdateWarehouseStaffArgs = {
|
|
7053
|
+
id: Scalars['ID']['input'];
|
|
7054
|
+
input: UpdateWarehouseStaffInput;
|
|
7055
|
+
};
|
|
7056
|
+
|
|
7057
|
+
|
|
7058
|
+
export type MutationUpdateWarehouseZoneArgs = {
|
|
7059
|
+
id: Scalars['ID']['input'];
|
|
7060
|
+
input: UpdateWarehouseZoneInput;
|
|
7061
|
+
};
|
|
7062
|
+
|
|
7063
|
+
|
|
6764
7064
|
export type MutationVerifyMtwInspectorQualificationArgs = {
|
|
6765
7065
|
input: VerifyMtwInspectorQualificationInput;
|
|
6766
7066
|
};
|
|
@@ -6796,6 +7096,10 @@ export type OperationContext = {
|
|
|
6796
7096
|
workspaceId?: Maybe<Scalars['ID']['output']>;
|
|
6797
7097
|
};
|
|
6798
7098
|
|
|
7099
|
+
export type OptimizeRouteInput = {
|
|
7100
|
+
strategy?: InputMaybe<RouteOptimizationStrategy>;
|
|
7101
|
+
};
|
|
7102
|
+
|
|
6799
7103
|
/**
|
|
6800
7104
|
* The business's own vehicle cost for the same lane. Nothing is assumed: the
|
|
6801
7105
|
* estimate exists only when the caller supplies its own cost per km, because
|
|
@@ -8116,6 +8420,10 @@ export type RevokeMtwProcedureDeviationInput = {
|
|
|
8116
8420
|
stepDecisionId: Scalars['ID']['input'];
|
|
8117
8421
|
};
|
|
8118
8422
|
|
|
8423
|
+
export type RoadHaulType =
|
|
8424
|
+
| 'FTL'
|
|
8425
|
+
| 'LTL';
|
|
8426
|
+
|
|
8119
8427
|
export type RouteFilterInput = {
|
|
8120
8428
|
driverId?: InputMaybe<Scalars['ID']['input']>;
|
|
8121
8429
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -8124,6 +8432,49 @@ export type RouteFilterInput = {
|
|
|
8124
8432
|
vehicleId?: InputMaybe<Scalars['ID']['input']>;
|
|
8125
8433
|
};
|
|
8126
8434
|
|
|
8435
|
+
export type RouteOptimizationStrategy =
|
|
8436
|
+
/** Resolve automatically: window-aware seeding plus a 2-opt pass. */
|
|
8437
|
+
| 'AUTO'
|
|
8438
|
+
/** Greedy nearest-neighbour tour from the first recorded stop. */
|
|
8439
|
+
| 'NEAREST_NEIGHBOUR'
|
|
8440
|
+
/** Greedy seeded at the tightest delivery window, pricing lateness into each pick. */
|
|
8441
|
+
| 'TIME_WINDOW'
|
|
8442
|
+
/** Nearest-neighbour seed followed by a 2-opt improvement pass. */
|
|
8443
|
+
| 'TWO_OPT';
|
|
8444
|
+
|
|
8445
|
+
/** Result of the most recent optimizeRoute run, persisted on the route. */
|
|
8446
|
+
export type RouteOptimizationSummary = {
|
|
8447
|
+
__typename?: 'RouteOptimizationSummary';
|
|
8448
|
+
distanceAfterKm?: Maybe<Scalars['Float']['output']>;
|
|
8449
|
+
distanceBeforeKm?: Maybe<Scalars['Float']['output']>;
|
|
8450
|
+
distanceSavedKm?: Maybe<Scalars['Float']['output']>;
|
|
8451
|
+
durationAfterMinutes?: Maybe<Scalars['Float']['output']>;
|
|
8452
|
+
/** True when no constraint (windows, capacity, driver hours) was violated. */
|
|
8453
|
+
feasible: Scalars['Boolean']['output'];
|
|
8454
|
+
ranAt: Scalars['DateTime']['output'];
|
|
8455
|
+
strategy: RouteOptimizationStrategy;
|
|
8456
|
+
violations: Array<RouteOptimizationViolation>;
|
|
8457
|
+
waypointCount: Scalars['Int']['output'];
|
|
8458
|
+
};
|
|
8459
|
+
|
|
8460
|
+
export type RouteOptimizationViolation = {
|
|
8461
|
+
__typename?: 'RouteOptimizationViolation';
|
|
8462
|
+
code: RouteOptimizationViolationCode;
|
|
8463
|
+
message: Scalars['String']['output'];
|
|
8464
|
+
/** 1-based position in the optimized tour; null when not tied to one stop. */
|
|
8465
|
+
sequence?: Maybe<Scalars['Int']['output']>;
|
|
8466
|
+
};
|
|
8467
|
+
|
|
8468
|
+
export type RouteOptimizationViolationCode =
|
|
8469
|
+
/** Some stops have no coordinates, so the tour cannot be measured. */
|
|
8470
|
+
| 'NO_COORDINATES'
|
|
8471
|
+
/** The total recorded load exceeds the assigned vehicle's recorded weight capacity. */
|
|
8472
|
+
| 'OVER_CAPACITY'
|
|
8473
|
+
/** The optimized run exceeds the assigned driver's recorded shift limit. */
|
|
8474
|
+
| 'OVER_DRIVER_HOURS'
|
|
8475
|
+
/** A stop is reached outside its recorded delivery window. */
|
|
8476
|
+
| 'WINDOW_MISSED';
|
|
8477
|
+
|
|
8127
8478
|
export type RouteStatus =
|
|
8128
8479
|
| 'CANCELLED'
|
|
8129
8480
|
| 'COMPLETED'
|
|
@@ -8363,6 +8714,16 @@ export type UpdateDeliveryJobStatusInput = {
|
|
|
8363
8714
|
status: DeliveryJobStatus;
|
|
8364
8715
|
};
|
|
8365
8716
|
|
|
8717
|
+
export type UpdateDriverComplianceRecordInput = {
|
|
8718
|
+
context?: InputMaybe<ContextInput>;
|
|
8719
|
+
expiresAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
8720
|
+
issuedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
8721
|
+
notes?: InputMaybe<Scalars['String']['input']>;
|
|
8722
|
+
recordType?: InputMaybe<Scalars['String']['input']>;
|
|
8723
|
+
referenceNumber?: InputMaybe<Scalars['String']['input']>;
|
|
8724
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
8725
|
+
};
|
|
8726
|
+
|
|
8366
8727
|
export type UpdateDriverInput = {
|
|
8367
8728
|
baseSalary?: InputMaybe<Scalars['Float']['input']>;
|
|
8368
8729
|
bonusYtd?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -8376,6 +8737,7 @@ export type UpdateDriverInput = {
|
|
|
8376
8737
|
licenseClass?: InputMaybe<Scalars['String']['input']>;
|
|
8377
8738
|
licenseExpiry?: InputMaybe<Scalars['DateTime']['input']>;
|
|
8378
8739
|
licenseNumber?: InputMaybe<Scalars['String']['input']>;
|
|
8740
|
+
maxDrivingHoursPerShift?: InputMaybe<Scalars['Float']['input']>;
|
|
8379
8741
|
notes?: InputMaybe<Scalars['String']['input']>;
|
|
8380
8742
|
onLeaveUntil?: InputMaybe<Scalars['DateTime']['input']>;
|
|
8381
8743
|
payCurrency?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -8390,6 +8752,16 @@ export type UpdateDriverInput = {
|
|
|
8390
8752
|
vehicleIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
8391
8753
|
};
|
|
8392
8754
|
|
|
8755
|
+
export type UpdateDriverShiftInput = {
|
|
8756
|
+
context?: InputMaybe<ContextInput>;
|
|
8757
|
+
endTime?: InputMaybe<Scalars['String']['input']>;
|
|
8758
|
+
maxHours?: InputMaybe<Scalars['Float']['input']>;
|
|
8759
|
+
notes?: InputMaybe<Scalars['String']['input']>;
|
|
8760
|
+
shiftDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
8761
|
+
startTime?: InputMaybe<Scalars['String']['input']>;
|
|
8762
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
8763
|
+
};
|
|
8764
|
+
|
|
8393
8765
|
export type UpdateIntegrationInput = {
|
|
8394
8766
|
apiKey?: InputMaybe<Scalars['String']['input']>;
|
|
8395
8767
|
apiSecret?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -8469,6 +8841,7 @@ export type UpdateVehicleInput = {
|
|
|
8469
8841
|
capacity?: InputMaybe<Scalars['JSON']['input']>;
|
|
8470
8842
|
context?: InputMaybe<ContextInput>;
|
|
8471
8843
|
currentLocation?: InputMaybe<Scalars['JSON']['input']>;
|
|
8844
|
+
diagnostics?: InputMaybe<Scalars['JSON']['input']>;
|
|
8472
8845
|
fuelEfficiencyLPer100Km?: InputMaybe<Scalars['Float']['input']>;
|
|
8473
8846
|
fuelLevel?: InputMaybe<Scalars['Float']['input']>;
|
|
8474
8847
|
fuelType?: InputMaybe<FuelType>;
|
|
@@ -8486,6 +8859,18 @@ export type UpdateVehicleInput = {
|
|
|
8486
8859
|
year?: InputMaybe<Scalars['Int']['input']>;
|
|
8487
8860
|
};
|
|
8488
8861
|
|
|
8862
|
+
export type UpdateVehicleMaintenanceLogInput = {
|
|
8863
|
+
context?: InputMaybe<ContextInput>;
|
|
8864
|
+
cost?: InputMaybe<Scalars['Float']['input']>;
|
|
8865
|
+
currency?: InputMaybe<Scalars['String']['input']>;
|
|
8866
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
8867
|
+
mileage?: InputMaybe<Scalars['Float']['input']>;
|
|
8868
|
+
notes?: InputMaybe<Scalars['String']['input']>;
|
|
8869
|
+
serviceDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
8870
|
+
serviceType?: InputMaybe<Scalars['String']['input']>;
|
|
8871
|
+
vendor?: InputMaybe<Scalars['String']['input']>;
|
|
8872
|
+
};
|
|
8873
|
+
|
|
8489
8874
|
export type UpdateWarehouseInput = {
|
|
8490
8875
|
address?: InputMaybe<Scalars['JSON']['input']>;
|
|
8491
8876
|
capabilities?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -8513,6 +8898,28 @@ export type UpdateWarehouseLocationInput = {
|
|
|
8513
8898
|
zone?: InputMaybe<Scalars['String']['input']>;
|
|
8514
8899
|
};
|
|
8515
8900
|
|
|
8901
|
+
export type UpdateWarehouseStaffInput = {
|
|
8902
|
+
contactEmail?: InputMaybe<Scalars['String']['input']>;
|
|
8903
|
+
contactPhone?: InputMaybe<Scalars['String']['input']>;
|
|
8904
|
+
context?: InputMaybe<ContextInput>;
|
|
8905
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
8906
|
+
role?: InputMaybe<Scalars['String']['input']>;
|
|
8907
|
+
shift?: InputMaybe<Scalars['String']['input']>;
|
|
8908
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
8909
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
8910
|
+
};
|
|
8911
|
+
|
|
8912
|
+
export type UpdateWarehouseZoneInput = {
|
|
8913
|
+
code?: InputMaybe<Scalars['String']['input']>;
|
|
8914
|
+
context?: InputMaybe<ContextInput>;
|
|
8915
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
8916
|
+
status?: InputMaybe<Scalars['String']['input']>;
|
|
8917
|
+
temperatureRange?: InputMaybe<Scalars['String']['input']>;
|
|
8918
|
+
totalCapacity?: InputMaybe<Scalars['Float']['input']>;
|
|
8919
|
+
usedCapacity?: InputMaybe<Scalars['Float']['input']>;
|
|
8920
|
+
zoneType?: InputMaybe<Scalars['String']['input']>;
|
|
8921
|
+
};
|
|
8922
|
+
|
|
8516
8923
|
export type VehicleFilterInput = {
|
|
8517
8924
|
driverId?: InputMaybe<Scalars['ID']['input']>;
|
|
8518
8925
|
/** Fetch exactly these vehicles by id, regardless of how many. Ignores other filters/pagination when set. */
|