@red-hat-developer-hub/backstage-plugin-orchestrator-node 1.0.0
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 +13 -0
- package/README.md +5 -0
- package/dist/extensions.cjs.js +10 -0
- package/dist/extensions.cjs.js.map +1 -0
- package/dist/index.cjs.js +8 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/package.json +70 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @red-hat-developer-hub/backstage-plugin-orchestrator-node
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 3e2c3f7: Adding Workflow Logs endpoint. Loki provider added
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [3e2c3f7]
|
|
12
|
+
- Updated dependencies [f1b43c5]
|
|
13
|
+
- @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.4.0
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
4
|
+
|
|
5
|
+
const workflowLogsExtensionEndpoint = backendPluginApi.createExtensionPoint({
|
|
6
|
+
id: "orchestrator.workflowlogs"
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
exports.workflowLogsExtensionEndpoint = workflowLogsExtensionEndpoint;
|
|
10
|
+
//# sourceMappingURL=extensions.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.cjs.js","sources":["../src/extensions.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 { createExtensionPoint } from '@backstage/backend-plugin-api';\nimport { WorkflowLogProvider } from './api';\n\n/**\n * @public\n */\nexport interface WorkflowLogsExtensionPoint {\n addWorkflowLogProvider(\n ...workflowLogProviders: Array<WorkflowLogProvider>\n ): void;\n}\n\n/**\n * @public\n */\nexport const workflowLogsExtensionEndpoint =\n createExtensionPoint<WorkflowLogsExtensionPoint>({\n id: 'orchestrator.workflowlogs',\n });\n"],"names":["createExtensionPoint"],"mappings":";;;;AA+BO,MAAM,gCACXA,qCAAA,CAAiD;AAAA,EAC/C,EAAA,EAAI;AACN,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
|
+
import { ProcessInstanceDTO, WorkflowLogsResponse } from '@red-hat-developer-hub/backstage-plugin-orchestrator-common';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
interface WorkflowLogProvider {
|
|
8
|
+
getProviderId(): string;
|
|
9
|
+
getBaseURL(): string;
|
|
10
|
+
fetchWorkflowLogsByInstance(workflowInstance: ProcessInstanceDTO): Promise<WorkflowLogsResponse>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
interface WorkflowLogsExtensionPoint {
|
|
17
|
+
addWorkflowLogProvider(...workflowLogProviders: Array<WorkflowLogProvider>): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
declare const workflowLogsExtensionEndpoint: _backstage_backend_plugin_api.ExtensionPoint<WorkflowLogsExtensionPoint>;
|
|
23
|
+
|
|
24
|
+
export { type WorkflowLogProvider, type WorkflowLogsExtensionPoint, workflowLogsExtensionEndpoint };
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@red-hat-developer-hub/backstage-plugin-orchestrator-node",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "Node.js library for the orchestrator plugin",
|
|
6
|
+
"main": "./dist/index.cjs.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"backstage": {
|
|
12
|
+
"role": "node-library",
|
|
13
|
+
"pluginId": "orchestrator",
|
|
14
|
+
"pluginPackages": [
|
|
15
|
+
"@red-hat-developer-hub/backstage-plugin-orchestrator",
|
|
16
|
+
"@red-hat-developer-hub/backstage-plugin-orchestrator-backend",
|
|
17
|
+
"@red-hat-developer-hub/backstage-plugin-orchestrator-common",
|
|
18
|
+
"@red-hat-developer-hub/backstage-plugin-orchestrator-node"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"require": "./dist/index.cjs.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.cjs.js"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"typesVersions": {
|
|
30
|
+
"*": {
|
|
31
|
+
"package.json": [
|
|
32
|
+
"package.json"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "backstage-cli package build",
|
|
38
|
+
"lint": "backstage-cli package lint",
|
|
39
|
+
"test": "backstage-cli package test",
|
|
40
|
+
"clean": "backstage-cli package clean",
|
|
41
|
+
"prepack": "backstage-cli package prepack",
|
|
42
|
+
"postpack": "backstage-cli package postpack",
|
|
43
|
+
"start": "backstage-cli package start",
|
|
44
|
+
"tsc": "tsc",
|
|
45
|
+
"prettier:check": "prettier --ignore-unknown --check .",
|
|
46
|
+
"prettier:fix": "prettier --ignore-unknown --write ."
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@backstage/backend-plugin-api": "^1.4.4",
|
|
50
|
+
"@red-hat-developer-hub/backstage-plugin-orchestrator-common": "^3.4.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@backstage/cli": "^0.34.4"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist"
|
|
57
|
+
],
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/redhat-developer/rhdh-plugins",
|
|
61
|
+
"directory": "workspaces/orchestrator/plugins/orchestrator-node"
|
|
62
|
+
},
|
|
63
|
+
"keywords": [
|
|
64
|
+
"backstage",
|
|
65
|
+
"plugin"
|
|
66
|
+
],
|
|
67
|
+
"homepage": "https://red.ht/rhdh",
|
|
68
|
+
"bugs": "https://github.com/redhat-developer/rhdh-plugins/issues",
|
|
69
|
+
"author": "Red Hat"
|
|
70
|
+
}
|