@backstage/plugin-scaffolder-backend 1.13.0-next.3 → 1.13.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-b5a2b352.cjs.js');
5
+ var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-2f24bb9e.cjs.js');
6
6
  var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
7
7
  require('@backstage/catalog-model');
8
8
  require('@backstage/errors');
@@ -39,10 +39,11 @@ require('p-queue');
39
39
  require('winston');
40
40
  require('nunjucks');
41
41
  require('lodash');
42
+ require('@backstage/plugin-permission-node');
42
43
  require('prom-client');
44
+ require('@backstage/plugin-permission-common');
43
45
  require('url');
44
46
  require('os');
45
- require('@backstage/plugin-permission-node');
46
47
  require('@backstage/plugin-catalog-node');
47
48
 
48
49
  const createTemplateAction = pluginScaffolderNode.createTemplateAction;
@@ -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} 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"],"names":["createTemplateActionNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCO,MAAM,oBAAuB,GAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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} 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"],"names":["createTemplateActionNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCO,MAAM,oBAAuB,GAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -16,11 +16,11 @@ import { Knex } from 'knex';
16
16
  import * as _backstage_plugin_scaffolder_common from '@backstage/plugin-scaffolder-common';
17
17
  import { TaskSpec, TemplateEntityStepV1beta3, TemplateParametersV1beta3 } from '@backstage/plugin-scaffolder-common';
18
18
  import { Logger } from 'winston';
19
+ import { PermissionEvaluator, PermissionRuleParams } from '@backstage/plugin-permission-common';
19
20
  import { PluginTaskScheduler } from '@backstage/backend-tasks';
20
21
  import { RESOURCE_TYPE_SCAFFOLDER_TEMPLATE } from '@backstage/plugin-scaffolder-common/alpha';
21
22
  import express from 'express';
22
23
  import { IdentityApi } from '@backstage/plugin-auth-node';
23
- import { PermissionRuleParams, PermissionEvaluator } from '@backstage/plugin-permission-common';
24
24
  import { PermissionRule } from '@backstage/plugin-permission-node';
25
25
  import { Entity } from '@backstage/catalog-model';
26
26
  import { CatalogProcessor, CatalogProcessorEmit } from '@backstage/plugin-catalog-node';
@@ -988,6 +988,7 @@ type CreateWorkerOptions = {
988
988
  */
989
989
  concurrentTasksLimit?: number;
990
990
  additionalTemplateGlobals?: Record<string, TemplateGlobal>;
991
+ permissions?: PermissionEvaluator;
991
992
  };
992
993
  /**
993
994
  * TaskWorker
@@ -996,8 +997,8 @@ type CreateWorkerOptions = {
996
997
  */
997
998
  declare class TaskWorker {
998
999
  private readonly options;
999
- private constructor();
1000
1000
  private taskQueue;
1001
+ private constructor();
1001
1002
  static create(options: CreateWorkerOptions): Promise<TaskWorker>;
1002
1003
  start(): void;
1003
1004
  protected onReadyToClaimTask(): Promise<void>;
@@ -1035,7 +1036,7 @@ interface RouterOptions {
1035
1036
  taskBroker?: TaskBroker;
1036
1037
  additionalTemplateFilters?: Record<string, TemplateFilter>;
1037
1038
  additionalTemplateGlobals?: Record<string, TemplateGlobal>;
1038
- permissionApi?: PermissionEvaluator;
1039
+ permissions?: PermissionEvaluator;
1039
1040
  permissionRules?: TemplatePermissionRuleInput[];
1040
1041
  identity?: IdentityApi;
1041
1042
  }
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.13.0-next.3",
4
+ "version": "1.13.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.4-next.2",
48
- "@backstage/backend-plugin-api": "^0.5.1-next.2",
49
- "@backstage/backend-tasks": "^0.5.1-next.2",
50
- "@backstage/catalog-client": "^1.4.1-next.1",
51
- "@backstage/catalog-model": "^1.3.0-next.0",
47
+ "@backstage/backend-common": "^0.18.4",
48
+ "@backstage/backend-plugin-api": "^0.5.1",
49
+ "@backstage/backend-tasks": "^0.5.1",
50
+ "@backstage/catalog-client": "^1.4.1",
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.4-next.0",
55
- "@backstage/plugin-auth-node": "^0.2.13-next.2",
56
- "@backstage/plugin-catalog-backend": "^1.9.0-next.3",
57
- "@backstage/plugin-catalog-common": "^1.0.13-next.1",
58
- "@backstage/plugin-catalog-node": "^1.3.5-next.3",
59
- "@backstage/plugin-permission-common": "^0.7.5-next.0",
60
- "@backstage/plugin-permission-node": "^0.7.7-next.2",
61
- "@backstage/plugin-scaffolder-common": "^1.2.7-next.2",
62
- "@backstage/plugin-scaffolder-node": "^0.1.2-next.3",
54
+ "@backstage/integration": "^1.4.4",
55
+ "@backstage/plugin-auth-node": "^0.2.13",
56
+ "@backstage/plugin-catalog-backend": "^1.9.0",
57
+ "@backstage/plugin-catalog-common": "^1.0.13",
58
+ "@backstage/plugin-catalog-node": "^1.3.5",
59
+ "@backstage/plugin-permission-common": "^0.7.5",
60
+ "@backstage/plugin-permission-node": "^0.7.7",
61
+ "@backstage/plugin-scaffolder-common": "^1.2.7",
62
+ "@backstage/plugin-scaffolder-node": "^0.1.2",
63
63
  "@backstage/types": "^1.0.2",
64
64
  "@gitbeaker/core": "^35.6.0",
65
65
  "@gitbeaker/node": "^35.1.0",
@@ -76,7 +76,7 @@
76
76
  "git-url-parse": "^13.0.0",
77
77
  "globby": "^11.0.0",
78
78
  "isbinaryfile": "^5.0.0",
79
- "isomorphic-git": "^1.8.0",
79
+ "isomorphic-git": "^1.23.0",
80
80
  "jsonschema": "^1.2.6",
81
81
  "knex": "^2.0.0",
82
82
  "lodash": "^4.17.21",
@@ -97,8 +97,8 @@
97
97
  "zod": "^3.21.4"
98
98
  },
99
99
  "devDependencies": {
100
- "@backstage/backend-test-utils": "^0.1.36-next.2",
101
- "@backstage/cli": "^0.22.6-next.3",
100
+ "@backstage/backend-test-utils": "^0.1.36",
101
+ "@backstage/cli": "^0.22.6",
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",