@burdenoff/microfe-movethewheels 2026.1016.2 → 2026.1016.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/README.md +10 -0
- package/dist/MoveTheWheelsRoot.js +5 -0
- package/dist/MoveTheWheelsRoutes.js +25 -21
- package/dist/components/ContainerEvidencePicker.js +55 -55
- package/dist/components/FleetAlertsPanel.js +2 -2
- package/dist/components/freight-cost/FreightCommercialEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
- package/dist/components/freight-cost/FreightDraftForm.js +106 -91
- package/dist/components/freight-cost/FreightHistory.js +42 -40
- package/dist/components/freight-invoice/InvoiceForm.js +366 -0
- package/dist/components/freight-invoice/InvoiceResults.js +240 -0
- package/dist/generated/consolidation-operations.d.ts +195 -265
- package/dist/generated/container-condition-operations.d.ts +124 -187
- package/dist/generated/container-operations.d.ts +59 -85
- package/dist/generated/empty-reuse-operations.d.ts +165 -271
- package/dist/generated/free-time-operations.d.ts +120 -184
- package/dist/generated/freight-cost-operations.d.ts +955 -165
- package/dist/generated/freight-invoice-operations.d.ts +1447 -0
- package/dist/generated/logistics-procedure-operations.d.ts +100 -156
- package/dist/generated/pending-pick-operations.d.ts +769 -1025
- package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
- package/dist/generated/stock-binding-operations.d.ts +188 -260
- package/dist/generated/stock-observation-operations.d.ts +103 -138
- package/dist/generated/tracking-quality-operations.d.ts +27 -41
- package/dist/generated/trip-utilization-operations.d.ts +137 -185
- package/dist/generated/wspace-operations.d.ts +628 -2272
- package/dist/generated/wspace-types.d.ts +4 -23
- package/dist/hooks/useFreightRecoveryAction.js +20 -20
- package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
- package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
- package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
- package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
- package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
- package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
- package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
- package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
- package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
- package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
- package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
- package/dist/pages/DriverDetailsPage.js +306 -282
- package/dist/pages/FreightEstimatePage.js +97 -92
- package/dist/pages/FreightInvoicePage.js +346 -0
- package/dist/src/generated/consolidation-operations.js +3961 -503
- package/dist/src/generated/container-condition-operations.js +2968 -206
- package/dist/src/generated/container-operations.js +997 -99
- package/dist/src/generated/empty-reuse-operations.js +4811 -747
- package/dist/src/generated/free-time-operations.js +2824 -233
- package/dist/src/generated/freight-cost-operations.js +4852 -323
- package/dist/src/generated/freight-invoice-operations.js +4894 -0
- package/dist/src/generated/logistics-procedure-operations.js +2707 -360
- package/dist/src/generated/pending-pick-operations.js +8244 -1196
- package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
- package/dist/src/generated/stock-binding-operations.js +2779 -173
- package/dist/src/generated/stock-observation-operations.js +1274 -91
- package/dist/src/generated/tracking-quality-operations.js +407 -42
- package/dist/src/generated/trip-utilization-operations.js +1765 -138
- package/dist/src/generated/wspace-operations.js +428 -706
- package/dist/utils/driverLicenseExpiry.js +14 -0
- package/dist/utils/freightAcknowledgement.js +6 -5
- package/dist/utils/freightCommercial.js +194 -0
- package/dist/utils/freightRecovery.js +22 -22
- package/dist/utils/invoiceComparison.js +272 -0
- package/package.json +30 -29
- package/src/generated/consolidation-operations.ts +60 -559
- package/src/generated/container-condition-operations.ts +63 -265
- package/src/generated/container-operations.ts +37 -132
- package/src/generated/empty-reuse-operations.ts +83 -824
- package/src/generated/free-time-operations.ts +55 -284
- package/src/generated/freight-cost-operations.ts +373 -349
- package/src/generated/freight-invoice-operations.ts +830 -0
- package/src/generated/logistics-procedure-operations.ts +60 -414
- package/src/generated/pending-pick-operations.ts +48 -1239
- package/src/generated/shipment-status-authority-operations.ts +33 -113
- package/src/generated/stock-binding-operations.ts +29 -198
- package/src/generated/stock-observation-operations.ts +24 -111
- package/src/generated/tracking-quality-operations.ts +19 -57
- package/src/generated/trip-utilization-operations.ts +32 -166
- package/src/generated/wspace-operations.ts +284 -2906
- package/src/generated/wspace-types.ts +2 -8
- package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
- package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
- package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
- package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
- package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
- package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
- package/src/movethewheels/hooks/useFleet.ts +1 -1
- package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
- package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
- package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
- package/src/movethewheels/pages/FreightEstimatePage.tsx +15 -7
- package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
- package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
- package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
- package/src/movethewheels/utils/freightCommercial.ts +388 -0
- package/src/movethewheels/utils/freightRecovery.ts +6 -2
- package/src/movethewheels/utils/invoiceComparison.ts +520 -0
- package/src/operations/freight-cost/commercial.graphql +483 -0
- package/src/operations/freight-invoice/comparison.graphql +40 -0
- package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
- package/patches/braces@3.0.3.patch +0 -87
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
3
|
+
type Exact<T extends {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}> = {
|
|
6
6
|
[K in keyof T]: T[K];
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
-
};
|
|
11
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
-
};
|
|
14
|
-
export type MakeEmpty<T extends {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}, K extends keyof T> = {
|
|
17
|
-
[_ in K]?: never;
|
|
18
|
-
};
|
|
8
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
19
9
|
export type Incremental<T> = T | {
|
|
20
10
|
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
11
|
};
|
|
12
|
+
import type * as Types from './trip-utilization-operations';
|
|
13
|
+
export type Maybe<T> = T | null;
|
|
14
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
22
15
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
16
|
export type Scalars = {
|
|
24
17
|
ID: {
|
|
@@ -257,103 +250,90 @@ export type RouteStatus = 'CANCELLED' | 'COMPLETED' | 'IN_PROGRESS' | 'PLANNED';
|
|
|
257
250
|
export type VehicleStatus = 'ACTIVE' | 'DECOMMISSIONED' | 'INACTIVE' | 'IN_TRANSIT' | 'MAINTENANCE';
|
|
258
251
|
export type VehicleType = 'BICYCLE' | 'DRONE' | 'FLATBED' | 'MOTORCYCLE' | 'REFRIGERATED' | 'SEMI_TRAILER' | 'TRUCK' | 'VAN';
|
|
259
252
|
export type UtilizationVehicleFragment = {
|
|
260
|
-
__typename?: 'MtwVehicle';
|
|
261
253
|
id: string;
|
|
262
254
|
vehicleNumber: string;
|
|
263
|
-
licensePlate
|
|
264
|
-
type: VehicleType;
|
|
265
|
-
status: VehicleStatus;
|
|
255
|
+
licensePlate: string | null;
|
|
256
|
+
type: Types.VehicleType;
|
|
257
|
+
status: Types.VehicleStatus;
|
|
266
258
|
updatedAt: string;
|
|
267
259
|
};
|
|
268
260
|
export type UtilizationRouteFragment = {
|
|
269
|
-
__typename?: 'MtwRoute';
|
|
270
261
|
id: string;
|
|
271
262
|
name: string;
|
|
272
|
-
status: RouteStatus;
|
|
263
|
+
status: Types.RouteStatus;
|
|
273
264
|
updatedAt: string;
|
|
274
|
-
vehicleId
|
|
275
|
-
vehicle
|
|
276
|
-
__typename?: 'MtwVehicle';
|
|
265
|
+
vehicleId: string | null;
|
|
266
|
+
vehicle: {
|
|
277
267
|
id: string;
|
|
278
268
|
vehicleNumber: string;
|
|
279
|
-
licensePlate
|
|
280
|
-
type: VehicleType;
|
|
281
|
-
status: VehicleStatus;
|
|
269
|
+
licensePlate: string | null;
|
|
270
|
+
type: Types.VehicleType;
|
|
271
|
+
status: Types.VehicleStatus;
|
|
282
272
|
updatedAt: string;
|
|
283
273
|
} | null;
|
|
284
274
|
};
|
|
285
275
|
export type UtilizationRoutesQueryVariables = Exact<{
|
|
286
|
-
pagination: PaginationInput;
|
|
276
|
+
pagination: Types.PaginationInput;
|
|
287
277
|
}>;
|
|
288
278
|
export type UtilizationRoutesQuery = {
|
|
289
|
-
__typename?: 'Query';
|
|
290
279
|
routesCount: number;
|
|
291
280
|
routes: Array<{
|
|
292
|
-
__typename?: 'MtwRoute';
|
|
293
281
|
id: string;
|
|
294
282
|
name: string;
|
|
295
|
-
status: RouteStatus;
|
|
283
|
+
status: Types.RouteStatus;
|
|
296
284
|
updatedAt: string;
|
|
297
|
-
vehicleId
|
|
298
|
-
vehicle
|
|
299
|
-
__typename?: 'MtwVehicle';
|
|
285
|
+
vehicleId: string | null;
|
|
286
|
+
vehicle: {
|
|
300
287
|
id: string;
|
|
301
288
|
vehicleNumber: string;
|
|
302
|
-
licensePlate
|
|
303
|
-
type: VehicleType;
|
|
304
|
-
status: VehicleStatus;
|
|
289
|
+
licensePlate: string | null;
|
|
290
|
+
type: Types.VehicleType;
|
|
291
|
+
status: Types.VehicleStatus;
|
|
305
292
|
updatedAt: string;
|
|
306
293
|
} | null;
|
|
307
294
|
}>;
|
|
308
295
|
};
|
|
309
296
|
export type UtilizationCurrentRouteQueryVariables = Exact<{
|
|
310
|
-
id:
|
|
297
|
+
id: string;
|
|
311
298
|
}>;
|
|
312
299
|
export type UtilizationCurrentRouteQuery = {
|
|
313
|
-
|
|
314
|
-
route?: {
|
|
315
|
-
__typename?: 'MtwRoute';
|
|
300
|
+
route: {
|
|
316
301
|
id: string;
|
|
317
302
|
name: string;
|
|
318
|
-
status: RouteStatus;
|
|
303
|
+
status: Types.RouteStatus;
|
|
319
304
|
updatedAt: string;
|
|
320
|
-
vehicleId
|
|
321
|
-
vehicle
|
|
322
|
-
__typename?: 'MtwVehicle';
|
|
305
|
+
vehicleId: string | null;
|
|
306
|
+
vehicle: {
|
|
323
307
|
id: string;
|
|
324
308
|
vehicleNumber: string;
|
|
325
|
-
licensePlate
|
|
326
|
-
type: VehicleType;
|
|
327
|
-
status: VehicleStatus;
|
|
309
|
+
licensePlate: string | null;
|
|
310
|
+
type: Types.VehicleType;
|
|
311
|
+
status: Types.VehicleStatus;
|
|
328
312
|
updatedAt: string;
|
|
329
313
|
} | null;
|
|
330
314
|
} | null;
|
|
331
315
|
};
|
|
332
316
|
export type UtilizationCurrentVehicleQueryVariables = Exact<{
|
|
333
|
-
id:
|
|
317
|
+
id: string;
|
|
334
318
|
}>;
|
|
335
319
|
export type UtilizationCurrentVehicleQuery = {
|
|
336
|
-
|
|
337
|
-
vehicle?: {
|
|
338
|
-
__typename?: 'MtwVehicle';
|
|
320
|
+
vehicle: {
|
|
339
321
|
id: string;
|
|
340
322
|
vehicleNumber: string;
|
|
341
|
-
licensePlate
|
|
342
|
-
type: VehicleType;
|
|
343
|
-
status: VehicleStatus;
|
|
323
|
+
licensePlate: string | null;
|
|
324
|
+
type: Types.VehicleType;
|
|
325
|
+
status: Types.VehicleStatus;
|
|
344
326
|
updatedAt: string;
|
|
345
327
|
} | null;
|
|
346
328
|
};
|
|
347
329
|
export type UtilizationMetricFragment = {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
percentage?: number | null;
|
|
330
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
331
|
+
percentage: number | null;
|
|
351
332
|
knownDistanceKm: number;
|
|
352
333
|
unknownSegmentCount: number;
|
|
353
|
-
reason
|
|
334
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
354
335
|
};
|
|
355
336
|
export type UtilizationReportFragment = {
|
|
356
|
-
__typename?: 'MtwTripUtilizationReport';
|
|
357
337
|
id: string;
|
|
358
338
|
routeId: string;
|
|
359
339
|
vehicleId: string;
|
|
@@ -361,8 +341,8 @@ export type UtilizationReportFragment = {
|
|
|
361
341
|
vehicleUpdatedAt: string;
|
|
362
342
|
routeWaypointsFingerprint: string;
|
|
363
343
|
tripId: string;
|
|
364
|
-
basis: MtwTripUtilizationBasis;
|
|
365
|
-
declaredCoverage: MtwTripUtilizationCoverage;
|
|
344
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
345
|
+
declaredCoverage: Types.MtwTripUtilizationCoverage;
|
|
366
346
|
intervalFrom: string;
|
|
367
347
|
intervalUntil: string;
|
|
368
348
|
schemaVersion: number;
|
|
@@ -370,92 +350,81 @@ export type UtilizationReportFragment = {
|
|
|
370
350
|
createdBy: string;
|
|
371
351
|
actorProvenance: string;
|
|
372
352
|
evidence: Array<{
|
|
373
|
-
__typename?: 'MtwContainerEvidence';
|
|
374
353
|
fileId: string;
|
|
375
354
|
versionId: string;
|
|
376
355
|
sha256Hash: string;
|
|
377
356
|
checkedAt: string;
|
|
378
357
|
}>;
|
|
379
358
|
summary: {
|
|
380
|
-
__typename?: 'MtwTripUtilizationSummary';
|
|
381
359
|
tripId: string;
|
|
382
|
-
basis: MtwTripUtilizationBasis;
|
|
383
|
-
declaredCoverage: MtwTripUtilizationCoverage;
|
|
360
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
361
|
+
declaredCoverage: Types.MtwTripUtilizationCoverage;
|
|
384
362
|
segmentCount: number;
|
|
385
363
|
unknownFactsSegmentCount: number;
|
|
386
364
|
distanceCoverage: {
|
|
387
|
-
__typename?: 'MtwUtilizationDistanceCoverage';
|
|
388
365
|
knownSegmentCount: number;
|
|
389
366
|
unknownSegmentCount: number;
|
|
390
367
|
knownDistanceKm: number;
|
|
391
|
-
totalDistanceKm
|
|
368
|
+
totalDistanceKm: number | null;
|
|
392
369
|
};
|
|
393
370
|
loadedDistance: {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
percentage?: number | null;
|
|
371
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
372
|
+
percentage: number | null;
|
|
397
373
|
knownDistanceKm: number;
|
|
398
374
|
unknownSegmentCount: number;
|
|
399
|
-
reason
|
|
375
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
400
376
|
};
|
|
401
377
|
distanceWeightedWeight: {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
percentage?: number | null;
|
|
378
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
379
|
+
percentage: number | null;
|
|
405
380
|
knownDistanceKm: number;
|
|
406
381
|
unknownSegmentCount: number;
|
|
407
|
-
reason
|
|
382
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
408
383
|
};
|
|
409
384
|
distanceWeightedCube: {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
percentage?: number | null;
|
|
385
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
386
|
+
percentage: number | null;
|
|
413
387
|
knownDistanceKm: number;
|
|
414
388
|
unknownSegmentCount: number;
|
|
415
|
-
reason
|
|
389
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
416
390
|
};
|
|
417
391
|
segments: Array<{
|
|
418
|
-
__typename?: 'MtwTripUtilizationSegment';
|
|
419
392
|
segmentId: string;
|
|
420
393
|
sequence: number;
|
|
421
|
-
basis: MtwTripUtilizationBasis;
|
|
422
|
-
loadedState: MtwUtilizationLoadedState;
|
|
423
|
-
distanceKm
|
|
424
|
-
payloadKg
|
|
425
|
-
payloadCapacityKg
|
|
426
|
-
cubeM3
|
|
427
|
-
cubeCapacityM3
|
|
428
|
-
weightUtilizationPercentage
|
|
429
|
-
cubeUtilizationPercentage
|
|
430
|
-
warnings: Array<MtwUtilizationWarning>;
|
|
394
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
395
|
+
loadedState: Types.MtwUtilizationLoadedState;
|
|
396
|
+
distanceKm: number | null;
|
|
397
|
+
payloadKg: number | null;
|
|
398
|
+
payloadCapacityKg: number | null;
|
|
399
|
+
cubeM3: number | null;
|
|
400
|
+
cubeCapacityM3: number | null;
|
|
401
|
+
weightUtilizationPercentage: number | null;
|
|
402
|
+
cubeUtilizationPercentage: number | null;
|
|
403
|
+
warnings: Array<Types.MtwUtilizationWarning>;
|
|
431
404
|
source: {
|
|
432
|
-
__typename?: 'MtwUtilizationSource';
|
|
433
405
|
reference: string;
|
|
434
406
|
revision: string;
|
|
435
407
|
recordedAt: string;
|
|
436
|
-
observedAt
|
|
437
|
-
distanceBasis: MtwUtilizationDistanceBasis;
|
|
438
|
-
loadBasis: MtwUtilizationLoadBasis;
|
|
439
|
-
capacityBasis: MtwUtilizationCapacityBasis;
|
|
408
|
+
observedAt: string | null;
|
|
409
|
+
distanceBasis: Types.MtwUtilizationDistanceBasis;
|
|
410
|
+
loadBasis: Types.MtwUtilizationLoadBasis;
|
|
411
|
+
capacityBasis: Types.MtwUtilizationCapacityBasis;
|
|
440
412
|
};
|
|
441
413
|
}>;
|
|
442
414
|
};
|
|
443
415
|
};
|
|
444
416
|
export type UtilizationReportsQueryVariables = Exact<{
|
|
445
|
-
routeId:
|
|
446
|
-
pagination: MtwContainerPagination;
|
|
417
|
+
routeId: string;
|
|
418
|
+
pagination: Types.MtwContainerPagination;
|
|
447
419
|
}>;
|
|
448
420
|
export type UtilizationReportsQuery = {
|
|
449
|
-
__typename?: 'Query';
|
|
450
421
|
mtwTripUtilizationReportPage: {
|
|
451
|
-
__typename?: 'MtwTripUtilizationReportPage';
|
|
452
422
|
total: number;
|
|
453
423
|
limit: number;
|
|
454
424
|
offset: number;
|
|
455
425
|
hasMore: boolean;
|
|
456
|
-
nextOffset
|
|
426
|
+
nextOffset: number | null;
|
|
457
427
|
items: Array<{
|
|
458
|
-
__typename?: 'MtwTripUtilizationReport';
|
|
459
428
|
id: string;
|
|
460
429
|
routeId: string;
|
|
461
430
|
vehicleId: string;
|
|
@@ -463,8 +432,8 @@ export type UtilizationReportsQuery = {
|
|
|
463
432
|
vehicleUpdatedAt: string;
|
|
464
433
|
routeWaypointsFingerprint: string;
|
|
465
434
|
tripId: string;
|
|
466
|
-
basis: MtwTripUtilizationBasis;
|
|
467
|
-
declaredCoverage: MtwTripUtilizationCoverage;
|
|
435
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
436
|
+
declaredCoverage: Types.MtwTripUtilizationCoverage;
|
|
468
437
|
intervalFrom: string;
|
|
469
438
|
intervalUntil: string;
|
|
470
439
|
schemaVersion: number;
|
|
@@ -472,73 +441,65 @@ export type UtilizationReportsQuery = {
|
|
|
472
441
|
createdBy: string;
|
|
473
442
|
actorProvenance: string;
|
|
474
443
|
evidence: Array<{
|
|
475
|
-
__typename?: 'MtwContainerEvidence';
|
|
476
444
|
fileId: string;
|
|
477
445
|
versionId: string;
|
|
478
446
|
sha256Hash: string;
|
|
479
447
|
checkedAt: string;
|
|
480
448
|
}>;
|
|
481
449
|
summary: {
|
|
482
|
-
__typename?: 'MtwTripUtilizationSummary';
|
|
483
450
|
tripId: string;
|
|
484
|
-
basis: MtwTripUtilizationBasis;
|
|
485
|
-
declaredCoverage: MtwTripUtilizationCoverage;
|
|
451
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
452
|
+
declaredCoverage: Types.MtwTripUtilizationCoverage;
|
|
486
453
|
segmentCount: number;
|
|
487
454
|
unknownFactsSegmentCount: number;
|
|
488
455
|
distanceCoverage: {
|
|
489
|
-
__typename?: 'MtwUtilizationDistanceCoverage';
|
|
490
456
|
knownSegmentCount: number;
|
|
491
457
|
unknownSegmentCount: number;
|
|
492
458
|
knownDistanceKm: number;
|
|
493
|
-
totalDistanceKm
|
|
459
|
+
totalDistanceKm: number | null;
|
|
494
460
|
};
|
|
495
461
|
loadedDistance: {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
percentage?: number | null;
|
|
462
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
463
|
+
percentage: number | null;
|
|
499
464
|
knownDistanceKm: number;
|
|
500
465
|
unknownSegmentCount: number;
|
|
501
|
-
reason
|
|
466
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
502
467
|
};
|
|
503
468
|
distanceWeightedWeight: {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
percentage?: number | null;
|
|
469
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
470
|
+
percentage: number | null;
|
|
507
471
|
knownDistanceKm: number;
|
|
508
472
|
unknownSegmentCount: number;
|
|
509
|
-
reason
|
|
473
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
510
474
|
};
|
|
511
475
|
distanceWeightedCube: {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
percentage?: number | null;
|
|
476
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
477
|
+
percentage: number | null;
|
|
515
478
|
knownDistanceKm: number;
|
|
516
479
|
unknownSegmentCount: number;
|
|
517
|
-
reason
|
|
480
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
518
481
|
};
|
|
519
482
|
segments: Array<{
|
|
520
|
-
__typename?: 'MtwTripUtilizationSegment';
|
|
521
483
|
segmentId: string;
|
|
522
484
|
sequence: number;
|
|
523
|
-
basis: MtwTripUtilizationBasis;
|
|
524
|
-
loadedState: MtwUtilizationLoadedState;
|
|
525
|
-
distanceKm
|
|
526
|
-
payloadKg
|
|
527
|
-
payloadCapacityKg
|
|
528
|
-
cubeM3
|
|
529
|
-
cubeCapacityM3
|
|
530
|
-
weightUtilizationPercentage
|
|
531
|
-
cubeUtilizationPercentage
|
|
532
|
-
warnings: Array<MtwUtilizationWarning>;
|
|
485
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
486
|
+
loadedState: Types.MtwUtilizationLoadedState;
|
|
487
|
+
distanceKm: number | null;
|
|
488
|
+
payloadKg: number | null;
|
|
489
|
+
payloadCapacityKg: number | null;
|
|
490
|
+
cubeM3: number | null;
|
|
491
|
+
cubeCapacityM3: number | null;
|
|
492
|
+
weightUtilizationPercentage: number | null;
|
|
493
|
+
cubeUtilizationPercentage: number | null;
|
|
494
|
+
warnings: Array<Types.MtwUtilizationWarning>;
|
|
533
495
|
source: {
|
|
534
|
-
__typename?: 'MtwUtilizationSource';
|
|
535
496
|
reference: string;
|
|
536
497
|
revision: string;
|
|
537
498
|
recordedAt: string;
|
|
538
|
-
observedAt
|
|
539
|
-
distanceBasis: MtwUtilizationDistanceBasis;
|
|
540
|
-
loadBasis: MtwUtilizationLoadBasis;
|
|
541
|
-
capacityBasis: MtwUtilizationCapacityBasis;
|
|
499
|
+
observedAt: string | null;
|
|
500
|
+
distanceBasis: Types.MtwUtilizationDistanceBasis;
|
|
501
|
+
loadBasis: Types.MtwUtilizationLoadBasis;
|
|
502
|
+
capacityBasis: Types.MtwUtilizationCapacityBasis;
|
|
542
503
|
};
|
|
543
504
|
}>;
|
|
544
505
|
};
|
|
@@ -546,12 +507,10 @@ export type UtilizationReportsQuery = {
|
|
|
546
507
|
};
|
|
547
508
|
};
|
|
548
509
|
export type RecordUtilizationReportMutationVariables = Exact<{
|
|
549
|
-
input: RecordMtwTripUtilizationReportInput;
|
|
510
|
+
input: Types.RecordMtwTripUtilizationReportInput;
|
|
550
511
|
}>;
|
|
551
512
|
export type RecordUtilizationReportMutation = {
|
|
552
|
-
__typename?: 'Mutation';
|
|
553
513
|
recordMtwTripUtilizationReport: {
|
|
554
|
-
__typename?: 'MtwTripUtilizationReport';
|
|
555
514
|
id: string;
|
|
556
515
|
routeId: string;
|
|
557
516
|
vehicleId: string;
|
|
@@ -559,8 +518,8 @@ export type RecordUtilizationReportMutation = {
|
|
|
559
518
|
vehicleUpdatedAt: string;
|
|
560
519
|
routeWaypointsFingerprint: string;
|
|
561
520
|
tripId: string;
|
|
562
|
-
basis: MtwTripUtilizationBasis;
|
|
563
|
-
declaredCoverage: MtwTripUtilizationCoverage;
|
|
521
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
522
|
+
declaredCoverage: Types.MtwTripUtilizationCoverage;
|
|
564
523
|
intervalFrom: string;
|
|
565
524
|
intervalUntil: string;
|
|
566
525
|
schemaVersion: number;
|
|
@@ -568,84 +527,77 @@ export type RecordUtilizationReportMutation = {
|
|
|
568
527
|
createdBy: string;
|
|
569
528
|
actorProvenance: string;
|
|
570
529
|
evidence: Array<{
|
|
571
|
-
__typename?: 'MtwContainerEvidence';
|
|
572
530
|
fileId: string;
|
|
573
531
|
versionId: string;
|
|
574
532
|
sha256Hash: string;
|
|
575
533
|
checkedAt: string;
|
|
576
534
|
}>;
|
|
577
535
|
summary: {
|
|
578
|
-
__typename?: 'MtwTripUtilizationSummary';
|
|
579
536
|
tripId: string;
|
|
580
|
-
basis: MtwTripUtilizationBasis;
|
|
581
|
-
declaredCoverage: MtwTripUtilizationCoverage;
|
|
537
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
538
|
+
declaredCoverage: Types.MtwTripUtilizationCoverage;
|
|
582
539
|
segmentCount: number;
|
|
583
540
|
unknownFactsSegmentCount: number;
|
|
584
541
|
distanceCoverage: {
|
|
585
|
-
__typename?: 'MtwUtilizationDistanceCoverage';
|
|
586
542
|
knownSegmentCount: number;
|
|
587
543
|
unknownSegmentCount: number;
|
|
588
544
|
knownDistanceKm: number;
|
|
589
|
-
totalDistanceKm
|
|
545
|
+
totalDistanceKm: number | null;
|
|
590
546
|
};
|
|
591
547
|
loadedDistance: {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
percentage?: number | null;
|
|
548
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
549
|
+
percentage: number | null;
|
|
595
550
|
knownDistanceKm: number;
|
|
596
551
|
unknownSegmentCount: number;
|
|
597
|
-
reason
|
|
552
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
598
553
|
};
|
|
599
554
|
distanceWeightedWeight: {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
percentage?: number | null;
|
|
555
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
556
|
+
percentage: number | null;
|
|
603
557
|
knownDistanceKm: number;
|
|
604
558
|
unknownSegmentCount: number;
|
|
605
|
-
reason
|
|
559
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
606
560
|
};
|
|
607
561
|
distanceWeightedCube: {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
percentage?: number | null;
|
|
562
|
+
status: Types.MtwUtilizationMetricStatus;
|
|
563
|
+
percentage: number | null;
|
|
611
564
|
knownDistanceKm: number;
|
|
612
565
|
unknownSegmentCount: number;
|
|
613
|
-
reason
|
|
566
|
+
reason: Types.MtwUtilizationMetricReason | null;
|
|
614
567
|
};
|
|
615
568
|
segments: Array<{
|
|
616
|
-
__typename?: 'MtwTripUtilizationSegment';
|
|
617
569
|
segmentId: string;
|
|
618
570
|
sequence: number;
|
|
619
|
-
basis: MtwTripUtilizationBasis;
|
|
620
|
-
loadedState: MtwUtilizationLoadedState;
|
|
621
|
-
distanceKm
|
|
622
|
-
payloadKg
|
|
623
|
-
payloadCapacityKg
|
|
624
|
-
cubeM3
|
|
625
|
-
cubeCapacityM3
|
|
626
|
-
weightUtilizationPercentage
|
|
627
|
-
cubeUtilizationPercentage
|
|
628
|
-
warnings: Array<MtwUtilizationWarning>;
|
|
571
|
+
basis: Types.MtwTripUtilizationBasis;
|
|
572
|
+
loadedState: Types.MtwUtilizationLoadedState;
|
|
573
|
+
distanceKm: number | null;
|
|
574
|
+
payloadKg: number | null;
|
|
575
|
+
payloadCapacityKg: number | null;
|
|
576
|
+
cubeM3: number | null;
|
|
577
|
+
cubeCapacityM3: number | null;
|
|
578
|
+
weightUtilizationPercentage: number | null;
|
|
579
|
+
cubeUtilizationPercentage: number | null;
|
|
580
|
+
warnings: Array<Types.MtwUtilizationWarning>;
|
|
629
581
|
source: {
|
|
630
|
-
__typename?: 'MtwUtilizationSource';
|
|
631
582
|
reference: string;
|
|
632
583
|
revision: string;
|
|
633
584
|
recordedAt: string;
|
|
634
|
-
observedAt
|
|
635
|
-
distanceBasis: MtwUtilizationDistanceBasis;
|
|
636
|
-
loadBasis: MtwUtilizationLoadBasis;
|
|
637
|
-
capacityBasis: MtwUtilizationCapacityBasis;
|
|
585
|
+
observedAt: string | null;
|
|
586
|
+
distanceBasis: Types.MtwUtilizationDistanceBasis;
|
|
587
|
+
loadBasis: Types.MtwUtilizationLoadBasis;
|
|
588
|
+
capacityBasis: Types.MtwUtilizationCapacityBasis;
|
|
638
589
|
};
|
|
639
590
|
}>;
|
|
640
591
|
};
|
|
641
592
|
};
|
|
642
593
|
};
|
|
643
|
-
export declare const UtilizationVehicleFragmentDoc:
|
|
644
|
-
export declare const UtilizationRouteFragmentDoc:
|
|
645
|
-
export declare const UtilizationMetricFragmentDoc:
|
|
646
|
-
export declare const UtilizationReportFragmentDoc:
|
|
647
|
-
export declare const UtilizationRoutesDocument:
|
|
648
|
-
export declare const UtilizationCurrentRouteDocument:
|
|
649
|
-
export declare const UtilizationCurrentVehicleDocument:
|
|
650
|
-
export declare const UtilizationReportsDocument:
|
|
651
|
-
export declare const RecordUtilizationReportDocument:
|
|
594
|
+
export declare const UtilizationVehicleFragmentDoc: DocumentNode<UtilizationVehicleFragment, unknown>;
|
|
595
|
+
export declare const UtilizationRouteFragmentDoc: DocumentNode<UtilizationRouteFragment, unknown>;
|
|
596
|
+
export declare const UtilizationMetricFragmentDoc: DocumentNode<UtilizationMetricFragment, unknown>;
|
|
597
|
+
export declare const UtilizationReportFragmentDoc: DocumentNode<UtilizationReportFragment, unknown>;
|
|
598
|
+
export declare const UtilizationRoutesDocument: DocumentNode<UtilizationRoutesQuery, UtilizationRoutesQueryVariables>;
|
|
599
|
+
export declare const UtilizationCurrentRouteDocument: DocumentNode<UtilizationCurrentRouteQuery, UtilizationCurrentRouteQueryVariables>;
|
|
600
|
+
export declare const UtilizationCurrentVehicleDocument: DocumentNode<UtilizationCurrentVehicleQuery, UtilizationCurrentVehicleQueryVariables>;
|
|
601
|
+
export declare const UtilizationReportsDocument: DocumentNode<UtilizationReportsQuery, UtilizationReportsQueryVariables>;
|
|
602
|
+
export declare const RecordUtilizationReportDocument: DocumentNode<RecordUtilizationReportMutation, RecordUtilizationReportMutationVariables>;
|
|
603
|
+
export {};
|