@trackunit/filters-graphql-hook 2.1.85 → 2.1.87
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
CHANGED
|
@@ -525,6 +525,7 @@ const useActiveAssetFilters = (filters) => {
|
|
|
525
525
|
fleetHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), fleetDataHealthDeviceStatus),
|
|
526
526
|
deviceTypes: valueNameArrayOrUndefined(filters.deviceTypes),
|
|
527
527
|
firmwareVersion: valueNameArrayOrUndefined(filters.firmwareVersion),
|
|
528
|
+
modbusProfile: valueNameArrayOrUndefined(filters.modbusProfile),
|
|
528
529
|
sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility),
|
|
529
530
|
accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
|
|
530
531
|
insightsFilters: {
|
|
@@ -633,6 +634,7 @@ const assetFiltersInputSchema = zod.z
|
|
|
633
634
|
.optional(),
|
|
634
635
|
lastSeen: zod.z.nativeEnum(assetLastSeen).optional(),
|
|
635
636
|
metadataCompleteness: zod.z.nativeEnum(metadataCompleteness).optional(),
|
|
637
|
+
modbusProfile: zod.z.array(zod.z.string()).optional(),
|
|
636
638
|
models: zod.z.array(zod.z.string()).optional(),
|
|
637
639
|
ownerAccountIds: zod.z.array(zod.z.string()).optional(),
|
|
638
640
|
owningDepotSiteIds: zod.z.array(zod.z.string()).optional(),
|
|
@@ -785,6 +787,9 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
|
|
|
785
787
|
if (parsed.data.firmwareVersion !== undefined) {
|
|
786
788
|
filterBarValues.firmwareVersion = toValueNameArray(parsed.data.firmwareVersion);
|
|
787
789
|
}
|
|
790
|
+
if (parsed.data.modbusProfile !== undefined) {
|
|
791
|
+
filterBarValues.modbusProfile = toValueNameArray(parsed.data.modbusProfile);
|
|
792
|
+
}
|
|
788
793
|
if (parsed.data.activities !== undefined) {
|
|
789
794
|
filterBarValues.activity = parsed.data.activities;
|
|
790
795
|
}
|
package/index.esm.js
CHANGED
|
@@ -523,6 +523,7 @@ const useActiveAssetFilters = (filters) => {
|
|
|
523
523
|
fleetHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), fleetDataHealthDeviceStatus),
|
|
524
524
|
deviceTypes: valueNameArrayOrUndefined(filters.deviceTypes),
|
|
525
525
|
firmwareVersion: valueNameArrayOrUndefined(filters.firmwareVersion),
|
|
526
|
+
modbusProfile: valueNameArrayOrUndefined(filters.modbusProfile),
|
|
526
527
|
sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility),
|
|
527
528
|
accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
|
|
528
529
|
insightsFilters: {
|
|
@@ -631,6 +632,7 @@ const assetFiltersInputSchema = z
|
|
|
631
632
|
.optional(),
|
|
632
633
|
lastSeen: z.nativeEnum(assetLastSeen).optional(),
|
|
633
634
|
metadataCompleteness: z.nativeEnum(metadataCompleteness).optional(),
|
|
635
|
+
modbusProfile: z.array(z.string()).optional(),
|
|
634
636
|
models: z.array(z.string()).optional(),
|
|
635
637
|
ownerAccountIds: z.array(z.string()).optional(),
|
|
636
638
|
owningDepotSiteIds: z.array(z.string()).optional(),
|
|
@@ -783,6 +785,9 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
|
|
|
783
785
|
if (parsed.data.firmwareVersion !== undefined) {
|
|
784
786
|
filterBarValues.firmwareVersion = toValueNameArray(parsed.data.firmwareVersion);
|
|
785
787
|
}
|
|
788
|
+
if (parsed.data.modbusProfile !== undefined) {
|
|
789
|
+
filterBarValues.modbusProfile = toValueNameArray(parsed.data.modbusProfile);
|
|
790
|
+
}
|
|
786
791
|
if (parsed.data.activities !== undefined) {
|
|
787
792
|
filterBarValues.activity = parsed.data.activities;
|
|
788
793
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-graphql-hook",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.87",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
12
12
|
"zod": "^3.25.76",
|
|
13
13
|
"@trackunit/iris-app-build-utilities": "2.0.52",
|
|
14
|
-
"@trackunit/filters-filter-bar": "2.1.
|
|
14
|
+
"@trackunit/filters-filter-bar": "2.1.65",
|
|
15
15
|
"@trackunit/shared-utils": "1.15.57",
|
|
16
16
|
"@trackunit/iris-app-api": "2.0.48",
|
|
17
17
|
"@trackunit/react-core-contexts-test": "1.17.63",
|
|
@@ -610,6 +610,8 @@ export type AssetFiltersInput = {
|
|
|
610
610
|
lastSeen?: InputMaybe<AssetLastSeen>;
|
|
611
611
|
/** Filter by PARTIAL or COMPLETE asset metadata information */
|
|
612
612
|
metadataCompleteness?: InputMaybe<MetadataCompleteness>;
|
|
613
|
+
/** Filter by reported Modbus profile values */
|
|
614
|
+
modbusProfile?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
613
615
|
/** List of models */
|
|
614
616
|
models?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
615
617
|
/** List of owner account ids */
|
|
@@ -333,6 +333,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
333
333
|
readonly COMPLETE: "COMPLETE";
|
|
334
334
|
readonly PARTIAL: "PARTIAL";
|
|
335
335
|
}>>;
|
|
336
|
+
modbusProfile: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
336
337
|
models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
337
338
|
ownerAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
338
339
|
owningDepotSiteIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -527,6 +528,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
527
528
|
} | undefined;
|
|
528
529
|
lastSeen?: "LAST_7_DAYS" | "LAST_24_HOURS" | "LAST_30_DAYS" | "LAST_HOUR" | "OLDER_THAN_30_DAYS" | undefined;
|
|
529
530
|
metadataCompleteness?: "COMPLETE" | "PARTIAL" | undefined;
|
|
531
|
+
modbusProfile?: string[] | undefined;
|
|
530
532
|
models?: string[] | undefined;
|
|
531
533
|
ownerAccountIds?: string[] | undefined;
|
|
532
534
|
owningDepotSiteIds?: string[] | undefined;
|
|
@@ -642,6 +644,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
642
644
|
} | undefined;
|
|
643
645
|
lastSeen?: "LAST_7_DAYS" | "LAST_24_HOURS" | "LAST_30_DAYS" | "LAST_HOUR" | "OLDER_THAN_30_DAYS" | undefined;
|
|
644
646
|
metadataCompleteness?: "COMPLETE" | "PARTIAL" | undefined;
|
|
647
|
+
modbusProfile?: string[] | undefined;
|
|
645
648
|
models?: string[] | undefined;
|
|
646
649
|
ownerAccountIds?: string[] | undefined;
|
|
647
650
|
owningDepotSiteIds?: string[] | undefined;
|