@backstage/plugin-scaffolder-backend 1.16.6-next.2 → 1.17.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 +103 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +13 -30
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +4 -11
- package/dist/cjs/{ScaffolderEntitiesProcessor-519a7b88.cjs.js → router-129b368d.cjs.js} +30 -91
- package/dist/cjs/router-129b368d.cjs.js.map +1 -0
- package/dist/index.cjs.js +38 -37
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -11
- package/package.json +21 -20
- package/dist/cjs/ScaffolderEntitiesProcessor-519a7b88.cjs.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var router = require('./cjs/router-129b368d.cjs.js');
|
|
6
6
|
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
|
|
7
|
+
var pluginCatalogBackendModuleScaffolderEntityModel = require('@backstage/plugin-catalog-backend-module-scaffolder-entity-model');
|
|
7
8
|
require('@backstage/catalog-model');
|
|
8
9
|
require('@backstage/errors');
|
|
9
10
|
require('@backstage/integration');
|
|
@@ -44,47 +45,47 @@ require('prom-client');
|
|
|
44
45
|
require('@backstage/plugin-permission-common');
|
|
45
46
|
require('url');
|
|
46
47
|
require('os');
|
|
47
|
-
require('@backstage/plugin-catalog-node');
|
|
48
48
|
|
|
49
49
|
const createTemplateAction = pluginScaffolderNode.createTemplateAction;
|
|
50
50
|
const executeShellCommand = pluginScaffolderNode.executeShellCommand;
|
|
51
51
|
const fetchContents = pluginScaffolderNode.fetchContents;
|
|
52
|
+
const ScaffolderEntitiesProcessor = pluginCatalogBackendModuleScaffolderEntityModel.ScaffolderEntitiesProcessor;
|
|
52
53
|
|
|
53
|
-
exports.DatabaseTaskStore =
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
54
|
+
exports.DatabaseTaskStore = router.DatabaseTaskStore;
|
|
55
|
+
exports.TaskManager = router.TaskManager;
|
|
56
|
+
exports.TaskWorker = router.TaskWorker;
|
|
57
|
+
exports.TemplateActionRegistry = router.TemplateActionRegistry;
|
|
58
|
+
exports.createBuiltinActions = router.createBuiltinActions;
|
|
59
|
+
exports.createCatalogRegisterAction = router.createCatalogRegisterAction;
|
|
60
|
+
exports.createCatalogWriteAction = router.createCatalogWriteAction;
|
|
61
|
+
exports.createDebugLogAction = router.createDebugLogAction;
|
|
62
|
+
exports.createFetchCatalogEntityAction = router.createFetchCatalogEntityAction;
|
|
63
|
+
exports.createFetchPlainAction = router.createFetchPlainAction;
|
|
64
|
+
exports.createFetchPlainFileAction = router.createFetchPlainFileAction;
|
|
65
|
+
exports.createFetchTemplateAction = router.createFetchTemplateAction;
|
|
66
|
+
exports.createFilesystemDeleteAction = router.createFilesystemDeleteAction;
|
|
67
|
+
exports.createFilesystemRenameAction = router.createFilesystemRenameAction;
|
|
68
|
+
exports.createGithubActionsDispatchAction = router.createGithubActionsDispatchAction;
|
|
69
|
+
exports.createGithubDeployKeyAction = router.createGithubDeployKeyAction;
|
|
70
|
+
exports.createGithubEnvironmentAction = router.createGithubEnvironmentAction;
|
|
71
|
+
exports.createGithubIssuesLabelAction = router.createGithubIssuesLabelAction;
|
|
72
|
+
exports.createGithubRepoCreateAction = router.createGithubRepoCreateAction;
|
|
73
|
+
exports.createGithubRepoPushAction = router.createGithubRepoPushAction;
|
|
74
|
+
exports.createGithubWebhookAction = router.createGithubWebhookAction;
|
|
75
|
+
exports.createPublishAzureAction = router.createPublishAzureAction;
|
|
76
|
+
exports.createPublishBitbucketAction = router.createPublishBitbucketAction;
|
|
77
|
+
exports.createPublishBitbucketCloudAction = router.createPublishBitbucketCloudAction;
|
|
78
|
+
exports.createPublishBitbucketServerAction = router.createPublishBitbucketServerAction;
|
|
79
|
+
exports.createPublishBitbucketServerPullRequestAction = router.createPublishBitbucketServerPullRequestAction;
|
|
80
|
+
exports.createPublishGerritAction = router.createPublishGerritAction;
|
|
81
|
+
exports.createPublishGerritReviewAction = router.createPublishGerritReviewAction;
|
|
82
|
+
exports.createPublishGithubAction = router.createPublishGithubAction;
|
|
83
|
+
exports.createPublishGithubPullRequestAction = router.createPublishGithubPullRequestAction;
|
|
84
|
+
exports.createPublishGitlabAction = router.createPublishGitlabAction;
|
|
85
|
+
exports.createPublishGitlabMergeRequestAction = router.createPublishGitlabMergeRequestAction;
|
|
86
|
+
exports.createRouter = router.createRouter;
|
|
87
|
+
exports.createWaitAction = router.createWaitAction;
|
|
88
|
+
exports.ScaffolderEntitiesProcessor = ScaffolderEntitiesProcessor;
|
|
88
89
|
exports.createTemplateAction = createTemplateAction;
|
|
89
90
|
exports.executeShellCommand = executeShellCommand;
|
|
90
91
|
exports.fetchContents = fetchContents;
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\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 {\n ActionContext as ActionContextNode,\n createTemplateAction as createTemplateActionNode,\n TaskSecrets as TaskSecretsNode,\n TemplateAction as TemplateActionNode,\n executeShellCommand as executeShellCommandNode,\n ExecuteShellCommandOptions as ExecuteShellCommandOptionsNode,\n fetchContents as fetchContentsNode,\n} from '@backstage/plugin-scaffolder-node';\nimport { JsonObject } from '@backstage/types';\n\n/**\n * @public\n * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead\n */\nexport type ActionContext<TInput extends JsonObject> =\n ActionContextNode<TInput>;\n\n/**\n * @public\n * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const createTemplateAction = createTemplateActionNode;\n\n/**\n * @public\n * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TaskSecrets = TaskSecretsNode;\n\n/**\n * @public\n * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TemplateAction<TInput extends JsonObject> =\n TemplateActionNode<TInput>;\n\n/**\n * Options for {@link executeShellCommand}.\n *\n * @public\n * @deprecated Use `ExecuteShellCommandOptions` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type RunCommandOptions = ExecuteShellCommandOptionsNode;\n\n/**\n * Run a command in a sub-process, normally a shell command.\n *\n * @public\n * @deprecated Use `executeShellCommand` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const executeShellCommand = executeShellCommandNode;\n\n/**\n * A helper function that reads the contents of a directory from the given URL.\n * Can be used in your own actions, and also used behind fetch:template and fetch:plain\n *\n * @public\n * @deprecated Use `fetchContents` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const fetchContents = fetchContentsNode;\n"],"names":["createTemplateActionNode","executeShellCommandNode","fetchContentsNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\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 {\n ActionContext as ActionContextNode,\n createTemplateAction as createTemplateActionNode,\n TaskSecrets as TaskSecretsNode,\n TemplateAction as TemplateActionNode,\n executeShellCommand as executeShellCommandNode,\n ExecuteShellCommandOptions as ExecuteShellCommandOptionsNode,\n fetchContents as fetchContentsNode,\n} from '@backstage/plugin-scaffolder-node';\nimport { JsonObject } from '@backstage/types';\nimport { ScaffolderEntitiesProcessor as ScaffolderEntitiesProcessorModule } from '@backstage/plugin-catalog-backend-module-scaffolder-entity-model';\n\n/**\n * @public\n * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead\n */\nexport type ActionContext<TInput extends JsonObject> =\n ActionContextNode<TInput>;\n\n/**\n * @public\n * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const createTemplateAction = createTemplateActionNode;\n\n/**\n * @public\n * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TaskSecrets = TaskSecretsNode;\n\n/**\n * @public\n * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type TemplateAction<TInput extends JsonObject> =\n TemplateActionNode<TInput>;\n\n/**\n * Options for {@link executeShellCommand}.\n *\n * @public\n * @deprecated Use `ExecuteShellCommandOptions` from `@backstage/plugin-scaffolder-node` instead\n */\nexport type RunCommandOptions = ExecuteShellCommandOptionsNode;\n\n/**\n * Run a command in a sub-process, normally a shell command.\n *\n * @public\n * @deprecated Use `executeShellCommand` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const executeShellCommand = executeShellCommandNode;\n\n/**\n * A helper function that reads the contents of a directory from the given URL.\n * Can be used in your own actions, and also used behind fetch:template and fetch:plain\n *\n * @public\n * @deprecated Use `fetchContents` from `@backstage/plugin-scaffolder-node` instead\n */\nexport const fetchContents = fetchContentsNode;\n\n/**\n * Adds support for scaffolder specific entity kinds to the catalog.\n *\n * @public\n * @deprecated Import from `@backstage/plugin-catalog-backend-module-scaffolder-entity-model` instead\n */\nexport const ScaffolderEntitiesProcessor = ScaffolderEntitiesProcessorModule;\n"],"names":["createTemplateActionNode","executeShellCommandNode","fetchContentsNode","ScaffolderEntitiesProcessorModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCO,MAAM,oBAAuB,GAAAA,0CAAA;AA6B7B,MAAM,mBAAsB,GAAAC,yCAAA;AAS5B,MAAM,aAAgB,GAAAC,mCAAA;AAQtB,MAAM,2BAA8B,GAAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,11 +19,9 @@ import { RESOURCE_TYPE_SCAFFOLDER_TEMPLATE, RESOURCE_TYPE_SCAFFOLDER_ACTION } fr
|
|
|
19
19
|
import express from 'express';
|
|
20
20
|
import { IdentityApi } from '@backstage/plugin-auth-node';
|
|
21
21
|
import { PermissionRule } from '@backstage/plugin-permission-node';
|
|
22
|
-
import { Entity } from '@backstage/catalog-model';
|
|
23
|
-
import { CatalogProcessor, CatalogProcessorEmit } from '@backstage/plugin-catalog-node';
|
|
24
|
-
import { LocationSpec } from '@backstage/plugin-catalog-common';
|
|
25
22
|
import * as jsonschema from 'jsonschema';
|
|
26
23
|
import * as zod from 'zod';
|
|
24
|
+
import { ScaffolderEntitiesProcessor as ScaffolderEntitiesProcessor$1 } from '@backstage/plugin-catalog-backend-module-scaffolder-entity-model';
|
|
27
25
|
|
|
28
26
|
/**
|
|
29
27
|
* Registers entities from a catalog descriptor file in the workspace into the software catalog.
|
|
@@ -1057,14 +1055,6 @@ interface RouterOptions {
|
|
|
1057
1055
|
*/
|
|
1058
1056
|
declare function createRouter(options: RouterOptions): Promise<express.Router>;
|
|
1059
1057
|
|
|
1060
|
-
/** @public */
|
|
1061
|
-
declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
|
1062
|
-
getProcessorName(): string;
|
|
1063
|
-
private readonly validators;
|
|
1064
|
-
validateEntityKind(entity: Entity): Promise<boolean>;
|
|
1065
|
-
postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
1058
|
/**
|
|
1069
1059
|
* @public
|
|
1070
1060
|
* @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead
|
|
@@ -1107,5 +1097,12 @@ declare const executeShellCommand: typeof executeShellCommand$1;
|
|
|
1107
1097
|
* @deprecated Use `fetchContents` from `@backstage/plugin-scaffolder-node` instead
|
|
1108
1098
|
*/
|
|
1109
1099
|
declare const fetchContents: typeof fetchContents$1;
|
|
1100
|
+
/**
|
|
1101
|
+
* Adds support for scaffolder specific entity kinds to the catalog.
|
|
1102
|
+
*
|
|
1103
|
+
* @public
|
|
1104
|
+
* @deprecated Import from `@backstage/plugin-catalog-backend-module-scaffolder-entity-model` instead
|
|
1105
|
+
*/
|
|
1106
|
+
declare const ScaffolderEntitiesProcessor: typeof ScaffolderEntitiesProcessor$1;
|
|
1110
1107
|
|
|
1111
1108
|
export { ActionContext, ActionPermissionRuleInput, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskStoreShutDownTaskOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, TemplateGlobal, TemplatePermissionRuleInput, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchCatalogEntityAction, createFetchPlainAction, createFetchPlainFileAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubDeployKeyAction, createGithubEnvironmentAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishBitbucketServerPullRequestAction, createPublishGerritAction, createPublishGerritReviewAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, createWaitAction, executeShellCommand, fetchContents };
|
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": "1.
|
|
4
|
+
"version": "1.17.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -44,23 +44,24 @@
|
|
|
44
44
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@backstage/backend-common": "^0.19.5
|
|
48
|
-
"@backstage/backend-plugin-api": "^0.6.3
|
|
49
|
-
"@backstage/backend-tasks": "^0.5.8
|
|
50
|
-
"@backstage/catalog-client": "^1.4.4
|
|
51
|
-
"@backstage/catalog-model": "^1.4.2
|
|
52
|
-
"@backstage/config": "^1.1.0
|
|
53
|
-
"@backstage/errors": "^1.2.
|
|
54
|
-
"@backstage/integration": "^1.7.0
|
|
55
|
-
"@backstage/plugin-auth-node": "^0.3.0
|
|
56
|
-
"@backstage/plugin-catalog-backend": "^1.13.0
|
|
57
|
-
"@backstage/plugin-catalog-
|
|
58
|
-
"@backstage/plugin-catalog-
|
|
59
|
-
"@backstage/plugin-
|
|
60
|
-
"@backstage/plugin-permission-
|
|
61
|
-
"@backstage/plugin-
|
|
62
|
-
"@backstage/plugin-scaffolder-
|
|
63
|
-
"@backstage/
|
|
47
|
+
"@backstage/backend-common": "^0.19.5",
|
|
48
|
+
"@backstage/backend-plugin-api": "^0.6.3",
|
|
49
|
+
"@backstage/backend-tasks": "^0.5.8",
|
|
50
|
+
"@backstage/catalog-client": "^1.4.4",
|
|
51
|
+
"@backstage/catalog-model": "^1.4.2",
|
|
52
|
+
"@backstage/config": "^1.1.0",
|
|
53
|
+
"@backstage/errors": "^1.2.2",
|
|
54
|
+
"@backstage/integration": "^1.7.0",
|
|
55
|
+
"@backstage/plugin-auth-node": "^0.3.0",
|
|
56
|
+
"@backstage/plugin-catalog-backend": "^1.13.0",
|
|
57
|
+
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.0",
|
|
58
|
+
"@backstage/plugin-catalog-common": "^1.0.16",
|
|
59
|
+
"@backstage/plugin-catalog-node": "^1.4.4",
|
|
60
|
+
"@backstage/plugin-permission-common": "^0.7.8",
|
|
61
|
+
"@backstage/plugin-permission-node": "^0.7.14",
|
|
62
|
+
"@backstage/plugin-scaffolder-common": "^1.4.1",
|
|
63
|
+
"@backstage/plugin-scaffolder-node": "^0.2.3",
|
|
64
|
+
"@backstage/types": "^1.1.1",
|
|
64
65
|
"@gitbeaker/core": "^35.6.0",
|
|
65
66
|
"@gitbeaker/node": "^35.1.0",
|
|
66
67
|
"@octokit/webhooks": "^10.0.0",
|
|
@@ -98,8 +99,8 @@
|
|
|
98
99
|
"zod": "^3.21.4"
|
|
99
100
|
},
|
|
100
101
|
"devDependencies": {
|
|
101
|
-
"@backstage/backend-test-utils": "^0.2.3
|
|
102
|
-
"@backstage/cli": "^0.22.13
|
|
102
|
+
"@backstage/backend-test-utils": "^0.2.3",
|
|
103
|
+
"@backstage/cli": "^0.22.13",
|
|
103
104
|
"@types/command-exists": "^1.2.0",
|
|
104
105
|
"@types/fs-extra": "^9.0.1",
|
|
105
106
|
"@types/git-url-parse": "^9.0.0",
|