import { Internal } from '../internal' // GENERATED CONTENT export interface GetFlowDocsResponse { data?: { fileId?: string fileName?: string fileUrl?: string }[] } export interface ApprovalListResponse { data?: { approvalName?: string status?: string refuseReason?: string sponsorAccountName?: string startTime?: number endTime?: number sealIdImg?: string approvalNodes?: number }[] } // funcName: isOldApi Internal.define({ '/esign/flowTasks/{taskId}/docs': { GET: { getFlowDocs: false } }, '/esign/approvals/{taskId}': { GET: { approvalList: false } }, }) declare module '../internal' { interface Internal { /** * 获取流程任务的所有合同列表 * @see https://open.dingtalk.com/document/isvapp/get-a-list-of-all-contracts-for-the-process-task */ getFlowDocs(taskId: string): Promise /** * 获取流程任务用印审批列表 * @see https://open.dingtalk.com/document/isvapp/obtains-the-print-approval-list-for-process-tasks */ approvalList(taskId: string): Promise } }