@tachybase/plugin-workflow-approval
Version:
Approval base in Workflow
60 lines (59 loc) • 1.52 kB
TypeScript
import React from 'react';
import { SchemaInitializerItemType } from '@tachybase/client';
import { JOB_STATUS } from '@tachybase/module-workflow/client';
import { ISchema } from '@tachybase/schema';
export declare const ProcessedStatus: number[];
export declare const ApprovalPriorityType: {
value: string;
label: string;
color: string;
}[];
export declare const ExecutionStatusOptions: {
value: any;
label: string;
color: string;
icon: import("react/jsx-runtime").JSX.Element;
description: string;
}[];
export declare const ApprovalNoticeStatusOptions: {
value: any;
label: string;
color: string;
}[];
type ValueOf<T> = T[keyof T];
export type FormType = {
type: 'create' | 'update' | 'custom';
title: string;
actions: ValueOf<typeof JOB_STATUS>[];
collection: string | {
name: string;
fields: any[];
[key: string]: any;
};
};
export type ManualFormType = {
title: string;
config: {
useInitializer: ({ allCollections }?: {
allCollections: any[];
}) => SchemaInitializerItemType;
initializers?: {
[key: string]: React.FC;
};
components?: {
[key: string]: React.FC;
};
parseFormOptions(root: ISchema): {
[key: string]: FormType;
};
};
block: {
scope?: {
[key: string]: () => any;
};
components?: {
[key: string]: React.FC;
};
};
};
export {};