'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var backendPluginApi = require('@backstage/backend-plugin-api');
var catalogClient = require('@backstage/catalog-client');

const catalogServiceRef = backendPluginApi.createServiceRef({
  id: "catalog-client",
  defaultFactory: async (service) => backendPluginApi.createServiceFactory({
    service,
    deps: {
      discoveryApi: backendPluginApi.coreServices.discovery
    },
    async factory({ discoveryApi }) {
      return new catalogClient.CatalogClient({ discoveryApi });
    }
  })
});

const catalogProcessingExtensionPoint = backendPluginApi.createExtensionPoint({
  id: "catalog.processing"
});
const catalogAnalysisExtensionPoint = backendPluginApi.createExtensionPoint({
  id: "catalog.analysis"
});
const catalogPermissionExtensionPoint = backendPluginApi.createExtensionPoint({
  id: "catalog.permission"
});

exports.catalogAnalysisExtensionPoint = catalogAnalysisExtensionPoint;
exports.catalogPermissionExtensionPoint = catalogPermissionExtensionPoint;
exports.catalogProcessingExtensionPoint = catalogProcessingExtensionPoint;
exports.catalogServiceRef = catalogServiceRef;
//# sourceMappingURL=alpha.cjs.js.map
