@backstage/plugin-catalog-unprocessed-entities-common 0.0.15-next.0 → 0.0.16-next.1

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,11 @@
1
1
  # @backstage/plugin-catalog-unprocessed-entities-common
2
2
 
3
+ ## 0.0.16-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fa06df6: Added `unprocessedEntitiesReadPermission` for authorizing read access to unprocessed entity endpoints.
8
+
3
9
  ## 0.0.15-next.0
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -8,4 +8,5 @@ var permissions = require('./permissions.cjs.js');
8
8
  exports.CatalogUnprocessedEntitiesClient = api.CatalogUnprocessedEntitiesClient;
9
9
  exports.unprocessedEntitiesDeletePermission = permissions.unprocessedEntitiesDeletePermission;
10
10
  exports.unprocessedEntitiesPermissions = permissions.unprocessedEntitiesPermissions;
11
+ exports.unprocessedEntitiesReadPermission = permissions.unprocessedEntitiesReadPermission;
11
12
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -101,6 +101,12 @@ declare class CatalogUnprocessedEntitiesClient implements CatalogUnprocessedEnti
101
101
  delete(entityId: string, options?: UnprocessedEntitiesRequestOptions): Promise<void>;
102
102
  }
103
103
 
104
+ /**
105
+ * This permission is used to designate actions that involve reading
106
+ * unprocessed entity records from the refresh_state table.
107
+ * @public
108
+ */
109
+ declare const unprocessedEntitiesReadPermission: _backstage_plugin_permission_common.BasicPermission;
104
110
  /**
105
111
  * This permission is used to designate actions that involve removing an
106
112
  * unprocessed entity record from the refresh_state table.
@@ -112,8 +118,9 @@ declare const unprocessedEntitiesDeletePermission: _backstage_plugin_permission_
112
118
  * @public
113
119
  */
114
120
  declare const unprocessedEntitiesPermissions: {
121
+ unprocessedEntitiesReadPermission: _backstage_plugin_permission_common.BasicPermission;
115
122
  unprocessedEntitiesDeletePermission: _backstage_plugin_permission_common.BasicPermission;
116
123
  };
117
124
 
118
- export { CatalogUnprocessedEntitiesClient, unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions };
125
+ export { CatalogUnprocessedEntitiesClient, unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions, unprocessedEntitiesReadPermission };
119
126
  export type { CatalogUnprocessedEntitiesApi, CatalogUnprocessedEntitiesApiResponse, UnprocessedEntitiesRequestOptions, UnprocessedEntity, UnprocessedEntityCache, UnprocessedEntityError };
package/dist/index.esm.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export { CatalogUnprocessedEntitiesClient } from './api/api.esm.js';
2
- export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions } from './permissions.esm.js';
2
+ export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions, unprocessedEntitiesReadPermission } from './permissions.esm.js';
3
3
  //# sourceMappingURL=index.esm.js.map
@@ -2,14 +2,20 @@
2
2
 
3
3
  var pluginPermissionCommon = require('@backstage/plugin-permission-common');
4
4
 
5
+ const unprocessedEntitiesReadPermission = pluginPermissionCommon.createPermission({
6
+ name: "catalog.entities.unprocessed.read",
7
+ attributes: { action: "read" }
8
+ });
5
9
  const unprocessedEntitiesDeletePermission = pluginPermissionCommon.createPermission({
6
10
  name: "catalog.entities.unprocessed.delete",
7
11
  attributes: { action: "delete" }
8
12
  });
9
13
  const unprocessedEntitiesPermissions = {
14
+ unprocessedEntitiesReadPermission,
10
15
  unprocessedEntitiesDeletePermission
11
16
  };
12
17
 
13
18
  exports.unprocessedEntitiesDeletePermission = unprocessedEntitiesDeletePermission;
14
19
  exports.unprocessedEntitiesPermissions = unprocessedEntitiesPermissions;
20
+ exports.unprocessedEntitiesReadPermission = unprocessedEntitiesReadPermission;
15
21
  //# sourceMappingURL=permissions.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.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,uCAAA,CAAiB;AAAA,EAClE,IAAA,EAAM,qCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAA;AACxB,CAAC;AAMM,MAAM,8BAAA,GAAiC;AAAA,EAC5C;AACF;;;;;"}
1
+ {"version":3,"file":"permissions.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 reading\n * unprocessed entity records from the refresh_state table.\n * @public\n */\nexport const unprocessedEntitiesReadPermission = createPermission({\n name: 'catalog.entities.unprocessed.read',\n attributes: { action: 'read' },\n});\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 unprocessedEntitiesReadPermission,\n unprocessedEntitiesDeletePermission,\n};\n"],"names":["createPermission"],"mappings":";;;;AAsBO,MAAM,oCAAoCA,uCAAA,CAAiB;AAAA,EAChE,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAOM,MAAM,sCAAsCA,uCAAA,CAAiB;AAAA,EAClE,IAAA,EAAM,qCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAA;AACxB,CAAC;AAMM,MAAM,8BAAA,GAAiC;AAAA,EAC5C,iCAAA;AAAA,EACA;AACF;;;;;;"}
@@ -1,12 +1,17 @@
1
1
  import { createPermission } from '@backstage/plugin-permission-common';
2
2
 
3
+ const unprocessedEntitiesReadPermission = createPermission({
4
+ name: "catalog.entities.unprocessed.read",
5
+ attributes: { action: "read" }
6
+ });
3
7
  const unprocessedEntitiesDeletePermission = createPermission({
4
8
  name: "catalog.entities.unprocessed.delete",
5
9
  attributes: { action: "delete" }
6
10
  });
7
11
  const unprocessedEntitiesPermissions = {
12
+ unprocessedEntitiesReadPermission,
8
13
  unprocessedEntitiesDeletePermission
9
14
  };
10
15
 
11
- export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions };
16
+ export { unprocessedEntitiesDeletePermission, unprocessedEntitiesPermissions, unprocessedEntitiesReadPermission };
12
17
  //# sourceMappingURL=permissions.esm.js.map
@@ -1 +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,gBAAA,CAAiB;AAAA,EAClE,IAAA,EAAM,qCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAA;AACxB,CAAC;AAMM,MAAM,8BAAA,GAAiC;AAAA,EAC5C;AACF;;;;"}
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 reading\n * unprocessed entity records from the refresh_state table.\n * @public\n */\nexport const unprocessedEntitiesReadPermission = createPermission({\n name: 'catalog.entities.unprocessed.read',\n attributes: { action: 'read' },\n});\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 unprocessedEntitiesReadPermission,\n unprocessedEntitiesDeletePermission,\n};\n"],"names":[],"mappings":";;AAsBO,MAAM,oCAAoC,gBAAA,CAAiB;AAAA,EAChE,IAAA,EAAM,mCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAOM,MAAM,sCAAsC,gBAAA,CAAiB;AAAA,EAClE,IAAA,EAAM,qCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAA;AACxB,CAAC;AAMM,MAAM,8BAAA,GAAiC;AAAA,EAC5C,iCAAA;AAAA,EACA;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-unprocessed-entities-common",
3
- "version": "0.0.15-next.0",
3
+ "version": "0.0.16-next.1",
4
4
  "description": "Common functionalities for the catalog-unprocessed-entities plugin",
5
5
  "backstage": {
6
6
  "role": "common-library",
@@ -37,12 +37,12 @@
37
37
  "test": "backstage-cli package test"
38
38
  },
39
39
  "dependencies": {
40
- "@backstage/catalog-model": "1.8.1-next.0",
40
+ "@backstage/catalog-model": "1.8.1-next.1",
41
41
  "@backstage/errors": "1.3.1-next.0",
42
- "@backstage/plugin-permission-common": "0.9.9-next.0"
42
+ "@backstage/plugin-permission-common": "0.9.9-next.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@backstage/cli": "0.36.2-next.0"
45
+ "@backstage/cli": "0.36.2-next.1"
46
46
  },
47
47
  "typesVersions": {
48
48
  "*": {