@trackunit/filters-graphql-hook 2.3.2 → 2.3.4

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/filters-graphql-hook",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
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.1.0",
14
- "@trackunit/filters-filter-bar": "2.2.1",
15
- "@trackunit/shared-utils": "1.15.62",
16
- "@trackunit/iris-app-api": "2.1.0",
17
- "@trackunit/react-core-contexts-test": "1.17.69",
18
- "@trackunit/i18n-library-translation": "2.1.0",
19
- "@trackunit/iris-app-runtime-core-api": "1.16.68",
20
- "@trackunit/react-core-hooks": "1.18.0"
13
+ "@trackunit/iris-app-build-utilities": "2.1.1",
14
+ "@trackunit/filters-filter-bar": "2.2.2",
15
+ "@trackunit/shared-utils": "1.15.63",
16
+ "@trackunit/iris-app-api": "2.1.1",
17
+ "@trackunit/react-core-contexts-test": "1.17.70",
18
+ "@trackunit/i18n-library-translation": "2.1.1",
19
+ "@trackunit/iris-app-runtime-core-api": "1.16.69",
20
+ "@trackunit/react-core-hooks": "1.18.1"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@apollo/client": "^3.13.8",
@@ -354,6 +354,8 @@ export declare const assetSortByProperty: {
354
354
  readonly FUEL_LEVEL: "FUEL_LEVEL";
355
355
  readonly ISSUE_CREATED_AT: "ISSUE_CREATED_AT";
356
356
  readonly LAST_EVENT_TIME: "LAST_EVENT_TIME";
357
+ readonly LAST_INSPECTION_PERFORMED_AT: "LAST_INSPECTION_PERFORMED_AT";
358
+ readonly LAST_INSPECTION_STATUS: "LAST_INSPECTION_STATUS";
357
359
  readonly LOCATION: "LOCATION";
358
360
  readonly LOCATION_UPDATED_AT: "LOCATION_UPDATED_AT";
359
361
  readonly MODEL: "MODEL";
@@ -458,6 +460,31 @@ export declare const geometryRelation: {
458
460
  readonly WITHIN: "WITHIN";
459
461
  };
460
462
  export type GeometryRelation = (typeof geometryRelation)[keyof typeof geometryRelation];
463
+ export declare const inspectionLastPerformed: {
464
+ readonly EVER: "EVER";
465
+ readonly MORE_THAN_LAST_2_HOURS: "MORE_THAN_LAST_2_HOURS";
466
+ readonly MORE_THAN_LAST_7_DAYS: "MORE_THAN_LAST_7_DAYS";
467
+ readonly MORE_THAN_LAST_8_HOURS: "MORE_THAN_LAST_8_HOURS";
468
+ readonly MORE_THAN_LAST_12_HOURS: "MORE_THAN_LAST_12_HOURS";
469
+ readonly MORE_THAN_LAST_24_HOURS: "MORE_THAN_LAST_24_HOURS";
470
+ readonly MORE_THAN_LAST_30_DAYS: "MORE_THAN_LAST_30_DAYS";
471
+ readonly MORE_THAN_LAST_HOUR: "MORE_THAN_LAST_HOUR";
472
+ readonly WITHIN_LAST_2_HOURS: "WITHIN_LAST_2_HOURS";
473
+ readonly WITHIN_LAST_7_DAYS: "WITHIN_LAST_7_DAYS";
474
+ readonly WITHIN_LAST_8_HOURS: "WITHIN_LAST_8_HOURS";
475
+ readonly WITHIN_LAST_12_HOURS: "WITHIN_LAST_12_HOURS";
476
+ readonly WITHIN_LAST_24_HOURS: "WITHIN_LAST_24_HOURS";
477
+ readonly WITHIN_LAST_30_DAYS: "WITHIN_LAST_30_DAYS";
478
+ readonly WITHIN_LAST_HOUR: "WITHIN_LAST_HOUR";
479
+ };
480
+ export type InspectionLastPerformed = (typeof inspectionLastPerformed)[keyof typeof inspectionLastPerformed];
481
+ export declare const inspectionResponseStatus: {
482
+ readonly FAILED_CRITICAL: "FAILED_CRITICAL";
483
+ readonly FAILED_LOW: "FAILED_LOW";
484
+ readonly PASSED: "PASSED";
485
+ readonly SKIPPED: "SKIPPED";
486
+ };
487
+ export type InspectionResponseStatus = (typeof inspectionResponseStatus)[keyof typeof inspectionResponseStatus];
461
488
  export declare const metadataCompleteness: {
462
489
  readonly COMPLETE: "COMPLETE";
463
490
  readonly PARTIAL: "PARTIAL";
@@ -609,6 +636,8 @@ export type AssetFiltersInput = {
609
636
  insights?: InputMaybe<Array<AssetInsightType>>;
610
637
  /** Insights filters */
611
638
  insightsFilters?: InputMaybe<InsightsFilters>;
639
+ /** Filter by the asset's most recent inspection (account specific) */
640
+ inspectionLastFilters?: InputMaybe<InspectionLastFilters>;
612
641
  /** Filter by when was the asset last seen */
613
642
  lastSeen?: InputMaybe<AssetLastSeen>;
614
643
  /** Filter by PARTIAL or COMPLETE asset metadata information */
@@ -806,6 +835,14 @@ export type InsightsFilters = {
806
835
  /** The asset's fuel level */
807
836
  fuelLevel?: InputMaybe<NumberRange>;
808
837
  };
838
+ export type InspectionLastFilters = {
839
+ /** Also match assets that have no last inspection (never inspected). */
840
+ includeNeverInspected?: InputMaybe<Scalars["Boolean"]["input"]>;
841
+ /** Filter by when the last inspection was performed, as a relative time bucket. Use `EVER` for assets inspected at any time; use `includeNeverInspected: true` for assets never inspected. */
842
+ performed?: InputMaybe<InspectionLastPerformed>;
843
+ /** Filter to assets whose last inspection status is any of these values. */
844
+ statuses?: InputMaybe<Array<InspectionResponseStatus>>;
845
+ };
809
846
  export type NumberRange = {
810
847
  /** max number */
811
848
  max?: InputMaybe<Scalars["Float"]["input"]>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/filters/graphql-hook/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}