@burdenoff/microfe-movethewheels 2026.1016.2 → 2026.1016.3
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.
- package/dist/components/freight-cost/FreightCommercialEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
- package/dist/components/freight-cost/FreightDraftForm.js +106 -91
- package/dist/components/freight-cost/FreightHistory.js +42 -40
- package/dist/generated/freight-cost-operations.d.ts +959 -0
- package/dist/hooks/useFreightRecoveryAction.js +20 -20
- package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
- package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
- package/dist/pages/FreightEstimatePage.js +96 -92
- package/dist/src/generated/freight-cost-operations.js +495 -6
- package/dist/utils/freightAcknowledgement.js +6 -5
- package/dist/utils/freightCommercial.js +194 -0
- package/dist/utils/freightRecovery.js +22 -22
- package/package.json +4 -3
- package/src/generated/freight-cost-operations.ts +831 -1
- package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
- package/src/movethewheels/pages/FreightEstimatePage.tsx +14 -7
- package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
- package/src/movethewheels/utils/freightCommercial.ts +388 -0
- package/src/movethewheels/utils/freightRecovery.ts +6 -2
- package/src/operations/freight-cost/commercial.graphql +483 -0
|
@@ -56,6 +56,276 @@ export type MtwFreightCategory =
|
|
|
56
56
|
| 'PRE_CARRIAGE'
|
|
57
57
|
| 'TAX_ESTIMATE';
|
|
58
58
|
|
|
59
|
+
export type MtwFreightCommercialCapture = {
|
|
60
|
+
__typename?: 'MtwFreightCommercialCapture';
|
|
61
|
+
cargo: MtwFreightCommercialCargoFact;
|
|
62
|
+
carrier: MtwFreightCommercialCarrierFact;
|
|
63
|
+
destination: MtwFreightCommercialLocationFact;
|
|
64
|
+
equipment: MtwFreightCommercialEquipmentFact;
|
|
65
|
+
origin: MtwFreightCommercialLocationFact;
|
|
66
|
+
ownerLegs: Array<MtwFreightCommercialOwnerLeg>;
|
|
67
|
+
ownerShipment: MtwFreightCommercialShipment;
|
|
68
|
+
schemaVersion: Scalars['Int']['output'];
|
|
69
|
+
selectedLegs: Array<MtwFreightCommercialLegPin>;
|
|
70
|
+
service: MtwFreightCommercialServiceFact;
|
|
71
|
+
volume: MtwFreightCommercialVolumeFact;
|
|
72
|
+
weight: MtwFreightCommercialWeightFact;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type MtwFreightCommercialCaptureInput = {
|
|
76
|
+
cargo: MtwFreightCommercialCargoFactInput;
|
|
77
|
+
carrier: MtwFreightCommercialCarrierFactInput;
|
|
78
|
+
destination: MtwFreightCommercialLocationFactInput;
|
|
79
|
+
equipment: MtwFreightCommercialEquipmentFactInput;
|
|
80
|
+
origin: MtwFreightCommercialLocationFactInput;
|
|
81
|
+
schemaVersion: Scalars['Int']['input'];
|
|
82
|
+
selectedLegs: Array<MtwFreightCommercialLegPinInput>;
|
|
83
|
+
service: MtwFreightCommercialServiceFactInput;
|
|
84
|
+
volume: MtwFreightCommercialVolumeFactInput;
|
|
85
|
+
weight: MtwFreightCommercialWeightFactInput;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type MtwFreightCommercialCargo = {
|
|
89
|
+
__typename?: 'MtwFreightCommercialCargo';
|
|
90
|
+
classificationLabel: Scalars['String']['output'];
|
|
91
|
+
description: Scalars['String']['output'];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type MtwFreightCommercialCargoFact = {
|
|
95
|
+
__typename?: 'MtwFreightCommercialCargoFact';
|
|
96
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
97
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
98
|
+
status: MtwFreightCommercialStatus;
|
|
99
|
+
value?: Maybe<MtwFreightCommercialCargo>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type MtwFreightCommercialCargoFactInput = {
|
|
103
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
104
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
105
|
+
status: MtwFreightCommercialStatus;
|
|
106
|
+
value?: InputMaybe<MtwFreightCommercialCargoInput>;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export type MtwFreightCommercialCargoInput = {
|
|
110
|
+
classificationLabel: Scalars['String']['input'];
|
|
111
|
+
description: Scalars['String']['input'];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type MtwFreightCommercialCarrier = {
|
|
115
|
+
__typename?: 'MtwFreightCommercialCarrier';
|
|
116
|
+
label: Scalars['String']['output'];
|
|
117
|
+
reference: Scalars['String']['output'];
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export type MtwFreightCommercialCarrierFact = {
|
|
121
|
+
__typename?: 'MtwFreightCommercialCarrierFact';
|
|
122
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
123
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
124
|
+
status: MtwFreightCommercialStatus;
|
|
125
|
+
value?: Maybe<MtwFreightCommercialCarrier>;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export type MtwFreightCommercialCarrierFactInput = {
|
|
129
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
130
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
131
|
+
status: MtwFreightCommercialStatus;
|
|
132
|
+
value?: InputMaybe<MtwFreightCommercialCarrierInput>;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type MtwFreightCommercialCarrierInput = {
|
|
136
|
+
label: Scalars['String']['input'];
|
|
137
|
+
reference: Scalars['String']['input'];
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export type MtwFreightCommercialEquipment = {
|
|
141
|
+
__typename?: 'MtwFreightCommercialEquipment';
|
|
142
|
+
count: Scalars['Int']['output'];
|
|
143
|
+
typeLabel: Scalars['String']['output'];
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export type MtwFreightCommercialEquipmentFact = {
|
|
147
|
+
__typename?: 'MtwFreightCommercialEquipmentFact';
|
|
148
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
149
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
150
|
+
status: MtwFreightCommercialStatus;
|
|
151
|
+
value?: Maybe<MtwFreightCommercialEquipment>;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export type MtwFreightCommercialEquipmentFactInput = {
|
|
155
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
156
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
157
|
+
status: MtwFreightCommercialStatus;
|
|
158
|
+
value?: InputMaybe<MtwFreightCommercialEquipmentInput>;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type MtwFreightCommercialEquipmentInput = {
|
|
162
|
+
count: Scalars['Int']['input'];
|
|
163
|
+
typeLabel: Scalars['String']['input'];
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type MtwFreightCommercialLegPin = {
|
|
167
|
+
__typename?: 'MtwFreightCommercialLegPin';
|
|
168
|
+
expectedUpdatedAt: Scalars['DateTime']['output'];
|
|
169
|
+
id: Scalars['ID']['output'];
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export type MtwFreightCommercialLegPinInput = {
|
|
173
|
+
expectedUpdatedAt: Scalars['DateTime']['input'];
|
|
174
|
+
id: Scalars['ID']['input'];
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export type MtwFreightCommercialLink = {
|
|
178
|
+
__typename?: 'MtwFreightCommercialLink';
|
|
179
|
+
fileId: Scalars['ID']['output'];
|
|
180
|
+
versionId: Scalars['ID']['output'];
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export type MtwFreightCommercialLinkInput = {
|
|
184
|
+
fileId: Scalars['ID']['input'];
|
|
185
|
+
versionId: Scalars['ID']['input'];
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export type MtwFreightCommercialLocation = {
|
|
189
|
+
__typename?: 'MtwFreightCommercialLocation';
|
|
190
|
+
jurisdictionLabel?: Maybe<Scalars['String']['output']>;
|
|
191
|
+
kind: MtwFreightLocationKind;
|
|
192
|
+
label: Scalars['String']['output'];
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export type MtwFreightCommercialLocationFact = {
|
|
196
|
+
__typename?: 'MtwFreightCommercialLocationFact';
|
|
197
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
198
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
199
|
+
status: MtwFreightCommercialStatus;
|
|
200
|
+
value?: Maybe<MtwFreightCommercialLocation>;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export type MtwFreightCommercialLocationFactInput = {
|
|
204
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
205
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
206
|
+
status: MtwFreightCommercialStatus;
|
|
207
|
+
value?: InputMaybe<MtwFreightCommercialLocationInput>;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export type MtwFreightCommercialLocationInput = {
|
|
211
|
+
jurisdictionLabel?: InputMaybe<Scalars['String']['input']>;
|
|
212
|
+
kind: MtwFreightLocationKind;
|
|
213
|
+
label: Scalars['String']['input'];
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export type MtwFreightCommercialOwnerLeg = {
|
|
217
|
+
__typename?: 'MtwFreightCommercialOwnerLeg';
|
|
218
|
+
carrierId?: Maybe<Scalars['ID']['output']>;
|
|
219
|
+
carrierName?: Maybe<Scalars['String']['output']>;
|
|
220
|
+
containerCount?: Maybe<Scalars['Int']['output']>;
|
|
221
|
+
containerType?: Maybe<OceanContainerType>;
|
|
222
|
+
id: Scalars['ID']['output'];
|
|
223
|
+
legNumber: Scalars['Int']['output'];
|
|
224
|
+
mode: TransportMode;
|
|
225
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
226
|
+
volumeCbm?: Maybe<Scalars['Float']['output']>;
|
|
227
|
+
weightKg?: Maybe<Scalars['Float']['output']>;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export type MtwFreightCommercialProvenance = {
|
|
231
|
+
__typename?: 'MtwFreightCommercialProvenance';
|
|
232
|
+
evidenceLinks: Array<MtwFreightCommercialLink>;
|
|
233
|
+
observedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
234
|
+
sourceReference: Scalars['String']['output'];
|
|
235
|
+
sourceRevision: Scalars['String']['output'];
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
export type MtwFreightCommercialProvenanceInput = {
|
|
239
|
+
evidenceLinks: Array<MtwFreightCommercialLinkInput>;
|
|
240
|
+
observedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
241
|
+
sourceReference: Scalars['String']['input'];
|
|
242
|
+
sourceRevision: Scalars['String']['input'];
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export type MtwFreightCommercialServiceFact = {
|
|
246
|
+
__typename?: 'MtwFreightCommercialServiceFact';
|
|
247
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
248
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
249
|
+
status: MtwFreightCommercialStatus;
|
|
250
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export type MtwFreightCommercialServiceFactInput = {
|
|
254
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
255
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
256
|
+
status: MtwFreightCommercialStatus;
|
|
257
|
+
value?: InputMaybe<Scalars['String']['input']>;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export type MtwFreightCommercialShipment = {
|
|
261
|
+
__typename?: 'MtwFreightCommercialShipment';
|
|
262
|
+
primaryMode: TransportMode;
|
|
263
|
+
shipmentId: Scalars['ID']['output'];
|
|
264
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** Reported commercial context only; no quote acceptance or completeness authority. */
|
|
268
|
+
export type MtwFreightCommercialStatus =
|
|
269
|
+
| 'NOT_APPLICABLE'
|
|
270
|
+
| 'SOURCED'
|
|
271
|
+
| 'UNKNOWN';
|
|
272
|
+
|
|
273
|
+
export type MtwFreightCommercialVolume = {
|
|
274
|
+
__typename?: 'MtwFreightCommercialVolume';
|
|
275
|
+
amount: Scalars['String']['output'];
|
|
276
|
+
unit: MtwFreightVolumeUnit;
|
|
277
|
+
zeroReason?: Maybe<Scalars['String']['output']>;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export type MtwFreightCommercialVolumeFact = {
|
|
281
|
+
__typename?: 'MtwFreightCommercialVolumeFact';
|
|
282
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
283
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
284
|
+
status: MtwFreightCommercialStatus;
|
|
285
|
+
value?: Maybe<MtwFreightCommercialVolume>;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
export type MtwFreightCommercialVolumeFactInput = {
|
|
289
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
290
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
291
|
+
status: MtwFreightCommercialStatus;
|
|
292
|
+
value?: InputMaybe<MtwFreightCommercialVolumeInput>;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export type MtwFreightCommercialVolumeInput = {
|
|
296
|
+
amount: Scalars['String']['input'];
|
|
297
|
+
unit: MtwFreightVolumeUnit;
|
|
298
|
+
zeroReason?: InputMaybe<Scalars['String']['input']>;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export type MtwFreightCommercialWeight = {
|
|
302
|
+
__typename?: 'MtwFreightCommercialWeight';
|
|
303
|
+
amount: Scalars['String']['output'];
|
|
304
|
+
unit: MtwFreightWeightUnit;
|
|
305
|
+
zeroReason?: Maybe<Scalars['String']['output']>;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export type MtwFreightCommercialWeightFact = {
|
|
309
|
+
__typename?: 'MtwFreightCommercialWeightFact';
|
|
310
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
311
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
312
|
+
status: MtwFreightCommercialStatus;
|
|
313
|
+
value?: Maybe<MtwFreightCommercialWeight>;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export type MtwFreightCommercialWeightFactInput = {
|
|
317
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
318
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
319
|
+
status: MtwFreightCommercialStatus;
|
|
320
|
+
value?: InputMaybe<MtwFreightCommercialWeightInput>;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
export type MtwFreightCommercialWeightInput = {
|
|
324
|
+
amount: Scalars['String']['input'];
|
|
325
|
+
unit: MtwFreightWeightUnit;
|
|
326
|
+
zeroReason?: InputMaybe<Scalars['String']['input']>;
|
|
327
|
+
};
|
|
328
|
+
|
|
59
329
|
/** A declared currency/scale convention, not automatic ISO verification. */
|
|
60
330
|
export type MtwFreightCurrency = {
|
|
61
331
|
__typename?: 'MtwFreightCurrency';
|
|
@@ -87,6 +357,7 @@ export type MtwFreightEstimatePage = {
|
|
|
87
357
|
export type MtwFreightEstimateVersion = {
|
|
88
358
|
__typename?: 'MtwFreightEstimateVersion';
|
|
89
359
|
actorProvenance: Scalars['String']['output'];
|
|
360
|
+
commercialCapture?: Maybe<MtwFreightCommercialCapture>;
|
|
90
361
|
createdBy: Scalars['ID']['output'];
|
|
91
362
|
estimateReference: Scalars['String']['output'];
|
|
92
363
|
evidence: Array<MtwContainerEvidence>;
|
|
@@ -213,6 +484,13 @@ export type MtwFreightLineTotal = {
|
|
|
213
484
|
roundedToZero: Scalars['Boolean']['output'];
|
|
214
485
|
};
|
|
215
486
|
|
|
487
|
+
export type MtwFreightLocationKind =
|
|
488
|
+
| 'ADDRESS_LABEL'
|
|
489
|
+
| 'CUSTOM_LABEL'
|
|
490
|
+
| 'PORT_LABEL'
|
|
491
|
+
| 'POSTCODE_LABEL'
|
|
492
|
+
| 'TERMINAL_LABEL';
|
|
493
|
+
|
|
216
494
|
/** Completeness applies only to the recorded required-charge declarations, not all possible charges. */
|
|
217
495
|
export type MtwFreightPreview = {
|
|
218
496
|
__typename?: 'MtwFreightPreview';
|
|
@@ -272,15 +550,45 @@ export type MtwFreightSubtotal = {
|
|
|
272
550
|
totalAmountMinor?: Maybe<Scalars['String']['output']>;
|
|
273
551
|
};
|
|
274
552
|
|
|
553
|
+
export type MtwFreightVolumeUnit =
|
|
554
|
+
| 'FT3'
|
|
555
|
+
| 'M3';
|
|
556
|
+
|
|
557
|
+
export type MtwFreightWeightUnit =
|
|
558
|
+
| 'KG'
|
|
559
|
+
| 'LB'
|
|
560
|
+
| 'TONNE';
|
|
561
|
+
|
|
275
562
|
export type MtwShipment = {
|
|
276
563
|
__typename?: 'MtwShipment';
|
|
277
564
|
id: Scalars['ID']['output'];
|
|
565
|
+
legs: Array<MtwShipmentLeg>;
|
|
278
566
|
primaryMode: TransportMode;
|
|
279
567
|
shipmentNumber: Scalars['String']['output'];
|
|
280
568
|
status: ShipmentStatus;
|
|
281
569
|
updatedAt: Scalars['DateTime']['output'];
|
|
282
570
|
};
|
|
283
571
|
|
|
572
|
+
|
|
573
|
+
export type MtwShipmentLegsArgs = {
|
|
574
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
export type MtwShipmentLeg = {
|
|
578
|
+
__typename?: 'MtwShipmentLeg';
|
|
579
|
+
carrierId?: Maybe<Scalars['ID']['output']>;
|
|
580
|
+
carrierName?: Maybe<Scalars['String']['output']>;
|
|
581
|
+
containerCount?: Maybe<Scalars['Int']['output']>;
|
|
582
|
+
containerType?: Maybe<OceanContainerType>;
|
|
583
|
+
id: Scalars['ID']['output'];
|
|
584
|
+
legNumber: Scalars['Int']['output'];
|
|
585
|
+
mode: TransportMode;
|
|
586
|
+
shipmentId: Scalars['ID']['output'];
|
|
587
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
588
|
+
volumeCbm?: Maybe<Scalars['Float']['output']>;
|
|
589
|
+
weightKg?: Maybe<Scalars['Float']['output']>;
|
|
590
|
+
};
|
|
591
|
+
|
|
284
592
|
export type Mutation = {
|
|
285
593
|
__typename?: 'Mutation';
|
|
286
594
|
saveMtwFreightEstimate: MtwFreightEstimateVersion;
|
|
@@ -291,6 +599,12 @@ export type MutationSaveMtwFreightEstimateArgs = {
|
|
|
291
599
|
input: SaveMtwFreightEstimateInput;
|
|
292
600
|
};
|
|
293
601
|
|
|
602
|
+
export type OceanContainerType =
|
|
603
|
+
| 'FCL_20FT'
|
|
604
|
+
| 'FCL_40FT'
|
|
605
|
+
| 'FCL_40FT_HC'
|
|
606
|
+
| 'LCL';
|
|
607
|
+
|
|
294
608
|
export type PaginationInput = {
|
|
295
609
|
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
296
610
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -342,6 +656,7 @@ export type QueryShipmentsCountArgs = {
|
|
|
342
656
|
};
|
|
343
657
|
|
|
344
658
|
export type SaveMtwFreightEstimateInput = {
|
|
659
|
+
commercialCapture?: InputMaybe<MtwFreightCommercialCaptureInput>;
|
|
345
660
|
estimateReference: Scalars['String']['input'];
|
|
346
661
|
evidence: Array<MtwContainerEvidenceInput>;
|
|
347
662
|
expectedPreviousVersionId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -379,6 +694,31 @@ export type TransportMode =
|
|
|
379
694
|
| 'RAIL'
|
|
380
695
|
| 'ROAD';
|
|
381
696
|
|
|
697
|
+
export type CommercialProvenanceFragment = { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> };
|
|
698
|
+
|
|
699
|
+
export type SaveFreightCommercialCostsMutationVariables = Exact<{
|
|
700
|
+
input: SaveMtwFreightEstimateInput;
|
|
701
|
+
}>;
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
export type SaveFreightCommercialCostsMutation = { __typename?: 'Mutation', saveMtwFreightEstimate: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, commercialCapture?: { __typename?: 'MtwFreightCommercialCapture', schemaVersion: number, selectedLegs: Array<{ __typename?: 'MtwFreightCommercialLegPin', id: string, expectedUpdatedAt: string }>, origin: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, destination: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, carrier: { __typename?: 'MtwFreightCommercialCarrierFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCarrier', reference: string, label: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, service: { __typename?: 'MtwFreightCommercialServiceFact', status: MtwFreightCommercialStatus, value?: string | null, reason?: string | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, cargo: { __typename?: 'MtwFreightCommercialCargoFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCargo', classificationLabel: string, description: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, weight: { __typename?: 'MtwFreightCommercialWeightFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialWeight', amount: string, unit: MtwFreightWeightUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, volume: { __typename?: 'MtwFreightCommercialVolumeFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialVolume', amount: string, unit: MtwFreightVolumeUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, equipment: { __typename?: 'MtwFreightCommercialEquipmentFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialEquipment', typeLabel: string, count: number } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, ownerShipment: { __typename?: 'MtwFreightCommercialShipment', shipmentId: string, updatedAt: string, primaryMode: TransportMode }, ownerLegs: Array<{ __typename?: 'MtwFreightCommercialOwnerLeg', id: string, updatedAt: string, legNumber: number, mode: TransportMode, carrierId?: string | null, carrierName?: string | null, weightKg?: number | null, volumeCbm?: number | null, containerType?: OceanContainerType | null, containerCount?: number | null }> } | null } };
|
|
705
|
+
|
|
706
|
+
export type FreightCommercialVersionQueryVariables = Exact<{
|
|
707
|
+
shipmentId: Scalars['ID']['input'];
|
|
708
|
+
id: Scalars['ID']['input'];
|
|
709
|
+
}>;
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
export type FreightCommercialVersionQuery = { __typename?: 'Query', mtwFreightEstimateVersion: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, commercialCapture?: { __typename?: 'MtwFreightCommercialCapture', schemaVersion: number, selectedLegs: Array<{ __typename?: 'MtwFreightCommercialLegPin', id: string, expectedUpdatedAt: string }>, origin: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, destination: { __typename?: 'MtwFreightCommercialLocationFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialLocation', kind: MtwFreightLocationKind, label: string, jurisdictionLabel?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, carrier: { __typename?: 'MtwFreightCommercialCarrierFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCarrier', reference: string, label: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, service: { __typename?: 'MtwFreightCommercialServiceFact', status: MtwFreightCommercialStatus, value?: string | null, reason?: string | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, cargo: { __typename?: 'MtwFreightCommercialCargoFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialCargo', classificationLabel: string, description: string } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, weight: { __typename?: 'MtwFreightCommercialWeightFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialWeight', amount: string, unit: MtwFreightWeightUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, volume: { __typename?: 'MtwFreightCommercialVolumeFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialVolume', amount: string, unit: MtwFreightVolumeUnit, zeroReason?: string | null } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, equipment: { __typename?: 'MtwFreightCommercialEquipmentFact', status: MtwFreightCommercialStatus, reason?: string | null, value?: { __typename?: 'MtwFreightCommercialEquipment', typeLabel: string, count: number } | null, provenance?: { __typename?: 'MtwFreightCommercialProvenance', sourceReference: string, sourceRevision: string, observedAt?: string | null, evidenceLinks: Array<{ __typename?: 'MtwFreightCommercialLink', fileId: string, versionId: string }> } | null }, ownerShipment: { __typename?: 'MtwFreightCommercialShipment', shipmentId: string, updatedAt: string, primaryMode: TransportMode }, ownerLegs: Array<{ __typename?: 'MtwFreightCommercialOwnerLeg', id: string, updatedAt: string, legNumber: number, mode: TransportMode, carrierId?: string | null, carrierName?: string | null, weightKg?: number | null, volumeCbm?: number | null, containerType?: OceanContainerType | null, containerCount?: number | null }> } | null } };
|
|
713
|
+
|
|
714
|
+
export type FreightCommercialLegsQueryVariables = Exact<{
|
|
715
|
+
shipmentId: Scalars['ID']['input'];
|
|
716
|
+
pagination: PaginationInput;
|
|
717
|
+
}>;
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
export type FreightCommercialLegsQuery = { __typename?: 'Query', shipment?: { __typename?: 'MtwShipment', id: string, legs: Array<{ __typename?: 'MtwShipmentLeg', id: string, shipmentId: string, updatedAt: string, legNumber: number, mode: TransportMode, carrierId?: string | null, carrierName?: string | null, weightKg?: number | null, volumeCbm?: number | null, containerType?: OceanContainerType | null, containerCount?: number | null }> } | null };
|
|
721
|
+
|
|
382
722
|
export type FreightShipmentsQueryVariables = Exact<{
|
|
383
723
|
pagination?: InputMaybe<PaginationInput>;
|
|
384
724
|
}>;
|
|
@@ -424,7 +764,497 @@ export type SaveFreightCostsMutationVariables = Exact<{
|
|
|
424
764
|
|
|
425
765
|
export type SaveFreightCostsMutation = { __typename?: 'Mutation', saveMtwFreightEstimate: { __typename?: 'MtwFreightEstimateVersion', id: string, shipmentId: string, estimateReference: string, version: number, previousVersionId?: string | null, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, validityAtRead: string, shipmentCapture: { __typename?: 'MtwFreightShipmentCapture', shipmentNumber: string, primaryMode: string, capturedUpdatedAt: string }, facts: { __typename?: 'MtwFreightFacts', kind: MtwFreightKind, title: string, commercialScope: string, sourceReference: string, sourceRevision: string, pricingAt: string, quotedAt?: string | null, validFrom?: string | null, validUntil?: string | null, rounding: MtwFreightRounding, reportingCurrency?: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } | null, lines: Array<{ __typename?: 'MtwFreightLine', id: string, category: MtwFreightCategory, description: string, payerReference?: string | null, payerLabel?: string | null, disposition: MtwFreightDisposition, inclusionParentLineId?: string | null, amountBasis: MtwFreightAmountBasis, quantity?: string | null, unit?: string | null, unitRateMajor?: string | null, amountMinor?: string | null, zeroReason?: string | null, sourceReference?: string | null, sourceRevision?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, requirements: Array<{ __typename?: 'MtwFreightRequirement', category: MtwFreightCategory, status: MtwFreightRequirementStatus, reason?: string | null, sourceReference?: string | null, sourceRevision?: string | null }>, fx: Array<{ __typename?: 'MtwFreightFx', rate: string, observedAt: string, effectiveFrom: string, effectiveUntil: string, sourceReference: string, sourceRevision: string, fromCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number }, toCurrency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }> }, totals: { __typename?: 'MtwFreightPreview', completeRelativeToDeclarations: boolean, reportingTotalMinor?: string | null, subtotals: Array<{ __typename?: 'MtwFreightSubtotal', payerReference?: string | null, payerLabel?: string | null, knownAmountMinor: string, totalAmountMinor?: string | null, currency: { __typename?: 'MtwFreightCurrency', code: string, minorUnitDigits: number } }>, lines: Array<{ __typename?: 'MtwFreightLineTotal', id: string, nativeAmountMinor?: string | null, reportingAmountMinor?: string | null, roundedToZero: boolean }>, reasons: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }>, warnings: Array<{ __typename?: 'MtwFreightReason', code: string, lineId?: string | null, detail: string }> }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
|
|
426
766
|
|
|
427
|
-
|
|
767
|
+
export const CommercialProvenanceFragmentDoc = gql`
|
|
768
|
+
fragment CommercialProvenance on MtwFreightCommercialProvenance {
|
|
769
|
+
sourceReference
|
|
770
|
+
sourceRevision
|
|
771
|
+
observedAt
|
|
772
|
+
evidenceLinks {
|
|
773
|
+
fileId
|
|
774
|
+
versionId
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
`;
|
|
778
|
+
export const SaveFreightCommercialCostsDocument = gql`
|
|
779
|
+
mutation SaveFreightCommercialCosts($input: SaveMtwFreightEstimateInput!) {
|
|
780
|
+
saveMtwFreightEstimate(input: $input) {
|
|
781
|
+
id
|
|
782
|
+
shipmentId
|
|
783
|
+
estimateReference
|
|
784
|
+
version
|
|
785
|
+
previousVersionId
|
|
786
|
+
shipmentCapture {
|
|
787
|
+
shipmentNumber
|
|
788
|
+
primaryMode
|
|
789
|
+
capturedUpdatedAt
|
|
790
|
+
}
|
|
791
|
+
facts {
|
|
792
|
+
kind
|
|
793
|
+
title
|
|
794
|
+
commercialScope
|
|
795
|
+
sourceReference
|
|
796
|
+
sourceRevision
|
|
797
|
+
pricingAt
|
|
798
|
+
quotedAt
|
|
799
|
+
validFrom
|
|
800
|
+
validUntil
|
|
801
|
+
reportingCurrency {
|
|
802
|
+
code
|
|
803
|
+
minorUnitDigits
|
|
804
|
+
}
|
|
805
|
+
rounding
|
|
806
|
+
lines {
|
|
807
|
+
id
|
|
808
|
+
category
|
|
809
|
+
description
|
|
810
|
+
payerReference
|
|
811
|
+
payerLabel
|
|
812
|
+
disposition
|
|
813
|
+
inclusionParentLineId
|
|
814
|
+
currency {
|
|
815
|
+
code
|
|
816
|
+
minorUnitDigits
|
|
817
|
+
}
|
|
818
|
+
amountBasis
|
|
819
|
+
quantity
|
|
820
|
+
unit
|
|
821
|
+
unitRateMajor
|
|
822
|
+
amountMinor
|
|
823
|
+
zeroReason
|
|
824
|
+
sourceReference
|
|
825
|
+
sourceRevision
|
|
826
|
+
}
|
|
827
|
+
requirements {
|
|
828
|
+
category
|
|
829
|
+
status
|
|
830
|
+
reason
|
|
831
|
+
sourceReference
|
|
832
|
+
sourceRevision
|
|
833
|
+
}
|
|
834
|
+
fx {
|
|
835
|
+
fromCurrency {
|
|
836
|
+
code
|
|
837
|
+
minorUnitDigits
|
|
838
|
+
}
|
|
839
|
+
toCurrency {
|
|
840
|
+
code
|
|
841
|
+
minorUnitDigits
|
|
842
|
+
}
|
|
843
|
+
rate
|
|
844
|
+
observedAt
|
|
845
|
+
effectiveFrom
|
|
846
|
+
effectiveUntil
|
|
847
|
+
sourceReference
|
|
848
|
+
sourceRevision
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
totals {
|
|
852
|
+
completeRelativeToDeclarations
|
|
853
|
+
reportingTotalMinor
|
|
854
|
+
subtotals {
|
|
855
|
+
currency {
|
|
856
|
+
code
|
|
857
|
+
minorUnitDigits
|
|
858
|
+
}
|
|
859
|
+
payerReference
|
|
860
|
+
payerLabel
|
|
861
|
+
knownAmountMinor
|
|
862
|
+
totalAmountMinor
|
|
863
|
+
}
|
|
864
|
+
lines {
|
|
865
|
+
id
|
|
866
|
+
nativeAmountMinor
|
|
867
|
+
reportingAmountMinor
|
|
868
|
+
roundedToZero
|
|
869
|
+
}
|
|
870
|
+
reasons {
|
|
871
|
+
code
|
|
872
|
+
lineId
|
|
873
|
+
detail
|
|
874
|
+
}
|
|
875
|
+
warnings {
|
|
876
|
+
code
|
|
877
|
+
lineId
|
|
878
|
+
detail
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
evidence {
|
|
882
|
+
fileId
|
|
883
|
+
versionId
|
|
884
|
+
sha256Hash
|
|
885
|
+
checkedAt
|
|
886
|
+
}
|
|
887
|
+
recordedAt
|
|
888
|
+
createdBy
|
|
889
|
+
actorProvenance
|
|
890
|
+
onBehalfOf
|
|
891
|
+
validityAtRead
|
|
892
|
+
commercialCapture {
|
|
893
|
+
schemaVersion
|
|
894
|
+
selectedLegs {
|
|
895
|
+
id
|
|
896
|
+
expectedUpdatedAt
|
|
897
|
+
}
|
|
898
|
+
origin {
|
|
899
|
+
status
|
|
900
|
+
value {
|
|
901
|
+
kind
|
|
902
|
+
label
|
|
903
|
+
jurisdictionLabel
|
|
904
|
+
}
|
|
905
|
+
reason
|
|
906
|
+
provenance {
|
|
907
|
+
...CommercialProvenance
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
destination {
|
|
911
|
+
status
|
|
912
|
+
value {
|
|
913
|
+
kind
|
|
914
|
+
label
|
|
915
|
+
jurisdictionLabel
|
|
916
|
+
}
|
|
917
|
+
reason
|
|
918
|
+
provenance {
|
|
919
|
+
...CommercialProvenance
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
carrier {
|
|
923
|
+
status
|
|
924
|
+
value {
|
|
925
|
+
reference
|
|
926
|
+
label
|
|
927
|
+
}
|
|
928
|
+
reason
|
|
929
|
+
provenance {
|
|
930
|
+
...CommercialProvenance
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
service {
|
|
934
|
+
status
|
|
935
|
+
value
|
|
936
|
+
reason
|
|
937
|
+
provenance {
|
|
938
|
+
...CommercialProvenance
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
cargo {
|
|
942
|
+
status
|
|
943
|
+
value {
|
|
944
|
+
classificationLabel
|
|
945
|
+
description
|
|
946
|
+
}
|
|
947
|
+
reason
|
|
948
|
+
provenance {
|
|
949
|
+
...CommercialProvenance
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
weight {
|
|
953
|
+
status
|
|
954
|
+
value {
|
|
955
|
+
amount
|
|
956
|
+
unit
|
|
957
|
+
zeroReason
|
|
958
|
+
}
|
|
959
|
+
reason
|
|
960
|
+
provenance {
|
|
961
|
+
...CommercialProvenance
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
volume {
|
|
965
|
+
status
|
|
966
|
+
value {
|
|
967
|
+
amount
|
|
968
|
+
unit
|
|
969
|
+
zeroReason
|
|
970
|
+
}
|
|
971
|
+
reason
|
|
972
|
+
provenance {
|
|
973
|
+
...CommercialProvenance
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
equipment {
|
|
977
|
+
status
|
|
978
|
+
value {
|
|
979
|
+
typeLabel
|
|
980
|
+
count
|
|
981
|
+
}
|
|
982
|
+
reason
|
|
983
|
+
provenance {
|
|
984
|
+
...CommercialProvenance
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
ownerShipment {
|
|
988
|
+
shipmentId
|
|
989
|
+
updatedAt
|
|
990
|
+
primaryMode
|
|
991
|
+
}
|
|
992
|
+
ownerLegs {
|
|
993
|
+
id
|
|
994
|
+
updatedAt
|
|
995
|
+
legNumber
|
|
996
|
+
mode
|
|
997
|
+
carrierId
|
|
998
|
+
carrierName
|
|
999
|
+
weightKg
|
|
1000
|
+
volumeCbm
|
|
1001
|
+
containerType
|
|
1002
|
+
containerCount
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
${CommercialProvenanceFragmentDoc}`;
|
|
1008
|
+
export const FreightCommercialVersionDocument = gql`
|
|
1009
|
+
query FreightCommercialVersion($shipmentId: ID!, $id: ID!) {
|
|
1010
|
+
mtwFreightEstimateVersion(shipmentId: $shipmentId, id: $id) {
|
|
1011
|
+
id
|
|
1012
|
+
shipmentId
|
|
1013
|
+
estimateReference
|
|
1014
|
+
version
|
|
1015
|
+
previousVersionId
|
|
1016
|
+
shipmentCapture {
|
|
1017
|
+
shipmentNumber
|
|
1018
|
+
primaryMode
|
|
1019
|
+
capturedUpdatedAt
|
|
1020
|
+
}
|
|
1021
|
+
facts {
|
|
1022
|
+
kind
|
|
1023
|
+
title
|
|
1024
|
+
commercialScope
|
|
1025
|
+
sourceReference
|
|
1026
|
+
sourceRevision
|
|
1027
|
+
pricingAt
|
|
1028
|
+
quotedAt
|
|
1029
|
+
validFrom
|
|
1030
|
+
validUntil
|
|
1031
|
+
reportingCurrency {
|
|
1032
|
+
code
|
|
1033
|
+
minorUnitDigits
|
|
1034
|
+
}
|
|
1035
|
+
rounding
|
|
1036
|
+
lines {
|
|
1037
|
+
id
|
|
1038
|
+
category
|
|
1039
|
+
description
|
|
1040
|
+
payerReference
|
|
1041
|
+
payerLabel
|
|
1042
|
+
disposition
|
|
1043
|
+
inclusionParentLineId
|
|
1044
|
+
currency {
|
|
1045
|
+
code
|
|
1046
|
+
minorUnitDigits
|
|
1047
|
+
}
|
|
1048
|
+
amountBasis
|
|
1049
|
+
quantity
|
|
1050
|
+
unit
|
|
1051
|
+
unitRateMajor
|
|
1052
|
+
amountMinor
|
|
1053
|
+
zeroReason
|
|
1054
|
+
sourceReference
|
|
1055
|
+
sourceRevision
|
|
1056
|
+
}
|
|
1057
|
+
requirements {
|
|
1058
|
+
category
|
|
1059
|
+
status
|
|
1060
|
+
reason
|
|
1061
|
+
sourceReference
|
|
1062
|
+
sourceRevision
|
|
1063
|
+
}
|
|
1064
|
+
fx {
|
|
1065
|
+
fromCurrency {
|
|
1066
|
+
code
|
|
1067
|
+
minorUnitDigits
|
|
1068
|
+
}
|
|
1069
|
+
toCurrency {
|
|
1070
|
+
code
|
|
1071
|
+
minorUnitDigits
|
|
1072
|
+
}
|
|
1073
|
+
rate
|
|
1074
|
+
observedAt
|
|
1075
|
+
effectiveFrom
|
|
1076
|
+
effectiveUntil
|
|
1077
|
+
sourceReference
|
|
1078
|
+
sourceRevision
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
totals {
|
|
1082
|
+
completeRelativeToDeclarations
|
|
1083
|
+
reportingTotalMinor
|
|
1084
|
+
subtotals {
|
|
1085
|
+
currency {
|
|
1086
|
+
code
|
|
1087
|
+
minorUnitDigits
|
|
1088
|
+
}
|
|
1089
|
+
payerReference
|
|
1090
|
+
payerLabel
|
|
1091
|
+
knownAmountMinor
|
|
1092
|
+
totalAmountMinor
|
|
1093
|
+
}
|
|
1094
|
+
lines {
|
|
1095
|
+
id
|
|
1096
|
+
nativeAmountMinor
|
|
1097
|
+
reportingAmountMinor
|
|
1098
|
+
roundedToZero
|
|
1099
|
+
}
|
|
1100
|
+
reasons {
|
|
1101
|
+
code
|
|
1102
|
+
lineId
|
|
1103
|
+
detail
|
|
1104
|
+
}
|
|
1105
|
+
warnings {
|
|
1106
|
+
code
|
|
1107
|
+
lineId
|
|
1108
|
+
detail
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
evidence {
|
|
1112
|
+
fileId
|
|
1113
|
+
versionId
|
|
1114
|
+
sha256Hash
|
|
1115
|
+
checkedAt
|
|
1116
|
+
}
|
|
1117
|
+
recordedAt
|
|
1118
|
+
createdBy
|
|
1119
|
+
actorProvenance
|
|
1120
|
+
onBehalfOf
|
|
1121
|
+
validityAtRead
|
|
1122
|
+
commercialCapture {
|
|
1123
|
+
schemaVersion
|
|
1124
|
+
selectedLegs {
|
|
1125
|
+
id
|
|
1126
|
+
expectedUpdatedAt
|
|
1127
|
+
}
|
|
1128
|
+
origin {
|
|
1129
|
+
status
|
|
1130
|
+
value {
|
|
1131
|
+
kind
|
|
1132
|
+
label
|
|
1133
|
+
jurisdictionLabel
|
|
1134
|
+
}
|
|
1135
|
+
reason
|
|
1136
|
+
provenance {
|
|
1137
|
+
...CommercialProvenance
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
destination {
|
|
1141
|
+
status
|
|
1142
|
+
value {
|
|
1143
|
+
kind
|
|
1144
|
+
label
|
|
1145
|
+
jurisdictionLabel
|
|
1146
|
+
}
|
|
1147
|
+
reason
|
|
1148
|
+
provenance {
|
|
1149
|
+
...CommercialProvenance
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
carrier {
|
|
1153
|
+
status
|
|
1154
|
+
value {
|
|
1155
|
+
reference
|
|
1156
|
+
label
|
|
1157
|
+
}
|
|
1158
|
+
reason
|
|
1159
|
+
provenance {
|
|
1160
|
+
...CommercialProvenance
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
service {
|
|
1164
|
+
status
|
|
1165
|
+
value
|
|
1166
|
+
reason
|
|
1167
|
+
provenance {
|
|
1168
|
+
...CommercialProvenance
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
cargo {
|
|
1172
|
+
status
|
|
1173
|
+
value {
|
|
1174
|
+
classificationLabel
|
|
1175
|
+
description
|
|
1176
|
+
}
|
|
1177
|
+
reason
|
|
1178
|
+
provenance {
|
|
1179
|
+
...CommercialProvenance
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
weight {
|
|
1183
|
+
status
|
|
1184
|
+
value {
|
|
1185
|
+
amount
|
|
1186
|
+
unit
|
|
1187
|
+
zeroReason
|
|
1188
|
+
}
|
|
1189
|
+
reason
|
|
1190
|
+
provenance {
|
|
1191
|
+
...CommercialProvenance
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
volume {
|
|
1195
|
+
status
|
|
1196
|
+
value {
|
|
1197
|
+
amount
|
|
1198
|
+
unit
|
|
1199
|
+
zeroReason
|
|
1200
|
+
}
|
|
1201
|
+
reason
|
|
1202
|
+
provenance {
|
|
1203
|
+
...CommercialProvenance
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
equipment {
|
|
1207
|
+
status
|
|
1208
|
+
value {
|
|
1209
|
+
typeLabel
|
|
1210
|
+
count
|
|
1211
|
+
}
|
|
1212
|
+
reason
|
|
1213
|
+
provenance {
|
|
1214
|
+
...CommercialProvenance
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
ownerShipment {
|
|
1218
|
+
shipmentId
|
|
1219
|
+
updatedAt
|
|
1220
|
+
primaryMode
|
|
1221
|
+
}
|
|
1222
|
+
ownerLegs {
|
|
1223
|
+
id
|
|
1224
|
+
updatedAt
|
|
1225
|
+
legNumber
|
|
1226
|
+
mode
|
|
1227
|
+
carrierId
|
|
1228
|
+
carrierName
|
|
1229
|
+
weightKg
|
|
1230
|
+
volumeCbm
|
|
1231
|
+
containerType
|
|
1232
|
+
containerCount
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
${CommercialProvenanceFragmentDoc}`;
|
|
1238
|
+
export const FreightCommercialLegsDocument = gql`
|
|
1239
|
+
query FreightCommercialLegs($shipmentId: ID!, $pagination: PaginationInput!) {
|
|
1240
|
+
shipment(id: $shipmentId) {
|
|
1241
|
+
id
|
|
1242
|
+
legs(pagination: $pagination) {
|
|
1243
|
+
id
|
|
1244
|
+
shipmentId
|
|
1245
|
+
updatedAt
|
|
1246
|
+
legNumber
|
|
1247
|
+
mode
|
|
1248
|
+
carrierId
|
|
1249
|
+
carrierName
|
|
1250
|
+
weightKg
|
|
1251
|
+
volumeCbm
|
|
1252
|
+
containerType
|
|
1253
|
+
containerCount
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
`;
|
|
428
1258
|
export const FreightShipmentsDocument = gql`
|
|
429
1259
|
query FreightShipments($pagination: PaginationInput) {
|
|
430
1260
|
shipments(pagination: $pagination) {
|