import { BaseMetadata, flags } from '@/types/api/api-general';
import { BaseUom } from '@/types/api/master-data/uom';
import { BaseSupplier } from '@/types/api/master-data/supplier';

export type BaseNonstock = {
  id: number;
  name: string;
  uom_id: number;
  uom: BaseUom;
  suppliers: BaseSupplier[];
  flags: flags[];
};

export type Nonstock = BaseMetadata & BaseNonstock;

export type CreateNonstockPayload = {
  name: string;
  uom_id: number;
  supplier_ids: number[];
  flags: flags[];
};

export type UpdateNonstockPayload = CreateNonstockPayload;
