mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-41): create Fcr api type
This commit is contained in:
Vendored
+30
@@ -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;
|
||||
Reference in New Issue
Block a user