@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.
Files changed (113) hide show
  1. package/README.md +10 -0
  2. package/dist/MoveTheWheelsRoot.js +5 -0
  3. package/dist/MoveTheWheelsRoutes.js +25 -21
  4. package/dist/components/ContainerEvidencePicker.js +55 -55
  5. package/dist/components/FleetAlertsPanel.js +2 -2
  6. package/dist/components/freight-cost/FreightCommercialEditor.js +217 -0
  7. package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
  8. package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
  9. package/dist/components/freight-cost/FreightDraftForm.js +106 -91
  10. package/dist/components/freight-cost/FreightHistory.js +42 -40
  11. package/dist/components/freight-invoice/InvoiceForm.js +366 -0
  12. package/dist/components/freight-invoice/InvoiceResults.js +240 -0
  13. package/dist/generated/consolidation-operations.d.ts +195 -265
  14. package/dist/generated/container-condition-operations.d.ts +124 -187
  15. package/dist/generated/container-operations.d.ts +59 -85
  16. package/dist/generated/empty-reuse-operations.d.ts +165 -271
  17. package/dist/generated/free-time-operations.d.ts +120 -184
  18. package/dist/generated/freight-cost-operations.d.ts +955 -165
  19. package/dist/generated/freight-invoice-operations.d.ts +1447 -0
  20. package/dist/generated/logistics-procedure-operations.d.ts +100 -156
  21. package/dist/generated/pending-pick-operations.d.ts +769 -1025
  22. package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
  23. package/dist/generated/stock-binding-operations.d.ts +188 -260
  24. package/dist/generated/stock-observation-operations.d.ts +103 -138
  25. package/dist/generated/tracking-quality-operations.d.ts +27 -41
  26. package/dist/generated/trip-utilization-operations.d.ts +137 -185
  27. package/dist/generated/wspace-operations.d.ts +628 -2272
  28. package/dist/generated/wspace-types.d.ts +4 -23
  29. package/dist/hooks/useFreightRecoveryAction.js +20 -20
  30. package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
  31. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
  32. package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
  33. package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
  34. package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
  35. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
  36. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
  37. package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
  38. package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
  39. package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
  40. package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
  41. package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
  42. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
  43. package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
  44. package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
  45. package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
  46. package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
  47. package/dist/pages/DriverDetailsPage.js +306 -282
  48. package/dist/pages/FreightEstimatePage.js +97 -92
  49. package/dist/pages/FreightInvoicePage.js +346 -0
  50. package/dist/src/generated/consolidation-operations.js +3961 -503
  51. package/dist/src/generated/container-condition-operations.js +2968 -206
  52. package/dist/src/generated/container-operations.js +997 -99
  53. package/dist/src/generated/empty-reuse-operations.js +4811 -747
  54. package/dist/src/generated/free-time-operations.js +2824 -233
  55. package/dist/src/generated/freight-cost-operations.js +4852 -323
  56. package/dist/src/generated/freight-invoice-operations.js +4894 -0
  57. package/dist/src/generated/logistics-procedure-operations.js +2707 -360
  58. package/dist/src/generated/pending-pick-operations.js +8244 -1196
  59. package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
  60. package/dist/src/generated/stock-binding-operations.js +2779 -173
  61. package/dist/src/generated/stock-observation-operations.js +1274 -91
  62. package/dist/src/generated/tracking-quality-operations.js +407 -42
  63. package/dist/src/generated/trip-utilization-operations.js +1765 -138
  64. package/dist/src/generated/wspace-operations.js +428 -706
  65. package/dist/utils/driverLicenseExpiry.js +14 -0
  66. package/dist/utils/freightAcknowledgement.js +6 -5
  67. package/dist/utils/freightCommercial.js +194 -0
  68. package/dist/utils/freightRecovery.js +22 -22
  69. package/dist/utils/invoiceComparison.js +272 -0
  70. package/package.json +30 -29
  71. package/src/generated/consolidation-operations.ts +60 -559
  72. package/src/generated/container-condition-operations.ts +63 -265
  73. package/src/generated/container-operations.ts +37 -132
  74. package/src/generated/empty-reuse-operations.ts +83 -824
  75. package/src/generated/free-time-operations.ts +55 -284
  76. package/src/generated/freight-cost-operations.ts +373 -349
  77. package/src/generated/freight-invoice-operations.ts +830 -0
  78. package/src/generated/logistics-procedure-operations.ts +60 -414
  79. package/src/generated/pending-pick-operations.ts +48 -1239
  80. package/src/generated/shipment-status-authority-operations.ts +33 -113
  81. package/src/generated/stock-binding-operations.ts +29 -198
  82. package/src/generated/stock-observation-operations.ts +24 -111
  83. package/src/generated/tracking-quality-operations.ts +19 -57
  84. package/src/generated/trip-utilization-operations.ts +32 -166
  85. package/src/generated/wspace-operations.ts +284 -2906
  86. package/src/generated/wspace-types.ts +2 -8
  87. package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
  88. package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
  89. package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
  90. package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
  91. package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
  92. package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
  93. package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
  94. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
  95. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
  96. package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
  97. package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
  98. package/src/movethewheels/hooks/useFleet.ts +1 -1
  99. package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
  100. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
  101. package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
  102. package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
  103. package/src/movethewheels/pages/FreightEstimatePage.tsx +15 -7
  104. package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
  105. package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
  106. package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
  107. package/src/movethewheels/utils/freightCommercial.ts +388 -0
  108. package/src/movethewheels/utils/freightRecovery.ts +6 -2
  109. package/src/movethewheels/utils/invoiceComparison.ts +520 -0
  110. package/src/operations/freight-cost/commercial.graphql +483 -0
  111. package/src/operations/freight-invoice/comparison.graphql +40 -0
  112. package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
  113. package/patches/braces@3.0.3.patch +0 -87
@@ -1,24 +1,17 @@
1
- export type Maybe<T> = T | null;
2
- export type InputMaybe<T> = Maybe<T>;
3
- export type Exact<T extends {
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
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
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 './shipment-status-authority-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: {
@@ -4313,161 +4306,147 @@ export type WarehouseFilterInput = {
4313
4306
  };
4314
4307
  export type WarehouseType = 'COLD_STORAGE' | 'CROSS_DOCK' | 'DISTRIBUTION' | 'FULFILLMENT' | 'RETAIL';
4315
4308
  export type ShipmentStatusAuthorityFieldsFragment = {
4316
- __typename?: 'MtwShipment';
4317
4309
  id: string;
4318
4310
  shipmentNumber: string;
4319
- status: ShipmentStatus;
4311
+ status: Types.ShipmentStatus;
4320
4312
  statusRevision: number;
4321
- statusAuthority: ShipmentStatusAuthority;
4313
+ statusAuthority: Types.ShipmentStatusAuthority;
4322
4314
  statusAuthorityEpoch: number;
4323
- designatedIntegrationId?: string | null;
4324
- statusBasisEventId?: string | null;
4325
- statusBasisSourceTime?: string | null;
4326
- maxSourceAgeSeconds?: number | null;
4327
- maxFutureSkewSeconds?: number | null;
4315
+ designatedIntegrationId: string | null;
4316
+ statusBasisEventId: string | null;
4317
+ statusBasisSourceTime: string | null;
4318
+ maxSourceAgeSeconds: number | null;
4319
+ maxFutureSkewSeconds: number | null;
4328
4320
  };
4329
4321
  export type StatusAuthorityShipmentsQueryVariables = Exact<{
4330
- filter?: InputMaybe<ShipmentFilterInput>;
4331
- pagination: PaginationInput;
4322
+ filter?: Types.ShipmentFilterInput | null | undefined;
4323
+ pagination: Types.PaginationInput;
4332
4324
  }>;
4333
4325
  export type StatusAuthorityShipmentsQuery = {
4334
- __typename?: 'Query';
4335
4326
  shipments: Array<{
4336
- __typename?: 'MtwShipment';
4337
4327
  id: string;
4338
4328
  shipmentNumber: string;
4339
- status: ShipmentStatus;
4329
+ status: Types.ShipmentStatus;
4340
4330
  statusRevision: number;
4341
- statusAuthority: ShipmentStatusAuthority;
4331
+ statusAuthority: Types.ShipmentStatusAuthority;
4342
4332
  statusAuthorityEpoch: number;
4343
- designatedIntegrationId?: string | null;
4344
- statusBasisEventId?: string | null;
4345
- statusBasisSourceTime?: string | null;
4346
- maxSourceAgeSeconds?: number | null;
4347
- maxFutureSkewSeconds?: number | null;
4333
+ designatedIntegrationId: string | null;
4334
+ statusBasisEventId: string | null;
4335
+ statusBasisSourceTime: string | null;
4336
+ maxSourceAgeSeconds: number | null;
4337
+ maxFutureSkewSeconds: number | null;
4348
4338
  }>;
4349
4339
  };
4350
4340
  export type StatusAuthorityDetailQueryVariables = Exact<{
4351
- id: Scalars['ID']['input'];
4352
- pagination: PaginationInput;
4353
- evidencePagination: PaginationInput;
4341
+ id: string;
4342
+ pagination: Types.PaginationInput;
4343
+ evidencePagination: Types.PaginationInput;
4354
4344
  }>;
4355
4345
  export type StatusAuthorityDetailQuery = {
4356
- __typename?: 'Query';
4357
- shipment?: {
4358
- __typename?: 'MtwShipment';
4346
+ shipment: {
4359
4347
  id: string;
4360
4348
  shipmentNumber: string;
4361
- status: ShipmentStatus;
4349
+ status: Types.ShipmentStatus;
4362
4350
  statusRevision: number;
4363
- statusAuthority: ShipmentStatusAuthority;
4351
+ statusAuthority: Types.ShipmentStatusAuthority;
4364
4352
  statusAuthorityEpoch: number;
4365
- designatedIntegrationId?: string | null;
4366
- statusBasisEventId?: string | null;
4367
- statusBasisSourceTime?: string | null;
4368
- maxSourceAgeSeconds?: number | null;
4369
- maxFutureSkewSeconds?: number | null;
4353
+ designatedIntegrationId: string | null;
4354
+ statusBasisEventId: string | null;
4355
+ statusBasisSourceTime: string | null;
4356
+ maxSourceAgeSeconds: number | null;
4357
+ maxFutureSkewSeconds: number | null;
4370
4358
  trackingEvents: Array<{
4371
- __typename?: 'MtwTrackingEvent';
4372
4359
  id: string;
4373
- eventType: TrackingEventType;
4374
- sourceIntegrationId?: string | null;
4375
- sourceTimestampProvenance: TrackingSourceTimeProvenance;
4376
- providerEventTime?: string | null;
4377
- serverReceivedAt?: string | null;
4360
+ eventType: Types.TrackingEventType;
4361
+ sourceIntegrationId: string | null;
4362
+ sourceTimestampProvenance: Types.TrackingSourceTimeProvenance;
4363
+ providerEventTime: string | null;
4364
+ serverReceivedAt: string | null;
4378
4365
  timestamp: string;
4379
4366
  }>;
4380
4367
  } | null;
4381
4368
  shipmentStatusDecisions: Array<{
4382
- __typename?: 'MtwShipmentStatusDecision';
4383
4369
  id: string;
4384
- origin: ShipmentStatusDecisionOrigin;
4385
- outcome: ShipmentStatusDecisionOutcome;
4386
- heldReason?: ShipmentStatusHeldReason | null;
4370
+ origin: Types.ShipmentStatusDecisionOrigin;
4371
+ outcome: Types.ShipmentStatusDecisionOutcome;
4372
+ heldReason: Types.ShipmentStatusHeldReason | null;
4387
4373
  observedRevision: number;
4388
4374
  resultRevision: number;
4389
- priorStatus: ShipmentStatus;
4390
- resultStatus: ShipmentStatus;
4391
- trackingEventId?: string | null;
4392
- proofId?: string | null;
4393
- reason?: string | null;
4375
+ priorStatus: Types.ShipmentStatus;
4376
+ resultStatus: Types.ShipmentStatus;
4377
+ trackingEventId: string | null;
4378
+ proofId: string | null;
4379
+ reason: string | null;
4394
4380
  recordedAt: string;
4395
- configuredIntegrationId?: string | null;
4396
- configuredMaxSourceAgeSeconds?: number | null;
4397
- configuredMaxFutureSkewSeconds?: number | null;
4381
+ configuredIntegrationId: string | null;
4382
+ configuredMaxSourceAgeSeconds: number | null;
4383
+ configuredMaxFutureSkewSeconds: number | null;
4398
4384
  }>;
4399
4385
  };
4400
4386
  export type StatusAuthoritySourcesQueryVariables = Exact<{
4401
- pagination: PaginationInput;
4387
+ pagination: Types.PaginationInput;
4402
4388
  }>;
4403
4389
  export type StatusAuthoritySourcesQuery = {
4404
- __typename?: 'Query';
4405
4390
  integrations: Array<{
4406
- __typename?: 'MtwIntegration';
4407
4391
  id: string;
4408
4392
  name: string;
4409
- provider: MtwIntegrationProvider;
4410
- status: IntegrationStatus;
4393
+ provider: Types.MtwIntegrationProvider;
4394
+ status: Types.IntegrationStatus;
4411
4395
  }>;
4412
4396
  };
4413
4397
  export type StatusAuthorityConfigureMutationVariables = Exact<{
4414
- id: Scalars['ID']['input'];
4415
- input: ConfigureShipmentStatusSourceInput;
4398
+ id: string;
4399
+ input: Types.ConfigureShipmentStatusSourceInput;
4416
4400
  }>;
4417
4401
  export type StatusAuthorityConfigureMutation = {
4418
- __typename?: 'Mutation';
4419
4402
  configureShipmentStatusSource: {
4420
- __typename?: 'MtwShipment';
4421
4403
  id: string;
4422
4404
  shipmentNumber: string;
4423
- status: ShipmentStatus;
4405
+ status: Types.ShipmentStatus;
4424
4406
  statusRevision: number;
4425
- statusAuthority: ShipmentStatusAuthority;
4407
+ statusAuthority: Types.ShipmentStatusAuthority;
4426
4408
  statusAuthorityEpoch: number;
4427
- designatedIntegrationId?: string | null;
4428
- statusBasisEventId?: string | null;
4429
- statusBasisSourceTime?: string | null;
4430
- maxSourceAgeSeconds?: number | null;
4431
- maxFutureSkewSeconds?: number | null;
4409
+ designatedIntegrationId: string | null;
4410
+ statusBasisEventId: string | null;
4411
+ statusBasisSourceTime: string | null;
4412
+ maxSourceAgeSeconds: number | null;
4413
+ maxFutureSkewSeconds: number | null;
4432
4414
  };
4433
4415
  };
4434
4416
  export type StatusAuthorityManualMutationVariables = Exact<{
4435
- id: Scalars['ID']['input'];
4436
- input: UpdateShipmentInput;
4417
+ id: string;
4418
+ input: Types.UpdateShipmentInput;
4437
4419
  }>;
4438
4420
  export type StatusAuthorityManualMutation = {
4439
- __typename?: 'Mutation';
4440
4421
  updateShipment: {
4441
- __typename?: 'MtwShipment';
4442
4422
  id: string;
4443
4423
  shipmentNumber: string;
4444
- status: ShipmentStatus;
4424
+ status: Types.ShipmentStatus;
4445
4425
  statusRevision: number;
4446
- statusAuthority: ShipmentStatusAuthority;
4426
+ statusAuthority: Types.ShipmentStatusAuthority;
4447
4427
  statusAuthorityEpoch: number;
4448
- designatedIntegrationId?: string | null;
4449
- statusBasisEventId?: string | null;
4450
- statusBasisSourceTime?: string | null;
4451
- maxSourceAgeSeconds?: number | null;
4452
- maxFutureSkewSeconds?: number | null;
4428
+ designatedIntegrationId: string | null;
4429
+ statusBasisEventId: string | null;
4430
+ statusBasisSourceTime: string | null;
4431
+ maxSourceAgeSeconds: number | null;
4432
+ maxFutureSkewSeconds: number | null;
4453
4433
  };
4454
4434
  };
4455
4435
  export type StatusAuthorityOwnedDeliveryQueryVariables = Exact<{
4456
- deliveryJobId: Scalars['ID']['input'];
4436
+ deliveryJobId: string;
4457
4437
  }>;
4458
4438
  export type StatusAuthorityOwnedDeliveryQuery = {
4459
- __typename?: 'Query';
4460
- myEpodShipmentStatus?: {
4461
- __typename?: 'MtwOwnedEpodShipmentStatus';
4439
+ myEpodShipmentStatus: {
4462
4440
  id: string;
4463
- status: ShipmentStatus;
4441
+ status: Types.ShipmentStatus;
4464
4442
  statusRevision: number;
4465
4443
  } | null;
4466
4444
  };
4467
- export declare const ShipmentStatusAuthorityFieldsFragmentDoc: import('graphql').DocumentNode;
4468
- export declare const StatusAuthorityShipmentsDocument: import('graphql').DocumentNode;
4469
- export declare const StatusAuthorityDetailDocument: import('graphql').DocumentNode;
4470
- export declare const StatusAuthoritySourcesDocument: import('graphql').DocumentNode;
4471
- export declare const StatusAuthorityConfigureDocument: import('graphql').DocumentNode;
4472
- export declare const StatusAuthorityManualDocument: import('graphql').DocumentNode;
4473
- export declare const StatusAuthorityOwnedDeliveryDocument: import('graphql').DocumentNode;
4445
+ export declare const ShipmentStatusAuthorityFieldsFragmentDoc: DocumentNode<ShipmentStatusAuthorityFieldsFragment, unknown>;
4446
+ export declare const StatusAuthorityShipmentsDocument: DocumentNode<StatusAuthorityShipmentsQuery, StatusAuthorityShipmentsQueryVariables>;
4447
+ export declare const StatusAuthorityDetailDocument: DocumentNode<StatusAuthorityDetailQuery, StatusAuthorityDetailQueryVariables>;
4448
+ export declare const StatusAuthoritySourcesDocument: DocumentNode<StatusAuthoritySourcesQuery, StatusAuthoritySourcesQueryVariables>;
4449
+ export declare const StatusAuthorityConfigureDocument: DocumentNode<StatusAuthorityConfigureMutation, StatusAuthorityConfigureMutationVariables>;
4450
+ export declare const StatusAuthorityManualDocument: DocumentNode<StatusAuthorityManualMutation, StatusAuthorityManualMutationVariables>;
4451
+ export declare const StatusAuthorityOwnedDeliveryDocument: DocumentNode<StatusAuthorityOwnedDeliveryQuery, StatusAuthorityOwnedDeliveryQueryVariables>;
4452
+ export {};