@trackunit/filters-graphql-hook 1.5.108 → 1.5.110
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 +10 -10
- package/src/fixTypes.d.ts +5 -5
- package/src/useAssetQueryFilters.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-graphql-hook",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.110",
|
|
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.4",
|
|
16
|
-
"@trackunit/iris-app-build-utilities": "1.3.
|
|
17
|
-
"@trackunit/filters-filter-bar": "1.3.
|
|
18
|
-
"@trackunit/shared-utils": "1.5.
|
|
19
|
-
"@trackunit/iris-app-api": "1.3.
|
|
20
|
-
"@trackunit/react-core-contexts-test": "1.3.
|
|
21
|
-
"@trackunit/i18n-library-translation": "1.3.
|
|
22
|
-
"@trackunit/react-core-contexts-api": "1.4.
|
|
23
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
24
|
-
"@trackunit/react-test-setup": "1.0.
|
|
16
|
+
"@trackunit/iris-app-build-utilities": "1.3.148",
|
|
17
|
+
"@trackunit/filters-filter-bar": "1.3.236",
|
|
18
|
+
"@trackunit/shared-utils": "1.5.141",
|
|
19
|
+
"@trackunit/iris-app-api": "1.3.148",
|
|
20
|
+
"@trackunit/react-core-contexts-test": "1.3.154",
|
|
21
|
+
"@trackunit/i18n-library-translation": "1.3.160",
|
|
22
|
+
"@trackunit/react-core-contexts-api": "1.4.148",
|
|
23
|
+
"@trackunit/react-core-hooks": "1.3.153",
|
|
24
|
+
"@trackunit/react-test-setup": "1.0.31"
|
|
25
25
|
},
|
|
26
26
|
"module": "./index.esm.js",
|
|
27
27
|
"main": "./index.cjs.js",
|
package/src/fixTypes.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
* @param outputTypeRecord - record with output types
|
|
8
8
|
* @returns {Record | undefined}- fixed filter values
|
|
9
9
|
*/
|
|
10
|
-
export declare const fixTypes: <TRecordType extends Record<string, string>>(values: any, outputTypeRecord: TRecordType) => TRecordType[keyof TRecordType]
|
|
10
|
+
export declare const fixTypes: <TRecordType extends Record<string, string>>(values: any, outputTypeRecord: TRecordType) => Array<TRecordType[keyof TRecordType]> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Fix type for filter value
|
|
13
13
|
*
|
|
@@ -23,11 +23,11 @@ export declare const valuesIfNotEmpty: <TReturnType>(value: TReturnType) => TRet
|
|
|
23
23
|
/**
|
|
24
24
|
* Check if value is string array
|
|
25
25
|
*/
|
|
26
|
-
export declare const isStringArrayValue: (value: any) => value is string
|
|
26
|
+
export declare const isStringArrayValue: (value: any) => value is Array<string>;
|
|
27
27
|
/**
|
|
28
28
|
* Check if value is string array or undefined
|
|
29
29
|
*/
|
|
30
|
-
export declare const stringArrayOrUndefined: (value: any) => string
|
|
30
|
+
export declare const stringArrayOrUndefined: (value: any) => Array<string> | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Type guard to check if a value is a single ValueName object
|
|
33
33
|
*/
|
|
@@ -35,11 +35,11 @@ export declare const isValueName: (value: unknown) => value is ValueName;
|
|
|
35
35
|
/**
|
|
36
36
|
* Check if value is ValueName[]
|
|
37
37
|
*/
|
|
38
|
-
export declare const isValueNameArray: (value: unknown) => value is ValueName
|
|
38
|
+
export declare const isValueNameArray: (value: unknown) => value is Array<ValueName>;
|
|
39
39
|
/**
|
|
40
40
|
* Check if value is ValueName[] or undefined
|
|
41
41
|
*/
|
|
42
|
-
export declare const valueNameArrayOrUndefined: (input: any) => string
|
|
42
|
+
export declare const valueNameArrayOrUndefined: (input: any) => Array<string> | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Check if value is ValueName or undefined
|
|
45
45
|
*/
|
|
@@ -8,7 +8,7 @@ export interface AssetQueryInputVariables {
|
|
|
8
8
|
first: number | null | undefined;
|
|
9
9
|
last: number | null | undefined;
|
|
10
10
|
systemOfMeasurement: SystemOfMeasurement;
|
|
11
|
-
definitionIds: string
|
|
11
|
+
definitionIds: Array<string> | null;
|
|
12
12
|
}
|
|
13
13
|
export interface AssetQueryFilters {
|
|
14
14
|
assetQueryVariables: AssetQueryInputVariables;
|