mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
34 lines
773 B
TypeScript
34 lines
773 B
TypeScript
import type { PaginationMeta, WorkflowSettings } from "@qltysh/fabro-api-client";
|
|
|
|
export type WorkflowSettingsSnapshot = WorkflowSettings;
|
|
|
|
export interface WorkflowScheduleSummary {
|
|
expression: string;
|
|
next_run?: string | null;
|
|
}
|
|
|
|
export interface WorkflowLastRunSummary {
|
|
ran_at?: string | null;
|
|
}
|
|
|
|
export interface WorkflowListItem {
|
|
name: string;
|
|
slug: string;
|
|
filename: string;
|
|
last_run?: WorkflowLastRunSummary | null;
|
|
schedule?: WorkflowScheduleSummary | null;
|
|
}
|
|
|
|
export interface PaginatedWorkflowListResponse {
|
|
data: WorkflowListItem[];
|
|
pagination?: PaginationMeta;
|
|
}
|
|
|
|
export interface WorkflowDetailResponse {
|
|
name: string;
|
|
slug: string;
|
|
description: string;
|
|
filename: string;
|
|
settings: WorkflowSettingsSnapshot;
|
|
graph: string;
|
|
}
|