feat(FE-92-93-105-106): slicing ui chickin DOC and integrate with API

This commit is contained in:
randy-ar
2025-10-23 13:30:27 +07:00
parent 791e8e787c
commit eaf41805d7
12 changed files with 962 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
import { BaseMetadata } from "@/types/api/api-general";
import { ProjectFlockKandang } from "@/types/api/production/project-flock-kandang";
export type BaseChickin = {
id?: number;
chick_in_date?: string;
quantity?: number;
note?: string;
project_flock_kandang?: ProjectFlockKandang;
}
export type Chickin = BaseMetadata & BaseChickin;
export type CreateChickinPayload = {
project_flock_kandang_id: number;
chick_in_date: string;
}
export type UpdateChickinPayload = CreateChickinPayload;
+12
View File
@@ -0,0 +1,12 @@
import { Kandang } from "@/type/master-data/kandang";
import { ProjectFlock } from "@/types/api/production/project-flock";
export type BaseProjectFlockKandang = {
id: number;
project_flock_id: number;
kandang_id: number;
kandang: Kandang;
project_flock: ProjectFlock;
}
export type ProjectFlockKandang = BaseProjectFlockKandang;