mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 14:25:47 +00:00
feat(FE-113): create FlockWithKandangs type
This commit is contained in:
Vendored
+16
-4
@@ -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;
|
||||
}[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user