@backstage/plugin-scaffolder-backend 1.5.1 → 1.6.0-next.2

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
@@ -15,6 +15,7 @@ import { createPullRequest } from 'octokit-plugin-create-pull-request';
15
15
  import { Entity } from '@backstage/catalog-model';
16
16
  import express from 'express';
17
17
  import { GithubCredentialsProvider } from '@backstage/integration';
18
+ import { IdentityApi } from '@backstage/plugin-auth-node';
18
19
  import { JsonObject } from '@backstage/types';
19
20
  import { JsonValue } from '@backstage/types';
20
21
  import { Knex } from 'knex';
@@ -264,6 +265,7 @@ export declare function createGithubRepoCreateAction(options: {
264
265
  }): TemplateAction< {
265
266
  repoUrl: string;
266
267
  description?: string | undefined;
268
+ homepage?: string | undefined;
267
269
  access?: string | undefined;
268
270
  deleteBranchOnMerge?: boolean | undefined;
269
271
  gitAuthorName?: string | undefined;
@@ -409,22 +411,6 @@ enableLFS?: boolean | undefined;
409
411
  token?: string | undefined;
410
412
  }>;
411
413
 
412
- /**
413
- * This task is useful for local development and testing of both the scaffolder
414
- * and scaffolder templates.
415
- *
416
- * @remarks
417
- *
418
- * This action is not installed by default and should not be installed in
419
- * production, as it writes the files to the local filesystem of the scaffolder.
420
- *
421
- * @public
422
- * @deprecated This action will be removed, prefer testing templates using the template editor instead.
423
- */
424
- export declare function createPublishFileAction(): TemplateAction< {
425
- path: string;
426
- }>;
427
-
428
414
  /**
429
415
  * Creates a new action that initializes a git repository of the content in the workspace
430
416
  * and publishes it to a Gerrit instance.
@@ -472,6 +458,7 @@ export declare function createPublishGithubAction(options: {
472
458
  }): TemplateAction< {
473
459
  repoUrl: string;
474
460
  description?: string | undefined;
461
+ homepage?: string | undefined;
475
462
  access?: string | undefined;
476
463
  defaultBranch?: string | undefined;
477
464
  protectDefaultBranch?: boolean | undefined;
@@ -619,6 +606,8 @@ export declare interface CurrentClaimedTask {
619
606
  export declare class DatabaseTaskStore implements TaskStore {
620
607
  private readonly db;
621
608
  static create(options: DatabaseTaskStoreOptions): Promise<DatabaseTaskStore>;
609
+ private static getClient;
610
+ private static runMigrations;
622
611
  private constructor();
623
612
  list(options: {
624
613
  createdBy?: string;
@@ -629,14 +618,14 @@ export declare class DatabaseTaskStore implements TaskStore {
629
618
  createTask(options: TaskStoreCreateTaskOptions): Promise<TaskStoreCreateTaskResult>;
630
619
  claimTask(): Promise<SerializedTask | undefined>;
631
620
  heartbeatTask(taskId: string): Promise<void>;
632
- listStaleTasks({ timeoutS }: {
621
+ listStaleTasks(options: {
633
622
  timeoutS: number;
634
623
  }): Promise<{
635
624
  tasks: {
636
625
  taskId: string;
637
626
  }[];
638
627
  }>;
639
- completeTask({ taskId, status, eventBody, }: {
628
+ completeTask(options: {
640
629
  taskId: string;
641
630
  status: TaskStatus;
642
631
  eventBody: JsonObject;
@@ -644,7 +633,7 @@ export declare class DatabaseTaskStore implements TaskStore {
644
633
  emitLogEvent(options: TaskStoreEmitOptions<{
645
634
  message: string;
646
635
  } & JsonObject>): Promise<void>;
647
- listEvents({ taskId, after, }: TaskStoreListEventsOptions): Promise<{
636
+ listEvents(options: TaskStoreListEventsOptions): Promise<{
648
637
  events: SerializedTaskEvent[];
649
638
  }>;
650
639
  }
@@ -655,7 +644,7 @@ export declare class DatabaseTaskStore implements TaskStore {
655
644
  * @public
656
645
  */
657
646
  export declare type DatabaseTaskStoreOptions = {
658
- database: Knex;
647
+ database: PluginDatabaseManager | Knex;
659
648
  };
660
649
 
661
650
  /**
@@ -671,7 +660,7 @@ export declare const executeShellCommand: (options: RunCommandOptions) => Promis
671
660
  *
672
661
  * @public
673
662
  */
674
- export declare function fetchContents({ reader, integrations, baseUrl, fetchUrl, outputPath, }: {
663
+ export declare function fetchContents(options: {
675
664
  reader: UrlReader;
676
665
  integrations: ScmIntegrations;
677
666
  baseUrl?: string;
@@ -704,6 +693,7 @@ export declare interface RouterOptions {
704
693
  taskWorkers?: number;
705
694
  taskBroker?: TaskBroker;
706
695
  additionalTemplateFilters?: Record<string, TemplateFilter>;
696
+ identity?: IdentityApi;
707
697
  }
708
698
 
709
699
  /** @public */
@@ -728,6 +718,10 @@ export declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
728
718
  postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
729
719
  }
730
720
 
721
+ /* Excluded from this release type: scaffolderPlugin */
722
+
723
+ /* Excluded from this release type: ScaffolderPluginOptions */
724
+
731
725
  /**
732
726
  * SerializedTask
733
727
  *
package/package.json CHANGED
@@ -1,11 +1,10 @@
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.5.1",
4
+ "version": "1.6.0-next.2",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
8
- "private": false,
9
8
  "publishConfig": {
10
9
  "access": "public",
11
10
  "main": "dist/index.cjs.js",
@@ -35,16 +34,17 @@
35
34
  "build:assets": "node scripts/build-nunjucks.js"
36
35
  },
37
36
  "dependencies": {
38
- "@backstage/backend-common": "^0.15.0",
39
- "@backstage/backend-plugin-api": "^0.1.1",
40
- "@backstage/catalog-client": "^1.0.4",
37
+ "@backstage/backend-common": "^0.15.1-next.2",
38
+ "@backstage/backend-plugin-api": "^0.1.2-next.1",
39
+ "@backstage/catalog-client": "^1.0.5-next.1",
41
40
  "@backstage/catalog-model": "^1.1.0",
42
41
  "@backstage/config": "^1.0.1",
43
42
  "@backstage/errors": "^1.1.0",
44
- "@backstage/integration": "^1.3.0",
45
- "@backstage/plugin-catalog-backend": "^1.3.1",
46
- "@backstage/plugin-catalog-node": "^1.0.1",
47
- "@backstage/plugin-scaffolder-common": "^1.1.2",
43
+ "@backstage/integration": "^1.3.1-next.1",
44
+ "@backstage/plugin-auth-node": "^0.2.5-next.2",
45
+ "@backstage/plugin-catalog-backend": "^1.4.0-next.2",
46
+ "@backstage/plugin-catalog-node": "^1.0.2-next.1",
47
+ "@backstage/plugin-scaffolder-common": "^1.2.0-next.0",
48
48
  "@backstage/types": "^1.0.0",
49
49
  "@gitbeaker/core": "^35.6.0",
50
50
  "@gitbeaker/node": "^35.1.0",
@@ -57,7 +57,7 @@
57
57
  "express": "^4.17.1",
58
58
  "express-promise-router": "^4.1.0",
59
59
  "fs-extra": "10.1.0",
60
- "git-url-parse": "^12.0.0",
60
+ "git-url-parse": "^13.0.0",
61
61
  "globby": "^11.0.0",
62
62
  "isbinaryfile": "^5.0.0",
63
63
  "isomorphic-git": "^1.8.0",
@@ -79,8 +79,8 @@
79
79
  "zod": "^3.11.6"
80
80
  },
81
81
  "devDependencies": {
82
- "@backstage/backend-test-utils": "^0.1.27",
83
- "@backstage/cli": "^0.18.1",
82
+ "@backstage/backend-test-utils": "^0.1.28-next.2",
83
+ "@backstage/cli": "^0.19.0-next.2",
84
84
  "@types/command-exists": "^1.2.0",
85
85
  "@types/fs-extra": "^9.0.1",
86
86
  "@types/git-url-parse": "^9.0.0",
@@ -91,7 +91,7 @@
91
91
  "esbuild": "^0.14.1",
92
92
  "jest-when": "^3.1.0",
93
93
  "mock-fs": "^5.1.0",
94
- "msw": "^0.44.0",
94
+ "msw": "^0.47.0",
95
95
  "supertest": "^6.1.3",
96
96
  "yaml": "^2.0.0"
97
97
  },
@@ -103,5 +103,5 @@
103
103
  "assets"
104
104
  ],
105
105
  "configSchema": "config.d.ts",
106
- "gitHead": "4b66b285740df68df7c7ed6786ef1ccafd896add"
106
+ "gitHead": "24f889f173370f060725fcf9404081e40769beb4"
107
107
  }