@trackunit/filters-graphql-hook 2.14.5 → 2.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-graphql-hook",
3
- "version": "2.14.5",
3
+ "version": "2.15.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.4.46",
14
- "@trackunit/filters-filter-bar": "2.6.59",
15
- "@trackunit/shared-utils": "1.16.41",
16
- "@trackunit/iris-app-api": "2.4.37",
17
- "@trackunit/react-core-contexts-test": "1.18.50",
18
- "@trackunit/i18n-library-translation": "2.4.50",
19
- "@trackunit/iris-app-runtime-core-api": "1.17.50",
20
- "@trackunit/react-core-hooks": "1.21.50"
13
+ "@trackunit/iris-app-build-utilities": "2.4.48",
14
+ "@trackunit/filters-filter-bar": "2.6.61",
15
+ "@trackunit/shared-utils": "1.16.43",
16
+ "@trackunit/iris-app-api": "2.4.39",
17
+ "@trackunit/react-core-contexts-test": "1.18.52",
18
+ "@trackunit/i18n-library-translation": "2.4.52",
19
+ "@trackunit/iris-app-runtime-core-api": "1.17.52",
20
+ "@trackunit/react-core-hooks": "1.21.52"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@apollo/client": "^3.13.8",
@@ -540,6 +540,13 @@ export declare const servicePlanStatus: {
540
540
  readonly UPCOMING: "UPCOMING";
541
541
  };
542
542
  export type ServicePlanStatus = (typeof servicePlanStatus)[keyof typeof servicePlanStatus];
543
+ export declare const shareState: {
544
+ readonly NOT_SHARED: "NOT_SHARED";
545
+ readonly SHARED: "SHARED";
546
+ readonly SHARE_PENDING: "SHARE_PENDING";
547
+ readonly UNSHARE_PENDING: "UNSHARE_PENDING";
548
+ };
549
+ export type ShareState = (typeof shareState)[keyof typeof shareState];
543
550
  export declare const siteTypeSFS: {
544
551
  readonly AREA: "AREA";
545
552
  readonly CLASSIC_POI: "CLASSIC_POI";
@@ -588,6 +595,14 @@ export type AssetFiltersInput = {
588
595
  assetIds?: InputMaybe<Array<Scalars["ID"]["input"]>>;
589
596
  /** List of asset types */
590
597
  assetTypes?: InputMaybe<Array<AssetType>>;
598
+ /**
599
+ * Filter by what the calling account's auto-share agreement with a partner does with the asset.
600
+ *
601
+ * Uses the same `ShareState` values as `Asset.assetAutoShare.targets.shareState`. An asset the
602
+ * agreement does not track has no state and is not selected by `states`; `excludedStates` keeps those
603
+ * assets because they have none of the named values.
604
+ */
605
+ autoShare?: InputMaybe<AutoShareFilters>;
591
606
  /**
592
607
  * Filter by bounding box
593
608
  * @deprecated Use geometry filter instead
@@ -600,9 +615,17 @@ export type AssetFiltersInput = {
600
615
  boundingShape?: InputMaybe<BoundingShapeInput>;
601
616
  /** Filter to only include this list of brands */
602
617
  brands?: InputMaybe<Array<Scalars["String"]["input"]>>;
603
- /** Filter by reported CAN profile 1 values */
618
+ /**
619
+ * Filter by reported CAN profile 1 values.
620
+ * Pass `UNDEFINED` to match assets that report no value, i.e. the bucket counted by
621
+ * the facet's `SummaryConnection.missing`.
622
+ */
604
623
  can1Profile?: InputMaybe<Array<Scalars["String"]["input"]>>;
605
- /** Filter by reported CAN profile 2 values */
624
+ /**
625
+ * Filter by reported CAN profile 2 values.
626
+ * Pass `UNDEFINED` to match assets that report no value, i.e. the bucket counted by
627
+ * the facet's `SummaryConnection.missing`.
628
+ */
606
629
  can2Profile?: InputMaybe<Array<Scalars["String"]["input"]>>;
607
630
  /** Filter by the category of the accessories an asset reports */
608
631
  connectedAccessoryCategories?: InputMaybe<Array<ConnectedAccessoryCategory>>;
@@ -642,7 +665,11 @@ export type AssetFiltersInput = {
642
665
  digitalKeyModes?: InputMaybe<Array<DigitalKeyMode>>;
643
666
  /** List of external references */
644
667
  externalReferences?: InputMaybe<Array<Scalars["String"]["input"]>>;
645
- /** Filter by reported firmware versions */
668
+ /**
669
+ * Filter by reported firmware versions.
670
+ * Pass `UNDEFINED` to match assets that report no value, i.e. the bucket counted by
671
+ * the facet's `SummaryConnection.missing`.
672
+ */
646
673
  firmwareVersion?: InputMaybe<Array<Scalars["String"]["input"]>>;
647
674
  /** Filter by if the asset is followed */
648
675
  followed?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -669,7 +696,11 @@ export type AssetFiltersInput = {
669
696
  lastSeen?: InputMaybe<AssetLastSeen>;
670
697
  /** Filter by PARTIAL or COMPLETE asset metadata information */
671
698
  metadataCompleteness?: InputMaybe<MetadataCompleteness>;
672
- /** Filter by reported Modbus profile values */
699
+ /**
700
+ * Filter by reported Modbus profile values.
701
+ * Pass `UNDEFINED` to match assets that report no value, i.e. the bucket counted by
702
+ * the facet's `SummaryConnection.missing`.
703
+ */
673
704
  modbusProfile?: InputMaybe<Array<Scalars["String"]["input"]>>;
674
705
  /** List of models */
675
706
  models?: InputMaybe<Array<Scalars["String"]["input"]>>;
@@ -758,6 +789,23 @@ export type AssetSortInput = {
758
789
  /** When sorting by location, sorting will be relative to this location */
759
790
  relativeToLocation?: InputMaybe<CoordinatesInput>;
760
791
  };
792
+ export type AutoShareFilters = {
793
+ /**
794
+ * Keep assets whose share state with the target is none of these. Assets the agreement does not track are
795
+ * kept too, because an asset with no state has none of the named ones.
796
+ */
797
+ excludedStates?: InputMaybe<Array<ShareState>>;
798
+ /**
799
+ * Keep assets whose share state with the target is one of these. Assets the agreement does not track are
800
+ * not kept, because they have no state.
801
+ */
802
+ states?: InputMaybe<Array<ShareState>>;
803
+ /**
804
+ * The partner account the agreement shares with. Together with the calling account this identifies the
805
+ * agreement, since an account holds at most one live agreement per partner.
806
+ */
807
+ targetAccountId: Scalars["ID"]["input"];
808
+ };
761
809
  export type BoundingBoxInput = {
762
810
  /** The coordinates for the North/West values of the bounding box. */
763
811
  nw: CoordinatesInput;