@backstage/plugin-devtools-common 0.0.0-nightly-20230509022028

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,13 @@
1
+ # @backstage/plugin-devtools-common
2
+
3
+ ## 0.0.0-nightly-20230509022028
4
+
5
+ ### Minor Changes
6
+
7
+ - 347aeca204c: Introduced the DevTools plugin, checkout the plugin's [`README.md`](https://github.com/backstage/backstage/tree/master/plugins/devtools) for more details!
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/types@1.0.2
13
+ - @backstage/plugin-permission-common@0.7.5
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # DevTools Common
2
+
3
+ Common types and permissions for the DevTools plugin.
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var pluginPermissionCommon = require('@backstage/plugin-permission-common');
6
+
7
+ var ExternalDependencyStatus = /* @__PURE__ */ ((ExternalDependencyStatus2) => {
8
+ ExternalDependencyStatus2["healthy"] = "Healthy";
9
+ ExternalDependencyStatus2["unhealthy"] = "Unhealthy";
10
+ return ExternalDependencyStatus2;
11
+ })(ExternalDependencyStatus || {});
12
+
13
+ const devToolsAdministerPermission = pluginPermissionCommon.createPermission({
14
+ name: "devtools.administer",
15
+ attributes: { action: "read" }
16
+ });
17
+ const devToolsInfoReadPermission = pluginPermissionCommon.createPermission({
18
+ name: "devtools.info",
19
+ attributes: { action: "read" }
20
+ });
21
+ const devToolsConfigReadPermission = pluginPermissionCommon.createPermission({
22
+ name: "devtools.config",
23
+ attributes: { action: "read" }
24
+ });
25
+ const devToolsExternalDependenciesReadPermission = pluginPermissionCommon.createPermission({
26
+ name: "devtools.external-dependencies",
27
+ attributes: { action: "read" }
28
+ });
29
+
30
+ exports.ExternalDependencyStatus = ExternalDependencyStatus;
31
+ exports.devToolsAdministerPermission = devToolsAdministerPermission;
32
+ exports.devToolsConfigReadPermission = devToolsConfigReadPermission;
33
+ exports.devToolsExternalDependenciesReadPermission = devToolsExternalDependenciesReadPermission;
34
+ exports.devToolsInfoReadPermission = devToolsInfoReadPermission;
35
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/types.ts","../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { JsonValue } from '@backstage/types';\n\n/** @public */\nexport type Endpoint = {\n name: string;\n type: string;\n target: string;\n};\n\n/** @public */\nexport type ExternalDependency = {\n name: string;\n type: string;\n target: string;\n status: string;\n error?: string;\n};\n\n/** @public */\nexport type DevToolsInfo = {\n operatingSystem: string;\n nodeJsVersion: string;\n backstageVersion: string;\n dependencies: PackageDependency[];\n};\n\n/** @public */\nexport type PackageDependency = {\n name: string;\n versions: string;\n};\n\n/** @public */\nexport enum ExternalDependencyStatus {\n healthy = 'Healthy',\n unhealthy = 'Unhealthy',\n}\n\n/** @public */\nexport type ConfigInfo = {\n config?: JsonValue;\n error?: ConfigError;\n};\n\n/** @public */\nexport type ConfigError = {\n name: string;\n message: string;\n messages?: string[];\n stack?: string;\n};\n","/*\n * Copyright 2022 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 { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const devToolsAdministerPermission = createPermission({\n name: 'devtools.administer',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsInfoReadPermission = createPermission({\n name: 'devtools.info',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsConfigReadPermission = createPermission({\n name: 'devtools.config',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsExternalDependenciesReadPermission = createPermission({\n name: 'devtools.external-dependencies',\n attributes: { action: 'read' },\n});\n"],"names":["ExternalDependencyStatus","createPermission"],"mappings":";;;;;;AAiDY,IAAA,wBAAA,qBAAAA,yBAAL,KAAA;AACL,EAAAA,0BAAA,SAAU,CAAA,GAAA,SAAA,CAAA;AACV,EAAAA,0BAAA,WAAY,CAAA,GAAA,WAAA,CAAA;AAFF,EAAAA,OAAAA,yBAAAA,CAAAA;AAAA,CAAA,EAAA,wBAAA,IAAA,EAAA;;AC5BL,MAAM,+BAA+BC,uCAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC,EAAA;AAKM,MAAM,6BAA6BA,uCAAiB,CAAA;AAAA,EACzD,IAAM,EAAA,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC,EAAA;AAKM,MAAM,+BAA+BA,uCAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC,EAAA;AAKM,MAAM,6CAA6CA,uCAAiB,CAAA;AAAA,EACzE,IAAM,EAAA,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC;;;;;;;;"}
@@ -0,0 +1,65 @@
1
+ import { JsonValue } from '@backstage/types';
2
+ import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
3
+
4
+ /** @public */
5
+ type Endpoint = {
6
+ name: string;
7
+ type: string;
8
+ target: string;
9
+ };
10
+ /** @public */
11
+ type ExternalDependency = {
12
+ name: string;
13
+ type: string;
14
+ target: string;
15
+ status: string;
16
+ error?: string;
17
+ };
18
+ /** @public */
19
+ type DevToolsInfo = {
20
+ operatingSystem: string;
21
+ nodeJsVersion: string;
22
+ backstageVersion: string;
23
+ dependencies: PackageDependency[];
24
+ };
25
+ /** @public */
26
+ type PackageDependency = {
27
+ name: string;
28
+ versions: string;
29
+ };
30
+ /** @public */
31
+ declare enum ExternalDependencyStatus {
32
+ healthy = "Healthy",
33
+ unhealthy = "Unhealthy"
34
+ }
35
+ /** @public */
36
+ type ConfigInfo = {
37
+ config?: JsonValue;
38
+ error?: ConfigError;
39
+ };
40
+ /** @public */
41
+ type ConfigError = {
42
+ name: string;
43
+ message: string;
44
+ messages?: string[];
45
+ stack?: string;
46
+ };
47
+
48
+ /**
49
+ * @public
50
+ */
51
+ declare const devToolsAdministerPermission: _backstage_plugin_permission_common.BasicPermission;
52
+ /**
53
+ * @public
54
+ */
55
+ declare const devToolsInfoReadPermission: _backstage_plugin_permission_common.BasicPermission;
56
+ /**
57
+ * @public
58
+ */
59
+ declare const devToolsConfigReadPermission: _backstage_plugin_permission_common.BasicPermission;
60
+ /**
61
+ * @public
62
+ */
63
+ declare const devToolsExternalDependenciesReadPermission: _backstage_plugin_permission_common.BasicPermission;
64
+
65
+ export { ConfigError, ConfigInfo, DevToolsInfo, Endpoint, ExternalDependency, ExternalDependencyStatus, PackageDependency, devToolsAdministerPermission, devToolsConfigReadPermission, devToolsExternalDependenciesReadPermission, devToolsInfoReadPermission };
@@ -0,0 +1,27 @@
1
+ import { createPermission } from '@backstage/plugin-permission-common';
2
+
3
+ var ExternalDependencyStatus = /* @__PURE__ */ ((ExternalDependencyStatus2) => {
4
+ ExternalDependencyStatus2["healthy"] = "Healthy";
5
+ ExternalDependencyStatus2["unhealthy"] = "Unhealthy";
6
+ return ExternalDependencyStatus2;
7
+ })(ExternalDependencyStatus || {});
8
+
9
+ const devToolsAdministerPermission = createPermission({
10
+ name: "devtools.administer",
11
+ attributes: { action: "read" }
12
+ });
13
+ const devToolsInfoReadPermission = createPermission({
14
+ name: "devtools.info",
15
+ attributes: { action: "read" }
16
+ });
17
+ const devToolsConfigReadPermission = createPermission({
18
+ name: "devtools.config",
19
+ attributes: { action: "read" }
20
+ });
21
+ const devToolsExternalDependenciesReadPermission = createPermission({
22
+ name: "devtools.external-dependencies",
23
+ attributes: { action: "read" }
24
+ });
25
+
26
+ export { ExternalDependencyStatus, devToolsAdministerPermission, devToolsConfigReadPermission, devToolsExternalDependenciesReadPermission, devToolsInfoReadPermission };
27
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/types.ts","../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { JsonValue } from '@backstage/types';\n\n/** @public */\nexport type Endpoint = {\n name: string;\n type: string;\n target: string;\n};\n\n/** @public */\nexport type ExternalDependency = {\n name: string;\n type: string;\n target: string;\n status: string;\n error?: string;\n};\n\n/** @public */\nexport type DevToolsInfo = {\n operatingSystem: string;\n nodeJsVersion: string;\n backstageVersion: string;\n dependencies: PackageDependency[];\n};\n\n/** @public */\nexport type PackageDependency = {\n name: string;\n versions: string;\n};\n\n/** @public */\nexport enum ExternalDependencyStatus {\n healthy = 'Healthy',\n unhealthy = 'Unhealthy',\n}\n\n/** @public */\nexport type ConfigInfo = {\n config?: JsonValue;\n error?: ConfigError;\n};\n\n/** @public */\nexport type ConfigError = {\n name: string;\n message: string;\n messages?: string[];\n stack?: string;\n};\n","/*\n * Copyright 2022 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 { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const devToolsAdministerPermission = createPermission({\n name: 'devtools.administer',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsInfoReadPermission = createPermission({\n name: 'devtools.info',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsConfigReadPermission = createPermission({\n name: 'devtools.config',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsExternalDependenciesReadPermission = createPermission({\n name: 'devtools.external-dependencies',\n attributes: { action: 'read' },\n});\n"],"names":["ExternalDependencyStatus"],"mappings":";;AAiDY,IAAA,wBAAA,qBAAAA,yBAAL,KAAA;AACL,EAAAA,0BAAA,SAAU,CAAA,GAAA,SAAA,CAAA;AACV,EAAAA,0BAAA,WAAY,CAAA,GAAA,WAAA,CAAA;AAFF,EAAAA,OAAAA,yBAAAA,CAAAA;AAAA,CAAA,EAAA,wBAAA,IAAA,EAAA;;AC5BL,MAAM,+BAA+B,gBAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC,EAAA;AAKM,MAAM,6BAA6B,gBAAiB,CAAA;AAAA,EACzD,IAAM,EAAA,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC,EAAA;AAKM,MAAM,+BAA+B,gBAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC,EAAA;AAKM,MAAM,6CAA6C,gBAAiB,CAAA;AAAA,EACzE,IAAM,EAAA,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO,EAAA;AAC/B,CAAC;;;;"}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@backstage/plugin-devtools-common",
3
+ "description": "Common functionalities for the devtools plugin",
4
+ "version": "0.0.0-nightly-20230509022028",
5
+ "main": "dist/index.cjs.js",
6
+ "types": "dist/index.d.ts",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "module": "dist/index.esm.js",
12
+ "types": "dist/index.d.ts"
13
+ },
14
+ "backstage": {
15
+ "role": "common-library"
16
+ },
17
+ "scripts": {
18
+ "build": "backstage-cli package build",
19
+ "lint": "backstage-cli package lint",
20
+ "test": "backstage-cli package test",
21
+ "clean": "backstage-cli package clean",
22
+ "prepack": "backstage-cli package prepack",
23
+ "postpack": "backstage-cli package postpack"
24
+ },
25
+ "dependencies": {
26
+ "@backstage/plugin-permission-common": "^0.7.5",
27
+ "@backstage/types": "^1.0.2"
28
+ },
29
+ "devDependencies": {
30
+ "@backstage/cli": "^0.0.0-nightly-20230509022028"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "module": "dist/index.esm.js"
36
+ }