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

export type BaseDailyChecklistKandang = {
  id: number;
  name: string;
  location: BaseLocation;
  recording_kandangs: Pick<BaseKandang, 'id' | 'name'>[];
  pic: BaseUser;
};

export type DailyChecklistKandang = BaseMetadata & BaseDailyChecklistKandang;

export type CreateDailyChecklistKandangPayload = {
  name: string;
  location_id: number;
  pic_id: number;
  // recording_kandang_ids: number[];
};

export type UpdateDailyChecklistKandangPayload =
  CreateDailyChecklistKandangPayload;
