@backstage/plugin-scaffolder-backend 1.12.1-next.0 → 1.13.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
@@ -1,11 +1,12 @@
1
1
  /// <reference types="node" />
2
2
  import * as _backstage_plugin_scaffolder_node from '@backstage/plugin-scaffolder-node';
3
3
  import { TemplateAction as TemplateAction$1, TaskSecrets as TaskSecrets$1, ActionContext as ActionContext$1 } from '@backstage/plugin-scaffolder-node';
4
+ import * as _backstage_types from '@backstage/types';
5
+ import { JsonValue, HumanDuration, JsonObject, Observable } from '@backstage/types';
4
6
  import { ScmIntegrations, ScmIntegrationRegistry, GithubCredentialsProvider } from '@backstage/integration';
5
7
  import { CatalogApi } from '@backstage/catalog-client';
6
8
  import { UrlReader, PluginDatabaseManager } from '@backstage/backend-common';
7
9
  import { Config } from '@backstage/config';
8
- import { JsonValue, HumanDuration, JsonObject, Observable } from '@backstage/types';
9
10
  import { Duration } from 'luxon';
10
11
  import { Octokit } from 'octokit';
11
12
  import { createPullRequest } from 'octokit-plugin-create-pull-request';
@@ -13,11 +14,14 @@ import { SpawnOptionsWithoutStdio } from 'child_process';
13
14
  import { Writable } from 'stream';
14
15
  import { Knex } from 'knex';
15
16
  import * as _backstage_plugin_scaffolder_common from '@backstage/plugin-scaffolder-common';
16
- import { TaskSpec } from '@backstage/plugin-scaffolder-common';
17
+ import { TaskSpec, TemplateEntityStepV1beta3, TemplateParametersV1beta3 } from '@backstage/plugin-scaffolder-common';
17
18
  import { Logger } from 'winston';
18
19
  import { PluginTaskScheduler } from '@backstage/backend-tasks';
20
+ import { RESOURCE_TYPE_SCAFFOLDER_TEMPLATE } from '@backstage/plugin-scaffolder-common/alpha';
19
21
  import express from 'express';
20
22
  import { IdentityApi } from '@backstage/plugin-auth-node';
23
+ import { PermissionRuleParams, PermissionEvaluator } from '@backstage/plugin-permission-common';
24
+ import { PermissionRule } from '@backstage/plugin-permission-node';
21
25
  import { Entity } from '@backstage/catalog-model';
22
26
  import { CatalogProcessor, CatalogProcessorEmit } from '@backstage/plugin-catalog-node';
23
27
  import { LocationSpec } from '@backstage/plugin-catalog-common';
@@ -38,16 +42,16 @@ declare function createCatalogRegisterAction(options: {
38
42
  repoContentsUrl: string;
39
43
  catalogInfoPath?: string | undefined;
40
44
  optional?: boolean | undefined;
41
- }>;
45
+ }, _backstage_types.JsonObject>;
42
46
 
43
47
  /**
44
48
  * Writes a catalog descriptor file containing the provided entity to a path in the workspace.
45
49
  * @public
46
50
  */
47
51
  declare function createCatalogWriteAction(): _backstage_plugin_scaffolder_node.TemplateAction<{
52
+ entity: Record<string, any>;
48
53
  filePath?: string | undefined;
49
- entity: {};
50
- }>;
54
+ }, _backstage_types.JsonObject>;
51
55
 
52
56
  /**
53
57
  * Returns entity or entities from the catalog by entity reference(s).
@@ -60,12 +64,15 @@ declare function createFetchCatalogEntityAction(options: {
60
64
  entityRef?: string | undefined;
61
65
  entityRefs?: string[] | undefined;
62
66
  optional?: boolean | undefined;
67
+ }, {
68
+ entity?: any;
69
+ entities?: any[] | undefined;
63
70
  }>;
64
71
 
65
72
  /** @public */
66
- declare type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
73
+ type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
67
74
  /** @public */
68
- declare type TemplateGlobal = ((...args: JsonValue[]) => JsonValue | undefined) | JsonValue;
75
+ type TemplateGlobal = ((...args: JsonValue[]) => JsonValue | undefined) | JsonValue;
69
76
 
70
77
  /**
71
78
  * The options passed to {@link createBuiltinActions}
@@ -117,7 +124,7 @@ declare const createBuiltinActions: (options: CreateBuiltInActionsOptions) => Te
117
124
  declare function createDebugLogAction(): _backstage_plugin_scaffolder_node.TemplateAction<{
118
125
  message?: string | undefined;
119
126
  listWorkspace?: boolean | undefined;
120
- }>;
127
+ }, _backstage_types.JsonObject>;
121
128
 
122
129
  /**
123
130
  * Waits for a certain period of time.
@@ -131,7 +138,7 @@ declare function createDebugLogAction(): _backstage_plugin_scaffolder_node.Templ
131
138
  */
132
139
  declare function createWaitAction(options?: {
133
140
  maxWaitTime?: Duration | HumanDuration;
134
- }): _backstage_plugin_scaffolder_node.TemplateAction<HumanDuration>;
141
+ }): _backstage_plugin_scaffolder_node.TemplateAction<HumanDuration, _backstage_types.JsonObject>;
135
142
 
136
143
  /**
137
144
  * Downloads content and places it in the workspace, or optionally
@@ -144,7 +151,20 @@ declare function createFetchPlainAction(options: {
144
151
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
145
152
  url: string;
146
153
  targetPath?: string | undefined;
147
- }>;
154
+ }, _backstage_types.JsonObject>;
155
+
156
+ /**
157
+ * Downloads content and places it in the workspace, or optionally
158
+ * in a subdirectory specified by the 'targetPath' input option.
159
+ * @public
160
+ */
161
+ declare function createFetchPlainFileAction(options: {
162
+ reader: UrlReader;
163
+ integrations: ScmIntegrations;
164
+ }): _backstage_plugin_scaffolder_node.TemplateAction<{
165
+ url: string;
166
+ targetPath: string;
167
+ }, _backstage_types.JsonObject>;
148
168
 
149
169
  /**
150
170
  * Downloads a skeleton, templates variables into file and directory names and content.
@@ -170,7 +190,7 @@ declare function createFetchTemplateAction(options: {
170
190
  copyWithoutTemplating?: string[] | undefined;
171
191
  cookiecutterCompat?: boolean | undefined;
172
192
  replace?: boolean | undefined;
173
- }>;
193
+ }, _backstage_types.JsonObject>;
174
194
 
175
195
  /**
176
196
  * A helper function that reads the contents of a directory from the given URL.
@@ -192,7 +212,7 @@ declare function fetchContents(options: {
192
212
  */
193
213
  declare const createFilesystemDeleteAction: () => _backstage_plugin_scaffolder_node.TemplateAction<{
194
214
  files: string[];
195
- }>;
215
+ }, _backstage_types.JsonObject>;
196
216
 
197
217
  /**
198
218
  * Creates a new action that allows renames of files and directories in the workspace.
@@ -204,7 +224,7 @@ declare const createFilesystemRenameAction: () => _backstage_plugin_scaffolder_n
204
224
  to: string;
205
225
  overwrite?: boolean;
206
226
  }>;
207
- }>;
227
+ }, _backstage_types.JsonObject>;
208
228
 
209
229
  /**
210
230
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -223,7 +243,7 @@ declare function createPublishAzureAction(options: {
223
243
  gitCommitMessage?: string | undefined;
224
244
  gitAuthorName?: string | undefined;
225
245
  gitAuthorEmail?: string | undefined;
226
- }>;
246
+ }, _backstage_types.JsonObject>;
227
247
 
228
248
  /**
229
249
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -245,7 +265,7 @@ declare function createPublishBitbucketAction(options: {
245
265
  gitCommitMessage?: string | undefined;
246
266
  gitAuthorName?: string | undefined;
247
267
  gitAuthorEmail?: string | undefined;
248
- }>;
268
+ }, _backstage_types.JsonObject>;
249
269
 
250
270
  /**
251
271
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -262,7 +282,7 @@ declare function createPublishBitbucketCloudAction(options: {
262
282
  repoVisibility?: "private" | "public" | undefined;
263
283
  sourcePath?: string | undefined;
264
284
  token?: string | undefined;
265
- }>;
285
+ }, _backstage_types.JsonObject>;
266
286
 
267
287
  /**
268
288
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -283,7 +303,7 @@ declare function createPublishBitbucketServerAction(options: {
283
303
  gitCommitMessage?: string | undefined;
284
304
  gitAuthorName?: string | undefined;
285
305
  gitAuthorEmail?: string | undefined;
286
- }>;
306
+ }, _backstage_types.JsonObject>;
287
307
 
288
308
  /**
289
309
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -301,7 +321,7 @@ declare function createPublishGerritAction(options: {
301
321
  gitAuthorName?: string | undefined;
302
322
  gitAuthorEmail?: string | undefined;
303
323
  sourcePath?: string | undefined;
304
- }>;
324
+ }, _backstage_types.JsonObject>;
305
325
 
306
326
  /**
307
327
  * Creates a new action that creates a Gerrit review
@@ -317,7 +337,7 @@ declare function createPublishGerritReviewAction(options: {
317
337
  gitCommitMessage?: string | undefined;
318
338
  gitAuthorName?: string | undefined;
319
339
  gitAuthorEmail?: string | undefined;
320
- }>;
340
+ }, _backstage_types.JsonObject>;
321
341
 
322
342
  /**
323
343
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -382,10 +402,10 @@ declare function createPublishGithubAction(options: {
382
402
  token?: string | undefined;
383
403
  topics?: string[] | undefined;
384
404
  requiredCommitSigning?: boolean | undefined;
385
- }>;
405
+ }, _backstage_types.JsonObject>;
386
406
 
387
407
  /** @public */
388
- declare type OctokitWithPullRequestPluginClient = Octokit & {
408
+ type OctokitWithPullRequestPluginClient = Octokit & {
389
409
  createPullRequest(options: createPullRequest.Options): Promise<{
390
410
  data: {
391
411
  html_url: string;
@@ -397,7 +417,7 @@ declare type OctokitWithPullRequestPluginClient = Octokit & {
397
417
  * The options passed to the client factory function.
398
418
  * @public
399
419
  */
400
- declare type CreateGithubPullRequestClientFactoryInput = {
420
+ type CreateGithubPullRequestClientFactoryInput = {
401
421
  integrations: ScmIntegrationRegistry;
402
422
  githubCredentialsProvider?: GithubCredentialsProvider;
403
423
  host: string;
@@ -438,7 +458,7 @@ declare const createPublishGithubPullRequestAction: (options: CreateGithubPullRe
438
458
  token?: string | undefined;
439
459
  reviewers?: string[] | undefined;
440
460
  teamReviewers?: string[] | undefined;
441
- }>;
461
+ }, _backstage_types.JsonObject>;
442
462
 
443
463
  /**
444
464
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -460,7 +480,7 @@ declare function createPublishGitlabAction(options: {
460
480
  gitAuthorEmail?: string | undefined;
461
481
  setUserAsOwner?: boolean | undefined;
462
482
  topics?: string[] | undefined;
463
- }>;
483
+ }, _backstage_types.JsonObject>;
464
484
 
465
485
  /**
466
486
  * Create a new action that creates a gitlab merge request.
@@ -482,7 +502,7 @@ declare const createPublishGitlabMergeRequestAction: (options: {
482
502
  projectid?: string | undefined;
483
503
  removeSourceBranch?: boolean | undefined;
484
504
  assignee?: string | undefined;
485
- }>;
505
+ }, _backstage_types.JsonObject>;
486
506
 
487
507
  /**
488
508
  * Creates a new action that dispatches a GitHub Action workflow for a given branch or tag.
@@ -499,7 +519,7 @@ declare function createGithubActionsDispatchAction(options: {
499
519
  [key: string]: string;
500
520
  } | undefined;
501
521
  token?: string | undefined;
502
- }>;
522
+ }, _backstage_types.JsonObject>;
503
523
 
504
524
  /**
505
525
  * Adds labels to a pull request or issue on GitHub
@@ -513,7 +533,7 @@ declare function createGithubIssuesLabelAction(options: {
513
533
  number: number;
514
534
  labels: string[];
515
535
  token?: string | undefined;
516
- }>;
536
+ }, _backstage_types.JsonObject>;
517
537
 
518
538
  /**
519
539
  * Creates a new action that initializes a git repository
@@ -570,7 +590,7 @@ declare function createGithubRepoCreateAction(options: {
570
590
  token?: string | undefined;
571
591
  topics?: string[] | undefined;
572
592
  requireCommitSigning?: boolean | undefined;
573
- }>;
593
+ }, _backstage_types.JsonObject>;
574
594
 
575
595
  /**
576
596
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -610,7 +630,7 @@ declare function createGithubRepoPushAction(options: {
610
630
  sourcePath?: string | undefined;
611
631
  token?: string | undefined;
612
632
  requiredCommitSigning?: boolean | undefined;
613
- }>;
633
+ }, _backstage_types.JsonObject>;
614
634
 
615
635
  /**
616
636
  * Creates new action that creates a webhook for a repository on GitHub.
@@ -629,10 +649,10 @@ declare function createGithubWebhookAction(options: {
629
649
  contentType?: "form" | "json" | undefined;
630
650
  insecureSsl?: boolean | undefined;
631
651
  token?: string | undefined;
632
- }>;
652
+ }, _backstage_types.JsonObject>;
633
653
 
634
654
  /** @public */
635
- declare type RunCommandOptions = {
655
+ type RunCommandOptions = {
636
656
  /** command to run */
637
657
  command: string;
638
658
  /** arguments to pass the command */
@@ -665,19 +685,19 @@ declare class TemplateActionRegistry {
665
685
  *
666
686
  * @public
667
687
  */
668
- declare type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing';
688
+ type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing';
669
689
  /**
670
690
  * The state of a completed task.
671
691
  *
672
692
  * @public
673
693
  */
674
- declare type TaskCompletionState = 'failed' | 'completed';
694
+ type TaskCompletionState = 'failed' | 'completed';
675
695
  /**
676
696
  * SerializedTask
677
697
  *
678
698
  * @public
679
699
  */
680
- declare type SerializedTask = {
700
+ type SerializedTask = {
681
701
  id: string;
682
702
  spec: TaskSpec;
683
703
  status: TaskStatus;
@@ -691,13 +711,13 @@ declare type SerializedTask = {
691
711
  *
692
712
  * @public
693
713
  */
694
- declare type TaskEventType = 'completion' | 'log' | 'cancelled';
714
+ type TaskEventType = 'completion' | 'log' | 'cancelled';
695
715
  /**
696
716
  * SerializedTaskEvent
697
717
  *
698
718
  * @public
699
719
  */
700
- declare type SerializedTaskEvent = {
720
+ type SerializedTaskEvent = {
701
721
  id: number;
702
722
  taskId: string;
703
723
  body: JsonObject;
@@ -709,7 +729,7 @@ declare type SerializedTaskEvent = {
709
729
  *
710
730
  * @public
711
731
  */
712
- declare type TaskBrokerDispatchResult = {
732
+ type TaskBrokerDispatchResult = {
713
733
  taskId: string;
714
734
  };
715
735
  /**
@@ -718,7 +738,7 @@ declare type TaskBrokerDispatchResult = {
718
738
  *
719
739
  * @public
720
740
  */
721
- declare type TaskBrokerDispatchOptions = {
741
+ type TaskBrokerDispatchOptions = {
722
742
  spec: TaskSpec;
723
743
  secrets?: TaskSecrets$1;
724
744
  createdBy?: string;
@@ -769,7 +789,7 @@ interface TaskBroker {
769
789
  *
770
790
  * @public
771
791
  */
772
- declare type TaskStoreEmitOptions<TBody = JsonObject> = {
792
+ type TaskStoreEmitOptions<TBody = JsonObject> = {
773
793
  taskId: string;
774
794
  body: TBody;
775
795
  };
@@ -778,7 +798,7 @@ declare type TaskStoreEmitOptions<TBody = JsonObject> = {
778
798
  *
779
799
  * @public
780
800
  */
781
- declare type TaskStoreListEventsOptions = {
801
+ type TaskStoreListEventsOptions = {
782
802
  taskId: string;
783
803
  after?: number | undefined;
784
804
  };
@@ -787,14 +807,14 @@ declare type TaskStoreListEventsOptions = {
787
807
  *
788
808
  * @public
789
809
  */
790
- declare type TaskStoreShutDownTaskOptions = {
810
+ type TaskStoreShutDownTaskOptions = {
791
811
  taskId: string;
792
812
  };
793
813
  /**
794
814
  * The options passed to {@link TaskStore.createTask}
795
815
  * @public
796
816
  */
797
- declare type TaskStoreCreateTaskOptions = {
817
+ type TaskStoreCreateTaskOptions = {
798
818
  spec: TaskSpec;
799
819
  createdBy?: string;
800
820
  secrets?: TaskSecrets$1;
@@ -803,7 +823,7 @@ declare type TaskStoreCreateTaskOptions = {
803
823
  * The response from {@link TaskStore.createTask}
804
824
  * @public
805
825
  */
806
- declare type TaskStoreCreateTaskResult = {
826
+ type TaskStoreCreateTaskResult = {
807
827
  taskId: string;
808
828
  };
809
829
  /**
@@ -846,7 +866,7 @@ interface TaskStore {
846
866
  *
847
867
  * @public
848
868
  */
849
- declare type DatabaseTaskStoreOptions = {
869
+ type DatabaseTaskStoreOptions = {
850
870
  database: PluginDatabaseManager | Knex;
851
871
  };
852
872
  /**
@@ -946,7 +966,7 @@ interface CurrentClaimedTask {
946
966
  *
947
967
  * @public
948
968
  */
949
- declare type CreateWorkerOptions = {
969
+ type CreateWorkerOptions = {
950
970
  taskBroker: TaskBroker;
951
971
  actionRegistry: TemplateActionRegistry;
952
972
  integrations: ScmIntegrations;
@@ -983,6 +1003,11 @@ declare class TaskWorker {
983
1003
  runOneTask(task: TaskContext): Promise<void>;
984
1004
  }
985
1005
 
1006
+ /**
1007
+ *
1008
+ * @public
1009
+ */
1010
+ type TemplatePermissionRuleInput<TParams extends PermissionRuleParams = PermissionRuleParams> = PermissionRule<TemplateEntityStepV1beta3 | TemplateParametersV1beta3, {}, typeof RESOURCE_TYPE_SCAFFOLDER_TEMPLATE, TParams>;
986
1011
  /**
987
1012
  * RouterOptions
988
1013
  *
@@ -1009,6 +1034,8 @@ interface RouterOptions {
1009
1034
  taskBroker?: TaskBroker;
1010
1035
  additionalTemplateFilters?: Record<string, TemplateFilter>;
1011
1036
  additionalTemplateGlobals?: Record<string, TemplateGlobal>;
1037
+ permissionApi?: PermissionEvaluator;
1038
+ permissionRules?: TemplatePermissionRuleInput[];
1012
1039
  identity?: IdentityApi;
1013
1040
  }
1014
1041
  /**
@@ -1029,21 +1056,21 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
1029
1056
  * @public
1030
1057
  * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead
1031
1058
  */
1032
- declare type ActionContext<TInput extends JsonObject> = ActionContext$1<TInput>;
1059
+ type ActionContext<TInput extends JsonObject> = ActionContext$1<TInput>;
1033
1060
  /**
1034
1061
  * @public
1035
1062
  * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead
1036
1063
  */
1037
- declare const createTemplateAction: <TParams, TInputSchema extends zod.ZodType<any, zod.ZodTypeDef, any> | jsonschema.Schema = {}, TOutputSchema extends zod.ZodType<any, zod.ZodTypeDef, any> | jsonschema.Schema = {}, TActionInput = TInputSchema extends zod.ZodType<any, any, infer IReturn> ? IReturn : TParams>(action: _backstage_plugin_scaffolder_node.TemplateActionOptions<TActionInput, TInputSchema, TOutputSchema>) => TemplateAction$1<TActionInput>;
1064
+ declare const createTemplateAction: <TInputParams extends JsonObject = JsonObject, TOutputParams extends JsonObject = JsonObject, TInputSchema extends zod.ZodType<any, zod.ZodTypeDef, any> | jsonschema.Schema = {}, TOutputSchema extends zod.ZodType<any, zod.ZodTypeDef, any> | jsonschema.Schema = {}, TActionInput extends JsonObject = TInputSchema extends zod.ZodType<any, any, infer IReturn> ? IReturn : TInputParams, TActionOutput extends JsonObject = TOutputSchema extends zod.ZodType<any, any, infer IReturn_1> ? IReturn_1 : TOutputParams>(action: _backstage_plugin_scaffolder_node.TemplateActionOptions<TActionInput, TActionOutput, TInputSchema, TOutputSchema>) => TemplateAction$1<TActionInput, TActionOutput>;
1038
1065
  /**
1039
1066
  * @public
1040
1067
  * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead
1041
1068
  */
1042
- declare type TaskSecrets = TaskSecrets$1;
1069
+ type TaskSecrets = TaskSecrets$1;
1043
1070
  /**
1044
1071
  * @public
1045
1072
  * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead
1046
1073
  */
1047
- declare type TemplateAction<TInput extends JsonObject> = TemplateAction$1<TInput>;
1074
+ type TemplateAction<TInput extends JsonObject> = TemplateAction$1<TInput>;
1048
1075
 
1049
- export { ActionContext, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskStoreShutDownTaskOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, TemplateGlobal, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchCatalogEntityAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishGerritAction, createPublishGerritReviewAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, createWaitAction, executeShellCommand, fetchContents };
1076
+ export { ActionContext, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskStoreShutDownTaskOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, TemplateGlobal, TemplatePermissionRuleInput, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchCatalogEntityAction, createFetchPlainAction, createFetchPlainFileAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishGerritAction, createPublishGerritReviewAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, createWaitAction, executeShellCommand, fetchContents };
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.12.1-next.0",
4
+ "version": "1.13.0-next.2",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -44,20 +44,22 @@
44
44
  "build:assets": "node scripts/build-nunjucks.js"
45
45
  },
46
46
  "dependencies": {
47
- "@backstage/backend-common": "^0.18.4-next.0",
48
- "@backstage/backend-plugin-api": "^0.5.1-next.0",
49
- "@backstage/backend-tasks": "^0.5.1-next.0",
50
- "@backstage/catalog-client": "^1.4.0",
47
+ "@backstage/backend-common": "^0.18.4-next.2",
48
+ "@backstage/backend-plugin-api": "^0.5.1-next.2",
49
+ "@backstage/backend-tasks": "^0.5.1-next.2",
50
+ "@backstage/catalog-client": "^1.4.1-next.0",
51
51
  "@backstage/catalog-model": "^1.2.1",
52
52
  "@backstage/config": "^1.0.7",
53
53
  "@backstage/errors": "^1.1.5",
54
- "@backstage/integration": "^1.4.3",
55
- "@backstage/plugin-auth-node": "^0.2.13-next.0",
56
- "@backstage/plugin-catalog-backend": "^1.8.1-next.0",
57
- "@backstage/plugin-catalog-common": "^1.0.12",
58
- "@backstage/plugin-catalog-node": "^1.3.5-next.0",
59
- "@backstage/plugin-scaffolder-common": "^1.2.7-next.0",
60
- "@backstage/plugin-scaffolder-node": "^0.1.2-next.0",
54
+ "@backstage/integration": "^1.4.4-next.0",
55
+ "@backstage/plugin-auth-node": "^0.2.13-next.2",
56
+ "@backstage/plugin-catalog-backend": "^1.8.1-next.2",
57
+ "@backstage/plugin-catalog-common": "^1.0.13-next.0",
58
+ "@backstage/plugin-catalog-node": "^1.3.5-next.2",
59
+ "@backstage/plugin-permission-common": "^0.7.5-next.0",
60
+ "@backstage/plugin-permission-node": "^0.7.7-next.2",
61
+ "@backstage/plugin-scaffolder-common": "^1.2.7-next.1",
62
+ "@backstage/plugin-scaffolder-node": "^0.1.2-next.2",
61
63
  "@backstage/types": "^1.0.2",
62
64
  "@gitbeaker/core": "^35.6.0",
63
65
  "@gitbeaker/node": "^35.1.0",
@@ -92,11 +94,11 @@
92
94
  "winston": "^3.2.1",
93
95
  "yaml": "^2.0.0",
94
96
  "zen-observable": "^0.10.0",
95
- "zod": "~3.18.0"
97
+ "zod": "^3.21.4"
96
98
  },
97
99
  "devDependencies": {
98
- "@backstage/backend-test-utils": "^0.1.36-next.0",
99
- "@backstage/cli": "^0.22.6-next.0",
100
+ "@backstage/backend-test-utils": "^0.1.36-next.2",
101
+ "@backstage/cli": "^0.22.6-next.2",
100
102
  "@types/command-exists": "^1.2.0",
101
103
  "@types/fs-extra": "^9.0.1",
102
104
  "@types/git-url-parse": "^9.0.0",