@burdenoff/microfe-movethewheels 2026.1016.3 → 2026.1016.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +10 -0
  2. package/dist/MoveTheWheelsRoot.js +5 -0
  3. package/dist/MoveTheWheelsRoutes.js +25 -21
  4. package/dist/components/ContainerEvidencePicker.js +55 -55
  5. package/dist/components/FleetAlertsPanel.js +2 -2
  6. package/dist/components/freight-invoice/InvoiceForm.js +366 -0
  7. package/dist/components/freight-invoice/InvoiceResults.js +240 -0
  8. package/dist/generated/consolidation-operations.d.ts +195 -265
  9. package/dist/generated/container-condition-operations.d.ts +124 -187
  10. package/dist/generated/container-operations.d.ts +59 -85
  11. package/dist/generated/empty-reuse-operations.d.ts +165 -271
  12. package/dist/generated/free-time-operations.d.ts +120 -184
  13. package/dist/generated/freight-cost-operations.d.ts +307 -476
  14. package/dist/generated/freight-invoice-operations.d.ts +1447 -0
  15. package/dist/generated/logistics-procedure-operations.d.ts +100 -156
  16. package/dist/generated/pending-pick-operations.d.ts +769 -1025
  17. package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
  18. package/dist/generated/stock-binding-operations.d.ts +188 -260
  19. package/dist/generated/stock-observation-operations.d.ts +103 -138
  20. package/dist/generated/tracking-quality-operations.d.ts +27 -41
  21. package/dist/generated/trip-utilization-operations.d.ts +137 -185
  22. package/dist/generated/wspace-operations.d.ts +628 -2272
  23. package/dist/generated/wspace-types.d.ts +4 -23
  24. package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
  25. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
  26. package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
  27. package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
  28. package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
  29. package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
  30. package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
  31. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
  32. package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
  33. package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
  34. package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
  35. package/dist/pages/DriverDetailsPage.js +306 -282
  36. package/dist/pages/FreightEstimatePage.js +1 -0
  37. package/dist/pages/FreightInvoicePage.js +346 -0
  38. package/dist/src/generated/consolidation-operations.js +3961 -503
  39. package/dist/src/generated/container-condition-operations.js +2968 -206
  40. package/dist/src/generated/container-operations.js +997 -99
  41. package/dist/src/generated/empty-reuse-operations.js +4811 -747
  42. package/dist/src/generated/free-time-operations.js +2824 -233
  43. package/dist/src/generated/freight-cost-operations.js +4852 -812
  44. package/dist/src/generated/freight-invoice-operations.js +4894 -0
  45. package/dist/src/generated/logistics-procedure-operations.js +2707 -360
  46. package/dist/src/generated/pending-pick-operations.js +8244 -1196
  47. package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
  48. package/dist/src/generated/stock-binding-operations.js +2779 -173
  49. package/dist/src/generated/stock-observation-operations.js +1274 -91
  50. package/dist/src/generated/tracking-quality-operations.js +407 -42
  51. package/dist/src/generated/trip-utilization-operations.js +1765 -138
  52. package/dist/src/generated/wspace-operations.js +428 -706
  53. package/dist/utils/driverLicenseExpiry.js +14 -0
  54. package/dist/utils/invoiceComparison.js +272 -0
  55. package/package.json +29 -29
  56. package/src/generated/consolidation-operations.ts +60 -559
  57. package/src/generated/container-condition-operations.ts +63 -265
  58. package/src/generated/container-operations.ts +37 -132
  59. package/src/generated/empty-reuse-operations.ts +83 -824
  60. package/src/generated/free-time-operations.ts +55 -284
  61. package/src/generated/freight-cost-operations.ts +42 -848
  62. package/src/generated/freight-invoice-operations.ts +830 -0
  63. package/src/generated/logistics-procedure-operations.ts +60 -414
  64. package/src/generated/pending-pick-operations.ts +48 -1239
  65. package/src/generated/shipment-status-authority-operations.ts +33 -113
  66. package/src/generated/stock-binding-operations.ts +29 -198
  67. package/src/generated/stock-observation-operations.ts +24 -111
  68. package/src/generated/tracking-quality-operations.ts +19 -57
  69. package/src/generated/trip-utilization-operations.ts +32 -166
  70. package/src/generated/wspace-operations.ts +284 -2906
  71. package/src/generated/wspace-types.ts +2 -8
  72. package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
  73. package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
  74. package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
  75. package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
  76. package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
  77. package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
  78. package/src/movethewheels/hooks/useFleet.ts +1 -1
  79. package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
  80. package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
  81. package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
  82. package/src/movethewheels/pages/FreightEstimatePage.tsx +1 -0
  83. package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
  84. package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
  85. package/src/movethewheels/utils/invoiceComparison.ts +520 -0
  86. package/src/operations/freight-invoice/comparison.graphql +40 -0
  87. package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
  88. package/patches/braces@3.0.3.patch +0 -87
@@ -1,24 +1,17 @@
1
- export type Maybe<T> = T | null;
2
- export type InputMaybe<T> = Maybe<T>;
3
- export type Exact<T extends {
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
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
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 './container-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: {
@@ -186,171 +179,152 @@ export type RegisterMtwContainerInput = {
186
179
  source: Scalars['String']['input'];
187
180
  };
188
181
  export type ContainerEquipmentFieldsFragment = {
189
- __typename?: 'MtwContainer';
190
182
  id: string;
191
183
  containerNumber: string;
192
- equipmentType: MtwEquipmentType;
193
- ownerName?: string | null;
184
+ equipmentType: Types.MtwEquipmentType;
185
+ ownerName: string | null;
194
186
  source: string;
195
187
  };
196
188
  export type ContainerCycleFieldsFragment = {
197
- __typename?: 'MtwContainerCycle';
198
189
  id: string;
199
190
  containerId: string;
200
- shipmentId?: string | null;
201
- bookingReference?: string | null;
191
+ shipmentId: string | null;
192
+ bookingReference: string | null;
202
193
  openedAt: string;
203
- closedAt?: string | null;
204
- status: MtwContainerCycleStatus;
194
+ closedAt: string | null;
195
+ status: Types.MtwContainerCycleStatus;
205
196
  version: number;
206
197
  };
207
198
  export type ContainerEventFieldsFragment = {
208
- __typename?: 'MtwContainerEvent';
209
199
  id: string;
210
- eventType: MtwContainerEventType;
211
- kind: MtwContainerEventKind;
200
+ eventType: Types.MtwContainerEventType;
201
+ kind: Types.MtwContainerEventKind;
212
202
  occurredAt: string;
213
203
  receivedAt: string;
214
204
  source: string;
215
- sourceReference?: string | null;
216
- evidenceNote?: string | null;
217
- location?: string | null;
205
+ sourceReference: string | null;
206
+ evidenceNote: string | null;
207
+ location: string | null;
218
208
  };
219
209
  export type ContainerRegistryQueryVariables = Exact<{
220
- pagination?: InputMaybe<MtwContainerPagination>;
210
+ pagination?: Types.MtwContainerPagination | null | undefined;
221
211
  }>;
222
212
  export type ContainerRegistryQuery = {
223
- __typename?: 'Query';
224
213
  mtwContainerPage: {
225
- __typename?: 'MtwContainerPage';
226
214
  hasMore: boolean;
227
215
  total: number;
228
216
  limit: number;
229
217
  offset: number;
230
- nextOffset?: number | null;
218
+ nextOffset: number | null;
231
219
  items: Array<{
232
- __typename?: 'MtwContainer';
233
220
  id: string;
234
221
  containerNumber: string;
235
- equipmentType: MtwEquipmentType;
236
- ownerName?: string | null;
222
+ equipmentType: Types.MtwEquipmentType;
223
+ ownerName: string | null;
237
224
  source: string;
238
225
  }>;
239
226
  };
240
227
  };
241
228
  export type ContainerCyclesQueryVariables = Exact<{
242
- containerId: Scalars['ID']['input'];
243
- pagination?: InputMaybe<MtwContainerPagination>;
229
+ containerId: string;
230
+ pagination?: Types.MtwContainerPagination | null | undefined;
244
231
  }>;
245
232
  export type ContainerCyclesQuery = {
246
- __typename?: 'Query';
247
233
  mtwContainerCyclePage: {
248
- __typename?: 'MtwContainerCyclePage';
249
234
  hasMore: boolean;
250
235
  total: number;
251
236
  limit: number;
252
237
  offset: number;
253
- nextOffset?: number | null;
238
+ nextOffset: number | null;
254
239
  items: Array<{
255
- __typename?: 'MtwContainerCycle';
256
240
  id: string;
257
241
  containerId: string;
258
- shipmentId?: string | null;
259
- bookingReference?: string | null;
242
+ shipmentId: string | null;
243
+ bookingReference: string | null;
260
244
  openedAt: string;
261
- closedAt?: string | null;
262
- status: MtwContainerCycleStatus;
245
+ closedAt: string | null;
246
+ status: Types.MtwContainerCycleStatus;
263
247
  version: number;
264
248
  }>;
265
249
  };
266
250
  };
267
251
  export type ContainerEventsQueryVariables = Exact<{
268
- cycleId: Scalars['ID']['input'];
269
- pagination?: InputMaybe<MtwContainerPagination>;
252
+ cycleId: string;
253
+ pagination?: Types.MtwContainerPagination | null | undefined;
270
254
  }>;
271
255
  export type ContainerEventsQuery = {
272
- __typename?: 'Query';
273
256
  mtwContainerEventPage: {
274
- __typename?: 'MtwContainerEventPage';
275
257
  hasMore: boolean;
276
258
  total: number;
277
259
  limit: number;
278
260
  offset: number;
279
- nextOffset?: number | null;
261
+ nextOffset: number | null;
280
262
  items: Array<{
281
- __typename?: 'MtwContainerEvent';
282
263
  id: string;
283
- eventType: MtwContainerEventType;
284
- kind: MtwContainerEventKind;
264
+ eventType: Types.MtwContainerEventType;
265
+ kind: Types.MtwContainerEventKind;
285
266
  occurredAt: string;
286
267
  receivedAt: string;
287
268
  source: string;
288
- sourceReference?: string | null;
289
- evidenceNote?: string | null;
290
- location?: string | null;
269
+ sourceReference: string | null;
270
+ evidenceNote: string | null;
271
+ location: string | null;
291
272
  }>;
292
273
  };
293
274
  };
294
275
  export type RegisterContainerMutationVariables = Exact<{
295
- input: RegisterMtwContainerInput;
276
+ input: Types.RegisterMtwContainerInput;
296
277
  }>;
297
278
  export type RegisterContainerMutation = {
298
- __typename?: 'Mutation';
299
279
  registerMtwContainer: {
300
- __typename?: 'MtwContainer';
301
280
  id: string;
302
281
  containerNumber: string;
303
- equipmentType: MtwEquipmentType;
304
- ownerName?: string | null;
282
+ equipmentType: Types.MtwEquipmentType;
283
+ ownerName: string | null;
305
284
  source: string;
306
285
  };
307
286
  };
308
287
  export type OpenContainerCycleMutationVariables = Exact<{
309
- input: OpenMtwContainerCycleInput;
288
+ input: Types.OpenMtwContainerCycleInput;
310
289
  }>;
311
290
  export type OpenContainerCycleMutation = {
312
- __typename?: 'Mutation';
313
291
  openMtwContainerCycle: {
314
- __typename?: 'MtwContainerCycle';
315
292
  id: string;
316
293
  containerId: string;
317
- shipmentId?: string | null;
318
- bookingReference?: string | null;
294
+ shipmentId: string | null;
295
+ bookingReference: string | null;
319
296
  openedAt: string;
320
- closedAt?: string | null;
321
- status: MtwContainerCycleStatus;
297
+ closedAt: string | null;
298
+ status: Types.MtwContainerCycleStatus;
322
299
  version: number;
323
300
  };
324
301
  };
325
302
  export type RecordContainerEventMutationVariables = Exact<{
326
- input: RecordMtwContainerEventInput;
303
+ input: Types.RecordMtwContainerEventInput;
327
304
  }>;
328
305
  export type RecordContainerEventMutation = {
329
- __typename?: 'Mutation';
330
306
  recordMtwContainerEvent: {
331
- __typename?: 'MtwContainerEvent';
332
307
  id: string;
333
308
  };
334
309
  };
335
310
  export type CloseContainerCycleMutationVariables = Exact<{
336
- input: CloseMtwContainerCycleInput;
311
+ input: Types.CloseMtwContainerCycleInput;
337
312
  }>;
338
313
  export type CloseContainerCycleMutation = {
339
- __typename?: 'Mutation';
340
314
  closeMtwContainerCycle: {
341
- __typename?: 'MtwContainerCycle';
342
315
  id: string;
343
- status: MtwContainerCycleStatus;
316
+ status: Types.MtwContainerCycleStatus;
344
317
  version: number;
345
318
  };
346
319
  };
347
- export declare const ContainerEquipmentFieldsFragmentDoc: import('graphql').DocumentNode;
348
- export declare const ContainerCycleFieldsFragmentDoc: import('graphql').DocumentNode;
349
- export declare const ContainerEventFieldsFragmentDoc: import('graphql').DocumentNode;
350
- export declare const ContainerRegistryDocument: import('graphql').DocumentNode;
351
- export declare const ContainerCyclesDocument: import('graphql').DocumentNode;
352
- export declare const ContainerEventsDocument: import('graphql').DocumentNode;
353
- export declare const RegisterContainerDocument: import('graphql').DocumentNode;
354
- export declare const OpenContainerCycleDocument: import('graphql').DocumentNode;
355
- export declare const RecordContainerEventDocument: import('graphql').DocumentNode;
356
- export declare const CloseContainerCycleDocument: import('graphql').DocumentNode;
320
+ export declare const ContainerEquipmentFieldsFragmentDoc: DocumentNode<ContainerEquipmentFieldsFragment, unknown>;
321
+ export declare const ContainerCycleFieldsFragmentDoc: DocumentNode<ContainerCycleFieldsFragment, unknown>;
322
+ export declare const ContainerEventFieldsFragmentDoc: DocumentNode<ContainerEventFieldsFragment, unknown>;
323
+ export declare const ContainerRegistryDocument: DocumentNode<ContainerRegistryQuery, ContainerRegistryQueryVariables>;
324
+ export declare const ContainerCyclesDocument: DocumentNode<ContainerCyclesQuery, ContainerCyclesQueryVariables>;
325
+ export declare const ContainerEventsDocument: DocumentNode<ContainerEventsQuery, ContainerEventsQueryVariables>;
326
+ export declare const RegisterContainerDocument: DocumentNode<RegisterContainerMutation, RegisterContainerMutationVariables>;
327
+ export declare const OpenContainerCycleDocument: DocumentNode<OpenContainerCycleMutation, OpenContainerCycleMutationVariables>;
328
+ export declare const RecordContainerEventDocument: DocumentNode<RecordContainerEventMutation, RecordContainerEventMutationVariables>;
329
+ export declare const CloseContainerCycleDocument: DocumentNode<CloseContainerCycleMutation, CloseContainerCycleMutationVariables>;
330
+ export {};