@trackunit/filters-graphql-hook 1.10.44 → 1.10.47

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
@@ -197,6 +197,13 @@ const geoJsonSimplifiedPolygonSchema = zod.z.strictObject({
197
197
  coordinates: zod.z.array(zod.z.array(zod.z.tuple([zod.z.number(), zod.z.number()]))),
198
198
  });
199
199
 
200
+ const accessManagementMode = {
201
+ LOCKED_FOR_ALL: "LOCKED_FOR_ALL",
202
+ UNKNOWN: "UNKNOWN",
203
+ UNLOCKED_FOR_ALL: "UNLOCKED_FOR_ALL",
204
+ UNLOCKED_FOR_KEY: "UNLOCKED_FOR_KEY",
205
+ UNSUPPORTED: "UNSUPPORTED",
206
+ };
200
207
  const assetActivityState = {
201
208
  IDLING: "IDLING",
202
209
  STOPPED: "STOPPED",
@@ -398,6 +405,7 @@ const useActiveAssetFilters = (filters) => {
398
405
  sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility) === false
399
406
  ? null
400
407
  : valueBooleanOrUndefined(filters.assetVisibility),
408
+ accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
401
409
  };
402
410
  }, [filters, customFields, systemOfMeasurement]);
403
411
  };
package/index.esm.js CHANGED
@@ -195,6 +195,13 @@ const geoJsonSimplifiedPolygonSchema = z.strictObject({
195
195
  coordinates: z.array(z.array(z.tuple([z.number(), z.number()]))),
196
196
  });
197
197
 
198
+ const accessManagementMode = {
199
+ LOCKED_FOR_ALL: "LOCKED_FOR_ALL",
200
+ UNKNOWN: "UNKNOWN",
201
+ UNLOCKED_FOR_ALL: "UNLOCKED_FOR_ALL",
202
+ UNLOCKED_FOR_KEY: "UNLOCKED_FOR_KEY",
203
+ UNSUPPORTED: "UNSUPPORTED",
204
+ };
198
205
  const assetActivityState = {
199
206
  IDLING: "IDLING",
200
207
  STOPPED: "STOPPED",
@@ -396,6 +403,7 @@ const useActiveAssetFilters = (filters) => {
396
403
  sustainabilityExcluded: valueBooleanOrUndefined(filters.assetVisibility) === false
397
404
  ? null
398
405
  : valueBooleanOrUndefined(filters.assetVisibility),
406
+ accessManagementDesiredModes: fixTypes(filters.accessManagementMode, accessManagementMode),
399
407
  };
400
408
  }, [filters, customFields, systemOfMeasurement]);
401
409
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-graphql-hook",
3
- "version": "1.10.44",
3
+ "version": "1.10.47",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,15 +13,15 @@
13
13
  "graphql": "^16.10.0",
14
14
  "@apollo/client": "3.13.8",
15
15
  "zod": "^3.23.8",
16
- "@trackunit/iris-app-build-utilities": "1.7.28",
17
- "@trackunit/filters-filter-bar": "1.8.43",
18
- "@trackunit/shared-utils": "1.9.27",
19
- "@trackunit/iris-app-api": "1.7.28",
20
- "@trackunit/react-core-contexts-test": "1.7.32",
21
- "@trackunit/i18n-library-translation": "1.7.33",
22
- "@trackunit/react-core-contexts-api": "1.8.29",
23
- "@trackunit/react-core-hooks": "1.7.32",
24
- "@trackunit/react-test-setup": "1.4.27"
16
+ "@trackunit/iris-app-build-utilities": "1.7.30",
17
+ "@trackunit/filters-filter-bar": "1.8.46",
18
+ "@trackunit/shared-utils": "1.9.29",
19
+ "@trackunit/iris-app-api": "1.7.30",
20
+ "@trackunit/react-core-contexts-test": "1.7.34",
21
+ "@trackunit/i18n-library-translation": "1.7.35",
22
+ "@trackunit/react-core-contexts-api": "1.8.31",
23
+ "@trackunit/react-core-hooks": "1.7.34",
24
+ "@trackunit/react-test-setup": "1.4.29"
25
25
  },
26
26
  "module": "./index.esm.js",
27
27
  "main": "./index.cjs.js",