UNPKG

@nocobase/plugin-workflow

Version:

A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.

34 lines (33 loc) 1.22 kB
import React from 'react'; import { APIClient, SchemaInitializerItemType } from '@nocobase/client'; export interface TaskTypeOptions { key: string; title: string; collection: string; action?: string; useActionParams: Function; Actions?: React.ComponentType; Item: React.ComponentType; Detail: React.ComponentType; getPopupRecord?: (apiClient: APIClient, { params }: { params: any; }) => Promise<any>; alwaysShow?: boolean; } type Stats = Record<string, { pending: number; all: number; }>; export declare function useTasksCountsContext(): { reload: () => void; counts: Stats; total: number; }; export declare function usePopupRecordContext(): any; export declare function WorkflowTasks(): React.JSX.Element; export declare function TasksCountsProvider(props: any): React.JSX.Element; export declare function TasksProvider(props: any): React.JSX.Element; export declare const tasksSchemaInitializerItem: SchemaInitializerItemType; export declare const MobileTabBarWorkflowTasksItem: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>; export declare function WorkflowTasksMobile(): React.JSX.Element; export {};