@trackunit/filters-graphql-hook 2.8.36-alpha-3e7014314a8.0 → 2.9.2

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
@@ -320,6 +320,15 @@ const assetType = {
320
320
  TOOL: "TOOL",
321
321
  VEHICLE: "VEHICLE",
322
322
  };
323
+ const connectedAccessoryType = {
324
+ DUALID: "DUALID",
325
+ DUALID_II: "DUALID_II",
326
+ IBUTTON_READER: "IBUTTON_READER",
327
+ K300: "K300",
328
+ M7_KEYPAD: "M7_KEYPAD",
329
+ NO_ACCESSORY_CONNECTED: "NO_ACCESSORY_CONNECTED",
330
+ UNKNOWN: "UNKNOWN",
331
+ };
323
332
  const deviceHealthDeviceStatus = {
324
333
  CRITICAL: "CRITICAL",
325
334
  LOW: "LOW",
@@ -615,6 +624,7 @@ const useActiveAssetFilters = (filters) => {
615
624
  can2Profile: valueNameArrayOrUndefined(filters.can2Profile),
616
625
  modbusProfile: valueNameArrayOrUndefined(filters.modbusProfile),
617
626
  networkTechnology: valueNameArrayOrUndefined(filters.networkTechnology),
627
+ connectedAccessoryTypes: fixTypes(filters.connectedAccessoryTypes, connectedAccessoryType),
618
628
  sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility),
619
629
  accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
620
630
  insightsFilters: {
package/index.esm.js CHANGED
@@ -318,6 +318,15 @@ const assetType = {
318
318
  TOOL: "TOOL",
319
319
  VEHICLE: "VEHICLE",
320
320
  };
321
+ const connectedAccessoryType = {
322
+ DUALID: "DUALID",
323
+ DUALID_II: "DUALID_II",
324
+ IBUTTON_READER: "IBUTTON_READER",
325
+ K300: "K300",
326
+ M7_KEYPAD: "M7_KEYPAD",
327
+ NO_ACCESSORY_CONNECTED: "NO_ACCESSORY_CONNECTED",
328
+ UNKNOWN: "UNKNOWN",
329
+ };
321
330
  const deviceHealthDeviceStatus = {
322
331
  CRITICAL: "CRITICAL",
323
332
  LOW: "LOW",
@@ -613,6 +622,7 @@ const useActiveAssetFilters = (filters) => {
613
622
  can2Profile: valueNameArrayOrUndefined(filters.can2Profile),
614
623
  modbusProfile: valueNameArrayOrUndefined(filters.modbusProfile),
615
624
  networkTechnology: valueNameArrayOrUndefined(filters.networkTechnology),
625
+ connectedAccessoryTypes: fixTypes(filters.connectedAccessoryTypes, connectedAccessoryType),
616
626
  sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility),
617
627
  accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
618
628
  insightsFilters: {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-graphql-hook",
3
- "version": "2.8.36-alpha-3e7014314a8.0",
3
+ "version": "2.9.2",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,14 +10,14 @@
10
10
  "@graphql-codegen/cli": "^5.0.3",
11
11
  "@graphql-typed-document-node/core": "^3.2.0",
12
12
  "zod": "^3.25.76",
13
- "@trackunit/iris-app-build-utilities": "2.4.20-alpha-3e7014314a8.0",
14
- "@trackunit/filters-filter-bar": "2.6.23-alpha-3e7014314a8.0",
15
- "@trackunit/shared-utils": "1.16.23-alpha-3e7014314a8.0",
16
- "@trackunit/iris-app-api": "2.4.14-alpha-3e7014314a8.0",
17
- "@trackunit/react-core-contexts-test": "1.18.28-alpha-3e7014314a8.0",
18
- "@trackunit/i18n-library-translation": "2.4.22-alpha-3e7014314a8.0",
19
- "@trackunit/iris-app-runtime-core-api": "1.17.28-alpha-3e7014314a8.0",
20
- "@trackunit/react-core-hooks": "1.21.22-alpha-3e7014314a8.0"
13
+ "@trackunit/iris-app-build-utilities": "2.4.25",
14
+ "@trackunit/filters-filter-bar": "2.6.29",
15
+ "@trackunit/shared-utils": "1.16.22",
16
+ "@trackunit/iris-app-api": "2.4.19",
17
+ "@trackunit/react-core-contexts-test": "1.18.28",
18
+ "@trackunit/i18n-library-translation": "2.4.27",
19
+ "@trackunit/iris-app-runtime-core-api": "1.17.28",
20
+ "@trackunit/react-core-hooks": "1.21.27"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@apollo/client": "^3.13.8",
@@ -387,6 +387,21 @@ export declare const assetType: {
387
387
  readonly VEHICLE: "VEHICLE";
388
388
  };
389
389
  export type AssetType = (typeof assetType)[keyof typeof assetType];
390
+ export declare const connectedAccessoryCategory: {
391
+ readonly ACCESS_MANAGEMENT_DEVICE: "ACCESS_MANAGEMENT_DEVICE";
392
+ readonly UNKNOWN: "UNKNOWN";
393
+ };
394
+ export type ConnectedAccessoryCategory = (typeof connectedAccessoryCategory)[keyof typeof connectedAccessoryCategory];
395
+ export declare const connectedAccessoryType: {
396
+ readonly DUALID: "DUALID";
397
+ readonly DUALID_II: "DUALID_II";
398
+ readonly IBUTTON_READER: "IBUTTON_READER";
399
+ readonly K300: "K300";
400
+ readonly M7_KEYPAD: "M7_KEYPAD";
401
+ readonly NO_ACCESSORY_CONNECTED: "NO_ACCESSORY_CONNECTED";
402
+ readonly UNKNOWN: "UNKNOWN";
403
+ };
404
+ export type ConnectedAccessoryType = (typeof connectedAccessoryType)[keyof typeof connectedAccessoryType];
390
405
  export declare const customFieldOwnerType: {
391
406
  readonly ACCOUNT: "ACCOUNT";
392
407
  readonly IRIS_APP: "IRIS_APP";
@@ -588,6 +603,13 @@ export type AssetFiltersInput = {
588
603
  can1Profile?: InputMaybe<Array<Scalars["String"]["input"]>>;
589
604
  /** Filter by reported CAN profile 2 values */
590
605
  can2Profile?: InputMaybe<Array<Scalars["String"]["input"]>>;
606
+ /** Filter by the category of the accessories an asset reports */
607
+ connectedAccessoryCategories?: InputMaybe<Array<ConnectedAccessoryCategory>>;
608
+ /**
609
+ * Filter by the type of the accessories an asset reports. Combined with
610
+ * `connectedAccessoryCategories`, an asset is selected where it reports an accessory matching both.
611
+ */
612
+ connectedAccessoryTypes?: InputMaybe<Array<ConnectedAccessoryType>>;
591
613
  /** Filter to only include this list of countries */
592
614
  countries?: InputMaybe<Array<Scalars["String"]["input"]>>;
593
615
  /** List of criticalities */
@@ -1,5 +1,9 @@
1
1
  import { DeepPartialNullable } from "@trackunit/react-core-contexts-test";
2
2
  import * as gql from "./graphql";
3
+ /**
4
+ * Required authorization scopes (the token needs at least one allowed scope per accessed field):
5
+ * - asset.view
6
+ */
3
7
  export declare const mockForGetFilteredAssetsQuery: (variables?: DeepPartialNullable<gql.GetFilteredAssetsQueryVariables>, data?: DeepPartialNullable<gql.GetFilteredAssetsQuery>) => import("@apollo/client/testing").MockedResponse<gql.GetFilteredAssetsQuery, Record<string, any>> & {
4
8
  data: gql.GetFilteredAssetsQuery;
5
9
  };