@tachybase/plugin-workflow-approval
Version:
Approval base in Workflow
29 lines (28 loc) • 712 B
TypeScript
export interface Approval {
id: number;
collectionName: string;
dataKey: string;
workflow: any;
executions: any[];
approvalExecutions: any[];
latestApprovalExecution: any;
records: any[];
createdById: number;
status: number;
data: any;
applicantRole: any;
latestExecutionId?: any;
}
interface ApprovalExecutions {
id: number;
approval: Approval;
execution: any;
status: number;
snapshot: any;
records: any[];
job?: any;
userId?: any;
}
export declare const ContextApprovalRecords: import("react").Context<Partial<ApprovalExecutions>>;
export declare function useContextApprovalRecords(): Partial<ApprovalExecutions>;
export {};