import { IMatterReportConfig, IYsProfileTemplate } from '../matter';

// 获取资料清单的文件结构
export namespace GetYsProfileList {
  export type Params = {
    matterID: string;
  };

  type IYsProfileTemplateItem = IYsProfileTemplate & {
    children?: IYsProfileTemplateItem[];
  };

  export type Response = {
    fileTree: IYsProfileTemplateItem[];
  };
}

// 获取工作台-快捷方式的数据
export namespace GetProfileMatterList {
  export type Response = {
    matterID: string;
    matterListID: string;
    matterListName: string;
    reportConfig?: IMatterReportConfig[];
  }[];
}
