@tachybase/module-workflow
Version:
A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.
69 lines (68 loc) • 2.22 kB
TypeScript
import { SchemaInitializerItemType, useCollectionDataSource } from '@tachybase/client';
import { Instruction } from './default-node/interface';
export default class extends Instruction {
title: string;
type: string;
group: string;
icon: string;
color: string;
description: string;
fieldset: {
collection: {
'x-reactions': any[];
type: string;
title: string;
required: boolean;
'x-decorator': string;
'x-component': string;
};
params: {
type: string;
properties: {
values: {
type: string;
title: string;
description: string;
'x-decorator': string;
'x-decorator-props': {
labelAlign: string;
className: string;
};
'x-component': string;
};
appends: {
type: string;
title: string;
description: string;
'x-decorator': string;
'x-component': string;
'x-component-props': {
title: string;
multiple: boolean;
useCollection(): any;
};
'x-reactions': {
dependencies: string[];
fulfill: {
state: {
visible: string;
};
};
}[];
};
};
};
};
scope: {
useCollectionDataSource: typeof useCollectionDataSource;
};
components: {
CollectionFieldset: import("react").MemoExoticComponent<import("@tachybase/schema").ReactFC<Omit<any, "ref">>>;
};
useVariables({ key: name, title, config }: {
key: any;
title: any;
config: any;
}, options: any): import("..").VariableOption;
useInitializers(node: any): SchemaInitializerItemType | null;
}