import { ECommon_Model_Workflow_Node_Status } from '../model/workflow_node'; import { ICommon_Model_Workflow } from './../model/workflow'; import { ICommon_Model_Workflow_Action } from './../model/workflow_action'; import { ICommon_Model_Workflow_Node } from './../model/workflow_node'; import { ICommon_Model_Workflow_Solution } from './../model/workflow_solution'; import { ECommon_Services } from './../types'; import { ICommon_Route_Res_WorkflowSolution_Info, ICommon_Route_Res_Workflow_Info } from './response'; import { ECommon_HttpApi_Method } from "./types"; const api={ baseUrl:"/workflow", service:ECommon_Services.Cooperation, routes:{ list:{ method:ECommon_HttpApi_Method.GET, path:"/list", req:<{ }>{}, res:{} }, info:{ method:ECommon_HttpApi_Method.GET, path:"/info", req:<{ workflowId:string }>{}, res:{} }, create:{ method:ECommon_HttpApi_Method.POST, path:"/item", req:<{ name :string, description? :string, }>{}, res:{} }, edit:{ method:ECommon_HttpApi_Method.PUT, path:"/item", req:<{ workflowId:string name :string, description? :string, }>{}, res:{} }, delete:{ method:ECommon_HttpApi_Method.DELETE, path:"/item", req:<{ workflowId:string }>{}, res:{} }, addNode:{ method:ECommon_HttpApi_Method.POST, path:"/node", req:<{ name :string, description? :string, status? :ECommon_Model_Workflow_Node_Status, workflowId :string }>{}, res:{} }, editNode:{ method:ECommon_HttpApi_Method.PUT, path:"/node", req:<{ workflowNodeId:string name? :string, description? :string, status? :ECommon_Model_Workflow_Node_Status, }>{}, res:{} }, deleteNode:{ method:ECommon_HttpApi_Method.DELETE, path:"/node", req:<{ workflowNodeId:string }>{}, res:{} }, addAction:{ method:ECommon_HttpApi_Method.POST, path:"/action", req:<{ name :string, description? :string, workflowId :string, sourceNodeId:string, destNodeId:string, }>{}, res:{} }, editAction:{ method:ECommon_HttpApi_Method.PUT, path:"/action", req:<{ workflowActionId:string name? :string, description? :string, sourceNodeId:string, destNodeId:string, }>{}, res:{} }, deleteAction:{ method:ECommon_HttpApi_Method.DELETE, path:"/action", req:<{ workflowActionId:string }>{}, res:{} }, solutionList:{ method:ECommon_HttpApi_Method.GET, path:"/solution/list", req:<{ }>{}, res:{} }, solutionInfo:{ method:ECommon_HttpApi_Method.GET, path:"/solution/item", req:<{ workflowSolutionId:string }>{}, res:{} }, solutionAssign:{ method:ECommon_HttpApi_Method.PUT, path:"/solution/assign", req:<{ workflowSolutionId:string, issueTypeId:string, workflowId:string, issueTypeSolutionId:string }>{}, res:{} }, solutionCreate:{ method:ECommon_HttpApi_Method.POST, path:"/solution/item", req:<{ name:string, description?:string }>{}, res:{} }, solutionUpdate:{ method:ECommon_HttpApi_Method.PUT, path:"/solution/item", req:<{ workflowSolutionId:string, name?:string, description?:string }>{}, res:{} }, solutionDelete:{ method:ECommon_HttpApi_Method.DELETE, path:"/solution/item", req:<{ workflowSolutionId:string }>{}, res:{} }, solutionBind:{ method:ECommon_HttpApi_Method.PUT, path:"/solution/bind", req:<{ workflowSolutionId:string, issueTypeSolutionId:string }>{}, res:{} }, solutionUnBind:{ method:ECommon_HttpApi_Method.PUT, path:"/solution/unbind", req:<{ workflowSolutionId:string, issueTypeSolutionId:string }>{}, res:{} }, solutionCopy:{ method:ECommon_HttpApi_Method.POST, path:"/solution/copy", req:<{ workflowSolutionId:string }>{}, res:{} }, } } export=api