@backstage/plugin-scaffolder-backend 0.15.7 → 0.15.11
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 +46 -0
- package/dist/index.cjs.js +360 -75
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +14 -5
- package/package.json +15 -12
package/dist/index.d.ts
CHANGED
|
@@ -3,15 +3,17 @@ import { ScmIntegrations, ScmIntegrationRegistry } from '@backstage/integration'
|
|
|
3
3
|
import { CatalogApi } from '@backstage/catalog-client';
|
|
4
4
|
import { Logger } from 'winston';
|
|
5
5
|
import { Writable } from 'stream';
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
6
|
+
import * as _backstage_types from '@backstage/types';
|
|
7
|
+
import { JsonValue, JsonObject } from '@backstage/types';
|
|
8
8
|
import { Schema } from 'jsonschema';
|
|
9
9
|
import { UrlReader, ContainerRunner, PluginDatabaseManager } from '@backstage/backend-common';
|
|
10
|
+
import { Config } from '@backstage/config';
|
|
10
11
|
import { createPullRequest } from 'octokit-plugin-create-pull-request';
|
|
11
12
|
import { Octokit } from '@octokit/rest';
|
|
12
13
|
export { createFetchCookiecutterAction } from '@backstage/plugin-scaffolder-backend-module-cookiecutter';
|
|
13
14
|
import express from 'express';
|
|
14
|
-
import { TemplateEntityV1beta2 } from '@backstage/catalog-model';
|
|
15
|
+
import { TemplateEntityV1beta2, Entity, LocationSpec } from '@backstage/catalog-model';
|
|
16
|
+
import { CatalogProcessor, CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
|
|
15
17
|
|
|
16
18
|
declare function createCatalogRegisterAction(options: {
|
|
17
19
|
catalogClient: CatalogApi;
|
|
@@ -185,7 +187,7 @@ declare class TemplateActionRegistry {
|
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
declare const createTemplateAction: <Input extends Partial<{
|
|
188
|
-
[name: string]:
|
|
190
|
+
[name: string]: _backstage_types.JsonValue | Partial<_backstage_types.JsonObject> | undefined;
|
|
189
191
|
}>>(templateAction: TemplateAction<Input>) => TemplateAction<any>;
|
|
190
192
|
|
|
191
193
|
interface RouterOptions {
|
|
@@ -216,4 +218,11 @@ declare class CatalogEntityClient {
|
|
|
216
218
|
}): Promise<TemplateEntityV1beta2>;
|
|
217
219
|
}
|
|
218
220
|
|
|
219
|
-
|
|
221
|
+
/** @public */
|
|
222
|
+
declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
|
223
|
+
private readonly validators;
|
|
224
|
+
validateEntityKind(entity: Entity): Promise<boolean>;
|
|
225
|
+
postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export { ActionContext, CatalogEntityClient, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, TemplateAction, TemplateActionRegistry, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, 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.11",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,13 +30,16 @@
|
|
|
30
30
|
"clean": "backstage-cli clean"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@backstage/backend-common": "^0.9.
|
|
33
|
+
"@backstage/backend-common": "^0.9.8",
|
|
34
34
|
"@backstage/catalog-client": "^0.5.0",
|
|
35
|
-
"@backstage/catalog-model": "^0.9.
|
|
36
|
-
"@backstage/config": "^0.1.
|
|
37
|
-
"@backstage/errors": "^0.1.
|
|
38
|
-
"@backstage/integration": "^0.6.
|
|
39
|
-
"@backstage/plugin-
|
|
35
|
+
"@backstage/catalog-model": "^0.9.6",
|
|
36
|
+
"@backstage/config": "^0.1.11",
|
|
37
|
+
"@backstage/errors": "^0.1.4",
|
|
38
|
+
"@backstage/integration": "^0.6.9",
|
|
39
|
+
"@backstage/plugin-catalog-backend": "^0.17.2",
|
|
40
|
+
"@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.3",
|
|
41
|
+
"@backstage/plugin-scaffolder-common": "^0.1.1",
|
|
42
|
+
"@backstage/types": "^0.1.1",
|
|
40
43
|
"@gitbeaker/core": "^30.2.0",
|
|
41
44
|
"@gitbeaker/node": "^30.2.0",
|
|
42
45
|
"@octokit/rest": "^18.5.3",
|
|
@@ -62,14 +65,14 @@
|
|
|
62
65
|
"luxon": "^2.0.2",
|
|
63
66
|
"morgan": "^1.10.0",
|
|
64
67
|
"nunjucks": "^3.2.3",
|
|
65
|
-
"octokit-plugin-create-pull-request": "^3.
|
|
68
|
+
"octokit-plugin-create-pull-request": "^3.10.0",
|
|
66
69
|
"uuid": "^8.2.0",
|
|
67
70
|
"winston": "^3.2.1",
|
|
68
71
|
"yaml": "^1.10.0"
|
|
69
72
|
},
|
|
70
73
|
"devDependencies": {
|
|
71
|
-
"@backstage/cli": "^0.
|
|
72
|
-
"@backstage/test-utils": "^0.1.
|
|
74
|
+
"@backstage/cli": "^0.8.1",
|
|
75
|
+
"@backstage/test-utils": "^0.1.20",
|
|
73
76
|
"@types/command-exists": "^1.2.0",
|
|
74
77
|
"@types/fs-extra": "^9.0.1",
|
|
75
78
|
"@types/git-url-parse": "^9.0.0",
|
|
@@ -78,7 +81,7 @@
|
|
|
78
81
|
"@types/supertest": "^2.0.8",
|
|
79
82
|
"jest-when": "^3.1.0",
|
|
80
83
|
"mock-fs": "^5.1.0",
|
|
81
|
-
"msw": "^0.
|
|
84
|
+
"msw": "^0.35.0",
|
|
82
85
|
"supertest": "^6.1.3",
|
|
83
86
|
"yaml": "^1.10.0"
|
|
84
87
|
},
|
|
@@ -88,5 +91,5 @@
|
|
|
88
91
|
"config.d.ts"
|
|
89
92
|
],
|
|
90
93
|
"configSchema": "config.d.ts",
|
|
91
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "3db0cb3683d3000666802af90a465ba4fb0d1e8d"
|
|
92
95
|
}
|