@backstage/plugin-catalog-unprocessed-entities-common 0.0.0-nightly-20240612021718

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 ADDED
@@ -0,0 +1,47 @@
1
+ # @backstage/plugin-catalog-unprocessed-entities-common
2
+
3
+ ## 0.0.0-nightly-20240612021718
4
+
5
+ ### Patch Changes
6
+
7
+ - d44a20a: Added additional plugin metadata to `package.json`.
8
+ - Updated dependencies
9
+ - @backstage/plugin-permission-common@0.0.0-nightly-20240612021718
10
+
11
+ ## 0.0.2-next.0
12
+
13
+ ### Patch Changes
14
+
15
+ - d44a20a: Added additional plugin metadata to `package.json`.
16
+ - Updated dependencies
17
+ - @backstage/plugin-permission-common@0.7.14-next.0
18
+
19
+ ## 0.0.1
20
+
21
+ ### Patch Changes
22
+
23
+ - 924c1ac: **BREAKING**- the `@backstage/plugin-catalog-backend-module-unprocessed` constructor is now private, and have been moved to using the static `.create` method instead which now requires a `PermissionService` and `DiscoveryService`.
24
+
25
+ If you're using this module in the old backend system you'll need to migrate to using the `.create` method and pass in the new required parameters in `packages/backend/src/plugins/catalog.ts`.
26
+
27
+ No changes should be required if you're using the new backend system.
28
+
29
+ ```diff
30
+ - const unprocessed = new UnprocessedEntitiesModule(
31
+ - await env.database.getClient(),
32
+ - router,
33
+ - );
34
+ + const unprocessed = UnprocessedEntitiesModule.create({
35
+ + database: await env.database.getClient(),
36
+ + router,
37
+ + permissions: env.permissions,
38
+ + discovery: env.discovery,
39
+ + });
40
+
41
+ unprocessed.registerRoutes();
42
+ ```
43
+
44
+ Adds the ability to delete an unprocessed entity from the `refresh_state` table. This change requires enabling permissions for your Backstage instance.
45
+
46
+ - Updated dependencies
47
+ - @backstage/plugin-permission-common@0.7.13
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @backstage/plugin-catalog-unprocessed-entities-common
2
+
3
+ Welcome to the common package for the catalog-unprocessed-entities plugin!
4
+
5
+ _This plugin was created through the Backstage CLI_
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var pluginPermissionCommon = require('@backstage/plugin-permission-common');
4
+
5
+ const unprocessedEntitiesDeletePermission = pluginPermissionCommon.createPermission({
6
+ name: "catalog.entities.unprocessed.delete",
7
+ attributes: { action: "delete" }
8
+ });
9
+ const unprocessedEntitiesPermissions = {
10
+ unprocessedEntitiesDeletePermission
11
+ };
12
+
13
+ exports.unprocessedEntitiesDeletePermission = unprocessedEntitiesDeletePermission;
14
+ exports.unprocessedEntitiesPermissions = unprocessedEntitiesPermissions;
15
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * This permission is used to designate actions that involve removing an\n * unprocessed entity record from the refresh_state table.\n * @public\n */\nexport const unprocessedEntitiesDeletePermission = createPermission({\n name: 'catalog.entities.unprocessed.delete',\n attributes: { action: 'delete' },\n});\n\n/**\n * List of all unprocessed entity permissions\n * @public\n */\nexport const unprocessedEntitiesPermissions = {\n unprocessedEntitiesDeletePermission,\n};\n"],"names":["createPermission"],"mappings":";;;;AAsBO,MAAM,sCAAsCA,uCAAiB,CAAA;AAAA,EAClE,IAAM,EAAA,qCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAMM,MAAM,8BAAiC,GAAA;AAAA,EAC5C,mCAAA;AACF;;;;;"}
@@ -0,0 +1,17 @@
1
+ import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
2
+
3
+ /**
4
+ * This permission is used to designate actions that involve removing an
5
+ * unprocessed entity record from the refresh_state table.
6
+ * @public
7
+ */
8
+ declare const unprocessedEntitiesDeletePermission: _backstage_plugin_permission_common.BasicPermission;
9
+ /**
10
+ * List of all unprocessed entity permissions
11
+ * @public
12
+ */
13
+ declare const unprocessedEntitiesPermissions: {
14
+ unprocessedEntitiesDeletePermission: _backstage_plugin_permission_common.BasicPermission;
15
+ };
16
+
17
+ export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions };
@@ -0,0 +1,2 @@
1
+ export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions } from './permissions.esm.js';
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { createPermission } from '@backstage/plugin-permission-common';
2
+
3
+ const unprocessedEntitiesDeletePermission = createPermission({
4
+ name: "catalog.entities.unprocessed.delete",
5
+ attributes: { action: "delete" }
6
+ });
7
+ const unprocessedEntitiesPermissions = {
8
+ unprocessedEntitiesDeletePermission
9
+ };
10
+
11
+ export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions };
12
+ //# sourceMappingURL=permissions.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * This permission is used to designate actions that involve removing an\n * unprocessed entity record from the refresh_state table.\n * @public\n */\nexport const unprocessedEntitiesDeletePermission = createPermission({\n name: 'catalog.entities.unprocessed.delete',\n attributes: { action: 'delete' },\n});\n\n/**\n * List of all unprocessed entity permissions\n * @public\n */\nexport const unprocessedEntitiesPermissions = {\n unprocessedEntitiesDeletePermission,\n};\n"],"names":[],"mappings":";;AAsBO,MAAM,sCAAsC,gBAAiB,CAAA;AAAA,EAClE,IAAM,EAAA,qCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAMM,MAAM,8BAAiC,GAAA;AAAA,EAC5C,mCAAA;AACF;;;;"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@backstage/plugin-catalog-unprocessed-entities-common",
3
+ "version": "0.0.0-nightly-20240612021718",
4
+ "description": "Common functionalities for the catalog-unprocessed-entities plugin",
5
+ "backstage": {
6
+ "role": "common-library",
7
+ "pluginId": "catalog-unprocessed-entities",
8
+ "pluginPackages": [
9
+ "@backstage/plugin-catalog-unprocessed-entities",
10
+ "@backstage/plugin-catalog-unprocessed-entities-common"
11
+ ]
12
+ },
13
+ "publishConfig": {
14
+ "access": "public",
15
+ "main": "dist/index.cjs.js",
16
+ "module": "dist/index.esm.js",
17
+ "types": "dist/index.d.ts"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/backstage/backstage",
22
+ "directory": "plugins/catalog-unprocessed-entities-common"
23
+ },
24
+ "license": "Apache-2.0",
25
+ "sideEffects": false,
26
+ "main": "dist/index.cjs.js",
27
+ "types": "dist/index.d.ts",
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "build": "backstage-cli package build",
33
+ "clean": "backstage-cli package clean",
34
+ "lint": "backstage-cli package lint",
35
+ "prepack": "backstage-cli package prepack",
36
+ "postpack": "backstage-cli package postpack",
37
+ "test": "backstage-cli package test"
38
+ },
39
+ "dependencies": {
40
+ "@backstage/plugin-permission-common": "^0.0.0-nightly-20240612021718"
41
+ },
42
+ "devDependencies": {
43
+ "@backstage/cli": "^0.0.0-nightly-20240612021718"
44
+ },
45
+ "module": "dist/index.esm.js"
46
+ }