@backstage/plugin-scaffolder-node 0.10.0 → 0.11.0-next.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 +18 -0
- package/dist/index.d.ts +19 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-node
|
|
2
2
|
|
|
3
|
+
## 0.11.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c08cbc4: Move Scaffolder API to OpenAPI
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 812485c: Add step info to scaffolder action context to access the step id and name.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
- @backstage/plugin-scaffolder-common@1.7.0-next.0
|
|
14
|
+
- @backstage/backend-plugin-api@1.4.2-next.0
|
|
15
|
+
- @backstage/catalog-model@1.7.5
|
|
16
|
+
- @backstage/errors@1.2.7
|
|
17
|
+
- @backstage/integration@1.17.1
|
|
18
|
+
- @backstage/types@1.2.1
|
|
19
|
+
- @backstage/plugin-permission-common@0.9.1
|
|
20
|
+
|
|
3
21
|
## 0.10.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ type TaskSecrets = Record<string, string> & {
|
|
|
24
24
|
*
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
27
|
-
type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing';
|
|
27
|
+
type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing' | 'skipped';
|
|
28
28
|
/**
|
|
29
29
|
* The state of a completed task.
|
|
30
30
|
*
|
|
@@ -61,7 +61,11 @@ type SerializedTaskEvent = {
|
|
|
61
61
|
id: number;
|
|
62
62
|
isTaskRecoverable?: boolean;
|
|
63
63
|
taskId: string;
|
|
64
|
-
body:
|
|
64
|
+
body: {
|
|
65
|
+
message: string;
|
|
66
|
+
stepId?: string;
|
|
67
|
+
status?: TaskStatus;
|
|
68
|
+
} & JsonObject;
|
|
65
69
|
type: TaskEventType;
|
|
66
70
|
createdAt: string;
|
|
67
71
|
};
|
|
@@ -239,6 +243,19 @@ type ActionContext<TActionInput extends JsonObject, TActionOutput extends JsonOb
|
|
|
239
243
|
* Optional value of each invocation
|
|
240
244
|
*/
|
|
241
245
|
each?: JsonObject;
|
|
246
|
+
/**
|
|
247
|
+
* Step information
|
|
248
|
+
*/
|
|
249
|
+
step?: {
|
|
250
|
+
/**
|
|
251
|
+
* The id of step which triggered the action
|
|
252
|
+
*/
|
|
253
|
+
id?: string;
|
|
254
|
+
/**
|
|
255
|
+
* The name of the step which triggered the action
|
|
256
|
+
*/
|
|
257
|
+
name?: string;
|
|
258
|
+
};
|
|
242
259
|
};
|
|
243
260
|
/** @public */
|
|
244
261
|
type TemplateAction<TActionInput extends JsonObject = JsonObject, TActionOutput extends JsonObject = JsonObject, TSchemaType extends 'v2' = 'v2'> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0-next.0",
|
|
4
4
|
"description": "The plugin-scaffolder-node module for @backstage/plugin-scaffolder-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"test": "backstage-cli package test"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@backstage/backend-plugin-api": "
|
|
66
|
-
"@backstage/catalog-model": "
|
|
67
|
-
"@backstage/errors": "
|
|
68
|
-
"@backstage/integration": "
|
|
69
|
-
"@backstage/plugin-permission-common": "
|
|
70
|
-
"@backstage/plugin-scaffolder-common": "
|
|
71
|
-
"@backstage/types": "
|
|
65
|
+
"@backstage/backend-plugin-api": "1.4.2-next.0",
|
|
66
|
+
"@backstage/catalog-model": "1.7.5",
|
|
67
|
+
"@backstage/errors": "1.2.7",
|
|
68
|
+
"@backstage/integration": "1.17.1",
|
|
69
|
+
"@backstage/plugin-permission-common": "0.9.1",
|
|
70
|
+
"@backstage/plugin-scaffolder-common": "1.7.0-next.0",
|
|
71
|
+
"@backstage/types": "1.2.1",
|
|
72
72
|
"@isomorphic-git/pgp-plugin": "^0.0.7",
|
|
73
73
|
"concat-stream": "^2.0.0",
|
|
74
74
|
"fs-extra": "^11.2.0",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"zod-to-json-schema": "^3.20.4"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@backstage/backend-test-utils": "
|
|
88
|
-
"@backstage/cli": "
|
|
89
|
-
"@backstage/config": "
|
|
87
|
+
"@backstage/backend-test-utils": "1.7.1-next.0",
|
|
88
|
+
"@backstage/cli": "0.33.2-next.0",
|
|
89
|
+
"@backstage/config": "1.3.3",
|
|
90
90
|
"@types/lodash": "^4.14.151"
|
|
91
91
|
}
|
|
92
92
|
}
|