mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-174): add ProjectFlockKandang API and enhance type definitions
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
|||||||
CreateChickinPayload,
|
CreateChickinPayload,
|
||||||
UpdateChickinPayload,
|
UpdateChickinPayload,
|
||||||
} from '@/types/api/production/chickin';
|
} from '@/types/api/production/chickin';
|
||||||
|
import { ProjectFlockKandang } from '@/types/api/production/project-flock-kandang';
|
||||||
|
|
||||||
export const ProjectFlockApi = new BaseApiService<
|
export const ProjectFlockApi = new BaseApiService<
|
||||||
ProjectFlock,
|
ProjectFlock,
|
||||||
@@ -102,3 +103,8 @@ export const ChickinApi = new BaseApiService<
|
|||||||
CreateChickinPayload,
|
CreateChickinPayload,
|
||||||
UpdateChickinPayload
|
UpdateChickinPayload
|
||||||
>('/production/chickins');
|
>('/production/chickins');
|
||||||
|
export const ProjectFlockKandangApi = new BaseApiService<
|
||||||
|
ProjectFlockKandang,
|
||||||
|
unknown,
|
||||||
|
unknown
|
||||||
|
>('/production/project-flock-kandangs');
|
||||||
|
|||||||
+7
-3
@@ -1,13 +1,17 @@
|
|||||||
import { Kandang } from '@/type/master-data/kandang';
|
import { Kandang } from '@/type/master-data/kandang';
|
||||||
import { ProjectFlock } from '@/types/api/production/project-flock';
|
import { ProjectFlock } from '@/types/api/production/project-flock';
|
||||||
|
import { Chickin } from '@/types/api/production/chickin';
|
||||||
|
import { Approvals } from '@/types/api/api-general';
|
||||||
|
|
||||||
export type BaseProjectFlockKandang = {
|
export type BaseProjectFlockKandang = {
|
||||||
id: number;
|
id: number;
|
||||||
project_flock_id: number;
|
|
||||||
kandang_id: number;
|
|
||||||
kandang: Kandang;
|
|
||||||
project_flock: ProjectFlock;
|
project_flock: ProjectFlock;
|
||||||
|
project_flock_id: number;
|
||||||
|
kandang: Kandang;
|
||||||
|
kandang_id: number;
|
||||||
|
chickins: Chickin[];
|
||||||
available_quantity?: number;
|
available_quantity?: number;
|
||||||
|
approval: Approvals;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||||
|
|||||||
Reference in New Issue
Block a user