mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
refactor(FE-238-239-240): implement approval workflow chickin & project flock, membuat custom hook useApprovals, dan handling error format approvals
This commit is contained in:
Vendored
+4
@@ -112,6 +112,10 @@ export type BaseGroupedApproval = {
|
||||
approvals: BaseApproval[];
|
||||
};
|
||||
|
||||
interface ModuleWithApproval {
|
||||
approval?: BaseApproval;
|
||||
}
|
||||
|
||||
export type Approvals = BaseApiResponse<BaseApproval>;
|
||||
|
||||
export type GroupedApprovals = BaseApiResponse<BaseGroupedApproval[]>;
|
||||
|
||||
Vendored
+14
@@ -2,3 +2,17 @@ export type ApprovalLine = {
|
||||
step_number: number;
|
||||
step_name: string;
|
||||
}[];
|
||||
|
||||
export interface ApprovalWorkflow {
|
||||
key: string;
|
||||
steps: ApprovalLine;
|
||||
}
|
||||
|
||||
export interface AppConfigData {
|
||||
approval_workflows: ApprovalWorkflow[];
|
||||
flags: string[];
|
||||
warehouse_types: string[];
|
||||
stock_log: string;
|
||||
supplier_categories: string[];
|
||||
customer_supplier_types: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user