@backstage/plugin-scaffolder-backend 0.15.18 → 0.15.19
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/index.cjs.js +10 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -58
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { Writable } from 'stream';
|
|
|
6
6
|
import * as _backstage_types from '@backstage/types';
|
|
7
7
|
import { JsonValue, JsonObject } from '@backstage/types';
|
|
8
8
|
import { Schema } from 'jsonschema';
|
|
9
|
+
import { TaskSpec, TemplateMetadata } from '@backstage/plugin-scaffolder-common';
|
|
10
|
+
export { TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TemplateMetadata } from '@backstage/plugin-scaffolder-common';
|
|
9
11
|
import { UrlReader, ContainerRunner, PluginDatabaseManager } from '@backstage/backend-common';
|
|
10
12
|
import { Config } from '@backstage/config';
|
|
11
13
|
import { createPullRequest } from 'octokit-plugin-create-pull-request';
|
|
@@ -202,63 +204,6 @@ declare type SerializedTaskEvent = {
|
|
|
202
204
|
type: TaskEventType;
|
|
203
205
|
createdAt: string;
|
|
204
206
|
};
|
|
205
|
-
/**
|
|
206
|
-
* TemplateMetadata
|
|
207
|
-
*
|
|
208
|
-
* @public
|
|
209
|
-
*/
|
|
210
|
-
declare type TemplateMetadata = {
|
|
211
|
-
name: string;
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* TaskSpecV1beta2
|
|
215
|
-
*
|
|
216
|
-
* @public
|
|
217
|
-
*/
|
|
218
|
-
interface TaskSpecV1beta2 {
|
|
219
|
-
apiVersion: 'backstage.io/v1beta2';
|
|
220
|
-
baseUrl?: string;
|
|
221
|
-
values: JsonObject;
|
|
222
|
-
steps: Array<{
|
|
223
|
-
id: string;
|
|
224
|
-
name: string;
|
|
225
|
-
action: string;
|
|
226
|
-
input?: JsonObject;
|
|
227
|
-
if?: string | boolean;
|
|
228
|
-
}>;
|
|
229
|
-
output: {
|
|
230
|
-
[name: string]: string;
|
|
231
|
-
};
|
|
232
|
-
metadata?: TemplateMetadata;
|
|
233
|
-
}
|
|
234
|
-
interface TaskStep {
|
|
235
|
-
id: string;
|
|
236
|
-
name: string;
|
|
237
|
-
action: string;
|
|
238
|
-
input?: JsonObject;
|
|
239
|
-
if?: string | boolean;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* TaskSpecV1beta3
|
|
243
|
-
*
|
|
244
|
-
* @public
|
|
245
|
-
*/
|
|
246
|
-
interface TaskSpecV1beta3 {
|
|
247
|
-
apiVersion: 'scaffolder.backstage.io/v1beta3';
|
|
248
|
-
baseUrl?: string;
|
|
249
|
-
parameters: JsonObject;
|
|
250
|
-
steps: TaskStep[];
|
|
251
|
-
output: {
|
|
252
|
-
[name: string]: JsonValue;
|
|
253
|
-
};
|
|
254
|
-
metadata?: TemplateMetadata;
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* TaskSpec
|
|
258
|
-
*
|
|
259
|
-
* @public
|
|
260
|
-
*/
|
|
261
|
-
declare type TaskSpec = TaskSpecV1beta2 | TaskSpecV1beta3;
|
|
262
207
|
/**
|
|
263
208
|
* TaskSecrets
|
|
264
209
|
*
|
|
@@ -542,4 +487,4 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
|
|
542
487
|
postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
|
|
543
488
|
}
|
|
544
489
|
|
|
545
|
-
export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets,
|
|
490
|
+
export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, fetchContents, runCommand };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend",
|
|
3
3
|
"description": "The Backstage backend plugin that helps you create new things",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.19",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@backstage/backend-common": "^0.10.
|
|
34
|
+
"@backstage/backend-common": "^0.10.1",
|
|
35
35
|
"@backstage/catalog-client": "^0.5.3",
|
|
36
36
|
"@backstage/catalog-model": "^0.9.8",
|
|
37
37
|
"@backstage/config": "^0.1.11",
|
|
38
38
|
"@backstage/errors": "^0.1.5",
|
|
39
|
-
"@backstage/integration": "^0.
|
|
40
|
-
"@backstage/plugin-catalog-backend": "^0.19.
|
|
41
|
-
"@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.
|
|
42
|
-
"@backstage/plugin-scaffolder-common": "^0.1.
|
|
39
|
+
"@backstage/integration": "^0.7.0",
|
|
40
|
+
"@backstage/plugin-catalog-backend": "^0.19.4",
|
|
41
|
+
"@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.7",
|
|
42
|
+
"@backstage/plugin-scaffolder-common": "^0.1.2",
|
|
43
43
|
"@backstage/types": "^0.1.1",
|
|
44
44
|
"@gitbeaker/core": "^34.6.0",
|
|
45
45
|
"@gitbeaker/node": "^34.6.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"yaml": "^1.10.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@backstage/cli": "^0.10.
|
|
77
|
-
"@backstage/test-utils": "^0.2.
|
|
76
|
+
"@backstage/cli": "^0.10.4",
|
|
77
|
+
"@backstage/test-utils": "^0.2.1",
|
|
78
78
|
"@types/command-exists": "^1.2.0",
|
|
79
79
|
"@types/fs-extra": "^9.0.1",
|
|
80
80
|
"@types/git-url-parse": "^9.0.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"assets"
|
|
96
96
|
],
|
|
97
97
|
"configSchema": "config.d.ts",
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "4b2a8ed96ff427735c872a72c1864321ef698436"
|
|
99
99
|
}
|