public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions

41
app/src/flows/index.ts Normal file
View File

@@ -0,0 +1,41 @@
import { FetchTask } from "./tasks/presets/FetchTask";
import { LogTask } from "./tasks/presets/LogTask";
import { RenderTask } from "./tasks/presets/RenderTask";
import { SubFlowTask } from "./tasks/presets/SubFlowTask";
export { Flow } from "./flows/Flow";
export {
Execution,
type TaskLog,
type InputsMap,
ExecutionState,
ExecutionEvent
} from "./flows/Execution";
export { RuntimeExecutor } from "./flows/executors/RuntimeExecutor";
export { FlowTaskConnector } from "./flows/FlowTaskConnector";
export {
Trigger,
EventTrigger,
HttpTrigger,
TriggerMap,
type TriggerMapType
} from "./flows/triggers";
import { Task } from "./tasks/Task";
export { type TaskResult, type TaskRenderProps } from "./tasks/Task";
export { TaskConnection, Condition } from "./tasks/TaskConnection";
// test
//export { simpleFetch } from "./examples/simple-fetch";
//export type TaskMapType = { [key: string]: { cls: typeof Task<any> } };
export const TaskMap = {
fetch: { cls: FetchTask },
log: { cls: LogTask },
render: { cls: RenderTask },
subflow: { cls: SubFlowTask }
} as const;
export type TaskMapType = typeof TaskMap;
export { Task, FetchTask, LogTask, RenderTask, SubFlowTask };