export declare enum BusinessLicenseType {
  ENTERPRISELEGALPERSON = 'enterpriseLegalPerson',
  INDIVIDUALBUSINESSES = 'individualBusinesses',
  GOVERNMENT = 'government',
  INSTITUTION = 'institution',
}

export interface IBusinessLicense {
  ID: string;
  type: BusinessLicenseType;
  name: string;
  validTime: string;
  filePath: string;
}
export interface IQualificationCertificate {
  ID: string;
  name: string[];
  lv: string;
  certificateNo: string;
  validTime: string;
  filePath: string;
}

export interface ISecurityCertificate {
  ID: string;
  name: string;
  personInCharge: string;
  scope: string;
  certificateNo: string;
  validTime: string;
  filePath: string;
}

export interface IInstitution {
  ID: string;
  name: string;
  type: string;
  acronym: string;
  enterpriseCode: string;
  organizationCode: string;
  bank: string;
  bankAccount: string;
  phone: string;
  address: string;
  fax: string;
  legalPerson: string;
  idCard: string;
  institutionAcountTotal: string;
  memberTotal: string;
  createdTime: string;
  manager: {
    ID: string;
    name: string;
  };
  businessLicense: IBusinessLicense[];
  qualificationCertificate: IQualificationCertificate[];
  securityCertificate: ISecurityCertificate[];
  addAccount: boolean; // 是否开启管理员添加成员
}

export declare enum CertificationsType {
  enterprise = 'enterprise',
  personnel = 'personnel',
}

export interface ICertificationsTree {
  ID: string;
  name: string;
  parentID: string;
  folder: boolean;
  children: ICertificationsTree[];
}

export interface ICertifications {
  ID: string;
  type: CertificationsType;
  tree: ICertificationsTree;
}
