@backstage/plugin-scaffolder-backend 1.19.0-next.2 → 1.19.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/dist/index.cjs.js CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var router = require('./cjs/router-04ab6217.cjs.js');
5
+ var router = require('./cjs/router-68c854a3.cjs.js');
6
6
  var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
7
7
  var pluginCatalogBackendModuleScaffolderEntityModel = require('@backstage/plugin-catalog-backend-module-scaffolder-entity-model');
8
8
  require('@backstage/catalog-model');
9
+ require('@backstage/config');
9
10
  require('@backstage/errors');
10
11
  require('@backstage/integration');
11
12
  require('@backstage/plugin-scaffolder-common');
@@ -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';\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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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
@@ -915,11 +915,11 @@ declare class DatabaseTaskStore implements TaskStore {
915
915
  list(options: {
916
916
  createdBy?: string;
917
917
  }): Promise<{
918
- tasks: SerializedTask[];
918
+ tasks: SerializedTask$1[];
919
919
  }>;
920
- getTask(taskId: string): Promise<SerializedTask>;
920
+ getTask(taskId: string): Promise<SerializedTask$1>;
921
921
  createTask(options: TaskStoreCreateTaskOptions): Promise<TaskStoreCreateTaskResult>;
922
- claimTask(): Promise<SerializedTask | undefined>;
922
+ claimTask(): Promise<SerializedTask$1 | undefined>;
923
923
  heartbeatTask(taskId: string): Promise<void>;
924
924
  listStaleTasks(options: {
925
925
  timeoutS: number;
@@ -930,14 +930,14 @@ declare class DatabaseTaskStore implements TaskStore {
930
930
  }>;
931
931
  completeTask(options: {
932
932
  taskId: string;
933
- status: TaskStatus;
933
+ status: TaskStatus$1;
934
934
  eventBody: JsonObject;
935
935
  }): Promise<void>;
936
936
  emitLogEvent(options: TaskStoreEmitOptions<{
937
937
  message: string;
938
938
  } & JsonObject>): Promise<void>;
939
939
  listEvents(options: TaskStoreListEventsOptions): Promise<{
940
- events: SerializedTaskEvent[];
940
+ events: SerializedTaskEvent$1[];
941
941
  }>;
942
942
  shutdownTask(options: TaskStoreShutDownTaskOptions): Promise<void>;
943
943
  cancelTask(options: TaskStoreEmitOptions<{
@@ -1069,9 +1069,9 @@ interface RouterOptions {
1069
1069
  * @defaultValue 10
1070
1070
  */
1071
1071
  concurrentTasksLimit?: number;
1072
- taskBroker?: TaskBroker;
1073
- additionalTemplateFilters?: Record<string, TemplateFilter>;
1074
- additionalTemplateGlobals?: Record<string, TemplateGlobal>;
1072
+ taskBroker?: TaskBroker$1;
1073
+ additionalTemplateFilters?: Record<string, TemplateFilter$1>;
1074
+ additionalTemplateGlobals?: Record<string, TemplateGlobal$1>;
1075
1075
  permissions?: PermissionEvaluator;
1076
1076
  permissionRules?: Array<TemplatePermissionRuleInput | ActionPermissionRuleInput>;
1077
1077
  identity?: IdentityApi;
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.19.0-next.2",
4
+ "version": "1.19.1",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -44,23 +44,23 @@
44
44
  "build:assets": "node scripts/build-nunjucks.js"
45
45
  },
46
46
  "dependencies": {
47
- "@backstage/backend-common": "^0.19.9-next.2",
48
- "@backstage/backend-plugin-api": "^0.6.7-next.2",
49
- "@backstage/backend-tasks": "^0.5.12-next.2",
50
- "@backstage/catalog-client": "^1.4.5",
47
+ "@backstage/backend-common": "^0.19.9",
48
+ "@backstage/backend-plugin-api": "^0.6.7",
49
+ "@backstage/backend-tasks": "^0.5.12",
50
+ "@backstage/catalog-client": "^1.4.6",
51
51
  "@backstage/catalog-model": "^1.4.3",
52
52
  "@backstage/config": "^1.1.1",
53
53
  "@backstage/errors": "^1.2.3",
54
- "@backstage/integration": "^1.7.2-next.0",
55
- "@backstage/plugin-auth-node": "^0.4.1-next.2",
56
- "@backstage/plugin-catalog-backend": "^1.15.0-next.2",
57
- "@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.4-next.2",
58
- "@backstage/plugin-catalog-common": "^1.0.17",
59
- "@backstage/plugin-catalog-node": "^1.5.0-next.2",
60
- "@backstage/plugin-permission-common": "^0.7.9",
61
- "@backstage/plugin-permission-node": "^0.7.18-next.2",
62
- "@backstage/plugin-scaffolder-common": "^1.4.3-next.1",
63
- "@backstage/plugin-scaffolder-node": "^0.2.8-next.2",
54
+ "@backstage/integration": "^1.7.2",
55
+ "@backstage/plugin-auth-node": "^0.4.1",
56
+ "@backstage/plugin-catalog-backend": "^1.15.0",
57
+ "@backstage/plugin-catalog-backend-module-scaffolder-entity-model": "^0.1.4",
58
+ "@backstage/plugin-catalog-common": "^1.0.18",
59
+ "@backstage/plugin-catalog-node": "^1.5.0",
60
+ "@backstage/plugin-permission-common": "^0.7.10",
61
+ "@backstage/plugin-permission-node": "^0.7.18",
62
+ "@backstage/plugin-scaffolder-common": "^1.4.3",
63
+ "@backstage/plugin-scaffolder-node": "^0.2.8",
64
64
  "@backstage/types": "^1.1.1",
65
65
  "@gitbeaker/core": "^35.6.0",
66
66
  "@gitbeaker/node": "^35.1.0",
@@ -99,8 +99,8 @@
99
99
  "zod": "^3.21.4"
100
100
  },
101
101
  "devDependencies": {
102
- "@backstage/backend-test-utils": "^0.2.8-next.2",
103
- "@backstage/cli": "^0.24.0-next.1",
102
+ "@backstage/backend-test-utils": "^0.2.8",
103
+ "@backstage/cli": "^0.24.0",
104
104
  "@types/command-exists": "^1.2.0",
105
105
  "@types/fs-extra": "^9.0.1",
106
106
  "@types/git-url-parse": "^9.0.0",
@@ -111,6 +111,7 @@
111
111
  "esbuild": "^0.19.0",
112
112
  "jest-when": "^3.1.0",
113
113
  "msw": "^1.0.0",
114
+ "strip-ansi": "^7.1.0",
114
115
  "supertest": "^6.1.3",
115
116
  "wait-for-expect": "^3.0.2",
116
117
  "yaml": "^2.0.0"