@backstage/plugin-catalog-common 0.1.1-next.0 → 0.1.3

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,33 @@
1
1
  # @backstage/plugin-catalog-common
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - c77c5c7eb6: Added `backstage.role` to `package.json`
8
+ - Updated dependencies
9
+ - @backstage/plugin-permission-common@0.5.0
10
+
11
+ ## 0.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - ba59832aed: Adds new `catalogEntityCreatePermission` which can be imported and used when authoring a permission policy to restrict/grant a user's access to the catalog import plugin. (And the "Register Existing Component" button which navigates there).
16
+
17
+ ## 0.1.2-next.0
18
+
19
+ ### Patch Changes
20
+
21
+ - ba59832aed: Adds new `catalogEntityCreatePermission` which can be imported and used when authoring a permission policy to restrict/grant a user's access to the catalog import plugin. (And the "Register Existing Component" button which navigates there).
22
+
23
+ ## 0.1.1
24
+
25
+ ### Patch Changes
26
+
27
+ - 7e38acaa9e: Remove Catalog Location resource type
28
+ - Updated dependencies
29
+ - @backstage/plugin-permission-common@0.4.0
30
+
3
31
  ## 0.1.1-next.0
4
32
 
5
33
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const RESOURCE_TYPE_CATALOG_ENTITY = "catalog-entity";
6
- const RESOURCE_TYPE_CATALOG_LOCATION = "catalog-location";
7
6
  const catalogEntityReadPermission = {
8
7
  name: "catalog.entity.read",
9
8
  attributes: {
@@ -11,6 +10,13 @@ const catalogEntityReadPermission = {
11
10
  },
12
11
  resourceType: RESOURCE_TYPE_CATALOG_ENTITY
13
12
  };
13
+ const catalogEntityCreatePermission = {
14
+ name: "catalog.entity.create",
15
+ attributes: {
16
+ action: "create"
17
+ },
18
+ resourceType: RESOURCE_TYPE_CATALOG_ENTITY
19
+ };
14
20
  const catalogEntityDeletePermission = {
15
21
  name: "catalog.entity.delete",
16
22
  attributes: {
@@ -29,26 +35,23 @@ const catalogLocationReadPermission = {
29
35
  name: "catalog.location.read",
30
36
  attributes: {
31
37
  action: "read"
32
- },
33
- resourceType: RESOURCE_TYPE_CATALOG_LOCATION
38
+ }
34
39
  };
35
40
  const catalogLocationCreatePermission = {
36
41
  name: "catalog.location.create",
37
42
  attributes: {
38
43
  action: "create"
39
- },
40
- resourceType: RESOURCE_TYPE_CATALOG_LOCATION
44
+ }
41
45
  };
42
46
  const catalogLocationDeletePermission = {
43
47
  name: "catalog.location.delete",
44
48
  attributes: {
45
49
  action: "delete"
46
- },
47
- resourceType: RESOURCE_TYPE_CATALOG_LOCATION
50
+ }
48
51
  };
49
52
 
50
53
  exports.RESOURCE_TYPE_CATALOG_ENTITY = RESOURCE_TYPE_CATALOG_ENTITY;
51
- exports.RESOURCE_TYPE_CATALOG_LOCATION = RESOURCE_TYPE_CATALOG_LOCATION;
54
+ exports.catalogEntityCreatePermission = catalogEntityCreatePermission;
52
55
  exports.catalogEntityDeletePermission = catalogEntityDeletePermission;
53
56
  exports.catalogEntityReadPermission = catalogEntityReadPermission;
54
57
  exports.catalogEntityRefreshPermission = catalogEntityRefreshPermission;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { Permission } from '@backstage/plugin-permission-common';\n\n/**\n * {@link https://backstage.io/docs/features/software-catalog/software-catalog-overview}\n * @public\n */\nexport const RESOURCE_TYPE_CATALOG_ENTITY = 'catalog-entity';\n\n/**\n * {@link https://backstage.io/docs/features/software-catalog/descriptor-format#kind-location}\n * @public\n */\nexport const RESOURCE_TYPE_CATALOG_LOCATION = 'catalog-location';\n\n/**\n * This permission is used to authorize actions that involve reading one or more\n * entities from the catalog.\n *\n * If this permission is not authorized, it will appear that the entity does not\n * exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogEntityReadPermission: Permission = {\n name: 'catalog.entity.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve removing one or\n * more entities from the catalog.\n * @public\n */\nexport const catalogEntityDeletePermission: Permission = {\n name: 'catalog.entity.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate refreshing one or more entities from the\n * catalog.\n * @public\n */\nexport const catalogEntityRefreshPermission: Permission = {\n name: 'catalog.entity.refresh',\n attributes: {\n action: 'update',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve reading one or more\n * locations from the catalog.\n *\n * If this permission is not authorized, it will appear that the location does\n * not exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogLocationReadPermission: Permission = {\n name: 'catalog.location.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_LOCATION,\n};\n\n/**\n * This permission is used to designate actions that involve creating catalog\n * locations.\n * @public\n */\nexport const catalogLocationCreatePermission: Permission = {\n name: 'catalog.location.create',\n attributes: {\n action: 'create',\n },\n resourceType: RESOURCE_TYPE_CATALOG_LOCATION,\n};\n\n/**\n * This permission is used to designate actions that involve deleting locations\n * from the catalog.\n * @public\n */\nexport const catalogLocationDeletePermission: Permission = {\n name: 'catalog.location.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_LOCATION,\n};\n"],"names":[],"mappings":";;;;MAsBa,+BAA+B;MAM/B,iCAAiC;MAUjC,8BAA0C;AAAA,EACrD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,iCAA6C;AAAA,EACxD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAWH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { Permission } from '@backstage/plugin-permission-common';\n\n/**\n * {@link https://backstage.io/docs/features/software-catalog/software-catalog-overview}\n * @public\n */\nexport const RESOURCE_TYPE_CATALOG_ENTITY = 'catalog-entity';\n\n/**\n * This permission is used to authorize actions that involve reading one or more\n * entities from the catalog.\n *\n * If this permission is not authorized, it will appear that the entity does not\n * exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogEntityReadPermission: Permission = {\n name: 'catalog.entity.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to authorize actions that involve creating a new\n * catalog entity. This includes registering an existing component into the\n * catalog.\n * @public\n */\nexport const catalogEntityCreatePermission: Permission = {\n name: 'catalog.entity.create',\n attributes: {\n action: 'create',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve removing one or\n * more entities from the catalog.\n * @public\n */\nexport const catalogEntityDeletePermission: Permission = {\n name: 'catalog.entity.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate refreshing one or more entities from the\n * catalog.\n * @public\n */\nexport const catalogEntityRefreshPermission: Permission = {\n name: 'catalog.entity.refresh',\n attributes: {\n action: 'update',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve reading one or more\n * locations from the catalog.\n *\n * If this permission is not authorized, it will appear that the location does\n * not exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogLocationReadPermission: Permission = {\n name: 'catalog.location.read',\n attributes: {\n action: 'read',\n },\n};\n\n/**\n * This permission is used to designate actions that involve creating catalog\n * locations.\n * @public\n */\nexport const catalogLocationCreatePermission: Permission = {\n name: 'catalog.location.create',\n attributes: {\n action: 'create',\n },\n};\n\n/**\n * This permission is used to designate actions that involve deleting locations\n * from the catalog.\n * @public\n */\nexport const catalogLocationDeletePermission: Permission = {\n name: 'catalog.location.delete',\n attributes: {\n action: 'delete',\n },\n};\n"],"names":[],"mappings":";;;;MAsBa,+BAA+B;MAU/B,8BAA0C;AAAA,EACrD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MASH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,iCAA6C;AAAA,EACxD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAWH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA;MASC,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA;MASC,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA;;;;;;;;;;;"}
package/dist/index.esm.js CHANGED
@@ -1,5 +1,4 @@
1
1
  const RESOURCE_TYPE_CATALOG_ENTITY = "catalog-entity";
2
- const RESOURCE_TYPE_CATALOG_LOCATION = "catalog-location";
3
2
  const catalogEntityReadPermission = {
4
3
  name: "catalog.entity.read",
5
4
  attributes: {
@@ -7,6 +6,13 @@ const catalogEntityReadPermission = {
7
6
  },
8
7
  resourceType: RESOURCE_TYPE_CATALOG_ENTITY
9
8
  };
9
+ const catalogEntityCreatePermission = {
10
+ name: "catalog.entity.create",
11
+ attributes: {
12
+ action: "create"
13
+ },
14
+ resourceType: RESOURCE_TYPE_CATALOG_ENTITY
15
+ };
10
16
  const catalogEntityDeletePermission = {
11
17
  name: "catalog.entity.delete",
12
18
  attributes: {
@@ -25,23 +31,20 @@ const catalogLocationReadPermission = {
25
31
  name: "catalog.location.read",
26
32
  attributes: {
27
33
  action: "read"
28
- },
29
- resourceType: RESOURCE_TYPE_CATALOG_LOCATION
34
+ }
30
35
  };
31
36
  const catalogLocationCreatePermission = {
32
37
  name: "catalog.location.create",
33
38
  attributes: {
34
39
  action: "create"
35
- },
36
- resourceType: RESOURCE_TYPE_CATALOG_LOCATION
40
+ }
37
41
  };
38
42
  const catalogLocationDeletePermission = {
39
43
  name: "catalog.location.delete",
40
44
  attributes: {
41
45
  action: "delete"
42
- },
43
- resourceType: RESOURCE_TYPE_CATALOG_LOCATION
46
+ }
44
47
  };
45
48
 
46
- export { RESOURCE_TYPE_CATALOG_ENTITY, RESOURCE_TYPE_CATALOG_LOCATION, catalogEntityDeletePermission, catalogEntityReadPermission, catalogEntityRefreshPermission, catalogLocationCreatePermission, catalogLocationDeletePermission, catalogLocationReadPermission };
49
+ export { RESOURCE_TYPE_CATALOG_ENTITY, catalogEntityCreatePermission, catalogEntityDeletePermission, catalogEntityReadPermission, catalogEntityRefreshPermission, catalogLocationCreatePermission, catalogLocationDeletePermission, catalogLocationReadPermission };
47
50
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { Permission } from '@backstage/plugin-permission-common';\n\n/**\n * {@link https://backstage.io/docs/features/software-catalog/software-catalog-overview}\n * @public\n */\nexport const RESOURCE_TYPE_CATALOG_ENTITY = 'catalog-entity';\n\n/**\n * {@link https://backstage.io/docs/features/software-catalog/descriptor-format#kind-location}\n * @public\n */\nexport const RESOURCE_TYPE_CATALOG_LOCATION = 'catalog-location';\n\n/**\n * This permission is used to authorize actions that involve reading one or more\n * entities from the catalog.\n *\n * If this permission is not authorized, it will appear that the entity does not\n * exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogEntityReadPermission: Permission = {\n name: 'catalog.entity.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve removing one or\n * more entities from the catalog.\n * @public\n */\nexport const catalogEntityDeletePermission: Permission = {\n name: 'catalog.entity.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate refreshing one or more entities from the\n * catalog.\n * @public\n */\nexport const catalogEntityRefreshPermission: Permission = {\n name: 'catalog.entity.refresh',\n attributes: {\n action: 'update',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve reading one or more\n * locations from the catalog.\n *\n * If this permission is not authorized, it will appear that the location does\n * not exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogLocationReadPermission: Permission = {\n name: 'catalog.location.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_LOCATION,\n};\n\n/**\n * This permission is used to designate actions that involve creating catalog\n * locations.\n * @public\n */\nexport const catalogLocationCreatePermission: Permission = {\n name: 'catalog.location.create',\n attributes: {\n action: 'create',\n },\n resourceType: RESOURCE_TYPE_CATALOG_LOCATION,\n};\n\n/**\n * This permission is used to designate actions that involve deleting locations\n * from the catalog.\n * @public\n */\nexport const catalogLocationDeletePermission: Permission = {\n name: 'catalog.location.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_LOCATION,\n};\n"],"names":[],"mappings":"MAsBa,+BAA+B;MAM/B,iCAAiC;MAUjC,8BAA0C;AAAA,EACrD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,iCAA6C;AAAA,EACxD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAWH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { Permission } from '@backstage/plugin-permission-common';\n\n/**\n * {@link https://backstage.io/docs/features/software-catalog/software-catalog-overview}\n * @public\n */\nexport const RESOURCE_TYPE_CATALOG_ENTITY = 'catalog-entity';\n\n/**\n * This permission is used to authorize actions that involve reading one or more\n * entities from the catalog.\n *\n * If this permission is not authorized, it will appear that the entity does not\n * exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogEntityReadPermission: Permission = {\n name: 'catalog.entity.read',\n attributes: {\n action: 'read',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to authorize actions that involve creating a new\n * catalog entity. This includes registering an existing component into the\n * catalog.\n * @public\n */\nexport const catalogEntityCreatePermission: Permission = {\n name: 'catalog.entity.create',\n attributes: {\n action: 'create',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve removing one or\n * more entities from the catalog.\n * @public\n */\nexport const catalogEntityDeletePermission: Permission = {\n name: 'catalog.entity.delete',\n attributes: {\n action: 'delete',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate refreshing one or more entities from the\n * catalog.\n * @public\n */\nexport const catalogEntityRefreshPermission: Permission = {\n name: 'catalog.entity.refresh',\n attributes: {\n action: 'update',\n },\n resourceType: RESOURCE_TYPE_CATALOG_ENTITY,\n};\n\n/**\n * This permission is used to designate actions that involve reading one or more\n * locations from the catalog.\n *\n * If this permission is not authorized, it will appear that the location does\n * not exist in the catalog — both in the frontend and in API responses.\n * @public\n */\nexport const catalogLocationReadPermission: Permission = {\n name: 'catalog.location.read',\n attributes: {\n action: 'read',\n },\n};\n\n/**\n * This permission is used to designate actions that involve creating catalog\n * locations.\n * @public\n */\nexport const catalogLocationCreatePermission: Permission = {\n name: 'catalog.location.create',\n attributes: {\n action: 'create',\n },\n};\n\n/**\n * This permission is used to designate actions that involve deleting locations\n * from the catalog.\n * @public\n */\nexport const catalogLocationDeletePermission: Permission = {\n name: 'catalog.location.delete',\n attributes: {\n action: 'delete',\n },\n};\n"],"names":[],"mappings":"MAsBa,+BAA+B;MAU/B,8BAA0C;AAAA,EACrD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MASH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAQH,iCAA6C;AAAA,EACxD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA,EAEV,cAAc;AAAA;MAWH,gCAA4C;AAAA,EACvD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA;MASC,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA;MASC,kCAA8C;AAAA,EACzD,MAAM;AAAA,EACN,YAAY;AAAA,IACV,QAAQ;AAAA;AAAA;;;;"}
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.1-next.0",
4
+ "version": "0.1.3",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -12,6 +12,9 @@
12
12
  "module": "dist/index.esm.js",
13
13
  "types": "dist/index.d.ts"
14
14
  },
15
+ "backstage": {
16
+ "role": "common-library"
17
+ },
15
18
  "homepage": "https://backstage.io",
16
19
  "repository": {
17
20
  "type": "git",
@@ -22,22 +25,22 @@
22
25
  "backstage"
23
26
  ],
24
27
  "scripts": {
25
- "build": "backstage-cli build",
26
- "lint": "backstage-cli lint",
27
- "test": "backstage-cli test --passWithNoTests",
28
- "prepack": "backstage-cli prepack",
29
- "postpack": "backstage-cli postpack",
30
- "clean": "backstage-cli clean"
28
+ "build": "backstage-cli package build",
29
+ "lint": "backstage-cli package lint",
30
+ "test": "backstage-cli package test",
31
+ "prepack": "backstage-cli package prepack",
32
+ "postpack": "backstage-cli package postpack",
33
+ "clean": "backstage-cli package clean"
31
34
  },
32
35
  "dependencies": {
33
- "@backstage/plugin-permission-common": "^0.4.0-next.0"
36
+ "@backstage/plugin-permission-common": "^0.5.0"
34
37
  },
35
38
  "devDependencies": {
36
- "@backstage/cli": "^0.12.0-next.0"
39
+ "@backstage/cli": "^0.14.0"
37
40
  },
38
41
  "files": [
39
42
  "dist"
40
43
  ],
41
- "gitHead": "31184691d5a38cb78b091c8f7ad6db80604519a6",
44
+ "gitHead": "4805c3d13ce9bfc369e53c271b1b95e722b3b4dc",
42
45
  "module": "dist/index.esm.js"
43
46
  }
package/dist/index.d.ts DELETED
@@ -1,56 +0,0 @@
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
- * {@link https://backstage.io/docs/features/software-catalog/descriptor-format#kind-location}
10
- * @public
11
- */
12
- declare const RESOURCE_TYPE_CATALOG_LOCATION = "catalog-location";
13
- /**
14
- * This permission is used to authorize actions that involve reading one or more
15
- * entities from the catalog.
16
- *
17
- * If this permission is not authorized, it will appear that the entity does not
18
- * exist in the catalog — both in the frontend and in API responses.
19
- * @public
20
- */
21
- declare const catalogEntityReadPermission: Permission;
22
- /**
23
- * This permission is used to designate actions that involve removing one or
24
- * more entities from the catalog.
25
- * @public
26
- */
27
- declare const catalogEntityDeletePermission: Permission;
28
- /**
29
- * This permission is used to designate refreshing one or more entities from the
30
- * catalog.
31
- * @public
32
- */
33
- declare const catalogEntityRefreshPermission: Permission;
34
- /**
35
- * This permission is used to designate actions that involve reading one or more
36
- * locations from the catalog.
37
- *
38
- * If this permission is not authorized, it will appear that the location does
39
- * not exist in the catalog — both in the frontend and in API responses.
40
- * @public
41
- */
42
- declare const catalogLocationReadPermission: Permission;
43
- /**
44
- * This permission is used to designate actions that involve creating catalog
45
- * locations.
46
- * @public
47
- */
48
- declare const catalogLocationCreatePermission: Permission;
49
- /**
50
- * This permission is used to designate actions that involve deleting locations
51
- * from the catalog.
52
- * @public
53
- */
54
- declare const catalogLocationDeletePermission: Permission;
55
-
56
- export { RESOURCE_TYPE_CATALOG_ENTITY, RESOURCE_TYPE_CATALOG_LOCATION, catalogEntityDeletePermission, catalogEntityReadPermission, catalogEntityRefreshPermission, catalogLocationCreatePermission, catalogLocationDeletePermission, catalogLocationReadPermission };