@backstage/plugin-catalog-common 0.1.3 → 0.1.4
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 +8 -0
- package/dist/index.d.ts +58 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Permission } from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* {@link https://backstage.io/docs/features/software-catalog/software-catalog-overview}
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
declare const RESOURCE_TYPE_CATALOG_ENTITY = "catalog-entity";
|
|
8
|
+
/**
|
|
9
|
+
* This permission is used to authorize actions that involve reading one or more
|
|
10
|
+
* entities from the catalog.
|
|
11
|
+
*
|
|
12
|
+
* If this permission is not authorized, it will appear that the entity does not
|
|
13
|
+
* exist in the catalog — both in the frontend and in API responses.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
declare const catalogEntityReadPermission: Permission;
|
|
17
|
+
/**
|
|
18
|
+
* This permission is used to authorize actions that involve creating a new
|
|
19
|
+
* catalog entity. This includes registering an existing component into the
|
|
20
|
+
* catalog.
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
declare const catalogEntityCreatePermission: Permission;
|
|
24
|
+
/**
|
|
25
|
+
* This permission is used to designate actions that involve removing one or
|
|
26
|
+
* more entities from the catalog.
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
declare const catalogEntityDeletePermission: Permission;
|
|
30
|
+
/**
|
|
31
|
+
* This permission is used to designate refreshing one or more entities from the
|
|
32
|
+
* catalog.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
declare const catalogEntityRefreshPermission: Permission;
|
|
36
|
+
/**
|
|
37
|
+
* This permission is used to designate actions that involve reading one or more
|
|
38
|
+
* locations from the catalog.
|
|
39
|
+
*
|
|
40
|
+
* If this permission is not authorized, it will appear that the location does
|
|
41
|
+
* not exist in the catalog — both in the frontend and in API responses.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
declare const catalogLocationReadPermission: Permission;
|
|
45
|
+
/**
|
|
46
|
+
* This permission is used to designate actions that involve creating catalog
|
|
47
|
+
* locations.
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
declare const catalogLocationCreatePermission: Permission;
|
|
51
|
+
/**
|
|
52
|
+
* This permission is used to designate actions that involve deleting locations
|
|
53
|
+
* from the catalog.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
declare const catalogLocationDeletePermission: Permission;
|
|
57
|
+
|
|
58
|
+
export { RESOURCE_TYPE_CATALOG_ENTITY, catalogEntityCreatePermission, catalogEntityDeletePermission, catalogEntityReadPermission, catalogEntityRefreshPermission, catalogLocationCreatePermission, catalogLocationDeletePermission, catalogLocationReadPermission };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-common",
|
|
3
3
|
"description": "Common functionalities for the catalog plugin",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"clean": "backstage-cli package clean"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@backstage/plugin-permission-common": "^0.5.
|
|
36
|
+
"@backstage/plugin-permission-common": "^0.5.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@backstage/cli": "^0.14.0"
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
"files": [
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e244b348c473700e7d5e5fbcef38bd9f9fd1d0ba",
|
|
45
45
|
"module": "dist/index.esm.js"
|
|
46
46
|
}
|