import { z } from 'zod';

export const AvailabilityType = {
  NotSet: 0,
  NotAvailable: 1,
  PrebookAtBuyer: 2,
  PrebookAtRetailer: 32,
  PrebookAtSupplier: 256,
  TemporarilyNotAvailable: 512,
  Available: 1024,
  OnDemand: 2048,
  AtProductionDate: 4096,
  Discontinued: 8192,
  EndOfLife: 16384,
} as const;

export const AvailabilityTypeSchema = z.nativeEnum(AvailabilityType).describe('Availability type');

export type AvailabilityType = z.infer<typeof AvailabilityTypeSchema>;
