From 711798d6d96d8ed28e01af85ffb18e24c8b02f58 Mon Sep 17 00:00:00 2001 From: Mahendra Patel Date: Thu, 20 Mar 2025 10:18:15 +0530 Subject: [PATCH] Added EntityOrderFilter to sort entities by different fields Signed-off-by: Mahendra Patel --- plugins/catalog-react/report.api.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/catalog-react/report.api.md b/plugins/catalog-react/report.api.md index a0e2d22141..a25da938a9 100644 --- a/plugins/catalog-react/report.api.md +++ b/plugins/catalog-react/report.api.md @@ -11,6 +11,7 @@ import { ComponentEntity } from '@backstage/catalog-model'; import { ComponentProps } from 'react'; import { CompoundEntityRef } from '@backstage/catalog-model'; import { Entity } from '@backstage/catalog-model'; +import { EntityOrderQuery } from '@backstage/catalog-client'; import IconButton from '@material-ui/core/IconButton'; import { IconComponent } from '@backstage/core-plugin-api'; import { InfoCardVariants } from '@backstage/core-components'; @@ -196,6 +197,7 @@ export type DefaultEntityFilters = { orphan?: EntityOrphanFilter; error?: EntityErrorFilter; namespace?: EntityNamespaceFilter; + order?: EntityOrderFilter; }; // @public @@ -407,6 +409,17 @@ export interface EntityNamespacePickerProps { initiallySelectedNamespaces?: string[]; } +// @public +export class EntityOrderFilter implements EntityFilter { + constructor(value: EntityOrderQuery); + // (undocumented) + filterEntity(_: Entity): boolean; + // (undocumented) + getOrderFilters(): EntityOrderQuery; + // (undocumented) + readonly value: EntityOrderQuery; +} + // @public export class EntityOrphanFilter implements EntityFilter { constructor(value: boolean);