fix(FE): add kandang_group to BaseKandang and add group_id to CreateKandangPayload

This commit is contained in:
ValdiANS
2026-03-09 12:30:16 +07:00
parent f1a4d9b648
commit 918c51e83b
+3
View File
@@ -1,6 +1,7 @@
import { BaseMetadata } from '@/types/api/api-general';
import { BaseLocation } from '@/types/api/master-data/location';
import { BaseUser } from '@/types/api/user';
import { BaseDailyChecklistKandang } from '@/types/api/daily-checklist/kandang';
export type BaseKandang = {
id: number;
@@ -10,6 +11,7 @@ export type BaseKandang = {
capacity: number;
pic: BaseUser;
project_flock_kandang_id?: number;
kandang_group: Pick<BaseDailyChecklistKandang, 'id' | 'name'>;
};
export type Kandang = BaseMetadata & BaseKandang;
@@ -19,6 +21,7 @@ export type CreateKandangPayload = {
location_id: number;
capacity: number;
pic_id: number;
group_id: number;
};
export type UpdateKandangPayload = CreateKandangPayload;