@trackunit/custom-field-api 1.6.29 → 1.6.30

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
@@ -2267,7 +2267,6 @@ const getAllCustomFieldValueAndDefinitionFromRelevantNode = (node) => getFragmen
2267
2267
  const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasurement, }) => {
2268
2268
  const { data: assetFields, loading: loadingAssetFields, refetch: refetchAssetFields, } = client.useQuery(GetCustomFieldsForAssetDocument, {
2269
2269
  variables: {
2270
- // eslint-disable-next-line local-rules/no-typescript-assertion
2271
2270
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2272
2271
  systemOfMeasurement,
2273
2272
  },
@@ -2280,7 +2279,6 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
2280
2279
  });
2281
2280
  const { data: siteFields, loading: loadingSiteFields, refetch: refetchSiteFields, } = client.useQuery(GetCustomFieldsForSiteDocument, {
2282
2281
  variables: {
2283
- // eslint-disable-next-line local-rules/no-typescript-assertion
2284
2282
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2285
2283
  systemOfMeasurement,
2286
2284
  },
@@ -2437,10 +2435,8 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2437
2435
  const { irisAppId } = reactCoreHooks.useIrisAppId();
2438
2436
  const { data: assetFields, loading: loadingAssetFields } = client.useQuery(GetCustomFieldsForAssetForIrisAppDocument, {
2439
2437
  variables: {
2440
- // eslint-disable-next-line local-rules/no-typescript-assertion
2441
2438
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2442
2439
  systemOfMeasurement,
2443
- // eslint-disable-next-line local-rules/no-typescript-assertion
2444
2440
  irisAppId: irisAppId,
2445
2441
  },
2446
2442
  skip: entityType !== "ASSET" || !entityId || !irisAppId,
@@ -2452,10 +2448,8 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2452
2448
  });
2453
2449
  const { data: siteFields, loading: loadingSiteFields } = client.useQuery(GetCustomFieldsForSiteForIrisAppDocument, {
2454
2450
  variables: {
2455
- // eslint-disable-next-line local-rules/no-typescript-assertion
2456
2451
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2457
2452
  systemOfMeasurement,
2458
- // eslint-disable-next-line local-rules/no-typescript-assertion
2459
2453
  irisAppId: irisAppId,
2460
2454
  },
2461
2455
  skip: entityType !== "SITE" || !entityId || !irisAppId,
package/index.esm.js CHANGED
@@ -2265,7 +2265,6 @@ const getAllCustomFieldValueAndDefinitionFromRelevantNode = (node) => getFragmen
2265
2265
  const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasurement, }) => {
2266
2266
  const { data: assetFields, loading: loadingAssetFields, refetch: refetchAssetFields, } = useQuery(GetCustomFieldsForAssetDocument, {
2267
2267
  variables: {
2268
- // eslint-disable-next-line local-rules/no-typescript-assertion
2269
2268
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2270
2269
  systemOfMeasurement,
2271
2270
  },
@@ -2278,7 +2277,6 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
2278
2277
  });
2279
2278
  const { data: siteFields, loading: loadingSiteFields, refetch: refetchSiteFields, } = useQuery(GetCustomFieldsForSiteDocument, {
2280
2279
  variables: {
2281
- // eslint-disable-next-line local-rules/no-typescript-assertion
2282
2280
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2283
2281
  systemOfMeasurement,
2284
2282
  },
@@ -2435,10 +2433,8 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2435
2433
  const { irisAppId } = useIrisAppId();
2436
2434
  const { data: assetFields, loading: loadingAssetFields } = useQuery(GetCustomFieldsForAssetForIrisAppDocument, {
2437
2435
  variables: {
2438
- // eslint-disable-next-line local-rules/no-typescript-assertion
2439
2436
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2440
2437
  systemOfMeasurement,
2441
- // eslint-disable-next-line local-rules/no-typescript-assertion
2442
2438
  irisAppId: irisAppId,
2443
2439
  },
2444
2440
  skip: entityType !== "ASSET" || !entityId || !irisAppId,
@@ -2450,10 +2446,8 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
2450
2446
  });
2451
2447
  const { data: siteFields, loading: loadingSiteFields } = useQuery(GetCustomFieldsForSiteForIrisAppDocument, {
2452
2448
  variables: {
2453
- // eslint-disable-next-line local-rules/no-typescript-assertion
2454
2449
  entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
2455
2450
  systemOfMeasurement,
2456
- // eslint-disable-next-line local-rules/no-typescript-assertion
2457
2451
  irisAppId: irisAppId,
2458
2452
  },
2459
2453
  skip: entityType !== "SITE" || !entityId || !irisAppId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-api",
3
- "version": "1.6.29",
3
+ "version": "1.6.30",
4
4
  "engines": {
5
5
  "node": ">=22.x"
6
6
  },
@@ -12,14 +12,14 @@
12
12
  "graphql": "^16.10.0",
13
13
  "@apollo/client": "3.13.8",
14
14
  "react": "19.0.0",
15
- "@trackunit/iris-app-build-utilities": "1.6.26",
16
- "@trackunit/iris-app-api": "1.6.26",
17
- "@trackunit/react-core-contexts-test": "1.6.28",
18
- "@trackunit/shared-utils": "1.8.26",
19
- "@trackunit/react-core-hooks": "1.6.28",
20
- "@trackunit/iris-app-runtime-core": "1.7.28",
21
- "@trackunit/react-core-contexts-api": "1.7.27",
22
- "@trackunit/react-test-setup": "1.3.26"
15
+ "@trackunit/iris-app-build-utilities": "1.6.27",
16
+ "@trackunit/iris-app-api": "1.6.27",
17
+ "@trackunit/react-core-contexts-test": "1.6.29",
18
+ "@trackunit/shared-utils": "1.8.27",
19
+ "@trackunit/react-core-hooks": "1.6.29",
20
+ "@trackunit/iris-app-runtime-core": "1.7.29",
21
+ "@trackunit/react-core-contexts-api": "1.7.28",
22
+ "@trackunit/react-test-setup": "1.3.27"
23
23
  },
24
24
  "module": "./index.esm.js",
25
25
  "main": "./index.cjs.js",