@trackunit/filters-asset-filter-definitions 0.0.37 → 0.0.39

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
@@ -2373,7 +2373,7 @@ const SiteTypesFilterView = (props) => {
2373
2373
  count: props.filterBarActions.getFilterName() !== "sitesFilter" ? type.count : undefined,
2374
2374
  label: t(mapSiteTypeToLabelId(type.key)),
2375
2375
  }))
2376
- .filter(option => option.count !== 0 && option.count !== undefined);
2376
+ .filter(option => option.count !== 0);
2377
2377
  return jsxRuntime.jsx(filtersFilterBar.DefaultCheckboxFilter, Object.assign({}, props, { options: siteTypeOptions, loading: loading }));
2378
2378
  };
2379
2379
  /**
package/index.esm.js CHANGED
@@ -2349,7 +2349,7 @@ const SiteTypesFilterView = (props) => {
2349
2349
  count: props.filterBarActions.getFilterName() !== "sitesFilter" ? type.count : undefined,
2350
2350
  label: t(mapSiteTypeToLabelId(type.key)),
2351
2351
  }))
2352
- .filter(option => option.count !== 0 && option.count !== undefined);
2352
+ .filter(option => option.count !== 0);
2353
2353
  return jsx(DefaultCheckboxFilter, Object.assign({}, props, { options: siteTypeOptions, loading: loading }));
2354
2354
  };
2355
2355
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-asset-filter-definitions",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -150,6 +150,11 @@ export declare const metadataCompleteness: {
150
150
  readonly PARTIAL: "PARTIAL";
151
151
  };
152
152
  export type MetadataCompleteness = (typeof metadataCompleteness)[keyof typeof metadataCompleteness];
153
+ export declare const onboardingStatus: {
154
+ readonly ONBOARDED: "ONBOARDED";
155
+ readonly PENDING: "PENDING";
156
+ };
157
+ export type OnboardingStatus = (typeof onboardingStatus)[keyof typeof onboardingStatus];
153
158
  export declare const rentalStatus: {
154
159
  readonly Available: "Available";
155
160
  readonly InRepair: "InRepair";
@@ -229,6 +234,8 @@ export type AssetFiltersInput = {
229
234
  metadataCompleteness?: InputMaybe<MetadataCompleteness>;
230
235
  /** List of models */
231
236
  models?: InputMaybe<Array<Scalars["String"]["input"]>>;
237
+ /** Filter by the status of the onboarding process of the asset. */
238
+ onboardingStatus?: InputMaybe<OnboardingStatus>;
232
239
  /** List of owner account ids */
233
240
  ownerAccountIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
234
241
  /** List of owner account names */