@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,11 +1,12 @@
1
- import { gql } from '@apollo/client';
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
3
+ /** Internal type. DO NOT USE DIRECTLY. */
4
+ export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
5
+ import type * as Types from './freight-cost-operations';
6
+
7
+ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
2
8
  export type Maybe<T> = T | null;
3
9
  export type InputMaybe<T> = Maybe<T>;
4
- export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
5
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
6
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
7
- export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
8
- export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
9
10
  /** All built-in and custom scalars, mapped to their actual values */
10
11
  export type Scalars = {
11
12
  ID: { input: string; output: string; }
@@ -694,890 +695,83 @@ export type TransportMode =
694
695
  | 'RAIL'
695
696
  | 'ROAD';
696
697
 
697
- export type CommercialProvenanceFragment = { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> };
698
+ export type CommercialProvenanceFragment = { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> };
698
699
 
699
700
  export type SaveFreightCommercialCostsMutationVariables = Exact<{
700
- input: SaveMtwFreightEstimateInput;
701
+ input: Types.SaveMtwFreightEstimateInput;
701
702
  }>;
702
703
 
703
704
 
704
- export type SaveFreightCommercialCostsMutation = { __typename?: 'Mutation', saveMtwFreightEstimate: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, commercialCapture?: { __typename?: 'MtwFreightCommercialCapture', schemaVersion: number, selectedLegs: Array<{ __typename?: 'MtwFreightCommercialLegPin', id: string, expectedUpdatedAt: string }>, origin: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, destination: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, carrier: { __typename?: 'MtwFreightCommercialCarrierFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCarrier', reference: string, label: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, service: { __typename?: 'MtwFreightCommercialServiceFact', status: MtwFreightCommercialStatus, value?: string | null, reason?: string | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, cargo: { __typename?: 'MtwFreightCommercialCargoFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCargo', classificationLabel: string, description: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, weight: { __typename?: 'MtwFreightCommercialWeightFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialWeight', amount: string, unit: MtwFreightWeightUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, volume: { __typename?: 'MtwFreightCommercialVolumeFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialVolume', amount: string, unit: MtwFreightVolumeUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, equipment: { __typename?: 'MtwFreightCommercialEquipmentFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialEquipment', typeLabel: string, count: number } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, ownerShipment: { __typename?: 'MtwFreightCommercialShipment', shipmentId: string, updatedAt: string, primaryMode: TransportMode }, ownerLegs: Array<{ __typename?: 'MtwFreightCommercialOwnerLeg', id: string, updatedAt: string, legNumber: number, mode: TransportMode, carrierId?: string | null, carrierName?: string | null, weightKg?: number | null, volumeCbm?: number | null, containerType?: OceanContainerType | null, containerCount?: number | null }> } | null } };
705
+ export type SaveFreightCommercialCostsMutation = { saveMtwFreightEstimate: { id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, validityAtRead: string, shipmentCapture: { shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { kind: Types.MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, rounding: Types.MtwFreightRounding, reportingCurrency: { code: string, minorUnitDigits: number } | null, lines: Array<{ id: string, category: Types.MtwFreightCategory, description: string, payerReference: string | null, payerLabel: string | null, disposition: Types.MtwFreightDisposition, inclusionParentLineId: string | null, amountBasis: Types.MtwFreightAmountBasis, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, sourceReference: string | null, sourceRevision: string | null, currency: { code: string, minorUnitDigits: number } }>, requirements: Array<{ category: Types.MtwFreightCategory, status: Types.MtwFreightRequirementStatus, reason: string | null, sourceReference: string | null, sourceRevision: string | null }>, fx: Array<{ rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { code: string, minorUnitDigits: number }, toCurrency: { code: string, minorUnitDigits: number } }> }, totals: { completeRelativeToDeclarations: boolean, reportingTotalMinor: string | null, subtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, lines: Array<{ id: string, nativeAmountMinor: string | null, reportingAmountMinor: string | null, roundedToZero: boolean }>, reasons: Array<{ code: string, lineId: string | null, detail: string }>, warnings: Array<{ code: string, lineId: string | null, detail: string }> }, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, commercialCapture: { schemaVersion: number, selectedLegs: Array<{ id: string, expectedUpdatedAt: string }>, origin: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { kind: Types.MtwFreightLocationKind, label: string, jurisdictionLabel: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, destination: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { kind: Types.MtwFreightLocationKind, label: string, jurisdictionLabel: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, carrier: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { reference: string, label: string } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, service: { status: Types.MtwFreightCommercialStatus, value: string | null, reason: string | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, cargo: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { classificationLabel: string, description: string } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, weight: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { amount: string, unit: Types.MtwFreightWeightUnit, zeroReason: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, volume: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { amount: string, unit: Types.MtwFreightVolumeUnit, zeroReason: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, equipment: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { typeLabel: string, count: number } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, ownerShipment: { shipmentId: string, updatedAt: string, primaryMode: Types.TransportMode }, ownerLegs: Array<{ id: string, updatedAt: string, legNumber: number, mode: Types.TransportMode, carrierId: string | null, carrierName: string | null, weightKg: number | null, volumeCbm: number | null, containerType: Types.OceanContainerType | null, containerCount: number | null }> } | null } };
705
706
 
706
707
  export type FreightCommercialVersionQueryVariables = Exact<{
707
- shipmentId: Scalars['ID']['input'];
708
- id: Scalars['ID']['input'];
708
+ shipmentId: string;
709
+ id: string;
709
710
  }>;
710
711
 
711
712
 
712
- export type FreightCommercialVersionQuery = { __typename?: 'Query', mtwFreightEstimateVersion: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, commercialCapture?: { __typename?: 'MtwFreightCommercialCapture', schemaVersion: number, selectedLegs: Array<{ __typename?: 'MtwFreightCommercialLegPin', id: string, expectedUpdatedAt: string }>, origin: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, destination: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, carrier: { __typename?: 'MtwFreightCommercialCarrierFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCarrier', reference: string, label: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, service: { __typename?: 'MtwFreightCommercialServiceFact', status: MtwFreightCommercialStatus, value?: string | null, reason?: string | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, cargo: { __typename?: 'MtwFreightCommercialCargoFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCargo', classificationLabel: string, description: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, weight: { __typename?: 'MtwFreightCommercialWeightFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialWeight', amount: string, unit: MtwFreightWeightUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, volume: { __typename?: 'MtwFreightCommercialVolumeFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialVolume', amount: string, unit: MtwFreightVolumeUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, equipment: { __typename?: 'MtwFreightCommercialEquipmentFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialEquipment', typeLabel: string, count: number } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, ownerShipment: { __typename?: 'MtwFreightCommercialShipment', shipmentId: string, updatedAt: string, primaryMode: TransportMode }, ownerLegs: Array<{ __typename?: 'MtwFreightCommercialOwnerLeg', id: string, updatedAt: string, legNumber: number, mode: TransportMode, carrierId?: string | null, carrierName?: string | null, weightKg?: number | null, volumeCbm?: number | null, containerType?: OceanContainerType | null, containerCount?: number | null }> } | null } };
713
+ export type FreightCommercialVersionQuery = { mtwFreightEstimateVersion: { id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, validityAtRead: string, shipmentCapture: { shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { kind: Types.MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, rounding: Types.MtwFreightRounding, reportingCurrency: { code: string, minorUnitDigits: number } | null, lines: Array<{ id: string, category: Types.MtwFreightCategory, description: string, payerReference: string | null, payerLabel: string | null, disposition: Types.MtwFreightDisposition, inclusionParentLineId: string | null, amountBasis: Types.MtwFreightAmountBasis, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, sourceReference: string | null, sourceRevision: string | null, currency: { code: string, minorUnitDigits: number } }>, requirements: Array<{ category: Types.MtwFreightCategory, status: Types.MtwFreightRequirementStatus, reason: string | null, sourceReference: string | null, sourceRevision: string | null }>, fx: Array<{ rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { code: string, minorUnitDigits: number }, toCurrency: { code: string, minorUnitDigits: number } }> }, totals: { completeRelativeToDeclarations: boolean, reportingTotalMinor: string | null, subtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, lines: Array<{ id: string, nativeAmountMinor: string | null, reportingAmountMinor: string | null, roundedToZero: boolean }>, reasons: Array<{ code: string, lineId: string | null, detail: string }>, warnings: Array<{ code: string, lineId: string | null, detail: string }> }, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, commercialCapture: { schemaVersion: number, selectedLegs: Array<{ id: string, expectedUpdatedAt: string }>, origin: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { kind: Types.MtwFreightLocationKind, label: string, jurisdictionLabel: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, destination: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { kind: Types.MtwFreightLocationKind, label: string, jurisdictionLabel: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, carrier: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { reference: string, label: string } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, service: { status: Types.MtwFreightCommercialStatus, value: string | null, reason: string | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, cargo: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { classificationLabel: string, description: string } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, weight: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { amount: string, unit: Types.MtwFreightWeightUnit, zeroReason: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, volume: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { amount: string, unit: Types.MtwFreightVolumeUnit, zeroReason: string | null } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, equipment: { status: Types.MtwFreightCommercialStatus, reason: string | null, value: { typeLabel: string, count: number } | null, provenance: { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> } | null }, ownerShipment: { shipmentId: string, updatedAt: string, primaryMode: Types.TransportMode }, ownerLegs: Array<{ id: string, updatedAt: string, legNumber: number, mode: Types.TransportMode, carrierId: string | null, carrierName: string | null, weightKg: number | null, volumeCbm: number | null, containerType: Types.OceanContainerType | null, containerCount: number | null }> } | null } };
713
714
 
714
715
  export type FreightCommercialLegsQueryVariables = Exact<{
715
- shipmentId: Scalars['ID']['input'];
716
- pagination: PaginationInput;
716
+ shipmentId: string;
717
+ pagination: Types.PaginationInput;
717
718
  }>;
718
719
 
719
720
 
720
- export type FreightCommercialLegsQuery = { __typename?: 'Query', shipment?: { __typename?: 'MtwShipment', id: string, legs: Array<{ __typename?: 'MtwShipmentLeg', id: string, shipmentId: string, updatedAt: string, legNumber: number, mode: TransportMode, carrierId?: string | null, carrierName?: string | null, weightKg?: number | null, volumeCbm?: number | null, containerType?: OceanContainerType | null, containerCount?: number | null }> } | null };
721
+ export type FreightCommercialLegsQuery = { shipment: { id: string, legs: Array<{ id: string, shipmentId: string, updatedAt: string, legNumber: number, mode: Types.TransportMode, carrierId: string | null, carrierName: string | null, weightKg: number | null, volumeCbm: number | null, containerType: Types.OceanContainerType | null, containerCount: number | null }> } | null };
721
722
 
722
723
  export type FreightShipmentsQueryVariables = Exact<{
723
- pagination?: InputMaybe<PaginationInput>;
724
+ pagination?: Types.PaginationInput | null | undefined;
724
725
  }>;
725
726
 
726
727
 
727
- export type FreightShipmentsQuery = { __typename?: 'Query', shipmentsCount: number, shipments: Array<{ __typename?: 'MtwShipment', id: string, shipmentNumber: string, primaryMode: TransportMode, updatedAt: string, status: ShipmentStatus }> };
728
+ export type FreightShipmentsQuery = { shipmentsCount: number, shipments: Array<{ id: string, shipmentNumber: string, primaryMode: Types.TransportMode, updatedAt: string, status: Types.ShipmentStatus }> };
728
729
 
729
730
  export type FreightShipmentQueryVariables = Exact<{
730
- id: Scalars['ID']['input'];
731
+ id: string;
731
732
  }>;
732
733
 
733
734
 
734
- export type FreightShipmentQuery = { __typename?: 'Query', shipment?: { __typename?: 'MtwShipment', id: string, shipmentNumber: string, primaryMode: TransportMode, updatedAt: string, status: ShipmentStatus } | null };
735
+ export type FreightShipmentQuery = { shipment: { id: string, shipmentNumber: string, primaryMode: Types.TransportMode, updatedAt: string, status: Types.ShipmentStatus } | null };
735
736
 
736
737
  export type FreightHistoryQueryVariables = Exact<{
737
- shipmentId: Scalars['ID']['input'];
738
- estimateReference?: InputMaybe<Scalars['String']['input']>;
739
- pagination?: InputMaybe<MtwContainerPagination>;
738
+ shipmentId: string;
739
+ estimateReference?: string | null | undefined;
740
+ pagination?: Types.MtwContainerPagination | null | undefined;
740
741
  }>;
741
742
 
742
743
 
743
- export type FreightHistoryQuery = { __typename?: 'Query', mtwFreightEstimatePage: { __typename?: 'MtwFreightEstimatePage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', title: string, kind: MtwFreightKind } }> } };
744
+ export type FreightHistoryQuery = { mtwFreightEstimatePage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId: string | null, recordedAt: string, createdBy: string, actorProvenance: string, validityAtRead: string, shipmentCapture: { shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { title: string, kind: Types.MtwFreightKind } }> } };
744
745
 
745
746
  export type FreightVersionQueryVariables = Exact<{
746
- shipmentId: Scalars['ID']['input'];
747
- id: Scalars['ID']['input'];
747
+ shipmentId: string;
748
+ id: string;
748
749
  }>;
749
750
 
750
751
 
751
- export type FreightVersionQuery = { __typename?: 'Query', mtwFreightEstimateVersion: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
752
+ export type FreightVersionQuery = { mtwFreightEstimateVersion: { id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, validityAtRead: string, shipmentCapture: { shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { kind: Types.MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, rounding: Types.MtwFreightRounding, reportingCurrency: { code: string, minorUnitDigits: number } | null, lines: Array<{ id: string, category: Types.MtwFreightCategory, description: string, payerReference: string | null, payerLabel: string | null, disposition: Types.MtwFreightDisposition, inclusionParentLineId: string | null, amountBasis: Types.MtwFreightAmountBasis, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, sourceReference: string | null, sourceRevision: string | null, currency: { code: string, minorUnitDigits: number } }>, requirements: Array<{ category: Types.MtwFreightCategory, status: Types.MtwFreightRequirementStatus, reason: string | null, sourceReference: string | null, sourceRevision: string | null }>, fx: Array<{ rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { code: string, minorUnitDigits: number }, toCurrency: { code: string, minorUnitDigits: number } }> }, totals: { completeRelativeToDeclarations: boolean, reportingTotalMinor: string | null, subtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, lines: Array<{ id: string, nativeAmountMinor: string | null, reportingAmountMinor: string | null, roundedToZero: boolean }>, reasons: Array<{ code: string, lineId: string | null, detail: string }>, warnings: Array<{ code: string, lineId: string | null, detail: string }> }, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
752
753
 
753
754
  export type PreviewFreightCostsQueryVariables = Exact<{
754
- input: MtwFreightFactsInput;
755
+ input: Types.MtwFreightFactsInput;
755
756
  }>;
756
757
 
757
758
 
758
- export type PreviewFreightCostsQuery = { __typename?: 'Query', previewMtwFreightTotal: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> } };
759
+ export type PreviewFreightCostsQuery = { previewMtwFreightTotal: { completeRelativeToDeclarations: boolean, reportingTotalMinor: string | null, subtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, lines: Array<{ id: string, nativeAmountMinor: string | null, reportingAmountMinor: string | null, roundedToZero: boolean }>, reasons: Array<{ code: string, lineId: string | null, detail: string }>, warnings: Array<{ code: string, lineId: string | null, detail: string }> } };
759
760
 
760
761
  export type SaveFreightCostsMutationVariables = Exact<{
761
- input: SaveMtwFreightEstimateInput;
762
+ input: Types.SaveMtwFreightEstimateInput;
762
763
  }>;
763
764
 
764
765
 
765
- export type SaveFreightCostsMutation = { __typename?: 'Mutation', saveMtwFreightEstimate: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
766
-
767
- export const CommercialProvenanceFragmentDoc = gql`
768
- fragment CommercialProvenance on MtwFreightCommercialProvenance {
769
- sourceReference
770
- sourceRevision
771
- observedAt
772
- evidenceLinks {
773
- fileId
774
- versionId
775
- }
776
- }
777
- `;
778
- export const SaveFreightCommercialCostsDocument = gql`
779
- mutation SaveFreightCommercialCosts($input: SaveMtwFreightEstimateInput!) {
780
- saveMtwFreightEstimate(input: $input) {
781
- id
782
- shipmentId
783
- estimateReference
784
- version
785
- previousVersionId
786
- shipmentCapture {
787
- shipmentNumber
788
- primaryMode
789
- capturedUpdatedAt
790
- }
791
- facts {
792
- kind
793
- title
794
- commercialScope
795
- sourceReference
796
- sourceRevision
797
- pricingAt
798
- quotedAt
799
- validFrom
800
- validUntil
801
- reportingCurrency {
802
- code
803
- minorUnitDigits
804
- }
805
- rounding
806
- lines {
807
- id
808
- category
809
- description
810
- payerReference
811
- payerLabel
812
- disposition
813
- inclusionParentLineId
814
- currency {
815
- code
816
- minorUnitDigits
817
- }
818
- amountBasis
819
- quantity
820
- unit
821
- unitRateMajor
822
- amountMinor
823
- zeroReason
824
- sourceReference
825
- sourceRevision
826
- }
827
- requirements {
828
- category
829
- status
830
- reason
831
- sourceReference
832
- sourceRevision
833
- }
834
- fx {
835
- fromCurrency {
836
- code
837
- minorUnitDigits
838
- }
839
- toCurrency {
840
- code
841
- minorUnitDigits
842
- }
843
- rate
844
- observedAt
845
- effectiveFrom
846
- effectiveUntil
847
- sourceReference
848
- sourceRevision
849
- }
850
- }
851
- totals {
852
- completeRelativeToDeclarations
853
- reportingTotalMinor
854
- subtotals {
855
- currency {
856
- code
857
- minorUnitDigits
858
- }
859
- payerReference
860
- payerLabel
861
- knownAmountMinor
862
- totalAmountMinor
863
- }
864
- lines {
865
- id
866
- nativeAmountMinor
867
- reportingAmountMinor
868
- roundedToZero
869
- }
870
- reasons {
871
- code
872
- lineId
873
- detail
874
- }
875
- warnings {
876
- code
877
- lineId
878
- detail
879
- }
880
- }
881
- evidence {
882
- fileId
883
- versionId
884
- sha256Hash
885
- checkedAt
886
- }
887
- recordedAt
888
- createdBy
889
- actorProvenance
890
- onBehalfOf
891
- validityAtRead
892
- commercialCapture {
893
- schemaVersion
894
- selectedLegs {
895
- id
896
- expectedUpdatedAt
897
- }
898
- origin {
899
- status
900
- value {
901
- kind
902
- label
903
- jurisdictionLabel
904
- }
905
- reason
906
- provenance {
907
- ...CommercialProvenance
908
- }
909
- }
910
- destination {
911
- status
912
- value {
913
- kind
914
- label
915
- jurisdictionLabel
916
- }
917
- reason
918
- provenance {
919
- ...CommercialProvenance
920
- }
921
- }
922
- carrier {
923
- status
924
- value {
925
- reference
926
- label
927
- }
928
- reason
929
- provenance {
930
- ...CommercialProvenance
931
- }
932
- }
933
- service {
934
- status
935
- value
936
- reason
937
- provenance {
938
- ...CommercialProvenance
939
- }
940
- }
941
- cargo {
942
- status
943
- value {
944
- classificationLabel
945
- description
946
- }
947
- reason
948
- provenance {
949
- ...CommercialProvenance
950
- }
951
- }
952
- weight {
953
- status
954
- value {
955
- amount
956
- unit
957
- zeroReason
958
- }
959
- reason
960
- provenance {
961
- ...CommercialProvenance
962
- }
963
- }
964
- volume {
965
- status
966
- value {
967
- amount
968
- unit
969
- zeroReason
970
- }
971
- reason
972
- provenance {
973
- ...CommercialProvenance
974
- }
975
- }
976
- equipment {
977
- status
978
- value {
979
- typeLabel
980
- count
981
- }
982
- reason
983
- provenance {
984
- ...CommercialProvenance
985
- }
986
- }
987
- ownerShipment {
988
- shipmentId
989
- updatedAt
990
- primaryMode
991
- }
992
- ownerLegs {
993
- id
994
- updatedAt
995
- legNumber
996
- mode
997
- carrierId
998
- carrierName
999
- weightKg
1000
- volumeCbm
1001
- containerType
1002
- containerCount
1003
- }
1004
- }
1005
- }
1006
- }
1007
- ${CommercialProvenanceFragmentDoc}`;
1008
- export const FreightCommercialVersionDocument = gql`
1009
- query FreightCommercialVersion($shipmentId: ID!, $id: ID!) {
1010
- mtwFreightEstimateVersion(shipmentId: $shipmentId, id: $id) {
1011
- id
1012
- shipmentId
1013
- estimateReference
1014
- version
1015
- previousVersionId
1016
- shipmentCapture {
1017
- shipmentNumber
1018
- primaryMode
1019
- capturedUpdatedAt
1020
- }
1021
- facts {
1022
- kind
1023
- title
1024
- commercialScope
1025
- sourceReference
1026
- sourceRevision
1027
- pricingAt
1028
- quotedAt
1029
- validFrom
1030
- validUntil
1031
- reportingCurrency {
1032
- code
1033
- minorUnitDigits
1034
- }
1035
- rounding
1036
- lines {
1037
- id
1038
- category
1039
- description
1040
- payerReference
1041
- payerLabel
1042
- disposition
1043
- inclusionParentLineId
1044
- currency {
1045
- code
1046
- minorUnitDigits
1047
- }
1048
- amountBasis
1049
- quantity
1050
- unit
1051
- unitRateMajor
1052
- amountMinor
1053
- zeroReason
1054
- sourceReference
1055
- sourceRevision
1056
- }
1057
- requirements {
1058
- category
1059
- status
1060
- reason
1061
- sourceReference
1062
- sourceRevision
1063
- }
1064
- fx {
1065
- fromCurrency {
1066
- code
1067
- minorUnitDigits
1068
- }
1069
- toCurrency {
1070
- code
1071
- minorUnitDigits
1072
- }
1073
- rate
1074
- observedAt
1075
- effectiveFrom
1076
- effectiveUntil
1077
- sourceReference
1078
- sourceRevision
1079
- }
1080
- }
1081
- totals {
1082
- completeRelativeToDeclarations
1083
- reportingTotalMinor
1084
- subtotals {
1085
- currency {
1086
- code
1087
- minorUnitDigits
1088
- }
1089
- payerReference
1090
- payerLabel
1091
- knownAmountMinor
1092
- totalAmountMinor
1093
- }
1094
- lines {
1095
- id
1096
- nativeAmountMinor
1097
- reportingAmountMinor
1098
- roundedToZero
1099
- }
1100
- reasons {
1101
- code
1102
- lineId
1103
- detail
1104
- }
1105
- warnings {
1106
- code
1107
- lineId
1108
- detail
1109
- }
1110
- }
1111
- evidence {
1112
- fileId
1113
- versionId
1114
- sha256Hash
1115
- checkedAt
1116
- }
1117
- recordedAt
1118
- createdBy
1119
- actorProvenance
1120
- onBehalfOf
1121
- validityAtRead
1122
- commercialCapture {
1123
- schemaVersion
1124
- selectedLegs {
1125
- id
1126
- expectedUpdatedAt
1127
- }
1128
- origin {
1129
- status
1130
- value {
1131
- kind
1132
- label
1133
- jurisdictionLabel
1134
- }
1135
- reason
1136
- provenance {
1137
- ...CommercialProvenance
1138
- }
1139
- }
1140
- destination {
1141
- status
1142
- value {
1143
- kind
1144
- label
1145
- jurisdictionLabel
1146
- }
1147
- reason
1148
- provenance {
1149
- ...CommercialProvenance
1150
- }
1151
- }
1152
- carrier {
1153
- status
1154
- value {
1155
- reference
1156
- label
1157
- }
1158
- reason
1159
- provenance {
1160
- ...CommercialProvenance
1161
- }
1162
- }
1163
- service {
1164
- status
1165
- value
1166
- reason
1167
- provenance {
1168
- ...CommercialProvenance
1169
- }
1170
- }
1171
- cargo {
1172
- status
1173
- value {
1174
- classificationLabel
1175
- description
1176
- }
1177
- reason
1178
- provenance {
1179
- ...CommercialProvenance
1180
- }
1181
- }
1182
- weight {
1183
- status
1184
- value {
1185
- amount
1186
- unit
1187
- zeroReason
1188
- }
1189
- reason
1190
- provenance {
1191
- ...CommercialProvenance
1192
- }
1193
- }
1194
- volume {
1195
- status
1196
- value {
1197
- amount
1198
- unit
1199
- zeroReason
1200
- }
1201
- reason
1202
- provenance {
1203
- ...CommercialProvenance
1204
- }
1205
- }
1206
- equipment {
1207
- status
1208
- value {
1209
- typeLabel
1210
- count
1211
- }
1212
- reason
1213
- provenance {
1214
- ...CommercialProvenance
1215
- }
1216
- }
1217
- ownerShipment {
1218
- shipmentId
1219
- updatedAt
1220
- primaryMode
1221
- }
1222
- ownerLegs {
1223
- id
1224
- updatedAt
1225
- legNumber
1226
- mode
1227
- carrierId
1228
- carrierName
1229
- weightKg
1230
- volumeCbm
1231
- containerType
1232
- containerCount
1233
- }
1234
- }
1235
- }
1236
- }
1237
- ${CommercialProvenanceFragmentDoc}`;
1238
- export const FreightCommercialLegsDocument = gql`
1239
- query FreightCommercialLegs($shipmentId: ID!, $pagination: PaginationInput!) {
1240
- shipment(id: $shipmentId) {
1241
- id
1242
- legs(pagination: $pagination) {
1243
- id
1244
- shipmentId
1245
- updatedAt
1246
- legNumber
1247
- mode
1248
- carrierId
1249
- carrierName
1250
- weightKg
1251
- volumeCbm
1252
- containerType
1253
- containerCount
1254
- }
1255
- }
1256
- }
1257
- `;
1258
- export const FreightShipmentsDocument = gql`
1259
- query FreightShipments($pagination: PaginationInput) {
1260
- shipments(pagination: $pagination) {
1261
- id
1262
- shipmentNumber
1263
- primaryMode
1264
- updatedAt
1265
- status
1266
- }
1267
- shipmentsCount
1268
- }
1269
- `;
1270
- export const FreightShipmentDocument = gql`
1271
- query FreightShipment($id: ID!) {
1272
- shipment(id: $id) {
1273
- id
1274
- shipmentNumber
1275
- primaryMode
1276
- updatedAt
1277
- status
1278
- }
1279
- }
1280
- `;
1281
- export const FreightHistoryDocument = gql`
1282
- query FreightHistory($shipmentId: ID!, $estimateReference: String, $pagination: MtwContainerPagination) {
1283
- mtwFreightEstimatePage(
1284
- shipmentId: $shipmentId
1285
- estimateReference: $estimateReference
1286
- pagination: $pagination
1287
- ) {
1288
- items {
1289
- id
1290
- shipmentId
1291
- estimateReference
1292
- version
1293
- previousVersionId
1294
- recordedAt
1295
- createdBy
1296
- actorProvenance
1297
- validityAtRead
1298
- shipmentCapture {
1299
- shipmentNumber
1300
- primaryMode
1301
- capturedUpdatedAt
1302
- }
1303
- facts {
1304
- title
1305
- kind
1306
- }
1307
- }
1308
- total
1309
- limit
1310
- offset
1311
- hasMore
1312
- nextOffset
1313
- }
1314
- }
1315
- `;
1316
- export const FreightVersionDocument = gql`
1317
- query FreightVersion($shipmentId: ID!, $id: ID!) {
1318
- mtwFreightEstimateVersion(shipmentId: $shipmentId, id: $id) {
1319
- id
1320
- shipmentId
1321
- estimateReference
1322
- version
1323
- previousVersionId
1324
- shipmentCapture {
1325
- shipmentNumber
1326
- primaryMode
1327
- capturedUpdatedAt
1328
- }
1329
- facts {
1330
- kind
1331
- title
1332
- commercialScope
1333
- sourceReference
1334
- sourceRevision
1335
- pricingAt
1336
- quotedAt
1337
- validFrom
1338
- validUntil
1339
- reportingCurrency {
1340
- code
1341
- minorUnitDigits
1342
- }
1343
- rounding
1344
- lines {
1345
- id
1346
- category
1347
- description
1348
- payerReference
1349
- payerLabel
1350
- disposition
1351
- inclusionParentLineId
1352
- currency {
1353
- code
1354
- minorUnitDigits
1355
- }
1356
- amountBasis
1357
- quantity
1358
- unit
1359
- unitRateMajor
1360
- amountMinor
1361
- zeroReason
1362
- sourceReference
1363
- sourceRevision
1364
- }
1365
- requirements {
1366
- category
1367
- status
1368
- reason
1369
- sourceReference
1370
- sourceRevision
1371
- }
1372
- fx {
1373
- fromCurrency {
1374
- code
1375
- minorUnitDigits
1376
- }
1377
- toCurrency {
1378
- code
1379
- minorUnitDigits
1380
- }
1381
- rate
1382
- observedAt
1383
- effectiveFrom
1384
- effectiveUntil
1385
- sourceReference
1386
- sourceRevision
1387
- }
1388
- }
1389
- totals {
1390
- completeRelativeToDeclarations
1391
- reportingTotalMinor
1392
- subtotals {
1393
- currency {
1394
- code
1395
- minorUnitDigits
1396
- }
1397
- payerReference
1398
- payerLabel
1399
- knownAmountMinor
1400
- totalAmountMinor
1401
- }
1402
- lines {
1403
- id
1404
- nativeAmountMinor
1405
- reportingAmountMinor
1406
- roundedToZero
1407
- }
1408
- reasons {
1409
- code
1410
- lineId
1411
- detail
1412
- }
1413
- warnings {
1414
- code
1415
- lineId
1416
- detail
1417
- }
1418
- }
1419
- evidence {
1420
- fileId
1421
- versionId
1422
- sha256Hash
1423
- checkedAt
1424
- }
1425
- recordedAt
1426
- createdBy
1427
- actorProvenance
1428
- onBehalfOf
1429
- validityAtRead
1430
- }
1431
- }
1432
- `;
1433
- export const PreviewFreightCostsDocument = gql`
1434
- query PreviewFreightCosts($input: MtwFreightFactsInput!) {
1435
- previewMtwFreightTotal(input: $input) {
1436
- completeRelativeToDeclarations
1437
- reportingTotalMinor
1438
- subtotals {
1439
- currency {
1440
- code
1441
- minorUnitDigits
1442
- }
1443
- payerReference
1444
- payerLabel
1445
- knownAmountMinor
1446
- totalAmountMinor
1447
- }
1448
- lines {
1449
- id
1450
- nativeAmountMinor
1451
- reportingAmountMinor
1452
- roundedToZero
1453
- }
1454
- reasons {
1455
- code
1456
- lineId
1457
- detail
1458
- }
1459
- warnings {
1460
- code
1461
- lineId
1462
- detail
1463
- }
1464
- }
1465
- }
1466
- `;
1467
- export const SaveFreightCostsDocument = gql`
1468
- mutation SaveFreightCosts($input: SaveMtwFreightEstimateInput!) {
1469
- saveMtwFreightEstimate(input: $input) {
1470
- id
1471
- shipmentId
1472
- estimateReference
1473
- version
1474
- previousVersionId
1475
- shipmentCapture {
1476
- shipmentNumber
1477
- primaryMode
1478
- capturedUpdatedAt
1479
- }
1480
- facts {
1481
- kind
1482
- title
1483
- commercialScope
1484
- sourceReference
1485
- sourceRevision
1486
- pricingAt
1487
- quotedAt
1488
- validFrom
1489
- validUntil
1490
- reportingCurrency {
1491
- code
1492
- minorUnitDigits
1493
- }
1494
- rounding
1495
- lines {
1496
- id
1497
- category
1498
- description
1499
- payerReference
1500
- payerLabel
1501
- disposition
1502
- inclusionParentLineId
1503
- currency {
1504
- code
1505
- minorUnitDigits
1506
- }
1507
- amountBasis
1508
- quantity
1509
- unit
1510
- unitRateMajor
1511
- amountMinor
1512
- zeroReason
1513
- sourceReference
1514
- sourceRevision
1515
- }
1516
- requirements {
1517
- category
1518
- status
1519
- reason
1520
- sourceReference
1521
- sourceRevision
1522
- }
1523
- fx {
1524
- fromCurrency {
1525
- code
1526
- minorUnitDigits
1527
- }
1528
- toCurrency {
1529
- code
1530
- minorUnitDigits
1531
- }
1532
- rate
1533
- observedAt
1534
- effectiveFrom
1535
- effectiveUntil
1536
- sourceReference
1537
- sourceRevision
1538
- }
1539
- }
1540
- totals {
1541
- completeRelativeToDeclarations
1542
- reportingTotalMinor
1543
- subtotals {
1544
- currency {
1545
- code
1546
- minorUnitDigits
1547
- }
1548
- payerReference
1549
- payerLabel
1550
- knownAmountMinor
1551
- totalAmountMinor
1552
- }
1553
- lines {
1554
- id
1555
- nativeAmountMinor
1556
- reportingAmountMinor
1557
- roundedToZero
1558
- }
1559
- reasons {
1560
- code
1561
- lineId
1562
- detail
1563
- }
1564
- warnings {
1565
- code
1566
- lineId
1567
- detail
1568
- }
1569
- }
1570
- evidence {
1571
- fileId
1572
- versionId
1573
- sha256Hash
1574
- checkedAt
1575
- }
1576
- recordedAt
1577
- createdBy
1578
- actorProvenance
1579
- onBehalfOf
1580
- validityAtRead
1581
- }
1582
- }
1583
- `;
766
+ export type SaveFreightCostsMutation = { saveMtwFreightEstimate: { id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, validityAtRead: string, shipmentCapture: { shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { kind: Types.MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, rounding: Types.MtwFreightRounding, reportingCurrency: { code: string, minorUnitDigits: number } | null, lines: Array<{ id: string, category: Types.MtwFreightCategory, description: string, payerReference: string | null, payerLabel: string | null, disposition: Types.MtwFreightDisposition, inclusionParentLineId: string | null, amountBasis: Types.MtwFreightAmountBasis, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, sourceReference: string | null, sourceRevision: string | null, currency: { code: string, minorUnitDigits: number } }>, requirements: Array<{ category: Types.MtwFreightCategory, status: Types.MtwFreightRequirementStatus, reason: string | null, sourceReference: string | null, sourceRevision: string | null }>, fx: Array<{ rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { code: string, minorUnitDigits: number }, toCurrency: { code: string, minorUnitDigits: number } }> }, totals: { completeRelativeToDeclarations: boolean, reportingTotalMinor: string | null, subtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, lines: Array<{ id: string, nativeAmountMinor: string | null, reportingAmountMinor: string | null, roundedToZero: boolean }>, reasons: Array<{ code: string, lineId: string | null, detail: string }>, warnings: Array<{ code: string, lineId: string | null, detail: string }> }, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
767
+
768
+ export const CommercialProvenanceFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommercialProvenance"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightCommercialProvenance"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"evidenceLinks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}}]}}]}}]} as unknown as DocumentNode<CommercialProvenanceFragment, unknown>;
769
+ export const SaveFreightCommercialCostsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SaveFreightCommercialCosts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SaveMtwFreightEstimateInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"saveMtwFreightEstimate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"previousVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"capturedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"commercialScope"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"pricingAt"}},{"kind":"Field","name":{"kind":"Name","value":"quotedAt"}},{"kind":"Field","name":{"kind":"Name","value":"validFrom"}},{"kind":"Field","name":{"kind":"Name","value":"validUntil"}},{"kind":"Field","name":{"kind":"Name","value":"reportingCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"disposition"}},{"kind":"Field","name":{"kind":"Name","value":"inclusionParentLineId"}},{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amountBasis"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"unitRateMajor"}},{"kind":"Field","name":{"kind":"Name","value":"amountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"requirements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fx"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rate"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveFrom"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUntil"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeRelativeToDeclarations"}},{"kind":"Field","name":{"kind":"Name","value":"reportingTotalMinor"}},{"kind":"Field","name":{"kind":"Name","value":"subtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"knownAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmountMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nativeAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"reportingAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"roundedToZero"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reasons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"warnings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"evidence"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}},{"kind":"Field","name":{"kind":"Name","value":"sha256Hash"}},{"kind":"Field","name":{"kind":"Name","value":"checkedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recordedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"actorProvenance"}},{"kind":"Field","name":{"kind":"Name","value":"onBehalfOf"}},{"kind":"Field","name":{"kind":"Name","value":"validityAtRead"}},{"kind":"Field","name":{"kind":"Name","value":"commercialCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"selectedLegs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"expectedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"origin"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"jurisdictionLabel"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"jurisdictionLabel"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"carrier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reference"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"service"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"cargo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"classificationLabel"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"weight"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"volume"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"equipment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"typeLabel"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"ownerShipment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ownerLegs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"legNumber"}},{"kind":"Field","name":{"kind":"Name","value":"mode"}},{"kind":"Field","name":{"kind":"Name","value":"carrierId"}},{"kind":"Field","name":{"kind":"Name","value":"carrierName"}},{"kind":"Field","name":{"kind":"Name","value":"weightKg"}},{"kind":"Field","name":{"kind":"Name","value":"volumeCbm"}},{"kind":"Field","name":{"kind":"Name","value":"containerType"}},{"kind":"Field","name":{"kind":"Name","value":"containerCount"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommercialProvenance"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightCommercialProvenance"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"evidenceLinks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}}]}}]}}]} as unknown as DocumentNode<SaveFreightCommercialCostsMutation, SaveFreightCommercialCostsMutationVariables>;
770
+ export const FreightCommercialVersionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FreightCommercialVersion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtwFreightEstimateVersion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"shipmentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"previousVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"capturedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"commercialScope"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"pricingAt"}},{"kind":"Field","name":{"kind":"Name","value":"quotedAt"}},{"kind":"Field","name":{"kind":"Name","value":"validFrom"}},{"kind":"Field","name":{"kind":"Name","value":"validUntil"}},{"kind":"Field","name":{"kind":"Name","value":"reportingCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"disposition"}},{"kind":"Field","name":{"kind":"Name","value":"inclusionParentLineId"}},{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amountBasis"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"unitRateMajor"}},{"kind":"Field","name":{"kind":"Name","value":"amountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"requirements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fx"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rate"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveFrom"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUntil"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeRelativeToDeclarations"}},{"kind":"Field","name":{"kind":"Name","value":"reportingTotalMinor"}},{"kind":"Field","name":{"kind":"Name","value":"subtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"knownAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmountMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nativeAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"reportingAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"roundedToZero"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reasons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"warnings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"evidence"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}},{"kind":"Field","name":{"kind":"Name","value":"sha256Hash"}},{"kind":"Field","name":{"kind":"Name","value":"checkedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recordedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"actorProvenance"}},{"kind":"Field","name":{"kind":"Name","value":"onBehalfOf"}},{"kind":"Field","name":{"kind":"Name","value":"validityAtRead"}},{"kind":"Field","name":{"kind":"Name","value":"commercialCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"selectedLegs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"expectedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"origin"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"jurisdictionLabel"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"jurisdictionLabel"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"carrier"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reference"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"service"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"cargo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"classificationLabel"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"weight"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"volume"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"equipment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"typeLabel"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"provenance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommercialProvenance"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"ownerShipment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}}]}},{"kind":"Field","name":{"kind":"Name","value":"ownerLegs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"legNumber"}},{"kind":"Field","name":{"kind":"Name","value":"mode"}},{"kind":"Field","name":{"kind":"Name","value":"carrierId"}},{"kind":"Field","name":{"kind":"Name","value":"carrierName"}},{"kind":"Field","name":{"kind":"Name","value":"weightKg"}},{"kind":"Field","name":{"kind":"Name","value":"volumeCbm"}},{"kind":"Field","name":{"kind":"Name","value":"containerType"}},{"kind":"Field","name":{"kind":"Name","value":"containerCount"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommercialProvenance"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightCommercialProvenance"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"evidenceLinks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}}]}}]}}]} as unknown as DocumentNode<FreightCommercialVersionQuery, FreightCommercialVersionQueryVariables>;
771
+ export const FreightCommercialLegsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FreightCommercialLegs"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PaginationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipment"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"legs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"legNumber"}},{"kind":"Field","name":{"kind":"Name","value":"mode"}},{"kind":"Field","name":{"kind":"Name","value":"carrierId"}},{"kind":"Field","name":{"kind":"Name","value":"carrierName"}},{"kind":"Field","name":{"kind":"Name","value":"weightKg"}},{"kind":"Field","name":{"kind":"Name","value":"volumeCbm"}},{"kind":"Field","name":{"kind":"Name","value":"containerType"}},{"kind":"Field","name":{"kind":"Name","value":"containerCount"}}]}}]}}]}}]} as unknown as DocumentNode<FreightCommercialLegsQuery, FreightCommercialLegsQueryVariables>;
772
+ export const FreightShipmentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FreightShipments"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"PaginationInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipments"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipmentsCount"}}]}}]} as unknown as DocumentNode<FreightShipmentsQuery, FreightShipmentsQueryVariables>;
773
+ export const FreightShipmentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FreightShipment"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipment"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]} as unknown as DocumentNode<FreightShipmentQuery, FreightShipmentQueryVariables>;
774
+ export const FreightHistoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FreightHistory"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"estimateReference"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"MtwContainerPagination"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtwFreightEstimatePage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"shipmentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"estimateReference"},"value":{"kind":"Variable","name":{"kind":"Name","value":"estimateReference"}}},{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"previousVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"recordedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"actorProvenance"}},{"kind":"Field","name":{"kind":"Name","value":"validityAtRead"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"capturedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"limit"}},{"kind":"Field","name":{"kind":"Name","value":"offset"}},{"kind":"Field","name":{"kind":"Name","value":"hasMore"}},{"kind":"Field","name":{"kind":"Name","value":"nextOffset"}}]}}]}}]} as unknown as DocumentNode<FreightHistoryQuery, FreightHistoryQueryVariables>;
775
+ export const FreightVersionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FreightVersion"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtwFreightEstimateVersion"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"shipmentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"previousVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"capturedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"commercialScope"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"pricingAt"}},{"kind":"Field","name":{"kind":"Name","value":"quotedAt"}},{"kind":"Field","name":{"kind":"Name","value":"validFrom"}},{"kind":"Field","name":{"kind":"Name","value":"validUntil"}},{"kind":"Field","name":{"kind":"Name","value":"reportingCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"disposition"}},{"kind":"Field","name":{"kind":"Name","value":"inclusionParentLineId"}},{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amountBasis"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"unitRateMajor"}},{"kind":"Field","name":{"kind":"Name","value":"amountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"requirements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fx"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rate"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveFrom"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUntil"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeRelativeToDeclarations"}},{"kind":"Field","name":{"kind":"Name","value":"reportingTotalMinor"}},{"kind":"Field","name":{"kind":"Name","value":"subtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"knownAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmountMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nativeAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"reportingAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"roundedToZero"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reasons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"warnings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"evidence"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}},{"kind":"Field","name":{"kind":"Name","value":"sha256Hash"}},{"kind":"Field","name":{"kind":"Name","value":"checkedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recordedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"actorProvenance"}},{"kind":"Field","name":{"kind":"Name","value":"onBehalfOf"}},{"kind":"Field","name":{"kind":"Name","value":"validityAtRead"}}]}}]}}]} as unknown as DocumentNode<FreightVersionQuery, FreightVersionQueryVariables>;
776
+ export const PreviewFreightCostsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PreviewFreightCosts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightFactsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"previewMtwFreightTotal"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeRelativeToDeclarations"}},{"kind":"Field","name":{"kind":"Name","value":"reportingTotalMinor"}},{"kind":"Field","name":{"kind":"Name","value":"subtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"knownAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmountMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nativeAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"reportingAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"roundedToZero"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reasons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"warnings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}}]}}]}}]} as unknown as DocumentNode<PreviewFreightCostsQuery, PreviewFreightCostsQueryVariables>;
777
+ export const SaveFreightCostsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SaveFreightCosts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SaveMtwFreightEstimateInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"saveMtwFreightEstimate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"previousVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentCapture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipmentNumber"}},{"kind":"Field","name":{"kind":"Name","value":"primaryMode"}},{"kind":"Field","name":{"kind":"Name","value":"capturedUpdatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"commercialScope"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"pricingAt"}},{"kind":"Field","name":{"kind":"Name","value":"quotedAt"}},{"kind":"Field","name":{"kind":"Name","value":"validFrom"}},{"kind":"Field","name":{"kind":"Name","value":"validUntil"}},{"kind":"Field","name":{"kind":"Name","value":"reportingCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"disposition"}},{"kind":"Field","name":{"kind":"Name","value":"inclusionParentLineId"}},{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amountBasis"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"unit"}},{"kind":"Field","name":{"kind":"Name","value":"unitRateMajor"}},{"kind":"Field","name":{"kind":"Name","value":"amountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"zeroReason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"requirements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fx"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rate"}},{"kind":"Field","name":{"kind":"Name","value":"observedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveFrom"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUntil"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeRelativeToDeclarations"}},{"kind":"Field","name":{"kind":"Name","value":"reportingTotalMinor"}},{"kind":"Field","name":{"kind":"Name","value":"subtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"minorUnitDigits"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payerReference"}},{"kind":"Field","name":{"kind":"Name","value":"payerLabel"}},{"kind":"Field","name":{"kind":"Name","value":"knownAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmountMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nativeAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"reportingAmountMinor"}},{"kind":"Field","name":{"kind":"Name","value":"roundedToZero"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reasons"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"warnings"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"lineId"}},{"kind":"Field","name":{"kind":"Name","value":"detail"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"evidence"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileId"}},{"kind":"Field","name":{"kind":"Name","value":"versionId"}},{"kind":"Field","name":{"kind":"Name","value":"sha256Hash"}},{"kind":"Field","name":{"kind":"Name","value":"checkedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recordedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"actorProvenance"}},{"kind":"Field","name":{"kind":"Name","value":"onBehalfOf"}},{"kind":"Field","name":{"kind":"Name","value":"validityAtRead"}}]}}]}}]} as unknown as DocumentNode<SaveFreightCostsMutation, SaveFreightCostsMutationVariables>;