@trackunit/filters-graphql-hook 2.6.7 → 2.6.12-alpha-0874090e5e0.0
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
|
@@ -475,6 +475,7 @@ const useActiveAssetFilters = (filters) => {
|
|
|
475
475
|
return {
|
|
476
476
|
assetIds: stringArrayOrUndefined(filters.assetIds),
|
|
477
477
|
searchQuery: typeof filters.search === "string" && filters.search !== "" ? filters.search : undefined,
|
|
478
|
+
nameQuery: typeof filters.nameQuery === "string" && filters.nameQuery !== "" ? filters.nameQuery : undefined,
|
|
478
479
|
activities: fixTypes(filters.activity, assetActivityState),
|
|
479
480
|
geometry: parsedArea.success ? parsedArea.data : undefined,
|
|
480
481
|
brands: stringArrayOrUndefined(filters.brands),
|
|
@@ -662,6 +663,7 @@ const assetFiltersInputSchema = zod.z
|
|
|
662
663
|
rentalContractReferenceCodeDescriptionQuery: zod.z.string().optional(),
|
|
663
664
|
rentalContractReferenceCodes: zod.z.array(zod.z.string()).optional(),
|
|
664
665
|
rentalStatuses: zod.z.array(zod.z.nativeEnum(rentalStatus)).optional(),
|
|
666
|
+
nameQuery: zod.z.string().optional(),
|
|
665
667
|
searchQuery: zod.z.string().optional(),
|
|
666
668
|
serviceBooked: zod.z.array(zod.z.boolean()).optional(),
|
|
667
669
|
servicePlanAssignments: zod.z.array(zod.z.nativeEnum(servicePlanStatus)).optional(),
|
|
@@ -908,6 +910,9 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
|
|
|
908
910
|
if (parsed.data.rentalContractReferenceCodes !== undefined) {
|
|
909
911
|
filterBarValues.rentalContractReferenceCode = parsed.data.rentalContractReferenceCodes;
|
|
910
912
|
}
|
|
913
|
+
if (parsed.data.nameQuery !== undefined) {
|
|
914
|
+
filterBarValues.nameQuery = parsed.data.nameQuery;
|
|
915
|
+
}
|
|
911
916
|
if (parsed.data.rentalContractReferenceCodeDescriptionQuery !== undefined) {
|
|
912
917
|
filterBarValues.rentalContractReferenceCodeDescriptionQuery =
|
|
913
918
|
parsed.data.rentalContractReferenceCodeDescriptionQuery;
|
package/index.esm.js
CHANGED
|
@@ -473,6 +473,7 @@ const useActiveAssetFilters = (filters) => {
|
|
|
473
473
|
return {
|
|
474
474
|
assetIds: stringArrayOrUndefined(filters.assetIds),
|
|
475
475
|
searchQuery: typeof filters.search === "string" && filters.search !== "" ? filters.search : undefined,
|
|
476
|
+
nameQuery: typeof filters.nameQuery === "string" && filters.nameQuery !== "" ? filters.nameQuery : undefined,
|
|
476
477
|
activities: fixTypes(filters.activity, assetActivityState),
|
|
477
478
|
geometry: parsedArea.success ? parsedArea.data : undefined,
|
|
478
479
|
brands: stringArrayOrUndefined(filters.brands),
|
|
@@ -660,6 +661,7 @@ const assetFiltersInputSchema = z
|
|
|
660
661
|
rentalContractReferenceCodeDescriptionQuery: z.string().optional(),
|
|
661
662
|
rentalContractReferenceCodes: z.array(z.string()).optional(),
|
|
662
663
|
rentalStatuses: z.array(z.nativeEnum(rentalStatus)).optional(),
|
|
664
|
+
nameQuery: z.string().optional(),
|
|
663
665
|
searchQuery: z.string().optional(),
|
|
664
666
|
serviceBooked: z.array(z.boolean()).optional(),
|
|
665
667
|
servicePlanAssignments: z.array(z.nativeEnum(servicePlanStatus)).optional(),
|
|
@@ -906,6 +908,9 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
|
|
|
906
908
|
if (parsed.data.rentalContractReferenceCodes !== undefined) {
|
|
907
909
|
filterBarValues.rentalContractReferenceCode = parsed.data.rentalContractReferenceCodes;
|
|
908
910
|
}
|
|
911
|
+
if (parsed.data.nameQuery !== undefined) {
|
|
912
|
+
filterBarValues.nameQuery = parsed.data.nameQuery;
|
|
913
|
+
}
|
|
909
914
|
if (parsed.data.rentalContractReferenceCodeDescriptionQuery !== undefined) {
|
|
910
915
|
filterBarValues.rentalContractReferenceCodeDescriptionQuery =
|
|
911
916
|
parsed.data.rentalContractReferenceCodeDescriptionQuery;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-graphql-hook",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.12-alpha-0874090e5e0.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"@graphql-codegen/cli": "^5.0.3",
|
|
11
11
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
12
12
|
"zod": "^3.25.76",
|
|
13
|
-
"@trackunit/iris-app-build-utilities": "2.3.
|
|
14
|
-
"@trackunit/filters-filter-bar": "2.4.
|
|
15
|
-
"@trackunit/shared-utils": "1.16.
|
|
16
|
-
"@trackunit/iris-app-api": "2.3.
|
|
17
|
-
"@trackunit/react-core-contexts-test": "1.18.
|
|
18
|
-
"@trackunit/i18n-library-translation": "2.3.
|
|
19
|
-
"@trackunit/iris-app-runtime-core-api": "1.17.
|
|
20
|
-
"@trackunit/react-core-hooks": "1.20.
|
|
13
|
+
"@trackunit/iris-app-build-utilities": "2.3.5-alpha-0874090e5e0.0",
|
|
14
|
+
"@trackunit/filters-filter-bar": "2.4.8-alpha-0874090e5e0.0",
|
|
15
|
+
"@trackunit/shared-utils": "1.16.4-alpha-0874090e5e0.0",
|
|
16
|
+
"@trackunit/iris-app-api": "2.3.5-alpha-0874090e5e0.0",
|
|
17
|
+
"@trackunit/react-core-contexts-test": "1.18.4-alpha-0874090e5e0.0",
|
|
18
|
+
"@trackunit/i18n-library-translation": "2.3.5-alpha-0874090e5e0.0",
|
|
19
|
+
"@trackunit/iris-app-runtime-core-api": "1.17.4-alpha-0874090e5e0.0",
|
|
20
|
+
"@trackunit/react-core-hooks": "1.20.5-alpha-0874090e5e0.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@apollo/client": "^3.13.8",
|
|
@@ -650,6 +650,12 @@ export type AssetFiltersInput = {
|
|
|
650
650
|
modbusProfile?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
651
651
|
/** List of models */
|
|
652
652
|
models?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
653
|
+
/**
|
|
654
|
+
* Case-insensitive substring match on the account-specific asset name.
|
|
655
|
+
* Independent of `searchQuery` (which searches across multiple fields and enforces a minimum length).
|
|
656
|
+
* Empty values are ignored.
|
|
657
|
+
*/
|
|
658
|
+
nameQuery?: InputMaybe<Scalars["String"]["input"]>;
|
|
653
659
|
/** Filter by reported network technology values */
|
|
654
660
|
networkTechnology?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
655
661
|
/** List of owner account ids */
|
|
@@ -408,6 +408,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
408
408
|
readonly TRANSFER: "TRANSFER";
|
|
409
409
|
readonly UNDEFINED: "UNDEFINED";
|
|
410
410
|
}>, "many">>;
|
|
411
|
+
nameQuery: z.ZodOptional<z.ZodString>;
|
|
411
412
|
searchQuery: z.ZodOptional<z.ZodString>;
|
|
412
413
|
serviceBooked: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
|
|
413
414
|
servicePlanAssignments: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
@@ -538,6 +539,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
538
539
|
metadataCompleteness?: "COMPLETE" | "PARTIAL" | undefined;
|
|
539
540
|
modbusProfile?: string[] | undefined;
|
|
540
541
|
models?: string[] | undefined;
|
|
542
|
+
nameQuery?: string | undefined;
|
|
541
543
|
ownerAccountIds?: string[] | undefined;
|
|
542
544
|
owningDepotSiteIds?: string[] | undefined;
|
|
543
545
|
partnerId?: string | undefined;
|
|
@@ -657,6 +659,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
|
|
|
657
659
|
metadataCompleteness?: "COMPLETE" | "PARTIAL" | undefined;
|
|
658
660
|
modbusProfile?: string[] | undefined;
|
|
659
661
|
models?: string[] | undefined;
|
|
662
|
+
nameQuery?: string | undefined;
|
|
660
663
|
ownerAccountIds?: string[] | undefined;
|
|
661
664
|
owningDepotSiteIds?: string[] | undefined;
|
|
662
665
|
partnerId?: string | undefined;
|
package/migrations/entry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/filters/graphql-hook/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|