UNPKG

@battle-racing/br-common-lib

Version:

Common library for all Battle Racing Repositorios

17 lines (16 loc) 602 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.kartTrackingSchema = exports.checkpointEventSchema = void 0; const zod_1 = require("zod"); const checkpoint_1 = require("../checkpoint"); exports.checkpointEventSchema = checkpoint_1.checkpointSchema.extend({ index: zod_1.z.number(), timestampISO: zod_1.z.object({ origin: zod_1.z.string(), server: zod_1.z.string(), }), }); exports.kartTrackingSchema = zod_1.z.object({ macAddress: zod_1.z.string(), checkpointsEvents: zod_1.z.array(exports.checkpointEventSchema).optional(), });