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