From 284f9f40d9494168f3e68eedd9af067c38362eea Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 30 Oct 2025 10:35:26 +0900 Subject: (김준회) refactor: POS: 온디맨드로 다운로드받도록 변경, 매핑로직에선 pos 관련 로직 제거 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pos/index.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'lib/pos/index.ts') diff --git a/lib/pos/index.ts b/lib/pos/index.ts index 75309bdd..d889f8c1 100644 --- a/lib/pos/index.ts +++ b/lib/pos/index.ts @@ -1,4 +1,16 @@ -// POS 관련 모든 기능을 하나로 통합하는 인덱스 파일 +/** + * POS (Purchase Order Specification) 파일 관련 기능 통합 모듈 + * + * 주요 기능: + * - MATNR(자재코드)로 DCMTM_ID 조회 + * - SOAP API를 통한 POS 파일 경로 조회 + * - NFS 네트워크 드라이브에서 파일 다운로드 + * - 온디맨드 방식의 POS 파일 다운로드 (자동 동기화 제거됨) + * + * 주요 변경사항: + * - syncRfqPosFiles 함수 제거됨 (온디맨드 방식으로 대체) + * - getDownloadUrlByMaterialCode 등 새로운 온디맨드 함수 추가 + */ import { getEncryptDocumentumFile } from './get-pos'; import { createDownloadUrl } from './download-pos-file'; @@ -19,10 +31,6 @@ export { getFirstDcmtmId } from './get-dcmtm-id'; -export { - syncRfqPosFiles -} from './sync-rfq-pos-files'; - export { getDesignDocumentByMaterialCode, getDesignDocumentsForRfqItems, @@ -30,6 +38,12 @@ export { getDesignDocumentsForRfqItemsAction } from './design-document-service'; +export { + getDownloadUrlByMaterialCode, + getDownloadUrlsForMaterialCodes, + checkPosFileExists +} from './download-on-demand-action'; + // 타입들은 ./types 에서 export export type * from './types'; -- cgit v1.2.3