summaryrefslogtreecommitdiff
path: root/lib/approval/types.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-23 18:13:41 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-23 18:13:41 +0900
commit78c471eec35182959e0029ded18f144974ccaca2 (patch)
tree914cdf1c8f406ca3e2aa639b8bb774f7f4e87023 /lib/approval/types.ts
parent0be8940580c4a4a4e098b649d198160f9b60420c (diff)
(김준회) 결재 템플릿 에디터 및 결재 워크플로 공통함수 작성, 실사의뢰 결재 연결 예시 작성
Diffstat (limited to 'lib/approval/types.ts')
-rw-r--r--lib/approval/types.ts25
1 files changed, 25 insertions, 0 deletions
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<string, string>;
+
+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';
+}
+