@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
40 lines (39 loc) • 1.03 kB
TypeScript
import { z } from 'zod';
export declare const UserRoleSchema: z.ZodEnum<{
PLAYER: "PLAYER";
SUPER_ADMIN: "SUPER_ADMIN";
OPERATOR: "OPERATOR";
}>;
export declare const UserSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
username: z.ZodString;
email: z.ZodEmail;
phone: z.ZodOptional<z.ZodString>;
role: z.ZodEnum<{
PLAYER: "PLAYER";
SUPER_ADMIN: "SUPER_ADMIN";
OPERATOR: "OPERATOR";
}>;
type: z.ZodEnum<{
readonly STAFF: "STAFF";
readonly PLAYER: "PLAYER";
}>;
}, z.core.$strip>;
export declare const UserWithPasswordSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
username: z.ZodString;
email: z.ZodEmail;
phone: z.ZodOptional<z.ZodString>;
role: z.ZodEnum<{
PLAYER: "PLAYER";
SUPER_ADMIN: "SUPER_ADMIN";
OPERATOR: "OPERATOR";
}>;
type: z.ZodEnum<{
readonly STAFF: "STAFF";
readonly PLAYER: "PLAYER";
}>;
password: z.ZodString;
}, z.core.$strip>;