feat(FE): api integration production standards

This commit is contained in:
randy-ar
2025-12-27 13:46:19 +07:00
parent 663c1dea14
commit d49bca1d40
8 changed files with 1167 additions and 581 deletions
+42 -4
View File
@@ -12,8 +12,8 @@ export interface ProductionStandard {
export interface StandardDetails {
week: number;
standard_growth_details: StandardGrowthDetails;
production_standard_details: ProductionStandardDetails;
growth_standard_detail: StandardGrowthDetails;
egg_production_standard_detail: ProductionStandardDetails;
}
export interface ProductionStandardDetails {
@@ -27,7 +27,45 @@ export interface StandardGrowthDetails {
target_mean_bw: number;
max_depletion: number;
min_uniformity: number;
max_cv: number;
week: number;
feed_intake: number;
}
export interface CreateProductionStandardPayload {
name: string;
project_category: string;
details: {
week: number;
growth_standard_detail: {
target_mean_bw: number;
max_depletion: number;
min_uniformity: number;
feed_intake: number;
};
egg_production_standard_detail: {
target_hen_day_production: number;
target_hen_house_production: number;
target_egg_weight: number;
target_egg_mass: number;
};
}[];
}
export interface UpdateProductionStandardPayload {
name: string;
project_category: string;
details: {
week: number;
growth_standard_detail: {
target_mean_bw: number;
max_depletion: number;
min_uniformity: number;
feed_intake: number;
};
egg_production_standard_detail: {
target_hen_day_production: number;
target_hen_house_production: number;
target_egg_weight: number;
target_egg_mass: number;
};
}[];
}