@burdenoff/microfe-movethewheels 2026.1102.2 → 2026.1107.2
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/MoveTheWheelsRoot.js +148 -140
- package/dist/MoveTheWheelsRoutes.js +29 -25
- package/dist/generated/tracking-quality-operations.d.ts +467 -1
- package/dist/generated/wspace-types.d.ts +9779 -330
- package/dist/movethewheels/pages/ReportsPage.d.ts +1 -0
- package/dist/movethewheels/utils/reports.d.ts +132 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +26 -0
- package/dist/pages/ReportsPage.js +721 -0
- package/dist/utils/reports.js +202 -0
- package/package.json +3 -2
- package/src/generated/tracking-quality-operations.ts +569 -1
- package/src/generated/wspace-types.ts +11263 -380
- package/src/movethewheels/MoveTheWheelsRoot.tsx +8 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +4 -0
- package/src/movethewheels/pages/ReportsPage.tsx +999 -0
- package/src/movethewheels/utils/reports.ts +419 -0
|
@@ -340,6 +340,17 @@ export type CustomerFilterInput = {
|
|
|
340
340
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
341
341
|
type?: InputMaybe<Scalars['String']['input']>;
|
|
342
342
|
};
|
|
343
|
+
export type DecideMtwFreightInvoiceInput = {
|
|
344
|
+
comparisonId: Scalars['ID']['input'];
|
|
345
|
+
decision: MtwFreightInvoiceDecision;
|
|
346
|
+
/** Required for DISPUTED: the invoice row ids under dispute. */
|
|
347
|
+
disputedLineIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
348
|
+
expectedSequence: Scalars['Int']['input'];
|
|
349
|
+
idempotencyKey: Scalars['String']['input'];
|
|
350
|
+
/** Required for DISPUTED and ACCEPTED_WITH_VARIANCE. */
|
|
351
|
+
reason?: InputMaybe<Scalars['String']['input']>;
|
|
352
|
+
shipmentId: Scalars['ID']['input'];
|
|
353
|
+
};
|
|
343
354
|
export type DeliveryJobFilterInput = {
|
|
344
355
|
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
345
356
|
driverId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -393,6 +404,13 @@ export type FreightRateOverridesInput = {
|
|
|
393
404
|
terminalHandlingFee?: InputMaybe<Scalars['Float']['input']>;
|
|
394
405
|
};
|
|
395
406
|
export type FuelType = 'CNG' | 'DIESEL' | 'ELECTRIC' | 'HYBRID' | 'PETROL';
|
|
407
|
+
export type HandOffMtwFreightInvoiceSettlementInput = {
|
|
408
|
+
comparisonId: Scalars['ID']['input'];
|
|
409
|
+
expectedSequence: Scalars['Int']['input'];
|
|
410
|
+
idempotencyKey: Scalars['String']['input'];
|
|
411
|
+
note?: InputMaybe<Scalars['String']['input']>;
|
|
412
|
+
shipmentId: Scalars['ID']['input'];
|
|
413
|
+
};
|
|
396
414
|
export type HoldMtwContainerInput = {
|
|
397
415
|
containerId: Scalars['ID']['input'];
|
|
398
416
|
evidence: Array<MtwContainerEvidenceInput>;
|
|
@@ -906,6 +924,20 @@ export type MtwContainerRepairPage = {
|
|
|
906
924
|
total: Scalars['Int']['output'];
|
|
907
925
|
};
|
|
908
926
|
export type MtwContainerSuitability = 'ACCEPTABLE' | 'REJECTED' | 'REVIEW_REQUIRED';
|
|
927
|
+
export type MtwCreateReportInput = {
|
|
928
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
929
|
+
frequency?: InputMaybe<MtwReportFrequency>;
|
|
930
|
+
isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
931
|
+
name: Scalars['String']['input'];
|
|
932
|
+
/** Defaults to the interval between scheduled runs (1, 7 or 30 days), or 30 when not scheduled. */
|
|
933
|
+
periodDays?: InputMaybe<Scalars['Int']['input']>;
|
|
934
|
+
runHour?: InputMaybe<Scalars['Int']['input']>;
|
|
935
|
+
runMonthDay?: InputMaybe<Scalars['Int']['input']>;
|
|
936
|
+
runWeekday?: InputMaybe<Scalars['Int']['input']>;
|
|
937
|
+
/** Defaults to the workspace's MoveTheWheels time zone, else UTC. */
|
|
938
|
+
timezone?: InputMaybe<Scalars['String']['input']>;
|
|
939
|
+
type: MtwReportType;
|
|
940
|
+
};
|
|
909
941
|
export type MtwCreateServiceOfferingInput = {
|
|
910
942
|
availability?: InputMaybe<MtwServiceAvailability>;
|
|
911
943
|
category: MtwServiceOfferingCategory;
|
|
@@ -1149,8 +1181,26 @@ export type MtwDemandForecastPoint = {
|
|
|
1149
1181
|
predictedRevenue: Scalars['Float']['output'];
|
|
1150
1182
|
predictedVolume: Scalars['Int']['output'];
|
|
1151
1183
|
scopeKey: Scalars['String']['output'];
|
|
1184
|
+
/** Display name: the customer's name for CUSTOMER rows, `Origin → Destination` for LANE rows. */
|
|
1185
|
+
scopeLabel: Scalars['String']['output'];
|
|
1152
1186
|
scopeType: DemandForecastScope;
|
|
1153
1187
|
};
|
|
1188
|
+
/**
|
|
1189
|
+
* When the workspace's forecast was last recalculated. Reads refresh a forecast
|
|
1190
|
+
* that is more than six hours old or was made before the current ISO week.
|
|
1191
|
+
*/
|
|
1192
|
+
export type MtwDemandForecastRunStatus = {
|
|
1193
|
+
__typename?: 'MtwDemandForecastRunStatus';
|
|
1194
|
+
/** A recalculation started within the last 15 minutes and has not finished. */
|
|
1195
|
+
inProgress: Scalars['Boolean']['output'];
|
|
1196
|
+
lastCompletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1197
|
+
lastRowsWritten: Scalars['Int']['output'];
|
|
1198
|
+
/** The most recent recalculation failed; it is retried after 15 minutes. */
|
|
1199
|
+
lastRunFailed: Scalars['Boolean']['output'];
|
|
1200
|
+
lastStartedAt: Scalars['DateTime']['output'];
|
|
1201
|
+
/** The next forecast read will recalculate first. */
|
|
1202
|
+
stale: Scalars['Boolean']['output'];
|
|
1203
|
+
};
|
|
1154
1204
|
export type MtwDemandForecastVariance = {
|
|
1155
1205
|
__typename?: 'MtwDemandForecastVariance';
|
|
1156
1206
|
actualRevenue: Scalars['Float']['output'];
|
|
@@ -1161,6 +1211,8 @@ export type MtwDemandForecastVariance = {
|
|
|
1161
1211
|
predictedVolume: Scalars['Int']['output'];
|
|
1162
1212
|
revenueVariance: Scalars['Float']['output'];
|
|
1163
1213
|
scopeKey: Scalars['String']['output'];
|
|
1214
|
+
/** Display name: the customer's name for CUSTOMER rows, `Origin → Destination` for LANE rows. */
|
|
1215
|
+
scopeLabel: Scalars['String']['output'];
|
|
1164
1216
|
scopeType: DemandForecastScope;
|
|
1165
1217
|
volumeVariance: Scalars['Int']['output'];
|
|
1166
1218
|
};
|
|
@@ -1214,6 +1266,45 @@ export type MtwDriver = {
|
|
|
1214
1266
|
vehicles: Array<MtwVehicle>;
|
|
1215
1267
|
workspaceId: Scalars['ID']['output'];
|
|
1216
1268
|
};
|
|
1269
|
+
/** The calling driver's delivery day: the mobile driver task list (BOFF-3991). */
|
|
1270
|
+
export type MtwDriverDay = {
|
|
1271
|
+
__typename?: 'MtwDriverDay';
|
|
1272
|
+
completedStops: Scalars['Int']['output'];
|
|
1273
|
+
/** The requested local calendar date (YYYY-MM-DD). */
|
|
1274
|
+
date: Scalars['String']['output'];
|
|
1275
|
+
/** The calling actor's Driver record, or null when the actor is not a driver in this workspace. */
|
|
1276
|
+
driverId?: Maybe<Scalars['ID']['output']>;
|
|
1277
|
+
driverName?: Maybe<Scalars['String']['output']>;
|
|
1278
|
+
/** The first stop awaiting capture, else the first upcoming stop. */
|
|
1279
|
+
nextStop?: Maybe<MtwDriverStop>;
|
|
1280
|
+
remainingStops: Scalars['Int']['output'];
|
|
1281
|
+
stops: Array<MtwDriverStop>;
|
|
1282
|
+
totalStops: Scalars['Int']['output'];
|
|
1283
|
+
windowEnd: Scalars['DateTime']['output'];
|
|
1284
|
+
windowStart: Scalars['DateTime']['output'];
|
|
1285
|
+
};
|
|
1286
|
+
/** One stop in the calling driver's day, in driving sequence order. */
|
|
1287
|
+
export type MtwDriverStop = {
|
|
1288
|
+
__typename?: 'MtwDriverStop';
|
|
1289
|
+
/** True while the job is out for delivery / in transit and can take an ePOD capture. */
|
|
1290
|
+
awaitingCapture: Scalars['Boolean']['output'];
|
|
1291
|
+
/** When the ePOD was captured, for completed stops. */
|
|
1292
|
+
deliveredAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1293
|
+
deliveryJob: MtwDeliveryJob;
|
|
1294
|
+
/** An open job scheduled before the requested day that carried over onto today. */
|
|
1295
|
+
overdue: Scalars['Boolean']['output'];
|
|
1296
|
+
routeId?: Maybe<Scalars['ID']['output']>;
|
|
1297
|
+
routeName?: Maybe<Scalars['String']['output']>;
|
|
1298
|
+
/** 1-based position in the driver's sequence for the day. */
|
|
1299
|
+
sequence: Scalars['Int']['output'];
|
|
1300
|
+
state: MtwDriverStopState;
|
|
1301
|
+
};
|
|
1302
|
+
/**
|
|
1303
|
+
* Where a stop sits in the calling driver's day (BOFF-3991): COMPLETED once
|
|
1304
|
+
* delivered, EN_ROUTE while out for delivery / in transit (ePOD capture is
|
|
1305
|
+
* possible), UPCOMING before dispatch, FAILED for failed or returned jobs.
|
|
1306
|
+
*/
|
|
1307
|
+
export type MtwDriverStopState = 'COMPLETED' | 'EN_ROUTE' | 'FAILED' | 'UPCOMING';
|
|
1217
1308
|
export type MtwDriverSuggestion = {
|
|
1218
1309
|
__typename?: 'MtwDriverSuggestion';
|
|
1219
1310
|
driver: MtwDriver;
|
|
@@ -1882,6 +1973,7 @@ export type MtwFreightInvoiceComparisonPage = {
|
|
|
1882
1973
|
offset: Scalars['Int']['output'];
|
|
1883
1974
|
total: Scalars['Int']['output'];
|
|
1884
1975
|
};
|
|
1976
|
+
export type MtwFreightInvoiceDecision = 'ACCEPTED' | 'ACCEPTED_WITH_VARIANCE' | 'DISPUTED';
|
|
1885
1977
|
export type MtwFreightInvoiceEstimatePin = {
|
|
1886
1978
|
__typename?: 'MtwFreightInvoiceEstimatePin';
|
|
1887
1979
|
acceptance: MtwFreightInvoiceAcceptance;
|
|
@@ -1942,6 +2034,81 @@ export type MtwFreightInvoicePreview = {
|
|
|
1942
2034
|
recordable: Scalars['Boolean']['output'];
|
|
1943
2035
|
};
|
|
1944
2036
|
export type MtwFreightInvoiceReason = 'INCLUDED_CHILD_BILLED_SEPARATELY' | 'MISSING_AMOUNT' | 'MISSING_PAYER' | 'MISSING_QUANTITY' | 'MISSING_RATE' | 'MISSING_UNIT' | 'SCALE_MISMATCH' | 'UNIT_MISMATCH' | 'UNKNOWN_BASIS' | 'UNKNOWN_DISPOSITION' | 'UNKNOWN_EXPECTED_CHARGE_COVERAGE';
|
|
2037
|
+
export type MtwFreightInvoiceResolution = 'ACCEPTED' | 'ACCEPTED_WITH_VARIANCE';
|
|
2038
|
+
export type MtwFreightInvoiceReview = {
|
|
2039
|
+
__typename?: 'MtwFreightInvoiceReview';
|
|
2040
|
+
/** Lifecycle steps open to the caller. Gateway permissions still apply. */
|
|
2041
|
+
allowedActions: Array<MtwFreightInvoiceReviewAction>;
|
|
2042
|
+
comparisonCreatedBy: Scalars['ID']['output'];
|
|
2043
|
+
comparisonId: Scalars['ID']['output'];
|
|
2044
|
+
comparisonRecordedAt: Scalars['DateTime']['output'];
|
|
2045
|
+
currency: MtwFreightCurrency;
|
|
2046
|
+
events: Array<MtwFreightInvoiceReviewEvent>;
|
|
2047
|
+
/** False when at least one reported row has no amount. */
|
|
2048
|
+
invoiceAmountComplete: Scalars['Boolean']['output'];
|
|
2049
|
+
invoiceIdentityId: Scalars['ID']['output'];
|
|
2050
|
+
invoiceReference: Scalars['String']['output'];
|
|
2051
|
+
/** Sum of the reported invoice amounts that are known. */
|
|
2052
|
+
knownInvoiceAmountMinor: Scalars['String']['output'];
|
|
2053
|
+
latestRevision: Scalars['Int']['output'];
|
|
2054
|
+
/** True when this revision's open dispute was closed by a newer correction revision. */
|
|
2055
|
+
resolvedByCorrection: Scalars['Boolean']['output'];
|
|
2056
|
+
revision: Scalars['Int']['output'];
|
|
2057
|
+
/** Sequence of the last review event (0 when none); pass it as expectedSequence. */
|
|
2058
|
+
sequence: Scalars['Int']['output'];
|
|
2059
|
+
settlementReference?: Maybe<Scalars['String']['output']>;
|
|
2060
|
+
shipmentId: Scalars['ID']['output'];
|
|
2061
|
+
status: MtwFreightInvoiceReviewStatus;
|
|
2062
|
+
supersededByComparisonId?: Maybe<Scalars['ID']['output']>;
|
|
2063
|
+
supplierLabel?: Maybe<Scalars['String']['output']>;
|
|
2064
|
+
supplierReference: Scalars['String']['output'];
|
|
2065
|
+
viewerIsAuthor: Scalars['Boolean']['output'];
|
|
2066
|
+
};
|
|
2067
|
+
export type MtwFreightInvoiceReviewAction = 'DECIDE' | 'HAND_OFF_SETTLEMENT' | 'RECORD_SUPPLIER_RESPONSE' | 'RESOLVE_DISPUTE';
|
|
2068
|
+
export type MtwFreightInvoiceReviewEvent = {
|
|
2069
|
+
__typename?: 'MtwFreightInvoiceReviewEvent';
|
|
2070
|
+
actorProvenance: Scalars['String']['output'];
|
|
2071
|
+
comparisonId: Scalars['ID']['output'];
|
|
2072
|
+
createdBy: Scalars['ID']['output'];
|
|
2073
|
+
/** The decision for DECISION, or the accepting outcome for DISPUTE_RESOLUTION. */
|
|
2074
|
+
decision?: Maybe<MtwFreightInvoiceDecision>;
|
|
2075
|
+
disputedLineIds: Array<Scalars['ID']['output']>;
|
|
2076
|
+
id: Scalars['ID']['output'];
|
|
2077
|
+
kind: MtwFreightInvoiceReviewEventKind;
|
|
2078
|
+
onBehalfOf?: Maybe<Scalars['ID']['output']>;
|
|
2079
|
+
previousEventId?: Maybe<Scalars['ID']['output']>;
|
|
2080
|
+
/** Dispute or variance reason, supplier response text, resolution reason or hand-off note. */
|
|
2081
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
2082
|
+
recordedAt: Scalars['DateTime']['output'];
|
|
2083
|
+
sequence: Scalars['Int']['output'];
|
|
2084
|
+
settlementReference?: Maybe<Scalars['String']['output']>;
|
|
2085
|
+
statusAfter: MtwFreightInvoiceReviewStatus;
|
|
2086
|
+
};
|
|
2087
|
+
export type MtwFreightInvoiceReviewEventKind = 'DECISION' | 'DISPUTE_RESOLUTION' | 'SETTLEMENT_HANDOFF' | 'SUPPLIER_RESPONSE';
|
|
2088
|
+
export type MtwFreightInvoiceReviewPage = {
|
|
2089
|
+
__typename?: 'MtwFreightInvoiceReviewPage';
|
|
2090
|
+
hasMore: Scalars['Boolean']['output'];
|
|
2091
|
+
items: Array<MtwFreightInvoiceReview>;
|
|
2092
|
+
limit: Scalars['Int']['output'];
|
|
2093
|
+
nextOffset?: Maybe<Scalars['Int']['output']>;
|
|
2094
|
+
offset: Scalars['Int']['output'];
|
|
2095
|
+
total: Scalars['Int']['output'];
|
|
2096
|
+
};
|
|
2097
|
+
/** Review status of one exact invoice comparison revision, derived from its append-only review events. */
|
|
2098
|
+
export type MtwFreightInvoiceReviewStatus = 'ACCEPTED' | 'ACCEPTED_WITH_VARIANCE' | 'AWAITING_REVIEW' | 'DISPUTED' | 'SETTLEMENT_HANDED_OFF'
|
|
2099
|
+
/** A newer correction revision exists; review continues on that revision. */
|
|
2100
|
+
| 'SUPERSEDED' | 'SUPPLIER_RESPONDED';
|
|
2101
|
+
/** Counts over the latest revision of every recorded carrier invoice in the workspace. */
|
|
2102
|
+
export type MtwFreightInvoiceReviewSummary = {
|
|
2103
|
+
__typename?: 'MtwFreightInvoiceReviewSummary';
|
|
2104
|
+
accepted: Scalars['Int']['output'];
|
|
2105
|
+
acceptedWithVariance: Scalars['Int']['output'];
|
|
2106
|
+
awaitingReview: Scalars['Int']['output'];
|
|
2107
|
+
disputed: Scalars['Int']['output'];
|
|
2108
|
+
settlementHandedOff: Scalars['Int']['output'];
|
|
2109
|
+
supplierResponded: Scalars['Int']['output'];
|
|
2110
|
+
total: Scalars['Int']['output'];
|
|
2111
|
+
};
|
|
1945
2112
|
export type MtwFreightInvoiceRow = {
|
|
1946
2113
|
__typename?: 'MtwFreightInvoiceRow';
|
|
1947
2114
|
amountMinor?: Maybe<Scalars['String']['output']>;
|
|
@@ -2131,6 +2298,12 @@ export type MtwFuelVolumeObservationInput = {
|
|
|
2131
2298
|
sourceReference?: InputMaybe<Scalars['String']['input']>;
|
|
2132
2299
|
sourceRevision?: InputMaybe<Scalars['String']['input']>;
|
|
2133
2300
|
};
|
|
2301
|
+
export type MtwGenerateReportInput = {
|
|
2302
|
+
/** Defaults to now. */
|
|
2303
|
+
periodEnd?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2304
|
+
/** Defaults to `periodEnd` minus the report's `periodDays`. */
|
|
2305
|
+
periodStart?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2306
|
+
};
|
|
2134
2307
|
export type MtwImportColumn = {
|
|
2135
2308
|
__typename?: 'MtwImportColumn';
|
|
2136
2309
|
allowedValues?: Maybe<Array<Scalars['String']['output']>>;
|
|
@@ -2271,7 +2444,7 @@ export type MtwIntegrationIngestReceipt = {
|
|
|
2271
2444
|
trackingEventId: Scalars['ID']['output'];
|
|
2272
2445
|
workspaceId: Scalars['ID']['output'];
|
|
2273
2446
|
};
|
|
2274
|
-
export type MtwIntegrationProvider = 'DESCARTES' | 'FOURKITES' | 'GENERIC_WEBHOOK' | 'PROJECT44';
|
|
2447
|
+
export type MtwIntegrationProvider = 'DESCARTES' | 'FOURKITES' | 'GENERIC_WEBHOOK' | 'PROJECT44' | 'SHIPROCKET';
|
|
2275
2448
|
export type MtwInventoryItem = {
|
|
2276
2449
|
__typename?: 'MtwInventoryItem';
|
|
2277
2450
|
allocated: Scalars['Int']['output'];
|
|
@@ -2849,6 +3022,148 @@ export type MtwProofOfDelivery = {
|
|
|
2849
3022
|
updatedBy?: Maybe<Scalars['String']['output']>;
|
|
2850
3023
|
workspaceId: Scalars['ID']['output'];
|
|
2851
3024
|
};
|
|
3025
|
+
/** A saved report definition. */
|
|
3026
|
+
export type MtwReport = {
|
|
3027
|
+
__typename?: 'MtwReport';
|
|
3028
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3029
|
+
createdBy: Scalars['String']['output'];
|
|
3030
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
3031
|
+
frequency: MtwReportFrequency;
|
|
3032
|
+
id: Scalars['ID']['output'];
|
|
3033
|
+
/** Paused reports keep their schedule but are not generated automatically. */
|
|
3034
|
+
isActive: Scalars['Boolean']['output'];
|
|
3035
|
+
lastError?: Maybe<Scalars['String']['output']>;
|
|
3036
|
+
lastGeneratedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
3037
|
+
/** COMPLETED or FAILED, from the latest generation. */
|
|
3038
|
+
lastRunStatus?: Maybe<Scalars['String']['output']>;
|
|
3039
|
+
/** The most recent run, if the report was ever generated. */
|
|
3040
|
+
latestRun?: Maybe<MtwReportRun>;
|
|
3041
|
+
name: Scalars['String']['output'];
|
|
3042
|
+
/** Next automatic generation; null when the report is not scheduled or is paused. */
|
|
3043
|
+
nextRunAt?: Maybe<Scalars['DateTime']['output']>;
|
|
3044
|
+
/**
|
|
3045
|
+
* Days of history a generation covers when no explicit period is given. A
|
|
3046
|
+
* scheduled run covers this many days up to the time it was due.
|
|
3047
|
+
*/
|
|
3048
|
+
periodDays: Scalars['Int']['output'];
|
|
3049
|
+
/** Local hour (0-23) in `timezone` at which a scheduled report runs. */
|
|
3050
|
+
runHour: Scalars['Int']['output'];
|
|
3051
|
+
/** Day of the month (1-28) a MONTHLY report runs on. */
|
|
3052
|
+
runMonthDay: Scalars['Int']['output'];
|
|
3053
|
+
/** ISO weekday (1 = Monday ... 7 = Sunday) a WEEKLY report runs on. */
|
|
3054
|
+
runWeekday: Scalars['Int']['output'];
|
|
3055
|
+
/** Runs of this report, newest first (the latest 30 are kept). */
|
|
3056
|
+
runs: Array<MtwReportRun>;
|
|
3057
|
+
/** IANA time zone the schedule is evaluated in. */
|
|
3058
|
+
timezone: Scalars['String']['output'];
|
|
3059
|
+
type: MtwReportType;
|
|
3060
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3061
|
+
updatedBy?: Maybe<Scalars['String']['output']>;
|
|
3062
|
+
workspaceId: Scalars['ID']['output'];
|
|
3063
|
+
};
|
|
3064
|
+
/** A saved report definition. */
|
|
3065
|
+
export type MtwReportRunsArgs = {
|
|
3066
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
3067
|
+
};
|
|
3068
|
+
/** A column of a report run's detail rows. */
|
|
3069
|
+
export type MtwReportColumn = {
|
|
3070
|
+
__typename?: 'MtwReportColumn';
|
|
3071
|
+
/** Key of this column's value in each row object. */
|
|
3072
|
+
key: Scalars['String']['output'];
|
|
3073
|
+
/** TEXT, NUMBER, CURRENCY, DATE (ISO 8601 string) or BOOLEAN. */
|
|
3074
|
+
kind: Scalars['String']['output'];
|
|
3075
|
+
label: Scalars['String']['output'];
|
|
3076
|
+
};
|
|
3077
|
+
/** A downloadable report run. */
|
|
3078
|
+
export type MtwReportExport = {
|
|
3079
|
+
__typename?: 'MtwReportExport';
|
|
3080
|
+
content: Scalars['String']['output'];
|
|
3081
|
+
contentType: Scalars['String']['output'];
|
|
3082
|
+
filename: Scalars['String']['output'];
|
|
3083
|
+
rowCount: Scalars['Int']['output'];
|
|
3084
|
+
truncated: Scalars['Boolean']['output'];
|
|
3085
|
+
};
|
|
3086
|
+
export type MtwReportFilterInput = {
|
|
3087
|
+
frequency?: InputMaybe<MtwReportFrequency>;
|
|
3088
|
+
isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3089
|
+
/** Case-insensitive match on name and description. */
|
|
3090
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
3091
|
+
type?: InputMaybe<MtwReportType>;
|
|
3092
|
+
};
|
|
3093
|
+
export type MtwReportFormat = 'CSV' | 'JSON';
|
|
3094
|
+
/** How often a report is generated automatically. */
|
|
3095
|
+
export type MtwReportFrequency = 'DAILY' | 'MONTHLY' | 'NONE' | 'WEEKLY';
|
|
3096
|
+
/** A headline figure of a report run, computed over the whole period. */
|
|
3097
|
+
export type MtwReportMetric = {
|
|
3098
|
+
__typename?: 'MtwReportMetric';
|
|
3099
|
+
/** ISO 4217 code for CURRENCY figures when known. */
|
|
3100
|
+
currency?: Maybe<Scalars['String']['output']>;
|
|
3101
|
+
key: Scalars['String']['output'];
|
|
3102
|
+
/** NUMBER, CURRENCY, PERCENT (a 0-1 ratio), DISTANCE (km) or WEIGHT (kg). */
|
|
3103
|
+
kind: Scalars['String']['output'];
|
|
3104
|
+
label: Scalars['String']['output'];
|
|
3105
|
+
value?: Maybe<Scalars['Float']['output']>;
|
|
3106
|
+
};
|
|
3107
|
+
/** One generation of a report. */
|
|
3108
|
+
export type MtwReportRun = {
|
|
3109
|
+
__typename?: 'MtwReportRun';
|
|
3110
|
+
columns: Array<MtwReportColumn>;
|
|
3111
|
+
createdBy: Scalars['String']['output'];
|
|
3112
|
+
durationMs?: Maybe<Scalars['Int']['output']>;
|
|
3113
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
3114
|
+
finishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
3115
|
+
id: Scalars['ID']['output'];
|
|
3116
|
+
metrics: Array<MtwReportMetric>;
|
|
3117
|
+
periodEnd: Scalars['DateTime']['output'];
|
|
3118
|
+
periodStart: Scalars['DateTime']['output'];
|
|
3119
|
+
/** The report this run belongs to. Resolves even if the report was later deleted. */
|
|
3120
|
+
report?: Maybe<MtwReport>;
|
|
3121
|
+
reportId: Scalars['ID']['output'];
|
|
3122
|
+
reportType: MtwReportType;
|
|
3123
|
+
rowCount: Scalars['Int']['output'];
|
|
3124
|
+
/**
|
|
3125
|
+
* Detail rows as objects keyed by column key, in the order generated. Pages of
|
|
3126
|
+
* at most 500.
|
|
3127
|
+
*/
|
|
3128
|
+
rows: Array<Scalars['JSON']['output']>;
|
|
3129
|
+
startedAt: Scalars['DateTime']['output'];
|
|
3130
|
+
/** RUNNING, COMPLETED or FAILED. */
|
|
3131
|
+
status: Scalars['String']['output'];
|
|
3132
|
+
/** MANUAL or SCHEDULED. */
|
|
3133
|
+
trigger: Scalars['String']['output'];
|
|
3134
|
+
/** True when the period had more rows than the 5,000 a run stores. Metrics still cover everything. */
|
|
3135
|
+
truncated: Scalars['Boolean']['output'];
|
|
3136
|
+
workspaceId: Scalars['ID']['output'];
|
|
3137
|
+
};
|
|
3138
|
+
/** One generation of a report. */
|
|
3139
|
+
export type MtwReportRunRowsArgs = {
|
|
3140
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
3141
|
+
};
|
|
3142
|
+
/** The workspace's scheduled-reports job in the platform scheduler. */
|
|
3143
|
+
export type MtwReportSchedule = {
|
|
3144
|
+
__typename?: 'MtwReportSchedule';
|
|
3145
|
+
cronExpression: Scalars['String']['output'];
|
|
3146
|
+
lastError?: Maybe<Scalars['String']['output']>;
|
|
3147
|
+
lastFiredAt?: Maybe<Scalars['DateTime']['output']>;
|
|
3148
|
+
schedulerJobId?: Maybe<Scalars['String']['output']>;
|
|
3149
|
+
/** PENDING, REGISTERING (a registration is in progress), ACTIVE or FAILED. */
|
|
3150
|
+
status: Scalars['String']['output'];
|
|
3151
|
+
timezone: Scalars['String']['output'];
|
|
3152
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3153
|
+
workspaceId: Scalars['ID']['output'];
|
|
3154
|
+
};
|
|
3155
|
+
/** What a report covers. */
|
|
3156
|
+
export type MtwReportType =
|
|
3157
|
+
/** Every customer with their orders, deliveries and revenue in the period. */
|
|
3158
|
+
'CUSTOMERS'
|
|
3159
|
+
/** Order revenue, delivered and outstanding amounts, and freight cost in the period, per currency. */
|
|
3160
|
+
| 'FINANCE'
|
|
3161
|
+
/** Every vehicle with its orders, completed routes, distance, fuel cost and emissions in the period. */
|
|
3162
|
+
| 'FLEET'
|
|
3163
|
+
/** Every stock line with its levels, value and movements in the period. */
|
|
3164
|
+
| 'INVENTORY'
|
|
3165
|
+
/** Shipments booked in the period: status, lanes, on-time delivery and freight cost. */
|
|
3166
|
+
| 'OPERATIONS';
|
|
2852
3167
|
export type MtwReuseApprovalKind = 'APPROVED' | 'REJECTED' | 'REVOKED';
|
|
2853
3168
|
export type MtwReuseBlocker = {
|
|
2854
3169
|
__typename?: 'MtwReuseBlocker';
|
|
@@ -3205,6 +3520,20 @@ export type MtwRunRiskSweepInput = {
|
|
|
3205
3520
|
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
3206
3521
|
triggerData?: InputMaybe<Scalars['JSON']['input']>;
|
|
3207
3522
|
};
|
|
3523
|
+
/** Execution context the platform scheduler adds when it fires the job. */
|
|
3524
|
+
export type MtwRunScheduledReportsInput = {
|
|
3525
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
3526
|
+
triggerData?: InputMaybe<Scalars['JSON']['input']>;
|
|
3527
|
+
};
|
|
3528
|
+
/** Outcome of one scheduled-reports fire. */
|
|
3529
|
+
export type MtwScheduledReportsRun = {
|
|
3530
|
+
__typename?: 'MtwScheduledReportsRun';
|
|
3531
|
+
ranAt: Scalars['DateTime']['output'];
|
|
3532
|
+
reportsDue: Scalars['Int']['output'];
|
|
3533
|
+
reportsFailed: Scalars['Int']['output'];
|
|
3534
|
+
reportsGenerated: Scalars['Int']['output'];
|
|
3535
|
+
runs: Array<MtwReportRun>;
|
|
3536
|
+
};
|
|
3208
3537
|
/** Whether the provider currently has capacity for an offering. */
|
|
3209
3538
|
export type MtwServiceAvailability = 'AVAILABLE' | 'LIMITED' | 'UNAVAILABLE';
|
|
3210
3539
|
/** A discoverable service a provider offers, with indicative price and availability. */
|
|
@@ -3837,6 +4166,18 @@ export type MtwTripUtilizationSummary = {
|
|
|
3837
4166
|
tripId: Scalars['ID']['output'];
|
|
3838
4167
|
unknownFactsSegmentCount: Scalars['Int']['output'];
|
|
3839
4168
|
};
|
|
4169
|
+
export type MtwUpdateReportInput = {
|
|
4170
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
4171
|
+
frequency?: InputMaybe<MtwReportFrequency>;
|
|
4172
|
+
isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4173
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
4174
|
+
periodDays?: InputMaybe<Scalars['Int']['input']>;
|
|
4175
|
+
runHour?: InputMaybe<Scalars['Int']['input']>;
|
|
4176
|
+
runMonthDay?: InputMaybe<Scalars['Int']['input']>;
|
|
4177
|
+
runWeekday?: InputMaybe<Scalars['Int']['input']>;
|
|
4178
|
+
timezone?: InputMaybe<Scalars['String']['input']>;
|
|
4179
|
+
type?: InputMaybe<MtwReportType>;
|
|
4180
|
+
};
|
|
3840
4181
|
export type MtwUpdateServiceOfferingInput = {
|
|
3841
4182
|
availability?: InputMaybe<MtwServiceAvailability>;
|
|
3842
4183
|
category?: InputMaybe<MtwServiceOfferingCategory>;
|
|
@@ -4030,6 +4371,7 @@ export type Mutation = {
|
|
|
4030
4371
|
createInventoryItem: MtwInventoryItem;
|
|
4031
4372
|
createInventoryTransaction: MtwInventoryTransaction;
|
|
4032
4373
|
createMtwPickTaskIntent: MtwPickTask;
|
|
4374
|
+
createMtwReport: MtwReport;
|
|
4033
4375
|
createRoute: MtwRoute;
|
|
4034
4376
|
createServiceOffering: MtwServiceOffering;
|
|
4035
4377
|
createServiceProvider: MtwServiceProvider;
|
|
@@ -4037,12 +4379,16 @@ export type Mutation = {
|
|
|
4037
4379
|
createVehicle: MtwVehicle;
|
|
4038
4380
|
createWarehouse: MtwWarehouse;
|
|
4039
4381
|
createWarehouseLocation: MtwWarehouseLocation;
|
|
4382
|
+
/** Accept, accept with variance, or dispute the latest revision. The comparison author cannot decide. */
|
|
4383
|
+
decideMtwFreightInvoice: MtwFreightInvoiceReview;
|
|
4040
4384
|
deleteCargoItem: Scalars['Boolean']['output'];
|
|
4041
4385
|
deleteCustomer: Scalars['Boolean']['output'];
|
|
4042
4386
|
deleteDeliveryJob: Scalars['Boolean']['output'];
|
|
4043
4387
|
deleteDriver: Scalars['Boolean']['output'];
|
|
4044
4388
|
deleteIntegration: Scalars['Boolean']['output'];
|
|
4045
4389
|
deleteInventoryItem: Scalars['Boolean']['output'];
|
|
4390
|
+
/** Soft-deletes the report and stops its schedule. Its past runs stay readable. */
|
|
4391
|
+
deleteMtwReport: Scalars['Boolean']['output'];
|
|
4046
4392
|
deleteRoute: Scalars['Boolean']['output'];
|
|
4047
4393
|
deleteServiceOffering: Scalars['Boolean']['output'];
|
|
4048
4394
|
/** Soft-deletes the provider and its offerings. Shipments that already reference it keep the reference. */
|
|
@@ -4051,12 +4397,18 @@ export type Mutation = {
|
|
|
4051
4397
|
deleteVehicle: Scalars['Boolean']['output'];
|
|
4052
4398
|
deleteWarehouse: Scalars['Boolean']['output'];
|
|
4053
4399
|
exportMtwEntities: MtwExportJob;
|
|
4400
|
+
/** Generate the report now and store the run. */
|
|
4401
|
+
generateMtwReport: MtwReportRun;
|
|
4402
|
+
/** Hand an accepted revision to platform Billing for settlement. MoveTheWheels keeps no ledger. */
|
|
4403
|
+
handOffMtwFreightInvoiceSettlement: MtwFreightInvoiceReview;
|
|
4054
4404
|
holdMtwContainer: MtwContainerHold;
|
|
4055
4405
|
importMtwCargoItems: MtwImportResult;
|
|
4056
4406
|
importMtwCustomers: MtwImportResult;
|
|
4057
4407
|
importMtwDrivers: MtwImportResult;
|
|
4058
4408
|
importMtwVehicles: MtwImportResult;
|
|
4059
4409
|
importMtwWarehouses: MtwImportResult;
|
|
4410
|
+
/** Register, verify or repair the workspace's scheduled-reports job. Idempotent. */
|
|
4411
|
+
mtwEnsureReportSchedule?: Maybe<MtwReportSchedule>;
|
|
4060
4412
|
/**
|
|
4061
4413
|
* Register, verify or repair the workspace's risk sweep with the platform
|
|
4062
4414
|
* scheduler. Idempotent; leaves a job an operator paused alone.
|
|
@@ -4075,6 +4427,12 @@ export type Mutation = {
|
|
|
4075
4427
|
* actor; a workspace user may also run it on demand.
|
|
4076
4428
|
*/
|
|
4077
4429
|
mtwRunRiskSweep: MtwRiskSweep;
|
|
4430
|
+
/**
|
|
4431
|
+
* Generate every scheduled report whose next run has passed. Fired hourly by
|
|
4432
|
+
* wspace-scheduler-svc as this service's own service actor; a workspace user
|
|
4433
|
+
* may also run it on demand.
|
|
4434
|
+
*/
|
|
4435
|
+
mtwRunScheduledReports: MtwScheduledReportsRun;
|
|
4078
4436
|
openMtwContainerCycle: MtwContainerCycle;
|
|
4079
4437
|
openMtwFreeTimeClock: MtwFreeTimeClock;
|
|
4080
4438
|
optimizeRoute: MtwRoute;
|
|
@@ -4089,6 +4447,7 @@ export type Mutation = {
|
|
|
4089
4447
|
recordMtwEquipmentReuseApproval: MtwEquipmentReuseApproval;
|
|
4090
4448
|
recordMtwFreeTimeAgreement: MtwFreeTimeAgreement;
|
|
4091
4449
|
recordMtwFreeTimeExtensionDecision: MtwFreeTimeExtensionDecision;
|
|
4450
|
+
recordMtwFreightInvoiceSupplierResponse: MtwFreightInvoiceReview;
|
|
4092
4451
|
recordMtwProcedureDeviation: MtwProcedureDeviation;
|
|
4093
4452
|
recordMtwProcedureStep: MtwProcedureStepDecision;
|
|
4094
4453
|
recordMtwReuseProposal: MtwReuseProposal;
|
|
@@ -4101,6 +4460,8 @@ export type Mutation = {
|
|
|
4101
4460
|
releaseMtwContainerHold: MtwContainerReleaseDecision;
|
|
4102
4461
|
removeShipmentLeg: Scalars['Boolean']['output'];
|
|
4103
4462
|
requestMtwFreeTimeExtension: MtwFreeTimeExtension;
|
|
4463
|
+
/** Close an open dispute by acceptance. A dispute can also close through a correction revision. */
|
|
4464
|
+
resolveMtwFreightInvoiceDispute: MtwFreightInvoiceReview;
|
|
4104
4465
|
revokeMtwInspectorQualification: MtwInspectorQualification;
|
|
4105
4466
|
revokeMtwPickTaskReview: MtwPickReview;
|
|
4106
4467
|
revokeMtwProcedureDeviation: MtwProcedureDeviation;
|
|
@@ -4124,6 +4485,7 @@ export type Mutation = {
|
|
|
4124
4485
|
updateMtwCustomerNotificationSettings: MtwCustomerNotificationSettings;
|
|
4125
4486
|
/** Save the workspace's MoveTheWheels operational defaults. Every field is validated. */
|
|
4126
4487
|
updateMtwModuleSettings: MtwModuleSettings;
|
|
4488
|
+
updateMtwReport: MtwReport;
|
|
4127
4489
|
updateRoute: MtwRoute;
|
|
4128
4490
|
updateServiceOffering: MtwServiceOffering;
|
|
4129
4491
|
updateServiceProvider: MtwServiceProvider;
|
|
@@ -4200,6 +4562,9 @@ export type MutationCreateInventoryTransactionArgs = {
|
|
|
4200
4562
|
export type MutationCreateMtwPickTaskIntentArgs = {
|
|
4201
4563
|
input: CreateMtwPickTaskIntentInput;
|
|
4202
4564
|
};
|
|
4565
|
+
export type MutationCreateMtwReportArgs = {
|
|
4566
|
+
input: MtwCreateReportInput;
|
|
4567
|
+
};
|
|
4203
4568
|
export type MutationCreateRouteArgs = {
|
|
4204
4569
|
input: CreateRouteInput;
|
|
4205
4570
|
};
|
|
@@ -4221,6 +4586,9 @@ export type MutationCreateWarehouseArgs = {
|
|
|
4221
4586
|
export type MutationCreateWarehouseLocationArgs = {
|
|
4222
4587
|
input: CreateWarehouseLocationInput;
|
|
4223
4588
|
};
|
|
4589
|
+
export type MutationDecideMtwFreightInvoiceArgs = {
|
|
4590
|
+
input: DecideMtwFreightInvoiceInput;
|
|
4591
|
+
};
|
|
4224
4592
|
export type MutationDeleteCargoItemArgs = {
|
|
4225
4593
|
id: Scalars['ID']['input'];
|
|
4226
4594
|
};
|
|
@@ -4239,6 +4607,9 @@ export type MutationDeleteIntegrationArgs = {
|
|
|
4239
4607
|
export type MutationDeleteInventoryItemArgs = {
|
|
4240
4608
|
id: Scalars['ID']['input'];
|
|
4241
4609
|
};
|
|
4610
|
+
export type MutationDeleteMtwReportArgs = {
|
|
4611
|
+
id: Scalars['ID']['input'];
|
|
4612
|
+
};
|
|
4242
4613
|
export type MutationDeleteRouteArgs = {
|
|
4243
4614
|
id: Scalars['ID']['input'];
|
|
4244
4615
|
};
|
|
@@ -4260,6 +4631,13 @@ export type MutationDeleteWarehouseArgs = {
|
|
|
4260
4631
|
export type MutationExportMtwEntitiesArgs = {
|
|
4261
4632
|
input: ExportMtwEntitiesInput;
|
|
4262
4633
|
};
|
|
4634
|
+
export type MutationGenerateMtwReportArgs = {
|
|
4635
|
+
id: Scalars['ID']['input'];
|
|
4636
|
+
input?: InputMaybe<MtwGenerateReportInput>;
|
|
4637
|
+
};
|
|
4638
|
+
export type MutationHandOffMtwFreightInvoiceSettlementArgs = {
|
|
4639
|
+
input: HandOffMtwFreightInvoiceSettlementInput;
|
|
4640
|
+
};
|
|
4263
4641
|
export type MutationHoldMtwContainerArgs = {
|
|
4264
4642
|
input: HoldMtwContainerInput;
|
|
4265
4643
|
};
|
|
@@ -4284,6 +4662,9 @@ export type MutationMtwNarrateShipmentRiskForecastArgs = {
|
|
|
4284
4662
|
export type MutationMtwRunRiskSweepArgs = {
|
|
4285
4663
|
input?: InputMaybe<MtwRunRiskSweepInput>;
|
|
4286
4664
|
};
|
|
4665
|
+
export type MutationMtwRunScheduledReportsArgs = {
|
|
4666
|
+
input?: InputMaybe<MtwRunScheduledReportsInput>;
|
|
4667
|
+
};
|
|
4287
4668
|
export type MutationOpenMtwContainerCycleArgs = {
|
|
4288
4669
|
input: OpenMtwContainerCycleInput;
|
|
4289
4670
|
};
|
|
@@ -4326,6 +4707,9 @@ export type MutationRecordMtwFreeTimeAgreementArgs = {
|
|
|
4326
4707
|
export type MutationRecordMtwFreeTimeExtensionDecisionArgs = {
|
|
4327
4708
|
input: RecordMtwFreeTimeExtensionDecisionInput;
|
|
4328
4709
|
};
|
|
4710
|
+
export type MutationRecordMtwFreightInvoiceSupplierResponseArgs = {
|
|
4711
|
+
input: RecordMtwFreightInvoiceSupplierResponseInput;
|
|
4712
|
+
};
|
|
4329
4713
|
export type MutationRecordMtwProcedureDeviationArgs = {
|
|
4330
4714
|
input: RecordMtwProcedureDeviationInput;
|
|
4331
4715
|
};
|
|
@@ -4363,6 +4747,9 @@ export type MutationRemoveShipmentLegArgs = {
|
|
|
4363
4747
|
export type MutationRequestMtwFreeTimeExtensionArgs = {
|
|
4364
4748
|
input: RequestMtwFreeTimeExtensionInput;
|
|
4365
4749
|
};
|
|
4750
|
+
export type MutationResolveMtwFreightInvoiceDisputeArgs = {
|
|
4751
|
+
input: ResolveMtwFreightInvoiceDisputeInput;
|
|
4752
|
+
};
|
|
4366
4753
|
export type MutationRevokeMtwInspectorQualificationArgs = {
|
|
4367
4754
|
input: RevokeMtwInspectorQualificationInput;
|
|
4368
4755
|
};
|
|
@@ -4435,6 +4822,10 @@ export type MutationUpdateMtwCustomerNotificationSettingsArgs = {
|
|
|
4435
4822
|
export type MutationUpdateMtwModuleSettingsArgs = {
|
|
4436
4823
|
input: UpdateMtwModuleSettingsInput;
|
|
4437
4824
|
};
|
|
4825
|
+
export type MutationUpdateMtwReportArgs = {
|
|
4826
|
+
id: Scalars['ID']['input'];
|
|
4827
|
+
input: MtwUpdateReportInput;
|
|
4828
|
+
};
|
|
4438
4829
|
export type MutationUpdateRouteArgs = {
|
|
4439
4830
|
id: Scalars['ID']['input'];
|
|
4440
4831
|
input: UpdateRouteInput;
|
|
@@ -4569,6 +4960,8 @@ export type Query = {
|
|
|
4569
4960
|
deliveryJobsCount: Scalars['Int']['output'];
|
|
4570
4961
|
demandForecastByCustomer: Array<MtwDemandForecastPoint>;
|
|
4571
4962
|
demandForecastByLane: Array<MtwDemandForecastPoint>;
|
|
4963
|
+
/** Null until the workspace's forecast has been calculated once. */
|
|
4964
|
+
demandForecastRunStatus?: Maybe<MtwDemandForecastRunStatus>;
|
|
4572
4965
|
demandForecastVariance: Array<MtwDemandForecastVariance>;
|
|
4573
4966
|
driver?: Maybe<MtwDriver>;
|
|
4574
4967
|
drivers: Array<MtwDriver>;
|
|
@@ -4636,6 +5029,10 @@ export type Query = {
|
|
|
4636
5029
|
/** Null is not proof of no effect and never authorizes resubmission. Exact original actor/context only. */
|
|
4637
5030
|
mtwFreightInvoiceComparisonByRequestKey?: Maybe<MtwFreightInvoiceComparison>;
|
|
4638
5031
|
mtwFreightInvoiceComparisonPage: MtwFreightInvoiceComparisonPage;
|
|
5032
|
+
mtwFreightInvoiceReview: MtwFreightInvoiceReview;
|
|
5033
|
+
/** Latest revision of each recorded invoice, newest first. */
|
|
5034
|
+
mtwFreightInvoiceReviewPage: MtwFreightInvoiceReviewPage;
|
|
5035
|
+
mtwFreightInvoiceReviewSummary: MtwFreightInvoiceReviewSummary;
|
|
4639
5036
|
/**
|
|
4640
5037
|
* Columns accepted by each import, for building templates and showing guidance.
|
|
4641
5038
|
* This is static reference metadata with no workspace data in it, so it only
|
|
@@ -4657,6 +5054,15 @@ export type Query = {
|
|
|
4657
5054
|
mtwProcedureStepPage: MtwProcedureStepPage;
|
|
4658
5055
|
mtwProcedureVersion: MtwProcedureVersion;
|
|
4659
5056
|
mtwProcedureVersionPage: MtwProcedureVersionPage;
|
|
5057
|
+
mtwReport?: Maybe<MtwReport>;
|
|
5058
|
+
mtwReportRun?: Maybe<MtwReportRun>;
|
|
5059
|
+
/** A completed run as a CSV or JSON file. */
|
|
5060
|
+
mtwReportRunExport: MtwReportExport;
|
|
5061
|
+
mtwReportRuns: Array<MtwReportRun>;
|
|
5062
|
+
/** The workspace's scheduled-reports job; null until a report is first scheduled. */
|
|
5063
|
+
mtwReportSchedule?: Maybe<MtwReportSchedule>;
|
|
5064
|
+
mtwReports: Array<MtwReport>;
|
|
5065
|
+
mtwReportsCount: Scalars['Int']['output'];
|
|
4660
5066
|
mtwReuseEligibility: MtwReuseEligibility;
|
|
4661
5067
|
mtwReuseProposalPage: MtwReuseProposalPage;
|
|
4662
5068
|
mtwReuseReservationPage: MtwReuseReservationPage;
|
|
@@ -4673,6 +5079,16 @@ export type Query = {
|
|
|
4673
5079
|
mtwStockObservation: MtwStockObservation;
|
|
4674
5080
|
mtwStockObservationPage: MtwStockObservationPage;
|
|
4675
5081
|
mtwTripUtilizationReportPage: MtwTripUtilizationReportPage;
|
|
5082
|
+
/**
|
|
5083
|
+
* Type C self-list: the calling driver's stops for one local calendar day,
|
|
5084
|
+
* ordered into a driving sequence. Identity comes from the authenticated
|
|
5085
|
+
* actor only. `timeZone` is the device's IANA zone (for example
|
|
5086
|
+
* `Asia/Kolkata`) so "today" matches the driver's clock, including on DST
|
|
5087
|
+
* transition days. `timezoneOffsetMinutes` (the client's
|
|
5088
|
+
* `Date#getTimezoneOffset()` value) is a fixed-offset fallback used only
|
|
5089
|
+
* when `timeZone` is omitted.
|
|
5090
|
+
*/
|
|
5091
|
+
myDeliveryDay: MtwDriverDay;
|
|
4676
5092
|
myEpodShipmentStatus?: Maybe<MtwOwnedEpodShipmentStatus>;
|
|
4677
5093
|
/**
|
|
4678
5094
|
* Type C self-list: delivery jobs assigned to the CALLING driver that are out
|
|
@@ -4948,6 +5364,15 @@ export type QueryMtwFreightInvoiceComparisonPageArgs = {
|
|
|
4948
5364
|
pagination?: InputMaybe<MtwContainerPagination>;
|
|
4949
5365
|
shipmentId: Scalars['ID']['input'];
|
|
4950
5366
|
};
|
|
5367
|
+
export type QueryMtwFreightInvoiceReviewArgs = {
|
|
5368
|
+
comparisonId: Scalars['ID']['input'];
|
|
5369
|
+
shipmentId: Scalars['ID']['input'];
|
|
5370
|
+
};
|
|
5371
|
+
export type QueryMtwFreightInvoiceReviewPageArgs = {
|
|
5372
|
+
pagination?: InputMaybe<MtwContainerPagination>;
|
|
5373
|
+
shipmentId?: InputMaybe<Scalars['ID']['input']>;
|
|
5374
|
+
status?: InputMaybe<MtwFreightInvoiceReviewStatus>;
|
|
5375
|
+
};
|
|
4951
5376
|
export type QueryMtwPalletGeometryPreviewArgs = {
|
|
4952
5377
|
input: MtwPalletGeometryPreviewInput;
|
|
4953
5378
|
};
|
|
@@ -4994,6 +5419,27 @@ export type QueryMtwProcedureVersionPageArgs = {
|
|
|
4994
5419
|
pagination?: InputMaybe<MtwContainerPagination>;
|
|
4995
5420
|
templateReference: Scalars['String']['input'];
|
|
4996
5421
|
};
|
|
5422
|
+
export type QueryMtwReportArgs = {
|
|
5423
|
+
id: Scalars['ID']['input'];
|
|
5424
|
+
};
|
|
5425
|
+
export type QueryMtwReportRunArgs = {
|
|
5426
|
+
id: Scalars['ID']['input'];
|
|
5427
|
+
};
|
|
5428
|
+
export type QueryMtwReportRunExportArgs = {
|
|
5429
|
+
format: MtwReportFormat;
|
|
5430
|
+
runId: Scalars['ID']['input'];
|
|
5431
|
+
};
|
|
5432
|
+
export type QueryMtwReportRunsArgs = {
|
|
5433
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
5434
|
+
reportId: Scalars['ID']['input'];
|
|
5435
|
+
};
|
|
5436
|
+
export type QueryMtwReportsArgs = {
|
|
5437
|
+
filter?: InputMaybe<MtwReportFilterInput>;
|
|
5438
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
5439
|
+
};
|
|
5440
|
+
export type QueryMtwReportsCountArgs = {
|
|
5441
|
+
filter?: InputMaybe<MtwReportFilterInput>;
|
|
5442
|
+
};
|
|
4997
5443
|
export type QueryMtwReuseEligibilityArgs = {
|
|
4998
5444
|
approvalId?: InputMaybe<Scalars['ID']['input']>;
|
|
4999
5445
|
proposalId: Scalars['ID']['input'];
|
|
@@ -5039,6 +5485,11 @@ export type QueryMtwTripUtilizationReportPageArgs = {
|
|
|
5039
5485
|
pagination?: InputMaybe<MtwContainerPagination>;
|
|
5040
5486
|
routeId: Scalars['ID']['input'];
|
|
5041
5487
|
};
|
|
5488
|
+
export type QueryMyDeliveryDayArgs = {
|
|
5489
|
+
date: Scalars['String']['input'];
|
|
5490
|
+
timeZone?: InputMaybe<Scalars['String']['input']>;
|
|
5491
|
+
timezoneOffsetMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
5492
|
+
};
|
|
5042
5493
|
export type QueryMyEpodShipmentStatusArgs = {
|
|
5043
5494
|
deliveryJobId: Scalars['ID']['input'];
|
|
5044
5495
|
};
|
|
@@ -5234,6 +5685,13 @@ export type RecordMtwFreeTimeExtensionDecisionInput = {
|
|
|
5234
5685
|
note: Scalars['String']['input'];
|
|
5235
5686
|
sourceReference: Scalars['String']['input'];
|
|
5236
5687
|
};
|
|
5688
|
+
export type RecordMtwFreightInvoiceSupplierResponseInput = {
|
|
5689
|
+
comparisonId: Scalars['ID']['input'];
|
|
5690
|
+
expectedSequence: Scalars['Int']['input'];
|
|
5691
|
+
idempotencyKey: Scalars['String']['input'];
|
|
5692
|
+
response: Scalars['String']['input'];
|
|
5693
|
+
shipmentId: Scalars['ID']['input'];
|
|
5694
|
+
};
|
|
5237
5695
|
export type RecordMtwPickReviewInput = {
|
|
5238
5696
|
actions: Array<MtwPickReviewAction>;
|
|
5239
5697
|
evidence: Array<MtwContainerEvidenceInput>;
|
|
@@ -5377,6 +5835,14 @@ export type RequestMtwFreeTimeExtensionInput = {
|
|
|
5377
5835
|
requestedAt: Scalars['DateTime']['input'];
|
|
5378
5836
|
requestedFreeUntil: Scalars['DateTime']['input'];
|
|
5379
5837
|
};
|
|
5838
|
+
export type ResolveMtwFreightInvoiceDisputeInput = {
|
|
5839
|
+
comparisonId: Scalars['ID']['input'];
|
|
5840
|
+
expectedSequence: Scalars['Int']['input'];
|
|
5841
|
+
idempotencyKey: Scalars['String']['input'];
|
|
5842
|
+
reason: Scalars['String']['input'];
|
|
5843
|
+
resolution: MtwFreightInvoiceResolution;
|
|
5844
|
+
shipmentId: Scalars['ID']['input'];
|
|
5845
|
+
};
|
|
5380
5846
|
export type RevokeMtwInspectorQualificationInput = {
|
|
5381
5847
|
expectedVersion: Scalars['Int']['input'];
|
|
5382
5848
|
idempotencyKey: Scalars['String']['input'];
|