mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
refactor(FE-114,136): update flock references to use ProjectFlock and adjust RecordingForm for new API
This commit is contained in:
Vendored
+2
-2
@@ -1,11 +1,11 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { Flock } from '@/types/api/flock/flock';
|
||||
import { ProjectFlock } from '@/types/api/production/project-flock';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
|
||||
export type BaseRecording = {
|
||||
id: number;
|
||||
flock: Flock;
|
||||
flock: ProjectFlock;
|
||||
recording_date: string;
|
||||
location: Location;
|
||||
coop: Kandang;
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
import { Flock } from '@/types/api/master-data/flock';
|
||||
import { Area } from '@/types/api/master-data/area';
|
||||
import { ProductCategory } from '@/types/api/master-data/product-category';
|
||||
import { Fcr } from '@/types/api/master-data/fcr';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BaseProjectFlock = {
|
||||
id: number;
|
||||
name: string;
|
||||
flock: Flock;
|
||||
flock_id: number;
|
||||
area: Area;
|
||||
area_id: number;
|
||||
product_category: ProductCategory;
|
||||
product_category_id: number;
|
||||
fcr: Fcr;
|
||||
fcr_id: number;
|
||||
location: Location;
|
||||
location_id: number;
|
||||
period: number;
|
||||
kandang_ids: number[];
|
||||
kandangs: Kandang[];
|
||||
};
|
||||
|
||||
export type ProjectFlock = BaseMetadata & BaseProjectFlock;
|
||||
|
||||
export type CreateProjectFlockPayload = {
|
||||
name: string;
|
||||
flock_id: number;
|
||||
area_id: number;
|
||||
product_category_id: number;
|
||||
fcr_id: number;
|
||||
location_id: number;
|
||||
period: number;
|
||||
kandang_ids: number[];
|
||||
};
|
||||
|
||||
export type UpdateProjectFlockPayload = CreateProjectFlockPayload;
|
||||
Reference in New Issue
Block a user