@backstage/plugin-scaffolder-backend 1.33.1-next.0 → 2.0.0-next.2
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 +171 -0
- package/dist/ScaffolderPlugin.cjs.js +7 -19
- 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 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +120 -450
- 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/catalog/fetch.cjs.js +5 -11
- package/dist/scaffolder/actions/builtin/catalog/fetch.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/catalog/register.cjs.js +26 -62
- package/dist/scaffolder/actions/builtin/catalog/register.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/catalog/write.cjs.js +4 -5
- package/dist/scaffolder/actions/builtin/catalog/write.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/debug/log.cjs.js +4 -5
- package/dist/scaffolder/actions/builtin/debug/log.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/debug/wait.cjs.js +9 -15
- package/dist/scaffolder/actions/builtin/debug/wait.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/fetch/plain.cjs.js +9 -19
- package/dist/scaffolder/actions/builtin/fetch/plain.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/fetch/plainFile.cjs.js +9 -19
- package/dist/scaffolder/actions/builtin/fetch/plainFile.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/fetch/template.cjs.js +33 -55
- 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/actions/builtin/fetch/templateFile.cjs.js +24 -34
- package/dist/scaffolder/actions/builtin/fetch/templateFile.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/filesystem/delete.cjs.js +3 -12
- package/dist/scaffolder/actions/builtin/filesystem/delete.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/filesystem/read.cjs.js +14 -14
- package/dist/scaffolder/actions/builtin/filesystem/read.cjs.js.map +1 -1
- package/dist/scaffolder/actions/builtin/filesystem/rename.cjs.js +16 -27
- package/dist/scaffolder/actions/builtin/filesystem/rename.cjs.js.map +1 -1
- package/dist/scaffolder/dryrun/DecoratedActionsRegistry.cjs.js +2 -11
- package/dist/scaffolder/dryrun/DecoratedActionsRegistry.cjs.js.map +1 -1
- package/dist/scaffolder/dryrun/createDryRunner.cjs.js.map +1 -1
- package/dist/scaffolder/tasks/DatabaseTaskStore.cjs.js.map +1 -1
- package/dist/scaffolder/tasks/NunjucksWorkflowRunner.cjs.js +8 -15
- package/dist/scaffolder/tasks/NunjucksWorkflowRunner.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/helpers.cjs.js +4 -2
- package/dist/service/helpers.cjs.js.map +1 -1
- package/dist/service/permissions.cjs.js +14 -0
- package/dist/service/permissions.cjs.js.map +1 -0
- package/dist/service/router.cjs.js +48 -140
- package/dist/service/router.cjs.js.map +1 -1
- package/dist/service/rules.cjs.js +11 -11
- package/dist/service/rules.cjs.js.map +1 -1
- package/dist/util/templating.cjs.js +3 -3
- package/dist/util/templating.cjs.js.map +1 -1
- package/package.json +24 -27
- package/dist/deprecated.cjs.js +0 -15
- package/dist/deprecated.cjs.js.map +0 -1
- package/dist/scaffolder/actions/builtin/createBuiltinActions.cjs.js +0 -158
- package/dist/scaffolder/actions/builtin/createBuiltinActions.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
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var integration = require('@backstage/integration');
|
|
4
|
-
var register = require('./catalog/register.cjs.js');
|
|
5
|
-
var write = require('./catalog/write.cjs.js');
|
|
6
|
-
var fetch = require('./catalog/fetch.cjs.js');
|
|
7
|
-
var log = require('./debug/log.cjs.js');
|
|
8
|
-
var wait = require('./debug/wait.cjs.js');
|
|
9
|
-
var plain = require('./fetch/plain.cjs.js');
|
|
10
|
-
var plainFile = require('./fetch/plainFile.cjs.js');
|
|
11
|
-
var template = require('./fetch/template.cjs.js');
|
|
12
|
-
var templateFile = require('./fetch/templateFile.cjs.js');
|
|
13
|
-
var _delete = require('./filesystem/delete.cjs.js');
|
|
14
|
-
var rename = require('./filesystem/rename.cjs.js');
|
|
15
|
-
var read = require('./filesystem/read.cjs.js');
|
|
16
|
-
var pluginScaffolderBackendModuleGithub = require('@backstage/plugin-scaffolder-backend-module-github');
|
|
17
|
-
var pluginScaffolderBackendModuleAzure = require('@backstage/plugin-scaffolder-backend-module-azure');
|
|
18
|
-
var pluginScaffolderBackendModuleBitbucket = require('@backstage/plugin-scaffolder-backend-module-bitbucket');
|
|
19
|
-
var pluginScaffolderBackendModuleBitbucketCloud = require('@backstage/plugin-scaffolder-backend-module-bitbucket-cloud');
|
|
20
|
-
var pluginScaffolderBackendModuleBitbucketServer = require('@backstage/plugin-scaffolder-backend-module-bitbucket-server');
|
|
21
|
-
var pluginScaffolderBackendModuleGerrit = require('@backstage/plugin-scaffolder-backend-module-gerrit');
|
|
22
|
-
var pluginScaffolderBackendModuleGitlab = require('@backstage/plugin-scaffolder-backend-module-gitlab');
|
|
23
|
-
var pluginScaffolderBackendModuleGitea = require('@backstage/plugin-scaffolder-backend-module-gitea');
|
|
24
|
-
|
|
25
|
-
const createBuiltinActions = (options) => {
|
|
26
|
-
const {
|
|
27
|
-
reader,
|
|
28
|
-
integrations,
|
|
29
|
-
catalogClient,
|
|
30
|
-
auth,
|
|
31
|
-
config,
|
|
32
|
-
additionalTemplateFilters,
|
|
33
|
-
additionalTemplateGlobals
|
|
34
|
-
} = options;
|
|
35
|
-
const githubCredentialsProvider = integration.DefaultGithubCredentialsProvider.fromIntegrations(integrations);
|
|
36
|
-
const actions = [
|
|
37
|
-
plain.createFetchPlainAction({
|
|
38
|
-
reader,
|
|
39
|
-
integrations
|
|
40
|
-
}),
|
|
41
|
-
plainFile.createFetchPlainFileAction({
|
|
42
|
-
reader,
|
|
43
|
-
integrations
|
|
44
|
-
}),
|
|
45
|
-
template.createFetchTemplateAction({
|
|
46
|
-
integrations,
|
|
47
|
-
reader,
|
|
48
|
-
additionalTemplateFilters,
|
|
49
|
-
additionalTemplateGlobals
|
|
50
|
-
}),
|
|
51
|
-
templateFile.createFetchTemplateFileAction({
|
|
52
|
-
integrations,
|
|
53
|
-
reader,
|
|
54
|
-
additionalTemplateFilters,
|
|
55
|
-
additionalTemplateGlobals
|
|
56
|
-
}),
|
|
57
|
-
pluginScaffolderBackendModuleGerrit.createPublishGerritAction({
|
|
58
|
-
integrations,
|
|
59
|
-
config
|
|
60
|
-
}),
|
|
61
|
-
pluginScaffolderBackendModuleGerrit.createPublishGerritReviewAction({
|
|
62
|
-
integrations,
|
|
63
|
-
config
|
|
64
|
-
}),
|
|
65
|
-
pluginScaffolderBackendModuleGitea.createPublishGiteaAction({
|
|
66
|
-
integrations,
|
|
67
|
-
config
|
|
68
|
-
}),
|
|
69
|
-
pluginScaffolderBackendModuleGithub.createPublishGithubAction({
|
|
70
|
-
integrations,
|
|
71
|
-
config,
|
|
72
|
-
githubCredentialsProvider
|
|
73
|
-
}),
|
|
74
|
-
pluginScaffolderBackendModuleGithub.createPublishGithubPullRequestAction({
|
|
75
|
-
integrations,
|
|
76
|
-
githubCredentialsProvider,
|
|
77
|
-
config
|
|
78
|
-
}),
|
|
79
|
-
pluginScaffolderBackendModuleGitlab.createPublishGitlabAction({
|
|
80
|
-
integrations,
|
|
81
|
-
config
|
|
82
|
-
}),
|
|
83
|
-
pluginScaffolderBackendModuleGitlab.createPublishGitlabMergeRequestAction({
|
|
84
|
-
integrations
|
|
85
|
-
}),
|
|
86
|
-
pluginScaffolderBackendModuleGitlab.createGitlabRepoPushAction({
|
|
87
|
-
integrations
|
|
88
|
-
}),
|
|
89
|
-
pluginScaffolderBackendModuleBitbucket.createPublishBitbucketAction({
|
|
90
|
-
integrations,
|
|
91
|
-
config
|
|
92
|
-
}),
|
|
93
|
-
pluginScaffolderBackendModuleBitbucketCloud.createPublishBitbucketCloudAction({
|
|
94
|
-
integrations,
|
|
95
|
-
config
|
|
96
|
-
}),
|
|
97
|
-
pluginScaffolderBackendModuleBitbucketCloud.createPublishBitbucketCloudPullRequestAction({ integrations, config }),
|
|
98
|
-
pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerAction({
|
|
99
|
-
integrations,
|
|
100
|
-
config
|
|
101
|
-
}),
|
|
102
|
-
pluginScaffolderBackendModuleBitbucketServer.createPublishBitbucketServerPullRequestAction({
|
|
103
|
-
integrations,
|
|
104
|
-
config
|
|
105
|
-
}),
|
|
106
|
-
pluginScaffolderBackendModuleAzure.createPublishAzureAction({
|
|
107
|
-
integrations,
|
|
108
|
-
config
|
|
109
|
-
}),
|
|
110
|
-
log.createDebugLogAction(),
|
|
111
|
-
wait.createWaitAction(),
|
|
112
|
-
register.createCatalogRegisterAction({ catalogClient, integrations, auth }),
|
|
113
|
-
fetch.createFetchCatalogEntityAction({ catalogClient, auth }),
|
|
114
|
-
write.createCatalogWriteAction(),
|
|
115
|
-
_delete.createFilesystemDeleteAction(),
|
|
116
|
-
read.createFilesystemReadDirAction(),
|
|
117
|
-
rename.createFilesystemRenameAction(),
|
|
118
|
-
pluginScaffolderBackendModuleGithub.createGithubActionsDispatchAction({
|
|
119
|
-
integrations,
|
|
120
|
-
githubCredentialsProvider
|
|
121
|
-
}),
|
|
122
|
-
pluginScaffolderBackendModuleGithub.createGithubWebhookAction({
|
|
123
|
-
integrations,
|
|
124
|
-
githubCredentialsProvider
|
|
125
|
-
}),
|
|
126
|
-
pluginScaffolderBackendModuleGithub.createGithubIssuesLabelAction({
|
|
127
|
-
integrations,
|
|
128
|
-
githubCredentialsProvider
|
|
129
|
-
}),
|
|
130
|
-
pluginScaffolderBackendModuleGithub.createGithubRepoCreateAction({
|
|
131
|
-
integrations,
|
|
132
|
-
githubCredentialsProvider
|
|
133
|
-
}),
|
|
134
|
-
pluginScaffolderBackendModuleGithub.createGithubRepoPushAction({
|
|
135
|
-
integrations,
|
|
136
|
-
config,
|
|
137
|
-
githubCredentialsProvider
|
|
138
|
-
}),
|
|
139
|
-
pluginScaffolderBackendModuleGithub.createGithubEnvironmentAction({
|
|
140
|
-
integrations,
|
|
141
|
-
catalogClient
|
|
142
|
-
}),
|
|
143
|
-
pluginScaffolderBackendModuleGithub.createGithubDeployKeyAction({
|
|
144
|
-
integrations
|
|
145
|
-
}),
|
|
146
|
-
pluginScaffolderBackendModuleGithub.createGithubAutolinksAction({
|
|
147
|
-
integrations,
|
|
148
|
-
githubCredentialsProvider
|
|
149
|
-
}),
|
|
150
|
-
pluginScaffolderBackendModuleBitbucketCloud.createBitbucketPipelinesRunAction({
|
|
151
|
-
integrations
|
|
152
|
-
})
|
|
153
|
-
];
|
|
154
|
-
return actions;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
exports.createBuiltinActions = createBuiltinActions;
|
|
158
|
-
//# sourceMappingURL=createBuiltinActions.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createBuiltinActions.cjs.js","sources":["../../../../src/scaffolder/actions/builtin/createBuiltinActions.ts"],"sourcesContent":["/*\n * Copyright 2021 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 { CatalogApi } from '@backstage/catalog-client';\nimport { Config } from '@backstage/config';\nimport {\n DefaultGithubCredentialsProvider,\n GithubCredentialsProvider,\n ScmIntegrations,\n} from '@backstage/integration';\nimport {\n TemplateAction,\n TemplateFilter,\n TemplateGlobal,\n} from '@backstage/plugin-scaffolder-node';\nimport {\n createCatalogRegisterAction,\n createCatalogWriteAction,\n createFetchCatalogEntityAction,\n} from './catalog';\n\nimport { createDebugLogAction, createWaitAction } from './debug';\nimport {\n createFetchPlainAction,\n createFetchPlainFileAction,\n createFetchTemplateAction,\n createFetchTemplateFileAction,\n} from './fetch';\nimport {\n createFilesystemDeleteAction,\n createFilesystemReadDirAction,\n createFilesystemRenameAction,\n} from './filesystem';\nimport {\n createGithubActionsDispatchAction,\n createGithubAutolinksAction,\n createGithubDeployKeyAction,\n createGithubEnvironmentAction,\n createGithubIssuesLabelAction,\n createGithubRepoCreateAction,\n createGithubRepoPushAction,\n createGithubWebhookAction,\n createPublishGithubAction,\n createPublishGithubPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-github';\n\nimport { createPublishAzureAction } from '@backstage/plugin-scaffolder-backend-module-azure';\n\nimport { createPublishBitbucketAction } from '@backstage/plugin-scaffolder-backend-module-bitbucket';\n\nimport {\n createPublishBitbucketCloudAction,\n createBitbucketPipelinesRunAction,\n createPublishBitbucketCloudPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-cloud';\n\nimport {\n createPublishBitbucketServerAction,\n createPublishBitbucketServerPullRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-bitbucket-server';\n\nimport {\n createPublishGerritAction,\n createPublishGerritReviewAction,\n} from '@backstage/plugin-scaffolder-backend-module-gerrit';\n\nimport {\n createPublishGitlabAction,\n createGitlabRepoPushAction,\n createPublishGitlabMergeRequestAction,\n} from '@backstage/plugin-scaffolder-backend-module-gitlab';\n\nimport { createPublishGiteaAction } from '@backstage/plugin-scaffolder-backend-module-gitea';\nimport { AuthService, UrlReaderService } from '@backstage/backend-plugin-api';\n\n/**\n * The options passed to {@link createBuiltinActions}\n * @public\n */\nexport interface CreateBuiltInActionsOptions {\n /**\n * The {@link @backstage/backend-plugin-api#UrlReaderService} interface that will be used in the default actions.\n */\n reader: UrlReaderService;\n /**\n * The {@link @backstage/integrations#ScmIntegrations} that will be used in the default actions.\n */\n integrations: ScmIntegrations;\n /**\n * The {@link @backstage/catalog-client#CatalogApi} that will be used in the default actions.\n */\n catalogClient: CatalogApi;\n /**\n * The {@link @backstage/backend-plugin-api#AuthService} that will be used in the default actions.\n */\n auth?: AuthService;\n /**\n * The {@link @backstage/config#Config} that will be used in the default actions.\n */\n config: Config;\n /**\n * Additional custom filters that will be passed to the nunjucks template engine for use in\n * Template Manifests and also template skeleton files when using `fetch:template`.\n */\n additionalTemplateFilters?: Record<string, TemplateFilter>;\n additionalTemplateGlobals?: Record<string, TemplateGlobal>;\n}\n\n/**\n * A function to generate create a list of default actions that the scaffolder provides.\n * Is called internally in the default setup, but can be used when adding your own actions or overriding the default ones\n *\n * TODO(blam): version 2 of the scaffolder shouldn't ship with the additional modules. We should ship the basics, and let people install\n * modules for the providers they want to use.\n * @public\n * @returns A list of actions that can be used in the scaffolder\n *\n */\nexport const createBuiltinActions = (\n options: CreateBuiltInActionsOptions,\n): TemplateAction[] => {\n const {\n reader,\n integrations,\n catalogClient,\n auth,\n config,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n } = options;\n\n const githubCredentialsProvider: GithubCredentialsProvider =\n DefaultGithubCredentialsProvider.fromIntegrations(integrations);\n\n const actions = [\n createFetchPlainAction({\n reader,\n integrations,\n }),\n createFetchPlainFileAction({\n reader,\n integrations,\n }),\n createFetchTemplateAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createFetchTemplateFileAction({\n integrations,\n reader,\n additionalTemplateFilters,\n additionalTemplateGlobals,\n }),\n createPublishGerritAction({\n integrations,\n config,\n }),\n createPublishGerritReviewAction({\n integrations,\n config,\n }),\n createPublishGiteaAction({\n integrations,\n config,\n }),\n createPublishGithubAction({\n integrations,\n config,\n githubCredentialsProvider,\n }),\n createPublishGithubPullRequestAction({\n integrations,\n githubCredentialsProvider,\n config,\n }),\n createPublishGitlabAction({\n integrations,\n config,\n }),\n createPublishGitlabMergeRequestAction({\n integrations,\n }),\n createGitlabRepoPushAction({\n integrations,\n }),\n createPublishBitbucketAction({\n integrations,\n config,\n }),\n createPublishBitbucketCloudAction({\n integrations,\n config,\n }),\n createPublishBitbucketCloudPullRequestAction({ integrations, config }),\n createPublishBitbucketServerAction({\n integrations,\n config,\n }),\n createPublishBitbucketServerPullRequestAction({\n integrations,\n config,\n }),\n createPublishAzureAction({\n integrations,\n config,\n }),\n createDebugLogAction(),\n createWaitAction(),\n createCatalogRegisterAction({ catalogClient, integrations, auth }),\n createFetchCatalogEntityAction({ catalogClient, auth }),\n createCatalogWriteAction(),\n createFilesystemDeleteAction(),\n createFilesystemReadDirAction(),\n createFilesystemRenameAction(),\n createGithubActionsDispatchAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubWebhookAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubIssuesLabelAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubRepoCreateAction({\n integrations,\n githubCredentialsProvider,\n }),\n createGithubRepoPushAction({\n integrations,\n config,\n githubCredentialsProvider,\n }),\n createGithubEnvironmentAction({\n integrations,\n catalogClient,\n }),\n createGithubDeployKeyAction({\n integrations,\n }),\n createGithubAutolinksAction({\n integrations,\n githubCredentialsProvider,\n }),\n createBitbucketPipelinesRunAction({\n integrations,\n }),\n ];\n\n return actions as TemplateAction[];\n};\n"],"names":["DefaultGithubCredentialsProvider","createFetchPlainAction","createFetchPlainFileAction","createFetchTemplateAction","createFetchTemplateFileAction","createPublishGerritAction","createPublishGerritReviewAction","createPublishGiteaAction","createPublishGithubAction","createPublishGithubPullRequestAction","createPublishGitlabAction","createPublishGitlabMergeRequestAction","createGitlabRepoPushAction","createPublishBitbucketAction","createPublishBitbucketCloudAction","createPublishBitbucketCloudPullRequestAction","createPublishBitbucketServerAction","createPublishBitbucketServerPullRequestAction","createPublishAzureAction","createDebugLogAction","createWaitAction","createCatalogRegisterAction","createFetchCatalogEntityAction","createCatalogWriteAction","createFilesystemDeleteAction","createFilesystemReadDirAction","createFilesystemRenameAction","createGithubActionsDispatchAction","createGithubWebhookAction","createGithubIssuesLabelAction","createGithubRepoCreateAction","createGithubRepoPushAction","createGithubEnvironmentAction","createGithubDeployKeyAction","createGithubAutolinksAction","createBitbucketPipelinesRunAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmIa,MAAA,oBAAA,GAAuB,CAClC,OACqB,KAAA;AACrB,EAAM,MAAA;AAAA,IACJ,MAAA;AAAA,IACA,YAAA;AAAA,IACA,aAAA;AAAA,IACA,IAAA;AAAA,IACA,MAAA;AAAA,IACA,yBAAA;AAAA,IACA;AAAA,GACE,GAAA,OAAA;AAEJ,EAAM,MAAA,yBAAA,GACJA,4CAAiC,CAAA,gBAAA,CAAiB,YAAY,CAAA;AAEhE,EAAA,MAAM,OAAU,GAAA;AAAA,IACdC,4BAAuB,CAAA;AAAA,MACrB,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,oCAA2B,CAAA;AAAA,MACzB,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,kCAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA,MAAA;AAAA,MACA,yBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,0CAA8B,CAAA;AAAA,MAC5B,YAAA;AAAA,MACA,MAAA;AAAA,MACA,yBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,6DAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,mEAAgC,CAAA;AAAA,MAC9B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,2DAAyB,CAAA;AAAA,MACvB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,6DAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,wEAAqC,CAAA;AAAA,MACnC,YAAA;AAAA,MACA,yBAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,6DAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,yEAAsC,CAAA;AAAA,MACpC;AAAA,KACD,CAAA;AAAA,IACDC,8DAA2B,CAAA;AAAA,MACzB;AAAA,KACD,CAAA;AAAA,IACDC,mEAA6B,CAAA;AAAA,MAC3B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,6EAAkC,CAAA;AAAA,MAChC,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,wFAA6C,CAAA,EAAE,YAAc,EAAA,MAAA,EAAQ,CAAA;AAAA,IACrEC,+EAAmC,CAAA;AAAA,MACjC,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,0FAA8C,CAAA;AAAA,MAC5C,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,2DAAyB,CAAA;AAAA,MACvB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,wBAAqB,EAAA;AAAA,IACrBC,qBAAiB,EAAA;AAAA,IACjBC,oCAA4B,CAAA,EAAE,aAAe,EAAA,YAAA,EAAc,MAAM,CAAA;AAAA,IACjEC,oCAA+B,CAAA,EAAE,aAAe,EAAA,IAAA,EAAM,CAAA;AAAA,IACtDC,8BAAyB,EAAA;AAAA,IACzBC,oCAA6B,EAAA;AAAA,IAC7BC,kCAA8B,EAAA;AAAA,IAC9BC,mCAA6B,EAAA;AAAA,IAC7BC,qEAAkC,CAAA;AAAA,MAChC,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,6DAA0B,CAAA;AAAA,MACxB,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,iEAA8B,CAAA;AAAA,MAC5B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,gEAA6B,CAAA;AAAA,MAC3B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,8DAA2B,CAAA;AAAA,MACzB,YAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,iEAA8B,CAAA;AAAA,MAC5B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,+DAA4B,CAAA;AAAA,MAC1B;AAAA,KACD,CAAA;AAAA,IACDC,+DAA4B,CAAA;AAAA,MAC1B,YAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACDC,6EAAkC,CAAA;AAAA,MAChC;AAAA,KACD;AAAA,GACH;AAEA,EAAO,OAAA,OAAA;AACT;;;;"}
|
|
@@ -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;;;;;;;"}
|