@trackunit/filters-asset-filter-definitions 1.3.26 → 1.3.28
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 +693 -0
- package/index.esm.js +672 -1
- package/package.json +5 -5
- 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: [
|
|
@@ -3287,6 +3535,429 @@ const useTypesFilter = () => {
|
|
|
3287
3535
|
return result;
|
|
3288
3536
|
};
|
|
3289
3537
|
|
|
3538
|
+
const mockForGetFleetAssetTypesSummaryQuery = (variables, data) => {
|
|
3539
|
+
return reactCoreContextsTest.queryFor(GetFleetAssetTypesSummaryDocument, variables, utilities.mergeDeep({
|
|
3540
|
+
__typename: "Query",
|
|
3541
|
+
assetSummary: {
|
|
3542
|
+
__typename: "AssetSummary",
|
|
3543
|
+
assetTypes: {
|
|
3544
|
+
__typename: "AssetTypesSummary",
|
|
3545
|
+
total: 6273236744536064,
|
|
3546
|
+
summary: {
|
|
3547
|
+
__typename: "AssetTypeSummary",
|
|
3548
|
+
machines: 6273236744536064,
|
|
3549
|
+
attachments: 6273236744536064,
|
|
3550
|
+
equipments: 6273236744536064,
|
|
3551
|
+
tools: 6273236744536064,
|
|
3552
|
+
gateways: 6273236744536064,
|
|
3553
|
+
others: 6273236744536064,
|
|
3554
|
+
vehicles: 6273236744536064,
|
|
3555
|
+
},
|
|
3556
|
+
},
|
|
3557
|
+
},
|
|
3558
|
+
}, data || {}));
|
|
3559
|
+
};
|
|
3560
|
+
const mockForGetFleetSiteTypeSummaryQuery = (variables, data) => {
|
|
3561
|
+
return reactCoreContextsTest.queryFor(GetFleetSiteTypeSummaryDocument, variables, utilities.mergeDeep({
|
|
3562
|
+
__typename: "Query",
|
|
3563
|
+
assetSummary: {
|
|
3564
|
+
__typename: "AssetSummary",
|
|
3565
|
+
siteTypes: {
|
|
3566
|
+
__typename: "SiteTypesSummary",
|
|
3567
|
+
total: 6273236744536064,
|
|
3568
|
+
summary: [
|
|
3569
|
+
{
|
|
3570
|
+
__typename: "SiteTypeSummary",
|
|
3571
|
+
siteType: "AREA",
|
|
3572
|
+
count: 6273236744536064,
|
|
3573
|
+
},
|
|
3574
|
+
],
|
|
3575
|
+
},
|
|
3576
|
+
},
|
|
3577
|
+
}, data || {}));
|
|
3578
|
+
};
|
|
3579
|
+
const mockForGetMetadataCompletenessSummaryQuery = (variables, data) => {
|
|
3580
|
+
return reactCoreContextsTest.queryFor(GetMetadataCompletenessSummaryDocument, variables, utilities.mergeDeep({
|
|
3581
|
+
__typename: "Query",
|
|
3582
|
+
assetSummary: {
|
|
3583
|
+
__typename: "AssetSummary",
|
|
3584
|
+
metadataCompletenesses: {
|
|
3585
|
+
__typename: "MetadataCompletenessesSummary",
|
|
3586
|
+
total: 6273236744536064,
|
|
3587
|
+
summary: [
|
|
3588
|
+
{
|
|
3589
|
+
__typename: "MetadataCompletenessSummary",
|
|
3590
|
+
metadataCompleteness: "COMPLETE",
|
|
3591
|
+
count: 6273236744536064,
|
|
3592
|
+
},
|
|
3593
|
+
],
|
|
3594
|
+
},
|
|
3595
|
+
},
|
|
3596
|
+
}, data || {}));
|
|
3597
|
+
};
|
|
3598
|
+
const mockForGetFleetGroupSummaryQuery = (variables, data) => {
|
|
3599
|
+
return reactCoreContextsTest.queryFor(GetFleetGroupSummaryDocument, variables, utilities.mergeDeep({
|
|
3600
|
+
__typename: "Query",
|
|
3601
|
+
assetSummary: {
|
|
3602
|
+
__typename: "AssetSummary",
|
|
3603
|
+
groups: {
|
|
3604
|
+
__typename: "GroupsSummary",
|
|
3605
|
+
total: 6273236744536064,
|
|
3606
|
+
missing: 6273236744536064,
|
|
3607
|
+
summary: [
|
|
3608
|
+
{
|
|
3609
|
+
__typename: "GroupSummary",
|
|
3610
|
+
count: 6273236744536064,
|
|
3611
|
+
group: {
|
|
3612
|
+
__typename: "Group",
|
|
3613
|
+
id: "subito",
|
|
3614
|
+
groupId: "subito",
|
|
3615
|
+
name: "subito",
|
|
3616
|
+
},
|
|
3617
|
+
},
|
|
3618
|
+
],
|
|
3619
|
+
},
|
|
3620
|
+
},
|
|
3621
|
+
}, data || {}));
|
|
3622
|
+
};
|
|
3623
|
+
const mockForGetFleetOwnerAccountSummaryQuery = (variables, data) => {
|
|
3624
|
+
return reactCoreContextsTest.queryFor(GetFleetOwnerAccountSummaryDocument, variables, utilities.mergeDeep({
|
|
3625
|
+
__typename: "Query",
|
|
3626
|
+
assetSummary: {
|
|
3627
|
+
__typename: "AssetSummary",
|
|
3628
|
+
ownerAccounts: {
|
|
3629
|
+
__typename: "OwnerAccountsSummary",
|
|
3630
|
+
total: 6273236744536064,
|
|
3631
|
+
summary: [
|
|
3632
|
+
{
|
|
3633
|
+
__typename: "OwnerAccountSummary",
|
|
3634
|
+
count: 6273236744536064,
|
|
3635
|
+
ownerAccount: {
|
|
3636
|
+
__typename: "Account",
|
|
3637
|
+
accountId: "subito",
|
|
3638
|
+
name: "subito",
|
|
3639
|
+
},
|
|
3640
|
+
},
|
|
3641
|
+
],
|
|
3642
|
+
},
|
|
3643
|
+
},
|
|
3644
|
+
}, data || {}));
|
|
3645
|
+
};
|
|
3646
|
+
const mockForGetFleetModelsSummaryQuery = (variables, data) => {
|
|
3647
|
+
return reactCoreContextsTest.queryFor(GetFleetModelsSummaryDocument, variables, utilities.mergeDeep({
|
|
3648
|
+
__typename: "Query",
|
|
3649
|
+
assetSummary: {
|
|
3650
|
+
__typename: "AssetSummary",
|
|
3651
|
+
models: {
|
|
3652
|
+
__typename: "MetadataSummary",
|
|
3653
|
+
total: 6273236744536064,
|
|
3654
|
+
summary: [
|
|
3655
|
+
{
|
|
3656
|
+
__typename: "Summary",
|
|
3657
|
+
key: "subito",
|
|
3658
|
+
count: 6273236744536064,
|
|
3659
|
+
},
|
|
3660
|
+
],
|
|
3661
|
+
},
|
|
3662
|
+
},
|
|
3663
|
+
}, data || {}));
|
|
3664
|
+
};
|
|
3665
|
+
const mockForGetCustomFieldSummaryQuery = (variables, data) => {
|
|
3666
|
+
return reactCoreContextsTest.queryFor(GetCustomFieldSummaryDocument, variables, utilities.mergeDeep({
|
|
3667
|
+
__typename: "Query",
|
|
3668
|
+
assetSummary: {
|
|
3669
|
+
__typename: "AssetSummary",
|
|
3670
|
+
customFields: [
|
|
3671
|
+
{
|
|
3672
|
+
__typename: "CustomFieldSummary",
|
|
3673
|
+
definitionId: "subito",
|
|
3674
|
+
total: 6273236744536064,
|
|
3675
|
+
summary: [
|
|
3676
|
+
{
|
|
3677
|
+
__typename: "Summary",
|
|
3678
|
+
key: "subito",
|
|
3679
|
+
count: 6273236744536064,
|
|
3680
|
+
},
|
|
3681
|
+
],
|
|
3682
|
+
},
|
|
3683
|
+
],
|
|
3684
|
+
},
|
|
3685
|
+
}, data || {}));
|
|
3686
|
+
};
|
|
3687
|
+
const mockForGetFleetBrandsSummaryQuery = (variables, data) => {
|
|
3688
|
+
return reactCoreContextsTest.queryFor(GetFleetBrandsSummaryDocument, variables, utilities.mergeDeep({
|
|
3689
|
+
__typename: "Query",
|
|
3690
|
+
assetSummary: {
|
|
3691
|
+
__typename: "AssetSummary",
|
|
3692
|
+
brands: {
|
|
3693
|
+
__typename: "MetadataSummary",
|
|
3694
|
+
total: 6273236744536064,
|
|
3695
|
+
summary: [
|
|
3696
|
+
{
|
|
3697
|
+
__typename: "Summary",
|
|
3698
|
+
key: "subito",
|
|
3699
|
+
count: 6273236744536064,
|
|
3700
|
+
},
|
|
3701
|
+
],
|
|
3702
|
+
},
|
|
3703
|
+
},
|
|
3704
|
+
}, data || {}));
|
|
3705
|
+
};
|
|
3706
|
+
const mockForGetFleetTypesSummaryQuery = (variables, data) => {
|
|
3707
|
+
return reactCoreContextsTest.queryFor(GetFleetTypesSummaryDocument, variables, utilities.mergeDeep({
|
|
3708
|
+
__typename: "Query",
|
|
3709
|
+
assetSummary: {
|
|
3710
|
+
__typename: "AssetSummary",
|
|
3711
|
+
types: {
|
|
3712
|
+
__typename: "MetadataSummary",
|
|
3713
|
+
total: 6273236744536064,
|
|
3714
|
+
summary: [
|
|
3715
|
+
{
|
|
3716
|
+
__typename: "Summary",
|
|
3717
|
+
key: "subito",
|
|
3718
|
+
count: 6273236744536064,
|
|
3719
|
+
},
|
|
3720
|
+
],
|
|
3721
|
+
},
|
|
3722
|
+
},
|
|
3723
|
+
}, data || {}));
|
|
3724
|
+
};
|
|
3725
|
+
const mockForGetFleetCriticalitySummaryQuery = (variables, data) => {
|
|
3726
|
+
return reactCoreContextsTest.queryFor(GetFleetCriticalitySummaryDocument, variables, utilities.mergeDeep({
|
|
3727
|
+
__typename: "Query",
|
|
3728
|
+
assetSummary: {
|
|
3729
|
+
__typename: "AssetSummary",
|
|
3730
|
+
criticality: {
|
|
3731
|
+
__typename: "CriticalitySummary",
|
|
3732
|
+
critical: 6273236744536064,
|
|
3733
|
+
low: 6273236744536064,
|
|
3734
|
+
good: 6273236744536064,
|
|
3735
|
+
},
|
|
3736
|
+
},
|
|
3737
|
+
}, data || {}));
|
|
3738
|
+
};
|
|
3739
|
+
const mockForGetFleetProductionYearsSummaryQuery = (variables, data) => {
|
|
3740
|
+
return reactCoreContextsTest.queryFor(GetFleetProductionYearsSummaryDocument, variables, utilities.mergeDeep({
|
|
3741
|
+
__typename: "Query",
|
|
3742
|
+
assetSummary: {
|
|
3743
|
+
__typename: "AssetSummary",
|
|
3744
|
+
productionYears: {
|
|
3745
|
+
__typename: "MetadataSummary",
|
|
3746
|
+
total: 6273236744536064,
|
|
3747
|
+
summary: [
|
|
3748
|
+
{
|
|
3749
|
+
__typename: "Summary",
|
|
3750
|
+
key: "subito",
|
|
3751
|
+
count: 6273236744536064,
|
|
3752
|
+
},
|
|
3753
|
+
],
|
|
3754
|
+
},
|
|
3755
|
+
},
|
|
3756
|
+
}, data || {}));
|
|
3757
|
+
};
|
|
3758
|
+
const mockForGetServicePlanNamesSummaryQuery = (variables, data) => {
|
|
3759
|
+
return reactCoreContextsTest.queryFor(GetServicePlanNamesSummaryDocument, variables, utilities.mergeDeep({
|
|
3760
|
+
__typename: "Query",
|
|
3761
|
+
assetSummary: {
|
|
3762
|
+
__typename: "AssetSummary",
|
|
3763
|
+
servicePlanNames: {
|
|
3764
|
+
__typename: "MetadataSummary",
|
|
3765
|
+
total: 6273236744536064,
|
|
3766
|
+
summary: [
|
|
3767
|
+
{
|
|
3768
|
+
__typename: "Summary",
|
|
3769
|
+
key: "subito",
|
|
3770
|
+
count: 6273236744536064,
|
|
3771
|
+
},
|
|
3772
|
+
],
|
|
3773
|
+
},
|
|
3774
|
+
},
|
|
3775
|
+
}, data || {}));
|
|
3776
|
+
};
|
|
3777
|
+
const mockForGetFleetServicePlanStatusesSummaryQuery = (variables, data) => {
|
|
3778
|
+
return reactCoreContextsTest.queryFor(GetFleetServicePlanStatusesSummaryDocument, variables, utilities.mergeDeep({
|
|
3779
|
+
__typename: "Query",
|
|
3780
|
+
assetSummary: {
|
|
3781
|
+
__typename: "AssetSummary",
|
|
3782
|
+
servicePlanStatuses: {
|
|
3783
|
+
__typename: "ServicePlanStatusSummary",
|
|
3784
|
+
overdue: 6273236744536064,
|
|
3785
|
+
upcoming: 6273236744536064,
|
|
3786
|
+
planned: 6273236744536064,
|
|
3787
|
+
},
|
|
3788
|
+
},
|
|
3789
|
+
}, data || {}));
|
|
3790
|
+
};
|
|
3791
|
+
const mockForGetFleetServiceProvidersSummaryQuery = (variables, data) => {
|
|
3792
|
+
return reactCoreContextsTest.queryFor(GetFleetServiceProvidersSummaryDocument, variables, utilities.mergeDeep({
|
|
3793
|
+
__typename: "Query",
|
|
3794
|
+
assetSummary: {
|
|
3795
|
+
__typename: "AssetSummary",
|
|
3796
|
+
serviceProviders: {
|
|
3797
|
+
__typename: "MetadataSummary",
|
|
3798
|
+
total: 6273236744536064,
|
|
3799
|
+
summary: [
|
|
3800
|
+
{
|
|
3801
|
+
__typename: "Summary",
|
|
3802
|
+
key: "subito",
|
|
3803
|
+
count: 6273236744536064,
|
|
3804
|
+
},
|
|
3805
|
+
],
|
|
3806
|
+
},
|
|
3807
|
+
},
|
|
3808
|
+
}, data || {}));
|
|
3809
|
+
};
|
|
3810
|
+
const mockForGetFleetServicePlanAssignmentsSummaryQuery = (variables, data) => {
|
|
3811
|
+
return reactCoreContextsTest.queryFor(GetFleetServicePlanAssignmentsSummaryDocument, variables, utilities.mergeDeep({
|
|
3812
|
+
__typename: "Query",
|
|
3813
|
+
assetSummary: {
|
|
3814
|
+
__typename: "AssetSummary",
|
|
3815
|
+
servicePlanAssignments: {
|
|
3816
|
+
__typename: "ServicePlanAssignmentSummary",
|
|
3817
|
+
fullyConfigured: 6273236744536064,
|
|
3818
|
+
partiallyConfigured: 6273236744536064,
|
|
3819
|
+
notConfigured: 6273236744536064,
|
|
3820
|
+
},
|
|
3821
|
+
},
|
|
3822
|
+
}, data || {}));
|
|
3823
|
+
};
|
|
3824
|
+
const mockForGetFleetActivitySummaryQuery = (variables, data) => {
|
|
3825
|
+
return reactCoreContextsTest.queryFor(GetFleetActivitySummaryDocument, variables, utilities.mergeDeep({
|
|
3826
|
+
__typename: "Query",
|
|
3827
|
+
assetSummary: {
|
|
3828
|
+
__typename: "AssetSummary",
|
|
3829
|
+
activity: {
|
|
3830
|
+
__typename: "ActivitySummary",
|
|
3831
|
+
working: 6273236744536064,
|
|
3832
|
+
idling: 6273236744536064,
|
|
3833
|
+
stopped: 6273236744536064,
|
|
3834
|
+
unknown: 6273236744536064,
|
|
3835
|
+
},
|
|
3836
|
+
},
|
|
3837
|
+
}, data || {}));
|
|
3838
|
+
};
|
|
3839
|
+
const mockForGetSiteIdSummaryQuery = (variables, data) => {
|
|
3840
|
+
return reactCoreContextsTest.queryFor(GetSiteIdSummaryDocument, variables, utilities.mergeDeep({
|
|
3841
|
+
__typename: "Query",
|
|
3842
|
+
assetSummary: {
|
|
3843
|
+
__typename: "AssetSummary",
|
|
3844
|
+
sites: {
|
|
3845
|
+
__typename: "SitesSummary",
|
|
3846
|
+
total: 6273236744536064,
|
|
3847
|
+
summary: [
|
|
3848
|
+
{
|
|
3849
|
+
__typename: "SiteSummary",
|
|
3850
|
+
count: 6273236744536064,
|
|
3851
|
+
site: {
|
|
3852
|
+
__typename: "Site",
|
|
3853
|
+
id: "subito",
|
|
3854
|
+
siteId: "subito",
|
|
3855
|
+
name: "subito",
|
|
3856
|
+
},
|
|
3857
|
+
},
|
|
3858
|
+
],
|
|
3859
|
+
},
|
|
3860
|
+
},
|
|
3861
|
+
}, data || {}));
|
|
3862
|
+
};
|
|
3863
|
+
const mockForGetSiteDepotOwnershipIdSummaryQuery = (variables, data) => {
|
|
3864
|
+
return reactCoreContextsTest.queryFor(GetSiteDepotOwnershipIdSummaryDocument, variables, utilities.mergeDeep({
|
|
3865
|
+
__typename: "Query",
|
|
3866
|
+
assetSummary: {
|
|
3867
|
+
__typename: "AssetSummary",
|
|
3868
|
+
owningDepots: {
|
|
3869
|
+
__typename: "SitesSummary",
|
|
3870
|
+
total: 6273236744536064,
|
|
3871
|
+
summary: [
|
|
3872
|
+
{
|
|
3873
|
+
__typename: "SiteSummary",
|
|
3874
|
+
count: 6273236744536064,
|
|
3875
|
+
site: {
|
|
3876
|
+
__typename: "Site",
|
|
3877
|
+
id: "subito",
|
|
3878
|
+
siteId: "subito",
|
|
3879
|
+
name: "subito",
|
|
3880
|
+
},
|
|
3881
|
+
},
|
|
3882
|
+
],
|
|
3883
|
+
},
|
|
3884
|
+
},
|
|
3885
|
+
}, data || {}));
|
|
3886
|
+
};
|
|
3887
|
+
const mockForGetCustomerIdSummaryQuery = (variables, data) => {
|
|
3888
|
+
return reactCoreContextsTest.queryFor(GetCustomerIdSummaryDocument, variables, utilities.mergeDeep({
|
|
3889
|
+
__typename: "Query",
|
|
3890
|
+
assetSummary: {
|
|
3891
|
+
__typename: "AssetSummary",
|
|
3892
|
+
customers: {
|
|
3893
|
+
__typename: "CustomersSummary",
|
|
3894
|
+
total: 6273236744536064,
|
|
3895
|
+
summary: [
|
|
3896
|
+
{
|
|
3897
|
+
__typename: "CustomerSummary",
|
|
3898
|
+
count: 6273236744536064,
|
|
3899
|
+
customer: {
|
|
3900
|
+
__typename: "Customer",
|
|
3901
|
+
id: "subito",
|
|
3902
|
+
customerId: "subito",
|
|
3903
|
+
name: "subito",
|
|
3904
|
+
},
|
|
3905
|
+
},
|
|
3906
|
+
],
|
|
3907
|
+
},
|
|
3908
|
+
},
|
|
3909
|
+
}, data || {}));
|
|
3910
|
+
};
|
|
3911
|
+
const mockForGetAssetTelematicsDeviceConnectionSummaryQuery = (variables, data) => {
|
|
3912
|
+
return reactCoreContextsTest.queryFor(GetAssetTelematicsDeviceConnectionSummaryDocument, variables, utilities.mergeDeep({
|
|
3913
|
+
__typename: "Query",
|
|
3914
|
+
assetSummary: {
|
|
3915
|
+
__typename: "AssetSummary",
|
|
3916
|
+
assetTelematicsDeviceConnected: {
|
|
3917
|
+
__typename: "MetadataSummary",
|
|
3918
|
+
total: 6273236744536064,
|
|
3919
|
+
summary: [
|
|
3920
|
+
{
|
|
3921
|
+
__typename: "Summary",
|
|
3922
|
+
key: "subito",
|
|
3923
|
+
count: 6273236744536064,
|
|
3924
|
+
},
|
|
3925
|
+
],
|
|
3926
|
+
},
|
|
3927
|
+
},
|
|
3928
|
+
}, data || {}));
|
|
3929
|
+
};
|
|
3930
|
+
const mockForGetPlaceAutocompletePredictionsQuery = (variables, data) => {
|
|
3931
|
+
return reactCoreContextsTest.queryFor(GetPlaceAutocompletePredictionsDocument, variables, utilities.mergeDeep({
|
|
3932
|
+
__typename: "Query",
|
|
3933
|
+
placeAutocompletePredictions: [
|
|
3934
|
+
{
|
|
3935
|
+
__typename: "PlacePrediction",
|
|
3936
|
+
placeId: "subito",
|
|
3937
|
+
description: "subito",
|
|
3938
|
+
},
|
|
3939
|
+
],
|
|
3940
|
+
}, data || {}));
|
|
3941
|
+
};
|
|
3942
|
+
const mockForGetPlaceDetailsQuery = (variables, data) => {
|
|
3943
|
+
return reactCoreContextsTest.queryFor(GetPlaceDetailsDocument, variables, utilities.mergeDeep({
|
|
3944
|
+
__typename: "Query",
|
|
3945
|
+
placeDetails: {
|
|
3946
|
+
__typename: "GeoJSONFeatureForPlaceDetails",
|
|
3947
|
+
bbox: [6273236744536064],
|
|
3948
|
+
geometry: {
|
|
3949
|
+
__typename: "GeoJSONGeometry",
|
|
3950
|
+
type: "GEOMETRYCOLLECTION",
|
|
3951
|
+
coordinates: "[[1, 2], [3, 4]]",
|
|
3952
|
+
},
|
|
3953
|
+
properties: {
|
|
3954
|
+
__typename: "GeoJSONFeatureForPlaceDetailsProperties",
|
|
3955
|
+
formattedAddress: "subito",
|
|
3956
|
+
},
|
|
3957
|
+
},
|
|
3958
|
+
}, data || {}));
|
|
3959
|
+
};
|
|
3960
|
+
|
|
3290
3961
|
const PartnerFilterView = ({ filterDefinition, value, filterBarActions }) => {
|
|
3291
3962
|
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
3963
|
};
|
|
@@ -3605,6 +4276,28 @@ exports.assetTypeConst = assetTypeConst;
|
|
|
3605
4276
|
exports.mapActivityToLabelId = mapActivityToLabelId;
|
|
3606
4277
|
exports.mapMetadataCompletenessToLabelId = mapMetadataCompletenessToLabelId;
|
|
3607
4278
|
exports.metadataCompleteness = metadataCompleteness;
|
|
4279
|
+
exports.mockForGetAssetTelematicsDeviceConnectionSummaryQuery = mockForGetAssetTelematicsDeviceConnectionSummaryQuery;
|
|
4280
|
+
exports.mockForGetCustomFieldSummaryQuery = mockForGetCustomFieldSummaryQuery;
|
|
4281
|
+
exports.mockForGetCustomerIdSummaryQuery = mockForGetCustomerIdSummaryQuery;
|
|
4282
|
+
exports.mockForGetFleetActivitySummaryQuery = mockForGetFleetActivitySummaryQuery;
|
|
4283
|
+
exports.mockForGetFleetAssetTypesSummaryQuery = mockForGetFleetAssetTypesSummaryQuery;
|
|
4284
|
+
exports.mockForGetFleetBrandsSummaryQuery = mockForGetFleetBrandsSummaryQuery;
|
|
4285
|
+
exports.mockForGetFleetCriticalitySummaryQuery = mockForGetFleetCriticalitySummaryQuery;
|
|
4286
|
+
exports.mockForGetFleetGroupSummaryQuery = mockForGetFleetGroupSummaryQuery;
|
|
4287
|
+
exports.mockForGetFleetModelsSummaryQuery = mockForGetFleetModelsSummaryQuery;
|
|
4288
|
+
exports.mockForGetFleetOwnerAccountSummaryQuery = mockForGetFleetOwnerAccountSummaryQuery;
|
|
4289
|
+
exports.mockForGetFleetProductionYearsSummaryQuery = mockForGetFleetProductionYearsSummaryQuery;
|
|
4290
|
+
exports.mockForGetFleetServicePlanAssignmentsSummaryQuery = mockForGetFleetServicePlanAssignmentsSummaryQuery;
|
|
4291
|
+
exports.mockForGetFleetServicePlanStatusesSummaryQuery = mockForGetFleetServicePlanStatusesSummaryQuery;
|
|
4292
|
+
exports.mockForGetFleetServiceProvidersSummaryQuery = mockForGetFleetServiceProvidersSummaryQuery;
|
|
4293
|
+
exports.mockForGetFleetSiteTypeSummaryQuery = mockForGetFleetSiteTypeSummaryQuery;
|
|
4294
|
+
exports.mockForGetFleetTypesSummaryQuery = mockForGetFleetTypesSummaryQuery;
|
|
4295
|
+
exports.mockForGetMetadataCompletenessSummaryQuery = mockForGetMetadataCompletenessSummaryQuery;
|
|
4296
|
+
exports.mockForGetPlaceAutocompletePredictionsQuery = mockForGetPlaceAutocompletePredictionsQuery;
|
|
4297
|
+
exports.mockForGetPlaceDetailsQuery = mockForGetPlaceDetailsQuery;
|
|
4298
|
+
exports.mockForGetServicePlanNamesSummaryQuery = mockForGetServicePlanNamesSummaryQuery;
|
|
4299
|
+
exports.mockForGetSiteDepotOwnershipIdSummaryQuery = mockForGetSiteDepotOwnershipIdSummaryQuery;
|
|
4300
|
+
exports.mockForGetSiteIdSummaryQuery = mockForGetSiteIdSummaryQuery;
|
|
3608
4301
|
exports.placePredictionSchema = placePredictionSchema;
|
|
3609
4302
|
exports.placeSchema = placeSchema;
|
|
3610
4303
|
exports.sortSiteTypeSummary = sortSiteTypeSummary;
|