@backstage/plugin-scaffolder-backend 1.15.2-next.2 → 1.16.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-82f18a18.cjs.js');
5
+ var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-4b7489dd.cjs.js');
6
6
  var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node');
7
7
  require('@backstage/catalog-model');
8
8
  require('@backstage/errors');
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _backstage_plugin_scaffolder_node from '@backstage/plugin-scaffolder-node';
2
- import { TemplateAction as TemplateAction$1, TaskSecrets as TaskSecrets$1, ActionContext as ActionContext$1, ExecuteShellCommandOptions, executeShellCommand as executeShellCommand$1, fetchContents as fetchContents$1 } from '@backstage/plugin-scaffolder-node';
2
+ import { TemplateFilter as TemplateFilter$1, TemplateGlobal as TemplateGlobal$1, TemplateAction as TemplateAction$1, TaskStatus as TaskStatus$1, TaskCompletionState as TaskCompletionState$1, SerializedTask as SerializedTask$1, TaskEventType as TaskEventType$1, SerializedTaskEvent as SerializedTaskEvent$1, TaskBrokerDispatchResult as TaskBrokerDispatchResult$1, TaskBrokerDispatchOptions as TaskBrokerDispatchOptions$1, TaskContext as TaskContext$1, TaskBroker as TaskBroker$1, TaskSecrets as TaskSecrets$1, ActionContext as ActionContext$1, ExecuteShellCommandOptions, executeShellCommand as executeShellCommand$1, fetchContents as fetchContents$1 } from '@backstage/plugin-scaffolder-node';
3
3
  import * as _backstage_types from '@backstage/types';
4
- import { JsonValue, HumanDuration, JsonObject, Observable } from '@backstage/types';
4
+ import { HumanDuration, JsonObject } from '@backstage/types';
5
5
  import { ScmIntegrations, ScmIntegrationRegistry, GithubCredentialsProvider } from '@backstage/integration';
6
6
  import { CatalogApi } from '@backstage/catalog-client';
7
7
  import { UrlReader, PluginDatabaseManager } from '@backstage/backend-common';
@@ -68,10 +68,16 @@ declare function createFetchCatalogEntityAction(options: {
68
68
  entities?: any[] | undefined;
69
69
  }>;
70
70
 
71
- /** @public */
72
- type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
73
- /** @public */
74
- type TemplateGlobal = ((...args: JsonValue[]) => JsonValue | undefined) | JsonValue;
71
+ /**
72
+ * @public
73
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
74
+ */
75
+ type TemplateFilter = TemplateFilter$1;
76
+ /**
77
+ * @public
78
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
79
+ */
80
+ type TemplateGlobal = TemplateGlobal$1;
75
81
 
76
82
  /**
77
83
  * The options passed to {@link createBuiltinActions}
@@ -725,106 +731,66 @@ declare class TemplateActionRegistry {
725
731
  * The status of each step of the Task
726
732
  *
727
733
  * @public
734
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
728
735
  */
729
- type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing';
736
+ type TaskStatus = TaskStatus$1;
730
737
  /**
731
738
  * The state of a completed task.
732
739
  *
733
740
  * @public
741
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
734
742
  */
735
- type TaskCompletionState = 'failed' | 'completed';
743
+ type TaskCompletionState = TaskCompletionState$1;
736
744
  /**
737
745
  * SerializedTask
738
746
  *
739
747
  * @public
748
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
740
749
  */
741
- type SerializedTask = {
742
- id: string;
743
- spec: TaskSpec;
744
- status: TaskStatus;
745
- createdAt: string;
746
- lastHeartbeatAt?: string;
747
- createdBy?: string;
748
- secrets?: TaskSecrets$1;
749
- };
750
+ type SerializedTask = SerializedTask$1;
750
751
  /**
751
752
  * TaskEventType
752
753
  *
753
754
  * @public
755
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
754
756
  */
755
- type TaskEventType = 'completion' | 'log' | 'cancelled';
757
+ type TaskEventType = TaskEventType$1;
756
758
  /**
757
759
  * SerializedTaskEvent
758
760
  *
759
761
  * @public
762
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
760
763
  */
761
- type SerializedTaskEvent = {
762
- id: number;
763
- taskId: string;
764
- body: JsonObject;
765
- type: TaskEventType;
766
- createdAt: string;
767
- };
764
+ type SerializedTaskEvent = SerializedTaskEvent$1;
768
765
  /**
769
- * The result of {@link TaskBroker.dispatch}
766
+ * The result of `TaskBroker.dispatch`.
770
767
  *
771
768
  * @public
769
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
772
770
  */
773
- type TaskBrokerDispatchResult = {
774
- taskId: string;
775
- };
771
+ type TaskBrokerDispatchResult = TaskBrokerDispatchResult$1;
776
772
  /**
777
- * The options passed to {@link TaskBroker.dispatch}
773
+ * The options passed to `TaskBroker.dispatch`.
778
774
  * Currently a spec and optional secrets
779
775
  *
780
776
  * @public
777
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
781
778
  */
782
- type TaskBrokerDispatchOptions = {
783
- spec: TaskSpec;
784
- secrets?: TaskSecrets$1;
785
- createdBy?: string;
786
- };
779
+ type TaskBrokerDispatchOptions = TaskBrokerDispatchOptions$1;
787
780
  /**
788
781
  * Task
789
782
  *
790
783
  * @public
784
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
791
785
  */
792
- interface TaskContext {
793
- cancelSignal: AbortSignal;
794
- spec: TaskSpec;
795
- secrets?: TaskSecrets$1;
796
- createdBy?: string;
797
- done: boolean;
798
- isDryRun?: boolean;
799
- complete(result: TaskCompletionState, metadata?: JsonObject): Promise<void>;
800
- emitLog(message: string, logMetadata?: JsonObject): Promise<void>;
801
- getWorkspaceName(): Promise<string>;
802
- }
786
+ type TaskContext = TaskContext$1;
803
787
  /**
804
788
  * TaskBroker
805
789
  *
806
790
  * @public
791
+ * @deprecated Import from `@backstage/plugin-scaffolder-node` instead.
807
792
  */
808
- interface TaskBroker {
809
- cancel?(taskId: string): Promise<void>;
810
- claim(): Promise<TaskContext>;
811
- dispatch(options: TaskBrokerDispatchOptions): Promise<TaskBrokerDispatchResult>;
812
- vacuumTasks(options: {
813
- timeoutS: number;
814
- }): Promise<void>;
815
- event$(options: {
816
- taskId: string;
817
- after: number | undefined;
818
- }): Observable<{
819
- events: SerializedTaskEvent[];
820
- }>;
821
- get(taskId: string): Promise<SerializedTask>;
822
- list?(options?: {
823
- createdBy?: string;
824
- }): Promise<{
825
- tasks: SerializedTask[];
826
- }>;
827
- }
793
+ type TaskBroker = TaskBroker$1;
828
794
  /**
829
795
  * TaskStoreEmitOptions
830
796
  *
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.15.2-next.2",
4
+ "version": "1.16.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.19.2-next.2",
48
- "@backstage/backend-plugin-api": "^0.6.0-next.2",
49
- "@backstage/backend-tasks": "^0.5.5-next.2",
47
+ "@backstage/backend-common": "^0.19.2",
48
+ "@backstage/backend-plugin-api": "^0.6.0",
49
+ "@backstage/backend-tasks": "^0.5.5",
50
50
  "@backstage/catalog-client": "^1.4.3",
51
51
  "@backstage/catalog-model": "^1.4.1",
52
52
  "@backstage/config": "^1.0.8",
53
53
  "@backstage/errors": "^1.2.1",
54
- "@backstage/integration": "^1.5.1",
55
- "@backstage/plugin-auth-node": "^0.2.17-next.2",
56
- "@backstage/plugin-catalog-backend": "^1.12.0-next.2",
54
+ "@backstage/integration": "^1.6.0",
55
+ "@backstage/plugin-auth-node": "^0.2.17",
56
+ "@backstage/plugin-catalog-backend": "^1.12.0",
57
57
  "@backstage/plugin-catalog-common": "^1.0.15",
58
- "@backstage/plugin-catalog-node": "^1.4.1-next.2",
58
+ "@backstage/plugin-catalog-node": "^1.4.1",
59
59
  "@backstage/plugin-permission-common": "^0.7.7",
60
- "@backstage/plugin-permission-node": "^0.7.11-next.2",
61
- "@backstage/plugin-scaffolder-common": "^1.3.2",
62
- "@backstage/plugin-scaffolder-node": "^0.1.6-next.2",
60
+ "@backstage/plugin-permission-node": "^0.7.11",
61
+ "@backstage/plugin-scaffolder-common": "^1.4.0",
62
+ "@backstage/plugin-scaffolder-node": "^0.2.0",
63
63
  "@backstage/types": "^1.1.0",
64
64
  "@gitbeaker/core": "^35.6.0",
65
65
  "@gitbeaker/node": "^35.1.0",
@@ -98,8 +98,8 @@
98
98
  "zod": "^3.21.4"
99
99
  },
100
100
  "devDependencies": {
101
- "@backstage/backend-test-utils": "^0.2.0-next.2",
102
- "@backstage/cli": "^0.22.10-next.1",
101
+ "@backstage/backend-test-utils": "^0.2.0",
102
+ "@backstage/cli": "^0.22.10",
103
103
  "@types/command-exists": "^1.2.0",
104
104
  "@types/fs-extra": "^9.0.1",
105
105
  "@types/git-url-parse": "^9.0.0",
@@ -108,7 +108,7 @@
108
108
  "@types/nunjucks": "^3.1.4",
109
109
  "@types/supertest": "^2.0.8",
110
110
  "@types/zen-observable": "^0.8.0",
111
- "esbuild": "^0.18.0",
111
+ "esbuild": "^0.19.0",
112
112
  "jest-when": "^3.1.0",
113
113
  "mock-fs": "^5.1.0",
114
114
  "msw": "^1.0.0",