@burdenoff/microfe-movethewheels 2026.1014.1 → 2026.1016.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.
Files changed (186) hide show
  1. package/README.md +7 -0
  2. package/dist/components/EntityCombobox.js +80 -74
  3. package/dist/components/pending-pick/PendingPickHistory.js +47 -38
  4. package/dist/components/pending-pick/PickReviewPanel.js +317 -0
  5. package/dist/dev/main.d.ts +0 -1
  6. package/dist/generated/pending-pick-operations.d.ts +356 -0
  7. package/dist/index.d.ts +2 -4
  8. package/dist/movethewheels/MoveTheWheelsRoot.d.ts +0 -1
  9. package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +1 -1
  10. package/dist/movethewheels/components/AssignmentSuggestions.d.ts +1 -2
  11. package/dist/movethewheels/components/CarbonFootprintPanel.d.ts +1 -1
  12. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +1 -2
  13. package/dist/movethewheels/components/CustomerPicker.d.ts +1 -2
  14. package/dist/movethewheels/components/DataTable.d.ts +1 -2
  15. package/dist/movethewheels/components/DocumentsCard.d.ts +1 -2
  16. package/dist/movethewheels/components/EntityCombobox.d.ts +1 -1
  17. package/dist/movethewheels/components/FleetAlertsPanel.d.ts +1 -2
  18. package/dist/movethewheels/components/FormError.d.ts +1 -1
  19. package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +1 -2
  20. package/dist/movethewheels/components/GlassPanel.d.ts +1 -2
  21. package/dist/movethewheels/components/MetricCard.d.ts +3 -4
  22. package/dist/movethewheels/components/Notice.d.ts +1 -1
  23. package/dist/movethewheels/components/OrderItemRow.d.ts +1 -2
  24. package/dist/movethewheels/components/PageLayout.d.ts +5 -6
  25. package/dist/movethewheels/components/ProofOfDeliveryCard.d.ts +1 -1
  26. package/dist/movethewheels/components/ReturnInstructionForm.d.ts +1 -2
  27. package/dist/movethewheels/components/ReuseControls.d.ts +4 -5
  28. package/dist/movethewheels/components/ReusePermissionForm.d.ts +1 -2
  29. package/dist/movethewheels/components/ReuseProposalForm.d.ts +1 -2
  30. package/dist/movethewheels/components/ReuseSourceFields.d.ts +1 -2
  31. package/dist/movethewheels/components/ShippingQuoteResults.d.ts +1 -2
  32. package/dist/movethewheels/components/StatusBadge.d.ts +5 -6
  33. package/dist/movethewheels/components/StockActionDialogs.d.ts +3 -3
  34. package/dist/movethewheels/components/UpcomingDemandPanel.d.ts +1 -2
  35. package/dist/movethewheels/components/VehicleServiceCard.d.ts +1 -2
  36. package/dist/movethewheels/components/charts/ChartShell.d.ts +2 -3
  37. package/dist/movethewheels/components/charts/Sparkline.d.ts +1 -1
  38. package/dist/movethewheels/components/charts/StatusDonut.d.ts +1 -1
  39. package/dist/movethewheels/components/charts/TrendChart.d.ts +1 -1
  40. package/dist/movethewheels/components/charts/VolumeBar.d.ts +1 -1
  41. package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +3 -4
  42. package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +1 -2
  43. package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +1 -2
  44. package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +1 -2
  45. package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +1 -2
  46. package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +1 -2
  47. package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +1 -2
  48. package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +1 -2
  49. package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +1 -2
  50. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +1 -2
  51. package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +3 -4
  52. package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +1 -2
  53. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +1 -2
  54. package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +1 -2
  55. package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +1 -2
  56. package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +1 -2
  57. package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +2 -3
  58. package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +3 -4
  59. package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +1 -2
  60. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +1 -2
  61. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +1 -2
  62. package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +1 -2
  63. package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +1 -2
  64. package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +1 -2
  65. package/dist/movethewheels/components/maps/LogisticsMap.d.ts +1 -2
  66. package/dist/movethewheels/components/maps/MapCanvas.d.ts +1 -2
  67. package/dist/movethewheels/components/maps/RouteMap.d.ts +1 -1
  68. package/dist/movethewheels/components/maps/TrackingMap.d.ts +1 -1
  69. package/dist/movethewheels/components/maps/leaflet-setup.d.ts +0 -1
  70. package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +1 -2
  71. package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +1 -1
  72. package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +1 -2
  73. package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +1 -2
  74. package/dist/movethewheels/components/pending-pick/PickReviewPanel.d.ts +4 -0
  75. package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +1 -2
  76. package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +1 -2
  77. package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +1 -2
  78. package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +1 -2
  79. package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +1 -2
  80. package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +1 -2
  81. package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +1 -1
  82. package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +1 -2
  83. package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +1 -2
  84. package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +1 -2
  85. package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +1 -2
  86. package/dist/movethewheels/hooks/useAnalytics.d.ts +0 -1
  87. package/dist/movethewheels/hooks/useConsolidationAction.d.ts +0 -1
  88. package/dist/movethewheels/hooks/useContainerCondition.d.ts +0 -1
  89. package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +0 -1
  90. package/dist/movethewheels/hooks/useCustomers.d.ts +0 -1
  91. package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +0 -1
  92. package/dist/movethewheels/hooks/useEpod.d.ts +0 -1
  93. package/dist/movethewheels/hooks/useFleet.d.ts +0 -1
  94. package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +0 -1
  95. package/dist/movethewheels/hooks/useInventory.d.ts +0 -1
  96. package/dist/movethewheels/hooks/useOrders.d.ts +0 -1
  97. package/dist/movethewheels/hooks/useProcedureAction.d.ts +0 -1
  98. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +0 -1
  99. package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +0 -1
  100. package/dist/movethewheels/hooks/useRoutes.d.ts +0 -1
  101. package/dist/movethewheels/hooks/useShipmentStatusAuthority.d.ts +0 -1
  102. package/dist/movethewheels/hooks/useTracking.d.ts +0 -1
  103. package/dist/movethewheels/hooks/useTrackingEventQuality.d.ts +0 -1
  104. package/dist/movethewheels/pages/AIAssistantPage.d.ts +1 -1
  105. package/dist/movethewheels/pages/AnalyticsPage.d.ts +1 -1
  106. package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -1
  107. package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -1
  108. package/dist/movethewheels/pages/ContainersPage.d.ts +1 -1
  109. package/dist/movethewheels/pages/CreateOrderPage.d.ts +1 -1
  110. package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +1 -1
  111. package/dist/movethewheels/pages/CustomersPage.d.ts +1 -1
  112. package/dist/movethewheels/pages/DashboardPage.d.ts +1 -1
  113. package/dist/movethewheels/pages/DeliveryCapturePage.d.ts +1 -1
  114. package/dist/movethewheels/pages/DriverDetailsPage.d.ts +1 -1
  115. package/dist/movethewheels/pages/DriversPage.d.ts +1 -1
  116. package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -1
  117. package/dist/movethewheels/pages/FinancePage.d.ts +1 -1
  118. package/dist/movethewheels/pages/FleetPage.d.ts +1 -1
  119. package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -1
  120. package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -1
  121. package/dist/movethewheels/pages/ImportExportPage.d.ts +1 -1
  122. package/dist/movethewheels/pages/InventoryPage.d.ts +1 -1
  123. package/dist/movethewheels/pages/LiveTrackingPage.d.ts +1 -1
  124. package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -1
  125. package/dist/movethewheels/pages/MarketplacePage.d.ts +1 -1
  126. package/dist/movethewheels/pages/MultiModalShipmentPage.d.ts +1 -1
  127. package/dist/movethewheels/pages/OrderDetailsPage.d.ts +1 -1
  128. package/dist/movethewheels/pages/OrdersListPage.d.ts +1 -1
  129. package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -1
  130. package/dist/movethewheels/pages/ProductDetailsPage.d.ts +1 -1
  131. package/dist/movethewheels/pages/ProductsPage.d.ts +1 -1
  132. package/dist/movethewheels/pages/ReportsPage.d.ts +1 -1
  133. package/dist/movethewheels/pages/RouteDetailsPage.d.ts +1 -1
  134. package/dist/movethewheels/pages/RoutesPage.d.ts +1 -1
  135. package/dist/movethewheels/pages/SettingsPage.d.ts +1 -1
  136. package/dist/movethewheels/pages/ShipmentStatusAuthorityPage.d.ts +1 -1
  137. package/dist/movethewheels/pages/ShippingRatesPage.d.ts +1 -1
  138. package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -1
  139. package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -1
  140. package/dist/movethewheels/pages/TrackingEventQualityPage.d.ts +1 -1
  141. package/dist/movethewheels/pages/TrackingPage.d.ts +1 -1
  142. package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -1
  143. package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +1 -1
  144. package/dist/movethewheels/pages/VehiclesPage.d.ts +1 -1
  145. package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +1 -1
  146. package/dist/movethewheels/pages/WarehousesPage.d.ts +1 -1
  147. package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +0 -1
  148. package/dist/movethewheels/store/movethewheelsStore.d.ts +0 -1
  149. package/dist/movethewheels/types/index.d.ts +0 -1
  150. package/dist/movethewheels/utils/cn.d.ts +0 -1
  151. package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +0 -1
  152. package/dist/movethewheels/utils/consolidationInput.d.ts +0 -1
  153. package/dist/movethewheels/utils/consolidationLot.d.ts +0 -1
  154. package/dist/movethewheels/utils/consolidationPins.d.ts +0 -1
  155. package/dist/movethewheels/utils/consolidationRecovery.d.ts +0 -1
  156. package/dist/movethewheels/utils/consolidationReportHead.d.ts +0 -1
  157. package/dist/movethewheels/utils/formatters.d.ts +0 -1
  158. package/dist/movethewheels/utils/freightDraft.d.ts +0 -1
  159. package/dist/movethewheels/utils/freightRecovery.d.ts +0 -1
  160. package/dist/movethewheels/utils/mapMarkers.d.ts +0 -1
  161. package/dist/movethewheels/utils/orderValidation.d.ts +0 -1
  162. package/dist/movethewheels/utils/pendingPickDraft.d.ts +0 -1
  163. package/dist/movethewheels/utils/pickReviewAcknowledgement.d.ts +3 -0
  164. package/dist/movethewheels/utils/procedureInput.d.ts +0 -1
  165. package/dist/movethewheels/utils/procedureRecovery.d.ts +0 -1
  166. package/dist/movethewheels/utils/reuseForm.d.ts +0 -1
  167. package/dist/movethewheels/utils/reuseRecovery.d.ts +0 -1
  168. package/dist/movethewheels/utils/stockBindingForm.d.ts +0 -1
  169. package/dist/movethewheels/utils/stockObservationForm.d.ts +0 -1
  170. package/dist/movethewheels/utils/tripDraftContext.d.ts +0 -1
  171. package/dist/movethewheels/utils/tripUtilizationForm.d.ts +0 -1
  172. package/dist/services/createSandboxAssistantTransport.d.ts +2 -1
  173. package/dist/src/generated/pending-pick-operations.js +75 -6
  174. package/dist/stories/EntityCombobox.stories.d.ts +6 -0
  175. package/dist/stories/MetricCard.stories.d.ts +0 -1
  176. package/dist/stories/Notice.stories.d.ts +0 -1
  177. package/dist/stories/StatusBadge.stories.d.ts +0 -1
  178. package/dist/utils/pickReviewAcknowledgement.js +10 -0
  179. package/package.json +7 -5
  180. package/src/generated/pending-pick-operations.ts +239 -1
  181. package/src/movethewheels/components/EntityCombobox.tsx +8 -2
  182. package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +6 -0
  183. package/src/movethewheels/components/pending-pick/PickReviewPanel.tsx +326 -0
  184. package/src/movethewheels/utils/pickReviewAcknowledgement.ts +51 -0
  185. package/src/operations/pending-pick/pick-review.graphql +14 -0
  186. package/src/stories/EntityCombobox.stories.tsx +58 -0
@@ -76,6 +76,19 @@ export type MtwCargoItem = {
76
76
  temperatureControlled: Scalars['Boolean']['output'];
77
77
  updatedAt: Scalars['DateTime']['output'];
78
78
  };
79
+ /** Bounded audit snapshot of at most 10 exact evidence versions. */
80
+ export type MtwContainerEvidence = {
81
+ __typename?: 'MtwContainerEvidence';
82
+ checkedAt: Scalars['DateTime']['output'];
83
+ fileId: Scalars['ID']['output'];
84
+ sha256Hash: Scalars['String']['output'];
85
+ versionId: Scalars['ID']['output'];
86
+ };
87
+ /** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
88
+ export type MtwContainerEvidenceInput = {
89
+ fileId: Scalars['ID']['input'];
90
+ versionId: Scalars['ID']['input'];
91
+ };
79
92
  export type MtwContainerPagination = {
80
93
  limit?: InputMaybe<Scalars['Int']['input']>;
81
94
  offset?: InputMaybe<Scalars['Int']['input']>;
@@ -97,6 +110,15 @@ export type MtwInventoryItem = {
97
110
  warehouse?: Maybe<MtwWarehouse>;
98
111
  warehouseId: Scalars['ID']['output'];
99
112
  };
113
+ export type MtwMoveReviewSource = {
114
+ __typename?: 'MtwMoveReviewSource';
115
+ reference: Scalars['String']['output'];
116
+ revision: Scalars['String']['output'];
117
+ };
118
+ export type MtwMoveReviewSourceInput = {
119
+ reference: Scalars['String']['input'];
120
+ revision: Scalars['String']['input'];
121
+ };
100
122
  export type MtwPickIntentLine = {
101
123
  __typename?: 'MtwPickIntentLine';
102
124
  applicableProfile?: Maybe<MtwPickIntentProfile>;
@@ -156,6 +178,44 @@ export type MtwPickPreparation = {
156
178
  evaluatedAt: Scalars['DateTime']['output'];
157
179
  source: MtwPickIntentLine;
158
180
  };
181
+ /** Immutable human review only. It reserves no stock and confers no physical execution or qualification. */
182
+ export type MtwPickReview = {
183
+ __typename?: 'MtwPickReview';
184
+ actions: Array<MtwPickReviewAction>;
185
+ classification: Scalars['String']['output'];
186
+ evidence: Array<MtwContainerEvidence>;
187
+ handlingPolicy?: Maybe<MtwMoveReviewSource>;
188
+ id: Scalars['ID']['output'];
189
+ idempotencyKey: Scalars['String']['output'];
190
+ intentHash: Scalars['String']['output'];
191
+ kind: MtwPickReviewKind;
192
+ note: Scalars['String']['output'];
193
+ previousDecisionId?: Maybe<Scalars['ID']['output']>;
194
+ quantityCeiling?: Maybe<Scalars['Int']['output']>;
195
+ recordedAt: Scalars['DateTime']['output'];
196
+ reviewerActorId: Scalars['ID']['output'];
197
+ sop?: Maybe<MtwMoveReviewSource>;
198
+ subjectActorId: Scalars['ID']['output'];
199
+ taskId: Scalars['ID']['output'];
200
+ validFrom?: Maybe<Scalars['DateTime']['output']>;
201
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
202
+ version: Scalars['Int']['output'];
203
+ };
204
+ export type MtwPickReviewAction = 'RELEASE_STAGED_CUSTODY' | 'RELEASE_UNPICKED' | 'RESERVE' | 'SHORT_PICK' | 'STAGE';
205
+ export type MtwPickReviewKind = 'APPROVE' | 'REJECT' | 'REVOKE';
206
+ export type MtwPickReviewPage = {
207
+ __typename?: 'MtwPickReviewPage';
208
+ evaluatedAt: Scalars['DateTime']['output'];
209
+ hasMore: Scalars['Boolean']['output'];
210
+ items: Array<MtwPickReview>;
211
+ latestDecision?: Maybe<MtwPickReview>;
212
+ limit: Scalars['Int']['output'];
213
+ nextOffset?: Maybe<Scalars['Int']['output']>;
214
+ offset: Scalars['Int']['output'];
215
+ reviewState: MtwPickReviewState;
216
+ total: Scalars['Int']['output'];
217
+ };
218
+ export type MtwPickReviewState = 'APPROVED_REVIEW_ONLY' | 'NOT_CURRENT' | 'REJECTED' | 'REVOKED' | 'UNREVIEWED';
159
219
  /** Immutable reported planning intent. It reserves no stock and grants no execution authority. */
160
220
  export type MtwPickTask = {
161
221
  __typename?: 'MtwPickTask';
@@ -263,11 +323,23 @@ export type MtwWarehouseLocation = {
263
323
  };
264
324
  export type Mutation = {
265
325
  __typename?: 'Mutation';
326
+ approveMtwPickTask: MtwPickReview;
266
327
  createMtwPickTaskIntent: MtwPickTask;
328
+ rejectMtwPickTask: MtwPickReview;
329
+ revokeMtwPickTaskReview: MtwPickReview;
330
+ };
331
+ export type MutationApproveMtwPickTaskArgs = {
332
+ input: RecordMtwPickReviewInput;
267
333
  };
268
334
  export type MutationCreateMtwPickTaskIntentArgs = {
269
335
  input: CreateMtwPickTaskIntentInput;
270
336
  };
337
+ export type MutationRejectMtwPickTaskArgs = {
338
+ input: RecordMtwPickReviewInput;
339
+ };
340
+ export type MutationRevokeMtwPickTaskReviewArgs = {
341
+ input: RecordMtwPickReviewInput;
342
+ };
271
343
  export type PaginationInput = {
272
344
  cursor?: InputMaybe<Scalars['String']['input']>;
273
345
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -278,6 +350,8 @@ export type Query = {
278
350
  inventoryItems: Array<MtwInventoryItem>;
279
351
  inventoryItemsCount: Scalars['Int']['output'];
280
352
  mtwPickPreparation: MtwPickPreparation;
353
+ mtwPickReview: MtwPickReview;
354
+ mtwPickReviewPage: MtwPickReviewPage;
281
355
  mtwPickTask: MtwPickTask;
282
356
  mtwPickTaskPage: MtwPickTaskPage;
283
357
  };
@@ -292,6 +366,15 @@ export type QueryMtwPickPreparationArgs = {
292
366
  destinationInventoryItemId: Scalars['ID']['input'];
293
367
  sourceInventoryItemId: Scalars['ID']['input'];
294
368
  };
369
+ export type QueryMtwPickReviewArgs = {
370
+ id: Scalars['ID']['input'];
371
+ taskId: Scalars['ID']['input'];
372
+ };
373
+ export type QueryMtwPickReviewPageArgs = {
374
+ limit?: Scalars['Int']['input'];
375
+ offset?: Scalars['Int']['input'];
376
+ taskId: Scalars['ID']['input'];
377
+ };
295
378
  export type QueryMtwPickTaskArgs = {
296
379
  id: Scalars['ID']['input'];
297
380
  };
@@ -300,6 +383,22 @@ export type QueryMtwPickTaskPageArgs = {
300
383
  pagination?: InputMaybe<MtwContainerPagination>;
301
384
  sourceInventoryItemId?: InputMaybe<Scalars['ID']['input']>;
302
385
  };
386
+ export type RecordMtwPickReviewInput = {
387
+ actions: Array<MtwPickReviewAction>;
388
+ evidence: Array<MtwContainerEvidenceInput>;
389
+ expectedPreviousDecisionId?: InputMaybe<Scalars['ID']['input']>;
390
+ expectedVersion: Scalars['Int']['input'];
391
+ handlingPolicy?: InputMaybe<MtwMoveReviewSourceInput>;
392
+ idempotencyKey: Scalars['String']['input'];
393
+ intentHash: Scalars['String']['input'];
394
+ note: Scalars['String']['input'];
395
+ quantityCeiling?: InputMaybe<Scalars['Int']['input']>;
396
+ sop?: InputMaybe<MtwMoveReviewSourceInput>;
397
+ subjectActorId: Scalars['ID']['input'];
398
+ taskId: Scalars['ID']['input'];
399
+ validFrom?: InputMaybe<Scalars['DateTime']['input']>;
400
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
401
+ };
303
402
  export type PickProfileFragment = {
304
403
  __typename?: 'MtwPickIntentProfile';
305
404
  id: string;
@@ -1959,11 +2058,268 @@ export type RecordPendingPickMutation = {
1959
2058
  };
1960
2059
  };
1961
2060
  };
2061
+ export type PickReviewReceiptFragment = {
2062
+ __typename?: 'MtwPickReview';
2063
+ id: string;
2064
+ taskId: string;
2065
+ version: number;
2066
+ previousDecisionId?: string | null;
2067
+ intentHash: string;
2068
+ subjectActorId: string;
2069
+ kind: MtwPickReviewKind;
2070
+ actions: Array<MtwPickReviewAction>;
2071
+ quantityCeiling?: number | null;
2072
+ validFrom?: string | null;
2073
+ validUntil?: string | null;
2074
+ note: string;
2075
+ idempotencyKey: string;
2076
+ reviewerActorId: string;
2077
+ recordedAt: string;
2078
+ classification: string;
2079
+ handlingPolicy?: {
2080
+ __typename?: 'MtwMoveReviewSource';
2081
+ reference: string;
2082
+ revision: string;
2083
+ } | null;
2084
+ sop?: {
2085
+ __typename?: 'MtwMoveReviewSource';
2086
+ reference: string;
2087
+ revision: string;
2088
+ } | null;
2089
+ evidence: Array<{
2090
+ __typename?: 'MtwContainerEvidence';
2091
+ fileId: string;
2092
+ versionId: string;
2093
+ sha256Hash: string;
2094
+ checkedAt: string;
2095
+ }>;
2096
+ };
2097
+ export type PickReviewHistoryQueryVariables = Exact<{
2098
+ taskId: Scalars['ID']['input'];
2099
+ limit: Scalars['Int']['input'];
2100
+ offset: Scalars['Int']['input'];
2101
+ }>;
2102
+ export type PickReviewHistoryQuery = {
2103
+ __typename?: 'Query';
2104
+ mtwPickReviewPage: {
2105
+ __typename?: 'MtwPickReviewPage';
2106
+ total: number;
2107
+ limit: number;
2108
+ offset: number;
2109
+ hasMore: boolean;
2110
+ nextOffset?: number | null;
2111
+ reviewState: MtwPickReviewState;
2112
+ evaluatedAt: string;
2113
+ items: Array<{
2114
+ __typename?: 'MtwPickReview';
2115
+ id: string;
2116
+ taskId: string;
2117
+ version: number;
2118
+ previousDecisionId?: string | null;
2119
+ intentHash: string;
2120
+ subjectActorId: string;
2121
+ kind: MtwPickReviewKind;
2122
+ actions: Array<MtwPickReviewAction>;
2123
+ quantityCeiling?: number | null;
2124
+ validFrom?: string | null;
2125
+ validUntil?: string | null;
2126
+ note: string;
2127
+ idempotencyKey: string;
2128
+ reviewerActorId: string;
2129
+ recordedAt: string;
2130
+ classification: string;
2131
+ handlingPolicy?: {
2132
+ __typename?: 'MtwMoveReviewSource';
2133
+ reference: string;
2134
+ revision: string;
2135
+ } | null;
2136
+ sop?: {
2137
+ __typename?: 'MtwMoveReviewSource';
2138
+ reference: string;
2139
+ revision: string;
2140
+ } | null;
2141
+ evidence: Array<{
2142
+ __typename?: 'MtwContainerEvidence';
2143
+ fileId: string;
2144
+ versionId: string;
2145
+ sha256Hash: string;
2146
+ checkedAt: string;
2147
+ }>;
2148
+ }>;
2149
+ latestDecision?: {
2150
+ __typename?: 'MtwPickReview';
2151
+ id: string;
2152
+ taskId: string;
2153
+ version: number;
2154
+ previousDecisionId?: string | null;
2155
+ intentHash: string;
2156
+ subjectActorId: string;
2157
+ kind: MtwPickReviewKind;
2158
+ actions: Array<MtwPickReviewAction>;
2159
+ quantityCeiling?: number | null;
2160
+ validFrom?: string | null;
2161
+ validUntil?: string | null;
2162
+ note: string;
2163
+ idempotencyKey: string;
2164
+ reviewerActorId: string;
2165
+ recordedAt: string;
2166
+ classification: string;
2167
+ handlingPolicy?: {
2168
+ __typename?: 'MtwMoveReviewSource';
2169
+ reference: string;
2170
+ revision: string;
2171
+ } | null;
2172
+ sop?: {
2173
+ __typename?: 'MtwMoveReviewSource';
2174
+ reference: string;
2175
+ revision: string;
2176
+ } | null;
2177
+ evidence: Array<{
2178
+ __typename?: 'MtwContainerEvidence';
2179
+ fileId: string;
2180
+ versionId: string;
2181
+ sha256Hash: string;
2182
+ checkedAt: string;
2183
+ }>;
2184
+ } | null;
2185
+ };
2186
+ };
2187
+ export type ApprovePickReviewMutationVariables = Exact<{
2188
+ input: RecordMtwPickReviewInput;
2189
+ }>;
2190
+ export type ApprovePickReviewMutation = {
2191
+ __typename?: 'Mutation';
2192
+ approveMtwPickTask: {
2193
+ __typename?: 'MtwPickReview';
2194
+ id: string;
2195
+ taskId: string;
2196
+ version: number;
2197
+ previousDecisionId?: string | null;
2198
+ intentHash: string;
2199
+ subjectActorId: string;
2200
+ kind: MtwPickReviewKind;
2201
+ actions: Array<MtwPickReviewAction>;
2202
+ quantityCeiling?: number | null;
2203
+ validFrom?: string | null;
2204
+ validUntil?: string | null;
2205
+ note: string;
2206
+ idempotencyKey: string;
2207
+ reviewerActorId: string;
2208
+ recordedAt: string;
2209
+ classification: string;
2210
+ handlingPolicy?: {
2211
+ __typename?: 'MtwMoveReviewSource';
2212
+ reference: string;
2213
+ revision: string;
2214
+ } | null;
2215
+ sop?: {
2216
+ __typename?: 'MtwMoveReviewSource';
2217
+ reference: string;
2218
+ revision: string;
2219
+ } | null;
2220
+ evidence: Array<{
2221
+ __typename?: 'MtwContainerEvidence';
2222
+ fileId: string;
2223
+ versionId: string;
2224
+ sha256Hash: string;
2225
+ checkedAt: string;
2226
+ }>;
2227
+ };
2228
+ };
2229
+ export type RejectPickReviewMutationVariables = Exact<{
2230
+ input: RecordMtwPickReviewInput;
2231
+ }>;
2232
+ export type RejectPickReviewMutation = {
2233
+ __typename?: 'Mutation';
2234
+ rejectMtwPickTask: {
2235
+ __typename?: 'MtwPickReview';
2236
+ id: string;
2237
+ taskId: string;
2238
+ version: number;
2239
+ previousDecisionId?: string | null;
2240
+ intentHash: string;
2241
+ subjectActorId: string;
2242
+ kind: MtwPickReviewKind;
2243
+ actions: Array<MtwPickReviewAction>;
2244
+ quantityCeiling?: number | null;
2245
+ validFrom?: string | null;
2246
+ validUntil?: string | null;
2247
+ note: string;
2248
+ idempotencyKey: string;
2249
+ reviewerActorId: string;
2250
+ recordedAt: string;
2251
+ classification: string;
2252
+ handlingPolicy?: {
2253
+ __typename?: 'MtwMoveReviewSource';
2254
+ reference: string;
2255
+ revision: string;
2256
+ } | null;
2257
+ sop?: {
2258
+ __typename?: 'MtwMoveReviewSource';
2259
+ reference: string;
2260
+ revision: string;
2261
+ } | null;
2262
+ evidence: Array<{
2263
+ __typename?: 'MtwContainerEvidence';
2264
+ fileId: string;
2265
+ versionId: string;
2266
+ sha256Hash: string;
2267
+ checkedAt: string;
2268
+ }>;
2269
+ };
2270
+ };
2271
+ export type RevokePickReviewMutationVariables = Exact<{
2272
+ input: RecordMtwPickReviewInput;
2273
+ }>;
2274
+ export type RevokePickReviewMutation = {
2275
+ __typename?: 'Mutation';
2276
+ revokeMtwPickTaskReview: {
2277
+ __typename?: 'MtwPickReview';
2278
+ id: string;
2279
+ taskId: string;
2280
+ version: number;
2281
+ previousDecisionId?: string | null;
2282
+ intentHash: string;
2283
+ subjectActorId: string;
2284
+ kind: MtwPickReviewKind;
2285
+ actions: Array<MtwPickReviewAction>;
2286
+ quantityCeiling?: number | null;
2287
+ validFrom?: string | null;
2288
+ validUntil?: string | null;
2289
+ note: string;
2290
+ idempotencyKey: string;
2291
+ reviewerActorId: string;
2292
+ recordedAt: string;
2293
+ classification: string;
2294
+ handlingPolicy?: {
2295
+ __typename?: 'MtwMoveReviewSource';
2296
+ reference: string;
2297
+ revision: string;
2298
+ } | null;
2299
+ sop?: {
2300
+ __typename?: 'MtwMoveReviewSource';
2301
+ reference: string;
2302
+ revision: string;
2303
+ } | null;
2304
+ evidence: Array<{
2305
+ __typename?: 'MtwContainerEvidence';
2306
+ fileId: string;
2307
+ versionId: string;
2308
+ sha256Hash: string;
2309
+ checkedAt: string;
2310
+ }>;
2311
+ };
2312
+ };
1962
2313
  export declare const PickProfileFragmentDoc: import('graphql').DocumentNode;
1963
2314
  export declare const PickLineFragmentDoc: import('graphql').DocumentNode;
1964
2315
  export declare const PendingPickTaskFragmentDoc: import('graphql').DocumentNode;
2316
+ export declare const PickReviewReceiptFragmentDoc: import('graphql').DocumentNode;
1965
2317
  export declare const PickInventoryDocument: import('graphql').DocumentNode;
1966
2318
  export declare const PickPreparationDocument: import('graphql').DocumentNode;
1967
2319
  export declare const PendingPickHistoryDocument: import('graphql').DocumentNode;
1968
2320
  export declare const ExactPendingPickDocument: import('graphql').DocumentNode;
1969
2321
  export declare const RecordPendingPickDocument: import('graphql').DocumentNode;
2322
+ export declare const PickReviewHistoryDocument: import('graphql').DocumentNode;
2323
+ export declare const ApprovePickReviewDocument: import('graphql').DocumentNode;
2324
+ export declare const RejectPickReviewDocument: import('graphql').DocumentNode;
2325
+ export declare const RevokePickReviewDocument: import('graphql').DocumentNode;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
- /**
2
- * Package entry point
3
- */
4
- export * from './movethewheels';
1
+ export * from './movethewheels/index.js'
2
+ export {}
@@ -1,6 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { MoveTheWheelsRootProps } from './types';
3
-
4
3
  /**
5
4
  * Root component for the MoveTheWheels microfrontend.
6
5
  *
@@ -4,4 +4,4 @@
4
4
  * Defines all internal routing for the microfrontend.
5
5
  * Uses lazy loading for code splitting.
6
6
  */
7
- export declare function MoveTheWheelsRoutes(): import("react").JSX.Element;
7
+ export declare function MoveTheWheelsRoutes(): import('react').JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { AssignmentSuggestions as Suggestions } from '../hooks/useFleetIntelligence';
2
-
3
2
  interface AssignmentSuggestionsProps {
4
3
  suggestions: Suggestions;
5
4
  isLoading: boolean;
@@ -13,5 +12,5 @@ interface AssignmentSuggestionsProps {
13
12
  }) => Promise<void>;
14
13
  t: (key: string, fallback: string) => string;
15
14
  }
16
- export declare function AssignmentSuggestions({ suggestions, isLoading, error, onRetry, assignedVehicleId, assignedDriverId, onAssign, t, }: AssignmentSuggestionsProps): import("react").JSX.Element;
15
+ export declare function AssignmentSuggestions({ suggestions, isLoading, error, onRetry, assignedVehicleId, assignedDriverId, onAssign, t, }: AssignmentSuggestionsProps): import('react').JSX.Element;
17
16
  export {};
@@ -4,4 +4,4 @@
4
4
  * Surfaces workspace-level CO2e totals and per-vehicle intensity. Data comes
5
5
  * from Query.emissionsSummary via useEmissionsSummary.
6
6
  */
7
- export declare function CarbonFootprintPanel(): import("react").JSX.Element;
7
+ export declare function CarbonFootprintPanel(): import('react').JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { MtwContainerEvidenceInput } from '../../generated/container-condition-operations';
2
-
3
2
  export interface SelectedEvidence extends MtwContainerEvidenceInput {
4
3
  label: string;
5
4
  }
@@ -7,4 +6,4 @@ export declare function ContainerEvidencePicker({ value, onChange, description,
7
6
  value: SelectedEvidence[];
8
7
  onChange: (value: SelectedEvidence[]) => void;
9
8
  description?: string;
10
- }): import("react").JSX.Element;
9
+ }): import('react').JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { Customer } from '../types';
2
-
3
2
  interface CustomerPickerProps {
4
3
  customers: Customer[];
5
4
  value: string;
@@ -20,5 +19,5 @@ interface CustomerPickerProps {
20
19
  onSearchQueryChange?: (query: string) => void;
21
20
  disabled?: boolean;
22
21
  }
23
- export declare function CustomerPicker({ customers, value, onValueChange, onCreated, createCustomer, isLoading, isLoadingMore, error, onRetry, onLoadMore, hasMore, totalCount, onOpenCustomers, selectedCustomer, onSearchQueryChange, disabled, }: CustomerPickerProps): import("react").JSX.Element;
22
+ export declare function CustomerPicker({ customers, value, onValueChange, onCreated, createCustomer, isLoading, isLoadingMore, error, onRetry, onLoadMore, hasMore, totalCount, onOpenCustomers, selectedCustomer, onSearchQueryChange, disabled, }: CustomerPickerProps): import('react').JSX.Element;
24
23
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface Column<T> {
4
3
  id: string;
5
4
  header: string | ReactNode;
@@ -67,5 +66,5 @@ interface DataTableProps<T> {
67
66
  * DataTable - A reusable data table component with sorting, search, and both
68
67
  * client-side and controlled (server-side) pagination.
69
68
  */
70
- export declare function DataTable<T extends object>({ columns, data, isLoading, error, onRetry, searchable, searchPlaceholder, searchFields, searchQuery: controlledSearchQuery, onSearchQueryChange, pagination, pageSize: pageSizeProp, pageSizeOptions, onRowClick, rowClassName, emptyMessage, emptyIllustration, emptyTitle, emptyDescription, emptyAction, className, getRowId, pageIndex, onPageChange, onPageSizeChange, totalItems, hasNextPage, }: DataTableProps<T>): import("react").JSX.Element;
69
+ export declare function DataTable<T extends object>({ columns, data, isLoading, error, onRetry, searchable, searchPlaceholder, searchFields, searchQuery: controlledSearchQuery, onSearchQueryChange, pagination, pageSize: pageSizeProp, pageSizeOptions, onRowClick, rowClassName, emptyMessage, emptyIllustration, emptyTitle, emptyDescription, emptyAction, className, getRowId, pageIndex, onPageChange, onPageSizeChange, totalItems, hasNextPage, }: DataTableProps<T>): import('react').JSX.Element;
71
70
  export {};
@@ -1,8 +1,7 @@
1
1
  import { EntityDocumentType } from '../hooks/useEntityDocuments';
2
-
3
2
  interface DocumentsCardProps {
4
3
  entityType: EntityDocumentType;
5
4
  entityId: string;
6
5
  }
7
- export declare function DocumentsCard({ entityType, entityId }: DocumentsCardProps): import("react").JSX.Element;
6
+ export declare function DocumentsCard({ entityType, entityId }: DocumentsCardProps): import('react').JSX.Element;
8
7
  export {};
@@ -39,5 +39,5 @@ interface EntityComboboxProps<T> {
39
39
  /** True while the next server page is being fetched. */
40
40
  loadingMore?: boolean;
41
41
  }
42
- export declare function EntityCombobox<T>({ value, onChange, options, loading, getId, renderOption, getLabel, selectedOption, selectedLoading, required, placeholder, searchPlaceholder, emptyText, noneLabel, disabled, id, error, className, onSearchChange, hasMore, totalCount, onLoadMore, loadingMore, }: EntityComboboxProps<T>): import("react").JSX.Element;
42
+ export declare function EntityCombobox<T>({ value, onChange, options, loading, getId, renderOption, getLabel, selectedOption, selectedLoading, required, placeholder, searchPlaceholder, emptyText, noneLabel, disabled, id, error, className, onSearchChange, hasMore, totalCount, onLoadMore, loadingMore, }: EntityComboboxProps<T>): import('react').JSX.Element;
43
43
  export {};
@@ -1,5 +1,4 @@
1
1
  import { FleetAlert } from '../hooks/useFleetIntelligence';
2
-
3
2
  interface FleetAlertsPanelProps {
4
3
  alerts: FleetAlert[];
5
4
  isLoading: boolean;
@@ -10,5 +9,5 @@ interface FleetAlertsPanelProps {
10
9
  }
11
10
  /** Human-readable "how close / how late" for an alert, from its structured due data. */
12
11
  export declare function describeDue(alert: Pick<FleetAlert, 'daysUntilDue' | 'kmUntilDue'>): string;
13
- export declare function FleetAlertsPanel({ alerts, isLoading, error, onRetry, onOpen, t, }: FleetAlertsPanelProps): import("react").JSX.Element;
12
+ export declare function FleetAlertsPanel({ alerts, isLoading, error, onRetry, onOpen, t, }: FleetAlertsPanelProps): import('react').JSX.Element;
14
13
  export {};
@@ -7,5 +7,5 @@
7
7
  interface FormErrorProps {
8
8
  message?: string | null;
9
9
  }
10
- export declare function FormError({ message }: FormErrorProps): import("react").JSX.Element | null;
10
+ export declare function FormError({ message }: FormErrorProps): import('react').JSX.Element | null;
11
11
  export {};
@@ -1,5 +1,4 @@
1
1
  import { MtwFreeTimeAgreementInput, FreeAgreementFieldsFragment } from '../../generated/free-time-operations';
2
-
3
2
  export interface FreeTimeEventOption {
4
3
  id: string;
5
4
  eventType: string;
@@ -11,4 +10,4 @@ export declare function FreeTimeAgreementForm({ events, initial, onSubmit, busy,
11
10
  initial?: FreeAgreementFieldsFragment;
12
11
  onSubmit: (input: MtwFreeTimeAgreementInput) => Promise<void>;
13
12
  busy: boolean;
14
- }): import("react").JSX.Element;
13
+ }): import('react').JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
-
3
2
  interface GlassPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4
3
  /** Optional panel title rendered in a compact header row. */
5
4
  title?: ReactNode;
@@ -21,5 +20,5 @@ interface GlassPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>
21
20
  * dashboard sections, map/chart cards, and side rails. Token-based, theme-aware,
22
21
  * and follows the fe-libs no-movement hover policy.
23
22
  */
24
- export declare function GlassPanel({ title, action, description, padding, treatment, glow, className, bodyClassName, children, ...rest }: GlassPanelProps): import("react").JSX.Element;
23
+ export declare function GlassPanel({ title, action, description, padding, treatment, glow, className, bodyClassName, children, ...rest }: GlassPanelProps): import('react').JSX.Element;
25
24
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  /** Semantic accent used to tint the sparkline, delta chip, and icon chip. */
4
3
  export type MetricAccent = 'brand' | 'blue' | 'success' | 'warning' | 'error' | 'neutral';
5
4
  export interface MetricDelta {
@@ -50,13 +49,13 @@ interface MetricCardProps {
50
49
  * chip, an optional inline sparkline, and a token-tinted icon chip. Backward
51
50
  * compatible with the legacy `change`/`changeType`/`trend` props.
52
51
  */
53
- export declare function MetricCard({ value, label, icon, change, changeType, subtitle, trend, size, onClick, className, treatment, glow, sparklineData, delta, accent, }: MetricCardProps): import("react").JSX.Element;
52
+ export declare function MetricCard({ value, label, icon, change, changeType, subtitle, trend, size, onClick, className, treatment, glow, sparklineData, delta, accent, }: MetricCardProps): import('react').JSX.Element;
54
53
  /**
55
54
  * MetricCardSkeleton - Loading state for MetricCard
56
55
  */
57
56
  export declare function MetricCardSkeleton({ size }: {
58
57
  size?: 'sm' | 'md' | 'lg';
59
- }): import("react").JSX.Element;
58
+ }): import('react').JSX.Element;
60
59
  /**
61
60
  * MetricGrid - Grid container for metric cards
62
61
  */
@@ -64,5 +63,5 @@ export declare function MetricGrid({ children, columns, className, }: {
64
63
  children: ReactNode;
65
64
  columns?: 2 | 3 | 4 | 5 | 6;
66
65
  className?: string;
67
- }): import("react").JSX.Element;
66
+ }): import('react').JSX.Element;
68
67
  export {};
@@ -12,7 +12,7 @@ interface NoticeProps {
12
12
  message?: string | null;
13
13
  variant?: NoticeVariant;
14
14
  }
15
- export declare function Notice({ message, variant }: NoticeProps): import("react").JSX.Element | null;
15
+ export declare function Notice({ message, variant }: NoticeProps): import('react').JSX.Element | null;
16
16
  /**
17
17
  * useNotice — transient success/info message that auto-clears after a delay.
18
18
  * Returns the current message plus a `notify` setter, mirroring a toast API.
@@ -1,6 +1,5 @@
1
1
  import { OrderItem, Product } from '../types';
2
2
  import { OrderItemFieldErrors } from '../utils/orderValidation';
3
-
4
3
  interface OrderItemRowProps {
5
4
  item: OrderItem;
6
5
  index: number;
@@ -14,5 +13,5 @@ interface OrderItemRowProps {
14
13
  onUpdate: (index: number, field: string, value: unknown) => void;
15
14
  onRemove: (index: number) => void;
16
15
  }
17
- export declare function OrderItemRow({ item, index, products, productsLoading, productsLoadingMore, productsHasMore, productsTotalCount, onLoadMoreProducts, errors, onUpdate, onRemove, }: OrderItemRowProps): import("react").JSX.Element;
16
+ export declare function OrderItemRow({ item, index, products, productsLoading, productsLoadingMore, productsHasMore, productsTotalCount, onLoadMoreProducts, errors, onUpdate, onRemove, }: OrderItemRowProps): import('react').JSX.Element;
18
17
  export {};