@burdenoff/microfe-movethewheels 2026.1016.3 → 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 (88) 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-invoice/InvoiceForm.js +366 -0
  7. package/dist/components/freight-invoice/InvoiceResults.js +240 -0
  8. package/dist/generated/consolidation-operations.d.ts +195 -265
  9. package/dist/generated/container-condition-operations.d.ts +124 -187
  10. package/dist/generated/container-operations.d.ts +59 -85
  11. package/dist/generated/empty-reuse-operations.d.ts +165 -271
  12. package/dist/generated/free-time-operations.d.ts +120 -184
  13. package/dist/generated/freight-cost-operations.d.ts +307 -476
  14. package/dist/generated/freight-invoice-operations.d.ts +1447 -0
  15. package/dist/generated/logistics-procedure-operations.d.ts +100 -156
  16. package/dist/generated/pending-pick-operations.d.ts +769 -1025
  17. package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
  18. package/dist/generated/stock-binding-operations.d.ts +188 -260
  19. package/dist/generated/stock-observation-operations.d.ts +103 -138
  20. package/dist/generated/tracking-quality-operations.d.ts +27 -41
  21. package/dist/generated/trip-utilization-operations.d.ts +137 -185
  22. package/dist/generated/wspace-operations.d.ts +628 -2272
  23. package/dist/generated/wspace-types.d.ts +4 -23
  24. package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
  25. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
  26. package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
  27. package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
  28. package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
  29. package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
  30. package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
  31. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
  32. package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
  33. package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
  34. package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
  35. package/dist/pages/DriverDetailsPage.js +306 -282
  36. package/dist/pages/FreightEstimatePage.js +1 -0
  37. package/dist/pages/FreightInvoicePage.js +346 -0
  38. package/dist/src/generated/consolidation-operations.js +3961 -503
  39. package/dist/src/generated/container-condition-operations.js +2968 -206
  40. package/dist/src/generated/container-operations.js +997 -99
  41. package/dist/src/generated/empty-reuse-operations.js +4811 -747
  42. package/dist/src/generated/free-time-operations.js +2824 -233
  43. package/dist/src/generated/freight-cost-operations.js +4852 -812
  44. package/dist/src/generated/freight-invoice-operations.js +4894 -0
  45. package/dist/src/generated/logistics-procedure-operations.js +2707 -360
  46. package/dist/src/generated/pending-pick-operations.js +8244 -1196
  47. package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
  48. package/dist/src/generated/stock-binding-operations.js +2779 -173
  49. package/dist/src/generated/stock-observation-operations.js +1274 -91
  50. package/dist/src/generated/tracking-quality-operations.js +407 -42
  51. package/dist/src/generated/trip-utilization-operations.js +1765 -138
  52. package/dist/src/generated/wspace-operations.js +428 -706
  53. package/dist/utils/driverLicenseExpiry.js +14 -0
  54. package/dist/utils/invoiceComparison.js +272 -0
  55. package/package.json +29 -29
  56. package/src/generated/consolidation-operations.ts +60 -559
  57. package/src/generated/container-condition-operations.ts +63 -265
  58. package/src/generated/container-operations.ts +37 -132
  59. package/src/generated/empty-reuse-operations.ts +83 -824
  60. package/src/generated/free-time-operations.ts +55 -284
  61. package/src/generated/freight-cost-operations.ts +42 -848
  62. package/src/generated/freight-invoice-operations.ts +830 -0
  63. package/src/generated/logistics-procedure-operations.ts +60 -414
  64. package/src/generated/pending-pick-operations.ts +48 -1239
  65. package/src/generated/shipment-status-authority-operations.ts +33 -113
  66. package/src/generated/stock-binding-operations.ts +29 -198
  67. package/src/generated/stock-observation-operations.ts +24 -111
  68. package/src/generated/tracking-quality-operations.ts +19 -57
  69. package/src/generated/trip-utilization-operations.ts +32 -166
  70. package/src/generated/wspace-operations.ts +284 -2906
  71. package/src/generated/wspace-types.ts +2 -8
  72. package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
  73. package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
  74. package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
  75. package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
  76. package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
  77. package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
  78. package/src/movethewheels/hooks/useFleet.ts +1 -1
  79. package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
  80. package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
  81. package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
  82. package/src/movethewheels/pages/FreightEstimatePage.tsx +1 -0
  83. package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
  84. package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
  85. package/src/movethewheels/utils/invoiceComparison.ts +520 -0
  86. package/src/operations/freight-invoice/comparison.graphql +40 -0
  87. package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
  88. 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 './freight-cost-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: {
@@ -580,89 +573,78 @@ export type ShipmentFilterInput = {
580
573
  export type ShipmentStatus = 'DELIVERED' | 'FAILED' | 'IN_TRANSIT' | 'PICKED_UP' | 'PLANNED' | 'RETURNED';
581
574
  export type TransportMode = 'AIR' | 'OCEAN' | 'RAIL' | 'ROAD';
582
575
  export type CommercialProvenanceFragment = {
583
- __typename?: 'MtwFreightCommercialProvenance';
584
576
  sourceReference: string;
585
577
  sourceRevision: string;
586
- observedAt?: string | null;
578
+ observedAt: string | null;
587
579
  evidenceLinks: Array<{
588
- __typename?: 'MtwFreightCommercialLink';
589
580
  fileId: string;
590
581
  versionId: string;
591
582
  }>;
592
583
  };
593
584
  export type SaveFreightCommercialCostsMutationVariables = Exact<{
594
- input: SaveMtwFreightEstimateInput;
585
+ input: Types.SaveMtwFreightEstimateInput;
595
586
  }>;
596
587
  export type SaveFreightCommercialCostsMutation = {
597
- __typename?: 'Mutation';
598
588
  saveMtwFreightEstimate: {
599
- __typename?: 'MtwFreightEstimateVersion';
600
589
  id: string;
601
590
  shipmentId: string;
602
591
  estimateReference: string;
603
592
  version: number;
604
- previousVersionId?: string | null;
593
+ previousVersionId: string | null;
605
594
  recordedAt: string;
606
595
  createdBy: string;
607
596
  actorProvenance: string;
608
- onBehalfOf?: string | null;
597
+ onBehalfOf: string | null;
609
598
  validityAtRead: string;
610
599
  shipmentCapture: {
611
- __typename?: 'MtwFreightShipmentCapture';
612
600
  shipmentNumber: string;
613
601
  primaryMode: string;
614
602
  capturedUpdatedAt: string;
615
603
  };
616
604
  facts: {
617
- __typename?: 'MtwFreightFacts';
618
- kind: MtwFreightKind;
605
+ kind: Types.MtwFreightKind;
619
606
  title: string;
620
607
  commercialScope: string;
621
608
  sourceReference: string;
622
609
  sourceRevision: string;
623
610
  pricingAt: string;
624
- quotedAt?: string | null;
625
- validFrom?: string | null;
626
- validUntil?: string | null;
627
- rounding: MtwFreightRounding;
628
- reportingCurrency?: {
629
- __typename?: 'MtwFreightCurrency';
611
+ quotedAt: string | null;
612
+ validFrom: string | null;
613
+ validUntil: string | null;
614
+ rounding: Types.MtwFreightRounding;
615
+ reportingCurrency: {
630
616
  code: string;
631
617
  minorUnitDigits: number;
632
618
  } | null;
633
619
  lines: Array<{
634
- __typename?: 'MtwFreightLine';
635
620
  id: string;
636
- category: MtwFreightCategory;
621
+ category: Types.MtwFreightCategory;
637
622
  description: string;
638
- payerReference?: string | null;
639
- payerLabel?: string | null;
640
- disposition: MtwFreightDisposition;
641
- inclusionParentLineId?: string | null;
642
- amountBasis: MtwFreightAmountBasis;
643
- quantity?: string | null;
644
- unit?: string | null;
645
- unitRateMajor?: string | null;
646
- amountMinor?: string | null;
647
- zeroReason?: string | null;
648
- sourceReference?: string | null;
649
- sourceRevision?: string | null;
623
+ payerReference: string | null;
624
+ payerLabel: string | null;
625
+ disposition: Types.MtwFreightDisposition;
626
+ inclusionParentLineId: string | null;
627
+ amountBasis: Types.MtwFreightAmountBasis;
628
+ quantity: string | null;
629
+ unit: string | null;
630
+ unitRateMajor: string | null;
631
+ amountMinor: string | null;
632
+ zeroReason: string | null;
633
+ sourceReference: string | null;
634
+ sourceRevision: string | null;
650
635
  currency: {
651
- __typename?: 'MtwFreightCurrency';
652
636
  code: string;
653
637
  minorUnitDigits: number;
654
638
  };
655
639
  }>;
656
640
  requirements: Array<{
657
- __typename?: 'MtwFreightRequirement';
658
- category: MtwFreightCategory;
659
- status: MtwFreightRequirementStatus;
660
- reason?: string | null;
661
- sourceReference?: string | null;
662
- sourceRevision?: string | null;
641
+ category: Types.MtwFreightCategory;
642
+ status: Types.MtwFreightRequirementStatus;
643
+ reason: string | null;
644
+ sourceReference: string | null;
645
+ sourceRevision: string | null;
663
646
  }>;
664
647
  fx: Array<{
665
- __typename?: 'MtwFreightFx';
666
648
  rate: string;
667
649
  observedAt: string;
668
650
  effectiveFrom: string;
@@ -670,332 +652,279 @@ export type SaveFreightCommercialCostsMutation = {
670
652
  sourceReference: string;
671
653
  sourceRevision: string;
672
654
  fromCurrency: {
673
- __typename?: 'MtwFreightCurrency';
674
655
  code: string;
675
656
  minorUnitDigits: number;
676
657
  };
677
658
  toCurrency: {
678
- __typename?: 'MtwFreightCurrency';
679
659
  code: string;
680
660
  minorUnitDigits: number;
681
661
  };
682
662
  }>;
683
663
  };
684
664
  totals: {
685
- __typename?: 'MtwFreightPreview';
686
665
  completeRelativeToDeclarations: boolean;
687
- reportingTotalMinor?: string | null;
666
+ reportingTotalMinor: string | null;
688
667
  subtotals: Array<{
689
- __typename?: 'MtwFreightSubtotal';
690
- payerReference?: string | null;
691
- payerLabel?: string | null;
668
+ payerReference: string | null;
669
+ payerLabel: string | null;
692
670
  knownAmountMinor: string;
693
- totalAmountMinor?: string | null;
671
+ totalAmountMinor: string | null;
694
672
  currency: {
695
- __typename?: 'MtwFreightCurrency';
696
673
  code: string;
697
674
  minorUnitDigits: number;
698
675
  };
699
676
  }>;
700
677
  lines: Array<{
701
- __typename?: 'MtwFreightLineTotal';
702
678
  id: string;
703
- nativeAmountMinor?: string | null;
704
- reportingAmountMinor?: string | null;
679
+ nativeAmountMinor: string | null;
680
+ reportingAmountMinor: string | null;
705
681
  roundedToZero: boolean;
706
682
  }>;
707
683
  reasons: Array<{
708
- __typename?: 'MtwFreightReason';
709
684
  code: string;
710
- lineId?: string | null;
685
+ lineId: string | null;
711
686
  detail: string;
712
687
  }>;
713
688
  warnings: Array<{
714
- __typename?: 'MtwFreightReason';
715
689
  code: string;
716
- lineId?: string | null;
690
+ lineId: string | null;
717
691
  detail: string;
718
692
  }>;
719
693
  };
720
694
  evidence: Array<{
721
- __typename?: 'MtwContainerEvidence';
722
695
  fileId: string;
723
696
  versionId: string;
724
697
  sha256Hash: string;
725
698
  checkedAt: string;
726
699
  }>;
727
- commercialCapture?: {
728
- __typename?: 'MtwFreightCommercialCapture';
700
+ commercialCapture: {
729
701
  schemaVersion: number;
730
702
  selectedLegs: Array<{
731
- __typename?: 'MtwFreightCommercialLegPin';
732
703
  id: string;
733
704
  expectedUpdatedAt: string;
734
705
  }>;
735
706
  origin: {
736
- __typename?: 'MtwFreightCommercialLocationFact';
737
- status: MtwFreightCommercialStatus;
738
- reason?: string | null;
739
- value?: {
740
- __typename?: 'MtwFreightCommercialLocation';
741
- kind: MtwFreightLocationKind;
707
+ status: Types.MtwFreightCommercialStatus;
708
+ reason: string | null;
709
+ value: {
710
+ kind: Types.MtwFreightLocationKind;
742
711
  label: string;
743
- jurisdictionLabel?: string | null;
712
+ jurisdictionLabel: string | null;
744
713
  } | null;
745
- provenance?: {
746
- __typename?: 'MtwFreightCommercialProvenance';
714
+ provenance: {
747
715
  sourceReference: string;
748
716
  sourceRevision: string;
749
- observedAt?: string | null;
717
+ observedAt: string | null;
750
718
  evidenceLinks: Array<{
751
- __typename?: 'MtwFreightCommercialLink';
752
719
  fileId: string;
753
720
  versionId: string;
754
721
  }>;
755
722
  } | null;
756
723
  };
757
724
  destination: {
758
- __typename?: 'MtwFreightCommercialLocationFact';
759
- status: MtwFreightCommercialStatus;
760
- reason?: string | null;
761
- value?: {
762
- __typename?: 'MtwFreightCommercialLocation';
763
- kind: MtwFreightLocationKind;
725
+ status: Types.MtwFreightCommercialStatus;
726
+ reason: string | null;
727
+ value: {
728
+ kind: Types.MtwFreightLocationKind;
764
729
  label: string;
765
- jurisdictionLabel?: string | null;
730
+ jurisdictionLabel: string | null;
766
731
  } | null;
767
- provenance?: {
768
- __typename?: 'MtwFreightCommercialProvenance';
732
+ provenance: {
769
733
  sourceReference: string;
770
734
  sourceRevision: string;
771
- observedAt?: string | null;
735
+ observedAt: string | null;
772
736
  evidenceLinks: Array<{
773
- __typename?: 'MtwFreightCommercialLink';
774
737
  fileId: string;
775
738
  versionId: string;
776
739
  }>;
777
740
  } | null;
778
741
  };
779
742
  carrier: {
780
- __typename?: 'MtwFreightCommercialCarrierFact';
781
- status: MtwFreightCommercialStatus;
782
- reason?: string | null;
783
- value?: {
784
- __typename?: 'MtwFreightCommercialCarrier';
743
+ status: Types.MtwFreightCommercialStatus;
744
+ reason: string | null;
745
+ value: {
785
746
  reference: string;
786
747
  label: string;
787
748
  } | null;
788
- provenance?: {
789
- __typename?: 'MtwFreightCommercialProvenance';
749
+ provenance: {
790
750
  sourceReference: string;
791
751
  sourceRevision: string;
792
- observedAt?: string | null;
752
+ observedAt: string | null;
793
753
  evidenceLinks: Array<{
794
- __typename?: 'MtwFreightCommercialLink';
795
754
  fileId: string;
796
755
  versionId: string;
797
756
  }>;
798
757
  } | null;
799
758
  };
800
759
  service: {
801
- __typename?: 'MtwFreightCommercialServiceFact';
802
- status: MtwFreightCommercialStatus;
803
- value?: string | null;
804
- reason?: string | null;
805
- provenance?: {
806
- __typename?: 'MtwFreightCommercialProvenance';
760
+ status: Types.MtwFreightCommercialStatus;
761
+ value: string | null;
762
+ reason: string | null;
763
+ provenance: {
807
764
  sourceReference: string;
808
765
  sourceRevision: string;
809
- observedAt?: string | null;
766
+ observedAt: string | null;
810
767
  evidenceLinks: Array<{
811
- __typename?: 'MtwFreightCommercialLink';
812
768
  fileId: string;
813
769
  versionId: string;
814
770
  }>;
815
771
  } | null;
816
772
  };
817
773
  cargo: {
818
- __typename?: 'MtwFreightCommercialCargoFact';
819
- status: MtwFreightCommercialStatus;
820
- reason?: string | null;
821
- value?: {
822
- __typename?: 'MtwFreightCommercialCargo';
774
+ status: Types.MtwFreightCommercialStatus;
775
+ reason: string | null;
776
+ value: {
823
777
  classificationLabel: string;
824
778
  description: string;
825
779
  } | null;
826
- provenance?: {
827
- __typename?: 'MtwFreightCommercialProvenance';
780
+ provenance: {
828
781
  sourceReference: string;
829
782
  sourceRevision: string;
830
- observedAt?: string | null;
783
+ observedAt: string | null;
831
784
  evidenceLinks: Array<{
832
- __typename?: 'MtwFreightCommercialLink';
833
785
  fileId: string;
834
786
  versionId: string;
835
787
  }>;
836
788
  } | null;
837
789
  };
838
790
  weight: {
839
- __typename?: 'MtwFreightCommercialWeightFact';
840
- status: MtwFreightCommercialStatus;
841
- reason?: string | null;
842
- value?: {
843
- __typename?: 'MtwFreightCommercialWeight';
791
+ status: Types.MtwFreightCommercialStatus;
792
+ reason: string | null;
793
+ value: {
844
794
  amount: string;
845
- unit: MtwFreightWeightUnit;
846
- zeroReason?: string | null;
795
+ unit: Types.MtwFreightWeightUnit;
796
+ zeroReason: string | null;
847
797
  } | null;
848
- provenance?: {
849
- __typename?: 'MtwFreightCommercialProvenance';
798
+ provenance: {
850
799
  sourceReference: string;
851
800
  sourceRevision: string;
852
- observedAt?: string | null;
801
+ observedAt: string | null;
853
802
  evidenceLinks: Array<{
854
- __typename?: 'MtwFreightCommercialLink';
855
803
  fileId: string;
856
804
  versionId: string;
857
805
  }>;
858
806
  } | null;
859
807
  };
860
808
  volume: {
861
- __typename?: 'MtwFreightCommercialVolumeFact';
862
- status: MtwFreightCommercialStatus;
863
- reason?: string | null;
864
- value?: {
865
- __typename?: 'MtwFreightCommercialVolume';
809
+ status: Types.MtwFreightCommercialStatus;
810
+ reason: string | null;
811
+ value: {
866
812
  amount: string;
867
- unit: MtwFreightVolumeUnit;
868
- zeroReason?: string | null;
813
+ unit: Types.MtwFreightVolumeUnit;
814
+ zeroReason: string | null;
869
815
  } | null;
870
- provenance?: {
871
- __typename?: 'MtwFreightCommercialProvenance';
816
+ provenance: {
872
817
  sourceReference: string;
873
818
  sourceRevision: string;
874
- observedAt?: string | null;
819
+ observedAt: string | null;
875
820
  evidenceLinks: Array<{
876
- __typename?: 'MtwFreightCommercialLink';
877
821
  fileId: string;
878
822
  versionId: string;
879
823
  }>;
880
824
  } | null;
881
825
  };
882
826
  equipment: {
883
- __typename?: 'MtwFreightCommercialEquipmentFact';
884
- status: MtwFreightCommercialStatus;
885
- reason?: string | null;
886
- value?: {
887
- __typename?: 'MtwFreightCommercialEquipment';
827
+ status: Types.MtwFreightCommercialStatus;
828
+ reason: string | null;
829
+ value: {
888
830
  typeLabel: string;
889
831
  count: number;
890
832
  } | null;
891
- provenance?: {
892
- __typename?: 'MtwFreightCommercialProvenance';
833
+ provenance: {
893
834
  sourceReference: string;
894
835
  sourceRevision: string;
895
- observedAt?: string | null;
836
+ observedAt: string | null;
896
837
  evidenceLinks: Array<{
897
- __typename?: 'MtwFreightCommercialLink';
898
838
  fileId: string;
899
839
  versionId: string;
900
840
  }>;
901
841
  } | null;
902
842
  };
903
843
  ownerShipment: {
904
- __typename?: 'MtwFreightCommercialShipment';
905
844
  shipmentId: string;
906
845
  updatedAt: string;
907
- primaryMode: TransportMode;
846
+ primaryMode: Types.TransportMode;
908
847
  };
909
848
  ownerLegs: Array<{
910
- __typename?: 'MtwFreightCommercialOwnerLeg';
911
849
  id: string;
912
850
  updatedAt: string;
913
851
  legNumber: number;
914
- mode: TransportMode;
915
- carrierId?: string | null;
916
- carrierName?: string | null;
917
- weightKg?: number | null;
918
- volumeCbm?: number | null;
919
- containerType?: OceanContainerType | null;
920
- containerCount?: number | null;
852
+ mode: Types.TransportMode;
853
+ carrierId: string | null;
854
+ carrierName: string | null;
855
+ weightKg: number | null;
856
+ volumeCbm: number | null;
857
+ containerType: Types.OceanContainerType | null;
858
+ containerCount: number | null;
921
859
  }>;
922
860
  } | null;
923
861
  };
924
862
  };
925
863
  export type FreightCommercialVersionQueryVariables = Exact<{
926
- shipmentId: Scalars['ID']['input'];
927
- id: Scalars['ID']['input'];
864
+ shipmentId: string;
865
+ id: string;
928
866
  }>;
929
867
  export type FreightCommercialVersionQuery = {
930
- __typename?: 'Query';
931
868
  mtwFreightEstimateVersion: {
932
- __typename?: 'MtwFreightEstimateVersion';
933
869
  id: string;
934
870
  shipmentId: string;
935
871
  estimateReference: string;
936
872
  version: number;
937
- previousVersionId?: string | null;
873
+ previousVersionId: string | null;
938
874
  recordedAt: string;
939
875
  createdBy: string;
940
876
  actorProvenance: string;
941
- onBehalfOf?: string | null;
877
+ onBehalfOf: string | null;
942
878
  validityAtRead: string;
943
879
  shipmentCapture: {
944
- __typename?: 'MtwFreightShipmentCapture';
945
880
  shipmentNumber: string;
946
881
  primaryMode: string;
947
882
  capturedUpdatedAt: string;
948
883
  };
949
884
  facts: {
950
- __typename?: 'MtwFreightFacts';
951
- kind: MtwFreightKind;
885
+ kind: Types.MtwFreightKind;
952
886
  title: string;
953
887
  commercialScope: string;
954
888
  sourceReference: string;
955
889
  sourceRevision: string;
956
890
  pricingAt: string;
957
- quotedAt?: string | null;
958
- validFrom?: string | null;
959
- validUntil?: string | null;
960
- rounding: MtwFreightRounding;
961
- reportingCurrency?: {
962
- __typename?: 'MtwFreightCurrency';
891
+ quotedAt: string | null;
892
+ validFrom: string | null;
893
+ validUntil: string | null;
894
+ rounding: Types.MtwFreightRounding;
895
+ reportingCurrency: {
963
896
  code: string;
964
897
  minorUnitDigits: number;
965
898
  } | null;
966
899
  lines: Array<{
967
- __typename?: 'MtwFreightLine';
968
900
  id: string;
969
- category: MtwFreightCategory;
901
+ category: Types.MtwFreightCategory;
970
902
  description: string;
971
- payerReference?: string | null;
972
- payerLabel?: string | null;
973
- disposition: MtwFreightDisposition;
974
- inclusionParentLineId?: string | null;
975
- amountBasis: MtwFreightAmountBasis;
976
- quantity?: string | null;
977
- unit?: string | null;
978
- unitRateMajor?: string | null;
979
- amountMinor?: string | null;
980
- zeroReason?: string | null;
981
- sourceReference?: string | null;
982
- sourceRevision?: string | null;
903
+ payerReference: string | null;
904
+ payerLabel: string | null;
905
+ disposition: Types.MtwFreightDisposition;
906
+ inclusionParentLineId: string | null;
907
+ amountBasis: Types.MtwFreightAmountBasis;
908
+ quantity: string | null;
909
+ unit: string | null;
910
+ unitRateMajor: string | null;
911
+ amountMinor: string | null;
912
+ zeroReason: string | null;
913
+ sourceReference: string | null;
914
+ sourceRevision: string | null;
983
915
  currency: {
984
- __typename?: 'MtwFreightCurrency';
985
916
  code: string;
986
917
  minorUnitDigits: number;
987
918
  };
988
919
  }>;
989
920
  requirements: Array<{
990
- __typename?: 'MtwFreightRequirement';
991
- category: MtwFreightCategory;
992
- status: MtwFreightRequirementStatus;
993
- reason?: string | null;
994
- sourceReference?: string | null;
995
- sourceRevision?: string | null;
921
+ category: Types.MtwFreightCategory;
922
+ status: Types.MtwFreightRequirementStatus;
923
+ reason: string | null;
924
+ sourceReference: string | null;
925
+ sourceRevision: string | null;
996
926
  }>;
997
927
  fx: Array<{
998
- __typename?: 'MtwFreightFx';
999
928
  rate: string;
1000
929
  observedAt: string;
1001
930
  effectiveFrom: string;
@@ -1003,425 +932,360 @@ export type FreightCommercialVersionQuery = {
1003
932
  sourceReference: string;
1004
933
  sourceRevision: string;
1005
934
  fromCurrency: {
1006
- __typename?: 'MtwFreightCurrency';
1007
935
  code: string;
1008
936
  minorUnitDigits: number;
1009
937
  };
1010
938
  toCurrency: {
1011
- __typename?: 'MtwFreightCurrency';
1012
939
  code: string;
1013
940
  minorUnitDigits: number;
1014
941
  };
1015
942
  }>;
1016
943
  };
1017
944
  totals: {
1018
- __typename?: 'MtwFreightPreview';
1019
945
  completeRelativeToDeclarations: boolean;
1020
- reportingTotalMinor?: string | null;
946
+ reportingTotalMinor: string | null;
1021
947
  subtotals: Array<{
1022
- __typename?: 'MtwFreightSubtotal';
1023
- payerReference?: string | null;
1024
- payerLabel?: string | null;
948
+ payerReference: string | null;
949
+ payerLabel: string | null;
1025
950
  knownAmountMinor: string;
1026
- totalAmountMinor?: string | null;
951
+ totalAmountMinor: string | null;
1027
952
  currency: {
1028
- __typename?: 'MtwFreightCurrency';
1029
953
  code: string;
1030
954
  minorUnitDigits: number;
1031
955
  };
1032
956
  }>;
1033
957
  lines: Array<{
1034
- __typename?: 'MtwFreightLineTotal';
1035
958
  id: string;
1036
- nativeAmountMinor?: string | null;
1037
- reportingAmountMinor?: string | null;
959
+ nativeAmountMinor: string | null;
960
+ reportingAmountMinor: string | null;
1038
961
  roundedToZero: boolean;
1039
962
  }>;
1040
963
  reasons: Array<{
1041
- __typename?: 'MtwFreightReason';
1042
964
  code: string;
1043
- lineId?: string | null;
965
+ lineId: string | null;
1044
966
  detail: string;
1045
967
  }>;
1046
968
  warnings: Array<{
1047
- __typename?: 'MtwFreightReason';
1048
969
  code: string;
1049
- lineId?: string | null;
970
+ lineId: string | null;
1050
971
  detail: string;
1051
972
  }>;
1052
973
  };
1053
974
  evidence: Array<{
1054
- __typename?: 'MtwContainerEvidence';
1055
975
  fileId: string;
1056
976
  versionId: string;
1057
977
  sha256Hash: string;
1058
978
  checkedAt: string;
1059
979
  }>;
1060
- commercialCapture?: {
1061
- __typename?: 'MtwFreightCommercialCapture';
980
+ commercialCapture: {
1062
981
  schemaVersion: number;
1063
982
  selectedLegs: Array<{
1064
- __typename?: 'MtwFreightCommercialLegPin';
1065
983
  id: string;
1066
984
  expectedUpdatedAt: string;
1067
985
  }>;
1068
986
  origin: {
1069
- __typename?: 'MtwFreightCommercialLocationFact';
1070
- status: MtwFreightCommercialStatus;
1071
- reason?: string | null;
1072
- value?: {
1073
- __typename?: 'MtwFreightCommercialLocation';
1074
- kind: MtwFreightLocationKind;
987
+ status: Types.MtwFreightCommercialStatus;
988
+ reason: string | null;
989
+ value: {
990
+ kind: Types.MtwFreightLocationKind;
1075
991
  label: string;
1076
- jurisdictionLabel?: string | null;
992
+ jurisdictionLabel: string | null;
1077
993
  } | null;
1078
- provenance?: {
1079
- __typename?: 'MtwFreightCommercialProvenance';
994
+ provenance: {
1080
995
  sourceReference: string;
1081
996
  sourceRevision: string;
1082
- observedAt?: string | null;
997
+ observedAt: string | null;
1083
998
  evidenceLinks: Array<{
1084
- __typename?: 'MtwFreightCommercialLink';
1085
999
  fileId: string;
1086
1000
  versionId: string;
1087
1001
  }>;
1088
1002
  } | null;
1089
1003
  };
1090
1004
  destination: {
1091
- __typename?: 'MtwFreightCommercialLocationFact';
1092
- status: MtwFreightCommercialStatus;
1093
- reason?: string | null;
1094
- value?: {
1095
- __typename?: 'MtwFreightCommercialLocation';
1096
- kind: MtwFreightLocationKind;
1005
+ status: Types.MtwFreightCommercialStatus;
1006
+ reason: string | null;
1007
+ value: {
1008
+ kind: Types.MtwFreightLocationKind;
1097
1009
  label: string;
1098
- jurisdictionLabel?: string | null;
1010
+ jurisdictionLabel: string | null;
1099
1011
  } | null;
1100
- provenance?: {
1101
- __typename?: 'MtwFreightCommercialProvenance';
1012
+ provenance: {
1102
1013
  sourceReference: string;
1103
1014
  sourceRevision: string;
1104
- observedAt?: string | null;
1015
+ observedAt: string | null;
1105
1016
  evidenceLinks: Array<{
1106
- __typename?: 'MtwFreightCommercialLink';
1107
1017
  fileId: string;
1108
1018
  versionId: string;
1109
1019
  }>;
1110
1020
  } | null;
1111
1021
  };
1112
1022
  carrier: {
1113
- __typename?: 'MtwFreightCommercialCarrierFact';
1114
- status: MtwFreightCommercialStatus;
1115
- reason?: string | null;
1116
- value?: {
1117
- __typename?: 'MtwFreightCommercialCarrier';
1023
+ status: Types.MtwFreightCommercialStatus;
1024
+ reason: string | null;
1025
+ value: {
1118
1026
  reference: string;
1119
1027
  label: string;
1120
1028
  } | null;
1121
- provenance?: {
1122
- __typename?: 'MtwFreightCommercialProvenance';
1029
+ provenance: {
1123
1030
  sourceReference: string;
1124
1031
  sourceRevision: string;
1125
- observedAt?: string | null;
1032
+ observedAt: string | null;
1126
1033
  evidenceLinks: Array<{
1127
- __typename?: 'MtwFreightCommercialLink';
1128
1034
  fileId: string;
1129
1035
  versionId: string;
1130
1036
  }>;
1131
1037
  } | null;
1132
1038
  };
1133
1039
  service: {
1134
- __typename?: 'MtwFreightCommercialServiceFact';
1135
- status: MtwFreightCommercialStatus;
1136
- value?: string | null;
1137
- reason?: string | null;
1138
- provenance?: {
1139
- __typename?: 'MtwFreightCommercialProvenance';
1040
+ status: Types.MtwFreightCommercialStatus;
1041
+ value: string | null;
1042
+ reason: string | null;
1043
+ provenance: {
1140
1044
  sourceReference: string;
1141
1045
  sourceRevision: string;
1142
- observedAt?: string | null;
1046
+ observedAt: string | null;
1143
1047
  evidenceLinks: Array<{
1144
- __typename?: 'MtwFreightCommercialLink';
1145
1048
  fileId: string;
1146
1049
  versionId: string;
1147
1050
  }>;
1148
1051
  } | null;
1149
1052
  };
1150
1053
  cargo: {
1151
- __typename?: 'MtwFreightCommercialCargoFact';
1152
- status: MtwFreightCommercialStatus;
1153
- reason?: string | null;
1154
- value?: {
1155
- __typename?: 'MtwFreightCommercialCargo';
1054
+ status: Types.MtwFreightCommercialStatus;
1055
+ reason: string | null;
1056
+ value: {
1156
1057
  classificationLabel: string;
1157
1058
  description: string;
1158
1059
  } | null;
1159
- provenance?: {
1160
- __typename?: 'MtwFreightCommercialProvenance';
1060
+ provenance: {
1161
1061
  sourceReference: string;
1162
1062
  sourceRevision: string;
1163
- observedAt?: string | null;
1063
+ observedAt: string | null;
1164
1064
  evidenceLinks: Array<{
1165
- __typename?: 'MtwFreightCommercialLink';
1166
1065
  fileId: string;
1167
1066
  versionId: string;
1168
1067
  }>;
1169
1068
  } | null;
1170
1069
  };
1171
1070
  weight: {
1172
- __typename?: 'MtwFreightCommercialWeightFact';
1173
- status: MtwFreightCommercialStatus;
1174
- reason?: string | null;
1175
- value?: {
1176
- __typename?: 'MtwFreightCommercialWeight';
1071
+ status: Types.MtwFreightCommercialStatus;
1072
+ reason: string | null;
1073
+ value: {
1177
1074
  amount: string;
1178
- unit: MtwFreightWeightUnit;
1179
- zeroReason?: string | null;
1075
+ unit: Types.MtwFreightWeightUnit;
1076
+ zeroReason: string | null;
1180
1077
  } | null;
1181
- provenance?: {
1182
- __typename?: 'MtwFreightCommercialProvenance';
1078
+ provenance: {
1183
1079
  sourceReference: string;
1184
1080
  sourceRevision: string;
1185
- observedAt?: string | null;
1081
+ observedAt: string | null;
1186
1082
  evidenceLinks: Array<{
1187
- __typename?: 'MtwFreightCommercialLink';
1188
1083
  fileId: string;
1189
1084
  versionId: string;
1190
1085
  }>;
1191
1086
  } | null;
1192
1087
  };
1193
1088
  volume: {
1194
- __typename?: 'MtwFreightCommercialVolumeFact';
1195
- status: MtwFreightCommercialStatus;
1196
- reason?: string | null;
1197
- value?: {
1198
- __typename?: 'MtwFreightCommercialVolume';
1089
+ status: Types.MtwFreightCommercialStatus;
1090
+ reason: string | null;
1091
+ value: {
1199
1092
  amount: string;
1200
- unit: MtwFreightVolumeUnit;
1201
- zeroReason?: string | null;
1093
+ unit: Types.MtwFreightVolumeUnit;
1094
+ zeroReason: string | null;
1202
1095
  } | null;
1203
- provenance?: {
1204
- __typename?: 'MtwFreightCommercialProvenance';
1096
+ provenance: {
1205
1097
  sourceReference: string;
1206
1098
  sourceRevision: string;
1207
- observedAt?: string | null;
1099
+ observedAt: string | null;
1208
1100
  evidenceLinks: Array<{
1209
- __typename?: 'MtwFreightCommercialLink';
1210
1101
  fileId: string;
1211
1102
  versionId: string;
1212
1103
  }>;
1213
1104
  } | null;
1214
1105
  };
1215
1106
  equipment: {
1216
- __typename?: 'MtwFreightCommercialEquipmentFact';
1217
- status: MtwFreightCommercialStatus;
1218
- reason?: string | null;
1219
- value?: {
1220
- __typename?: 'MtwFreightCommercialEquipment';
1107
+ status: Types.MtwFreightCommercialStatus;
1108
+ reason: string | null;
1109
+ value: {
1221
1110
  typeLabel: string;
1222
1111
  count: number;
1223
1112
  } | null;
1224
- provenance?: {
1225
- __typename?: 'MtwFreightCommercialProvenance';
1113
+ provenance: {
1226
1114
  sourceReference: string;
1227
1115
  sourceRevision: string;
1228
- observedAt?: string | null;
1116
+ observedAt: string | null;
1229
1117
  evidenceLinks: Array<{
1230
- __typename?: 'MtwFreightCommercialLink';
1231
1118
  fileId: string;
1232
1119
  versionId: string;
1233
1120
  }>;
1234
1121
  } | null;
1235
1122
  };
1236
1123
  ownerShipment: {
1237
- __typename?: 'MtwFreightCommercialShipment';
1238
1124
  shipmentId: string;
1239
1125
  updatedAt: string;
1240
- primaryMode: TransportMode;
1126
+ primaryMode: Types.TransportMode;
1241
1127
  };
1242
1128
  ownerLegs: Array<{
1243
- __typename?: 'MtwFreightCommercialOwnerLeg';
1244
1129
  id: string;
1245
1130
  updatedAt: string;
1246
1131
  legNumber: number;
1247
- mode: TransportMode;
1248
- carrierId?: string | null;
1249
- carrierName?: string | null;
1250
- weightKg?: number | null;
1251
- volumeCbm?: number | null;
1252
- containerType?: OceanContainerType | null;
1253
- containerCount?: number | null;
1132
+ mode: Types.TransportMode;
1133
+ carrierId: string | null;
1134
+ carrierName: string | null;
1135
+ weightKg: number | null;
1136
+ volumeCbm: number | null;
1137
+ containerType: Types.OceanContainerType | null;
1138
+ containerCount: number | null;
1254
1139
  }>;
1255
1140
  } | null;
1256
1141
  };
1257
1142
  };
1258
1143
  export type FreightCommercialLegsQueryVariables = Exact<{
1259
- shipmentId: Scalars['ID']['input'];
1260
- pagination: PaginationInput;
1144
+ shipmentId: string;
1145
+ pagination: Types.PaginationInput;
1261
1146
  }>;
1262
1147
  export type FreightCommercialLegsQuery = {
1263
- __typename?: 'Query';
1264
- shipment?: {
1265
- __typename?: 'MtwShipment';
1148
+ shipment: {
1266
1149
  id: string;
1267
1150
  legs: Array<{
1268
- __typename?: 'MtwShipmentLeg';
1269
1151
  id: string;
1270
1152
  shipmentId: string;
1271
1153
  updatedAt: string;
1272
1154
  legNumber: number;
1273
- mode: TransportMode;
1274
- carrierId?: string | null;
1275
- carrierName?: string | null;
1276
- weightKg?: number | null;
1277
- volumeCbm?: number | null;
1278
- containerType?: OceanContainerType | null;
1279
- containerCount?: number | null;
1155
+ mode: Types.TransportMode;
1156
+ carrierId: string | null;
1157
+ carrierName: string | null;
1158
+ weightKg: number | null;
1159
+ volumeCbm: number | null;
1160
+ containerType: Types.OceanContainerType | null;
1161
+ containerCount: number | null;
1280
1162
  }>;
1281
1163
  } | null;
1282
1164
  };
1283
1165
  export type FreightShipmentsQueryVariables = Exact<{
1284
- pagination?: InputMaybe<PaginationInput>;
1166
+ pagination?: Types.PaginationInput | null | undefined;
1285
1167
  }>;
1286
1168
  export type FreightShipmentsQuery = {
1287
- __typename?: 'Query';
1288
1169
  shipmentsCount: number;
1289
1170
  shipments: Array<{
1290
- __typename?: 'MtwShipment';
1291
1171
  id: string;
1292
1172
  shipmentNumber: string;
1293
- primaryMode: TransportMode;
1173
+ primaryMode: Types.TransportMode;
1294
1174
  updatedAt: string;
1295
- status: ShipmentStatus;
1175
+ status: Types.ShipmentStatus;
1296
1176
  }>;
1297
1177
  };
1298
1178
  export type FreightShipmentQueryVariables = Exact<{
1299
- id: Scalars['ID']['input'];
1179
+ id: string;
1300
1180
  }>;
1301
1181
  export type FreightShipmentQuery = {
1302
- __typename?: 'Query';
1303
- shipment?: {
1304
- __typename?: 'MtwShipment';
1182
+ shipment: {
1305
1183
  id: string;
1306
1184
  shipmentNumber: string;
1307
- primaryMode: TransportMode;
1185
+ primaryMode: Types.TransportMode;
1308
1186
  updatedAt: string;
1309
- status: ShipmentStatus;
1187
+ status: Types.ShipmentStatus;
1310
1188
  } | null;
1311
1189
  };
1312
1190
  export type FreightHistoryQueryVariables = Exact<{
1313
- shipmentId: Scalars['ID']['input'];
1314
- estimateReference?: InputMaybe<Scalars['String']['input']>;
1315
- pagination?: InputMaybe<MtwContainerPagination>;
1191
+ shipmentId: string;
1192
+ estimateReference?: string | null | undefined;
1193
+ pagination?: Types.MtwContainerPagination | null | undefined;
1316
1194
  }>;
1317
1195
  export type FreightHistoryQuery = {
1318
- __typename?: 'Query';
1319
1196
  mtwFreightEstimatePage: {
1320
- __typename?: 'MtwFreightEstimatePage';
1321
1197
  total: number;
1322
1198
  limit: number;
1323
1199
  offset: number;
1324
1200
  hasMore: boolean;
1325
- nextOffset?: number | null;
1201
+ nextOffset: number | null;
1326
1202
  items: Array<{
1327
- __typename?: 'MtwFreightEstimateVersion';
1328
1203
  id: string;
1329
1204
  shipmentId: string;
1330
1205
  estimateReference: string;
1331
1206
  version: number;
1332
- previousVersionId?: string | null;
1207
+ previousVersionId: string | null;
1333
1208
  recordedAt: string;
1334
1209
  createdBy: string;
1335
1210
  actorProvenance: string;
1336
1211
  validityAtRead: string;
1337
1212
  shipmentCapture: {
1338
- __typename?: 'MtwFreightShipmentCapture';
1339
1213
  shipmentNumber: string;
1340
1214
  primaryMode: string;
1341
1215
  capturedUpdatedAt: string;
1342
1216
  };
1343
1217
  facts: {
1344
- __typename?: 'MtwFreightFacts';
1345
1218
  title: string;
1346
- kind: MtwFreightKind;
1219
+ kind: Types.MtwFreightKind;
1347
1220
  };
1348
1221
  }>;
1349
1222
  };
1350
1223
  };
1351
1224
  export type FreightVersionQueryVariables = Exact<{
1352
- shipmentId: Scalars['ID']['input'];
1353
- id: Scalars['ID']['input'];
1225
+ shipmentId: string;
1226
+ id: string;
1354
1227
  }>;
1355
1228
  export type FreightVersionQuery = {
1356
- __typename?: 'Query';
1357
1229
  mtwFreightEstimateVersion: {
1358
- __typename?: 'MtwFreightEstimateVersion';
1359
1230
  id: string;
1360
1231
  shipmentId: string;
1361
1232
  estimateReference: string;
1362
1233
  version: number;
1363
- previousVersionId?: string | null;
1234
+ previousVersionId: string | null;
1364
1235
  recordedAt: string;
1365
1236
  createdBy: string;
1366
1237
  actorProvenance: string;
1367
- onBehalfOf?: string | null;
1238
+ onBehalfOf: string | null;
1368
1239
  validityAtRead: string;
1369
1240
  shipmentCapture: {
1370
- __typename?: 'MtwFreightShipmentCapture';
1371
1241
  shipmentNumber: string;
1372
1242
  primaryMode: string;
1373
1243
  capturedUpdatedAt: string;
1374
1244
  };
1375
1245
  facts: {
1376
- __typename?: 'MtwFreightFacts';
1377
- kind: MtwFreightKind;
1246
+ kind: Types.MtwFreightKind;
1378
1247
  title: string;
1379
1248
  commercialScope: string;
1380
1249
  sourceReference: string;
1381
1250
  sourceRevision: string;
1382
1251
  pricingAt: string;
1383
- quotedAt?: string | null;
1384
- validFrom?: string | null;
1385
- validUntil?: string | null;
1386
- rounding: MtwFreightRounding;
1387
- reportingCurrency?: {
1388
- __typename?: 'MtwFreightCurrency';
1252
+ quotedAt: string | null;
1253
+ validFrom: string | null;
1254
+ validUntil: string | null;
1255
+ rounding: Types.MtwFreightRounding;
1256
+ reportingCurrency: {
1389
1257
  code: string;
1390
1258
  minorUnitDigits: number;
1391
1259
  } | null;
1392
1260
  lines: Array<{
1393
- __typename?: 'MtwFreightLine';
1394
1261
  id: string;
1395
- category: MtwFreightCategory;
1262
+ category: Types.MtwFreightCategory;
1396
1263
  description: string;
1397
- payerReference?: string | null;
1398
- payerLabel?: string | null;
1399
- disposition: MtwFreightDisposition;
1400
- inclusionParentLineId?: string | null;
1401
- amountBasis: MtwFreightAmountBasis;
1402
- quantity?: string | null;
1403
- unit?: string | null;
1404
- unitRateMajor?: string | null;
1405
- amountMinor?: string | null;
1406
- zeroReason?: string | null;
1407
- sourceReference?: string | null;
1408
- sourceRevision?: string | null;
1264
+ payerReference: string | null;
1265
+ payerLabel: string | null;
1266
+ disposition: Types.MtwFreightDisposition;
1267
+ inclusionParentLineId: string | null;
1268
+ amountBasis: Types.MtwFreightAmountBasis;
1269
+ quantity: string | null;
1270
+ unit: string | null;
1271
+ unitRateMajor: string | null;
1272
+ amountMinor: string | null;
1273
+ zeroReason: string | null;
1274
+ sourceReference: string | null;
1275
+ sourceRevision: string | null;
1409
1276
  currency: {
1410
- __typename?: 'MtwFreightCurrency';
1411
1277
  code: string;
1412
1278
  minorUnitDigits: number;
1413
1279
  };
1414
1280
  }>;
1415
1281
  requirements: Array<{
1416
- __typename?: 'MtwFreightRequirement';
1417
- category: MtwFreightCategory;
1418
- status: MtwFreightRequirementStatus;
1419
- reason?: string | null;
1420
- sourceReference?: string | null;
1421
- sourceRevision?: string | null;
1282
+ category: Types.MtwFreightCategory;
1283
+ status: Types.MtwFreightRequirementStatus;
1284
+ reason: string | null;
1285
+ sourceReference: string | null;
1286
+ sourceRevision: string | null;
1422
1287
  }>;
1423
1288
  fx: Array<{
1424
- __typename?: 'MtwFreightFx';
1425
1289
  rate: string;
1426
1290
  observedAt: string;
1427
1291
  effectiveFrom: string;
@@ -1429,55 +1293,46 @@ export type FreightVersionQuery = {
1429
1293
  sourceReference: string;
1430
1294
  sourceRevision: string;
1431
1295
  fromCurrency: {
1432
- __typename?: 'MtwFreightCurrency';
1433
1296
  code: string;
1434
1297
  minorUnitDigits: number;
1435
1298
  };
1436
1299
  toCurrency: {
1437
- __typename?: 'MtwFreightCurrency';
1438
1300
  code: string;
1439
1301
  minorUnitDigits: number;
1440
1302
  };
1441
1303
  }>;
1442
1304
  };
1443
1305
  totals: {
1444
- __typename?: 'MtwFreightPreview';
1445
1306
  completeRelativeToDeclarations: boolean;
1446
- reportingTotalMinor?: string | null;
1307
+ reportingTotalMinor: string | null;
1447
1308
  subtotals: Array<{
1448
- __typename?: 'MtwFreightSubtotal';
1449
- payerReference?: string | null;
1450
- payerLabel?: string | null;
1309
+ payerReference: string | null;
1310
+ payerLabel: string | null;
1451
1311
  knownAmountMinor: string;
1452
- totalAmountMinor?: string | null;
1312
+ totalAmountMinor: string | null;
1453
1313
  currency: {
1454
- __typename?: 'MtwFreightCurrency';
1455
1314
  code: string;
1456
1315
  minorUnitDigits: number;
1457
1316
  };
1458
1317
  }>;
1459
1318
  lines: Array<{
1460
- __typename?: 'MtwFreightLineTotal';
1461
1319
  id: string;
1462
- nativeAmountMinor?: string | null;
1463
- reportingAmountMinor?: string | null;
1320
+ nativeAmountMinor: string | null;
1321
+ reportingAmountMinor: string | null;
1464
1322
  roundedToZero: boolean;
1465
1323
  }>;
1466
1324
  reasons: Array<{
1467
- __typename?: 'MtwFreightReason';
1468
1325
  code: string;
1469
- lineId?: string | null;
1326
+ lineId: string | null;
1470
1327
  detail: string;
1471
1328
  }>;
1472
1329
  warnings: Array<{
1473
- __typename?: 'MtwFreightReason';
1474
1330
  code: string;
1475
- lineId?: string | null;
1331
+ lineId: string | null;
1476
1332
  detail: string;
1477
1333
  }>;
1478
1334
  };
1479
1335
  evidence: Array<{
1480
- __typename?: 'MtwContainerEvidence';
1481
1336
  fileId: string;
1482
1337
  versionId: string;
1483
1338
  sha256Hash: string;
@@ -1486,120 +1341,104 @@ export type FreightVersionQuery = {
1486
1341
  };
1487
1342
  };
1488
1343
  export type PreviewFreightCostsQueryVariables = Exact<{
1489
- input: MtwFreightFactsInput;
1344
+ input: Types.MtwFreightFactsInput;
1490
1345
  }>;
1491
1346
  export type PreviewFreightCostsQuery = {
1492
- __typename?: 'Query';
1493
1347
  previewMtwFreightTotal: {
1494
- __typename?: 'MtwFreightPreview';
1495
1348
  completeRelativeToDeclarations: boolean;
1496
- reportingTotalMinor?: string | null;
1349
+ reportingTotalMinor: string | null;
1497
1350
  subtotals: Array<{
1498
- __typename?: 'MtwFreightSubtotal';
1499
- payerReference?: string | null;
1500
- payerLabel?: string | null;
1351
+ payerReference: string | null;
1352
+ payerLabel: string | null;
1501
1353
  knownAmountMinor: string;
1502
- totalAmountMinor?: string | null;
1354
+ totalAmountMinor: string | null;
1503
1355
  currency: {
1504
- __typename?: 'MtwFreightCurrency';
1505
1356
  code: string;
1506
1357
  minorUnitDigits: number;
1507
1358
  };
1508
1359
  }>;
1509
1360
  lines: Array<{
1510
- __typename?: 'MtwFreightLineTotal';
1511
1361
  id: string;
1512
- nativeAmountMinor?: string | null;
1513
- reportingAmountMinor?: string | null;
1362
+ nativeAmountMinor: string | null;
1363
+ reportingAmountMinor: string | null;
1514
1364
  roundedToZero: boolean;
1515
1365
  }>;
1516
1366
  reasons: Array<{
1517
- __typename?: 'MtwFreightReason';
1518
1367
  code: string;
1519
- lineId?: string | null;
1368
+ lineId: string | null;
1520
1369
  detail: string;
1521
1370
  }>;
1522
1371
  warnings: Array<{
1523
- __typename?: 'MtwFreightReason';
1524
1372
  code: string;
1525
- lineId?: string | null;
1373
+ lineId: string | null;
1526
1374
  detail: string;
1527
1375
  }>;
1528
1376
  };
1529
1377
  };
1530
1378
  export type SaveFreightCostsMutationVariables = Exact<{
1531
- input: SaveMtwFreightEstimateInput;
1379
+ input: Types.SaveMtwFreightEstimateInput;
1532
1380
  }>;
1533
1381
  export type SaveFreightCostsMutation = {
1534
- __typename?: 'Mutation';
1535
1382
  saveMtwFreightEstimate: {
1536
- __typename?: 'MtwFreightEstimateVersion';
1537
1383
  id: string;
1538
1384
  shipmentId: string;
1539
1385
  estimateReference: string;
1540
1386
  version: number;
1541
- previousVersionId?: string | null;
1387
+ previousVersionId: string | null;
1542
1388
  recordedAt: string;
1543
1389
  createdBy: string;
1544
1390
  actorProvenance: string;
1545
- onBehalfOf?: string | null;
1391
+ onBehalfOf: string | null;
1546
1392
  validityAtRead: string;
1547
1393
  shipmentCapture: {
1548
- __typename?: 'MtwFreightShipmentCapture';
1549
1394
  shipmentNumber: string;
1550
1395
  primaryMode: string;
1551
1396
  capturedUpdatedAt: string;
1552
1397
  };
1553
1398
  facts: {
1554
- __typename?: 'MtwFreightFacts';
1555
- kind: MtwFreightKind;
1399
+ kind: Types.MtwFreightKind;
1556
1400
  title: string;
1557
1401
  commercialScope: string;
1558
1402
  sourceReference: string;
1559
1403
  sourceRevision: string;
1560
1404
  pricingAt: string;
1561
- quotedAt?: string | null;
1562
- validFrom?: string | null;
1563
- validUntil?: string | null;
1564
- rounding: MtwFreightRounding;
1565
- reportingCurrency?: {
1566
- __typename?: 'MtwFreightCurrency';
1405
+ quotedAt: string | null;
1406
+ validFrom: string | null;
1407
+ validUntil: string | null;
1408
+ rounding: Types.MtwFreightRounding;
1409
+ reportingCurrency: {
1567
1410
  code: string;
1568
1411
  minorUnitDigits: number;
1569
1412
  } | null;
1570
1413
  lines: Array<{
1571
- __typename?: 'MtwFreightLine';
1572
1414
  id: string;
1573
- category: MtwFreightCategory;
1415
+ category: Types.MtwFreightCategory;
1574
1416
  description: string;
1575
- payerReference?: string | null;
1576
- payerLabel?: string | null;
1577
- disposition: MtwFreightDisposition;
1578
- inclusionParentLineId?: string | null;
1579
- amountBasis: MtwFreightAmountBasis;
1580
- quantity?: string | null;
1581
- unit?: string | null;
1582
- unitRateMajor?: string | null;
1583
- amountMinor?: string | null;
1584
- zeroReason?: string | null;
1585
- sourceReference?: string | null;
1586
- sourceRevision?: string | null;
1417
+ payerReference: string | null;
1418
+ payerLabel: string | null;
1419
+ disposition: Types.MtwFreightDisposition;
1420
+ inclusionParentLineId: string | null;
1421
+ amountBasis: Types.MtwFreightAmountBasis;
1422
+ quantity: string | null;
1423
+ unit: string | null;
1424
+ unitRateMajor: string | null;
1425
+ amountMinor: string | null;
1426
+ zeroReason: string | null;
1427
+ sourceReference: string | null;
1428
+ sourceRevision: string | null;
1587
1429
  currency: {
1588
- __typename?: 'MtwFreightCurrency';
1589
1430
  code: string;
1590
1431
  minorUnitDigits: number;
1591
1432
  };
1592
1433
  }>;
1593
1434
  requirements: Array<{
1594
- __typename?: 'MtwFreightRequirement';
1595
- category: MtwFreightCategory;
1596
- status: MtwFreightRequirementStatus;
1597
- reason?: string | null;
1598
- sourceReference?: string | null;
1599
- sourceRevision?: string | null;
1435
+ category: Types.MtwFreightCategory;
1436
+ status: Types.MtwFreightRequirementStatus;
1437
+ reason: string | null;
1438
+ sourceReference: string | null;
1439
+ sourceRevision: string | null;
1600
1440
  }>;
1601
1441
  fx: Array<{
1602
- __typename?: 'MtwFreightFx';
1603
1442
  rate: string;
1604
1443
  observedAt: string;
1605
1444
  effectiveFrom: string;
@@ -1607,55 +1446,46 @@ export type SaveFreightCostsMutation = {
1607
1446
  sourceReference: string;
1608
1447
  sourceRevision: string;
1609
1448
  fromCurrency: {
1610
- __typename?: 'MtwFreightCurrency';
1611
1449
  code: string;
1612
1450
  minorUnitDigits: number;
1613
1451
  };
1614
1452
  toCurrency: {
1615
- __typename?: 'MtwFreightCurrency';
1616
1453
  code: string;
1617
1454
  minorUnitDigits: number;
1618
1455
  };
1619
1456
  }>;
1620
1457
  };
1621
1458
  totals: {
1622
- __typename?: 'MtwFreightPreview';
1623
1459
  completeRelativeToDeclarations: boolean;
1624
- reportingTotalMinor?: string | null;
1460
+ reportingTotalMinor: string | null;
1625
1461
  subtotals: Array<{
1626
- __typename?: 'MtwFreightSubtotal';
1627
- payerReference?: string | null;
1628
- payerLabel?: string | null;
1462
+ payerReference: string | null;
1463
+ payerLabel: string | null;
1629
1464
  knownAmountMinor: string;
1630
- totalAmountMinor?: string | null;
1465
+ totalAmountMinor: string | null;
1631
1466
  currency: {
1632
- __typename?: 'MtwFreightCurrency';
1633
1467
  code: string;
1634
1468
  minorUnitDigits: number;
1635
1469
  };
1636
1470
  }>;
1637
1471
  lines: Array<{
1638
- __typename?: 'MtwFreightLineTotal';
1639
1472
  id: string;
1640
- nativeAmountMinor?: string | null;
1641
- reportingAmountMinor?: string | null;
1473
+ nativeAmountMinor: string | null;
1474
+ reportingAmountMinor: string | null;
1642
1475
  roundedToZero: boolean;
1643
1476
  }>;
1644
1477
  reasons: Array<{
1645
- __typename?: 'MtwFreightReason';
1646
1478
  code: string;
1647
- lineId?: string | null;
1479
+ lineId: string | null;
1648
1480
  detail: string;
1649
1481
  }>;
1650
1482
  warnings: Array<{
1651
- __typename?: 'MtwFreightReason';
1652
1483
  code: string;
1653
- lineId?: string | null;
1484
+ lineId: string | null;
1654
1485
  detail: string;
1655
1486
  }>;
1656
1487
  };
1657
1488
  evidence: Array<{
1658
- __typename?: 'MtwContainerEvidence';
1659
1489
  fileId: string;
1660
1490
  versionId: string;
1661
1491
  sha256Hash: string;
@@ -1663,13 +1493,14 @@ export type SaveFreightCostsMutation = {
1663
1493
  }>;
1664
1494
  };
1665
1495
  };
1666
- export declare const CommercialProvenanceFragmentDoc: import('graphql').DocumentNode;
1667
- export declare const SaveFreightCommercialCostsDocument: import('graphql').DocumentNode;
1668
- export declare const FreightCommercialVersionDocument: import('graphql').DocumentNode;
1669
- export declare const FreightCommercialLegsDocument: import('graphql').DocumentNode;
1670
- export declare const FreightShipmentsDocument: import('graphql').DocumentNode;
1671
- export declare const FreightShipmentDocument: import('graphql').DocumentNode;
1672
- export declare const FreightHistoryDocument: import('graphql').DocumentNode;
1673
- export declare const FreightVersionDocument: import('graphql').DocumentNode;
1674
- export declare const PreviewFreightCostsDocument: import('graphql').DocumentNode;
1675
- export declare const SaveFreightCostsDocument: import('graphql').DocumentNode;
1496
+ export declare const CommercialProvenanceFragmentDoc: DocumentNode<CommercialProvenanceFragment, unknown>;
1497
+ export declare const SaveFreightCommercialCostsDocument: DocumentNode<SaveFreightCommercialCostsMutation, SaveFreightCommercialCostsMutationVariables>;
1498
+ export declare const FreightCommercialVersionDocument: DocumentNode<FreightCommercialVersionQuery, FreightCommercialVersionQueryVariables>;
1499
+ export declare const FreightCommercialLegsDocument: DocumentNode<FreightCommercialLegsQuery, FreightCommercialLegsQueryVariables>;
1500
+ export declare const FreightShipmentsDocument: DocumentNode<FreightShipmentsQuery, FreightShipmentsQueryVariables>;
1501
+ export declare const FreightShipmentDocument: DocumentNode<FreightShipmentQuery, FreightShipmentQueryVariables>;
1502
+ export declare const FreightHistoryDocument: DocumentNode<FreightHistoryQuery, FreightHistoryQueryVariables>;
1503
+ export declare const FreightVersionDocument: DocumentNode<FreightVersionQuery, FreightVersionQueryVariables>;
1504
+ export declare const PreviewFreightCostsDocument: DocumentNode<PreviewFreightCostsQuery, PreviewFreightCostsQueryVariables>;
1505
+ export declare const SaveFreightCostsDocument: DocumentNode<SaveFreightCostsMutation, SaveFreightCostsMutationVariables>;
1506
+ export {};