@trackunit/filters-asset-filter-definitions 2.4.2 → 2.4.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-asset-filter-definitions",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -12,24 +12,24 @@
12
12
  "zod": "^3.25.76",
13
13
  "string-ts": "^2.0.0",
14
14
  "tailwind-merge": "^2.0.0",
15
- "@trackunit/iris-app-build-utilities": "2.1.0",
16
- "@trackunit/filters-filter-bar": "2.2.1",
17
- "@trackunit/react-core-hooks": "1.18.0",
18
- "@trackunit/react-filter-components": "2.2.1",
19
- "@trackunit/react-form-components": "2.2.1",
20
- "@trackunit/filters-graphql-hook": "2.3.2",
21
- "@trackunit/utilization-indicator": "2.2.0",
22
- "@trackunit/geo-json-utils": "1.14.62",
23
- "@trackunit/react-components": "2.2.0",
24
- "@trackunit/shared-utils": "1.15.62",
25
- "@trackunit/translations-machine-type": "2.1.0",
26
- "@trackunit/criticality-indicator": "2.2.0",
27
- "@trackunit/iris-app-api": "2.1.0",
28
- "@trackunit/react-core-contexts-test": "1.17.69",
29
- "@trackunit/i18n-library-translation": "2.1.0",
30
- "@trackunit/iris-app-runtime-core-api": "1.16.68",
31
- "@trackunit/react-graphql-hooks": "2.2.0",
32
- "@trackunit/translations-device": "1.3.1"
15
+ "@trackunit/iris-app-build-utilities": "2.1.1",
16
+ "@trackunit/filters-filter-bar": "2.2.2",
17
+ "@trackunit/react-core-hooks": "1.18.1",
18
+ "@trackunit/react-filter-components": "2.2.2",
19
+ "@trackunit/react-form-components": "2.2.2",
20
+ "@trackunit/filters-graphql-hook": "2.3.4",
21
+ "@trackunit/utilization-indicator": "2.2.1",
22
+ "@trackunit/geo-json-utils": "1.14.63",
23
+ "@trackunit/react-components": "2.2.1",
24
+ "@trackunit/shared-utils": "1.15.63",
25
+ "@trackunit/translations-machine-type": "2.1.1",
26
+ "@trackunit/criticality-indicator": "2.2.1",
27
+ "@trackunit/iris-app-api": "2.1.1",
28
+ "@trackunit/react-core-contexts-test": "1.17.70",
29
+ "@trackunit/i18n-library-translation": "2.1.1",
30
+ "@trackunit/iris-app-runtime-core-api": "1.16.69",
31
+ "@trackunit/react-graphql-hooks": "2.2.1",
32
+ "@trackunit/translations-device": "1.3.3"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@apollo/client": "^3.13.8",
@@ -409,6 +409,31 @@ export declare const geometryRelation: {
409
409
  readonly WITHIN: "WITHIN";
410
410
  };
411
411
  export type GeometryRelation = (typeof geometryRelation)[keyof typeof geometryRelation];
412
+ export declare const inspectionLastPerformed: {
413
+ readonly EVER: "EVER";
414
+ readonly MORE_THAN_LAST_2_HOURS: "MORE_THAN_LAST_2_HOURS";
415
+ readonly MORE_THAN_LAST_7_DAYS: "MORE_THAN_LAST_7_DAYS";
416
+ readonly MORE_THAN_LAST_8_HOURS: "MORE_THAN_LAST_8_HOURS";
417
+ readonly MORE_THAN_LAST_12_HOURS: "MORE_THAN_LAST_12_HOURS";
418
+ readonly MORE_THAN_LAST_24_HOURS: "MORE_THAN_LAST_24_HOURS";
419
+ readonly MORE_THAN_LAST_30_DAYS: "MORE_THAN_LAST_30_DAYS";
420
+ readonly MORE_THAN_LAST_HOUR: "MORE_THAN_LAST_HOUR";
421
+ readonly WITHIN_LAST_2_HOURS: "WITHIN_LAST_2_HOURS";
422
+ readonly WITHIN_LAST_7_DAYS: "WITHIN_LAST_7_DAYS";
423
+ readonly WITHIN_LAST_8_HOURS: "WITHIN_LAST_8_HOURS";
424
+ readonly WITHIN_LAST_12_HOURS: "WITHIN_LAST_12_HOURS";
425
+ readonly WITHIN_LAST_24_HOURS: "WITHIN_LAST_24_HOURS";
426
+ readonly WITHIN_LAST_30_DAYS: "WITHIN_LAST_30_DAYS";
427
+ readonly WITHIN_LAST_HOUR: "WITHIN_LAST_HOUR";
428
+ };
429
+ export type InspectionLastPerformed = (typeof inspectionLastPerformed)[keyof typeof inspectionLastPerformed];
430
+ export declare const inspectionResponseStatus: {
431
+ readonly FAILED_CRITICAL: "FAILED_CRITICAL";
432
+ readonly FAILED_LOW: "FAILED_LOW";
433
+ readonly PASSED: "PASSED";
434
+ readonly SKIPPED: "SKIPPED";
435
+ };
436
+ export type InspectionResponseStatus = (typeof inspectionResponseStatus)[keyof typeof inspectionResponseStatus];
412
437
  export declare const metadataCompleteness: {
413
438
  readonly COMPLETE: "COMPLETE";
414
439
  readonly PARTIAL: "PARTIAL";
@@ -555,6 +580,8 @@ export type AssetFiltersInput = {
555
580
  insights?: InputMaybe<Array<AssetInsightType>>;
556
581
  /** Insights filters */
557
582
  insightsFilters?: InputMaybe<InsightsFilters>;
583
+ /** Filter by the asset's most recent inspection (account specific) */
584
+ inspectionLastFilters?: InputMaybe<InspectionLastFilters>;
558
585
  /** Filter by when was the asset last seen */
559
586
  lastSeen?: InputMaybe<AssetLastSeen>;
560
587
  /** Filter by PARTIAL or COMPLETE asset metadata information */
@@ -740,6 +767,14 @@ export type InsightsFilters = {
740
767
  /** The asset's fuel level */
741
768
  fuelLevel?: InputMaybe<NumberRange>;
742
769
  };
770
+ export type InspectionLastFilters = {
771
+ /** Also match assets that have no last inspection (never inspected). */
772
+ includeNeverInspected?: InputMaybe<Scalars["Boolean"]["input"]>;
773
+ /** 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. */
774
+ performed?: InputMaybe<InspectionLastPerformed>;
775
+ /** Filter to assets whose last inspection status is any of these values. */
776
+ statuses?: InputMaybe<Array<InspectionResponseStatus>>;
777
+ };
743
778
  export type NumberRange = {
744
779
  /** max number */
745
780
  max?: InputMaybe<Scalars["Float"]["input"]>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/filters/asset-filter-definitions/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}