@backstage/plugin-scaffolder-backend 1.13.2-next.2 → 1.14.1-next.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 +59 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -1
- package/dist/cjs/{ScaffolderEntitiesProcessor-2f24bb9e.cjs.js → ScaffolderEntitiesProcessor-c40021d1.cjs.js} +64 -21
- package/dist/cjs/ScaffolderEntitiesProcessor-c40021d1.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +10 -3
- package/package.json +15 -15
- package/dist/cjs/ScaffolderEntitiesProcessor-2f24bb9e.cjs.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-
|
|
5
|
+
var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-c40021d1.cjs.js');
|
|
6
6
|
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
|
|
7
7
|
require('@backstage/catalog-model');
|
|
8
8
|
require('@backstage/errors');
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { TaskSpec, TemplateEntityStepV1beta3, TemplateParametersV1beta3 } from '
|
|
|
18
18
|
import { Logger } from 'winston';
|
|
19
19
|
import { PermissionEvaluator, PermissionRuleParams } from '@backstage/plugin-permission-common';
|
|
20
20
|
import { PluginTaskScheduler } from '@backstage/backend-tasks';
|
|
21
|
-
import { RESOURCE_TYPE_SCAFFOLDER_TEMPLATE } from '@backstage/plugin-scaffolder-common/alpha';
|
|
21
|
+
import { RESOURCE_TYPE_SCAFFOLDER_TEMPLATE, RESOURCE_TYPE_SCAFFOLDER_ACTION } from '@backstage/plugin-scaffolder-common/alpha';
|
|
22
22
|
import express from 'express';
|
|
23
23
|
import { IdentityApi } from '@backstage/plugin-auth-node';
|
|
24
24
|
import { PermissionRule } from '@backstage/plugin-permission-node';
|
|
@@ -64,6 +64,8 @@ declare function createFetchCatalogEntityAction(options: {
|
|
|
64
64
|
entityRef?: string | undefined;
|
|
65
65
|
entityRefs?: string[] | undefined;
|
|
66
66
|
optional?: boolean | undefined;
|
|
67
|
+
defaultKind?: string | undefined;
|
|
68
|
+
defaultNamespace?: string | undefined;
|
|
67
69
|
}, {
|
|
68
70
|
entity?: any;
|
|
69
71
|
entities?: any[] | undefined;
|
|
@@ -1010,6 +1012,11 @@ declare class TaskWorker {
|
|
|
1010
1012
|
* @public
|
|
1011
1013
|
*/
|
|
1012
1014
|
type TemplatePermissionRuleInput<TParams extends PermissionRuleParams = PermissionRuleParams> = PermissionRule<TemplateEntityStepV1beta3 | TemplateParametersV1beta3, {}, typeof RESOURCE_TYPE_SCAFFOLDER_TEMPLATE, TParams>;
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
type ActionPermissionRuleInput<TParams extends PermissionRuleParams = PermissionRuleParams> = PermissionRule<TemplateEntityStepV1beta3 | TemplateParametersV1beta3, {}, typeof RESOURCE_TYPE_SCAFFOLDER_ACTION, TParams>;
|
|
1013
1020
|
/**
|
|
1014
1021
|
* RouterOptions
|
|
1015
1022
|
*
|
|
@@ -1037,7 +1044,7 @@ interface RouterOptions {
|
|
|
1037
1044
|
additionalTemplateFilters?: Record<string, TemplateFilter>;
|
|
1038
1045
|
additionalTemplateGlobals?: Record<string, TemplateGlobal>;
|
|
1039
1046
|
permissions?: PermissionEvaluator;
|
|
1040
|
-
permissionRules?: TemplatePermissionRuleInput
|
|
1047
|
+
permissionRules?: Array<TemplatePermissionRuleInput | ActionPermissionRuleInput>;
|
|
1041
1048
|
identity?: IdentityApi;
|
|
1042
1049
|
}
|
|
1043
1050
|
/**
|
|
@@ -1075,4 +1082,4 @@ type TaskSecrets = TaskSecrets$1;
|
|
|
1075
1082
|
*/
|
|
1076
1083
|
type TemplateAction<TInput extends JsonObject> = TemplateAction$1<TInput>;
|
|
1077
1084
|
|
|
1078
|
-
export { ActionContext, 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, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishGerritAction, createPublishGerritReviewAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, createWaitAction, executeShellCommand, fetchContents };
|
|
1085
|
+
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, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, 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.14.1-next.0",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -44,22 +44,22 @@
|
|
|
44
44
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@backstage/backend-common": "^0.18.
|
|
48
|
-
"@backstage/backend-plugin-api": "^0.5.
|
|
49
|
-
"@backstage/backend-tasks": "^0.5.
|
|
50
|
-
"@backstage/catalog-client": "^1.4.
|
|
47
|
+
"@backstage/backend-common": "^0.18.6-next.0",
|
|
48
|
+
"@backstage/backend-plugin-api": "^0.5.3-next.0",
|
|
49
|
+
"@backstage/backend-tasks": "^0.5.3-next.0",
|
|
50
|
+
"@backstage/catalog-client": "^1.4.2-next.0",
|
|
51
51
|
"@backstage/catalog-model": "^1.3.0",
|
|
52
52
|
"@backstage/config": "^1.0.7",
|
|
53
53
|
"@backstage/errors": "^1.1.5",
|
|
54
|
-
"@backstage/integration": "^1.4.5
|
|
55
|
-
"@backstage/plugin-auth-node": "^0.2.
|
|
56
|
-
"@backstage/plugin-catalog-backend": "^1.9.
|
|
54
|
+
"@backstage/integration": "^1.4.5",
|
|
55
|
+
"@backstage/plugin-auth-node": "^0.2.15-next.0",
|
|
56
|
+
"@backstage/plugin-catalog-backend": "^1.9.2-next.0",
|
|
57
57
|
"@backstage/plugin-catalog-common": "^1.0.13",
|
|
58
|
-
"@backstage/plugin-catalog-node": "^1.3.
|
|
58
|
+
"@backstage/plugin-catalog-node": "^1.3.7-next.0",
|
|
59
59
|
"@backstage/plugin-permission-common": "^0.7.5",
|
|
60
|
-
"@backstage/plugin-permission-node": "^0.7.
|
|
61
|
-
"@backstage/plugin-scaffolder-common": "^1.3.0
|
|
62
|
-
"@backstage/plugin-scaffolder-node": "^0.1.
|
|
60
|
+
"@backstage/plugin-permission-node": "^0.7.9-next.0",
|
|
61
|
+
"@backstage/plugin-scaffolder-common": "^1.3.0",
|
|
62
|
+
"@backstage/plugin-scaffolder-node": "^0.1.4-next.0",
|
|
63
63
|
"@backstage/types": "^1.0.2",
|
|
64
64
|
"@gitbeaker/core": "^35.6.0",
|
|
65
65
|
"@gitbeaker/node": "^35.1.0",
|
|
@@ -90,15 +90,15 @@
|
|
|
90
90
|
"p-queue": "^6.6.2",
|
|
91
91
|
"prom-client": "^14.0.1",
|
|
92
92
|
"uuid": "^8.2.0",
|
|
93
|
-
"vm2": "^3.9.
|
|
93
|
+
"vm2": "^3.9.18",
|
|
94
94
|
"winston": "^3.2.1",
|
|
95
95
|
"yaml": "^2.0.0",
|
|
96
96
|
"zen-observable": "^0.10.0",
|
|
97
97
|
"zod": "^3.21.4"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@backstage/backend-test-utils": "^0.1.
|
|
101
|
-
"@backstage/cli": "^0.22.
|
|
100
|
+
"@backstage/backend-test-utils": "^0.1.38-next.0",
|
|
101
|
+
"@backstage/cli": "^0.22.8-next.0",
|
|
102
102
|
"@types/command-exists": "^1.2.0",
|
|
103
103
|
"@types/fs-extra": "^9.0.1",
|
|
104
104
|
"@types/git-url-parse": "^9.0.0",
|