| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import { ReactFlowJsonObject, XYPosition } from "reactflow";
- import { APIClassType } from "../api/index";
- export type FlowType = {
- name: string;
- id: string;
- data: ReactFlowJsonObject | null;
- description: string;
- status: number;
- style?: FlowStyleType;
- user_name?: string;
- write: boolean;
- guide_word: string
- is_component?: boolean;
- parent?: string;
- date_created?: string;
- updated_at?: string;
- last_tested_version?: string;
- avatar_img?: string;
- avatar_color?: string;
- };
- export type NodeType = {
- id: string;
- type?: string;
- position: XYPosition;
- data: NodeDataType;
- selected?: boolean;
- };
- export type NodeDataType = {
- showNode?: boolean;
- type: string;
- node?: APIClassType;
- id: string;
- output_types?: string[];
- };
- // FlowStyleType is the type of the style object that is used to style the
- // Flow card with an emoji and a color.
- export type FlowStyleType = {
- emoji: string;
- color: string;
- flow_id: string;
- };
- export type TweaksType = Array<
- {
- [key: string]: {
- output_key?: string;
- };
- } & FlowStyleType
- >;
- // right side
- export type sourceHandleType = {
- dataType: string;
- id: string;
- baseClasses: string[];
- };
- //left side
- export type targetHandleType = {
- inputTypes?: string[];
- type: string;
- fieldName: string;
- id: string;
- proxy?: { field: string; id: string };
- };
- export type FlowVersionItem = {
- create_time: string;
- data: null | any; // Replace 'any' with a more specific type if known
- description: null | string;
- flow_id: string;
- id: number;
- is_current: number;
- is_delete: number;
- name: string;
- update_time: string;
- user_id: null | string;
- };
|