@trackunit/filters-asset-filter-definitions 1.3.26 → 1.3.29
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 +711 -6
- package/index.esm.js +690 -7
- package/package.json +5 -5
- package/src/generated/graphql-api/gql.d.ts +2 -2
- package/src/generated/graphql-api/graphql.d.ts +14 -21
- package/src/index.d.ts +1 -0
package/index.cjs.js
CHANGED
|
@@ -18,6 +18,8 @@ var sharedUtils = require('@trackunit/shared-utils');
|
|
|
18
18
|
var translationsMachineType = require('@trackunit/translations-machine-type');
|
|
19
19
|
var criticalityIndicator = require('@trackunit/criticality-indicator');
|
|
20
20
|
var tailwindMerge = require('tailwind-merge');
|
|
21
|
+
var utilities = require('@apollo/client/utilities');
|
|
22
|
+
var reactCoreContextsTest = require('@trackunit/react-core-contexts-test');
|
|
21
23
|
var reactRouter = require('@tanstack/react-router');
|
|
22
24
|
|
|
23
25
|
var defaultTranslations = {
|
|
@@ -811,6 +813,84 @@ const GetFleetModelsSummaryDocument = {
|
|
|
811
813
|
},
|
|
812
814
|
],
|
|
813
815
|
};
|
|
816
|
+
const GetCustomFieldSummaryDocument = {
|
|
817
|
+
kind: "Document",
|
|
818
|
+
definitions: [
|
|
819
|
+
{
|
|
820
|
+
kind: "OperationDefinition",
|
|
821
|
+
operation: "query",
|
|
822
|
+
name: { kind: "Name", value: "GetCustomFieldSummary" },
|
|
823
|
+
variableDefinitions: [
|
|
824
|
+
{
|
|
825
|
+
kind: "VariableDefinition",
|
|
826
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
827
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
kind: "VariableDefinition",
|
|
831
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "definitionIds" } },
|
|
832
|
+
type: {
|
|
833
|
+
kind: "NonNullType",
|
|
834
|
+
type: {
|
|
835
|
+
kind: "ListType",
|
|
836
|
+
type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } },
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
],
|
|
841
|
+
selectionSet: {
|
|
842
|
+
kind: "SelectionSet",
|
|
843
|
+
selections: [
|
|
844
|
+
{
|
|
845
|
+
kind: "Field",
|
|
846
|
+
name: { kind: "Name", value: "assetSummary" },
|
|
847
|
+
arguments: [
|
|
848
|
+
{
|
|
849
|
+
kind: "Argument",
|
|
850
|
+
name: { kind: "Name", value: "filters" },
|
|
851
|
+
value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
852
|
+
},
|
|
853
|
+
],
|
|
854
|
+
selectionSet: {
|
|
855
|
+
kind: "SelectionSet",
|
|
856
|
+
selections: [
|
|
857
|
+
{
|
|
858
|
+
kind: "Field",
|
|
859
|
+
name: { kind: "Name", value: "customFields" },
|
|
860
|
+
arguments: [
|
|
861
|
+
{
|
|
862
|
+
kind: "Argument",
|
|
863
|
+
name: { kind: "Name", value: "definitionIds" },
|
|
864
|
+
value: { kind: "Variable", name: { kind: "Name", value: "definitionIds" } },
|
|
865
|
+
},
|
|
866
|
+
],
|
|
867
|
+
selectionSet: {
|
|
868
|
+
kind: "SelectionSet",
|
|
869
|
+
selections: [
|
|
870
|
+
{ kind: "Field", name: { kind: "Name", value: "definitionId" } },
|
|
871
|
+
{ kind: "Field", name: { kind: "Name", value: "total" } },
|
|
872
|
+
{
|
|
873
|
+
kind: "Field",
|
|
874
|
+
name: { kind: "Name", value: "summary" },
|
|
875
|
+
selectionSet: {
|
|
876
|
+
kind: "SelectionSet",
|
|
877
|
+
selections: [
|
|
878
|
+
{ kind: "Field", name: { kind: "Name", value: "key" } },
|
|
879
|
+
{ kind: "Field", name: { kind: "Name", value: "count" } },
|
|
880
|
+
],
|
|
881
|
+
},
|
|
882
|
+
},
|
|
883
|
+
],
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
],
|
|
887
|
+
},
|
|
888
|
+
},
|
|
889
|
+
],
|
|
890
|
+
},
|
|
891
|
+
},
|
|
892
|
+
],
|
|
893
|
+
};
|
|
814
894
|
const GetFleetBrandsSummaryDocument = {
|
|
815
895
|
kind: "Document",
|
|
816
896
|
definitions: [
|
|
@@ -1104,6 +1184,65 @@ const GetFleetProductionYearsSummaryDocument = {
|
|
|
1104
1184
|
},
|
|
1105
1185
|
],
|
|
1106
1186
|
};
|
|
1187
|
+
const GetServicePlanNamesSummaryDocument = {
|
|
1188
|
+
kind: "Document",
|
|
1189
|
+
definitions: [
|
|
1190
|
+
{
|
|
1191
|
+
kind: "OperationDefinition",
|
|
1192
|
+
operation: "query",
|
|
1193
|
+
name: { kind: "Name", value: "GetServicePlanNamesSummary" },
|
|
1194
|
+
variableDefinitions: [
|
|
1195
|
+
{
|
|
1196
|
+
kind: "VariableDefinition",
|
|
1197
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
1198
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
|
|
1199
|
+
},
|
|
1200
|
+
],
|
|
1201
|
+
selectionSet: {
|
|
1202
|
+
kind: "SelectionSet",
|
|
1203
|
+
selections: [
|
|
1204
|
+
{
|
|
1205
|
+
kind: "Field",
|
|
1206
|
+
name: { kind: "Name", value: "assetSummary" },
|
|
1207
|
+
arguments: [
|
|
1208
|
+
{
|
|
1209
|
+
kind: "Argument",
|
|
1210
|
+
name: { kind: "Name", value: "filters" },
|
|
1211
|
+
value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
1212
|
+
},
|
|
1213
|
+
],
|
|
1214
|
+
selectionSet: {
|
|
1215
|
+
kind: "SelectionSet",
|
|
1216
|
+
selections: [
|
|
1217
|
+
{
|
|
1218
|
+
kind: "Field",
|
|
1219
|
+
name: { kind: "Name", value: "servicePlanNames" },
|
|
1220
|
+
selectionSet: {
|
|
1221
|
+
kind: "SelectionSet",
|
|
1222
|
+
selections: [
|
|
1223
|
+
{ kind: "Field", name: { kind: "Name", value: "total" } },
|
|
1224
|
+
{
|
|
1225
|
+
kind: "Field",
|
|
1226
|
+
name: { kind: "Name", value: "summary" },
|
|
1227
|
+
selectionSet: {
|
|
1228
|
+
kind: "SelectionSet",
|
|
1229
|
+
selections: [
|
|
1230
|
+
{ kind: "Field", name: { kind: "Name", value: "key" } },
|
|
1231
|
+
{ kind: "Field", name: { kind: "Name", value: "count" } },
|
|
1232
|
+
],
|
|
1233
|
+
},
|
|
1234
|
+
},
|
|
1235
|
+
],
|
|
1236
|
+
},
|
|
1237
|
+
},
|
|
1238
|
+
],
|
|
1239
|
+
},
|
|
1240
|
+
},
|
|
1241
|
+
],
|
|
1242
|
+
},
|
|
1243
|
+
},
|
|
1244
|
+
],
|
|
1245
|
+
};
|
|
1107
1246
|
const GetFleetServicePlanStatusesSummaryDocument = {
|
|
1108
1247
|
kind: "Document",
|
|
1109
1248
|
definitions: [
|
|
@@ -1154,6 +1293,115 @@ const GetFleetServicePlanStatusesSummaryDocument = {
|
|
|
1154
1293
|
},
|
|
1155
1294
|
],
|
|
1156
1295
|
};
|
|
1296
|
+
const GetFleetServiceProvidersSummaryDocument = {
|
|
1297
|
+
kind: "Document",
|
|
1298
|
+
definitions: [
|
|
1299
|
+
{
|
|
1300
|
+
kind: "OperationDefinition",
|
|
1301
|
+
operation: "query",
|
|
1302
|
+
name: { kind: "Name", value: "GetFleetServiceProvidersSummary" },
|
|
1303
|
+
variableDefinitions: [
|
|
1304
|
+
{
|
|
1305
|
+
kind: "VariableDefinition",
|
|
1306
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
1307
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
|
|
1308
|
+
},
|
|
1309
|
+
],
|
|
1310
|
+
selectionSet: {
|
|
1311
|
+
kind: "SelectionSet",
|
|
1312
|
+
selections: [
|
|
1313
|
+
{
|
|
1314
|
+
kind: "Field",
|
|
1315
|
+
name: { kind: "Name", value: "assetSummary" },
|
|
1316
|
+
arguments: [
|
|
1317
|
+
{
|
|
1318
|
+
kind: "Argument",
|
|
1319
|
+
name: { kind: "Name", value: "filters" },
|
|
1320
|
+
value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
1321
|
+
},
|
|
1322
|
+
],
|
|
1323
|
+
selectionSet: {
|
|
1324
|
+
kind: "SelectionSet",
|
|
1325
|
+
selections: [
|
|
1326
|
+
{
|
|
1327
|
+
kind: "Field",
|
|
1328
|
+
name: { kind: "Name", value: "serviceProviders" },
|
|
1329
|
+
selectionSet: {
|
|
1330
|
+
kind: "SelectionSet",
|
|
1331
|
+
selections: [
|
|
1332
|
+
{ kind: "Field", name: { kind: "Name", value: "total" } },
|
|
1333
|
+
{
|
|
1334
|
+
kind: "Field",
|
|
1335
|
+
name: { kind: "Name", value: "summary" },
|
|
1336
|
+
selectionSet: {
|
|
1337
|
+
kind: "SelectionSet",
|
|
1338
|
+
selections: [
|
|
1339
|
+
{ kind: "Field", name: { kind: "Name", value: "key" } },
|
|
1340
|
+
{ kind: "Field", name: { kind: "Name", value: "count" } },
|
|
1341
|
+
],
|
|
1342
|
+
},
|
|
1343
|
+
},
|
|
1344
|
+
],
|
|
1345
|
+
},
|
|
1346
|
+
},
|
|
1347
|
+
],
|
|
1348
|
+
},
|
|
1349
|
+
},
|
|
1350
|
+
],
|
|
1351
|
+
},
|
|
1352
|
+
},
|
|
1353
|
+
],
|
|
1354
|
+
};
|
|
1355
|
+
const GetFleetServicePlanAssignmentsSummaryDocument = {
|
|
1356
|
+
kind: "Document",
|
|
1357
|
+
definitions: [
|
|
1358
|
+
{
|
|
1359
|
+
kind: "OperationDefinition",
|
|
1360
|
+
operation: "query",
|
|
1361
|
+
name: { kind: "Name", value: "GetFleetServicePlanAssignmentsSummary" },
|
|
1362
|
+
variableDefinitions: [
|
|
1363
|
+
{
|
|
1364
|
+
kind: "VariableDefinition",
|
|
1365
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
1366
|
+
type: { kind: "NamedType", name: { kind: "Name", value: "AssetFiltersInput" } },
|
|
1367
|
+
},
|
|
1368
|
+
],
|
|
1369
|
+
selectionSet: {
|
|
1370
|
+
kind: "SelectionSet",
|
|
1371
|
+
selections: [
|
|
1372
|
+
{
|
|
1373
|
+
kind: "Field",
|
|
1374
|
+
name: { kind: "Name", value: "assetSummary" },
|
|
1375
|
+
arguments: [
|
|
1376
|
+
{
|
|
1377
|
+
kind: "Argument",
|
|
1378
|
+
name: { kind: "Name", value: "filters" },
|
|
1379
|
+
value: { kind: "Variable", name: { kind: "Name", value: "filters" } },
|
|
1380
|
+
},
|
|
1381
|
+
],
|
|
1382
|
+
selectionSet: {
|
|
1383
|
+
kind: "SelectionSet",
|
|
1384
|
+
selections: [
|
|
1385
|
+
{
|
|
1386
|
+
kind: "Field",
|
|
1387
|
+
name: { kind: "Name", value: "servicePlanAssignments" },
|
|
1388
|
+
selectionSet: {
|
|
1389
|
+
kind: "SelectionSet",
|
|
1390
|
+
selections: [
|
|
1391
|
+
{ kind: "Field", name: { kind: "Name", value: "fullyConfigured" } },
|
|
1392
|
+
{ kind: "Field", name: { kind: "Name", value: "partiallyConfigured" } },
|
|
1393
|
+
{ kind: "Field", name: { kind: "Name", value: "notConfigured" } },
|
|
1394
|
+
],
|
|
1395
|
+
},
|
|
1396
|
+
},
|
|
1397
|
+
],
|
|
1398
|
+
},
|
|
1399
|
+
},
|
|
1400
|
+
],
|
|
1401
|
+
},
|
|
1402
|
+
},
|
|
1403
|
+
],
|
|
1404
|
+
};
|
|
1157
1405
|
const GetFleetActivitySummaryDocument = {
|
|
1158
1406
|
kind: "Document",
|
|
1159
1407
|
definitions: [
|
|
@@ -1559,19 +1807,28 @@ const GetPlaceAutocompletePredictionsDocument = {
|
|
|
1559
1807
|
selections: [
|
|
1560
1808
|
{
|
|
1561
1809
|
kind: "Field",
|
|
1562
|
-
name: { kind: "Name", value: "
|
|
1810
|
+
name: { kind: "Name", value: "placeAutocomplete" },
|
|
1563
1811
|
arguments: [
|
|
1564
1812
|
{
|
|
1565
1813
|
kind: "Argument",
|
|
1566
|
-
name: { kind: "Name", value: "
|
|
1814
|
+
name: { kind: "Name", value: "input" },
|
|
1567
1815
|
value: { kind: "Variable", name: { kind: "Name", value: "search" } },
|
|
1568
1816
|
},
|
|
1569
1817
|
],
|
|
1570
1818
|
selectionSet: {
|
|
1571
1819
|
kind: "SelectionSet",
|
|
1572
1820
|
selections: [
|
|
1573
|
-
{
|
|
1574
|
-
|
|
1821
|
+
{
|
|
1822
|
+
kind: "Field",
|
|
1823
|
+
name: { kind: "Name", value: "predictions" },
|
|
1824
|
+
selectionSet: {
|
|
1825
|
+
kind: "SelectionSet",
|
|
1826
|
+
selections: [
|
|
1827
|
+
{ kind: "Field", name: { kind: "Name", value: "placeId" } },
|
|
1828
|
+
{ kind: "Field", name: { kind: "Name", value: "description" } },
|
|
1829
|
+
],
|
|
1830
|
+
},
|
|
1831
|
+
},
|
|
1575
1832
|
],
|
|
1576
1833
|
},
|
|
1577
1834
|
},
|
|
@@ -1833,7 +2090,7 @@ const usePlacesSearch = ({ localStorageKey = SHARED_LOCATIONS_LOCAL_STORAGE_KEY,
|
|
|
1833
2090
|
coordinates: details.geometry.coordinates,
|
|
1834
2091
|
}
|
|
1835
2092
|
: undefined);
|
|
1836
|
-
if (!parsedGeometry.success || !parsedBbox.success || !details.properties
|
|
2093
|
+
if (!parsedGeometry.success || !parsedBbox.success || !details.properties.formattedAddress) {
|
|
1837
2094
|
return null;
|
|
1838
2095
|
}
|
|
1839
2096
|
return {
|
|
@@ -1847,7 +2104,7 @@ const usePlacesSearch = ({ localStorageKey = SHARED_LOCATIONS_LOCAL_STORAGE_KEY,
|
|
|
1847
2104
|
// List of predictions or recent places
|
|
1848
2105
|
const places = react.useMemo(() => {
|
|
1849
2106
|
if (debouncedSearchString) {
|
|
1850
|
-
return stablePlaceAutocompleteData?.
|
|
2107
|
+
return stablePlaceAutocompleteData?.placeAutocomplete?.predictions ?? [];
|
|
1851
2108
|
}
|
|
1852
2109
|
return recentPlaces;
|
|
1853
2110
|
}, [debouncedSearchString, stablePlaceAutocompleteData, recentPlaces]);
|
|
@@ -3287,6 +3544,432 @@ const useTypesFilter = () => {
|
|
|
3287
3544
|
return result;
|
|
3288
3545
|
};
|
|
3289
3546
|
|
|
3547
|
+
const mockForGetFleetAssetTypesSummaryQuery = (variables, data) => {
|
|
3548
|
+
return reactCoreContextsTest.queryFor(GetFleetAssetTypesSummaryDocument, variables, utilities.mergeDeep({
|
|
3549
|
+
__typename: "Query",
|
|
3550
|
+
assetSummary: {
|
|
3551
|
+
__typename: "AssetSummary",
|
|
3552
|
+
assetTypes: {
|
|
3553
|
+
__typename: "AssetTypesSummary",
|
|
3554
|
+
total: 6273236744536064,
|
|
3555
|
+
summary: {
|
|
3556
|
+
__typename: "AssetTypeSummary",
|
|
3557
|
+
machines: 6273236744536064,
|
|
3558
|
+
attachments: 6273236744536064,
|
|
3559
|
+
equipments: 6273236744536064,
|
|
3560
|
+
tools: 6273236744536064,
|
|
3561
|
+
gateways: 6273236744536064,
|
|
3562
|
+
others: 6273236744536064,
|
|
3563
|
+
vehicles: 6273236744536064,
|
|
3564
|
+
},
|
|
3565
|
+
},
|
|
3566
|
+
},
|
|
3567
|
+
}, data || {}));
|
|
3568
|
+
};
|
|
3569
|
+
const mockForGetFleetSiteTypeSummaryQuery = (variables, data) => {
|
|
3570
|
+
return reactCoreContextsTest.queryFor(GetFleetSiteTypeSummaryDocument, variables, utilities.mergeDeep({
|
|
3571
|
+
__typename: "Query",
|
|
3572
|
+
assetSummary: {
|
|
3573
|
+
__typename: "AssetSummary",
|
|
3574
|
+
siteTypes: {
|
|
3575
|
+
__typename: "SiteTypesSummary",
|
|
3576
|
+
total: 6273236744536064,
|
|
3577
|
+
summary: [
|
|
3578
|
+
{
|
|
3579
|
+
__typename: "SiteTypeSummary",
|
|
3580
|
+
siteType: "AREA",
|
|
3581
|
+
count: 6273236744536064,
|
|
3582
|
+
},
|
|
3583
|
+
],
|
|
3584
|
+
},
|
|
3585
|
+
},
|
|
3586
|
+
}, data || {}));
|
|
3587
|
+
};
|
|
3588
|
+
const mockForGetMetadataCompletenessSummaryQuery = (variables, data) => {
|
|
3589
|
+
return reactCoreContextsTest.queryFor(GetMetadataCompletenessSummaryDocument, variables, utilities.mergeDeep({
|
|
3590
|
+
__typename: "Query",
|
|
3591
|
+
assetSummary: {
|
|
3592
|
+
__typename: "AssetSummary",
|
|
3593
|
+
metadataCompletenesses: {
|
|
3594
|
+
__typename: "MetadataCompletenessesSummary",
|
|
3595
|
+
total: 6273236744536064,
|
|
3596
|
+
summary: [
|
|
3597
|
+
{
|
|
3598
|
+
__typename: "MetadataCompletenessSummary",
|
|
3599
|
+
metadataCompleteness: "COMPLETE",
|
|
3600
|
+
count: 6273236744536064,
|
|
3601
|
+
},
|
|
3602
|
+
],
|
|
3603
|
+
},
|
|
3604
|
+
},
|
|
3605
|
+
}, data || {}));
|
|
3606
|
+
};
|
|
3607
|
+
const mockForGetFleetGroupSummaryQuery = (variables, data) => {
|
|
3608
|
+
return reactCoreContextsTest.queryFor(GetFleetGroupSummaryDocument, variables, utilities.mergeDeep({
|
|
3609
|
+
__typename: "Query",
|
|
3610
|
+
assetSummary: {
|
|
3611
|
+
__typename: "AssetSummary",
|
|
3612
|
+
groups: {
|
|
3613
|
+
__typename: "GroupsSummary",
|
|
3614
|
+
total: 6273236744536064,
|
|
3615
|
+
missing: 6273236744536064,
|
|
3616
|
+
summary: [
|
|
3617
|
+
{
|
|
3618
|
+
__typename: "GroupSummary",
|
|
3619
|
+
count: 6273236744536064,
|
|
3620
|
+
group: {
|
|
3621
|
+
__typename: "Group",
|
|
3622
|
+
id: "subito",
|
|
3623
|
+
groupId: "subito",
|
|
3624
|
+
name: "subito",
|
|
3625
|
+
},
|
|
3626
|
+
},
|
|
3627
|
+
],
|
|
3628
|
+
},
|
|
3629
|
+
},
|
|
3630
|
+
}, data || {}));
|
|
3631
|
+
};
|
|
3632
|
+
const mockForGetFleetOwnerAccountSummaryQuery = (variables, data) => {
|
|
3633
|
+
return reactCoreContextsTest.queryFor(GetFleetOwnerAccountSummaryDocument, variables, utilities.mergeDeep({
|
|
3634
|
+
__typename: "Query",
|
|
3635
|
+
assetSummary: {
|
|
3636
|
+
__typename: "AssetSummary",
|
|
3637
|
+
ownerAccounts: {
|
|
3638
|
+
__typename: "OwnerAccountsSummary",
|
|
3639
|
+
total: 6273236744536064,
|
|
3640
|
+
summary: [
|
|
3641
|
+
{
|
|
3642
|
+
__typename: "OwnerAccountSummary",
|
|
3643
|
+
count: 6273236744536064,
|
|
3644
|
+
ownerAccount: {
|
|
3645
|
+
__typename: "Account",
|
|
3646
|
+
accountId: "subito",
|
|
3647
|
+
name: "subito",
|
|
3648
|
+
},
|
|
3649
|
+
},
|
|
3650
|
+
],
|
|
3651
|
+
},
|
|
3652
|
+
},
|
|
3653
|
+
}, data || {}));
|
|
3654
|
+
};
|
|
3655
|
+
const mockForGetFleetModelsSummaryQuery = (variables, data) => {
|
|
3656
|
+
return reactCoreContextsTest.queryFor(GetFleetModelsSummaryDocument, variables, utilities.mergeDeep({
|
|
3657
|
+
__typename: "Query",
|
|
3658
|
+
assetSummary: {
|
|
3659
|
+
__typename: "AssetSummary",
|
|
3660
|
+
models: {
|
|
3661
|
+
__typename: "MetadataSummary",
|
|
3662
|
+
total: 6273236744536064,
|
|
3663
|
+
summary: [
|
|
3664
|
+
{
|
|
3665
|
+
__typename: "Summary",
|
|
3666
|
+
key: "subito",
|
|
3667
|
+
count: 6273236744536064,
|
|
3668
|
+
},
|
|
3669
|
+
],
|
|
3670
|
+
},
|
|
3671
|
+
},
|
|
3672
|
+
}, data || {}));
|
|
3673
|
+
};
|
|
3674
|
+
const mockForGetCustomFieldSummaryQuery = (variables, data) => {
|
|
3675
|
+
return reactCoreContextsTest.queryFor(GetCustomFieldSummaryDocument, variables, utilities.mergeDeep({
|
|
3676
|
+
__typename: "Query",
|
|
3677
|
+
assetSummary: {
|
|
3678
|
+
__typename: "AssetSummary",
|
|
3679
|
+
customFields: [
|
|
3680
|
+
{
|
|
3681
|
+
__typename: "CustomFieldSummary",
|
|
3682
|
+
definitionId: "subito",
|
|
3683
|
+
total: 6273236744536064,
|
|
3684
|
+
summary: [
|
|
3685
|
+
{
|
|
3686
|
+
__typename: "Summary",
|
|
3687
|
+
key: "subito",
|
|
3688
|
+
count: 6273236744536064,
|
|
3689
|
+
},
|
|
3690
|
+
],
|
|
3691
|
+
},
|
|
3692
|
+
],
|
|
3693
|
+
},
|
|
3694
|
+
}, data || {}));
|
|
3695
|
+
};
|
|
3696
|
+
const mockForGetFleetBrandsSummaryQuery = (variables, data) => {
|
|
3697
|
+
return reactCoreContextsTest.queryFor(GetFleetBrandsSummaryDocument, variables, utilities.mergeDeep({
|
|
3698
|
+
__typename: "Query",
|
|
3699
|
+
assetSummary: {
|
|
3700
|
+
__typename: "AssetSummary",
|
|
3701
|
+
brands: {
|
|
3702
|
+
__typename: "MetadataSummary",
|
|
3703
|
+
total: 6273236744536064,
|
|
3704
|
+
summary: [
|
|
3705
|
+
{
|
|
3706
|
+
__typename: "Summary",
|
|
3707
|
+
key: "subito",
|
|
3708
|
+
count: 6273236744536064,
|
|
3709
|
+
},
|
|
3710
|
+
],
|
|
3711
|
+
},
|
|
3712
|
+
},
|
|
3713
|
+
}, data || {}));
|
|
3714
|
+
};
|
|
3715
|
+
const mockForGetFleetTypesSummaryQuery = (variables, data) => {
|
|
3716
|
+
return reactCoreContextsTest.queryFor(GetFleetTypesSummaryDocument, variables, utilities.mergeDeep({
|
|
3717
|
+
__typename: "Query",
|
|
3718
|
+
assetSummary: {
|
|
3719
|
+
__typename: "AssetSummary",
|
|
3720
|
+
types: {
|
|
3721
|
+
__typename: "MetadataSummary",
|
|
3722
|
+
total: 6273236744536064,
|
|
3723
|
+
summary: [
|
|
3724
|
+
{
|
|
3725
|
+
__typename: "Summary",
|
|
3726
|
+
key: "subito",
|
|
3727
|
+
count: 6273236744536064,
|
|
3728
|
+
},
|
|
3729
|
+
],
|
|
3730
|
+
},
|
|
3731
|
+
},
|
|
3732
|
+
}, data || {}));
|
|
3733
|
+
};
|
|
3734
|
+
const mockForGetFleetCriticalitySummaryQuery = (variables, data) => {
|
|
3735
|
+
return reactCoreContextsTest.queryFor(GetFleetCriticalitySummaryDocument, variables, utilities.mergeDeep({
|
|
3736
|
+
__typename: "Query",
|
|
3737
|
+
assetSummary: {
|
|
3738
|
+
__typename: "AssetSummary",
|
|
3739
|
+
criticality: {
|
|
3740
|
+
__typename: "CriticalitySummary",
|
|
3741
|
+
critical: 6273236744536064,
|
|
3742
|
+
low: 6273236744536064,
|
|
3743
|
+
good: 6273236744536064,
|
|
3744
|
+
},
|
|
3745
|
+
},
|
|
3746
|
+
}, data || {}));
|
|
3747
|
+
};
|
|
3748
|
+
const mockForGetFleetProductionYearsSummaryQuery = (variables, data) => {
|
|
3749
|
+
return reactCoreContextsTest.queryFor(GetFleetProductionYearsSummaryDocument, variables, utilities.mergeDeep({
|
|
3750
|
+
__typename: "Query",
|
|
3751
|
+
assetSummary: {
|
|
3752
|
+
__typename: "AssetSummary",
|
|
3753
|
+
productionYears: {
|
|
3754
|
+
__typename: "MetadataSummary",
|
|
3755
|
+
total: 6273236744536064,
|
|
3756
|
+
summary: [
|
|
3757
|
+
{
|
|
3758
|
+
__typename: "Summary",
|
|
3759
|
+
key: "subito",
|
|
3760
|
+
count: 6273236744536064,
|
|
3761
|
+
},
|
|
3762
|
+
],
|
|
3763
|
+
},
|
|
3764
|
+
},
|
|
3765
|
+
}, data || {}));
|
|
3766
|
+
};
|
|
3767
|
+
const mockForGetServicePlanNamesSummaryQuery = (variables, data) => {
|
|
3768
|
+
return reactCoreContextsTest.queryFor(GetServicePlanNamesSummaryDocument, variables, utilities.mergeDeep({
|
|
3769
|
+
__typename: "Query",
|
|
3770
|
+
assetSummary: {
|
|
3771
|
+
__typename: "AssetSummary",
|
|
3772
|
+
servicePlanNames: {
|
|
3773
|
+
__typename: "MetadataSummary",
|
|
3774
|
+
total: 6273236744536064,
|
|
3775
|
+
summary: [
|
|
3776
|
+
{
|
|
3777
|
+
__typename: "Summary",
|
|
3778
|
+
key: "subito",
|
|
3779
|
+
count: 6273236744536064,
|
|
3780
|
+
},
|
|
3781
|
+
],
|
|
3782
|
+
},
|
|
3783
|
+
},
|
|
3784
|
+
}, data || {}));
|
|
3785
|
+
};
|
|
3786
|
+
const mockForGetFleetServicePlanStatusesSummaryQuery = (variables, data) => {
|
|
3787
|
+
return reactCoreContextsTest.queryFor(GetFleetServicePlanStatusesSummaryDocument, variables, utilities.mergeDeep({
|
|
3788
|
+
__typename: "Query",
|
|
3789
|
+
assetSummary: {
|
|
3790
|
+
__typename: "AssetSummary",
|
|
3791
|
+
servicePlanStatuses: {
|
|
3792
|
+
__typename: "ServicePlanStatusSummary",
|
|
3793
|
+
overdue: 6273236744536064,
|
|
3794
|
+
upcoming: 6273236744536064,
|
|
3795
|
+
planned: 6273236744536064,
|
|
3796
|
+
},
|
|
3797
|
+
},
|
|
3798
|
+
}, data || {}));
|
|
3799
|
+
};
|
|
3800
|
+
const mockForGetFleetServiceProvidersSummaryQuery = (variables, data) => {
|
|
3801
|
+
return reactCoreContextsTest.queryFor(GetFleetServiceProvidersSummaryDocument, variables, utilities.mergeDeep({
|
|
3802
|
+
__typename: "Query",
|
|
3803
|
+
assetSummary: {
|
|
3804
|
+
__typename: "AssetSummary",
|
|
3805
|
+
serviceProviders: {
|
|
3806
|
+
__typename: "MetadataSummary",
|
|
3807
|
+
total: 6273236744536064,
|
|
3808
|
+
summary: [
|
|
3809
|
+
{
|
|
3810
|
+
__typename: "Summary",
|
|
3811
|
+
key: "subito",
|
|
3812
|
+
count: 6273236744536064,
|
|
3813
|
+
},
|
|
3814
|
+
],
|
|
3815
|
+
},
|
|
3816
|
+
},
|
|
3817
|
+
}, data || {}));
|
|
3818
|
+
};
|
|
3819
|
+
const mockForGetFleetServicePlanAssignmentsSummaryQuery = (variables, data) => {
|
|
3820
|
+
return reactCoreContextsTest.queryFor(GetFleetServicePlanAssignmentsSummaryDocument, variables, utilities.mergeDeep({
|
|
3821
|
+
__typename: "Query",
|
|
3822
|
+
assetSummary: {
|
|
3823
|
+
__typename: "AssetSummary",
|
|
3824
|
+
servicePlanAssignments: {
|
|
3825
|
+
__typename: "ServicePlanAssignmentSummary",
|
|
3826
|
+
fullyConfigured: 6273236744536064,
|
|
3827
|
+
partiallyConfigured: 6273236744536064,
|
|
3828
|
+
notConfigured: 6273236744536064,
|
|
3829
|
+
},
|
|
3830
|
+
},
|
|
3831
|
+
}, data || {}));
|
|
3832
|
+
};
|
|
3833
|
+
const mockForGetFleetActivitySummaryQuery = (variables, data) => {
|
|
3834
|
+
return reactCoreContextsTest.queryFor(GetFleetActivitySummaryDocument, variables, utilities.mergeDeep({
|
|
3835
|
+
__typename: "Query",
|
|
3836
|
+
assetSummary: {
|
|
3837
|
+
__typename: "AssetSummary",
|
|
3838
|
+
activity: {
|
|
3839
|
+
__typename: "ActivitySummary",
|
|
3840
|
+
working: 6273236744536064,
|
|
3841
|
+
idling: 6273236744536064,
|
|
3842
|
+
stopped: 6273236744536064,
|
|
3843
|
+
unknown: 6273236744536064,
|
|
3844
|
+
},
|
|
3845
|
+
},
|
|
3846
|
+
}, data || {}));
|
|
3847
|
+
};
|
|
3848
|
+
const mockForGetSiteIdSummaryQuery = (variables, data) => {
|
|
3849
|
+
return reactCoreContextsTest.queryFor(GetSiteIdSummaryDocument, variables, utilities.mergeDeep({
|
|
3850
|
+
__typename: "Query",
|
|
3851
|
+
assetSummary: {
|
|
3852
|
+
__typename: "AssetSummary",
|
|
3853
|
+
sites: {
|
|
3854
|
+
__typename: "SitesSummary",
|
|
3855
|
+
total: 6273236744536064,
|
|
3856
|
+
summary: [
|
|
3857
|
+
{
|
|
3858
|
+
__typename: "SiteSummary",
|
|
3859
|
+
count: 6273236744536064,
|
|
3860
|
+
site: {
|
|
3861
|
+
__typename: "Site",
|
|
3862
|
+
id: "subito",
|
|
3863
|
+
siteId: "subito",
|
|
3864
|
+
name: "subito",
|
|
3865
|
+
},
|
|
3866
|
+
},
|
|
3867
|
+
],
|
|
3868
|
+
},
|
|
3869
|
+
},
|
|
3870
|
+
}, data || {}));
|
|
3871
|
+
};
|
|
3872
|
+
const mockForGetSiteDepotOwnershipIdSummaryQuery = (variables, data) => {
|
|
3873
|
+
return reactCoreContextsTest.queryFor(GetSiteDepotOwnershipIdSummaryDocument, variables, utilities.mergeDeep({
|
|
3874
|
+
__typename: "Query",
|
|
3875
|
+
assetSummary: {
|
|
3876
|
+
__typename: "AssetSummary",
|
|
3877
|
+
owningDepots: {
|
|
3878
|
+
__typename: "SitesSummary",
|
|
3879
|
+
total: 6273236744536064,
|
|
3880
|
+
summary: [
|
|
3881
|
+
{
|
|
3882
|
+
__typename: "SiteSummary",
|
|
3883
|
+
count: 6273236744536064,
|
|
3884
|
+
site: {
|
|
3885
|
+
__typename: "Site",
|
|
3886
|
+
id: "subito",
|
|
3887
|
+
siteId: "subito",
|
|
3888
|
+
name: "subito",
|
|
3889
|
+
},
|
|
3890
|
+
},
|
|
3891
|
+
],
|
|
3892
|
+
},
|
|
3893
|
+
},
|
|
3894
|
+
}, data || {}));
|
|
3895
|
+
};
|
|
3896
|
+
const mockForGetCustomerIdSummaryQuery = (variables, data) => {
|
|
3897
|
+
return reactCoreContextsTest.queryFor(GetCustomerIdSummaryDocument, variables, utilities.mergeDeep({
|
|
3898
|
+
__typename: "Query",
|
|
3899
|
+
assetSummary: {
|
|
3900
|
+
__typename: "AssetSummary",
|
|
3901
|
+
customers: {
|
|
3902
|
+
__typename: "CustomersSummary",
|
|
3903
|
+
total: 6273236744536064,
|
|
3904
|
+
summary: [
|
|
3905
|
+
{
|
|
3906
|
+
__typename: "CustomerSummary",
|
|
3907
|
+
count: 6273236744536064,
|
|
3908
|
+
customer: {
|
|
3909
|
+
__typename: "Customer",
|
|
3910
|
+
id: "subito",
|
|
3911
|
+
customerId: "subito",
|
|
3912
|
+
name: "subito",
|
|
3913
|
+
},
|
|
3914
|
+
},
|
|
3915
|
+
],
|
|
3916
|
+
},
|
|
3917
|
+
},
|
|
3918
|
+
}, data || {}));
|
|
3919
|
+
};
|
|
3920
|
+
const mockForGetAssetTelematicsDeviceConnectionSummaryQuery = (variables, data) => {
|
|
3921
|
+
return reactCoreContextsTest.queryFor(GetAssetTelematicsDeviceConnectionSummaryDocument, variables, utilities.mergeDeep({
|
|
3922
|
+
__typename: "Query",
|
|
3923
|
+
assetSummary: {
|
|
3924
|
+
__typename: "AssetSummary",
|
|
3925
|
+
assetTelematicsDeviceConnected: {
|
|
3926
|
+
__typename: "MetadataSummary",
|
|
3927
|
+
total: 6273236744536064,
|
|
3928
|
+
summary: [
|
|
3929
|
+
{
|
|
3930
|
+
__typename: "Summary",
|
|
3931
|
+
key: "subito",
|
|
3932
|
+
count: 6273236744536064,
|
|
3933
|
+
},
|
|
3934
|
+
],
|
|
3935
|
+
},
|
|
3936
|
+
},
|
|
3937
|
+
}, data || {}));
|
|
3938
|
+
};
|
|
3939
|
+
const mockForGetPlaceAutocompletePredictionsQuery = (variables, data) => {
|
|
3940
|
+
return reactCoreContextsTest.queryFor(GetPlaceAutocompletePredictionsDocument, variables, utilities.mergeDeep({
|
|
3941
|
+
__typename: "Query",
|
|
3942
|
+
placeAutocomplete: {
|
|
3943
|
+
__typename: "PlaceAutocompleteResponse",
|
|
3944
|
+
predictions: [
|
|
3945
|
+
{
|
|
3946
|
+
__typename: "PlacePrediction",
|
|
3947
|
+
placeId: "subito",
|
|
3948
|
+
description: "subito",
|
|
3949
|
+
},
|
|
3950
|
+
],
|
|
3951
|
+
},
|
|
3952
|
+
}, data || {}));
|
|
3953
|
+
};
|
|
3954
|
+
const mockForGetPlaceDetailsQuery = (variables, data) => {
|
|
3955
|
+
return reactCoreContextsTest.queryFor(GetPlaceDetailsDocument, variables, utilities.mergeDeep({
|
|
3956
|
+
__typename: "Query",
|
|
3957
|
+
placeDetails: {
|
|
3958
|
+
__typename: "Feature",
|
|
3959
|
+
bbox: [6273236744536064],
|
|
3960
|
+
geometry: {
|
|
3961
|
+
__typename: "Geometry",
|
|
3962
|
+
type: "subito",
|
|
3963
|
+
coordinates: [6273236744536064],
|
|
3964
|
+
},
|
|
3965
|
+
properties: {
|
|
3966
|
+
__typename: "Properties",
|
|
3967
|
+
formattedAddress: "subito",
|
|
3968
|
+
},
|
|
3969
|
+
},
|
|
3970
|
+
}, data || {}));
|
|
3971
|
+
};
|
|
3972
|
+
|
|
3290
3973
|
const PartnerFilterView = ({ filterDefinition, value, filterBarActions }) => {
|
|
3291
3974
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(filtersFilterBar.FilterHeader, { ...filterDefinition, ...filterBarActions }), jsxRuntime.jsx(reactFilterComponents.FilterBody, { limitSize: true, children: value?.map(vn => vn.name).join(",") })] }));
|
|
3292
3975
|
};
|
|
@@ -3605,6 +4288,28 @@ exports.assetTypeConst = assetTypeConst;
|
|
|
3605
4288
|
exports.mapActivityToLabelId = mapActivityToLabelId;
|
|
3606
4289
|
exports.mapMetadataCompletenessToLabelId = mapMetadataCompletenessToLabelId;
|
|
3607
4290
|
exports.metadataCompleteness = metadataCompleteness;
|
|
4291
|
+
exports.mockForGetAssetTelematicsDeviceConnectionSummaryQuery = mockForGetAssetTelematicsDeviceConnectionSummaryQuery;
|
|
4292
|
+
exports.mockForGetCustomFieldSummaryQuery = mockForGetCustomFieldSummaryQuery;
|
|
4293
|
+
exports.mockForGetCustomerIdSummaryQuery = mockForGetCustomerIdSummaryQuery;
|
|
4294
|
+
exports.mockForGetFleetActivitySummaryQuery = mockForGetFleetActivitySummaryQuery;
|
|
4295
|
+
exports.mockForGetFleetAssetTypesSummaryQuery = mockForGetFleetAssetTypesSummaryQuery;
|
|
4296
|
+
exports.mockForGetFleetBrandsSummaryQuery = mockForGetFleetBrandsSummaryQuery;
|
|
4297
|
+
exports.mockForGetFleetCriticalitySummaryQuery = mockForGetFleetCriticalitySummaryQuery;
|
|
4298
|
+
exports.mockForGetFleetGroupSummaryQuery = mockForGetFleetGroupSummaryQuery;
|
|
4299
|
+
exports.mockForGetFleetModelsSummaryQuery = mockForGetFleetModelsSummaryQuery;
|
|
4300
|
+
exports.mockForGetFleetOwnerAccountSummaryQuery = mockForGetFleetOwnerAccountSummaryQuery;
|
|
4301
|
+
exports.mockForGetFleetProductionYearsSummaryQuery = mockForGetFleetProductionYearsSummaryQuery;
|
|
4302
|
+
exports.mockForGetFleetServicePlanAssignmentsSummaryQuery = mockForGetFleetServicePlanAssignmentsSummaryQuery;
|
|
4303
|
+
exports.mockForGetFleetServicePlanStatusesSummaryQuery = mockForGetFleetServicePlanStatusesSummaryQuery;
|
|
4304
|
+
exports.mockForGetFleetServiceProvidersSummaryQuery = mockForGetFleetServiceProvidersSummaryQuery;
|
|
4305
|
+
exports.mockForGetFleetSiteTypeSummaryQuery = mockForGetFleetSiteTypeSummaryQuery;
|
|
4306
|
+
exports.mockForGetFleetTypesSummaryQuery = mockForGetFleetTypesSummaryQuery;
|
|
4307
|
+
exports.mockForGetMetadataCompletenessSummaryQuery = mockForGetMetadataCompletenessSummaryQuery;
|
|
4308
|
+
exports.mockForGetPlaceAutocompletePredictionsQuery = mockForGetPlaceAutocompletePredictionsQuery;
|
|
4309
|
+
exports.mockForGetPlaceDetailsQuery = mockForGetPlaceDetailsQuery;
|
|
4310
|
+
exports.mockForGetServicePlanNamesSummaryQuery = mockForGetServicePlanNamesSummaryQuery;
|
|
4311
|
+
exports.mockForGetSiteDepotOwnershipIdSummaryQuery = mockForGetSiteDepotOwnershipIdSummaryQuery;
|
|
4312
|
+
exports.mockForGetSiteIdSummaryQuery = mockForGetSiteIdSummaryQuery;
|
|
3608
4313
|
exports.placePredictionSchema = placePredictionSchema;
|
|
3609
4314
|
exports.placeSchema = placeSchema;
|
|
3610
4315
|
exports.sortSiteTypeSummary = sortSiteTypeSummary;
|