@@ -9,36 +9,12 @@ import { JsonValue } from '@backstage/types';
|
||||
import { KindValidator } from '@backstage/catalog-model';
|
||||
|
||||
// @public
|
||||
export type TaskSpec = TaskSpecV1beta2 | TaskSpecV1beta3;
|
||||
|
||||
// @public @deprecated
|
||||
export interface TaskSpecV1beta2 {
|
||||
// (undocumented)
|
||||
apiVersion: 'backstage.io/v1beta2';
|
||||
// @deprecated (undocumented)
|
||||
baseUrl?: string;
|
||||
// @deprecated (undocumented)
|
||||
metadata?: TemplateMetadata;
|
||||
// (undocumented)
|
||||
output: {
|
||||
[name: string]: string;
|
||||
};
|
||||
// (undocumented)
|
||||
steps: TaskStep[];
|
||||
// (undocumented)
|
||||
templateInfo?: TemplateInfo;
|
||||
// (undocumented)
|
||||
values: JsonObject;
|
||||
}
|
||||
export type TaskSpec = TaskSpecV1beta3;
|
||||
|
||||
// @public
|
||||
export interface TaskSpecV1beta3 {
|
||||
// (undocumented)
|
||||
apiVersion: 'scaffolder.backstage.io/v1beta3';
|
||||
// @deprecated (undocumented)
|
||||
baseUrl?: string;
|
||||
// @deprecated (undocumented)
|
||||
metadata?: TemplateMetadata;
|
||||
// (undocumented)
|
||||
output: {
|
||||
[name: string]: JsonValue;
|
||||
@@ -65,33 +41,6 @@ export interface TaskStep {
|
||||
name: string;
|
||||
}
|
||||
|
||||
// @public @deprecated
|
||||
export interface TemplateEntityV1beta2 extends Entity {
|
||||
// (undocumented)
|
||||
apiVersion: 'backstage.io/v1beta2';
|
||||
// (undocumented)
|
||||
kind: 'Template';
|
||||
// (undocumented)
|
||||
spec: {
|
||||
type: string;
|
||||
parameters?: JsonObject | JsonObject[];
|
||||
steps: Array<{
|
||||
id?: string;
|
||||
name?: string;
|
||||
action: string;
|
||||
input?: JsonObject;
|
||||
if?: string | boolean;
|
||||
}>;
|
||||
output?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
owner?: string;
|
||||
};
|
||||
}
|
||||
|
||||
// @public @deprecated
|
||||
export const templateEntityV1beta2Validator: KindValidator;
|
||||
|
||||
// @public
|
||||
export interface TemplateEntityV1beta3 extends Entity {
|
||||
// (undocumented)
|
||||
@@ -124,9 +73,4 @@ export type TemplateInfo = {
|
||||
entityRef: string;
|
||||
baseUrl?: string;
|
||||
};
|
||||
|
||||
// @public @deprecated
|
||||
export type TemplateMetadata = {
|
||||
name: string;
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user