@backstage/plugin-scaffolder-common 0.1.0 → 0.1.3
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 +29 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +59 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @backstage/plugin-scaffolder-common
|
|
2
|
+
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/catalog-model@0.9.10
|
|
9
|
+
|
|
10
|
+
## 0.1.3-next.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- @backstage/catalog-model@0.9.10-next.0
|
|
16
|
+
|
|
17
|
+
## 0.1.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- d078377f67: Support navigating back to pre-filled templates to update inputs of scaffolder tasks for resubmission
|
|
22
|
+
|
|
23
|
+
## 0.1.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 10615525f3: Switch to use the json and observable types from `@backstage/types`
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @backstage/catalog-model@0.9.6
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -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/
|
|
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 };
|
package/dist/index.esm.js.map
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "0.1.3",
|
|
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.
|
|
40
|
-
"@backstage/
|
|
39
|
+
"@backstage/catalog-model": "^0.9.10",
|
|
40
|
+
"@backstage/types": "^0.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@backstage/cli": "^0.
|
|
43
|
+
"@backstage/cli": "^0.12.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "600d6e3c854bbfb12a0078ca6f726d1c0d1fea0b",
|
|
46
46
|
"module": "dist/index.esm.js"
|
|
47
47
|
}
|