import { BaseMetadata } from '@/types/api/api-general';
import { BaseLocation } from '@/types/api/master-data/location';
import { BaseUser } from '@/types/api/user';
import { BaseDailyChecklistKandang } from '@/types/api/daily-checklist/kandang';

export type BaseKandang = {
  id: number;
  name: string;
  status: string;
  location: BaseLocation;
  capacity: number;
  pic: BaseUser;
  project_flock_kandang_id?: number;
  kandang_group: Pick<BaseDailyChecklistKandang, 'id' | 'name'>;
};

export type Kandang = BaseMetadata & BaseKandang;

export type CreateKandangPayload = {
  name: string;
  location_id: number;
  capacity: number;
  pic_id: number;
  group_id: number;
};

export type UpdateKandangPayload = CreateKandangPayload;
