import { z } from 'zod';
import { BALL_SENSOR_COMMAND, BALL_SENSOR_STATUS } from './BallSensor.const';

export const ballSensorCommandSchema = z.enum(BALL_SENSOR_COMMAND);

export const ballSensorStatusSchema = z.enum(BALL_SENSOR_STATUS);

export const configureBallSensorDiskThrowerModuleOptionsSchema = z.object({
  waitTimeAfterHit: z.number().min(1).max(25),
});

export const ballSensorDiskThrowerModuleStatusSchema = z.object({
  ballSensorStatus: ballSensorStatusSchema,
});
