UNPKG

@battle-racing/br-common-lib

Version:

Common library for all Battle Racing Repositorios

21 lines (20 loc) 894 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rgbShowEffectOptionsSchema = exports.rgbConfigurationOptionsSchema = exports.rgbModuleStatusSchema = exports.rgbStatusSchema = void 0; const zod_1 = require("zod"); const color_1 = require("../../color"); const kart_effect_1 = require("../../hardware/kart-effect"); const RGB_const_1 = require("./RGB.const"); exports.rgbStatusSchema = zod_1.z.enum(RGB_const_1.RGB_STATUS); exports.rgbModuleStatusSchema = zod_1.z.object({ rgbStatus: exports.rgbStatusSchema, kartColor: color_1.colorNameSchema, }); exports.rgbConfigurationOptionsSchema = zod_1.z.object({ kartColor: color_1.colorNameSchema, brightness: zod_1.z.number().min(0).max(100), effectTime: zod_1.z.number().min(1).max(25), }); exports.rgbShowEffectOptionsSchema = zod_1.z.object({ effect: kart_effect_1.kartEffectSchema, });