feat(FE-113): create FlockWithKandangs type

This commit is contained in:
ValdiANS
2025-10-21 15:54:50 +07:00
parent 06f1d3f6a4
commit 9f24d22a2c
+16 -4
View File
@@ -1,14 +1,26 @@
import { BaseMetadata } from "@/types/api/api-general";
import { BaseMetadata } from '@/types/api/api-general';
export type BaseFlock = {
id: number;
name: string;
}
};
export type Flock = BaseMetadata & BaseFlock;
export type CreateFlockPayload = {
name: string;
}
};
export type UpdateFlockPayload = CreateFlockPayload;
export type UpdateFlockPayload = CreateFlockPayload;
// ---------------------------------------
// TODO: adjust this later after Transfer to Laying API done
import { BaseKandang } from '@/types/api/master-data/kandang';
export type FlockWithKandangs = BaseFlock & {
totalQuantity: number;
kandangs: {
kandang: BaseKandang;
quantity: number;
}[];
};