@backstage/plugin-catalog-node 1.16.0-next.1 → 1.16.0-next.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @backstage/plugin-catalog-node
2
2
 
3
+ ## 1.16.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@1.2.0-next.1
9
+ - @backstage/catalog-client@1.9.1
10
+ - @backstage/catalog-model@1.7.3
11
+ - @backstage/errors@1.2.7
12
+ - @backstage/types@1.2.1
13
+ - @backstage/plugin-catalog-common@1.1.3
14
+ - @backstage/plugin-permission-common@0.8.4
15
+ - @backstage/plugin-permission-node@0.8.8-next.1
16
+
3
17
  ## 1.16.0-next.1
4
18
 
5
19
  ### Minor Changes
package/dist/alpha.cjs.js CHANGED
@@ -2,8 +2,14 @@
2
2
 
3
3
  var backendPluginApi = require('@backstage/backend-plugin-api');
4
4
  var catalogClient = require('@backstage/catalog-client');
5
+ var alpha = require('@backstage/plugin-catalog-common/alpha');
6
+ var pluginPermissionNode = require('@backstage/plugin-permission-node');
5
7
  var extensions = require('./extensions.cjs.js');
6
8
 
9
+ const catalogEntityPermissionResourceRef = pluginPermissionNode.createPermissionResourceRef().with({
10
+ pluginId: "catalog",
11
+ resourceType: alpha.RESOURCE_TYPE_CATALOG_ENTITY
12
+ });
7
13
  const catalogServiceRef = backendPluginApi.createServiceRef({
8
14
  id: "catalog-client",
9
15
  defaultFactory: async (service) => backendPluginApi.createServiceFactory({
@@ -22,5 +28,6 @@ exports.catalogLocationsExtensionPoint = extensions.catalogLocationsExtensionPoi
22
28
  exports.catalogModelExtensionPoint = extensions.catalogModelExtensionPoint;
23
29
  exports.catalogPermissionExtensionPoint = extensions.catalogPermissionExtensionPoint;
24
30
  exports.catalogProcessingExtensionPoint = extensions.catalogProcessingExtensionPoint;
31
+ exports.catalogEntityPermissionResourceRef = catalogEntityPermissionResourceRef;
25
32
  exports.catalogServiceRef = catalogServiceRef;
26
33
  //# sourceMappingURL=alpha.cjs.js.map
@@ -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 {\n coreServices,\n createServiceFactory,\n createServiceRef,\n} from '@backstage/backend-plugin-api';\nimport { catalogServiceRef as _catalogServiceRef } from './catalogService';\nimport { CatalogApi, CatalogClient } from '@backstage/catalog-client';\n\n/**\n * @alpha\n * @deprecated Use {@link @backstage/plugin-catalog-node#catalogServiceRef} instead\n */\nexport const catalogServiceRef = createServiceRef<CatalogApi>({\n id: 'catalog-client',\n defaultFactory: async service =>\n createServiceFactory({\n service,\n deps: {\n discoveryApi: coreServices.discovery,\n },\n async factory({ discoveryApi }) {\n return new CatalogClient({ discoveryApi });\n },\n }),\n});\n\nexport type { CatalogLocationsExtensionPoint } from './extensions';\nexport { catalogLocationsExtensionPoint } from './extensions';\nexport type { CatalogProcessingExtensionPoint } from './extensions';\nexport { catalogProcessingExtensionPoint } from './extensions';\nexport type { CatalogAnalysisExtensionPoint } from './extensions';\nexport { catalogAnalysisExtensionPoint } from './extensions';\nexport type { CatalogPermissionRuleInput } from './extensions';\nexport type { CatalogPermissionExtensionPoint } from './extensions';\nexport { catalogPermissionExtensionPoint } from './extensions';\nexport type { CatalogModelExtensionPoint } from './extensions';\nexport { catalogModelExtensionPoint } from './extensions';\n"],"names":["createServiceRef","createServiceFactory","coreServices","CatalogClient"],"mappings":";;;;;;AA4BO,MAAM,oBAAoBA,iCAA6B,CAAA;AAAA,EAC5D,EAAI,EAAA,gBAAA;AAAA,EACJ,cAAA,EAAgB,OAAM,OAAA,KACpBC,qCAAqB,CAAA;AAAA,IACnB,OAAA;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,cAAcC,6BAAa,CAAA;AAAA,KAC7B;AAAA,IACA,MAAM,OAAA,CAAQ,EAAE,YAAA,EAAgB,EAAA;AAC9B,MAAA,OAAO,IAAIC,2BAAA,CAAc,EAAE,YAAA,EAAc,CAAA;AAAA;AAC3C,GACD;AACL,CAAC;;;;;;;;;"}
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 {\n coreServices,\n createServiceFactory,\n createServiceRef,\n} from '@backstage/backend-plugin-api';\nimport { catalogServiceRef as _catalogServiceRef } from './catalogService';\nimport { CatalogApi, CatalogClient } from '@backstage/catalog-client';\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\n/**\n * @alpha\n * @deprecated Use {@link @backstage/plugin-catalog-node#catalogServiceRef} instead\n */\nexport const catalogServiceRef = createServiceRef<CatalogApi>({\n id: 'catalog-client',\n defaultFactory: async service =>\n createServiceFactory({\n service,\n deps: {\n discoveryApi: coreServices.discovery,\n },\n async factory({ discoveryApi }) {\n return new CatalogClient({ discoveryApi });\n },\n }),\n});\n\nexport type { CatalogLocationsExtensionPoint } from './extensions';\nexport { catalogLocationsExtensionPoint } from './extensions';\nexport type { CatalogProcessingExtensionPoint } from './extensions';\nexport { catalogProcessingExtensionPoint } from './extensions';\nexport type { CatalogAnalysisExtensionPoint } from './extensions';\nexport { catalogAnalysisExtensionPoint } from './extensions';\nexport type { CatalogPermissionRuleInput } from './extensions';\nexport type { CatalogPermissionExtensionPoint } from './extensions';\nexport { catalogPermissionExtensionPoint } from './extensions';\nexport type { CatalogModelExtensionPoint } from './extensions';\nexport { catalogModelExtensionPoint } from './extensions';\n"],"names":["createPermissionResourceRef","RESOURCE_TYPE_CATALOG_ENTITY","createServiceRef","createServiceFactory","coreServices","CatalogClient"],"mappings":";;;;;;;;AA6Ba,MAAA,kCAAA,GAAqCA,gDAGhD,EAAA,CAAE,IAAK,CAAA;AAAA,EACP,QAAU,EAAA,SAAA;AAAA,EACV,YAAc,EAAAC;AAChB,CAAC;AAMM,MAAM,oBAAoBC,iCAA6B,CAAA;AAAA,EAC5D,EAAI,EAAA,gBAAA;AAAA,EACJ,cAAA,EAAgB,OAAM,OAAA,KACpBC,qCAAqB,CAAA;AAAA,IACnB,OAAA;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,cAAcC,6BAAa,CAAA;AAAA,KAC7B;AAAA,IACA,MAAM,OAAA,CAAQ,EAAE,YAAA,EAAgB,EAAA;AAC9B,MAAA,OAAO,IAAIC,2BAAA,CAAc,EAAE,YAAA,EAAc,CAAA;AAAA;AAC3C,GACD;AACL,CAAC;;;;;;;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+ import * as _backstage_plugin_permission_node from '@backstage/plugin-permission-node';
3
+ import { PermissionRule } from '@backstage/plugin-permission-node';
2
4
  import { CatalogApi } from '@backstage/catalog-client';
3
5
  import { Entity, Validators } from '@backstage/catalog-model';
4
6
  import { CatalogProcessor, EntityProvider, PlaceholderResolver, CatalogProcessorParser, LocationAnalyzer, ScmLocationAnalyzer, EntitiesSearchFilter } from '@backstage/plugin-catalog-node';
5
7
  import { PermissionRuleParams, Permission } from '@backstage/plugin-permission-common';
6
- import { PermissionRule } from '@backstage/plugin-permission-node';
7
8
 
8
9
  /**
9
10
  * @alpha
@@ -99,10 +100,12 @@ interface CatalogPermissionExtensionPoint {
99
100
  */
100
101
  declare const catalogPermissionExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<CatalogPermissionExtensionPoint>;
101
102
 
103
+ /** @alpha */
104
+ declare const catalogEntityPermissionResourceRef: _backstage_plugin_permission_node.PermissionResourceRef<Entity, EntitiesSearchFilter, "catalog-entity", "catalog">;
102
105
  /**
103
106
  * @alpha
104
107
  * @deprecated Use {@link @backstage/plugin-catalog-node#catalogServiceRef} instead
105
108
  */
106
109
  declare const catalogServiceRef: _backstage_backend_plugin_api.ServiceRef<CatalogApi, "plugin", "singleton">;
107
110
 
108
- export { type CatalogAnalysisExtensionPoint, type CatalogLocationsExtensionPoint, type CatalogModelExtensionPoint, type CatalogPermissionExtensionPoint, type CatalogPermissionRuleInput, type CatalogProcessingExtensionPoint, catalogAnalysisExtensionPoint, catalogLocationsExtensionPoint, catalogModelExtensionPoint, catalogPermissionExtensionPoint, catalogProcessingExtensionPoint, catalogServiceRef };
111
+ export { type CatalogAnalysisExtensionPoint, type CatalogLocationsExtensionPoint, type CatalogModelExtensionPoint, type CatalogPermissionExtensionPoint, type CatalogPermissionRuleInput, type CatalogProcessingExtensionPoint, catalogAnalysisExtensionPoint, catalogEntityPermissionResourceRef, catalogLocationsExtensionPoint, catalogModelExtensionPoint, catalogPermissionExtensionPoint, catalogProcessingExtensionPoint, catalogServiceRef };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-node",
3
- "version": "1.16.0-next.1",
3
+ "version": "1.16.0-next.2",
4
4
  "description": "The plugin-catalog-node module for @backstage/plugin-catalog-backend",
5
5
  "backstage": {
6
6
  "role": "node-library",
@@ -72,18 +72,18 @@
72
72
  "test": "backstage-cli package test"
73
73
  },
74
74
  "dependencies": {
75
- "@backstage/backend-plugin-api": "1.2.0-next.0",
75
+ "@backstage/backend-plugin-api": "1.2.0-next.1",
76
76
  "@backstage/catalog-client": "1.9.1",
77
77
  "@backstage/catalog-model": "1.7.3",
78
78
  "@backstage/errors": "1.2.7",
79
79
  "@backstage/plugin-catalog-common": "1.1.3",
80
80
  "@backstage/plugin-permission-common": "0.8.4",
81
- "@backstage/plugin-permission-node": "0.8.8-next.0",
81
+ "@backstage/plugin-permission-node": "0.8.8-next.1",
82
82
  "@backstage/types": "1.2.1"
83
83
  },
84
84
  "devDependencies": {
85
- "@backstage/backend-test-utils": "1.3.0-next.1",
86
- "@backstage/cli": "0.30.0-next.1",
85
+ "@backstage/backend-test-utils": "1.3.0-next.2",
86
+ "@backstage/cli": "0.30.0-next.2",
87
87
  "msw": "^1.0.0"
88
88
  }
89
89
  }