@tachybase/module-workflow
Version:
A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.
220 lines (219 loc) • 7.08 kB
TypeScript
import { WorkflowVariableInput, WorkflowVariableJSON, WorkflowVariableTextArea } from '../..';
import { Instruction } from '../../nodes/default-node/interface';
/** 节点: HTTP 请求 */
export default class extends Instruction {
title: string;
type: string;
group: string;
icon: string;
color: string;
description: string;
fieldset: {
method: {
type: string;
required: boolean;
title: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
showSearch: boolean;
allowClear: boolean;
className: string;
};
enum: {
label: string;
value: string;
}[];
default: string;
};
url: {
type: string;
required: boolean;
title: string;
'x-decorator': string;
'x-decorator-props': {};
'x-component': string;
'x-component-props': {
placeholder: string;
};
};
needAuthorization: {
type: string;
required: boolean;
title: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
showSearch: boolean;
allowClear: boolean;
className: string;
};
enum: {
label: string;
value: boolean;
}[];
default: boolean;
};
headers: {
type: string;
'x-component': string;
'x-decorator': string;
title: string;
description: string;
items: {
type: string;
properties: {
space: {
type: string;
'x-component': string;
properties: {
name: {
type: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
placeholder: string;
};
};
value: {
type: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
useTypedConstant: boolean;
};
};
remove: {
type: string;
'x-decorator': string;
'x-component': string;
};
};
};
};
};
properties: {
add: {
type: string;
title: string;
'x-component': string;
};
};
};
params: {
type: string;
'x-component': string;
'x-decorator': string;
title: string;
items: {
type: string;
properties: {
space: {
type: string;
'x-component': string;
properties: {
name: {
type: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
placeholder: string;
};
};
value: {
type: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
useTypedConstant: boolean;
};
};
remove: {
type: string;
'x-decorator': string;
'x-component': string;
};
};
};
};
};
properties: {
add: {
type: string;
title: string;
'x-component': string;
};
};
};
data: {
type: string;
title: string;
'x-decorator': string;
'x-decorator-props': {};
'x-component': string;
'x-component-props': {
changeOnSelect: boolean;
autoSize: {
minRows: number;
};
placeholder: string;
};
description: string;
};
remarks: {
type: string;
title: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
autoSize: {
minRows: number;
};
placeholder: string;
};
};
timeout: {
type: string;
title: string;
'x-decorator': string;
'x-decorator-props': {};
'x-component': string;
'x-component-props': {
addonAfter: string;
min: number;
step: number;
defaultValue: number;
};
};
ignoreFail: {
type: string;
title: string;
'x-decorator': string;
'x-component': string;
};
};
components: {
ArrayItems: import("@tachybase/schema").ReactFC<import("react").HTMLAttributes<HTMLDivElement>> & import("@tego/client").ArrayBaseMixins & {
Item: import("@tachybase/schema").ReactFC<React.HTMLAttributes<HTMLDivElement> & {
type?: "card" | "divide";
}>;
};
WorkflowVariableInput: typeof WorkflowVariableInput;
WorkflowVariableTextArea: typeof WorkflowVariableTextArea;
WorkflowVariableJSON: typeof WorkflowVariableJSON;
};
useVariables({ key, title }: {
key: any;
title: any;
}, { types, fieldNames }: {
types: any;
fieldNames?: {
readonly label: "label";
readonly value: "value";
readonly children: "children";
};
}): {
value: any;
label: any;
};
}