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/types.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/approval/types.ts (limited to 'lib/approval/types.ts') diff --git a/lib/approval/types.ts b/lib/approval/types.ts new file mode 100644 index 00000000..7f3fe52b --- /dev/null +++ b/lib/approval/types.ts @@ -0,0 +1,25 @@ +/** + * 결재 워크플로우 타입 정의 + */ + +export type TemplateVariables = Record; + +export interface ApprovalConfig { + title: string; + description?: string; + templateName: string; + variables: TemplateVariables; + approvers?: string[]; + currentUser: { + id: number; + epId: string | null; + email?: string; + }; +} + +export interface ApprovalResult { + pendingActionId: number; + approvalId: string; + status: 'pending_approval'; +} + -- cgit v1.2.3