import type { AxiosPromise } from "axios"; import type { EntityApi, EntityReq, EntityModel, EntityList, EntityKey } from "jmash-core"; export interface ProcDefApi extends EntityApi { deployFlow(req: FlowDeployReq): AxiosPromise; deployFlowXml(xml: FlowDeployXmlReq): AxiosPromise; deleteDeployment(deploymentId: string): AxiosPromise; findList?(query: ProcDefReq): AxiosPromise; findById?(key: ProcDefKey): AxiosPromise; findProcDefXmlById(procDefId: string): AxiosPromise; findProcDefDiagram(procDefId: string): AxiosPromise; } export interface ProcDefReq extends EntityReq { /** * 流程名称. */ name?: string; /** * 流程Key. */ key?: string; /** * 分类. */ category?: string; } /** * 部署请求. */ export interface FlowDeployReq { tenant?: string; requestId?: string; resFile?: string; name?: string; } /** * 流程Xml部署请求. */ export interface FlowDeployXmlReq { /** * 用于检测重复请求的唯一字符串ID. */ requestId?: string; /** * 资源文件XML. */ xml?: string; /** * 流程名称. */ name?: string; } /** * 流程部署回复. */ export interface FlowDeployRes { /** * 流程ID. */ id?: string; /** * 流程名称. */ name?: string; /** * 部署时间. */ deploymentTime?: string; /** * 分类. */ category?: string; /** * 租户ID. */ tenantId?: string; } export interface ProcDefKey extends EntityKey { tenant?: string; procDefId?: string; } /** * 流程定义列表. */ export interface FlowProcDefList extends EntityList { results: Array; } /** * 流程定义. */ export interface FlowProcDefModel extends EntityModel { id: string; name: string; key: string; description?: string; version: number; resourceName?: string; deploymentId: string; diagramResourceName?: string; suspended: boolean; hasStartFormKey?: boolean; tenantId: string; children?: Array; } export interface HiProcinstKey extends EntityKey { id?: string; } export interface HiProcInstModel { id?: string; businessKey?: string; formKey?: string; }