@backstage/plugin-scaffolder-backend 1.5.0 → 1.6.0-next.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/CHANGELOG.md +34 -0
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +9 -21
- package/dist/index.beta.d.ts +9 -21
- package/dist/index.cjs.js +57 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -21
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -264,6 +264,7 @@ export declare function createGithubRepoCreateAction(options: {
|
|
|
264
264
|
}): TemplateAction< {
|
|
265
265
|
repoUrl: string;
|
|
266
266
|
description?: string | undefined;
|
|
267
|
+
homepage?: string | undefined;
|
|
267
268
|
access?: string | undefined;
|
|
268
269
|
deleteBranchOnMerge?: boolean | undefined;
|
|
269
270
|
gitAuthorName?: string | undefined;
|
|
@@ -409,22 +410,6 @@ enableLFS?: boolean | undefined;
|
|
|
409
410
|
token?: string | undefined;
|
|
410
411
|
}>;
|
|
411
412
|
|
|
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
413
|
/**
|
|
429
414
|
* Creates a new action that initializes a git repository of the content in the workspace
|
|
430
415
|
* and publishes it to a Gerrit instance.
|
|
@@ -472,6 +457,7 @@ export declare function createPublishGithubAction(options: {
|
|
|
472
457
|
}): TemplateAction< {
|
|
473
458
|
repoUrl: string;
|
|
474
459
|
description?: string | undefined;
|
|
460
|
+
homepage?: string | undefined;
|
|
475
461
|
access?: string | undefined;
|
|
476
462
|
defaultBranch?: string | undefined;
|
|
477
463
|
protectDefaultBranch?: boolean | undefined;
|
|
@@ -619,6 +605,8 @@ export declare interface CurrentClaimedTask {
|
|
|
619
605
|
export declare class DatabaseTaskStore implements TaskStore {
|
|
620
606
|
private readonly db;
|
|
621
607
|
static create(options: DatabaseTaskStoreOptions): Promise<DatabaseTaskStore>;
|
|
608
|
+
private static getClient;
|
|
609
|
+
private static runMigrations;
|
|
622
610
|
private constructor();
|
|
623
611
|
list(options: {
|
|
624
612
|
createdBy?: string;
|
|
@@ -629,14 +617,14 @@ export declare class DatabaseTaskStore implements TaskStore {
|
|
|
629
617
|
createTask(options: TaskStoreCreateTaskOptions): Promise<TaskStoreCreateTaskResult>;
|
|
630
618
|
claimTask(): Promise<SerializedTask | undefined>;
|
|
631
619
|
heartbeatTask(taskId: string): Promise<void>;
|
|
632
|
-
listStaleTasks(
|
|
620
|
+
listStaleTasks(options: {
|
|
633
621
|
timeoutS: number;
|
|
634
622
|
}): Promise<{
|
|
635
623
|
tasks: {
|
|
636
624
|
taskId: string;
|
|
637
625
|
}[];
|
|
638
626
|
}>;
|
|
639
|
-
completeTask(
|
|
627
|
+
completeTask(options: {
|
|
640
628
|
taskId: string;
|
|
641
629
|
status: TaskStatus;
|
|
642
630
|
eventBody: JsonObject;
|
|
@@ -644,7 +632,7 @@ export declare class DatabaseTaskStore implements TaskStore {
|
|
|
644
632
|
emitLogEvent(options: TaskStoreEmitOptions<{
|
|
645
633
|
message: string;
|
|
646
634
|
} & JsonObject>): Promise<void>;
|
|
647
|
-
listEvents(
|
|
635
|
+
listEvents(options: TaskStoreListEventsOptions): Promise<{
|
|
648
636
|
events: SerializedTaskEvent[];
|
|
649
637
|
}>;
|
|
650
638
|
}
|
|
@@ -655,7 +643,7 @@ export declare class DatabaseTaskStore implements TaskStore {
|
|
|
655
643
|
* @public
|
|
656
644
|
*/
|
|
657
645
|
export declare type DatabaseTaskStoreOptions = {
|
|
658
|
-
database: Knex;
|
|
646
|
+
database: PluginDatabaseManager | Knex;
|
|
659
647
|
};
|
|
660
648
|
|
|
661
649
|
/**
|
|
@@ -671,7 +659,7 @@ export declare const executeShellCommand: (options: RunCommandOptions) => Promis
|
|
|
671
659
|
*
|
|
672
660
|
* @public
|
|
673
661
|
*/
|
|
674
|
-
export declare function fetchContents(
|
|
662
|
+
export declare function fetchContents(options: {
|
|
675
663
|
reader: UrlReader;
|
|
676
664
|
integrations: ScmIntegrations;
|
|
677
665
|
baseUrl?: string;
|
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.
|
|
4
|
+
"version": "1.6.0-next.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@backstage/backend-common": "^0.15.0",
|
|
39
|
-
"@backstage/backend-plugin-api": "^0.1.
|
|
40
|
-
"@backstage/catalog-client": "^1.0.
|
|
38
|
+
"@backstage/backend-common": "^0.15.1-next.0",
|
|
39
|
+
"@backstage/backend-plugin-api": "^0.1.2-next.0",
|
|
40
|
+
"@backstage/catalog-client": "^1.0.5-next.0",
|
|
41
41
|
"@backstage/catalog-model": "^1.1.0",
|
|
42
42
|
"@backstage/config": "^1.0.1",
|
|
43
43
|
"@backstage/errors": "^1.1.0",
|
|
44
|
-
"@backstage/integration": "^1.3.0",
|
|
45
|
-
"@backstage/plugin-catalog-backend": "^1.3.
|
|
46
|
-
"@backstage/plugin-catalog-node": "^1.0.
|
|
47
|
-
"@backstage/plugin-scaffolder-common": "^1.
|
|
44
|
+
"@backstage/integration": "^1.3.1-next.0",
|
|
45
|
+
"@backstage/plugin-catalog-backend": "^1.3.2-next.0",
|
|
46
|
+
"@backstage/plugin-catalog-node": "^1.0.2-next.0",
|
|
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",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"zod": "^3.11.6"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@backstage/backend-test-utils": "^0.1.
|
|
83
|
-
"@backstage/cli": "^0.18.
|
|
82
|
+
"@backstage/backend-test-utils": "^0.1.28-next.0",
|
|
83
|
+
"@backstage/cli": "^0.18.2-next.0",
|
|
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.
|
|
94
|
+
"msw": "^0.45.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": "
|
|
106
|
+
"gitHead": "c6c0b1978a7ab4d29d813996c56beb7e6b48a268"
|
|
107
107
|
}
|