@burdenoff/microfe-movethewheels 2026.1016.2 → 2026.1016.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/README.md +10 -0
  2. package/dist/MoveTheWheelsRoot.js +5 -0
  3. package/dist/MoveTheWheelsRoutes.js +25 -21
  4. package/dist/components/ContainerEvidencePicker.js +55 -55
  5. package/dist/components/FleetAlertsPanel.js +2 -2
  6. package/dist/components/freight-cost/FreightCommercialEditor.js +217 -0
  7. package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
  8. package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
  9. package/dist/components/freight-cost/FreightDraftForm.js +106 -91
  10. package/dist/components/freight-cost/FreightHistory.js +42 -40
  11. package/dist/components/freight-invoice/InvoiceForm.js +366 -0
  12. package/dist/components/freight-invoice/InvoiceResults.js +240 -0
  13. package/dist/generated/consolidation-operations.d.ts +195 -265
  14. package/dist/generated/container-condition-operations.d.ts +124 -187
  15. package/dist/generated/container-operations.d.ts +59 -85
  16. package/dist/generated/empty-reuse-operations.d.ts +165 -271
  17. package/dist/generated/free-time-operations.d.ts +120 -184
  18. package/dist/generated/freight-cost-operations.d.ts +955 -165
  19. package/dist/generated/freight-invoice-operations.d.ts +1447 -0
  20. package/dist/generated/logistics-procedure-operations.d.ts +100 -156
  21. package/dist/generated/pending-pick-operations.d.ts +769 -1025
  22. package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
  23. package/dist/generated/stock-binding-operations.d.ts +188 -260
  24. package/dist/generated/stock-observation-operations.d.ts +103 -138
  25. package/dist/generated/tracking-quality-operations.d.ts +27 -41
  26. package/dist/generated/trip-utilization-operations.d.ts +137 -185
  27. package/dist/generated/wspace-operations.d.ts +628 -2272
  28. package/dist/generated/wspace-types.d.ts +4 -23
  29. package/dist/hooks/useFreightRecoveryAction.js +20 -20
  30. package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
  31. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
  32. package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
  33. package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
  34. package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
  35. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
  36. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
  37. package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
  38. package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
  39. package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
  40. package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
  41. package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
  42. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
  43. package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
  44. package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
  45. package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
  46. package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
  47. package/dist/pages/DriverDetailsPage.js +306 -282
  48. package/dist/pages/FreightEstimatePage.js +97 -92
  49. package/dist/pages/FreightInvoicePage.js +346 -0
  50. package/dist/src/generated/consolidation-operations.js +3961 -503
  51. package/dist/src/generated/container-condition-operations.js +2968 -206
  52. package/dist/src/generated/container-operations.js +997 -99
  53. package/dist/src/generated/empty-reuse-operations.js +4811 -747
  54. package/dist/src/generated/free-time-operations.js +2824 -233
  55. package/dist/src/generated/freight-cost-operations.js +4852 -323
  56. package/dist/src/generated/freight-invoice-operations.js +4894 -0
  57. package/dist/src/generated/logistics-procedure-operations.js +2707 -360
  58. package/dist/src/generated/pending-pick-operations.js +8244 -1196
  59. package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
  60. package/dist/src/generated/stock-binding-operations.js +2779 -173
  61. package/dist/src/generated/stock-observation-operations.js +1274 -91
  62. package/dist/src/generated/tracking-quality-operations.js +407 -42
  63. package/dist/src/generated/trip-utilization-operations.js +1765 -138
  64. package/dist/src/generated/wspace-operations.js +428 -706
  65. package/dist/utils/driverLicenseExpiry.js +14 -0
  66. package/dist/utils/freightAcknowledgement.js +6 -5
  67. package/dist/utils/freightCommercial.js +194 -0
  68. package/dist/utils/freightRecovery.js +22 -22
  69. package/dist/utils/invoiceComparison.js +272 -0
  70. package/package.json +30 -29
  71. package/src/generated/consolidation-operations.ts +60 -559
  72. package/src/generated/container-condition-operations.ts +63 -265
  73. package/src/generated/container-operations.ts +37 -132
  74. package/src/generated/empty-reuse-operations.ts +83 -824
  75. package/src/generated/free-time-operations.ts +55 -284
  76. package/src/generated/freight-cost-operations.ts +373 -349
  77. package/src/generated/freight-invoice-operations.ts +830 -0
  78. package/src/generated/logistics-procedure-operations.ts +60 -414
  79. package/src/generated/pending-pick-operations.ts +48 -1239
  80. package/src/generated/shipment-status-authority-operations.ts +33 -113
  81. package/src/generated/stock-binding-operations.ts +29 -198
  82. package/src/generated/stock-observation-operations.ts +24 -111
  83. package/src/generated/tracking-quality-operations.ts +19 -57
  84. package/src/generated/trip-utilization-operations.ts +32 -166
  85. package/src/generated/wspace-operations.ts +284 -2906
  86. package/src/generated/wspace-types.ts +2 -8
  87. package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
  88. package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
  89. package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
  90. package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
  91. package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
  92. package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
  93. package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
  94. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
  95. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
  96. package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
  97. package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
  98. package/src/movethewheels/hooks/useFleet.ts +1 -1
  99. package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
  100. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
  101. package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
  102. package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
  103. package/src/movethewheels/pages/FreightEstimatePage.tsx +15 -7
  104. package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
  105. package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
  106. package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
  107. package/src/movethewheels/utils/freightCommercial.ts +388 -0
  108. package/src/movethewheels/utils/freightRecovery.ts +6 -2
  109. package/src/movethewheels/utils/invoiceComparison.ts +520 -0
  110. package/src/operations/freight-cost/commercial.graphql +483 -0
  111. package/src/operations/freight-invoice/comparison.graphql +40 -0
  112. package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
  113. package/patches/braces@3.0.3.patch +0 -87
@@ -1,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; }
@@ -56,6 +57,276 @@ export type MtwFreightCategory =
56
57
  | 'PRE_CARRIAGE'
57
58
  | 'TAX_ESTIMATE';
58
59
 
60
+ export type MtwFreightCommercialCapture = {
61
+ __typename?: 'MtwFreightCommercialCapture';
62
+ cargo: MtwFreightCommercialCargoFact;
63
+ carrier: MtwFreightCommercialCarrierFact;
64
+ destination: MtwFreightCommercialLocationFact;
65
+ equipment: MtwFreightCommercialEquipmentFact;
66
+ origin: MtwFreightCommercialLocationFact;
67
+ ownerLegs: Array<MtwFreightCommercialOwnerLeg>;
68
+ ownerShipment: MtwFreightCommercialShipment;
69
+ schemaVersion: Scalars['Int']['output'];
70
+ selectedLegs: Array<MtwFreightCommercialLegPin>;
71
+ service: MtwFreightCommercialServiceFact;
72
+ volume: MtwFreightCommercialVolumeFact;
73
+ weight: MtwFreightCommercialWeightFact;
74
+ };
75
+
76
+ export type MtwFreightCommercialCaptureInput = {
77
+ cargo: MtwFreightCommercialCargoFactInput;
78
+ carrier: MtwFreightCommercialCarrierFactInput;
79
+ destination: MtwFreightCommercialLocationFactInput;
80
+ equipment: MtwFreightCommercialEquipmentFactInput;
81
+ origin: MtwFreightCommercialLocationFactInput;
82
+ schemaVersion: Scalars['Int']['input'];
83
+ selectedLegs: Array<MtwFreightCommercialLegPinInput>;
84
+ service: MtwFreightCommercialServiceFactInput;
85
+ volume: MtwFreightCommercialVolumeFactInput;
86
+ weight: MtwFreightCommercialWeightFactInput;
87
+ };
88
+
89
+ export type MtwFreightCommercialCargo = {
90
+ __typename?: 'MtwFreightCommercialCargo';
91
+ classificationLabel: Scalars['String']['output'];
92
+ description: Scalars['String']['output'];
93
+ };
94
+
95
+ export type MtwFreightCommercialCargoFact = {
96
+ __typename?: 'MtwFreightCommercialCargoFact';
97
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
98
+ reason?: Maybe<Scalars['String']['output']>;
99
+ status: MtwFreightCommercialStatus;
100
+ value?: Maybe<MtwFreightCommercialCargo>;
101
+ };
102
+
103
+ export type MtwFreightCommercialCargoFactInput = {
104
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
105
+ reason?: InputMaybe<Scalars['String']['input']>;
106
+ status: MtwFreightCommercialStatus;
107
+ value?: InputMaybe<MtwFreightCommercialCargoInput>;
108
+ };
109
+
110
+ export type MtwFreightCommercialCargoInput = {
111
+ classificationLabel: Scalars['String']['input'];
112
+ description: Scalars['String']['input'];
113
+ };
114
+
115
+ export type MtwFreightCommercialCarrier = {
116
+ __typename?: 'MtwFreightCommercialCarrier';
117
+ label: Scalars['String']['output'];
118
+ reference: Scalars['String']['output'];
119
+ };
120
+
121
+ export type MtwFreightCommercialCarrierFact = {
122
+ __typename?: 'MtwFreightCommercialCarrierFact';
123
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
124
+ reason?: Maybe<Scalars['String']['output']>;
125
+ status: MtwFreightCommercialStatus;
126
+ value?: Maybe<MtwFreightCommercialCarrier>;
127
+ };
128
+
129
+ export type MtwFreightCommercialCarrierFactInput = {
130
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
131
+ reason?: InputMaybe<Scalars['String']['input']>;
132
+ status: MtwFreightCommercialStatus;
133
+ value?: InputMaybe<MtwFreightCommercialCarrierInput>;
134
+ };
135
+
136
+ export type MtwFreightCommercialCarrierInput = {
137
+ label: Scalars['String']['input'];
138
+ reference: Scalars['String']['input'];
139
+ };
140
+
141
+ export type MtwFreightCommercialEquipment = {
142
+ __typename?: 'MtwFreightCommercialEquipment';
143
+ count: Scalars['Int']['output'];
144
+ typeLabel: Scalars['String']['output'];
145
+ };
146
+
147
+ export type MtwFreightCommercialEquipmentFact = {
148
+ __typename?: 'MtwFreightCommercialEquipmentFact';
149
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
150
+ reason?: Maybe<Scalars['String']['output']>;
151
+ status: MtwFreightCommercialStatus;
152
+ value?: Maybe<MtwFreightCommercialEquipment>;
153
+ };
154
+
155
+ export type MtwFreightCommercialEquipmentFactInput = {
156
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
157
+ reason?: InputMaybe<Scalars['String']['input']>;
158
+ status: MtwFreightCommercialStatus;
159
+ value?: InputMaybe<MtwFreightCommercialEquipmentInput>;
160
+ };
161
+
162
+ export type MtwFreightCommercialEquipmentInput = {
163
+ count: Scalars['Int']['input'];
164
+ typeLabel: Scalars['String']['input'];
165
+ };
166
+
167
+ export type MtwFreightCommercialLegPin = {
168
+ __typename?: 'MtwFreightCommercialLegPin';
169
+ expectedUpdatedAt: Scalars['DateTime']['output'];
170
+ id: Scalars['ID']['output'];
171
+ };
172
+
173
+ export type MtwFreightCommercialLegPinInput = {
174
+ expectedUpdatedAt: Scalars['DateTime']['input'];
175
+ id: Scalars['ID']['input'];
176
+ };
177
+
178
+ export type MtwFreightCommercialLink = {
179
+ __typename?: 'MtwFreightCommercialLink';
180
+ fileId: Scalars['ID']['output'];
181
+ versionId: Scalars['ID']['output'];
182
+ };
183
+
184
+ export type MtwFreightCommercialLinkInput = {
185
+ fileId: Scalars['ID']['input'];
186
+ versionId: Scalars['ID']['input'];
187
+ };
188
+
189
+ export type MtwFreightCommercialLocation = {
190
+ __typename?: 'MtwFreightCommercialLocation';
191
+ jurisdictionLabel?: Maybe<Scalars['String']['output']>;
192
+ kind: MtwFreightLocationKind;
193
+ label: Scalars['String']['output'];
194
+ };
195
+
196
+ export type MtwFreightCommercialLocationFact = {
197
+ __typename?: 'MtwFreightCommercialLocationFact';
198
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
199
+ reason?: Maybe<Scalars['String']['output']>;
200
+ status: MtwFreightCommercialStatus;
201
+ value?: Maybe<MtwFreightCommercialLocation>;
202
+ };
203
+
204
+ export type MtwFreightCommercialLocationFactInput = {
205
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
206
+ reason?: InputMaybe<Scalars['String']['input']>;
207
+ status: MtwFreightCommercialStatus;
208
+ value?: InputMaybe<MtwFreightCommercialLocationInput>;
209
+ };
210
+
211
+ export type MtwFreightCommercialLocationInput = {
212
+ jurisdictionLabel?: InputMaybe<Scalars['String']['input']>;
213
+ kind: MtwFreightLocationKind;
214
+ label: Scalars['String']['input'];
215
+ };
216
+
217
+ export type MtwFreightCommercialOwnerLeg = {
218
+ __typename?: 'MtwFreightCommercialOwnerLeg';
219
+ carrierId?: Maybe<Scalars['ID']['output']>;
220
+ carrierName?: Maybe<Scalars['String']['output']>;
221
+ containerCount?: Maybe<Scalars['Int']['output']>;
222
+ containerType?: Maybe<OceanContainerType>;
223
+ id: Scalars['ID']['output'];
224
+ legNumber: Scalars['Int']['output'];
225
+ mode: TransportMode;
226
+ updatedAt: Scalars['DateTime']['output'];
227
+ volumeCbm?: Maybe<Scalars['Float']['output']>;
228
+ weightKg?: Maybe<Scalars['Float']['output']>;
229
+ };
230
+
231
+ export type MtwFreightCommercialProvenance = {
232
+ __typename?: 'MtwFreightCommercialProvenance';
233
+ evidenceLinks: Array<MtwFreightCommercialLink>;
234
+ observedAt?: Maybe<Scalars['DateTime']['output']>;
235
+ sourceReference: Scalars['String']['output'];
236
+ sourceRevision: Scalars['String']['output'];
237
+ };
238
+
239
+ export type MtwFreightCommercialProvenanceInput = {
240
+ evidenceLinks: Array<MtwFreightCommercialLinkInput>;
241
+ observedAt?: InputMaybe<Scalars['DateTime']['input']>;
242
+ sourceReference: Scalars['String']['input'];
243
+ sourceRevision: Scalars['String']['input'];
244
+ };
245
+
246
+ export type MtwFreightCommercialServiceFact = {
247
+ __typename?: 'MtwFreightCommercialServiceFact';
248
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
249
+ reason?: Maybe<Scalars['String']['output']>;
250
+ status: MtwFreightCommercialStatus;
251
+ value?: Maybe<Scalars['String']['output']>;
252
+ };
253
+
254
+ export type MtwFreightCommercialServiceFactInput = {
255
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
256
+ reason?: InputMaybe<Scalars['String']['input']>;
257
+ status: MtwFreightCommercialStatus;
258
+ value?: InputMaybe<Scalars['String']['input']>;
259
+ };
260
+
261
+ export type MtwFreightCommercialShipment = {
262
+ __typename?: 'MtwFreightCommercialShipment';
263
+ primaryMode: TransportMode;
264
+ shipmentId: Scalars['ID']['output'];
265
+ updatedAt: Scalars['DateTime']['output'];
266
+ };
267
+
268
+ /** Reported commercial context only; no quote acceptance or completeness authority. */
269
+ export type MtwFreightCommercialStatus =
270
+ | 'NOT_APPLICABLE'
271
+ | 'SOURCED'
272
+ | 'UNKNOWN';
273
+
274
+ export type MtwFreightCommercialVolume = {
275
+ __typename?: 'MtwFreightCommercialVolume';
276
+ amount: Scalars['String']['output'];
277
+ unit: MtwFreightVolumeUnit;
278
+ zeroReason?: Maybe<Scalars['String']['output']>;
279
+ };
280
+
281
+ export type MtwFreightCommercialVolumeFact = {
282
+ __typename?: 'MtwFreightCommercialVolumeFact';
283
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
284
+ reason?: Maybe<Scalars['String']['output']>;
285
+ status: MtwFreightCommercialStatus;
286
+ value?: Maybe<MtwFreightCommercialVolume>;
287
+ };
288
+
289
+ export type MtwFreightCommercialVolumeFactInput = {
290
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
291
+ reason?: InputMaybe<Scalars['String']['input']>;
292
+ status: MtwFreightCommercialStatus;
293
+ value?: InputMaybe<MtwFreightCommercialVolumeInput>;
294
+ };
295
+
296
+ export type MtwFreightCommercialVolumeInput = {
297
+ amount: Scalars['String']['input'];
298
+ unit: MtwFreightVolumeUnit;
299
+ zeroReason?: InputMaybe<Scalars['String']['input']>;
300
+ };
301
+
302
+ export type MtwFreightCommercialWeight = {
303
+ __typename?: 'MtwFreightCommercialWeight';
304
+ amount: Scalars['String']['output'];
305
+ unit: MtwFreightWeightUnit;
306
+ zeroReason?: Maybe<Scalars['String']['output']>;
307
+ };
308
+
309
+ export type MtwFreightCommercialWeightFact = {
310
+ __typename?: 'MtwFreightCommercialWeightFact';
311
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
312
+ reason?: Maybe<Scalars['String']['output']>;
313
+ status: MtwFreightCommercialStatus;
314
+ value?: Maybe<MtwFreightCommercialWeight>;
315
+ };
316
+
317
+ export type MtwFreightCommercialWeightFactInput = {
318
+ provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
319
+ reason?: InputMaybe<Scalars['String']['input']>;
320
+ status: MtwFreightCommercialStatus;
321
+ value?: InputMaybe<MtwFreightCommercialWeightInput>;
322
+ };
323
+
324
+ export type MtwFreightCommercialWeightInput = {
325
+ amount: Scalars['String']['input'];
326
+ unit: MtwFreightWeightUnit;
327
+ zeroReason?: InputMaybe<Scalars['String']['input']>;
328
+ };
329
+
59
330
  /** A declared currency/scale convention, not automatic ISO verification. */
60
331
  export type MtwFreightCurrency = {
61
332
  __typename?: 'MtwFreightCurrency';
@@ -87,6 +358,7 @@ export type MtwFreightEstimatePage = {
87
358
  export type MtwFreightEstimateVersion = {
88
359
  __typename?: 'MtwFreightEstimateVersion';
89
360
  actorProvenance: Scalars['String']['output'];
361
+ commercialCapture?: Maybe<MtwFreightCommercialCapture>;
90
362
  createdBy: Scalars['ID']['output'];
91
363
  estimateReference: Scalars['String']['output'];
92
364
  evidence: Array<MtwContainerEvidence>;
@@ -213,6 +485,13 @@ export type MtwFreightLineTotal = {
213
485
  roundedToZero: Scalars['Boolean']['output'];
214
486
  };
215
487
 
488
+ export type MtwFreightLocationKind =
489
+ | 'ADDRESS_LABEL'
490
+ | 'CUSTOM_LABEL'
491
+ | 'PORT_LABEL'
492
+ | 'POSTCODE_LABEL'
493
+ | 'TERMINAL_LABEL';
494
+
216
495
  /** Completeness applies only to the recorded required-charge declarations, not all possible charges. */
217
496
  export type MtwFreightPreview = {
218
497
  __typename?: 'MtwFreightPreview';
@@ -272,15 +551,45 @@ export type MtwFreightSubtotal = {
272
551
  totalAmountMinor?: Maybe<Scalars['String']['output']>;
273
552
  };
274
553
 
554
+ export type MtwFreightVolumeUnit =
555
+ | 'FT3'
556
+ | 'M3';
557
+
558
+ export type MtwFreightWeightUnit =
559
+ | 'KG'
560
+ | 'LB'
561
+ | 'TONNE';
562
+
275
563
  export type MtwShipment = {
276
564
  __typename?: 'MtwShipment';
277
565
  id: Scalars['ID']['output'];
566
+ legs: Array<MtwShipmentLeg>;
278
567
  primaryMode: TransportMode;
279
568
  shipmentNumber: Scalars['String']['output'];
280
569
  status: ShipmentStatus;
281
570
  updatedAt: Scalars['DateTime']['output'];
282
571
  };
283
572
 
573
+
574
+ export type MtwShipmentLegsArgs = {
575
+ pagination?: InputMaybe<PaginationInput>;
576
+ };
577
+
578
+ export type MtwShipmentLeg = {
579
+ __typename?: 'MtwShipmentLeg';
580
+ carrierId?: Maybe<Scalars['ID']['output']>;
581
+ carrierName?: Maybe<Scalars['String']['output']>;
582
+ containerCount?: Maybe<Scalars['Int']['output']>;
583
+ containerType?: Maybe<OceanContainerType>;
584
+ id: Scalars['ID']['output'];
585
+ legNumber: Scalars['Int']['output'];
586
+ mode: TransportMode;
587
+ shipmentId: Scalars['ID']['output'];
588
+ updatedAt: Scalars['DateTime']['output'];
589
+ volumeCbm?: Maybe<Scalars['Float']['output']>;
590
+ weightKg?: Maybe<Scalars['Float']['output']>;
591
+ };
592
+
284
593
  export type Mutation = {
285
594
  __typename?: 'Mutation';
286
595
  saveMtwFreightEstimate: MtwFreightEstimateVersion;
@@ -291,6 +600,12 @@ export type MutationSaveMtwFreightEstimateArgs = {
291
600
  input: SaveMtwFreightEstimateInput;
292
601
  };
293
602
 
603
+ export type OceanContainerType =
604
+ | 'FCL_20FT'
605
+ | 'FCL_40FT'
606
+ | 'FCL_40FT_HC'
607
+ | 'LCL';
608
+
294
609
  export type PaginationInput = {
295
610
  cursor?: InputMaybe<Scalars['String']['input']>;
296
611
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -342,6 +657,7 @@ export type QueryShipmentsCountArgs = {
342
657
  };
343
658
 
344
659
  export type SaveMtwFreightEstimateInput = {
660
+ commercialCapture?: InputMaybe<MtwFreightCommercialCaptureInput>;
345
661
  estimateReference: Scalars['String']['input'];
346
662
  evidence: Array<MtwContainerEvidenceInput>;
347
663
  expectedPreviousVersionId?: InputMaybe<Scalars['ID']['input']>;
@@ -379,375 +695,83 @@ export type TransportMode =
379
695
  | 'RAIL'
380
696
  | 'ROAD';
381
697
 
698
+ export type CommercialProvenanceFragment = { sourceReference: string, sourceRevision: string, observedAt: string | null, evidenceLinks: Array<{ fileId: string, versionId: string }> };
699
+
700
+ export type SaveFreightCommercialCostsMutationVariables = Exact<{
701
+ input: Types.SaveMtwFreightEstimateInput;
702
+ }>;
703
+
704
+
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 } };
706
+
707
+ export type FreightCommercialVersionQueryVariables = Exact<{
708
+ shipmentId: string;
709
+ id: string;
710
+ }>;
711
+
712
+
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 } };
714
+
715
+ export type FreightCommercialLegsQueryVariables = Exact<{
716
+ shipmentId: string;
717
+ pagination: Types.PaginationInput;
718
+ }>;
719
+
720
+
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 };
722
+
382
723
  export type FreightShipmentsQueryVariables = Exact<{
383
- pagination?: InputMaybe<PaginationInput>;
724
+ pagination?: Types.PaginationInput | null | undefined;
384
725
  }>;
385
726
 
386
727
 
387
- 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 }> };
388
729
 
389
730
  export type FreightShipmentQueryVariables = Exact<{
390
- id: Scalars['ID']['input'];
731
+ id: string;
391
732
  }>;
392
733
 
393
734
 
394
- 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 };
395
736
 
396
737
  export type FreightHistoryQueryVariables = Exact<{
397
- shipmentId: Scalars['ID']['input'];
398
- estimateReference?: InputMaybe<Scalars['String']['input']>;
399
- pagination?: InputMaybe<MtwContainerPagination>;
738
+ shipmentId: string;
739
+ estimateReference?: string | null | undefined;
740
+ pagination?: Types.MtwContainerPagination | null | undefined;
400
741
  }>;
401
742
 
402
743
 
403
- 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 } }> } };
404
745
 
405
746
  export type FreightVersionQueryVariables = Exact<{
406
- shipmentId: Scalars['ID']['input'];
407
- id: Scalars['ID']['input'];
747
+ shipmentId: string;
748
+ id: string;
408
749
  }>;
409
750
 
410
751
 
411
- 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 }> } };
412
753
 
413
754
  export type PreviewFreightCostsQueryVariables = Exact<{
414
- input: MtwFreightFactsInput;
755
+ input: Types.MtwFreightFactsInput;
415
756
  }>;
416
757
 
417
758
 
418
- 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 }> } };
419
760
 
420
761
  export type SaveFreightCostsMutationVariables = Exact<{
421
- input: SaveMtwFreightEstimateInput;
762
+ input: Types.SaveMtwFreightEstimateInput;
422
763
  }>;
423
764
 
424
765
 
425
- 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 }> } };
426
-
427
-
428
- export const FreightShipmentsDocument = gql`
429
- query FreightShipments($pagination: PaginationInput) {
430
- shipments(pagination: $pagination) {
431
- id
432
- shipmentNumber
433
- primaryMode
434
- updatedAt
435
- status
436
- }
437
- shipmentsCount
438
- }
439
- `;
440
- export const FreightShipmentDocument = gql`
441
- query FreightShipment($id: ID!) {
442
- shipment(id: $id) {
443
- id
444
- shipmentNumber
445
- primaryMode
446
- updatedAt
447
- status
448
- }
449
- }
450
- `;
451
- export const FreightHistoryDocument = gql`
452
- query FreightHistory($shipmentId: ID!, $estimateReference: String, $pagination: MtwContainerPagination) {
453
- mtwFreightEstimatePage(
454
- shipmentId: $shipmentId
455
- estimateReference: $estimateReference
456
- pagination: $pagination
457
- ) {
458
- items {
459
- id
460
- shipmentId
461
- estimateReference
462
- version
463
- previousVersionId
464
- recordedAt
465
- createdBy
466
- actorProvenance
467
- validityAtRead
468
- shipmentCapture {
469
- shipmentNumber
470
- primaryMode
471
- capturedUpdatedAt
472
- }
473
- facts {
474
- title
475
- kind
476
- }
477
- }
478
- total
479
- limit
480
- offset
481
- hasMore
482
- nextOffset
483
- }
484
- }
485
- `;
486
- export const FreightVersionDocument = gql`
487
- query FreightVersion($shipmentId: ID!, $id: ID!) {
488
- mtwFreightEstimateVersion(shipmentId: $shipmentId, id: $id) {
489
- id
490
- shipmentId
491
- estimateReference
492
- version
493
- previousVersionId
494
- shipmentCapture {
495
- shipmentNumber
496
- primaryMode
497
- capturedUpdatedAt
498
- }
499
- facts {
500
- kind
501
- title
502
- commercialScope
503
- sourceReference
504
- sourceRevision
505
- pricingAt
506
- quotedAt
507
- validFrom
508
- validUntil
509
- reportingCurrency {
510
- code
511
- minorUnitDigits
512
- }
513
- rounding
514
- lines {
515
- id
516
- category
517
- description
518
- payerReference
519
- payerLabel
520
- disposition
521
- inclusionParentLineId
522
- currency {
523
- code
524
- minorUnitDigits
525
- }
526
- amountBasis
527
- quantity
528
- unit
529
- unitRateMajor
530
- amountMinor
531
- zeroReason
532
- sourceReference
533
- sourceRevision
534
- }
535
- requirements {
536
- category
537
- status
538
- reason
539
- sourceReference
540
- sourceRevision
541
- }
542
- fx {
543
- fromCurrency {
544
- code
545
- minorUnitDigits
546
- }
547
- toCurrency {
548
- code
549
- minorUnitDigits
550
- }
551
- rate
552
- observedAt
553
- effectiveFrom
554
- effectiveUntil
555
- sourceReference
556
- sourceRevision
557
- }
558
- }
559
- totals {
560
- completeRelativeToDeclarations
561
- reportingTotalMinor
562
- subtotals {
563
- currency {
564
- code
565
- minorUnitDigits
566
- }
567
- payerReference
568
- payerLabel
569
- knownAmountMinor
570
- totalAmountMinor
571
- }
572
- lines {
573
- id
574
- nativeAmountMinor
575
- reportingAmountMinor
576
- roundedToZero
577
- }
578
- reasons {
579
- code
580
- lineId
581
- detail
582
- }
583
- warnings {
584
- code
585
- lineId
586
- detail
587
- }
588
- }
589
- evidence {
590
- fileId
591
- versionId
592
- sha256Hash
593
- checkedAt
594
- }
595
- recordedAt
596
- createdBy
597
- actorProvenance
598
- onBehalfOf
599
- validityAtRead
600
- }
601
- }
602
- `;
603
- export const PreviewFreightCostsDocument = gql`
604
- query PreviewFreightCosts($input: MtwFreightFactsInput!) {
605
- previewMtwFreightTotal(input: $input) {
606
- completeRelativeToDeclarations
607
- reportingTotalMinor
608
- subtotals {
609
- currency {
610
- code
611
- minorUnitDigits
612
- }
613
- payerReference
614
- payerLabel
615
- knownAmountMinor
616
- totalAmountMinor
617
- }
618
- lines {
619
- id
620
- nativeAmountMinor
621
- reportingAmountMinor
622
- roundedToZero
623
- }
624
- reasons {
625
- code
626
- lineId
627
- detail
628
- }
629
- warnings {
630
- code
631
- lineId
632
- detail
633
- }
634
- }
635
- }
636
- `;
637
- export const SaveFreightCostsDocument = gql`
638
- mutation SaveFreightCosts($input: SaveMtwFreightEstimateInput!) {
639
- saveMtwFreightEstimate(input: $input) {
640
- id
641
- shipmentId
642
- estimateReference
643
- version
644
- previousVersionId
645
- shipmentCapture {
646
- shipmentNumber
647
- primaryMode
648
- capturedUpdatedAt
649
- }
650
- facts {
651
- kind
652
- title
653
- commercialScope
654
- sourceReference
655
- sourceRevision
656
- pricingAt
657
- quotedAt
658
- validFrom
659
- validUntil
660
- reportingCurrency {
661
- code
662
- minorUnitDigits
663
- }
664
- rounding
665
- lines {
666
- id
667
- category
668
- description
669
- payerReference
670
- payerLabel
671
- disposition
672
- inclusionParentLineId
673
- currency {
674
- code
675
- minorUnitDigits
676
- }
677
- amountBasis
678
- quantity
679
- unit
680
- unitRateMajor
681
- amountMinor
682
- zeroReason
683
- sourceReference
684
- sourceRevision
685
- }
686
- requirements {
687
- category
688
- status
689
- reason
690
- sourceReference
691
- sourceRevision
692
- }
693
- fx {
694
- fromCurrency {
695
- code
696
- minorUnitDigits
697
- }
698
- toCurrency {
699
- code
700
- minorUnitDigits
701
- }
702
- rate
703
- observedAt
704
- effectiveFrom
705
- effectiveUntil
706
- sourceReference
707
- sourceRevision
708
- }
709
- }
710
- totals {
711
- completeRelativeToDeclarations
712
- reportingTotalMinor
713
- subtotals {
714
- currency {
715
- code
716
- minorUnitDigits
717
- }
718
- payerReference
719
- payerLabel
720
- knownAmountMinor
721
- totalAmountMinor
722
- }
723
- lines {
724
- id
725
- nativeAmountMinor
726
- reportingAmountMinor
727
- roundedToZero
728
- }
729
- reasons {
730
- code
731
- lineId
732
- detail
733
- }
734
- warnings {
735
- code
736
- lineId
737
- detail
738
- }
739
- }
740
- evidence {
741
- fileId
742
- versionId
743
- sha256Hash
744
- checkedAt
745
- }
746
- recordedAt
747
- createdBy
748
- actorProvenance
749
- onBehalfOf
750
- validityAtRead
751
- }
752
- }
753
- `;
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>;