@trackunit/filters-asset-filter-definitions 2.6.4 → 2.6.8

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 (27) hide show
  1. package/index.cjs.js +2411 -953
  2. package/index.esm.js +2411 -954
  3. package/migrations/entry.js.map +1 -0
  4. package/package.json +19 -19
  5. package/src/defaultFilters/defaults/BrandFilter.d.ts +0 -5
  6. package/src/defaultFilters/defaults/CanProfileFilter/Can1ProfileFilter.d.ts +0 -11
  7. package/src/defaultFilters/defaults/CanProfileFilter/Can2ProfileFilter.d.ts +0 -11
  8. package/src/defaultFilters/defaults/FirmwareVersionFilter/FirmwareVersionFilter.d.ts +0 -9
  9. package/src/defaultFilters/defaults/GroupIdsFilter.d.ts +0 -6
  10. package/src/defaultFilters/defaults/ModbusProfileFilter/ModbusProfileFilter.d.ts +0 -9
  11. package/src/defaultFilters/defaults/OwnerAccountIdsFilter.d.ts +0 -5
  12. package/src/defaultFilters/defaults/RentalContractCustomerParentExternalReferenceFilter.d.ts +0 -8
  13. package/src/defaultFilters/defaults/RentalContractCustomerParentNameFilter.d.ts +0 -8
  14. package/src/defaultFilters/defaults/RentalContractOrderNumberFilter.d.ts +1 -9
  15. package/src/defaultFilters/defaults/RentalContractReferenceCodeFilter.d.ts +1 -9
  16. package/src/defaultFilters/defaults/TypesFilter.d.ts +0 -5
  17. package/src/defaultFilters/defaults/area/areaSchemas.d.ts +12 -12
  18. package/src/defaultFilters/defaults/area/usePlacesSearch.d.ts +4 -4
  19. package/src/defaultFilters/defaults/refetchQueries.d.ts +9 -1
  20. package/src/defaultFilters/defaults/summaryConnectionTypes.d.ts +209 -0
  21. package/src/defaultFilters/defaults/test/summaryConnectionTestUtils.d.ts +116 -0
  22. package/src/defaultFilters/defaults/useFacetMissingCount.d.ts +25 -0
  23. package/src/defaultFilters/defaults/useFleetSummaryConnection.d.ts +28 -0
  24. package/src/generated/graphql-api/gql.d.ts +31 -14
  25. package/src/generated/graphql-api/graphql.d.ts +472 -226
  26. package/src/generated/graphql-api/mock.d.ts +69 -33
  27. package/src/translation.d.ts +2 -2
package/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { registerTranslations, useNamespaceTranslation } from '@trackunit/i18n-l
3
3
  import { gql } from '@apollo/client';
4
4
  import { DefaultCheckboxFilter, FilterEvents, FilterHeader, HierarchicalCheckboxFilter, DefaultMinMaxFilter, DefaultRadioFilter, DefaultDateRangeFilter } from '@trackunit/filters-filter-bar';
5
5
  import { useActiveAssetFilters, useAssetQueryFilters } from '@trackunit/filters-graphql-hook';
6
- import { useQuery } from '@trackunit/react-graphql-hooks';
6
+ import { useQuery, useConnectionPageMerger, usePaginationQuery } from '@trackunit/react-graphql-hooks';
7
7
  import { useMemo, useState, useCallback, useEffect } from 'react';
8
8
  import { useAnalytics, useCurrentUser, useUserPermission, useHasAccessTo } from '@trackunit/react-core-hooks';
9
9
  import { FilterBody, RadioFilterItem } from '@trackunit/react-filter-components';
@@ -89,6 +89,7 @@ var defaultTranslations = {
89
89
  "assetFilters.deviceTypes": "Device Type",
90
90
  "assetFilters.firmwareVersion.label": "Firmware version",
91
91
  "assetFilters.followedFilter.label": "Followed",
92
+ "assetFilters.groupFilter.missingGroup": "Missing group",
92
93
  "assetFilters.hourIntervalFilter.label": "Hour interval",
93
94
  "assetFilters.lastSeenFilter.anytime": "Any time",
94
95
  "assetFilters.lastSeenFilter.last24Hours": "Last 24 hours",
@@ -365,7 +366,7 @@ const GET_ACCESS_MANAGEMENT_MODE_DESIRED_SUMMARY = gql `
365
366
  }
366
367
  }
367
368
  `;
368
- const FETCH_LIMIT$i = 1000;
369
+ const FETCH_LIMIT$5 = 1000;
369
370
  /**
370
371
  Renders the Access Management Mode Filter view with the provided props.
371
372
 
@@ -379,7 +380,7 @@ const AccessManagementModeFilterView = ({ filterDefinition, filterState, filterB
379
380
  const { data, loading } = useQuery(GET_ACCESS_MANAGEMENT_MODE_DESIRED_SUMMARY, {
380
381
  fetchPolicy: "cache-first",
381
382
  variables: {
382
- limit: FETCH_LIMIT$i,
383
+ limit: FETCH_LIMIT$5,
383
384
  filters: {
384
385
  ...activeFilters,
385
386
  accessManagementDesiredModes: null, // Omit the filters own values so list shows options correctly
@@ -564,13 +565,13 @@ const TelematicsDeviceCan1ProfileNamesDocument = {
564
565
  },
565
566
  ],
566
567
  };
567
- const GetFleetCan1ProfileSummaryDocument = {
568
+ const GetFleetCan1ProfileSummaryConnectionDocument = {
568
569
  kind: "Document",
569
570
  definitions: [
570
571
  {
571
572
  kind: "OperationDefinition",
572
573
  operation: "query",
573
- name: { kind: "Name", value: "GetFleetCan1ProfileSummary" },
574
+ name: { kind: "Name", value: "GetFleetCan1ProfileSummaryConnection" },
574
575
  variableDefinitions: [
575
576
  {
576
577
  kind: "VariableDefinition",
@@ -584,7 +585,22 @@ const GetFleetCan1ProfileSummaryDocument = {
584
585
  },
585
586
  {
586
587
  kind: "VariableDefinition",
587
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
588
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
589
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
590
+ },
591
+ {
592
+ kind: "VariableDefinition",
593
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
594
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
595
+ },
596
+ {
597
+ kind: "VariableDefinition",
598
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
599
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
600
+ },
601
+ {
602
+ kind: "VariableDefinition",
603
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
588
604
  type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
589
605
  },
590
606
  ],
@@ -606,7 +622,7 @@ const GetFleetCan1ProfileSummaryDocument = {
606
622
  selections: [
607
623
  {
608
624
  kind: "Field",
609
- name: { kind: "Name", value: "can1ProfileSummary" },
625
+ name: { kind: "Name", value: "can1ProfileSummaryConnection" },
610
626
  arguments: [
611
627
  {
612
628
  kind: "Argument",
@@ -615,25 +631,73 @@ const GetFleetCan1ProfileSummaryDocument = {
615
631
  },
616
632
  {
617
633
  kind: "Argument",
618
- name: { kind: "Name", value: "limit" },
619
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
634
+ name: { kind: "Name", value: "first" },
635
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
636
+ },
637
+ {
638
+ kind: "Argument",
639
+ name: { kind: "Name", value: "after" },
640
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
641
+ },
642
+ {
643
+ kind: "Argument",
644
+ name: { kind: "Name", value: "before" },
645
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
646
+ },
647
+ {
648
+ kind: "Argument",
649
+ name: { kind: "Name", value: "last" },
650
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
620
651
  },
621
652
  ],
622
653
  selectionSet: {
623
654
  kind: "SelectionSet",
624
655
  selections: [
625
- { kind: "Field", name: { kind: "Name", value: "total" } },
626
- {
627
- kind: "Field",
628
- name: { kind: "Name", value: "summary" },
629
- selectionSet: {
630
- kind: "SelectionSet",
631
- selections: [
632
- { kind: "Field", name: { kind: "Name", value: "key" } },
633
- { kind: "Field", name: { kind: "Name", value: "count" } },
634
- ],
635
- },
636
- },
656
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
657
+ ],
658
+ },
659
+ },
660
+ ],
661
+ },
662
+ },
663
+ ],
664
+ },
665
+ },
666
+ {
667
+ kind: "FragmentDefinition",
668
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
669
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
670
+ selectionSet: {
671
+ kind: "SelectionSet",
672
+ selections: [
673
+ {
674
+ kind: "Field",
675
+ name: { kind: "Name", value: "pageInfo" },
676
+ selectionSet: {
677
+ kind: "SelectionSet",
678
+ selections: [
679
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
680
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
681
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
682
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
683
+ ],
684
+ },
685
+ },
686
+ {
687
+ kind: "Field",
688
+ name: { kind: "Name", value: "edges" },
689
+ selectionSet: {
690
+ kind: "SelectionSet",
691
+ selections: [
692
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
693
+ {
694
+ kind: "Field",
695
+ name: { kind: "Name", value: "node" },
696
+ selectionSet: {
697
+ kind: "SelectionSet",
698
+ selections: [
699
+ { kind: "Field", name: { kind: "Name", value: "key" } },
700
+ { kind: "Field", name: { kind: "Name", value: "count" } },
637
701
  ],
638
702
  },
639
703
  },
@@ -645,6 +709,59 @@ const GetFleetCan1ProfileSummaryDocument = {
645
709
  },
646
710
  ],
647
711
  };
712
+ const GetFleetCan1ProfileSummaryMissingDocument = {
713
+ kind: "Document",
714
+ definitions: [
715
+ {
716
+ kind: "OperationDefinition",
717
+ operation: "query",
718
+ name: { kind: "Name", value: "GetFleetCan1ProfileSummaryMissing" },
719
+ variableDefinitions: [
720
+ {
721
+ kind: "VariableDefinition",
722
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
723
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
724
+ },
725
+ ],
726
+ selectionSet: {
727
+ kind: "SelectionSet",
728
+ selections: [
729
+ {
730
+ kind: "Field",
731
+ name: { kind: "Name", value: "assetSummary" },
732
+ arguments: [
733
+ {
734
+ kind: "Argument",
735
+ name: { kind: "Name", value: "filters" },
736
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
737
+ },
738
+ ],
739
+ selectionSet: {
740
+ kind: "SelectionSet",
741
+ selections: [
742
+ {
743
+ kind: "Field",
744
+ name: { kind: "Name", value: "can1ProfileSummaryConnection" },
745
+ arguments: [
746
+ {
747
+ kind: "Argument",
748
+ name: { kind: "Name", value: "first" },
749
+ value: { kind: "IntValue", value: "1" },
750
+ },
751
+ ],
752
+ selectionSet: {
753
+ kind: "SelectionSet",
754
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
755
+ },
756
+ },
757
+ ],
758
+ },
759
+ },
760
+ ],
761
+ },
762
+ },
763
+ ],
764
+ };
648
765
  const TelematicsDeviceCan2ProfileNamesDocument = {
649
766
  kind: "Document",
650
767
  definitions: [
@@ -689,13 +806,13 @@ const TelematicsDeviceCan2ProfileNamesDocument = {
689
806
  },
690
807
  ],
691
808
  };
692
- const GetFleetCan2ProfileSummaryDocument = {
809
+ const GetFleetCan2ProfileSummaryConnectionDocument = {
693
810
  kind: "Document",
694
811
  definitions: [
695
812
  {
696
813
  kind: "OperationDefinition",
697
814
  operation: "query",
698
- name: { kind: "Name", value: "GetFleetCan2ProfileSummary" },
815
+ name: { kind: "Name", value: "GetFleetCan2ProfileSummaryConnection" },
699
816
  variableDefinitions: [
700
817
  {
701
818
  kind: "VariableDefinition",
@@ -709,7 +826,22 @@ const GetFleetCan2ProfileSummaryDocument = {
709
826
  },
710
827
  {
711
828
  kind: "VariableDefinition",
712
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
829
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
830
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
831
+ },
832
+ {
833
+ kind: "VariableDefinition",
834
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
835
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
836
+ },
837
+ {
838
+ kind: "VariableDefinition",
839
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
840
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
841
+ },
842
+ {
843
+ kind: "VariableDefinition",
844
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
713
845
  type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
714
846
  },
715
847
  ],
@@ -731,7 +863,7 @@ const GetFleetCan2ProfileSummaryDocument = {
731
863
  selections: [
732
864
  {
733
865
  kind: "Field",
734
- name: { kind: "Name", value: "can2ProfileSummary" },
866
+ name: { kind: "Name", value: "can2ProfileSummaryConnection" },
735
867
  arguments: [
736
868
  {
737
869
  kind: "Argument",
@@ -740,25 +872,73 @@ const GetFleetCan2ProfileSummaryDocument = {
740
872
  },
741
873
  {
742
874
  kind: "Argument",
743
- name: { kind: "Name", value: "limit" },
744
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
875
+ name: { kind: "Name", value: "first" },
876
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
877
+ },
878
+ {
879
+ kind: "Argument",
880
+ name: { kind: "Name", value: "after" },
881
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
882
+ },
883
+ {
884
+ kind: "Argument",
885
+ name: { kind: "Name", value: "before" },
886
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
887
+ },
888
+ {
889
+ kind: "Argument",
890
+ name: { kind: "Name", value: "last" },
891
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
745
892
  },
746
893
  ],
747
894
  selectionSet: {
748
895
  kind: "SelectionSet",
749
896
  selections: [
750
- { kind: "Field", name: { kind: "Name", value: "total" } },
751
- {
752
- kind: "Field",
753
- name: { kind: "Name", value: "summary" },
754
- selectionSet: {
755
- kind: "SelectionSet",
756
- selections: [
757
- { kind: "Field", name: { kind: "Name", value: "key" } },
758
- { kind: "Field", name: { kind: "Name", value: "count" } },
759
- ],
760
- },
761
- },
897
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
898
+ ],
899
+ },
900
+ },
901
+ ],
902
+ },
903
+ },
904
+ ],
905
+ },
906
+ },
907
+ {
908
+ kind: "FragmentDefinition",
909
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
910
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
911
+ selectionSet: {
912
+ kind: "SelectionSet",
913
+ selections: [
914
+ {
915
+ kind: "Field",
916
+ name: { kind: "Name", value: "pageInfo" },
917
+ selectionSet: {
918
+ kind: "SelectionSet",
919
+ selections: [
920
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
921
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
922
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
923
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
924
+ ],
925
+ },
926
+ },
927
+ {
928
+ kind: "Field",
929
+ name: { kind: "Name", value: "edges" },
930
+ selectionSet: {
931
+ kind: "SelectionSet",
932
+ selections: [
933
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
934
+ {
935
+ kind: "Field",
936
+ name: { kind: "Name", value: "node" },
937
+ selectionSet: {
938
+ kind: "SelectionSet",
939
+ selections: [
940
+ { kind: "Field", name: { kind: "Name", value: "key" } },
941
+ { kind: "Field", name: { kind: "Name", value: "count" } },
762
942
  ],
763
943
  },
764
944
  },
@@ -770,6 +950,59 @@ const GetFleetCan2ProfileSummaryDocument = {
770
950
  },
771
951
  ],
772
952
  };
953
+ const GetFleetCan2ProfileSummaryMissingDocument = {
954
+ kind: "Document",
955
+ definitions: [
956
+ {
957
+ kind: "OperationDefinition",
958
+ operation: "query",
959
+ name: { kind: "Name", value: "GetFleetCan2ProfileSummaryMissing" },
960
+ variableDefinitions: [
961
+ {
962
+ kind: "VariableDefinition",
963
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
964
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
965
+ },
966
+ ],
967
+ selectionSet: {
968
+ kind: "SelectionSet",
969
+ selections: [
970
+ {
971
+ kind: "Field",
972
+ name: { kind: "Name", value: "assetSummary" },
973
+ arguments: [
974
+ {
975
+ kind: "Argument",
976
+ name: { kind: "Name", value: "filters" },
977
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
978
+ },
979
+ ],
980
+ selectionSet: {
981
+ kind: "SelectionSet",
982
+ selections: [
983
+ {
984
+ kind: "Field",
985
+ name: { kind: "Name", value: "can2ProfileSummaryConnection" },
986
+ arguments: [
987
+ {
988
+ kind: "Argument",
989
+ name: { kind: "Name", value: "first" },
990
+ value: { kind: "IntValue", value: "1" },
991
+ },
992
+ ],
993
+ selectionSet: {
994
+ kind: "SelectionSet",
995
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
996
+ },
997
+ },
998
+ ],
999
+ },
1000
+ },
1001
+ ],
1002
+ },
1003
+ },
1004
+ ],
1005
+ };
773
1006
  const GetFleetCountriesSummaryDocument = {
774
1007
  kind: "Document",
775
1008
  definitions: [
@@ -1077,13 +1310,13 @@ const DeviceTypesSummaryDocument = {
1077
1310
  },
1078
1311
  ],
1079
1312
  };
1080
- const GetFleetFirmwareVersionSummaryDocument = {
1313
+ const GetFleetFirmwareVersionSummaryConnectionDocument = {
1081
1314
  kind: "Document",
1082
1315
  definitions: [
1083
1316
  {
1084
1317
  kind: "OperationDefinition",
1085
1318
  operation: "query",
1086
- name: { kind: "Name", value: "GetFleetFirmwareVersionSummary" },
1319
+ name: { kind: "Name", value: "GetFleetFirmwareVersionSummaryConnection" },
1087
1320
  variableDefinitions: [
1088
1321
  {
1089
1322
  kind: "VariableDefinition",
@@ -1097,7 +1330,22 @@ const GetFleetFirmwareVersionSummaryDocument = {
1097
1330
  },
1098
1331
  {
1099
1332
  kind: "VariableDefinition",
1100
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1333
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
1334
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1335
+ },
1336
+ {
1337
+ kind: "VariableDefinition",
1338
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
1339
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
1340
+ },
1341
+ {
1342
+ kind: "VariableDefinition",
1343
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
1344
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
1345
+ },
1346
+ {
1347
+ kind: "VariableDefinition",
1348
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
1101
1349
  type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1102
1350
  },
1103
1351
  ],
@@ -1119,7 +1367,7 @@ const GetFleetFirmwareVersionSummaryDocument = {
1119
1367
  selections: [
1120
1368
  {
1121
1369
  kind: "Field",
1122
- name: { kind: "Name", value: "firmwareVersionSummary" },
1370
+ name: { kind: "Name", value: "firmwareVersionSummaryConnection" },
1123
1371
  arguments: [
1124
1372
  {
1125
1373
  kind: "Argument",
@@ -1128,25 +1376,73 @@ const GetFleetFirmwareVersionSummaryDocument = {
1128
1376
  },
1129
1377
  {
1130
1378
  kind: "Argument",
1131
- name: { kind: "Name", value: "limit" },
1132
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1379
+ name: { kind: "Name", value: "first" },
1380
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
1381
+ },
1382
+ {
1383
+ kind: "Argument",
1384
+ name: { kind: "Name", value: "after" },
1385
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
1386
+ },
1387
+ {
1388
+ kind: "Argument",
1389
+ name: { kind: "Name", value: "before" },
1390
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
1391
+ },
1392
+ {
1393
+ kind: "Argument",
1394
+ name: { kind: "Name", value: "last" },
1395
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
1133
1396
  },
1134
1397
  ],
1135
1398
  selectionSet: {
1136
1399
  kind: "SelectionSet",
1137
1400
  selections: [
1138
- { kind: "Field", name: { kind: "Name", value: "total" } },
1139
- {
1140
- kind: "Field",
1141
- name: { kind: "Name", value: "summary" },
1142
- selectionSet: {
1143
- kind: "SelectionSet",
1144
- selections: [
1145
- { kind: "Field", name: { kind: "Name", value: "key" } },
1146
- { kind: "Field", name: { kind: "Name", value: "count" } },
1147
- ],
1148
- },
1149
- },
1401
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
1402
+ ],
1403
+ },
1404
+ },
1405
+ ],
1406
+ },
1407
+ },
1408
+ ],
1409
+ },
1410
+ },
1411
+ {
1412
+ kind: "FragmentDefinition",
1413
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
1414
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
1415
+ selectionSet: {
1416
+ kind: "SelectionSet",
1417
+ selections: [
1418
+ {
1419
+ kind: "Field",
1420
+ name: { kind: "Name", value: "pageInfo" },
1421
+ selectionSet: {
1422
+ kind: "SelectionSet",
1423
+ selections: [
1424
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
1425
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
1426
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
1427
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
1428
+ ],
1429
+ },
1430
+ },
1431
+ {
1432
+ kind: "Field",
1433
+ name: { kind: "Name", value: "edges" },
1434
+ selectionSet: {
1435
+ kind: "SelectionSet",
1436
+ selections: [
1437
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
1438
+ {
1439
+ kind: "Field",
1440
+ name: { kind: "Name", value: "node" },
1441
+ selectionSet: {
1442
+ kind: "SelectionSet",
1443
+ selections: [
1444
+ { kind: "Field", name: { kind: "Name", value: "key" } },
1445
+ { kind: "Field", name: { kind: "Name", value: "count" } },
1150
1446
  ],
1151
1447
  },
1152
1448
  },
@@ -1158,13 +1454,66 @@ const GetFleetFirmwareVersionSummaryDocument = {
1158
1454
  },
1159
1455
  ],
1160
1456
  };
1161
- const GetFleetModbusProfileSummaryDocument = {
1457
+ const GetFleetFirmwareVersionSummaryMissingDocument = {
1458
+ kind: "Document",
1459
+ definitions: [
1460
+ {
1461
+ kind: "OperationDefinition",
1462
+ operation: "query",
1463
+ name: { kind: "Name", value: "GetFleetFirmwareVersionSummaryMissing" },
1464
+ variableDefinitions: [
1465
+ {
1466
+ kind: "VariableDefinition",
1467
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1468
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
1469
+ },
1470
+ ],
1471
+ selectionSet: {
1472
+ kind: "SelectionSet",
1473
+ selections: [
1474
+ {
1475
+ kind: "Field",
1476
+ name: { kind: "Name", value: "assetSummary" },
1477
+ arguments: [
1478
+ {
1479
+ kind: "Argument",
1480
+ name: { kind: "Name", value: "filters" },
1481
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1482
+ },
1483
+ ],
1484
+ selectionSet: {
1485
+ kind: "SelectionSet",
1486
+ selections: [
1487
+ {
1488
+ kind: "Field",
1489
+ name: { kind: "Name", value: "firmwareVersionSummaryConnection" },
1490
+ arguments: [
1491
+ {
1492
+ kind: "Argument",
1493
+ name: { kind: "Name", value: "first" },
1494
+ value: { kind: "IntValue", value: "1" },
1495
+ },
1496
+ ],
1497
+ selectionSet: {
1498
+ kind: "SelectionSet",
1499
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
1500
+ },
1501
+ },
1502
+ ],
1503
+ },
1504
+ },
1505
+ ],
1506
+ },
1507
+ },
1508
+ ],
1509
+ };
1510
+ const GetFleetModbusProfileSummaryConnectionDocument = {
1162
1511
  kind: "Document",
1163
1512
  definitions: [
1164
1513
  {
1165
1514
  kind: "OperationDefinition",
1166
1515
  operation: "query",
1167
- name: { kind: "Name", value: "GetFleetModbusProfileSummary" },
1516
+ name: { kind: "Name", value: "GetFleetModbusProfileSummaryConnection" },
1168
1517
  variableDefinitions: [
1169
1518
  {
1170
1519
  kind: "VariableDefinition",
@@ -1178,7 +1527,22 @@ const GetFleetModbusProfileSummaryDocument = {
1178
1527
  },
1179
1528
  {
1180
1529
  kind: "VariableDefinition",
1181
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1530
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
1531
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1532
+ },
1533
+ {
1534
+ kind: "VariableDefinition",
1535
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
1536
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
1537
+ },
1538
+ {
1539
+ kind: "VariableDefinition",
1540
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
1541
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
1542
+ },
1543
+ {
1544
+ kind: "VariableDefinition",
1545
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
1182
1546
  type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1183
1547
  },
1184
1548
  ],
@@ -1200,7 +1564,7 @@ const GetFleetModbusProfileSummaryDocument = {
1200
1564
  selections: [
1201
1565
  {
1202
1566
  kind: "Field",
1203
- name: { kind: "Name", value: "modbusProfileSummary" },
1567
+ name: { kind: "Name", value: "modbusProfileSummaryConnection" },
1204
1568
  arguments: [
1205
1569
  {
1206
1570
  kind: "Argument",
@@ -1209,25 +1573,73 @@ const GetFleetModbusProfileSummaryDocument = {
1209
1573
  },
1210
1574
  {
1211
1575
  kind: "Argument",
1212
- name: { kind: "Name", value: "limit" },
1213
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1576
+ name: { kind: "Name", value: "first" },
1577
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
1578
+ },
1579
+ {
1580
+ kind: "Argument",
1581
+ name: { kind: "Name", value: "after" },
1582
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
1583
+ },
1584
+ {
1585
+ kind: "Argument",
1586
+ name: { kind: "Name", value: "before" },
1587
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
1588
+ },
1589
+ {
1590
+ kind: "Argument",
1591
+ name: { kind: "Name", value: "last" },
1592
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
1214
1593
  },
1215
1594
  ],
1216
1595
  selectionSet: {
1217
1596
  kind: "SelectionSet",
1218
1597
  selections: [
1219
- { kind: "Field", name: { kind: "Name", value: "total" } },
1220
- {
1221
- kind: "Field",
1222
- name: { kind: "Name", value: "summary" },
1223
- selectionSet: {
1224
- kind: "SelectionSet",
1225
- selections: [
1226
- { kind: "Field", name: { kind: "Name", value: "key" } },
1227
- { kind: "Field", name: { kind: "Name", value: "count" } },
1228
- ],
1229
- },
1230
- },
1598
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
1599
+ ],
1600
+ },
1601
+ },
1602
+ ],
1603
+ },
1604
+ },
1605
+ ],
1606
+ },
1607
+ },
1608
+ {
1609
+ kind: "FragmentDefinition",
1610
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
1611
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
1612
+ selectionSet: {
1613
+ kind: "SelectionSet",
1614
+ selections: [
1615
+ {
1616
+ kind: "Field",
1617
+ name: { kind: "Name", value: "pageInfo" },
1618
+ selectionSet: {
1619
+ kind: "SelectionSet",
1620
+ selections: [
1621
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
1622
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
1623
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
1624
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
1625
+ ],
1626
+ },
1627
+ },
1628
+ {
1629
+ kind: "Field",
1630
+ name: { kind: "Name", value: "edges" },
1631
+ selectionSet: {
1632
+ kind: "SelectionSet",
1633
+ selections: [
1634
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
1635
+ {
1636
+ kind: "Field",
1637
+ name: { kind: "Name", value: "node" },
1638
+ selectionSet: {
1639
+ kind: "SelectionSet",
1640
+ selections: [
1641
+ { kind: "Field", name: { kind: "Name", value: "key" } },
1642
+ { kind: "Field", name: { kind: "Name", value: "count" } },
1231
1643
  ],
1232
1644
  },
1233
1645
  },
@@ -1239,6 +1651,59 @@ const GetFleetModbusProfileSummaryDocument = {
1239
1651
  },
1240
1652
  ],
1241
1653
  };
1654
+ const GetFleetModbusProfileSummaryMissingDocument = {
1655
+ kind: "Document",
1656
+ definitions: [
1657
+ {
1658
+ kind: "OperationDefinition",
1659
+ operation: "query",
1660
+ name: { kind: "Name", value: "GetFleetModbusProfileSummaryMissing" },
1661
+ variableDefinitions: [
1662
+ {
1663
+ kind: "VariableDefinition",
1664
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1665
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
1666
+ },
1667
+ ],
1668
+ selectionSet: {
1669
+ kind: "SelectionSet",
1670
+ selections: [
1671
+ {
1672
+ kind: "Field",
1673
+ name: { kind: "Name", value: "assetSummary" },
1674
+ arguments: [
1675
+ {
1676
+ kind: "Argument",
1677
+ name: { kind: "Name", value: "filters" },
1678
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1679
+ },
1680
+ ],
1681
+ selectionSet: {
1682
+ kind: "SelectionSet",
1683
+ selections: [
1684
+ {
1685
+ kind: "Field",
1686
+ name: { kind: "Name", value: "modbusProfileSummaryConnection" },
1687
+ arguments: [
1688
+ {
1689
+ kind: "Argument",
1690
+ name: { kind: "Name", value: "first" },
1691
+ value: { kind: "IntValue", value: "1" },
1692
+ },
1693
+ ],
1694
+ selectionSet: {
1695
+ kind: "SelectionSet",
1696
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
1697
+ },
1698
+ },
1699
+ ],
1700
+ },
1701
+ },
1702
+ ],
1703
+ },
1704
+ },
1705
+ ],
1706
+ };
1242
1707
  const GetFleetNetworkTechnologySummaryDocument = {
1243
1708
  kind: "Document",
1244
1709
  definitions: [
@@ -1502,13 +1967,13 @@ const GetMetadataCompletenessSummaryDocument = {
1502
1967
  },
1503
1968
  ],
1504
1969
  };
1505
- const GetFleetGroupSummaryDocument = {
1970
+ const GetFleetModelsSummaryConnectionDocument = {
1506
1971
  kind: "Document",
1507
1972
  definitions: [
1508
1973
  {
1509
1974
  kind: "OperationDefinition",
1510
1975
  operation: "query",
1511
- name: { kind: "Name", value: "GetFleetGroupSummary" },
1976
+ name: { kind: "Name", value: "GetFleetModelsSummaryConnection" },
1512
1977
  variableDefinitions: [
1513
1978
  {
1514
1979
  kind: "VariableDefinition",
@@ -1522,8 +1987,23 @@ const GetFleetGroupSummaryDocument = {
1522
1987
  },
1523
1988
  {
1524
1989
  kind: "VariableDefinition",
1525
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1526
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } },
1990
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
1991
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1992
+ },
1993
+ {
1994
+ kind: "VariableDefinition",
1995
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
1996
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
1997
+ },
1998
+ {
1999
+ kind: "VariableDefinition",
2000
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
2001
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
2002
+ },
2003
+ {
2004
+ kind: "VariableDefinition",
2005
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
2006
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1527
2007
  },
1528
2008
  ],
1529
2009
  selectionSet: {
@@ -1544,7 +2024,7 @@ const GetFleetGroupSummaryDocument = {
1544
2024
  selections: [
1545
2025
  {
1546
2026
  kind: "Field",
1547
- name: { kind: "Name", value: "groups" },
2027
+ name: { kind: "Name", value: "modelsConnection" },
1548
2028
  arguments: [
1549
2029
  {
1550
2030
  kind: "Argument",
@@ -1553,37 +2033,29 @@ const GetFleetGroupSummaryDocument = {
1553
2033
  },
1554
2034
  {
1555
2035
  kind: "Argument",
1556
- name: { kind: "Name", value: "limit" },
1557
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2036
+ name: { kind: "Name", value: "first" },
2037
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
2038
+ },
2039
+ {
2040
+ kind: "Argument",
2041
+ name: { kind: "Name", value: "after" },
2042
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
2043
+ },
2044
+ {
2045
+ kind: "Argument",
2046
+ name: { kind: "Name", value: "before" },
2047
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
2048
+ },
2049
+ {
2050
+ kind: "Argument",
2051
+ name: { kind: "Name", value: "last" },
2052
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
1558
2053
  },
1559
2054
  ],
1560
2055
  selectionSet: {
1561
2056
  kind: "SelectionSet",
1562
2057
  selections: [
1563
- { kind: "Field", name: { kind: "Name", value: "total" } },
1564
- { kind: "Field", name: { kind: "Name", value: "missing" } },
1565
- {
1566
- kind: "Field",
1567
- name: { kind: "Name", value: "summary" },
1568
- selectionSet: {
1569
- kind: "SelectionSet",
1570
- selections: [
1571
- {
1572
- kind: "Field",
1573
- name: { kind: "Name", value: "group" },
1574
- selectionSet: {
1575
- kind: "SelectionSet",
1576
- selections: [
1577
- { kind: "Field", name: { kind: "Name", value: "id" } },
1578
- { kind: "Field", name: { kind: "Name", value: "groupId" } },
1579
- { kind: "Field", name: { kind: "Name", value: "name" } },
1580
- ],
1581
- },
1582
- },
1583
- { kind: "Field", name: { kind: "Name", value: "count" } },
1584
- ],
1585
- },
1586
- },
2058
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
1587
2059
  ],
1588
2060
  },
1589
2061
  },
@@ -1593,250 +2065,41 @@ const GetFleetGroupSummaryDocument = {
1593
2065
  ],
1594
2066
  },
1595
2067
  },
1596
- ],
1597
- };
1598
- const GetFleetOwnerAccountSummaryDocument = {
1599
- kind: "Document",
1600
- definitions: [
1601
2068
  {
1602
- kind: "OperationDefinition",
1603
- operation: "query",
1604
- name: { kind: "Name", value: "GetFleetOwnerAccountSummary" },
1605
- variableDefinitions: [
1606
- {
1607
- kind: "VariableDefinition",
1608
- variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1609
- type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
1610
- },
1611
- {
1612
- kind: "VariableDefinition",
1613
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
1614
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
1615
- },
1616
- {
1617
- kind: "VariableDefinition",
1618
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1619
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } },
1620
- },
1621
- ],
1622
- selectionSet: {
1623
- kind: "SelectionSet",
1624
- selections: [
1625
- {
1626
- kind: "Field",
1627
- name: { kind: "Name", value: "assetSummary" },
1628
- arguments: [
1629
- {
1630
- kind: "Argument",
1631
- name: { kind: "Name", value: "filters" },
1632
- value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1633
- },
1634
- ],
1635
- selectionSet: {
1636
- kind: "SelectionSet",
1637
- selections: [
1638
- {
1639
- kind: "Field",
1640
- name: { kind: "Name", value: "ownerAccounts" },
1641
- arguments: [
1642
- {
1643
- kind: "Argument",
1644
- name: { kind: "Name", value: "filter" },
1645
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
1646
- },
1647
- {
1648
- kind: "Argument",
1649
- name: { kind: "Name", value: "limit" },
1650
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1651
- },
1652
- ],
1653
- selectionSet: {
1654
- kind: "SelectionSet",
1655
- selections: [
1656
- { kind: "Field", name: { kind: "Name", value: "total" } },
1657
- {
1658
- kind: "Field",
1659
- name: { kind: "Name", value: "summary" },
1660
- selectionSet: {
1661
- kind: "SelectionSet",
1662
- selections: [
1663
- {
1664
- kind: "Field",
1665
- name: { kind: "Name", value: "ownerAccount" },
1666
- selectionSet: {
1667
- kind: "SelectionSet",
1668
- selections: [
1669
- { kind: "Field", name: { kind: "Name", value: "accountId" } },
1670
- { kind: "Field", name: { kind: "Name", value: "name" } },
1671
- ],
1672
- },
1673
- },
1674
- { kind: "Field", name: { kind: "Name", value: "count" } },
1675
- ],
1676
- },
1677
- },
1678
- ],
1679
- },
1680
- },
1681
- ],
1682
- },
1683
- },
1684
- ],
1685
- },
1686
- },
1687
- ],
1688
- };
1689
- const GetFleetModelsSummaryDocument = {
1690
- kind: "Document",
1691
- definitions: [
1692
- {
1693
- kind: "OperationDefinition",
1694
- operation: "query",
1695
- name: { kind: "Name", value: "GetFleetModelsSummary" },
1696
- variableDefinitions: [
1697
- {
1698
- kind: "VariableDefinition",
1699
- variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1700
- type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
1701
- },
1702
- {
1703
- kind: "VariableDefinition",
1704
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
1705
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
1706
- },
1707
- {
1708
- kind: "VariableDefinition",
1709
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1710
- type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1711
- },
1712
- ],
2069
+ kind: "FragmentDefinition",
2070
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
2071
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
1713
2072
  selectionSet: {
1714
2073
  kind: "SelectionSet",
1715
2074
  selections: [
1716
2075
  {
1717
2076
  kind: "Field",
1718
- name: { kind: "Name", value: "assetSummary" },
1719
- arguments: [
1720
- {
1721
- kind: "Argument",
1722
- name: { kind: "Name", value: "filters" },
1723
- value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1724
- },
1725
- ],
2077
+ name: { kind: "Name", value: "pageInfo" },
1726
2078
  selectionSet: {
1727
2079
  kind: "SelectionSet",
1728
2080
  selections: [
1729
- {
1730
- kind: "Field",
1731
- name: { kind: "Name", value: "models" },
1732
- arguments: [
1733
- {
1734
- kind: "Argument",
1735
- name: { kind: "Name", value: "filter" },
1736
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
1737
- },
1738
- {
1739
- kind: "Argument",
1740
- name: { kind: "Name", value: "limit" },
1741
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1742
- },
1743
- ],
1744
- selectionSet: {
1745
- kind: "SelectionSet",
1746
- selections: [
1747
- { kind: "Field", name: { kind: "Name", value: "total" } },
1748
- {
1749
- kind: "Field",
1750
- name: { kind: "Name", value: "summary" },
1751
- selectionSet: {
1752
- kind: "SelectionSet",
1753
- selections: [
1754
- { kind: "Field", name: { kind: "Name", value: "key" } },
1755
- { kind: "Field", name: { kind: "Name", value: "count" } },
1756
- ],
1757
- },
1758
- },
1759
- ],
1760
- },
1761
- },
2081
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
2082
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
2083
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
2084
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
1762
2085
  ],
1763
2086
  },
1764
2087
  },
1765
- ],
1766
- },
1767
- },
1768
- ],
1769
- };
1770
- const GetFleetBrandsSummaryDocument = {
1771
- kind: "Document",
1772
- definitions: [
1773
- {
1774
- kind: "OperationDefinition",
1775
- operation: "query",
1776
- name: { kind: "Name", value: "GetFleetBrandsSummary" },
1777
- variableDefinitions: [
1778
- {
1779
- kind: "VariableDefinition",
1780
- variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1781
- type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
1782
- },
1783
- {
1784
- kind: "VariableDefinition",
1785
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
1786
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
1787
- },
1788
- {
1789
- kind: "VariableDefinition",
1790
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1791
- type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1792
- },
1793
- ],
1794
- selectionSet: {
1795
- kind: "SelectionSet",
1796
- selections: [
1797
2088
  {
1798
2089
  kind: "Field",
1799
- name: { kind: "Name", value: "assetSummary" },
1800
- arguments: [
1801
- {
1802
- kind: "Argument",
1803
- name: { kind: "Name", value: "filters" },
1804
- value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1805
- },
1806
- ],
2090
+ name: { kind: "Name", value: "edges" },
1807
2091
  selectionSet: {
1808
2092
  kind: "SelectionSet",
1809
2093
  selections: [
2094
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
1810
2095
  {
1811
2096
  kind: "Field",
1812
- name: { kind: "Name", value: "brands" },
1813
- arguments: [
1814
- {
1815
- kind: "Argument",
1816
- name: { kind: "Name", value: "filter" },
1817
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
1818
- },
1819
- {
1820
- kind: "Argument",
1821
- name: { kind: "Name", value: "limit" },
1822
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1823
- },
1824
- ],
2097
+ name: { kind: "Name", value: "node" },
1825
2098
  selectionSet: {
1826
2099
  kind: "SelectionSet",
1827
2100
  selections: [
1828
- { kind: "Field", name: { kind: "Name", value: "total" } },
1829
- {
1830
- kind: "Field",
1831
- name: { kind: "Name", value: "summary" },
1832
- selectionSet: {
1833
- kind: "SelectionSet",
1834
- selections: [
1835
- { kind: "Field", name: { kind: "Name", value: "key" } },
1836
- { kind: "Field", name: { kind: "Name", value: "count" } },
1837
- ],
1838
- },
1839
- },
2101
+ { kind: "Field", name: { kind: "Name", value: "key" } },
2102
+ { kind: "Field", name: { kind: "Name", value: "count" } },
1840
2103
  ],
1841
2104
  },
1842
2105
  },
@@ -1848,29 +2111,19 @@ const GetFleetBrandsSummaryDocument = {
1848
2111
  },
1849
2112
  ],
1850
2113
  };
1851
- const GetFleetTypesSummaryDocument = {
2114
+ const GetFleetModelsSummaryMissingDocument = {
1852
2115
  kind: "Document",
1853
2116
  definitions: [
1854
2117
  {
1855
2118
  kind: "OperationDefinition",
1856
2119
  operation: "query",
1857
- name: { kind: "Name", value: "GetFleetTypesSummary" },
2120
+ name: { kind: "Name", value: "GetFleetModelsSummaryMissing" },
1858
2121
  variableDefinitions: [
1859
2122
  {
1860
2123
  kind: "VariableDefinition",
1861
2124
  variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
1862
2125
  type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
1863
2126
  },
1864
- {
1865
- kind: "VariableDefinition",
1866
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
1867
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
1868
- },
1869
- {
1870
- kind: "VariableDefinition",
1871
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
1872
- type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
1873
- },
1874
2127
  ],
1875
2128
  selectionSet: {
1876
2129
  kind: "SelectionSet",
@@ -1890,35 +2143,17 @@ const GetFleetTypesSummaryDocument = {
1890
2143
  selections: [
1891
2144
  {
1892
2145
  kind: "Field",
1893
- name: { kind: "Name", value: "types" },
2146
+ name: { kind: "Name", value: "modelsConnection" },
1894
2147
  arguments: [
1895
2148
  {
1896
2149
  kind: "Argument",
1897
- name: { kind: "Name", value: "filter" },
1898
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
1899
- },
1900
- {
1901
- kind: "Argument",
1902
- name: { kind: "Name", value: "limit" },
1903
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2150
+ name: { kind: "Name", value: "first" },
2151
+ value: { kind: "IntValue", value: "1" },
1904
2152
  },
1905
2153
  ],
1906
2154
  selectionSet: {
1907
2155
  kind: "SelectionSet",
1908
- selections: [
1909
- { kind: "Field", name: { kind: "Name", value: "total" } },
1910
- {
1911
- kind: "Field",
1912
- name: { kind: "Name", value: "summary" },
1913
- selectionSet: {
1914
- kind: "SelectionSet",
1915
- selections: [
1916
- { kind: "Field", name: { kind: "Name", value: "key" } },
1917
- { kind: "Field", name: { kind: "Name", value: "count" } },
1918
- ],
1919
- },
1920
- },
1921
- ],
2156
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
1922
2157
  },
1923
2158
  },
1924
2159
  ],
@@ -2614,29 +2849,19 @@ const GetPlaceDetailsDocument = {
2614
2849
  },
2615
2850
  ],
2616
2851
  };
2617
- const GetFleetRentalContractOrderNumberSummaryDocument = {
2852
+ const GetPendingTelematicsDevicesSummaryDocument = {
2618
2853
  kind: "Document",
2619
2854
  definitions: [
2620
2855
  {
2621
2856
  kind: "OperationDefinition",
2622
2857
  operation: "query",
2623
- name: { kind: "Name", value: "GetFleetRentalContractOrderNumberSummary" },
2858
+ name: { kind: "Name", value: "GetPendingTelematicsDevicesSummary" },
2624
2859
  variableDefinitions: [
2625
2860
  {
2626
2861
  kind: "VariableDefinition",
2627
2862
  variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
2628
2863
  type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2629
2864
  },
2630
- {
2631
- kind: "VariableDefinition",
2632
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2633
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } },
2634
- },
2635
- {
2636
- kind: "VariableDefinition",
2637
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
2638
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
2639
- },
2640
2865
  ],
2641
2866
  selectionSet: {
2642
2867
  kind: "SelectionSet",
@@ -2656,19 +2881,7 @@ const GetFleetRentalContractOrderNumberSummaryDocument = {
2656
2881
  selections: [
2657
2882
  {
2658
2883
  kind: "Field",
2659
- name: { kind: "Name", value: "rentalContractOrderNumbers" },
2660
- arguments: [
2661
- {
2662
- kind: "Argument",
2663
- name: { kind: "Name", value: "limit" },
2664
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2665
- },
2666
- {
2667
- kind: "Argument",
2668
- name: { kind: "Name", value: "filter" },
2669
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
2670
- },
2671
- ],
2884
+ name: { kind: "Name", value: "pendingTelematicsDevices" },
2672
2885
  selectionSet: {
2673
2886
  kind: "SelectionSet",
2674
2887
  selections: [
@@ -2695,28 +2908,1359 @@ const GetFleetRentalContractOrderNumberSummaryDocument = {
2695
2908
  },
2696
2909
  ],
2697
2910
  };
2698
- const GetFleetRentalContractReferenceCodesSummaryDocument = {
2911
+ const GetBatteryChargerStageSummaryDocument = {
2699
2912
  kind: "Document",
2700
2913
  definitions: [
2701
2914
  {
2702
2915
  kind: "OperationDefinition",
2703
2916
  operation: "query",
2704
- name: { kind: "Name", value: "GetFleetRentalContractReferenceCodesSummary" },
2917
+ name: { kind: "Name", value: "GetBatteryChargerStageSummary" },
2705
2918
  variableDefinitions: [
2706
2919
  {
2707
2920
  kind: "VariableDefinition",
2708
2921
  variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
2709
2922
  type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2710
2923
  },
2711
- {
2712
- kind: "VariableDefinition",
2713
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2714
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } },
2924
+ ],
2925
+ selectionSet: {
2926
+ kind: "SelectionSet",
2927
+ selections: [
2928
+ {
2929
+ kind: "Field",
2930
+ name: { kind: "Name", value: "assetSummary" },
2931
+ arguments: [
2932
+ {
2933
+ kind: "Argument",
2934
+ name: { kind: "Name", value: "filters" },
2935
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
2936
+ },
2937
+ ],
2938
+ selectionSet: {
2939
+ kind: "SelectionSet",
2940
+ selections: [
2941
+ {
2942
+ kind: "Field",
2943
+ name: { kind: "Name", value: "insights" },
2944
+ selectionSet: {
2945
+ kind: "SelectionSet",
2946
+ selections: [
2947
+ {
2948
+ kind: "Field",
2949
+ name: { kind: "Name", value: "batteryChargerState" },
2950
+ selectionSet: {
2951
+ kind: "SelectionSet",
2952
+ selections: [
2953
+ { kind: "Field", name: { kind: "Name", value: "disabled" } },
2954
+ { kind: "Field", name: { kind: "Name", value: "enabled" } },
2955
+ { kind: "Field", name: { kind: "Name", value: "undefined" } },
2956
+ ],
2957
+ },
2958
+ },
2959
+ ],
2960
+ },
2961
+ },
2962
+ ],
2963
+ },
2964
+ },
2965
+ ],
2966
+ },
2967
+ },
2968
+ ],
2969
+ };
2970
+ const GetFleetBrandsSummaryConnectionDocument = {
2971
+ kind: "Document",
2972
+ definitions: [
2973
+ {
2974
+ kind: "OperationDefinition",
2975
+ operation: "query",
2976
+ name: { kind: "Name", value: "GetFleetBrandsSummaryConnection" },
2977
+ variableDefinitions: [
2978
+ {
2979
+ kind: "VariableDefinition",
2980
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
2981
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2982
+ },
2983
+ {
2984
+ kind: "VariableDefinition",
2985
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
2986
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
2987
+ },
2988
+ {
2989
+ kind: "VariableDefinition",
2990
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
2991
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
2992
+ },
2993
+ {
2994
+ kind: "VariableDefinition",
2995
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
2996
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
2997
+ },
2998
+ {
2999
+ kind: "VariableDefinition",
3000
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3001
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3002
+ },
3003
+ {
3004
+ kind: "VariableDefinition",
3005
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3006
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3007
+ },
3008
+ ],
3009
+ selectionSet: {
3010
+ kind: "SelectionSet",
3011
+ selections: [
3012
+ {
3013
+ kind: "Field",
3014
+ name: { kind: "Name", value: "assetSummary" },
3015
+ arguments: [
3016
+ {
3017
+ kind: "Argument",
3018
+ name: { kind: "Name", value: "filters" },
3019
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3020
+ },
3021
+ ],
3022
+ selectionSet: {
3023
+ kind: "SelectionSet",
3024
+ selections: [
3025
+ {
3026
+ kind: "Field",
3027
+ name: { kind: "Name", value: "brandsConnection" },
3028
+ arguments: [
3029
+ {
3030
+ kind: "Argument",
3031
+ name: { kind: "Name", value: "filter" },
3032
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3033
+ },
3034
+ {
3035
+ kind: "Argument",
3036
+ name: { kind: "Name", value: "first" },
3037
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3038
+ },
3039
+ {
3040
+ kind: "Argument",
3041
+ name: { kind: "Name", value: "after" },
3042
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3043
+ },
3044
+ {
3045
+ kind: "Argument",
3046
+ name: { kind: "Name", value: "before" },
3047
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3048
+ },
3049
+ {
3050
+ kind: "Argument",
3051
+ name: { kind: "Name", value: "last" },
3052
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3053
+ },
3054
+ ],
3055
+ selectionSet: {
3056
+ kind: "SelectionSet",
3057
+ selections: [
3058
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
3059
+ ],
3060
+ },
3061
+ },
3062
+ ],
3063
+ },
3064
+ },
3065
+ ],
3066
+ },
3067
+ },
3068
+ {
3069
+ kind: "FragmentDefinition",
3070
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
3071
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
3072
+ selectionSet: {
3073
+ kind: "SelectionSet",
3074
+ selections: [
3075
+ {
3076
+ kind: "Field",
3077
+ name: { kind: "Name", value: "pageInfo" },
3078
+ selectionSet: {
3079
+ kind: "SelectionSet",
3080
+ selections: [
3081
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3082
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3083
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3084
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3085
+ ],
3086
+ },
3087
+ },
3088
+ {
3089
+ kind: "Field",
3090
+ name: { kind: "Name", value: "edges" },
3091
+ selectionSet: {
3092
+ kind: "SelectionSet",
3093
+ selections: [
3094
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3095
+ {
3096
+ kind: "Field",
3097
+ name: { kind: "Name", value: "node" },
3098
+ selectionSet: {
3099
+ kind: "SelectionSet",
3100
+ selections: [
3101
+ { kind: "Field", name: { kind: "Name", value: "key" } },
3102
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3103
+ ],
3104
+ },
3105
+ },
3106
+ ],
3107
+ },
3108
+ },
3109
+ ],
3110
+ },
3111
+ },
3112
+ ],
3113
+ };
3114
+ const GetFleetTypesSummaryConnectionDocument = {
3115
+ kind: "Document",
3116
+ definitions: [
3117
+ {
3118
+ kind: "OperationDefinition",
3119
+ operation: "query",
3120
+ name: { kind: "Name", value: "GetFleetTypesSummaryConnection" },
3121
+ variableDefinitions: [
3122
+ {
3123
+ kind: "VariableDefinition",
3124
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3125
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
3126
+ },
3127
+ {
3128
+ kind: "VariableDefinition",
3129
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
3130
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
3131
+ },
3132
+ {
3133
+ kind: "VariableDefinition",
3134
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
3135
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3136
+ },
3137
+ {
3138
+ kind: "VariableDefinition",
3139
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
3140
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3141
+ },
3142
+ {
3143
+ kind: "VariableDefinition",
3144
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3145
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3146
+ },
3147
+ {
3148
+ kind: "VariableDefinition",
3149
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3150
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3151
+ },
3152
+ ],
3153
+ selectionSet: {
3154
+ kind: "SelectionSet",
3155
+ selections: [
3156
+ {
3157
+ kind: "Field",
3158
+ name: { kind: "Name", value: "assetSummary" },
3159
+ arguments: [
3160
+ {
3161
+ kind: "Argument",
3162
+ name: { kind: "Name", value: "filters" },
3163
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3164
+ },
3165
+ ],
3166
+ selectionSet: {
3167
+ kind: "SelectionSet",
3168
+ selections: [
3169
+ {
3170
+ kind: "Field",
3171
+ name: { kind: "Name", value: "typesConnection" },
3172
+ arguments: [
3173
+ {
3174
+ kind: "Argument",
3175
+ name: { kind: "Name", value: "filter" },
3176
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3177
+ },
3178
+ {
3179
+ kind: "Argument",
3180
+ name: { kind: "Name", value: "first" },
3181
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3182
+ },
3183
+ {
3184
+ kind: "Argument",
3185
+ name: { kind: "Name", value: "after" },
3186
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3187
+ },
3188
+ {
3189
+ kind: "Argument",
3190
+ name: { kind: "Name", value: "before" },
3191
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3192
+ },
3193
+ {
3194
+ kind: "Argument",
3195
+ name: { kind: "Name", value: "last" },
3196
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3197
+ },
3198
+ ],
3199
+ selectionSet: {
3200
+ kind: "SelectionSet",
3201
+ selections: [
3202
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
3203
+ ],
3204
+ },
3205
+ },
3206
+ ],
3207
+ },
3208
+ },
3209
+ ],
3210
+ },
3211
+ },
3212
+ {
3213
+ kind: "FragmentDefinition",
3214
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
3215
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
3216
+ selectionSet: {
3217
+ kind: "SelectionSet",
3218
+ selections: [
3219
+ {
3220
+ kind: "Field",
3221
+ name: { kind: "Name", value: "pageInfo" },
3222
+ selectionSet: {
3223
+ kind: "SelectionSet",
3224
+ selections: [
3225
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3226
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3227
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3228
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3229
+ ],
3230
+ },
3231
+ },
3232
+ {
3233
+ kind: "Field",
3234
+ name: { kind: "Name", value: "edges" },
3235
+ selectionSet: {
3236
+ kind: "SelectionSet",
3237
+ selections: [
3238
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3239
+ {
3240
+ kind: "Field",
3241
+ name: { kind: "Name", value: "node" },
3242
+ selectionSet: {
3243
+ kind: "SelectionSet",
3244
+ selections: [
3245
+ { kind: "Field", name: { kind: "Name", value: "key" } },
3246
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3247
+ ],
3248
+ },
3249
+ },
3250
+ ],
3251
+ },
3252
+ },
3253
+ ],
3254
+ },
3255
+ },
3256
+ ],
3257
+ };
3258
+ const GetFleetGroupSummaryConnectionDocument = {
3259
+ kind: "Document",
3260
+ definitions: [
3261
+ {
3262
+ kind: "OperationDefinition",
3263
+ operation: "query",
3264
+ name: { kind: "Name", value: "GetFleetGroupSummaryConnection" },
3265
+ variableDefinitions: [
3266
+ {
3267
+ kind: "VariableDefinition",
3268
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3269
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
3270
+ },
3271
+ {
3272
+ kind: "VariableDefinition",
3273
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
3274
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
3275
+ },
3276
+ {
3277
+ kind: "VariableDefinition",
3278
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
3279
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3280
+ },
3281
+ {
3282
+ kind: "VariableDefinition",
3283
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
3284
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3285
+ },
3286
+ {
3287
+ kind: "VariableDefinition",
3288
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3289
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3290
+ },
3291
+ {
3292
+ kind: "VariableDefinition",
3293
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3294
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3295
+ },
3296
+ ],
3297
+ selectionSet: {
3298
+ kind: "SelectionSet",
3299
+ selections: [
3300
+ {
3301
+ kind: "Field",
3302
+ name: { kind: "Name", value: "assetSummary" },
3303
+ arguments: [
3304
+ {
3305
+ kind: "Argument",
3306
+ name: { kind: "Name", value: "filters" },
3307
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3308
+ },
3309
+ ],
3310
+ selectionSet: {
3311
+ kind: "SelectionSet",
3312
+ selections: [
3313
+ {
3314
+ kind: "Field",
3315
+ name: { kind: "Name", value: "groupsConnection" },
3316
+ arguments: [
3317
+ {
3318
+ kind: "Argument",
3319
+ name: { kind: "Name", value: "filter" },
3320
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3321
+ },
3322
+ {
3323
+ kind: "Argument",
3324
+ name: { kind: "Name", value: "first" },
3325
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3326
+ },
3327
+ {
3328
+ kind: "Argument",
3329
+ name: { kind: "Name", value: "after" },
3330
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3331
+ },
3332
+ {
3333
+ kind: "Argument",
3334
+ name: { kind: "Name", value: "before" },
3335
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3336
+ },
3337
+ {
3338
+ kind: "Argument",
3339
+ name: { kind: "Name", value: "last" },
3340
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3341
+ },
3342
+ ],
3343
+ selectionSet: {
3344
+ kind: "SelectionSet",
3345
+ selections: [
3346
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetGroupSummaryConnectionFields" } },
3347
+ ],
3348
+ },
3349
+ },
3350
+ ],
3351
+ },
3352
+ },
3353
+ ],
3354
+ },
3355
+ },
3356
+ {
3357
+ kind: "FragmentDefinition",
3358
+ name: { kind: "Name", value: "FleetGroupSummaryConnectionFields" },
3359
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "GroupSummaryConnection" } },
3360
+ selectionSet: {
3361
+ kind: "SelectionSet",
3362
+ selections: [
3363
+ {
3364
+ kind: "Field",
3365
+ name: { kind: "Name", value: "pageInfo" },
3366
+ selectionSet: {
3367
+ kind: "SelectionSet",
3368
+ selections: [
3369
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3370
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3371
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3372
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3373
+ ],
3374
+ },
3375
+ },
3376
+ {
3377
+ kind: "Field",
3378
+ name: { kind: "Name", value: "edges" },
3379
+ selectionSet: {
3380
+ kind: "SelectionSet",
3381
+ selections: [
3382
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3383
+ {
3384
+ kind: "Field",
3385
+ name: { kind: "Name", value: "node" },
3386
+ selectionSet: {
3387
+ kind: "SelectionSet",
3388
+ selections: [
3389
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3390
+ {
3391
+ kind: "Field",
3392
+ name: { kind: "Name", value: "group" },
3393
+ selectionSet: {
3394
+ kind: "SelectionSet",
3395
+ selections: [
3396
+ { kind: "Field", name: { kind: "Name", value: "id" } },
3397
+ { kind: "Field", name: { kind: "Name", value: "groupId" } },
3398
+ { kind: "Field", name: { kind: "Name", value: "name" } },
3399
+ ],
3400
+ },
3401
+ },
3402
+ ],
3403
+ },
3404
+ },
3405
+ ],
3406
+ },
3407
+ },
3408
+ ],
3409
+ },
3410
+ },
3411
+ ],
3412
+ };
3413
+ const GetFleetOwnerAccountSummaryConnectionDocument = {
3414
+ kind: "Document",
3415
+ definitions: [
3416
+ {
3417
+ kind: "OperationDefinition",
3418
+ operation: "query",
3419
+ name: { kind: "Name", value: "GetFleetOwnerAccountSummaryConnection" },
3420
+ variableDefinitions: [
3421
+ {
3422
+ kind: "VariableDefinition",
3423
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3424
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
3425
+ },
3426
+ {
3427
+ kind: "VariableDefinition",
3428
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
3429
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
3430
+ },
3431
+ {
3432
+ kind: "VariableDefinition",
3433
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
3434
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3435
+ },
3436
+ {
3437
+ kind: "VariableDefinition",
3438
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
3439
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3440
+ },
3441
+ {
3442
+ kind: "VariableDefinition",
3443
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3444
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3445
+ },
3446
+ {
3447
+ kind: "VariableDefinition",
3448
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3449
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3450
+ },
3451
+ ],
3452
+ selectionSet: {
3453
+ kind: "SelectionSet",
3454
+ selections: [
3455
+ {
3456
+ kind: "Field",
3457
+ name: { kind: "Name", value: "assetSummary" },
3458
+ arguments: [
3459
+ {
3460
+ kind: "Argument",
3461
+ name: { kind: "Name", value: "filters" },
3462
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3463
+ },
3464
+ ],
3465
+ selectionSet: {
3466
+ kind: "SelectionSet",
3467
+ selections: [
3468
+ {
3469
+ kind: "Field",
3470
+ name: { kind: "Name", value: "ownerAccountsConnection" },
3471
+ arguments: [
3472
+ {
3473
+ kind: "Argument",
3474
+ name: { kind: "Name", value: "filter" },
3475
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3476
+ },
3477
+ {
3478
+ kind: "Argument",
3479
+ name: { kind: "Name", value: "first" },
3480
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3481
+ },
3482
+ {
3483
+ kind: "Argument",
3484
+ name: { kind: "Name", value: "after" },
3485
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3486
+ },
3487
+ {
3488
+ kind: "Argument",
3489
+ name: { kind: "Name", value: "before" },
3490
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3491
+ },
3492
+ {
3493
+ kind: "Argument",
3494
+ name: { kind: "Name", value: "last" },
3495
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3496
+ },
3497
+ ],
3498
+ selectionSet: {
3499
+ kind: "SelectionSet",
3500
+ selections: [
3501
+ {
3502
+ kind: "FragmentSpread",
3503
+ name: { kind: "Name", value: "FleetOwnerAccountSummaryConnectionFields" },
3504
+ },
3505
+ ],
3506
+ },
3507
+ },
3508
+ ],
3509
+ },
3510
+ },
3511
+ ],
3512
+ },
3513
+ },
3514
+ {
3515
+ kind: "FragmentDefinition",
3516
+ name: { kind: "Name", value: "FleetOwnerAccountSummaryConnectionFields" },
3517
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "OwnerAccountSummaryConnection" } },
3518
+ selectionSet: {
3519
+ kind: "SelectionSet",
3520
+ selections: [
3521
+ {
3522
+ kind: "Field",
3523
+ name: { kind: "Name", value: "pageInfo" },
3524
+ selectionSet: {
3525
+ kind: "SelectionSet",
3526
+ selections: [
3527
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3528
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3529
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3530
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3531
+ ],
3532
+ },
3533
+ },
3534
+ {
3535
+ kind: "Field",
3536
+ name: { kind: "Name", value: "edges" },
3537
+ selectionSet: {
3538
+ kind: "SelectionSet",
3539
+ selections: [
3540
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3541
+ {
3542
+ kind: "Field",
3543
+ name: { kind: "Name", value: "node" },
3544
+ selectionSet: {
3545
+ kind: "SelectionSet",
3546
+ selections: [
3547
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3548
+ {
3549
+ kind: "Field",
3550
+ name: { kind: "Name", value: "ownerAccount" },
3551
+ selectionSet: {
3552
+ kind: "SelectionSet",
3553
+ selections: [
3554
+ { kind: "Field", name: { kind: "Name", value: "accountId" } },
3555
+ { kind: "Field", name: { kind: "Name", value: "name" } },
3556
+ ],
3557
+ },
3558
+ },
3559
+ ],
3560
+ },
3561
+ },
3562
+ ],
3563
+ },
3564
+ },
3565
+ ],
3566
+ },
3567
+ },
3568
+ ],
3569
+ };
3570
+ const GetFleetRentalContractReferenceCodesSummaryConnectionDocument = {
3571
+ kind: "Document",
3572
+ definitions: [
3573
+ {
3574
+ kind: "OperationDefinition",
3575
+ operation: "query",
3576
+ name: { kind: "Name", value: "GetFleetRentalContractReferenceCodesSummaryConnection" },
3577
+ variableDefinitions: [
3578
+ {
3579
+ kind: "VariableDefinition",
3580
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3581
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
3582
+ },
3583
+ {
3584
+ kind: "VariableDefinition",
3585
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
3586
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
3587
+ },
3588
+ {
3589
+ kind: "VariableDefinition",
3590
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
3591
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3592
+ },
3593
+ {
3594
+ kind: "VariableDefinition",
3595
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
3596
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3597
+ },
3598
+ {
3599
+ kind: "VariableDefinition",
3600
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3601
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3602
+ },
3603
+ {
3604
+ kind: "VariableDefinition",
3605
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3606
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3607
+ },
3608
+ ],
3609
+ selectionSet: {
3610
+ kind: "SelectionSet",
3611
+ selections: [
3612
+ {
3613
+ kind: "Field",
3614
+ name: { kind: "Name", value: "assetSummary" },
3615
+ arguments: [
3616
+ {
3617
+ kind: "Argument",
3618
+ name: { kind: "Name", value: "filters" },
3619
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3620
+ },
3621
+ ],
3622
+ selectionSet: {
3623
+ kind: "SelectionSet",
3624
+ selections: [
3625
+ {
3626
+ kind: "Field",
3627
+ name: { kind: "Name", value: "rentalContractReferenceCodesConnection" },
3628
+ arguments: [
3629
+ {
3630
+ kind: "Argument",
3631
+ name: { kind: "Name", value: "filter" },
3632
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3633
+ },
3634
+ {
3635
+ kind: "Argument",
3636
+ name: { kind: "Name", value: "first" },
3637
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3638
+ },
3639
+ {
3640
+ kind: "Argument",
3641
+ name: { kind: "Name", value: "after" },
3642
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3643
+ },
3644
+ {
3645
+ kind: "Argument",
3646
+ name: { kind: "Name", value: "before" },
3647
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3648
+ },
3649
+ {
3650
+ kind: "Argument",
3651
+ name: { kind: "Name", value: "last" },
3652
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3653
+ },
3654
+ ],
3655
+ selectionSet: {
3656
+ kind: "SelectionSet",
3657
+ selections: [
3658
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
3659
+ ],
3660
+ },
3661
+ },
3662
+ ],
3663
+ },
3664
+ },
3665
+ ],
3666
+ },
3667
+ },
3668
+ {
3669
+ kind: "FragmentDefinition",
3670
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
3671
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
3672
+ selectionSet: {
3673
+ kind: "SelectionSet",
3674
+ selections: [
3675
+ {
3676
+ kind: "Field",
3677
+ name: { kind: "Name", value: "pageInfo" },
3678
+ selectionSet: {
3679
+ kind: "SelectionSet",
3680
+ selections: [
3681
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3682
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3683
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3684
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3685
+ ],
3686
+ },
3687
+ },
3688
+ {
3689
+ kind: "Field",
3690
+ name: { kind: "Name", value: "edges" },
3691
+ selectionSet: {
3692
+ kind: "SelectionSet",
3693
+ selections: [
3694
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3695
+ {
3696
+ kind: "Field",
3697
+ name: { kind: "Name", value: "node" },
3698
+ selectionSet: {
3699
+ kind: "SelectionSet",
3700
+ selections: [
3701
+ { kind: "Field", name: { kind: "Name", value: "key" } },
3702
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3703
+ ],
3704
+ },
3705
+ },
3706
+ ],
3707
+ },
3708
+ },
3709
+ ],
3710
+ },
3711
+ },
3712
+ ],
3713
+ };
3714
+ const GetFleetRentalContractOrderNumberSummaryConnectionDocument = {
3715
+ kind: "Document",
3716
+ definitions: [
3717
+ {
3718
+ kind: "OperationDefinition",
3719
+ operation: "query",
3720
+ name: { kind: "Name", value: "GetFleetRentalContractOrderNumberSummaryConnection" },
3721
+ variableDefinitions: [
3722
+ {
3723
+ kind: "VariableDefinition",
3724
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3725
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
3726
+ },
3727
+ {
3728
+ kind: "VariableDefinition",
3729
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
3730
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
3731
+ },
3732
+ {
3733
+ kind: "VariableDefinition",
3734
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
3735
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3736
+ },
3737
+ {
3738
+ kind: "VariableDefinition",
3739
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
3740
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3741
+ },
3742
+ {
3743
+ kind: "VariableDefinition",
3744
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3745
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3746
+ },
3747
+ {
3748
+ kind: "VariableDefinition",
3749
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3750
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3751
+ },
3752
+ ],
3753
+ selectionSet: {
3754
+ kind: "SelectionSet",
3755
+ selections: [
3756
+ {
3757
+ kind: "Field",
3758
+ name: { kind: "Name", value: "assetSummary" },
3759
+ arguments: [
3760
+ {
3761
+ kind: "Argument",
3762
+ name: { kind: "Name", value: "filters" },
3763
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3764
+ },
3765
+ ],
3766
+ selectionSet: {
3767
+ kind: "SelectionSet",
3768
+ selections: [
3769
+ {
3770
+ kind: "Field",
3771
+ name: { kind: "Name", value: "rentalContractOrderNumbersConnection" },
3772
+ arguments: [
3773
+ {
3774
+ kind: "Argument",
3775
+ name: { kind: "Name", value: "filter" },
3776
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3777
+ },
3778
+ {
3779
+ kind: "Argument",
3780
+ name: { kind: "Name", value: "first" },
3781
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3782
+ },
3783
+ {
3784
+ kind: "Argument",
3785
+ name: { kind: "Name", value: "after" },
3786
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3787
+ },
3788
+ {
3789
+ kind: "Argument",
3790
+ name: { kind: "Name", value: "before" },
3791
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3792
+ },
3793
+ {
3794
+ kind: "Argument",
3795
+ name: { kind: "Name", value: "last" },
3796
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3797
+ },
3798
+ ],
3799
+ selectionSet: {
3800
+ kind: "SelectionSet",
3801
+ selections: [
3802
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
3803
+ ],
3804
+ },
3805
+ },
3806
+ ],
3807
+ },
3808
+ },
3809
+ ],
3810
+ },
3811
+ },
3812
+ {
3813
+ kind: "FragmentDefinition",
3814
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
3815
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
3816
+ selectionSet: {
3817
+ kind: "SelectionSet",
3818
+ selections: [
3819
+ {
3820
+ kind: "Field",
3821
+ name: { kind: "Name", value: "pageInfo" },
3822
+ selectionSet: {
3823
+ kind: "SelectionSet",
3824
+ selections: [
3825
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3826
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3827
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3828
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3829
+ ],
3830
+ },
3831
+ },
3832
+ {
3833
+ kind: "Field",
3834
+ name: { kind: "Name", value: "edges" },
3835
+ selectionSet: {
3836
+ kind: "SelectionSet",
3837
+ selections: [
3838
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3839
+ {
3840
+ kind: "Field",
3841
+ name: { kind: "Name", value: "node" },
3842
+ selectionSet: {
3843
+ kind: "SelectionSet",
3844
+ selections: [
3845
+ { kind: "Field", name: { kind: "Name", value: "key" } },
3846
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3847
+ ],
3848
+ },
3849
+ },
3850
+ ],
3851
+ },
3852
+ },
3853
+ ],
3854
+ },
3855
+ },
3856
+ ],
3857
+ };
3858
+ const GetFleetRentalCustomerParentExternalReferenceSummaryConnectionDocument = {
3859
+ kind: "Document",
3860
+ definitions: [
3861
+ {
3862
+ kind: "OperationDefinition",
3863
+ operation: "query",
3864
+ name: { kind: "Name", value: "GetFleetRentalCustomerParentExternalReferenceSummaryConnection" },
3865
+ variableDefinitions: [
3866
+ {
3867
+ kind: "VariableDefinition",
3868
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3869
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
3870
+ },
3871
+ {
3872
+ kind: "VariableDefinition",
3873
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
3874
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
3875
+ },
3876
+ {
3877
+ kind: "VariableDefinition",
3878
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
3879
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3880
+ },
3881
+ {
3882
+ kind: "VariableDefinition",
3883
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
3884
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3885
+ },
3886
+ {
3887
+ kind: "VariableDefinition",
3888
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
3889
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
3890
+ },
3891
+ {
3892
+ kind: "VariableDefinition",
3893
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
3894
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
3895
+ },
3896
+ ],
3897
+ selectionSet: {
3898
+ kind: "SelectionSet",
3899
+ selections: [
3900
+ {
3901
+ kind: "Field",
3902
+ name: { kind: "Name", value: "assetSummary" },
3903
+ arguments: [
3904
+ {
3905
+ kind: "Argument",
3906
+ name: { kind: "Name", value: "filters" },
3907
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
3908
+ },
3909
+ ],
3910
+ selectionSet: {
3911
+ kind: "SelectionSet",
3912
+ selections: [
3913
+ {
3914
+ kind: "Field",
3915
+ name: { kind: "Name", value: "rentalContractCustomerParentExternalReferencesConnection" },
3916
+ arguments: [
3917
+ {
3918
+ kind: "Argument",
3919
+ name: { kind: "Name", value: "filter" },
3920
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
3921
+ },
3922
+ {
3923
+ kind: "Argument",
3924
+ name: { kind: "Name", value: "first" },
3925
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
3926
+ },
3927
+ {
3928
+ kind: "Argument",
3929
+ name: { kind: "Name", value: "after" },
3930
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
3931
+ },
3932
+ {
3933
+ kind: "Argument",
3934
+ name: { kind: "Name", value: "before" },
3935
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
3936
+ },
3937
+ {
3938
+ kind: "Argument",
3939
+ name: { kind: "Name", value: "last" },
3940
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
3941
+ },
3942
+ ],
3943
+ selectionSet: {
3944
+ kind: "SelectionSet",
3945
+ selections: [
3946
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
3947
+ ],
3948
+ },
3949
+ },
3950
+ ],
3951
+ },
3952
+ },
3953
+ ],
3954
+ },
3955
+ },
3956
+ {
3957
+ kind: "FragmentDefinition",
3958
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
3959
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
3960
+ selectionSet: {
3961
+ kind: "SelectionSet",
3962
+ selections: [
3963
+ {
3964
+ kind: "Field",
3965
+ name: { kind: "Name", value: "pageInfo" },
3966
+ selectionSet: {
3967
+ kind: "SelectionSet",
3968
+ selections: [
3969
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
3970
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
3971
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
3972
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
3973
+ ],
3974
+ },
3975
+ },
3976
+ {
3977
+ kind: "Field",
3978
+ name: { kind: "Name", value: "edges" },
3979
+ selectionSet: {
3980
+ kind: "SelectionSet",
3981
+ selections: [
3982
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
3983
+ {
3984
+ kind: "Field",
3985
+ name: { kind: "Name", value: "node" },
3986
+ selectionSet: {
3987
+ kind: "SelectionSet",
3988
+ selections: [
3989
+ { kind: "Field", name: { kind: "Name", value: "key" } },
3990
+ { kind: "Field", name: { kind: "Name", value: "count" } },
3991
+ ],
3992
+ },
3993
+ },
3994
+ ],
3995
+ },
3996
+ },
3997
+ ],
3998
+ },
3999
+ },
4000
+ ],
4001
+ };
4002
+ const GetFleetRentalCustomerParentNameSummaryConnectionDocument = {
4003
+ kind: "Document",
4004
+ definitions: [
4005
+ {
4006
+ kind: "OperationDefinition",
4007
+ operation: "query",
4008
+ name: { kind: "Name", value: "GetFleetRentalCustomerParentNameSummaryConnection" },
4009
+ variableDefinitions: [
4010
+ {
4011
+ kind: "VariableDefinition",
4012
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4013
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
4014
+ },
4015
+ {
4016
+ kind: "VariableDefinition",
4017
+ variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
4018
+ type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
4019
+ },
4020
+ {
4021
+ kind: "VariableDefinition",
4022
+ variable: { kind: "Variable", name: { kind: "Name", value: "first" } },
4023
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
4024
+ },
4025
+ {
4026
+ kind: "VariableDefinition",
4027
+ variable: { kind: "Variable", name: { kind: "Name", value: "after" } },
4028
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
4029
+ },
4030
+ {
4031
+ kind: "VariableDefinition",
4032
+ variable: { kind: "Variable", name: { kind: "Name", value: "before" } },
4033
+ type: { kind: "NamedType", name: { kind: "Name", value: "Cursor" } },
4034
+ },
4035
+ {
4036
+ kind: "VariableDefinition",
4037
+ variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
4038
+ type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
4039
+ },
4040
+ ],
4041
+ selectionSet: {
4042
+ kind: "SelectionSet",
4043
+ selections: [
4044
+ {
4045
+ kind: "Field",
4046
+ name: { kind: "Name", value: "assetSummary" },
4047
+ arguments: [
4048
+ {
4049
+ kind: "Argument",
4050
+ name: { kind: "Name", value: "filters" },
4051
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4052
+ },
4053
+ ],
4054
+ selectionSet: {
4055
+ kind: "SelectionSet",
4056
+ selections: [
4057
+ {
4058
+ kind: "Field",
4059
+ name: { kind: "Name", value: "rentalContractCustomerParentNamesConnection" },
4060
+ arguments: [
4061
+ {
4062
+ kind: "Argument",
4063
+ name: { kind: "Name", value: "filter" },
4064
+ value: { kind: "Variable", name: { kind: "Name", value: "search" } },
4065
+ },
4066
+ {
4067
+ kind: "Argument",
4068
+ name: { kind: "Name", value: "first" },
4069
+ value: { kind: "Variable", name: { kind: "Name", value: "first" } },
4070
+ },
4071
+ {
4072
+ kind: "Argument",
4073
+ name: { kind: "Name", value: "after" },
4074
+ value: { kind: "Variable", name: { kind: "Name", value: "after" } },
4075
+ },
4076
+ {
4077
+ kind: "Argument",
4078
+ name: { kind: "Name", value: "before" },
4079
+ value: { kind: "Variable", name: { kind: "Name", value: "before" } },
4080
+ },
4081
+ {
4082
+ kind: "Argument",
4083
+ name: { kind: "Name", value: "last" },
4084
+ value: { kind: "Variable", name: { kind: "Name", value: "last" } },
4085
+ },
4086
+ ],
4087
+ selectionSet: {
4088
+ kind: "SelectionSet",
4089
+ selections: [
4090
+ { kind: "FragmentSpread", name: { kind: "Name", value: "FleetSummaryConnectionFields" } },
4091
+ ],
4092
+ },
4093
+ },
4094
+ ],
4095
+ },
4096
+ },
4097
+ ],
4098
+ },
4099
+ },
4100
+ {
4101
+ kind: "FragmentDefinition",
4102
+ name: { kind: "Name", value: "FleetSummaryConnectionFields" },
4103
+ typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SummaryConnection" } },
4104
+ selectionSet: {
4105
+ kind: "SelectionSet",
4106
+ selections: [
4107
+ {
4108
+ kind: "Field",
4109
+ name: { kind: "Name", value: "pageInfo" },
4110
+ selectionSet: {
4111
+ kind: "SelectionSet",
4112
+ selections: [
4113
+ { kind: "Field", name: { kind: "Name", value: "hasNextPage" } },
4114
+ { kind: "Field", name: { kind: "Name", value: "hasPreviousPage" } },
4115
+ { kind: "Field", name: { kind: "Name", value: "endCursor" } },
4116
+ { kind: "Field", name: { kind: "Name", value: "startCursor" } },
4117
+ ],
4118
+ },
4119
+ },
4120
+ {
4121
+ kind: "Field",
4122
+ name: { kind: "Name", value: "edges" },
4123
+ selectionSet: {
4124
+ kind: "SelectionSet",
4125
+ selections: [
4126
+ { kind: "Field", name: { kind: "Name", value: "cursor" } },
4127
+ {
4128
+ kind: "Field",
4129
+ name: { kind: "Name", value: "node" },
4130
+ selectionSet: {
4131
+ kind: "SelectionSet",
4132
+ selections: [
4133
+ { kind: "Field", name: { kind: "Name", value: "key" } },
4134
+ { kind: "Field", name: { kind: "Name", value: "count" } },
4135
+ ],
4136
+ },
4137
+ },
4138
+ ],
4139
+ },
4140
+ },
4141
+ ],
4142
+ },
4143
+ },
4144
+ ],
4145
+ };
4146
+ const GetFleetBrandsSummaryMissingDocument = {
4147
+ kind: "Document",
4148
+ definitions: [
4149
+ {
4150
+ kind: "OperationDefinition",
4151
+ operation: "query",
4152
+ name: { kind: "Name", value: "GetFleetBrandsSummaryMissing" },
4153
+ variableDefinitions: [
4154
+ {
4155
+ kind: "VariableDefinition",
4156
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4157
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
4158
+ },
4159
+ ],
4160
+ selectionSet: {
4161
+ kind: "SelectionSet",
4162
+ selections: [
4163
+ {
4164
+ kind: "Field",
4165
+ name: { kind: "Name", value: "assetSummary" },
4166
+ arguments: [
4167
+ {
4168
+ kind: "Argument",
4169
+ name: { kind: "Name", value: "filters" },
4170
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4171
+ },
4172
+ ],
4173
+ selectionSet: {
4174
+ kind: "SelectionSet",
4175
+ selections: [
4176
+ {
4177
+ kind: "Field",
4178
+ name: { kind: "Name", value: "brandsConnection" },
4179
+ arguments: [
4180
+ {
4181
+ kind: "Argument",
4182
+ name: { kind: "Name", value: "first" },
4183
+ value: { kind: "IntValue", value: "1" },
4184
+ },
4185
+ ],
4186
+ selectionSet: {
4187
+ kind: "SelectionSet",
4188
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
4189
+ },
4190
+ },
4191
+ ],
4192
+ },
4193
+ },
4194
+ ],
4195
+ },
4196
+ },
4197
+ ],
4198
+ };
4199
+ const GetFleetTypesSummaryMissingDocument = {
4200
+ kind: "Document",
4201
+ definitions: [
4202
+ {
4203
+ kind: "OperationDefinition",
4204
+ operation: "query",
4205
+ name: { kind: "Name", value: "GetFleetTypesSummaryMissing" },
4206
+ variableDefinitions: [
4207
+ {
4208
+ kind: "VariableDefinition",
4209
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4210
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2715
4211
  },
4212
+ ],
4213
+ selectionSet: {
4214
+ kind: "SelectionSet",
4215
+ selections: [
4216
+ {
4217
+ kind: "Field",
4218
+ name: { kind: "Name", value: "assetSummary" },
4219
+ arguments: [
4220
+ {
4221
+ kind: "Argument",
4222
+ name: { kind: "Name", value: "filters" },
4223
+ value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4224
+ },
4225
+ ],
4226
+ selectionSet: {
4227
+ kind: "SelectionSet",
4228
+ selections: [
4229
+ {
4230
+ kind: "Field",
4231
+ name: { kind: "Name", value: "typesConnection" },
4232
+ arguments: [
4233
+ {
4234
+ kind: "Argument",
4235
+ name: { kind: "Name", value: "first" },
4236
+ value: { kind: "IntValue", value: "1" },
4237
+ },
4238
+ ],
4239
+ selectionSet: {
4240
+ kind: "SelectionSet",
4241
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
4242
+ },
4243
+ },
4244
+ ],
4245
+ },
4246
+ },
4247
+ ],
4248
+ },
4249
+ },
4250
+ ],
4251
+ };
4252
+ const GetFleetGroupSummaryMissingDocument = {
4253
+ kind: "Document",
4254
+ definitions: [
4255
+ {
4256
+ kind: "OperationDefinition",
4257
+ operation: "query",
4258
+ name: { kind: "Name", value: "GetFleetGroupSummaryMissing" },
4259
+ variableDefinitions: [
2716
4260
  {
2717
4261
  kind: "VariableDefinition",
2718
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
2719
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
4262
+ variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
4263
+ type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2720
4264
  },
2721
4265
  ],
2722
4266
  selectionSet: {
@@ -2737,35 +4281,17 @@ const GetFleetRentalContractReferenceCodesSummaryDocument = {
2737
4281
  selections: [
2738
4282
  {
2739
4283
  kind: "Field",
2740
- name: { kind: "Name", value: "rentalContractReferenceCodes" },
4284
+ name: { kind: "Name", value: "groupsConnection" },
2741
4285
  arguments: [
2742
4286
  {
2743
4287
  kind: "Argument",
2744
- name: { kind: "Name", value: "limit" },
2745
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2746
- },
2747
- {
2748
- kind: "Argument",
2749
- name: { kind: "Name", value: "filter" },
2750
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
4288
+ name: { kind: "Name", value: "first" },
4289
+ value: { kind: "IntValue", value: "1" },
2751
4290
  },
2752
4291
  ],
2753
4292
  selectionSet: {
2754
4293
  kind: "SelectionSet",
2755
- selections: [
2756
- { kind: "Field", name: { kind: "Name", value: "total" } },
2757
- {
2758
- kind: "Field",
2759
- name: { kind: "Name", value: "summary" },
2760
- selectionSet: {
2761
- kind: "SelectionSet",
2762
- selections: [
2763
- { kind: "Field", name: { kind: "Name", value: "key" } },
2764
- { kind: "Field", name: { kind: "Name", value: "count" } },
2765
- ],
2766
- },
2767
- },
2768
- ],
4294
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
2769
4295
  },
2770
4296
  },
2771
4297
  ],
@@ -2776,29 +4302,19 @@ const GetFleetRentalContractReferenceCodesSummaryDocument = {
2776
4302
  },
2777
4303
  ],
2778
4304
  };
2779
- const GetFleetRentalCustomerParentExternalReferenceSummaryDocument = {
4305
+ const GetFleetRentalContractReferenceCodesSummaryMissingDocument = {
2780
4306
  kind: "Document",
2781
4307
  definitions: [
2782
4308
  {
2783
4309
  kind: "OperationDefinition",
2784
4310
  operation: "query",
2785
- name: { kind: "Name", value: "GetFleetRentalCustomerParentExternalReferenceSummary" },
4311
+ name: { kind: "Name", value: "GetFleetRentalContractReferenceCodesSummaryMissing" },
2786
4312
  variableDefinitions: [
2787
4313
  {
2788
4314
  kind: "VariableDefinition",
2789
4315
  variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
2790
4316
  type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2791
4317
  },
2792
- {
2793
- kind: "VariableDefinition",
2794
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2795
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } },
2796
- },
2797
- {
2798
- kind: "VariableDefinition",
2799
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
2800
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
2801
- },
2802
4318
  ],
2803
4319
  selectionSet: {
2804
4320
  kind: "SelectionSet",
@@ -2818,35 +4334,17 @@ const GetFleetRentalCustomerParentExternalReferenceSummaryDocument = {
2818
4334
  selections: [
2819
4335
  {
2820
4336
  kind: "Field",
2821
- name: { kind: "Name", value: "rentalContractCustomerParentExternalReferences" },
4337
+ name: { kind: "Name", value: "rentalContractReferenceCodesConnection" },
2822
4338
  arguments: [
2823
4339
  {
2824
4340
  kind: "Argument",
2825
- name: { kind: "Name", value: "limit" },
2826
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2827
- },
2828
- {
2829
- kind: "Argument",
2830
- name: { kind: "Name", value: "filter" },
2831
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
4341
+ name: { kind: "Name", value: "first" },
4342
+ value: { kind: "IntValue", value: "1" },
2832
4343
  },
2833
4344
  ],
2834
4345
  selectionSet: {
2835
4346
  kind: "SelectionSet",
2836
- selections: [
2837
- { kind: "Field", name: { kind: "Name", value: "total" } },
2838
- {
2839
- kind: "Field",
2840
- name: { kind: "Name", value: "summary" },
2841
- selectionSet: {
2842
- kind: "SelectionSet",
2843
- selections: [
2844
- { kind: "Field", name: { kind: "Name", value: "key" } },
2845
- { kind: "Field", name: { kind: "Name", value: "count" } },
2846
- ],
2847
- },
2848
- },
2849
- ],
4347
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
2850
4348
  },
2851
4349
  },
2852
4350
  ],
@@ -2857,29 +4355,19 @@ const GetFleetRentalCustomerParentExternalReferenceSummaryDocument = {
2857
4355
  },
2858
4356
  ],
2859
4357
  };
2860
- const GetFleetRentalCustomerParentNameSummaryDocument = {
4358
+ const GetFleetRentalContractOrderNumberSummaryMissingDocument = {
2861
4359
  kind: "Document",
2862
4360
  definitions: [
2863
4361
  {
2864
4362
  kind: "OperationDefinition",
2865
4363
  operation: "query",
2866
- name: { kind: "Name", value: "GetFleetRentalCustomerParentNameSummary" },
4364
+ name: { kind: "Name", value: "GetFleetRentalContractOrderNumberSummaryMissing" },
2867
4365
  variableDefinitions: [
2868
4366
  {
2869
4367
  kind: "VariableDefinition",
2870
4368
  variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
2871
4369
  type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
2872
4370
  },
2873
- {
2874
- kind: "VariableDefinition",
2875
- variable: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2876
- type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Int" } } },
2877
- },
2878
- {
2879
- kind: "VariableDefinition",
2880
- variable: { kind: "Variable", name: { kind: "Name", value: "search" } },
2881
- type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
2882
- },
2883
4371
  ],
2884
4372
  selectionSet: {
2885
4373
  kind: "SelectionSet",
@@ -2899,35 +4387,17 @@ const GetFleetRentalCustomerParentNameSummaryDocument = {
2899
4387
  selections: [
2900
4388
  {
2901
4389
  kind: "Field",
2902
- name: { kind: "Name", value: "rentalContractCustomerParentNames" },
4390
+ name: { kind: "Name", value: "rentalContractOrderNumbersConnection" },
2903
4391
  arguments: [
2904
4392
  {
2905
4393
  kind: "Argument",
2906
- name: { kind: "Name", value: "limit" },
2907
- value: { kind: "Variable", name: { kind: "Name", value: "limit" } },
2908
- },
2909
- {
2910
- kind: "Argument",
2911
- name: { kind: "Name", value: "filter" },
2912
- value: { kind: "Variable", name: { kind: "Name", value: "search" } },
4394
+ name: { kind: "Name", value: "first" },
4395
+ value: { kind: "IntValue", value: "1" },
2913
4396
  },
2914
4397
  ],
2915
4398
  selectionSet: {
2916
4399
  kind: "SelectionSet",
2917
- selections: [
2918
- { kind: "Field", name: { kind: "Name", value: "total" } },
2919
- {
2920
- kind: "Field",
2921
- name: { kind: "Name", value: "summary" },
2922
- selectionSet: {
2923
- kind: "SelectionSet",
2924
- selections: [
2925
- { kind: "Field", name: { kind: "Name", value: "key" } },
2926
- { kind: "Field", name: { kind: "Name", value: "count" } },
2927
- ],
2928
- },
2929
- },
2930
- ],
4400
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
2931
4401
  },
2932
4402
  },
2933
4403
  ],
@@ -2938,13 +4408,13 @@ const GetFleetRentalCustomerParentNameSummaryDocument = {
2938
4408
  },
2939
4409
  ],
2940
4410
  };
2941
- const GetPendingTelematicsDevicesSummaryDocument = {
4411
+ const GetFleetRentalCustomerParentExternalReferenceSummaryMissingDocument = {
2942
4412
  kind: "Document",
2943
4413
  definitions: [
2944
4414
  {
2945
4415
  kind: "OperationDefinition",
2946
4416
  operation: "query",
2947
- name: { kind: "Name", value: "GetPendingTelematicsDevicesSummary" },
4417
+ name: { kind: "Name", value: "GetFleetRentalCustomerParentExternalReferenceSummaryMissing" },
2948
4418
  variableDefinitions: [
2949
4419
  {
2950
4420
  kind: "VariableDefinition",
@@ -2970,23 +4440,17 @@ const GetPendingTelematicsDevicesSummaryDocument = {
2970
4440
  selections: [
2971
4441
  {
2972
4442
  kind: "Field",
2973
- name: { kind: "Name", value: "pendingTelematicsDevices" },
4443
+ name: { kind: "Name", value: "rentalContractCustomerParentExternalReferencesConnection" },
4444
+ arguments: [
4445
+ {
4446
+ kind: "Argument",
4447
+ name: { kind: "Name", value: "first" },
4448
+ value: { kind: "IntValue", value: "1" },
4449
+ },
4450
+ ],
2974
4451
  selectionSet: {
2975
4452
  kind: "SelectionSet",
2976
- selections: [
2977
- { kind: "Field", name: { kind: "Name", value: "total" } },
2978
- {
2979
- kind: "Field",
2980
- name: { kind: "Name", value: "summary" },
2981
- selectionSet: {
2982
- kind: "SelectionSet",
2983
- selections: [
2984
- { kind: "Field", name: { kind: "Name", value: "key" } },
2985
- { kind: "Field", name: { kind: "Name", value: "count" } },
2986
- ],
2987
- },
2988
- },
2989
- ],
4453
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
2990
4454
  },
2991
4455
  },
2992
4456
  ],
@@ -2997,13 +4461,13 @@ const GetPendingTelematicsDevicesSummaryDocument = {
2997
4461
  },
2998
4462
  ],
2999
4463
  };
3000
- const GetBatteryChargerStageSummaryDocument = {
4464
+ const GetFleetRentalCustomerParentNameSummaryMissingDocument = {
3001
4465
  kind: "Document",
3002
4466
  definitions: [
3003
4467
  {
3004
4468
  kind: "OperationDefinition",
3005
4469
  operation: "query",
3006
- name: { kind: "Name", value: "GetBatteryChargerStageSummary" },
4470
+ name: { kind: "Name", value: "GetFleetRentalCustomerParentNameSummaryMissing" },
3007
4471
  variableDefinitions: [
3008
4472
  {
3009
4473
  kind: "VariableDefinition",
@@ -3029,23 +4493,17 @@ const GetBatteryChargerStageSummaryDocument = {
3029
4493
  selections: [
3030
4494
  {
3031
4495
  kind: "Field",
3032
- name: { kind: "Name", value: "insights" },
4496
+ name: { kind: "Name", value: "rentalContractCustomerParentNamesConnection" },
4497
+ arguments: [
4498
+ {
4499
+ kind: "Argument",
4500
+ name: { kind: "Name", value: "first" },
4501
+ value: { kind: "IntValue", value: "1" },
4502
+ },
4503
+ ],
3033
4504
  selectionSet: {
3034
4505
  kind: "SelectionSet",
3035
- selections: [
3036
- {
3037
- kind: "Field",
3038
- name: { kind: "Name", value: "batteryChargerState" },
3039
- selectionSet: {
3040
- kind: "SelectionSet",
3041
- selections: [
3042
- { kind: "Field", name: { kind: "Name", value: "disabled" } },
3043
- { kind: "Field", name: { kind: "Name", value: "enabled" } },
3044
- { kind: "Field", name: { kind: "Name", value: "undefined" } },
3045
- ],
3046
- },
3047
- },
3048
- ],
4506
+ selections: [{ kind: "Field", name: { kind: "Name", value: "missing" } }],
3049
4507
  },
3050
4508
  },
3051
4509
  ],
@@ -3465,47 +4923,224 @@ const useAssetTypeFilter = ({ showTypes } = { showTypes: ALL_TYPES }) => {
3465
4923
  return result;
3466
4924
  };
3467
4925
 
3468
- const FETCH_LIMIT$h = 1000;
3469
4926
  /**
3470
- * React component for rendering the brand filter.
4927
+ * Shape every `assetSummary` connection query shares once the generated document is executed.
4928
+ * The generated types differ per filter, so the connection payload is validated at runtime
4929
+ * instead of being narrowed structurally.
4930
+ */
4931
+ const assetSummaryConnectionSchema = z.object({
4932
+ missing: z.number().nullish(),
4933
+ pageInfo: z
4934
+ .object({
4935
+ hasNextPage: z.boolean().nullish(),
4936
+ hasPreviousPage: z.boolean().nullish(),
4937
+ startCursor: z.string().nullish(),
4938
+ endCursor: z.string().nullish(),
4939
+ })
4940
+ .nullish(),
4941
+ edges: z
4942
+ .array(z.object({
4943
+ cursor: z.string().nullish(),
4944
+ node: z.record(z.string(), z.unknown()),
4945
+ }))
4946
+ .nullish(),
4947
+ });
4948
+ const assetSummaryQuerySchema = z.object({
4949
+ assetSummary: z.record(z.string(), z.unknown()).nullish(),
4950
+ });
4951
+ /**
4952
+ * Reads a single connection out of an `assetSummary` query result.
3471
4953
  *
3472
- * @param {FilterViewProps<string[]>} props - The component's properties, including filter state and values.
3473
- * @returns {ReactElement} The brand filter component.
4954
+ * @param data the raw query result
4955
+ * @param connectionField name of the connection field on `assetSummary`
4956
+ * @returns {AssetSummaryConnection | undefined} the connection, or undefined when the query has not resolved it
4957
+ */
4958
+ const extractAssetSummaryConnection = (data, connectionField) => {
4959
+ const query = assetSummaryQuerySchema.safeParse(data);
4960
+ if (!query.success || !query.data.assetSummary) {
4961
+ return undefined;
4962
+ }
4963
+ const connection = assetSummaryConnectionSchema.safeParse(query.data.assetSummary[connectionField]);
4964
+ return connection.success ? connection.data : undefined;
4965
+ };
4966
+ const summaryNodeSchema = z.object({
4967
+ key: z.string(),
4968
+ count: z.number().nullish(),
4969
+ });
4970
+ const groupNodeSchema = z.object({
4971
+ count: z.number().nullish(),
4972
+ group: z
4973
+ .object({
4974
+ groupId: z.string().nullish(),
4975
+ name: z.string().nullish(),
4976
+ })
4977
+ .nullish(),
4978
+ });
4979
+ const ownerAccountNodeSchema = z.object({
4980
+ count: z.number().nullish(),
4981
+ ownerAccount: z
4982
+ .object({
4983
+ accountId: z.string().nullish(),
4984
+ name: z.string().nullish(),
4985
+ })
4986
+ .nullish(),
4987
+ });
4988
+ /**
4989
+ * Reads a plain key/count summary node.
4990
+ *
4991
+ * @param node the raw edge node
4992
+ * @returns {object} the node with a guaranteed count
4993
+ */
4994
+ const asSummaryConnectionNode = (node) => {
4995
+ const parsed = summaryNodeSchema.safeParse(node);
4996
+ return {
4997
+ key: parsed.success ? parsed.data.key : "",
4998
+ count: parsed.success ? (parsed.data.count ?? 0) : 0,
4999
+ };
5000
+ };
5001
+ /**
5002
+ * Key the backend and the filter bar agree on for the bucket of assets that have no value
5003
+ * for a facet. `DefaultCheckboxFilter` pins the option carrying this key to the bottom of the list.
5004
+ */
5005
+ const UNDEFINED_SUMMARY_KEY = "UNDEFINED";
5006
+ /**
5007
+ * Flattens connection edges into plain summary entries, appending the bucket of assets without
5008
+ * a value when one is reported.
5009
+ *
5010
+ * @param edges the edges of a key/count summary connection
5011
+ * @param missing the number of assets without a value, counted by a separate query
5012
+ * @param loading whether either query behind the facet is still fetching, which suppresses the
5013
+ * entries until the first page arrives. The two queries resolve independently, and
5014
+ * `FilterResults` only renders its loading state for an empty list, so without this a facet
5015
+ * would briefly show whichever of the two landed first as its only content — the undefined
5016
+ * bucket alone, or a set of values that the undefined bucket is about to be appended to.
5017
+ * @returns {Array<{ key: string; count: number }>} the summary entries to render as filter options
5018
+ */
5019
+ const toSummaryEntries = (edges, missing, loading = false) => {
5020
+ if (loading && edges.length === 0) {
5021
+ return [];
5022
+ }
5023
+ const entries = edges.map(edge => asSummaryConnectionNode(edge.node));
5024
+ if (typeof missing === "number" && missing > 0) {
5025
+ entries.push({ key: UNDEFINED_SUMMARY_KEY, count: missing });
5026
+ }
5027
+ return entries;
5028
+ };
5029
+ /**
5030
+ * Reads a group summary node.
5031
+ *
5032
+ * @param node the raw edge node
5033
+ * @returns {GroupConnectionNode} the group node, empty when the payload does not match
5034
+ */
5035
+ const asGroupConnectionNode = (node) => {
5036
+ const parsed = groupNodeSchema.safeParse(node);
5037
+ return parsed.success ? parsed.data : { count: 0, group: null };
5038
+ };
5039
+ /**
5040
+ * Reads an owner account summary node.
5041
+ *
5042
+ * @param node the raw edge node
5043
+ * @returns {OwnerAccountConnectionNode} the owner account node, empty when the payload does not match
5044
+ */
5045
+ const asOwnerAccountConnectionNode = (node) => {
5046
+ const parsed = ownerAccountNodeSchema.safeParse(node);
5047
+ return parsed.success ? parsed.data : { count: 0, ownerAccount: null };
5048
+ };
5049
+
5050
+ /**
5051
+ * Counts the assets that have no value for a facet.
5052
+ *
5053
+ * Deliberately separate from `useFleetSummaryConnection`: the backend computes this count outside
5054
+ * the facet search term and outside paging, so it is identical on every page and would only be
5055
+ * re-fetched for nothing if it rode along with the paginated query.
5056
+ *
5057
+ * @param document the generated `…SummaryMissing` query
5058
+ * @param connectionField name of the connection field on `assetSummary`
5059
+ * @param filters the filters scoping the summary, the same ones the paginated query uses
5060
+ * @param options optional skip flag and Apollo context
5061
+ * @returns {object} the count of assets without a value, plus loading state
5062
+ */
5063
+ const useFacetMissingCount = (document, connectionField, filters, options = {}) => {
5064
+ const { data, loading } = useQuery(document, {
5065
+ variables: { filters: filters ?? null },
5066
+ skip: options.skip,
5067
+ context: options.context,
5068
+ });
5069
+ const missing = useMemo(() => extractAssetSummaryConnection(data, connectionField)?.missing, [data, connectionField]);
5070
+ return useMemo(() => ({ missing, loading }), [missing, loading]);
5071
+ };
5072
+
5073
+ const FLEET_SUMMARY_CONNECTION_PAGE_SIZE = 100;
5074
+ /**
5075
+ * Pages through one of the `assetSummary` connection fields.
5076
+ *
5077
+ * Only the values are paged here. The count of assets without a value is a separate,
5078
+ * non-paginated query — see `useFacetMissingCount`.
5079
+ *
5080
+ * @param document the generated connection query
5081
+ * @param connectionField name of the connection field on `assetSummary`
5082
+ * @param queryVariables filters and the search term to scope the summary, search is trimmed
5083
+ * and empty strings are sent as null
5084
+ * @param options optional skip flag and Apollo context
5085
+ * @returns {object} the accumulated edges plus loading and pagination state
5086
+ */
5087
+ const useFleetSummaryConnection = (document, connectionField, queryVariables, options = {}) => {
5088
+ const updateQuery = useConnectionPageMerger("assetSummary", connectionField);
5089
+ const variables = {
5090
+ filters: queryVariables.filters ?? null,
5091
+ // Normalized here so an untouched facet always sends `null` rather than a mix of `""` and
5092
+ // `null` depending on which filter owns the search box.
5093
+ search: queryVariables.search?.trim() || null,
5094
+ first: FLEET_SUMMARY_CONNECTION_PAGE_SIZE,
5095
+ after: null,
5096
+ before: null,
5097
+ last: null,
5098
+ };
5099
+ const { data, loading, pagination } = usePaginationQuery(document, {
5100
+ variables,
5101
+ skip: options.skip,
5102
+ pageSize: FLEET_SUMMARY_CONNECTION_PAGE_SIZE,
5103
+ context: options.context,
5104
+ updateQuery,
5105
+ });
5106
+ // The connection is parsed with zod, which allocates a new object per call, so it has to be
5107
+ // memoized to keep the returned references stable across renders.
5108
+ const connectionData = useMemo(() => extractAssetSummaryConnection(data, connectionField), [data, connectionField]);
5109
+ const edges = useMemo(() => connectionData?.edges ?? [], [connectionData?.edges]);
5110
+ return useMemo(() => ({
5111
+ edges,
5112
+ loading,
5113
+ pagination,
5114
+ connectionData,
5115
+ }), [connectionData, edges, loading, pagination]);
5116
+ };
5117
+
5118
+ /**
5119
+ * React component for rendering the brand filter.
3474
5120
  */
3475
5121
  const BrandFilterView = (props) => {
3476
5122
  const { getMachineTypeTranslation } = useMachineTypeTranslations();
3477
5123
  const activeFilters = useActiveAssetFilters(props.filterState.values);
3478
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
3479
5124
  const [searchText, setSearchText] = useState("");
3480
5125
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
3481
- const { data, loading } = useQuery(GetFleetBrandsSummaryDocument, {
3482
- fetchPolicy: "cache-first",
3483
- variables: {
3484
- limit: FETCH_LIMIT$h,
3485
- search: debouncedSearch.trim(),
3486
- filters: {
3487
- ...activeFilters,
3488
- brands: null, // Omit the filters own values so list shows options correctly
3489
- },
3490
- },
5126
+ const filters = { ...activeFilters, brands: null };
5127
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetBrandsSummaryConnectionDocument, "brandsConnection", {
5128
+ search: debouncedSearch,
5129
+ filters,
3491
5130
  });
5131
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetBrandsSummaryMissingDocument, "brandsConnection", filters);
5132
+ const loading = loadingValues || loadingMissing;
3492
5133
  const options = useMemo(() => {
3493
- const result = data?.assetSummary?.brands?.summary.map(brand => ({
3494
- key: brand.key,
3495
- count: brand.count,
3496
- label: getMachineTypeTranslation(brand.key),
3497
- })) ?? [];
3498
- return result;
3499
- }, [data?.assetSummary?.brands?.summary, getMachineTypeTranslation]);
3500
- useEffect(() => {
3501
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$h);
3502
- }, [options]);
3503
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5134
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
5135
+ key: entry.key,
5136
+ count: entry.count,
5137
+ label: getMachineTypeTranslation(entry.key),
5138
+ }));
5139
+ }, [edges, missing, loading, getMachineTypeTranslation]);
5140
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
3504
5141
  };
3505
5142
  /**
3506
5143
  * Brand filter definition
3507
- *
3508
- * @returns {StringArrayFilterDefinition} Brand filter definition
3509
5144
  */
3510
5145
  const useBrandFilter = () => {
3511
5146
  const [t] = useTranslation();
@@ -3525,38 +5160,21 @@ const useBrandFilter = () => {
3525
5160
  return result;
3526
5161
  };
3527
5162
 
3528
- const FETCH_LIMIT$g = 1000;
3529
5163
  /**
3530
5164
  * The CAN 1 Profile Filter component.
3531
- *
3532
- * Provides an interface to select CAN profiles reported on the CAN1 port. Options are
3533
- * fetched from a GraphQL query keyed by the profile key, but only the resolved profile
3534
- * name is displayed. Searching is delegated to the backend, which matches against the
3535
- * profile key.
3536
- *
3537
- * @param props - The filter view props.
3538
- * @param props.filterDefinition - The filter's definition.
3539
- * @param props.filterState - The current state of the filter, including selected values.
3540
- * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
3541
- * @returns {ReactElement} React component to render the CAN1 profile filter.
3542
5165
  */
3543
5166
  const Can1ProfileFilter = ({ filterDefinition, filterState, filterBarActions, ...props }) => {
3544
5167
  const [t] = useTranslation();
3545
5168
  const activeFilters = useActiveAssetFilters(filterState.values);
3546
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
3547
5169
  const [searchText, setSearchText] = useState("");
3548
5170
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
3549
- const { data, loading } = useQuery(GetFleetCan1ProfileSummaryDocument, {
3550
- variables: {
3551
- limit: FETCH_LIMIT$g,
3552
- search: debouncedSearch,
3553
- filters: {
3554
- ...activeFilters,
3555
- can1Profile: null, // Omit the filters own values so list shows options correctly
3556
- },
3557
- },
3558
- fetchPolicy: "cache-first",
5171
+ const filters = { ...activeFilters, can1Profile: null };
5172
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetCan1ProfileSummaryConnectionDocument, "can1ProfileSummaryConnection", {
5173
+ search: debouncedSearch,
5174
+ filters,
3559
5175
  });
5176
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetCan1ProfileSummaryMissingDocument, "can1ProfileSummaryConnection", filters);
5177
+ const loading = loadingValues || loadingMissing;
3560
5178
  const { data: profileNamesData } = useQuery(TelematicsDeviceCan1ProfileNamesDocument, {
3561
5179
  context: { headers: { "TU-PREVIEW": "TELEMATICS_DEVICE_PREVIEW" } },
3562
5180
  fetchPolicy: "cache-first",
@@ -3564,18 +5182,18 @@ const Can1ProfileFilter = ({ filterDefinition, filterState, filterBarActions, ..
3564
5182
  const profileNameByKey = useMemo(() => new Map(profileNamesData?.telematicsDeviceSummary?.can1Profiles?.summary?.map(profile => [profile.key, profile.name]) ??
3565
5183
  []), [profileNamesData?.telematicsDeviceSummary?.can1Profiles?.summary]);
3566
5184
  const options = useMemo(() => {
3567
- const result = data?.assetSummary?.can1ProfileSummary?.summary.map(canProfile => {
3568
- if (canProfile.key.toUpperCase() === "UNDEFINED") {
3569
- return { ...canProfile, label: t(`machine.types.Unknown`) };
5185
+ return toSummaryEntries(edges, missing, loading).map(entry => {
5186
+ if (entry.key === UNDEFINED_SUMMARY_KEY) {
5187
+ return { key: entry.key, count: entry.count, label: t(`machine.types.Unknown`) };
3570
5188
  }
3571
- return { ...canProfile, label: profileNameByKey.get(canProfile.key) ?? canProfile.key };
3572
- }) ?? [];
3573
- return result;
3574
- }, [data?.assetSummary?.can1ProfileSummary?.summary, profileNameByKey, t]);
3575
- useEffect(() => {
3576
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$g);
3577
- }, [options]);
3578
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5189
+ return {
5190
+ key: entry.key,
5191
+ count: entry.count,
5192
+ label: profileNameByKey.get(entry.key) ?? entry.key,
5193
+ };
5194
+ });
5195
+ }, [edges, missing, loading, profileNameByKey, t]);
5196
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
3579
5197
  };
3580
5198
 
3581
5199
  /**
@@ -3596,38 +5214,21 @@ const useCan1ProfileFilter = () => {
3596
5214
  }, [t]);
3597
5215
  };
3598
5216
 
3599
- const FETCH_LIMIT$f = 1000;
3600
5217
  /**
3601
5218
  * The CAN 2 Profile Filter component.
3602
- *
3603
- * Provides an interface to select CAN profiles reported on the CAN2 port. Options are
3604
- * fetched from a GraphQL query keyed by the profile key, but only the resolved profile
3605
- * name is displayed. Searching is delegated to the backend, which matches against the
3606
- * profile key.
3607
- *
3608
- * @param props - The filter view props.
3609
- * @param props.filterDefinition - The filter's definition.
3610
- * @param props.filterState - The current state of the filter, including selected values.
3611
- * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
3612
- * @returns {ReactElement} React component to render the CAN2 profile filter.
3613
5219
  */
3614
5220
  const Can2ProfileFilter = ({ filterDefinition, filterState, filterBarActions, ...props }) => {
3615
5221
  const [t] = useTranslation();
3616
5222
  const activeFilters = useActiveAssetFilters(filterState.values);
3617
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
3618
5223
  const [searchText, setSearchText] = useState("");
3619
5224
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
3620
- const { data, loading } = useQuery(GetFleetCan2ProfileSummaryDocument, {
3621
- variables: {
3622
- limit: FETCH_LIMIT$f,
3623
- search: debouncedSearch,
3624
- filters: {
3625
- ...activeFilters,
3626
- can2Profile: null, // Omit the filters own values so list shows options correctly
3627
- },
3628
- },
3629
- fetchPolicy: "cache-first",
5225
+ const filters = { ...activeFilters, can2Profile: null };
5226
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetCan2ProfileSummaryConnectionDocument, "can2ProfileSummaryConnection", {
5227
+ search: debouncedSearch,
5228
+ filters,
3630
5229
  });
5230
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetCan2ProfileSummaryMissingDocument, "can2ProfileSummaryConnection", filters);
5231
+ const loading = loadingValues || loadingMissing;
3631
5232
  const { data: profileNamesData } = useQuery(TelematicsDeviceCan2ProfileNamesDocument, {
3632
5233
  context: { headers: { "TU-PREVIEW": "TELEMATICS_DEVICE_PREVIEW" } },
3633
5234
  fetchPolicy: "cache-first",
@@ -3635,18 +5236,18 @@ const Can2ProfileFilter = ({ filterDefinition, filterState, filterBarActions, ..
3635
5236
  const profileNameByKey = useMemo(() => new Map(profileNamesData?.telematicsDeviceSummary?.can2Profiles?.summary?.map(profile => [profile.key, profile.name]) ??
3636
5237
  []), [profileNamesData?.telematicsDeviceSummary?.can2Profiles?.summary]);
3637
5238
  const options = useMemo(() => {
3638
- const result = data?.assetSummary?.can2ProfileSummary?.summary.map(canProfile => {
3639
- if (canProfile.key.toUpperCase() === "UNDEFINED") {
3640
- return { ...canProfile, label: t(`machine.types.Unknown`) };
5239
+ return toSummaryEntries(edges, missing, loading).map(entry => {
5240
+ if (entry.key === UNDEFINED_SUMMARY_KEY) {
5241
+ return { key: entry.key, count: entry.count, label: t(`machine.types.Unknown`) };
3641
5242
  }
3642
- return { ...canProfile, label: profileNameByKey.get(canProfile.key) ?? canProfile.key };
3643
- }) ?? [];
3644
- return result;
3645
- }, [data?.assetSummary?.can2ProfileSummary?.summary, profileNameByKey, t]);
3646
- useEffect(() => {
3647
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$f);
3648
- }, [options]);
3649
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5243
+ return {
5244
+ key: entry.key,
5245
+ count: entry.count,
5246
+ label: profileNameByKey.get(entry.key) ?? entry.key,
5247
+ };
5248
+ });
5249
+ }, [edges, missing, loading, profileNameByKey, t]);
5250
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
3650
5251
  };
3651
5252
 
3652
5253
  /**
@@ -3804,7 +5405,7 @@ const useCriticalityFilter = () => {
3804
5405
  return result;
3805
5406
  };
3806
5407
 
3807
- const FETCH_LIMIT$e = 1000;
5408
+ const FETCH_LIMIT$4 = 1000;
3808
5409
  /**
3809
5410
  * Custom hook to fetch customer summary data based on active filters and search text.
3810
5411
  *
@@ -3819,7 +5420,7 @@ const useCustomerData = (filterValues, customerId) => {
3819
5420
  const { data, loading } = useQuery(GetCustomerIdSummaryDocument, {
3820
5421
  fetchPolicy: "cache-first",
3821
5422
  variables: {
3822
- limit: FETCH_LIMIT$e,
5423
+ limit: FETCH_LIMIT$4,
3823
5424
  search: debouncedSearch,
3824
5425
  filters: {
3825
5426
  ...activeFilters,
@@ -4236,47 +5837,29 @@ const useDeviceTypesFilter = (showInFilterBar) => {
4236
5837
  }, [t, showInFilterBar]);
4237
5838
  };
4238
5839
 
4239
- const FETCH_LIMIT$d = 1000;
4240
- /**
4241
- * The Firmware Version Filter component.
4242
- *
4243
- * Provides an interface to select firmware versions. It fetches data from a GraphQL query
4244
- * and integrates with the filter bar's filtering logic.
4245
- *
4246
- * @param props - The filter view props.
4247
- * @param props.filterDefinition - The filter's definition.
4248
- * @param props.filterState - The current state of the filter, including selected values.
4249
- * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
4250
- * @returns {ReactElement} React component to render the firmware version filter.
5840
+ /**
5841
+ * The Firmware Version Filter component.
4251
5842
  */
4252
5843
  const FirmwareVersionFilter = ({ filterDefinition, filterState, filterBarActions, ...props }) => {
4253
5844
  const [t] = useTranslation();
4254
5845
  const activeFilters = useActiveAssetFilters(filterState.values);
4255
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
4256
5846
  const [searchText, setSearchText] = useState("");
4257
5847
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
4258
- const { data, loading } = useQuery(GetFleetFirmwareVersionSummaryDocument, {
4259
- variables: {
4260
- limit: FETCH_LIMIT$d,
4261
- search: debouncedSearch,
4262
- filters: {
4263
- ...activeFilters,
4264
- firmwareVersion: null, // Omit the filters own values so list shows options correctly
4265
- },
4266
- },
4267
- fetchPolicy: "cache-first",
5848
+ const filters = { ...activeFilters, firmwareVersion: null };
5849
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetFirmwareVersionSummaryConnectionDocument, "firmwareVersionSummaryConnection", {
5850
+ search: debouncedSearch,
5851
+ filters,
4268
5852
  });
5853
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetFirmwareVersionSummaryMissingDocument, "firmwareVersionSummaryConnection", filters);
5854
+ const loading = loadingValues || loadingMissing;
4269
5855
  const options = useMemo(() => {
4270
- const result = data?.assetSummary?.firmwareVersionSummary?.summary.map(firmwareVersion => ({
4271
- ...firmwareVersion,
4272
- label: firmwareVersion.key.toUpperCase() === "UNDEFINED" ? t(`machine.types.Unknown`) : firmwareVersion.key,
4273
- })) ?? [];
4274
- return result;
4275
- }, [data?.assetSummary?.firmwareVersionSummary?.summary, t]);
4276
- useEffect(() => {
4277
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$d);
4278
- }, [options]);
4279
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5856
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
5857
+ key: entry.key,
5858
+ count: entry.count,
5859
+ label: entry.key === UNDEFINED_SUMMARY_KEY ? t(`machine.types.Unknown`) : entry.key,
5860
+ }));
5861
+ }, [edges, missing, loading, t]);
5862
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
4280
5863
  };
4281
5864
 
4282
5865
  /**
@@ -4341,54 +5924,46 @@ const useFollowedFilter = () => {
4341
5924
  return result;
4342
5925
  };
4343
5926
 
4344
- const FETCH_LIMIT$c = 1000;
4345
5927
  /**
4346
5928
  * The GroupIdsFilterView component is a filter view for group IDs.
4347
- * It utilizes a checkbox filter with a search feature to display and manage group selections.
4348
- *
4349
- * @param {FilterViewProps<ValueName[]>} props - The properties for the filter view, including filter state and callbacks.
4350
- * @returns {ReactElement} The GroupIdsFilterView component.
4351
5929
  */
4352
5930
  const GroupIdsFilterView = (props) => {
5931
+ const [t] = useTranslation();
4353
5932
  const activeFilters = useActiveAssetFilters(props.filterState.values);
4354
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
4355
5933
  const [searchText, setSearchText] = useState("");
4356
5934
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
4357
- const { data, loading } = useQuery(GetFleetGroupSummaryDocument, {
4358
- fetchPolicy: "cache-first",
4359
- variables: {
4360
- limit: FETCH_LIMIT$c,
4361
- search: debouncedSearch,
4362
- filters: {
4363
- ...activeFilters,
4364
- groups: null, // Omit the filters own values so list shows options correctly
4365
- },
4366
- },
5935
+ const filters = { ...activeFilters, groups: null };
5936
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetGroupSummaryConnectionDocument, "groupsConnection", {
5937
+ search: debouncedSearch,
5938
+ filters,
4367
5939
  });
5940
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetGroupSummaryMissingDocument, "groupsConnection", filters);
5941
+ const loading = loadingValues || loadingMissing;
4368
5942
  const options = useMemo(() => {
4369
- const result = data?.assetSummary?.groups?.summary.map(edge => ({
4370
- key: edge.group?.groupId || "unknown",
4371
- count: props.hasCount ? edge.count || 0 : undefined,
4372
- label: edge.group?.name || "Unknown",
4373
- })) ?? [];
4374
- if (typeof data?.assetSummary?.groups?.missing === "number" && data.assetSummary.groups.missing > 0) {
5943
+ if (loading && edges.length === 0) {
5944
+ return [];
5945
+ }
5946
+ const result = edges.map(edge => {
5947
+ const node = asGroupConnectionNode(edge.node);
5948
+ return {
5949
+ key: node.group?.groupId || "unknown",
5950
+ count: props.hasCount ? node.count || 0 : undefined,
5951
+ label: node.group?.name || t("machine.types.Unknown"),
5952
+ };
5953
+ });
5954
+ if (typeof missing === "number" && missing > 0) {
4375
5955
  result.push({
4376
- key: "UNDEFINED",
4377
- count: props.hasCount ? data.assetSummary.groups.missing : undefined,
4378
- label: "Missing group",
5956
+ key: UNDEFINED_SUMMARY_KEY,
5957
+ count: props.hasCount ? missing : undefined,
5958
+ label: t("assetFilters.groupFilter.missingGroup"),
4379
5959
  });
4380
5960
  }
4381
5961
  return result;
4382
- }, [data?.assetSummary?.groups, props.hasCount]);
4383
- useEffect(() => {
4384
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$c);
4385
- }, [options]);
4386
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5962
+ }, [edges, missing, loading, props.hasCount, t]);
5963
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
4387
5964
  };
4388
5965
  /**
4389
5966
  * GroupIds filter definition
4390
- *
4391
- * @returns {ValueNameArrayFilterDefinition} GroupIds filter definition
4392
5967
  */
4393
5968
  const useGroupIdsFilter = ({ hasCount } = { hasCount: true }) => {
4394
5969
  const [t] = useTranslation();
@@ -4876,47 +6451,29 @@ const useMetadataCompletenessFilter = ({ isDefault } = {}) => {
4876
6451
  return result;
4877
6452
  };
4878
6453
 
4879
- const FETCH_LIMIT$b = 1000;
4880
6454
  /**
4881
6455
  * The Modbus Profile Filter component.
4882
- *
4883
- * Provides an interface to select Modbus profiles. It fetches data from a GraphQL query
4884
- * and integrates with the filter bar's filtering logic.
4885
- *
4886
- * @param props - The filter view props.
4887
- * @param props.filterDefinition - The filter's definition.
4888
- * @param props.filterState - The current state of the filter, including selected values.
4889
- * @param props.filterBarActions - Actions for the filter's interaction with the filter bar.
4890
- * @returns {ReactElement} React component to render the Modbus profile filter.
4891
6456
  */
4892
6457
  const ModbusProfileFilter = ({ filterDefinition, filterState, filterBarActions, ...props }) => {
4893
6458
  const [t] = useTranslation();
4894
6459
  const activeFilters = useActiveAssetFilters(filterState.values);
4895
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
4896
6460
  const [searchText, setSearchText] = useState("");
4897
6461
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
4898
- const { data, loading } = useQuery(GetFleetModbusProfileSummaryDocument, {
4899
- variables: {
4900
- limit: FETCH_LIMIT$b,
4901
- search: debouncedSearch,
4902
- filters: {
4903
- ...activeFilters,
4904
- modbusProfile: null, // Omit the filters own values so list shows options correctly
4905
- },
4906
- },
4907
- fetchPolicy: "cache-first",
6462
+ const filters = { ...activeFilters, modbusProfile: null };
6463
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetModbusProfileSummaryConnectionDocument, "modbusProfileSummaryConnection", {
6464
+ search: debouncedSearch,
6465
+ filters,
4908
6466
  });
6467
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetModbusProfileSummaryMissingDocument, "modbusProfileSummaryConnection", filters);
6468
+ const loading = loadingValues || loadingMissing;
4909
6469
  const options = useMemo(() => {
4910
- const result = data?.assetSummary?.modbusProfileSummary?.summary.map(modbusProfile => ({
4911
- ...modbusProfile,
4912
- label: modbusProfile.key.toUpperCase() === "UNDEFINED" ? t(`machine.types.Unknown`) : modbusProfile.key,
4913
- })) ?? [];
4914
- return result;
4915
- }, [data?.assetSummary?.modbusProfileSummary?.summary, t]);
4916
- useEffect(() => {
4917
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$b);
4918
- }, [options]);
4919
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
6470
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
6471
+ key: entry.key,
6472
+ count: entry.count,
6473
+ label: entry.key === UNDEFINED_SUMMARY_KEY ? t(`machine.types.Unknown`) : entry.key,
6474
+ }));
6475
+ }, [edges, missing, loading, t]);
6476
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
4920
6477
  };
4921
6478
 
4922
6479
  /**
@@ -4937,7 +6494,6 @@ const useModbusProfileFilter = () => {
4937
6494
  }, [t]);
4938
6495
  };
4939
6496
 
4940
- const FETCH_LIMIT$a = 1000;
4941
6497
  /**
4942
6498
  * Renders a custom model filter component, allowing filtering of active assets by models.
4943
6499
  * It also provides search functionality and controls for managing filtered results.
@@ -4948,32 +6504,23 @@ const FETCH_LIMIT$a = 1000;
4948
6504
  const ModelsFilterView = (props) => {
4949
6505
  const { getMachineTypeTranslation } = useMachineTypeTranslations();
4950
6506
  const activeFilters = useActiveAssetFilters(props.filterState.values);
4951
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
4952
6507
  const [searchText, setSearchText] = useState("");
4953
6508
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
4954
- const { data, loading } = useQuery(GetFleetModelsSummaryDocument, {
4955
- fetchPolicy: "cache-first",
4956
- variables: {
4957
- limit: FETCH_LIMIT$a,
4958
- search: debouncedSearch,
4959
- filters: {
4960
- ...activeFilters,
4961
- models: null, // Omit the filters own values so list shows options correctly
4962
- },
4963
- },
6509
+ const filters = { ...activeFilters, models: null };
6510
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetModelsSummaryConnectionDocument, "modelsConnection", {
6511
+ search: debouncedSearch,
6512
+ filters,
4964
6513
  });
6514
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetModelsSummaryMissingDocument, "modelsConnection", filters);
6515
+ const loading = loadingValues || loadingMissing;
4965
6516
  const options = useMemo(() => {
4966
- const result = data?.assetSummary?.models?.summary.map(model => ({
4967
- key: model.key,
4968
- count: model.count,
4969
- label: getMachineTypeTranslation(model.key),
4970
- })) ?? [];
4971
- return result;
4972
- }, [data?.assetSummary?.models?.summary, getMachineTypeTranslation]);
4973
- useEffect(() => {
4974
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$a);
4975
- }, [options]);
4976
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
6517
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
6518
+ key: entry.key,
6519
+ count: entry.count,
6520
+ label: getMachineTypeTranslation(entry.key),
6521
+ }));
6522
+ }, [edges, missing, loading, getMachineTypeTranslation]);
6523
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
4977
6524
  };
4978
6525
  /**
4979
6526
  *
@@ -4996,7 +6543,7 @@ const useModelsFilter = () => {
4996
6543
  return result;
4997
6544
  };
4998
6545
 
4999
- const FETCH_LIMIT$9 = 1000;
6546
+ const FETCH_LIMIT$3 = 1000;
5000
6547
  /**
5001
6548
  * Maps a network-technology summary key to its localized label.
5002
6549
  * Falls back to the raw key for values that have no translation yet (e.g. future technologies).
@@ -5037,7 +6584,7 @@ const NetworkTechnologyFilter = ({ filterDefinition, filterState, filterBarActio
5037
6584
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5038
6585
  const { data, loading } = useQuery(GetFleetNetworkTechnologySummaryDocument, {
5039
6586
  variables: {
5040
- limit: FETCH_LIMIT$9,
6587
+ limit: FETCH_LIMIT$3,
5041
6588
  search: debouncedSearch,
5042
6589
  filters: {
5043
6590
  ...activeFilters,
@@ -5053,7 +6600,7 @@ const NetworkTechnologyFilter = ({ filterDefinition, filterState, filterBarActio
5053
6600
  })) ?? []);
5054
6601
  }, [data?.assetSummary?.networkTechnologySummary?.summary, t]);
5055
6602
  useEffect(() => {
5056
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$9);
6603
+ setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$3);
5057
6604
  }, [options]);
5058
6605
  return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5059
6606
  };
@@ -5079,46 +6626,35 @@ const useNetworkTechnologyFilter = () => {
5079
6626
  }, [t]);
5080
6627
  };
5081
6628
 
5082
- const FETCH_LIMIT$8 = 1000;
5083
6629
  /**
5084
6630
  * Component for rendering the Owner Account IDs filter view within the filter bar.
5085
- *
5086
- * @param {FilterViewProps<ValueName[]>} props - The props to render the filter view, including filter state and settings.
5087
- * @returns {ReactElement} The rendered filter view component.
5088
6631
  */
5089
6632
  const OwnerAccountIdsFilterView = (props) => {
6633
+ const [t] = useTranslation();
5090
6634
  const activeFilters = useActiveAssetFilters(props.filterState.values);
5091
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
5092
6635
  const [searchText, setSearchText] = useState("");
5093
6636
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5094
- const { data, loading } = useQuery(GetFleetOwnerAccountSummaryDocument, {
5095
- fetchPolicy: "cache-first",
5096
- variables: {
5097
- limit: FETCH_LIMIT$8,
5098
- search: debouncedSearch,
5099
- filters: {
5100
- ...activeFilters,
5101
- ownerAccountIds: null, // Omit the filters own values so list shows options correctly
5102
- },
6637
+ const { edges, loading, pagination } = useFleetSummaryConnection(GetFleetOwnerAccountSummaryConnectionDocument, "ownerAccountsConnection", {
6638
+ search: debouncedSearch,
6639
+ filters: {
6640
+ ...activeFilters,
6641
+ ownerAccountIds: null,
5103
6642
  },
5104
6643
  });
5105
6644
  const options = useMemo(() => {
5106
- const result = data?.assetSummary?.ownerAccounts?.summary.map(edge => ({
5107
- key: edge.ownerAccount?.accountId || "unknown",
5108
- count: edge.count || 0,
5109
- label: edge.ownerAccount?.name || "Unknown",
5110
- })) ?? [];
5111
- return result;
5112
- }, [data?.assetSummary?.ownerAccounts?.summary]);
5113
- useEffect(() => {
5114
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$8);
5115
- }, [options]);
5116
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
6645
+ return edges.map(edge => {
6646
+ const node = asOwnerAccountConnectionNode(edge.node);
6647
+ return {
6648
+ key: node.ownerAccount?.accountId || "unknown",
6649
+ count: node.count || 0,
6650
+ label: node.ownerAccount?.name || t("machine.types.Unknown"),
6651
+ };
6652
+ });
6653
+ }, [edges, t]);
6654
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
5117
6655
  };
5118
6656
  /**
5119
6657
  * OwnerAccountIds filter definition
5120
- *
5121
- * @returns {ValueNameArrayFilterDefinition} OwnerAccountIds filter definition
5122
6658
  */
5123
6659
  const useOwnerAccountIdsFilter = (defaultValue) => {
5124
6660
  const [t] = useTranslation();
@@ -5227,7 +6763,7 @@ const usePeriodFilter = () => {
5227
6763
  return result;
5228
6764
  };
5229
6765
 
5230
- const FETCH_LIMIT$7 = 1000;
6766
+ const FETCH_LIMIT$2 = 1000;
5231
6767
  /**
5232
6768
  * Production Year Filter View component.
5233
6769
  *
@@ -5248,7 +6784,7 @@ const ProductionYearFilterView = ({ filterDefinition, filterState, filterBarActi
5248
6784
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5249
6785
  const { data, loading } = useQuery(GetFleetProductionYearsSummaryDocument, {
5250
6786
  variables: {
5251
- limit: FETCH_LIMIT$7,
6787
+ limit: FETCH_LIMIT$2,
5252
6788
  search: debouncedSearch,
5253
6789
  filters: {
5254
6790
  ...activeFilters,
@@ -5265,7 +6801,7 @@ const ProductionYearFilterView = ({ filterDefinition, filterState, filterBarActi
5265
6801
  return result;
5266
6802
  }, [data?.assetSummary?.productionYears?.summary, t]);
5267
6803
  useEffect(() => {
5268
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$7);
6804
+ setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$2);
5269
6805
  }, [options]);
5270
6806
  return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, filterBarActions: filterBarActions, filterDefinition: filterDefinition, filterState: filterState, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5271
6807
  };
@@ -5352,57 +6888,42 @@ const useRentalActiveContractItemOnRentDatesDateRangeFilter = ({ showInFilterBar
5352
6888
  return result;
5353
6889
  };
5354
6890
 
5355
- const FETCH_LIMIT$6 = 1000;
6891
+ const RENTAL_PREVIEW_CONTEXT$3 = {
6892
+ context: {
6893
+ headers: {
6894
+ "TU-PREVIEW": "dragonfruit-monty",
6895
+ },
6896
+ },
6897
+ };
5356
6898
  /**
5357
6899
  * Rental contract customer parent external reference filter view component.
5358
- *
5359
- * This component provides an interface to select rental contract customer parent external references.
5360
- * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
5361
- *
5362
- * @param {FilterViewProps<Array<string>>} props - The props for the component.
5363
- * @returns {Element} The rendered component.
5364
6900
  */
5365
6901
  const RentalContractCustomerParentExternalReferenceFilterView = (props) => {
5366
6902
  const [t] = useTranslation();
5367
6903
  const activeFilters = useActiveAssetFilters(props.filterState.values);
5368
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
5369
6904
  const [searchText, setSearchText] = useState("");
5370
6905
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5371
- const { data, loading } = useQuery(GetFleetRentalCustomerParentExternalReferenceSummaryDocument, {
5372
- fetchPolicy: "cache-first",
5373
- context: {
5374
- headers: {
5375
- "TU-PREVIEW": "dragonfruit-monty",
5376
- },
5377
- },
5378
- variables: {
5379
- limit: FETCH_LIMIT$6,
5380
- search: debouncedSearch,
5381
- filters: {
5382
- ...activeFilters,
5383
- rentalActiveContractFilters: {
5384
- ...activeFilters.rentalActiveContractFilters,
5385
- customerParentExternalReferences: null,
5386
- },
5387
- },
6906
+ const filters = {
6907
+ ...activeFilters,
6908
+ rentalActiveContractFilters: {
6909
+ ...activeFilters.rentalActiveContractFilters,
6910
+ customerParentExternalReferences: null,
5388
6911
  },
5389
- });
6912
+ };
6913
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetRentalCustomerParentExternalReferenceSummaryConnectionDocument, "rentalContractCustomerParentExternalReferencesConnection", { search: debouncedSearch, filters }, RENTAL_PREVIEW_CONTEXT$3);
6914
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetRentalCustomerParentExternalReferenceSummaryMissingDocument, "rentalContractCustomerParentExternalReferencesConnection", filters, RENTAL_PREVIEW_CONTEXT$3);
6915
+ const loading = loadingValues || loadingMissing;
5390
6916
  const options = useMemo(() => {
5391
- return (data?.assetSummary?.rentalContractCustomerParentExternalReferences?.summary.map(edge => ({
5392
- key: edge.key || "unknown",
5393
- count: edge.count,
5394
- label: edge.key && edge.key !== "UNDEFINED" ? edge.key : t(`machine.types.Unknown`),
5395
- })) ?? []);
5396
- }, [data, t]);
5397
- useEffect(() => {
5398
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$6);
5399
- }, [options]);
5400
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
6917
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
6918
+ key: entry.key || "unknown",
6919
+ count: entry.count,
6920
+ label: entry.key && entry.key !== UNDEFINED_SUMMARY_KEY ? entry.key : t(`machine.types.Unknown`),
6921
+ }));
6922
+ }, [edges, missing, loading, t]);
6923
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
5401
6924
  };
5402
6925
  /**
5403
6926
  * Rental contract customer parent external reference filter definition
5404
- *
5405
- * @returns {StringArrayFilterDefinition} Rental contract customer parent external reference filter definition
5406
6927
  */
5407
6928
  const useRentalContractCustomerParentExternalReferenceFilter = (props) => {
5408
6929
  const [t] = useTranslation();
@@ -5420,57 +6941,42 @@ const useRentalContractCustomerParentExternalReferenceFilter = (props) => {
5420
6941
  return result;
5421
6942
  };
5422
6943
 
5423
- const FETCH_LIMIT$5 = 1000;
6944
+ const RENTAL_PREVIEW_CONTEXT$2 = {
6945
+ context: {
6946
+ headers: {
6947
+ "TU-PREVIEW": "dragonfruit-monty",
6948
+ },
6949
+ },
6950
+ };
5424
6951
  /**
5425
6952
  * Rental contract customer parent name filter view component.
5426
- *
5427
- * This component provides an interface to select rental contract customer parent names.
5428
- * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
5429
- *
5430
- * @param {FilterViewProps<Array<string>>} props - The props for the component.
5431
- * @returns {Element} The rendered component.
5432
6953
  */
5433
6954
  const RentalContractCustomerParentNameFilterView = (props) => {
5434
6955
  const [t] = useTranslation();
5435
6956
  const activeFilters = useActiveAssetFilters(props.filterState.values);
5436
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
5437
6957
  const [searchText, setSearchText] = useState("");
5438
6958
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5439
- const { data, loading } = useQuery(GetFleetRentalCustomerParentNameSummaryDocument, {
5440
- fetchPolicy: "cache-first",
5441
- context: {
5442
- headers: {
5443
- "TU-PREVIEW": "dragonfruit-monty",
5444
- },
5445
- },
5446
- variables: {
5447
- limit: FETCH_LIMIT$5,
5448
- search: debouncedSearch,
5449
- filters: {
5450
- ...activeFilters,
5451
- rentalActiveContractFilters: {
5452
- ...activeFilters.rentalActiveContractFilters,
5453
- customerParentNames: null,
5454
- },
5455
- },
6959
+ const filters = {
6960
+ ...activeFilters,
6961
+ rentalActiveContractFilters: {
6962
+ ...activeFilters.rentalActiveContractFilters,
6963
+ customerParentNames: null,
5456
6964
  },
5457
- });
6965
+ };
6966
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetRentalCustomerParentNameSummaryConnectionDocument, "rentalContractCustomerParentNamesConnection", { search: debouncedSearch, filters }, RENTAL_PREVIEW_CONTEXT$2);
6967
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetRentalCustomerParentNameSummaryMissingDocument, "rentalContractCustomerParentNamesConnection", filters, RENTAL_PREVIEW_CONTEXT$2);
6968
+ const loading = loadingValues || loadingMissing;
5458
6969
  const options = useMemo(() => {
5459
- return (data?.assetSummary?.rentalContractCustomerParentNames?.summary.map(edge => ({
5460
- key: edge.key || "unknown",
5461
- count: edge.count,
5462
- label: edge.key && edge.key !== "UNDEFINED" ? edge.key : t(`machine.types.Unknown`),
5463
- })) ?? []);
5464
- }, [data, t]);
5465
- useEffect(() => {
5466
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$5);
5467
- }, [options]);
5468
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
6970
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
6971
+ key: entry.key || "unknown",
6972
+ count: entry.count,
6973
+ label: entry.key && entry.key !== UNDEFINED_SUMMARY_KEY ? entry.key : t(`machine.types.Unknown`),
6974
+ }));
6975
+ }, [edges, missing, loading, t]);
6976
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
5469
6977
  };
5470
6978
  /**
5471
6979
  * Rental contract customer parent name filter definition
5472
- *
5473
- * @returns {StringArrayFilterDefinition} Rental contract customer parent name filter definition
5474
6980
  */
5475
6981
  const useRentalContractCustomerParentNameFilter = (props) => {
5476
6982
  const [t] = useTranslation();
@@ -5488,53 +6994,36 @@ const useRentalContractCustomerParentNameFilter = (props) => {
5488
6994
  return result;
5489
6995
  };
5490
6996
 
5491
- const FETCH_LIMIT$4 = 1000;
6997
+ const RENTAL_PREVIEW_CONTEXT$1 = {
6998
+ context: {
6999
+ headers: {
7000
+ "TU-PREVIEW": "dragonfruit-monty",
7001
+ },
7002
+ },
7003
+ };
5492
7004
  /**
5493
7005
  * Rental contract order numbers filter view component.
5494
- *
5495
- * This component provides an interface to select rental contract order numbers.
5496
- * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
5497
- *
5498
- * @param {FilterViewProps<Array<string>>} props - The props for the component.
5499
- * @returns {Element} The rendered component.
5500
7006
  */
5501
7007
  const RentalContractOrderNumberFilterView = (props) => {
7008
+ const [t] = useTranslation();
5502
7009
  const activeFilters = useActiveAssetFilters(props.filterState.values);
5503
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
5504
7010
  const [searchText, setSearchText] = useState("");
5505
7011
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5506
- const { data, loading } = useQuery(GetFleetRentalContractOrderNumberSummaryDocument, {
5507
- fetchPolicy: "cache-first",
5508
- context: {
5509
- headers: {
5510
- "TU-PREVIEW": "dragonfruit-monty",
5511
- },
5512
- },
5513
- variables: {
5514
- limit: FETCH_LIMIT$4,
5515
- search: debouncedSearch,
5516
- filters: {
5517
- ...activeFilters,
5518
- rentalContractOrderNumbers: null, // Omit the filters own values so list shows options correctly
5519
- },
5520
- },
5521
- });
7012
+ const filters = { ...activeFilters, rentalContractOrderNumbers: null };
7013
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetRentalContractOrderNumberSummaryConnectionDocument, "rentalContractOrderNumbersConnection", { search: debouncedSearch, filters }, RENTAL_PREVIEW_CONTEXT$1);
7014
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetRentalContractOrderNumberSummaryMissingDocument, "rentalContractOrderNumbersConnection", filters, RENTAL_PREVIEW_CONTEXT$1);
7015
+ const loading = loadingValues || loadingMissing;
5522
7016
  const options = useMemo(() => {
5523
- return (data?.assetSummary?.rentalContractOrderNumbers?.summary.map(edge => ({
5524
- key: edge.key || "unknown",
5525
- count: edge.count,
5526
- label: edge.key || "Unknown",
5527
- })) ?? []);
5528
- }, [data]);
5529
- useEffect(() => {
5530
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$4);
5531
- }, [options]);
5532
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
7017
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
7018
+ key: entry.key || "unknown",
7019
+ count: entry.count,
7020
+ label: entry.key && entry.key !== UNDEFINED_SUMMARY_KEY ? entry.key : t(`machine.types.Unknown`),
7021
+ }));
7022
+ }, [edges, missing, loading, t]);
7023
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
5533
7024
  };
5534
7025
  /**
5535
- * Rental contract order numbers filter definition
5536
- *
5537
- * @returns {StringArrayFilterDefinition} Rental contract order numbers filter definition
7026
+ * Rental contract order number filter definition
5538
7027
  */
5539
7028
  const useRentalContractOrderNumberFilter = (props) => {
5540
7029
  const [t] = useTranslation();
@@ -5667,53 +7156,36 @@ const useRentalContractReferenceCodeDescriptionFilter = (props) => {
5667
7156
  return result;
5668
7157
  };
5669
7158
 
5670
- const FETCH_LIMIT$3 = 1000;
7159
+ const RENTAL_PREVIEW_CONTEXT = {
7160
+ context: {
7161
+ headers: {
7162
+ "TU-PREVIEW": "dragonfruit-monty",
7163
+ },
7164
+ },
7165
+ };
5671
7166
  /**
5672
- * Rental contract order numbers filter view component.
5673
- *
5674
- * This component provides an interface to select rental contract order numbers.
5675
- * It fetches data from a GraphQL query and integrates with the filter bar's filtering logic.
5676
- *
5677
- * @param {FilterViewProps<Array<string>>} props - The props for the component.
5678
- * @returns {Element} The rendered component.
7167
+ * Rental contract reference code filter view component.
5679
7168
  */
5680
7169
  const RentalContractReferenceCodeFilterView = (props) => {
7170
+ const [t] = useTranslation();
5681
7171
  const activeFilters = useActiveAssetFilters(props.filterState.values);
5682
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
5683
7172
  const [searchText, setSearchText] = useState("");
5684
7173
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
5685
- const { data, loading } = useQuery(GetFleetRentalContractReferenceCodesSummaryDocument, {
5686
- fetchPolicy: "cache-first",
5687
- context: {
5688
- headers: {
5689
- "TU-PREVIEW": "dragonfruit-monty",
5690
- },
5691
- },
5692
- variables: {
5693
- limit: FETCH_LIMIT$3,
5694
- search: debouncedSearch,
5695
- filters: {
5696
- ...activeFilters,
5697
- rentalContractReferenceCodes: null, // Omit the filters own values so list shows options correctly
5698
- },
5699
- },
5700
- });
7174
+ const filters = { ...activeFilters, rentalContractReferenceCodes: null };
7175
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetRentalContractReferenceCodesSummaryConnectionDocument, "rentalContractReferenceCodesConnection", { search: debouncedSearch, filters }, RENTAL_PREVIEW_CONTEXT);
7176
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetRentalContractReferenceCodesSummaryMissingDocument, "rentalContractReferenceCodesConnection", filters, RENTAL_PREVIEW_CONTEXT);
7177
+ const loading = loadingValues || loadingMissing;
5701
7178
  const options = useMemo(() => {
5702
- return (data?.assetSummary?.rentalContractReferenceCodes?.summary.map(edge => ({
5703
- key: edge.key || "unknown",
5704
- count: edge.count,
5705
- label: edge.key || "Unknown",
5706
- })) ?? []);
5707
- }, [data]);
5708
- useEffect(() => {
5709
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$3);
5710
- }, [options]);
5711
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
7179
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
7180
+ key: entry.key || "unknown",
7181
+ count: entry.count,
7182
+ label: entry.key && entry.key !== UNDEFINED_SUMMARY_KEY ? entry.key : t(`machine.types.Unknown`),
7183
+ }));
7184
+ }, [edges, missing, loading, t]);
7185
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
5712
7186
  };
5713
7187
  /**
5714
7188
  * Rental contract reference code filter definition
5715
- *
5716
- * @returns {StringArrayFilterDefinition} Rental contract reference code filter definition
5717
7189
  */
5718
7190
  const useRentalContractReferenceCodeFilter = (props) => {
5719
7191
  const [t] = useTranslation();
@@ -5930,7 +7402,7 @@ const useServicePlanStatusFilter = ({ servicePlanStatusToShow = SERVICE_PLAN_STA
5930
7402
  return result;
5931
7403
  };
5932
7404
 
5933
- const FETCH_LIMIT$2 = 1000;
7405
+ const FETCH_LIMIT$1 = 1000;
5934
7406
  /**
5935
7407
  * Component for rendering a filter view specific to site depot ownership.
5936
7408
  *
@@ -5946,7 +7418,7 @@ const SiteDepotOwnershipIdsFilterView = (props) => {
5946
7418
  const { data, loading } = useQuery(GetSiteDepotOwnershipIdSummaryDocument, {
5947
7419
  fetchPolicy: "cache-first",
5948
7420
  variables: {
5949
- limit: FETCH_LIMIT$2,
7421
+ limit: FETCH_LIMIT$1,
5950
7422
  search: debouncedSearch,
5951
7423
  filters: {
5952
7424
  ...activeFilters,
@@ -5965,7 +7437,7 @@ const SiteDepotOwnershipIdsFilterView = (props) => {
5965
7437
  return result;
5966
7438
  }, [data?.assetSummary?.owningDepots?.summary, t]);
5967
7439
  useEffect(() => {
5968
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$2);
7440
+ setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$1);
5969
7441
  }, [options]);
5970
7442
  return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
5971
7443
  };
@@ -5991,7 +7463,7 @@ const useSiteDepotOwnershipIdsFilter = (props) => {
5991
7463
  return result;
5992
7464
  };
5993
7465
 
5994
- const FETCH_LIMIT$1 = 1000;
7466
+ const FETCH_LIMIT = 1000;
5995
7467
  /**
5996
7468
  * Filter view component for selecting Site IDs.
5997
7469
  *
@@ -6009,7 +7481,7 @@ const SiteIdsFilterView = (props) => {
6009
7481
  const { data, loading } = useQuery(GetSiteIdSummaryDocument, {
6010
7482
  fetchPolicy: "cache-first",
6011
7483
  variables: {
6012
- limit: FETCH_LIMIT$1,
7484
+ limit: FETCH_LIMIT,
6013
7485
  search: debouncedSearch,
6014
7486
  filters: {
6015
7487
  ...activeFilters,
@@ -6026,7 +7498,7 @@ const SiteIdsFilterView = (props) => {
6026
7498
  return result;
6027
7499
  }, [data?.assetSummary?.sites?.summary, props.hasCount]);
6028
7500
  useEffect(() => {
6029
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT$1);
7501
+ setShowRequestMoreUseSearch(options.length === FETCH_LIMIT);
6030
7502
  }, [options]);
6031
7503
  return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
6032
7504
  };
@@ -6287,47 +7759,32 @@ const useTelematicsConnectedFilter = () => {
6287
7759
  return result;
6288
7760
  };
6289
7761
 
6290
- const FETCH_LIMIT = 1000;
6291
7762
  /**
6292
7763
  * Functional component for rendering a checkbox filter for types.
6293
- *
6294
- * @param {FilterViewProps<string[]>} props - The properties passed to the filter view.
6295
- * @returns {ReactElement} The rendered filter view component.
6296
7764
  */
6297
7765
  const TypesFilterView = (props) => {
6298
7766
  const { getMachineTypeTranslation } = useMachineTypeTranslations();
6299
7767
  const activeFilters = useActiveAssetFilters(props.filterState.values);
6300
- const [showRequestMoreUseSearch, setShowRequestMoreUseSearch] = useState(false);
6301
7768
  const [searchText, setSearchText] = useState("");
6302
7769
  const debouncedSearch = useDebounce(searchText, { delay: 500 });
6303
- const { data, loading } = useQuery(GetFleetTypesSummaryDocument, {
6304
- fetchPolicy: "cache-first",
6305
- variables: {
6306
- limit: FETCH_LIMIT,
6307
- search: debouncedSearch,
6308
- filters: {
6309
- ...activeFilters,
6310
- types: null, // Omit the filters own values so list shows options correctly
6311
- },
6312
- },
7770
+ const filters = { ...activeFilters, types: null };
7771
+ const { edges, loading: loadingValues, pagination, } = useFleetSummaryConnection(GetFleetTypesSummaryConnectionDocument, "typesConnection", {
7772
+ search: debouncedSearch,
7773
+ filters,
6313
7774
  });
7775
+ const { missing, loading: loadingMissing } = useFacetMissingCount(GetFleetTypesSummaryMissingDocument, "typesConnection", filters);
7776
+ const loading = loadingValues || loadingMissing;
6314
7777
  const options = useMemo(() => {
6315
- const result = data?.assetSummary?.types?.summary.map(type => ({
6316
- key: type.key,
6317
- count: type.count,
6318
- label: getMachineTypeTranslation(type.key),
6319
- })) ?? [];
6320
- return result;
6321
- }, [data?.assetSummary?.types?.summary, getMachineTypeTranslation]);
6322
- useEffect(() => {
6323
- setShowRequestMoreUseSearch(options.length === FETCH_LIMIT);
6324
- }, [options]);
6325
- return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: loading, options: options, showRequestMoreUseSearch: showRequestMoreUseSearch }));
7778
+ return toSummaryEntries(edges, missing, loading).map(entry => ({
7779
+ key: entry.key,
7780
+ count: entry.count,
7781
+ label: getMachineTypeTranslation(entry.key),
7782
+ }));
7783
+ }, [edges, missing, loading, getMachineTypeTranslation]);
7784
+ return (jsx(DefaultCheckboxFilter, { ...props, customSearch: { value: searchText, onChange: setSearchText, onClear: () => setSearchText("") }, loading: Boolean(loading && options.length === 0), options: options, pagination: pagination }));
6326
7785
  };
6327
7786
  /**
6328
7787
  * Types filter definition
6329
- *
6330
- * @returns {StringArrayFilterDefinition} Types filter definition
6331
7788
  */
6332
7789
  const useTypesFilter = () => {
6333
7790
  const [t] = useTranslation();
@@ -6647,4 +8104,4 @@ const useDefaultAssetFilterBarDefinition = () => {
6647
8104
  */
6648
8105
  setupLibraryTranslations();
6649
8106
 
6650
- export { ALL_TYPES, AccessManagementMode, ActiveFilterFiltersView, ActivityFiltersView, AreaView, AssetActivityState, AssetIdsFiltersView, AssetLastSeen, AssetTypesFilterView, BrandFilterView, ClearItemButton, CriticalityFiltersView, CustomerIdsFilterView, DayPeriod, FollowedFiltersView, GetFleetGroupSummaryDocument, GroupIdsFilterView, HourIntervalFilterView, InsightsAfterTreatmentDieselExhaustFluidTankLevelFilterView, InsightsBatteryChargerStateFilterView, InsightsBatteryPotentialFilterView, InsightsBatteryStateOfChargePercentFilterView, InsightsFuelLevelFilterView, LastSeenFiltersView, MetadataCompletenessFilterView, ModelsFilterView, OwnerAccountIdsFilterView, PartnerFilterView, PeriodFilterView, ProductionYearFilterView, RecentSearchesFooter, RentalContractCustomerParentExternalReferenceFilterView, RentalContractCustomerParentNameFilterView, RentalContractOrderNumberFilterView, RentalContractReferenceCodeDescriptionFilterView, RentalContractReferenceCodeFilterView, SERVICE_PLAN_STATUSES_TO_SHOW, SearchFilterInline, ServicePanStatusesFiltersView, SiteDepotOwnershipIdsFilterView, SiteIdsFilterView, SiteStatus, SiteStatusFilterView, SiteTypeSFS, SiteTypesFilterView, TelematicsConnectedFiltersView, TypesFilterView, areaFilterInternalGeoJsonGeometrySchema, areaFilterInternalSchema, assetTypeConst, mapActivityToLabelId, mapMetadataCompletenessToLabelId, metadataCompleteness, metadataCompletenessOptions, placePredictionSchema, placeSchema, sortSiteTypeSummary, useAccessManagementModeFilter, useActiveFilterFilter, useActivityFilter, useAreaFilter, useAssetIdsFilter, useAssetTypeFilter, useBrandFilter, useCan1ProfileFilter, useCan2ProfileFilter, useCountryFilter, useCriticalityFilter, useCustomerIdsFilter, useDefaultAssetFilterBarDefinition, useDeviceHealthIssueCategoryFilter, useDeviceHealthIssueStatusFilter, useDeviceHealthIssueTypeFilter, useDeviceTypesFilter, useFirmwareVersionFilter, useFollowedFilter, useGroupIdsFilter, useHourIntervalFilter, useInsightsAfterTreatmentDieselExhaustFluidTankLevelFilter, useInsightsBatteryChargerStateFilter, useInsightsBatteryPotentialFilter, useInsightsBatteryStateOfChargePercentFilter, useInsightsFuelLevelFilter, useLastSeenFilter, useMetadataCompletenessFilter, useModbusProfileFilter, useModelsFilter, useNetworkTechnologyFilter, useOwnerAccountIdsFilter, usePartnerFilter, usePeriodFilter, usePlacesSearch, useProductionYearFilter, useRentalActiveContractItemOffRentDatesDateRangeFilter, useRentalActiveContractItemOnRentDatesDateRangeFilter, useRentalContractCustomerParentExternalReferenceFilter, useRentalContractCustomerParentNameFilter, useRentalContractOrderNumberFilter, useRentalContractReferenceCodeDescriptionFilter, useRentalContractReferenceCodeFilter, useSearchFilter, useServicePlanStatusFilter, useSiteDepotOwnershipIdsFilter, useSiteIdsFilter, useSiteStatusFilter, useSiteTypeFilter, useTelematicsConnectedFilter, useTypesFilter };
8107
+ export { ALL_TYPES, AccessManagementMode, ActiveFilterFiltersView, ActivityFiltersView, AreaView, AssetActivityState, AssetIdsFiltersView, AssetLastSeen, AssetTypesFilterView, BrandFilterView, ClearItemButton, CriticalityFiltersView, CustomerIdsFilterView, DayPeriod, FollowedFiltersView, GetFleetGroupSummaryConnectionDocument, GetFleetGroupSummaryMissingDocument, GroupIdsFilterView, HourIntervalFilterView, InsightsAfterTreatmentDieselExhaustFluidTankLevelFilterView, InsightsBatteryChargerStateFilterView, InsightsBatteryPotentialFilterView, InsightsBatteryStateOfChargePercentFilterView, InsightsFuelLevelFilterView, LastSeenFiltersView, MetadataCompletenessFilterView, ModelsFilterView, OwnerAccountIdsFilterView, PartnerFilterView, PeriodFilterView, ProductionYearFilterView, RecentSearchesFooter, RentalContractCustomerParentExternalReferenceFilterView, RentalContractCustomerParentNameFilterView, RentalContractOrderNumberFilterView, RentalContractReferenceCodeDescriptionFilterView, RentalContractReferenceCodeFilterView, SERVICE_PLAN_STATUSES_TO_SHOW, SearchFilterInline, ServicePanStatusesFiltersView, SiteDepotOwnershipIdsFilterView, SiteIdsFilterView, SiteStatus, SiteStatusFilterView, SiteTypeSFS, SiteTypesFilterView, TelematicsConnectedFiltersView, TypesFilterView, areaFilterInternalGeoJsonGeometrySchema, areaFilterInternalSchema, assetTypeConst, mapActivityToLabelId, mapMetadataCompletenessToLabelId, metadataCompleteness, metadataCompletenessOptions, placePredictionSchema, placeSchema, sortSiteTypeSummary, useAccessManagementModeFilter, useActiveFilterFilter, useActivityFilter, useAreaFilter, useAssetIdsFilter, useAssetTypeFilter, useBrandFilter, useCan1ProfileFilter, useCan2ProfileFilter, useCountryFilter, useCriticalityFilter, useCustomerIdsFilter, useDefaultAssetFilterBarDefinition, useDeviceHealthIssueCategoryFilter, useDeviceHealthIssueStatusFilter, useDeviceHealthIssueTypeFilter, useDeviceTypesFilter, useFirmwareVersionFilter, useFollowedFilter, useGroupIdsFilter, useHourIntervalFilter, useInsightsAfterTreatmentDieselExhaustFluidTankLevelFilter, useInsightsBatteryChargerStateFilter, useInsightsBatteryPotentialFilter, useInsightsBatteryStateOfChargePercentFilter, useInsightsFuelLevelFilter, useLastSeenFilter, useMetadataCompletenessFilter, useModbusProfileFilter, useModelsFilter, useNetworkTechnologyFilter, useOwnerAccountIdsFilter, usePartnerFilter, usePeriodFilter, usePlacesSearch, useProductionYearFilter, useRentalActiveContractItemOffRentDatesDateRangeFilter, useRentalActiveContractItemOnRentDatesDateRangeFilter, useRentalContractCustomerParentExternalReferenceFilter, useRentalContractCustomerParentNameFilter, useRentalContractOrderNumberFilter, useRentalContractReferenceCodeDescriptionFilter, useRentalContractReferenceCodeFilter, useSearchFilter, useServicePlanStatusFilter, useSiteDepotOwnershipIdsFilter, useSiteIdsFilter, useSiteStatusFilter, useSiteTypeFilter, useTelematicsConnectedFilter, useTypesFilter };