@backstage/plugin-scaffolder-node 0.4.11-next.2 → 0.5.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 +31 -0
- package/alpha/package.json +1 -1
- package/dist/index.d.ts +23 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-node
|
|
2
2
|
|
|
3
|
+
## 0.5.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3ec4e6d: Added pagination support for listing of tasks and the ability to filter on several users and task statuses.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 094eaa3: Remove references to in-repo backend-common
|
|
12
|
+
- 11e0752: Make it possible to manually retry the scaffolder template from the step it failed
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @backstage/backend-plugin-api@1.0.1-next.0
|
|
15
|
+
- @backstage/catalog-model@1.7.0
|
|
16
|
+
- @backstage/errors@1.2.4
|
|
17
|
+
- @backstage/integration@1.15.0
|
|
18
|
+
- @backstage/types@1.1.1
|
|
19
|
+
- @backstage/plugin-scaffolder-common@1.5.6
|
|
20
|
+
|
|
21
|
+
## 0.4.11
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
- @backstage/backend-common@0.25.0
|
|
27
|
+
- @backstage/backend-plugin-api@1.0.0
|
|
28
|
+
- @backstage/catalog-model@1.7.0
|
|
29
|
+
- @backstage/integration@1.15.0
|
|
30
|
+
- @backstage/errors@1.2.4
|
|
31
|
+
- @backstage/types@1.1.1
|
|
32
|
+
- @backstage/plugin-scaffolder-common@1.5.6
|
|
33
|
+
|
|
3
34
|
## 0.4.11-next.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ type TaskEventType = 'completion' | 'log' | 'cancelled' | 'recovered';
|
|
|
58
58
|
*/
|
|
59
59
|
type SerializedTaskEvent = {
|
|
60
60
|
id: number;
|
|
61
|
+
isTaskRecoverable?: boolean;
|
|
61
62
|
taskId: string;
|
|
62
63
|
body: JsonObject;
|
|
63
64
|
type: TaskEventType;
|
|
@@ -126,6 +127,7 @@ interface TaskContext {
|
|
|
126
127
|
*/
|
|
127
128
|
interface TaskBroker {
|
|
128
129
|
cancel?(taskId: string): Promise<void>;
|
|
130
|
+
retry?(taskId: string): Promise<void>;
|
|
129
131
|
claim(): Promise<TaskContext>;
|
|
130
132
|
recoverTasks?(): Promise<void>;
|
|
131
133
|
dispatch(options: TaskBrokerDispatchOptions): Promise<TaskBrokerDispatchResult>;
|
|
@@ -140,10 +142,31 @@ interface TaskBroker {
|
|
|
140
142
|
}>;
|
|
141
143
|
get(taskId: string): Promise<SerializedTask>;
|
|
142
144
|
list?(options?: {
|
|
145
|
+
filters?: {
|
|
146
|
+
createdBy?: string | string[];
|
|
147
|
+
status?: TaskStatus | TaskStatus[];
|
|
148
|
+
};
|
|
149
|
+
pagination?: {
|
|
150
|
+
limit?: number;
|
|
151
|
+
offset?: number;
|
|
152
|
+
};
|
|
153
|
+
order?: {
|
|
154
|
+
order: 'asc' | 'desc';
|
|
155
|
+
field: string;
|
|
156
|
+
}[];
|
|
157
|
+
}): Promise<{
|
|
158
|
+
tasks: SerializedTask[];
|
|
159
|
+
totalTasks?: number;
|
|
160
|
+
}>;
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Make sure to pass `createdBy` and `status` in the `filters` parameter instead
|
|
163
|
+
*/
|
|
164
|
+
list?(options: {
|
|
143
165
|
createdBy?: string;
|
|
144
166
|
status?: TaskStatus;
|
|
145
167
|
}): Promise<{
|
|
146
168
|
tasks: SerializedTask[];
|
|
169
|
+
totalTasks?: number;
|
|
147
170
|
}>;
|
|
148
171
|
}
|
|
149
172
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0-next.0",
|
|
4
4
|
"description": "The plugin-scaffolder-node module for @backstage/plugin-scaffolder-backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"test": "backstage-cli package test"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@backstage/backend-common": "^0.25.0
|
|
57
|
-
"@backstage/backend-plugin-api": "^1.0.
|
|
58
|
-
"@backstage/catalog-model": "^1.
|
|
56
|
+
"@backstage/backend-common": "^0.25.0",
|
|
57
|
+
"@backstage/backend-plugin-api": "^1.0.1-next.0",
|
|
58
|
+
"@backstage/catalog-model": "^1.7.0",
|
|
59
59
|
"@backstage/errors": "^1.2.4",
|
|
60
|
-
"@backstage/integration": "^1.15.0
|
|
61
|
-
"@backstage/plugin-scaffolder-common": "^1.5.
|
|
60
|
+
"@backstage/integration": "^1.15.0",
|
|
61
|
+
"@backstage/plugin-scaffolder-common": "^1.5.6",
|
|
62
62
|
"@backstage/types": "^1.1.1",
|
|
63
63
|
"concat-stream": "^2.0.0",
|
|
64
64
|
"fs-extra": "^11.2.0",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"zod-to-json-schema": "^3.20.4"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@backstage/backend-test-utils": "^1.0.
|
|
76
|
-
"@backstage/cli": "^0.
|
|
75
|
+
"@backstage/backend-test-utils": "^1.0.1-next.0",
|
|
76
|
+
"@backstage/cli": "^0.28.0-next.0",
|
|
77
77
|
"@backstage/config": "^1.2.0"
|
|
78
78
|
}
|
|
79
79
|
}
|