deprecate EntityName, introduce CompoundEntityRef

deprecate getEntityName, introduce getCompoundEntityRef

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-03-02 21:26:22 +01:00
parent 80d2674a31
commit 36aa63022b
84 changed files with 393 additions and 268 deletions
@@ -18,7 +18,7 @@ import { Logger } from 'winston';
import { ConflictError, NotFoundError } from '@backstage/errors';
import { CatalogApi } from '@backstage/catalog-client';
import {
EntityName,
CompoundEntityRef,
parseEntityRef,
RELATION_MEMBER_OF,
stringifyEntityRef,
@@ -96,7 +96,7 @@ export class CatalogIdentityClient {
return null;
}
})
.filter((ref): ref is EntityName => ref !== null);
.filter((ref): ref is CompoundEntityRef => ref !== null);
const filter = resolvedEntityRefs.map(ref => ({
kind: ref.kind,