This commit is contained in:
xiaojunnuo
2023-06-07 23:10:33 +08:00
parent f516b0931f
commit 4c324960e6
2 changed files with 25 additions and 14 deletions
@@ -66,11 +66,23 @@ export type Runnable = {
};
};
export type EmailOptions = {
receivers: string[];
};
export type NotificationWhen = "error" | "success" | "start";
export type NotificationType = "email" | "url";
export type Notification = {
type: NotificationType;
when: NotificationWhen[];
options: EmailOptions;
};
export type Pipeline = Runnable & {
version?: number;
userId: any;
stages: Stage[];
triggers: Trigger[];
notifications: Notification[];
};
export type Context = {