From 78c471eec35182959e0029ded18f144974ccaca2 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 23 Oct 2025 18:13:41 +0900 Subject: (김준회) 결재 템플릿 에디터 및 결재 워크플로 공통함수 작성, 실사의뢰 결재 연결 예시 작성 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/approval/index.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lib/approval/index.ts (limited to 'lib/approval/index.ts') diff --git a/lib/approval/index.ts b/lib/approval/index.ts new file mode 100644 index 00000000..644c5fa8 --- /dev/null +++ b/lib/approval/index.ts @@ -0,0 +1,34 @@ +/** + * 결재 워크플로우 모듈 Export + * + * 사용 방법: + * 1. registerActionHandler()로 액션 핸들러 등록 + * 2. withApproval()로 결재가 필요한 액션 래핑 + * 3. 폴링 서비스가 자동으로 상태 확인 및 실행 + */ + +export { + registerActionHandler, + getRegisteredHandlers, + withApproval, + executeApprovedAction, + handleRejectedAction, + type ActionHandler, +} from './approval-workflow'; + +export { + startApprovalPollingScheduler, + checkPendingApprovals, + checkSingleApprovalStatus, +} from './approval-polling-service'; + +export { + getApprovalTemplateByName, + replaceTemplateVariables, + htmlTableConverter, + htmlListConverter, + htmlDescriptionList, +} from './template-utils'; + +export type { TemplateVariables, ApprovalConfig, ApprovalResult } from './types'; + -- cgit v1.2.3