diff --git a/src/types/api/daily-checklist/employee.d.ts b/src/types/api/daily-checklist/employee.d.ts new file mode 100644 index 00000000..6010dfa1 --- /dev/null +++ b/src/types/api/daily-checklist/employee.d.ts @@ -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[]; +}; + +export type Employee = BaseMetadata & BaseEmployee; + +export type CreateEmployeePayload = { + name: string; + is_active: boolean; + kandang_ids: number[]; +}; + +export type UpdateEmployeePayload = CreateEmployeePayload;