mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 05:22:02 +00:00
feat(FE-149): add flock_name and kandangs.project_flock_kandang_id field
This commit is contained in:
+14
-1
@@ -8,6 +8,7 @@ import { BaseApproval, BaseMetadata } from '@/types/api/api-general';
|
||||
export type BaseProjectFlock = {
|
||||
id: number;
|
||||
name: string;
|
||||
flock_name: string;
|
||||
status: string;
|
||||
flock: Flock;
|
||||
flock_id: number;
|
||||
@@ -20,7 +21,9 @@ export type BaseProjectFlock = {
|
||||
location_id: number;
|
||||
period: number;
|
||||
kandang_ids: number[];
|
||||
kandangs: Kandang[];
|
||||
kandangs: (Kandang & {
|
||||
project_flock_kandang_id: number;
|
||||
})[];
|
||||
approval: BaseApproval;
|
||||
};
|
||||
|
||||
@@ -47,3 +50,13 @@ export type ProjectFlockApprovalPayload = {
|
||||
action: 'APPROVED' | 'REJECTED';
|
||||
approvable_ids: number[];
|
||||
};
|
||||
|
||||
export type ProjectFlockAvailableQuantity = {
|
||||
project_flock_id: number;
|
||||
flock_name: string;
|
||||
category: 'LAYING' | 'GROWING';
|
||||
kandangs: {
|
||||
project_flock_kandang_id: number;
|
||||
available_qty: number;
|
||||
}[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user