mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
Merge branch 'feat/FE/daily-checklist' into 'development'
[FEAT/FE] Daily Checklist See merge request mbugroup/lti-web-client!146
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseLocation } from '@/types/api/master-data/location';
|
||||
import { BaseUser } from '@/types/api/user';
|
||||
import { BaseKandang } from '@/types/api/master-data/kandang';
|
||||
|
||||
export type BaseEmployee = {
|
||||
id: number;
|
||||
name: string;
|
||||
is_active: boolean;
|
||||
kandangs: Pick<BaseKandang, 'id' | 'name' | 'status' | 'capacity'>[];
|
||||
};
|
||||
|
||||
export type Employee = BaseMetadata & BaseEmployee;
|
||||
|
||||
export type CreateEmployeePayload = {
|
||||
name: string;
|
||||
is_active: boolean;
|
||||
kandang_ids: number[];
|
||||
};
|
||||
|
||||
export type UpdateEmployeePayload = CreateEmployeePayload;
|
||||
@@ -0,0 +1,24 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BasePhaseActivity = {
|
||||
id: number;
|
||||
phase_id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
time_type: string;
|
||||
};
|
||||
|
||||
export type PhaseActivity = BaseMetadata & BasePhaseActivity;
|
||||
|
||||
export type CreatePhaseActivityPayload = {
|
||||
phase_id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
time_type: string;
|
||||
};
|
||||
|
||||
export type UpdatePhaseActivityPayload = {
|
||||
name: string;
|
||||
description: string;
|
||||
time_type: string;
|
||||
};
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BasePhase = {
|
||||
id: number;
|
||||
name: string;
|
||||
is_active: boolean;
|
||||
category: string;
|
||||
};
|
||||
|
||||
export type Phase = BaseMetadata & BasePhase;
|
||||
|
||||
export type CreatePhasePayload = {
|
||||
name: string;
|
||||
category: string;
|
||||
};
|
||||
|
||||
export type UpdatePhasePayload = {
|
||||
name: string;
|
||||
};
|
||||
Reference in New Issue
Block a user