@burdenoff/microfe-movethewheels 2026.1016.2 → 2026.1016.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) 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-cost/FreightCommercialEditor.js +217 -0
  7. package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
  8. package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
  9. package/dist/components/freight-cost/FreightDraftForm.js +106 -91
  10. package/dist/components/freight-cost/FreightHistory.js +42 -40
  11. package/dist/components/freight-invoice/InvoiceForm.js +366 -0
  12. package/dist/components/freight-invoice/InvoiceResults.js +240 -0
  13. package/dist/generated/consolidation-operations.d.ts +195 -265
  14. package/dist/generated/container-condition-operations.d.ts +124 -187
  15. package/dist/generated/container-operations.d.ts +59 -85
  16. package/dist/generated/empty-reuse-operations.d.ts +165 -271
  17. package/dist/generated/free-time-operations.d.ts +120 -184
  18. package/dist/generated/freight-cost-operations.d.ts +955 -165
  19. package/dist/generated/freight-invoice-operations.d.ts +1447 -0
  20. package/dist/generated/logistics-procedure-operations.d.ts +100 -156
  21. package/dist/generated/pending-pick-operations.d.ts +769 -1025
  22. package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
  23. package/dist/generated/stock-binding-operations.d.ts +188 -260
  24. package/dist/generated/stock-observation-operations.d.ts +103 -138
  25. package/dist/generated/tracking-quality-operations.d.ts +27 -41
  26. package/dist/generated/trip-utilization-operations.d.ts +137 -185
  27. package/dist/generated/wspace-operations.d.ts +628 -2272
  28. package/dist/generated/wspace-types.d.ts +4 -23
  29. package/dist/hooks/useFreightRecoveryAction.js +20 -20
  30. package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
  31. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
  32. package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
  33. package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
  34. package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
  35. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
  36. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
  37. package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
  38. package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
  39. package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
  40. package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
  41. package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
  42. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
  43. package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
  44. package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
  45. package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
  46. package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
  47. package/dist/pages/DriverDetailsPage.js +306 -282
  48. package/dist/pages/FreightEstimatePage.js +97 -92
  49. package/dist/pages/FreightInvoicePage.js +346 -0
  50. package/dist/src/generated/consolidation-operations.js +3961 -503
  51. package/dist/src/generated/container-condition-operations.js +2968 -206
  52. package/dist/src/generated/container-operations.js +997 -99
  53. package/dist/src/generated/empty-reuse-operations.js +4811 -747
  54. package/dist/src/generated/free-time-operations.js +2824 -233
  55. package/dist/src/generated/freight-cost-operations.js +4852 -323
  56. package/dist/src/generated/freight-invoice-operations.js +4894 -0
  57. package/dist/src/generated/logistics-procedure-operations.js +2707 -360
  58. package/dist/src/generated/pending-pick-operations.js +8244 -1196
  59. package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
  60. package/dist/src/generated/stock-binding-operations.js +2779 -173
  61. package/dist/src/generated/stock-observation-operations.js +1274 -91
  62. package/dist/src/generated/tracking-quality-operations.js +407 -42
  63. package/dist/src/generated/trip-utilization-operations.js +1765 -138
  64. package/dist/src/generated/wspace-operations.js +428 -706
  65. package/dist/utils/driverLicenseExpiry.js +14 -0
  66. package/dist/utils/freightAcknowledgement.js +6 -5
  67. package/dist/utils/freightCommercial.js +194 -0
  68. package/dist/utils/freightRecovery.js +22 -22
  69. package/dist/utils/invoiceComparison.js +272 -0
  70. package/package.json +30 -29
  71. package/src/generated/consolidation-operations.ts +60 -559
  72. package/src/generated/container-condition-operations.ts +63 -265
  73. package/src/generated/container-operations.ts +37 -132
  74. package/src/generated/empty-reuse-operations.ts +83 -824
  75. package/src/generated/free-time-operations.ts +55 -284
  76. package/src/generated/freight-cost-operations.ts +373 -349
  77. package/src/generated/freight-invoice-operations.ts +830 -0
  78. package/src/generated/logistics-procedure-operations.ts +60 -414
  79. package/src/generated/pending-pick-operations.ts +48 -1239
  80. package/src/generated/shipment-status-authority-operations.ts +33 -113
  81. package/src/generated/stock-binding-operations.ts +29 -198
  82. package/src/generated/stock-observation-operations.ts +24 -111
  83. package/src/generated/tracking-quality-operations.ts +19 -57
  84. package/src/generated/trip-utilization-operations.ts +32 -166
  85. package/src/generated/wspace-operations.ts +284 -2906
  86. package/src/generated/wspace-types.ts +2 -8
  87. package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
  88. package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
  89. package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
  90. package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
  91. package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
  92. package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
  93. package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
  94. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
  95. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
  96. package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
  97. package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
  98. package/src/movethewheels/hooks/useFleet.ts +1 -1
  99. package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
  100. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
  101. package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
  102. package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
  103. package/src/movethewheels/pages/FreightEstimatePage.tsx +15 -7
  104. package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
  105. package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
  106. package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
  107. package/src/movethewheels/utils/freightCommercial.ts +388 -0
  108. package/src/movethewheels/utils/freightRecovery.ts +6 -2
  109. package/src/movethewheels/utils/invoiceComparison.ts +520 -0
  110. package/src/operations/freight-cost/commercial.graphql +483 -0
  111. package/src/operations/freight-invoice/comparison.graphql +40 -0
  112. package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
  113. 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 './free-time-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: {
@@ -406,10 +399,9 @@ export type RequestMtwFreeTimeExtensionInput = {
406
399
  requestedFreeUntil: Scalars['DateTime']['input'];
407
400
  };
408
401
  export type FreeClockFieldsFragment = {
409
- __typename?: 'MtwFreeTimeClock';
410
402
  id: string;
411
403
  cycleId: string;
412
- chargeKind: MtwFreeTimeChargeKind;
404
+ chargeKind: Types.MtwFreeTimeChargeKind;
413
405
  obligationReference: string;
414
406
  version: number;
415
407
  currentAgreementVersion: number;
@@ -417,7 +409,6 @@ export type FreeClockFieldsFragment = {
417
409
  updatedAt: string;
418
410
  };
419
411
  export type FreeAgreementFieldsFragment = {
420
- __typename?: 'MtwFreeTimeAgreement';
421
412
  id: string;
422
413
  clockId: string;
423
414
  version: number;
@@ -425,66 +416,59 @@ export type FreeAgreementFieldsFragment = {
425
416
  payee: string;
426
417
  sourceReference: string;
427
418
  effectiveAt: string;
428
- applicability: MtwFreeTimeApplicability;
419
+ applicability: Types.MtwFreeTimeApplicability;
429
420
  recordedAt: string;
430
- triggerEventType: MtwContainerEventType;
431
- stopEventType: MtwContainerEventType;
432
- triggerEventId?: string | null;
433
- stopEventId?: string | null;
434
- confirmedFreeUntil?: string | null;
421
+ triggerEventType: Types.MtwContainerEventType;
422
+ stopEventType: Types.MtwContainerEventType;
423
+ triggerEventId: string | null;
424
+ stopEventId: string | null;
425
+ confirmedFreeUntil: string | null;
435
426
  changeReason: string;
436
427
  createdBy: string;
437
428
  evidence: Array<{
438
- __typename?: 'MtwContainerEvidence';
439
429
  fileId: string;
440
430
  versionId: string;
441
431
  sha256Hash: string;
442
432
  checkedAt: string;
443
433
  }>;
444
- terms?: {
445
- __typename?: 'MtwFreeTimeTerms';
434
+ terms: {
446
435
  timeZone: string;
447
436
  freeDays: number;
448
437
  includeTriggerDate: boolean;
449
438
  currency: string;
450
439
  minorUnitDigits: number;
451
- calculationPolicy: MtwFreeTimeCalculationPolicy;
452
- partialDayPolicy: MtwFreeTimePartialDayPolicy;
453
- tierBasis: MtwFreeTimeTierBasis;
440
+ calculationPolicy: Types.MtwFreeTimeCalculationPolicy;
441
+ partialDayPolicy: Types.MtwFreeTimePartialDayPolicy;
442
+ tierBasis: Types.MtwFreeTimeTierBasis;
454
443
  freeCalendar: {
455
- __typename?: 'MtwFreeTimeCalendar';
456
444
  weekdays: Array<number>;
457
445
  excludedDates: Array<string>;
458
446
  };
459
447
  chargeCalendar: {
460
- __typename?: 'MtwFreeTimeCalendar';
461
448
  weekdays: Array<number>;
462
449
  excludedDates: Array<string>;
463
450
  };
464
451
  rateTiers: Array<{
465
- __typename?: 'MtwFreeTimeRateTier';
466
452
  fromDay: number;
467
- throughDay?: number | null;
453
+ throughDay: number | null;
468
454
  dailyMinorUnits: number;
469
455
  }>;
470
456
  } | null;
471
457
  };
472
458
  export type FreeDecisionFieldsFragment = {
473
- __typename?: 'MtwFreeTimeExtensionDecision';
474
459
  id: string;
475
460
  extensionId: string;
476
- decision: MtwFreeTimeDecisionKind;
461
+ decision: Types.MtwFreeTimeDecisionKind;
477
462
  decidedAt: string;
478
- effectiveAt?: string | null;
479
- acceptedFreeUntil?: string | null;
480
- newAgreementId?: string | null;
463
+ effectiveAt: string | null;
464
+ acceptedFreeUntil: string | null;
465
+ newAgreementId: string | null;
481
466
  counterparty: string;
482
467
  sourceReference: string;
483
468
  note: string;
484
469
  recordedAt: string;
485
470
  createdBy: string;
486
471
  evidence: Array<{
487
- __typename?: 'MtwContainerEvidence';
488
472
  fileId: string;
489
473
  versionId: string;
490
474
  sha256Hash: string;
@@ -492,7 +476,6 @@ export type FreeDecisionFieldsFragment = {
492
476
  }>;
493
477
  };
494
478
  export type FreeExtensionFieldsFragment = {
495
- __typename?: 'MtwFreeTimeExtension';
496
479
  id: string;
497
480
  clockId: string;
498
481
  baseAgreementId: string;
@@ -503,28 +486,25 @@ export type FreeExtensionFieldsFragment = {
503
486
  recordedAt: string;
504
487
  createdBy: string;
505
488
  evidence: Array<{
506
- __typename?: 'MtwContainerEvidence';
507
489
  fileId: string;
508
490
  versionId: string;
509
491
  sha256Hash: string;
510
492
  checkedAt: string;
511
493
  }>;
512
- decision?: {
513
- __typename?: 'MtwFreeTimeExtensionDecision';
494
+ decision: {
514
495
  id: string;
515
496
  extensionId: string;
516
- decision: MtwFreeTimeDecisionKind;
497
+ decision: Types.MtwFreeTimeDecisionKind;
517
498
  decidedAt: string;
518
- effectiveAt?: string | null;
519
- acceptedFreeUntil?: string | null;
520
- newAgreementId?: string | null;
499
+ effectiveAt: string | null;
500
+ acceptedFreeUntil: string | null;
501
+ newAgreementId: string | null;
521
502
  counterparty: string;
522
503
  sourceReference: string;
523
504
  note: string;
524
505
  recordedAt: string;
525
506
  createdBy: string;
526
507
  evidence: Array<{
527
- __typename?: 'MtwContainerEvidence';
528
508
  fileId: string;
529
509
  versionId: string;
530
510
  sha256Hash: string;
@@ -533,88 +513,76 @@ export type FreeExtensionFieldsFragment = {
533
513
  } | null;
534
514
  };
535
515
  export type FreeContainersQueryVariables = Exact<{
536
- pagination: MtwContainerPagination;
516
+ pagination: Types.MtwContainerPagination;
537
517
  }>;
538
518
  export type FreeContainersQuery = {
539
- __typename?: 'Query';
540
519
  mtwContainerPage: {
541
- __typename?: 'MtwContainerPage';
542
520
  total: number;
543
521
  limit: number;
544
522
  offset: number;
545
523
  hasMore: boolean;
546
- nextOffset?: number | null;
524
+ nextOffset: number | null;
547
525
  items: Array<{
548
- __typename?: 'MtwContainer';
549
526
  id: string;
550
527
  containerNumber: string;
551
528
  }>;
552
529
  };
553
530
  };
554
531
  export type FreeCyclesQueryVariables = Exact<{
555
- containerId: Scalars['ID']['input'];
556
- pagination: MtwContainerPagination;
532
+ containerId: string;
533
+ pagination: Types.MtwContainerPagination;
557
534
  }>;
558
535
  export type FreeCyclesQuery = {
559
- __typename?: 'Query';
560
536
  mtwContainerCyclePage: {
561
- __typename?: 'MtwContainerCyclePage';
562
537
  total: number;
563
538
  limit: number;
564
539
  offset: number;
565
540
  hasMore: boolean;
566
- nextOffset?: number | null;
541
+ nextOffset: number | null;
567
542
  items: Array<{
568
- __typename?: 'MtwContainerCycle';
569
543
  id: string;
570
544
  openedAt: string;
571
- status: MtwContainerCycleStatus;
572
- bookingReference?: string | null;
545
+ status: Types.MtwContainerCycleStatus;
546
+ bookingReference: string | null;
573
547
  }>;
574
548
  };
575
549
  };
576
550
  export type FreeEventsQueryVariables = Exact<{
577
- cycleId: Scalars['ID']['input'];
578
- pagination: MtwContainerPagination;
551
+ cycleId: string;
552
+ pagination: Types.MtwContainerPagination;
579
553
  }>;
580
554
  export type FreeEventsQuery = {
581
- __typename?: 'Query';
582
555
  mtwContainerEventPage: {
583
- __typename?: 'MtwContainerEventPage';
584
556
  total: number;
585
557
  limit: number;
586
558
  offset: number;
587
559
  hasMore: boolean;
588
- nextOffset?: number | null;
560
+ nextOffset: number | null;
589
561
  items: Array<{
590
- __typename?: 'MtwContainerEvent';
591
562
  id: string;
592
- eventType: MtwContainerEventType;
593
- kind: MtwContainerEventKind;
563
+ eventType: Types.MtwContainerEventType;
564
+ kind: Types.MtwContainerEventKind;
594
565
  occurredAt: string;
595
566
  source: string;
596
- sourceReference?: string | null;
567
+ sourceReference: string | null;
597
568
  }>;
598
569
  };
599
570
  };
600
571
  export type FreeClocksQueryVariables = Exact<{
601
- cycleId: Scalars['ID']['input'];
602
- pagination: MtwContainerPagination;
572
+ cycleId: string;
573
+ pagination: Types.MtwContainerPagination;
603
574
  }>;
604
575
  export type FreeClocksQuery = {
605
- __typename?: 'Query';
606
576
  mtwFreeTimeClockPage: {
607
- __typename?: 'MtwFreeTimeClockPage';
608
577
  total: number;
609
578
  limit: number;
610
579
  offset: number;
611
580
  hasMore: boolean;
612
- nextOffset?: number | null;
581
+ nextOffset: number | null;
613
582
  items: Array<{
614
- __typename?: 'MtwFreeTimeClock';
615
583
  id: string;
616
584
  cycleId: string;
617
- chargeKind: MtwFreeTimeChargeKind;
585
+ chargeKind: Types.MtwFreeTimeChargeKind;
618
586
  obligationReference: string;
619
587
  version: number;
620
588
  currentAgreementVersion: number;
@@ -624,20 +592,17 @@ export type FreeClocksQuery = {
624
592
  };
625
593
  };
626
594
  export type FreeAgreementsQueryVariables = Exact<{
627
- clockId: Scalars['ID']['input'];
628
- pagination: MtwContainerPagination;
595
+ clockId: string;
596
+ pagination: Types.MtwContainerPagination;
629
597
  }>;
630
598
  export type FreeAgreementsQuery = {
631
- __typename?: 'Query';
632
599
  mtwFreeTimeAgreementPage: {
633
- __typename?: 'MtwFreeTimeAgreementPage';
634
600
  total: number;
635
601
  limit: number;
636
602
  offset: number;
637
603
  hasMore: boolean;
638
- nextOffset?: number | null;
604
+ nextOffset: number | null;
639
605
  items: Array<{
640
- __typename?: 'MtwFreeTimeAgreement';
641
606
  id: string;
642
607
  clockId: string;
643
608
  version: number;
@@ -645,46 +610,41 @@ export type FreeAgreementsQuery = {
645
610
  payee: string;
646
611
  sourceReference: string;
647
612
  effectiveAt: string;
648
- applicability: MtwFreeTimeApplicability;
613
+ applicability: Types.MtwFreeTimeApplicability;
649
614
  recordedAt: string;
650
- triggerEventType: MtwContainerEventType;
651
- stopEventType: MtwContainerEventType;
652
- triggerEventId?: string | null;
653
- stopEventId?: string | null;
654
- confirmedFreeUntil?: string | null;
615
+ triggerEventType: Types.MtwContainerEventType;
616
+ stopEventType: Types.MtwContainerEventType;
617
+ triggerEventId: string | null;
618
+ stopEventId: string | null;
619
+ confirmedFreeUntil: string | null;
655
620
  changeReason: string;
656
621
  createdBy: string;
657
622
  evidence: Array<{
658
- __typename?: 'MtwContainerEvidence';
659
623
  fileId: string;
660
624
  versionId: string;
661
625
  sha256Hash: string;
662
626
  checkedAt: string;
663
627
  }>;
664
- terms?: {
665
- __typename?: 'MtwFreeTimeTerms';
628
+ terms: {
666
629
  timeZone: string;
667
630
  freeDays: number;
668
631
  includeTriggerDate: boolean;
669
632
  currency: string;
670
633
  minorUnitDigits: number;
671
- calculationPolicy: MtwFreeTimeCalculationPolicy;
672
- partialDayPolicy: MtwFreeTimePartialDayPolicy;
673
- tierBasis: MtwFreeTimeTierBasis;
634
+ calculationPolicy: Types.MtwFreeTimeCalculationPolicy;
635
+ partialDayPolicy: Types.MtwFreeTimePartialDayPolicy;
636
+ tierBasis: Types.MtwFreeTimeTierBasis;
674
637
  freeCalendar: {
675
- __typename?: 'MtwFreeTimeCalendar';
676
638
  weekdays: Array<number>;
677
639
  excludedDates: Array<string>;
678
640
  };
679
641
  chargeCalendar: {
680
- __typename?: 'MtwFreeTimeCalendar';
681
642
  weekdays: Array<number>;
682
643
  excludedDates: Array<string>;
683
644
  };
684
645
  rateTiers: Array<{
685
- __typename?: 'MtwFreeTimeRateTier';
686
646
  fromDay: number;
687
- throughDay?: number | null;
647
+ throughDay: number | null;
688
648
  dailyMinorUnits: number;
689
649
  }>;
690
650
  } | null;
@@ -692,20 +652,17 @@ export type FreeAgreementsQuery = {
692
652
  };
693
653
  };
694
654
  export type FreeExtensionsQueryVariables = Exact<{
695
- clockId: Scalars['ID']['input'];
696
- pagination: MtwContainerPagination;
655
+ clockId: string;
656
+ pagination: Types.MtwContainerPagination;
697
657
  }>;
698
658
  export type FreeExtensionsQuery = {
699
- __typename?: 'Query';
700
659
  mtwFreeTimeExtensionPage: {
701
- __typename?: 'MtwFreeTimeExtensionPage';
702
660
  total: number;
703
661
  limit: number;
704
662
  offset: number;
705
663
  hasMore: boolean;
706
- nextOffset?: number | null;
664
+ nextOffset: number | null;
707
665
  items: Array<{
708
- __typename?: 'MtwFreeTimeExtension';
709
666
  id: string;
710
667
  clockId: string;
711
668
  baseAgreementId: string;
@@ -716,28 +673,25 @@ export type FreeExtensionsQuery = {
716
673
  recordedAt: string;
717
674
  createdBy: string;
718
675
  evidence: Array<{
719
- __typename?: 'MtwContainerEvidence';
720
676
  fileId: string;
721
677
  versionId: string;
722
678
  sha256Hash: string;
723
679
  checkedAt: string;
724
680
  }>;
725
- decision?: {
726
- __typename?: 'MtwFreeTimeExtensionDecision';
681
+ decision: {
727
682
  id: string;
728
683
  extensionId: string;
729
- decision: MtwFreeTimeDecisionKind;
684
+ decision: Types.MtwFreeTimeDecisionKind;
730
685
  decidedAt: string;
731
- effectiveAt?: string | null;
732
- acceptedFreeUntil?: string | null;
733
- newAgreementId?: string | null;
686
+ effectiveAt: string | null;
687
+ acceptedFreeUntil: string | null;
688
+ newAgreementId: string | null;
734
689
  counterparty: string;
735
690
  sourceReference: string;
736
691
  note: string;
737
692
  recordedAt: string;
738
693
  createdBy: string;
739
694
  evidence: Array<{
740
- __typename?: 'MtwContainerEvidence';
741
695
  fileId: string;
742
696
  versionId: string;
743
697
  sha256Hash: string;
@@ -748,38 +702,34 @@ export type FreeExtensionsQuery = {
748
702
  };
749
703
  };
750
704
  export type FreeExposureQueryVariables = Exact<{
751
- clockId: Scalars['ID']['input'];
752
- asOf: Scalars['DateTime']['input'];
705
+ clockId: string;
706
+ asOf: string;
753
707
  }>;
754
708
  export type FreeExposureQuery = {
755
- __typename?: 'Query';
756
709
  mtwFreeTimeExposure: {
757
- __typename?: 'MtwFreeTimeExposure';
758
710
  clockId: string;
759
- agreementId?: string | null;
711
+ agreementId: string | null;
760
712
  asOf: string;
761
713
  status: string;
762
- reason?: string | null;
763
- freeUntil?: string | null;
764
- evaluatedUntil?: string | null;
765
- localLastFreeDate?: string | null;
766
- chargedDays?: number | null;
767
- amountMinorUnits?: number | null;
768
- currency?: string | null;
769
- minorUnitDigits?: number | null;
770
- deadlineSource?: string | null;
714
+ reason: string | null;
715
+ freeUntil: string | null;
716
+ evaluatedUntil: string | null;
717
+ localLastFreeDate: string | null;
718
+ chargedDays: number | null;
719
+ amountMinorUnits: number | null;
720
+ currency: string | null;
721
+ minorUnitDigits: number | null;
722
+ deadlineSource: string | null;
771
723
  };
772
724
  };
773
725
  export type OpenFreeClockMutationVariables = Exact<{
774
- input: OpenMtwFreeTimeClockInput;
726
+ input: Types.OpenMtwFreeTimeClockInput;
775
727
  }>;
776
728
  export type OpenFreeClockMutation = {
777
- __typename?: 'Mutation';
778
729
  openMtwFreeTimeClock: {
779
- __typename?: 'MtwFreeTimeClock';
780
730
  id: string;
781
731
  cycleId: string;
782
- chargeKind: MtwFreeTimeChargeKind;
732
+ chargeKind: Types.MtwFreeTimeChargeKind;
783
733
  obligationReference: string;
784
734
  version: number;
785
735
  currentAgreementVersion: number;
@@ -788,12 +738,10 @@ export type OpenFreeClockMutation = {
788
738
  };
789
739
  };
790
740
  export type RecordFreeAgreementMutationVariables = Exact<{
791
- input: RecordMtwFreeTimeAgreementInput;
741
+ input: Types.RecordMtwFreeTimeAgreementInput;
792
742
  }>;
793
743
  export type RecordFreeAgreementMutation = {
794
- __typename?: 'Mutation';
795
744
  recordMtwFreeTimeAgreement: {
796
- __typename?: 'MtwFreeTimeAgreement';
797
745
  id: string;
798
746
  clockId: string;
799
747
  version: number;
@@ -801,58 +749,51 @@ export type RecordFreeAgreementMutation = {
801
749
  payee: string;
802
750
  sourceReference: string;
803
751
  effectiveAt: string;
804
- applicability: MtwFreeTimeApplicability;
752
+ applicability: Types.MtwFreeTimeApplicability;
805
753
  recordedAt: string;
806
- triggerEventType: MtwContainerEventType;
807
- stopEventType: MtwContainerEventType;
808
- triggerEventId?: string | null;
809
- stopEventId?: string | null;
810
- confirmedFreeUntil?: string | null;
754
+ triggerEventType: Types.MtwContainerEventType;
755
+ stopEventType: Types.MtwContainerEventType;
756
+ triggerEventId: string | null;
757
+ stopEventId: string | null;
758
+ confirmedFreeUntil: string | null;
811
759
  changeReason: string;
812
760
  createdBy: string;
813
761
  evidence: Array<{
814
- __typename?: 'MtwContainerEvidence';
815
762
  fileId: string;
816
763
  versionId: string;
817
764
  sha256Hash: string;
818
765
  checkedAt: string;
819
766
  }>;
820
- terms?: {
821
- __typename?: 'MtwFreeTimeTerms';
767
+ terms: {
822
768
  timeZone: string;
823
769
  freeDays: number;
824
770
  includeTriggerDate: boolean;
825
771
  currency: string;
826
772
  minorUnitDigits: number;
827
- calculationPolicy: MtwFreeTimeCalculationPolicy;
828
- partialDayPolicy: MtwFreeTimePartialDayPolicy;
829
- tierBasis: MtwFreeTimeTierBasis;
773
+ calculationPolicy: Types.MtwFreeTimeCalculationPolicy;
774
+ partialDayPolicy: Types.MtwFreeTimePartialDayPolicy;
775
+ tierBasis: Types.MtwFreeTimeTierBasis;
830
776
  freeCalendar: {
831
- __typename?: 'MtwFreeTimeCalendar';
832
777
  weekdays: Array<number>;
833
778
  excludedDates: Array<string>;
834
779
  };
835
780
  chargeCalendar: {
836
- __typename?: 'MtwFreeTimeCalendar';
837
781
  weekdays: Array<number>;
838
782
  excludedDates: Array<string>;
839
783
  };
840
784
  rateTiers: Array<{
841
- __typename?: 'MtwFreeTimeRateTier';
842
785
  fromDay: number;
843
- throughDay?: number | null;
786
+ throughDay: number | null;
844
787
  dailyMinorUnits: number;
845
788
  }>;
846
789
  } | null;
847
790
  };
848
791
  };
849
792
  export type RequestFreeExtensionMutationVariables = Exact<{
850
- input: RequestMtwFreeTimeExtensionInput;
793
+ input: Types.RequestMtwFreeTimeExtensionInput;
851
794
  }>;
852
795
  export type RequestFreeExtensionMutation = {
853
- __typename?: 'Mutation';
854
796
  requestMtwFreeTimeExtension: {
855
- __typename?: 'MtwFreeTimeExtension';
856
797
  id: string;
857
798
  clockId: string;
858
799
  baseAgreementId: string;
@@ -863,28 +804,25 @@ export type RequestFreeExtensionMutation = {
863
804
  recordedAt: string;
864
805
  createdBy: string;
865
806
  evidence: Array<{
866
- __typename?: 'MtwContainerEvidence';
867
807
  fileId: string;
868
808
  versionId: string;
869
809
  sha256Hash: string;
870
810
  checkedAt: string;
871
811
  }>;
872
- decision?: {
873
- __typename?: 'MtwFreeTimeExtensionDecision';
812
+ decision: {
874
813
  id: string;
875
814
  extensionId: string;
876
- decision: MtwFreeTimeDecisionKind;
815
+ decision: Types.MtwFreeTimeDecisionKind;
877
816
  decidedAt: string;
878
- effectiveAt?: string | null;
879
- acceptedFreeUntil?: string | null;
880
- newAgreementId?: string | null;
817
+ effectiveAt: string | null;
818
+ acceptedFreeUntil: string | null;
819
+ newAgreementId: string | null;
881
820
  counterparty: string;
882
821
  sourceReference: string;
883
822
  note: string;
884
823
  recordedAt: string;
885
824
  createdBy: string;
886
825
  evidence: Array<{
887
- __typename?: 'MtwContainerEvidence';
888
826
  fileId: string;
889
827
  versionId: string;
890
828
  sha256Hash: string;
@@ -894,26 +832,23 @@ export type RequestFreeExtensionMutation = {
894
832
  };
895
833
  };
896
834
  export type DecideFreeExtensionMutationVariables = Exact<{
897
- input: RecordMtwFreeTimeExtensionDecisionInput;
835
+ input: Types.RecordMtwFreeTimeExtensionDecisionInput;
898
836
  }>;
899
837
  export type DecideFreeExtensionMutation = {
900
- __typename?: 'Mutation';
901
838
  recordMtwFreeTimeExtensionDecision: {
902
- __typename?: 'MtwFreeTimeExtensionDecision';
903
839
  id: string;
904
840
  extensionId: string;
905
- decision: MtwFreeTimeDecisionKind;
841
+ decision: Types.MtwFreeTimeDecisionKind;
906
842
  decidedAt: string;
907
- effectiveAt?: string | null;
908
- acceptedFreeUntil?: string | null;
909
- newAgreementId?: string | null;
843
+ effectiveAt: string | null;
844
+ acceptedFreeUntil: string | null;
845
+ newAgreementId: string | null;
910
846
  counterparty: string;
911
847
  sourceReference: string;
912
848
  note: string;
913
849
  recordedAt: string;
914
850
  createdBy: string;
915
851
  evidence: Array<{
916
- __typename?: 'MtwContainerEvidence';
917
852
  fileId: string;
918
853
  versionId: string;
919
854
  sha256Hash: string;
@@ -921,18 +856,19 @@ export type DecideFreeExtensionMutation = {
921
856
  }>;
922
857
  };
923
858
  };
924
- export declare const FreeClockFieldsFragmentDoc: import('graphql').DocumentNode;
925
- export declare const FreeAgreementFieldsFragmentDoc: import('graphql').DocumentNode;
926
- export declare const FreeDecisionFieldsFragmentDoc: import('graphql').DocumentNode;
927
- export declare const FreeExtensionFieldsFragmentDoc: import('graphql').DocumentNode;
928
- export declare const FreeContainersDocument: import('graphql').DocumentNode;
929
- export declare const FreeCyclesDocument: import('graphql').DocumentNode;
930
- export declare const FreeEventsDocument: import('graphql').DocumentNode;
931
- export declare const FreeClocksDocument: import('graphql').DocumentNode;
932
- export declare const FreeAgreementsDocument: import('graphql').DocumentNode;
933
- export declare const FreeExtensionsDocument: import('graphql').DocumentNode;
934
- export declare const FreeExposureDocument: import('graphql').DocumentNode;
935
- export declare const OpenFreeClockDocument: import('graphql').DocumentNode;
936
- export declare const RecordFreeAgreementDocument: import('graphql').DocumentNode;
937
- export declare const RequestFreeExtensionDocument: import('graphql').DocumentNode;
938
- export declare const DecideFreeExtensionDocument: import('graphql').DocumentNode;
859
+ export declare const FreeClockFieldsFragmentDoc: DocumentNode<FreeClockFieldsFragment, unknown>;
860
+ export declare const FreeAgreementFieldsFragmentDoc: DocumentNode<FreeAgreementFieldsFragment, unknown>;
861
+ export declare const FreeDecisionFieldsFragmentDoc: DocumentNode<FreeDecisionFieldsFragment, unknown>;
862
+ export declare const FreeExtensionFieldsFragmentDoc: DocumentNode<FreeExtensionFieldsFragment, unknown>;
863
+ export declare const FreeContainersDocument: DocumentNode<FreeContainersQuery, FreeContainersQueryVariables>;
864
+ export declare const FreeCyclesDocument: DocumentNode<FreeCyclesQuery, FreeCyclesQueryVariables>;
865
+ export declare const FreeEventsDocument: DocumentNode<FreeEventsQuery, FreeEventsQueryVariables>;
866
+ export declare const FreeClocksDocument: DocumentNode<FreeClocksQuery, FreeClocksQueryVariables>;
867
+ export declare const FreeAgreementsDocument: DocumentNode<FreeAgreementsQuery, FreeAgreementsQueryVariables>;
868
+ export declare const FreeExtensionsDocument: DocumentNode<FreeExtensionsQuery, FreeExtensionsQueryVariables>;
869
+ export declare const FreeExposureDocument: DocumentNode<FreeExposureQuery, FreeExposureQueryVariables>;
870
+ export declare const OpenFreeClockDocument: DocumentNode<OpenFreeClockMutation, OpenFreeClockMutationVariables>;
871
+ export declare const RecordFreeAgreementDocument: DocumentNode<RecordFreeAgreementMutation, RecordFreeAgreementMutationVariables>;
872
+ export declare const RequestFreeExtensionDocument: DocumentNode<RequestFreeExtensionMutation, RequestFreeExtensionMutationVariables>;
873
+ export declare const DecideFreeExtensionDocument: DocumentNode<DecideFreeExtensionMutation, DecideFreeExtensionMutationVariables>;
874
+ export {};