@backstage/plugin-scaffolder-backend 1.33.1-next.0 → 2.0.0-next.1
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 +88 -0
- package/dist/ScaffolderPlugin.cjs.js +0 -3
- package/dist/ScaffolderPlugin.cjs.js.map +1 -1
- package/dist/alpha.cjs.js +5 -9
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +1 -5
- package/dist/index.cjs.js +0 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +45 -361
- package/dist/lib/templating/SecureTemplater.cjs.js.map +1 -1
- package/dist/scaffolder/actions/TemplateActionRegistry.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/fetch/template.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/fetch/templateActionHandler.cjs.js +4 -19
- package/dist/scaffolder/actions/builtin/fetch/templateActionHandler.cjs.js.map +1 -1
- package/dist/scaffolder/tasks/DatabaseTaskStore.cjs.js.map +1 -1
- package/dist/scaffolder/tasks/StorageTaskBroker.cjs.js.map +1 -1
- package/dist/scaffolder/tasks/TaskWorker.cjs.js.map +1 -1
- package/dist/service/{conditionExports.cjs.js → alpha.cjs.js} +1 -1
- package/dist/service/alpha.cjs.js.map +1 -0
- package/dist/service/permissions.cjs.js +14 -0
- package/dist/service/permissions.cjs.js.map +1 -0
- package/dist/service/router.cjs.js +30 -95
- package/dist/service/router.cjs.js.map +1 -1
- package/package.json +25 -27
- package/dist/deprecated.cjs.js +0 -15
- package/dist/deprecated.cjs.js.map +0 -1
- package/dist/scaffolder/actions/deprecated.cjs.js +0 -48
- package/dist/scaffolder/actions/deprecated.cjs.js.map +0 -1
- package/dist/service/conditionExports.cjs.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-scaffolder-backend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.1",
|
|
4
4
|
"description": "The Backstage backend plugin that helps you create new things",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
"@backstage/plugin-scaffolder-react"
|
|
15
15
|
],
|
|
16
16
|
"features": {
|
|
17
|
-
".": "@backstage/BackendFeature"
|
|
18
|
-
"./alpha": "@backstage/BackendFeature"
|
|
17
|
+
".": "@backstage/BackendFeature"
|
|
19
18
|
}
|
|
20
19
|
},
|
|
21
20
|
"publishConfig": {
|
|
@@ -39,7 +38,6 @@
|
|
|
39
38
|
"default": "./dist/index.cjs.js"
|
|
40
39
|
},
|
|
41
40
|
"./alpha": {
|
|
42
|
-
"backstage": "@backstage/BackendFeature",
|
|
43
41
|
"require": "./dist/alpha.cjs.js",
|
|
44
42
|
"types": "./dist/alpha.d.ts",
|
|
45
43
|
"default": "./dist/alpha.cjs.js"
|
|
@@ -76,33 +74,32 @@
|
|
|
76
74
|
},
|
|
77
75
|
"dependencies": {
|
|
78
76
|
"@backstage/backend-common": "^0.25.0",
|
|
79
|
-
"@backstage/backend-defaults": "0.10.1-next.
|
|
80
|
-
"@backstage/backend-plugin-api": "1.4.0-next.
|
|
81
|
-
"@backstage/catalog-client": "1.10.0",
|
|
77
|
+
"@backstage/backend-defaults": "0.10.1-next.1",
|
|
78
|
+
"@backstage/backend-plugin-api": "1.4.0-next.1",
|
|
79
|
+
"@backstage/catalog-client": "1.10.1-next.0",
|
|
82
80
|
"@backstage/catalog-model": "1.7.4",
|
|
83
81
|
"@backstage/config": "1.3.2",
|
|
84
82
|
"@backstage/errors": "1.2.7",
|
|
85
83
|
"@backstage/integration": "1.17.0",
|
|
86
|
-
"@backstage/plugin-auth-node": "0.6.4-next.
|
|
84
|
+
"@backstage/plugin-auth-node": "0.6.4-next.1",
|
|
87
85
|
"@backstage/plugin-bitbucket-cloud-common": "0.3.0",
|
|
88
|
-
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "0.2.9-next.
|
|
89
|
-
"@backstage/plugin-catalog-node": "1.17.1-next.
|
|
90
|
-
"@backstage/plugin-events-node": "0.4.12-next.
|
|
86
|
+
"@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "0.2.9-next.1",
|
|
87
|
+
"@backstage/plugin-catalog-node": "1.17.1-next.1",
|
|
88
|
+
"@backstage/plugin-events-node": "0.4.12-next.1",
|
|
91
89
|
"@backstage/plugin-permission-common": "0.9.0",
|
|
92
|
-
"@backstage/plugin-permission-node": "0.10.1-next.
|
|
93
|
-
"@backstage/plugin-scaffolder-backend-module-azure": "0.2.10-next.
|
|
94
|
-
"@backstage/plugin-scaffolder-backend-module-bitbucket": "0.3.11-next.
|
|
95
|
-
"@backstage/plugin-scaffolder-backend-module-bitbucket-cloud": "0.2.10-next.
|
|
96
|
-
"@backstage/plugin-scaffolder-backend-module-bitbucket-server": "0.2.10-next.
|
|
97
|
-
"@backstage/plugin-scaffolder-backend-module-gerrit": "0.2.10-next.
|
|
98
|
-
"@backstage/plugin-scaffolder-backend-module-gitea": "0.2.10-next.
|
|
99
|
-
"@backstage/plugin-scaffolder-backend-module-github": "0.7.2-next.
|
|
100
|
-
"@backstage/plugin-scaffolder-backend-module-gitlab": "0.9.2-next.
|
|
90
|
+
"@backstage/plugin-permission-node": "0.10.1-next.1",
|
|
91
|
+
"@backstage/plugin-scaffolder-backend-module-azure": "0.2.10-next.1",
|
|
92
|
+
"@backstage/plugin-scaffolder-backend-module-bitbucket": "0.3.11-next.1",
|
|
93
|
+
"@backstage/plugin-scaffolder-backend-module-bitbucket-cloud": "0.2.10-next.1",
|
|
94
|
+
"@backstage/plugin-scaffolder-backend-module-bitbucket-server": "0.2.10-next.1",
|
|
95
|
+
"@backstage/plugin-scaffolder-backend-module-gerrit": "0.2.10-next.1",
|
|
96
|
+
"@backstage/plugin-scaffolder-backend-module-gitea": "0.2.10-next.1",
|
|
97
|
+
"@backstage/plugin-scaffolder-backend-module-github": "0.7.2-next.1",
|
|
98
|
+
"@backstage/plugin-scaffolder-backend-module-gitlab": "0.9.2-next.1",
|
|
101
99
|
"@backstage/plugin-scaffolder-common": "1.5.11",
|
|
102
|
-
"@backstage/plugin-scaffolder-node": "0.8.3-next.
|
|
100
|
+
"@backstage/plugin-scaffolder-node": "0.8.3-next.1",
|
|
103
101
|
"@backstage/types": "1.2.1",
|
|
104
102
|
"@opentelemetry/api": "^1.9.0",
|
|
105
|
-
"@types/express": "^4.17.6",
|
|
106
103
|
"@types/luxon": "^3.0.0",
|
|
107
104
|
"concat-stream": "^2.0.0",
|
|
108
105
|
"express": "^4.17.1",
|
|
@@ -131,11 +128,12 @@
|
|
|
131
128
|
"zod-to-json-schema": "^3.20.4"
|
|
132
129
|
},
|
|
133
130
|
"devDependencies": {
|
|
134
|
-
"@backstage/backend-app-api": "1.2.4-next.
|
|
135
|
-
"@backstage/backend-defaults": "0.10.1-next.
|
|
136
|
-
"@backstage/backend-test-utils": "1.6.0-next.
|
|
137
|
-
"@backstage/cli": "0.32.
|
|
138
|
-
"@backstage/plugin-scaffolder-node-test-utils": "0.2.3-next.
|
|
131
|
+
"@backstage/backend-app-api": "1.2.4-next.1",
|
|
132
|
+
"@backstage/backend-defaults": "0.10.1-next.1",
|
|
133
|
+
"@backstage/backend-test-utils": "1.6.0-next.1",
|
|
134
|
+
"@backstage/cli": "0.32.2-next.0",
|
|
135
|
+
"@backstage/plugin-scaffolder-node-test-utils": "0.2.3-next.1",
|
|
136
|
+
"@types/express": "^4.17.6",
|
|
139
137
|
"@types/fs-extra": "^11.0.0",
|
|
140
138
|
"@types/nunjucks": "^3.1.4",
|
|
141
139
|
"@types/supertest": "^2.0.8",
|
package/dist/deprecated.cjs.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
|
|
4
|
-
var pluginCatalogBackendModuleScaffolderEntityModel = require('@backstage/plugin-catalog-backend-module-scaffolder-entity-model');
|
|
5
|
-
|
|
6
|
-
const createTemplateAction = pluginScaffolderNode.createTemplateAction;
|
|
7
|
-
const executeShellCommand = pluginScaffolderNode.executeShellCommand;
|
|
8
|
-
const fetchContents = pluginScaffolderNode.fetchContents;
|
|
9
|
-
const ScaffolderEntitiesProcessor = pluginCatalogBackendModuleScaffolderEntityModel.ScaffolderEntitiesProcessor;
|
|
10
|
-
|
|
11
|
-
exports.ScaffolderEntitiesProcessor = ScaffolderEntitiesProcessor;
|
|
12
|
-
exports.createTemplateAction = createTemplateAction;
|
|
13
|
-
exports.executeShellCommand = executeShellCommand;
|
|
14
|
-
exports.fetchContents = fetchContents;
|
|
15
|
-
//# sourceMappingURL=deprecated.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.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;AA6B7B,MAAM,mBAAsB,GAAAC;AAS5B,MAAM,aAAgB,GAAAC;AAQtB,MAAM,2BAA8B,GAAAC;;;;;;;"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var pluginScaffolderBackendModuleGithub = require('@backstage/plugin-scaffolder-backend-module-github');
|
|
4
|
-
var pluginScaffolderBackendModuleGitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
|
|
5
|
-
var pluginScaffolderBackendModuleAzure = require('@backstage/plugin-scaffolder-backend-module-azure');
|
|
6
|
-
var pluginScaffolderBackendModuleBitbucket = require('@backstage/plugin-scaffolder-backend-module-bitbucket');
|
|
7
|
-
var pluginScaffolderBackendModuleBitbucketCloud = require('@backstage/plugin-scaffolder-backend-module-bitbucket-cloud');
|
|
8
|
-
var pluginScaffolderBackendModuleBitbucketServer = require('@backstage/plugin-scaffolder-backend-module-bitbucket-server');
|
|
9
|
-
var pluginScaffolderBackendModuleGerrit = require('@backstage/plugin-scaffolder-backend-module-gerrit');
|
|
10
|
-
|
|
11
|
-
const createGithubActionsDispatchAction = pluginScaffolderBackendModuleGithub.createGithubActionsDispatchAction;
|
|
12
|
-
const createGithubDeployKeyAction = pluginScaffolderBackendModuleGithub.createGithubDeployKeyAction;
|
|
13
|
-
const createGithubEnvironmentAction = pluginScaffolderBackendModuleGithub.createGithubEnvironmentAction;
|
|
14
|
-
const createGithubIssuesLabelAction = pluginScaffolderBackendModuleGithub.createGithubIssuesLabelAction;
|
|
15
|
-
const createGithubRepoCreateAction = pluginScaffolderBackendModuleGithub.createGithubRepoCreateAction;
|
|
16
|
-
const createGithubRepoPushAction = pluginScaffolderBackendModuleGithub.createGithubRepoPushAction;
|
|
17
|
-
const createGithubWebhookAction = pluginScaffolderBackendModuleGithub.createGithubWebhookAction;
|
|
18
|
-
const createPublishGithubAction = pluginScaffolderBackendModuleGithub.createPublishGithubAction;
|
|
19
|
-
const createPublishGithubPullRequestAction = pluginScaffolderBackendModuleGithub.createPublishGithubPullRequestAction;
|
|
20
|
-
const createPublishBitbucketAction = pluginScaffolderBackendModuleBitbucket.createPublishBitbucketAction;
|
|
21
|
-
const createPublishBitbucketCloudAction = pluginScaffolderBackendModuleBitbucketCloud.createPublishBitbucketCloudAction;
|
|
22
|
-
const createPublishBitbucketServerAction = pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerAction;
|
|
23
|
-
const createPublishBitbucketServerPullRequestAction = pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerPullRequestAction;
|
|
24
|
-
const createPublishAzureAction = pluginScaffolderBackendModuleAzure.createPublishAzureAction;
|
|
25
|
-
const createPublishGerritAction = pluginScaffolderBackendModuleGerrit.createPublishGerritAction;
|
|
26
|
-
const createPublishGerritReviewAction = pluginScaffolderBackendModuleGerrit.createPublishGerritReviewAction;
|
|
27
|
-
const createPublishGitlabAction = pluginScaffolderBackendModuleGitlab.createPublishGitlabAction;
|
|
28
|
-
const createPublishGitlabMergeRequestAction = pluginScaffolderBackendModuleGitlab.createPublishGitlabMergeRequestAction;
|
|
29
|
-
|
|
30
|
-
exports.createGithubActionsDispatchAction = createGithubActionsDispatchAction;
|
|
31
|
-
exports.createGithubDeployKeyAction = createGithubDeployKeyAction;
|
|
32
|
-
exports.createGithubEnvironmentAction = createGithubEnvironmentAction;
|
|
33
|
-
exports.createGithubIssuesLabelAction = createGithubIssuesLabelAction;
|
|
34
|
-
exports.createGithubRepoCreateAction = createGithubRepoCreateAction;
|
|
35
|
-
exports.createGithubRepoPushAction = createGithubRepoPushAction;
|
|
36
|
-
exports.createGithubWebhookAction = createGithubWebhookAction;
|
|
37
|
-
exports.createPublishAzureAction = createPublishAzureAction;
|
|
38
|
-
exports.createPublishBitbucketAction = createPublishBitbucketAction;
|
|
39
|
-
exports.createPublishBitbucketCloudAction = createPublishBitbucketCloudAction;
|
|
40
|
-
exports.createPublishBitbucketServerAction = createPublishBitbucketServerAction;
|
|
41
|
-
exports.createPublishBitbucketServerPullRequestAction = createPublishBitbucketServerPullRequestAction;
|
|
42
|
-
exports.createPublishGerritAction = createPublishGerritAction;
|
|
43
|
-
exports.createPublishGerritReviewAction = createPublishGerritReviewAction;
|
|
44
|
-
exports.createPublishGithubAction = createPublishGithubAction;
|
|
45
|
-
exports.createPublishGithubPullRequestAction = createPublishGithubPullRequestAction;
|
|
46
|
-
exports.createPublishGitlabAction = createPublishGitlabAction;
|
|
47
|
-
exports.createPublishGitlabMergeRequestAction = createPublishGitlabMergeRequestAction;
|
|
48
|
-
//# sourceMappingURL=deprecated.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.cjs.js","sources":["../../../src/scaffolder/actions/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 */\nimport {\n createGithubActionsDispatchAction as githubActionsDispatch,\n createGithubDeployKeyAction as githubDeployKey,\n createGithubEnvironmentAction as githubEnvironment,\n createGithubIssuesLabelAction as githubIssuesLabel,\n CreateGithubPullRequestActionOptions as GithubPullRequestActionOptions,\n createGithubRepoCreateAction as githubRepoCreate,\n createGithubRepoPushAction as githubRepoPush,\n createGithubWebhookAction as githubWebhook,\n createPublishGithubAction as publishGithub,\n createPublishGithubPullRequestAction as publishGithubPullRequest,\n} from '@backstage/plugin-scaffolder-backend-module-github';\n\nimport {\n createPublishGitlabAction as publishGitlab,\n createPublishGitlabMergeRequestAction as publishGitlabMergeRequest,\n} from '@backstage/plugin-scaffolder-backend-module-gitlab';\n\nimport { createPublishAzureAction as publishAzure } from '@backstage/plugin-scaffolder-backend-module-azure';\n\nimport { createPublishBitbucketAction as publishBitbucket } from '@backstage/plugin-scaffolder-backend-module-bitbucket';\n\nimport { createPublishBitbucketCloudAction as publishBitbucketCloud } from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';\n\nimport {\n createPublishBitbucketServerAction as publishBitbucketServer,\n createPublishBitbucketServerPullRequestAction as publishBitbucketServerPullRequest,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';\n\nimport {\n createPublishGerritAction as publishGerrit,\n createPublishGerritReviewAction as publishGerritReview,\n} from '@backstage/plugin-scaffolder-backend-module-gerrit';\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubActionsDispatchAction = githubActionsDispatch;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubDeployKeyAction = githubDeployKey;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubEnvironmentAction = githubEnvironment;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubIssuesLabelAction = githubIssuesLabel;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport type CreateGithubPullRequestActionOptions =\n GithubPullRequestActionOptions;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubRepoCreateAction = githubRepoCreate;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubRepoPushAction = githubRepoPush;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createGithubWebhookAction = githubWebhook;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createPublishGithubAction = publishGithub;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-github` instead\n */\nexport const createPublishGithubPullRequestAction = publishGithubPullRequest;\n\n/**\n * @public @deprecated use \"createPublishBitbucketCloudAction\" from \\@backstage/plugin-scaffolder-backend-module-bitbucket-cloud or \"createPublishBitbucketServerAction\" from \\@backstage/plugin-scaffolder-backend-module-bitbucket-server instead\n */\nexport const createPublishBitbucketAction = publishBitbucket;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-bitbucket-cloud` instead\n */\nexport const createPublishBitbucketCloudAction = publishBitbucketCloud;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-bitbucket-server` instead\n */\nexport const createPublishBitbucketServerAction = publishBitbucketServer;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-bitbucket-server` instead\n */\nexport const createPublishBitbucketServerPullRequestAction =\n publishBitbucketServerPullRequest;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-azure` instead\n */\nexport const createPublishAzureAction = publishAzure;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gerrit` instead\n */\nexport const createPublishGerritAction = publishGerrit;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gerrit` instead\n */\nexport const createPublishGerritReviewAction = publishGerritReview;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gitlab` instead\n */\nexport const createPublishGitlabAction = publishGitlab;\n\n/**\n * @public\n * @deprecated use import from `@backstage/plugin-scaffolder-backend-module-gitlab` instead\n */\nexport const createPublishGitlabMergeRequestAction = publishGitlabMergeRequest;\n"],"names":["githubActionsDispatch","githubDeployKey","githubEnvironment","githubIssuesLabel","githubRepoCreate","githubRepoPush","githubWebhook","publishGithub","publishGithubPullRequest","publishBitbucket","publishBitbucketCloud","publishBitbucketServer","publishBitbucketServerPullRequest","publishAzure","publishGerrit","publishGerritReview","publishGitlab","publishGitlabMergeRequest"],"mappings":";;;;;;;;;;AAqDO,MAAM,iCAAoC,GAAAA;AAM1C,MAAM,2BAA8B,GAAAC;AAMpC,MAAM,6BAAgC,GAAAC;AAMtC,MAAM,6BAAgC,GAAAC;AAatC,MAAM,4BAA+B,GAAAC;AAMrC,MAAM,0BAA6B,GAAAC;AAMnC,MAAM,yBAA4B,GAAAC;AAMlC,MAAM,yBAA4B,GAAAC;AAMlC,MAAM,oCAAuC,GAAAC;AAK7C,MAAM,4BAA+B,GAAAC;AAMrC,MAAM,iCAAoC,GAAAC;AAM1C,MAAM,kCAAqC,GAAAC;AAM3C,MAAM,6CACX,GAAAC;AAMK,MAAM,wBAA2B,GAAAC;AAMjC,MAAM,yBAA4B,GAAAC;AAMlC,MAAM,+BAAkC,GAAAC;AAMxC,MAAM,yBAA4B,GAAAC;AAMlC,MAAM,qCAAwC,GAAAC;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conditionExports.cjs.js","sources":["../../src/service/conditionExports.ts"],"sourcesContent":["/*\n * Copyright 2022 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 RESOURCE_TYPE_SCAFFOLDER_TEMPLATE,\n RESOURCE_TYPE_SCAFFOLDER_ACTION,\n} from '@backstage/plugin-scaffolder-common/alpha';\nimport { createConditionExports } from '@backstage/plugin-permission-node';\nimport { scaffolderTemplateRules, scaffolderActionRules } from './rules';\n\nconst templateConditionExports = createConditionExports({\n pluginId: 'scaffolder',\n resourceType: RESOURCE_TYPE_SCAFFOLDER_TEMPLATE,\n rules: scaffolderTemplateRules,\n});\n\nconst actionsConditionExports = createConditionExports({\n pluginId: 'scaffolder',\n resourceType: RESOURCE_TYPE_SCAFFOLDER_ACTION,\n rules: scaffolderActionRules,\n});\n\n/**\n * `createScaffolderTemplateConditionalDecision` can be used when authoring policies to\n * create conditional decisions. It requires a permission of type\n * `ResourcePermission<'scaffolder-template'>` to be passed as the first parameter.\n * It's recommended that you use the provided `isResourcePermission` and\n * `isPermission` helper methods to narrow the type of the permission passed to\n * the handle method as shown below.\n *\n * ```\n * // MyAuthorizationPolicy.ts\n * ...\n * import { createScaffolderPolicyDecision } from '@backstage/plugin-scaffolder-backend';\n * import { RESOURCE_TYPE_SCAFFOLDER_TEMPLATE } from '@backstage/plugin-scaffolder-common';\n *\n * class MyAuthorizationPolicy implements PermissionPolicy {\n * async handle(request, user) {\n * ...\n *\n * if (isResourcePermission(request.permission, RESOURCE_TYPE_SCAFFOLDER_TEMPLATE)) {\n * return createScaffolderConditionalDecision(\n * request.permission,\n * { anyOf: [...insert conditions here...] }\n * );\n * }\n *\n * ...\n * }\n *\n * ```\n *\n * @alpha\n */\nexport const createScaffolderTemplateConditionalDecision =\n templateConditionExports.createConditionalDecision;\n\n/**\n * These conditions are used when creating conditional decisions for scaffolder\n * templates that are returned by authorization policies.\n *\n * @alpha\n */\nexport const scaffolderTemplateConditions = templateConditionExports.conditions;\n\n/**\n * @alpha\n */\nexport const createScaffolderActionConditionalDecision =\n actionsConditionExports.createConditionalDecision;\n\n/**\n *\n * These conditions are used when creating conditional decisions for scaffolder\n * actions that are returned by authorization policies.\n *\n * @alpha\n */\nexport const scaffolderActionConditions = actionsConditionExports.conditions;\n"],"names":["createConditionExports","RESOURCE_TYPE_SCAFFOLDER_TEMPLATE","scaffolderTemplateRules","RESOURCE_TYPE_SCAFFOLDER_ACTION","scaffolderActionRules"],"mappings":";;;;;;AAuBA,MAAM,2BAA2BA,2CAAuB,CAAA;AAAA,EACtD,QAAU,EAAA,YAAA;AAAA,EACV,YAAc,EAAAC,uCAAA;AAAA,EACd,KAAO,EAAAC;AACT,CAAC,CAAA;AAED,MAAM,0BAA0BF,2CAAuB,CAAA;AAAA,EACrD,QAAU,EAAA,YAAA;AAAA,EACV,YAAc,EAAAG,qCAAA;AAAA,EACd,KAAO,EAAAC;AACT,CAAC,CAAA;AAkCM,MAAM,8CACX,wBAAyB,CAAA;AAQpB,MAAM,+BAA+B,wBAAyB,CAAA;AAK9D,MAAM,4CACX,uBAAwB,CAAA;AASnB,MAAM,6BAA6B,uBAAwB,CAAA;;;;;;;"}
|