// Master Configuration Exports
import itemMasterConfig from './itemMasterConfig';
import materialMasterConfig from './materialMasterConfig';
import processMasterConfig from './processMasterConfig';
import inspectionMasterConfig from './inspectionMasterConfig';
import customerMasterConfig from './customerMasterConfig';
import siteMasterConfig from './siteMasterConfig';
import orderMasterConfig from './orderMasterConfig';
import productionMasterConfig from './productionMasterConfig';
import outboundMasterConfig from './outboundMasterConfig';
import documentTemplateConfig from './documentTemplateConfig';

// Common Schema & Helpers
export {
  DEFAULT_TABS,
  INPUT_TYPES,
  SECTION_TYPES,
  createField,
  createSection,
  createCategory,
  validateConfig,
} from './commonSchema';

// Menu Definitions
export {
  menuGroups,
  masterMenus,
  salesMenus,
  productionMenus,
  qualityMenus,
  inventoryMenus,
  accountingMenus,
  systemMenus,
} from './menuDefinitions';

// Config 맵핑
export const masterConfigs = {
  'item': itemMasterConfig,
  'material': materialMasterConfig,
  'process': processMasterConfig,
  'inspection': inspectionMasterConfig,
  'quality': inspectionMasterConfig, // 품질기준관리 (inspection과 동일한 config 사용)
  'customer': customerMasterConfig,
  'site': siteMasterConfig,
  'order': orderMasterConfig,
  'production': productionMasterConfig,
  'outbound': outboundMasterConfig,
};

// 개별 export
export {
  itemMasterConfig,
  materialMasterConfig,
  processMasterConfig,
  inspectionMasterConfig,
  customerMasterConfig,
  siteMasterConfig,
  orderMasterConfig,
  productionMasterConfig,
  outboundMasterConfig,
  documentTemplateConfig,
};

export default masterConfigs;
