@backstage/plugin-scaffolder-common 0.1.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage/plugin-scaffolder-common
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d078377f67: Support navigating back to pre-filled templates to update inputs of scaffolder tasks for resubmission
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Common functionalities for the scaffolder, to be shared between scaffolder and scaffolder-backend plugin\n *\n * @packageDocumentation\n */\n\nimport { JSONSchema } from '@backstage/catalog-model';\nimport v1beta3Schema from './Template.v1beta3.schema.json';\n\nexport type { TemplateEntityV1beta3 } from './TemplateEntityV1beta3';\n\n/** @public */\nexport const templateEntityV1beta3Schema: JSONSchema = v1beta3Schema as Omit<\n JSONSchema,\n 'examples'\n>;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4Ba,8BAA0C;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Common functionalities for the scaffolder, to be shared between scaffolder and scaffolder-backend plugin\n *\n * @packageDocumentation\n */\n\nimport { JSONSchema } from '@backstage/catalog-model';\nimport v1beta3Schema from './Template.v1beta3.schema.json';\n\nexport type { TemplateEntityV1beta3 } from './TemplateEntityV1beta3';\n\n/** @public */\nexport const templateEntityV1beta3Schema: JSONSchema = v1beta3Schema as Omit<\n JSONSchema,\n 'examples'\n>;\n\nexport * from './TaskSpec';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4Ba,8BAA0C;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Entity, JSONSchema } from '@backstage/catalog-model';
2
- import { JsonObject } from '@backstage/types';
2
+ import { JsonObject, JsonValue } from '@backstage/types';
3
3
 
4
4
  /** @public */
5
5
  interface TemplateEntityV1beta3 extends Entity {
@@ -22,6 +22,63 @@ interface TemplateEntityV1beta3 extends Entity {
22
22
  };
23
23
  }
24
24
 
25
+ /**
26
+ * TemplateMetadata
27
+ *
28
+ * @public
29
+ */
30
+ declare type TemplateMetadata = {
31
+ name: string;
32
+ };
33
+ /**
34
+ * TaskStep
35
+ *
36
+ * @public
37
+ */
38
+ interface TaskStep {
39
+ id: string;
40
+ name: string;
41
+ action: string;
42
+ input?: JsonObject;
43
+ if?: string | boolean;
44
+ }
45
+ /**
46
+ * TaskSpecV1beta2
47
+ *
48
+ * @public
49
+ */
50
+ interface TaskSpecV1beta2 {
51
+ apiVersion: 'backstage.io/v1beta2';
52
+ baseUrl?: string;
53
+ values: JsonObject;
54
+ steps: TaskStep[];
55
+ output: {
56
+ [name: string]: string;
57
+ };
58
+ metadata?: TemplateMetadata;
59
+ }
60
+ /**
61
+ * TaskSpecV1beta3
62
+ *
63
+ * @public
64
+ */
65
+ interface TaskSpecV1beta3 {
66
+ apiVersion: 'scaffolder.backstage.io/v1beta3';
67
+ baseUrl?: string;
68
+ parameters: JsonObject;
69
+ steps: TaskStep[];
70
+ output: {
71
+ [name: string]: JsonValue;
72
+ };
73
+ metadata?: TemplateMetadata;
74
+ }
75
+ /**
76
+ * TaskSpec
77
+ *
78
+ * @public
79
+ */
80
+ declare type TaskSpec = TaskSpecV1beta2 | TaskSpecV1beta3;
81
+
25
82
  /**
26
83
  * Common functionalities for the scaffolder, to be shared between scaffolder and scaffolder-backend plugin
27
84
  *
@@ -31,4 +88,4 @@ interface TemplateEntityV1beta3 extends Entity {
31
88
  /** @public */
32
89
  declare const templateEntityV1beta3Schema: JSONSchema;
33
90
 
34
- export { TemplateEntityV1beta3, templateEntityV1beta3Schema };
91
+ export { TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TaskStep, TemplateEntityV1beta3, TemplateMetadata, templateEntityV1beta3Schema };
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Common functionalities for the scaffolder, to be shared between scaffolder and scaffolder-backend plugin\n *\n * @packageDocumentation\n */\n\nimport { JSONSchema } from '@backstage/catalog-model';\nimport v1beta3Schema from './Template.v1beta3.schema.json';\n\nexport type { TemplateEntityV1beta3 } from './TemplateEntityV1beta3';\n\n/** @public */\nexport const templateEntityV1beta3Schema: JSONSchema = v1beta3Schema as Omit<\n JSONSchema,\n 'examples'\n>;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4Ba,8BAA0C;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Common functionalities for the scaffolder, to be shared between scaffolder and scaffolder-backend plugin\n *\n * @packageDocumentation\n */\n\nimport { JSONSchema } from '@backstage/catalog-model';\nimport v1beta3Schema from './Template.v1beta3.schema.json';\n\nexport type { TemplateEntityV1beta3 } from './TemplateEntityV1beta3';\n\n/** @public */\nexport const templateEntityV1beta3Schema: JSONSchema = v1beta3Schema as Omit<\n JSONSchema,\n 'examples'\n>;\n\nexport * from './TaskSpec';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4Ba,8BAA0C;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-common",
3
3
  "description": "Common functionalities for the scaffolder, to be shared between scaffolder and scaffolder-backend plugin",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -36,12 +36,12 @@
36
36
  "url": "https://github.com/backstage/backstage/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@backstage/catalog-model": "^0.9.6",
39
+ "@backstage/catalog-model": "^0.9.7",
40
40
  "@backstage/types": "^0.1.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@backstage/cli": "^0.8.1"
43
+ "@backstage/cli": "^0.10.4"
44
44
  },
45
- "gitHead": "3db0cb3683d3000666802af90a465ba4fb0d1e8d",
45
+ "gitHead": "4b2a8ed96ff427735c872a72c1864321ef698436",
46
46
  "module": "dist/index.esm.js"
47
47
  }