mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
chore(FE-91): create BaseGroupedApproval, Approvals, and GroupedApprovals api types
This commit is contained in:
Vendored
+10
-10
@@ -97,21 +97,21 @@ export type flags =
|
|||||||
| 'FINISHER'
|
| 'FINISHER'
|
||||||
| 'OVK';
|
| 'OVK';
|
||||||
|
|
||||||
export type ApprovalsLine = {
|
|
||||||
action_by?: string;
|
|
||||||
date?: string;
|
|
||||||
notes?: string;
|
|
||||||
role?: string;
|
|
||||||
status: 'approved' | 'rejected' | 'waiting';
|
|
||||||
}[];
|
|
||||||
|
|
||||||
export type BaseApproval = {
|
export type BaseApproval = {
|
||||||
step_number: number;
|
step_number: number;
|
||||||
step_name: string;
|
step_name: string;
|
||||||
action: string;
|
action: string;
|
||||||
notes: string | null;
|
notes?: string | null;
|
||||||
action_by: CreatedUser;
|
action_by: CreatedUser;
|
||||||
action_at: string;
|
action_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ApproveAction = 'APPROVED' | 'REJECTED';
|
export type BaseGroupedApproval = {
|
||||||
|
step_number: number;
|
||||||
|
step_name: string;
|
||||||
|
approvals: BaseApproval[];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type Approvals = BaseApiResponse<BaseApproval>;
|
||||||
|
|
||||||
|
export type GroupedApprovals = BaseApiResponse<BaseGroupedApproval[]>;
|
||||||
|
|||||||
Reference in New Issue
Block a user