diff --git a/plugins/catalog-backend/api-report.md b/plugins/catalog-backend/api-report.md index a38a964d48..e00436846a 100644 --- a/plugins/catalog-backend/api-report.md +++ b/plugins/catalog-backend/api-report.md @@ -421,6 +421,11 @@ export type PlaceholderResolverRead = PlaceholderResolverRead_2; // @public @deprecated (undocumented) export type PlaceholderResolverResolveUrl = PlaceholderResolverResolveUrl_2; +// @public +export function policyToProcessorTransformer( + policy: EntityPolicy, +): CatalogProcessor_2; + // @public export type ProcessingIntervalFunction = () => number; diff --git a/plugins/catalog-backend/src/modules/core/index.ts b/plugins/catalog-backend/src/modules/core/index.ts index 365def0bfe..54f16c99b1 100644 --- a/plugins/catalog-backend/src/modules/core/index.ts +++ b/plugins/catalog-backend/src/modules/core/index.ts @@ -24,3 +24,4 @@ export { PlaceholderProcessor } from './PlaceholderProcessor'; export type { PlaceholderProcessorOptions } from './PlaceholderProcessor'; export { UrlReaderProcessor } from './UrlReaderProcessor'; export { parseEntityYaml } from '../util/parse'; +export { policyToProcessorTransformer } from './policyToProcessorTransformer'; diff --git a/plugins/catalog-backend/src/modules/core/policyToProcessorTransformer.ts b/plugins/catalog-backend/src/modules/core/policyToProcessorTransformer.ts index ba1ce254c7..69b2788779 100644 --- a/plugins/catalog-backend/src/modules/core/policyToProcessorTransformer.ts +++ b/plugins/catalog-backend/src/modules/core/policyToProcessorTransformer.ts @@ -19,8 +19,9 @@ import { CatalogProcessor } from '@backstage/plugin-catalog-node'; /** * Transform a given entity policy to an entity processor. - * @param policy The policy to transform + * @param policy - The policy to transform * @returns A new entity processor that uses the entity policy. + * @public */ export function policyToProcessorTransformer( policy: EntityPolicy,