@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
@@ -0,0 +1,830 @@
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-invoice-operations';
6
+
7
+ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
8
+ export type Maybe<T> = T | null;
9
+ export type InputMaybe<T> = Maybe<T>;
10
+ /** All built-in and custom scalars, mapped to their actual values */
11
+ export type Scalars = {
12
+ ID: { input: string; output: string; }
13
+ String: { input: string; output: string; }
14
+ Boolean: { input: boolean; output: boolean; }
15
+ Int: { input: number; output: number; }
16
+ Float: { input: number; output: number; }
17
+ DateTime: { input: string; output: string; }
18
+ };
19
+
20
+ export type CompareMtwFreightInvoiceInput = {
21
+ correctionReason?: InputMaybe<Scalars['String']['input']>;
22
+ estimateVersionId: Scalars['ID']['input'];
23
+ evidence: Array<MtwContainerEvidenceInput>;
24
+ expectedPreviousComparisonId?: InputMaybe<Scalars['ID']['input']>;
25
+ expectedRevision: Scalars['Int']['input'];
26
+ facts: MtwFreightInvoiceFactsInput;
27
+ idempotencyKey: Scalars['String']['input'];
28
+ shipmentId: Scalars['ID']['input'];
29
+ };
30
+
31
+ /** Bounded audit snapshot of at most 10 exact evidence versions. */
32
+ export type MtwContainerEvidence = {
33
+ __typename?: 'MtwContainerEvidence';
34
+ checkedAt: Scalars['DateTime']['output'];
35
+ fileId: Scalars['ID']['output'];
36
+ sha256Hash: Scalars['String']['output'];
37
+ versionId: Scalars['ID']['output'];
38
+ };
39
+
40
+ /** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
41
+ export type MtwContainerEvidenceInput = {
42
+ fileId: Scalars['ID']['input'];
43
+ versionId: Scalars['ID']['input'];
44
+ };
45
+
46
+ export type MtwContainerPagination = {
47
+ limit?: InputMaybe<Scalars['Int']['input']>;
48
+ offset?: InputMaybe<Scalars['Int']['input']>;
49
+ };
50
+
51
+ export type MtwFreightAmountBasis =
52
+ | 'CALCULATED'
53
+ | 'SOURCED_FIXED'
54
+ | 'UNKNOWN';
55
+
56
+ export type MtwFreightCategory =
57
+ | 'ACCESSORIAL'
58
+ | 'BASE_FREIGHT'
59
+ | 'BROKER'
60
+ | 'DESTINATION_HANDLING'
61
+ | 'DUTY_ESTIMATE'
62
+ | 'FREE_TIME_EXPOSURE'
63
+ | 'FUEL'
64
+ | 'INSURANCE'
65
+ | 'ON_CARRIAGE'
66
+ | 'ORIGIN_HANDLING'
67
+ | 'OTHER'
68
+ | 'PRE_CARRIAGE'
69
+ | 'TAX_ESTIMATE';
70
+
71
+ export type MtwFreightCommercialCapture = {
72
+ __typename?: 'MtwFreightCommercialCapture';
73
+ cargo: MtwFreightCommercialCargoFact;
74
+ carrier: MtwFreightCommercialCarrierFact;
75
+ destination: MtwFreightCommercialLocationFact;
76
+ equipment: MtwFreightCommercialEquipmentFact;
77
+ origin: MtwFreightCommercialLocationFact;
78
+ ownerLegs: Array<MtwFreightCommercialOwnerLeg>;
79
+ ownerShipment: MtwFreightCommercialShipment;
80
+ schemaVersion: Scalars['Int']['output'];
81
+ selectedLegs: Array<MtwFreightCommercialLegPin>;
82
+ service: MtwFreightCommercialServiceFact;
83
+ volume: MtwFreightCommercialVolumeFact;
84
+ weight: MtwFreightCommercialWeightFact;
85
+ };
86
+
87
+ export type MtwFreightCommercialCargo = {
88
+ __typename?: 'MtwFreightCommercialCargo';
89
+ classificationLabel: Scalars['String']['output'];
90
+ description: Scalars['String']['output'];
91
+ };
92
+
93
+ export type MtwFreightCommercialCargoFact = {
94
+ __typename?: 'MtwFreightCommercialCargoFact';
95
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
96
+ reason?: Maybe<Scalars['String']['output']>;
97
+ status: MtwFreightCommercialStatus;
98
+ value?: Maybe<MtwFreightCommercialCargo>;
99
+ };
100
+
101
+ export type MtwFreightCommercialCarrier = {
102
+ __typename?: 'MtwFreightCommercialCarrier';
103
+ label: Scalars['String']['output'];
104
+ reference: Scalars['String']['output'];
105
+ };
106
+
107
+ export type MtwFreightCommercialCarrierFact = {
108
+ __typename?: 'MtwFreightCommercialCarrierFact';
109
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
110
+ reason?: Maybe<Scalars['String']['output']>;
111
+ status: MtwFreightCommercialStatus;
112
+ value?: Maybe<MtwFreightCommercialCarrier>;
113
+ };
114
+
115
+ export type MtwFreightCommercialEquipment = {
116
+ __typename?: 'MtwFreightCommercialEquipment';
117
+ count: Scalars['Int']['output'];
118
+ typeLabel: Scalars['String']['output'];
119
+ };
120
+
121
+ export type MtwFreightCommercialEquipmentFact = {
122
+ __typename?: 'MtwFreightCommercialEquipmentFact';
123
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
124
+ reason?: Maybe<Scalars['String']['output']>;
125
+ status: MtwFreightCommercialStatus;
126
+ value?: Maybe<MtwFreightCommercialEquipment>;
127
+ };
128
+
129
+ export type MtwFreightCommercialLegPin = {
130
+ __typename?: 'MtwFreightCommercialLegPin';
131
+ expectedUpdatedAt: Scalars['DateTime']['output'];
132
+ id: Scalars['ID']['output'];
133
+ };
134
+
135
+ export type MtwFreightCommercialLink = {
136
+ __typename?: 'MtwFreightCommercialLink';
137
+ fileId: Scalars['ID']['output'];
138
+ versionId: Scalars['ID']['output'];
139
+ };
140
+
141
+ export type MtwFreightCommercialLocation = {
142
+ __typename?: 'MtwFreightCommercialLocation';
143
+ jurisdictionLabel?: Maybe<Scalars['String']['output']>;
144
+ kind: MtwFreightLocationKind;
145
+ label: Scalars['String']['output'];
146
+ };
147
+
148
+ export type MtwFreightCommercialLocationFact = {
149
+ __typename?: 'MtwFreightCommercialLocationFact';
150
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
151
+ reason?: Maybe<Scalars['String']['output']>;
152
+ status: MtwFreightCommercialStatus;
153
+ value?: Maybe<MtwFreightCommercialLocation>;
154
+ };
155
+
156
+ export type MtwFreightCommercialOwnerLeg = {
157
+ __typename?: 'MtwFreightCommercialOwnerLeg';
158
+ carrierId?: Maybe<Scalars['ID']['output']>;
159
+ carrierName?: Maybe<Scalars['String']['output']>;
160
+ containerCount?: Maybe<Scalars['Int']['output']>;
161
+ containerType?: Maybe<OceanContainerType>;
162
+ id: Scalars['ID']['output'];
163
+ legNumber: Scalars['Int']['output'];
164
+ mode: TransportMode;
165
+ updatedAt: Scalars['DateTime']['output'];
166
+ volumeCbm?: Maybe<Scalars['Float']['output']>;
167
+ weightKg?: Maybe<Scalars['Float']['output']>;
168
+ };
169
+
170
+ export type MtwFreightCommercialProvenance = {
171
+ __typename?: 'MtwFreightCommercialProvenance';
172
+ evidenceLinks: Array<MtwFreightCommercialLink>;
173
+ observedAt?: Maybe<Scalars['DateTime']['output']>;
174
+ sourceReference: Scalars['String']['output'];
175
+ sourceRevision: Scalars['String']['output'];
176
+ };
177
+
178
+ export type MtwFreightCommercialServiceFact = {
179
+ __typename?: 'MtwFreightCommercialServiceFact';
180
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
181
+ reason?: Maybe<Scalars['String']['output']>;
182
+ status: MtwFreightCommercialStatus;
183
+ value?: Maybe<Scalars['String']['output']>;
184
+ };
185
+
186
+ export type MtwFreightCommercialShipment = {
187
+ __typename?: 'MtwFreightCommercialShipment';
188
+ primaryMode: TransportMode;
189
+ shipmentId: Scalars['ID']['output'];
190
+ updatedAt: Scalars['DateTime']['output'];
191
+ };
192
+
193
+ /** Reported commercial context only; no quote acceptance or completeness authority. */
194
+ export type MtwFreightCommercialStatus =
195
+ | 'NOT_APPLICABLE'
196
+ | 'SOURCED'
197
+ | 'UNKNOWN';
198
+
199
+ export type MtwFreightCommercialVolume = {
200
+ __typename?: 'MtwFreightCommercialVolume';
201
+ amount: Scalars['String']['output'];
202
+ unit: MtwFreightVolumeUnit;
203
+ zeroReason?: Maybe<Scalars['String']['output']>;
204
+ };
205
+
206
+ export type MtwFreightCommercialVolumeFact = {
207
+ __typename?: 'MtwFreightCommercialVolumeFact';
208
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
209
+ reason?: Maybe<Scalars['String']['output']>;
210
+ status: MtwFreightCommercialStatus;
211
+ value?: Maybe<MtwFreightCommercialVolume>;
212
+ };
213
+
214
+ export type MtwFreightCommercialWeight = {
215
+ __typename?: 'MtwFreightCommercialWeight';
216
+ amount: Scalars['String']['output'];
217
+ unit: MtwFreightWeightUnit;
218
+ zeroReason?: Maybe<Scalars['String']['output']>;
219
+ };
220
+
221
+ export type MtwFreightCommercialWeightFact = {
222
+ __typename?: 'MtwFreightCommercialWeightFact';
223
+ provenance?: Maybe<MtwFreightCommercialProvenance>;
224
+ reason?: Maybe<Scalars['String']['output']>;
225
+ status: MtwFreightCommercialStatus;
226
+ value?: Maybe<MtwFreightCommercialWeight>;
227
+ };
228
+
229
+ /** A declared currency/scale convention, not automatic ISO verification. */
230
+ export type MtwFreightCurrency = {
231
+ __typename?: 'MtwFreightCurrency';
232
+ code: Scalars['String']['output'];
233
+ minorUnitDigits: Scalars['Int']['output'];
234
+ };
235
+
236
+ export type MtwFreightCurrencyInput = {
237
+ code: Scalars['String']['input'];
238
+ minorUnitDigits: Scalars['Int']['input'];
239
+ };
240
+
241
+ export type MtwFreightDisposition =
242
+ | 'ADDITIONAL'
243
+ | 'EXCLUDED'
244
+ | 'INCLUDED_IN_LINE'
245
+ | 'UNKNOWN';
246
+
247
+ export type MtwFreightEstimatePage = {
248
+ __typename?: 'MtwFreightEstimatePage';
249
+ hasMore: Scalars['Boolean']['output'];
250
+ items: Array<MtwFreightEstimateVersion>;
251
+ limit: Scalars['Int']['output'];
252
+ nextOffset?: Maybe<Scalars['Int']['output']>;
253
+ offset: Scalars['Int']['output'];
254
+ total: Scalars['Int']['output'];
255
+ };
256
+
257
+ export type MtwFreightEstimateVersion = {
258
+ __typename?: 'MtwFreightEstimateVersion';
259
+ actorProvenance: Scalars['String']['output'];
260
+ commercialCapture?: Maybe<MtwFreightCommercialCapture>;
261
+ createdBy: Scalars['ID']['output'];
262
+ estimateReference: Scalars['String']['output'];
263
+ evidence: Array<MtwContainerEvidence>;
264
+ facts: MtwFreightFacts;
265
+ id: Scalars['ID']['output'];
266
+ onBehalfOf?: Maybe<Scalars['ID']['output']>;
267
+ previousVersionId?: Maybe<Scalars['ID']['output']>;
268
+ recordedAt: Scalars['DateTime']['output'];
269
+ shipmentCapture: MtwFreightShipmentCapture;
270
+ shipmentId: Scalars['ID']['output'];
271
+ totals: MtwFreightPreview;
272
+ /** Validity is informational; this record does not accept a quote or confirm capacity. */
273
+ validityAtRead: Scalars['String']['output'];
274
+ version: Scalars['Int']['output'];
275
+ };
276
+
277
+ export type MtwFreightFacts = {
278
+ __typename?: 'MtwFreightFacts';
279
+ commercialScope: Scalars['String']['output'];
280
+ fx: Array<MtwFreightFx>;
281
+ kind: MtwFreightKind;
282
+ lines: Array<MtwFreightLine>;
283
+ pricingAt: Scalars['DateTime']['output'];
284
+ quotedAt?: Maybe<Scalars['DateTime']['output']>;
285
+ reportingCurrency?: Maybe<MtwFreightCurrency>;
286
+ requirements: Array<MtwFreightRequirement>;
287
+ rounding: MtwFreightRounding;
288
+ sourceReference: Scalars['String']['output'];
289
+ sourceRevision: Scalars['String']['output'];
290
+ title: Scalars['String']['output'];
291
+ validFrom?: Maybe<Scalars['DateTime']['output']>;
292
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
293
+ };
294
+
295
+ export type MtwFreightFx = {
296
+ __typename?: 'MtwFreightFx';
297
+ effectiveFrom: Scalars['DateTime']['output'];
298
+ effectiveUntil: Scalars['DateTime']['output'];
299
+ fromCurrency: MtwFreightCurrency;
300
+ observedAt: Scalars['DateTime']['output'];
301
+ rate: Scalars['String']['output'];
302
+ sourceReference: Scalars['String']['output'];
303
+ sourceRevision: Scalars['String']['output'];
304
+ toCurrency: MtwFreightCurrency;
305
+ };
306
+
307
+ export type MtwFreightInvoiceAcceptance =
308
+ | 'NOT_ESTABLISHED';
309
+
310
+ export type MtwFreightInvoiceBlocker =
311
+ | 'EVIDENCE_REQUIRED'
312
+ | 'INVOICE_REFERENCE_UNKNOWN'
313
+ | 'SHIPMENT_NOT_LIVE'
314
+ | 'SUPPLIER_UNKNOWN';
315
+
316
+ export type MtwFreightInvoiceComparableSubtotal = {
317
+ __typename?: 'MtwFreightInvoiceComparableSubtotal';
318
+ currency: MtwFreightCurrency;
319
+ deltaMinor: Scalars['String']['output'];
320
+ estimateMinor: Scalars['String']['output'];
321
+ invoiceLineIds: Array<Scalars['ID']['output']>;
322
+ invoiceMinor: Scalars['String']['output'];
323
+ payerReference: Scalars['String']['output'];
324
+ };
325
+
326
+ export type MtwFreightInvoiceComparison = {
327
+ __typename?: 'MtwFreightInvoiceComparison';
328
+ actorProvenance: Scalars['String']['output'];
329
+ correctionReason?: Maybe<Scalars['String']['output']>;
330
+ createdBy: Scalars['ID']['output'];
331
+ estimate: MtwFreightInvoiceEstimatePin;
332
+ estimateDeclaredSubtotals: Array<MtwFreightSubtotal>;
333
+ evidence: Array<MtwContainerEvidence>;
334
+ facts: MtwFreightInvoiceFacts;
335
+ id: Scalars['ID']['output'];
336
+ idempotencyKey: Scalars['String']['output'];
337
+ invoiceDeclaredSubtotals: Array<MtwFreightSubtotal>;
338
+ invoiceIdentityId: Scalars['ID']['output'];
339
+ methodVersion: Scalars['Int']['output'];
340
+ onBehalfOf?: Maybe<Scalars['ID']['output']>;
341
+ outcome: MtwFreightInvoiceOutcome;
342
+ previousComparisonId?: Maybe<Scalars['ID']['output']>;
343
+ recordedAt: Scalars['DateTime']['output'];
344
+ requestFingerprint: Scalars['String']['output'];
345
+ revision: Scalars['Int']['output'];
346
+ shipmentId: Scalars['ID']['output'];
347
+ };
348
+
349
+ export type MtwFreightInvoiceComparisonPage = {
350
+ __typename?: 'MtwFreightInvoiceComparisonPage';
351
+ hasMore: Scalars['Boolean']['output'];
352
+ items: Array<MtwFreightInvoiceComparison>;
353
+ limit: Scalars['Int']['output'];
354
+ nextOffset?: Maybe<Scalars['Int']['output']>;
355
+ offset: Scalars['Int']['output'];
356
+ total: Scalars['Int']['output'];
357
+ };
358
+
359
+ export type MtwFreightInvoiceEstimatePin = {
360
+ __typename?: 'MtwFreightInvoiceEstimatePin';
361
+ acceptance: MtwFreightInvoiceAcceptance;
362
+ estimateReference: Scalars['String']['output'];
363
+ id: Scalars['ID']['output'];
364
+ kind: MtwFreightKind;
365
+ quotedAt?: Maybe<Scalars['DateTime']['output']>;
366
+ sourceReference: Scalars['String']['output'];
367
+ sourceRevision: Scalars['String']['output'];
368
+ validFrom?: Maybe<Scalars['DateTime']['output']>;
369
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
370
+ version: Scalars['Int']['output'];
371
+ };
372
+
373
+ export type MtwFreightInvoiceFacts = {
374
+ __typename?: 'MtwFreightInvoiceFacts';
375
+ currency: MtwFreightCurrency;
376
+ invoiceDate?: Maybe<Scalars['String']['output']>;
377
+ invoiceReference?: Maybe<Scalars['String']['output']>;
378
+ rows: Array<MtwFreightInvoiceRow>;
379
+ schemaVersion: Scalars['Int']['output'];
380
+ sourceReference: Scalars['String']['output'];
381
+ sourceRevision: Scalars['String']['output'];
382
+ supplierLabel?: Maybe<Scalars['String']['output']>;
383
+ supplierReference?: Maybe<Scalars['String']['output']>;
384
+ };
385
+
386
+ export type MtwFreightInvoiceFactsInput = {
387
+ currency: MtwFreightCurrencyInput;
388
+ /** An exact source date; unknown remains null. */
389
+ invoiceDate?: InputMaybe<Scalars['String']['input']>;
390
+ invoiceReference?: InputMaybe<Scalars['String']['input']>;
391
+ rows: Array<MtwFreightInvoiceRowInput>;
392
+ schemaVersion: Scalars['Int']['input'];
393
+ sourceReference: Scalars['String']['input'];
394
+ sourceRevision: Scalars['String']['input'];
395
+ supplierLabel?: InputMaybe<Scalars['String']['input']>;
396
+ supplierReference?: InputMaybe<Scalars['String']['input']>;
397
+ };
398
+
399
+ export type MtwFreightInvoiceFlag =
400
+ | 'AMOUNT_CHANGED'
401
+ | 'CURRENCY_CHANGED'
402
+ | 'DUPLICATE_MATCH'
403
+ | 'EXCLUDED_CHARGE_APPEARED'
404
+ | 'MATCHED'
405
+ | 'MISSING_EXPECTED_LINE'
406
+ | 'PAYER_CHANGED'
407
+ | 'QUANTITY_CHANGED'
408
+ | 'RATE_CHANGED'
409
+ | 'UNKNOWN_COMPARISON'
410
+ | 'UNMATCHED_INVOICE_LINE';
411
+
412
+ export type MtwFreightInvoiceOutcome = {
413
+ __typename?: 'MtwFreightInvoiceOutcome';
414
+ /** Only the explicit recorded comparison coverage, never all supplier charges or liability. */
415
+ allLinesMatched: Scalars['Boolean']['output'];
416
+ comparableSubtotals: Array<MtwFreightInvoiceComparableSubtotal>;
417
+ flags: Array<MtwFreightInvoiceFlag>;
418
+ missingExpectedLineIds: Array<Scalars['ID']['output']>;
419
+ rows: Array<MtwFreightInvoiceRowComparison>;
420
+ unknownExpectedCoverage: Array<MtwFreightInvoiceUnknownCoverage>;
421
+ };
422
+
423
+ export type MtwFreightInvoicePreview = {
424
+ __typename?: 'MtwFreightInvoicePreview';
425
+ blockers: Array<MtwFreightInvoiceBlocker>;
426
+ estimate: MtwFreightInvoiceEstimatePin;
427
+ estimateDeclaredSubtotals: Array<MtwFreightSubtotal>;
428
+ facts: MtwFreightInvoiceFacts;
429
+ invoiceDeclaredSubtotals: Array<MtwFreightSubtotal>;
430
+ methodVersion: Scalars['Int']['output'];
431
+ outcome: MtwFreightInvoiceOutcome;
432
+ recordable: Scalars['Boolean']['output'];
433
+ };
434
+
435
+ export type MtwFreightInvoiceReason =
436
+ | 'INCLUDED_CHILD_BILLED_SEPARATELY'
437
+ | 'MISSING_AMOUNT'
438
+ | 'MISSING_PAYER'
439
+ | 'MISSING_QUANTITY'
440
+ | 'MISSING_RATE'
441
+ | 'MISSING_UNIT'
442
+ | 'SCALE_MISMATCH'
443
+ | 'UNIT_MISMATCH'
444
+ | 'UNKNOWN_BASIS'
445
+ | 'UNKNOWN_DISPOSITION'
446
+ | 'UNKNOWN_EXPECTED_CHARGE_COVERAGE';
447
+
448
+ export type MtwFreightInvoiceRow = {
449
+ __typename?: 'MtwFreightInvoiceRow';
450
+ amountMinor?: Maybe<Scalars['String']['output']>;
451
+ currency: MtwFreightCurrency;
452
+ description: Scalars['String']['output'];
453
+ estimateLineId?: Maybe<Scalars['ID']['output']>;
454
+ id: Scalars['ID']['output'];
455
+ payerLabel?: Maybe<Scalars['String']['output']>;
456
+ payerReference?: Maybe<Scalars['String']['output']>;
457
+ quantity?: Maybe<Scalars['String']['output']>;
458
+ unit?: Maybe<Scalars['String']['output']>;
459
+ unitRateMajor?: Maybe<Scalars['String']['output']>;
460
+ zeroReason?: Maybe<Scalars['String']['output']>;
461
+ };
462
+
463
+ export type MtwFreightInvoiceRowComparison = {
464
+ __typename?: 'MtwFreightInvoiceRowComparison';
465
+ deltaMinor?: Maybe<Scalars['String']['output']>;
466
+ estimateLineId?: Maybe<Scalars['ID']['output']>;
467
+ flags: Array<MtwFreightInvoiceFlag>;
468
+ invoiceLineId: Scalars['ID']['output'];
469
+ reasons: Array<MtwFreightInvoiceReason>;
470
+ };
471
+
472
+ /** Manual reported invoice facts. This comparison does not establish liability or approve payment. */
473
+ export type MtwFreightInvoiceRowInput = {
474
+ amountMinor?: InputMaybe<Scalars['String']['input']>;
475
+ currency: MtwFreightCurrencyInput;
476
+ description: Scalars['String']['input'];
477
+ estimateLineId?: InputMaybe<Scalars['ID']['input']>;
478
+ id: Scalars['ID']['input'];
479
+ payerLabel?: InputMaybe<Scalars['String']['input']>;
480
+ payerReference?: InputMaybe<Scalars['String']['input']>;
481
+ quantity?: InputMaybe<Scalars['String']['input']>;
482
+ unit?: InputMaybe<Scalars['String']['input']>;
483
+ unitRateMajor?: InputMaybe<Scalars['String']['input']>;
484
+ zeroReason?: InputMaybe<Scalars['String']['input']>;
485
+ };
486
+
487
+ export type MtwFreightInvoiceUnknownCoverage = {
488
+ __typename?: 'MtwFreightInvoiceUnknownCoverage';
489
+ estimateLineId: Scalars['ID']['output'];
490
+ flag: MtwFreightInvoiceFlag;
491
+ reason: MtwFreightInvoiceReason;
492
+ };
493
+
494
+ export type MtwFreightKind =
495
+ | 'ESTIMATE'
496
+ | 'QUOTE';
497
+
498
+ export type MtwFreightLine = {
499
+ __typename?: 'MtwFreightLine';
500
+ amountBasis: MtwFreightAmountBasis;
501
+ amountMinor?: Maybe<Scalars['String']['output']>;
502
+ category: MtwFreightCategory;
503
+ currency: MtwFreightCurrency;
504
+ description: Scalars['String']['output'];
505
+ disposition: MtwFreightDisposition;
506
+ id: Scalars['ID']['output'];
507
+ inclusionParentLineId?: Maybe<Scalars['ID']['output']>;
508
+ payerLabel?: Maybe<Scalars['String']['output']>;
509
+ payerReference?: Maybe<Scalars['String']['output']>;
510
+ quantity?: Maybe<Scalars['String']['output']>;
511
+ sourceReference?: Maybe<Scalars['String']['output']>;
512
+ sourceRevision?: Maybe<Scalars['String']['output']>;
513
+ unit?: Maybe<Scalars['String']['output']>;
514
+ unitRateMajor?: Maybe<Scalars['String']['output']>;
515
+ zeroReason?: Maybe<Scalars['String']['output']>;
516
+ };
517
+
518
+ export type MtwFreightLineTotal = {
519
+ __typename?: 'MtwFreightLineTotal';
520
+ id: Scalars['ID']['output'];
521
+ nativeAmountMinor?: Maybe<Scalars['String']['output']>;
522
+ reportingAmountMinor?: Maybe<Scalars['String']['output']>;
523
+ roundedToZero: Scalars['Boolean']['output'];
524
+ };
525
+
526
+ export type MtwFreightLocationKind =
527
+ | 'ADDRESS_LABEL'
528
+ | 'CUSTOM_LABEL'
529
+ | 'PORT_LABEL'
530
+ | 'POSTCODE_LABEL'
531
+ | 'TERMINAL_LABEL';
532
+
533
+ /** Completeness applies only to the recorded required-charge declarations, not all possible charges. */
534
+ export type MtwFreightPreview = {
535
+ __typename?: 'MtwFreightPreview';
536
+ completeRelativeToDeclarations: Scalars['Boolean']['output'];
537
+ lines: Array<MtwFreightLineTotal>;
538
+ reasons: Array<MtwFreightReason>;
539
+ reportingTotalMinor?: Maybe<Scalars['String']['output']>;
540
+ subtotals: Array<MtwFreightSubtotal>;
541
+ warnings: Array<MtwFreightReason>;
542
+ };
543
+
544
+ export type MtwFreightReason = {
545
+ __typename?: 'MtwFreightReason';
546
+ code: Scalars['String']['output'];
547
+ detail: Scalars['String']['output'];
548
+ lineId?: Maybe<Scalars['ID']['output']>;
549
+ };
550
+
551
+ export type MtwFreightRequirement = {
552
+ __typename?: 'MtwFreightRequirement';
553
+ category: MtwFreightCategory;
554
+ reason?: Maybe<Scalars['String']['output']>;
555
+ sourceReference?: Maybe<Scalars['String']['output']>;
556
+ sourceRevision?: Maybe<Scalars['String']['output']>;
557
+ status: MtwFreightRequirementStatus;
558
+ };
559
+
560
+ export type MtwFreightRequirementStatus =
561
+ | 'NOT_APPLICABLE'
562
+ | 'REQUIRED'
563
+ | 'UNKNOWN';
564
+
565
+ export type MtwFreightRounding =
566
+ | 'HALF_UP_LINE';
567
+
568
+ export type MtwFreightShipmentCapture = {
569
+ __typename?: 'MtwFreightShipmentCapture';
570
+ capturedUpdatedAt: Scalars['DateTime']['output'];
571
+ primaryMode: Scalars['String']['output'];
572
+ shipmentNumber: Scalars['String']['output'];
573
+ };
574
+
575
+ export type MtwFreightSubtotal = {
576
+ __typename?: 'MtwFreightSubtotal';
577
+ currency: MtwFreightCurrency;
578
+ knownAmountMinor: Scalars['String']['output'];
579
+ payerLabel?: Maybe<Scalars['String']['output']>;
580
+ payerReference?: Maybe<Scalars['String']['output']>;
581
+ totalAmountMinor?: Maybe<Scalars['String']['output']>;
582
+ };
583
+
584
+ export type MtwFreightVolumeUnit =
585
+ | 'FT3'
586
+ | 'M3';
587
+
588
+ export type MtwFreightWeightUnit =
589
+ | 'KG'
590
+ | 'LB'
591
+ | 'TONNE';
592
+
593
+ export type MtwShipment = {
594
+ __typename?: 'MtwShipment';
595
+ id: Scalars['ID']['output'];
596
+ legs: Array<MtwShipmentLeg>;
597
+ primaryMode: TransportMode;
598
+ shipmentNumber: Scalars['String']['output'];
599
+ status: ShipmentStatus;
600
+ updatedAt: Scalars['DateTime']['output'];
601
+ };
602
+
603
+
604
+ export type MtwShipmentLegsArgs = {
605
+ pagination?: InputMaybe<PaginationInput>;
606
+ };
607
+
608
+ export type MtwShipmentLeg = {
609
+ __typename?: 'MtwShipmentLeg';
610
+ carrierId?: Maybe<Scalars['ID']['output']>;
611
+ carrierName?: Maybe<Scalars['String']['output']>;
612
+ containerCount?: Maybe<Scalars['Int']['output']>;
613
+ containerType?: Maybe<OceanContainerType>;
614
+ id: Scalars['ID']['output'];
615
+ legNumber: Scalars['Int']['output'];
616
+ mode: TransportMode;
617
+ shipmentId: Scalars['ID']['output'];
618
+ updatedAt: Scalars['DateTime']['output'];
619
+ volumeCbm?: Maybe<Scalars['Float']['output']>;
620
+ weightKg?: Maybe<Scalars['Float']['output']>;
621
+ };
622
+
623
+ export type Mutation = {
624
+ __typename?: 'Mutation';
625
+ compareMtwFreightInvoice: MtwFreightInvoiceComparison;
626
+ };
627
+
628
+
629
+ export type MutationCompareMtwFreightInvoiceArgs = {
630
+ input: CompareMtwFreightInvoiceInput;
631
+ };
632
+
633
+ export type OceanContainerType =
634
+ | 'FCL_20FT'
635
+ | 'FCL_40FT'
636
+ | 'FCL_40FT_HC'
637
+ | 'LCL';
638
+
639
+ export type PaginationInput = {
640
+ cursor?: InputMaybe<Scalars['String']['input']>;
641
+ limit?: InputMaybe<Scalars['Int']['input']>;
642
+ offset?: InputMaybe<Scalars['Int']['input']>;
643
+ };
644
+
645
+ export type PreviewMtwFreightInvoiceInput = {
646
+ estimateVersionId: Scalars['ID']['input'];
647
+ evidence?: InputMaybe<Array<MtwContainerEvidenceInput>>;
648
+ facts: MtwFreightInvoiceFactsInput;
649
+ shipmentId: Scalars['ID']['input'];
650
+ };
651
+
652
+ export type Query = {
653
+ __typename?: 'Query';
654
+ mtwFreightEstimatePage: MtwFreightEstimatePage;
655
+ mtwFreightEstimateVersion: MtwFreightEstimateVersion;
656
+ mtwFreightInvoiceComparison: MtwFreightInvoiceComparison;
657
+ /** Null is not proof of no effect and never authorizes resubmission. Exact original actor/context only. */
658
+ mtwFreightInvoiceComparisonByRequestKey?: Maybe<MtwFreightInvoiceComparison>;
659
+ mtwFreightInvoiceComparisonPage: MtwFreightInvoiceComparisonPage;
660
+ previewMtwFreightInvoice: MtwFreightInvoicePreview;
661
+ shipment?: Maybe<MtwShipment>;
662
+ shipments: Array<MtwShipment>;
663
+ shipmentsCount: Scalars['Int']['output'];
664
+ };
665
+
666
+
667
+ export type QueryMtwFreightEstimatePageArgs = {
668
+ estimateReference?: InputMaybe<Scalars['String']['input']>;
669
+ pagination?: InputMaybe<MtwContainerPagination>;
670
+ shipmentId: Scalars['ID']['input'];
671
+ };
672
+
673
+
674
+ export type QueryMtwFreightEstimateVersionArgs = {
675
+ id: Scalars['ID']['input'];
676
+ shipmentId: Scalars['ID']['input'];
677
+ };
678
+
679
+
680
+ export type QueryMtwFreightInvoiceComparisonArgs = {
681
+ id: Scalars['ID']['input'];
682
+ shipmentId: Scalars['ID']['input'];
683
+ };
684
+
685
+
686
+ export type QueryMtwFreightInvoiceComparisonByRequestKeyArgs = {
687
+ requestKey: Scalars['String']['input'];
688
+ shipmentId: Scalars['ID']['input'];
689
+ };
690
+
691
+
692
+ export type QueryMtwFreightInvoiceComparisonPageArgs = {
693
+ invoiceIdentityId: Scalars['ID']['input'];
694
+ pagination?: InputMaybe<MtwContainerPagination>;
695
+ shipmentId: Scalars['ID']['input'];
696
+ };
697
+
698
+
699
+ export type QueryPreviewMtwFreightInvoiceArgs = {
700
+ input: PreviewMtwFreightInvoiceInput;
701
+ };
702
+
703
+
704
+ export type QueryShipmentArgs = {
705
+ id: Scalars['ID']['input'];
706
+ };
707
+
708
+
709
+ export type QueryShipmentsArgs = {
710
+ filter?: InputMaybe<ShipmentFilterInput>;
711
+ pagination?: InputMaybe<PaginationInput>;
712
+ };
713
+
714
+
715
+ export type QueryShipmentsCountArgs = {
716
+ filter?: InputMaybe<ShipmentFilterInput>;
717
+ };
718
+
719
+ export type ShipmentFilterInput = {
720
+ carrierId?: InputMaybe<Scalars['ID']['input']>;
721
+ customerId?: InputMaybe<Scalars['ID']['input']>;
722
+ deliveryJobId?: InputMaybe<Scalars['ID']['input']>;
723
+ driverId?: InputMaybe<Scalars['ID']['input']>;
724
+ isMultiModal?: InputMaybe<Scalars['Boolean']['input']>;
725
+ primaryMode?: InputMaybe<TransportMode>;
726
+ search?: InputMaybe<Scalars['String']['input']>;
727
+ status?: InputMaybe<ShipmentStatus>;
728
+ storeOrderId?: InputMaybe<Scalars['ID']['input']>;
729
+ vehicleId?: InputMaybe<Scalars['ID']['input']>;
730
+ };
731
+
732
+ export type ShipmentStatus =
733
+ | 'DELIVERED'
734
+ | 'FAILED'
735
+ | 'IN_TRANSIT'
736
+ | 'PICKED_UP'
737
+ | 'PLANNED'
738
+ | 'RETURNED';
739
+
740
+ export type TransportMode =
741
+ | 'AIR'
742
+ | 'OCEAN'
743
+ | 'RAIL'
744
+ | 'ROAD';
745
+
746
+ export type InvoiceSourceFactsFragment = { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> };
747
+
748
+ export type InvoiceOutcomeFragment = { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> };
749
+
750
+ export type InvoiceDeclaredSubtotalFragment = { payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } };
751
+
752
+ export type InvoiceEstimatePinFragment = { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance };
753
+
754
+ export type InvoiceReceiptFragment = { id: string, shipmentId: string, invoiceIdentityId: string, revision: number, previousComparisonId: string | null, correctionReason: string | null, methodVersion: number, idempotencyKey: string, requestFingerprint: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, estimate: { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance }, facts: { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> }, outcome: { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> }, estimateDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, invoiceDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> };
755
+
756
+ export type InvoiceShipmentsQueryVariables = Exact<{
757
+ pagination?: Types.PaginationInput | null | undefined;
758
+ }>;
759
+
760
+
761
+ export type InvoiceShipmentsQuery = { shipmentsCount: number, shipments: Array<{ id: string, shipmentNumber: string, primaryMode: Types.TransportMode, status: Types.ShipmentStatus }> };
762
+
763
+ export type InvoiceEstimatePageQueryVariables = Exact<{
764
+ shipmentId: string;
765
+ pagination?: Types.MtwContainerPagination | null | undefined;
766
+ }>;
767
+
768
+
769
+ export type InvoiceEstimatePageQuery = { mtwFreightEstimatePage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, shipmentId: string, estimateReference: string, version: number, facts: { title: string, kind: Types.MtwFreightKind } }> } };
770
+
771
+ export type InvoiceEstimateVersionQueryVariables = Exact<{
772
+ shipmentId: string;
773
+ id: string;
774
+ }>;
775
+
776
+
777
+ export type InvoiceEstimateVersionQuery = { mtwFreightEstimateVersion: { id: string, shipmentId: string, estimateReference: string, version: number, validityAtRead: string, facts: { title: string, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, lines: Array<{ id: string, description: string, disposition: Types.MtwFreightDisposition, amountBasis: Types.MtwFreightAmountBasis, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, payerReference: string | null, payerLabel: string | null, inclusionParentLineId: string | null, currency: { code: string, minorUnitDigits: number } }> }, totals: { completeRelativeToDeclarations: boolean, lines: Array<{ id: string, nativeAmountMinor: string | null }> } } };
778
+
779
+ export type InvoiceStructuralPreviewQueryVariables = Exact<{
780
+ input: Types.PreviewMtwFreightInvoiceInput;
781
+ }>;
782
+
783
+
784
+ export type InvoiceStructuralPreviewQuery = { previewMtwFreightInvoice: { methodVersion: number, recordable: boolean, blockers: Array<Types.MtwFreightInvoiceBlocker>, estimate: { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance }, facts: { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> }, outcome: { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> }, estimateDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, invoiceDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }> } };
785
+
786
+ export type RecordInvoiceComparisonMutationVariables = Exact<{
787
+ input: Types.CompareMtwFreightInvoiceInput;
788
+ }>;
789
+
790
+
791
+ export type RecordInvoiceComparisonMutation = { compareMtwFreightInvoice: { id: string, shipmentId: string, invoiceIdentityId: string, revision: number, previousComparisonId: string | null, correctionReason: string | null, methodVersion: number, idempotencyKey: string, requestFingerprint: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, estimate: { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance }, facts: { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> }, outcome: { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> }, estimateDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, invoiceDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
792
+
793
+ export type InvoiceComparisonExactQueryVariables = Exact<{
794
+ shipmentId: string;
795
+ id: string;
796
+ }>;
797
+
798
+
799
+ export type InvoiceComparisonExactQuery = { mtwFreightInvoiceComparison: { id: string, shipmentId: string, invoiceIdentityId: string, revision: number, previousComparisonId: string | null, correctionReason: string | null, methodVersion: number, idempotencyKey: string, requestFingerprint: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, estimate: { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance }, facts: { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> }, outcome: { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> }, estimateDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, invoiceDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
800
+
801
+ export type InvoiceComparisonHistoryQueryVariables = Exact<{
802
+ shipmentId: string;
803
+ invoiceIdentityId: string;
804
+ pagination?: Types.MtwContainerPagination | null | undefined;
805
+ }>;
806
+
807
+
808
+ export type InvoiceComparisonHistoryQuery = { mtwFreightInvoiceComparisonPage: { total: number, limit: number, offset: number, hasMore: boolean, nextOffset: number | null, items: Array<{ id: string, shipmentId: string, invoiceIdentityId: string, revision: number, previousComparisonId: string | null, correctionReason: string | null, methodVersion: number, idempotencyKey: string, requestFingerprint: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, estimate: { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance }, facts: { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> }, outcome: { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> }, estimateDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, invoiceDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
809
+
810
+ export type RecoverInvoiceComparisonQueryVariables = Exact<{
811
+ shipmentId: string;
812
+ requestKey: string;
813
+ }>;
814
+
815
+
816
+ export type RecoverInvoiceComparisonQuery = { mtwFreightInvoiceComparisonByRequestKey: { id: string, shipmentId: string, invoiceIdentityId: string, revision: number, previousComparisonId: string | null, correctionReason: string | null, methodVersion: number, idempotencyKey: string, requestFingerprint: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf: string | null, estimate: { id: string, estimateReference: string, version: number, kind: Types.MtwFreightKind, sourceReference: string, sourceRevision: string, quotedAt: string | null, validFrom: string | null, validUntil: string | null, acceptance: Types.MtwFreightInvoiceAcceptance }, facts: { schemaVersion: number, supplierReference: string | null, supplierLabel: string | null, invoiceReference: string | null, sourceReference: string, sourceRevision: string, invoiceDate: string | null, currency: { code: string, minorUnitDigits: number }, rows: Array<{ id: string, description: string, estimateLineId: string | null, payerReference: string | null, payerLabel: string | null, quantity: string | null, unit: string | null, unitRateMajor: string | null, amountMinor: string | null, zeroReason: string | null, currency: { code: string, minorUnitDigits: number } }> }, outcome: { flags: Array<Types.MtwFreightInvoiceFlag>, allLinesMatched: boolean, missingExpectedLineIds: Array<string>, unknownExpectedCoverage: Array<{ estimateLineId: string, flag: Types.MtwFreightInvoiceFlag, reason: Types.MtwFreightInvoiceReason }>, rows: Array<{ invoiceLineId: string, estimateLineId: string | null, flags: Array<Types.MtwFreightInvoiceFlag>, reasons: Array<Types.MtwFreightInvoiceReason>, deltaMinor: string | null }>, comparableSubtotals: Array<{ payerReference: string, estimateMinor: string, invoiceMinor: string, deltaMinor: string, invoiceLineIds: Array<string>, currency: { code: string, minorUnitDigits: number } }> }, estimateDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, invoiceDeclaredSubtotals: Array<{ payerReference: string | null, payerLabel: string | null, knownAmountMinor: string, totalAmountMinor: string | null, currency: { code: string, minorUnitDigits: number } }>, evidence: Array<{ fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null };
817
+
818
+ export const InvoiceEstimatePinFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}}]} as unknown as DocumentNode<InvoiceEstimatePinFragment, unknown>;
819
+ export const InvoiceSourceFactsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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"}}]}}]}}]} as unknown as DocumentNode<InvoiceSourceFactsFragment, unknown>;
820
+ export const InvoiceOutcomeFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}}]} as unknown as DocumentNode<InvoiceOutcomeFragment, unknown>;
821
+ export const InvoiceDeclaredSubtotalFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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"}}]}}]} as unknown as DocumentNode<InvoiceDeclaredSubtotalFragment, unknown>;
822
+ export const InvoiceReceiptFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceReceipt"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceComparison"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceIdentityId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"previousComparisonId"}},{"kind":"Field","name":{"kind":"Name","value":"correctionReason"}},{"kind":"Field","name":{"kind":"Name","value":"methodVersion"}},{"kind":"Field","name":{"kind":"Name","value":"idempotencyKey"}},{"kind":"Field","name":{"kind":"Name","value":"requestFingerprint"}},{"kind":"Field","name":{"kind":"Name","value":"estimate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceEstimatePin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceSourceFacts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outcome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceOutcome"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimateDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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"}}]}}]} as unknown as DocumentNode<InvoiceReceiptFragment, unknown>;
823
+ export const InvoiceShipmentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InvoiceShipments"},"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":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipmentsCount"}}]}}]} as unknown as DocumentNode<InvoiceShipmentsQuery, InvoiceShipmentsQueryVariables>;
824
+ export const InvoiceEstimatePageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InvoiceEstimatePage"},"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":"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":"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":"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<InvoiceEstimatePageQuery, InvoiceEstimatePageQueryVariables>;
825
+ export const InvoiceEstimateVersionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InvoiceEstimateVersion"},"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":"validityAtRead"}},{"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":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"lines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"disposition"}},{"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":"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":"inclusionParentLineId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"completeRelativeToDeclarations"}},{"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"}}]}}]}}]}}]}}]} as unknown as DocumentNode<InvoiceEstimateVersionQuery, InvoiceEstimateVersionQueryVariables>;
826
+ export const InvoiceStructuralPreviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InvoiceStructuralPreview"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PreviewMtwFreightInvoiceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"previewMtwFreightInvoice"},"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":"methodVersion"}},{"kind":"Field","name":{"kind":"Name","value":"recordable"}},{"kind":"Field","name":{"kind":"Name","value":"blockers"}},{"kind":"Field","name":{"kind":"Name","value":"estimate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceEstimatePin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceSourceFacts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outcome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceOutcome"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimateDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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"}}]}}]} as unknown as DocumentNode<InvoiceStructuralPreviewQuery, InvoiceStructuralPreviewQueryVariables>;
827
+ export const RecordInvoiceComparisonDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RecordInvoiceComparison"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CompareMtwFreightInvoiceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"compareMtwFreightInvoice"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceReceipt"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceReceipt"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceComparison"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceIdentityId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"previousComparisonId"}},{"kind":"Field","name":{"kind":"Name","value":"correctionReason"}},{"kind":"Field","name":{"kind":"Name","value":"methodVersion"}},{"kind":"Field","name":{"kind":"Name","value":"idempotencyKey"}},{"kind":"Field","name":{"kind":"Name","value":"requestFingerprint"}},{"kind":"Field","name":{"kind":"Name","value":"estimate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceEstimatePin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceSourceFacts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outcome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceOutcome"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimateDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"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"}}]}}]} as unknown as DocumentNode<RecordInvoiceComparisonMutation, RecordInvoiceComparisonMutationVariables>;
828
+ export const InvoiceComparisonExactDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InvoiceComparisonExact"},"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":"mtwFreightInvoiceComparison"},"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":"FragmentSpread","name":{"kind":"Name","value":"InvoiceReceipt"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceReceipt"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceComparison"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceIdentityId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"previousComparisonId"}},{"kind":"Field","name":{"kind":"Name","value":"correctionReason"}},{"kind":"Field","name":{"kind":"Name","value":"methodVersion"}},{"kind":"Field","name":{"kind":"Name","value":"idempotencyKey"}},{"kind":"Field","name":{"kind":"Name","value":"requestFingerprint"}},{"kind":"Field","name":{"kind":"Name","value":"estimate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceEstimatePin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceSourceFacts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outcome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceOutcome"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimateDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"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"}}]}}]} as unknown as DocumentNode<InvoiceComparisonExactQuery, InvoiceComparisonExactQueryVariables>;
829
+ export const InvoiceComparisonHistoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InvoiceComparisonHistory"},"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":"invoiceIdentityId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"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":"mtwFreightInvoiceComparisonPage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"shipmentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"invoiceIdentityId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"invoiceIdentityId"}}},{"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":"FragmentSpread","name":{"kind":"Name","value":"InvoiceReceipt"}}]}},{"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"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceReceipt"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceComparison"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceIdentityId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"previousComparisonId"}},{"kind":"Field","name":{"kind":"Name","value":"correctionReason"}},{"kind":"Field","name":{"kind":"Name","value":"methodVersion"}},{"kind":"Field","name":{"kind":"Name","value":"idempotencyKey"}},{"kind":"Field","name":{"kind":"Name","value":"requestFingerprint"}},{"kind":"Field","name":{"kind":"Name","value":"estimate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceEstimatePin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceSourceFacts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outcome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceOutcome"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimateDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"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"}}]}}]} as unknown as DocumentNode<InvoiceComparisonHistoryQuery, InvoiceComparisonHistoryQueryVariables>;
830
+ export const RecoverInvoiceComparisonDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"RecoverInvoiceComparison"},"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":"requestKey"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mtwFreightInvoiceComparisonByRequestKey"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"shipmentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"shipmentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"requestKey"},"value":{"kind":"Variable","name":{"kind":"Name","value":"requestKey"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceReceipt"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceEstimatePin"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceEstimatePin"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"estimateReference"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"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":"acceptance"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceSourceFacts"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceFacts"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaVersion"}},{"kind":"Field","name":{"kind":"Name","value":"supplierReference"}},{"kind":"Field","name":{"kind":"Name","value":"supplierLabel"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceReference"}},{"kind":"Field","name":{"kind":"Name","value":"sourceRevision"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"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":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceOutcome"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceOutcome"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"allLinesMatched"}},{"kind":"Field","name":{"kind":"Name","value":"missingExpectedLineIds"}},{"kind":"Field","name":{"kind":"Name","value":"unknownExpectedCoverage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flag"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invoiceLineId"}},{"kind":"Field","name":{"kind":"Name","value":"estimateLineId"}},{"kind":"Field","name":{"kind":"Name","value":"flags"}},{"kind":"Field","name":{"kind":"Name","value":"reasons"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}}]}},{"kind":"Field","name":{"kind":"Name","value":"comparableSubtotals"},"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":"estimateMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceMinor"}},{"kind":"Field","name":{"kind":"Name","value":"deltaMinor"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceLineIds"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightSubtotal"}},"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":"FragmentDefinition","name":{"kind":"Name","value":"InvoiceReceipt"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MtwFreightInvoiceComparison"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipmentId"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceIdentityId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"previousComparisonId"}},{"kind":"Field","name":{"kind":"Name","value":"correctionReason"}},{"kind":"Field","name":{"kind":"Name","value":"methodVersion"}},{"kind":"Field","name":{"kind":"Name","value":"idempotencyKey"}},{"kind":"Field","name":{"kind":"Name","value":"requestFingerprint"}},{"kind":"Field","name":{"kind":"Name","value":"estimate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceEstimatePin"}}]}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceSourceFacts"}}]}},{"kind":"Field","name":{"kind":"Name","value":"outcome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceOutcome"}}]}},{"kind":"Field","name":{"kind":"Name","value":"estimateDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDeclaredSubtotals"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InvoiceDeclaredSubtotal"}}]}},{"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"}}]}}]} as unknown as DocumentNode<RecoverInvoiceComparisonQuery, RecoverInvoiceComparisonQueryVariables>;