@backstage/plugin-scaffolder-backend 0.15.15 → 0.15.19

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.d.ts CHANGED
@@ -6,6 +6,8 @@ import { Writable } from 'stream';
6
6
  import * as _backstage_types from '@backstage/types';
7
7
  import { JsonValue, JsonObject } from '@backstage/types';
8
8
  import { Schema } from 'jsonschema';
9
+ import { TaskSpec, TemplateMetadata } from '@backstage/plugin-scaffolder-common';
10
+ export { TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TemplateMetadata } from '@backstage/plugin-scaffolder-common';
9
11
  import { UrlReader, ContainerRunner, PluginDatabaseManager } from '@backstage/backend-common';
10
12
  import { Config } from '@backstage/config';
11
13
  import { createPullRequest } from 'octokit-plugin-create-pull-request';
@@ -28,7 +30,7 @@ declare const createBuiltinActions: (options: {
28
30
  reader: UrlReader;
29
31
  integrations: ScmIntegrations;
30
32
  catalogClient: CatalogApi;
31
- containerRunner: ContainerRunner;
33
+ containerRunner?: ContainerRunner;
32
34
  config: Config;
33
35
  }) => TemplateAction<any>[];
34
36
 
@@ -109,6 +111,10 @@ declare function createPublishGitlabAction(options: {
109
111
  config: Config;
110
112
  }): TemplateAction<any>;
111
113
 
114
+ declare const createPublishGitlabMergeRequestAction: (options: {
115
+ integrations: ScmIntegrationRegistry;
116
+ }) => TemplateAction<any>;
117
+
112
118
  declare function createGithubActionsDispatchAction(options: {
113
119
  integrations: ScmIntegrationRegistry;
114
120
  }): TemplateAction<any>;
@@ -198,63 +204,6 @@ declare type SerializedTaskEvent = {
198
204
  type: TaskEventType;
199
205
  createdAt: string;
200
206
  };
201
- /**
202
- * TemplateMetadata
203
- *
204
- * @public
205
- */
206
- declare type TemplateMetadata = {
207
- name: string;
208
- };
209
- /**
210
- * TaskSpecV1beta2
211
- *
212
- * @public
213
- */
214
- interface TaskSpecV1beta2 {
215
- apiVersion: 'backstage.io/v1beta2';
216
- baseUrl?: string;
217
- values: JsonObject;
218
- steps: Array<{
219
- id: string;
220
- name: string;
221
- action: string;
222
- input?: JsonObject;
223
- if?: string | boolean;
224
- }>;
225
- output: {
226
- [name: string]: string;
227
- };
228
- metadata?: TemplateMetadata;
229
- }
230
- interface TaskStep {
231
- id: string;
232
- name: string;
233
- action: string;
234
- input?: JsonObject;
235
- if?: string | boolean;
236
- }
237
- /**
238
- * TaskSpecV1beta3
239
- *
240
- * @public
241
- */
242
- interface TaskSpecV1beta3 {
243
- apiVersion: 'scaffolder.backstage.io/v1beta3';
244
- baseUrl?: string;
245
- parameters: JsonObject;
246
- steps: TaskStep[];
247
- output: {
248
- [name: string]: JsonValue;
249
- };
250
- metadata?: TemplateMetadata;
251
- }
252
- /**
253
- * TaskSpec
254
- *
255
- * @public
256
- */
257
- declare type TaskSpec = TaskSpecV1beta2 | TaskSpecV1beta3;
258
207
  /**
259
208
  * TaskSecrets
260
209
  *
@@ -510,7 +459,7 @@ interface RouterOptions {
510
459
  catalogClient: CatalogApi;
511
460
  actions?: TemplateAction<any>[];
512
461
  taskWorkers?: number;
513
- containerRunner: ContainerRunner;
462
+ containerRunner?: ContainerRunner;
514
463
  taskBroker?: TaskBroker;
515
464
  }
516
465
  declare function createRouter(options: RouterOptions): Promise<express.Router>;
@@ -538,4 +487,4 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
538
487
  postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
539
488
  }
540
489
 
541
- export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateMetadata, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createRouter, createTemplateAction, fetchContents, runCommand };
490
+ export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, fetchContents, runCommand };
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": "0.15.15",
4
+ "version": "0.15.19",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -31,15 +31,15 @@
31
31
  "build:assets": "node scripts/build-nunjucks.js"
32
32
  },
33
33
  "dependencies": {
34
- "@backstage/backend-common": "^0.9.12",
35
- "@backstage/catalog-client": "^0.5.2",
36
- "@backstage/catalog-model": "^0.9.7",
34
+ "@backstage/backend-common": "^0.10.1",
35
+ "@backstage/catalog-client": "^0.5.3",
36
+ "@backstage/catalog-model": "^0.9.8",
37
37
  "@backstage/config": "^0.1.11",
38
38
  "@backstage/errors": "^0.1.5",
39
- "@backstage/integration": "^0.6.10",
40
- "@backstage/plugin-catalog-backend": "^0.19.0",
41
- "@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.5",
42
- "@backstage/plugin-scaffolder-common": "^0.1.1",
39
+ "@backstage/integration": "^0.7.0",
40
+ "@backstage/plugin-catalog-backend": "^0.19.4",
41
+ "@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.7",
42
+ "@backstage/plugin-scaffolder-common": "^0.1.2",
43
43
  "@backstage/types": "^0.1.1",
44
44
  "@gitbeaker/core": "^34.6.0",
45
45
  "@gitbeaker/node": "^34.6.0",
@@ -73,15 +73,15 @@
73
73
  "yaml": "^1.10.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@backstage/cli": "^0.10.0",
77
- "@backstage/test-utils": "^0.1.23",
76
+ "@backstage/cli": "^0.10.4",
77
+ "@backstage/test-utils": "^0.2.1",
78
78
  "@types/command-exists": "^1.2.0",
79
79
  "@types/fs-extra": "^9.0.1",
80
80
  "@types/git-url-parse": "^9.0.0",
81
81
  "@types/mock-fs": "^4.13.0",
82
82
  "@types/nunjucks": "^3.1.4",
83
83
  "@types/supertest": "^2.0.8",
84
- "esbuild": "^0.13.14",
84
+ "esbuild": "^0.14.1",
85
85
  "jest-when": "^3.1.0",
86
86
  "mock-fs": "^5.1.0",
87
87
  "msw": "^0.35.0",
@@ -95,5 +95,5 @@
95
95
  "assets"
96
96
  ],
97
97
  "configSchema": "config.d.ts",
98
- "gitHead": "a05e7081b805006e3f0b2960a08a7753357f532f"
98
+ "gitHead": "4b2a8ed96ff427735c872a72c1864321ef698436"
99
99
  }