Add missing export and generate api report

Signed-off-by: Taras <tarasm@gmail.com>
This commit is contained in:
Taras
2022-09-07 18:20:10 -04:00
parent 93a1072a0a
commit 184a610d12
2 changed files with 18 additions and 0 deletions
+17
View File
@@ -5,6 +5,7 @@
```ts
import { CompoundEntityRef } from '@backstage/catalog-model';
import { Entity } from '@backstage/catalog-model';
import { SerializedError } from '@backstage/errors';
// @public
export type AddLocationRequest = {
@@ -65,6 +66,11 @@ export interface CatalogApi {
id: string,
options?: CatalogRequestOptions,
): Promise<void>;
validateEntity(
entity: Entity,
location: string,
options?: CatalogRequestOptions,
): Promise<ValidateEntityResponse>;
}
// @public
@@ -122,6 +128,11 @@ export class CatalogClient implements CatalogApi {
id: string,
options?: CatalogRequestOptions,
): Promise<void>;
validateEntity(
entity: Entity,
location: string,
options?: CatalogRequestOptions,
): Promise<ValidateEntityResponse>;
}
// @public
@@ -196,4 +207,10 @@ type Location_2 = {
target: string;
};
export { Location_2 as Location };
// @public
export type ValidateEntityResponse = {
valid: boolean;
errors?: SerializedError[];
};
```
@@ -27,5 +27,6 @@ export type {
Location,
GetEntityFacetsRequest,
GetEntityFacetsResponse,
ValidateEntityResponse,
} from './api';
export { ENTITY_STATUS_CATALOG_PROCESSING_TYPE } from './status';