From c9c343b840093df80e96d9f2f63ced4231956c97 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Thu, 30 Oct 2025 10:49:36 +0700 Subject: [PATCH] chore(FE-91): create BaseGroupedApproval, Approvals, and GroupedApprovals api types --- src/types/api/api-general.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/types/api/api-general.d.ts b/src/types/api/api-general.d.ts index a42eaa3f..af9144e2 100644 --- a/src/types/api/api-general.d.ts +++ b/src/types/api/api-general.d.ts @@ -97,21 +97,21 @@ export type flags = | 'FINISHER' | 'OVK'; -export type ApprovalsLine = { - action_by?: string; - date?: string; - notes?: string; - role?: string; - status: 'approved' | 'rejected' | 'waiting'; -}[]; - export type BaseApproval = { step_number: number; step_name: string; action: string; - notes: string | null; + notes?: string | null; action_by: CreatedUser; action_at: string; }; -export type ApproveAction = 'APPROVED' | 'REJECTED'; +export type BaseGroupedApproval = { + step_number: number; + step_name: string; + approvals: BaseApproval[]; +}; + +export type Approvals = BaseApiResponse; + +export type GroupedApprovals = BaseApiResponse;