feat: approval workflow with approver/backupApprover

This commit is contained in:
pray4skylark
2026-06-08 17:49:39 +09:00
parent 9c09a89643
commit 3047354571
17 changed files with 461 additions and 82 deletions
+7 -1
View File
@@ -23,7 +23,7 @@ export type RoleCode = 'ADMIN' | 'MANAGER' | 'EMPLOYEE';
export type EmpStatus = 'ACTIVE' | 'ON_LEAVE' | 'RESIGNED';
export type DispatchStatus = 'WAITING' | 'DISPATCHED';
export type TicketStatus = 'OPEN' | 'ASSIGNED' | 'IN_PROGRESS' | 'RESOLVED' | 'CLOSED';
export type TicketStatus = 'OPEN' | 'ASSIGNED' | 'IN_PROGRESS' | 'RESOLVED' | 'CLOSED' | 'PENDING_APPROVAL' | 'APPROVED' | 'REJECTED';
export type TicketCategory = 'BUG' | 'FEATURE' | 'SUPPORT' | 'QA' | 'VACATION' | 'EXPENSE' | 'EQUIPMENT_REQUEST' | 'GENERAL';
export type TicketPriority = 'LOW' | 'NORMAL' | 'HIGH' | 'CRITICAL';
@@ -59,6 +59,8 @@ export interface Employee {
education: string | null;
schoolName: string | null;
position: string | null;
managerId?: number;
backupManagerId?: number;
major: string | null;
graduationDate: string | null;
residence: string | null;
@@ -148,6 +150,10 @@ export interface IssueTicket {
updatedAt: string;
attachmentUrl?: string;
attachmentName?: string;
approverId?: number;
backupApproverId?: number;
approvedBy?: number;
approvedAt?: string;
}
export interface TicketComment {