mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
fix(resolve): resolve merge issue
This commit is contained in:
Vendored
+11
@@ -104,3 +104,14 @@ export type ApprovalsLine = {
|
||||
role?: string;
|
||||
status: 'approved' | 'rejected' | 'waiting';
|
||||
}[];
|
||||
|
||||
export type BaseApproval = {
|
||||
step_number: number;
|
||||
step_name: string;
|
||||
action: string;
|
||||
notes: string | null;
|
||||
action_by: CreatedUser;
|
||||
action_at: string;
|
||||
};
|
||||
|
||||
export type ApproveAction = 'APPROVED' | 'REJECTED';
|
||||
|
||||
Vendored
+12
@@ -12,3 +12,15 @@ export type 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;
|
||||
}[];
|
||||
};
|
||||
|
||||
+11
-2
@@ -1,4 +1,4 @@
|
||||
import { BaseMetadata } from "@/types/api/api-general";
|
||||
import { BaseApproval, BaseMetadata } from "@/types/api/api-general";
|
||||
import { ProjectFlockKandang } from "@/types/api/production/project-flock-kandang";
|
||||
|
||||
export type BaseChickin = {
|
||||
@@ -7,6 +7,7 @@ export type BaseChickin = {
|
||||
quantity?: number;
|
||||
note?: string;
|
||||
project_flock_kandang?: ProjectFlockKandang;
|
||||
approval: BaseApproval;
|
||||
}
|
||||
|
||||
export type Chickin = BaseMetadata & BaseChickin;
|
||||
@@ -14,7 +15,15 @@ export type Chickin = BaseMetadata & BaseChickin;
|
||||
export type CreateChickinPayload = {
|
||||
project_flock_kandang_id: number;
|
||||
chick_in_date: string;
|
||||
note: string;
|
||||
quantity?: number;
|
||||
}
|
||||
|
||||
export type UpdateChickinPayload = CreateChickinPayload;
|
||||
export type UpdateChickinPayload = CreateChickinPayload & {
|
||||
id: number;
|
||||
};
|
||||
|
||||
export type ChickinApprovalPayload = {
|
||||
action: 'APPROVED' | 'REJECTED';
|
||||
approvable_ids: number[];
|
||||
};
|
||||
+7
-1
@@ -7,6 +7,12 @@ export type BaseProjectFlockKandang = {
|
||||
kandang_id: number;
|
||||
kandang: Kandang;
|
||||
project_flock: ProjectFlock;
|
||||
available_quantity?: number;
|
||||
}
|
||||
|
||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||
|
||||
export type LookupProjectFlockKandangPayload = {
|
||||
project_flock_id: number;
|
||||
kandang_id: number;
|
||||
}
|
||||
+7
-1
@@ -3,7 +3,7 @@ import { Fcr } from '@/types/api/master-data/fcr';
|
||||
import { Flock } from '@/types/api/master-data/flock';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseApproval, BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BaseProjectFlock = {
|
||||
id: number;
|
||||
@@ -21,6 +21,7 @@ export type BaseProjectFlock = {
|
||||
period: number;
|
||||
kandang_ids: number[];
|
||||
kandangs: Kandang[];
|
||||
approval: BaseApproval;
|
||||
};
|
||||
|
||||
export type PeriodFlock = {
|
||||
@@ -41,3 +42,8 @@ export type CreateProjectFlockPayload = {
|
||||
};
|
||||
|
||||
export type UpdateProjectFlockPayload = CreateProjectFlockPayload;
|
||||
|
||||
export type ProjectFlockApprovalPayload = {
|
||||
action: 'APPROVED' | 'REJECTED';
|
||||
approvable_ids: number[];
|
||||
};
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import { BaseApiResponse, BaseMetadata, flags } from '@/types/api/api-general';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
|
||||
export type BaseTransferToLaying = {
|
||||
id: number;
|
||||
transfer_date: string;
|
||||
flock_source: {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
flock_destination: {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
quantity: number;
|
||||
kandangs: {
|
||||
kandang: Kandang;
|
||||
quantity: number;
|
||||
}[];
|
||||
reason: string;
|
||||
};
|
||||
|
||||
export type TransferToLaying = BaseMetadata & BaseTransferToLaying;
|
||||
|
||||
export type CreateTransferToLayingPayload = {
|
||||
transfer_date: string;
|
||||
flock_source_id: number;
|
||||
flock_destination_id: number;
|
||||
totalQuantity: number;
|
||||
kandangs: {
|
||||
kandang_id: number;
|
||||
quantity: number;
|
||||
}[];
|
||||
reason: string;
|
||||
};
|
||||
|
||||
export type UpdateTransferToLayingPayload = CreateTransferToLayingPayload;
|
||||
Reference in New Issue
Block a user