@backstage/plugin-catalog-node 0.0.0-nightly-20260414031820 → 0.0.0-nightly-20260416031834
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -10
- package/dist/alpha.cjs.js +2 -0
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +27 -2
- package/dist/extensions.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/provideStaticCatalogModel.cjs.js +27 -0
- package/dist/provideStaticCatalogModel.cjs.js.map +1 -0
- package/dist/types/{extensions.d-ojRdpmUf.d.ts → extensions.d-CrQV6ICe.d.ts} +9 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-node
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20260416031834
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/errors@0.0.0-nightly-20260416031834
|
|
9
|
+
- @backstage/backend-plugin-api@0.0.0-nightly-20260416031834
|
|
10
|
+
- @backstage/backend-test-utils@0.0.0-nightly-20260416031834
|
|
11
|
+
- @backstage/catalog-client@0.0.0-nightly-20260416031834
|
|
12
|
+
- @backstage/catalog-model@0.0.0-nightly-20260416031834
|
|
13
|
+
- @backstage/plugin-permission-common@0.0.0-nightly-20260416031834
|
|
14
|
+
- @backstage/plugin-permission-node@0.0.0-nightly-20260416031834
|
|
15
|
+
- @backstage/plugin-catalog-common@0.0.0-nightly-20260416031834
|
|
16
|
+
- @backstage/types@1.2.2
|
|
17
|
+
|
|
18
|
+
## 2.2.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
6
21
|
|
|
22
|
+
- e5fcfcb: Added `provideStaticCatalogModel` that helps provide a static catalog model at startup.
|
|
7
23
|
- 056e18e: **BREAKING ALPHA**: Removed the deprecated `CatalogPermissionRuleInput`, `CatalogPermissionExtensionPoint`, and `catalogPermissionExtensionPoint` exports. Use `coreServices.permissionsRegistry` directly to register catalog entity permission rules and permissions.
|
|
8
24
|
- c384fff: **BREAKING PRODUCERS**: Added `updateLocation` method to `CatalogService` for updating the type and target of an existing location. Any code that implements `CatalogService` must now provide this method.
|
|
9
25
|
- 7a03196: **BREAKING ALPHA**: Removed the following deprecated exports from `@backstage/plugin-catalog-node/alpha`:
|
|
@@ -16,15 +32,14 @@
|
|
|
16
32
|
### Patch Changes
|
|
17
33
|
|
|
18
34
|
- Updated dependencies
|
|
19
|
-
- @backstage/backend-plugin-api@
|
|
20
|
-
- @backstage/backend-test-utils@
|
|
21
|
-
- @backstage/errors@
|
|
22
|
-
- @backstage/catalog-
|
|
23
|
-
- @backstage/
|
|
24
|
-
- @backstage/
|
|
25
|
-
- @backstage/plugin-
|
|
26
|
-
- @backstage/
|
|
27
|
-
- @backstage/plugin-catalog-common@0.0.0-nightly-20260414031820
|
|
35
|
+
- @backstage/backend-plugin-api@1.9.0
|
|
36
|
+
- @backstage/backend-test-utils@1.11.2
|
|
37
|
+
- @backstage/errors@1.3.0
|
|
38
|
+
- @backstage/catalog-model@1.8.0
|
|
39
|
+
- @backstage/catalog-client@1.15.0
|
|
40
|
+
- @backstage/plugin-permission-node@0.10.12
|
|
41
|
+
- @backstage/plugin-catalog-common@1.1.9
|
|
42
|
+
- @backstage/plugin-permission-common@0.9.8
|
|
28
43
|
|
|
29
44
|
## 2.2.0-next.2
|
|
30
45
|
|
package/dist/alpha.cjs.js
CHANGED
|
@@ -4,6 +4,7 @@ var alpha = require('@backstage/plugin-catalog-common/alpha');
|
|
|
4
4
|
var pluginPermissionNode = require('@backstage/plugin-permission-node');
|
|
5
5
|
var extensions = require('./extensions.cjs.js');
|
|
6
6
|
var catalogScmEventsServiceRef = require('./scmEvents/catalogScmEventsServiceRef.cjs.js');
|
|
7
|
+
var provideStaticCatalogModel = require('./provideStaticCatalogModel.cjs.js');
|
|
7
8
|
|
|
8
9
|
const catalogEntityPermissionResourceRef = pluginPermissionNode.createPermissionResourceRef().with({
|
|
9
10
|
pluginId: "catalog",
|
|
@@ -12,5 +13,6 @@ const catalogEntityPermissionResourceRef = pluginPermissionNode.createPermission
|
|
|
12
13
|
|
|
13
14
|
exports.catalogModelExtensionPoint = extensions.catalogModelExtensionPoint;
|
|
14
15
|
exports.catalogScmEventsServiceRef = catalogScmEventsServiceRef.catalogScmEventsServiceRef;
|
|
16
|
+
exports.provideStaticCatalogModel = provideStaticCatalogModel.provideStaticCatalogModel;
|
|
15
17
|
exports.catalogEntityPermissionResourceRef = catalogEntityPermissionResourceRef;
|
|
16
18
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RESOURCE_TYPE_CATALOG_ENTITY } from '@backstage/plugin-catalog-common/alpha';\nimport { createPermissionResourceRef } from '@backstage/plugin-permission-node';\nimport { Entity } from '@backstage/catalog-model';\nimport { EntitiesSearchFilter } from '@backstage/plugin-catalog-node';\n\n/** @alpha */\nexport const catalogEntityPermissionResourceRef = createPermissionResourceRef<\n Entity,\n EntitiesSearchFilter\n>().with({\n pluginId: 'catalog',\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\nexport type { CatalogModelExtensionPoint } from './extensions';\nexport { catalogModelExtensionPoint } from './extensions';\n\nexport * from './scmEvents';\n"],"names":["createPermissionResourceRef","RESOURCE_TYPE_CATALOG_ENTITY"],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RESOURCE_TYPE_CATALOG_ENTITY } from '@backstage/plugin-catalog-common/alpha';\nimport { createPermissionResourceRef } from '@backstage/plugin-permission-node';\nimport { Entity } from '@backstage/catalog-model';\nimport { EntitiesSearchFilter } from '@backstage/plugin-catalog-node';\n\n/** @alpha */\nexport const catalogEntityPermissionResourceRef = createPermissionResourceRef<\n Entity,\n EntitiesSearchFilter\n>().with({\n pluginId: 'catalog',\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n});\n\nexport type { CatalogModelExtensionPoint } from './extensions';\nexport { catalogModelExtensionPoint } from './extensions';\n\nexport * from './scmEvents';\nexport { provideStaticCatalogModel } from './provideStaticCatalogModel';\n"],"names":["createPermissionResourceRef","RESOURCE_TYPE_CATALOG_ENTITY"],"mappings":";;;;;;;;AAsBO,MAAM,kCAAA,GAAqCA,gDAAA,EAGhD,CAAE,IAAA,CAAK;AAAA,EACP,QAAA,EAAU,SAAA;AAAA,EACV,YAAA,EAAcC;AAChB,CAAC;;;;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as _backstage_plugin_permission_node from '@backstage/plugin-permission-node';
|
|
2
2
|
import { Entity } from '@backstage/catalog-model';
|
|
3
3
|
import { EntitiesSearchFilter } from '@backstage/plugin-catalog-node';
|
|
4
|
-
export { f as CatalogModelExtensionPoint, g as catalogModelExtensionPoint } from './types/extensions.d-
|
|
4
|
+
export { f as CatalogModelExtensionPoint, g as catalogModelExtensionPoint } from './types/extensions.d-CrQV6ICe.js';
|
|
5
5
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
6
|
+
import { CatalogModelLayer } from '@backstage/catalog-model/alpha';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* A subscriber of the {@link CatalogScmEventsService}.
|
|
@@ -190,8 +191,32 @@ type CatalogScmEvent = {
|
|
|
190
191
|
*/
|
|
191
192
|
declare const catalogScmEventsServiceRef: _backstage_backend_plugin_api.ServiceRef<CatalogScmEventsService, "plugin", "singleton">;
|
|
192
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Creates a backend module that registers static catalog model layers.
|
|
196
|
+
*
|
|
197
|
+
* @alpha
|
|
198
|
+
* @remarks
|
|
199
|
+
*
|
|
200
|
+
* This is a convenience function for registering catalog model layers
|
|
201
|
+
* without having to manually create a backend module and interact with
|
|
202
|
+
* the catalog model extension point. The built-in default catalog entity
|
|
203
|
+
* model is always included automatically.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```ts
|
|
207
|
+
* backend.add(
|
|
208
|
+
* provideStaticCatalogModel({
|
|
209
|
+
* layers: [scaffolderCatalogModelLayer],
|
|
210
|
+
* }),
|
|
211
|
+
* );
|
|
212
|
+
* ```
|
|
213
|
+
*/
|
|
214
|
+
declare function provideStaticCatalogModel(options?: {
|
|
215
|
+
layers?: CatalogModelLayer[];
|
|
216
|
+
}): _backstage_backend_plugin_api.BackendFeature;
|
|
217
|
+
|
|
193
218
|
/** @alpha */
|
|
194
219
|
declare const catalogEntityPermissionResourceRef: _backstage_plugin_permission_node.PermissionResourceRef<Entity, EntitiesSearchFilter, "catalog-entity", "catalog">;
|
|
195
220
|
|
|
196
|
-
export { catalogEntityPermissionResourceRef, catalogScmEventsServiceRef };
|
|
221
|
+
export { catalogEntityPermissionResourceRef, catalogScmEventsServiceRef, provideStaticCatalogModel };
|
|
197
222
|
export type { CatalogScmEvent, CatalogScmEventContext, CatalogScmEventsService, CatalogScmEventsServiceSubscriber };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\nimport { Entity, Validators } from '@backstage/catalog-model';\nimport {\n CatalogProcessor,\n CatalogProcessorParser,\n EntityProvider,\n
|
|
1
|
+
{"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createExtensionPoint } from '@backstage/backend-plugin-api';\nimport { Entity, Validators } from '@backstage/catalog-model';\nimport { CatalogModelSource } from '@backstage/catalog-model/alpha';\nimport {\n CatalogProcessor,\n CatalogProcessorParser,\n EntityProvider,\n LocationAnalyzer,\n PlaceholderResolver,\n ScmLocationAnalyzer,\n} from '@backstage/plugin-catalog-node';\n\n/**\n * @public\n */\nexport interface CatalogLocationsExtensionPoint {\n /**\n * Allows setting custom location types, such as showcased in: https://backstage.io/docs/features/software-catalog/external-integrations/#creating-a-catalog-data-reader-processor\n * @param locationTypes - List of location types to allow, default is \"url\" and \"file\"\n */\n setAllowedLocationTypes(locationTypes: Array<string>): void;\n}\n\n/**\n * @public\n */\nexport const catalogLocationsExtensionPoint =\n createExtensionPoint<CatalogLocationsExtensionPoint>({\n id: 'catalog.locations',\n });\n\n/**\n * @public\n */\nexport interface CatalogProcessingExtensionPoint {\n /**\n * Adds entity processors. These are responsible for reading, parsing, and\n * processing entities before they are persisted in the catalog.\n *\n * This function also can replace a Default processor if the provided processor\n * matches the processor name.\n *\n * @param processors - One or more processors\n */\n addProcessor(\n ...processors: Array<CatalogProcessor | Array<CatalogProcessor>>\n ): void;\n\n /**\n * Adds or replaces entity providers. These are responsible for bootstrapping\n * the list of entities out of original data sources. For example, there is\n * one entity source for the config locations, and one for the database\n * stored locations. If you ingest entities out of a third party system, you\n * may want to implement that in terms of an entity provider as well.\n *\n * @param providers - One or more entity providers\n */\n addEntityProvider(\n ...providers: Array<EntityProvider | Array<EntityProvider>>\n ): void;\n\n /**\n * Adds, or overwrites, a handler for placeholders (e.g. $file) in entity\n * definition files.\n *\n * @param key - The key that identifies the placeholder, e.g. \"file\"\n * @param resolver - The resolver that gets values for this placeholder\n */\n addPlaceholderResolver(key: string, resolver: PlaceholderResolver): void;\n\n setOnProcessingErrorHandler(\n handler: (event: {\n unprocessedEntity: Entity;\n errors: Error[];\n }) => Promise<void> | void,\n ): void;\n}\n\n/** @alpha */\nexport interface CatalogModelExtensionPoint {\n /**\n * Sets the validator function to use for one or more special fields of an\n * entity. This is useful if the default rules for formatting of fields are\n * not sufficient.\n *\n * @param validators - The (subset of) validators to set\n */\n setFieldValidators(validators: Partial<Validators>): void;\n\n /**\n * Sets the entity data parser which is used to read raw data from locations.\n *\n * @param parser - Parser which will used to extract entities from raw data\n */\n setEntityDataParser(parser: CatalogProcessorParser): void;\n\n /**\n * Adds a catalog model source to be part of the compiled entity model.\n *\n * @param source - The model source to add\n */\n addModelSource(source: CatalogModelSource): void;\n}\n\n/**\n * @public\n */\nexport const catalogProcessingExtensionPoint =\n createExtensionPoint<CatalogProcessingExtensionPoint>({\n id: 'catalog.processing',\n });\n\n/**\n * @public\n */\nexport interface CatalogAnalysisExtensionPoint {\n /**\n * Replaces the entire location analyzer with a new one.\n *\n * @remarks\n *\n * By providing a factory function you can access all the SCM analyzers that\n * have been added through `addScmLocationAnalyzer`. If you provide a\n * `LocationAnalyzer` directly, the SCM analyzers will be ignored.\n */\n setLocationAnalyzer(\n analyzerOrFactory:\n | LocationAnalyzer\n | ((options: {\n scmLocationAnalyzers: ScmLocationAnalyzer[];\n }) => Promise<{ locationAnalyzer: LocationAnalyzer }>),\n ): void;\n\n /**\n * Adds an analyzer for a specific SCM type to the default location analyzer.\n */\n addScmLocationAnalyzer(analyzer: ScmLocationAnalyzer): void;\n}\n\n/**\n * @public\n */\nexport const catalogAnalysisExtensionPoint =\n createExtensionPoint<CatalogAnalysisExtensionPoint>({\n id: 'catalog.analysis',\n });\n\n/** @alpha */\nexport const catalogModelExtensionPoint =\n createExtensionPoint<CatalogModelExtensionPoint>({\n id: 'catalog.model',\n });\n"],"names":["createExtensionPoint"],"mappings":";;;;AA0CO,MAAM,iCACXA,qCAAA,CAAqD;AAAA,EACnD,EAAA,EAAI;AACN,CAAC;AA8EI,MAAM,kCACXA,qCAAA,CAAsD;AAAA,EACpD,EAAA,EAAI;AACN,CAAC;AAgCI,MAAM,gCACXA,qCAAA,CAAoD;AAAA,EAClD,EAAA,EAAI;AACN,CAAC;AAGI,MAAM,6BACXA,qCAAA,CAAiD;AAAA,EAC/C,EAAA,EAAI;AACN,CAAC;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { LocationSpec as LocationSpec$1, AnalyzeLocationRequest, AnalyzeLocation
|
|
|
4
4
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
5
5
|
import { BackstageCredentials } from '@backstage/backend-plugin-api';
|
|
6
6
|
import { GetEntitiesRequest, GetEntitiesResponse, GetEntitiesByRefsRequest, GetEntitiesByRefsResponse, QueryEntitiesRequest, QueryEntitiesResponse, GetEntityAncestorsRequest, GetEntityAncestorsResponse, GetEntityFacetsRequest, GetEntityFacetsResponse, GetLocationsResponse, QueryLocationsRequest, QueryLocationsResponse, QueryLocationsInitialRequest, Location, AddLocationRequest, AddLocationResponse, ValidateEntityResponse, StreamEntitiesRequest } from '@backstage/catalog-client';
|
|
7
|
-
export { C as CatalogAnalysisExtensionPoint, a as CatalogLocationsExtensionPoint, b as CatalogProcessingExtensionPoint, c as catalogAnalysisExtensionPoint, d as catalogLocationsExtensionPoint, e as catalogProcessingExtensionPoint } from './types/extensions.d-
|
|
7
|
+
export { C as CatalogAnalysisExtensionPoint, a as CatalogLocationsExtensionPoint, b as CatalogProcessingExtensionPoint, c as catalogAnalysisExtensionPoint, d as catalogLocationsExtensionPoint, e as catalogProcessingExtensionPoint } from './types/extensions.d-CrQV6ICe.js';
|
|
8
|
+
import '@backstage/catalog-model/alpha';
|
|
8
9
|
import '@backstage/plugin-catalog-node';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
4
|
+
var alpha = require('@backstage/catalog-model/alpha');
|
|
5
|
+
var extensions = require('./extensions.cjs.js');
|
|
6
|
+
|
|
7
|
+
function provideStaticCatalogModel(options) {
|
|
8
|
+
return backendPluginApi.createBackendModule({
|
|
9
|
+
pluginId: "catalog",
|
|
10
|
+
moduleId: "static-catalog-model",
|
|
11
|
+
register(reg) {
|
|
12
|
+
reg.registerInit({
|
|
13
|
+
deps: {
|
|
14
|
+
model: extensions.catalogModelExtensionPoint
|
|
15
|
+
},
|
|
16
|
+
async init({ model }) {
|
|
17
|
+
model.addModelSource(
|
|
18
|
+
alpha.CatalogModelSources.static(options?.layers ?? [])
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.provideStaticCatalogModel = provideStaticCatalogModel;
|
|
27
|
+
//# sourceMappingURL=provideStaticCatalogModel.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provideStaticCatalogModel.cjs.js","sources":["../src/provideStaticCatalogModel.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport {\n CatalogModelLayer,\n CatalogModelSources,\n} from '@backstage/catalog-model/alpha';\nimport { catalogModelExtensionPoint } from './extensions';\n\n/**\n * Creates a backend module that registers static catalog model layers.\n *\n * @alpha\n * @remarks\n *\n * This is a convenience function for registering catalog model layers\n * without having to manually create a backend module and interact with\n * the catalog model extension point. The built-in default catalog entity\n * model is always included automatically.\n *\n * @example\n * ```ts\n * backend.add(\n * provideStaticCatalogModel({\n * layers: [scaffolderCatalogModelLayer],\n * }),\n * );\n * ```\n */\nexport function provideStaticCatalogModel(options?: {\n layers?: CatalogModelLayer[];\n}) {\n return createBackendModule({\n pluginId: 'catalog',\n moduleId: 'static-catalog-model',\n register(reg) {\n reg.registerInit({\n deps: {\n model: catalogModelExtensionPoint,\n },\n async init({ model }) {\n model.addModelSource(\n CatalogModelSources.static(options?.layers ?? []),\n );\n },\n });\n },\n });\n}\n"],"names":["createBackendModule","catalogModelExtensionPoint","CatalogModelSources"],"mappings":";;;;;;AA2CO,SAAS,0BAA0B,OAAA,EAEvC;AACD,EAAA,OAAOA,oCAAA,CAAoB;AAAA,IACzB,QAAA,EAAU,SAAA;AAAA,IACV,QAAA,EAAU,sBAAA;AAAA,IACV,SAAS,GAAA,EAAK;AACZ,MAAA,GAAA,CAAI,YAAA,CAAa;AAAA,QACf,IAAA,EAAM;AAAA,UACJ,KAAA,EAAOC;AAAA,SACT;AAAA,QACA,MAAM,IAAA,CAAK,EAAE,KAAA,EAAM,EAAG;AACpB,UAAA,KAAA,CAAM,cAAA;AAAA,YACJC,yBAAA,CAAoB,MAAA,CAAO,OAAA,EAAS,MAAA,IAAU,EAAE;AAAA,WAClD;AAAA,QACF;AAAA,OACD,CAAA;AAAA,IACH;AAAA,GACD,CAAA;AACH;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
2
|
import { Entity, Validators } from '@backstage/catalog-model';
|
|
3
|
+
import { CatalogModelSource } from '@backstage/catalog-model/alpha';
|
|
3
4
|
import { LocationAnalyzer, ScmLocationAnalyzer, CatalogProcessor, EntityProvider, PlaceholderResolver, CatalogProcessorParser } from '@backstage/plugin-catalog-node';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -64,10 +65,17 @@ interface CatalogModelExtensionPoint {
|
|
|
64
65
|
*/
|
|
65
66
|
setFieldValidators(validators: Partial<Validators>): void;
|
|
66
67
|
/**
|
|
67
|
-
* Sets the entity data parser which is used to read raw data from locations
|
|
68
|
+
* Sets the entity data parser which is used to read raw data from locations.
|
|
69
|
+
*
|
|
68
70
|
* @param parser - Parser which will used to extract entities from raw data
|
|
69
71
|
*/
|
|
70
72
|
setEntityDataParser(parser: CatalogProcessorParser): void;
|
|
73
|
+
/**
|
|
74
|
+
* Adds a catalog model source to be part of the compiled entity model.
|
|
75
|
+
*
|
|
76
|
+
* @param source - The model source to add
|
|
77
|
+
*/
|
|
78
|
+
addModelSource(source: CatalogModelSource): void;
|
|
71
79
|
}
|
|
72
80
|
/**
|
|
73
81
|
* @public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-node",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20260416031834",
|
|
4
4
|
"description": "The plugin-catalog-node module for @backstage/plugin-catalog-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -72,25 +72,25 @@
|
|
|
72
72
|
"test": "backstage-cli package test"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@backstage/backend-plugin-api": "0.0.0-nightly-
|
|
76
|
-
"@backstage/catalog-client": "0.0.0-nightly-
|
|
77
|
-
"@backstage/catalog-model": "0.0.0-nightly-
|
|
78
|
-
"@backstage/errors": "0.0.0-nightly-
|
|
79
|
-
"@backstage/plugin-catalog-common": "0.0.0-nightly-
|
|
80
|
-
"@backstage/plugin-permission-common": "0.0.0-nightly-
|
|
81
|
-
"@backstage/plugin-permission-node": "0.0.0-nightly-
|
|
75
|
+
"@backstage/backend-plugin-api": "0.0.0-nightly-20260416031834",
|
|
76
|
+
"@backstage/catalog-client": "0.0.0-nightly-20260416031834",
|
|
77
|
+
"@backstage/catalog-model": "0.0.0-nightly-20260416031834",
|
|
78
|
+
"@backstage/errors": "0.0.0-nightly-20260416031834",
|
|
79
|
+
"@backstage/plugin-catalog-common": "0.0.0-nightly-20260416031834",
|
|
80
|
+
"@backstage/plugin-permission-common": "0.0.0-nightly-20260416031834",
|
|
81
|
+
"@backstage/plugin-permission-node": "0.0.0-nightly-20260416031834",
|
|
82
82
|
"@backstage/types": "1.2.2",
|
|
83
83
|
"@opentelemetry/api": "^1.9.0",
|
|
84
84
|
"lodash": "^4.17.21",
|
|
85
85
|
"yaml": "^2.0.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@backstage/backend-test-utils": "0.0.0-nightly-
|
|
89
|
-
"@backstage/cli": "0.0.0-nightly-
|
|
88
|
+
"@backstage/backend-test-utils": "0.0.0-nightly-20260416031834",
|
|
89
|
+
"@backstage/cli": "0.0.0-nightly-20260416031834",
|
|
90
90
|
"msw": "^1.0.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@backstage/backend-test-utils": "0.0.0-nightly-
|
|
93
|
+
"@backstage/backend-test-utils": "0.0.0-nightly-20260416031834"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"@backstage/backend-test-utils": {
|