@trackunit/iris-app-runtime-core-api 1.7.82 → 1.7.84
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core-api",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.84",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
11
|
-
"@trackunit/shared-utils": "1.9.
|
|
12
|
-
"@trackunit/geo-json-utils": "1.7.
|
|
11
|
+
"@trackunit/shared-utils": "1.9.75",
|
|
12
|
+
"@trackunit/geo-json-utils": "1.7.75"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.esm.js",
|
|
15
15
|
"main": "./index.cjs.js",
|
|
@@ -32,6 +32,14 @@ export interface BaseExportable {
|
|
|
32
32
|
type: "math";
|
|
33
33
|
operation: "add" | "subtract" | "multiply" | "divide" | "modulo" | "power";
|
|
34
34
|
decimalPlaces?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Optional constant value to use as the second operand in the math operation.
|
|
37
|
+
* Use this when the second value is a client-side constant not available in the GraphQL response.
|
|
38
|
+
* If not provided, accessor must be an array with 2 elements to access both operands from data.
|
|
39
|
+
* Example: To calculate price (quantity × unitPrice) where unitPrice is client-side:
|
|
40
|
+
* { accessor: "quantity", transformer: { type: "math", operation: "multiply", constantValue: 3.50 } }
|
|
41
|
+
*/
|
|
42
|
+
constantValue?: number;
|
|
35
43
|
};
|
|
36
44
|
/**
|
|
37
45
|
* The prefix to add to the value only if the value is not empty
|