/*
 * @Author: 吴永生 15770852798@163.com
 * @Date: 2022-10-19 20:50:18
 * @LastEditors: 吴永生 15770852798@163.com
 * @LastEditTime: 2022-10-27 17:14:29
 * @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/interface.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

export type IOperatorType = 'BATCH' | 'FLOW'

export type IParameterClassType = 'in' | 'out' | 'basis' | 'senior'
export interface IOperatorInfo{
  id: string;
  title: string;
  type: IOperatorType;
  version: string;   
  productId: string; 
  createdTime: string;
}

export enum operatorType {
  'FLOW' = '流算子',
  'BATCH' = '批算子',
}

export enum parameterClassType {
  'in' = '输入',
  'out' = '输出',
  'basis' = '基础',
  'senior' = '高级',
}

export interface IOperatorAddFormData {
  title?: string;
  type?: IOperatorType;
  version?: string;   
  productId?: string; 
  description?: string;
  envId?: string;
  parameters?: any
}