import { z } from 'zod';

export const QuantityUnitType = {
  NotSet: 0,
  Pieces: 1,
  Weight: 2,
  Length: 4,
  Area: 8,
  Volume: 16,
  DigitalSize: 32,
  Time: 64,
  Resolution: 128,
  Money: 256,
} as const;

export const QuantityUnitTypeSchema = z.nativeEnum(QuantityUnitType).describe('QuantityUnit type');

export type QuantityUnitType = z.infer<typeof QuantityUnitTypeSchema>;
