@trackunit/custom-field-api 1.6.49 → 1.6.52
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 +7 -7
- package/index.esm.js +7 -7
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -2267,7 +2267,7 @@ 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
|
-
entityId: entityId
|
|
2270
|
+
entityId: entityId || "",
|
|
2271
2271
|
systemOfMeasurement,
|
|
2272
2272
|
},
|
|
2273
2273
|
skip: entityType !== "ASSET" || !entityId,
|
|
@@ -2279,7 +2279,7 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
|
|
|
2279
2279
|
});
|
|
2280
2280
|
const { data: siteFields, loading: loadingSiteFields, refetch: refetchSiteFields, } = client.useQuery(GetCustomFieldsForSiteDocument, {
|
|
2281
2281
|
variables: {
|
|
2282
|
-
entityId: entityId
|
|
2282
|
+
entityId: entityId || "",
|
|
2283
2283
|
systemOfMeasurement,
|
|
2284
2284
|
},
|
|
2285
2285
|
skip: entityType !== "SITE" || !entityId,
|
|
@@ -2376,7 +2376,7 @@ const useCustomFieldDefinitions = ({ entityType, filterQuery, owners, systemOfMe
|
|
|
2376
2376
|
variables: {
|
|
2377
2377
|
entityType,
|
|
2378
2378
|
systemOfMeasurement,
|
|
2379
|
-
irisAppId: irisAppId,
|
|
2379
|
+
irisAppId: irisAppId || "",
|
|
2380
2380
|
},
|
|
2381
2381
|
skip: !irisAppId,
|
|
2382
2382
|
context: {
|
|
@@ -2435,9 +2435,9 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
2435
2435
|
const { irisAppId } = reactCoreHooks.useIrisAppId();
|
|
2436
2436
|
const { data: assetFields, loading: loadingAssetFields } = client.useQuery(GetCustomFieldsForAssetForIrisAppDocument, {
|
|
2437
2437
|
variables: {
|
|
2438
|
-
entityId: entityId
|
|
2438
|
+
entityId: entityId || "",
|
|
2439
2439
|
systemOfMeasurement,
|
|
2440
|
-
irisAppId: irisAppId,
|
|
2440
|
+
irisAppId: irisAppId || "",
|
|
2441
2441
|
},
|
|
2442
2442
|
skip: entityType !== "ASSET" || !entityId || !irisAppId,
|
|
2443
2443
|
context: {
|
|
@@ -2448,9 +2448,9 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
2448
2448
|
});
|
|
2449
2449
|
const { data: siteFields, loading: loadingSiteFields } = client.useQuery(GetCustomFieldsForSiteForIrisAppDocument, {
|
|
2450
2450
|
variables: {
|
|
2451
|
-
entityId: entityId
|
|
2451
|
+
entityId: entityId || "",
|
|
2452
2452
|
systemOfMeasurement,
|
|
2453
|
-
irisAppId: irisAppId,
|
|
2453
|
+
irisAppId: irisAppId || "",
|
|
2454
2454
|
},
|
|
2455
2455
|
skip: entityType !== "SITE" || !entityId || !irisAppId,
|
|
2456
2456
|
context: {
|
package/index.esm.js
CHANGED
|
@@ -2265,7 +2265,7 @@ 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
|
-
entityId: entityId
|
|
2268
|
+
entityId: entityId || "",
|
|
2269
2269
|
systemOfMeasurement,
|
|
2270
2270
|
},
|
|
2271
2271
|
skip: entityType !== "ASSET" || !entityId,
|
|
@@ -2277,7 +2277,7 @@ const useAllCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMe
|
|
|
2277
2277
|
});
|
|
2278
2278
|
const { data: siteFields, loading: loadingSiteFields, refetch: refetchSiteFields, } = useQuery(GetCustomFieldsForSiteDocument, {
|
|
2279
2279
|
variables: {
|
|
2280
|
-
entityId: entityId
|
|
2280
|
+
entityId: entityId || "",
|
|
2281
2281
|
systemOfMeasurement,
|
|
2282
2282
|
},
|
|
2283
2283
|
skip: entityType !== "SITE" || !entityId,
|
|
@@ -2374,7 +2374,7 @@ const useCustomFieldDefinitions = ({ entityType, filterQuery, owners, systemOfMe
|
|
|
2374
2374
|
variables: {
|
|
2375
2375
|
entityType,
|
|
2376
2376
|
systemOfMeasurement,
|
|
2377
|
-
irisAppId: irisAppId,
|
|
2377
|
+
irisAppId: irisAppId || "",
|
|
2378
2378
|
},
|
|
2379
2379
|
skip: !irisAppId,
|
|
2380
2380
|
context: {
|
|
@@ -2433,9 +2433,9 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
2433
2433
|
const { irisAppId } = useIrisAppId();
|
|
2434
2434
|
const { data: assetFields, loading: loadingAssetFields } = useQuery(GetCustomFieldsForAssetForIrisAppDocument, {
|
|
2435
2435
|
variables: {
|
|
2436
|
-
entityId: entityId
|
|
2436
|
+
entityId: entityId || "",
|
|
2437
2437
|
systemOfMeasurement,
|
|
2438
|
-
irisAppId: irisAppId,
|
|
2438
|
+
irisAppId: irisAppId || "",
|
|
2439
2439
|
},
|
|
2440
2440
|
skip: entityType !== "ASSET" || !entityId || !irisAppId,
|
|
2441
2441
|
context: {
|
|
@@ -2446,9 +2446,9 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
2446
2446
|
});
|
|
2447
2447
|
const { data: siteFields, loading: loadingSiteFields } = useQuery(GetCustomFieldsForSiteForIrisAppDocument, {
|
|
2448
2448
|
variables: {
|
|
2449
|
-
entityId: entityId
|
|
2449
|
+
entityId: entityId || "",
|
|
2450
2450
|
systemOfMeasurement,
|
|
2451
|
-
irisAppId: irisAppId,
|
|
2451
|
+
irisAppId: irisAppId || "",
|
|
2452
2452
|
},
|
|
2453
2453
|
skip: entityType !== "SITE" || !entityId || !irisAppId,
|
|
2454
2454
|
context: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-api",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.52",
|
|
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.
|
|
16
|
-
"@trackunit/iris-app-api": "1.6.
|
|
17
|
-
"@trackunit/react-core-contexts-test": "1.6.
|
|
18
|
-
"@trackunit/shared-utils": "1.8.
|
|
19
|
-
"@trackunit/react-core-hooks": "1.6.
|
|
20
|
-
"@trackunit/iris-app-runtime-core": "1.7.
|
|
21
|
-
"@trackunit/react-core-contexts-api": "1.7.
|
|
22
|
-
"@trackunit/react-test-setup": "1.3.
|
|
15
|
+
"@trackunit/iris-app-build-utilities": "1.6.48",
|
|
16
|
+
"@trackunit/iris-app-api": "1.6.48",
|
|
17
|
+
"@trackunit/react-core-contexts-test": "1.6.51",
|
|
18
|
+
"@trackunit/shared-utils": "1.8.48",
|
|
19
|
+
"@trackunit/react-core-hooks": "1.6.51",
|
|
20
|
+
"@trackunit/iris-app-runtime-core": "1.7.50",
|
|
21
|
+
"@trackunit/react-core-contexts-api": "1.7.49",
|
|
22
|
+
"@trackunit/react-test-setup": "1.3.48"
|
|
23
23
|
},
|
|
24
24
|
"module": "./index.esm.js",
|
|
25
25
|
"main": "./index.cjs.js",
|