@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/dist/index.cjs.js CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-519a7b88.cjs.js');
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 = ScaffolderEntitiesProcessor.DatabaseTaskStore;
54
- exports.ScaffolderEntitiesProcessor = ScaffolderEntitiesProcessor.ScaffolderEntitiesProcessor;
55
- exports.TaskManager = ScaffolderEntitiesProcessor.TaskManager;
56
- exports.TaskWorker = ScaffolderEntitiesProcessor.TaskWorker;
57
- exports.TemplateActionRegistry = ScaffolderEntitiesProcessor.TemplateActionRegistry;
58
- exports.createBuiltinActions = ScaffolderEntitiesProcessor.createBuiltinActions;
59
- exports.createCatalogRegisterAction = ScaffolderEntitiesProcessor.createCatalogRegisterAction;
60
- exports.createCatalogWriteAction = ScaffolderEntitiesProcessor.createCatalogWriteAction;
61
- exports.createDebugLogAction = ScaffolderEntitiesProcessor.createDebugLogAction;
62
- exports.createFetchCatalogEntityAction = ScaffolderEntitiesProcessor.createFetchCatalogEntityAction;
63
- exports.createFetchPlainAction = ScaffolderEntitiesProcessor.createFetchPlainAction;
64
- exports.createFetchPlainFileAction = ScaffolderEntitiesProcessor.createFetchPlainFileAction;
65
- exports.createFetchTemplateAction = ScaffolderEntitiesProcessor.createFetchTemplateAction;
66
- exports.createFilesystemDeleteAction = ScaffolderEntitiesProcessor.createFilesystemDeleteAction;
67
- exports.createFilesystemRenameAction = ScaffolderEntitiesProcessor.createFilesystemRenameAction;
68
- exports.createGithubActionsDispatchAction = ScaffolderEntitiesProcessor.createGithubActionsDispatchAction;
69
- exports.createGithubDeployKeyAction = ScaffolderEntitiesProcessor.createGithubDeployKeyAction;
70
- exports.createGithubEnvironmentAction = ScaffolderEntitiesProcessor.createGithubEnvironmentAction;
71
- exports.createGithubIssuesLabelAction = ScaffolderEntitiesProcessor.createGithubIssuesLabelAction;
72
- exports.createGithubRepoCreateAction = ScaffolderEntitiesProcessor.createGithubRepoCreateAction;
73
- exports.createGithubRepoPushAction = ScaffolderEntitiesProcessor.createGithubRepoPushAction;
74
- exports.createGithubWebhookAction = ScaffolderEntitiesProcessor.createGithubWebhookAction;
75
- exports.createPublishAzureAction = ScaffolderEntitiesProcessor.createPublishAzureAction;
76
- exports.createPublishBitbucketAction = ScaffolderEntitiesProcessor.createPublishBitbucketAction;
77
- exports.createPublishBitbucketCloudAction = ScaffolderEntitiesProcessor.createPublishBitbucketCloudAction;
78
- exports.createPublishBitbucketServerAction = ScaffolderEntitiesProcessor.createPublishBitbucketServerAction;
79
- exports.createPublishBitbucketServerPullRequestAction = ScaffolderEntitiesProcessor.createPublishBitbucketServerPullRequestAction;
80
- exports.createPublishGerritAction = ScaffolderEntitiesProcessor.createPublishGerritAction;
81
- exports.createPublishGerritReviewAction = ScaffolderEntitiesProcessor.createPublishGerritReviewAction;
82
- exports.createPublishGithubAction = ScaffolderEntitiesProcessor.createPublishGithubAction;
83
- exports.createPublishGithubPullRequestAction = ScaffolderEntitiesProcessor.createPublishGithubPullRequestAction;
84
- exports.createPublishGitlabAction = ScaffolderEntitiesProcessor.createPublishGitlabAction;
85
- exports.createPublishGitlabMergeRequestAction = ScaffolderEntitiesProcessor.createPublishGitlabMergeRequestAction;
86
- exports.createRouter = ScaffolderEntitiesProcessor.createRouter;
87
- exports.createWaitAction = ScaffolderEntitiesProcessor.createWaitAction;
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;
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCO,MAAM,oBAAuB,GAAAA,0CAAA;AA6B7B,MAAM,mBAAsB,GAAAC,yCAAA;AAS5B,MAAM,aAAgB,GAAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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.16.6-next.2",
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-next.2",
48
- "@backstage/backend-plugin-api": "^0.6.3-next.2",
49
- "@backstage/backend-tasks": "^0.5.8-next.2",
50
- "@backstage/catalog-client": "^1.4.4-next.1",
51
- "@backstage/catalog-model": "^1.4.2-next.1",
52
- "@backstage/config": "^1.1.0-next.1",
53
- "@backstage/errors": "^1.2.1",
54
- "@backstage/integration": "^1.7.0-next.2",
55
- "@backstage/plugin-auth-node": "^0.3.0-next.2",
56
- "@backstage/plugin-catalog-backend": "^1.13.0-next.2",
57
- "@backstage/plugin-catalog-common": "^1.0.16-next.1",
58
- "@backstage/plugin-catalog-node": "^1.4.4-next.2",
59
- "@backstage/plugin-permission-common": "^0.7.8-next.1",
60
- "@backstage/plugin-permission-node": "^0.7.14-next.2",
61
- "@backstage/plugin-scaffolder-common": "^1.4.1-next.1",
62
- "@backstage/plugin-scaffolder-node": "^0.2.3-next.2",
63
- "@backstage/types": "^1.1.0",
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-next.2",
102
- "@backstage/cli": "^0.22.13-next.2",
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",