@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
43 lines (42 loc) • 1.43 kB
TypeScript
import { z } from 'zod';
export declare const battleKartStateSchema: z.ZodObject<{
coins: z.ZodNumber;
lives: z.ZodNumber;
}, z.core.$strip>;
export declare const battleSchema: z.ZodObject<{
id: z.ZodNumber;
status: z.ZodEnum<{
readonly NON_STARTED: "non-started";
readonly ACTIVE: "active";
readonly YELLOW_FLAG: "yellow-flag";
readonly RED_FLAG: "red-flag";
readonly FINISHED: "finished";
readonly KART_ELIMINATED: "kart-eliminated";
}>;
kartsGuids: z.ZodArray<z.ZodString>;
powerUpsIds: z.ZodArray<z.ZodString>;
gameTrackId: z.ZodString;
coins: z.ZodNumber;
time: z.ZodNumber;
speedConfig: z.ZodNumber;
createdAt: z.ZodDate;
startedAt: z.ZodOptional<z.ZodDate>;
finishedAt: z.ZodOptional<z.ZodDate>;
finishedReason: z.ZodOptional<z.ZodEnum<{
readonly TIME_IS_OVER: "TIME_IS_OVER";
readonly GAME_KARTS_FINISHED: "GAME_KARTS_FINISHED";
readonly EMERGENCY: "EMERGENCY";
readonly BY_CONTROLLER: "BY_CONTROLLER";
}>>;
gameRanking: z.ZodArray<z.ZodObject<{
kartGuid: z.ZodString;
position: z.ZodNumber;
time: z.ZodNumber;
}, z.core.$strip>>;
type: z.ZodLiteral<"Battle">;
lives: z.ZodNumber;
kartsState: z.ZodRecord<z.ZodString, z.ZodObject<{
coins: z.ZodNumber;
lives: z.ZodNumber;
}, z.core.$strip>>;
}, z.core.$strip>;