feat(FE-41): create Fcr api type

This commit is contained in:
ValdiANS
2025-10-09 09:57:41 +07:00
parent f8f5e8403a
commit a6be56e6f2
+30
View File
@@ -0,0 +1,30 @@
import { BaseMetadata } from '@/types/api/api-general';
export type BaseFcr = {
id: number;
name: string;
};
export type FcrStandard = {
id: number;
weight: number;
fcr_number: number;
mortality: number;
};
export type Fcr = BaseMetadata & BaseFcr;
export type FcrWithStandards = Fcr & {
fcr_standards: FcrStandard[];
};
export type CreateFcrPayload = {
name: string;
fcr_standards: {
weight: number;
fcr_number: number;
mortality: number;
}[];
};
export type UpdateFcrPayload = CreateFcrPayload;