@trackunit/filters-graphql-hook 2.1.91 → 2.1.92
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 +10 -0
- package/index.esm.js +10 -0
- package/migrations/entry.js.map +1 -0
- package/package.json +1 -1
- package/src/parseAssetFiltersInput.d.ts +6 -0
package/index.cjs.js
CHANGED
|
@@ -526,6 +526,8 @@ const useActiveAssetFilters = (filters) => {
|
|
|
526
526
|
fleetHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), fleetDataHealthDeviceStatus),
|
|
527
527
|
deviceTypes: valueNameArrayOrUndefined(filters.deviceTypes),
|
|
528
528
|
firmwareVersion: valueNameArrayOrUndefined(filters.firmwareVersion),
|
|
529
|
+
can1Profile: valueNameArrayOrUndefined(filters.can1Profile),
|
|
530
|
+
can2Profile: valueNameArrayOrUndefined(filters.can2Profile),
|
|
529
531
|
modbusProfile: valueNameArrayOrUndefined(filters.modbusProfile),
|
|
530
532
|
sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility),
|
|
531
533
|
accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
|
|
@@ -612,6 +614,8 @@ const assetFiltersInputSchema = zod.z
|
|
|
612
614
|
assetIds: zod.z.array(zod.z.string()).optional(),
|
|
613
615
|
assetTypes: zod.z.array(zod.z.nativeEnum(assetType)).optional(),
|
|
614
616
|
brands: zod.z.array(zod.z.string()).optional(),
|
|
617
|
+
can1Profile: zod.z.array(zod.z.string()).optional(),
|
|
618
|
+
can2Profile: zod.z.array(zod.z.string()).optional(),
|
|
615
619
|
countries: zod.z.array(zod.z.string()).optional(),
|
|
616
620
|
criticalities: zod.z.array(zod.z.nativeEnum(assetCriticalityState)).optional(),
|
|
617
621
|
customerIds: zod.z.array(zod.z.string()).optional(),
|
|
@@ -792,6 +796,12 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
|
|
|
792
796
|
if (parsed.data.firmwareVersion !== undefined) {
|
|
793
797
|
filterBarValues.firmwareVersion = toValueNameArray(parsed.data.firmwareVersion);
|
|
794
798
|
}
|
|
799
|
+
if (parsed.data.can1Profile !== undefined) {
|
|
800
|
+
filterBarValues.can1Profile = toValueNameArray(parsed.data.can1Profile);
|
|
801
|
+
}
|
|
802
|
+
if (parsed.data.can2Profile !== undefined) {
|
|
803
|
+
filterBarValues.can2Profile = toValueNameArray(parsed.data.can2Profile);
|
|
804
|
+
}
|
|
795
805
|
if (parsed.data.modbusProfile !== undefined) {
|
|
796
806
|
filterBarValues.modbusProfile = toValueNameArray(parsed.data.modbusProfile);
|
|
797
807
|
}
|
package/index.esm.js
CHANGED
|
@@ -524,6 +524,8 @@ const useActiveAssetFilters = (filters) => {
|
|
|
524
524
|
fleetHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), fleetDataHealthDeviceStatus),
|
|
525
525
|
deviceTypes: valueNameArrayOrUndefined(filters.deviceTypes),
|
|
526
526
|
firmwareVersion: valueNameArrayOrUndefined(filters.firmwareVersion),
|
|
527
|
+
can1Profile: valueNameArrayOrUndefined(filters.can1Profile),
|
|
528
|
+
can2Profile: valueNameArrayOrUndefined(filters.can2Profile),
|
|
527
529
|
modbusProfile: valueNameArrayOrUndefined(filters.modbusProfile),
|
|
528
530
|
sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility),
|
|
529
531
|
accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
|
|
@@ -610,6 +612,8 @@ const assetFiltersInputSchema = z
|
|
|
610
612
|
assetIds: z.array(z.string()).optional(),
|
|
611
613
|
assetTypes: z.array(z.nativeEnum(assetType)).optional(),
|
|
612
614
|
brands: z.array(z.string()).optional(),
|
|
615
|
+
can1Profile: z.array(z.string()).optional(),
|
|
616
|
+
can2Profile: z.array(z.string()).optional(),
|
|
613
617
|
countries: z.array(z.string()).optional(),
|
|
614
618
|
criticalities: z.array(z.nativeEnum(assetCriticalityState)).optional(),
|
|
615
619
|
customerIds: z.array(z.string()).optional(),
|
|
@@ -790,6 +794,12 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
|
|
|
790
794
|
if (parsed.data.firmwareVersion !== undefined) {
|
|
791
795
|
filterBarValues.firmwareVersion = toValueNameArray(parsed.data.firmwareVersion);
|
|
792
796
|
}
|
|
797
|
+
if (parsed.data.can1Profile !== undefined) {
|
|
798
|
+
filterBarValues.can1Profile = toValueNameArray(parsed.data.can1Profile);
|
|
799
|
+
}
|
|
800
|
+
if (parsed.data.can2Profile !== undefined) {
|
|
801
|
+
filterBarValues.can2Profile = toValueNameArray(parsed.data.can2Profile);
|
|
802
|
+
}
|
|
793
803
|
if (parsed.data.modbusProfile !== undefined) {
|
|
794
804
|
filterBarValues.modbusProfile = toValueNameArray(parsed.data.modbusProfile);
|
|
795
805
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/filters/graphql-hook/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|
package/package.json
CHANGED
|
@@ -81,6 +81,8 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
81
81
|
readonly VEHICLE: "VEHICLE";
|
|
82
82
|
}>, "many">>;
|
|
83
83
|
brands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
can1Profile: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
+
can2Profile: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
86
|
countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
87
|
criticalities: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
86
88
|
readonly CRITICAL: "CRITICAL";
|
|
@@ -463,6 +465,8 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
463
465
|
assetIds?: string[] | undefined;
|
|
464
466
|
assetTypes?: ("OTHER" | "ATTACHMENT" | "EQUIPMENT" | "GATEWAY" | "MACHINE" | "TOOL" | "VEHICLE")[] | undefined;
|
|
465
467
|
brands?: string[] | undefined;
|
|
468
|
+
can1Profile?: string[] | undefined;
|
|
469
|
+
can2Profile?: string[] | undefined;
|
|
466
470
|
countries?: string[] | undefined;
|
|
467
471
|
criticalities?: ("CRITICAL" | "LOW" | "NONE")[] | undefined;
|
|
468
472
|
customFields?: {
|
|
@@ -580,6 +584,8 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
580
584
|
assetIds?: string[] | undefined;
|
|
581
585
|
assetTypes?: ("OTHER" | "ATTACHMENT" | "EQUIPMENT" | "GATEWAY" | "MACHINE" | "TOOL" | "VEHICLE")[] | undefined;
|
|
582
586
|
brands?: string[] | undefined;
|
|
587
|
+
can1Profile?: string[] | undefined;
|
|
588
|
+
can2Profile?: string[] | undefined;
|
|
583
589
|
countries?: string[] | undefined;
|
|
584
590
|
criticalities?: ("CRITICAL" | "LOW" | "NONE")[] | undefined;
|
|
585
591
|
customFields?: {
|