@trackunit/custom-field-api 0.1.122 → 0.1.126
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 +8 -3
- package/index.esm.d.ts +1 -0
- package/index.esm.js +8 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1317,7 +1317,7 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
1317
1317
|
const { data: assetFields, loading: loadingAssetFields } = client.useQuery(GetCustomFieldsForAssetDocument, {
|
|
1318
1318
|
variables: {
|
|
1319
1319
|
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
1320
|
-
entityId: entityId,
|
|
1320
|
+
entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
|
|
1321
1321
|
systemOfMeasurement,
|
|
1322
1322
|
},
|
|
1323
1323
|
skip: entityType !== "ASSET" || !entityId,
|
|
@@ -1330,7 +1330,7 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
1330
1330
|
const { data: siteFields, loading: loadingSiteFields } = client.useQuery(GetCustomFieldsForSiteDocument, {
|
|
1331
1331
|
variables: {
|
|
1332
1332
|
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
1333
|
-
entityId: entityId,
|
|
1333
|
+
entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
|
|
1334
1334
|
systemOfMeasurement,
|
|
1335
1335
|
},
|
|
1336
1336
|
skip: entityType !== "SITE" || !entityId,
|
|
@@ -1433,7 +1433,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1433
1433
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1434
1434
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1435
1435
|
});
|
|
1436
|
-
}
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1439
|
+
var e = new Error(message);
|
|
1440
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1441
|
+
};
|
|
1437
1442
|
|
|
1438
1443
|
/**
|
|
1439
1444
|
* Execute custom fields update from form data
|
package/index.esm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
package/index.esm.js
CHANGED
|
@@ -1313,7 +1313,7 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
1313
1313
|
const { data: assetFields, loading: loadingAssetFields } = useQuery(GetCustomFieldsForAssetDocument, {
|
|
1314
1314
|
variables: {
|
|
1315
1315
|
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
1316
|
-
entityId: entityId,
|
|
1316
|
+
entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
|
|
1317
1317
|
systemOfMeasurement,
|
|
1318
1318
|
},
|
|
1319
1319
|
skip: entityType !== "ASSET" || !entityId,
|
|
@@ -1326,7 +1326,7 @@ const useCustomFieldsValueAndDefinition = ({ entityId, entityType, systemOfMeasu
|
|
|
1326
1326
|
const { data: siteFields, loading: loadingSiteFields } = useQuery(GetCustomFieldsForSiteDocument, {
|
|
1327
1327
|
variables: {
|
|
1328
1328
|
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
1329
|
-
entityId: entityId,
|
|
1329
|
+
entityId: entityId, // Assertion used as ts does not understand the skip removes nulls and undefined.
|
|
1330
1330
|
systemOfMeasurement,
|
|
1331
1331
|
},
|
|
1332
1332
|
skip: entityType !== "SITE" || !entityId,
|
|
@@ -1429,7 +1429,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1429
1429
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1430
1430
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1431
1431
|
});
|
|
1432
|
-
}
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
1435
|
+
var e = new Error(message);
|
|
1436
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1437
|
+
};
|
|
1433
1438
|
|
|
1434
1439
|
/**
|
|
1435
1440
|
* Execute custom fields update from form data
|