@backstage/plugin-scaffolder-backend 1.13.0-next.1 → 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.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-9c517d79.cjs.js');
5
+ var ScaffolderEntitiesProcessor = require('./cjs/ScaffolderEntitiesProcessor-21c74c4d.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
@@ -49,9 +49,7 @@ declare function createCatalogRegisterAction(options: {
49
49
  * @public
50
50
  */
51
51
  declare function createCatalogWriteAction(): _backstage_plugin_scaffolder_node.TemplateAction<{
52
- entity: {} & {
53
- [k: string]: unknown;
54
- };
52
+ entity: Record<string, any>;
55
53
  filePath?: string | undefined;
56
54
  }, _backstage_types.JsonObject>;
57
55
 
@@ -72,9 +70,9 @@ declare function createFetchCatalogEntityAction(options: {
72
70
  }>;
73
71
 
74
72
  /** @public */
75
- declare type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
73
+ type TemplateFilter = (...args: JsonValue[]) => JsonValue | undefined;
76
74
  /** @public */
77
- declare type TemplateGlobal = ((...args: JsonValue[]) => JsonValue | undefined) | JsonValue;
75
+ type TemplateGlobal = ((...args: JsonValue[]) => JsonValue | undefined) | JsonValue;
78
76
 
79
77
  /**
80
78
  * The options passed to {@link createBuiltinActions}
@@ -407,7 +405,7 @@ declare function createPublishGithubAction(options: {
407
405
  }, _backstage_types.JsonObject>;
408
406
 
409
407
  /** @public */
410
- declare type OctokitWithPullRequestPluginClient = Octokit & {
408
+ type OctokitWithPullRequestPluginClient = Octokit & {
411
409
  createPullRequest(options: createPullRequest.Options): Promise<{
412
410
  data: {
413
411
  html_url: string;
@@ -419,7 +417,7 @@ declare type OctokitWithPullRequestPluginClient = Octokit & {
419
417
  * The options passed to the client factory function.
420
418
  * @public
421
419
  */
422
- declare type CreateGithubPullRequestClientFactoryInput = {
420
+ type CreateGithubPullRequestClientFactoryInput = {
423
421
  integrations: ScmIntegrationRegistry;
424
422
  githubCredentialsProvider?: GithubCredentialsProvider;
425
423
  host: string;
@@ -654,7 +652,7 @@ declare function createGithubWebhookAction(options: {
654
652
  }, _backstage_types.JsonObject>;
655
653
 
656
654
  /** @public */
657
- declare type RunCommandOptions = {
655
+ type RunCommandOptions = {
658
656
  /** command to run */
659
657
  command: string;
660
658
  /** arguments to pass the command */
@@ -687,19 +685,19 @@ declare class TemplateActionRegistry {
687
685
  *
688
686
  * @public
689
687
  */
690
- declare type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing';
688
+ type TaskStatus = 'cancelled' | 'completed' | 'failed' | 'open' | 'processing';
691
689
  /**
692
690
  * The state of a completed task.
693
691
  *
694
692
  * @public
695
693
  */
696
- declare type TaskCompletionState = 'failed' | 'completed';
694
+ type TaskCompletionState = 'failed' | 'completed';
697
695
  /**
698
696
  * SerializedTask
699
697
  *
700
698
  * @public
701
699
  */
702
- declare type SerializedTask = {
700
+ type SerializedTask = {
703
701
  id: string;
704
702
  spec: TaskSpec;
705
703
  status: TaskStatus;
@@ -713,13 +711,13 @@ declare type SerializedTask = {
713
711
  *
714
712
  * @public
715
713
  */
716
- declare type TaskEventType = 'completion' | 'log' | 'cancelled';
714
+ type TaskEventType = 'completion' | 'log' | 'cancelled';
717
715
  /**
718
716
  * SerializedTaskEvent
719
717
  *
720
718
  * @public
721
719
  */
722
- declare type SerializedTaskEvent = {
720
+ type SerializedTaskEvent = {
723
721
  id: number;
724
722
  taskId: string;
725
723
  body: JsonObject;
@@ -731,7 +729,7 @@ declare type SerializedTaskEvent = {
731
729
  *
732
730
  * @public
733
731
  */
734
- declare type TaskBrokerDispatchResult = {
732
+ type TaskBrokerDispatchResult = {
735
733
  taskId: string;
736
734
  };
737
735
  /**
@@ -740,7 +738,7 @@ declare type TaskBrokerDispatchResult = {
740
738
  *
741
739
  * @public
742
740
  */
743
- declare type TaskBrokerDispatchOptions = {
741
+ type TaskBrokerDispatchOptions = {
744
742
  spec: TaskSpec;
745
743
  secrets?: TaskSecrets$1;
746
744
  createdBy?: string;
@@ -791,7 +789,7 @@ interface TaskBroker {
791
789
  *
792
790
  * @public
793
791
  */
794
- declare type TaskStoreEmitOptions<TBody = JsonObject> = {
792
+ type TaskStoreEmitOptions<TBody = JsonObject> = {
795
793
  taskId: string;
796
794
  body: TBody;
797
795
  };
@@ -800,7 +798,7 @@ declare type TaskStoreEmitOptions<TBody = JsonObject> = {
800
798
  *
801
799
  * @public
802
800
  */
803
- declare type TaskStoreListEventsOptions = {
801
+ type TaskStoreListEventsOptions = {
804
802
  taskId: string;
805
803
  after?: number | undefined;
806
804
  };
@@ -809,14 +807,14 @@ declare type TaskStoreListEventsOptions = {
809
807
  *
810
808
  * @public
811
809
  */
812
- declare type TaskStoreShutDownTaskOptions = {
810
+ type TaskStoreShutDownTaskOptions = {
813
811
  taskId: string;
814
812
  };
815
813
  /**
816
814
  * The options passed to {@link TaskStore.createTask}
817
815
  * @public
818
816
  */
819
- declare type TaskStoreCreateTaskOptions = {
817
+ type TaskStoreCreateTaskOptions = {
820
818
  spec: TaskSpec;
821
819
  createdBy?: string;
822
820
  secrets?: TaskSecrets$1;
@@ -825,7 +823,7 @@ declare type TaskStoreCreateTaskOptions = {
825
823
  * The response from {@link TaskStore.createTask}
826
824
  * @public
827
825
  */
828
- declare type TaskStoreCreateTaskResult = {
826
+ type TaskStoreCreateTaskResult = {
829
827
  taskId: string;
830
828
  };
831
829
  /**
@@ -868,7 +866,7 @@ interface TaskStore {
868
866
  *
869
867
  * @public
870
868
  */
871
- declare type DatabaseTaskStoreOptions = {
869
+ type DatabaseTaskStoreOptions = {
872
870
  database: PluginDatabaseManager | Knex;
873
871
  };
874
872
  /**
@@ -968,7 +966,7 @@ interface CurrentClaimedTask {
968
966
  *
969
967
  * @public
970
968
  */
971
- declare type CreateWorkerOptions = {
969
+ type CreateWorkerOptions = {
972
970
  taskBroker: TaskBroker;
973
971
  actionRegistry: TemplateActionRegistry;
974
972
  integrations: ScmIntegrations;
@@ -1009,7 +1007,7 @@ declare class TaskWorker {
1009
1007
  *
1010
1008
  * @public
1011
1009
  */
1012
- declare type TemplatePermissionRuleInput<TParams extends PermissionRuleParams = PermissionRuleParams> = PermissionRule<TemplateEntityStepV1beta3 | TemplateParametersV1beta3, {}, typeof RESOURCE_TYPE_SCAFFOLDER_TEMPLATE, TParams>;
1010
+ type TemplatePermissionRuleInput<TParams extends PermissionRuleParams = PermissionRuleParams> = PermissionRule<TemplateEntityStepV1beta3 | TemplateParametersV1beta3, {}, typeof RESOURCE_TYPE_SCAFFOLDER_TEMPLATE, TParams>;
1013
1011
  /**
1014
1012
  * RouterOptions
1015
1013
  *
@@ -1058,21 +1056,21 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
1058
1056
  * @public
1059
1057
  * @deprecated Import from {@link @backstage/plugin-scaffolder-node#ActionContext} instead
1060
1058
  */
1061
- declare type ActionContext<TInput extends JsonObject> = ActionContext$1<TInput>;
1059
+ type ActionContext<TInput extends JsonObject> = ActionContext$1<TInput>;
1062
1060
  /**
1063
1061
  * @public
1064
1062
  * @deprecated Use `createTemplateAction` from `@backstage/plugin-scaffolder-node` instead
1065
1063
  */
1066
- 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 = TInputSchema extends zod.ZodType<any, any, infer IReturn> ? IReturn : TInputParams, TActionOutput = 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>;
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>;
1067
1065
  /**
1068
1066
  * @public
1069
1067
  * @deprecated Use `TaskSecrets` from `@backstage/plugin-scaffolder-node` instead
1070
1068
  */
1071
- declare type TaskSecrets = TaskSecrets$1;
1069
+ type TaskSecrets = TaskSecrets$1;
1072
1070
  /**
1073
1071
  * @public
1074
1072
  * @deprecated Use `TemplateAction` from `@backstage/plugin-scaffolder-node` instead
1075
1073
  */
1076
- declare type TemplateAction<TInput extends JsonObject> = TemplateAction$1<TInput>;
1074
+ type TemplateAction<TInput extends JsonObject> = TemplateAction$1<TInput>;
1077
1075
 
1078
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.13.0-next.1",
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,22 +44,22 @@
44
44
  "build:assets": "node scripts/build-nunjucks.js"
45
45
  },
46
46
  "dependencies": {
47
- "@backstage/backend-common": "^0.18.4-next.1",
48
- "@backstage/backend-plugin-api": "^0.5.1-next.1",
49
- "@backstage/backend-tasks": "^0.5.1-next.1",
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
54
  "@backstage/integration": "^1.4.4-next.0",
55
- "@backstage/plugin-auth-node": "^0.2.13-next.1",
56
- "@backstage/plugin-catalog-backend": "^1.8.1-next.1",
55
+ "@backstage/plugin-auth-node": "^0.2.13-next.2",
56
+ "@backstage/plugin-catalog-backend": "^1.8.1-next.2",
57
57
  "@backstage/plugin-catalog-common": "^1.0.13-next.0",
58
- "@backstage/plugin-catalog-node": "^1.3.5-next.1",
58
+ "@backstage/plugin-catalog-node": "^1.3.5-next.2",
59
59
  "@backstage/plugin-permission-common": "^0.7.5-next.0",
60
- "@backstage/plugin-permission-node": "^0.7.7-next.1",
60
+ "@backstage/plugin-permission-node": "^0.7.7-next.2",
61
61
  "@backstage/plugin-scaffolder-common": "^1.2.7-next.1",
62
- "@backstage/plugin-scaffolder-node": "^0.1.2-next.1",
62
+ "@backstage/plugin-scaffolder-node": "^0.1.2-next.2",
63
63
  "@backstage/types": "^1.0.2",
64
64
  "@gitbeaker/core": "^35.6.0",
65
65
  "@gitbeaker/node": "^35.1.0",
@@ -97,8 +97,8 @@
97
97
  "zod": "^3.21.4"
98
98
  },
99
99
  "devDependencies": {
100
- "@backstage/backend-test-utils": "^0.1.36-next.1",
101
- "@backstage/cli": "^0.22.6-next.1",
100
+ "@backstage/backend-test-utils": "^0.1.36-next.2",
101
+ "@backstage/cli": "^0.22.6-next.2",
102
102
  "@types/command-exists": "^1.2.0",
103
103
  "@types/fs-extra": "^9.0.1",
104
104
  "@types/git-url-parse": "^9.0.0",