mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45: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 = {
|
export type BaseFlock = {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export type Flock = BaseMetadata & BaseFlock;
|
export type Flock = BaseMetadata & BaseFlock;
|
||||||
|
|
||||||
export type CreateFlockPayload = {
|
export type CreateFlockPayload = {
|
||||||
name: string;
|
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