summaryrefslogtreecommitdiff
path: root/lib/approval/types.ts
blob: 7f3fe52b97cf166e9d286466ce9e66664066b09a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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';
}