@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.
- package/README.md +10 -0
- package/dist/MoveTheWheelsRoot.js +5 -0
- package/dist/MoveTheWheelsRoutes.js +25 -21
- package/dist/components/ContainerEvidencePicker.js +55 -55
- package/dist/components/FleetAlertsPanel.js +2 -2
- 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/components/freight-invoice/InvoiceForm.js +366 -0
- package/dist/components/freight-invoice/InvoiceResults.js +240 -0
- package/dist/generated/consolidation-operations.d.ts +195 -265
- package/dist/generated/container-condition-operations.d.ts +124 -187
- package/dist/generated/container-operations.d.ts +59 -85
- package/dist/generated/empty-reuse-operations.d.ts +165 -271
- package/dist/generated/free-time-operations.d.ts +120 -184
- package/dist/generated/freight-cost-operations.d.ts +955 -165
- package/dist/generated/freight-invoice-operations.d.ts +1447 -0
- package/dist/generated/logistics-procedure-operations.d.ts +100 -156
- package/dist/generated/pending-pick-operations.d.ts +769 -1025
- package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
- package/dist/generated/stock-binding-operations.d.ts +188 -260
- package/dist/generated/stock-observation-operations.d.ts +103 -138
- package/dist/generated/tracking-quality-operations.d.ts +27 -41
- package/dist/generated/trip-utilization-operations.d.ts +137 -185
- package/dist/generated/wspace-operations.d.ts +628 -2272
- package/dist/generated/wspace-types.d.ts +4 -23
- package/dist/hooks/useFreightRecoveryAction.js +20 -20
- package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
- 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/components/freight-invoice/InvoiceForm.d.ts +19 -0
- package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
- package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
- package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
- package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
- package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
- package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
- package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
- package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
- package/dist/pages/DriverDetailsPage.js +306 -282
- package/dist/pages/FreightEstimatePage.js +97 -92
- package/dist/pages/FreightInvoicePage.js +346 -0
- package/dist/src/generated/consolidation-operations.js +3961 -503
- package/dist/src/generated/container-condition-operations.js +2968 -206
- package/dist/src/generated/container-operations.js +997 -99
- package/dist/src/generated/empty-reuse-operations.js +4811 -747
- package/dist/src/generated/free-time-operations.js +2824 -233
- package/dist/src/generated/freight-cost-operations.js +4852 -323
- package/dist/src/generated/freight-invoice-operations.js +4894 -0
- package/dist/src/generated/logistics-procedure-operations.js +2707 -360
- package/dist/src/generated/pending-pick-operations.js +8244 -1196
- package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
- package/dist/src/generated/stock-binding-operations.js +2779 -173
- package/dist/src/generated/stock-observation-operations.js +1274 -91
- package/dist/src/generated/tracking-quality-operations.js +407 -42
- package/dist/src/generated/trip-utilization-operations.js +1765 -138
- package/dist/src/generated/wspace-operations.js +428 -706
- package/dist/utils/driverLicenseExpiry.js +14 -0
- package/dist/utils/freightAcknowledgement.js +6 -5
- package/dist/utils/freightCommercial.js +194 -0
- package/dist/utils/freightRecovery.js +22 -22
- package/dist/utils/invoiceComparison.js +272 -0
- package/package.json +30 -29
- package/src/generated/consolidation-operations.ts +60 -559
- package/src/generated/container-condition-operations.ts +63 -265
- package/src/generated/container-operations.ts +37 -132
- package/src/generated/empty-reuse-operations.ts +83 -824
- package/src/generated/free-time-operations.ts +55 -284
- package/src/generated/freight-cost-operations.ts +373 -349
- package/src/generated/freight-invoice-operations.ts +830 -0
- package/src/generated/logistics-procedure-operations.ts +60 -414
- package/src/generated/pending-pick-operations.ts +48 -1239
- package/src/generated/shipment-status-authority-operations.ts +33 -113
- package/src/generated/stock-binding-operations.ts +29 -198
- package/src/generated/stock-observation-operations.ts +24 -111
- package/src/generated/tracking-quality-operations.ts +19 -57
- package/src/generated/trip-utilization-operations.ts +32 -166
- package/src/generated/wspace-operations.ts +284 -2906
- package/src/generated/wspace-types.ts +2 -8
- package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
- package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
- package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
- 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/components/freight-invoice/InvoiceForm.tsx +412 -0
- package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
- package/src/movethewheels/hooks/useFleet.ts +1 -1
- package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
- package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
- package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
- package/src/movethewheels/pages/FreightEstimatePage.tsx +15 -7
- package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
- package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
- 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/movethewheels/utils/invoiceComparison.ts +520 -0
- package/src/operations/freight-cost/commercial.graphql +483 -0
- package/src/operations/freight-invoice/comparison.graphql +40 -0
- package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
- package/patches/braces@3.0.3.patch +0 -87
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
3
|
+
type Exact<T extends {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}> = {
|
|
6
6
|
[K in keyof T]: T[K];
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
-
};
|
|
11
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
-
};
|
|
14
|
-
export type MakeEmpty<T extends {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}, K extends keyof T> = {
|
|
17
|
-
[_ in K]?: never;
|
|
18
|
-
};
|
|
8
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
19
9
|
export type Incremental<T> = T | {
|
|
20
10
|
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
11
|
};
|
|
12
|
+
import type * as Types from './freight-cost-operations';
|
|
13
|
+
export type Maybe<T> = T | null;
|
|
14
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
22
15
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
16
|
export type Scalars = {
|
|
24
17
|
ID: {
|
|
@@ -65,6 +58,236 @@ export type MtwContainerPagination = {
|
|
|
65
58
|
};
|
|
66
59
|
export type MtwFreightAmountBasis = 'CALCULATED' | 'SOURCED_FIXED' | 'UNKNOWN';
|
|
67
60
|
export type MtwFreightCategory = 'ACCESSORIAL' | 'BASE_FREIGHT' | 'BROKER' | 'DESTINATION_HANDLING' | 'DUTY_ESTIMATE' | 'FREE_TIME_EXPOSURE' | 'FUEL' | 'INSURANCE' | 'ON_CARRIAGE' | 'ORIGIN_HANDLING' | 'OTHER' | 'PRE_CARRIAGE' | 'TAX_ESTIMATE';
|
|
61
|
+
export type MtwFreightCommercialCapture = {
|
|
62
|
+
__typename?: 'MtwFreightCommercialCapture';
|
|
63
|
+
cargo: MtwFreightCommercialCargoFact;
|
|
64
|
+
carrier: MtwFreightCommercialCarrierFact;
|
|
65
|
+
destination: MtwFreightCommercialLocationFact;
|
|
66
|
+
equipment: MtwFreightCommercialEquipmentFact;
|
|
67
|
+
origin: MtwFreightCommercialLocationFact;
|
|
68
|
+
ownerLegs: Array<MtwFreightCommercialOwnerLeg>;
|
|
69
|
+
ownerShipment: MtwFreightCommercialShipment;
|
|
70
|
+
schemaVersion: Scalars['Int']['output'];
|
|
71
|
+
selectedLegs: Array<MtwFreightCommercialLegPin>;
|
|
72
|
+
service: MtwFreightCommercialServiceFact;
|
|
73
|
+
volume: MtwFreightCommercialVolumeFact;
|
|
74
|
+
weight: MtwFreightCommercialWeightFact;
|
|
75
|
+
};
|
|
76
|
+
export type MtwFreightCommercialCaptureInput = {
|
|
77
|
+
cargo: MtwFreightCommercialCargoFactInput;
|
|
78
|
+
carrier: MtwFreightCommercialCarrierFactInput;
|
|
79
|
+
destination: MtwFreightCommercialLocationFactInput;
|
|
80
|
+
equipment: MtwFreightCommercialEquipmentFactInput;
|
|
81
|
+
origin: MtwFreightCommercialLocationFactInput;
|
|
82
|
+
schemaVersion: Scalars['Int']['input'];
|
|
83
|
+
selectedLegs: Array<MtwFreightCommercialLegPinInput>;
|
|
84
|
+
service: MtwFreightCommercialServiceFactInput;
|
|
85
|
+
volume: MtwFreightCommercialVolumeFactInput;
|
|
86
|
+
weight: MtwFreightCommercialWeightFactInput;
|
|
87
|
+
};
|
|
88
|
+
export type MtwFreightCommercialCargo = {
|
|
89
|
+
__typename?: 'MtwFreightCommercialCargo';
|
|
90
|
+
classificationLabel: Scalars['String']['output'];
|
|
91
|
+
description: Scalars['String']['output'];
|
|
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
|
+
export type MtwFreightCommercialCargoFactInput = {
|
|
101
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
102
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
103
|
+
status: MtwFreightCommercialStatus;
|
|
104
|
+
value?: InputMaybe<MtwFreightCommercialCargoInput>;
|
|
105
|
+
};
|
|
106
|
+
export type MtwFreightCommercialCargoInput = {
|
|
107
|
+
classificationLabel: Scalars['String']['input'];
|
|
108
|
+
description: Scalars['String']['input'];
|
|
109
|
+
};
|
|
110
|
+
export type MtwFreightCommercialCarrier = {
|
|
111
|
+
__typename?: 'MtwFreightCommercialCarrier';
|
|
112
|
+
label: Scalars['String']['output'];
|
|
113
|
+
reference: Scalars['String']['output'];
|
|
114
|
+
};
|
|
115
|
+
export type MtwFreightCommercialCarrierFact = {
|
|
116
|
+
__typename?: 'MtwFreightCommercialCarrierFact';
|
|
117
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
118
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
119
|
+
status: MtwFreightCommercialStatus;
|
|
120
|
+
value?: Maybe<MtwFreightCommercialCarrier>;
|
|
121
|
+
};
|
|
122
|
+
export type MtwFreightCommercialCarrierFactInput = {
|
|
123
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
124
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
125
|
+
status: MtwFreightCommercialStatus;
|
|
126
|
+
value?: InputMaybe<MtwFreightCommercialCarrierInput>;
|
|
127
|
+
};
|
|
128
|
+
export type MtwFreightCommercialCarrierInput = {
|
|
129
|
+
label: Scalars['String']['input'];
|
|
130
|
+
reference: Scalars['String']['input'];
|
|
131
|
+
};
|
|
132
|
+
export type MtwFreightCommercialEquipment = {
|
|
133
|
+
__typename?: 'MtwFreightCommercialEquipment';
|
|
134
|
+
count: Scalars['Int']['output'];
|
|
135
|
+
typeLabel: Scalars['String']['output'];
|
|
136
|
+
};
|
|
137
|
+
export type MtwFreightCommercialEquipmentFact = {
|
|
138
|
+
__typename?: 'MtwFreightCommercialEquipmentFact';
|
|
139
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
140
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
141
|
+
status: MtwFreightCommercialStatus;
|
|
142
|
+
value?: Maybe<MtwFreightCommercialEquipment>;
|
|
143
|
+
};
|
|
144
|
+
export type MtwFreightCommercialEquipmentFactInput = {
|
|
145
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
146
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
147
|
+
status: MtwFreightCommercialStatus;
|
|
148
|
+
value?: InputMaybe<MtwFreightCommercialEquipmentInput>;
|
|
149
|
+
};
|
|
150
|
+
export type MtwFreightCommercialEquipmentInput = {
|
|
151
|
+
count: Scalars['Int']['input'];
|
|
152
|
+
typeLabel: Scalars['String']['input'];
|
|
153
|
+
};
|
|
154
|
+
export type MtwFreightCommercialLegPin = {
|
|
155
|
+
__typename?: 'MtwFreightCommercialLegPin';
|
|
156
|
+
expectedUpdatedAt: Scalars['DateTime']['output'];
|
|
157
|
+
id: Scalars['ID']['output'];
|
|
158
|
+
};
|
|
159
|
+
export type MtwFreightCommercialLegPinInput = {
|
|
160
|
+
expectedUpdatedAt: Scalars['DateTime']['input'];
|
|
161
|
+
id: Scalars['ID']['input'];
|
|
162
|
+
};
|
|
163
|
+
export type MtwFreightCommercialLink = {
|
|
164
|
+
__typename?: 'MtwFreightCommercialLink';
|
|
165
|
+
fileId: Scalars['ID']['output'];
|
|
166
|
+
versionId: Scalars['ID']['output'];
|
|
167
|
+
};
|
|
168
|
+
export type MtwFreightCommercialLinkInput = {
|
|
169
|
+
fileId: Scalars['ID']['input'];
|
|
170
|
+
versionId: Scalars['ID']['input'];
|
|
171
|
+
};
|
|
172
|
+
export type MtwFreightCommercialLocation = {
|
|
173
|
+
__typename?: 'MtwFreightCommercialLocation';
|
|
174
|
+
jurisdictionLabel?: Maybe<Scalars['String']['output']>;
|
|
175
|
+
kind: MtwFreightLocationKind;
|
|
176
|
+
label: Scalars['String']['output'];
|
|
177
|
+
};
|
|
178
|
+
export type MtwFreightCommercialLocationFact = {
|
|
179
|
+
__typename?: 'MtwFreightCommercialLocationFact';
|
|
180
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
181
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
182
|
+
status: MtwFreightCommercialStatus;
|
|
183
|
+
value?: Maybe<MtwFreightCommercialLocation>;
|
|
184
|
+
};
|
|
185
|
+
export type MtwFreightCommercialLocationFactInput = {
|
|
186
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
187
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
188
|
+
status: MtwFreightCommercialStatus;
|
|
189
|
+
value?: InputMaybe<MtwFreightCommercialLocationInput>;
|
|
190
|
+
};
|
|
191
|
+
export type MtwFreightCommercialLocationInput = {
|
|
192
|
+
jurisdictionLabel?: InputMaybe<Scalars['String']['input']>;
|
|
193
|
+
kind: MtwFreightLocationKind;
|
|
194
|
+
label: Scalars['String']['input'];
|
|
195
|
+
};
|
|
196
|
+
export type MtwFreightCommercialOwnerLeg = {
|
|
197
|
+
__typename?: 'MtwFreightCommercialOwnerLeg';
|
|
198
|
+
carrierId?: Maybe<Scalars['ID']['output']>;
|
|
199
|
+
carrierName?: Maybe<Scalars['String']['output']>;
|
|
200
|
+
containerCount?: Maybe<Scalars['Int']['output']>;
|
|
201
|
+
containerType?: Maybe<OceanContainerType>;
|
|
202
|
+
id: Scalars['ID']['output'];
|
|
203
|
+
legNumber: Scalars['Int']['output'];
|
|
204
|
+
mode: TransportMode;
|
|
205
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
206
|
+
volumeCbm?: Maybe<Scalars['Float']['output']>;
|
|
207
|
+
weightKg?: Maybe<Scalars['Float']['output']>;
|
|
208
|
+
};
|
|
209
|
+
export type MtwFreightCommercialProvenance = {
|
|
210
|
+
__typename?: 'MtwFreightCommercialProvenance';
|
|
211
|
+
evidenceLinks: Array<MtwFreightCommercialLink>;
|
|
212
|
+
observedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
213
|
+
sourceReference: Scalars['String']['output'];
|
|
214
|
+
sourceRevision: Scalars['String']['output'];
|
|
215
|
+
};
|
|
216
|
+
export type MtwFreightCommercialProvenanceInput = {
|
|
217
|
+
evidenceLinks: Array<MtwFreightCommercialLinkInput>;
|
|
218
|
+
observedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
219
|
+
sourceReference: Scalars['String']['input'];
|
|
220
|
+
sourceRevision: Scalars['String']['input'];
|
|
221
|
+
};
|
|
222
|
+
export type MtwFreightCommercialServiceFact = {
|
|
223
|
+
__typename?: 'MtwFreightCommercialServiceFact';
|
|
224
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
225
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
226
|
+
status: MtwFreightCommercialStatus;
|
|
227
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
228
|
+
};
|
|
229
|
+
export type MtwFreightCommercialServiceFactInput = {
|
|
230
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
231
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
232
|
+
status: MtwFreightCommercialStatus;
|
|
233
|
+
value?: InputMaybe<Scalars['String']['input']>;
|
|
234
|
+
};
|
|
235
|
+
export type MtwFreightCommercialShipment = {
|
|
236
|
+
__typename?: 'MtwFreightCommercialShipment';
|
|
237
|
+
primaryMode: TransportMode;
|
|
238
|
+
shipmentId: Scalars['ID']['output'];
|
|
239
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
240
|
+
};
|
|
241
|
+
/** Reported commercial context only; no quote acceptance or completeness authority. */
|
|
242
|
+
export type MtwFreightCommercialStatus = 'NOT_APPLICABLE' | 'SOURCED' | 'UNKNOWN';
|
|
243
|
+
export type MtwFreightCommercialVolume = {
|
|
244
|
+
__typename?: 'MtwFreightCommercialVolume';
|
|
245
|
+
amount: Scalars['String']['output'];
|
|
246
|
+
unit: MtwFreightVolumeUnit;
|
|
247
|
+
zeroReason?: Maybe<Scalars['String']['output']>;
|
|
248
|
+
};
|
|
249
|
+
export type MtwFreightCommercialVolumeFact = {
|
|
250
|
+
__typename?: 'MtwFreightCommercialVolumeFact';
|
|
251
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
252
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
253
|
+
status: MtwFreightCommercialStatus;
|
|
254
|
+
value?: Maybe<MtwFreightCommercialVolume>;
|
|
255
|
+
};
|
|
256
|
+
export type MtwFreightCommercialVolumeFactInput = {
|
|
257
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
258
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
259
|
+
status: MtwFreightCommercialStatus;
|
|
260
|
+
value?: InputMaybe<MtwFreightCommercialVolumeInput>;
|
|
261
|
+
};
|
|
262
|
+
export type MtwFreightCommercialVolumeInput = {
|
|
263
|
+
amount: Scalars['String']['input'];
|
|
264
|
+
unit: MtwFreightVolumeUnit;
|
|
265
|
+
zeroReason?: InputMaybe<Scalars['String']['input']>;
|
|
266
|
+
};
|
|
267
|
+
export type MtwFreightCommercialWeight = {
|
|
268
|
+
__typename?: 'MtwFreightCommercialWeight';
|
|
269
|
+
amount: Scalars['String']['output'];
|
|
270
|
+
unit: MtwFreightWeightUnit;
|
|
271
|
+
zeroReason?: Maybe<Scalars['String']['output']>;
|
|
272
|
+
};
|
|
273
|
+
export type MtwFreightCommercialWeightFact = {
|
|
274
|
+
__typename?: 'MtwFreightCommercialWeightFact';
|
|
275
|
+
provenance?: Maybe<MtwFreightCommercialProvenance>;
|
|
276
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
277
|
+
status: MtwFreightCommercialStatus;
|
|
278
|
+
value?: Maybe<MtwFreightCommercialWeight>;
|
|
279
|
+
};
|
|
280
|
+
export type MtwFreightCommercialWeightFactInput = {
|
|
281
|
+
provenance?: InputMaybe<MtwFreightCommercialProvenanceInput>;
|
|
282
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
283
|
+
status: MtwFreightCommercialStatus;
|
|
284
|
+
value?: InputMaybe<MtwFreightCommercialWeightInput>;
|
|
285
|
+
};
|
|
286
|
+
export type MtwFreightCommercialWeightInput = {
|
|
287
|
+
amount: Scalars['String']['input'];
|
|
288
|
+
unit: MtwFreightWeightUnit;
|
|
289
|
+
zeroReason?: InputMaybe<Scalars['String']['input']>;
|
|
290
|
+
};
|
|
68
291
|
/** A declared currency/scale convention, not automatic ISO verification. */
|
|
69
292
|
export type MtwFreightCurrency = {
|
|
70
293
|
__typename?: 'MtwFreightCurrency';
|
|
@@ -88,6 +311,7 @@ export type MtwFreightEstimatePage = {
|
|
|
88
311
|
export type MtwFreightEstimateVersion = {
|
|
89
312
|
__typename?: 'MtwFreightEstimateVersion';
|
|
90
313
|
actorProvenance: Scalars['String']['output'];
|
|
314
|
+
commercialCapture?: Maybe<MtwFreightCommercialCapture>;
|
|
91
315
|
createdBy: Scalars['ID']['output'];
|
|
92
316
|
estimateReference: Scalars['String']['output'];
|
|
93
317
|
evidence: Array<MtwContainerEvidence>;
|
|
@@ -203,6 +427,7 @@ export type MtwFreightLineTotal = {
|
|
|
203
427
|
reportingAmountMinor?: Maybe<Scalars['String']['output']>;
|
|
204
428
|
roundedToZero: Scalars['Boolean']['output'];
|
|
205
429
|
};
|
|
430
|
+
export type MtwFreightLocationKind = 'ADDRESS_LABEL' | 'CUSTOM_LABEL' | 'PORT_LABEL' | 'POSTCODE_LABEL' | 'TERMINAL_LABEL';
|
|
206
431
|
/** Completeness applies only to the recorded required-charge declarations, not all possible charges. */
|
|
207
432
|
export type MtwFreightPreview = {
|
|
208
433
|
__typename?: 'MtwFreightPreview';
|
|
@@ -250,14 +475,34 @@ export type MtwFreightSubtotal = {
|
|
|
250
475
|
payerReference?: Maybe<Scalars['String']['output']>;
|
|
251
476
|
totalAmountMinor?: Maybe<Scalars['String']['output']>;
|
|
252
477
|
};
|
|
478
|
+
export type MtwFreightVolumeUnit = 'FT3' | 'M3';
|
|
479
|
+
export type MtwFreightWeightUnit = 'KG' | 'LB' | 'TONNE';
|
|
253
480
|
export type MtwShipment = {
|
|
254
481
|
__typename?: 'MtwShipment';
|
|
255
482
|
id: Scalars['ID']['output'];
|
|
483
|
+
legs: Array<MtwShipmentLeg>;
|
|
256
484
|
primaryMode: TransportMode;
|
|
257
485
|
shipmentNumber: Scalars['String']['output'];
|
|
258
486
|
status: ShipmentStatus;
|
|
259
487
|
updatedAt: Scalars['DateTime']['output'];
|
|
260
488
|
};
|
|
489
|
+
export type MtwShipmentLegsArgs = {
|
|
490
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
491
|
+
};
|
|
492
|
+
export type MtwShipmentLeg = {
|
|
493
|
+
__typename?: 'MtwShipmentLeg';
|
|
494
|
+
carrierId?: Maybe<Scalars['ID']['output']>;
|
|
495
|
+
carrierName?: Maybe<Scalars['String']['output']>;
|
|
496
|
+
containerCount?: Maybe<Scalars['Int']['output']>;
|
|
497
|
+
containerType?: Maybe<OceanContainerType>;
|
|
498
|
+
id: Scalars['ID']['output'];
|
|
499
|
+
legNumber: Scalars['Int']['output'];
|
|
500
|
+
mode: TransportMode;
|
|
501
|
+
shipmentId: Scalars['ID']['output'];
|
|
502
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
503
|
+
volumeCbm?: Maybe<Scalars['Float']['output']>;
|
|
504
|
+
weightKg?: Maybe<Scalars['Float']['output']>;
|
|
505
|
+
};
|
|
261
506
|
export type Mutation = {
|
|
262
507
|
__typename?: 'Mutation';
|
|
263
508
|
saveMtwFreightEstimate: MtwFreightEstimateVersion;
|
|
@@ -265,6 +510,7 @@ export type Mutation = {
|
|
|
265
510
|
export type MutationSaveMtwFreightEstimateArgs = {
|
|
266
511
|
input: SaveMtwFreightEstimateInput;
|
|
267
512
|
};
|
|
513
|
+
export type OceanContainerType = 'FCL_20FT' | 'FCL_40FT' | 'FCL_40FT_HC' | 'LCL';
|
|
268
514
|
export type PaginationInput = {
|
|
269
515
|
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
270
516
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -302,6 +548,7 @@ export type QueryShipmentsCountArgs = {
|
|
|
302
548
|
filter?: InputMaybe<ShipmentFilterInput>;
|
|
303
549
|
};
|
|
304
550
|
export type SaveMtwFreightEstimateInput = {
|
|
551
|
+
commercialCapture?: InputMaybe<MtwFreightCommercialCaptureInput>;
|
|
305
552
|
estimateReference: Scalars['String']['input'];
|
|
306
553
|
evidence: Array<MtwContainerEvidenceInput>;
|
|
307
554
|
expectedPreviousVersionId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -325,148 +572,720 @@ export type ShipmentFilterInput = {
|
|
|
325
572
|
};
|
|
326
573
|
export type ShipmentStatus = 'DELIVERED' | 'FAILED' | 'IN_TRANSIT' | 'PICKED_UP' | 'PLANNED' | 'RETURNED';
|
|
327
574
|
export type TransportMode = 'AIR' | 'OCEAN' | 'RAIL' | 'ROAD';
|
|
575
|
+
export type CommercialProvenanceFragment = {
|
|
576
|
+
sourceReference: string;
|
|
577
|
+
sourceRevision: string;
|
|
578
|
+
observedAt: string | null;
|
|
579
|
+
evidenceLinks: Array<{
|
|
580
|
+
fileId: string;
|
|
581
|
+
versionId: string;
|
|
582
|
+
}>;
|
|
583
|
+
};
|
|
584
|
+
export type SaveFreightCommercialCostsMutationVariables = Exact<{
|
|
585
|
+
input: Types.SaveMtwFreightEstimateInput;
|
|
586
|
+
}>;
|
|
587
|
+
export type SaveFreightCommercialCostsMutation = {
|
|
588
|
+
saveMtwFreightEstimate: {
|
|
589
|
+
id: string;
|
|
590
|
+
shipmentId: string;
|
|
591
|
+
estimateReference: string;
|
|
592
|
+
version: number;
|
|
593
|
+
previousVersionId: string | null;
|
|
594
|
+
recordedAt: string;
|
|
595
|
+
createdBy: string;
|
|
596
|
+
actorProvenance: string;
|
|
597
|
+
onBehalfOf: string | null;
|
|
598
|
+
validityAtRead: string;
|
|
599
|
+
shipmentCapture: {
|
|
600
|
+
shipmentNumber: string;
|
|
601
|
+
primaryMode: string;
|
|
602
|
+
capturedUpdatedAt: string;
|
|
603
|
+
};
|
|
604
|
+
facts: {
|
|
605
|
+
kind: Types.MtwFreightKind;
|
|
606
|
+
title: string;
|
|
607
|
+
commercialScope: string;
|
|
608
|
+
sourceReference: string;
|
|
609
|
+
sourceRevision: string;
|
|
610
|
+
pricingAt: string;
|
|
611
|
+
quotedAt: string | null;
|
|
612
|
+
validFrom: string | null;
|
|
613
|
+
validUntil: string | null;
|
|
614
|
+
rounding: Types.MtwFreightRounding;
|
|
615
|
+
reportingCurrency: {
|
|
616
|
+
code: string;
|
|
617
|
+
minorUnitDigits: number;
|
|
618
|
+
} | null;
|
|
619
|
+
lines: Array<{
|
|
620
|
+
id: string;
|
|
621
|
+
category: Types.MtwFreightCategory;
|
|
622
|
+
description: string;
|
|
623
|
+
payerReference: string | null;
|
|
624
|
+
payerLabel: string | null;
|
|
625
|
+
disposition: Types.MtwFreightDisposition;
|
|
626
|
+
inclusionParentLineId: string | null;
|
|
627
|
+
amountBasis: Types.MtwFreightAmountBasis;
|
|
628
|
+
quantity: string | null;
|
|
629
|
+
unit: string | null;
|
|
630
|
+
unitRateMajor: string | null;
|
|
631
|
+
amountMinor: string | null;
|
|
632
|
+
zeroReason: string | null;
|
|
633
|
+
sourceReference: string | null;
|
|
634
|
+
sourceRevision: string | null;
|
|
635
|
+
currency: {
|
|
636
|
+
code: string;
|
|
637
|
+
minorUnitDigits: number;
|
|
638
|
+
};
|
|
639
|
+
}>;
|
|
640
|
+
requirements: Array<{
|
|
641
|
+
category: Types.MtwFreightCategory;
|
|
642
|
+
status: Types.MtwFreightRequirementStatus;
|
|
643
|
+
reason: string | null;
|
|
644
|
+
sourceReference: string | null;
|
|
645
|
+
sourceRevision: string | null;
|
|
646
|
+
}>;
|
|
647
|
+
fx: Array<{
|
|
648
|
+
rate: string;
|
|
649
|
+
observedAt: string;
|
|
650
|
+
effectiveFrom: string;
|
|
651
|
+
effectiveUntil: string;
|
|
652
|
+
sourceReference: string;
|
|
653
|
+
sourceRevision: string;
|
|
654
|
+
fromCurrency: {
|
|
655
|
+
code: string;
|
|
656
|
+
minorUnitDigits: number;
|
|
657
|
+
};
|
|
658
|
+
toCurrency: {
|
|
659
|
+
code: string;
|
|
660
|
+
minorUnitDigits: number;
|
|
661
|
+
};
|
|
662
|
+
}>;
|
|
663
|
+
};
|
|
664
|
+
totals: {
|
|
665
|
+
completeRelativeToDeclarations: boolean;
|
|
666
|
+
reportingTotalMinor: string | null;
|
|
667
|
+
subtotals: Array<{
|
|
668
|
+
payerReference: string | null;
|
|
669
|
+
payerLabel: string | null;
|
|
670
|
+
knownAmountMinor: string;
|
|
671
|
+
totalAmountMinor: string | null;
|
|
672
|
+
currency: {
|
|
673
|
+
code: string;
|
|
674
|
+
minorUnitDigits: number;
|
|
675
|
+
};
|
|
676
|
+
}>;
|
|
677
|
+
lines: Array<{
|
|
678
|
+
id: string;
|
|
679
|
+
nativeAmountMinor: string | null;
|
|
680
|
+
reportingAmountMinor: string | null;
|
|
681
|
+
roundedToZero: boolean;
|
|
682
|
+
}>;
|
|
683
|
+
reasons: Array<{
|
|
684
|
+
code: string;
|
|
685
|
+
lineId: string | null;
|
|
686
|
+
detail: string;
|
|
687
|
+
}>;
|
|
688
|
+
warnings: Array<{
|
|
689
|
+
code: string;
|
|
690
|
+
lineId: string | null;
|
|
691
|
+
detail: string;
|
|
692
|
+
}>;
|
|
693
|
+
};
|
|
694
|
+
evidence: Array<{
|
|
695
|
+
fileId: string;
|
|
696
|
+
versionId: string;
|
|
697
|
+
sha256Hash: string;
|
|
698
|
+
checkedAt: string;
|
|
699
|
+
}>;
|
|
700
|
+
commercialCapture: {
|
|
701
|
+
schemaVersion: number;
|
|
702
|
+
selectedLegs: Array<{
|
|
703
|
+
id: string;
|
|
704
|
+
expectedUpdatedAt: string;
|
|
705
|
+
}>;
|
|
706
|
+
origin: {
|
|
707
|
+
status: Types.MtwFreightCommercialStatus;
|
|
708
|
+
reason: string | null;
|
|
709
|
+
value: {
|
|
710
|
+
kind: Types.MtwFreightLocationKind;
|
|
711
|
+
label: string;
|
|
712
|
+
jurisdictionLabel: string | null;
|
|
713
|
+
} | null;
|
|
714
|
+
provenance: {
|
|
715
|
+
sourceReference: string;
|
|
716
|
+
sourceRevision: string;
|
|
717
|
+
observedAt: string | null;
|
|
718
|
+
evidenceLinks: Array<{
|
|
719
|
+
fileId: string;
|
|
720
|
+
versionId: string;
|
|
721
|
+
}>;
|
|
722
|
+
} | null;
|
|
723
|
+
};
|
|
724
|
+
destination: {
|
|
725
|
+
status: Types.MtwFreightCommercialStatus;
|
|
726
|
+
reason: string | null;
|
|
727
|
+
value: {
|
|
728
|
+
kind: Types.MtwFreightLocationKind;
|
|
729
|
+
label: string;
|
|
730
|
+
jurisdictionLabel: string | null;
|
|
731
|
+
} | null;
|
|
732
|
+
provenance: {
|
|
733
|
+
sourceReference: string;
|
|
734
|
+
sourceRevision: string;
|
|
735
|
+
observedAt: string | null;
|
|
736
|
+
evidenceLinks: Array<{
|
|
737
|
+
fileId: string;
|
|
738
|
+
versionId: string;
|
|
739
|
+
}>;
|
|
740
|
+
} | null;
|
|
741
|
+
};
|
|
742
|
+
carrier: {
|
|
743
|
+
status: Types.MtwFreightCommercialStatus;
|
|
744
|
+
reason: string | null;
|
|
745
|
+
value: {
|
|
746
|
+
reference: string;
|
|
747
|
+
label: string;
|
|
748
|
+
} | null;
|
|
749
|
+
provenance: {
|
|
750
|
+
sourceReference: string;
|
|
751
|
+
sourceRevision: string;
|
|
752
|
+
observedAt: string | null;
|
|
753
|
+
evidenceLinks: Array<{
|
|
754
|
+
fileId: string;
|
|
755
|
+
versionId: string;
|
|
756
|
+
}>;
|
|
757
|
+
} | null;
|
|
758
|
+
};
|
|
759
|
+
service: {
|
|
760
|
+
status: Types.MtwFreightCommercialStatus;
|
|
761
|
+
value: string | null;
|
|
762
|
+
reason: string | null;
|
|
763
|
+
provenance: {
|
|
764
|
+
sourceReference: string;
|
|
765
|
+
sourceRevision: string;
|
|
766
|
+
observedAt: string | null;
|
|
767
|
+
evidenceLinks: Array<{
|
|
768
|
+
fileId: string;
|
|
769
|
+
versionId: string;
|
|
770
|
+
}>;
|
|
771
|
+
} | null;
|
|
772
|
+
};
|
|
773
|
+
cargo: {
|
|
774
|
+
status: Types.MtwFreightCommercialStatus;
|
|
775
|
+
reason: string | null;
|
|
776
|
+
value: {
|
|
777
|
+
classificationLabel: string;
|
|
778
|
+
description: string;
|
|
779
|
+
} | null;
|
|
780
|
+
provenance: {
|
|
781
|
+
sourceReference: string;
|
|
782
|
+
sourceRevision: string;
|
|
783
|
+
observedAt: string | null;
|
|
784
|
+
evidenceLinks: Array<{
|
|
785
|
+
fileId: string;
|
|
786
|
+
versionId: string;
|
|
787
|
+
}>;
|
|
788
|
+
} | null;
|
|
789
|
+
};
|
|
790
|
+
weight: {
|
|
791
|
+
status: Types.MtwFreightCommercialStatus;
|
|
792
|
+
reason: string | null;
|
|
793
|
+
value: {
|
|
794
|
+
amount: string;
|
|
795
|
+
unit: Types.MtwFreightWeightUnit;
|
|
796
|
+
zeroReason: string | null;
|
|
797
|
+
} | null;
|
|
798
|
+
provenance: {
|
|
799
|
+
sourceReference: string;
|
|
800
|
+
sourceRevision: string;
|
|
801
|
+
observedAt: string | null;
|
|
802
|
+
evidenceLinks: Array<{
|
|
803
|
+
fileId: string;
|
|
804
|
+
versionId: string;
|
|
805
|
+
}>;
|
|
806
|
+
} | null;
|
|
807
|
+
};
|
|
808
|
+
volume: {
|
|
809
|
+
status: Types.MtwFreightCommercialStatus;
|
|
810
|
+
reason: string | null;
|
|
811
|
+
value: {
|
|
812
|
+
amount: string;
|
|
813
|
+
unit: Types.MtwFreightVolumeUnit;
|
|
814
|
+
zeroReason: string | null;
|
|
815
|
+
} | null;
|
|
816
|
+
provenance: {
|
|
817
|
+
sourceReference: string;
|
|
818
|
+
sourceRevision: string;
|
|
819
|
+
observedAt: string | null;
|
|
820
|
+
evidenceLinks: Array<{
|
|
821
|
+
fileId: string;
|
|
822
|
+
versionId: string;
|
|
823
|
+
}>;
|
|
824
|
+
} | null;
|
|
825
|
+
};
|
|
826
|
+
equipment: {
|
|
827
|
+
status: Types.MtwFreightCommercialStatus;
|
|
828
|
+
reason: string | null;
|
|
829
|
+
value: {
|
|
830
|
+
typeLabel: string;
|
|
831
|
+
count: number;
|
|
832
|
+
} | null;
|
|
833
|
+
provenance: {
|
|
834
|
+
sourceReference: string;
|
|
835
|
+
sourceRevision: string;
|
|
836
|
+
observedAt: string | null;
|
|
837
|
+
evidenceLinks: Array<{
|
|
838
|
+
fileId: string;
|
|
839
|
+
versionId: string;
|
|
840
|
+
}>;
|
|
841
|
+
} | null;
|
|
842
|
+
};
|
|
843
|
+
ownerShipment: {
|
|
844
|
+
shipmentId: string;
|
|
845
|
+
updatedAt: string;
|
|
846
|
+
primaryMode: Types.TransportMode;
|
|
847
|
+
};
|
|
848
|
+
ownerLegs: Array<{
|
|
849
|
+
id: string;
|
|
850
|
+
updatedAt: string;
|
|
851
|
+
legNumber: number;
|
|
852
|
+
mode: Types.TransportMode;
|
|
853
|
+
carrierId: string | null;
|
|
854
|
+
carrierName: string | null;
|
|
855
|
+
weightKg: number | null;
|
|
856
|
+
volumeCbm: number | null;
|
|
857
|
+
containerType: Types.OceanContainerType | null;
|
|
858
|
+
containerCount: number | null;
|
|
859
|
+
}>;
|
|
860
|
+
} | null;
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
export type FreightCommercialVersionQueryVariables = Exact<{
|
|
864
|
+
shipmentId: string;
|
|
865
|
+
id: string;
|
|
866
|
+
}>;
|
|
867
|
+
export type FreightCommercialVersionQuery = {
|
|
868
|
+
mtwFreightEstimateVersion: {
|
|
869
|
+
id: string;
|
|
870
|
+
shipmentId: string;
|
|
871
|
+
estimateReference: string;
|
|
872
|
+
version: number;
|
|
873
|
+
previousVersionId: string | null;
|
|
874
|
+
recordedAt: string;
|
|
875
|
+
createdBy: string;
|
|
876
|
+
actorProvenance: string;
|
|
877
|
+
onBehalfOf: string | null;
|
|
878
|
+
validityAtRead: string;
|
|
879
|
+
shipmentCapture: {
|
|
880
|
+
shipmentNumber: string;
|
|
881
|
+
primaryMode: string;
|
|
882
|
+
capturedUpdatedAt: string;
|
|
883
|
+
};
|
|
884
|
+
facts: {
|
|
885
|
+
kind: Types.MtwFreightKind;
|
|
886
|
+
title: string;
|
|
887
|
+
commercialScope: string;
|
|
888
|
+
sourceReference: string;
|
|
889
|
+
sourceRevision: string;
|
|
890
|
+
pricingAt: string;
|
|
891
|
+
quotedAt: string | null;
|
|
892
|
+
validFrom: string | null;
|
|
893
|
+
validUntil: string | null;
|
|
894
|
+
rounding: Types.MtwFreightRounding;
|
|
895
|
+
reportingCurrency: {
|
|
896
|
+
code: string;
|
|
897
|
+
minorUnitDigits: number;
|
|
898
|
+
} | null;
|
|
899
|
+
lines: Array<{
|
|
900
|
+
id: string;
|
|
901
|
+
category: Types.MtwFreightCategory;
|
|
902
|
+
description: string;
|
|
903
|
+
payerReference: string | null;
|
|
904
|
+
payerLabel: string | null;
|
|
905
|
+
disposition: Types.MtwFreightDisposition;
|
|
906
|
+
inclusionParentLineId: string | null;
|
|
907
|
+
amountBasis: Types.MtwFreightAmountBasis;
|
|
908
|
+
quantity: string | null;
|
|
909
|
+
unit: string | null;
|
|
910
|
+
unitRateMajor: string | null;
|
|
911
|
+
amountMinor: string | null;
|
|
912
|
+
zeroReason: string | null;
|
|
913
|
+
sourceReference: string | null;
|
|
914
|
+
sourceRevision: string | null;
|
|
915
|
+
currency: {
|
|
916
|
+
code: string;
|
|
917
|
+
minorUnitDigits: number;
|
|
918
|
+
};
|
|
919
|
+
}>;
|
|
920
|
+
requirements: Array<{
|
|
921
|
+
category: Types.MtwFreightCategory;
|
|
922
|
+
status: Types.MtwFreightRequirementStatus;
|
|
923
|
+
reason: string | null;
|
|
924
|
+
sourceReference: string | null;
|
|
925
|
+
sourceRevision: string | null;
|
|
926
|
+
}>;
|
|
927
|
+
fx: Array<{
|
|
928
|
+
rate: string;
|
|
929
|
+
observedAt: string;
|
|
930
|
+
effectiveFrom: string;
|
|
931
|
+
effectiveUntil: string;
|
|
932
|
+
sourceReference: string;
|
|
933
|
+
sourceRevision: string;
|
|
934
|
+
fromCurrency: {
|
|
935
|
+
code: string;
|
|
936
|
+
minorUnitDigits: number;
|
|
937
|
+
};
|
|
938
|
+
toCurrency: {
|
|
939
|
+
code: string;
|
|
940
|
+
minorUnitDigits: number;
|
|
941
|
+
};
|
|
942
|
+
}>;
|
|
943
|
+
};
|
|
944
|
+
totals: {
|
|
945
|
+
completeRelativeToDeclarations: boolean;
|
|
946
|
+
reportingTotalMinor: string | null;
|
|
947
|
+
subtotals: Array<{
|
|
948
|
+
payerReference: string | null;
|
|
949
|
+
payerLabel: string | null;
|
|
950
|
+
knownAmountMinor: string;
|
|
951
|
+
totalAmountMinor: string | null;
|
|
952
|
+
currency: {
|
|
953
|
+
code: string;
|
|
954
|
+
minorUnitDigits: number;
|
|
955
|
+
};
|
|
956
|
+
}>;
|
|
957
|
+
lines: Array<{
|
|
958
|
+
id: string;
|
|
959
|
+
nativeAmountMinor: string | null;
|
|
960
|
+
reportingAmountMinor: string | null;
|
|
961
|
+
roundedToZero: boolean;
|
|
962
|
+
}>;
|
|
963
|
+
reasons: Array<{
|
|
964
|
+
code: string;
|
|
965
|
+
lineId: string | null;
|
|
966
|
+
detail: string;
|
|
967
|
+
}>;
|
|
968
|
+
warnings: Array<{
|
|
969
|
+
code: string;
|
|
970
|
+
lineId: string | null;
|
|
971
|
+
detail: string;
|
|
972
|
+
}>;
|
|
973
|
+
};
|
|
974
|
+
evidence: Array<{
|
|
975
|
+
fileId: string;
|
|
976
|
+
versionId: string;
|
|
977
|
+
sha256Hash: string;
|
|
978
|
+
checkedAt: string;
|
|
979
|
+
}>;
|
|
980
|
+
commercialCapture: {
|
|
981
|
+
schemaVersion: number;
|
|
982
|
+
selectedLegs: Array<{
|
|
983
|
+
id: string;
|
|
984
|
+
expectedUpdatedAt: string;
|
|
985
|
+
}>;
|
|
986
|
+
origin: {
|
|
987
|
+
status: Types.MtwFreightCommercialStatus;
|
|
988
|
+
reason: string | null;
|
|
989
|
+
value: {
|
|
990
|
+
kind: Types.MtwFreightLocationKind;
|
|
991
|
+
label: string;
|
|
992
|
+
jurisdictionLabel: string | null;
|
|
993
|
+
} | null;
|
|
994
|
+
provenance: {
|
|
995
|
+
sourceReference: string;
|
|
996
|
+
sourceRevision: string;
|
|
997
|
+
observedAt: string | null;
|
|
998
|
+
evidenceLinks: Array<{
|
|
999
|
+
fileId: string;
|
|
1000
|
+
versionId: string;
|
|
1001
|
+
}>;
|
|
1002
|
+
} | null;
|
|
1003
|
+
};
|
|
1004
|
+
destination: {
|
|
1005
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1006
|
+
reason: string | null;
|
|
1007
|
+
value: {
|
|
1008
|
+
kind: Types.MtwFreightLocationKind;
|
|
1009
|
+
label: string;
|
|
1010
|
+
jurisdictionLabel: string | null;
|
|
1011
|
+
} | null;
|
|
1012
|
+
provenance: {
|
|
1013
|
+
sourceReference: string;
|
|
1014
|
+
sourceRevision: string;
|
|
1015
|
+
observedAt: string | null;
|
|
1016
|
+
evidenceLinks: Array<{
|
|
1017
|
+
fileId: string;
|
|
1018
|
+
versionId: string;
|
|
1019
|
+
}>;
|
|
1020
|
+
} | null;
|
|
1021
|
+
};
|
|
1022
|
+
carrier: {
|
|
1023
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1024
|
+
reason: string | null;
|
|
1025
|
+
value: {
|
|
1026
|
+
reference: string;
|
|
1027
|
+
label: string;
|
|
1028
|
+
} | null;
|
|
1029
|
+
provenance: {
|
|
1030
|
+
sourceReference: string;
|
|
1031
|
+
sourceRevision: string;
|
|
1032
|
+
observedAt: string | null;
|
|
1033
|
+
evidenceLinks: Array<{
|
|
1034
|
+
fileId: string;
|
|
1035
|
+
versionId: string;
|
|
1036
|
+
}>;
|
|
1037
|
+
} | null;
|
|
1038
|
+
};
|
|
1039
|
+
service: {
|
|
1040
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1041
|
+
value: string | null;
|
|
1042
|
+
reason: string | null;
|
|
1043
|
+
provenance: {
|
|
1044
|
+
sourceReference: string;
|
|
1045
|
+
sourceRevision: string;
|
|
1046
|
+
observedAt: string | null;
|
|
1047
|
+
evidenceLinks: Array<{
|
|
1048
|
+
fileId: string;
|
|
1049
|
+
versionId: string;
|
|
1050
|
+
}>;
|
|
1051
|
+
} | null;
|
|
1052
|
+
};
|
|
1053
|
+
cargo: {
|
|
1054
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1055
|
+
reason: string | null;
|
|
1056
|
+
value: {
|
|
1057
|
+
classificationLabel: string;
|
|
1058
|
+
description: string;
|
|
1059
|
+
} | null;
|
|
1060
|
+
provenance: {
|
|
1061
|
+
sourceReference: string;
|
|
1062
|
+
sourceRevision: string;
|
|
1063
|
+
observedAt: string | null;
|
|
1064
|
+
evidenceLinks: Array<{
|
|
1065
|
+
fileId: string;
|
|
1066
|
+
versionId: string;
|
|
1067
|
+
}>;
|
|
1068
|
+
} | null;
|
|
1069
|
+
};
|
|
1070
|
+
weight: {
|
|
1071
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1072
|
+
reason: string | null;
|
|
1073
|
+
value: {
|
|
1074
|
+
amount: string;
|
|
1075
|
+
unit: Types.MtwFreightWeightUnit;
|
|
1076
|
+
zeroReason: string | null;
|
|
1077
|
+
} | null;
|
|
1078
|
+
provenance: {
|
|
1079
|
+
sourceReference: string;
|
|
1080
|
+
sourceRevision: string;
|
|
1081
|
+
observedAt: string | null;
|
|
1082
|
+
evidenceLinks: Array<{
|
|
1083
|
+
fileId: string;
|
|
1084
|
+
versionId: string;
|
|
1085
|
+
}>;
|
|
1086
|
+
} | null;
|
|
1087
|
+
};
|
|
1088
|
+
volume: {
|
|
1089
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1090
|
+
reason: string | null;
|
|
1091
|
+
value: {
|
|
1092
|
+
amount: string;
|
|
1093
|
+
unit: Types.MtwFreightVolumeUnit;
|
|
1094
|
+
zeroReason: string | null;
|
|
1095
|
+
} | null;
|
|
1096
|
+
provenance: {
|
|
1097
|
+
sourceReference: string;
|
|
1098
|
+
sourceRevision: string;
|
|
1099
|
+
observedAt: string | null;
|
|
1100
|
+
evidenceLinks: Array<{
|
|
1101
|
+
fileId: string;
|
|
1102
|
+
versionId: string;
|
|
1103
|
+
}>;
|
|
1104
|
+
} | null;
|
|
1105
|
+
};
|
|
1106
|
+
equipment: {
|
|
1107
|
+
status: Types.MtwFreightCommercialStatus;
|
|
1108
|
+
reason: string | null;
|
|
1109
|
+
value: {
|
|
1110
|
+
typeLabel: string;
|
|
1111
|
+
count: number;
|
|
1112
|
+
} | null;
|
|
1113
|
+
provenance: {
|
|
1114
|
+
sourceReference: string;
|
|
1115
|
+
sourceRevision: string;
|
|
1116
|
+
observedAt: string | null;
|
|
1117
|
+
evidenceLinks: Array<{
|
|
1118
|
+
fileId: string;
|
|
1119
|
+
versionId: string;
|
|
1120
|
+
}>;
|
|
1121
|
+
} | null;
|
|
1122
|
+
};
|
|
1123
|
+
ownerShipment: {
|
|
1124
|
+
shipmentId: string;
|
|
1125
|
+
updatedAt: string;
|
|
1126
|
+
primaryMode: Types.TransportMode;
|
|
1127
|
+
};
|
|
1128
|
+
ownerLegs: Array<{
|
|
1129
|
+
id: string;
|
|
1130
|
+
updatedAt: string;
|
|
1131
|
+
legNumber: number;
|
|
1132
|
+
mode: Types.TransportMode;
|
|
1133
|
+
carrierId: string | null;
|
|
1134
|
+
carrierName: string | null;
|
|
1135
|
+
weightKg: number | null;
|
|
1136
|
+
volumeCbm: number | null;
|
|
1137
|
+
containerType: Types.OceanContainerType | null;
|
|
1138
|
+
containerCount: number | null;
|
|
1139
|
+
}>;
|
|
1140
|
+
} | null;
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
export type FreightCommercialLegsQueryVariables = Exact<{
|
|
1144
|
+
shipmentId: string;
|
|
1145
|
+
pagination: Types.PaginationInput;
|
|
1146
|
+
}>;
|
|
1147
|
+
export type FreightCommercialLegsQuery = {
|
|
1148
|
+
shipment: {
|
|
1149
|
+
id: string;
|
|
1150
|
+
legs: Array<{
|
|
1151
|
+
id: string;
|
|
1152
|
+
shipmentId: string;
|
|
1153
|
+
updatedAt: string;
|
|
1154
|
+
legNumber: number;
|
|
1155
|
+
mode: Types.TransportMode;
|
|
1156
|
+
carrierId: string | null;
|
|
1157
|
+
carrierName: string | null;
|
|
1158
|
+
weightKg: number | null;
|
|
1159
|
+
volumeCbm: number | null;
|
|
1160
|
+
containerType: Types.OceanContainerType | null;
|
|
1161
|
+
containerCount: number | null;
|
|
1162
|
+
}>;
|
|
1163
|
+
} | null;
|
|
1164
|
+
};
|
|
328
1165
|
export type FreightShipmentsQueryVariables = Exact<{
|
|
329
|
-
pagination?:
|
|
1166
|
+
pagination?: Types.PaginationInput | null | undefined;
|
|
330
1167
|
}>;
|
|
331
1168
|
export type FreightShipmentsQuery = {
|
|
332
|
-
__typename?: 'Query';
|
|
333
1169
|
shipmentsCount: number;
|
|
334
1170
|
shipments: Array<{
|
|
335
|
-
__typename?: 'MtwShipment';
|
|
336
1171
|
id: string;
|
|
337
1172
|
shipmentNumber: string;
|
|
338
|
-
primaryMode: TransportMode;
|
|
1173
|
+
primaryMode: Types.TransportMode;
|
|
339
1174
|
updatedAt: string;
|
|
340
|
-
status: ShipmentStatus;
|
|
1175
|
+
status: Types.ShipmentStatus;
|
|
341
1176
|
}>;
|
|
342
1177
|
};
|
|
343
1178
|
export type FreightShipmentQueryVariables = Exact<{
|
|
344
|
-
id:
|
|
1179
|
+
id: string;
|
|
345
1180
|
}>;
|
|
346
1181
|
export type FreightShipmentQuery = {
|
|
347
|
-
|
|
348
|
-
shipment?: {
|
|
349
|
-
__typename?: 'MtwShipment';
|
|
1182
|
+
shipment: {
|
|
350
1183
|
id: string;
|
|
351
1184
|
shipmentNumber: string;
|
|
352
|
-
primaryMode: TransportMode;
|
|
1185
|
+
primaryMode: Types.TransportMode;
|
|
353
1186
|
updatedAt: string;
|
|
354
|
-
status: ShipmentStatus;
|
|
1187
|
+
status: Types.ShipmentStatus;
|
|
355
1188
|
} | null;
|
|
356
1189
|
};
|
|
357
1190
|
export type FreightHistoryQueryVariables = Exact<{
|
|
358
|
-
shipmentId:
|
|
359
|
-
estimateReference?:
|
|
360
|
-
pagination?:
|
|
1191
|
+
shipmentId: string;
|
|
1192
|
+
estimateReference?: string | null | undefined;
|
|
1193
|
+
pagination?: Types.MtwContainerPagination | null | undefined;
|
|
361
1194
|
}>;
|
|
362
1195
|
export type FreightHistoryQuery = {
|
|
363
|
-
__typename?: 'Query';
|
|
364
1196
|
mtwFreightEstimatePage: {
|
|
365
|
-
__typename?: 'MtwFreightEstimatePage';
|
|
366
1197
|
total: number;
|
|
367
1198
|
limit: number;
|
|
368
1199
|
offset: number;
|
|
369
1200
|
hasMore: boolean;
|
|
370
|
-
nextOffset
|
|
1201
|
+
nextOffset: number | null;
|
|
371
1202
|
items: Array<{
|
|
372
|
-
__typename?: 'MtwFreightEstimateVersion';
|
|
373
1203
|
id: string;
|
|
374
1204
|
shipmentId: string;
|
|
375
1205
|
estimateReference: string;
|
|
376
1206
|
version: number;
|
|
377
|
-
previousVersionId
|
|
1207
|
+
previousVersionId: string | null;
|
|
378
1208
|
recordedAt: string;
|
|
379
1209
|
createdBy: string;
|
|
380
1210
|
actorProvenance: string;
|
|
381
1211
|
validityAtRead: string;
|
|
382
1212
|
shipmentCapture: {
|
|
383
|
-
__typename?: 'MtwFreightShipmentCapture';
|
|
384
1213
|
shipmentNumber: string;
|
|
385
1214
|
primaryMode: string;
|
|
386
1215
|
capturedUpdatedAt: string;
|
|
387
1216
|
};
|
|
388
1217
|
facts: {
|
|
389
|
-
__typename?: 'MtwFreightFacts';
|
|
390
1218
|
title: string;
|
|
391
|
-
kind: MtwFreightKind;
|
|
1219
|
+
kind: Types.MtwFreightKind;
|
|
392
1220
|
};
|
|
393
1221
|
}>;
|
|
394
1222
|
};
|
|
395
1223
|
};
|
|
396
1224
|
export type FreightVersionQueryVariables = Exact<{
|
|
397
|
-
shipmentId:
|
|
398
|
-
id:
|
|
1225
|
+
shipmentId: string;
|
|
1226
|
+
id: string;
|
|
399
1227
|
}>;
|
|
400
1228
|
export type FreightVersionQuery = {
|
|
401
|
-
__typename?: 'Query';
|
|
402
1229
|
mtwFreightEstimateVersion: {
|
|
403
|
-
__typename?: 'MtwFreightEstimateVersion';
|
|
404
1230
|
id: string;
|
|
405
1231
|
shipmentId: string;
|
|
406
1232
|
estimateReference: string;
|
|
407
1233
|
version: number;
|
|
408
|
-
previousVersionId
|
|
1234
|
+
previousVersionId: string | null;
|
|
409
1235
|
recordedAt: string;
|
|
410
1236
|
createdBy: string;
|
|
411
1237
|
actorProvenance: string;
|
|
412
|
-
onBehalfOf
|
|
1238
|
+
onBehalfOf: string | null;
|
|
413
1239
|
validityAtRead: string;
|
|
414
1240
|
shipmentCapture: {
|
|
415
|
-
__typename?: 'MtwFreightShipmentCapture';
|
|
416
1241
|
shipmentNumber: string;
|
|
417
1242
|
primaryMode: string;
|
|
418
1243
|
capturedUpdatedAt: string;
|
|
419
1244
|
};
|
|
420
1245
|
facts: {
|
|
421
|
-
|
|
422
|
-
kind: MtwFreightKind;
|
|
1246
|
+
kind: Types.MtwFreightKind;
|
|
423
1247
|
title: string;
|
|
424
1248
|
commercialScope: string;
|
|
425
1249
|
sourceReference: string;
|
|
426
1250
|
sourceRevision: string;
|
|
427
1251
|
pricingAt: string;
|
|
428
|
-
quotedAt
|
|
429
|
-
validFrom
|
|
430
|
-
validUntil
|
|
431
|
-
rounding: MtwFreightRounding;
|
|
432
|
-
reportingCurrency
|
|
433
|
-
__typename?: 'MtwFreightCurrency';
|
|
1252
|
+
quotedAt: string | null;
|
|
1253
|
+
validFrom: string | null;
|
|
1254
|
+
validUntil: string | null;
|
|
1255
|
+
rounding: Types.MtwFreightRounding;
|
|
1256
|
+
reportingCurrency: {
|
|
434
1257
|
code: string;
|
|
435
1258
|
minorUnitDigits: number;
|
|
436
1259
|
} | null;
|
|
437
1260
|
lines: Array<{
|
|
438
|
-
__typename?: 'MtwFreightLine';
|
|
439
1261
|
id: string;
|
|
440
|
-
category: MtwFreightCategory;
|
|
1262
|
+
category: Types.MtwFreightCategory;
|
|
441
1263
|
description: string;
|
|
442
|
-
payerReference
|
|
443
|
-
payerLabel
|
|
444
|
-
disposition: MtwFreightDisposition;
|
|
445
|
-
inclusionParentLineId
|
|
446
|
-
amountBasis: MtwFreightAmountBasis;
|
|
447
|
-
quantity
|
|
448
|
-
unit
|
|
449
|
-
unitRateMajor
|
|
450
|
-
amountMinor
|
|
451
|
-
zeroReason
|
|
452
|
-
sourceReference
|
|
453
|
-
sourceRevision
|
|
1264
|
+
payerReference: string | null;
|
|
1265
|
+
payerLabel: string | null;
|
|
1266
|
+
disposition: Types.MtwFreightDisposition;
|
|
1267
|
+
inclusionParentLineId: string | null;
|
|
1268
|
+
amountBasis: Types.MtwFreightAmountBasis;
|
|
1269
|
+
quantity: string | null;
|
|
1270
|
+
unit: string | null;
|
|
1271
|
+
unitRateMajor: string | null;
|
|
1272
|
+
amountMinor: string | null;
|
|
1273
|
+
zeroReason: string | null;
|
|
1274
|
+
sourceReference: string | null;
|
|
1275
|
+
sourceRevision: string | null;
|
|
454
1276
|
currency: {
|
|
455
|
-
__typename?: 'MtwFreightCurrency';
|
|
456
1277
|
code: string;
|
|
457
1278
|
minorUnitDigits: number;
|
|
458
1279
|
};
|
|
459
1280
|
}>;
|
|
460
1281
|
requirements: Array<{
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
sourceRevision?: string | null;
|
|
1282
|
+
category: Types.MtwFreightCategory;
|
|
1283
|
+
status: Types.MtwFreightRequirementStatus;
|
|
1284
|
+
reason: string | null;
|
|
1285
|
+
sourceReference: string | null;
|
|
1286
|
+
sourceRevision: string | null;
|
|
467
1287
|
}>;
|
|
468
1288
|
fx: Array<{
|
|
469
|
-
__typename?: 'MtwFreightFx';
|
|
470
1289
|
rate: string;
|
|
471
1290
|
observedAt: string;
|
|
472
1291
|
effectiveFrom: string;
|
|
@@ -474,55 +1293,46 @@ export type FreightVersionQuery = {
|
|
|
474
1293
|
sourceReference: string;
|
|
475
1294
|
sourceRevision: string;
|
|
476
1295
|
fromCurrency: {
|
|
477
|
-
__typename?: 'MtwFreightCurrency';
|
|
478
1296
|
code: string;
|
|
479
1297
|
minorUnitDigits: number;
|
|
480
1298
|
};
|
|
481
1299
|
toCurrency: {
|
|
482
|
-
__typename?: 'MtwFreightCurrency';
|
|
483
1300
|
code: string;
|
|
484
1301
|
minorUnitDigits: number;
|
|
485
1302
|
};
|
|
486
1303
|
}>;
|
|
487
1304
|
};
|
|
488
1305
|
totals: {
|
|
489
|
-
__typename?: 'MtwFreightPreview';
|
|
490
1306
|
completeRelativeToDeclarations: boolean;
|
|
491
|
-
reportingTotalMinor
|
|
1307
|
+
reportingTotalMinor: string | null;
|
|
492
1308
|
subtotals: Array<{
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
payerLabel?: string | null;
|
|
1309
|
+
payerReference: string | null;
|
|
1310
|
+
payerLabel: string | null;
|
|
496
1311
|
knownAmountMinor: string;
|
|
497
|
-
totalAmountMinor
|
|
1312
|
+
totalAmountMinor: string | null;
|
|
498
1313
|
currency: {
|
|
499
|
-
__typename?: 'MtwFreightCurrency';
|
|
500
1314
|
code: string;
|
|
501
1315
|
minorUnitDigits: number;
|
|
502
1316
|
};
|
|
503
1317
|
}>;
|
|
504
1318
|
lines: Array<{
|
|
505
|
-
__typename?: 'MtwFreightLineTotal';
|
|
506
1319
|
id: string;
|
|
507
|
-
nativeAmountMinor
|
|
508
|
-
reportingAmountMinor
|
|
1320
|
+
nativeAmountMinor: string | null;
|
|
1321
|
+
reportingAmountMinor: string | null;
|
|
509
1322
|
roundedToZero: boolean;
|
|
510
1323
|
}>;
|
|
511
1324
|
reasons: Array<{
|
|
512
|
-
__typename?: 'MtwFreightReason';
|
|
513
1325
|
code: string;
|
|
514
|
-
lineId
|
|
1326
|
+
lineId: string | null;
|
|
515
1327
|
detail: string;
|
|
516
1328
|
}>;
|
|
517
1329
|
warnings: Array<{
|
|
518
|
-
__typename?: 'MtwFreightReason';
|
|
519
1330
|
code: string;
|
|
520
|
-
lineId
|
|
1331
|
+
lineId: string | null;
|
|
521
1332
|
detail: string;
|
|
522
1333
|
}>;
|
|
523
1334
|
};
|
|
524
1335
|
evidence: Array<{
|
|
525
|
-
__typename?: 'MtwContainerEvidence';
|
|
526
1336
|
fileId: string;
|
|
527
1337
|
versionId: string;
|
|
528
1338
|
sha256Hash: string;
|
|
@@ -531,120 +1341,104 @@ export type FreightVersionQuery = {
|
|
|
531
1341
|
};
|
|
532
1342
|
};
|
|
533
1343
|
export type PreviewFreightCostsQueryVariables = Exact<{
|
|
534
|
-
input: MtwFreightFactsInput;
|
|
1344
|
+
input: Types.MtwFreightFactsInput;
|
|
535
1345
|
}>;
|
|
536
1346
|
export type PreviewFreightCostsQuery = {
|
|
537
|
-
__typename?: 'Query';
|
|
538
1347
|
previewMtwFreightTotal: {
|
|
539
|
-
__typename?: 'MtwFreightPreview';
|
|
540
1348
|
completeRelativeToDeclarations: boolean;
|
|
541
|
-
reportingTotalMinor
|
|
1349
|
+
reportingTotalMinor: string | null;
|
|
542
1350
|
subtotals: Array<{
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
payerLabel?: string | null;
|
|
1351
|
+
payerReference: string | null;
|
|
1352
|
+
payerLabel: string | null;
|
|
546
1353
|
knownAmountMinor: string;
|
|
547
|
-
totalAmountMinor
|
|
1354
|
+
totalAmountMinor: string | null;
|
|
548
1355
|
currency: {
|
|
549
|
-
__typename?: 'MtwFreightCurrency';
|
|
550
1356
|
code: string;
|
|
551
1357
|
minorUnitDigits: number;
|
|
552
1358
|
};
|
|
553
1359
|
}>;
|
|
554
1360
|
lines: Array<{
|
|
555
|
-
__typename?: 'MtwFreightLineTotal';
|
|
556
1361
|
id: string;
|
|
557
|
-
nativeAmountMinor
|
|
558
|
-
reportingAmountMinor
|
|
1362
|
+
nativeAmountMinor: string | null;
|
|
1363
|
+
reportingAmountMinor: string | null;
|
|
559
1364
|
roundedToZero: boolean;
|
|
560
1365
|
}>;
|
|
561
1366
|
reasons: Array<{
|
|
562
|
-
__typename?: 'MtwFreightReason';
|
|
563
1367
|
code: string;
|
|
564
|
-
lineId
|
|
1368
|
+
lineId: string | null;
|
|
565
1369
|
detail: string;
|
|
566
1370
|
}>;
|
|
567
1371
|
warnings: Array<{
|
|
568
|
-
__typename?: 'MtwFreightReason';
|
|
569
1372
|
code: string;
|
|
570
|
-
lineId
|
|
1373
|
+
lineId: string | null;
|
|
571
1374
|
detail: string;
|
|
572
1375
|
}>;
|
|
573
1376
|
};
|
|
574
1377
|
};
|
|
575
1378
|
export type SaveFreightCostsMutationVariables = Exact<{
|
|
576
|
-
input: SaveMtwFreightEstimateInput;
|
|
1379
|
+
input: Types.SaveMtwFreightEstimateInput;
|
|
577
1380
|
}>;
|
|
578
1381
|
export type SaveFreightCostsMutation = {
|
|
579
|
-
__typename?: 'Mutation';
|
|
580
1382
|
saveMtwFreightEstimate: {
|
|
581
|
-
__typename?: 'MtwFreightEstimateVersion';
|
|
582
1383
|
id: string;
|
|
583
1384
|
shipmentId: string;
|
|
584
1385
|
estimateReference: string;
|
|
585
1386
|
version: number;
|
|
586
|
-
previousVersionId
|
|
1387
|
+
previousVersionId: string | null;
|
|
587
1388
|
recordedAt: string;
|
|
588
1389
|
createdBy: string;
|
|
589
1390
|
actorProvenance: string;
|
|
590
|
-
onBehalfOf
|
|
1391
|
+
onBehalfOf: string | null;
|
|
591
1392
|
validityAtRead: string;
|
|
592
1393
|
shipmentCapture: {
|
|
593
|
-
__typename?: 'MtwFreightShipmentCapture';
|
|
594
1394
|
shipmentNumber: string;
|
|
595
1395
|
primaryMode: string;
|
|
596
1396
|
capturedUpdatedAt: string;
|
|
597
1397
|
};
|
|
598
1398
|
facts: {
|
|
599
|
-
|
|
600
|
-
kind: MtwFreightKind;
|
|
1399
|
+
kind: Types.MtwFreightKind;
|
|
601
1400
|
title: string;
|
|
602
1401
|
commercialScope: string;
|
|
603
1402
|
sourceReference: string;
|
|
604
1403
|
sourceRevision: string;
|
|
605
1404
|
pricingAt: string;
|
|
606
|
-
quotedAt
|
|
607
|
-
validFrom
|
|
608
|
-
validUntil
|
|
609
|
-
rounding: MtwFreightRounding;
|
|
610
|
-
reportingCurrency
|
|
611
|
-
__typename?: 'MtwFreightCurrency';
|
|
1405
|
+
quotedAt: string | null;
|
|
1406
|
+
validFrom: string | null;
|
|
1407
|
+
validUntil: string | null;
|
|
1408
|
+
rounding: Types.MtwFreightRounding;
|
|
1409
|
+
reportingCurrency: {
|
|
612
1410
|
code: string;
|
|
613
1411
|
minorUnitDigits: number;
|
|
614
1412
|
} | null;
|
|
615
1413
|
lines: Array<{
|
|
616
|
-
__typename?: 'MtwFreightLine';
|
|
617
1414
|
id: string;
|
|
618
|
-
category: MtwFreightCategory;
|
|
1415
|
+
category: Types.MtwFreightCategory;
|
|
619
1416
|
description: string;
|
|
620
|
-
payerReference
|
|
621
|
-
payerLabel
|
|
622
|
-
disposition: MtwFreightDisposition;
|
|
623
|
-
inclusionParentLineId
|
|
624
|
-
amountBasis: MtwFreightAmountBasis;
|
|
625
|
-
quantity
|
|
626
|
-
unit
|
|
627
|
-
unitRateMajor
|
|
628
|
-
amountMinor
|
|
629
|
-
zeroReason
|
|
630
|
-
sourceReference
|
|
631
|
-
sourceRevision
|
|
1417
|
+
payerReference: string | null;
|
|
1418
|
+
payerLabel: string | null;
|
|
1419
|
+
disposition: Types.MtwFreightDisposition;
|
|
1420
|
+
inclusionParentLineId: string | null;
|
|
1421
|
+
amountBasis: Types.MtwFreightAmountBasis;
|
|
1422
|
+
quantity: string | null;
|
|
1423
|
+
unit: string | null;
|
|
1424
|
+
unitRateMajor: string | null;
|
|
1425
|
+
amountMinor: string | null;
|
|
1426
|
+
zeroReason: string | null;
|
|
1427
|
+
sourceReference: string | null;
|
|
1428
|
+
sourceRevision: string | null;
|
|
632
1429
|
currency: {
|
|
633
|
-
__typename?: 'MtwFreightCurrency';
|
|
634
1430
|
code: string;
|
|
635
1431
|
minorUnitDigits: number;
|
|
636
1432
|
};
|
|
637
1433
|
}>;
|
|
638
1434
|
requirements: Array<{
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
sourceRevision?: string | null;
|
|
1435
|
+
category: Types.MtwFreightCategory;
|
|
1436
|
+
status: Types.MtwFreightRequirementStatus;
|
|
1437
|
+
reason: string | null;
|
|
1438
|
+
sourceReference: string | null;
|
|
1439
|
+
sourceRevision: string | null;
|
|
645
1440
|
}>;
|
|
646
1441
|
fx: Array<{
|
|
647
|
-
__typename?: 'MtwFreightFx';
|
|
648
1442
|
rate: string;
|
|
649
1443
|
observedAt: string;
|
|
650
1444
|
effectiveFrom: string;
|
|
@@ -652,55 +1446,46 @@ export type SaveFreightCostsMutation = {
|
|
|
652
1446
|
sourceReference: string;
|
|
653
1447
|
sourceRevision: string;
|
|
654
1448
|
fromCurrency: {
|
|
655
|
-
__typename?: 'MtwFreightCurrency';
|
|
656
1449
|
code: string;
|
|
657
1450
|
minorUnitDigits: number;
|
|
658
1451
|
};
|
|
659
1452
|
toCurrency: {
|
|
660
|
-
__typename?: 'MtwFreightCurrency';
|
|
661
1453
|
code: string;
|
|
662
1454
|
minorUnitDigits: number;
|
|
663
1455
|
};
|
|
664
1456
|
}>;
|
|
665
1457
|
};
|
|
666
1458
|
totals: {
|
|
667
|
-
__typename?: 'MtwFreightPreview';
|
|
668
1459
|
completeRelativeToDeclarations: boolean;
|
|
669
|
-
reportingTotalMinor
|
|
1460
|
+
reportingTotalMinor: string | null;
|
|
670
1461
|
subtotals: Array<{
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
payerLabel?: string | null;
|
|
1462
|
+
payerReference: string | null;
|
|
1463
|
+
payerLabel: string | null;
|
|
674
1464
|
knownAmountMinor: string;
|
|
675
|
-
totalAmountMinor
|
|
1465
|
+
totalAmountMinor: string | null;
|
|
676
1466
|
currency: {
|
|
677
|
-
__typename?: 'MtwFreightCurrency';
|
|
678
1467
|
code: string;
|
|
679
1468
|
minorUnitDigits: number;
|
|
680
1469
|
};
|
|
681
1470
|
}>;
|
|
682
1471
|
lines: Array<{
|
|
683
|
-
__typename?: 'MtwFreightLineTotal';
|
|
684
1472
|
id: string;
|
|
685
|
-
nativeAmountMinor
|
|
686
|
-
reportingAmountMinor
|
|
1473
|
+
nativeAmountMinor: string | null;
|
|
1474
|
+
reportingAmountMinor: string | null;
|
|
687
1475
|
roundedToZero: boolean;
|
|
688
1476
|
}>;
|
|
689
1477
|
reasons: Array<{
|
|
690
|
-
__typename?: 'MtwFreightReason';
|
|
691
1478
|
code: string;
|
|
692
|
-
lineId
|
|
1479
|
+
lineId: string | null;
|
|
693
1480
|
detail: string;
|
|
694
1481
|
}>;
|
|
695
1482
|
warnings: Array<{
|
|
696
|
-
__typename?: 'MtwFreightReason';
|
|
697
1483
|
code: string;
|
|
698
|
-
lineId
|
|
1484
|
+
lineId: string | null;
|
|
699
1485
|
detail: string;
|
|
700
1486
|
}>;
|
|
701
1487
|
};
|
|
702
1488
|
evidence: Array<{
|
|
703
|
-
__typename?: 'MtwContainerEvidence';
|
|
704
1489
|
fileId: string;
|
|
705
1490
|
versionId: string;
|
|
706
1491
|
sha256Hash: string;
|
|
@@ -708,9 +1493,14 @@ export type SaveFreightCostsMutation = {
|
|
|
708
1493
|
}>;
|
|
709
1494
|
};
|
|
710
1495
|
};
|
|
711
|
-
export declare const
|
|
712
|
-
export declare const
|
|
713
|
-
export declare const
|
|
714
|
-
export declare const
|
|
715
|
-
export declare const
|
|
716
|
-
export declare const
|
|
1496
|
+
export declare const CommercialProvenanceFragmentDoc: DocumentNode<CommercialProvenanceFragment, unknown>;
|
|
1497
|
+
export declare const SaveFreightCommercialCostsDocument: DocumentNode<SaveFreightCommercialCostsMutation, SaveFreightCommercialCostsMutationVariables>;
|
|
1498
|
+
export declare const FreightCommercialVersionDocument: DocumentNode<FreightCommercialVersionQuery, FreightCommercialVersionQueryVariables>;
|
|
1499
|
+
export declare const FreightCommercialLegsDocument: DocumentNode<FreightCommercialLegsQuery, FreightCommercialLegsQueryVariables>;
|
|
1500
|
+
export declare const FreightShipmentsDocument: DocumentNode<FreightShipmentsQuery, FreightShipmentsQueryVariables>;
|
|
1501
|
+
export declare const FreightShipmentDocument: DocumentNode<FreightShipmentQuery, FreightShipmentQueryVariables>;
|
|
1502
|
+
export declare const FreightHistoryDocument: DocumentNode<FreightHistoryQuery, FreightHistoryQueryVariables>;
|
|
1503
|
+
export declare const FreightVersionDocument: DocumentNode<FreightVersionQuery, FreightVersionQueryVariables>;
|
|
1504
|
+
export declare const PreviewFreightCostsDocument: DocumentNode<PreviewFreightCostsQuery, PreviewFreightCostsQueryVariables>;
|
|
1505
|
+
export declare const SaveFreightCostsDocument: DocumentNode<SaveFreightCostsMutation, SaveFreightCostsMutationVariables>;
|
|
1506
|
+
export {};
|