@backstage/plugin-devtools-common 0.1.19-next.1 → 0.1.20
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 +14 -0
- package/dist/alpha.cjs.js +9 -0
- package/dist/alpha.cjs.js.map +1 -0
- package/dist/alpha.d.ts +3 -0
- package/dist/alpha.esm.js +2 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/index.d.ts +54 -2
- package/dist/permissions.cjs.js +10 -0
- package/dist/permissions.cjs.js.map +1 -1
- package/dist/permissions.esm.js +9 -1
- package/dist/permissions.esm.js.map +1 -1
- package/dist/types.cjs.js.map +1 -1
- package/dist/types.esm.js.map +1 -1
- package/package.json +33 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage/plugin-devtools-common
|
|
2
2
|
|
|
3
|
+
## 0.1.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 291bf9d: Added scheduled tasks UI feature for the DevTools plugin
|
|
8
|
+
|
|
9
|
+
## 0.1.19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b2bef92: Convert all enums to erasable-syntax compliant patterns
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @backstage/plugin-permission-common@0.9.3
|
|
16
|
+
|
|
3
17
|
## 0.1.19-next.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var permissions = require('./permissions.cjs.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.devToolsTaskSchedulerCreatePermission = permissions.devToolsTaskSchedulerCreatePermission;
|
|
8
|
+
exports.devToolsTaskSchedulerReadPermission = permissions.devToolsTaskSchedulerReadPermission;
|
|
9
|
+
//# sourceMappingURL=alpha.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonValue } from '@backstage/types';
|
|
2
1
|
import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
|
|
2
|
+
import { JsonValue, JsonObject } from '@backstage/types';
|
|
3
3
|
|
|
4
4
|
/** @public */
|
|
5
5
|
type Endpoint = {
|
|
@@ -56,6 +56,49 @@ type ConfigError = {
|
|
|
56
56
|
messages?: string[];
|
|
57
57
|
stack?: string;
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* The shape of a task definition as returned by the service's REST API.
|
|
61
|
+
* This is a duplication of the below:
|
|
62
|
+
* @see https://github.com/backstage/backstage/blob/master/packages/backend-defaults/src/entrypoints/scheduler/lib/types.ts
|
|
63
|
+
*
|
|
64
|
+
* @alpha
|
|
65
|
+
*/
|
|
66
|
+
interface TaskApiTasksResponse {
|
|
67
|
+
taskId: string;
|
|
68
|
+
pluginId: string;
|
|
69
|
+
scope: 'global' | 'local';
|
|
70
|
+
settings: {
|
|
71
|
+
version: number;
|
|
72
|
+
} & JsonObject;
|
|
73
|
+
taskState: {
|
|
74
|
+
status: 'running';
|
|
75
|
+
startedAt: string;
|
|
76
|
+
timesOutAt?: string;
|
|
77
|
+
lastRunError?: string;
|
|
78
|
+
lastRunEndedAt?: string;
|
|
79
|
+
} | {
|
|
80
|
+
status: 'idle';
|
|
81
|
+
startsAt?: string;
|
|
82
|
+
lastRunError?: string;
|
|
83
|
+
lastRunEndedAt?: string;
|
|
84
|
+
} | null;
|
|
85
|
+
workerState: {
|
|
86
|
+
status: 'initial-wait';
|
|
87
|
+
} | {
|
|
88
|
+
status: 'idle';
|
|
89
|
+
} | {
|
|
90
|
+
status: 'running';
|
|
91
|
+
} | null;
|
|
92
|
+
}
|
|
93
|
+
/** @alpha */
|
|
94
|
+
type ScheduledTasks = {
|
|
95
|
+
scheduledTasks?: TaskApiTasksResponse[];
|
|
96
|
+
error?: string;
|
|
97
|
+
};
|
|
98
|
+
/** @alpha */
|
|
99
|
+
type TriggerScheduledTask = {
|
|
100
|
+
error?: string;
|
|
101
|
+
};
|
|
59
102
|
|
|
60
103
|
/**
|
|
61
104
|
* @public
|
|
@@ -73,6 +116,14 @@ declare const devToolsConfigReadPermission: _backstage_plugin_permission_common.
|
|
|
73
116
|
* @public
|
|
74
117
|
*/
|
|
75
118
|
declare const devToolsExternalDependenciesReadPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
119
|
+
/**
|
|
120
|
+
* @alpha
|
|
121
|
+
*/
|
|
122
|
+
declare const devToolsTaskSchedulerReadPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
123
|
+
/**
|
|
124
|
+
* @alpha
|
|
125
|
+
*/
|
|
126
|
+
declare const devToolsTaskSchedulerCreatePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
76
127
|
/**
|
|
77
128
|
* List of all Devtools permissions
|
|
78
129
|
*
|
|
@@ -80,4 +131,5 @@ declare const devToolsExternalDependenciesReadPermission: _backstage_plugin_perm
|
|
|
80
131
|
*/
|
|
81
132
|
declare const devToolsPermissions: _backstage_plugin_permission_common.BasicPermission[];
|
|
82
133
|
|
|
83
|
-
export {
|
|
134
|
+
export { ExternalDependencyStatus, devToolsTaskSchedulerCreatePermission as a, devToolsTaskSchedulerReadPermission as d, devToolsAdministerPermission, devToolsConfigReadPermission, devToolsExternalDependenciesReadPermission, devToolsInfoReadPermission, devToolsPermissions };
|
|
135
|
+
export type { ConfigError, ConfigInfo, DevToolsInfo, Endpoint, ExternalDependency, PackageDependency, ScheduledTasks as S, TaskApiTasksResponse as T, TriggerScheduledTask as b };
|
package/dist/permissions.cjs.js
CHANGED
|
@@ -18,6 +18,14 @@ const devToolsExternalDependenciesReadPermission = pluginPermissionCommon.create
|
|
|
18
18
|
name: "devtools.external-dependencies",
|
|
19
19
|
attributes: { action: "read" }
|
|
20
20
|
});
|
|
21
|
+
const devToolsTaskSchedulerReadPermission = pluginPermissionCommon.createPermission({
|
|
22
|
+
name: "devtools.scheduler.read",
|
|
23
|
+
attributes: { action: "read" }
|
|
24
|
+
});
|
|
25
|
+
const devToolsTaskSchedulerCreatePermission = pluginPermissionCommon.createPermission({
|
|
26
|
+
name: "devtools.scheduler.trigger",
|
|
27
|
+
attributes: { action: "update" }
|
|
28
|
+
});
|
|
21
29
|
const devToolsPermissions = [
|
|
22
30
|
devToolsAdministerPermission,
|
|
23
31
|
devToolsInfoReadPermission,
|
|
@@ -30,4 +38,6 @@ exports.devToolsConfigReadPermission = devToolsConfigReadPermission;
|
|
|
30
38
|
exports.devToolsExternalDependenciesReadPermission = devToolsExternalDependenciesReadPermission;
|
|
31
39
|
exports.devToolsInfoReadPermission = devToolsInfoReadPermission;
|
|
32
40
|
exports.devToolsPermissions = devToolsPermissions;
|
|
41
|
+
exports.devToolsTaskSchedulerCreatePermission = devToolsTaskSchedulerCreatePermission;
|
|
42
|
+
exports.devToolsTaskSchedulerReadPermission = devToolsTaskSchedulerReadPermission;
|
|
33
43
|
//# sourceMappingURL=permissions.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.cjs.js","sources":["../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 { 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\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAqBO,MAAM,+BAA+BA,uCAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6BAA6BA,uCAAA,CAAiB;AAAA,EACzD,IAAA,EAAM,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,+BAA+BA,uCAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6CAA6CA,uCAAA,CAAiB;AAAA,EACzE,IAAA,EAAM,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAOM,MAAM,mBAAA,GAAsB;AAAA,EACjC,4BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA;AACF
|
|
1
|
+
{"version":3,"file":"permissions.cjs.js","sources":["../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 { 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\n/**\n * @alpha\n */\nexport const devToolsTaskSchedulerReadPermission = createPermission({\n name: 'devtools.scheduler.read',\n attributes: { action: 'read' },\n});\n\n/**\n * @alpha\n */\nexport const devToolsTaskSchedulerCreatePermission = createPermission({\n name: 'devtools.scheduler.trigger',\n attributes: { action: 'update' },\n});\n\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAqBO,MAAM,+BAA+BA,uCAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6BAA6BA,uCAAA,CAAiB;AAAA,EACzD,IAAA,EAAM,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,+BAA+BA,uCAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6CAA6CA,uCAAA,CAAiB;AAAA,EACzE,IAAA,EAAM,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,sCAAsCA,uCAAA,CAAiB;AAAA,EAClE,IAAA,EAAM,yBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,wCAAwCA,uCAAA,CAAiB;AAAA,EACpE,IAAA,EAAM,4BAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAA;AACxB,CAAC;AAOM,MAAM,mBAAA,GAAsB;AAAA,EACjC,4BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA;AACF;;;;;;;;;;"}
|
package/dist/permissions.esm.js
CHANGED
|
@@ -16,6 +16,14 @@ const devToolsExternalDependenciesReadPermission = createPermission({
|
|
|
16
16
|
name: "devtools.external-dependencies",
|
|
17
17
|
attributes: { action: "read" }
|
|
18
18
|
});
|
|
19
|
+
const devToolsTaskSchedulerReadPermission = createPermission({
|
|
20
|
+
name: "devtools.scheduler.read",
|
|
21
|
+
attributes: { action: "read" }
|
|
22
|
+
});
|
|
23
|
+
const devToolsTaskSchedulerCreatePermission = createPermission({
|
|
24
|
+
name: "devtools.scheduler.trigger",
|
|
25
|
+
attributes: { action: "update" }
|
|
26
|
+
});
|
|
19
27
|
const devToolsPermissions = [
|
|
20
28
|
devToolsAdministerPermission,
|
|
21
29
|
devToolsInfoReadPermission,
|
|
@@ -23,5 +31,5 @@ const devToolsPermissions = [
|
|
|
23
31
|
devToolsExternalDependenciesReadPermission
|
|
24
32
|
];
|
|
25
33
|
|
|
26
|
-
export { devToolsAdministerPermission, devToolsConfigReadPermission, devToolsExternalDependenciesReadPermission, devToolsInfoReadPermission, devToolsPermissions };
|
|
34
|
+
export { devToolsAdministerPermission, devToolsConfigReadPermission, devToolsExternalDependenciesReadPermission, devToolsInfoReadPermission, devToolsPermissions, devToolsTaskSchedulerCreatePermission, devToolsTaskSchedulerReadPermission };
|
|
27
35
|
//# sourceMappingURL=permissions.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.esm.js","sources":["../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 { 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\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,+BAA+B,gBAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6BAA6B,gBAAA,CAAiB;AAAA,EACzD,IAAA,EAAM,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,+BAA+B,gBAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6CAA6C,gBAAA,CAAiB;AAAA,EACzE,IAAA,EAAM,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAOM,MAAM,mBAAA,GAAsB;AAAA,EACjC,4BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"permissions.esm.js","sources":["../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 { 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\n/**\n * @alpha\n */\nexport const devToolsTaskSchedulerReadPermission = createPermission({\n name: 'devtools.scheduler.read',\n attributes: { action: 'read' },\n});\n\n/**\n * @alpha\n */\nexport const devToolsTaskSchedulerCreatePermission = createPermission({\n name: 'devtools.scheduler.trigger',\n attributes: { action: 'update' },\n});\n\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,+BAA+B,gBAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6BAA6B,gBAAA,CAAiB;AAAA,EACzD,IAAA,EAAM,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,+BAA+B,gBAAA,CAAiB;AAAA,EAC3D,IAAA,EAAM,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,6CAA6C,gBAAA,CAAiB;AAAA,EACzE,IAAA,EAAM,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,sCAAsC,gBAAA,CAAiB;AAAA,EAClE,IAAA,EAAM,yBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAA;AACxB,CAAC;AAKM,MAAM,wCAAwC,gBAAA,CAAiB;AAAA,EACpE,IAAA,EAAM,4BAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAA;AACxB,CAAC;AAOM,MAAM,mBAAA,GAAsB;AAAA,EACjC,4BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA;AACF;;;;"}
|
package/dist/types.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs.js","sources":["../src/types.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/* We want to maintain the same information as an enum, so we disable the redeclaration warning */\n/* eslint-disable @typescript-eslint/no-redeclare */\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 resourceUtilization: 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 const ExternalDependencyStatus = {\n healthy: 'Healthy',\n unhealthy: 'Unhealthy',\n} as const;\n\n/**\n * @public\n */\nexport type ExternalDependencyStatus =\n (typeof ExternalDependencyStatus)[keyof typeof ExternalDependencyStatus];\n\n/**\n * @public\n */\nexport namespace ExternalDependencyStatus {\n export type healthy = typeof ExternalDependencyStatus.healthy;\n export type unhealthy = typeof ExternalDependencyStatus.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"],"names":[],"mappings":";;AAoDO,MAAM,wBAAA,GAA2B;AAAA,EACtC,OAAA,EAAS,SAAA;AAAA,EACT,SAAA,EAAW;AACb;;;;"}
|
|
1
|
+
{"version":3,"file":"types.cjs.js","sources":["../src/types.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/* We want to maintain the same information as an enum, so we disable the redeclaration warning */\n/* eslint-disable @typescript-eslint/no-redeclare */\n\nimport { JsonObject, 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 resourceUtilization: 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 const ExternalDependencyStatus = {\n healthy: 'Healthy',\n unhealthy: 'Unhealthy',\n} as const;\n\n/**\n * @public\n */\nexport type ExternalDependencyStatus =\n (typeof ExternalDependencyStatus)[keyof typeof ExternalDependencyStatus];\n\n/**\n * @public\n */\nexport namespace ExternalDependencyStatus {\n export type healthy = typeof ExternalDependencyStatus.healthy;\n export type unhealthy = typeof ExternalDependencyStatus.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/**\n * The shape of a task definition as returned by the service's REST API.\n * This is a duplication of the below:\n * @see https://github.com/backstage/backstage/blob/master/packages/backend-defaults/src/entrypoints/scheduler/lib/types.ts\n *\n * @alpha\n */\nexport interface TaskApiTasksResponse {\n taskId: string;\n pluginId: string;\n scope: 'global' | 'local';\n settings: { version: number } & JsonObject;\n taskState:\n | {\n status: 'running';\n startedAt: string;\n timesOutAt?: string;\n lastRunError?: string;\n lastRunEndedAt?: string;\n }\n | {\n status: 'idle';\n startsAt?: string;\n lastRunError?: string;\n lastRunEndedAt?: string;\n }\n | null;\n workerState:\n | {\n status: 'initial-wait';\n }\n | {\n status: 'idle';\n }\n | {\n status: 'running';\n }\n | null;\n}\n\n/** @alpha */\nexport type ScheduledTasks = {\n scheduledTasks?: TaskApiTasksResponse[];\n error?: string;\n};\n\n/** @alpha */\nexport type TriggerScheduledTask = {\n error?: string;\n};\n"],"names":[],"mappings":";;AAoDO,MAAM,wBAAA,GAA2B;AAAA,EACtC,OAAA,EAAS,SAAA;AAAA,EACT,SAAA,EAAW;AACb;;;;"}
|
package/dist/types.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.esm.js","sources":["../src/types.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/* We want to maintain the same information as an enum, so we disable the redeclaration warning */\n/* eslint-disable @typescript-eslint/no-redeclare */\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 resourceUtilization: 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 const ExternalDependencyStatus = {\n healthy: 'Healthy',\n unhealthy: 'Unhealthy',\n} as const;\n\n/**\n * @public\n */\nexport type ExternalDependencyStatus =\n (typeof ExternalDependencyStatus)[keyof typeof ExternalDependencyStatus];\n\n/**\n * @public\n */\nexport namespace ExternalDependencyStatus {\n export type healthy = typeof ExternalDependencyStatus.healthy;\n export type unhealthy = typeof ExternalDependencyStatus.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"],"names":[],"mappings":"AAoDO,MAAM,wBAAA,GAA2B;AAAA,EACtC,OAAA,EAAS,SAAA;AAAA,EACT,SAAA,EAAW;AACb;;;;"}
|
|
1
|
+
{"version":3,"file":"types.esm.js","sources":["../src/types.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/* We want to maintain the same information as an enum, so we disable the redeclaration warning */\n/* eslint-disable @typescript-eslint/no-redeclare */\n\nimport { JsonObject, 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 resourceUtilization: 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 const ExternalDependencyStatus = {\n healthy: 'Healthy',\n unhealthy: 'Unhealthy',\n} as const;\n\n/**\n * @public\n */\nexport type ExternalDependencyStatus =\n (typeof ExternalDependencyStatus)[keyof typeof ExternalDependencyStatus];\n\n/**\n * @public\n */\nexport namespace ExternalDependencyStatus {\n export type healthy = typeof ExternalDependencyStatus.healthy;\n export type unhealthy = typeof ExternalDependencyStatus.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/**\n * The shape of a task definition as returned by the service's REST API.\n * This is a duplication of the below:\n * @see https://github.com/backstage/backstage/blob/master/packages/backend-defaults/src/entrypoints/scheduler/lib/types.ts\n *\n * @alpha\n */\nexport interface TaskApiTasksResponse {\n taskId: string;\n pluginId: string;\n scope: 'global' | 'local';\n settings: { version: number } & JsonObject;\n taskState:\n | {\n status: 'running';\n startedAt: string;\n timesOutAt?: string;\n lastRunError?: string;\n lastRunEndedAt?: string;\n }\n | {\n status: 'idle';\n startsAt?: string;\n lastRunError?: string;\n lastRunEndedAt?: string;\n }\n | null;\n workerState:\n | {\n status: 'initial-wait';\n }\n | {\n status: 'idle';\n }\n | {\n status: 'running';\n }\n | null;\n}\n\n/** @alpha */\nexport type ScheduledTasks = {\n scheduledTasks?: TaskApiTasksResponse[];\n error?: string;\n};\n\n/** @alpha */\nexport type TriggerScheduledTask = {\n error?: string;\n};\n"],"names":[],"mappings":"AAoDO,MAAM,wBAAA,GAA2B;AAAA,EACtC,OAAA,EAAS,SAAA;AAAA,EACT,SAAA,EAAW;AACb;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-devtools-common",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Common functionalities for the devtools plugin",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "common-library",
|
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
"main": "dist/index.cjs.js",
|
|
17
|
-
"module": "dist/index.esm.js",
|
|
18
|
-
"types": "dist/index.d.ts"
|
|
15
|
+
"access": "public"
|
|
19
16
|
},
|
|
20
17
|
"homepage": "https://backstage.io",
|
|
21
18
|
"repository": {
|
|
@@ -25,8 +22,33 @@
|
|
|
25
22
|
},
|
|
26
23
|
"license": "Apache-2.0",
|
|
27
24
|
"sideEffects": false,
|
|
28
|
-
"
|
|
29
|
-
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/index.esm.js",
|
|
28
|
+
"require": "./dist/index.cjs.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"default": "./dist/index.cjs.js"
|
|
31
|
+
},
|
|
32
|
+
"./alpha": {
|
|
33
|
+
"import": "./dist/alpha.esm.js",
|
|
34
|
+
"require": "./dist/alpha.cjs.js",
|
|
35
|
+
"types": "./dist/alpha.d.ts",
|
|
36
|
+
"default": "./dist/alpha.cjs.js"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"main": "./dist/index.cjs.js",
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"typesVersions": {
|
|
43
|
+
"*": {
|
|
44
|
+
"alpha": [
|
|
45
|
+
"dist/alpha.d.ts"
|
|
46
|
+
],
|
|
47
|
+
"package.json": [
|
|
48
|
+
"package.json"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
30
52
|
"files": [
|
|
31
53
|
"dist"
|
|
32
54
|
],
|
|
@@ -39,18 +61,11 @@
|
|
|
39
61
|
"test": "backstage-cli package test"
|
|
40
62
|
},
|
|
41
63
|
"dependencies": {
|
|
42
|
-
"@backstage/plugin-permission-common": "0.9.3
|
|
43
|
-
"@backstage/types": "1.2.2"
|
|
64
|
+
"@backstage/plugin-permission-common": "^0.9.3",
|
|
65
|
+
"@backstage/types": "^1.2.2"
|
|
44
66
|
},
|
|
45
67
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "0.
|
|
47
|
-
},
|
|
48
|
-
"typesVersions": {
|
|
49
|
-
"*": {
|
|
50
|
-
"package.json": [
|
|
51
|
-
"package.json"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
68
|
+
"@backstage/cli": "^0.35.0"
|
|
54
69
|
},
|
|
55
|
-
"module": "dist/index.esm.js"
|
|
70
|
+
"module": "./dist/index.esm.js"
|
|
56
71
|
}
|